diff --git a/dist/assets/index-BFhp3yMO.js b/dist/assets/index-BFhp3yMO.js deleted file mode 100644 index d42c34a..0000000 --- a/dist/assets/index-BFhp3yMO.js +++ /dev/null @@ -1,250 +0,0 @@ -var lC=Object.defineProperty;var cC=(e,t,n)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qo=(e,t,n)=>cC(e,typeof t!="symbol"?t+"":t,n);function uC(e,t){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function fC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A0={exports:{}},Pc={},O0={exports:{}},q={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var da=Symbol.for("react.element"),dC=Symbol.for("react.portal"),hC=Symbol.for("react.fragment"),pC=Symbol.for("react.strict_mode"),mC=Symbol.for("react.profiler"),gC=Symbol.for("react.provider"),yC=Symbol.for("react.context"),vC=Symbol.for("react.forward_ref"),xC=Symbol.for("react.suspense"),wC=Symbol.for("react.memo"),bC=Symbol.for("react.lazy"),xm=Symbol.iterator;function SC(e){return e===null||typeof e!="object"?null:(e=xm&&e[xm]||e["@@iterator"],typeof e=="function"?e:null)}var z0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L0=Object.assign,I0={};function jo(e,t,n){this.props=e,this.context=t,this.refs=I0,this.updater=n||z0}jo.prototype.isReactComponent={};jo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D0(){}D0.prototype=jo.prototype;function ph(e,t,n){this.props=e,this.context=t,this.refs=I0,this.updater=n||z0}var mh=ph.prototype=new D0;mh.constructor=ph;L0(mh,jo.prototype);mh.isPureReactComponent=!0;var wm=Array.isArray,$0=Object.prototype.hasOwnProperty,gh={current:null},F0={key:!0,ref:!0,__self:!0,__source:!0};function j0(e,t,n){var i,r={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)$0.call(t,i)&&!F0.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,te=O[W];if(0>>1;Wr(Bi,j))Jtr($n,Bi)?(O[W]=$n,O[Jt]=j,W=Jt):(O[W]=Bi,O[Re]=j,W=Re);else if(Jtr($n,j))O[W]=$n,O[Jt]=j,W=Jt;else break e}}return I}function r(O,I){var j=O.sortIndex-I.sortIndex;return j!==0?j:O.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,d=3,p=!1,y=!1,h=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(O){for(var I=n(c);I!==null;){if(I.callback===null)i(c);else if(I.startTime<=O)i(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function w(O){if(h=!1,v(O),!y)if(n(l)!==null)y=!0,ne(S);else{var I=n(c);I!==null&&U(w,I.startTime-O)}}function S(O,I){y=!1,h&&(h=!1,m(M),M=-1),p=!0;var j=d;try{for(v(I),f=n(l);f!==null&&(!(f.expirationTime>I)||O&&!_());){var W=f.callback;if(typeof W=="function"){f.callback=null,d=f.priorityLevel;var te=W(f.expirationTime<=I);I=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&i(l),v(I)}else i(l);f=n(l)}if(f!==null)var Dn=!0;else{var Re=n(c);Re!==null&&U(w,Re.startTime-I),Dn=!1}return Dn}finally{f=null,d=j,p=!1}}var C=!1,T=null,M=-1,z=5,x=-1;function _(){return!(e.unstable_now()-xO||125W?(O.sortIndex=j,t(c,O),n(l)===null&&O===n(c)&&(h?(m(M),M=-1):h=!0,U(w,j-W))):(O.sortIndex=te,t(l,O),y||p||(y=!0,ne(S))),O},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(O){var I=d;return function(){var j=d;d=I;try{return O.apply(this,arguments)}finally{d=j}}}})(W0);U0.exports=W0;var zC=U0.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var LC=k,Ot=zC;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,IC=/^[: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]*$/,Sm={},Cm={};function DC(e){return $f.call(Cm,e)?!0:$f.call(Sm,e)?!1:IC.test(e)?Cm[e]=!0:(Sm[e]=!0,!1)}function $C(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FC(e,t,n,i){if(t===null||typeof t>"u"||$C(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,i,r,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new dt(e,2,!1,e,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(e){Ke[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var vh=/[\-:]([a-z])/g;function xh(e){return e[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(e){var t=e.replace(vh,xh);Ke[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vh,xh);Ke[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vh,xh);Ke[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function wh(e,t,n,i){var r=Ke.hasOwnProperty(t)?Ke[t]:null;(r!==null?r.type!==0:i||!(2a||r[s]!==o[a]){var l=` -`+r[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hs(e):""}function jC(e){switch(e.tag){case 5:return hs(e.type);case 16:return hs("Lazy");case 13:return hs("Suspense");case 19:return hs("SuspenseList");case 0:case 2:case 15:return e=Au(e.type,!1),e;case 11:return e=Au(e.type.render,!1),e;case 1:return e=Au(e.type,!0),e;default:return""}}function Vf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Br:return"Fragment";case Vr:return"Portal";case Ff:return"Profiler";case bh:return"StrictMode";case jf:return"Suspense";case Nf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K0:return(e.displayName||"Context")+".Consumer";case G0:return(e._context.displayName||"Context")+".Provider";case Sh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ch:return t=e.displayName||null,t!==null?t:Vf(e.type)||"Memo";case li:t=e._payload,e=e._init;try{return Vf(e(t))}catch{}}return null}function NC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vf(t);case 8:return t===bh?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VC(e){var t=Q0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ia(e){e._valueTracker||(e._valueTracker=VC(e))}function Y0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Q0(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bf(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Pi(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function X0(e,t){t=t.checked,t!=null&&wh(e,"checked",t,!1)}function Uf(e,t){X0(e,t);var n=Pi(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wf(e,t.type,Pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wf(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function ao(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Da.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $s(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={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},BC=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function tx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function nx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=tx(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var UC=xe({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 Kf(e,t){if(t){if(UC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function qf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Qf=null;function kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yf=null,lo=null,co=null;function _m(e){if(e=ma(e)){if(typeof Yf!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Rc(t),Yf(e.stateNode,e.type,t))}}function ix(e){lo?co?co.push(e):co=[e]:lo=e}function rx(){if(lo){var e=lo,t=co;if(co=lo=null,_m(e),t)for(e=0;e>>=0,e===0?32:31-(ek(e)/tk|0)|0}var $a=64,Fa=4194304;function ms(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=ms(a):(o&=s,o!==0&&(i=ms(o)))}else s=n&~r,s!==0?i=ms(s):o!==0&&(i=ms(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function ok(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=ks),Fm=" ",jm=!1;function kx(e,t){switch(e){case"keyup":return zk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Px(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ur=!1;function Ik(e,t){switch(e){case"compositionend":return Px(t);case"keypress":return t.which!==32?null:(jm=!0,Fm);case"textInput":return e=t.data,e===Fm&&jm?null:e;default:return null}}function Dk(e,t){if(Ur)return e==="compositionend"||!Oh&&kx(e,t)?(e=Sx(),gl=_h=hi=null,Ur=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Um(n)}}function _x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rx(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Hk(e){var t=Rx(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_x(n.ownerDocument.documentElement,n)){if(i!==null&&zh(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=Wm(n,o);var s=Wm(n,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wr=null,nd=null,Ts=null,id=!1;function Hm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;id||Wr==null||Wr!==Dl(i)||(i=Wr,"selectionStart"in i&&zh(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}),Ts&&Us(Ts,i)||(Ts=i,i=Ul(nd,"onSelect"),0Kr||(e.current=cd[Kr],cd[Kr]=null,Kr--)}function le(e,t){Kr++,cd[Kr]=e.current,e.current=t}var Ti={},it=Ii(Ti),gt=Ii(!1),mr=Ti;function ko(e,t){var n=e.type.contextTypes;if(!n)return Ti;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function yt(e){return e=e.childContextTypes,e!=null}function Hl(){fe(gt),fe(it)}function Zm(e,t,n){if(it.current!==Ti)throw Error(A(168));le(it,t),le(gt,n)}function jx(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(A(108,NC(e)||"Unknown",r));return xe({},n,i)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,mr=it.current,le(it,e),le(gt,gt.current),!0}function Jm(e,t,n){var i=e.stateNode;if(!i)throw Error(A(169));n?(e=jx(e,t,mr),i.__reactInternalMemoizedMergedChildContext=e,fe(gt),fe(it),le(it,e)):fe(gt),le(gt,n)}var Vn=null,Ac=!1,Hu=!1;function Nx(e){Vn===null?Vn=[e]:Vn.push(e)}function iP(e){Ac=!0,Nx(e)}function Di(){if(!Hu&&Vn!==null){Hu=!0;var e=0,t=ie;try{var n=Vn;for(ie=1;e>=s,r-=s,Bn=1<<32-ln(t)+r|n<M?(z=T,T=null):z=T.sibling;var x=d(m,T,v[M],w);if(x===null){T===null&&(T=z);break}e&&T&&x.alternate===null&&t(m,T),g=o(x,g,M),C===null?S=x:C.sibling=x,C=x,T=z}if(M===v.length)return n(m,T),pe&&Qi(m,M),S;if(T===null){for(;MM?(z=T,T=null):z=T.sibling;var _=d(m,T,x.value,w);if(_===null){T===null&&(T=z);break}e&&T&&_.alternate===null&&t(m,T),g=o(_,g,M),C===null?S=_:C.sibling=_,C=_,T=z}if(x.done)return n(m,T),pe&&Qi(m,M),S;if(T===null){for(;!x.done;M++,x=v.next())x=f(m,x.value,w),x!==null&&(g=o(x,g,M),C===null?S=x:C.sibling=x,C=x);return pe&&Qi(m,M),S}for(T=i(m,T);!x.done;M++,x=v.next())x=p(T,m,M,x.value,w),x!==null&&(e&&x.alternate!==null&&T.delete(x.key===null?M:x.key),g=o(x,g,M),C===null?S=x:C.sibling=x,C=x);return e&&T.forEach(function(R){return t(m,R)}),pe&&Qi(m,M),S}function b(m,g,v,w){if(typeof v=="object"&&v!==null&&v.type===Br&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case La:e:{for(var S=v.key,C=g;C!==null;){if(C.key===S){if(S=v.type,S===Br){if(C.tag===7){n(m,C.sibling),g=r(C,v.props.children),g.return=m,m=g;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===li&&ng(S)===C.type){n(m,C.sibling),g=r(C,v.props),g.ref=ts(m,C,v),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}v.type===Br?(g=fr(v.props.children,m.mode,w,v.key),g.return=m,m=g):(w=kl(v.type,v.key,v.props,null,m.mode,w),w.ref=ts(m,g,v),w.return=m,m=w)}return s(m);case Vr:e:{for(C=v.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=r(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Ju(v,m.mode,w),g.return=m,m=g}return s(m);case li:return C=v._init,b(m,g,C(v._payload),w)}if(ps(v))return y(m,g,v,w);if(Yo(v))return h(m,g,v,w);Ha(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=r(g,v),g.return=m,m=g):(n(m,g),g=Zu(v,m.mode,w),g.return=m,m=g),s(m)):n(m,g)}return b}var To=Wx(!0),Hx=Wx(!1),Ql=Ii(null),Yl=null,Yr=null,$h=null;function Fh(){$h=Yr=Yl=null}function jh(e){var t=Ql.current;fe(Ql),e._currentValue=t}function dd(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function fo(e,t){Yl=e,$h=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function Kt(e){var t=e._currentValue;if($h!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Yl===null)throw Error(A(308));Yr=e,Yl.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var tr=null;function Nh(e){tr===null?tr=[e]:tr.push(e)}function Gx(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,Nh(t)):(n.next=r.next,r.next=n),t.interleaved=n,ei(e,i)}function ei(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ci=!1;function Vh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,X&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,ei(e,n)}return r=i.interleaved,r===null?(t.next=t,Nh(i)):(t.next=r.next,r.next=t),i.interleaved=t,ei(e,n)}function vl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}function ig(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xl(e,t,n,i){var r=e.updateQueue;ci=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=r.baseState;s=0,u=c=l=null,a=o;do{var d=a.lane,p=a.eventTime;if((i&d)===d){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,h=a;switch(d=t,p=n,h.tag){case 1:if(y=h.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=xe({},f,d);break e;case 2:ci=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=r.effects,d===null?r.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=f):u=u.next=p,s|=d;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;d=a,a=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(u===null&&(l=f),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);vr|=s,e.lanes=s,e.memoizedState=f}}function rg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Ku.transition;Ku.transition={};try{e(!1),t()}finally{ie=n,Ku.transition=i}}function u1(){return qt().memoizedState}function aP(e,t,n){var i=Si(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},f1(e))d1(t,n);else if(n=Gx(e,t,n,i),n!==null){var r=lt();cn(n,e,i,r),h1(n,t,i)}}function lP(e,t,n){var i=Si(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(f1(e))d1(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,hn(a,s)){var l=t.interleaved;l===null?(r.next=r,Nh(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=Gx(e,t,r,i),n!==null&&(r=lt(),cn(n,e,i,r),h1(n,t,i))}}function f1(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function d1(e,t){Ms=Jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function h1(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Th(e,n)}}var ec={readContext:Kt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},cP={readContext:Kt,useCallback:function(e,t){return wn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:sg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wl(4194308,4,o1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var n=wn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=wn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=aP.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=wn();return e={current:e},t.memoizedState=e},useState:og,useDebugValue:Qh,useDeferredValue:function(e){return wn().memoizedState=e},useTransition:function(){var e=og(!1),t=e[0];return e=sP.bind(null,e[1]),wn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ve,r=wn();if(pe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),je===null)throw Error(A(349));yr&30||Xx(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,sg(Jx.bind(null,i,o,e),[e]),i.flags|=2048,Xs(9,Zx.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=wn(),t=je.identifierPrefix;if(pe){var n=Un,i=Bn;n=(i&~(1<<32-ln(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[Pn]=t,e[Gs]=i,C1(e,t,!1,!1),t.stateNode=e;e:{switch(s=qf(n,i),n){case"dialog":ue("cancel",e),ue("close",e),r=i;break;case"iframe":case"object":case"embed":ue("load",e),r=i;break;case"video":case"audio":for(r=0;r_o&&(t.flags|=128,i=!0,ns(o,!1),t.lanes=4194304)}else{if(!i)if(e=Zl(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!pe)return Qe(t),null}else 2*Me()-o.renderingStartTime>_o&&n!==1073741824&&(t.flags|=128,i=!0,ns(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Me(),t.sibling=null,n=me.current,le(me,i?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return tp(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Pt&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function yP(e,t){switch(Ih(t),t.tag){case 1:return yt(t.type)&&Hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),fe(gt),fe(it),Wh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uh(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Po()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return Mo(),null;case 10:return jh(t.type._context),null;case 22:case 23:return tp(),null;case 24:return null;default:return null}}var Ka=!1,Ze=!1,vP=typeof WeakSet=="function"?WeakSet:Set,$=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Ce(e,t,i)}else n.current=null}function bd(e,t,n){try{n()}catch(i){Ce(e,t,i)}}var yg=!1;function xP(e,t){if(rd=Vl,e=Rx(),zh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var p;f!==n||r!==0&&f.nodeType!==3||(a=s+r),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++c===r&&(a=s),d===o&&++u===i&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(od={focusedElem:e,selectionRange:n},Vl=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,b=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:tn(t.type,h),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Ce(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return y=yg,yg=!1,y}function Es(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&bd(t,n,o)}r=r.next}while(r!==i)}}function Lc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Sd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function T1(e){var t=e.alternate;t!==null&&(e.alternate=null,T1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[Gs],delete t[ld],delete t[tP],delete t[nP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M1(e){return e.tag===5||e.tag===3||e.tag===4}function vg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wl));else if(i!==4&&(e=e.child,e!==null))for(Cd(e,t,n),e=e.sibling;e!==null;)Cd(e,t,n),e=e.sibling}function kd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(kd(e,t,n),e=e.sibling;e!==null;)kd(e,t,n),e=e.sibling}var Be=null,rn=!1;function ri(e,t,n){for(n=n.child;n!==null;)E1(e,t,n),n=n.sibling}function E1(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(Tc,n)}catch{}switch(n.tag){case 5:Ze||Xr(n,t);case 6:var i=Be,r=rn;Be=null,ri(e,t,n),Be=i,rn=r,Be!==null&&(rn?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(rn?(e=Be,n=n.stateNode,e.nodeType===8?Wu(e.parentNode,n):e.nodeType===1&&Wu(e,n),Vs(e)):Wu(Be,n.stateNode));break;case 4:i=Be,r=rn,Be=n.stateNode.containerInfo,rn=!0,ri(e,t,n),Be=i,rn=r;break;case 0:case 11:case 14:case 15:if(!Ze&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&bd(n,t,s),r=r.next}while(r!==i)}ri(e,t,n);break;case 1:if(!Ze&&(Xr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){Ce(n,t,a)}ri(e,t,n);break;case 21:ri(e,t,n);break;case 22:n.mode&1?(Ze=(i=Ze)||n.memoizedState!==null,ri(e,t,n),Ze=i):ri(e,t,n);break;default:ri(e,t,n)}}function xg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vP),t.forEach(function(i){var r=EP.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=Me()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*bP(i/1960))-i,10e?16:e,pi===null)var i=!1;else{if(e=pi,pi=null,ic=0,X&6)throw Error(A(331));var r=X;for(X|=4,$=e.current;$!==null;){var o=$,s=o.child;if($.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lMe()-Jh?ur(e,0):Zh|=n),vt(e,t)}function D1(e,t){t===0&&(e.mode&1?(t=Fa,Fa<<=1,!(Fa&130023424)&&(Fa=4194304)):t=1);var n=lt();e=ei(e,t),e!==null&&(ha(e,t,n),vt(e,n))}function MP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),D1(e,n)}function EP(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(A(314))}i!==null&&i.delete(t),D1(e,n)}var $1;$1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)mt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mt=!1,mP(e,t,n);mt=!!(e.flags&131072)}else mt=!1,pe&&t.flags&1048576&&Vx(t,ql,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;bl(e,t),e=t.pendingProps;var r=ko(t,it.current);fo(t,n),r=Gh(null,t,i,e,r,n);var o=Kh();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(i)?(o=!0,Gl(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Vh(t),r.updater=zc,t.stateNode=r,r._reactInternals=t,pd(t,i,e,n),t=yd(null,t,i,!0,o,n)):(t.tag=0,pe&&o&&Lh(t),st(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=RP(i),e=tn(i,e),r){case 0:t=gd(null,t,i,e,n);break e;case 1:t=pg(null,t,i,e,n);break e;case 11:t=dg(null,t,i,e,n);break e;case 14:t=hg(null,t,i,tn(i.type,e),n);break e}throw Error(A(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),gd(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),pg(e,t,i,r,n);case 3:e:{if(w1(t),e===null)throw Error(A(387));i=t.pendingProps,o=t.memoizedState,r=o.element,Kx(e,t),Xl(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=Eo(Error(A(423)),t),t=mg(e,t,i,n,r);break e}else if(i!==r){r=Eo(Error(A(424)),t),t=mg(e,t,i,n,r);break e}else for(Mt=xi(t.stateNode.containerInfo.firstChild),_t=t,pe=!0,on=null,n=Hx(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Po(),i===r){t=ti(e,t,n);break e}st(e,t,i,n)}t=t.child}return t;case 5:return qx(t),e===null&&fd(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,s=r.children,sd(i,r)?s=null:o!==null&&sd(i,o)&&(t.flags|=32),x1(e,t),st(e,t,s,n),t.child;case 6:return e===null&&fd(t),null;case 13:return b1(e,t,n);case 4:return Bh(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=To(t,null,i,n):st(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),dg(e,t,i,r,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,le(Ql,i._currentValue),i._currentValue=s,o!==null)if(hn(o.value,s)){if(o.children===r.children&&!gt.current){t=ti(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=Gn(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),dd(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),dd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}st(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,fo(t,n),r=Kt(r),i=i(r),t.flags|=1,st(e,t,i,n),t.child;case 14:return i=t.type,r=tn(i,t.pendingProps),r=tn(i.type,r),hg(e,t,i,r,n);case 15:return y1(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),bl(e,t),t.tag=1,yt(i)?(e=!0,Gl(t)):e=!1,fo(t,n),p1(t,i,r),pd(t,i,r,n),yd(null,t,i,!0,e,n);case 19:return S1(e,t,n);case 22:return v1(e,t,n)}throw Error(A(156,t.tag))};function F1(e,t){return fx(e,t)}function _P(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 Ht(e,t,n,i){return new _P(e,t,n,i)}function ip(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RP(e){if(typeof e=="function")return ip(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sh)return 11;if(e===Ch)return 14}return 2}function Ci(e,t){var n=e.alternate;return n===null?(n=Ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kl(e,t,n,i,r,o){var s=2;if(i=e,typeof e=="function")ip(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Br:return fr(n.children,r,o,t);case bh:s=8,r|=8;break;case Ff:return e=Ht(12,n,t,r|2),e.elementType=Ff,e.lanes=o,e;case jf:return e=Ht(13,n,t,r),e.elementType=jf,e.lanes=o,e;case Nf:return e=Ht(19,n,t,r),e.elementType=Nf,e.lanes=o,e;case q0:return Dc(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G0:s=10;break e;case K0:s=9;break e;case Sh:s=11;break e;case Ch:s=14;break e;case li:s=16,i=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ht(s,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function fr(e,t,n,i){return e=Ht(7,e,i,t),e.lanes=n,e}function Dc(e,t,n,i){return e=Ht(22,e,i,t),e.elementType=q0,e.lanes=n,e.stateNode={isHidden:!1},e}function Zu(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Ju(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AP(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zu(0),this.expirationTimes=zu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zu(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function rp(e,t,n,i,r,o,s,a,l){return e=new AP(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ht(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(o),e}function OP(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B1)}catch(e){console.error(e)}}B1(),B0.exports=Lt;var $P=B0.exports,U1,Mg=$P;U1=Mg.createRoot,Mg.hydrateRoot;function wr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}const un="$$material";function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?He(Bo,--xt):0,Ro--,ze===10&&(Ro=1,Bc--),ze}function Rt(){return ze=xt2||ea(ze)>3?"":" "}function e2(e,t){for(;--t&&Rt()&&!(ze<48||ze>102||ze>57&&ze<65||ze>70&&ze<97););return ya(e,Pl()+(t<6&&Rn()==32&&Rt()==32))}function Rd(e){for(;Rt();)switch(ze){case e:return xt;case 34:case 39:e!==34&&e!==39&&Rd(ze);break;case 40:e===41&&Rd(e);break;case 92:Rt();break}return xt}function t2(e,t){for(;Rt()&&e+ze!==57;)if(e+ze===84&&Rn()===47)break;return"/*"+ya(t,xt-1)+"*"+Vc(e===47?e:Rt())}function n2(e){for(;!ea(Rn());)Rt();return ya(e,xt)}function i2(e){return Y1(Ml("",null,null,null,[""],e=Q1(e),0,[0],e))}function Ml(e,t,n,i,r,o,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,y=0,h=1,b=1,m=1,g=0,v="",w=r,S=o,C=i,T=v;b;)switch(y=g,g=Rt()){case 40:if(y!=108&&He(T,f-1)==58){_d(T+=ee(Tl(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=Tl(g);break;case 9:case 10:case 13:case 32:T+=JP(y);break;case 92:T+=e2(Pl()-1,7);continue;case 47:switch(Rn()){case 42:case 47:Ya(r2(t2(Rt(),Pl()),t,n),l);break;default:T+="/"}break;case 123*h:a[c++]=Cn(T)*m;case 125*h:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:m==-1&&(T=ee(T,/\f/g,"")),p>0&&Cn(T)-f&&Ya(p>32?_g(T+";",i,n,f-1):_g(ee(T," ","")+";",i,n,f-2),l);break;case 59:T+=";";default:if(Ya(C=Eg(T,t,n,c,u,r,a,v,w=[],S=[],f),o),g===123)if(u===0)Ml(T,t,C,C,w,o,f,a,S);else switch(d===99&&He(T,3)===110?100:d){case 100:case 108:case 109:case 115:Ml(e,C,C,i&&Ya(Eg(e,C,C,0,0,r,a,v,r,w=[],f),S),r,S,f,a,i?w:S);break;default:Ml(T,C,C,C,[""],S,0,a,S)}}c=u=p=0,h=m=1,v=T="",f=s;break;case 58:f=1+Cn(T),p=y;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&ZP()==125)continue}switch(T+=Vc(g),g*h){case 38:m=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(Cn(T)-1)*m,m=1;break;case 64:Rn()===45&&(T+=Tl(Rt())),d=Rn(),u=f=Cn(v=T+=n2(Pl())),g++;break;case 45:y===45&&Cn(T)==2&&(h=0)}}return o}function Eg(e,t,n,i,r,o,s,a,l,c,u){for(var f=r-1,d=r===0?o:[""],p=up(d),y=0,h=0,b=0;y0?d[m]+" "+g:ee(g,/&\f/g,d[m])))&&(l[b++]=v);return Uc(e,t,n,r===0?lp:a,l,c,u)}function r2(e,t,n){return Uc(e,t,n,H1,Vc(XP()),Js(e,2,-2),0)}function _g(e,t,n,i){return Uc(e,t,n,cp,Js(e,0,i),Js(e,i+1,-1),i)}function po(e,t){for(var n="",i=up(e),r=0;r6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+ac+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?X1(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Cn(e)-3-(~_d(e,"!important")&&10))){case 107:return ee(e,":",":"+J)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(He(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return J+e+Ye+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+Ye+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+Ye+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+Ye+e+e}return e}var h2=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case cp:t.return=X1(t.value,t.length);break;case G1:return po([rs(t,{value:ee(t.value,"@","@"+J)})],r);case lp:if(t.length)return YP(t.props,function(o){switch(QP(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return po([rs(t,{props:[ee(o,/:(read-\w+)/,":"+ac+"$1")]})],r);case"::placeholder":return po([rs(t,{props:[ee(o,/:(plac\w+)/,":"+J+"input-$1")]}),rs(t,{props:[ee(o,/:(plac\w+)/,":"+ac+"$1")]}),rs(t,{props:[ee(o,/:(plac\w+)/,Ye+"input-$1")]})],r)}return""})}},p2=[h2],m2=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=t.stylisPlugins||p2,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),m=1;m=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var M2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},E2=!1,_2=/[A-Z]|^ms/g,R2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rw=function(t){return t.charCodeAt(1)===45},Ag=function(t){return t!=null&&typeof t!="boolean"},ef=W1(function(e){return rw(e)?e:e.replace(_2,"-$&").toLowerCase()}),Og=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(R2,function(i,r,o){return kn={name:r,styles:o,next:kn},r})}return M2[t]!==1&&!rw(t)&&typeof n=="number"&&n!==0?n+"px":n},A2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ta(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return kn={name:r.name,styles:r.styles,next:kn},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)kn={name:s.name,styles:s.styles,next:kn},s=s.next;var a=o.styles+";";return a}return O2(e,t,n)}case"function":{if(e!==void 0){var l=kn,c=n(e);return kn=l,ta(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function O2(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r96?$2:F2},Dg=function(t,n,i){var r;if(n){var o=n.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof r!="function"&&i&&(r=t.__emotion_forwardProp),r},j2=!1,N2=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return nw(n,i,r),L2(function(){return iw(n,i,r)}),null},V2=function e(t,n){var i=t.__emotion_real===t,r=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Dg(t,n,i),l=a||Ig(r),c=!l("as");return function(){var u=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,p=1;pt(U2(r)?n:r):t;return P.jsx(I2,{styles:i})}/** - * @mui/styled-engine v6.1.7 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function cw(e,t){return Ad(e,t)}function W2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const $g=[];function Fg(e){return $g[0]=e,eu($g)}function Tn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uw(e){if(!Tn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uw(e[n])}),t}function ct(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Tn(e)&&Tn(t)&&Object.keys(t).forEach(r=>{Tn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Tn(e[r])?i[r]=ct(e[r],t[r],n):n.clone?i[r]=Tn(t[r])?uw(t[r]):t[r]:i[r]=t[r]}),i}const H2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function G2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...r}=e,o=H2(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-i/100}${n})`}function c(d,p){const y=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:p)-i/100}${n})`}function u(d){return s.indexOf(d)+1i.startsWith("@container")).sort((i,r)=>{var s,a;const o=/min-width:\s*([0-9.]+)/;return+(((s=i.match(o))==null?void 0:s[1])||0)-+(((a=r.match(o))==null?void 0:a[1])||0)});return n.length?n.reduce((i,r)=>{const o=t[r];return delete i[r],i[r]=o,i},{...t}):t}function q2(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Q2(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,i,r]=n,o=Number.isNaN(+i)?i||0:+i;return e.containerQueries(r).up(o)}function Y2(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>t(e.breakpoints.up(...a),s),o.down=(...a)=>t(e.breakpoints.down(...a),s),o.between=(...a)=>t(e.breakpoints.between(...a),s),o.only=(...a)=>t(e.breakpoints.only(...a),s),o.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const i={},r=o=>(n(i,o),i);return n(r),{...e,containerQueries:r}}const X2={borderRadius:4};function As(e,t){return t?ct(e,t,{clone:!1}):e}const nu={xs:0,sm:600,md:900,lg:1200,xl:1536},jg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nu[e]}px)`},Z2={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:nu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wt(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||jg;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=i.breakpoints||jg;return Object.keys(t).reduce((s,a)=>{if(q2(o.keys,a)){const l=Q2(i.containerQueries?i:Z2,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(o.values||nu).includes(a)){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function fw(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,r)=>{const o=e.up(r);return i[o]={},i},{}))||{}}function dw(e,t){return e.reduce((n,i)=>{const r=n[i];return(!r||Object.keys(r).length===0)&&delete n[i],n},t)}function J2(e,...t){const n=fw(e),i=[n,...t].reduce((r,o)=>ct(r,o),{});return dw(Object.keys(n),i)}function eT(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((r,o)=>{o{e[r]!=null&&(n[r]=!0)}),n}function dr({values:e,breakpoints:t,base:n}){const i=n||eT(e,t),r=Object.keys(i);if(r.length===0)return e;let o;return r.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function G(e){if(typeof e!="string")throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function iu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,r)=>i&&i[r]!=null?i[r]:null,e)}function lc(e,t,n,i=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||i:r=iu(e,n)||i,t&&(r=t(r,i,e)),r}function _e(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:r}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=iu(l,i)||{};return wt(s,a,f=>{let d=lc(c,r,f);return f===d&&typeof f=="string"&&(d=lc(c,r,`${t}${f==="default"?"":G(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function tT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nT={m:"margin",p:"padding"},iT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ng={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rT=tT(e=>{if(e.length>2)if(Ng[e])e=Ng[e];else return[e];const[t,n]=e.split(""),i=nT[t],r=iT[n]||"";return Array.isArray(r)?r.map(o=>i+o):[i+r]}),mp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...mp,...gp];function va(e,t,n,i){const r=iu(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?o=>typeof o=="string"?o:typeof r=="string"?`calc(${o} * ${r})`:r*o:Array.isArray(r)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),a=r[s];return o>=0?a:typeof a=="number"?-a:`-${a}`}:typeof r=="function"?r:()=>{}}function ru(e){return va(e,"spacing",8)}function br(e,t){return typeof t=="string"||t==null?t:e(t)}function oT(e,t){return n=>e.reduce((i,r)=>(i[r]=br(t,n),i),{})}function sT(e,t,n,i){if(!t.includes(n))return null;const r=rT(n),o=oT(r,i),s=e[n];return wt(e,s,o)}function hw(e,t){const n=ru(e.theme);return Object.keys(e).map(i=>sT(e,t,i,n)).reduce(As,{})}function be(e){return hw(e,mp)}be.propTypes={};be.filterProps=mp;function Se(e){return hw(e,gp)}Se.propTypes={};Se.filterProps=gp;function pw(e=8,t=ru({spacing:e})){if(e.mui)return e;const n=(...i)=>(i.length===0?[1]:i).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function ou(...e){const t=e.reduce((i,r)=>(r.filterProps.forEach(o=>{i[o]=r}),i),{}),n=i=>Object.keys(i).reduce((r,o)=>t[o]?As(r,t[o](i)):r,{});return n.propTypes={},n.filterProps=e.reduce((i,r)=>i.concat(r.filterProps),[]),n}function Ut(e){return typeof e!="number"?e:`${e}px solid`}function Xt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const aT=Xt("border",Ut),lT=Xt("borderTop",Ut),cT=Xt("borderRight",Ut),uT=Xt("borderBottom",Ut),fT=Xt("borderLeft",Ut),dT=Xt("borderColor"),hT=Xt("borderTopColor"),pT=Xt("borderRightColor"),mT=Xt("borderBottomColor"),gT=Xt("borderLeftColor"),yT=Xt("outline",Ut),vT=Xt("outlineColor"),su=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=va(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:br(t,i)});return wt(e,e.borderRadius,n)}return null};su.propTypes={};su.filterProps=["borderRadius"];ou(aT,lT,cT,uT,fT,dT,hT,pT,mT,gT,su,yT,vT);const au=e=>{if(e.gap!==void 0&&e.gap!==null){const t=va(e.theme,"spacing",8),n=i=>({gap:br(t,i)});return wt(e,e.gap,n)}return null};au.propTypes={};au.filterProps=["gap"];const lu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=va(e.theme,"spacing",8),n=i=>({columnGap:br(t,i)});return wt(e,e.columnGap,n)}return null};lu.propTypes={};lu.filterProps=["columnGap"];const cu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=va(e.theme,"spacing",8),n=i=>({rowGap:br(t,i)});return wt(e,e.rowGap,n)}return null};cu.propTypes={};cu.filterProps=["rowGap"];const xT=_e({prop:"gridColumn"}),wT=_e({prop:"gridRow"}),bT=_e({prop:"gridAutoFlow"}),ST=_e({prop:"gridAutoColumns"}),CT=_e({prop:"gridAutoRows"}),kT=_e({prop:"gridTemplateColumns"}),PT=_e({prop:"gridTemplateRows"}),TT=_e({prop:"gridTemplateAreas"}),MT=_e({prop:"gridArea"});ou(au,lu,cu,xT,wT,bT,ST,CT,kT,PT,TT,MT);function mo(e,t){return t==="grey"?t:e}const ET=_e({prop:"color",themeKey:"palette",transform:mo}),_T=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),RT=_e({prop:"backgroundColor",themeKey:"palette",transform:mo});ou(ET,_T,RT);function Tt(e){return e<=1&&e!==0?`${e*100}%`:e}const AT=_e({prop:"width",transform:Tt}),yp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,s,a,l;const i=((s=(o=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:o.values)==null?void 0:s[n])||nu[n];return i?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tt(n)}};return wt(e,e.maxWidth,t)}return null};yp.filterProps=["maxWidth"];const OT=_e({prop:"minWidth",transform:Tt}),zT=_e({prop:"height",transform:Tt}),LT=_e({prop:"maxHeight",transform:Tt}),IT=_e({prop:"minHeight",transform:Tt});_e({prop:"size",cssProperty:"width",transform:Tt});_e({prop:"size",cssProperty:"height",transform:Tt});const DT=_e({prop:"boxSizing"});ou(AT,yp,OT,zT,LT,IT,DT);const xa={border:{themeKey:"borders",transform:Ut},borderTop:{themeKey:"borders",transform:Ut},borderRight:{themeKey:"borders",transform:Ut},borderBottom:{themeKey:"borders",transform:Ut},borderLeft:{themeKey:"borders",transform:Ut},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ut},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:su},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:Se},pt:{style:Se},pr:{style:Se},pb:{style:Se},pl:{style:Se},px:{style:Se},py:{style:Se},padding:{style:Se},paddingTop:{style:Se},paddingRight:{style:Se},paddingBottom:{style:Se},paddingLeft:{style:Se},paddingX:{style:Se},paddingY:{style:Se},paddingInline:{style:Se},paddingInlineStart:{style:Se},paddingInlineEnd:{style:Se},paddingBlock:{style:Se},paddingBlockStart:{style:Se},paddingBlockEnd:{style:Se},m:{style:be},mt:{style:be},mr:{style:be},mb:{style:be},ml:{style:be},mx:{style:be},my:{style:be},margin:{style:be},marginTop:{style:be},marginRight:{style:be},marginBottom:{style:be},marginLeft:{style:be},marginX:{style:be},marginY:{style:be},marginInline:{style:be},marginInlineStart:{style:be},marginInlineEnd:{style:be},marginBlock:{style:be},marginBlockStart:{style:be},marginBlockEnd:{style:be},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:au},rowGap:{style:cu},columnGap:{style:lu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tt},maxWidth:{style:yp},minWidth:{transform:Tt},height:{transform:Tt},maxHeight:{transform:Tt},minHeight:{transform:Tt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $T(...e){const t=e.reduce((i,r)=>i.concat(Object.keys(r)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function FT(e,t){return typeof e=="function"?e(t):e}function jT(){function e(n,i,r,o){const s={[n]:i,theme:r},a=o[n];if(!a)return{[n]:i};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(i==null)return null;if(c==="typography"&&i==="inherit")return{[n]:i};const d=iu(r,c)||{};return f?f(s):wt(s,i,y=>{let h=lc(d,u,y);return y===h&&typeof y=="string"&&(h=lc(d,u,`${n}${y==="default"?"":G(y)}`,y)),l===!1?h:{[l]:h}})}function t(n){const{sx:i,theme:r={}}=n||{};if(!i)return null;const o=r.unstable_sxConfig??xa;function s(a){let l=a;if(typeof a=="function")l=a(r);else if(typeof a!="object")return a;if(!l)return null;const c=fw(r.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(d=>{const p=FT(l[d],r);if(p!=null)if(typeof p=="object")if(o[d])f=As(f,e(d,p,r,o));else{const y=wt({theme:r},p,h=>({[d]:h}));$T(y,p)?f[d]=t({sx:p,theme:r}):f=As(f,y)}else f=As(f,e(d,p,r,o))}),K2(r,dw(u,f))}return Array.isArray(i)?i.map(s):s(i)}return t}const Mi=jT();Mi.filterProps=["sx"];function NT(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function wa(e={},...t){const{breakpoints:n={},palette:i={},spacing:r,shape:o={},...s}=e,a=G2(n),l=pw(r);let c=ct({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:l,shape:{...X2,...o}},s);return c=Y2(c),c.applyStyles=NT,c=t.reduce((u,f)=>ct(u,f),c),c.unstable_sxConfig={...xa,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(f){return Mi({sx:f,theme:this})},c}function VT(e){return Object.keys(e).length===0}function vp(e=null){const t=k.useContext(tu);return!t||VT(t)?e:t}const BT=wa();function uu(e=BT){return vp(e)}function UT({styles:e,themeId:t,defaultTheme:n={}}){const i=uu(n),r=typeof e=="function"?e(t&&i[t]||i):e;return P.jsx(lw,{styles:r})}const WT=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??xa;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function fu(e){const{sx:t,...n}=e,{systemProps:i,otherProps:r}=WT(n);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Tn(a)?{...i,...a}:i}:o={...i,...t},{...r,sx:o}}const Vg=e=>e,HT=()=>{let e=Vg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vg}}},mw=HT();function gw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Mi);return k.forwardRef(function(l,c){const u=uu(n),{className:f,component:d="div",...p}=fu(l);return P.jsx(o,{as:d,ref:c,className:ge(f,r?r(i):i),theme:t&&u[t]||u,...p})})}const KT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ii(e,t,n="Mui"){const i=KT[t];return i?`${n}-${i}`:`${mw.generate(e)}-${t}`}function $i(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=ii(e,r,n)}),i}function yw(e){const{variants:t,...n}=e,i={variants:t,style:Fg(n),isProcessed:!0};return i.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Fg(r.style))}),i}const qT=wa();function tf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function QT(e){return e?(t,n)=>n[e]:null}function YT(e,t,n){e.theme=ZT(e.theme)?n:e.theme[t]||e.theme}function El(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>El(e,i));if(Array.isArray(n==null?void 0:n.variants)){let i;if(n.isProcessed)i=n.style;else{const{variants:r,...o}=n;i=o}return vw(e,n.variants,[i])}return n!=null&&n.isProcessed?n.style:n}function vw(e,t,n=[]){var r;let i;e:for(let o=0;o{W2(a,S=>S.filter(C=>C!==Mi));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=QT(eM(u)),...y}=l,h=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let m=tf;u==="Root"||u==="root"?m=i:u?m=r:JT(a)&&(m=void 0);const g=cw(a,{shouldForwardProp:m,label:XT(),...y}),v=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(T){return El(T,S)};if(Tn(S)){const C=yw(S);return C.variants?function(M){return El(M,C)}:C.style}return S},w=(...S)=>{const C=[],T=S.map(v),M=[];if(C.push(o),c&&p&&M.push(function(R){var ne,U;const D=(U=(ne=R.theme.components)==null?void 0:ne[c])==null?void 0:U.styleOverrides;if(!D)return null;const Y={};for(const O in D)Y[O]=El(R,D[O]);return p(R,Y)}),c&&!h&&M.push(function(R){var Y,ne;const F=R.theme,D=(ne=(Y=F==null?void 0:F.components)==null?void 0:Y[c])==null?void 0:ne.variants;return D?vw(R,D):null}),b||M.push(Mi),Array.isArray(T[0])){const _=T.shift(),R=new Array(C.length).fill(""),F=new Array(M.length).fill("");let D;D=[...R,..._,...F],D.raw=[...R,..._.raw,...F],C.unshift(D)}const z=[...C,...T,...M],x=g(...z);return a.muiName&&(x.muiName=a.muiName),x};return g.withConfig&&(w.withConfig=g.withConfig),w}}function XT(e,t){return void 0}function ZT(e){for(const t in e)return!1;return!0}function JT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ww=xw();function cc(e,t){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const r=i;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const o=e[r],s=t[r];if(!s)n[r]=o||{};else if(!o)n[r]=s;else{n[r]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const l=a;n[r][l]=cc(o[l],s[l])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function bw(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:cc(t.components[n].defaultProps,i)}function Sw({props:e,name:t,defaultTheme:n,themeId:i}){let r=uu(n);return i&&(r=r[i]||r),bw({theme:r,name:t,props:e})}const Cw=typeof window<"u"?k.useLayoutEffect:k.useEffect;function tM(e,t,n,i,r){const[o,s]=k.useState(()=>r&&n?n(e).matches:i?i(e).matches:t);return Cw(()=>{if(!n)return;const a=n(e),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),o}const nM={...Il},kw=nM.useSyncExternalStore;function iM(e,t,n,i,r){const o=k.useCallback(()=>t,[t]),s=k.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(i!==null){const{matches:u}=i(e);return()=>u}return o},[o,e,i,r,n]),[a,l]=k.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[o,n,e]);return kw(l,a,s)}function rM(e={}){const{themeId:t}=e;return function(i,r={}){let o=vp();o&&t&&(o=o[t]||o);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=bw({name:"MuiUseMediaQuery",props:r,theme:o});let f=typeof i=="function"?i(o):i;return f=f.replace(/^@media( ?)/m,""),(kw!==void 0?iM:tM)(f,a,l,c,u)}}function oM(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function xp(e,t=0,n=1){return oM(e,t,n)}function sM(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,r)=>r<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Ei(e){if(e.type)return e;if(e.charAt(0)==="#")return Ei(sM(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(wr(9,e));let i=e.substring(t+1,e.length-1),r;if(n==="color"){if(i=i.split(" "),r=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(wr(10,r))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:n,values:i,colorSpace:r}}const aM=e=>{const t=Ei(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},ys=(e,t)=>{try{return aM(e)}catch{return e}};function du(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((r,o)=>o<3?parseInt(r,10):r):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Pw(e){e=Ei(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),s=(c,u=(c+n/30)%12)=>r-o*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),du({type:a,values:l})}function Od(e){e=Ei(e);let t=e.type==="hsl"||e.type==="hsla"?Ei(Pw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function lM(e,t){const n=Od(e),i=Od(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Ct(e,t){return e=Ei(e),t=xp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,du(e)}function Xa(e,t,n){try{return Ct(e,t)}catch{return e}}function wp(e,t){if(e=Ei(e),t=xp(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return du(e)}function se(e,t,n){try{return wp(e,t)}catch{return e}}function bp(e,t){if(e=Ei(e),t=xp(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return du(e)}function ae(e,t,n){try{return bp(e,t)}catch{return e}}function cM(e,t=.15){return Od(e)>.5?wp(e,t):bp(e,t)}function Za(e,t,n){try{return cM(e,t)}catch{return e}}function uM(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ja(e){const t=k.useRef(e);return Cw(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function zd(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{uM(n,t)})},e)}const Bg={};function Tw(e,t){const n=k.useRef(Bg);return n.current===Bg&&(n.current=e(t)),n}const fM=[];function dM(e){k.useEffect(e,fM)}class Sp{constructor(){Qo(this,"currentId",null);Qo(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Qo(this,"disposeEffect",()=>this.clear)}static create(){return new Sp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hM(){const e=Tw(Sp.create).current;return dM(e.disposeEffect),e}function Ug(e){try{return e.matches(":focus-visible")}catch{}return!1}function Fi(e,t,n=void 0){const i={};for(const r in e){const o=e[r];let s="",a=!0;for(let l=0;l{const o=i===null?{...n}:gM(i,n);return o!=null&&(o[mM]=i!==null),o},[n,i]);return P.jsx(Mw.Provider,{value:r,children:t})}const vM=k.createContext();function xM({value:e,...t}){return P.jsx(vM.Provider,{value:e??!0,...t})}const Ew=k.createContext(void 0);function wM({value:e,children:t}){return P.jsx(Ew.Provider,{value:e,children:t})}function bM(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const r=t.components[n];return r.defaultProps?cc(r.defaultProps,i):!r.styleOverrides&&!r.variants?cc(r,i):i}function SM({props:e,name:t}){const n=k.useContext(Ew);return bM({props:e,name:t,theme:{components:n}})}const Wg={};function Hg(e,t,n,i=!1){return k.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const o=n(r),s=e?{...t,[e]:o}:o;return i?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,i])}function _w(e){const{children:t,theme:n,themeId:i}=e,r=vp(Wg),o=Cp()||Wg,s=Hg(i,r,n),a=Hg(i,o,n,!0),l=(i?s[i]:s).direction==="rtl";return P.jsx(yM,{theme:a,children:P.jsx(tu.Provider,{value:s,children:P.jsx(xM,{value:l,children:P.jsx(wM,{value:i?s[i].components:s.components,children:t})})})})}const Gg={theme:void 0};function CM(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(Gg.theme=r.theme,o=yw(e(Gg)),t=o,n=r.theme),o}}const kp="mode",Pp="color-scheme",kM="data-color-scheme";function PM(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:i="dark",modeStorageKey:r=kp,colorSchemeStorageKey:o=Pp,attribute:s=kM,colorSchemeNode:a="document.documentElement",nonce:l}=e||{};let c="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const d=u.substring(1);c+=`${a}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark)); - ${a}.classList.add('${d}'.replace('%s', colorScheme));`}const f=u.match(/\[([^\]]+)\]/);if(f){const[d,p]=f[1].split("=");p||(c+=`${a}.removeAttribute('${d}'.replace('%s', light)); - ${a}.removeAttribute('${d}'.replace('%s', dark));`),c+=` - ${a}.setAttribute('${d}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else c+=`${a}.setAttribute('${u}', colorScheme);`;return P.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${r}') || '${t}'; - const dark = localStorage.getItem('${o}-dark') || '${i}'; - const light = localStorage.getItem('${o}-light') || '${n}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${c} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function Kg(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Rw(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function TM(e){return Rw(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function nf(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function MM(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:i,supportedColorSchemes:r=[],modeStorageKey:o=kp,colorSchemeStorageKey:s=Pp,storageWindow:a=typeof window>"u"?void 0:window}=e,l=r.join(","),c=r.length>1,[u,f]=k.useState(()=>{const v=nf(o,t),w=nf(`${s}-light`,n),S=nf(`${s}-dark`,i);return{mode:v,systemMode:Kg(v),lightColorScheme:w,darkColorScheme:S}}),[,d]=k.useState(!1),p=k.useRef(!1);k.useEffect(()=>{c&&d(!0),p.current=!0},[c]);const y=TM(u),h=k.useCallback(v=>{f(w=>{if(v===w.mode)return w;const S=v??t;try{localStorage.setItem(o,S)}catch{}return{...w,mode:S,systemMode:Kg(S)}})},[o,t]),b=k.useCallback(v=>{v?typeof v=="string"?v&&!l.includes(v)?console.error(`\`${v}\` does not exist in \`theme.colorSchemes\`.`):f(w=>{const S={...w};return Rw(w,C=>{try{localStorage.setItem(`${s}-${C}`,v)}catch{}C==="light"&&(S.lightColorScheme=v),C==="dark"&&(S.darkColorScheme=v)}),S}):f(w=>{const S={...w},C=v.light===null?n:v.light,T=v.dark===null?i:v.dark;if(C)if(!l.includes(C))console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);else{S.lightColorScheme=C;try{localStorage.setItem(`${s}-light`,C)}catch{}}if(T)if(!l.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{S.darkColorScheme=T;try{localStorage.setItem(`${s}-dark`,T)}catch{}}return S}):f(w=>{try{localStorage.setItem(`${s}-light`,n),localStorage.setItem(`${s}-dark`,i)}catch{}return{...w,lightColorScheme:n,darkColorScheme:i}})},[l,s,n,i]),m=k.useCallback(v=>{u.mode==="system"&&f(w=>{const S=v!=null&&v.matches?"dark":"light";return w.systemMode===S?w:{...w,systemMode:S}})},[u.mode]),g=k.useRef(m);return g.current=m,k.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const v=(...S)=>g.current(...S),w=window.matchMedia("(prefers-color-scheme: dark)");return w.addListener(v),v(w),()=>{w.removeListener(v)}},[c]),k.useEffect(()=>{if(a&&c){const v=w=>{const S=w.newValue;typeof w.key=="string"&&w.key.startsWith(s)&&(!S||l.match(S))&&(w.key.endsWith("light")&&b({light:S}),w.key.endsWith("dark")&&b({dark:S})),w.key===o&&(!S||["light","dark","system"].includes(S))&&h(S||t)};return a.addEventListener("storage",v),()=>{a.removeEventListener("storage",v)}}},[b,h,o,s,l,t,a,c]),{...u,mode:p.current||!c?u.mode:void 0,systemMode:p.current||!c?u.systemMode:void 0,colorScheme:p.current||!c?y:void 0,setMode:h,setColorScheme:b}}const EM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function _M(e){const{themeId:t,theme:n={},modeStorageKey:i=kp,colorSchemeStorageKey:r=Pp,disableTransitionOnChange:o=!1,defaultColorScheme:s,resolveTheme:a}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=k.createContext(void 0),u=()=>k.useContext(c)||l;function f(h){var Ra,B,Ko,Aa,qo;const{children:b,theme:m,modeStorageKey:g=i,colorSchemeStorageKey:v=r,disableTransitionOnChange:w=o,storageWindow:S=typeof window>"u"?void 0:window,documentNode:C=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:z=!1,defaultMode:x="system"}=h,_=k.useRef(!1),R=Cp(),F=k.useContext(c),D=!!F&&!M,Y=k.useMemo(()=>m||(typeof n=="function"?n():n),[m]),ne=Y[t],{colorSchemes:U={},components:O={},cssVarPrefix:I,...j}=ne||Y,W=Object.keys(U).filter(Pe=>!!U[Pe]).join(","),te=k.useMemo(()=>W.split(","),[W]),Dn=typeof s=="string"?s:s.light,Re=typeof s=="string"?s:s.dark,Bi=U[Dn]&&U[Re]?x:((B=(Ra=U[j.defaultColorScheme])==null?void 0:Ra.palette)==null?void 0:B.mode)||((Ko=j.palette)==null?void 0:Ko.mode),{mode:Jt,setMode:$n,systemMode:Pa,lightColorScheme:Ta,darkColorScheme:Ma,colorScheme:Pu,setColorScheme:Ea}=MM({supportedColorSchemes:te,defaultLightColorScheme:Dn,defaultDarkColorScheme:Re,modeStorageKey:g,colorSchemeStorageKey:v,defaultMode:Bi,storageWindow:S});let Ho=Jt,bt=Pu;D&&(Ho=F.mode,bt=F.colorScheme);const Rr=bt||j.defaultColorScheme,Tu=((Aa=j.generateThemeVars)==null?void 0:Aa.call(j))||j.vars,St={...j,components:O,colorSchemes:U,cssVarPrefix:I,vars:Tu};if(typeof St.generateSpacing=="function"&&(St.spacing=St.generateSpacing()),Rr){const Pe=U[Rr];Pe&&typeof Pe=="object"&&Object.keys(Pe).forEach(Ae=>{Pe[Ae]&&typeof Pe[Ae]=="object"?St[Ae]={...St[Ae],...Pe[Ae]}:St[Ae]=Pe[Ae]})}const gn=j.colorSchemeSelector;k.useEffect(()=>{if(bt&&T&&gn&&gn!=="media"){const Pe=gn;let Ae=gn;if(Pe==="class"&&(Ae=".%s"),Pe==="data"&&(Ae="[data-%s]"),Pe!=null&&Pe.startsWith("data-")&&!Pe.includes("%s")&&(Ae=`[${Pe}="%s"]`),Ae.startsWith("."))T.classList.remove(...te.map(Oa=>Ae.substring(1).replace("%s",Oa))),T.classList.add(Ae.substring(1).replace("%s",bt));else{const Oa=Ae.replace("%s",bt).match(/\[([^\]]+)\]/);if(Oa){const[vm,Mu]=Oa[1].split("=");Mu||te.forEach(aC=>{T.removeAttribute(vm.replace(bt,aC))}),T.setAttribute(vm,Mu?Mu.replace(/"|'/g,""):"")}else T.setAttribute(Ae,bt)}}},[bt,gn,T,te]),k.useEffect(()=>{let Pe;if(w&&_.current&&C){const Ae=C.createElement("style");Ae.appendChild(C.createTextNode(EM)),C.head.appendChild(Ae),window.getComputedStyle(C.body),Pe=setTimeout(()=>{C.head.removeChild(Ae)},1)}return()=>{clearTimeout(Pe)}},[bt,w,C]),k.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const Ui=k.useMemo(()=>({allColorSchemes:te,colorScheme:bt,darkColorScheme:Ma,lightColorScheme:Ta,mode:Ho,setColorScheme:Ea,setMode:$n,systemMode:Pa}),[te,bt,Ma,Ta,Ho,Ea,$n,Pa]);let _a=!0;(z||j.cssVariables===!1||D&&(R==null?void 0:R.cssVarPrefix)===I)&&(_a=!1);const Go=P.jsxs(k.Fragment,{children:[P.jsx(_w,{themeId:ne?t:void 0,theme:a?a(St):St,children:b}),_a&&P.jsx(lw,{styles:((qo=St.generateStyleSheets)==null?void 0:qo.call(St))||[]})]});return D?Go:P.jsx(c.Provider,{value:Ui,children:Go})}const d=typeof s=="string"?s:s.light,p=typeof s=="string"?s:s.dark;return{CssVarsProvider:f,useColorScheme:u,getInitColorSchemeScript:h=>PM({colorSchemeStorageKey:r,defaultLightColorScheme:d,defaultDarkColorScheme:p,modeStorageKey:i,...h})}}function RM(e=""){function t(...i){if(!i.length)return"";const r=i[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...i.slice(1))})`:`, ${r}`}return(i,...r)=>`var(--${e?`${e}-`:""}${i}${t(...r)})`}const qg=(e,t,n,i=[])=>{let r=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(r)?r[Number(o)]=n:r&&typeof r=="object"&&(r[o]=n):r&&typeof r=="object"&&(r[o]||(r[o]=i.includes(o)?[]:{}),r=r[o])})},AM=(e,t,n)=>{function i(r,o=[],s=[]){Object.entries(r).forEach(([a,l])=>{(!n||n&&!n([...o,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?i(l,[...o,a],Array.isArray(l)?[...s,a]:s):t([...o,a],l,s))})}i(e)},OM=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function rf(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},r={},o={},s={};return AM(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!i||!i(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,f=OM(a,l);Object.assign(r,{[u]:f}),qg(o,a,`var(${u})`,c),qg(s,a,`var(${u}, ${f})`,c)}},a=>a[0]==="vars"),{css:r,vars:o,varsWithDefaults:s}}function zM(e,t={}){const{getSelector:n=b,disableCssColorScheme:i,colorSchemeSelector:r}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=rf(l,t);let d=f;const p={},{[a]:y,...h}=o;if(Object.entries(h||{}).forEach(([v,w])=>{const{vars:S,css:C,varsWithDefaults:T}=rf(w,t);d=ct(d,T),p[v]={css:C,vars:S}}),y){const{css:v,vars:w,varsWithDefaults:S}=rf(y,t);d=ct(d,S),p[a]={css:v,vars:w}}function b(v,w){var C,T;let S=r;if(r==="class"&&(S=".%s"),r==="data"&&(S="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(S=`[${r}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((T=(C=o[v])==null?void 0:C.palette)==null?void 0:T.mode)||v})`]:{":root":w}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...c};return Object.entries(p).forEach(([,{vars:w}])=>{v=ct(v,w)}),v},generateStyleSheets:()=>{var M,z;const v=[],w=e.defaultColorScheme||"light";function S(x,_){Object.keys(_).length&&v.push(typeof x=="string"?{[x]:{..._}}:x)}S(n(void 0,{...u}),u);const{[w]:C,...T}=p;if(C){const{css:x}=C,_=(z=(M=o[w])==null?void 0:M.palette)==null?void 0:z.mode,R=!i&&_?{colorScheme:_,...x}:{...x};S(n(w,{...R}),R)}return Object.entries(T).forEach(([x,{css:_}])=>{var D,Y;const R=(Y=(D=o[x])==null?void 0:D.palette)==null?void 0:Y.mode,F=!i&&R?{colorScheme:R,..._}:{..._};S(n(x,{...F}),F)}),v}}}function LM(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const IM=wa(),DM=ww("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${G(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),$M=e=>Sw({props:e,name:"MuiContainer",defaultTheme:IM}),FM=(e,t)=>{const n=l=>ii(t,l),{classes:i,fixed:r,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${G(String(s))}`,r&&"fixed",o&&"disableGutters"]};return Fi(a,n,i)};function jM(e={}){const{createStyledComponent:t=DM,useThemeProps:n=$M,componentName:i="MuiContainer"}=e,r=t(({theme:s,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>({...a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}}));return k.forwardRef(function(a,l){const c=n(a),{className:u,component:f="div",disableGutters:d=!1,fixed:p=!1,maxWidth:y="lg",classes:h,...b}=c,m={...c,component:f,disableGutters:d,fixed:p,maxWidth:y},g=FM(m,i);return P.jsx(r,{as:f,ownerState:m,className:ge(g.root,u),ref:l,...b})})}const NM=wa(),VM=ww("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function BM(e){return Sw({props:e,name:"MuiStack",defaultTheme:NM})}function UM(e,t){const n=k.Children.toArray(e).filter(Boolean);return n.reduce((i,r,o)=>(i.push(r),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],HM=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...wt({theme:t},dr({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i}))};if(e.spacing){const i=ru(t),r=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=dr({values:e.direction,base:r}),s=dr({values:e.spacing,base:r});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const d=c>0?o[u[c-1]]:"column";o[l]=d}}),n=ct(n,wt({theme:t},s,(l,c)=>e.useFlexGap?{gap:br(i,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${WM(c?o[c]:e.direction)}`]:br(i,l)}}))}return n=J2(t.breakpoints,n),n};function GM(e={}){const{createStyledComponent:t=VM,useThemeProps:n=BM,componentName:i="MuiStack"}=e,r=()=>Fi({root:["root"]},l=>ii(i,l),{}),o=t(HM);return k.forwardRef(function(l,c){const u=n(l),f=fu(u),{component:d="div",direction:p="column",spacing:y=0,divider:h,children:b,className:m,useFlexGap:g=!1,...v}=f,w={direction:p,spacing:y,useFlexGap:g},S=r();return P.jsx(o,{as:d,ownerState:w,ref:c,className:ge(S.root,m),...v,children:h?UM(b,h):b})})}const na={black:"#000",white:"#fff"},KM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Or={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},os={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Lr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ir={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Dr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Aw(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:na.white,default:na.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const qM=Aw();function Ow(){return{text:{primary:na.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:na.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qg=Ow();function Yg(e,t,n,i){const r=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bp(e.main,r):t==="dark"&&(e.dark=wp(e.main,o)))}function QM(e="light"){return e==="dark"?{main:Lr[200],light:Lr[50],dark:Lr[400]}:{main:Lr[700],light:Lr[400],dark:Lr[800]}}function YM(e="light"){return e==="dark"?{main:Or[200],light:Or[50],dark:Or[400]}:{main:Or[500],light:Or[300],dark:Or[700]}}function XM(e="light"){return e==="dark"?{main:zr[500],light:zr[300],dark:zr[700]}:{main:zr[700],light:zr[400],dark:zr[800]}}function ZM(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:Ir[700],light:Ir[500],dark:Ir[900]}}function JM(e="light"){return e==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:Dr[800],light:Dr[500],dark:Dr[900]}}function eE(e="light"){return e==="dark"?{main:os[400],light:os[300],dark:os[700]}:{main:"#ed6c02",light:os[500],dark:os[900]}}function Tp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,...r}=e,o=e.primary||QM(t),s=e.secondary||YM(t),a=e.error||XM(t),l=e.info||ZM(t),c=e.success||JM(t),u=e.warning||eE(t);function f(h){return lM(h,Qg.text.primary)>=n?Qg.text.primary:qM.text.primary}const d=({color:h,name:b,mainShade:m=500,lightShade:g=300,darkShade:v=700})=>{if(h={...h},!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(wr(11,b?` (${b})`:"",m));if(typeof h.main!="string")throw new Error(wr(12,b?` (${b})`:"",JSON.stringify(h.main)));return Yg(h,"light",g,i),Yg(h,"dark",v,i),h.contrastText||(h.contrastText=f(h.main)),h};let p;return t==="light"?p=Aw():t==="dark"&&(p=Ow()),ct({common:{...na},mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:KM,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:i,...p},r)}function tE(e){const t={};return Object.entries(e).forEach(i=>{const[r,o]=i;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function nE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function iE(e){return Math.round(e*1e5)/1e5}const Xg={textTransform:"uppercase"},Zg='"Roboto", "Helvetica", "Arial", sans-serif';function zw(e,t){const{fontFamily:n=Zg,fontSize:i=14,fontWeightLight:r=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,d=i/14,p=u||(b=>`${b/l*d}rem`),y=(b,m,g,v,w)=>({fontFamily:n,fontWeight:b,fontSize:p(m),lineHeight:g,...n===Zg?{letterSpacing:`${iE(v/m)}em`}:{},...w,...c}),h={h1:y(r,96,1.167,-1.5),h2:y(r,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(s,14,1.75,.4,Xg),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,Xg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ct({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:r,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...h},f,{clone:!1})}const rE=.2,oE=.14,sE=.12;function he(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${oE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sE})`].join(",")}const aE=["none",he(0,2,1,-1,0,1,1,0,0,1,3,0),he(0,3,1,-2,0,2,2,0,0,1,5,0),he(0,3,3,-2,0,3,4,0,0,1,8,0),he(0,2,4,-1,0,4,5,0,0,1,10,0),he(0,3,5,-1,0,5,8,0,0,1,14,0),he(0,3,5,-1,0,6,10,0,0,1,18,0),he(0,4,5,-2,0,7,10,1,0,2,16,1),he(0,5,5,-3,0,8,10,1,0,3,14,2),he(0,5,6,-3,0,9,12,1,0,3,16,2),he(0,6,6,-3,0,10,14,1,0,4,18,3),he(0,6,7,-4,0,11,15,1,0,4,20,3),he(0,7,8,-4,0,12,17,2,0,5,22,4),he(0,7,8,-4,0,13,19,2,0,5,24,4),he(0,7,9,-4,0,14,21,2,0,5,26,4),he(0,8,9,-5,0,15,22,2,0,6,28,5),he(0,8,10,-5,0,16,24,2,0,6,30,5),he(0,8,11,-5,0,17,26,2,0,6,32,5),he(0,9,11,-5,0,18,28,2,0,7,34,6),he(0,9,12,-6,0,19,29,2,0,7,36,6),he(0,10,13,-6,0,20,31,3,0,8,38,7),he(0,10,13,-6,0,21,33,3,0,8,40,7),he(0,10,14,-6,0,22,35,3,0,8,42,7),he(0,11,14,-7,0,23,36,3,0,9,44,8),he(0,11,15,-7,0,24,38,3,0,9,46,8)],lE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jg(e){return`${Math.round(e)}ms`}function uE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fE(e){const t={...lE,...e.easing},n={...cE,...e.duration};return{getAutoHeightDuration:uE,create:(r=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:Jg(s)} ${a} ${typeof l=="string"?l:Jg(l)}`).join(",")},...e,easing:t,duration:n}}const dE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hE(e){return Tn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Lw(e={}){const t={...e};function n(i){const r=Object.entries(i);for(let o=0;oct(p,y),d),d.unstable_sxConfig={...xa,...c==null?void 0:c.unstable_sxConfig},d.unstable_sx=function(y){return Mi({sx:y,theme:this})},d.toRuntimeSource=Lw,d}function Id(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const pE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Id(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Iw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Dw(e){return e==="dark"?pE:[]}function mE(e){const{palette:t={mode:"light"},opacity:n,overlays:i,...r}=e,o=Tp(t);return{palette:o,opacity:{...Iw(o.mode),...n},overlays:i||Dw(o.mode),...r}}function gE(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const yE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vE=e=>(t,n)=>{const i=e.rootSelector||":root",r=e.colorSchemeSelector;let o=r;if(r==="class"&&(o=".%s"),r==="data"&&(o="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return yE(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),o==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:s}}:o?{[o.replace("%s",t)]:s,[`${i}, ${o.replace("%s",t)}`]:n}:{[i]:{...n,...s}}}if(o&&o!=="media")return`${i}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(o)return o.replace("%s",String(t))}return i};function xE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function E(e,t,n){!e[t]&&n&&(e[t]=n)}function vs(e){return!e||!e.startsWith("hsl")?e:Pw(e)}function Fn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ys(vs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function wE(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const vn=e=>{try{return e()}catch{}},bE=(e="mui")=>RM(e);function of(e,t,n,i){if(!t)return;t=t===!0?{}:t;const r=i==="dark"?"dark":"light";if(!n){e[i]=mE({...t,palette:{mode:r,...t==null?void 0:t.palette}});return}const{palette:o,...s}=Ld({...n,palette:{mode:r,...t==null?void 0:t.palette}});return e[i]={...t,palette:o,opacity:{...Iw(r),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Dw(r)},s}function SE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:r=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=gE,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=i||(n.light&&u!=="light"?"light":u),d=bE(o),{[f]:p,light:y,dark:h,...b}=n,m={...b};let g=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(g=!0),!g)throw new Error(wr(21,f));const v=of(m,g,c,f);y&&!m.light&&of(m,y,void 0,"light"),h&&!m.dark&&of(m,h,void 0,"dark");let w={defaultColorScheme:f,...v,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:l,getCssVar:d,colorSchemes:m,font:{...tE(v.typography),...v.font},spacing:wE(c.spacing)};Object.keys(w.colorSchemes).forEach(z=>{const x=w.colorSchemes[z].palette,_=R=>{const F=R.split("-"),D=F[1],Y=F[2];return d(R,x[D][Y])};if(x.mode==="light"&&(E(x.common,"background","#fff"),E(x.common,"onBackground","#000")),x.mode==="dark"&&(E(x.common,"background","#000"),E(x.common,"onBackground","#fff")),xE(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){E(x.Alert,"errorColor",se(x.error.light,.6)),E(x.Alert,"infoColor",se(x.info.light,.6)),E(x.Alert,"successColor",se(x.success.light,.6)),E(x.Alert,"warningColor",se(x.warning.light,.6)),E(x.Alert,"errorFilledBg",_("palette-error-main")),E(x.Alert,"infoFilledBg",_("palette-info-main")),E(x.Alert,"successFilledBg",_("palette-success-main")),E(x.Alert,"warningFilledBg",_("palette-warning-main")),E(x.Alert,"errorFilledColor",vn(()=>x.getContrastText(x.error.main))),E(x.Alert,"infoFilledColor",vn(()=>x.getContrastText(x.info.main))),E(x.Alert,"successFilledColor",vn(()=>x.getContrastText(x.success.main))),E(x.Alert,"warningFilledColor",vn(()=>x.getContrastText(x.warning.main))),E(x.Alert,"errorStandardBg",ae(x.error.light,.9)),E(x.Alert,"infoStandardBg",ae(x.info.light,.9)),E(x.Alert,"successStandardBg",ae(x.success.light,.9)),E(x.Alert,"warningStandardBg",ae(x.warning.light,.9)),E(x.Alert,"errorIconColor",_("palette-error-main")),E(x.Alert,"infoIconColor",_("palette-info-main")),E(x.Alert,"successIconColor",_("palette-success-main")),E(x.Alert,"warningIconColor",_("palette-warning-main")),E(x.AppBar,"defaultBg",_("palette-grey-100")),E(x.Avatar,"defaultBg",_("palette-grey-400")),E(x.Button,"inheritContainedBg",_("palette-grey-300")),E(x.Button,"inheritContainedHoverBg",_("palette-grey-A100")),E(x.Chip,"defaultBorder",_("palette-grey-400")),E(x.Chip,"defaultAvatarColor",_("palette-grey-700")),E(x.Chip,"defaultIconColor",_("palette-grey-700")),E(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),E(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),E(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),E(x.LinearProgress,"primaryBg",ae(x.primary.main,.62)),E(x.LinearProgress,"secondaryBg",ae(x.secondary.main,.62)),E(x.LinearProgress,"errorBg",ae(x.error.main,.62)),E(x.LinearProgress,"infoBg",ae(x.info.main,.62)),E(x.LinearProgress,"successBg",ae(x.success.main,.62)),E(x.LinearProgress,"warningBg",ae(x.warning.main,.62)),E(x.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),E(x.Slider,"primaryTrack",ae(x.primary.main,.62)),E(x.Slider,"secondaryTrack",ae(x.secondary.main,.62)),E(x.Slider,"errorTrack",ae(x.error.main,.62)),E(x.Slider,"infoTrack",ae(x.info.main,.62)),E(x.Slider,"successTrack",ae(x.success.main,.62)),E(x.Slider,"warningTrack",ae(x.warning.main,.62));const R=Za(x.background.default,.8);E(x.SnackbarContent,"bg",R),E(x.SnackbarContent,"color",vn(()=>x.getContrastText(R))),E(x.SpeedDialAction,"fabHoverBg",Za(x.background.paper,.15)),E(x.StepConnector,"border",_("palette-grey-400")),E(x.StepContent,"border",_("palette-grey-400")),E(x.Switch,"defaultColor",_("palette-common-white")),E(x.Switch,"defaultDisabledColor",_("palette-grey-100")),E(x.Switch,"primaryDisabledColor",ae(x.primary.main,.62)),E(x.Switch,"secondaryDisabledColor",ae(x.secondary.main,.62)),E(x.Switch,"errorDisabledColor",ae(x.error.main,.62)),E(x.Switch,"infoDisabledColor",ae(x.info.main,.62)),E(x.Switch,"successDisabledColor",ae(x.success.main,.62)),E(x.Switch,"warningDisabledColor",ae(x.warning.main,.62)),E(x.TableCell,"border",ae(Xa(x.divider,1),.88)),E(x.Tooltip,"bg",Xa(x.grey[700],.92))}if(x.mode==="dark"){E(x.Alert,"errorColor",ae(x.error.light,.6)),E(x.Alert,"infoColor",ae(x.info.light,.6)),E(x.Alert,"successColor",ae(x.success.light,.6)),E(x.Alert,"warningColor",ae(x.warning.light,.6)),E(x.Alert,"errorFilledBg",_("palette-error-dark")),E(x.Alert,"infoFilledBg",_("palette-info-dark")),E(x.Alert,"successFilledBg",_("palette-success-dark")),E(x.Alert,"warningFilledBg",_("palette-warning-dark")),E(x.Alert,"errorFilledColor",vn(()=>x.getContrastText(x.error.dark))),E(x.Alert,"infoFilledColor",vn(()=>x.getContrastText(x.info.dark))),E(x.Alert,"successFilledColor",vn(()=>x.getContrastText(x.success.dark))),E(x.Alert,"warningFilledColor",vn(()=>x.getContrastText(x.warning.dark))),E(x.Alert,"errorStandardBg",se(x.error.light,.9)),E(x.Alert,"infoStandardBg",se(x.info.light,.9)),E(x.Alert,"successStandardBg",se(x.success.light,.9)),E(x.Alert,"warningStandardBg",se(x.warning.light,.9)),E(x.Alert,"errorIconColor",_("palette-error-main")),E(x.Alert,"infoIconColor",_("palette-info-main")),E(x.Alert,"successIconColor",_("palette-success-main")),E(x.Alert,"warningIconColor",_("palette-warning-main")),E(x.AppBar,"defaultBg",_("palette-grey-900")),E(x.AppBar,"darkBg",_("palette-background-paper")),E(x.AppBar,"darkColor",_("palette-text-primary")),E(x.Avatar,"defaultBg",_("palette-grey-600")),E(x.Button,"inheritContainedBg",_("palette-grey-800")),E(x.Button,"inheritContainedHoverBg",_("palette-grey-700")),E(x.Chip,"defaultBorder",_("palette-grey-700")),E(x.Chip,"defaultAvatarColor",_("palette-grey-300")),E(x.Chip,"defaultIconColor",_("palette-grey-300")),E(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),E(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),E(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),E(x.LinearProgress,"primaryBg",se(x.primary.main,.5)),E(x.LinearProgress,"secondaryBg",se(x.secondary.main,.5)),E(x.LinearProgress,"errorBg",se(x.error.main,.5)),E(x.LinearProgress,"infoBg",se(x.info.main,.5)),E(x.LinearProgress,"successBg",se(x.success.main,.5)),E(x.LinearProgress,"warningBg",se(x.warning.main,.5)),E(x.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),E(x.Slider,"primaryTrack",se(x.primary.main,.5)),E(x.Slider,"secondaryTrack",se(x.secondary.main,.5)),E(x.Slider,"errorTrack",se(x.error.main,.5)),E(x.Slider,"infoTrack",se(x.info.main,.5)),E(x.Slider,"successTrack",se(x.success.main,.5)),E(x.Slider,"warningTrack",se(x.warning.main,.5));const R=Za(x.background.default,.98);E(x.SnackbarContent,"bg",R),E(x.SnackbarContent,"color",vn(()=>x.getContrastText(R))),E(x.SpeedDialAction,"fabHoverBg",Za(x.background.paper,.15)),E(x.StepConnector,"border",_("palette-grey-600")),E(x.StepContent,"border",_("palette-grey-600")),E(x.Switch,"defaultColor",_("palette-grey-300")),E(x.Switch,"defaultDisabledColor",_("palette-grey-600")),E(x.Switch,"primaryDisabledColor",se(x.primary.main,.55)),E(x.Switch,"secondaryDisabledColor",se(x.secondary.main,.55)),E(x.Switch,"errorDisabledColor",se(x.error.main,.55)),E(x.Switch,"infoDisabledColor",se(x.info.main,.55)),E(x.Switch,"successDisabledColor",se(x.success.main,.55)),E(x.Switch,"warningDisabledColor",se(x.warning.main,.55)),E(x.TableCell,"border",se(Xa(x.divider,1),.68)),E(x.Tooltip,"bg",Xa(x.grey[700],.92))}Fn(x.background,"default"),Fn(x.background,"paper"),Fn(x.common,"background"),Fn(x.common,"onBackground"),Fn(x,"divider"),Object.keys(x).forEach(R=>{const F=x[R];F&&typeof F=="object"&&(F.main&&E(x[R],"mainChannel",ys(vs(F.main))),F.light&&E(x[R],"lightChannel",ys(vs(F.light))),F.dark&&E(x[R],"darkChannel",ys(vs(F.dark))),F.contrastText&&E(x[R],"contrastTextChannel",ys(vs(F.contrastText))),R==="text"&&(Fn(x[R],"primary"),Fn(x[R],"secondary")),R==="action"&&(F.active&&Fn(x[R],"active"),F.selected&&Fn(x[R],"selected")))})}),w=t.reduce((z,x)=>ct(z,x),w);const S={prefix:o,disableCssColorScheme:r,shouldSkipGeneratingVar:s,getSelector:vE(w)},{vars:C,generateThemeVars:T,generateStyleSheets:M}=zM(w,S);return w.vars=C,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([z,x])=>{w[z]=x}),w.generateThemeVars=T,w.generateStyleSheets=M,w.generateSpacing=function(){return pw(c.spacing,ru(this))},w.getColorSchemeSelector=LM(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...xa,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(x){return Mi({sx:x,theme:this})},w.toRuntimeSource=Lw,w}function ey(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Tp({...n===!0?{}:n.palette,mode:t})})}function hu(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...s}=e,a=o||"light",l=r==null?void 0:r[a],c={...r,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Ld(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const f=Ld({...e,palette:u},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},ey(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},ey(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),SE({...s,colorSchemes:c,defaultColorScheme:a,...typeof i!="boolean"&&i},...t)}const Mp=hu();function Ep(){const e=uu(Mp);return e[un]||e}function CE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kE=e=>CE(e)&&e!=="classes",mn=xw({themeId:un,defaultTheme:Mp,rootShouldForwardProp:kE});function ty({theme:e,...t}){const n=un in e?e[un]:void 0;return P.jsx(_w,{...t,themeId:n?un:void 0,theme:n||e})}const el={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:PE,useColorScheme:_F,getInitColorSchemeScript:RF}=_M({themeId:un,theme:()=>hu({cssVariables:!0}),colorSchemeStorageKey:el.colorSchemeStorageKey,modeStorageKey:el.modeStorageKey,defaultColorScheme:{light:el.defaultLightColorScheme,dark:el.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:zw(e.palette,e.typography)};return t.unstable_sx=function(i){return Mi({sx:i,theme:this})},t}}),TE=PE;function ME({theme:e,...t}){return typeof e=="function"?P.jsx(ty,{theme:e,...t}):"colorSchemes"in(un in e?e[un]:e)?P.jsx(TE,{theme:e,...t}):P.jsx(ty,{theme:e,...t})}function EE(e){return P.jsx(UT,{...e,defaultTheme:Mp,themeId:un})}function $w(e){return function(n){return P.jsx(EE,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function _E(){return fu}function zn(e){return SM(e)}const Dd=typeof $w({})=="function",RE=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),AE=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Fw=(e,t=!1)=>{var o,s;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var u,f;const c=e.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let i={html:RE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...AE(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const r=(s=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:s.styleOverrides;return r&&(i=[i,r]),i},_l="mui-ecs",OE=e=>{const t=Fw(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${_l})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,r])=>{var s,a;const o=e.getColorSchemeSelector(i);o.startsWith("@")?n[o]={[`:root:not(:has(.${_l}))`]:{colorScheme:(s=r.palette)==null?void 0:s.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${_l}))`]:{colorScheme:(a=r.palette)==null?void 0:a.mode}}}),t},zE=$w(Dd?({theme:e,enableColorScheme:t})=>Fw(e,t):({theme:e})=>OE(e));function LE(e){const t=zn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return P.jsxs(k.Fragment,{children:[Dd&&P.jsx(zE,{enableColorScheme:i}),!Dd&&!i&&P.jsx("span",{className:_l,style:{display:"none"}}),n]})}/** - * @remix-run/router v1.21.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function DE(){return Math.random().toString(36).substr(2,8)}function iy(e,t){return{usr:e.state,key:e.key,idx:t}}function $d(e,t,n,i){return n===void 0&&(n=null),uc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vw(t):t,{state:n,key:t&&t.key||i||DE()})}function Nw(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Vw(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function $E(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=ir.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(uc({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function f(){a=ir.Pop;let b=u(),m=b==null?null:b-c;c=b,l&&l({action:a,location:h.location,delta:m})}function d(b,m){a=ir.Push;let g=$d(h.location,b,m);c=u()+1;let v=iy(g,c),w=h.createHref(g);try{s.pushState(v,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;r.location.assign(w)}o&&l&&l({action:a,location:h.location,delta:1})}function p(b,m){a=ir.Replace;let g=$d(h.location,b,m);c=u();let v=iy(g,c),w=h.createHref(g);s.replaceState(v,"",w),o&&l&&l({action:a,location:h.location,delta:0})}function y(b){let m=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof b=="string"?b:Nw(b);return g=g.replace(/ $/,"%20"),jw(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let h={get action(){return a},get location(){return e(r,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(ny,f),l=b,()=>{r.removeEventListener(ny,f),l=null}},createHref(b){return t(r,b)},createURL:y,encodeLocation(b){let m=y(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(b){return s.go(b)}};return h}var ry;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ry||(ry={}));function FE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const Bw=["post","put","patch","delete"];new Set(Bw);const jE=["get",...Bw];new Set(jE);/** - * React Router v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;tBE(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function UE(e,t){e!=null&&e.v7_startTransition||sy("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&sy("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function WE(e){let{basename:t="/",children:n=null,location:i,navigationType:r=ir.Pop,navigator:o,static:s=!1,future:a}=e;VE()&&jw(!1);let l=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:l,navigator:o,static:s,future:Fd({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof i=="string"&&(i=Vw(i));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:y="default"}=i,h=k.useMemo(()=>{let b=FE(u,l);return b==null?null:{location:{pathname:b,search:f,hash:d,state:p,key:y},navigationType:r}},[l,u,f,d,p,y,r]);return h==null?null:k.createElement(NE.Provider,{value:c},k.createElement(Uw.Provider,{children:n,value:h}))}new Promise(()=>{});/** - * React Router DOM v6.28.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const HE="6";try{window.__reactRouterVersion=HE}catch{}const GE="startTransition",ay=Il[GE];function KE(e){let{basename:t,children:n,future:i,window:r}=e,o=k.useRef();o.current==null&&(o.current=IE({window:r,v5Compat:!0}));let s=o.current,[a,l]=k.useState({action:s.action,location:s.location}),{v7_startTransition:c}=i||{},u=k.useCallback(f=>{c&&ay?ay(()=>l(f)):l(f)},[l,c]);return k.useLayoutEffect(()=>s.listen(u),[s,u]),k.useEffect(()=>UE(i),[i]),k.createElement(WE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var ly;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ly||(ly={}));var cy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cy||(cy={}));function qE(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function pu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const jd=e=>Array.isArray(e);function Ww(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function _p(e,t,n,i){if(typeof t=="function"){const[r,o]=uy(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=uy(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function mu(e,t,n){const i=e.getProps();return _p(i,t,n!==void 0?n:i.custom,e)}const Rp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ap=["initial",...Rp],ba=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Er=new Set(ba),Kn=e=>e*1e3,qn=e=>e/1e3,QE={type:"spring",stiffness:500,damping:25,restSpeed:10},YE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XE={type:"keyframes",duration:.8},ZE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JE=(e,{keyframes:t})=>t.length>2?XE:Er.has(e)?e.startsWith("scale")?YE(t[1]):QE:ZE;function Op(e,t){return e?e[t]||e.default||e:void 0}const e_={skipAnimations:!1,useManualTiming:!1},t_=e=>e!==null;function gu(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(t_),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const tt=e=>e;function n_(e){let t=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){o.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,f=!1)=>{const p=f&&i?t:n;return u&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(a),i=!1,r&&(r=!1,l.process(c))}};return l}const tl=["read","resolveKeyframes","update","preRender","render","postRender"],i_=40;function Hw(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=tl.reduce((m,g)=>(m[g]=n_(o),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,p=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,i_),1),r.timestamp=m,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(p))},y=()=>{n=!0,i=!0,r.isProcessing||e(p)};return{schedule:tl.reduce((m,g)=>{const v=s[g];return m[g]=(w,S=!1,C=!1)=>(n||y(),v.schedule(w,S,C)),m},{}),cancel:m=>{for(let g=0;g(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,r_=1e-7,o_=12;function s_(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=Gw(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>r_&&++as_(o,0,1,e,n);return o=>o===0||o===1?o:Gw(r(o),t,i)}const Kw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qw=e=>t=>1-e(1-t),Qw=Sa(.33,1.53,.69,.99),zp=qw(Qw),Yw=Kw(zp),Xw=e=>(e*=2)<1?.5*zp(e):.5*(2-Math.pow(2,-10*(e-1))),Lp=e=>1-Math.sin(Math.acos(e)),Zw=qw(Lp),Jw=Kw(Lp),eb=e=>/^0[^.\s]+$/u.test(e);function a_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eb(e):!0}let Nd=tt;const tb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),nb=e=>t=>typeof t=="string"&&t.startsWith(e),ib=nb("--"),l_=nb("var(--"),Ip=e=>l_(e)?c_.test(e.split("/*")[0].trim()):!1,c_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,u_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function f_(e){const t=u_.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function rb(e,t,n=1){const[i,r]=f_(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return tb(s)?parseFloat(s):s}return Ip(r)?rb(r,t,n+1):r}const Ri=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ra={...Uo,transform:e=>Ri(0,1,e)},nl={...Uo,default:1},Ca=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ai=Ca("deg"),An=Ca("%"),V=Ca("px"),d_=Ca("vh"),h_=Ca("vw"),fy={...An,parse:e=>An.parse(e)/100,transform:e=>An.transform(e*100)},p_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dy=e=>e===Uo||e===V,hy=(e,t)=>parseFloat(e.split(", ")[t]),py=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return hy(r[1],t);{const o=i.match(/^matrix\((.+)\)$/u);return o?hy(o[1],e):0}},m_=new Set(["x","y","z"]),g_=ba.filter(e=>!m_.has(e));function y_(e){const t=[];return g_.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Ao={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:py(4,13),y:py(5,14)};Ao.translateX=Ao.x;Ao.translateY=Ao.y;const ob=e=>t=>t.test(e),v_={test:e=>e==="auto",parse:e=>e},sb=[Uo,V,An,ai,h_,d_,v_],my=e=>sb.find(ob(e)),hr=new Set;let Vd=!1,Bd=!1;function ab(){if(Bd){const e=Array.from(hr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=y_(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Bd=!1,Vd=!1,hr.forEach(e=>e.complete()),hr.clear()}function lb(){hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bd=!0)})}function x_(){lb(),ab()}class Dp{constructor(t,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(hr.add(this),Vd||(Vd=!0,oe.read(lb),oe.resolveKeyframes(ab))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let o=0;oMath.round(e*1e5)/1e5,$p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function w_(e){return e==null}const b_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fp=(e,t)=>n=>!!(typeof n=="string"&&b_.test(n)&&n.startsWith(e)||t&&!w_(n)&&Object.prototype.hasOwnProperty.call(n,t)),cb=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match($p);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},S_=e=>Ri(0,255,e),af={...Uo,transform:e=>Math.round(S_(e))},rr={test:Fp("rgb","red"),parse:cb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+af.transform(e)+", "+af.transform(t)+", "+af.transform(n)+", "+Os(ra.transform(i))+")"};function C_(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Ud={test:Fp("#"),parse:C_,transform:rr.transform},Jr={test:Fp("hsl","hue"),parse:cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+An.transform(Os(t))+", "+An.transform(Os(n))+", "+Os(ra.transform(i))+")"},Xe={test:e=>rr.test(e)||Ud.test(e)||Jr.test(e),parse:e=>rr.test(e)?rr.parse(e):Jr.test(e)?Jr.parse(e):Ud.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rr.transform(e):Jr.transform(e)},k_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function P_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match($p))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(k_))===null||n===void 0?void 0:n.length)||0)>0}const ub="number",fb="color",T_="var",M_="var(",gy="${}",E_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function oa(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(E_,l=>(Xe.test(l)?(i.color.push(o),r.push(fb),n.push(Xe.parse(l))):l.startsWith(M_)?(i.var.push(o),r.push(T_),n.push(l)):(i.number.push(o),r.push(ub),n.push(parseFloat(l))),++o,gy)).split(gy);return{values:n,split:a,indexes:i,types:r}}function db(e){return oa(e).values}function hb(e){const{split:t,types:n}=oa(e),i=t.length;return r=>{let o="";for(let s=0;stypeof e=="number"?0:e;function R_(e){const t=db(e);return hb(e)(t.map(__))}const Ai={test:P_,parse:db,createTransformer:hb,getAnimatableNone:R_},A_=new Set(["brightness","contrast","saturate","opacity"]);function O_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match($p)||[];if(!i)return e;const r=n.replace(i,"");let o=A_.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const z_=/\b([a-z-]*)\(.*?\)/gu,Wd={...Ai,getAnimatableNone:e=>{const t=e.match(z_);return t?t.map(O_).join(" "):e}},L_={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},I_={rotate:ai,rotateX:ai,rotateY:ai,rotateZ:ai,scale:nl,scaleX:nl,scaleY:nl,scaleZ:nl,skew:ai,skewX:ai,skewY:ai,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ra,originX:fy,originY:fy,originZ:V},yy={...Uo,transform:Math.round},jp={...L_,...I_,zIndex:yy,size:V,fillOpacity:ra,strokeOpacity:ra,numOctaves:yy},D_={...jp,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:Wd,WebkitFilter:Wd},Np=e=>D_[e];function pb(e,t){let n=Np(e);return n!==Wd&&(n=Ai),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $_=new Set(["auto","none","0"]);function F_(e,t,n){let i=0,r;for(;i{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Vp(e){return typeof e=="function"}let Rl;function j_(){Rl=void 0}const On={now:()=>(Rl===void 0&&On.set(Ue.isProcessing||e_.useManualTiming?Ue.timestamp:performance.now()),Rl),set:e=>{Rl=e,queueMicrotask(j_)}},vy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ai.test(e)||e==="0")&&!e.startsWith("url("));function N_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nB_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&x_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=On.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!V_(t,i,r,o))if(s)this.options.duration=0;else{l==null||l(gu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function yb(e,t){return t?e*(1e3/t):0}const U_=5;function vb(e,t,n){const i=Math.max(t-U_,0);return yb(n-e(i),t-i)}const lf=.001,W_=.01,H_=10,G_=.05,K_=1;function q_({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o,s=1-t;s=Ri(G_,K_,s),e=Ri(W_,H_,qn(e)),s<1?(r=c=>{const u=c*s,f=u*e,d=u-n,p=Hd(c,s),y=Math.exp(-f);return lf-d/p*y},o=c=>{const f=c*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-f),h=Hd(Math.pow(c,2),s);return(-r(c)+lf>0?-1:1)*((d-p)*y)/h}):(r=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-lf+u*f},o=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=Y_(r,o,a);if(e=Kn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:e}}}const Q_=12;function Y_(e,t,n){let i=n;for(let r=1;re[n]!==void 0)}function J_(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xy(e,Z_)&&xy(e,X_)){const n=q_(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function xb({keyframes:e,restDelta:t,restSpeed:n,...i}){const r=e[0],o=e[e.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=J_({...i,velocity:-qn(i.velocity||0)}),p=f||0,y=l/(2*Math.sqrt(a*c)),h=o-r,b=qn(Math.sqrt(a/c)),m=Math.abs(h)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let g;if(y<1){const v=Hd(b,y);g=w=>{const S=Math.exp(-y*b*w);return o-S*((p+y*b*h)/v*Math.sin(v*w)+h*Math.cos(v*w))}}else if(y===1)g=v=>o-Math.exp(-b*v)*(h+(p+b*h)*v);else{const v=b*Math.sqrt(y*y-1);g=w=>{const S=Math.exp(-y*b*w),C=Math.min(v*w,300);return o-S*((p+y*b*h)*Math.sinh(C)+v*h*Math.cosh(C))/v}}return{calculatedDuration:d&&u||null,next:v=>{const w=g(v);if(d)s.done=v>=u;else{let S=0;y<1&&(S=v===0?Kn(p):vb(g,v,w));const C=Math.abs(S)<=n,T=Math.abs(o-w)<=t;s.done=C&&T}return s.value=s.done?o:w,s}}}function wy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},p=M=>a!==void 0&&Ml,y=M=>a===void 0?l:l===void 0||Math.abs(a-M)-h*Math.exp(-M/i),v=M=>m+g(M),w=M=>{const z=g(M),x=v(M);d.done=Math.abs(z)<=c,d.value=d.done?m:x};let S,C;const T=M=>{p(d.value)&&(S=M,C=xb({keyframes:[d.value,y(d.value)],velocity:vb(v,M,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:M=>{let z=!1;return!C&&S===void 0&&(z=!0,w(M),T(M)),S!==void 0&&M>=S?C.next(M-S):(!z&&w(M),d)}}}const eR=Sa(.42,0,1,1),tR=Sa(0,0,.58,1),wb=Sa(.42,0,.58,1),nR=e=>Array.isArray(e)&&typeof e[0]!="number",Bp=e=>Array.isArray(e)&&typeof e[0]=="number",by={linear:tt,easeIn:eR,easeInOut:wb,easeOut:tR,circIn:Lp,circInOut:Jw,circOut:Zw,backIn:zp,backInOut:Yw,backOut:Qw,anticipate:Xw},Sy=e=>{if(Bp(e)){Nd(e.length===4);const[t,n,i,r]=e;return Sa(t,n,i,r)}else if(typeof e=="string")return Nd(by[e]!==void 0),by[e];return e},iR=(e,t)=>n=>t(e(n)),Qn=(...e)=>e.reduce(iR),Oo=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},ye=(e,t,n)=>e+(t-e)*n;function cf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rR({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=cf(l,a,e+1/3),o=cf(l,a,e),s=cf(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function fc(e,t){return n=>n>0?t:e}const uf=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},oR=[Ud,rr,Jr],sR=e=>oR.find(t=>t.test(e));function Cy(e){const t=sR(e);if(!t)return!1;let n=t.parse(e);return t===Jr&&(n=rR(n)),n}const ky=(e,t)=>{const n=Cy(e),i=Cy(t);if(!n||!i)return fc(e,t);const r={...n};return o=>(r.red=uf(n.red,i.red,o),r.green=uf(n.green,i.green,o),r.blue=uf(n.blue,i.blue,o),r.alpha=ye(n.alpha,i.alpha,o),rr.transform(r))},Gd=new Set(["none","hidden"]);function aR(e,t){return Gd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function lR(e,t){return n=>ye(e,t,n)}function Up(e){return typeof e=="number"?lR:typeof e=="string"?Ip(e)?fc:Xe.test(e)?ky:fR:Array.isArray(e)?bb:typeof e=="object"?Xe.test(e)?ky:cR:fc}function bb(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>Up(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in i)n[o]=i[o](r);return n}}function uR(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o{const n=Ai.createTransformer(t),i=oa(e),r=oa(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Gd.has(e)&&!r.values.length||Gd.has(t)&&!i.values.length?aR(e,t):Qn(bb(uR(i,r),r.values),n):fc(e,t)};function Sb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):Up(e)(e,t)}function dR(e,t,n){const i=[],r=n||Sb,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dR(t,i,r),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(Ri(e[0],e[o-1],c)):l}function pR(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Oo(0,t,i);e.push(ye(n,1,r))}}function mR(e){const t=[0];return pR(t,e.length-1),t}function gR(e,t){return e.map(n=>n*t)}function yR(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function dc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=nR(i)?i.map(Sy):Sy(i),o={done:!1,value:t[0]},s=gR(n&&n.length===t.length?n:mR(t),e),a=hR(s,t,{ease:Array.isArray(r)?r:yR(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const Py=2e4;function vR(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t=Py?1/0:t}const xR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>oe.update(t,!0),stop:()=>_i(t),now:()=>Ue.isProcessing?Ue.timestamp:On.now()}},wR={decay:wy,inertia:wy,tween:dc,keyframes:dc,spring:xb},bR=e=>e/100;class Wp extends gb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Dp,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Vp(n)?n:wR[n]||dc;let l,c;a!==dc&&typeof t[0]!="number"&&(l=Qn(bR,Sb(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});o==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=vR(u));const{calculatedDuration:f}=u,d=f+r,p=d*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:y,repeatDelay:h,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let v=this.currentTime,w=o;if(p){const M=Math.min(this.currentTime,u)/f;let z=Math.floor(M),x=M%1;!x&&M>=1&&(x=1),x===1&&z--,z=Math.min(z,p+1),!!(z%2)&&(y==="reverse"?(x=1-x,h&&(x-=h/f)):y==="mirror"&&(w=s)),v=Ri(0,1,x)*f}const S=g?{done:!1,value:l[0]}:w.next(v);a&&(S.value=a(S.value));let{done:C}=S;!g&&c!==null&&(C=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return T&&r!==void 0&&(S.value=gu(l,this.options,r)),b&&b(S.value),T&&this.finish(),S}get duration(){const{resolved:t}=this;return t?qn(t.calculatedDuration):0}get time(){return qn(this.currentTime)}set time(t){t=Kn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=qn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xR,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const SR=new Set(["opacity","clipPath","filter","transform"]),CR=10,kR=(e,t)=>{let n="";const i=Math.max(Math.round(t/CR),2);for(let r=0;r(t===void 0&&(t=e()),t)}const PR={linearEasing:void 0};function TR(e,t){const n=Hp(e);return()=>{var i;return(i=PR[t])!==null&&i!==void 0?i:n()}}const hc=TR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Cb(e){return!!(typeof e=="function"&&hc()||!e||typeof e=="string"&&(e in Kd||hc())||Bp(e)||Array.isArray(e)&&e.every(Cb))}const xs=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Kd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xs([0,.65,.55,1]),circOut:xs([.55,0,1,.45]),backIn:xs([.31,.01,.66,-.59]),backOut:xs([.33,1.53,.69,.99])};function kb(e,t){if(e)return typeof e=="function"&&hc()?kR(e,t):Bp(e)?xs(e):Array.isArray(e)?e.map(n=>kb(n,t)||Kd.easeOut):Kd[e]}function MR(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=kb(a,r);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Ty(e,t){e.timeline=t,e.onfinish=null}const ER=Hp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),pc=10,_R=2e4;function RR(e){return Vp(e.type)||e.type==="spring"||!Cb(e.ease)}function AR(e,t){const n=new Wp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let o=0;for(;!i.done&&o<_R;)i=n.sample(o),r.push(i.value),o+=pc;return{times:void 0,keyframes:r,duration:o-pc,ease:"linear"}}const Pb={anticipate:Xw,backInOut:Yw,circInOut:Jw};function OR(e){return e in Pb}class My extends gb{constructor(t){super(t);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new mb(o,(s,a)=>this.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(t,n){var i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(typeof s=="string"&&hc()&&OR(s)&&(s=Pb[s]),RR(this.options)){const{onComplete:d,onUpdate:p,motionValue:y,element:h,...b}=this.options,m=AR(t,b);t=m.keyframes,t.length===1&&(t[1]=t[0]),r=m.duration,o=m.times,s=m.ease,a="keyframes"}const f=MR(l.owner.current,c,t,{...this.options,duration:r,times:o,ease:s});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ty(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(gu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Kn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return tt;const{animation:i}=n;Ty(i,t)}return tt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:d,...p}=this.options,y=new Wp({...p,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),h=Kn(this.time);c.setWithVelocity(y.sample(h-pc).value,y.sample(h).value,pc)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=t;return ER()&&i&&SR.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const zR=Hp(()=>window.ScrollTimeline!==void 0);class LR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;izR()&&r.attachTimeline?r.attachTimeline(t):n(r));return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function IR({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Gp=(e,t,n,i={},r,o)=>s=>{const a=Op(i,e)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Kn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};IR(a)||(u={...u,...JE(e,u)}),u.duration&&(u.duration=Kn(u.duration)),u.repeatDelay&&(u.repeatDelay=Kn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=gu(u.keyframes,a);if(d!==void 0)return oe.update(()=>{u.onUpdate(d),u.onComplete()}),new LR([])}return!o&&My.supports(u)?new My(u):new Wp(u)},DR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$R=e=>jd(e)?e[e.length-1]||0:e;function Kp(e,t){e.indexOf(t)===-1&&e.push(t)}function qp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qp{constructor(){this.subscriptions=[]}add(t){return Kp(this.subscriptions,t),()=>qp(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o!isNaN(parseFloat(e));class jR{constructor(t,n={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=On.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Qp);const i=this.events[t].add(n);return t==="change"?()=>{i(),oe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ey)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ey);return yb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function sa(e,t){return new jR(e,t)}function NR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sa(n))}function VR(e,t){const n=mu(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=$R(o[s]);NR(e,s,a)}}const Yp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),BR="framerAppearId",Tb="data-"+Yp(BR);function Mb(e){return e.props[Tb]}const Je=e=>!!(e&&e.getVelocity);function UR(e){return!!(Je(e)&&e.add)}function qd(e,t){const n=e.getValue("willChange");if(UR(n))return n.add(t)}function WR({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Eb(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(s=i);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||u&&WR(u,f))continue;const y={delay:n,...Op(s||{},f)};let h=!1;if(window.MotionHandoffAnimation){const m=Mb(e);if(m){const g=window.MotionHandoffAnimation(m,f,oe);g!==null&&(y.startTime=g,h=!0)}}qd(e,f),d.start(Gp(f,d,p,e.shouldReduceMotion&&Er.has(f)?{type:!1}:y,e,h));const b=d.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{oe.update(()=>{a&&VR(e,a)})}),c}function Qd(e,t,n={}){var i;const r=mu(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Eb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return HR(e,t,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function HR(e,t,n=0,i=0,r=1,o){const s=[],a=(e.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(e.variantChildren).sort(GR).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Qd(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function GR(e,t){return e.sortNodePosition(t)}function KR(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>Qd(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=Qd(e,t,n);else{const r=typeof t=="function"?mu(e,t,n.custom):t;i=Promise.all(Eb(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const qR=Ap.length;function _b(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?_b(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:i})=>KR(e,n,i)))}function ZR(e){let t=XR(e),n=_y(),i=!0;const r=l=>(c,u)=>{var f;const d=mu(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:y,...h}=d;c={...c,...h,...y}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=_b(e.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let b=0;by&&w,z=!1;const x=Array.isArray(v)?v:[v];let _=x.reduce(r(m),{});S===!1&&(_={});const{prevResolvedValues:R={}}=g,F={...R,..._},D=U=>{M=!0,d.has(U)&&(z=!0,d.delete(U)),g.needsAnimating[U]=!0;const O=e.getValue(U);O&&(O.liveStyle=!1)};for(const U in F){const O=_[U],I=R[U];if(p.hasOwnProperty(U))continue;let j=!1;jd(O)&&jd(I)?j=!Ww(O,I):j=O!==I,j?O!=null?D(U):d.add(U):O!==void 0&&d.has(U)?D(U):g.protectedKeys[U]=!0}g.prevProp=v,g.prevResolvedValues=_,g.isActive&&(p={...p,..._}),i&&e.blockInitialAnimation&&(M=!1),M&&(!(C&&T)||z)&&f.push(...x.map(U=>({animation:U,options:{type:m}})))}if(d.size){const b={};d.forEach(m=>{const g=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),b[m]=g??null}),f.push({animation:b})}let h=!!f.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_y(),i=!0}}}function JR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ww(t,e):!1}function Wi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _y(){return{animate:Wi(!0),whileInView:Wi(),whileHover:Wi(),whileTap:Wi(),whileDrag:Wi(),whileFocus:Wi(),exit:Wi()}}class ji{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eA extends ji{constructor(t){super(t),t.animationState||(t.animationState=ZR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tA=0;class nA extends ji{constructor(){super(...arguments),this.id=tA++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const iA={animation:{Feature:eA},exit:{Feature:nA}},Rb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function yu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const rA=e=>t=>Rb(t)&&e(t,yu(t));function Wn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Yn(e,t,n,i){return Wn(e,t,rA(n),i)}const Ry=(e,t)=>Math.abs(e-t);function oA(e,t){const n=Ry(e.x,t.x),i=Ry(e.y,t.y);return Math.sqrt(n**2+i**2)}class Ab{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=df(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=oA(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:y}=f,{timestamp:h}=Ue;this.history.push({...y,timestamp:h});const{onStart:b,onMove:m}=this.handlers;d||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ff(d,this.transformPagePoint),oe.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=df(f.type==="pointercancel"?this.lastMoveEventInfo:ff(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),y&&y(f,b)},!Rb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=yu(t),a=ff(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Ue;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,df(a,this.history)),this.removeListeners=Qn(Yn(this.contextWindow,"pointermove",this.handlePointerMove),Yn(this.contextWindow,"pointerup",this.handlePointerUp),Yn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_i(this.updatePoint)}}function ff(e,t){return t?{point:t(e.point)}:e}function Ay(e,t){return{x:e.x-t.x,y:e.y-t.y}}function df({point:e},t){return{point:e,delta:Ay(e,Ob(t)),offset:Ay(e,sA(t)),velocity:aA(t,.1)}}function sA(e){return e[0]}function Ob(e){return e[e.length-1]}function aA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=Ob(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Kn(t)));)n--;if(!i)return{x:0,y:0};const o=qn(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Oy=zb("dragHorizontal"),zy=zb("dragVertical");function Lb(e){let t=!1;if(e==="y")t=zy();else if(e==="x")t=Oy();else{const n=Oy(),i=zy();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Ib(){const e=Lb(!0);return e?(e(),!1):!0}function eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Db=1e-4,lA=1-Db,cA=1+Db,$b=.01,uA=0-$b,fA=0+$b;function zt(e){return e.max-e.min}function dA(e,t,n){return Math.abs(e-t)<=n}function Ly(e,t,n,i=.5){e.origin=i,e.originPoint=ye(t.min,t.max,e.origin),e.scale=zt(n)/zt(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lA&&e.scale<=cA||isNaN(e.scale))&&(e.scale=1),(e.translate>=uA&&e.translate<=fA||isNaN(e.translate))&&(e.translate=0)}function zs(e,t,n,i){Ly(e.x,t.x,n.x,i?i.originX:void 0),Ly(e.y,t.y,n.y,i?i.originY:void 0)}function Iy(e,t,n){e.min=n.min+t.min,e.max=e.min+zt(t)}function hA(e,t,n){Iy(e.x,t.x,n.x),Iy(e.y,t.y,n.y)}function Dy(e,t,n){e.min=t.min-n.min,e.max=e.min+zt(t)}function Ls(e,t,n){Dy(e.x,t.x,n.x),Dy(e.y,t.y,n.y)}function pA(e,{min:t,max:n},i){return t!==void 0&&en&&(e=i?ye(n,e,i.max):Math.min(e,n)),e}function $y(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mA(e,{top:t,left:n,bottom:i,right:r}){return{x:$y(e.x,n,r),y:$y(e.y,t,i)}}function Fy(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.mini?n=Oo(t.min,t.max-i,e.min):i>r&&(n=Oo(e.min,e.max-r,t.min)),Ri(0,1,n)}function vA(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Yd=.35;function xA(e=Yd){return e===!1?e=0:e===!0&&(e=Yd),{x:jy(e,"left","right"),y:jy(e,"top","bottom")}}function jy(e,t,n){return{min:Ny(e,t),max:Ny(e,n)}}function Ny(e,t){return typeof e=="number"?e:e[t]||0}const Vy=()=>({translate:0,scale:1,origin:0,originPoint:0}),to=()=>({x:Vy(),y:Vy()}),By=()=>({min:0,max:0}),Te=()=>({x:By(),y:By()});function jt(e){return[e("x"),e("y")]}function Fb({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function wA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bA(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function hf(e){return e===void 0||e===1}function Xd({scale:e,scaleX:t,scaleY:n}){return!hf(e)||!hf(t)||!hf(n)}function Xi(e){return Xd(e)||jb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jb(e){return Uy(e.x)||Uy(e.y)}function Uy(e){return e&&e!=="0%"}function mc(e,t,n){const i=e-n,r=t*i;return n+r}function Wy(e,t,n,i,r){return r!==void 0&&(e=mc(e,r,i)),mc(e,n,i)+t}function Zd(e,t=0,n=1,i,r){e.min=Wy(e.min,t,n,i,r),e.max=Wy(e.max,t,n,i,r)}function Nb(e,{x:t,y:n}){Zd(e.x,t.translate,t.scale,t.originPoint),Zd(e.y,n.translate,n.scale,n.originPoint)}const Hy=.999999999999,Gy=1.0000000000001;function SA(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;aHy&&(t.x=1),t.yHy&&(t.y=1)}function no(e,t){e.min=e.min+t,e.max=e.max+t}function Ky(e,t,n,i,r=.5){const o=ye(e.min,e.max,r);Zd(e,t,n,o,i)}function io(e,t){Ky(e.x,t.x,t.scaleX,t.scale,t.originX),Ky(e.y,t.y,t.scaleY,t.scale,t.originY)}function Vb(e,t){return Fb(bA(e.getBoundingClientRect(),t))}function CA(e,t,n){const i=Vb(e,n),{scroll:r}=t;return r&&(no(i.x,r.offset.x),no(i.y,r.offset.y)),i}const Bb=({current:e})=>e?e.ownerDocument.defaultView:null,kA=new WeakMap;class PA{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yu(u,"page").point)},o=(u,f)=>{const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lb(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jt(b=>{let m=this.getAxisMotionValue(b).get()||0;if(An.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[b];v&&(m=zt(v)*(parseFloat(m)/100))}}this.originPoint[b]=m}),y&&oe.postRender(()=>y(u,f)),qd(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:y,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=TA(b),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),h&&h(u,f)},a=(u,f)=>this.stop(u,f),l=()=>jt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ab(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Bb(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&oe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!il(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=pA(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=mA(r.layoutBox,n):this.constraints=!1,this.elastic=xA(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&jt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=vA(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!eo(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=CA(i,r.root,this.visualElement.getTransformPagePoint());let s=gA(r.layout.layoutBox,o);if(n){const a=n(wA(s));this.hasMutatedConstraints=!!a,a&&(s=Fb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=jt(u=>{if(!il(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,p=r?40:1e7,y={type:"inertia",velocity:i?t[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return qd(this.visualElement,t),i.start(Gp(t,i,0,n,this.visualElement,!1))}stopAnimation(){jt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){jt(n=>{const{drag:i}=this.getProps();if(!il(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(t[n]-ye(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!eo(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};jt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=yA({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),jt(s=>{if(!il(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(ye(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;kA.set(this.visualElement,this);const t=this.visualElement.current,n=Yn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();eo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),oe.read(i);const s=Wn(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(jt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Yd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function il(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function TA(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MA extends ji{constructor(t){super(t),this.removeGroupControls=tt,this.removeListeners=tt,this.controls=new PA(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const qy=e=>(t,n)=>{e&&oe.postRender(()=>e(t,n))};class EA extends ji{constructor(){super(...arguments),this.removePointerDownListener=tt}onPointerDown(t){this.session=new Ab(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:qy(t),onStart:qy(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&oe.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Yn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xp=k.createContext(null);function _A(){const e=k.useContext(Xp);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,r=k.useId();k.useEffect(()=>i(r),[]);const o=k.useCallback(()=>n&&n(r),[r,n]);return!t&&n?[!1,o]:[!0]}const Ub=k.createContext({}),Wb=k.createContext({}),Al={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ss={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Qy(e,t.target.x),i=Qy(e,t.target.y);return`${n}% ${i}%`}},RA={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ai.parse(e);if(r.length>5)return i;const o=Ai.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const c=ye(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}},gc={};function AA(e){Object.assign(gc,e)}const{schedule:Zp,cancel:AF}=Hw(queueMicrotask,!1);class OA extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;AA(zA),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Al.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||oe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Zp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hb(e){const[t,n]=_A(),i=k.useContext(Ub);return P.jsx(OA,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(Wb),isPresent:t,safeToRemove:n})}const zA={borderRadius:{...ss,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ss,borderTopRightRadius:ss,borderBottomLeftRadius:ss,borderBottomRightRadius:ss,boxShadow:RA},Gb=["TopLeft","TopRight","BottomLeft","BottomRight"],LA=Gb.length,Yy=e=>typeof e=="string"?parseFloat(e):e,Xy=e=>typeof e=="number"||V.test(e);function IA(e,t,n,i,r,o){r?(e.opacity=ye(0,n.opacity!==void 0?n.opacity:1,DA(i)),e.opacityExit=ye(t.opacity!==void 0?t.opacity:1,0,$A(i))):o&&(e.opacity=ye(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;sit?1:n(Oo(e,t,i))}function Jy(e,t){e.min=t.min,e.max=t.max}function $t(e,t){Jy(e.x,t.x),Jy(e.y,t.y)}function ev(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function tv(e,t,n,i,r){return e-=t,e=mc(e,1/n,i),r!==void 0&&(e=mc(e,1/r,i)),e}function FA(e,t=0,n=1,i=.5,r,o=e,s=e){if(An.test(t)&&(t=parseFloat(t),t=ye(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ye(o.min,o.max,i);e===o&&(a-=t),e.min=tv(e.min,t,n,a,r),e.max=tv(e.max,t,n,a,r)}function nv(e,t,[n,i,r],o,s){FA(e,t[n],t[i],t[r],t.scale,o,s)}const jA=["x","scaleX","originX"],NA=["y","scaleY","originY"];function iv(e,t,n,i){nv(e.x,t,jA,n?n.x:void 0,i?i.x:void 0),nv(e.y,t,NA,n?n.y:void 0,i?i.y:void 0)}function rv(e){return e.translate===0&&e.scale===1}function qb(e){return rv(e.x)&&rv(e.y)}function ov(e,t){return e.min===t.min&&e.max===t.max}function VA(e,t){return ov(e.x,t.x)&&ov(e.y,t.y)}function sv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qb(e,t){return sv(e.x,t.x)&&sv(e.y,t.y)}function av(e){return zt(e.x)/zt(e.y)}function lv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class BA{constructor(){this.members=[]}add(t){Kp(this.members,t),t.scheduleRender()}remove(t){if(qp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UA(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),p&&(i+=`skewX(${p}deg) `),y&&(i+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const WA=(e,t)=>e.depth-t.depth;class HA{constructor(){this.children=[],this.isDirty=!1}add(t){Kp(this.children,t),this.isDirty=!0}remove(t){qp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WA),this.isDirty=!1,this.children.forEach(t)}}function Ol(e){const t=Je(e)?e.get():e;return DR(t)?t.toValue():t}function GA(e,t){const n=On.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(_i(i),e(o-t))};return oe.read(i,!0),()=>_i(i)}function KA(e){return e instanceof SVGElement&&e.tagName!=="svg"}function qA(e,t,n){const i=Je(e)?e:sa(e);return i.start(Gp("",i,t,n)),i.animation}const Zi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ws=typeof window<"u"&&window.MotionDebug!==void 0,pf=["","X","Y","Z"],QA={visibility:"hidden"},cv=1e3;let YA=0;function mf(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Yb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Mb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",oe,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Yb(i)}function Xb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t==null?void 0:t()){this.id=YA++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ws&&(Zi.totalNodes=Zi.resolvedTargetDeltas=Zi.recalculatedProjection=0),this.nodes.forEach(JA),this.nodes.forEach(r5),this.nodes.forEach(o5),this.nodes.forEach(e5),ws&&window.MotionDebug.record(Zi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=GA(d,250),Al.hasAnimatedSinceResize&&(Al.hasAnimatedSinceResize=!1,this.nodes.forEach(fv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||u5,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=u.getProps(),g=!this.targetLayout||!Qb(this.targetLayout,y)||p,v=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...Op(h,"layout"),onPlay:b,onComplete:m};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||fv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_i(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=w/1e3;dv(f.x,s.x,S),dv(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ls(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l5(this.relativeTarget,this.relativeTargetOrigin,d,S),v&&VA(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Te()),$t(v,this.relativeTarget)),h&&(this.animationValues=u,IA(u,c,this.latestValues,S,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_i(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oe.update(()=>{Al.hasAnimatedSinceResize=!0,this.currentAnimation=qA(0,cv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Zb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Te();const f=zt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=zt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}$t(a,l),io(a,u),zs(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new BA),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&mf("z",s,c,this.animationValues);for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(uv),this.root.sharedNodes.clear()}}}function XA(e){e.updateLayout()}function ZA(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?jt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=zt(d);d.min=i[f].min,d.max=d.min+p}):Zb(o,n.layoutBox,i)&&jt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=zt(i[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=to();zs(a,i,n.layoutBox);const l=to();s?zs(l,e.applyTransform(r,!0),n.measuredBox):zs(l,i,n.layoutBox);const c=!qb(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const y=Te();Ls(y,n.layoutBox,d.layoutBox);const h=Te();Ls(h,i,p.layoutBox),Qb(y,h)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function JA(e){ws&&Zi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function e5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function t5(e){e.clearSnapshot()}function uv(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!1}function i5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r5(e){e.resolveTargetDelta()}function o5(e){e.calcProjection()}function s5(e){e.resetSkewAndRotation()}function a5(e){e.removeLeadSnapshot()}function dv(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hv(e,t,n,i){e.min=ye(t.min,n.min,i),e.max=ye(t.max,n.max,i)}function l5(e,t,n,i){hv(e.x,t.x,n.x,i),hv(e.y,t.y,n.y,i)}function c5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const u5={duration:.45,ease:[.4,0,.1,1]},pv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mv=pv("applewebkit/")&&!pv("chrome/")?Math.round:tt;function gv(e){e.min=mv(e.min),e.max=mv(e.max)}function f5(e){gv(e.x),gv(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!dA(av(t),av(n),.2)}function d5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const h5=Xb({attachResizeListener:(e,t)=>Wn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gf={current:void 0},Jb=Xb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gf.current){const e=new h5({});e.mount(window),e.setOptions({layoutScroll:!0}),gf.current=e}return gf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),p5={pan:{Feature:EA},drag:{Feature:MA,ProjectionNode:Jb,MeasureLayout:Hb}};function yv(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||Ib())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[i];l&&oe.postRender(()=>l(o,s))};return Yn(e.current,n,r,{passive:!e.getProps()[i]})}class m5 extends ji{mount(){this.unmount=Qn(yv(this.node,!0),yv(this.node,!1))}unmount(){}}class g5 extends ji{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qn(Wn(this.node.current,"focus",()=>this.onFocus()),Wn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eS=(e,t)=>t?e===t?!0:eS(e,t.parentElement):!1;function yf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,yu(n))}class y5 extends ji{constructor(){super(...arguments),this.removeStartListeners=tt,this.removeEndListeners=tt,this.removeAccessibleListeners=tt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Yn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps(),d=!f&&!eS(this.node.current,a.target)?u:c;d&&oe.update(()=>d(a,l))},{passive:!(i.onTap||i.onPointerUp)}),s=Yn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=Qn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||yf("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&oe.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Wn(this.node.current,"keyup",s),yf("down",(a,l)=>{this.startPress(a,l)})},n=Wn(this.node.current,"keydown",t),i=()=>{this.isPressing&&yf("cancel",(o,s)=>this.cancelPress(o,s))},r=Wn(this.node.current,"blur",i);this.removeAccessibleListeners=Qn(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&oe.postRender(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ib()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&oe.postRender(()=>i(t,n))}mount(){const t=this.node.getProps(),n=Yn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=Wn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qn(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Jd=new WeakMap,vf=new WeakMap,v5=e=>{const t=Jd.get(e.target);t&&t(e)},x5=e=>{e.forEach(v5)};function w5({root:e,...t}){const n=e||document;vf.has(n)||vf.set(n,{});const i=vf.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(x5,{root:e,...t})),i[r]}function b5(e,t,n){const i=w5(t);return Jd.set(e,n),i.observe(e),()=>{Jd.delete(e),i.unobserve(e)}}const S5={some:0,all:1};class C5 extends ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:S5[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return b5(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(k5(t,n))&&this.startObserver()}unmount(){}}function k5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const P5={inView:{Feature:C5},tap:{Feature:y5},focus:{Feature:g5},hover:{Feature:m5}},T5={layout:{ProjectionNode:Jb,MeasureLayout:Hb}},tS=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),vu=k.createContext({}),Jp=typeof window<"u",M5=Jp?k.useLayoutEffect:k.useEffect,nS=k.createContext({strict:!1});function E5(e,t,n,i,r){var o,s;const{visualElement:a}=k.useContext(vu),l=k.useContext(nS),c=k.useContext(Xp),u=k.useContext(tS).reducedMotion,f=k.useRef();i=i||l.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,p=k.useContext(Wb);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&_5(f.current,n,r,p);const y=k.useRef(!1);k.useInsertionEffect(()=>{d&&y.current&&d.update(n,c)});const h=n[Tb],b=k.useRef(!!h&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return M5(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Zp.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),k.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,h)}),b.current=!1))}),d}function _5(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:iS(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&eo(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function iS(e){if(e)return e.options.allowProjection!==!1?e.projection:iS(e.parent)}function R5(e,t,n){return k.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):eo(n)&&(n.current=i))},[t])}function xu(e){return pu(e.animate)||Ap.some(t=>ia(e[t]))}function rS(e){return!!(xu(e)||e.variants)}function A5(e,t){if(xu(e)){const{initial:n,animate:i}=e;return{initial:n===!1||ia(n)?n:void 0,animate:ia(i)?i:void 0}}return e.inherit!==!1?t:{}}function O5(e){const{initial:t,animate:n}=A5(e,k.useContext(vu));return k.useMemo(()=>({initial:t,animate:n}),[vv(t),vv(n)])}function vv(e){return Array.isArray(e)?e.join(" "):e}const xv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zo={};for(const e in xv)zo[e]={isEnabled:t=>xv[e].some(n=>!!t[n])};function z5(e){for(const t in e)zo[t]={...zo[t],...e[t]}}const L5=Symbol.for("motionComponentSymbol");function I5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&z5(e);function o(a,l){let c;const u={...k.useContext(tS),...a,layoutId:D5(a)},{isStatic:f}=u,d=O5(a),p=i(a,f);if(!f&&Jp){$5();const y=F5(u);c=y.MeasureLayout,d.visualElement=E5(r,p,u,t,y.ProjectionNode)}return P.jsxs(vu.Provider,{value:d,children:[c&&d.visualElement?P.jsx(c,{visualElement:d.visualElement,...u}):null,n(r,a,R5(p,d.visualElement,l),p,f,d.visualElement)]})}const s=k.forwardRef(o);return s[L5]=r,s}function D5({layoutId:e}){const t=k.useContext(Ub).id;return t&&e!==void 0?t+"-"+e:e}function $5(e,t){k.useContext(nS).strict}function F5(e){const{drag:t,layout:n}=zo;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const j5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function em(e){return typeof e!="string"||e.includes("-")?!1:!!(j5.indexOf(e)>-1||/[A-Z]/u.test(e))}function oS(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const o in n)e.style.setProperty(o,n[o])}const sS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function aS(e,t,n,i){oS(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(sS.has(r)?r:Yp(r),t.attrs[r])}function lS(e,{layout:t,layoutId:n}){return Er.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!gc[e]||e==="opacity")}function tm(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Je(r[s])||t.style&&Je(t.style[s])||lS(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function cS(e,t,n){const i=tm(e,t,n);for(const r in e)if(Je(e[r])||Je(t[r])){const o=ba.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}function N5(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}function V5({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){const s={latestValues:B5(i,r,o,e),renderState:t()};return n&&(s.mount=a=>n(i,a,s)),s}const uS=e=>(t,n)=>{const i=k.useContext(vu),r=k.useContext(Xp),o=()=>V5(e,t,i,r);return n?o():N5(o)};function B5(e,t,n,i){const r={},o=i(e,{});for(const d in o)r[d]=Ol(o[d]);let{initial:s,animate:a}=e;const l=xu(e),c=rS(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!pu(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p({style:{},transform:{},transformOrigin:{},vars:{}}),fS=()=>({...nm(),attrs:{}}),dS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,U5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W5=ba.length;function H5(e,t,n){let i="",r=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",Y5={useVisualState:uS({scrapeMotionValuesFromProps:cS,createRenderState:fS,onMount:(e,t,{renderState:n,latestValues:i})=>{oe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),oe.render(()=>{rm(n,i,om(t.tagName),e.transformTemplate),aS(t,n)})}})},X5={useVisualState:uS({scrapeMotionValuesFromProps:tm,createRenderState:nm})};function hS(e,t,n){for(const i in t)!Je(t[i])&&!lS(i,n)&&(e[i]=t[i])}function Z5({transformTemplate:e},t){return k.useMemo(()=>{const n=nm();return im(n,t,e),Object.assign({},n.vars,n.style)},[t])}function J5(e,t){const n=e.style||{},i={};return hS(i,n,e),Object.assign(i,Z5(e,t)),i}function eO(e,t){const n={},i=J5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const tO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tO.has(e)}let pS=e=>!yc(e);function nO(e){e&&(pS=t=>t.startsWith("on")?!yc(t):e(t))}try{nO(require("@emotion/is-prop-valid").default)}catch{}function iO(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(pS(r)||n===!0&&yc(r)||!t&&!yc(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function rO(e,t,n,i){const r=k.useMemo(()=>{const o=fS();return rm(o,t,om(i),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};hS(o,e.style,e),r.style={...o,...r.style}}return r}function oO(e=!1){return(n,i,r,{latestValues:o},s)=>{const l=(em(n)?rO:eO)(i,o,s,n),c=iO(i,typeof n=="string",e),u=n!==k.Fragment?{...c,...l,ref:r}:{},{children:f}=i,d=k.useMemo(()=>Je(f)?f.get():f,[f]);return k.createElement(n,{...u,children:d})}}function sO(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...em(i)?Y5:X5,preloadedFeatures:e,useRender:oO(r),createVisualElement:t,Component:i};return I5(s)}}const eh={current:null},mS={current:!1};function aO(){if(mS.current=!0,!!Jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eh.current=e.matches;e.addListener(t),t()}else eh.current=!1}function lO(e,t,n){for(const i in t){const r=t[i],o=n[i];if(Je(r))e.addValue(i,r);else if(Je(o))e.addValue(i,sa(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,sa(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const bv=new WeakMap,cO=[...sb,Xe,Ai],uO=e=>cO.find(ob(e)),Sv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fO{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=On.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),mS.current||aO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:eh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bv.delete(this.current),this.projection&&this.projection.unmount(),_i(this.notifyUpdate),_i(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Er.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&oe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zo){const n=zo[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=sa(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(tb(r)||eb(r))?r=parseFloat(r):!uO(r)&&Ai.test(n)&&(r=pb(t,n)),this.setBaseTarget(t,Je(r)?r.get():r)),Je(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=_p(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Je(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class gS extends fO{constructor(){super(...arguments),this.KeyframeResolver=mb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}}function dO(e){return window.getComputedStyle(e)}class hO extends gS{constructor(){super(...arguments),this.type="html",this.renderInstance=oS}readValueFromInstance(t,n){if(Er.has(n)){const i=Np(n);return i&&i.default||0}else{const i=dO(t),r=(ib(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Vb(t,n)}build(t,n,i){im(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return tm(t,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class pO extends gS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Er.has(n)){const i=Np(n);return i&&i.default||0}return n=sS.has(n)?n:Yp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return cS(t,n,i)}build(t,n,i){rm(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){aS(t,n,i,r)}mount(t){this.isSVGTag=om(t.tagName),super.mount(t)}}const mO=(e,t)=>em(e)?new pO(t):new hO(t,{allowProjection:e!==k.Fragment}),gO=sO({...iA,...P5,...p5,...T5},mO),ke=qE(gO);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var yO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ni=(e,t)=>{const n=k.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...c},u)=>k.createElement("svg",{ref:u,...yO,width:r,height:r,stroke:i,strokeWidth:s?Number(o)*24/Number(r):o,className:["lucide",`lucide-${vO(e)}`,a].join(" "),...c},[...t.map(([f,d])=>k.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xO=Ni("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const wO=Ni("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const bO=Ni("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const SO=Ni("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vc=Ni("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const th=Ni("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const CO=Ni("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** - * @license lucide-react v0.350.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const kO=Ni("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),Cv=[{name:"Home",link:"#home",icon:bO},{name:"About",link:"#about",icon:CO},{name:"Skills",link:"#skills",icon:kO},{name:"Projects",link:"#projects",icon:xO},{name:"Contact",link:"#contact",icon:vc}];function PO(){const[e,t]=k.useState(!1),[n,i]=k.useState("home");k.useEffect(()=>{const o=()=>{const s=window.scrollY>20;t(s);const l=Cv.map(c=>c.link.substring(1)).find(c=>{const u=document.getElementById(c);if(u){const f=u.getBoundingClientRect();return f.top<=100&&f.bottom>=100}return!1});l&&i(l)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const r=(o,s)=>{o.preventDefault();const a=s.substring(1),l=document.getElementById(a);if(l){const c=l.offsetTop-60;window.scrollTo({top:c,behavior:"smooth"})}};return P.jsx(ke.div,{initial:{y:-100},animate:{y:0},transition:{duration:.5,type:"spring",stiffness:260,damping:20},className:"fixed top-4 left-1/2 -translate-x-1/2 z-50",children:P.jsx("nav",{className:` - px-6 py-3 rounded-full border border-white/[0.2] bg-black/50 backdrop-blur-md - ${e?"bg-black/80":""} - transition-all duration-300 - `,children:P.jsx("div",{className:"flex items-center gap-6",children:Cv.map((o,s)=>P.jsx(ke.a,{href:o.link,onClick:a=>r(a,o.link),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"group relative",children:P.jsxs("div",{className:` - relative p-2 transition-colors duration-300 - ${n===o.link.substring(1)?"text-blue-500":"text-white/70 hover:text-white"} - `,children:[P.jsx(o.icon,{size:20}),P.jsx(ke.span,{className:"absolute -bottom-12 left-1/2 -translate-x-1/2 px-3 py-2 bg-black/80 text-white text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap",children:o.name}),n===o.link.substring(1)&&P.jsx(ke.div,{layoutId:"navbar-indicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-blue-500",transition:{type:"spring",stiffness:300,damping:30}})]})},o.name))})})})}const or="generated",TO="pointerdown",MO="pointerup",nh="pointerleave",EO="pointerout",Sr="pointermove",_O="touchstart",kv="touchend",RO="touchmove",AO="touchcancel",OO="resize",zO="visibilitychange",Qt="tsParticles - Error",mi=100,Pv=.5,et=1e3;var We;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"})(We||(We={}));function yS(e){return typeof e=="boolean"}function Oi(e){return typeof e=="string"}function zi(e){return typeof e=="number"}function ro(e){return typeof e=="object"&&e!==null}function Ln(e){return Array.isArray(e)}function L(e){return e==null}const Sn={x:0,y:0,z:0},Tv=2,LO=1;class kt{constructor(t,n,i){if(this._updateFromAngle=(r,o)=>{this.x=Math.cos(r)*o,this.y=Math.sin(r)*o},!zi(t)&&t){this.x=t.x,this.y=t.y;const r=t;this.z=r.z?r.z:Sn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=i??Sn.z;else throw new Error(`${Qt} Vector3d not initialized correctly`)}static get origin(){return kt.create(Sn.x,Sn.y,Sn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return kt.create(t.x,t.y,t.z)}static create(t,n,i){return new kt(t,n,i)}add(t){return kt.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return kt.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return kt.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Tv+this.y**Tv}mult(t){return kt.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(LO/t)}rotate(t){return kt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Sn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Sn.z}sub(t){return kt.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Ne extends kt{constructor(t,n){super(t,n,Sn.z)}static get origin(){return Ne.create(Sn.x,Sn.y)}static clone(t){return Ne.create(t.x,t.y)}static create(t,n){return new Ne(t,n)}}let IO=Math.random;const vS={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)},ih=new Map,DO=2,$O=Math.PI*DO;function xf(e,t){ih.get(e)||ih.set(e,t)}function xS(e){return ih.get(e)??(t=>t)}function de(){return Yt(IO(),0,1-Number.EPSILON)}function FO(e){return vS.nextFrame(e)}function jO(e){vS.cancel(e)}function Yt(e,t,n){return Math.min(Math.max(e,t),n)}function wf(e,t,n,i){return Math.floor((e*n+t*i)/(n+i))}function Et(e){const t=Mn(e),n=0;let i=wu(e);return t===i&&(i=n),de()*(t-i)+i}function N(e){return zi(e)?e:Et(e)}function wu(e){return zi(e)?e:e.min}function Mn(e){return zi(e)?e:e.max}function Z(e,t){if(e===t||t===void 0&&zi(e))return e;const n=wu(e),i=Mn(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(i,t)}:Z(n,i)}function ut(e,t){const n=e.x-t.x,i=e.y-t.y,r=2;return{dx:n,dy:i,distance:Math.sqrt(n**r+i**r)}}function At(e,t){return ut(e,t).distance}function ki(e){return e*Math.PI/180}function NO(e,t,n){if(zi(e))return ki(e);const i=0,r=.5,o=.25,s=r+o;switch(e){case We.top:return-Math.PI*r;case We.topRight:return-Math.PI*o;case We.right:return i;case We.bottomRight:return Math.PI*o;case We.bottom:return Math.PI*r;case We.bottomLeft:return Math.PI*s;case We.left:return Math.PI;case We.topLeft:return-Math.PI*s;case We.inside:return Math.atan2(n.y-t.y,n.x-t.x);case We.outside:return Math.atan2(t.y-n.y,t.x-n.x);default:return de()*$O}}function VO(e){const t=Ne.origin;return t.length=1,t.angle=e,t}function Mv(e,t,n,i){return Ne.create(e.x*(n-i)/(n+i)+t.x*2*i/(n+i),e.y)}function BO(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??de()*e.size.width,y:((n=e.position)==null?void 0:n.y)??de()*e.size.height}}function wS(e){return e?e.endsWith("%")?parseFloat(e)/mi:parseFloat(e):1}var sr;(function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"})(sr||(sr={}));var Oe;(function(e){e.increasing="increasing",e.decreasing="decreasing"})(Oe||(Oe={}));var Cr;(function(e){e.none="none",e.max="max",e.min="min"})(Cr||(Cr={}));var Q;(function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"})(Q||(Q={}));var Lo;(function(e){e.precise="precise",e.percent="percent"})(Lo||(Lo={}));var go;(function(e){e.max="max",e.min="min",e.random="random"})(go||(go={}));const UO={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function kr(){return UO}function Ev(e){const t={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,c=0;return i.mino.max||i.maxo.max||(n.max>=r.min&&n.max<=(r.max+r.min)*l&&s>c||n.min<=r.max&&n.min>(r.max+r.min)*l&&se.matches(i));return Ln(n)?n.some(i=>i):n}function Pr(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function HO(){return!Pr()&&typeof matchMedia<"u"}function bS(e){if(HO())return matchMedia(e)}function GO(e){if(!(Pr()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function KO(e){if(!(Pr()||typeof MutationObserver>"u"))return new MutationObserver(e)}function Ee(e,t){return e===t||Ln(t)&&t.indexOf(e)>-1}async function _v(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function qO(e){return Math.floor(de()*e.length)}function bu(e,t,n=!0){return e[t!==void 0&&n?t%e.length:qO(e)]}function sm(e,t,n,i,r){return QO(ka(e,i??0),t,n,r)}function QO(e,t,n,i){let r=!0;return(!i||i===Q.bottom)&&(r=e.topn.x),r&&(!i||i===Q.right)&&(r=e.leftn.y),r}function ka(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function rt(e,...t){for(const n of t){if(n==null)continue;if(!ro(n)){e=n;continue}const i=Array.isArray(n);i&&(ro(e)||!e||!Array.isArray(e))?e=[]:!i&&(ro(e)||!e||Array.isArray(e))&&(e={});for(const r in n){if(r==="__proto__")continue;const o=n,s=o[r],a=e;a[r]=ro(s)&&Array.isArray(s)?s.map(l=>rt(a[r],l)):rt(a[r],s)}}return e}function am(e,t){return!!kS(t,n=>n.enable&&Ee(e,n.mode))}function lm(e,t,n){Zt(t,i=>{const r=i.mode;i.enable&&Ee(e,r)&&YO(i,n)})}function YO(e,t){const n=e.selectors;Zt(n,i=>{t(i,e)})}function SS(e,t){if(!(!t||!e))return kS(e,n=>WO(t,n.selectors))}function rh(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:Ne.create(N(e.options.bounce.horizontal.value),N(e.options.bounce.vertical.value))}}function CS(e,t){const{x:n,y:i}=e.velocity.sub(t.velocity),[r,o]=[e.position,t.position],{dx:s,dy:a}=ut(o,r);if(n*s+i*a<0)return;const c=-Math.atan2(a,s),u=e.mass,f=t.mass,d=e.velocity.rotate(c),p=t.velocity.rotate(c),y=Mv(d,p,u,f),h=Mv(p,d,u,f),b=y.rotate(-c),m=h.rotate(-c);e.velocity.x=b.x*e.factor.x,e.velocity.y=b.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function XO(e,t){const n=e.getPosition(),i=e.getRadius(),r=ka(n,i),o=e.options.bounce,s=Ev({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:N(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=Ev({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:N(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function Zt(e,t){return Ln(e)?e.map((i,r)=>t(i,r)):t(e,0)}function sn(e,t,n){return Ln(e)?bu(e,t,n):e}function kS(e,t){return Ln(e)?e.find((i,r)=>t(i,r)):t(e,0)?e:void 0}function PS(e,t){const n=e.value,i=e.animation,r={delayTime:N(i.delay)*et,enable:i.enable,value:N(e.value)*t,max:Mn(n)*t,min:wu(n)*t,loops:0,maxLoops:N(i.count),time:0},o=1;if(i.enable){switch(r.decay=o-N(i.decay),i.mode){case sr.increase:r.status=Oe.increasing;break;case sr.decrease:r.status=Oe.decreasing;break;case sr.random:r.status=de()>=Pv?Oe.increasing:Oe.decreasing;break}const s=i.mode===sr.auto;switch(i.startValue){case go.min:r.value=r.min,s&&(r.status=Oe.increasing);break;case go.max:r.value=r.max,s&&(r.status=Oe.decreasing);break;case go.random:default:r.value=Et(r),s&&(r.status=de()>=Pv?Oe.increasing:Oe.decreasing);break}}return r.initialValue=r.value,r}function ZO(e,t){if(!(e.mode===Lo.percent)){const{mode:r,...o}=e;return o}return"x"in e?{x:e.x/mi*t.width,y:e.y/mi*t.height}:{width:e.width/mi*t.width,height:e.height/mi*t.height}}function TS(e,t){return ZO(e,t)}function JO(e,t,n,i,r){switch(t){case Cr.max:n>=r&&e.destroy();break;case Cr.min:n<=i&&e.destroy();break}}function cm(e,t,n,i,r){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const u=(t.velocity??0)*r.factor,f=t.min,d=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=r.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case Oe.increasing:t.value>=d?(n?t.status=Oe.decreasing:t.value-=d,t.loops||(t.loops=0),t.loops++):t.value+=u;break;case Oe.decreasing:t.value<=f?(n?t.status=Oe.increasing:t.value+=d,t.loops||(t.loops=0),t.loops++):t.value-=u}t.velocity&&p!==1&&(t.velocity*=p),JO(e,i,t.value,f,d),e.destroyed||(t.value=Yt(t.value,f,d))}}var oh;(function(e){e.darken="darken",e.enlighten="enlighten"})(oh||(oh={}));var Ji;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"})(Ji||(Ji={}));const xc="random",zl="mid",Su=new Map;function Rv(e){Su.set(e.key,e)}function ez(e){for(const l of Su.values())if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,c,u,f,d)=>c+c+u+u+f+f+(d!==void 0?d+d:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n),o=16;return r?{a:r[Ji.a]!==void 0?parseInt(r[Ji.a],o)/255:1,b:parseInt(r[Ji.b],o),g:parseInt(r[Ji.g],o),r:parseInt(r[Ji.r],o)}:void 0}function fn(e,t,n=!0){if(!e)return;const i=Oi(e)?{value:e}:e;if(Oi(i.value))return MS(i.value,t,n);if(Ln(i.value))return fn({value:bu(i.value,t,n)});for(const r of Su.values()){const o=r.handleRangeColor(i);if(o)return o}}function MS(e,t,n=!0){if(!e)return;const i=Oi(e)?{value:e}:e;if(Oi(i.value))return i.value===xc?_S():tz(i.value);if(Ln(i.value))return MS({value:bu(i.value,t,n)});for(const r of Su.values()){const o=r.handleColor(i);if(o)return o}}function aa(e,t,n=!0){const i=fn(e,t,n);return i?ES(i):void 0}function ES(e){const u=e.r/255,f=e.g/255,d=e.b/255,p=Math.max(u,f,d),y=Math.min(u,f,d),h={h:0,l:(p+y)*.5,s:0};return p!==y&&(h.s=h.l<.5?(p-y)/(p+y):(p-y)/(2-p-y),h.h=u===p?(f-d)/(p-y):h.h=f===p?2+(d-u)/(p-y):2*2+(u-f)/(p-y)),h.l*=100,h.s*=100,h.h*=60,h.h<0&&(h.h+=360),h.h>=360&&(h.h-=360),h}function tz(e){return ez(e)}function Io(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),c=s/360,u=a/100,f=l/100,d=255,p=3;if(a===0){const z=Math.round(f*d);return{r:z,g:z,b:z}}const y=.5,h=2,b=(z,x,_)=>{if(_<0&&_++,_>1&&_--,_*6<1)return z+(x-z)*6*_;if(_*h<1)return x;if(_*p<1*h){const Y=h/p;return z+(x-z)*(Y-_)*6}return z},m=1,g=f0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const u=e.offset?Et(e.offset):0,f=(e.velocity??0)*i.factor+u*3.6,d=e.decay??1,p=Mn(t),y=wu(t);!n||e.status===Oe.increasing?(e.value+=f,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status=Oe.decreasing:e.value-=p)):(e.value-=f,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status=Oe.increasing)),e.velocity&&d!==1&&(e.velocity*=d),e.value=Yt(e.value,y,p)}function OS(e,t){if(!e)return;const{h:n,s:i,l:r}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Sf(n,o.h,!1,t),i&&Sf(i,o.s,!0,t),r&&Sf(r,o.l,!0,t)}const Do={x:0,y:0},rl={a:1,b:0,c:0,d:1};function Is(e,t,n){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.closePath()}function iz(e,t,n){e.fillStyle=n??"rgba(0,0,0,0)",e.fillRect(Do.x,Do.y,t.width,t.height)}function rz(e,t,n,i){n&&(e.globalAlpha=i,e.drawImage(n,Do.x,Do.y,t.width,t.height),e.globalAlpha=1)}function Cf(e,t){e.clearRect(Do.x,Do.y,t.width,t.height)}function oz(e){const{container:t,context:n,particle:i,delta:r,colorStyles:o,backgroundMask:s,composite:a,radius:l,opacity:c,shadow:u,transform:f}=e,d=i.getPosition(),p=0,y=i.rotation+(i.pathRotation?i.velocity.angle:p),h={sin:Math.sin(y),cos:Math.cos(y)},b=!!y,m=1,g={a:h.cos*(f.a??rl.a),b:b?h.sin*(f.b??m):f.b??rl.b,c:b?-h.sin*(f.c??m):f.c??rl.c,d:h.cos*(f.d??rl.d)};n.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),s&&(n.globalCompositeOperation=a);const v=i.shadowColor;u.enable&&v&&(n.shadowBlur=u.blur,n.shadowColor=Xn(v),n.shadowOffsetX=u.offset.x,n.shadowOffsetY=u.offset.y),o.fill&&(n.fillStyle=o.fill);const w=0,S=i.strokeWidth??w;n.lineWidth=S,o.stroke&&(n.strokeStyle=o.stroke);const C={container:t,context:n,particle:i,radius:l,opacity:c,delta:r,transformData:g,strokeWidth:S};az(C),lz(C),sz(C),n.globalCompositeOperation="source-over",n.resetTransform()}function sz(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.effect)return;const l=t.effectDrawers.get(i.effect);l&&l.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function az(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,strokeWidth:a,transformData:l}=e,c=0;if(!i.shape)return;const u=t.shapeDrawers.get(i.shape);u&&(n.beginPath(),u.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...l}}),i.shapeClose&&n.closePath(),a>c&&n.stroke(),i.shapeFill&&n.fill())}function lz(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.shape)return;const l=t.shapeDrawers.get(i.shape);l!=null&&l.afterDraw&&l.afterDraw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function cz(e,t,n){t.draw&&t.draw(e,n)}function uz(e,t,n,i){t.drawParticle&&t.drawParticle(e,n,i)}function fz(e,t,n){return{h:e.h,s:e.s,l:e.l+(t===oh.darken?-1:1)*n}}function dz(e,t,n){const i=t[n],r=1;i!==void 0&&(e[n]=(e[n]??r)*i)}function Ov(e,t,n=!1){if(!t)return;const i=e;if(!i)return;const r=i.style;if(r)for(const o in t){const s=t[o];r.setProperty(o,s,n?"important":"")}}class hz{constructor(t){this.container=t,this._applyPostDrawUpdaters=n=>{var i;for(const r of this._postDrawUpdaters)(i=r.afterDraw)==null||i.call(r,n)},this._applyPreDrawUpdaters=(n,i,r,o,s,a)=>{var l;for(const c of this._preDrawUpdaters){if(c.getColorStyles){const{fill:u,stroke:f}=c.getColorStyles(i,n,r,o);u&&(s.fill=u),f&&(s.stroke=f)}if(c.getTransformValues){const u=c.getTransformValues(i);for(const f in u)dz(a,u,f)}(l=c.beforeDraw)==null||l.call(c,i)}},this._applyResizePlugins=()=>{var n;for(const i of this._resizePlugins)(n=i.resize)==null||n.call(i)},this._getPluginParticleColors=n=>{let i,r;for(const o of this._colorPlugins)if(!i&&o.particleFillColor&&(i=aa(o.particleFillColor(n))),!r&&o.particleStrokeColor&&(r=aa(o.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=async()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color;if(r){const o=fn(r);if(o){const s={...o,a:i.opacity};this._coverColorStyle=Xn(s,s.a)}}else await new Promise((o,s)=>{if(!i.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:i.opacity},o()}),a.addEventListener("error",l=>{s(l.error)}),a.src=i.image})},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=rt({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const o=i.style[r];o&&n.style.setProperty(r,o,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(!i.enable)return;const o=1,s=o/i.length;if(r.color){const a=fn(r.color);if(!a)return;this._trailFill={color:{...a},opacity:s}}else await new Promise((a,l)=>{if(!r.image)return;const c=document.createElement("img");c.addEventListener("load",()=>{this._trailFill={image:c,opacity:s},a()}),c.addEventListener("error",u=>{l(u.error)}),c.src=r.image})},this._paintBase=n=>{this.draw(i=>iz(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>rz(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>{!n||!(n instanceof Node)||i.observe(n,{attributes:!0})}))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;n&&i&&Ov(n,i)},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i=10,r=this.container.actualOptions.fullScreen.zIndex.toString(i);Ov(n,{position:"fixed","z-index":r,zIndex:r,top:"0",left:"0",width:"100%",height:"100%"},!0)},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 t=this.container.actualOptions,n=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(Xn(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(o=>{Cf(o,this.size)})}destroy(){if(this.stop(),this._generated){const t=this.element;t==null||t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const n=this._context;if(n)return t(n)}drawAsync(t){const n=this._context;if(n)return t(n)}drawParticle(t,n){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const o=t.getFillColor(),s=t.getStrokeColor()??o;let[a,l]=this._getPluginParticleColors(t);a||(a=o),l||(l=s),!(!a&&!l)&&this.draw(c=>{var T;const u=this.container,f=u.actualOptions,d=t.options.zIndex,p=1,y=p-t.zIndexFactor,h=y**d.opacityRate,b=1,m=t.bubble.opacity??((T=t.opacity)==null?void 0:T.value)??b,g=t.strokeOpacity??m,v=m*h,w=g*h,S={},C={fill:a?la(a,v):void 0};C.stroke=l?la(l,w):C.fill,this._applyPreDrawUpdaters(c,t,i,v,C,S),oz({container:u,context:c,particle:t,delta:n,colorStyles:C,backgroundMask:f.backgroundMask.enable,composite:f.backgroundMask.composite,radius:i*y**d.sizeRate,opacity:v,shadow:t.options.shadow,transform:S}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,n,i){this.draw(r=>uz(r,t,n,i))}drawPlugin(t,n){this.draw(i=>cz(i,t,n))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=KO(t=>{for(const n of t)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){kr().error(t)}this.initBackground(),this._safeMutationObserver(t=>{!this.element||!(this.element instanceof Node)||t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions,n=t.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const o=fn(n.color);r.backgroundColor=o?Xn(o,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 t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&or in t.dataset?t.dataset[or]==="true":this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=rt({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{!this.element||!(this.element instanceof Node)||n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw(n=>{t.backgroundMask.enable&&t.backgroundMask.cover?(Cf(n,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const t=this.container,n=t.retina.pixelRatio,i=t.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 o={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&t.particles.setResizeFactor({width:i.width/o.width,height:i.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>Cf(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,n=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),n&&await t.refresh()}}var yo;(function(e){e.canvas="canvas",e.parent="parent",e.window="window"})(yo||(yo={}));const zv=2;function Ft(e,t,n,i,r){if(i){let o={passive:!0};yS(r)?o.capture=r:r!==void 0&&(o=r),e.addEventListener(t,n,o)}else{const o=r;e.removeEventListener(t,n,o)}}class pz{constructor(t){this.container=t,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const o=i.interactivity.mouse,s=o.position;if(!s)return;o.clickPosition={...s},o.clickTime=new Date().getTime();const a=r.interactivity.events.onClick;Zt(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,o=r.options,s=o.defaultThemes,a=i.matches?s.dark:s.light,l=o.themes.find(c=>c.name===a);l!=null&&l.default.auto&&r.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document!=null&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.animationStatus?n.play(!0):n.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const n=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void n(),this.container.actualOptions.interactivity.events.resize.delay*et)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,o=this.container,s=o.actualOptions,a=o.interactivity.element;if(!a)return;const l=a,c=o.canvas.element;c&&(c.style.pointerEvents=l===c?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(Ft(a,Sr,r.mouseMove,i),Ft(a,_O,r.touchStart,i),Ft(a,RO,r.touchMove,i),s.interactivity.events.onClick.enable?(Ft(a,kv,r.touchEndClick,i),Ft(a,MO,r.mouseUp,i),Ft(a,TO,r.mouseDown,i)):Ft(a,kv,r.touchEnd,i),Ft(a,n,r.mouseLeave,i),Ft(a,AO,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,o=r.actualOptions,s=o.interactivity.detectsOn,a=r.canvas.element;let l=nh;s===yo.window?(r.interactivity.element=window,l=EO):s===yo.parent&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&Ft(document,zO,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=bS("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){Ft(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"){Ft(window,OO,i.resize,n);return}const s=r.canvas.element;this._resizeObserver&&!n?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&s&&(this._resizeObserver=new ResizeObserver(a=>{a.find(c=>c.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},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:o}=i.interactivity;o.inside=!0;let s=!1;const a=o.position;if(!(!a||!r.interactivity.events.onClick.enable)){for(const l of i.plugins.values())if(l.clickPositionValid&&(s=l.clickPositionValid(a),s))break;s||this._doMouseTouchClick(n),o.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=nh,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,o=i.interactivity,s=i.canvas.element;if(!(o!=null&&o.element))return;o.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const c=n;if(o.element===window){if(s){const u=s.getBoundingClientRect();a={x:c.clientX-u.left,y:c.clientY-u.top}}}else if(r.interactivity.detectsOn===yo.parent){const u=c.target,f=c.currentTarget;if(u&&f&&s){const d=u.getBoundingClientRect(),p=f.getBoundingClientRect(),y=s.getBoundingClientRect();a={x:c.offsetX+zv*d.left-(p.left+y.left),y:c.offsetY+zv*d.top-(p.top+y.top)}}else a={x:c.offsetX??c.clientX,y:c.offsetY??c.clientY}}else c.target===s&&(a={x:c.offsetX??c.clientX,y:c.offsetY??c.clientY})}else if(this._canPush=n.type!=="touchmove",s){const c=n,u=1,f=c.touches[c.touches.length-u],d=s.getBoundingClientRect(),p=0;a={x:f.clientX-(d.left??p),y:f.clientY-(d.top??p)}}const l=i.retina.pixelRatio;a&&(a.x*=l,a.y*=l),o.mouse.position=a,o.status=Sr},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.set(o.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)}}var at;(function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"})(at||(at={}));class ot{constructor(){this.value=""}static create(t,n){const i=new ot;return i.load(t),n!==void 0&&(Oi(n)||Ln(n)?i.load({value:n}):i.load(n)),i}load(t){L(t)||L(t.value)||(this.value=t.value)}}class mz{constructor(){this.color=new ot,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){L(t)||(t.color!==void 0&&(this.color=ot.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.position!==void 0&&(this.position=t.position),t.repeat!==void 0&&(this.repeat=t.repeat),t.size!==void 0&&(this.size=t.size),t.opacity!==void 0&&(this.opacity=t.opacity))}}class gz{constructor(){this.opacity=1}load(t){L(t)||(t.color!==void 0&&(this.color=ot.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.opacity!==void 0&&(this.opacity=t.opacity))}}class yz{constructor(){this.composite="destination-out",this.cover=new gz,this.enable=!1}load(t){if(!L(t)){if(t.composite!==void 0&&(this.composite=t.composite),t.cover!==void 0){const n=t.cover,i=Oi(t.cover)?{color:t.cover}:t.cover;this.cover.load(n.color!==void 0||n.image!==void 0?n:{color:i})}t.enable!==void 0&&(this.enable=t.enable)}}}class vz{constructor(){this.enable=!0,this.zIndex=0}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.zIndex!==void 0&&(this.zIndex=t.zIndex))}}class xz{constructor(){this.enable=!1,this.mode=[]}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode))}}var $o;(function(e){e.circle="circle",e.rectangle="rectangle"})($o||($o={}));class Lv{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=$o.circle}load(t){L(t)||(t.selectors!==void 0&&(this.selectors=t.selectors),t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),t.type!==void 0&&(this.type=t.type))}}class wz{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.force!==void 0&&(this.force=t.force),t.smooth!==void 0&&(this.smooth=t.smooth))}}class bz{constructor(){this.enable=!1,this.mode=[],this.parallax=new wz}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class Sz{constructor(){this.delay=.5,this.enable=!0}load(t){L(t)||(t.delay!==void 0&&(this.delay=t.delay),t.enable!==void 0&&(this.enable=t.enable))}}class Cz{constructor(){this.onClick=new xz,this.onDiv=new Lv,this.onHover=new bz,this.resize=new Sz}load(t){if(L(t))return;this.onClick.load(t.onClick);const n=t.onDiv;n!==void 0&&(this.onDiv=Zt(n,i=>{const r=new Lv;return r.load(i),r})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class kz{constructor(t,n){this._engine=t,this._container=n}load(t){if(L(t)||!this._container)return;const n=this._engine.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,t)}}class zS{constructor(t,n){this.detectsOn=yo.window,this.events=new Cz,this.modes=new kz(t,n)}load(t){if(L(t))return;const n=t.detectsOn;n!==void 0&&(this.detectsOn=n),this.events.load(t.events),this.modes.load(t.modes)}}const Iv=50;class Pz{load(t){L(t)||(t.position&&(this.position={x:t.position.x??Iv,y:t.position.y??Iv,mode:t.position.mode??Lo.percent}),t.options&&(this.options=rt({},t.options)))}}var ar;(function(e){e.screen="screen",e.canvas="canvas"})(ar||(ar={}));class Tz{constructor(){this.maxWidth=1/0,this.options={},this.mode=ar.canvas}load(t){L(t)||(L(t.maxWidth)||(this.maxWidth=t.maxWidth),L(t.mode)||(t.mode===ar.screen?this.mode=ar.screen:this.mode=ar.canvas),L(t.options)||(this.options=rt({},t.options)))}}var di;(function(e){e.any="any",e.dark="dark",e.light="light"})(di||(di={}));class Mz{constructor(){this.auto=!1,this.mode=di.any,this.value=!1}load(t){L(t)||(t.auto!==void 0&&(this.auto=t.auto),t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class Ez{constructor(){this.name="",this.default=new Mz}load(t){L(t)||(t.name!==void 0&&(this.name=t.name),this.default.load(t.default),t.options!==void 0&&(this.options=rt({},t.options)))}}class fm{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){L(t)||(t.count!==void 0&&(this.count=Z(t.count)),t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=Z(t.speed)),t.decay!==void 0&&(this.decay=Z(t.decay)),t.delay!==void 0&&(this.delay=Z(t.delay)),t.sync!==void 0&&(this.sync=t.sync))}}class dm extends fm{constructor(){super(),this.mode=sr.auto,this.startValue=go.random}load(t){super.load(t),!L(t)&&(t.mode!==void 0&&(this.mode=t.mode),t.startValue!==void 0&&(this.startValue=t.startValue))}}class kf extends fm{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),!L(t)&&t.offset!==void 0&&(this.offset=Z(t.offset))}}class _z{constructor(){this.h=new kf,this.s=new kf,this.l=new kf}load(t){L(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ca extends ot{constructor(){super(),this.animation=new _z}static create(t,n){const i=new ca;return i.load(t),n!==void 0&&(Oi(n)||Ln(n)?i.load({value:n}):i.load(n)),i}load(t){if(super.load(t),L(t))return;const n=t.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(t.animation))}}var vo;(function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"})(vo||(vo={}));class Rz{constructor(){this.speed=2}load(t){L(t)||t.speed!==void 0&&(this.speed=t.speed)}}class Az{constructor(){this.enable=!0,this.retries=0}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.retries!==void 0&&(this.retries=t.retries))}}class _r{constructor(){this.value=0}load(t){L(t)||L(t.value)||(this.value=Z(t.value))}}class Oz extends _r{constructor(){super(),this.animation=new fm}load(t){if(super.load(t),L(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class LS extends Oz{constructor(){super(),this.animation=new dm}load(t){super.load(t)}}class Dv extends _r{constructor(){super(),this.value=1}}class IS{constructor(){this.horizontal=new Dv,this.vertical=new Dv}load(t){L(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class zz{constructor(){this.absorb=new Rz,this.bounce=new IS,this.enable=!1,this.maxSpeed=50,this.mode=vo.bounce,this.overlap=new Az}load(t){L(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),t.enable!==void 0&&(this.enable=t.enable),t.maxSpeed!==void 0&&(this.maxSpeed=Z(t.maxSpeed)),t.mode!==void 0&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Lz{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(L(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=rt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class Iz{constructor(){this.offset=0,this.value=90}load(t){L(t)||(t.offset!==void 0&&(this.offset=Z(t.offset)),t.value!==void 0&&(this.value=Z(t.value)))}}class Dz{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!L(t)&&(t.distance!==void 0&&(this.distance=Z(t.distance)),t.enable!==void 0&&(this.enable=t.enable),t.rotate)){const n=t.rotate.x;n!==void 0&&(this.rotate.x=n);const i=t.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class $z{constructor(){this.x=50,this.y=50,this.mode=Lo.percent,this.radius=0}load(t){L(t)||(t.x!==void 0&&(this.x=t.x),t.y!==void 0&&(this.y=t.y),t.mode!==void 0&&(this.mode=t.mode),t.radius!==void 0&&(this.radius=t.radius))}}class Fz{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){L(t)||(t.acceleration!==void 0&&(this.acceleration=Z(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.inverse!==void 0&&(this.inverse=t.inverse),t.maxSpeed!==void 0&&(this.maxSpeed=Z(t.maxSpeed)))}}class jz{constructor(){this.clamp=!0,this.delay=new _r,this.enable=!1,this.options={}}load(t){L(t)||(t.clamp!==void 0&&(this.clamp=t.clamp),this.delay.load(t.delay),t.enable!==void 0&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=rt(this.options,t.options)))}}class Nz{load(t){L(t)||(t.color!==void 0&&(this.color=ot.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image))}}class Vz{constructor(){this.enable=!1,this.length=10,this.fill=new Nz}load(t){L(t)||(t.enable!==void 0&&(this.enable=t.enable),t.fill!==void 0&&this.fill.load(t.fill),t.length!==void 0&&(this.length=t.length))}}var Ie;(function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"})(Ie||(Ie={}));class Bz{constructor(){this.default=Ie.out}load(t){L(t)||(t.default!==void 0&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class Uz{constructor(){this.acceleration=0,this.enable=!1}load(t){L(t)||(t.acceleration!==void 0&&(this.acceleration=Z(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.position&&(this.position=rt({},t.position)))}}class Wz{constructor(){this.angle=new Iz,this.attract=new Dz,this.center=new $z,this.decay=0,this.distance={},this.direction=We.none,this.drift=0,this.enable=!1,this.gravity=new Fz,this.path=new jz,this.outModes=new Bz,this.random=!1,this.size=!1,this.speed=2,this.spin=new Uz,this.straight=!1,this.trail=new Vz,this.vibrate=!1,this.warp=!1}load(t){if(L(t))return;this.angle.load(zi(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),t.decay!==void 0&&(this.decay=Z(t.decay)),t.direction!==void 0&&(this.direction=t.direction),t.distance!==void 0&&(this.distance=zi(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),t.drift!==void 0&&(this.drift=Z(t.drift)),t.enable!==void 0&&(this.enable=t.enable),this.gravity.load(t.gravity);const n=t.outModes;n!==void 0&&(ro(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(t.path),t.random!==void 0&&(this.random=t.random),t.size!==void 0&&(this.size=t.size),t.speed!==void 0&&(this.speed=Z(t.speed)),this.spin.load(t.spin),t.straight!==void 0&&(this.straight=t.straight),this.trail.load(t.trail),t.vibrate!==void 0&&(this.vibrate=t.vibrate),t.warp!==void 0&&(this.warp=t.warp)}}class Hz extends dm{constructor(){super(),this.destroy=Cr.none,this.speed=2}load(t){super.load(t),!L(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class Gz extends LS{constructor(){super(),this.animation=new Hz,this.value=1}load(t){if(L(t))return;super.load(t);const n=t.animation;n!==void 0&&this.animation.load(n)}}class Kz{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(L(t))return;t.enable!==void 0&&(this.enable=t.enable);const n=t.width;n!==void 0&&(this.width=n);const i=t.height;i!==void 0&&(this.height=i)}}var ua;(function(e){e.delete="delete",e.wait="wait"})(ua||(ua={}));class qz{constructor(){this.mode=ua.delete,this.value=0}load(t){L(t)||(t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class Qz{constructor(){this.density=new Kz,this.limit=new qz,this.value=0}load(t){L(t)||(this.density.load(t.density),this.limit.load(t.limit),t.value!==void 0&&(this.value=t.value))}}class Yz{constructor(){this.blur=0,this.color=new ot,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){L(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=ot.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable),t.offset!==void 0&&(t.offset.x!==void 0&&(this.offset.x=t.offset.x),t.offset.y!==void 0&&(this.offset.y=t.offset.y)))}}class Xz{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(L(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=rt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class Zz extends dm{constructor(){super(),this.destroy=Cr.none,this.speed=5}load(t){super.load(t),!L(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class Jz extends LS{constructor(){super(),this.animation=new Zz,this.value=3}load(t){if(super.load(t),L(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class $v{constructor(){this.width=0}load(t){L(t)||(t.color!==void 0&&(this.color=ca.create(this.color,t.color)),t.width!==void 0&&(this.width=Z(t.width)),t.opacity!==void 0&&(this.opacity=Z(t.opacity)))}}class eL extends _r{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),!L(t)&&(t.opacityRate!==void 0&&(this.opacityRate=t.opacityRate),t.sizeRate!==void 0&&(this.sizeRate=t.sizeRate),t.velocityRate!==void 0&&(this.velocityRate=t.velocityRate))}}class tL{constructor(t,n){this._engine=t,this._container=n,this.bounce=new IS,this.collisions=new zz,this.color=new ca,this.color.value="#fff",this.effect=new Lz,this.groups={},this.move=new Wz,this.number=new Qz,this.opacity=new Gz,this.reduceDuplicates=!1,this.shadow=new Yz,this.shape=new Xz,this.size=new Jz,this.stroke=new $v,this.zIndex=new eL}load(t){if(L(t))return;if(t.groups!==void 0)for(const i of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,i))continue;const r=t.groups[i];r!==void 0&&(this.groups[i]=rt(this.groups[i]??{},r))}t.reduceDuplicates!==void 0&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ca.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),t.interactivity!==void 0&&(this.interactivity=rt({},t.interactivity));const n=t.stroke;if(n&&(this.stroke=Zt(n,i=>{const r=new $v;return r.load(i),r})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const o of i)o.loadOptions&&o.loadOptions(this,t);const r=this._engine.interactors.get(this._container);if(r)for(const o of r)o.loadParticlesOptions&&o.loadParticlesOptions(this,t)}}}function DS(e,...t){for(const n of t)e.load(n)}function $S(e,t,...n){const i=new tL(e,t);return DS(i,...n),i}class nL{constructor(t,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===di.any),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=t,this._container=n,this.autoPlay=!0,this.background=new mz,this.backgroundMask=new yz,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new vz,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new zS(t,n),this.manualParticles=[],this.particles=$S(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){var s,a;if(L(t))return;t.preset!==void 0&&Zt(t.preset,l=>this._importPreset(l)),t.autoPlay!==void 0&&(this.autoPlay=t.autoPlay),t.clear!==void 0&&(this.clear=t.clear),t.key!==void 0&&(this.key=t.key),t.name!==void 0&&(this.name=t.name),t.delay!==void 0&&(this.delay=Z(t.delay));const n=t.detectRetina;n!==void 0&&(this.detectRetina=n),t.duration!==void 0&&(this.duration=Z(t.duration));const i=t.fpsLimit;i!==void 0&&(this.fpsLimit=i),t.pauseOnBlur!==void 0&&(this.pauseOnBlur=t.pauseOnBlur),t.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),t.zLayers!==void 0&&(this.zLayers=t.zLayers),this.background.load(t.background);const r=t.fullScreen;yS(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(l=>{const c=new Pz;return c.load(l),c})),this.particles.load(t.particles),this.style=rt(this.style,t.style),this._engine.loadOptions(this,t),t.smooth!==void 0&&(this.smooth=t.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const l of o)l.loadOptions&&l.loadOptions(this,t);if(t.responsive!==void 0)for(const l of t.responsive){const c=new Tz;c.load(l),this.responsive.push(c)}if(this.responsive.sort((l,c)=>l.maxWidth-c.maxWidth),t.themes!==void 0)for(const l of t.themes){const c=this.themes.find(u=>u.name===l.name);if(c)c.load(l);else{const u=new Ez;u.load(l),this.themes.push(u)}}this.defaultThemes.dark=(s=this._findDefaultTheme(di.dark))==null?void 0:s.name,this.defaultThemes.light=(a=this._findDefaultTheme(di.light))==null?void 0:a.name}setResponsive(t,n,i){this.load(i);const r=this.responsive.find(o=>o.mode===ar.screen&&screen?o.maxWidth>screen.availWidth:o.maxWidth*n>t);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(t){if(t){const n=this.themes.find(i=>i.name===t);n&&this.load(n.options)}else{const n=bS("(prefers-color-scheme: dark)"),i=n==null?void 0:n.matches,r=this._findDefaultTheme(i?di.dark:di.light);r&&this.load(r.options)}}}var Fo;(function(e){e.external="external",e.particles="particles"})(Fo||(Fo={}));class iL{constructor(t,n){this.container=n,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const n of this._externalInteractors)n.isEnabled()&&n.interact(t)}handleClickMode(t){var n;for(const i of this._externalInteractors)(n=i.handleClickMode)==null||n.call(i,t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case Fo.external:this._externalInteractors.push(t);break;case Fo.particles:this._particleInteractors.push(t);break}t.init()}}particlesInteract(t,n){for(const i of this._externalInteractors)i.clear(t,n);for(const i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,n)}reset(t){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(t);for(const n of this._particleInteractors)n.isEnabled(t)&&n.reset(t)}}var dn;(function(e){e.normal="normal",e.inside="inside",e.outside="outside"})(dn||(dn={}));const Fv=0,ah=2,ol=.5,rL=2,jv="random";function oL(e,t,n,i){const r=t.options[e];if(r)return rt({close:t.close,fill:t.fill},sn(r,n,i))}function sL(e,t,n,i){const r=t.options[e];if(r)return rt({close:t.close,fill:t.fill},sn(r,n,i))}function Nv(e){if(!Ee(e.outMode,e.checkModes))return;const t=e.radius*ah;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord{for(const y of i.plugins.values()){const h=y.particlePosition!==void 0?y.particlePosition(r,this):void 0;if(h)return kt.create(h.x,h.y,o)}const a=i.canvas.size,l=BO({size:a,position:r}),c=kt.create(l.x,l.y,o),u=this.getRadius(),f=this.options.move.outModes,d=y=>{Nv({outMode:y,checkModes:[Ie.bounce],coord:c.x,maxCoord:i.canvas.size.width,setCb:h=>c.x+=h,radius:u})},p=y=>{Nv({outMode:y,checkModes:[Ie.bounce],coord:c.y,maxCoord:i.canvas.size.height,setCb:h=>c.y+=h,radius:u})};return d(f.left??f.default),d(f.right??f.default),p(f.top??f.default),p(f.bottom??f.default),this._checkOverlap(c,s)?this._calcPosition(i,void 0,o,s+1):c},this._calculateVelocity=()=>{const i=VO(this.direction),r=i.copy(),o=this.options.move;if(o.direction===We.inside||o.direction===We.outside)return r;const s=ki(N(o.angle.value)),a=ki(N(o.angle.offset)),l={left:a-s*ol,right:a+s*ol};return o.straight||(r.angle+=Et(Z(l.left,l.right))),o.random&&typeof o.speed=="number"&&(r.length*=de()),r},this._checkOverlap=(i,r=Fv)=>{const o=this.options.collisions,s=this.getRadius();if(!o.enable)return!1;const a=o.overlap;if(a.enable)return!1;const l=a.retries;if(l>=0&&r>l)throw new Error(`${Qt} particle is overlapping and can't be placed`);return!!this.container.particles.find(u=>At(i,u.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const r=1,o=0,s=this.roll.horizontal&&this.roll.vertical?ah*r:r,a=this.roll.horizontal?Math.PI*ol:o;return Math.floor(((this.roll.angle??o)+a)/(Math.PI/s))%ah?this.backColor?this.backColor:this.roll.alter?fz(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const r=this.container,o=N(this.options.zIndex.value),s=0;this.position=this._calcPosition(r,i,Yt(o,s,r.zLayers)),this.initialPosition=this.position.copy();const a=r.canvas.size,l=0;switch(this.moveCenter={...TS(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??Lo.percent},this.direction=NO(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case We.inside:this.outType=dn.inside;break;case We.outside:this.outType=dn.outside;break}this.offset=Ne.origin},this._engine=t}destroy(t){var o,s,a;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator,r=n.shapeDrawers.get(this.shape);(o=r==null?void 0:r.particleDestroy)==null||o.call(r,this);for(const l of n.plugins.values())(s=l.particleDestroyed)==null||s.call(l,this,t);for(const l of n.particles.updaters)(a=l.particleDestroyed)==null||a.call(l,this,t);i==null||i.reset(this),this._engine.dispatchEvent(at.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const n=this.container,i=n.canvas;for(const r of n.plugins.values())i.drawParticlePlugin(r,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??Av(this.color))}getMass(){return this.getRadius()**rL*Math.PI*ol}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??Av(this.strokeColor))}init(t,n,i,r){var M,z,x,_,R,F;const o=this.container,s=this._engine;this.id=t,this.group=r,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=dn.normal,this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,l=o.actualOptions,c=$S(this._engine,o,l.particles),{reduceDuplicates:u}=c,f=c.effect.type,d=c.shape.type;this.effect=sn(f,this.id,u),this.shape=sn(d,this.id,u);const p=c.effect,y=c.shape;if(i){if((M=i.effect)!=null&&M.type){const D=i.effect.type,Y=sn(D,this.id,u);Y&&(this.effect=Y,p.load(i.effect))}if((z=i.shape)!=null&&z.type){const D=i.shape.type,Y=sn(D,this.id,u);Y&&(this.shape=Y,y.load(i.shape))}}if(this.effect===jv){const D=[...this.container.effectDrawers.keys()];this.effect=D[Math.floor(Math.random()*D.length)]}if(this.shape===jv){const D=[...this.container.shapeDrawers.keys()];this.shape=D[Math.floor(Math.random()*D.length)]}this.effectData=oL(this.effect,p,this.id,u),this.shapeData=sL(this.shape,y,this.id,u),c.load(i);const h=this.effectData;h&&c.load(h.particles);const b=this.shapeData;b&&c.load(b.particles);const m=new zS(s,o);m.load(o.actualOptions.interactivity),m.load(c.interactivity),this.interactivity=m,this.effectFill=(h==null?void 0:h.fill)??c.effect.fill,this.effectClose=(h==null?void 0:h.close)??c.effect.close,this.shapeFill=(b==null?void 0:b.fill)??c.shape.fill,this.shapeClose=(b==null?void 0:b.close)??c.shape.close,this.options=c;const g=this.options.move.path;this.pathDelay=N(g.delay.value)*et,g.generator&&(this.pathGenerator=this._engine.getPathGenerator(g.generator),this.pathGenerator&&o.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=PS(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const v=1;this.moveDecay=v-N(this.options.move.decay);const w=o.particles;w.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let S=o.effectDrawers.get(this.effect);S||(S=this._engine.getEffectDrawer(this.effect),S&&o.effectDrawers.set(this.effect,S)),S!=null&&S.loadEffect&&S.loadEffect(this);let C=o.shapeDrawers.get(this.shape);C||(C=this._engine.getShapeDrawer(this.shape),C&&o.shapeDrawers.set(this.shape,C)),C!=null&&C.loadShape&&C.loadShape(this);const T=C==null?void 0:C.getSidesCount;T&&(this.sides=T(this)),this.spawning=!1,this.shadowColor=fn(this.options.shadow.color);for(const D of w.updaters)D.init(this);for(const D of w.movers)(x=D.init)==null||x.call(D,this);(_=S==null?void 0:S.particleInit)==null||_.call(S,o,this),(R=C==null?void 0:C.particleInit)==null||R.call(C,o,this);for(const D of o.plugins.values())(F=D.particleCreated)==null||F.call(D,this)}isInsideCanvas(){const t=this.getRadius(),n=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=n.height+t&&i.x<=n.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var t;for(const n of this.container.particles.updaters)(t=n.reset)==null||t.call(n,this)}}class lL{constructor(t,n){this.position=t,this.particle=n}}var xo;(function(e){e.circle="circle",e.rectangle="rectangle"})(xo||(xo={}));const as=2;class FS{constructor(t,n,i){this.position={x:t,y:n},this.type=i}}class nt extends FS{constructor(t,n,i){super(t,n,xo.circle),this.radius=i}contains(t){return At(t,this.position)<=this.radius}intersects(t){const n=this.position,i=t.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},o=this.radius;if(t instanceof nt||t.type===xo.circle){const s=t,a=o+s.radius,l=Math.sqrt(r.x**as+r.y**as);return a>l}else if(t instanceof pn||t.type===xo.rectangle){const s=t,{width:a,height:l}=s.size;return Math.pow(r.x-a,as)+Math.pow(r.y-l,as)<=o**as||r.x<=o+a&&r.y<=o+l||r.x<=a||r.y<=l}return!1}}class pn extends FS{constructor(t,n,i,r){super(t,n,xo.rectangle),this.size={height:r,width:i}}contains(t){const n=this.size.width,i=this.size.height,r=this.position;return t.x>=r.x&&t.x<=r.x+n&&t.y>=r.y&&t.y<=r.y+i}intersects(t){if(t instanceof nt)return t.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,o=t.position,s=t instanceof pn?t.size:{width:0,height:0},a=s.width,l=s.height;return o.xr.x&&o.yr.y}}const ls=.5,cL=2,uL=4;class wc{constructor(t,n){this.rectangle=t,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:o,height:s}=this.rectangle.size,{capacity:a}=this;for(let l=0;ln.insert(t))):!1}query(t,n){const i=[];if(!t.intersects(this.rectangle))return[];for(const r of this._points)!t.contains(r.position)&&At(t.position,r.position)>r.particle.getRadius()&&(!n||n(r.particle))||i.push(r.particle);if(this._divided)for(const r of this._subs)i.push(...r.query(t,n));return i}queryCircle(t,n,i){return this.query(new nt(t.x,t.y,n),i)}queryRectangle(t,n,i){return this.query(new pn(t.x,t.y,n.width,n.height),i)}}const Vv=4,fL=2,dL=1,Bv=e=>{const{height:t,width:n}=e,i=-.25,r=1.5;return new pn(i*n,i*t,r*n,r*t)};class hL{constructor(t,n){this._addToPool=(...r)=>{this._pool.push(...r)},this._applyDensity=(r,o,s)=>{var y;const a=r.number;if(!((y=r.number.density)!=null&&y.enable)){s===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(s,a.limit.value);return}const l=this._initDensityFactor(a.density),c=a.value,u=0,f=a.limit.value>u?a.limit.value:c,d=Math.min(c,f)*l+o,p=Math.min(this.count,this.filter(h=>h.group===s).length);s===void 0?this._limit=a.limit.value*l:this._groupLimits.set(s,a.limit.value*l),pd&&this.removeQuantity(p-d,s)},this._initDensityFactor=r=>{const o=this._container,s=1;if(!o.canvas.element||!r.enable)return s;const a=o.canvas.element,l=o.retina.pixelRatio;return a.width*a.height/(r.height*r.width*l**fL)},this._pushParticle=(r,o,s,a)=>{try{let l=this._pool.pop();l||(l=new aL(this._engine,this._container)),l.init(this._nextId,r,o,s);let c=!0;return a&&(c=a(l)),c?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent(at.particleAdded,{container:this._container,data:{particle:l}}),l):void 0}catch(l){kr().warning(`${Qt} adding particle: ${l}`)}},this._removeParticle=(r,o,s)=>{const a=this._array[r];if(!a||a.group!==o)return!1;const l=this._zArray.indexOf(a),c=1;return this._array.splice(r,c),this._zArray.splice(l,c),a.destroy(s),this._engine.dispatchEvent(at.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=t,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new iL(t,n),this._pluginsInitialized=!1;const i=n.canvas.size;this.quadTree=new wc(Bv(i),Vv),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(i=>this.addParticle(i.position?TS(i.position,t.canvas.size):void 0,i.options))}addParticle(t,n,i,r){const o=this._container.actualOptions.particles.number.limit.mode,s=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(s>0)switch(o){case ua.delete:{const f=a+1-s;f>0&&this.removeQuantity(f);break}case ua.wait:if(a>=s)return;break}return this._pushParticle(t,n,i,r)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const n=this._container,i=n.canvas;i.clear(),this.update(t);for(const r of n.plugins.values())i.drawPlugin(r,t);for(const r of this._zArray)r.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){var r,o;const t=this._container,n=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const s of t.plugins.values())if(i=((r=s.particlesInitialization)==null?void 0:r.call(s))??i,i)break;if(this.addManualParticles(),!i){const s=n.particles,a=s.groups;for(const l in a){const c=a[l];for(let u=this.count,f=0;f<((o=c.number)==null?void 0:o.value)&&uthis.count)return;let s=0;for(let a=t;s!i.has(l);this._array=this.filter(a),this._zArray=this._zArray.filter(a);for(const l of i)this._engine.dispatchEvent(at.particleRemoved,{container:this._container,data:{particle:l}});this._addToPool(...i)}this._interactionManager.externalInteract(t);for(const a of this._array){for(const l of this.updaters)l.update(a,t);!a.destroyed&&!a.spawning&&this._interactionManager.particlesInteract(a,t)}if(delete this._resizeFactor,this._needsSort){const a=this._zArray;a.sort((c,u)=>u.position.z-c.position.z||c.id-u.id);const l=1;this._lastZIndex=a[a.length-l].position.z,this._needsSort=!1}}}const Uv=1,Wv=1;class pL{constructor(t){this.container=t,this.pixelRatio=Uv,this.reduceFactor=Wv}init(){const t=this.container,n=t.actualOptions;this.pixelRatio=!n.detectRetina||Pr()?Uv:window.devicePixelRatio,this.reduceFactor=Wv;const i=this.pixelRatio,r=t.canvas;if(r.element){const a=r.element;r.size.width=a.offsetWidth*i,r.size.height=a.offsetHeight*i}const o=n.particles,s=o.move;this.maxSpeed=N(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=N(o.size.animation.speed)*i}initParticle(t){const n=t.options,i=this.pixelRatio,r=n.move,o=r.distance,s=t.retina;s.moveDrift=N(r.drift)*i,s.moveSpeed=N(r.speed)*i,s.sizeAnimationSpeed=N(n.size.animation.speed)*i;const a=s.maxDistance;a.horizontal=o.horizontal!==void 0?o.horizontal*i:void 0,a.vertical=o.vertical!==void 0?o.vertical*i:void 0,s.maxSpeed=N(r.gravity.maxSpeed)*i}}function we(e){return e&&!e.destroyed}const Pf=60;function mL(e,t=Pf,n=!1){return{value:e,factor:n?Pf/t:Pf*e/et}}function $r(e,t,...n){const i=new nL(e,t);return DS(i,...n),i}let gL=class{constructor(t,n,i){this._intersectionManager=r=>{if(!(!we(this)||!this.actualOptions.pauseOnOutsideViewport))for(const o of r)o.target===this.interactivity.element&&(o.isIntersecting?this.play():this.pause())},this._nextFrame=r=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&ret){this.draw(!1);return}if(this.particles.draw(o),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(o){kr().error(`${Qt} in animation loop`,o)}},this._engine=t,this.id=Symbol(n),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new pL(this),this.canvas=new hz(this),this.particles=new hL(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=$r(this._engine,this),this.actualOptions=$r(this._engine,this),this._eventListeners=new pz(this),this._intersectionObserver=GO(r=>this._intersectionManager(r)),this._engine.dispatchEvent(at.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&we(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!we(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,p)=>{if(!we(this))return;const y=this.retina.pixelRatio,h={x:d.x*y,y:d.y*y},b=this.particles.quadTree.queryCircle(h,p*y);t(f,b)},r=f=>{if(!we(this))return;const d=f,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,p,1)},o=()=>{we(this)&&(c=!0,u=!1)},s=()=>{we(this)&&(u=!0)},a=f=>{if(we(this)){if(c&&!u){const d=f,p=1;let y=d.touches[d.touches.length-p];if(!y&&(y=d.changedTouches[d.changedTouches.length-p],!y))return;const h=this.canvas.element,b=h?h.getBoundingClientRect():void 0,m=0,g={x:y.clientX-(b?b.left:m),y:y.clientY-(b?b.top:m)};i(f,g,Math.max(y.radiusX,y.radiusY))}c=!1,u=!1}},l=()=>{we(this)&&(c=!1,u=!1)};let c=!1,u=!1;this._clickHandlers.set("click",r),this._clickHandlers.set("touchstart",o),this._clickHandlers.set("touchmove",s),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",l);for(const[f,d]of this._clickHandlers)n.addEventListener(f,d)}addLifeTime(t){this._lifeTime+=t}addPath(t,n,i=!1){return!we(this)||!i&&this.pathGenerators.has(t)?!1:(this.pathGenerators.set(t,n),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var t;if(we(this)){for(const[n,i]of this._clickHandlers)(t=this.interactivity.element)==null||t.removeEventListener(n,i);this._clickHandlers.clear()}}destroy(t=!0){var n,i;if(we(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const r of this.effectDrawers.values())(n=r.destroy)==null||n.call(r,this);for(const r of this.shapeDrawers.values())(i=r.destroy)==null||i.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const r=this._engine.items,o=r.findIndex(a=>a===this);o>=0&&r.splice(o,1)}this._engine.dispatchEvent(at.containerDestroyed,{container:this})}}draw(t){if(!we(this))return;let n=t;const i=r=>{n&&(this._lastFrameTime=void 0,n=!1),this._nextFrame(r)};this._drawAnimationFrame=FO(r=>i(r))}async export(t,n={}){for(const i of this.plugins.values()){if(!i.export)continue;const r=await i.export(t,n);if(r.supported)return r.blob}kr().error(`${Qt} - Export plugin with type ${t} not found`)}handleClickMode(t){var n;if(we(this)){this.particles.handleClickMode(t);for(const i of this.plugins.values())(n=i.handleClickMode)==null||n.call(i,t)}}async init(){var f,d,p,y;if(!we(this))return;const t=this._engine.getSupportedEffects();for(const h of t){const b=this._engine.getEffectDrawer(h);b&&this.effectDrawers.set(h,b)}const n=this._engine.getSupportedShapes();for(const h of n){const b=this._engine.getShapeDrawer(h);b&&this.shapeDrawers.set(h,b)}await this.particles.initPlugins(),this._options=$r(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=$r(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[h,b]of i)this.plugins.set(h,b);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:r,duration:o,delay:s,fpsLimit:a,smooth:l}=this.actualOptions;this.zLayers=r,this._duration=N(o)*et,this._delay=N(s)*et,this._lifeTime=0;const c=120,u=0;this.fpsLimit=a>u?a:c,this._smooth=l;for(const h of this.effectDrawers.values())await((f=h.init)==null?void 0:f.call(h,this));for(const h of this.shapeDrawers.values())await((d=h.init)==null?void 0:d.call(h,this));for(const h of this.plugins.values())await((p=h.init)==null?void 0:p.call(h));this._engine.dispatchEvent(at.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const h of this.plugins.values())(y=h.particlesSetup)==null||y.call(h);this._engine.dispatchEvent(at.particlesSetup,{container:this})}async loadTheme(t){we(this)&&(this._currentTheme=t,await this.refresh())}pause(){var t;if(we(this)&&(this._drawAnimationFrame!==void 0&&(jO(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const n of this.plugins.values())(t=n.pause)==null||t.call(n);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(at.containerPaused,{container:this})}}play(t){if(!we(this))return;const n=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const i of this.plugins.values())i.play&&i.play();this._engine.dispatchEvent(at.containerPlay,{container:this}),this.draw(n??!1)}async refresh(){if(we(this))return this.stop(),this.start()}async reset(t){if(we(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=$r(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=$r(this._engine,this,this._options),this.refresh()}async start(){!we(this)||this.started||(await this.init(),this.started=!0,await new Promise(t=>{const n=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const r of this.plugins.values())await((i=r.start)==null?void 0:i.call(r));this._engine.dispatchEvent(at.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void n(),this._delay)}))}stop(){var t;if(!(!we(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 n of this.plugins.values())(t=n.stop)==null||t.call(n);for(const n of this.plugins.keys())this.plugins.delete(n);this._sourceOptions=this._options,this._engine.dispatchEvent(at.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===t?!1:(this._responsiveMaxWidth=t,!0)}};class yL{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(n)}dispatchEvent(t,n){const i=this._listeners.get(t);i==null||i.forEach(r=>r(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const i=this._listeners.get(t);if(!i)return;const r=i.length,o=i.indexOf(n);if(o<0)return;const a=1;r===a?this._listeners.delete(t):i.splice(o,a)}}async function Tf(e,t,n,i=!1){let r=t.get(e);return(!r||i)&&(r=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,r)),r}async function vL(e){const t=sn(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(kr().error(`${Qt} ${n.status} while retrieving config file`),e.fallback)}const jS="true",Hv="false",Mf="canvas",xL=e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===Mf)t=e,t.dataset[or]||(t.dataset[or]=Hv);else{const i=e.getElementsByTagName(Mf);i.length?(t=i[0],t.dataset[or]=Hv):(t=document.createElement(Mf),t.dataset[or]=jS,e.appendChild(t))}const n="100%";return t.style.width||(t.style.width=n),t.style.height||(t.style.height=n),t},wL=(e,t)=>{let n=t??document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,n.dataset[or]=jS,document.body.append(n),n)};class bL{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new yL,this._initialized=!1,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.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,i]of this._configs)t[n]=i;return t}get items(){return this._domArray}get version(){return"3.6.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent(at.configAdded,{data:{name:n,config:t}})}async addEffect(t,n,i=!0){Zt(t,r=>{this.getEffectDrawer(r)||this.effectDrawers.set(r,n)}),await this.refresh(i)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,i=!0){this._initializers.interactors.set(t,n),await this.refresh(i)}async addMover(t,n,i=!0){this._initializers.movers.set(t,n),await this.refresh(i)}async addParticleUpdater(t,n,i=!0){this._initializers.updaters.set(t,n),await this.refresh(i)}async addPathGenerator(t,n,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(i)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,i=!1,r=!0){(i||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(r)}async addShape(t,n=!0){for(const i of t.validTypes)this.getShapeDrawer(i)||this.shapeDrawers.set(i,t);await this.refresh(n)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const n=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&n.set(i.id,await i.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return Tf(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return Tf(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return Tf(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:n}=this,i=n[t];if(!i||i.destroyed){n.splice(t,1);return}return i}async load(t){var y;const i=t.id??((y=t.element)==null?void 0:y.id)??`tsparticles${Math.floor(de()*1e4)}`,{index:r,url:o}=t,s=o?await vL({fallback:t.options,url:o,index:r}):t.options,a=sn(s,r),{items:l}=this,c=l.findIndex(h=>h.id.description===i),u=0,f=new gL(this,i,a);if(c>=u){const h=this.item(c),b=1,m=0,g=h?b:m;h&&!h.destroyed&&h.destroy(!1),l.splice(c,g,f)}else l.push(f);const d=wL(i,t.element),p=xL(d);return f.canvas.loadCanvas(p),await f.start(),f}loadOptions(t,n){this.plugins.forEach(i=>{var r;return(r=i.loadOptions)==null?void 0:r.call(i,t,n)})}loadParticlesOptions(t,n,...i){const r=this.updaters.get(t);r&&r.forEach(o=>{var s;return(s=o.loadOptions)==null?void 0:s.call(o,n,...i)})}async refresh(t=!0){t&&await Promise.all(this.items.map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const{items:n}=this;if(!n.length)throw new Error(`${Qt} can only set click handlers after calling tsParticles.load()`);n.forEach(i=>i.addClickHandler(t))}}var oo;(function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"})(oo||(oo={}));class SL{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Io(i)}handleRangeColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.l!==void 0)return Io({h:N(i.h),l:N(i.l),s:N(i.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,i=n.exec(t),r=4,o=1,s=10;return i?nz({a:i.length>r?wS(i[oo.a]):o,h:parseInt(i[oo.h],s),l:parseInt(i[oo.l],s),s:parseInt(i[oo.s],s)}):void 0}}var so;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"})(so||(so={}));class CL{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return i}handleRangeColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return{r:N(i.r),g:N(i.g),b:N(i.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,i=n.exec(t),r=10;return i?{a:i.length>4?wS(i[so.a]):1,b:parseInt(i[so.b],r),g:parseInt(i[so.g],r),r:parseInt(i[so.r],r)}:void 0}}function kL(){const e=new CL,t=new SL;Rv(e),Rv(t);const n=new bL;return n.init(),n}class In{constructor(t){this.type=Fo.external,this.container=t}}class hm{constructor(t){this.type=Fo.particles,this.container=t}}var Wt;(function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"})(Wt||(Wt={}));var Gv;(function(e){e.linear="linear",e.radial="radial",e.random="random"})(Gv||(Gv={}));var pr;(function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"})(pr||(pr={}));const pm=kL();Pr()||(window.tsParticles=pm);const PL=e=>{const t=e.id??"tsparticles";return k.useEffect(()=>{let n;return pm.load({id:t,url:e.url,options:e.options}).then(i=>{var r;n=i,(r=e.particlesLoaded)==null||r.call(e,i)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),P.jsx("div",{id:t,className:e.className})};async function TL(e){await e(pm)}const lh=.5,lr=0,an=1,Kv=60,qv=0,ML=.01;function EL(e){const t=e.initialPosition,{dx:n,dy:i}=ut(t,e.position),r=Math.abs(n),o=Math.abs(i),{maxDistance:s}=e.retina,a=s.horizontal,l=s.vertical;if(!a&&!l)return;const c=(a&&r>=a)??!1,u=(l&&o>=l)??!1;if((c||u)&&!e.misplaced)e.misplaced=!!a&&r>a||!!l&&o>l,a&&(e.velocity.x=e.velocity.y*lh-e.velocity.x),l&&(e.velocity.y=e.velocity.x*lh-e.velocity.y);else if((!a||rt.x&&d.x>lr)&&(d.x*=-de()),l&&(f.yt.y&&d.y>lr)&&(d.y*=-de())}}function _L(e,t,n,i,r,o){AL(e,o);const s=e.gravity,a=s!=null&&s.enable&&s.inverse?-an:an;r&&n&&(e.velocity.x+=r*o.factor/(Kv*n)),s!=null&&s.enable&&n&&(e.velocity.y+=a*(s.acceleration*o.factor)/(Kv*n));const l=e.moveDecay;e.velocity.multTo(l);const c=e.velocity.mult(n);s!=null&&s.enable&&i>lr&&(!s.inverse&&c.y>=lr&&c.y>=i||s.inverse&&c.y<=lr&&c.y<=-i)&&(c.y=a*i,n&&(e.velocity.y=c.y/n));const u=e.options.zIndex,f=(an-e.zIndexFactor)**u.velocityRate;c.multTo(f);const{position:d}=e;d.addTo(c),t.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function RL(e,t){const n=e.container;if(!e.spin)return;const i={x:e.spin.direction===Wt.clockwise?Math.cos:Math.sin,y:e.spin.direction===Wt.clockwise?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*i.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*i.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height),o=r*lh;e.spin.radius>o?(e.spin.radius=o,e.spin.acceleration*=-an):e.spin.radius=u?Wt.clockwise:Wt.counterClockwise,angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}const LL=2,IL=1,DL=1;class $L{init(t){const n=t.options,i=n.move.gravity;t.gravity={enable:i.enable,acceleration:N(i.acceleration),inverse:i.inverse},zL(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,n){var h,b;const i=t.options,r=i.move;if(!r.enable)return;const o=t.container,s=o.retina.pixelRatio;(h=t.retina).moveSpeed??(h.moveSpeed=N(r.speed)*s),(b=t.retina).moveDrift??(b.moveDrift=N(t.options.move.drift)*s);const a=OL(t),l=t.retina.moveSpeed*o.retina.reduceFactor,c=t.retina.moveDrift,u=Mn(i.size.value)*s,f=r.size?t.getRadius()/u:IL,d=n.factor||DL,p=l*f*a*d/LL,y=t.retina.maxSpeed??o.retina.maxSpeed;r.spin.enable?RL(t,p):_L(t,r,p,y,c,n),EL(t)}}async function FL(e,t=!0){await e.addMover("base",()=>Promise.resolve(new $L),t)}const jL=2,NL=Math.PI*jL,VL=0,Qv={x:0,y:0};function BL(e){const{context:t,particle:n,radius:i}=e;n.circleRange||(n.circleRange={min:VL,max:NL});const r=n.circleRange;t.arc(Qv.x,Qv.y,i,r.min,r.max,!1)}const UL=12,WL=360,Yv=0;class HL{constructor(){this.validTypes=["circle"]}draw(t){BL(t)}getSidesCount(){return UL}particleInit(t,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:WL,min:Yv};n.circleRange=ro(r)?{min:ki(r.min),max:ki(r.max)}:{min:Yv,max:ki(r)}}}async function GL(e,t=!0){await e.addShape(new HL,t)}class KL{constructor(t){this.container=t}init(t){const n=aa(t.options.color,t.id,t.options.reduceDuplicates);n&&(t.color=AS(n,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:n,s:i,l:r}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&((o==null?void 0:o.h.value)!==void 0&&n.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&r.enable)}update(t,n){OS(t.color,n)}}async function qL(e,t=!0){await e.addParticleUpdater("color",n=>Promise.resolve(new KL(n)),t)}class QL{constructor(t){this.container=t}init(t){const n=t.options.opacity,i=1;t.opacity=PS(n,i);const r=n.animation;r.enable&&(t.opacity.velocity=N(r.speed)/mi*this.container.retina.reduceFactor,r.sync||(t.opacity.velocity*=de()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,n){!this.isEnabled(t)||!t.opacity||cm(t,t.opacity,!0,t.options.opacity.animation.destroy,n)}}async function YL(e,t=!0){await e.addParticleUpdater("opacity",n=>Promise.resolve(new QL(n)),t)}const bc=0,wo=0;function XL(e){if(e.outMode!==Ie.bounce&&e.outMode!==Ie.split||e.direction!==Q.left&&e.direction!==Q.right)return;e.bounds.righte.canvasSize.width&&e.direction===Q.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let n=!1;if(e.direction===Q.right&&e.bounds.right>=e.canvasSize.width&&t>bc||e.direction===Q.left&&e.bounds.left<=wo&&t=e.canvasSize.width&&e.direction===Q.right?e.particle.position.x=e.canvasSize.width-i:e.bounds.left<=wo&&e.direction===Q.left&&(e.particle.position.x=i),e.outMode===Ie.split&&e.particle.destroy()}function ZL(e){if(e.outMode!==Ie.bounce&&e.outMode!==Ie.split||e.direction!==Q.bottom&&e.direction!==Q.top)return;e.bounds.bottome.canvasSize.height&&e.direction===Q.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let n=!1;if(e.direction===Q.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>bc||e.direction===Q.top&&e.bounds.top<=wo&&t=e.canvasSize.height&&e.direction===Q.bottom?e.particle.position.y=e.canvasSize.height-i:e.bounds.top<=wo&&e.direction===Q.top&&(e.particle.position.y=i),e.outMode===Ie.split&&e.particle.destroy()}class JL{constructor(t){this.container=t,this.modes=[Ie.bounce,Ie.split]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;let s=!1;for(const d of o.plugins.values())if(d.particleBounce!==void 0&&(s=d.particleBounce(t,i,n)),s)break;if(s)return;const a=t.getPosition(),l=t.offset,c=t.getRadius(),u=ka(a,c),f=o.canvas.size;XL({particle:t,outMode:r,direction:n,bounds:u,canvasSize:f,offset:l,size:c}),ZL({particle:t,outMode:r,direction:n,bounds:u,canvasSize:f,offset:l,size:c})}}const sl=0;class eI{constructor(t){this.container=t,this.modes=[Ie.destroy]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case dn.normal:case dn.outside:if(sm(t.position,o.canvas.size,Ne.origin,t.getRadius(),n))return;break;case dn.inside:{const{dx:s,dy:a}=ut(t.position,t.moveCenter),{x:l,y:c}=t.velocity;if(lt.moveCenter.radius||ct.moveCenter.radius||l>=sl&&s<-t.moveCenter.radius||c>=sl&&a<-t.moveCenter.radius)return;break}}o.particles.remove(t,t.group,!0)}}const al=0;class tI{constructor(t){this.container=t,this.modes=[Ie.none]}update(t,n,i,r){if(!this.modes.includes(r)||((t.options.move.distance.horizontal&&(n===Q.left||n===Q.right))??(t.options.move.distance.vertical&&(n===Q.top||n===Q.bottom))))return;const o=t.options.move.gravity,s=this.container,a=s.canvas.size,l=t.getRadius();if(o.enable){const c=t.position;(!o.inverse&&c.y>a.height+l&&n===Q.bottom||o.inverse&&c.y<-l&&n===Q.top)&&s.particles.remove(t)}else{if(t.velocity.y>al&&t.position.y<=a.height+l||t.velocity.y=-l||t.velocity.x>al&&t.position.x<=a.width+l||t.velocity.x=-l)return;sm(t.position,s.canvas.size,Ne.origin,l,n)||s.particles.remove(t)}}}const ll=0,cl=0;class nI{constructor(t){this.container=t,this.modes=[Ie.out]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case dn.inside:{const{x:s,y:a}=t.velocity,l=Ne.origin;l.length=t.moveCenter.radius,l.angle=t.velocity.angle+Math.PI,l.addTo(Ne.create(t.moveCenter));const{dx:c,dy:u}=ut(t.position,l);if(s<=ll&&c>=cl||a<=ll&&u>=cl||s>=ll&&c<=cl||a>=ll&&u<=cl)return;t.position.x=Math.floor(Et({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(Et({min:0,max:o.canvas.size.height}));const{dx:f,dy:d}=ut(t.position,t.moveCenter);t.direction=Math.atan2(-d,-f),t.velocity.angle=t.direction;break}default:{if(sm(t.position,o.canvas.size,Ne.origin,t.getRadius(),n))return;switch(t.outType){case dn.outside:{t.position.x=Math.floor(Et({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(Et({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:s,dy:a}=ut(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(a,s),t.velocity.angle=t.direction);break}case dn.normal:{const s=t.options.move.warp,a=o.canvas.size,l={bottom:a.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:a.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},c=t.getRadius(),u=ka(t.position,c);n===Q.right&&u.left>a.width+t.offset.x?(t.position.x=l.left,t.initialPosition.x=t.position.x,s||(t.position.y=de()*a.height,t.initialPosition.y=t.position.y)):n===Q.left&&u.right<-t.offset.x&&(t.position.x=l.right,t.initialPosition.x=t.position.x,s||(t.position.y=de()*a.height,t.initialPosition.y=t.position.y)),n===Q.bottom&&u.top>a.height+t.offset.y?(s||(t.position.x=de()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.top,t.initialPosition.y=t.position.y):n===Q.top&&u.bottom<-t.offset.y&&(s||(t.position.x=de()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.bottom,t.initialPosition.y=t.position.y);break}}break}}}}const iI=(e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t;class rI{constructor(t){this._addUpdaterIfMissing=(n,i,r)=>{const o=n.options.move.outModes;!this.updaters.has(i)&&iI(o,i)&&this.updaters.set(i,r(this.container))},this._updateOutMode=(n,i,r,o)=>{for(const s of this.updaters.values())s.update(n,o,i,r)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,Ie.bounce,n=>new JL(n)),this._addUpdaterIfMissing(t,Ie.out,n=>new nI(n)),this._addUpdaterIfMissing(t,Ie.destroy,n=>new eI(n)),this._addUpdaterIfMissing(t,Ie.none,n=>new tI(n))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,n){const i=t.options.move.outModes;this._updateOutMode(t,n,i.bottom??i.default,Q.bottom),this._updateOutMode(t,n,i.left??i.default,Q.left),this._updateOutMode(t,n,i.right??i.default,Q.right),this._updateOutMode(t,n,i.top??i.default,Q.top)}}async function oI(e,t=!0){await e.addParticleUpdater("outModes",n=>Promise.resolve(new rI(n)),t)}const Hi=0;class sI{init(t){const n=t.container,i=t.options.size,r=i.animation;r.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/mi*n.retina.reduceFactor,r.sync||(t.size.velocity*=de()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??Hi)<=Hi||(t.size.maxLoops??Hi)>Hi&&(t.size.loops??Hi)<(t.size.maxLoops??Hi))}reset(t){t.size.loops=Hi}update(t,n){this.isEnabled(t)&&cm(t,t.size,!0,t.options.size.animation.destroy,n)}}async function aI(e,t=!0){await e.addParticleUpdater("size",()=>Promise.resolve(new sI),t)}async function lI(e,t=!0){await FL(e,!1),await GL(e,!1),await qL(e,!1),await YL(e,!1),await oI(e,!1),await aI(e,!1),await e.refresh(t)}async function cI(){xf(pr.easeInQuad,e=>e**2),xf(pr.easeOutQuad,e=>1-(1-e)**2),xf(pr.easeInOutQuad,e=>e<.5?2*e**2:1-(-2*e+2)**2/2),await Promise.resolve()}function uI(e,t){const{context:n,opacity:i}=e,r=.5,o=n.globalAlpha;if(!t)return;const s=t.width,a=s*r;n.globalAlpha=i,n.drawImage(t,-a,-a,s,s),n.globalAlpha=o}const Ef='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Xv=0;class fI{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[t,n]of this._emojiShapeDict)n instanceof ImageBitmap&&(n==null||n.close()),this._emojiShapeDict.delete(t)}draw(t){const n=t.particle.emojiDataKey;if(!n)return;const i=this._emojiShapeDict.get(n);i&&uI(t,i)}async init(t){const n=t.actualOptions,{validTypes:i}=this;if(!i.find(s=>Ee(s,n.particles.shape.type)))return;const r=[_v(Ef)],o=i.map(s=>n.particles.shape.options[s]).find(s=>!!s);o&&Zt(o,s=>{s.font&&r.push(_v(s.font))}),await Promise.all(r)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,n){const r=n.shapeData;if(!(r!=null&&r.value))return;const o=sn(r.value,n.randomIndexData);if(!o)return;const s=typeof o=="string"?{font:r.font??Ef,padding:r.padding??Xv,value:o}:{font:Ef,padding:Xv,...r,...o},a=s.font,l=s.value,c=`${l}_${a}`;if(this._emojiShapeDict.has(c)){n.emojiDataKey=c;return}const u=s.padding*2,f=Mn(n.size.value),d=f+u,p=d*2;let y;if(typeof OffscreenCanvas<"u"){const h=new OffscreenCanvas(p,p),b=h.getContext("2d");if(!b)return;b.font=`400 ${f*2}px ${a}`,b.textBaseline="middle",b.textAlign="center",b.fillText(l,d,d),y=h.transferToImageBitmap()}else{const h=document.createElement("canvas");h.width=p,h.height=p;const b=h.getContext("2d");if(!b)return;b.font=`400 ${f*2}px ${a}`,b.textBaseline="middle",b.textAlign="center",b.fillText(l,d,d),y=h}this._emojiShapeDict.set(c,y),n.emojiDataKey=c}}async function dI(e,t=!0){await e.addShape(new fI,t)}const hI=1,pI=1,NS=0;function VS(e,t,n,i,r){const o=e.actualOptions.interactivity.modes.attract;if(!o)return;const s=e.particles.quadTree.query(i,r);for(const a of s){const{dx:l,dy:c,distance:u}=ut(a.position,t),f=o.speed*o.factor,d=Yt(xS(o.easing)(pI-u/n)*f,hI,o.maxSpeed),p=Ne.create(u?l/u*d:f,u?c/u*d:f);a.position.subFrom(p)}}function mI(e,t){e.attract||(e.attract={particles:[]});const{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count===e.particles.count&&(n.finish=!0)),n.clicking){const i=e.interactivity.mouse.clickPosition,r=e.retina.attractModeDistance;if(!r||rt(o))}else n.clicking===!1&&(n.particles=[])}function gI(e,t){const n=e.interactivity.mouse.position,i=e.retina.attractModeDistance;!i||it(r))}class yI{constructor(){this.distance=200,this.duration=.4,this.easing=pr.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){L(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed),t.speed!==void 0&&(this.speed=t.speed))}}const cs="attract";let vI=class extends In{constructor(t,n){super(n),this._engine=t,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.attract;if(!(!o||i!==cs)){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const s of n.attract.particles)this.isEnabled(s)&&s.velocity.setTo(s.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},o.duration*et)}}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.attract;n&&(t.retina.attractModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===Sr,r=n.interactivity.events,{enable:o,mode:s}=r.onHover,{enable:a,mode:l}=r.onClick;i&&o&&Ee(cs,s)?gI(this.container,c=>this.isEnabled(c)):a&&Ee(cs,l)&&mI(this.container,c=>this.isEnabled(c))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events;if((!r.position||!o.onHover.enable)&&(!r.clickPosition||!o.onClick.enable))return!1;const s=o.onHover.mode,a=o.onClick.mode;return Ee(cs,s)||Ee(cs,a)}loadModeOptions(t,...n){t.attract||(t.attract=new yI);for(const i of n)t.attract.load(i==null?void 0:i.attract)}reset(){}};async function xI(e,t=!0){await e.addInteractor("externalAttract",n=>Promise.resolve(new vI(e,n)),t)}const wI=2,Ll=.5,bI=Math.PI*Ll,Zv=2,BS=10,SI=0;function US(e,t,n,i,r){const o=e.particles.quadTree.query(i,r);for(const s of o)i instanceof nt?CS(rh(s),{position:t,radius:n,mass:n**wI*bI,velocity:Ne.origin,factor:Ne.origin}):i instanceof pn&&XO(s,ka(t,n))}function CI(e,t,n,i){const r=document.querySelectorAll(t);r.length&&r.forEach(o=>{const s=o,a=e.retina.pixelRatio,l={x:(s.offsetLeft+s.offsetWidth*Ll)*a,y:(s.offsetTop+s.offsetHeight*Ll)*a},c=s.offsetWidth*Ll*a,u=BS*a,f=n.type===$o.circle?new nt(l.x,l.y,c+u):new pn(s.offsetLeft*a-u,s.offsetTop*a-u,s.offsetWidth*a+u*Zv,s.offsetHeight*a+u*Zv);i(l,c,f)})}function kI(e,t,n,i){lm(n,t,(r,o)=>CI(e,r,o,(s,a,l)=>US(e,s,a,l,i)))}function PI(e,t){const n=e.retina.pixelRatio,i=BS*n,r=e.interactivity.mouse.position,o=e.retina.bounceModeDistance;!o||othis.isEnabled(l)):kI(this.container,a,ul,l=>this.isEnabled(l))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv;return!!r.position&&o.onHover.enable&&Ee(ul,o.onHover.mode)||am(ul,s)}loadModeOptions(t,...n){t.bounce||(t.bounce=new TI);for(const i of n)t.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function EI(e,t=!0){await e.addInteractor("externalBounce",n=>Promise.resolve(new MI(n)),t)}class WS{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!L(t)){if(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.mix!==void 0&&(this.mix=t.mix),t.opacity!==void 0&&(this.opacity=t.opacity),t.color!==void 0){const n=Ln(this.color)?void 0:this.color;this.color=Zt(t.color,i=>ot.create(n,i))}t.size!==void 0&&(this.size=t.size)}}}class _I extends WS{constructor(){super(),this.selectors=[]}load(t){super.load(t),!L(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class RI extends WS{load(t){super.load(t),!L(t)&&(this.divs=Zt(t.divs,n=>{const i=new _I;return i.load(n),i}))}}var bn;(function(e){e.color="color",e.opacity="opacity",e.size="size"})(bn||(bn={}));function Jv(e,t,n,i){if(t>=n){const r=e+(t-n)*i;return Yt(r,e,t)}else if(t{var c;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,o=i.interactivity.modes.bubble;if(!o||!r)return;n.bubble||(n.bubble={});const s=n.retina.bubbleModeDistance;if(!s||s<_f)return;const a=n.particles.quadTree.queryCircle(r,s,u=>this.isEnabled(u)),{bubble:l}=n;for(const u of a){if(!l.clicking)continue;u.bubble.inRange=!l.durationEnd;const f=u.getPosition(),d=At(f,r),p=(new Date().getTime()-(n.interactivity.mouse.clickTime??AI))/et;p>o.duration&&(l.durationEnd=!0),p>o.duration*OI&&(l.clicking=!1,l.durationEnd=!1);const y={bubbleObj:{optValue:n.retina.bubbleModeSize,value:u.bubble.radius},particlesObj:{optValue:Mn(u.options.size.value)*n.retina.pixelRatio,value:u.size.value},type:bn.size};this._process(u,d,p,y);const h={bubbleObj:{optValue:o.opacity,value:u.bubble.opacity},particlesObj:{optValue:Mn(u.options.opacity.value),value:((c=u.opacity)==null?void 0:c.value)??e0},type:bn.opacity};this._process(u,d,p,h),!l.durationEnd&&d<=s?this._hoverBubbleColor(u,d):delete u.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||r<_f||!i)return;const o=n.particles.quadTree.queryCircle(i,r,s=>this.isEnabled(s));for(const s of o){s.bubble.inRange=!0;const a=s.getPosition(),l=At(a,i),c=t0-l/r;l<=r?c>=LI&&n.interactivity.status===Sr&&(this._hoverBubbleSize(s,c),this._hoverBubbleOpacity(s,c),this._hoverBubbleColor(s,c)):this.reset(s),n.interactivity.status===nh&&this.reset(s)}},this._hoverBubbleColor=(n,i,r)=>{const o=this.container.actualOptions,s=r??o.interactivity.modes.bubble;if(s){if(!n.bubble.finalColor){const a=s.color;if(!a)return;const l=sn(a);n.bubble.finalColor=aa(l)}if(n.bubble.finalColor)if(s.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?ES(um(a,n.bubble.finalColor,t0-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const o=this.container,s=o.actualOptions,a=(r==null?void 0:r.opacity)??((f=s.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,c=((d=n.opacity)==null?void 0:d.value)??e0,u=Jv(c,a,Mn(l),i);u!==void 0&&(n.bubble.opacity=u)},this._hoverBubbleSize=(n,i,r)=>{const o=this.container,s=r!=null&&r.size?r.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(s===void 0)return;const a=Mn(n.options.size.value)*o.retina.pixelRatio,l=n.size.value,c=Jv(l,s,a,i);c!==void 0&&(n.bubble.radius=c)},this._process=(n,i,r,o)=>{const s=this.container,a=o.bubbleObj.optValue,l=s.actualOptions,c=l.interactivity.modes.bubble;if(!c||a===void 0)return;const u=c.duration,f=s.retina.bubbleModeDistance,d=o.particlesObj.optValue,p=o.bubbleObj.value,y=o.particlesObj.value??zI,h=o.type;if(!(!f||f<_f||a===d))if(s.bubble||(s.bubble={}),s.bubble.durationEnd)p&&(h===bn.size&&delete n.bubble.radius,h===bn.opacity&&delete n.bubble.opacity);else if(i<=f){if((p??y)!==a){const m=y-r*(y-a)/u;h===bn.size&&(n.bubble.radius=m),h===bn.opacity&&(n.bubble.opacity=m)}}else h===bn.size&&delete n.bubble.radius,h===bn.opacity&&delete n.bubble.opacity},this._singleSelectorHover=(n,i,r)=>{const o=this.container,s=document.querySelectorAll(i),a=o.actualOptions.interactivity.modes.bubble;!a||!s.length||s.forEach(l=>{const c=l,u=o.retina.pixelRatio,f={x:(c.offsetLeft+c.offsetWidth*Rf)*u,y:(c.offsetTop+c.offsetHeight*Rf)*u},d=c.offsetWidth*Rf*u,p=r.type===$o.circle?new nt(f.x,f.y,d):new pn(c.offsetLeft*u,c.offsetTop*u,c.offsetWidth*u,c.offsetHeight*u),y=o.particles.quadTree.query(p,h=>this.isEnabled(h));for(const h of y){if(!p.contains(h.getPosition()))continue;h.bubble.inRange=!0;const b=a.divs,m=SS(b,c);(!h.bubble.div||h.bubble.div!==c)&&(this.clear(h,n,!0),h.bubble.div=c),this._hoverBubbleSize(h,Af,m),this._hoverBubbleOpacity(h,Af,m),this._hoverBubbleColor(h,Af,m)}})},t.bubble||(t.bubble={}),this.handleClickMode=n=>{n===Gi&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,n,i){t.bubble.inRange&&!i||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.bubble;n&&(t.retina.bubbleModeDistance=n.distance*t.retina.pixelRatio,n.size!==void 0&&(t.retina.bubbleModeSize=n.size*t.retina.pixelRatio))}interact(t){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,o=i.onClick,s=r.enable,a=r.mode,l=o.enable,c=o.mode,u=i.onDiv;s&&Ee(Gi,a)?this._hoverBubble():l&&Ee(Gi,c)?this._clickBubble():lm(Gi,u,(f,d)=>this._singleSelectorHover(t,f,d))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,{onClick:s,onDiv:a,onHover:l}=o,c=am(Gi,a);return c||l.enable&&r.position||s.enable&&r.clickPosition?Ee(Gi,l.mode)||Ee(Gi,s.mode)||c:!1}loadModeOptions(t,...n){t.bubble||(t.bubble=new RI);for(const i of n)t.bubble.load(i==null?void 0:i.bubble)}reset(t){t.bubble.inRange=!1}}async function DI(e,t=!0){await e.addInteractor("externalBubble",n=>Promise.resolve(new II(n)),t)}class $I{constructor(){this.opacity=.5}load(t){L(t)||t.opacity!==void 0&&(this.opacity=t.opacity)}}class FI{constructor(){this.distance=80,this.links=new $I,this.radius=60}load(t){L(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links),t.radius!==void 0&&(this.radius=t.radius))}}const n0=0,i0=1,jI=0;function NI(e,t,n,i){const r=Math.floor(n.getRadius()/t.getRadius()),o=t.getFillColor(),s=n.getFillColor();if(!o||!s)return;const a=t.getPosition(),l=n.getPosition(),c=um(o,s,t.getRadius(),n.getRadius()),u=e.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(n0,la(o,i)),u.addColorStop(Yt(r,n0,i0),Xn(c,i)),u.addColorStop(i0,la(s,i)),u}function VI(e,t,n,i,r){Is(e,i,r),e.lineWidth=t,e.strokeStyle=n,e.stroke()}function BI(e,t,n,i){const r=e.actualOptions,o=r.interactivity.modes.connect;if(o)return NI(t,n,i,o.links.opacity)}function UI(e,t,n){e.canvas.draw(i=>{const r=BI(e,i,t,n);if(!r)return;const o=t.getPosition(),s=n.getPosition();VI(i,t.retina.linksWidth??jI,r,o,s)})}const WI="connect",r0=0;class HI extends In{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const i=t.interactivity.mouse.position,{connectModeDistance:r,connectModeRadius:o}=t.retina;if(!r||rthis.isEnabled(l));a.forEach((l,c)=>{const u=l.getPosition(),f=1;for(const d of a.slice(c+f)){const p=d.getPosition(),y=Math.abs(r),h=Math.abs(u.x-p.x),b=Math.abs(u.y-p.y);hPromise.resolve(new HI(n)),t)}class KI{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){L(t)||(t.blink!==void 0&&(this.blink=t.blink),t.color!==void 0&&(this.color=ot.create(this.color,t.color)),t.consent!==void 0&&(this.consent=t.consent),t.opacity!==void 0&&(this.opacity=t.opacity))}}class qI{constructor(){this.distance=100,this.links=new KI}load(t){L(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links))}}const QI=0;function YI(e,t,n,i,r,o){Is(e,n,i),e.strokeStyle=Xn(r,o),e.lineWidth=t,e.stroke()}function XI(e,t,n,i,r){e.canvas.draw(o=>{const s=t.getPosition();YI(o,t.retina.linksWidth??QI,s,r,n,i)})}const ZI="grab",JI=0,e3=0;class t3 extends In{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var a;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==Sr)return;const r=t.interactivity.mouse.position;if(!r)return;const o=t.retina.grabModeDistance;if(!o||othis.isEnabled(l));for(const l of s){const c=l.getPosition(),u=At(c,r);if(u>o)continue;const f=i.modes.grab.links,d=f.opacity,p=d-u*d/o;if(p<=e3)continue;const y=f.color??((a=l.options.links)==null?void 0:a.color);if(!t.particles.grabLineColor&&y){const b=i.modes.grab.links;t.particles.grabLineColor=RS(y,b.blink,b.consent)}const h=sh(l,void 0,t.particles.grabLineColor);h&&XI(t,l,h,p,r)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&Ee(ZI,r.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new qI);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}async function n3(e,t=!0){await e.addInteractor("externalGrab",n=>Promise.resolve(new t3(n)),t)}const i3="pause";class r3 extends In{constructor(t){super(t),this.handleClickMode=n=>{if(n!==i3)return;const i=this.container;i.animationStatus?i.pause():i.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function o3(e,t=!0){await e.addInteractor("externalPause",n=>Promise.resolve(new r3(n)),t)}class s3{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(L(t))return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=t.quantity;n!==void 0&&(this.quantity=Z(n))}}const a3="push",l3=0;class c3 extends In{constructor(t){super(t),this.handleClickMode=n=>{if(n!==a3)return;const i=this.container,r=i.actualOptions,o=r.interactivity.modes.push;if(!o)return;const s=N(o.quantity);if(s<=l3)return;const a=bu([void 0,...o.groups]),l=a!==void 0?i.actualOptions.particles.groups[a]:void 0;i.particles.push(s,i.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.push||(t.push=new s3);for(const i of n)t.push.load(i==null?void 0:i.push)}reset(){}}async function u3(e,t=!0){await e.addInteractor("externalPush",n=>Promise.resolve(new c3(n)),t)}class f3{constructor(){this.quantity=2}load(t){if(L(t))return;const n=t.quantity;n!==void 0&&(this.quantity=Z(n))}}const d3="remove";class h3 extends In{constructor(t){super(t),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!==d3)return;const o=N(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(o)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.remove||(t.remove=new f3);for(const i of n)t.remove.load(i==null?void 0:i.remove)}reset(){}}async function p3(e,t=!0){await e.addInteractor("externalRemove",n=>Promise.resolve(new h3(n)),t)}class HS{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=pr.easeOutQuad}load(t){L(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.speed!==void 0&&(this.speed=t.speed),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed))}}class m3 extends HS{constructor(){super(),this.selectors=[]}load(t){super.load(t),!L(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class g3 extends HS{load(t){super.load(t),!L(t)&&(this.divs=Zt(t.divs,n=>{const i=new m3;return i.load(n),i}))}}const Ki="repulse",y3=0,v3=6,x3=3,w3=2,b3=0,S3=0,C3=1,Of=.5;class k3 extends In{constructor(t,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const o=i.repulse??{particles:[]};if(o.finish||(o.count||(o.count=0),o.count++,o.count===i.particles.count&&(o.finish=!0)),o.clicking){const s=i.retina.repulseModeDistance;if(!s||sthis.isEnabled(f));for(const f of u){const{dx:d,dy:p,distance:y}=ut(l,f.position),h=y**w3,b=r.speed,m=-a*b/h;if(h<=a){o.particles.push(f);const g=Ne.create(d,p);g.length=m,f.velocity.setTo(g)}}}else if(o.clicking===!1){for(const s of o.particles)s.velocity.setTo(s.initialVelocity);o.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,o=i.retina.repulseModeDistance;!o||o{const a=this.container,l=a.particles.quadTree.query(o,b=>this.isEnabled(b)),c=a.actualOptions.interactivity.modes.repulse;if(!c)return;const{easing:u,speed:f,factor:d,maxSpeed:p}=c,y=xS(u),h=((s==null?void 0:s.speed)??f)*d;for(const b of l){const{dx:m,dy:g,distance:v}=ut(b.position,i),w=Yt(y(C3-v/r)*h,S3,p),S=Ne.create(v?m/v*w:h,v?g/v*w:h);b.position.addTo(S)}},this._singleSelectorRepulse=(i,r)=>{const o=this.container,s=o.actualOptions.interactivity.modes.repulse;if(!s)return;const a=document.querySelectorAll(i);a.length&&a.forEach(l=>{const c=l,u=o.retina.pixelRatio,f={x:(c.offsetLeft+c.offsetWidth*Of)*u,y:(c.offsetTop+c.offsetHeight*Of)*u},d=c.offsetWidth*Of*u,p=r.type===$o.circle?new nt(f.x,f.y,d):new pn(c.offsetLeft*u,c.offsetTop*u,c.offsetWidth*u,c.offsetHeight*u),y=s.divs,h=SS(y,c);this._processRepulse(f,d,p,h)})},this._engine=t,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.repulse;if(!o||i!==Ki)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},o.duration*et)}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.repulse;n&&(t.retina.repulseModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===Sr,r=n.interactivity.events,o=r.onHover,s=o.enable,a=o.mode,l=r.onClick,c=l.enable,u=l.mode,f=r.onDiv;i&&s&&Ee(Ki,a)?this._hoverRepulse():c&&Ee(Ki,u)?this._clickRepulse():lm(Ki,f,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv,a=o.onHover,l=o.onClick,c=am(Ki,s);if(!(c||a.enable&&r.position||l.enable&&r.clickPosition))return!1;const u=a.mode,f=l.mode;return Ee(Ki,u)||Ee(Ki,f)||c}loadModeOptions(t,...n){t.repulse||(t.repulse=new g3);for(const i of n)t.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function P3(e,t=!0){await e.addInteractor("externalRepulse",n=>Promise.resolve(new k3(e,n)),t)}class T3{constructor(){this.factor=3,this.radius=200}load(t){L(t)||(t.factor!==void 0&&(this.factor=t.factor),t.radius!==void 0&&(this.radius=t.radius))}}const M3="slow",E3=0;class _3 extends In{constructor(t){super(t)}clear(t,n,i){t.slow.inRange&&!i||(t.slow.factor=1)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.slow;n&&(t.retina.slowModeRadius=n.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&Ee(M3,r.onHover.mode)}loadModeOptions(t,...n){t.slow||(t.slow=new T3);for(const i of n)t.slow.load(i==null?void 0:i.slow)}reset(t){t.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,o=n.retina.slowModeRadius,s=i.interactivity.modes.slow;if(!s||!o||oo||(f.inRange=!0,f.factor=c/u)}}async function R3(e,t=!0){await e.addInteractor("externalSlow",n=>Promise.resolve(new _3(n)),t)}const A3=0,O3=1,z3=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function L3(e,t,n){const{svgData:i}=e;if(!i)return"";const r=la(t,n);if(i.includes("fill"))return i.replace(z3,()=>r);const o=i.indexOf(">");return`${i.substring(A3,o)} fill="${r}"${i.substring(o)}`}async function Cu(e){return new Promise(t=>{e.loading=!0;const n=new Image;e.element=n,n.addEventListener("load",()=>{e.loading=!1,t()}),n.addEventListener("error",()=>{e.element=void 0,e.error=!0,e.loading=!1,kr().error(`${Qt} loading image: ${e.source}`),t()}),n.src=e.source})}async function I3(e){if(e.type!=="svg"){await Cu(e);return}e.loading=!0;const t=await fetch(e.source);t.ok?e.svgData=await t.text():(kr().error(`${Qt} Image not found`),e.error=!0),e.loading=!1}function D3(e,t,n,i){var s;const r=L3(e,n,((s=i.opacity)==null?void 0:s.value)??O3),o={color:n,gif:t.gif,data:{...e,svgData:r},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(a=>{const l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,u=c.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{o.loaded=!0,o.element=f,a(o),c.revokeObjectURL(u)});const d=async()=>{c.revokeObjectURL(u);const p={...e,error:!1,loading:!0};await Cu(p),o.loaded=!0,o.element=p.element,a(o)};f.addEventListener("error",()=>void d()),f.src=u})}const zf=[0,4,2,1],o0=[8,8,4,2];class $3{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const n=this.data.slice(this.pos,this.pos+t);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 t="",n=0;const i=0,r=0;do{n=this.data[this.pos++];for(let o=n;--o>=i;t+=String.fromCharCode(this.data[this.pos++]));}while(n!==r);return t}readSubBlocksBin(){let t=this.data[this.pos],n=0;const i=0,r=1;for(let s=0;t!==i;s+=t+r,t=this.data[this.pos+s])n+=t;const o=new Uint8Array(n);t=this.data[this.pos++];for(let s=0;t!==i;t=this.data[this.pos++])for(let a=t;--a>=i;o[s++]=this.data[this.pos++]);return o}skipSubBlocks(){for(const t=1,n=0;this.data[this.pos]!==n;this.pos+=this.data[this.pos]+t);this.pos++}}var nn;(function(e){e[e.Replace=0]="Replace",e[e.Combine=1]="Combine",e[e.RestoreBackground=2]="RestoreBackground",e[e.RestorePrevious=3]="RestorePrevious",e[e.UndefinedA=4]="UndefinedA",e[e.UndefinedB=5]="UndefinedB",e[e.UndefinedC=6]="UndefinedC",e[e.UndefinedD=7]="UndefinedD"})(nn||(nn={}));var Hn;(function(e){e[e.Extension=33]="Extension",e[e.ApplicationExtension=255]="ApplicationExtension",e[e.GraphicsControlExtension=249]="GraphicsControlExtension",e[e.PlainTextExtension=1]="PlainTextExtension",e[e.CommentExtension=254]="CommentExtension",e[e.Image=44]="Image",e[e.EndOfFile=59]="EndOfFile"})(Hn||(Hn={}));const ht={x:0,y:0},F3=0,s0=.5,j3=0,a0=0,ch=0;function GS(e,t){const n=[];for(let i=0;i>>5,r.disposalMethod=(o&28)>>>2,r.userInputDelayFlag=(o&2)===2;const s=(o&1)===1;r.delayTime=e.nextTwoBytes()*10;const a=e.nextByte();s&&i(a),e.pos++;break}case Hn.ApplicationExtension:{e.pos++;const r={identifier:e.getString(8),authenticationCode:e.getString(3),data:e.readSubBlocksBin()};t.applicationExtensions.push(r);break}case Hn.CommentExtension:{t.comments.push([n(!1),e.readSubBlocks()]);break}case Hn.PlainTextExtension:{if(t.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");e.pos++,t.frames[n(!1)].plainTextData={left:e.nextTwoBytes(),top:e.nextTwoBytes(),width:e.nextTwoBytes(),height:e.nextTwoBytes(),charSize:{width:e.nextTwoBytes(),height:e.nextTwoBytes()},foregroundColor:e.nextByte(),backgroundColor:e.nextByte(),text:e.readSubBlocks()};break}default:e.skipSubBlocks();break}}async function V3(e,t,n,i,r,o){const s=t.frames[i(!0)];s.left=e.nextTwoBytes(),s.top=e.nextTwoBytes(),s.width=e.nextTwoBytes(),s.height=e.nextTwoBytes();const a=e.nextByte(),l=(a&128)===128,c=(a&64)===64;s.sortFlag=(a&32)===32,s.reserved=(a&24)>>>3;const u=1<<(a&7)+1;l&&(s.localColorTable=GS(e,u));const f=m=>{const{r:g,g:v,b:w}=(l?s.localColorTable:t.globalColorTable)[m];return m!==r(null)?{r:g,g:v,b:w,a:255}:{r:g,g:v,b:w,a:n?~~((g+v+w)/3):0}},d=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(m){if(m instanceof DOMException&&m.name==="IndexSizeError")return null;throw m}})();if(d==null)throw new EvalError("GIF frame size is to large");const p=e.nextByte(),y=e.readSubBlocksBin(),h=1<{const v=m>>>3,w=m&7;return(y[v]+(y[v+1]<<8)+(y[v+2]<<16)&(1<>>w};if(c){for(let m=0,g=p+1,v=0,w=[[0]],S=0;S<4;S++)if(zf[S]=w.length?w.push(w[z].concat(w[z][0])):z!==h&&w.push(w[z].concat(w[m][0]));for(const x of w[m]){const{r:_,g:R,b:F,a:D}=f(x);d.data.set([_,R,F,D],zf[S]*s.width+o0[S]*T+C%(s.width*4)),C+=4}w.length===1<=s.height&&(M=!0))}}s.image=d,s.bitmap=await createImageBitmap(d)}else{let m=0,g=p+1,v=0,w=-4,S=!1;const C=[[0]];for(;!S;){const T=m;if(m=b(v,g),v+=g,m===h){g=p+1,C.length=h+2;for(let M=0;M=C.length?C.push(C[T].concat(C[T][0])):T!==h&&C.push(C[T].concat(C[m][0]));for(const M of C[m]){const{r:z,g:x,b:_,a:R}=f(M);d.data.set([z,x,_,R],w+=4)}C.length>=1<>>4,o.sortFlag=(a&8)===8;const c=1<<(a&7)+1,u=s.nextByte();o.pixelAspectRatio=s.nextByte(),o.pixelAspectRatio!==0&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=GS(s,c));const f=(()=>{try{return new ImageData(o.width,o.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:p,b:y}=o.globalColorTable[u];f.data.set(l?[d,p,y,255]:[0,0,0,0]);for(let w=4;w(w&&(b=!0),h),v=w=>(w!=null&&(m=w),m);try{do b&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:nn.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),h++,m=-1,b=!1);while(!await B3(s,o,n,g,v,t));o.frames.length--;for(const w of o.frames){if(w.userInputDelayFlag&&w.delayTime===0){o.totalTime=1/0;break}o.totalTime+=w.delayTime}return o}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${h} "${w.message}"`):w}}function H3(e){const{context:t,radius:n,particle:i,delta:r}=e,o=i.image;if(!(o!=null&&o.gifData)||!o.gif)return;const s=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=s.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ht.x,ht.y,s.width,s.height),i.gifLoopCount===void 0&&(i.gifLoopCount=o.gifLoopCount??ch);let l=i.gifFrame??F3;const c={x:-o.gifData.width*s0,y:-o.gifData.height*s0},u=o.gifData.frames[l];if(i.gifTime===void 0&&(i.gifTime=j3),!!u.bitmap){switch(t.scale(n/o.gifData.width,n/o.gifData.height),u.disposalMethod){case nn.UndefinedA:case nn.UndefinedB:case nn.UndefinedC:case nn.UndefinedD:case nn.Replace:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(ht.x,ht.y,s.width,s.height);break;case nn.Combine:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y);break;case nn.RestoreBackground:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(ht.x,ht.y,s.width,s.height),o.gifData.globalColorTable.length?a.putImageData(o.gifData.backgroundImage,c.x,c.y):a.putImageData(o.gifData.frames[a0].image,c.x+u.left,c.y+u.top);break;case nn.RestorePrevious:{const f=a.getImageData(ht.x,ht.y,s.width,s.height);a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(ht.x,ht.y,s.width,s.height),a.putImageData(f,ht.x,ht.y)}break}if(i.gifTime+=r.value,i.gifTime>u.delayTime){if(i.gifTime-=u.delayTime,++l>=o.gifData.frames.length){if(--i.gifLoopCount<=ch)return;l=a0,a.clearRect(ht.x,ht.y,s.width,s.height)}i.gifFrame=l}t.scale(o.gifData.width/n,o.gifData.height/n)}}async function G3(e){if(e.type!=="gif"){await Cu(e);return}e.loading=!0;try{e.gifData=await W3(e.source),e.gifLoopCount=U3(e.gifData)??ch,e.gifLoopCount||(e.gifLoopCount=1/0)}catch{e.error=!0}e.loading=!1}const K3=2,q3=1,Q3=12,Y3=1;class X3{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${Qt} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??!1,src:n.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:n,radius:i,particle:r,opacity:o}=t,s=r.image,a=s==null?void 0:s.element;if(s){if(n.globalAlpha=o,s.gif&&s.gifData)H3(t);else if(a){const l=s.ratio,c={x:-i,y:-i},u=i*K3;n.drawImage(a,c.x,c.y,u,u/l)}n.globalAlpha=q3}}getSidesCount(){return Q3}async init(t){const n=t.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=t.shapeData;if(!n)return;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(t)})}particleInit(t,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData;if(!r)return;const o=n.getFillColor(),s=i.find(l=>l.name===r.name||l.source===r.src);if(!s)return;const a=r.replaceColor??s.replaceColor;if(s.loading){setTimeout(()=>{this.particleInit(t,n)});return}(async()=>{let l;s.svgData&&o?l=await D3(s,r,o,n):l={color:o,data:s,element:s.element,gif:s.gif,gifData:s.gifData,gifLoopCount:s.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:s.ratio??Y3,replaceColor:a,source:r.src},l.ratio||(l.ratio=1);const c=r.fill??n.shapeFill,u=r.close??n.shapeClose,f={image:l,fill:c,close:u};n.image=f.image,n.shapeFill=f.fill,n.shapeClose=f.close})()}}class Z3{constructor(){this.src="",this.gif=!1}load(t){L(t)||(t.gif!==void 0&&(this.gif=t.gif),t.height!==void 0&&(this.height=t.height),t.name!==void 0&&(this.name=t.name),t.replaceColor!==void 0&&(this.replaceColor=t.replaceColor),t.src!==void 0&&(this.src=t.src),t.width!==void 0&&(this.width=t.width))}}class J3{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,n){if(!(n!=null&&n.preload))return;t.preload||(t.preload=[]);const i=t.preload;for(const r of n.preload){const o=i.find(s=>s.name===r.name||s.src===r.src);if(o)o.load(r);else{const s=new Z3;s.load(r),i.push(s)}}}needsPlugin(){return!0}}const eD=3;function tD(e){e.loadImage||(e.loadImage=async t=>{if(!t.name&&!t.src)throw new Error(`${Qt} no image source provided`);if(e.images||(e.images=[]),!e.images.find(n=>n.name===t.name||n.source===t.src))try{const n={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-eD),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};e.images.push(n);let i;t.gif?i=G3:i=t.replaceColor?I3:Cu,await i(n)}catch{throw new Error(`${Qt} ${t.name??t.src} not found`)}})}async function nD(e,t=!0){tD(e);const n=new J3(e);await e.addPlugin(n,t),await e.addShape(new X3(e),t)}class iD extends _r{constructor(){super(),this.sync=!1}load(t){L(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class rD extends _r{constructor(){super(),this.sync=!1}load(t){L(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class oD{constructor(){this.count=0,this.delay=new iD,this.duration=new rD}load(t){L(t)||(t.count!==void 0&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}const Fr=0,sD=-1,l0=0,c0=0;function aD(e,t,n){if(!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=t.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=Fr,i.time=Fr;else return;if(i.duration===sD||e.spawning||(r?i.time=Fr:i.time+=t.value,i.timel0&&e.life.count--,e.life.count===l0){e.destroy();return}const o=Z(c0,n.width),s=Z(c0,n.width);e.position.x=Et(o),e.position.y=Et(s),e.spawning=!0,i.delayTime=Fr,i.time=Fr,e.reset();const a=e.options.life;a&&(i.delay=N(a.delay.value)*et,i.duration=N(a.duration.value)*et)}const qi=0,u0=1,f0=-1;class lD{constructor(t){this.container=t}init(t){const n=this.container,i=t.options,r=i.life;r&&(t.life={delay:n.retina.reduceFactor?N(r.delay.value)*(r.delay.sync?u0:de())/n.retina.reduceFactor*et:qi,delayTime:qi,duration:n.retina.reduceFactor?N(r.duration.value)*(r.duration.sync?u0:de())/n.retina.reduceFactor*et:qi,time:qi,count:r.count},t.life.duration<=qi&&(t.life.duration=f0),t.life.count<=qi&&(t.life.count=f0),t.life&&(t.spawning=t.life.delay>qi))}isEnabled(t){return!t.destroyed}loadOptions(t,...n){t.life||(t.life=new oD);for(const i of n)t.life.load(i==null?void 0:i.life)}update(t,n){!this.isEnabled(t)||!t.life||aD(t,n,this.container.canvas.size)}}async function cD(e,t=!0){await e.addParticleUpdater("life",async n=>Promise.resolve(new lD(n)),t)}function uD(e){const{context:t,particle:n,radius:i}=e,r=n.shapeData,o=0;t.moveTo(-i,o),t.lineTo(i,o),t.lineCap=(r==null?void 0:r.cap)??"butt"}const fD=1;class dD{constructor(){this.validTypes=["line"]}draw(t){uD(t)}getSidesCount(){return fD}}async function hD(e,t=!0){await e.addShape(new dD,t)}const d0=.5;class pD{init(){}isEnabled(t){return!Pr()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const n=t.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(Pr()||!r.enable)return;const o=r.force,s=n.interactivity.mouse.position;if(!s)return;const a=n.canvas.size,l={x:a.width*d0,y:a.height*d0},c=r.smooth,u=t.getRadius()/o,f={x:(s.x-l.x)*u,y:(s.y-l.y)*u},{offset:d}=t;d.x+=(f.x-d.x)/c,d.y+=(f.y-d.y)/c}}async function mD(e,t=!0){await e.addMover("parallax",()=>Promise.resolve(new pD),t)}const h0=1e3,gD=1;class yD extends hm{constructor(t){super(t)}clear(){}init(){}interact(t){const n=this.container;t.attractDistance===void 0&&(t.attractDistance=N(t.options.move.attract.distance)*n.retina.pixelRatio);const i=t.attractDistance,r=t.getPosition(),o=n.particles.quadTree.queryCircle(r,i);for(const s of o){if(t===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;const a=s.getPosition(),{dx:l,dy:c}=ut(r,a),u=t.options.move.attract.rotate,f=l/(u.x*h0),d=c/(u.y*h0),p=s.size.value/t.size.value,y=gD/p;t.velocity.x-=f*p,t.velocity.y-=d*p,s.velocity.x+=f*y,s.velocity.y+=d*y}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function vD(e,t=!0){await e.addInteractor("particlesAttract",n=>Promise.resolve(new yD(n)),t)}const xD=.5,wD=10,bD=0;function p0(e,t,n,i,r,o){const s=Yt(e.options.collisions.absorb.speed*r.factor/wD,bD,i);e.size.value+=s*xD,n.size.value-=s,i<=o&&(n.size.value=0,n.destroy())}function SD(e,t,n,i){const r=e.getRadius(),o=t.getRadius();r===void 0&&o!==void 0?e.destroy():r!==void 0&&o===void 0?t.destroy():r!==void 0&&o!==void 0&&(r>=o?p0(e,r,t,o,n,i):p0(t,o,e,r,n,i))}const m0=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=N(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function KS(e,t){CS(rh(e),rh(t)),m0(e),m0(t)}function CD(e,t){!e.unbreakable&&!t.unbreakable&&KS(e,t),e.getRadius()===void 0&&t.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&t.getRadius()===void 0?t.destroy():e.getRadius()!==void 0&&t.getRadius()!==void 0&&(e.getRadius()>=t.getRadius()?t:e).destroy()}function kD(e,t,n,i){switch(e.options.collisions.mode){case vo.absorb:{SD(e,t,n,i);break}case vo.bounce:{KS(e,t);break}case vo.destroy:{CD(e,t);break}}}const PD=2;class TD extends hm{constructor(t){super(t)}clear(){}init(){}interact(t,n){if(t.destroyed||t.spawning)return;const i=this.container,r=t.getPosition(),o=t.getRadius(),s=i.particles.quadTree.queryCircle(r,o*PD);for(const a of s){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(r.z)-Math.round(l.z))>o+c)continue;const u=At(r,l),f=o+c;u>f||kD(t,a,n,i.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function MD(e,t=!0){await e.addInteractor("particlesCollisions",n=>Promise.resolve(new TD(n)),t)}const Lf=2;class ED extends nt{constructor(t,n,i,r){super(t,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(t){const{width:n,height:i}=this.canvasSize,{x:r,y:o}=t;return super.contains(t)||super.contains({x:r-n,y:o})||super.contains({x:r-n,y:o-i})||super.contains({x:r,y:o-i})}intersects(t){if(super.intersects(t))return!0;const n=t,i=t,r={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(i.radius!==void 0){const o=new nt(r.x,r.y,i.radius*Lf);return super.intersects(o)}else if(n.size!==void 0){const o=new pn(r.x,r.y,n.size.width*Lf,n.size.height*Lf);return super.intersects(o)}return!1}}class _D{constructor(){this.blur=5,this.color=new ot,this.color.value="#000",this.enable=!1}load(t){L(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=ot.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable))}}class RD{constructor(){this.enable=!1,this.frequency=1}load(t){L(t)||(t.color!==void 0&&(this.color=ot.create(this.color,t.color)),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity))}}class AD{constructor(){this.blink=!1,this.color=new ot,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new _D,this.triangles=new RD,this.width=1,this.warp=!1}load(t){L(t)||(t.id!==void 0&&(this.id=t.id),t.blink!==void 0&&(this.blink=t.blink),this.color=ot.create(this.color,t.color),t.consent!==void 0&&(this.consent=t.consent),t.distance!==void 0&&(this.distance=t.distance),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),t.width!==void 0&&(this.width=t.width),t.warp!==void 0&&(this.warp=t.warp))}}const g0=2,OD=1,fl={x:0,y:0},zD=0;function LD(e,t,n,i,r){const{dx:o,dy:s,distance:a}=ut(e,t);if(!r||a<=n)return a;const l={x:Math.abs(o),y:Math.abs(s)},c={x:Math.min(l.x,i.width-l.x),y:Math.min(l.y,i.height-l.y)};return Math.sqrt(c.x**g0+c.y**g0)}class ID extends hm{constructor(t){super(t),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let o=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(o)return;const s=r.color;o=RS(s,r.blink,r.consent),r.id===void 0?i.particles.linksColor=o:i.particles.linksColors.set(r.id,o)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[];const n=t.getPosition(),i=this.container,r=i.canvas.size;if(n.xr.width||n.y>r.height)return;const o=t.options.links,s=o.opacity,a=t.retina.linksDistance??zD,l=o.warp;let c;l?c=new ED(n.x,n.y,a,r):c=new nt(n.x,n.y,a);const u=i.particles.quadTree.query(c);for(const f of u){const d=f.options.links;if(t===f||!(d!=null&&d.enable)||o.id!==d.id||f.spawning||f.destroyed||!f.links||t.links.some(b=>b.destination===f)||f.links.some(b=>b.destination===t))continue;const p=f.getPosition();if(p.xr.width||p.y>r.height)continue;const y=LD(n,p,a,r,l&&d.warp);if(y>a)continue;const h=(OD-y/a)*s;this._setColor(t),t.links.push({destination:f,opacity:h})}}isEnabled(t){var n;return!!((n=t.options.links)!=null&&n.enable)}loadParticlesOptions(t,...n){t.links||(t.links=new AD);for(const i of n)t.links.load(i==null?void 0:i.links)}reset(){}}async function DD(e,t=!0){await e.addInteractor("particlesLinks",async n=>Promise.resolve(new ID(n)),t)}function $D(e,t,n,i){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.lineTo(i.x,i.y),e.closePath()}function FD(e){let t=!1;const{begin:n,end:i,maxDistance:r,context:o,canvasSize:s,width:a,backgroundMask:l,colorLine:c,opacity:u,links:f}=e;if(At(n,i)<=r)Is(o,n,i),t=!0;else if(f.warp){let p,y;const h={x:i.x-s.width,y:i.y},b=ut(n,h);if(b.distance<=r){const m=n.y-b.dy/b.dx*n.x;p={x:0,y:m},y={x:s.width,y:m}}else{const m={x:i.x,y:i.y-s.height},g=ut(n,m);if(g.distance<=r){const w=-(n.y-g.dy/g.dx*n.x)/(g.dy/g.dx);p={x:w,y:0},y={x:w,y:s.height}}else{const v={x:i.x-s.width,y:i.y-s.height},w=ut(n,v);if(w.distance<=r){const S=n.y-w.dy/w.dx*n.x;p={x:-S/(w.dy/w.dx),y:S},y={x:p.x+s.width,y:p.y+s.height}}}}p&&y&&(Is(o,n,p),Is(o,i,y),t=!0)}if(!t)return;o.lineWidth=a,l.enable&&(o.globalCompositeOperation=l.composite),o.strokeStyle=Xn(c,u);const{shadow:d}=f;if(d.enable){const p=fn(d.color);p&&(o.shadowBlur=d.blur,o.shadowColor=Xn(p))}o.stroke()}function jD(e){const{context:t,pos1:n,pos2:i,pos3:r,backgroundMask:o,colorTriangle:s,opacityTriangle:a}=e;$D(t,n,i,r),o.enable&&(t.globalCompositeOperation=o.composite),t.fillStyle=Xn(s,a),t.fill()}function ND(e){return e.sort((t,n)=>t-n),e.join("_")}function y0(e,t){const n=ND(e.map(r=>r.id));let i=t.get(n);return i===void 0&&(i=de(),t.set(n,i)),i}const v0=0,If=0,x0=0,VD=.5,BD=1;class UD{constructor(t){this.container=t,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const o=this.container,s=o.actualOptions,a=i.destination,l=n.getPosition(),c=a.getPosition();let u=i.opacity;o.canvas.draw(f=>{var m;let d;const p=(m=n.options.twinkle)==null?void 0:m.lines;if(p!=null&&p.enable){const g=p.frequency,v=fn(p.color);de(){const o=n.options.links;if(!(o!=null&&o.enable))return;const s=o.triangles;if(!s.enable)return;const a=this.container,l=a.actualOptions,c=i.destination,u=r.destination,f=s.opacity??(i.opacity+r.opacity)*VD;f<=v0||a.canvas.draw(d=>{const p=n.getPosition(),y=c.getPosition(),h=u.getPosition(),b=n.retina.linksDistance??x0;if(At(p,y)>b||At(h,y)>b||At(h,p)>b)return;let m=fn(s.color);if(!m){const g=o.id!==void 0?a.particles.linksColors.get(o.id):a.particles.linksColor;m=sh(n,c,g)}m&&jD({context:d,pos1:p,pos2:y,pos3:h,backgroundMask:l.backgroundMask,colorTriangle:m,opacityTriangle:f})})},this._drawTriangles=(n,i,r,o)=>{var l,c,u;const s=r.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((c=s.options.links)!=null&&c.triangles.enable)))return;const a=(u=s.links)==null?void 0:u.filter(f=>{const d=this._getLinkFrequency(s,f.destination);return s.options.links&&d<=s.options.links.frequency&&o.findIndex(y=>y.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(i,s,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>y0([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>y0([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,n){const{links:i,options:r}=n;if(!(i!=null&&i.length))return;const o=i.filter(s=>r.links&&(r.links.frequency>=BD||this._getLinkFrequency(n,s.destination)<=r.links.frequency));for(const s of o)this._drawTriangles(r,n,s,o),s.opacity>v0&&(n.retina.linksWidth??If)>If&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=t,{distance:r,width:o}=t.options.links;i.linksDistance=r*n,i.linksWidth=o*n}particleDestroyed(t){t.links=[]}}class WD{constructor(){this.id="links"}getPlugin(t){return Promise.resolve(new UD(t))}loadOptions(){}needsPlugin(){return!0}}async function HD(e,t=!0){const n=new WD;await e.addPlugin(n,t)}async function GD(e,t=!0){await DD(e,t),await HD(e,t)}const KD=180,dl={x:0,y:0},qD=2;function QD(e,t,n){const{context:i}=e,r=n.count.numerator*n.count.denominator,o=n.count.numerator/n.count.denominator,s=KD*(o-qD)/o,a=Math.PI-ki(s);if(i){i.beginPath(),i.translate(t.x,t.y),i.moveTo(dl.x,dl.y);for(let l=0;l0?Wt.counterClockwise:Wt.clockwise),i){case Wt.counterClockwise:case"counterClockwise":t.rotate.status=Oe.decreasing;break;case Wt.clockwise:t.rotate.status=Oe.increasing;break}const r=n.animation;r.enable&&(t.rotate.decay=c4-N(r.decay),t.rotate.velocity=N(r.speed)/u4*this.container.retina.reduceFactor,r.sync||(t.rotate.velocity*=de())),t.rotation=t.rotate.value}isEnabled(t){const n=t.options.rotate;return n?!t.destroyed&&!t.spawning&&(!!n.value||n.animation.enable||n.path):!1}loadOptions(t,...n){t.rotate||(t.rotate=new a4);for(const i of n)t.rotate.load(i==null?void 0:i.rotate)}update(t,n){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(cm(t,t.rotate,!1,Cr.none,n),t.rotation=t.rotate.value))}}async function d4(e,t=!0){await e.addParticleUpdater("rotate",n=>Promise.resolve(new f4(n)),t)}const h4=2,p4=Math.sqrt(h4),m4=2;function g4(e){const{context:t,radius:n}=e,i=n/p4,r=i*m4;t.rect(-i,-i,r,r)}const y4=4;class v4{constructor(){this.validTypes=["edge","square"]}draw(t){g4(t)}getSidesCount(){return y4}}async function x4(e,t=!0){await e.addShape(new v4,t)}const w4=2,jr={x:0,y:0};function b4(e){const{context:t,particle:n,radius:i}=e,r=n.sides,o=n.starInset??w4;t.moveTo(jr.x,jr.y-i);for(let s=0;sPromise.resolve(new M4(n)),t)}async function _4(e,t=!0){await mD(e,!1),await xI(e,!1),await EI(e,!1),await DI(e,!1),await GI(e,!1),await n3(e,!1),await o3(e,!1),await u3(e,!1),await p3(e,!1),await P3(e,!1),await R3(e,!1),await vD(e,!1),await MD(e,!1),await GD(e,!1),await cI(),await dI(e,!1),await nD(e,!1),await hD(e,!1),await o4(e,!1),await x4(e,!1),await P4(e,!1),await cD(e,!1),await d4(e,!1),await E4(e,!1),await lI(e,t)}function YS(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{const t=z4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const a=s.split(mm);return a[0]===""&&a.length!==1&&a.shift(),XS(a,t)||O4(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&i[s]?[...l,...i[s]]:l}}},XS=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?XS(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(mm);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},S0=/^\[(.+)\]$/,O4=e=>{if(S0.test(e)){const t=S0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},z4=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return I4(Object.entries(e.classGroups),n).forEach(([o,s])=>{uh(s,i,o,t)}),i},uh=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:C0(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(L4(r)){uh(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,s])=>{uh(s,C0(t,o),n,i)})})},C0=(e,t)=>{let n=e;return t.split(mm).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},L4=e=>e.isThemeGetter,I4=(e,t)=>t?e.map(([n,i])=>{const r=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,r]}):e,D4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set(o,s){n.has(o)?n.set(o,s):r(o,s)}}},ZS="!",$4=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,r=t[0],o=t.length,s=a=>{const l=[];let c=0,u=0,f;for(let b=0;bu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},F4=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},j4=e=>({cache:D4(e.cacheSize),parseClassName:$4(e),...A4(e)}),N4=/\s+/,V4=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=[],s=e.trim().split(N4);let a="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(c);let y=!!p,h=i(y?d.substring(0,p):d);if(!h){if(!y){a=c+(a.length>0?" "+a:a);continue}if(h=i(d),!h){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=F4(u).join(":"),m=f?b+ZS:b,g=m+h;if(o.includes(g))continue;o.push(g);const v=r(h,y);for(let w=0;w0?" "+a:a)}return a};function B4(){let e=0,t,n,i="";for(;e{if(typeof e=="string")return e;let t,n="";for(let i=0;if(u),e());return n=j4(c),i=n.cache.get,r=n.cache.set,o=a,a(l)}function a(l){const c=i(l);if(c)return c;const u=V4(l,n);return r(l,u),u}return function(){return o(B4.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},eC=/^\[(?:([a-z-]+):)?(.+)\]$/i,W4=/^\d+\/\d+$/,H4=new Set(["px","full","screen"]),G4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Q4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jn=e=>bo(e)||H4.has(e)||W4.test(e),oi=e=>Wo(e,"length",r$),bo=e=>!!e&&!Number.isNaN(Number(e)),Df=e=>Wo(e,"number",bo),us=e=>!!e&&Number.isInteger(Number(e)),X4=e=>e.endsWith("%")&&bo(e.slice(0,-1)),H=e=>eC.test(e),si=e=>G4.test(e),Z4=new Set(["length","size","percentage"]),J4=e=>Wo(e,Z4,tC),e$=e=>Wo(e,"position",tC),t$=new Set(["image","url"]),n$=e=>Wo(e,t$,s$),i$=e=>Wo(e,"",o$),fs=()=>!0,Wo=(e,t,n)=>{const i=eC.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},r$=e=>K4.test(e)&&!q4.test(e),tC=()=>!1,o$=e=>Q4.test(e),s$=e=>Y4.test(e),a$=()=>{const e=ce("colors"),t=ce("spacing"),n=ce("blur"),i=ce("brightness"),r=ce("borderColor"),o=ce("borderRadius"),s=ce("borderSpacing"),a=ce("borderWidth"),l=ce("contrast"),c=ce("grayscale"),u=ce("hueRotate"),f=ce("invert"),d=ce("gap"),p=ce("gradientColorStops"),y=ce("gradientColorStopPositions"),h=ce("inset"),b=ce("margin"),m=ce("opacity"),g=ce("padding"),v=ce("saturate"),w=ce("scale"),S=ce("sepia"),C=ce("skew"),T=ce("space"),M=ce("translate"),z=()=>["auto","contain","none"],x=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",H,t],R=()=>[H,t],F=()=>["",jn,oi],D=()=>["auto",bo,H],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",H],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[bo,H];return{cacheSize:500,separator:":",theme:{colors:[fs],spacing:[jn,oi],blur:["none","",si,H],brightness:W(),borderColor:[e],borderRadius:["none","","full",si,H],borderSpacing:R(),borderWidth:F(),contrast:W(),grayscale:I(),hueRotate:W(),invert:I(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[X4,oi],inset:_(),margin:_(),opacity:W(),padding:R(),saturate:W(),scale:W(),sepia:I(),skew:W(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[si]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),H]}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",us,H]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",us,H]}],"grid-cols":[{"grid-cols":[fs]}],"col-start-end":[{col:["auto",{span:["full",us,H]},H]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[fs]}],"row-start-end":[{row:["auto",{span:[us,H]},H]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[si]},si]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",si,oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Df]}],"font-family":[{font:[fs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",bo,Df]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jn,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jn,oi]}],"underline-offset":[{"underline-offset":["auto",jn,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),e$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",J4]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},n$]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:ne()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[jn,H]}],"outline-w":[{outline:[jn,oi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[jn,oi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",si,i$]}],"shadow-color":[{shadow:[fs]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",si,H]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[us,H]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jn,oi,Df]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},l$=U4(a$);function k0(...e){return l$(R4(e))}const c$=e=>{const{id:t="tsparticles",className:n,background:i="transparent",minSize:r=.6,maxSize:o=1.4,particleDensity:s=100,particleColor:a="#FFFFFF"}=e,[l,c]=k.useState(!1);k.useEffect(()=>{TL(async f=>{await _4(f)}).then(()=>{c(!0)})},[]);const u=async()=>{};return l?P.jsx("div",{className:k0("w-full h-full",n),children:P.jsx(PL,{id:t,className:k0("h-full w-full"),particlesLoaded:u,options:{background:{color:{value:i}},fullScreen:{enable:!1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!0,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:100,duration:.4}}},particles:{color:{value:a},links:{color:a,distance:150,enable:!0,opacity:.5,width:1},collisions:{enable:!0},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:s},value:s},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:r,max:o}}},detectRetina:!0}})}):null},fh=["AI solutions","Frontend UI","Backend solutions"],nC=Math.max(...fh.map(e=>e.length)),u$=" ".repeat(nC),iC=k.memo(({onComplete:e})=>{const[t,n]=k.useState(0),[i,r]=k.useState(""),[o,s]=k.useState(!1),a=k.useCallback(()=>{const l=fh[t];return o?i.length>0?(r(l.slice(0,i.length-1)),80):(s(!1),n(c=>(c+1)%fh.length),1500):i.length{const l=setTimeout(a,a());return()=>clearTimeout(l)},[a]),P.jsxs("div",{className:"inline-block relative",style:{minWidth:`${nC}ch`},children:[P.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500 whitespace-pre opacity-0",children:u$}),P.jsx("span",{className:"absolute top-0 left-0 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",style:{clipPath:"inset(0 0 0 0)",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",backfaceVisibility:"hidden",transition:"color 0.3s ease-in-out"},children:i}),P.jsx(ke.span,{initial:{opacity:0},animate:{opacity:[0,1,1,0]},transition:{duration:1.2,ease:"easeInOut",times:[0,.2,.8,1],repeat:1/0,repeatDelay:.2},className:"inline-block w-[4px] h-4 md:h-6 lg:h-8 bg-blue-500 ml-1"})]})});iC.displayName="TypeWriter";function f$(){return P.jsxs("div",{id:"home",className:"h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden rounded-md relative",children:[P.jsx("div",{className:"w-full absolute inset-0 h-screen",children:P.jsx(c$,{id:"tsparticlesfullpage",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),P.jsx("div",{className:"relative z-20 text-center",children:P.jsxs(ke.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:3.5},className:"flex flex-col items-center gap-4 p-8 backdrop-blur-sm rounded-lg border border-white/10 bg-black/20",children:[P.jsx(ke.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.2},className:"text-4xl md:text-6xl font-bold text-center bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Rushi M Goswami"}),P.jsx(ke.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.3},className:"text-xl md:text-2xl text-white/90 font-semibold",children:"Software Engineer"}),P.jsxs(ke.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.4},className:"mt-4 w-full max-w-3xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold",children:[P.jsx("span",{className:"text-white/90",children:"Building next gen "}),P.jsx(iC,{})]})]})}),P.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"})]})}const xn={company:"Promact Infotech",role:"Software Engineer",duration:"July 2023 - Present",description:"Working as a Software Engineer specializing in AI/ML development.",achievements:["Developed and deployed multiple ML models improving business efficiency by 40%","Implemented NLP solutions for automated text analysis and processing","Created custom AI solutions for client-specific requirements","Optimized existing ML pipelines reducing processing time by 30%"],responsibilities:["Design and implement ML models for various business applications","Develop and maintain AI-powered software solutions","Collaborate with cross-functional teams for project delivery","Research and implement new AI/ML technologies"],education:{degree:"B.Tech in Computer Science",institution:"Marwadi University",duration:"2019-2023",gpa:"8.9/10"}};function d$(){const e={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},t={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5}}};return P.jsxs("section",{id:"about",className:"relative py-20",children:[P.jsx("div",{className:"absolute inset-0 bg-black",children:P.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),P.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[P.jsx(ke.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"About Me"}),P.jsxs(ke.div,{variants:e,initial:"hidden",whileInView:"visible",className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[P.jsxs(ke.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[P.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Current Role"}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("p",{className:"text-white/80",children:xn.company}),P.jsx("p",{className:"text-white/70",children:xn.role}),P.jsx("p",{className:"text-white/60",children:xn.duration}),P.jsx("p",{className:"text-white/80 mt-4",children:xn.description})]})]}),P.jsxs(ke.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[P.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Education"}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("p",{className:"text-white/80",children:xn.education.degree}),P.jsx("p",{className:"text-white/70",children:xn.education.institution}),P.jsx("p",{className:"text-white/60",children:xn.education.duration}),P.jsxs("p",{className:"text-white/80 mt-4",children:["GPA: ",xn.education.gpa]})]})]}),P.jsxs(ke.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[P.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Key Achievements"}),P.jsx("ul",{className:"list-disc list-inside space-y-2",children:xn.achievements.map((n,i)=>P.jsx("li",{className:"text-white/80",children:n},i))})]}),P.jsxs(ke.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[P.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Responsibilities"}),P.jsx("ul",{className:"list-disc list-inside space-y-2",children:xn.responsibilities.map((n,i)=>P.jsx("li",{className:"text-white/80",children:n},i))})]})]})]})]})}const ku=CM;function h$(e){return ii("MuiSvgIcon",e)}$i("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p$=e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root",t!=="inherit"&&`color${G(t)}`,`fontSize${G(n)}`]};return Fi(r,h$,i)},m$=mn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${G(n.color)}`],t[`fontSize${G(n.fontSize)}`]]}})(ku(({theme:e})=>{var t,n,i,r,o,s,a,l,c,u,f,d,p,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var b,m;return{props:{color:h},style:{color:(m=(b=(e.vars??e).palette)==null?void 0:b[h])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(y=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Sc=k.forwardRef(function(t,n){const i=zn({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...p}=i,y=k.isValidElement(r)&&r.type==="svg",h={...i,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:y},b={};u||(b.viewBox=d);const m=p$(h);return P.jsxs(m$,{as:a,className:ge(m.root,o),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...p,...y&&r.props,ownerState:h,children:[y?r.props.children:r,f?P.jsx("title",{children:f}):null]})});Sc&&(Sc.muiName="SvgIcon");function Vi(e,t){function n(i,r){return P.jsx(Sc,{"data-testid":`${t}Icon`,ref:r,...i,children:e})}return n.muiName=Sc.muiName,k.memo(k.forwardRef(n))}function g$(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function dh(e,t){return dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dh(e,t)}function y$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dh(e,t)}const P0=Nr.createContext(null);function v$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gm(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},i=Object.create(null);return e&&k.Children.map(e,function(r){return r}).forEach(function(r){i[r.key]=n(r)}),i}function x$(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var i=Object.create(null),r=[];for(var o in e)o in t?r.length&&(i[o]=r,r=[]):r.push(o);var s,a={};for(var l in t){if(i[l])for(s=0;s{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Fi(o,k$,r)},T$=mn("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ku(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),M$=k.forwardRef(function(t,n){var p;const i=zn({props:t,name:"MuiPaper"}),r=Ep(),{className:o,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=i,f={...i,component:s,elevation:a,square:l,variant:c},d=P$(f);return P.jsx(T$,{as:s,ownerState:f,className:ge(d.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":(p=r.vars.overlays)==null?void 0:p[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ct("#fff",Id(a))}, ${Ct("#fff",Id(a))})`}},...u.style}})});class Cc{constructor(){Qo(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Cc}static use(){const t=Tw(Cc.create).current,[n,i]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=i,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=_$(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function E$(){return Cc.use()}function _$(){let e,t;const n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}function R$(e){const{className:t,classes:n,pulsate:i=!1,rippleX:r,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=k.useState(!1),d=ge(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+r},y=ge(n.child,u&&n.childLeaving,i&&n.childPulsate);return!a&&!u&&f(!0),k.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),P.jsx("span",{className:d,style:p,children:P.jsx("span",{className:y})})}const Nt=$i("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hh=550,A$=80,O$=pp` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,z$=pp` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,L$=pp` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,I$=mn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),D$=mn(R$,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Nt.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${O$}; - animation-duration: ${hh}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - &.${Nt.ripplePulsate} { - animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; - } - - & .${Nt.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Nt.childLeaving} { - opacity: 0; - animation-name: ${z$}; - animation-duration: ${hh}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - & .${Nt.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${L$}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,$$=k.forwardRef(function(t,n){const i=zn({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:s,...a}=i,[l,c]=k.useState([]),u=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=k.useRef(!1),p=hM(),y=k.useRef(null),h=k.useRef(null),b=k.useCallback(w=>{const{pulsate:S,rippleX:C,rippleY:T,rippleSize:M,cb:z}=w;c(x=>[...x,P.jsx(D$,{classes:{ripple:ge(o.ripple,Nt.ripple),rippleVisible:ge(o.rippleVisible,Nt.rippleVisible),ripplePulsate:ge(o.ripplePulsate,Nt.ripplePulsate),child:ge(o.child,Nt.child),childLeaving:ge(o.childLeaving,Nt.childLeaving),childPulsate:ge(o.childPulsate,Nt.childPulsate)},timeout:hh,pulsate:S,rippleX:C,rippleY:T,rippleSize:M},u.current)]),u.current+=1,f.current=z},[o]),m=k.useCallback((w={},S={},C=()=>{})=>{const{pulsate:T=!1,center:M=r||S.pulsate,fakeElement:z=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const x=z?null:h.current,_=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,F,D;if(M||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)R=Math.round(_.width/2),F=Math.round(_.height/2);else{const{clientX:Y,clientY:ne}=w.touches&&w.touches.length>0?w.touches[0]:w;R=Math.round(Y-_.left),F=Math.round(ne-_.top)}if(M)D=Math.sqrt((2*_.width**2+_.height**2)/3),D%2===0&&(D+=1);else{const Y=Math.max(Math.abs((x?x.clientWidth:0)-R),R)*2+2,ne=Math.max(Math.abs((x?x.clientHeight:0)-F),F)*2+2;D=Math.sqrt(Y**2+ne**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{b({pulsate:T,rippleX:R,rippleY:F,rippleSize:D,cb:C})},p.start(A$,()=>{y.current&&(y.current(),y.current=null)})):b({pulsate:T,rippleX:R,rippleY:F,rippleSize:D,cb:C})},[r,b,p]),g=k.useCallback(()=>{m({},{pulsate:!0})},[m]),v=k.useCallback((w,S)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,p.start(0,()=>{v(w,S)});return}y.current=null,c(C=>C.length>0?C.slice(1):C),f.current=S},[p]);return k.useImperativeHandle(n,()=>({pulsate:g,start:m,stop:v}),[g,m,v]),P.jsx(I$,{className:ge(Nt.root,o.root,s),ref:h,...a,children:P.jsx(ym,{component:null,exit:!0,children:l})})});function F$(e){return ii("MuiButtonBase",e)}const j$=$i("MuiButtonBase",["root","disabled","focusVisible"]),N$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:r}=e,s=Fi({root:["root",t&&"disabled",n&&"focusVisible"]},F$,r);return n&&i&&(s.root+=` ${i}`),s},V$=mn("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${j$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),T0=k.forwardRef(function(t,n){const i=zn({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:y="a",onBlur:h,onClick:b,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:w,onKeyDown:S,onKeyUp:C,onMouseDown:T,onMouseLeave:M,onMouseUp:z,onTouchEnd:x,onTouchMove:_,onTouchStart:R,tabIndex:F=0,TouchRippleProps:D,touchRippleRef:Y,type:ne,...U}=i,O=k.useRef(null),I=E$(),j=zd(I.ref,Y),[W,te]=k.useState(!1);c&&W&&te(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{te(!0),O.current.focus()}}),[]);const Dn=I.shouldMount&&!u&&!c;k.useEffect(()=>{W&&d&&!u&&I.pulsate()},[u,d,W,I]);function Re(B,Ko,Aa=f){return Ja(qo=>(Ko&&Ko(qo),Aa||I[B](qo),!0))}const Bi=Re("start",T),Jt=Re("stop",m),$n=Re("stop",g),Pa=Re("stop",z),Ta=Re("stop",B=>{W&&B.preventDefault(),M&&M(B)}),Ma=Re("start",R),Pu=Re("stop",x),Ea=Re("stop",_),Ho=Re("stop",B=>{Ug(B.target)||te(!1),h&&h(B)},!1),bt=Ja(B=>{O.current||(O.current=B.currentTarget),Ug(B.target)&&(te(!0),w&&w(B)),v&&v(B)}),Rr=()=>{const B=O.current;return l&&l!=="button"&&!(B.tagName==="A"&&B.href)},Tu=Ja(B=>{d&&!B.repeat&&W&&B.key===" "&&I.stop(B,()=>{I.start(B)}),B.target===B.currentTarget&&Rr()&&B.key===" "&&B.preventDefault(),S&&S(B),B.target===B.currentTarget&&Rr()&&B.key==="Enter"&&!c&&(B.preventDefault(),b&&b(B))}),St=Ja(B=>{d&&B.key===" "&&W&&!B.defaultPrevented&&I.stop(B,()=>{I.pulsate(B)}),C&&C(B),b&&B.target===B.currentTarget&&Rr()&&B.key===" "&&!B.defaultPrevented&&b(B)});let gn=l;gn==="button"&&(U.href||U.to)&&(gn=y);const Ui={};gn==="button"?(Ui.type=ne===void 0?"button":ne,Ui.disabled=c):(!U.href&&!U.to&&(Ui.role="button"),c&&(Ui["aria-disabled"]=c));const _a=zd(n,O),Go={...i,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:F,focusVisible:W},Ra=N$(Go);return P.jsxs(V$,{as:gn,className:ge(Ra.root,a),ownerState:Go,onBlur:Ho,onClick:b,onContextMenu:Jt,onFocus:bt,onKeyDown:Tu,onKeyUp:St,onMouseDown:Bi,onMouseLeave:Ta,onMouseUp:Pa,onDragLeave:$n,onTouchEnd:Pu,onTouchMove:Ea,onTouchStart:Ma,ref:_a,tabIndex:c?-1:F,type:ne,...Ui,...U,children:[s,Dn?P.jsx($$,{ref:j,center:o,...D}):null]})});function B$(e){return typeof e.main=="string"}function U$(e,t=[]){if(!B$(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function bs(e=[]){return([,t])=>t&&U$(t,e)}function W$(e){return ii("MuiTypography",e)}$i("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const H$={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},G$=_E(),K$=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:r,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${G(t)}`,n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return Fi(a,W$,s)},q$=mn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${G(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ku(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,i])=>n!=="inherit"&&i&&typeof i=="object").map(([n,i])=>({props:{variant:n},style:i})),...Object.entries(e.palette).filter(bs()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${G(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),M0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E0=k.forwardRef(function(t,n){const{color:i,...r}=zn({props:t,name:"MuiTypography"}),o=!H$[i],s=G$({...r,...o&&{color:i}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:d=!1,variant:p="body1",variantMapping:y=M0,...h}=s,b={...s,align:a,color:i,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:d,variant:p,variantMapping:y},m=c||(d?"p":y[p]||M0[p])||"span",g=K$(b);return P.jsx(q$,{as:m,ref:n,className:ge(g.root,l),...h,ownerState:b,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...h.style}})}),Q$=Vi(P.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Y$(e){return ii("MuiChip",e)}const K=$i("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),X$=e=>{const{classes:t,disabled:n,size:i,color:r,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${G(i)}`,`color${G(r)}`,a&&"clickable",a&&`clickableColor${G(r)}`,s&&"deletable",s&&`deletableColor${G(r)}`,`${l}${G(r)}`],label:["label",`label${G(i)}`],avatar:["avatar",`avatar${G(i)}`,`avatarColor${G(r)}`],icon:["icon",`icon${G(i)}`,`iconColor${G(o)}`],deleteIcon:["deleteIcon",`deleteIcon${G(i)}`,`deleteIconColor${G(r)}`,`deleteIcon${G(l)}Color${G(r)}`]};return Fi(c,Y$,t)},Z$=mn("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:r,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${K.avatar}`]:t.avatar},{[`& .${K.avatar}`]:t[`avatar${G(a)}`]},{[`& .${K.avatar}`]:t[`avatarColor${G(i)}`]},{[`& .${K.icon}`]:t.icon},{[`& .${K.icon}`]:t[`icon${G(a)}`]},{[`& .${K.icon}`]:t[`iconColor${G(r)}`]},{[`& .${K.deleteIcon}`]:t.deleteIcon},{[`& .${K.deleteIcon}`]:t[`deleteIcon${G(a)}`]},{[`& .${K.deleteIcon}`]:t[`deleteIconColor${G(i)}`]},{[`& .${K.deleteIcon}`]:t[`deleteIcon${G(l)}Color${G(i)}`]},t.root,t[`size${G(a)}`],t[`color${G(i)}`],o&&t.clickable,o&&i!=="default"&&t[`clickableColor${G(i)})`],s&&t.deletable,s&&i!=="default"&&t[`deletableColor${G(i)}`],t[l],t[`${l}${G(i)}`]]}})(ku(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${K.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${K.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${K.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${K.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${K.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${K.icon}`]:{marginLeft:5,marginRight:-6},[`& .${K.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ct(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${K.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${K.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(bs(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${K.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Ct(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${K.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${K.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${K.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(bs(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${K.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${K.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(bs(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${K.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${K.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${K.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${K.avatar}`]:{marginLeft:4},[`& .${K.avatarSmall}`]:{marginLeft:2},[`& .${K.icon}`]:{marginLeft:4},[`& .${K.iconSmall}`]:{marginLeft:2},[`& .${K.deleteIcon}`]:{marginRight:5},[`& .${K.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(bs()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ct(e.palette[n].main,.7)}`,[`&.${K.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${K.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ct(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${K.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ct(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),J$=mn("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${G(i)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function _0(e){return e.key==="Backspace"||e.key==="Delete"}const rC=k.forwardRef(function(t,n){const i=zn({props:t,name:"MuiChip"}),{avatar:r,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:d,onClick:p,onDelete:y,onKeyDown:h,onKeyUp:b,size:m="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:w=!1,...S}=i,C=k.useRef(null),T=zd(C,n),M=I=>{I.stopPropagation(),y&&y(I)},z=I=>{I.currentTarget===I.target&&_0(I)&&I.preventDefault(),h&&h(I)},x=I=>{I.currentTarget===I.target&&y&&_0(I)&&y(I),b&&b(I)},_=s!==!1&&p?!0:s,R=_||y?T0:l||"div",F={...i,component:R,disabled:u,size:m,color:a,iconColor:k.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:_,variant:g},D=X$(F),Y=R===T0?{component:l||"div",focusVisibleClassName:D.focusVisible,...y&&{disableRipple:!0}}:{};let ne=null;y&&(ne=c&&k.isValidElement(c)?k.cloneElement(c,{className:ge(c.props.className,D.deleteIcon),onClick:M}):P.jsx(Q$,{className:ge(D.deleteIcon),onClick:M}));let U=null;r&&k.isValidElement(r)&&(U=k.cloneElement(r,{className:ge(D.avatar,r.props.className)}));let O=null;return f&&k.isValidElement(f)&&(O=k.cloneElement(f,{className:ge(D.icon,f.props.className)})),P.jsxs(Z$,{as:R,className:ge(D.root,o),disabled:_&&u?!0:void 0,onClick:p,onKeyDown:z,onKeyUp:x,ref:T,tabIndex:w&&u?-1:v,ownerState:F,...Y,...S,children:[U||O,P.jsx(J$,{className:ge(D.label),ownerState:F,children:d}),ne]})}),eF=$i("MuiBox",["root"]),tF=hu(),So=GT({themeId:un,defaultTheme:tF,defaultClassName:eF.root,generateClassName:mw.generate}),oC=jM({createStyledComponent:mn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${G(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>zn({props:e,name:"MuiContainer"})}),R0=k.createContext();function nF(e){return ii("MuiGrid",e)}const iF=[0,1,2,3,4,5,6,7,8,9,10],rF=["column-reverse","column","row-reverse","row"],oF=["nowrap","wrap-reverse","wrap"],ds=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],fa=$i("MuiGrid",["root","container","item","zeroMinWidth",...iF.map(e=>`spacing-xs-${e}`),...rF.map(e=>`direction-xs-${e}`),...oF.map(e=>`wrap-xs-${e}`),...ds.map(e=>`grid-xs-${e}`),...ds.map(e=>`grid-sm-${e}`),...ds.map(e=>`grid-md-${e}`),...ds.map(e=>`grid-lg-${e}`),...ds.map(e=>`grid-xl-${e}`)]);function sF({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((i,r)=>{let o={};if(t[r]&&(n=t[r]),!n)return i;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=dr({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[r]:s;if(a==null)return i;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${u})`;c={flexBasis:f,maxWidth:f}}}o={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return e.breakpoints.values[r]===0?Object.assign(i,o):i[e.breakpoints.up(r)]=o,i},{})}function aF({theme:e,ownerState:t}){const n=dr({values:t.direction,breakpoints:e.breakpoints.values});return wt({theme:e},n,i=>{const r={flexDirection:i};return i.startsWith("column")&&(r[`& > .${fa.item}`]={maxWidth:"none"}),r})}function sC({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const i=Object.keys(e).sort((r,o)=>e[r]-e[o]);return i.slice(0,i.indexOf(n))}function lF({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let r={};if(n&&i!==0){const o=dr({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=sC({breakpoints:e.breakpoints.values,values:o})),r=wt({theme:e},o,(a,l)=>{const c=e.spacing(a);return c!=="0px"?{marginTop:`-${c}`,[`& > .${fa.item}`]:{paddingTop:c}}:s!=null&&s.includes(l)?{}:{marginTop:0,[`& > .${fa.item}`]:{paddingTop:0}}})}return r}function cF({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let r={};if(n&&i!==0){const o=dr({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=sC({breakpoints:e.breakpoints.values,values:o})),r=wt({theme:e},o,(a,l)=>{const c=e.spacing(a);if(c!=="0px"){const u=`-${c}`;return{width:`calc(100% + ${c})`,marginLeft:u,[`& > .${fa.item}`]:{paddingLeft:c}}}return s!=null&&s.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${fa.item}`]:{paddingLeft:0}}})}return r}function uF(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach(r=>{const o=e[r];Number(o)>0&&i.push(n[`spacing-${r}-${String(o)}`])}),i}const fF=mn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:r,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];i&&(u=uF(s,c,t));const f=[];return c.forEach(d=>{const p=n[d];p&&f.push(t[`grid-${d}-${String(p)}`])}),[t.root,i&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),aF,lF,cF,sF);function dF(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(i=>{const r=e[i];if(Number(r)>0){const o=`spacing-${i}-${String(r)}`;n.push(o)}}),n}const hF=e=>{const{classes:t,container:n,direction:i,item:r,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=dF(o,l));const u=[];l.forEach(d=>{const p=e[d];p&&u.push(`grid-${d}-${String(p)}`)});const f={root:["root",n&&"container",r&&"item",a&&"zeroMinWidth",...c,i!=="row"&&`direction-xs-${String(i)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...u]};return Fi(f,nF,t)},kc=k.forwardRef(function(t,n){const i=zn({props:t,name:"MuiGrid"}),{breakpoints:r}=Ep(),o=fu(i),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:d=!1,rowSpacing:p,spacing:y=0,wrap:h="wrap",zeroMinWidth:b=!1,...m}=o,g=p||y,v=l||y,w=k.useContext(R0),S=u?a||12:w,C={},T={...m};r.keys.forEach(x=>{m[x]!=null&&(C[x]=m[x],delete T[x])});const M={...o,columns:S,container:u,direction:f,item:d,rowSpacing:g,columnSpacing:v,wrap:h,zeroMinWidth:b,spacing:y,...C,breakpoints:r.keys},z=hF(M);return P.jsx(R0.Provider,{value:S,children:P.jsx(fF,{ownerState:M,className:ge(z.root,s),as:c,ref:n,...T})})}),pF=rM({themeId:un}),mF=GM({createStyledComponent:mn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>zn({props:e,name:"MuiStack"})}),gF=Vi(P.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),yF=Vi(P.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage"),vF=Vi([P.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),P.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology"),xF=Vi(P.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud"),wF=Vi(P.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),bF=Vi(P.jsx("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal"),SF=Vi([P.jsx("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),P.jsx("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),P.jsx("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech"),CF=()=>{const e=Ep(),t=pF(e.breakpoints.down("sm")),n=[{title:"Languages",icon:P.jsx(gF,{fontSize:"large",color:"primary"}),skills:["Python","JavaScript","C++"]},{title:"Database",icon:P.jsx(yF,{fontSize:"large",color:"primary"}),skills:["Postgres","Azure Data Tables","MySQL","Neo4j- Graph DB"]},{title:"Web Technologies",icon:P.jsx(bF,{fontSize:"large",color:"primary"}),skills:["React","Django","FastAPI","Flask","Git/GitHub","VSCode"]},{title:"Machine Learning",icon:P.jsx(SF,{fontSize:"large",color:"primary"}),skills:["Linear regression","Ridge & Lasso Regularization","Logistic Regression","Naive-Bayes Classifier","KNN","SVM","Decision Tree","Random Forest","Ada-Boost","XG-Boost","K-means Clustering"]},{title:"Deep Learning & NLP",icon:P.jsx(vF,{fontSize:"large",color:"primary"}),skills:["NLTK","Spacy","Stop-words","Stemming","Lemmatization","Tokenization","TF-IDF","Bag of Words","Word2Vec","RNNs","CNNs","LSTM","Yolo","Activation Functions","Pytorch","Tensorflow"]},{title:"Generative AI",icon:P.jsx(wF,{fontSize:"large",color:"primary"}),skills:["OpenAI API","LLMs (Llama, Mistral, Phi-mini, Reflection-based models)","Prompt Engineering","RAG","Tool Calling","Fine Tuning","PEFT","VectorDBs","Agents","Langchain","LanGraph","LlamaIndex","HuggingFace tools","Langfuse","Cursor"]},{title:"Cloud services",icon:P.jsx(xF,{fontSize:"large",color:"primary"}),skills:["Azure AI services","Azure Openai","Azure AI search","Azure Document Intelligence","Azure Speech","Azure Machine Learning","AWS bedrock","AWS sagemaker","AWS SQS"]}];return P.jsxs(So,{id:"skills",py:8,className:"relative",sx:{bgcolor:"background.paper"},children:[P.jsx("div",{className:"absolute inset-0 bg-black",children:P.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),P.jsxs(oC,{maxWidth:"lg",className:"relative z-10",children:[P.jsx(ke.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},children:P.jsx(E0,{variant:t?"h4":"h3",component:"h2",textAlign:"center",gutterBottom:!0,sx:{fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem"},mb:6,textGradient:"linear-gradient(to right, #2196f3, #7a1bff)"},children:"Skills & Technologies"})}),P.jsx(kc,{container:!0,spacing:4,children:n.map((i,r)=>P.jsx(kc,{item:!0,xs:12,md:6,children:P.jsx(ke.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:r*.1},children:P.jsxs(M$,{elevation:3,sx:{p:{xs:2,sm:3},height:"100%",transition:"transform 0.2s","&:hover":{transform:"translateY(-5px)",boxShadow:e.shadows[10]},bgcolor:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)"},children:[P.jsxs(So,{sx:{display:"flex",alignItems:"center",mb:2},children:[i.icon,P.jsx(E0,{variant:"h6",sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"},color:"primary.main",ml:1,fontWeight:600},children:i.title})]}),P.jsx(So,{sx:{display:"flex",flexWrap:"wrap",gap:{xs:.5,sm:1}},children:i.skills.map((o,s)=>P.jsx(rC,{label:o,sx:{m:.5,fontSize:{xs:"0.75rem",sm:"0.875rem"},bgcolor:"rgba(255, 255, 255, 0.1)","&:hover":{bgcolor:"rgba(255, 255, 255, 0.2)"}},variant:"outlined"},s))})]})})},r))})]})]})},kF=()=>{const e=[{title:"AI based large construction project analyser",description:"Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.",tools:["Python FastAPI","Azure functions","Azure OpenAI","Langchain","Unstructured","Neo4j"]},{title:"AI Legal Research Tool",description:"Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.",tools:["Flask","Elasticsearch","OpenAI API","RAG","BiLSTM","Selenium","Azure machine learning"]},{title:"AI Sales Agent",description:"Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.",tools:["FastAPI","Reactjs","ChromaDB","Agent Architectures","OpenAI API","Zapier","Salesforce- Apex"]}];return P.jsx(So,{id:"projects",py:8,children:P.jsxs(oC,{children:[P.jsx(ke.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Projects"}),P.jsx(kc,{container:!0,spacing:4,children:e.map((t,n)=>P.jsx(kc,{item:!0,xs:12,children:P.jsxs(ke.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:[P.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:t.title}),P.jsx("p",{className:"text-white/70 mb-4",children:t.description}),P.jsx(mF,{direction:"row",spacing:1,flexWrap:"wrap",gap:1,mt:2,children:t.tools.map(i=>P.jsx(rC,{label:i,color:"primary",variant:"outlined"},i))})]})},t.title))})]})})},PF=[{icon:vc,label:"Email",value:"goswamirushi39@gmail.com",link:"mailto:goswamirushi39@gmail.com"},{icon:th,label:"Phone",value:"8140226399",link:"tel:8140226399"},{icon:SO,label:"LinkedIn",value:"linkedin.com/in/rushigoswami",link:"https://linkedin.com/in/rushigoswami"},{icon:wO,label:"GitHub",value:"github.com/rushigoswami",link:"https://github.com/rushigoswami"}];function TF(){return P.jsxs("section",{id:"contact",className:"relative py-20",children:[P.jsx("div",{className:"absolute inset-0 bg-black",children:P.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),P.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[P.jsx(ke.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Get in Touch"}),P.jsx("div",{className:"max-w-4xl mx-auto",children:P.jsx("div",{className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:P.jsx(ke.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:PF.map((e,t)=>P.jsxs(ke.a,{href:e.link,target:e.icon!==th&&e.icon!==vc?"_blank":void 0,rel:e.icon!==th&&e.icon!==vc?"noopener noreferrer":void 0,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/[0.07] transition-all group flex items-center gap-4",children:[P.jsx("div",{className:"p-3 rounded-full bg-white/10 group-hover:bg-white/20 transition-colors",children:P.jsx(e.icon,{size:24,className:"text-white/80"})}),P.jsxs("div",{children:[P.jsx("h3",{className:"text-lg font-semibold text-white/90 mb-1",children:e.label}),P.jsx("p",{className:"text-white/70 group-hover:text-white/90 transition-colors",children:e.value})]})]},e.label))})})})]})]})}function MF(){const[e,t]=k.useState("dark"),n=k.useMemo(()=>hu({palette:{mode:e,primary:{main:e==="dark"?"#7C3AED":"#6D28D9",light:e==="dark"?"#8B5CF6":"#7C3AED",dark:"#5B21B6"},secondary:{main:e==="dark"?"#EC4899":"#DB2777"},background:{default:e==="dark"?"#0F172A":"#F8FAFC",paper:e==="dark"?"#1E293B":"#FFFFFF"},text:{primary:e==="dark"?"#F1F5F9":"#1E293B",secondary:e==="dark"?"#CBD5E1":"#475569"}},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:800},h2:{fontWeight:700},h3:{fontWeight:700},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600}},components:{MuiContainer:{styleOverrides:{root:{"@media (min-width: 1200px)":{maxWidth:"1400px"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}}}}),[e]),i=()=>{t(r=>r==="light"?"dark":"light")};return P.jsxs(ME,{theme:n,children:[P.jsx(LE,{}),P.jsx(KE,{children:P.jsx(So,{sx:{width:"100%",margin:0,padding:0,overflow:"hidden",minHeight:"100vh",bgcolor:"background.default",color:"text.primary",position:"relative","&::before":{content:'""',position:"fixed",top:0,left:0,right:0,bottom:0,background:e==="dark"?"radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(15, 23, 42, 0) 70%)":"radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, rgba(248, 250, 252, 0) 70%)",pointerEvents:"none",zIndex:1}},children:P.jsxs(So,{sx:{position:"relative",zIndex:2},children:[P.jsx(PO,{colorMode:{mode:e,toggleColorMode:i}}),P.jsx(f$,{}),P.jsx(d$,{}),P.jsx(CF,{}),P.jsx(kF,{}),P.jsx(TF,{})]})})})]})}U1(document.getElementById("root")).render(P.jsx(k.StrictMode,{children:P.jsx(MF,{})})); diff --git a/dist/assets/index-h8b-sQvm.js b/dist/assets/index-h8b-sQvm.js new file mode 100644 index 0000000..3c40d67 --- /dev/null +++ b/dist/assets/index-h8b-sQvm.js @@ -0,0 +1,231 @@ +function rP(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function iP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ei(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ix={exports:{}},yu={},Lx={exports:{}},K={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ja=Symbol.for("react.element"),oP=Symbol.for("react.portal"),sP=Symbol.for("react.fragment"),aP=Symbol.for("react.strict_mode"),lP=Symbol.for("react.profiler"),cP=Symbol.for("react.provider"),uP=Symbol.for("react.context"),fP=Symbol.for("react.forward_ref"),dP=Symbol.for("react.suspense"),hP=Symbol.for("react.memo"),pP=Symbol.for("react.lazy"),Jg=Symbol.iterator;function mP(e){return e===null||typeof e!="object"?null:(e=Jg&&e[Jg]||e["@@iterator"],typeof e=="function"?e:null)}var Dx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fx=Object.assign,jx={};function ys(e,t,n){this.props=e,this.context=t,this.refs=jx,this.updater=n||Dx}ys.prototype.isReactComponent={};ys.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ys.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bx(){}Bx.prototype=ys.prototype;function Ip(e,t,n){this.props=e,this.context=t,this.refs=jx,this.updater=n||Dx}var Lp=Ip.prototype=new Bx;Lp.constructor=Ip;Fx(Lp,ys.prototype);Lp.isPureReactComponent=!0;var ey=Array.isArray,Nx=Object.prototype.hasOwnProperty,Dp={current:null},Vx={key:!0,ref:!0,__self:!0,__source:!0};function Wx(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Nx.call(t,r)&&!Vx.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,Fe=A[Q];if(0>>1;Qi(Cr,V))vni(Qi,Cr)?(A[Q]=Qi,A[vn]=V,Q=vn):(A[Q]=Cr,A[gt]=V,Q=gt);else if(vni(Qi,V))A[Q]=Qi,A[vn]=V,Q=vn;else break e}}return D}function i(A,D){var V=A.sortIndex-D.sortIndex;return V!==0?V:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,d=3,p=!1,g=!1,h=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(A){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=A)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function w(A){if(h=!1,v(A),!g)if(n(l)!==null)g=!0,Z(S);else{var D=n(c);D!==null&&Y(w,D.startTime-A)}}function S(A,D){g=!1,h&&(h=!1,m(_),_=-1),p=!0;var V=d;try{for(v(D),f=n(l);f!==null&&(!(f.expirationTime>D)||A&&!$());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,d=f.priorityLevel;var Fe=Q(f.expirationTime<=D);D=e.unstable_now(),typeof Fe=="function"?f.callback=Fe:f===n(l)&&r(l),v(D)}else r(l);f=n(l)}if(f!==null)var Yi=!0;else{var gt=n(c);gt!==null&&Y(w,gt.startTime-D),Yi=!1}return Yi}finally{f=null,d=V,p=!1}}var k=!1,C=null,_=-1,R=5,x=-1;function $(){return!(e.unstable_now()-xA||125Q?(A.sortIndex=V,t(c,A),n(l)===null&&A===n(c)&&(h?(m(_),_=-1):h=!0,Y(w,V-Q))):(A.sortIndex=Fe,t(l,A),g||p||(g=!0,Z(S))),A},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(A){var D=d;return function(){var V=d;d=D;try{return A.apply(this,arguments)}finally{d=V}}}})(qx);Kx.exports=qx;var TP=Kx.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _P=P,Wt=TP;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=Object.prototype.hasOwnProperty,$P=/^[: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]*$/,ny={},ry={};function MP(e){return Xd.call(ry,e)?!0:Xd.call(ny,e)?!1:$P.test(e)?ry[e]=!0:(ny[e]=!0,!1)}function EP(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function RP(e,t,n,r){if(t===null||typeof t>"u"||EP(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function St(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new St(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new St(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new St(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new St(e,2,!1,e,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(e){nt[e]=new St(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new St(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new St(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new St(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new St(e,5,!1,e.toLowerCase(),null,!1,!1)});var jp=/[\-:]([a-z])/g;function Bp(e){return e[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(e){var t=e.replace(jp,Bp);nt[t]=new St(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(jp,Bp);nt[t]=new St(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(jp,Bp);nt[t]=new St(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new St(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new St("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new St(e,1,!1,e.toLowerCase(),null,!0,!0)});function Np(e,t,n,r){var i=nt.hasOwnProperty(t)?nt[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Bf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qs(e):""}function AP(e){switch(e.tag){case 5:return qs(e.type);case 16:return qs("Lazy");case 13:return qs("Suspense");case 19:return qs("SuspenseList");case 0:case 2:case 15:return e=Nf(e.type,!1),e;case 11:return e=Nf(e.type.render,!1),e;case 1:return e=Nf(e.type,!0),e;default:return""}}function th(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case po:return"Fragment";case ho:return"Portal";case Zd:return"Profiler";case Vp:return"StrictMode";case Jd:return"Suspense";case eh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xx:return(e.displayName||"Context")+".Consumer";case Qx:return(e._context.displayName||"Context")+".Provider";case Wp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Up:return t=e.displayName||null,t!==null?t:th(e.type)||"Memo";case Mr:t=e._payload,e=e._init;try{return th(e(t))}catch{}}return null}function OP(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return th(t);case 8:return t===Vp?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zP(e){var t=Jx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=zP(e))}function eb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _c(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nh(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tb(e,t){t=t.checked,t!=null&&Np(e,"checked",t,!1)}function rh(e,t){tb(e,t);var n=Gr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ih(e,t.type,n):t.hasOwnProperty("defaultValue")&&ih(e,t.type,Gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ih(e,t,n){(t!=="number"||_c(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ys=Array.isArray;function Oo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=wl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var na={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},IP=["Webkit","ms","Moz","O"];Object.keys(na).forEach(function(e){IP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),na[t]=na[e]})});function ob(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||na.hasOwnProperty(e)&&na[e]?(""+t).trim():t+"px"}function sb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ob(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var LP=ke({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 ah(e,t){if(t){if(LP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function lh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 ch=null;function Hp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uh=null,zo=null,Io=null;function cy(e){if(e=nl(e)){if(typeof uh!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Su(t),uh(e.stateNode,e.type,t))}}function ab(e){zo?Io?Io.push(e):Io=[e]:zo=e}function lb(){if(zo){var e=zo,t=Io;if(Io=zo=null,cy(e),t)for(e=0;e>>=0,e===0?32:31-(KP(e)/qP|0)|0}var Sl=64,kl=4194304;function Qs(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Qs(a):(o&=s,o!==0&&(r=Qs(o)))}else s=n&~i,s!==0?r=Qs(s):o!==0&&(r=Qs(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function el(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tn(t),e[t]=n}function ZP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ia),vy=" ",xy=!1;function $b(e,t){switch(e){case"keyup":return TT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function $T(e,t){switch(e){case"compositionend":return Mb(t);case"keypress":return t.which!==32?null:(xy=!0,vy);case"textInput":return e=t.data,e===vy&&xy?null:e;default:return null}}function MT(e,t){if(mo)return e==="compositionend"||!Jp&&$b(e,t)?(e=Tb(),rc=Qp=zr=null,mo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ky(n)}}function Ob(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ob(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zb(){for(var e=window,t=_c();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_c(e.document)}return t}function em(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function FT(e){var t=zb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ob(n.ownerDocument.documentElement,n)){if(r!==null&&em(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Cy(n,o);var s=Cy(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,go=null,gh=null,sa=null,yh=!1;function Py(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yh||go==null||go!==_c(r)||(r=go,"selectionStart"in r&&em(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sa&&Pa(sa,r)||(sa=r,r=zc(gh,"onSelect"),0xo||(e.current=kh[xo],kh[xo]=null,xo--)}function fe(e,t){xo++,kh[xo]=e.current,e.current=t}var Kr={},ht=ni(Kr),Tt=ni(!1),Oi=Kr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return Kr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _t(e){return e=e.childContextTypes,e!=null}function Lc(){pe(Tt),pe(ht)}function Ay(e,t,n){if(ht.current!==Kr)throw Error(O(168));fe(ht,t),fe(Tt,n)}function Wb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,OP(e)||"Unknown",i));return ke({},n,r)}function Dc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kr,Oi=ht.current,fe(ht,e),fe(Tt,Tt.current),!0}function Oy(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Wb(e,t,Oi),r.__reactInternalMemoizedMergedChildContext=e,pe(Tt),pe(ht),fe(ht,e)):pe(Tt),fe(Tt,n)}var ir=null,ku=!1,td=!1;function Ub(e){ir===null?ir=[e]:ir.push(e)}function QT(e){ku=!0,Ub(e)}function ri(){if(!td&&ir!==null){td=!0;var e=0,t=oe;try{var n=ir;for(oe=1;e>=s,i-=s,ar=1<<32-Tn(t)+i|n<_?(R=C,C=null):R=C.sibling;var x=d(m,C,v[_],w);if(x===null){C===null&&(C=R);break}e&&C&&x.alternate===null&&t(m,C),y=o(x,y,_),k===null?S=x:k.sibling=x,k=x,C=R}if(_===v.length)return n(m,C),xe&&hi(m,_),S;if(C===null){for(;__?(R=C,C=null):R=C.sibling;var $=d(m,C,x.value,w);if($===null){C===null&&(C=R);break}e&&C&&$.alternate===null&&t(m,C),y=o($,y,_),k===null?S=$:k.sibling=$,k=$,C=R}if(x.done)return n(m,C),xe&&hi(m,_),S;if(C===null){for(;!x.done;_++,x=v.next())x=f(m,x.value,w),x!==null&&(y=o(x,y,_),k===null?S=x:k.sibling=x,k=x);return xe&&hi(m,_),S}for(C=r(m,C);!x.done;_++,x=v.next())x=p(C,m,_,x.value,w),x!==null&&(e&&x.alternate!==null&&C.delete(x.key===null?_:x.key),y=o(x,y,_),k===null?S=x:k.sibling=x,k=x);return e&&C.forEach(function(E){return t(m,E)}),xe&&hi(m,_),S}function b(m,y,v,w){if(typeof v=="object"&&v!==null&&v.type===po&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case xl:e:{for(var S=v.key,k=y;k!==null;){if(k.key===S){if(S=v.type,S===po){if(k.tag===7){n(m,k.sibling),y=i(k,v.props.children),y.return=m,m=y;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Mr&&Ly(S)===k.type){n(m,k.sibling),y=i(k,v.props),y.ref=zs(m,k,v),y.return=m,m=y;break e}n(m,k);break}else t(m,k);k=k.sibling}v.type===po?(y=Mi(v.props.children,m.mode,w,v.key),y.return=m,m=y):(w=fc(v.type,v.key,v.props,null,m.mode,w),w.ref=zs(m,y,v),w.return=m,m=w)}return s(m);case ho:e:{for(k=v.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(m,y.sibling),y=i(y,v.children||[]),y.return=m,m=y;break e}else{n(m,y);break}else t(m,y);y=y.sibling}y=cd(v,m.mode,w),y.return=m,m=y}return s(m);case Mr:return k=v._init,b(m,y,k(v._payload),w)}if(Ys(v))return g(m,y,v,w);if(Ms(v))return h(m,y,v,w);El(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(m,y.sibling),y=i(y,v),y.return=m,m=y):(n(m,y),y=ld(v,m.mode,w),y.return=m,m=y),s(m)):n(m,y)}return b}var es=qb(!0),Yb=qb(!1),Bc=ni(null),Nc=null,So=null,im=null;function om(){im=So=Nc=null}function sm(e){var t=Bc.current;pe(Bc),e._currentValue=t}function Th(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Do(e,t){Nc=e,im=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pt=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(im!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(Nc===null)throw Error(O(308));So=e,Nc.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var xi=null;function am(e){xi===null?xi=[e]:xi.push(e)}function Qb(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,am(t)):(n.next=i.next,i.next=n),t.interleaved=n,xr(e,r)}function xr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Er=!1;function lm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,xr(e,n)}return i=r.interleaved,i===null?(t.next=t,am(r)):(t.next=i.next,i.next=t),r.interleaved=t,xr(e,n)}function oc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kp(e,n)}}function Dy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vc(e,t,n,r){var i=e.updateQueue;Er=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,u=c=l=null,a=o;do{var d=a.lane,p=a.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,h=a;switch(d=t,p=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){f=g.call(p,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,d=typeof g=="function"?g.call(p,f,d):g,d==null)break e;f=ke({},f,d);break e;case 2:Er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=p,l=f):u=u.next=p,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Li|=s,e.lanes=s,e.memoizedState=f}}function Fy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=rd.transition;rd.transition={};try{e(!1),t()}finally{oe=n,rd.transition=r}}function pw(){return un().memoizedState}function e_(e,t,n){var r=Wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mw(e))gw(t,n);else if(n=Qb(e,t,n,r),n!==null){var i=xt();_n(n,e,r,i),yw(n,t,r)}}function t_(e,t,n){var r=Wr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mw(e))gw(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,En(a,s)){var l=t.interleaved;l===null?(i.next=i,am(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Qb(e,t,i,r),n!==null&&(i=xt(),_n(n,e,r,i),yw(n,t,r))}}function mw(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function gw(e,t){aa=Uc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kp(e,n)}}var Hc={readContext:cn,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},n_={readContext:cn,useCallback:function(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:By,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ac(4194308,4,cw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ac(4194308,4,e,t)},useInsertionEffect:function(e,t){return ac(4,2,e,t)},useMemo:function(e,t){var n=Ln();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ln();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=e_.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Ln();return e={current:e},t.memoizedState=e},useState:jy,useDebugValue:gm,useDeferredValue:function(e){return Ln().memoizedState=e},useTransition:function(){var e=jy(!1),t=e[0];return e=JT.bind(null,e[1]),Ln().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Ln();if(xe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ke===null)throw Error(O(349));Ii&30||tw(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,By(rw.bind(null,r,o,e),[e]),r.flags|=2048,Oa(9,nw.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ln(),t=Ke.identifierPrefix;if(xe){var n=lr,r=ar;n=(r&~(1<<32-Tn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ra++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Wn]=t,e[$a]=r,_w(e,t,!1,!1),t.stateNode=e;e:{switch(s=lh(n,r),n){case"dialog":he("cancel",e),he("close",e),i=r;break;case"iframe":case"object":case"embed":he("load",e),i=r;break;case"video":case"audio":for(i=0;irs&&(t.flags|=128,r=!0,Is(o,!1),t.lanes=4194304)}else{if(!r)if(e=Wc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Is(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!xe)return it(t),null}else 2*Oe()-o.renderingStartTime>rs&&n!==1073741824&&(t.flags|=128,r=!0,Is(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Oe(),t.sibling=null,n=be.current,fe(be,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return Sm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ot&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function u_(e,t){switch(nm(t),t.tag){case 1:return _t(t.type)&&Lc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ts(),pe(Tt),pe(ht),fm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return um(t),null;case 13:if(pe(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(be),null;case 4:return ts(),null;case 10:return sm(t.type._context),null;case 22:case 23:return Sm(),null;case 24:return null;default:return null}}var Al=!1,lt=!1,f_=typeof WeakSet=="function"?WeakSet:Set,j=null;function ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Ih(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Xy=!1;function d_(e,t){if(vh=Ac,e=zb(),em(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++c===i&&(a=s),d===o&&++u===r&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(xh={focusedElem:e,selectionRange:n},Ac=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,b=g.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:bn(t.type,h),b);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(w){Ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Xy,Xy=!1,g}function la(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ih(t,n,o)}i=i.next}while(i!==r)}}function Tu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ew(e){var t=e.alternate;t!==null&&(e.alternate=null,Ew(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wn],delete t[$a],delete t[Sh],delete t[qT],delete t[YT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rw(e){return e.tag===5||e.tag===3||e.tag===4}function Zy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Dh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ic));else if(r!==4&&(e=e.child,e!==null))for(Dh(e,t,n),e=e.sibling;e!==null;)Dh(e,t,n),e=e.sibling}function Fh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fh(e,t,n),e=e.sibling;e!==null;)Fh(e,t,n),e=e.sibling}var Qe=null,Sn=!1;function Pr(e,t,n){for(n=n.child;n!==null;)Aw(e,t,n),n=n.sibling}function Aw(e,t,n){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(vu,n)}catch{}switch(n.tag){case 5:lt||ko(n,t);case 6:var r=Qe,i=Sn;Qe=null,Pr(e,t,n),Qe=r,Sn=i,Qe!==null&&(Sn?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Sn?(e=Qe,n=n.stateNode,e.nodeType===8?ed(e.parentNode,n):e.nodeType===1&&ed(e,n),ka(e)):ed(Qe,n.stateNode));break;case 4:r=Qe,i=Sn,Qe=n.stateNode.containerInfo,Sn=!0,Pr(e,t,n),Qe=r,Sn=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ih(n,t,s),i=i.next}while(i!==r)}Pr(e,t,n);break;case 1:if(!lt&&(ko(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}Pr(e,t,n);break;case 21:Pr(e,t,n);break;case 22:n.mode&1?(lt=(r=lt)||n.memoizedState!==null,Pr(e,t,n),lt=r):Pr(e,t,n);break;default:Pr(e,t,n)}}function Jy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new f_),t.forEach(function(r){var i=w_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p_(r/1960))-r,10e?16:e,Ir===null)var r=!1;else{if(e=Ir,Ir=null,qc=0,X&6)throw Error(O(331));var i=X;for(X|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lOe()-bm?$i(e,0):xm|=n),$t(e,t)}function Bw(e,t){t===0&&(e.mode&1?(t=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):t=1);var n=xt();e=xr(e,t),e!==null&&(el(e,t,n),$t(e,n))}function b_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bw(e,n)}function w_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Bw(e,n)}var Nw;Nw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)Pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pt=!1,l_(e,t,n);Pt=!!(e.flags&131072)}else Pt=!1,xe&&t.flags&1048576&&Hb(t,jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lc(e,t),e=t.pendingProps;var i=Zo(t,ht.current);Do(t,n),i=hm(null,t,r,e,i,n);var o=pm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(r)?(o=!0,Dc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lm(t),i.updater=Pu,t.stateNode=i,i._reactInternals=t,$h(t,r,e,n),t=Rh(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&tm(t),yt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=k_(r),e=bn(r,e),i){case 0:t=Eh(null,t,r,e,n);break e;case 1:t=qy(null,t,r,e,n);break e;case 11:t=Gy(null,t,r,e,n);break e;case 14:t=Ky(null,t,r,bn(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),Eh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),qy(e,t,r,i,n);case 3:e:{if(Cw(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Xb(e,t),Vc(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ns(Error(O(423)),t),t=Yy(e,t,r,n,i);break e}else if(r!==i){i=ns(Error(O(424)),t),t=Yy(e,t,r,n,i);break e}else for(Lt=Br(t.stateNode.containerInfo.firstChild),Ft=t,xe=!0,kn=null,n=Yb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jo(),r===i){t=br(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return Zb(t),e===null&&Ph(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,bh(r,i)?s=null:o!==null&&bh(r,o)&&(t.flags|=32),kw(e,t),yt(e,t,s,n),t.child;case 6:return e===null&&Ph(t),null;case 13:return Pw(e,t,n);case 4:return cm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=es(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),Gy(e,t,r,i,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fe(Bc,r._currentValue),r._currentValue=s,o!==null)if(En(o.value,s)){if(o.children===i.children&&!Tt.current){t=br(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=fr(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Th(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(O(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Th(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}yt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Do(t,n),i=cn(i),r=r(i),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,i=bn(r,t.pendingProps),i=bn(r.type,i),Ky(e,t,r,i,n);case 15:return ww(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),lc(e,t),t.tag=1,_t(r)?(e=!0,Dc(t)):e=!1,Do(t,n),vw(t,r,i),$h(t,r,i,n),Rh(null,t,r,!0,e,n);case 19:return Tw(e,t,n);case 22:return Sw(e,t,n)}throw Error(O(156,t.tag))};function Vw(e,t){return mb(e,t)}function S_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,n,r){return new S_(e,t,n,r)}function Cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k_(e){if(typeof e=="function")return Cm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wp)return 11;if(e===Up)return 14}return 2}function Ur(e,t){var n=e.alternate;return n===null?(n=sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fc(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Cm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case po:return Mi(n.children,i,o,t);case Vp:s=8,i|=8;break;case Zd:return e=sn(12,n,t,i|2),e.elementType=Zd,e.lanes=o,e;case Jd:return e=sn(13,n,t,i),e.elementType=Jd,e.lanes=o,e;case eh:return e=sn(19,n,t,i),e.elementType=eh,e.lanes=o,e;case Zx:return $u(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qx:s=10;break e;case Xx:s=9;break e;case Wp:s=11;break e;case Up:s=14;break e;case Mr:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=sn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=sn(7,e,r,t),e.lanes=n,e}function $u(e,t,n,r){return e=sn(22,e,r,t),e.elementType=Zx,e.lanes=n,e.stateNode={isHidden:!1},e}function ld(e,t,n){return e=sn(6,e,null,t),e.lanes=n,e}function cd(e,t,n){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function C_(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Pm(e,t,n,r,i,o,s,a,l){return e=new C_(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=sn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lm(o),e}function P_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gw)}catch(e){console.error(e)}}Gw(),Gx.exports=Ht;var E_=Gx.exports,Kw,a0=E_;Kw=a0.createRoot,a0.hydrateRoot;function Ia(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Je(bs,--Mt):0,os--,Be===10&&(os=1,zu--),Be}function jt(){return Be=Mt2||Da(Be)>3?"":" "}function q_(e,t){for(;--t&&jt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return il(e,dc()+(t<6&&Kn()==32&&jt()==32))}function Uh(e){for(;jt();)switch(Be){case e:return Mt;case 34:case 39:e!==34&&e!==39&&Uh(Be);break;case 40:e===41&&Uh(e);break;case 92:jt();break}return Mt}function Y_(e,t){for(;jt()&&e+Be!==57;)if(e+Be===84&&Kn()===47)break;return"/*"+il(t,Mt-1)+"*"+Ou(e===47?e:jt())}function Q_(e){for(;!Da(Kn());)jt();return il(e,Mt)}function X_(e){return eS(pc("",null,null,null,[""],e=Jw(e),0,[0],e))}function pc(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,g=0,h=1,b=1,m=1,y=0,v="",w=i,S=o,k=r,C=v;b;)switch(g=y,y=jt()){case 40:if(g!=108&&Je(C,f-1)==58){Wh(C+=re(hc(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=hc(y);break;case 9:case 10:case 13:case 32:C+=K_(g);break;case 92:C+=q_(dc()-1,7);continue;case 47:switch(Kn()){case 42:case 47:Il(Z_(Y_(jt(),dc()),t,n),l);break;default:C+="/"}break;case 123*h:a[c++]=jn(C)*m;case 125*h:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+u:m==-1&&(C=re(C,/\f/g,"")),p>0&&jn(C)-f&&Il(p>32?c0(C+";",r,n,f-1):c0(re(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(Il(k=l0(C,t,n,c,u,i,a,v,w=[],S=[],f),o),y===123)if(u===0)pc(C,t,k,k,w,o,f,a,S);else switch(d===99&&Je(C,3)===110?100:d){case 100:case 108:case 109:case 115:pc(e,k,k,r&&Il(l0(e,k,k,0,0,i,a,v,i,w=[],f),S),i,S,f,a,r?w:S);break;default:pc(C,k,k,k,[""],S,0,a,S)}}c=u=p=0,h=m=1,v=C="",f=s;break;case 58:f=1+jn(C),p=g;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&G_()==125)continue}switch(C+=Ou(y),y*h){case 38:m=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(jn(C)-1)*m,m=1;break;case 64:Kn()===45&&(C+=hc(jt())),d=Kn(),u=f=jn(v=C+=Q_(dc())),y++;break;case 45:g===45&&jn(C)==2&&(h=0)}}return o}function l0(e,t,n,r,i,o,s,a,l,c,u){for(var f=i-1,d=i===0?o:[""],p=Rm(d),g=0,h=0,b=0;g0?d[m]+" "+y:re(y,/&\f/g,d[m])))&&(l[b++]=v);return Iu(e,t,n,i===0?Mm:a,l,c,u)}function Z_(e,t,n){return Iu(e,t,n,Yw,Ou(H_()),La(e,2,-2),0)}function c0(e,t,n,r){return Iu(e,t,n,Em,La(e,0,r),La(e,r+1,-1),r)}function jo(e,t){for(var n="",r=Rm(e),i=0;i6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+Xc+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wh(e,"stretch")?tS(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,jn(e)-3-(~Wh(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Je(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return te+e+ot+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+ot+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+ot+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+ot+e+e}return e}var a5=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Em:t.return=tS(t.value,t.length);break;case Qw:return jo([Ds(t,{value:re(t.value,"@","@"+te)})],i);case Mm:if(t.length)return U_(t.props,function(o){switch(W_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jo([Ds(t,{props:[re(o,/:(read-\w+)/,":"+Xc+"$1")]})],i);case"::placeholder":return jo([Ds(t,{props:[re(o,/:(plac\w+)/,":"+te+"input-$1")]}),Ds(t,{props:[re(o,/:(plac\w+)/,":"+Xc+"$1")]}),Ds(t,{props:[re(o,/:(plac\w+)/,ot+"input-$1")]})],i)}return""})}},l5=[a5],nS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||l5,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),m=1;m=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var b5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w5=!1,S5=/[A-Z]|^ms/g,k5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cS=function(t){return t.charCodeAt(1)===45},f0=function(t){return t!=null&&typeof t!="boolean"},ud=qw(function(e){return cS(e)?e:e.replace(S5,"-$&").toLowerCase()}),d0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(k5,function(r,i,o){return Bn={name:i,styles:o,next:Bn},i})}return b5[t]!==1&&!cS(t)&&typeof n=="number"&&n!==0?n+"px":n},C5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fa(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Bn={name:i.name,styles:i.styles,next:Bn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Bn={name:s.name,styles:s.styles,next:Bn},s=s.next;var a=o.styles+";";return a}return P5(e,t,n)}case"function":{if(e!==void 0){var l=Bn,c=n(e);return Bn=l,Fa(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function P5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?E5:R5},y0=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},A5=!1,O5=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return aS(n,r,i),_5(function(){return lS(n,r,i)}),null},z5=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=y0(t,n,r),l=a||g0(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,p=1;pt(D5(i)?n:i):t;return T.jsx(M5,{styles:r})}function Lm(e,t){return Hh(e,t)}const gS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},F5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:mS,StyledEngineProvider:L5,ThemeContext:ol,css:pS,default:Lm,internal_processStyles:gS,keyframes:Gu},Symbol.toStringTag,{value:"Module"}));function or(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yS(e){if(!or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yS(e[n])}),t}function ln(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return or(e)&&or(t)&&Object.keys(t).forEach(i=>{or(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&or(e[i])?r[i]=ln(e[i],t[i],n):n.clone?r[i]=or(t[i])?yS(t[i]):t[i]:r[i]=t[i]}),r}const j5=Object.freeze(Object.defineProperty({__proto__:null,default:ln,isPlainObject:or},Symbol.toStringTag,{value:"Module"})),B5=["values","unit","step"],N5=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>z({},n,{[r.key]:r.val}),{})};function vS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ce(e,B5),o=N5(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-r/100}${n})`}function u(d){return s.indexOf(d)+1`@media (min-width:${Dm[e]}px)`};function Et(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||v0;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||v0;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||Dm).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function xS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function bS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function W5(e,...t){const n=xS(e),r=[n,...t].reduce((i,o)=>ln(i,o),{});return bS(Object.keys(n),r)}function U5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function Ei({values:e,breakpoints:t,base:n}){const r=n||U5(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function H(e){if(typeof e!="string")throw new Error(Ia(7));return e.charAt(0).toUpperCase()+e.slice(1)}const H5=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Zc(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ku(e,n)||r,t&&(i=t(i,r,e)),i}function Ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Ku(l,r)||{};return Et(s,a,f=>{let d=Zc(c,i,f);return f===d&&typeof f=="string"&&(d=Zc(c,i,`${t}${f==="default"?"":H(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function G5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const K5={m:"margin",p:"padding"},q5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},x0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y5=G5(e=>{if(e.length>2)if(x0[e])e=x0[e];else return[e];const[t,n]=e.split(""),r=K5[t],i=q5[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Fm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fm,...jm];function sl(e,t,n,r){var i;const o=(i=Ku(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function Bm(e){return sl(e,"spacing",8)}function Fi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Q5(e,t){return n=>e.reduce((r,i)=>(r[i]=Fi(t,n),r),{})}function X5(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Y5(n),o=Q5(i,r),s=e[n];return Et(e,s,o)}function wS(e,t){const n=Bm(e.theme);return Object.keys(e).map(r=>X5(e,t,r,n)).reduce(fa,{})}function Te(e){return wS(e,Fm)}Te.propTypes={};Te.filterProps=Fm;function _e(e){return wS(e,jm)}_e.propTypes={};_e.filterProps=jm;function Z5(e=8){if(e.mui)return e;const t=Bm({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function qu(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?fa(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function nn(e){return typeof e!="number"?e:`${e}px solid`}function pn(e,t){return Ie({prop:e,themeKey:"borders",transform:t})}const J5=pn("border",nn),e$=pn("borderTop",nn),t$=pn("borderRight",nn),n$=pn("borderBottom",nn),r$=pn("borderLeft",nn),i$=pn("borderColor"),o$=pn("borderTopColor"),s$=pn("borderRightColor"),a$=pn("borderBottomColor"),l$=pn("borderLeftColor"),c$=pn("outline",nn),u$=pn("outlineColor"),Yu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Fi(t,r)});return Et(e,e.borderRadius,n)}return null};Yu.propTypes={};Yu.filterProps=["borderRadius"];qu(J5,e$,t$,n$,r$,i$,o$,s$,a$,l$,Yu,c$,u$);const Qu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:Fi(t,r)});return Et(e,e.gap,n)}return null};Qu.propTypes={};Qu.filterProps=["gap"];const Xu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:Fi(t,r)});return Et(e,e.columnGap,n)}return null};Xu.propTypes={};Xu.filterProps=["columnGap"];const Zu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:Fi(t,r)});return Et(e,e.rowGap,n)}return null};Zu.propTypes={};Zu.filterProps=["rowGap"];const f$=Ie({prop:"gridColumn"}),d$=Ie({prop:"gridRow"}),h$=Ie({prop:"gridAutoFlow"}),p$=Ie({prop:"gridAutoColumns"}),m$=Ie({prop:"gridAutoRows"}),g$=Ie({prop:"gridTemplateColumns"}),y$=Ie({prop:"gridTemplateRows"}),v$=Ie({prop:"gridTemplateAreas"}),x$=Ie({prop:"gridArea"});qu(Qu,Xu,Zu,f$,d$,h$,p$,m$,g$,y$,v$,x$);function Bo(e,t){return t==="grey"?t:e}const b$=Ie({prop:"color",themeKey:"palette",transform:Bo}),w$=Ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bo}),S$=Ie({prop:"backgroundColor",themeKey:"palette",transform:Bo});qu(b$,w$,S$);function zt(e){return e<=1&&e!==0?`${e*100}%`:e}const k$=Ie({prop:"width",transform:zt}),Nm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Dm[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:zt(n)}};return Et(e,e.maxWidth,t)}return null};Nm.filterProps=["maxWidth"];const C$=Ie({prop:"minWidth",transform:zt}),P$=Ie({prop:"height",transform:zt}),T$=Ie({prop:"maxHeight",transform:zt}),_$=Ie({prop:"minHeight",transform:zt});Ie({prop:"size",cssProperty:"width",transform:zt});Ie({prop:"size",cssProperty:"height",transform:zt});const $$=Ie({prop:"boxSizing"});qu(k$,Nm,C$,P$,T$,_$,$$);const al={border:{themeKey:"borders",transform:nn},borderTop:{themeKey:"borders",transform:nn},borderRight:{themeKey:"borders",transform:nn},borderBottom:{themeKey:"borders",transform:nn},borderLeft:{themeKey:"borders",transform:nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yu},color:{themeKey:"palette",transform:Bo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bo},backgroundColor:{themeKey:"palette",transform:Bo},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qu},rowGap:{style:Zu},columnGap:{style:Xu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zt},maxWidth:{style:Nm},minWidth:{transform:zt},height:{transform:zt},maxHeight:{transform:zt},minHeight:{transform:zt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function M$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function E$(e,t){return typeof e=="function"?e(t):e}function SS(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=Ku(i,c)||{};return f?f(s):Et(s,r,g=>{let h=Zc(d,u,g);return g===h&&typeof g=="string"&&(h=Zc(d,u,`${n}${g==="default"?"":H(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:al;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=xS(o.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(p=>{const g=E$(c[p],o);if(g!=null)if(typeof g=="object")if(s[p])d=fa(d,e(p,g,o,s));else{const h=Et({theme:o},g,b=>({[p]:b}));M$(h,g)?d[p]=t({sx:g,theme:o}):d=fa(d,h)}else d=fa(d,e(p,g,o,s))}),bS(f,d)}return Array.isArray(i)?i.map(a):a(i)}return t}const ws=SS();ws.filterProps=["sx"];function kS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const R$=["breakpoints","palette","spacing","shape"];function Ss(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Ce(e,R$),a=vS(n),l=Z5(i);let c=ln({breakpoints:a,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:l,shape:z({},V5,o)},s);return c.applyStyles=kS,c=t.reduce((u,f)=>ln(u,f),c),c.unstable_sxConfig=z({},al,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return ws({sx:f,theme:this})},c}const A$=Object.freeze(Object.defineProperty({__proto__:null,default:Ss,private_createBreakpoints:vS,unstable_applyStyles:kS},Symbol.toStringTag,{value:"Module"}));function O$(e){return Object.keys(e).length===0}function Vm(e=null){const t=P.useContext(ol);return!t||O$(t)?e:t}const z$=Ss();function Ju(e=z$){return Vm(e)}function I$({styles:e,themeId:t,defaultTheme:n={}}){const r=Ju(n),i=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(mS,{styles:i})}const L$=["sx"],D$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:al;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function ll(e){const{sx:t}=e,n=Ce(e,L$),{systemProps:r,otherProps:i}=D$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return or(a)?z({},r,a):r}:o=z({},r,t),z({},i,{sx:o})}const F$=Object.freeze(Object.defineProperty({__proto__:null,default:ws,extendSxProp:ll,unstable_createStyleFunctionSx:SS,unstable_defaultSxConfig:al},Symbol.toStringTag,{value:"Module"})),b0=e=>e,j$=()=>{let e=b0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=b0}}},CS=j$();function PS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(ws);return P.forwardRef(function(l,c){const u=Ju(n),f=ll(l),{className:d,component:p="div"}=f,g=Ce(f,B$);return T.jsx(o,z({as:p,ref:c,className:ve(d,i?i(r):r),theme:t&&u[t]||u},g))})}const V$={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function kr(e,t,n="Mui"){const r=V$[t];return r?`${n}-${r}`:`${CS.generate(e)}-${t}`}function ii(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=kr(e,i,n)}),r}var TS={exports:{}},ae={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Wm=Symbol.for("react.element"),Um=Symbol.for("react.portal"),ef=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),nf=Symbol.for("react.profiler"),rf=Symbol.for("react.provider"),of=Symbol.for("react.context"),W$=Symbol.for("react.server_context"),sf=Symbol.for("react.forward_ref"),af=Symbol.for("react.suspense"),lf=Symbol.for("react.suspense_list"),cf=Symbol.for("react.memo"),uf=Symbol.for("react.lazy"),U$=Symbol.for("react.offscreen"),_S;_S=Symbol.for("react.module.reference");function mn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wm:switch(e=e.type,e){case ef:case nf:case tf:case af:case lf:return e;default:switch(e=e&&e.$$typeof,e){case W$:case of:case sf:case uf:case cf:case rf:return e;default:return t}}case Um:return t}}}ae.ContextConsumer=of;ae.ContextProvider=rf;ae.Element=Wm;ae.ForwardRef=sf;ae.Fragment=ef;ae.Lazy=uf;ae.Memo=cf;ae.Portal=Um;ae.Profiler=nf;ae.StrictMode=tf;ae.Suspense=af;ae.SuspenseList=lf;ae.isAsyncMode=function(){return!1};ae.isConcurrentMode=function(){return!1};ae.isContextConsumer=function(e){return mn(e)===of};ae.isContextProvider=function(e){return mn(e)===rf};ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wm};ae.isForwardRef=function(e){return mn(e)===sf};ae.isFragment=function(e){return mn(e)===ef};ae.isLazy=function(e){return mn(e)===uf};ae.isMemo=function(e){return mn(e)===cf};ae.isPortal=function(e){return mn(e)===Um};ae.isProfiler=function(e){return mn(e)===nf};ae.isStrictMode=function(e){return mn(e)===tf};ae.isSuspense=function(e){return mn(e)===af};ae.isSuspenseList=function(e){return mn(e)===lf};ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ef||e===nf||e===tf||e===af||e===lf||e===U$||typeof e=="object"&&e!==null&&(e.$$typeof===uf||e.$$typeof===cf||e.$$typeof===rf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===_S||e.getModuleId!==void 0)};ae.typeOf=mn;TS.exports=ae;var w0=TS.exports;const H$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $S(e){const t=`${e}`.match(H$);return t&&t[1]||""}function MS(e,t=""){return e.displayName||e.name||$S(e)||t}function S0(e,t,n){const r=MS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function G$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return MS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case w0.ForwardRef:return S0(e,e.render,"ForwardRef");case w0.Memo:return S0(e,e.type,"memo");default:return}}}const K$=Object.freeze(Object.defineProperty({__proto__:null,default:G$,getFunctionName:$S},Symbol.toStringTag,{value:"Module"})),q$=["ownerState"],Y$=["variants"],Q$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function X$(e){return Object.keys(e).length===0}function Z$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function dd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const J$=Ss(),eM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ll({defaultTheme:e,theme:t,themeId:n}){return X$(t)?e:t[n]||t}function tM(e){return e?(t,n)=>n[e]:null}function mc(e,t){let{ownerState:n}=t,r=Ce(t,q$);const i=typeof e=="function"?e(z({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>mc(o,z({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=Ce(i,Y$);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(z({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(z({ownerState:n},r,n)):l.style))}),a}return i}function nM(e={}){const{themeId:t,defaultTheme:n=J$,rootShouldForwardProp:r=dd,slotShouldForwardProp:i=dd}=e,o=s=>ws(z({},s,{theme:Ll(z({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{gS(s,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:d=tM(eM(c))}=a,p=Ce(a,Q$),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,h=f||!1;let b,m=dd;c==="Root"||c==="root"?m=r:c?m=i:Z$(s)&&(m=void 0);const y=Lm(s,z({shouldForwardProp:m,label:b},p)),v=S=>typeof S=="function"&&S.__emotion_real!==S||or(S)?k=>mc(S,z({},k,{theme:Ll({theme:k.theme,defaultTheme:n,themeId:t})})):S,w=(S,...k)=>{let C=v(S);const _=k?k.map(v):[];l&&d&&_.push($=>{const E=Ll(z({},$,{defaultTheme:n,themeId:t}));if(!E.components||!E.components[l]||!E.components[l].styleOverrides)return null;const F=E.components[l].styleOverrides,L={};return Object.entries(F).forEach(([G,Z])=>{L[G]=mc(Z,z({},$,{theme:E}))}),d($,L)}),l&&!g&&_.push($=>{var E;const F=Ll(z({},$,{defaultTheme:n,themeId:t})),L=F==null||(E=F.components)==null||(E=E[l])==null?void 0:E.variants;return mc({variants:L},z({},$,{theme:F}))}),h||_.push(o);const R=_.length-k.length;if(Array.isArray(S)&&R>0){const $=new Array(R).fill("");C=[...S,...$],C.raw=[...S.raw,...$]}const x=y(C,..._);return s.muiName&&(x.muiName=s.muiName),x};return y.withConfig&&(w.withConfig=y.withConfig),w}}const ES=nM();function Jc(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=z({},o),Object.keys(i).forEach(s=>{n[r][s]=Jc(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function RS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jc(t.components[n].defaultProps,r)}function AS({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ju(n);return r&&(i=i[r]||i),RS({theme:i,name:t,props:e})}const OS=typeof window<"u"?P.useLayoutEffect:P.useEffect;function rM(e,t,n,r,i){const[o,s]=P.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return OS(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),o}const zS=P.useSyncExternalStore;function iM(e,t,n,r,i){const o=P.useCallback(()=>t,[t]),s=P.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return o},[o,e,r,i,n]),[a,l]=P.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[o,n,e]);return zS(l,a,s)}function oM(e,t={}){const n=Vm(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=RS({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(zS!==void 0?iM:rM)(l,i,o,s,a)}function sM(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const aM=Object.freeze(Object.defineProperty({__proto__:null,default:sM},Symbol.toStringTag,{value:"Module"}));function lM(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Dl(e){const t=P.useRef(e);return OS(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function Kh(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{lM(n,t)})},e)}const k0={};function cM(e,t){const n=P.useRef(k0);return n.current===k0&&(n.current=e(t)),n}const uM=[];function fM(e){P.useEffect(e,uM)}class ff{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ff}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function dM(){const e=cM(ff.create).current;return fM(e.disposeEffect),e}let df=!0,qh=!1;const hM=new ff,pM={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mM(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&pM[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gM(e){e.metaKey||e.altKey||e.ctrlKey||(df=!0)}function hd(){df=!1}function yM(){this.visibilityState==="hidden"&&qh&&(df=!0)}function vM(e){e.addEventListener("keydown",gM,!0),e.addEventListener("mousedown",hd,!0),e.addEventListener("pointerdown",hd,!0),e.addEventListener("touchstart",hd,!0),e.addEventListener("visibilitychange",yM,!0)}function xM(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return df||mM(t)}function bM(){const e=P.useCallback(i=>{i!=null&&vM(i.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(qh=!0,hM.start(100,()=>{qh=!1}),t.current=!1,!0):!1}function r(i){return xM(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function oi(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const IS=P.createContext(null);function LS(){return P.useContext(IS)}const wM=typeof Symbol=="function"&&Symbol.for,SM=wM?Symbol.for("mui.nested"):"__THEME_NESTED__";function kM(e,t){return typeof t=="function"?t(e):z({},e,t)}function CM(e){const{children:t,theme:n}=e,r=LS(),i=P.useMemo(()=>{const o=r===null?n:kM(r,n);return o!=null&&(o[SM]=r!==null),o},[n,r]);return T.jsx(IS.Provider,{value:i,children:t})}const PM=["value"],TM=P.createContext();function _M(e){let{value:t}=e,n=Ce(e,PM);return T.jsx(TM.Provider,z({value:t??!0},n))}const DS=P.createContext(void 0);function $M({value:e,children:t}){return T.jsx(DS.Provider,{value:e,children:t})}function MM(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Jc(i.defaultProps,r):!i.styleOverrides&&!i.variants?Jc(i,r):r}function EM({props:e,name:t}){const n=P.useContext(DS);return MM({props:e,name:t,theme:{components:n}})}const C0={};function P0(e,t,n,r=!1){return P.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?z({},t,{[e]:o}):o;return r?()=>s:s}return e?z({},t,{[e]:n}):z({},t,n)},[e,t,n,r])}function RM(e){const{children:t,theme:n,themeId:r}=e,i=Vm(C0),o=LS()||C0,s=P0(r,i,n),a=P0(r,o,n,!0),l=s.direction==="rtl";return T.jsx(CM,{theme:a,children:T.jsx(ol.Provider,{value:s,children:T.jsx(_M,{value:l,children:T.jsx($M,{value:s==null?void 0:s.components,children:t})})})})}const AM=["className","component","disableGutters","fixed","maxWidth","classes"],OM=Ss(),zM=ES("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${H(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),IM=e=>AS({props:e,name:"MuiContainer",defaultTheme:OM}),LM=(e,t)=>{const n=l=>kr(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${H(String(s))}`,i&&"fixed",o&&"disableGutters"]};return oi(a,n,r)};function DM(e={}){const{createStyledComponent:t=zM,useThemeProps:n=IM,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:a})=>z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>z({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return P.forwardRef(function(a,l){const c=n(a),{className:u,component:f="div",disableGutters:d=!1,fixed:p=!1,maxWidth:g="lg"}=c,h=Ce(c,AM),b=z({},c,{component:f,disableGutters:d,fixed:p,maxWidth:g}),m=LM(b,r);return T.jsx(i,z({as:f,ownerState:b,className:ve(m.root,u),ref:l},h))})}const FM=["component","direction","spacing","divider","children","className","useFlexGap"],jM=Ss(),BM=ES("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function NM(e){return AS({props:e,name:"MuiStack",defaultTheme:jM})}function VM(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UM=({ownerState:e,theme:t})=>{let n=z({display:"flex",flexDirection:"column"},Et({theme:t},Ei({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Bm(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=Ei({values:e.direction,base:i}),s=Ei({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const d=c>0?o[u[c-1]]:"column";o[l]=d}}),n=ln(n,Et({theme:t},s,(l,c)=>e.useFlexGap?{gap:Fi(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${WM(c?o[c]:e.direction)}`]:Fi(r,l)}}))}return n=W5(t.breakpoints,n),n};function HM(e={}){const{createStyledComponent:t=BM,useThemeProps:n=NM,componentName:r="MuiStack"}=e,i=()=>oi({root:["root"]},l=>kr(r,l),{}),o=t(UM);return P.forwardRef(function(l,c){const u=n(l),f=ll(u),{component:d="div",direction:p="column",spacing:g=0,divider:h,children:b,className:m,useFlexGap:y=!1}=f,v=Ce(f,FM),w={direction:p,spacing:g,useFlexGap:y},S=i();return T.jsx(o,z({as:d,ownerState:w,ref:c,className:ve(S.root,m)},v,{children:h?VM(b,h):b}))})}function GM(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Le={},FS={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(FS);var jS=FS.exports;const KM=ei(R_),qM=ei(aM);var BS=jS;Object.defineProperty(Le,"__esModule",{value:!0});var Qt=Le.alpha=US;Le.blend=aE;Le.colorChannel=void 0;var YM=Le.darken=Gm;Le.decomposeColor=fn;Le.emphasize=HS;var QM=Le.getContrastRatio=nE;Le.getLuminance=eu;Le.hexToRgb=NS;Le.hslToRgb=WS;var XM=Le.lighten=Km;Le.private_safeAlpha=rE;Le.private_safeColorChannel=void 0;Le.private_safeDarken=iE;Le.private_safeEmphasize=sE;Le.private_safeLighten=oE;Le.recomposeColor=ks;Le.rgbToHex=tE;var T0=BS(KM),ZM=BS(qM);function Hm(e,t=0,n=1){return(0,ZM.default)(e,t,n)}function NS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function JM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function fn(e){if(e.type)return e;if(e.charAt(0)==="#")return fn(NS(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,T0.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,T0.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const VS=e=>{const t=fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Le.colorChannel=VS;const eE=(e,t)=>{try{return VS(e)}catch{return e}};Le.private_safeColorChannel=eE;function ks(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function tE(e){if(e.indexOf("#")===0)return e;const{values:t}=fn(e);return`#${t.map((n,r)=>JM(r===3?Math.round(255*n):n)).join("")}`}function WS(e){e=fn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),ks({type:a,values:l})}function eu(e){e=fn(e);let t=e.type==="hsl"||e.type==="hsla"?fn(WS(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nE(e,t){const n=eu(e),r=eu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function US(e,t){return e=fn(e),t=Hm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ks(e)}function rE(e,t,n){try{return US(e,t)}catch{return e}}function Gm(e,t){if(e=fn(e),t=Hm(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ks(e)}function iE(e,t,n){try{return Gm(e,t)}catch{return e}}function Km(e,t){if(e=fn(e),t=Hm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ks(e)}function oE(e,t,n){try{return Km(e,t)}catch{return e}}function HS(e,t=.15){return eu(e)>.5?Gm(e,t):Km(e,t)}function sE(e,t,n){try{return HS(e,t)}catch{return e}}function aE(e,t,n,r=1){const i=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),o=fn(e),s=fn(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return ks({type:"rgb",values:a})}const ja={black:"#000",white:"#fff"},lE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Zi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ji={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fs={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},to={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},no={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},cE=["mode","contrastThreshold","tonalOffset"],_0={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ja.white,default:ja.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},pd={text:{primary:ja.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ja.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $0(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=XM(e.main,i):t==="dark"&&(e.dark=YM(e.main,o)))}function uE(e="light"){return e==="dark"?{main:eo[200],light:eo[50],dark:eo[400]}:{main:eo[700],light:eo[400],dark:eo[800]}}function fE(e="light"){return e==="dark"?{main:Zi[200],light:Zi[50],dark:Zi[400]}:{main:Zi[500],light:Zi[300],dark:Zi[700]}}function dE(e="light"){return e==="dark"?{main:Ji[500],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[400],dark:Ji[800]}}function hE(e="light"){return e==="dark"?{main:to[400],light:to[300],dark:to[700]}:{main:to[700],light:to[500],dark:to[900]}}function pE(e="light"){return e==="dark"?{main:no[400],light:no[300],dark:no[700]}:{main:no[800],light:no[500],dark:no[900]}}function mE(e="light"){return e==="dark"?{main:Fs[400],light:Fs[300],dark:Fs[700]}:{main:"#ed6c02",light:Fs[500],dark:Fs[900]}}function gE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ce(e,cE),o=e.primary||uE(t),s=e.secondary||fE(t),a=e.error||dE(t),l=e.info||hE(t),c=e.success||pE(t),u=e.warning||mE(t);function f(h){return QM(h,pd.text.primary)>=n?pd.text.primary:_0.text.primary}const d=({color:h,name:b,mainShade:m=500,lightShade:y=300,darkShade:v=700})=>{if(h=z({},h),!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Ia(11,b?` (${b})`:"",m));if(typeof h.main!="string")throw new Error(Ia(12,b?` (${b})`:"",JSON.stringify(h.main)));return $0(h,"light",y,r),$0(h,"dark",v,r),h.contrastText||(h.contrastText=f(h.main)),h},p={dark:pd,light:_0};return ln(z({common:z({},ja),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:lE,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},p[t]),i)}const yE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vE(e){return Math.round(e*1e5)/1e5}const M0={textTransform:"uppercase"},E0='"Roboto", "Helvetica", "Arial", sans-serif';function xE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=E0,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,d=Ce(n,yE),p=i/14,g=f||(m=>`${m/c*p}rem`),h=(m,y,v,w,S)=>z({fontFamily:r,fontWeight:m,fontSize:g(y),lineHeight:v},r===E0?{letterSpacing:`${vE(w/y)}em`}:{},S,u),b={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(s,48,1.167,0),h4:h(s,34,1.235,.25),h5:h(s,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(s,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(s,16,1.5,.15),body2:h(s,14,1.43,.15),button:h(a,14,1.75,.4,M0),caption:h(s,12,1.66,.4),overline:h(s,12,2.66,1,M0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln(z({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),d,{clone:!1})}const bE=.2,wE=.14,SE=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${SE})`].join(",")}const kE=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],CE=["duration","easing","delay"],PE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},TE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R0(e){return`${Math.round(e)}ms`}function _E(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function $E(e){const t=z({},PE,e.easing),n=z({},TE,e.duration);return z({getAutoHeightDuration:_E,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return Ce(o,CE),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:R0(s)} ${a} ${typeof l=="string"?l:R0(l)}`).join(",")}},e,{easing:t,duration:n})}const ME={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qm(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Ce(e,EE);if(e.vars)throw new Error(Ia(18));const a=gE(r),l=Ss(e);let c=ln(l,{mixins:GM(l.breakpoints,n),palette:a,shadows:kE.slice(),typography:xE(a,o),transitions:$E(i),zIndex:z({},ME)});return c=ln(c,s),c=t.reduce((u,f)=>ln(u,f),c),c.unstable_sxConfig=z({},al,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return ws({sx:f,theme:this})},c}const Ym=qm();function GS(){const e=Ju(Ym);return e[is]||e}var cl={},md={exports:{}},A0;function RE(){return A0||(A0=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(md)),md.exports}const AE=ei(F5),OE=ei(j5),zE=ei(H5),IE=ei(K$),LE=ei(A$),DE=ei(F$);var Cs=jS;Object.defineProperty(cl,"__esModule",{value:!0});var FE=cl.default=XE;cl.shouldForwardProp=gc;cl.systemDefaultTheme=void 0;var Zt=Cs(hS()),Yh=Cs(RE()),O0=HE(AE),jE=OE;Cs(zE);Cs(IE);var BE=Cs(LE),NE=Cs(DE);const VE=["ownerState"],WE=["variants"],UE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function KS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(KS=function(r){return r?n:t})(e)}function HE(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=KS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function GE(e){return Object.keys(e).length===0}function KE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qE=cl.systemDefaultTheme=(0,BE.default)(),YE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Fl({defaultTheme:e,theme:t,themeId:n}){return GE(t)?e:t[n]||t}function QE(e){return e?(t,n)=>n[e]:null}function yc(e,t){let{ownerState:n}=t,r=(0,Yh.default)(t,VE);const i=typeof e=="function"?e((0,Zt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>yc(o,(0,Zt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,Yh.default)(i,WE);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Zt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Zt.default)({ownerState:n},r,n)):l.style))}),a}return i}function XE(e={}){const{themeId:t,defaultTheme:n=qE,rootShouldForwardProp:r=gc,slotShouldForwardProp:i=gc}=e,o=s=>(0,NE.default)((0,Zt.default)({},s,{theme:Fl((0,Zt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,O0.internal_processStyles)(s,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:d=QE(YE(c))}=a,p=(0,Yh.default)(a,UE),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,h=f||!1;let b,m=gc;c==="Root"||c==="root"?m=r:c?m=i:KE(s)&&(m=void 0);const y=(0,O0.default)(s,(0,Zt.default)({shouldForwardProp:m,label:b},p)),v=S=>typeof S=="function"&&S.__emotion_real!==S||(0,jE.isPlainObject)(S)?k=>yc(S,(0,Zt.default)({},k,{theme:Fl({theme:k.theme,defaultTheme:n,themeId:t})})):S,w=(S,...k)=>{let C=v(S);const _=k?k.map(v):[];l&&d&&_.push($=>{const E=Fl((0,Zt.default)({},$,{defaultTheme:n,themeId:t}));if(!E.components||!E.components[l]||!E.components[l].styleOverrides)return null;const F=E.components[l].styleOverrides,L={};return Object.entries(F).forEach(([G,Z])=>{L[G]=yc(Z,(0,Zt.default)({},$,{theme:E}))}),d($,L)}),l&&!g&&_.push($=>{var E;const F=Fl((0,Zt.default)({},$,{defaultTheme:n,themeId:t})),L=F==null||(E=F.components)==null||(E=E[l])==null?void 0:E.variants;return yc({variants:L},(0,Zt.default)({},$,{theme:F}))}),h||_.push(o);const R=_.length-k.length;if(Array.isArray(S)&&R>0){const $=new Array(R).fill("");C=[...S,...$],C.raw=[...S.raw,...$]}const x=y(C,..._);return s.muiName&&(x.muiName=s.muiName),x};return y.withConfig&&(w.withConfig=y.withConfig),w}}function ZE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const JE=e=>ZE(e)&&e!=="classes",An=FE({themeId:is,defaultTheme:Ym,rootShouldForwardProp:JE}),eR=["theme"];function tR(e){let{theme:t}=e,n=Ce(e,eR);const r=t[is];return T.jsx(RM,z({},n,{themeId:r?is:void 0,theme:r||t}))}const z0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Xn(e){return EM(e)}function nR(e){return T.jsx(I$,z({},e,{defaultTheme:Ym,themeId:is}))}const rR=(e,t)=>z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),iR=e=>z({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),oR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=z({html:rR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:z({margin:0},iR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function sR(e){const t=Xn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return T.jsxs(P.Fragment,{children:[T.jsx(nR,{styles:i=>oR(i,r)}),n]})}/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function lR(){return Math.random().toString(36).substr(2,8)}function L0(e,t){return{usr:e.state,key:e.key,idx:t}}function Qh(e,t,n,r){return n===void 0&&(n=null),tu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?QS(t):t,{state:n,key:t&&t.key||r||lR()})}function YS(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function QS(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cR(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=wi.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(tu({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function f(){a=wi.Pop;let b=u(),m=b==null?null:b-c;c=b,l&&l({action:a,location:h.location,delta:m})}function d(b,m){a=wi.Push;let y=Qh(h.location,b,m);c=u()+1;let v=L0(y,c),w=h.createHref(y);try{s.pushState(v,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}o&&l&&l({action:a,location:h.location,delta:1})}function p(b,m){a=wi.Replace;let y=Qh(h.location,b,m);c=u();let v=L0(y,c),w=h.createHref(y);s.replaceState(v,"",w),o&&l&&l({action:a,location:h.location,delta:0})}function g(b){let m=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof b=="string"?b:YS(b);return y=y.replace(/ $/,"%20"),qS(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let h={get action(){return a},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(I0,f),l=b,()=>{i.removeEventListener(I0,f),l=null}},createHref(b){return t(i,b)},createURL:g,encodeLocation(b){let m=g(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(b){return s.go(b)}};return h}var D0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(D0||(D0={}));function uR(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const XS=["post","put","patch","delete"];new Set(XS);const fR=["get",...XS];new Set(fR);/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;tpR(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function mR(e,t){e!=null&&e.v7_startTransition||j0("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&j0("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function gR(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wi.Pop,navigator:o,static:s=!1,future:a}=e;hR()&&qS(!1);let l=t.replace(/^\/*/,"/"),c=P.useMemo(()=>({basename:l,navigator:o,static:s,future:Xh({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=QS(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:g="default"}=r,h=P.useMemo(()=>{let b=uR(u,l);return b==null?null:{location:{pathname:b,search:f,hash:d,state:p,key:g},navigationType:i}},[l,u,f,d,p,g,i]);return h==null?null:P.createElement(dR.Provider,{value:c},P.createElement(ZS.Provider,{children:n,value:h}))}new Promise(()=>{});/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const yR="6";try{window.__reactRouterVersion=yR}catch{}const vR="startTransition",B0=ya[vR];function xR(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=aR({window:i,v5Compat:!0}));let s=o.current,[a,l]=P.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=P.useCallback(f=>{c&&B0?B0(()=>l(f)):l(f)},[l,c]);return P.useLayoutEffect(()=>s.listen(u),[s,u]),P.useEffect(()=>mR(r),[r]),P.createElement(gR,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var N0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(N0||(N0={}));var V0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(V0||(V0={}));function bR(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function hf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zh=e=>Array.isArray(e);function JS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qm(e,t,n,r){if(typeof t=="function"){const[i,o]=W0(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=W0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function pf(e,t,n){const r=e.getProps();return Qm(r,t,n!==void 0?n:r.custom,e)}const Xm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zm=["initial",...Xm],ul=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gi=new Set(ul),dr=e=>e*1e3,hr=e=>e/1e3,wR={type:"spring",stiffness:500,damping:25,restSpeed:10},SR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kR={type:"keyframes",duration:.8},CR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PR=(e,{keyframes:t})=>t.length>2?kR:Gi.has(e)?e.startsWith("scale")?SR(t[1]):wR:CR;function Jm(e,t){return e?e[t]||e.default||e:void 0}const TR={skipAnimations:!1,useManualTiming:!1},_R=e=>e!==null;function mf(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(_R),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ft=e=>e;function $R(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){o.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,f=!1)=>{const p=f&&r?t:n;return u&&o.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(c))}};return l}const jl=["read","resolveKeyframes","update","preRender","render","postRender"],MR=40;function ek(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=jl.reduce((m,y)=>(m[y]=$R(o),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,MR),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},g=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:jl.reduce((m,y)=>{const v=s[y];return m[y]=(w,S=!1,k=!1)=>(n||g(),v.schedule(w,S,k)),m},{}),cancel:m=>{for(let y=0;y(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ER=1e-7,RR=12;function AR(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=tk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>ER&&++aAR(o,0,1,e,n);return o=>o===0||o===1?o:tk(i(o),t,r)}const nk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rk=e=>t=>1-e(1-t),ik=fl(.33,1.53,.69,.99),eg=rk(ik),ok=nk(eg),sk=e=>(e*=2)<1?.5*eg(e):.5*(2-Math.pow(2,-10*(e-1))),tg=e=>1-Math.sin(Math.acos(e)),ak=rk(tg),lk=nk(tg),ck=e=>/^0[^.\s]+$/u.test(e);function OR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ck(e):!0}let Jh=ft;const uk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fk=e=>t=>typeof t=="string"&&t.startsWith(e),dk=fk("--"),zR=fk("var(--"),ng=e=>zR(e)?IR.test(e.split("/*")[0].trim()):!1,IR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,LR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DR(e){const t=LR.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function hk(e,t,n=1){const[r,i]=DR(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return uk(s)?parseFloat(s):s}return ng(i)?hk(i,t,n+1):i}const Yr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Na={...Ps,transform:e=>Yr(0,1,e)},Bl={...Ps,default:1},dl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$r=dl("deg"),qn=dl("%"),N=dl("px"),FR=dl("vh"),jR=dl("vw"),U0={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},BR=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),H0=e=>e===Ps||e===N,G0=(e,t)=>parseFloat(e.split(", ")[t]),K0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return G0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?G0(o[1],e):0}},NR=new Set(["x","y","z"]),VR=ul.filter(e=>!NR.has(e));function WR(e){const t=[];return VR.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ss={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:K0(4,13),y:K0(5,14)};ss.translateX=ss.x;ss.translateY=ss.y;const pk=e=>t=>t.test(e),UR={test:e=>e==="auto",parse:e=>e},mk=[Ps,N,qn,$r,jR,FR,UR],q0=e=>mk.find(pk(e)),Ri=new Set;let ep=!1,tp=!1;function gk(){if(tp){const e=Array.from(Ri).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=WR(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tp=!1,ep=!1,Ri.forEach(e=>e.complete()),Ri.clear()}function yk(){Ri.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tp=!0)})}function HR(){yk(),gk()}class rg{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ri.add(this),ep||(ep=!0,le.read(yk),le.resolveKeyframes(gk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;oMath.round(e*1e5)/1e5,ig=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GR(e){return e==null}const KR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,og=(e,t)=>n=>!!(typeof n=="string"&&KR.test(n)&&n.startsWith(e)||t&&!GR(n)&&Object.prototype.hasOwnProperty.call(n,t)),vk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(ig);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},qR=e=>Yr(0,255,e),yd={...Ps,transform:e=>Math.round(qR(e))},Si={test:og("rgb","red"),parse:vk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+yd.transform(e)+", "+yd.transform(t)+", "+yd.transform(n)+", "+da(Na.transform(r))+")"};function YR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const np={test:og("#"),parse:YR,transform:Si.transform},Po={test:og("hsl","hue"),parse:vk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(da(t))+", "+qn.transform(da(n))+", "+da(Na.transform(r))+")"},at={test:e=>Si.test(e)||np.test(e)||Po.test(e),parse:e=>Si.test(e)?Si.parse(e):Po.test(e)?Po.parse(e):np.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Si.transform(e):Po.transform(e)},QR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function XR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ig))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(QR))===null||n===void 0?void 0:n.length)||0)>0}const xk="number",bk="color",ZR="var",JR="var(",Y0="${}",eA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Va(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(eA,l=>(at.test(l)?(r.color.push(o),i.push(bk),n.push(at.parse(l))):l.startsWith(JR)?(r.var.push(o),i.push(ZR),n.push(l)):(r.number.push(o),i.push(xk),n.push(parseFloat(l))),++o,Y0)).split(Y0);return{values:n,split:a,indexes:r,types:i}}function wk(e){return Va(e).values}function Sk(e){const{split:t,types:n}=Va(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function nA(e){const t=wk(e);return Sk(e)(t.map(tA))}const Qr={test:XR,parse:wk,createTransformer:Sk,getAnimatableNone:nA},rA=new Set(["brightness","contrast","saturate","opacity"]);function iA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ig)||[];if(!r)return e;const i=n.replace(r,"");let o=rA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const oA=/\b([a-z-]*)\(.*?\)/gu,rp={...Qr,getAnimatableNone:e=>{const t=e.match(oA);return t?t.map(iA).join(" "):e}},sA={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,backgroundPositionX:N,backgroundPositionY:N},aA={rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Bl,scaleX:Bl,scaleY:Bl,scaleZ:Bl,skew:$r,skewX:$r,skewY:$r,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:Na,originX:U0,originY:U0,originZ:N},Q0={...Ps,transform:Math.round},sg={...sA,...aA,zIndex:Q0,size:N,fillOpacity:Na,strokeOpacity:Na,numOctaves:Q0},lA={...sg,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:rp,WebkitFilter:rp},ag=e=>lA[e];function kk(e,t){let n=ag(e);return n!==rp&&(n=Qr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cA=new Set(["auto","none","0"]);function uA(e,t,n){let r=0,i;for(;r{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function lg(e){return typeof e=="function"}let vc;function fA(){vc=void 0}const Yn={now:()=>(vc===void 0&&Yn.set(Xe.isProcessing||TR.useManualTiming?Xe.timestamp:performance.now()),vc),set:e=>{vc=e,queueMicrotask(fA)}},X0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function dA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;npA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HR(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!hA(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(mf(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Tk(e,t){return t?e*(1e3/t):0}const mA=5;function _k(e,t,n){const r=Math.max(t-mA,0);return Tk(n-e(r),t-r)}const vd=.001,gA=.01,yA=10,vA=.05,xA=1;function bA({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Yr(vA,xA,s),e=Yr(gA,yA,hr(e)),s<1?(i=c=>{const u=c*s,f=u*e,d=u-n,p=ip(c,s),g=Math.exp(-f);return vd-d/p*g},o=c=>{const f=c*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-f),h=ip(Math.pow(c,2),s);return(-i(c)+vd>0?-1:1)*((d-p)*g)/h}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-vd+u*f},o=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=SA(i,o,a);if(e=dr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const wA=12;function SA(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function PA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Z0(e,CA)&&Z0(e,kA)){const n=bA(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function $k({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=PA({...r,velocity:-hr(r.velocity||0)}),p=f||0,g=l/(2*Math.sqrt(a*c)),h=o-i,b=hr(Math.sqrt(a/c)),m=Math.abs(h)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(g<1){const v=ip(b,g);y=w=>{const S=Math.exp(-g*b*w);return o-S*((p+g*b*h)/v*Math.sin(v*w)+h*Math.cos(v*w))}}else if(g===1)y=v=>o-Math.exp(-b*v)*(h+(p+b*h)*v);else{const v=b*Math.sqrt(g*g-1);y=w=>{const S=Math.exp(-g*b*w),k=Math.min(v*w,300);return o-S*((p+g*b*h)*Math.sinh(k)+v*h*Math.cosh(k))/v}}return{calculatedDuration:d&&u||null,next:v=>{const w=y(v);if(d)s.done=v>=u;else{let S=0;g<1&&(S=v===0?dr(p):_k(y,v,w));const k=Math.abs(S)<=n,C=Math.abs(o-w)<=t;s.done=k&&C}return s.value=s.done?o:w,s}}}function J0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},p=_=>a!==void 0&&_l,g=_=>a===void 0?l:l===void 0||Math.abs(a-_)-h*Math.exp(-_/r),v=_=>m+y(_),w=_=>{const R=y(_),x=v(_);d.done=Math.abs(R)<=c,d.value=d.done?m:x};let S,k;const C=_=>{p(d.value)&&(S=_,k=$k({keyframes:[d.value,g(d.value)],velocity:_k(v,_,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:_=>{let R=!1;return!k&&S===void 0&&(R=!0,w(_),C(_)),S!==void 0&&_>=S?k.next(_-S):(!R&&w(_),d)}}}const TA=fl(.42,0,1,1),_A=fl(0,0,.58,1),Mk=fl(.42,0,.58,1),$A=e=>Array.isArray(e)&&typeof e[0]!="number",cg=e=>Array.isArray(e)&&typeof e[0]=="number",ev={linear:ft,easeIn:TA,easeInOut:Mk,easeOut:_A,circIn:tg,circInOut:lk,circOut:ak,backIn:eg,backInOut:ok,backOut:ik,anticipate:sk},tv=e=>{if(cg(e)){Jh(e.length===4);const[t,n,r,i]=e;return fl(t,n,r,i)}else if(typeof e=="string")return Jh(ev[e]!==void 0),ev[e];return e},MA=(e,t)=>n=>t(e(n)),pr=(...e)=>e.reduce(MA),as=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},we=(e,t,n)=>e+(t-e)*n;function xd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function EA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=xd(l,a,e+1/3),o=xd(l,a,e),s=xd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function nu(e,t){return n=>n>0?t:e}const bd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},RA=[np,Si,Po],AA=e=>RA.find(t=>t.test(e));function nv(e){const t=AA(e);if(!t)return!1;let n=t.parse(e);return t===Po&&(n=EA(n)),n}const rv=(e,t)=>{const n=nv(e),r=nv(t);if(!n||!r)return nu(e,t);const i={...n};return o=>(i.red=bd(n.red,r.red,o),i.green=bd(n.green,r.green,o),i.blue=bd(n.blue,r.blue,o),i.alpha=we(n.alpha,r.alpha,o),Si.transform(i))},op=new Set(["none","hidden"]);function OA(e,t){return op.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zA(e,t){return n=>we(e,t,n)}function ug(e){return typeof e=="number"?zA:typeof e=="string"?ng(e)?nu:at.test(e)?rv:DA:Array.isArray(e)?Ek:typeof e=="object"?at.test(e)?rv:IA:nu}function Ek(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>ug(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function LA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=Qr.createTransformer(t),r=Va(e),i=Va(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?op.has(e)&&!i.values.length||op.has(t)&&!r.values.length?OA(e,t):pr(Ek(LA(r,i),i.values),n):nu(e,t)};function Rk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):ug(e)(e,t)}function FA(e,t,n){const r=[],i=n||Rk,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=FA(t,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(Yr(e[0],e[o-1],c)):l}function BA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=as(0,t,r);e.push(we(n,1,i))}}function NA(e){const t=[0];return BA(t,e.length-1),t}function VA(e,t){return e.map(n=>n*t)}function WA(e,t){return e.map(()=>t||Mk).splice(0,e.length-1)}function ru({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$A(r)?r.map(tv):tv(r),o={done:!1,value:t[0]},s=VA(n&&n.length===t.length?n:NA(t),e),a=jA(s,t,{ease:Array.isArray(i)?i:WA(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const iv=2e4;function UA(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=iv?1/0:t}const HA=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>qr(t),now:()=>Xe.isProcessing?Xe.timestamp:Yn.now()}},GA={decay:J0,inertia:J0,tween:ru,keyframes:ru,spring:$k},KA=e=>e/100;class fg extends Pk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||rg,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=lg(n)?n:GA[n]||ru;let l,c;a!==ru&&typeof t[0]!="number"&&(l=pr(KA,Rk(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});o==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=UA(u));const{calculatedDuration:f}=u,d=f+i,p=d*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:g,repeatDelay:h,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let v=this.currentTime,w=o;if(p){const _=Math.min(this.currentTime,u)/f;let R=Math.floor(_),x=_%1;!x&&_>=1&&(x=1),x===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(g==="reverse"?(x=1-x,h&&(x-=h/f)):g==="mirror"&&(w=s)),v=Yr(0,1,x)*f}const S=y?{done:!1,value:l[0]}:w.next(v);a&&(S.value=a(S.value));let{done:k}=S;!y&&c!==null&&(k=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return C&&i!==void 0&&(S.value=mf(l,this.options,i)),b&&b(S.value),C&&this.finish(),S}get duration(){const{resolved:t}=this;return t?hr(t.calculatedDuration):0}get time(){return hr(this.currentTime)}set time(t){t=dr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=hr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=HA,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const qA=new Set(["opacity","clipPath","filter","transform"]),YA=10,QA=(e,t)=>{let n="";const r=Math.max(Math.round(t/YA),2);for(let i=0;i(t===void 0&&(t=e()),t)}const XA={linearEasing:void 0};function ZA(e,t){const n=dg(e);return()=>{var r;return(r=XA[t])!==null&&r!==void 0?r:n()}}const iu=ZA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Ak(e){return!!(typeof e=="function"&&iu()||!e||typeof e=="string"&&(e in sp||iu())||cg(e)||Array.isArray(e)&&e.every(Ak))}const Zs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zs([0,.65,.55,1]),circOut:Zs([.55,0,1,.45]),backIn:Zs([.31,.01,.66,-.59]),backOut:Zs([.33,1.53,.69,.99])};function Ok(e,t){if(e)return typeof e=="function"&&iu()?QA(e,t):cg(e)?Zs(e):Array.isArray(e)?e.map(n=>Ok(n,t)||sp.easeOut):sp[e]}function JA(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Ok(a,i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function ov(e,t){e.timeline=t,e.onfinish=null}const eO=dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ou=10,tO=2e4;function nO(e){return lg(e.type)||e.type==="spring"||!Ak(e.ease)}function rO(e,t){const n=new fg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&iu()&&iO(s)&&(s=zk[s]),nO(this.options)){const{onComplete:d,onUpdate:p,motionValue:g,element:h,...b}=this.options,m=rO(t,b);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,o=m.times,s=m.ease,a="keyframes"}const f=JA(l.owner.current,c,t,{...this.options,duration:i,times:o,ease:s});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(ov(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(mf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return hr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return hr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=dr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ft;const{animation:r}=n;ov(r,t)}return ft}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:d,...p}=this.options,g=new fg({...p,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),h=dr(this.time);c.setWithVelocity(g.sample(h-ou).value,g.sample(h).value,ou)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return eO()&&r&&qA.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const oO=dg(()=>window.ScrollTimeline!==void 0);class sO{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;roO()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function aO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const hg=(e,t,n,r={},i,o)=>s=>{const a=Jm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-dr(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};aO(a)||(u={...u,...PR(e,u)}),u.duration&&(u.duration=dr(u.duration)),u.repeatDelay&&(u.repeatDelay=dr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=mf(u.keyframes,a);if(d!==void 0)return le.update(()=>{u.onUpdate(d),u.onComplete()}),new sO([])}return!o&&sv.supports(u)?new sv(u):new fg(u)},lO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cO=e=>Zh(e)?e[e.length-1]||0:e;function pg(e,t){e.indexOf(t)===-1&&e.push(t)}function mg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gg{constructor(){this.subscriptions=[]}add(t){return pg(this.subscriptions,t),()=>mg(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class fO{constructor(t,n={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uO(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gg);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>av)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,av);return Tk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wa(e,t){return new fO(e,t)}function dO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wa(n))}function hO(e,t){const n=pf(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=cO(o[s]);dO(e,s,a)}}const yg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pO="framerAppearId",Ik="data-"+yg(pO);function Lk(e){return e.props[Ik]}const ct=e=>!!(e&&e.getVelocity);function mO(e){return!!(ct(e)&&e.add)}function ap(e,t){const n=e.getValue("willChange");if(mO(n))return n.add(t)}function gO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Dk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||u&&gO(u,f))continue;const g={delay:n,...Jm(s||{},f)};let h=!1;if(window.MotionHandoffAnimation){const m=Lk(e);if(m){const y=window.MotionHandoffAnimation(m,f,le);y!==null&&(g.startTime=y,h=!0)}}ap(e,f),d.start(hg(f,d,p,e.shouldReduceMotion&&Gi.has(f)?{type:!1}:g,e,h));const b=d.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{le.update(()=>{a&&hO(e,a)})}),c}function lp(e,t,n={}){var r;const i=pf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Dk(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return yO(e,t,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function yO(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(vO).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(lp(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function vO(e,t){return e.sortNodePosition(t)}function xO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>lp(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=lp(e,t,n);else{const i=typeof t=="function"?pf(e,t,n.custom):t;r=Promise.all(Dk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const bO=Zm.length;function Fk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Fk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>xO(e,n,r)))}function CO(e){let t=kO(e),n=lv(),r=!0;const i=l=>(c,u)=>{var f;const d=pf(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:g,...h}=d;c={...c,...h,...g}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=Fk(e.parent)||{},f=[],d=new Set;let p={},g=1/0;for(let b=0;bg&&w,R=!1;const x=Array.isArray(v)?v:[v];let $=x.reduce(i(m),{});S===!1&&($={});const{prevResolvedValues:E={}}=y,F={...E,...$},L=Y=>{_=!0,d.has(Y)&&(R=!0,d.delete(Y)),y.needsAnimating[Y]=!0;const A=e.getValue(Y);A&&(A.liveStyle=!1)};for(const Y in F){const A=$[Y],D=E[Y];if(p.hasOwnProperty(Y))continue;let V=!1;Zh(A)&&Zh(D)?V=!JS(A,D):V=A!==D,V?A!=null?L(Y):d.add(Y):A!==void 0&&d.has(Y)?L(Y):y.protectedKeys[Y]=!0}y.prevProp=v,y.prevResolvedValues=$,y.isActive&&(p={...p,...$}),r&&e.blockInitialAnimation&&(_=!1),_&&(!(k&&C)||R)&&f.push(...x.map(Y=>({animation:Y,options:{type:m}})))}if(d.size){const b={};d.forEach(m=>{const y=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),b[m]=y??null}),f.push({animation:b})}let h=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lv(),r=!0}}}function PO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!JS(t,e):!1}function li(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lv(){return{animate:li(!0),whileInView:li(),whileHover:li(),whileTap:li(),whileDrag:li(),whileFocus:li(),exit:li()}}class si{constructor(t){this.isMounted=!1,this.node=t}update(){}}class TO extends si{constructor(t){super(t),t.animationState||(t.animationState=CO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _O=0;class $O extends si{constructor(){super(...arguments),this.id=_O++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const MO={animation:{Feature:TO},exit:{Feature:$O}},jk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function gf(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const EO=e=>t=>jk(t)&&e(t,gf(t));function cr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mr(e,t,n,r){return cr(e,t,EO(n),r)}const cv=(e,t)=>Math.abs(e-t);function RO(e,t){const n=cv(e.x,t.x),r=cv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Sd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=RO(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:g}=f,{timestamp:h}=Xe;this.history.push({...g,timestamp:h});const{onStart:b,onMove:m}=this.handlers;d||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=wd(d,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Sd(f.type==="pointercancel"?this.lastMoveEventInfo:wd(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!jk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=gf(t),a=wd(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Xe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Sd(a,this.history)),this.removeListeners=pr(mr(this.contextWindow,"pointermove",this.handlePointerMove),mr(this.contextWindow,"pointerup",this.handlePointerUp),mr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qr(this.updatePoint)}}function wd(e,t){return t?{point:t(e.point)}:e}function uv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sd({point:e},t){return{point:e,delta:uv(e,Nk(t)),offset:uv(e,AO(t)),velocity:OO(t,.1)}}function AO(e){return e[0]}function Nk(e){return e[e.length-1]}function OO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Nk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>dr(t)));)n--;if(!r)return{x:0,y:0};const o=hr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Vk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const fv=Vk("dragHorizontal"),dv=Vk("dragVertical");function Wk(e){let t=!1;if(e==="y")t=dv();else if(e==="x")t=fv();else{const n=fv(),r=dv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Uk(){const e=Wk(!0);return e?(e(),!1):!0}function To(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Hk=1e-4,zO=1-Hk,IO=1+Hk,Gk=.01,LO=0-Gk,DO=0+Gk;function Ut(e){return e.max-e.min}function FO(e,t,n){return Math.abs(e-t)<=n}function hv(e,t,n,r=.5){e.origin=r,e.originPoint=we(t.min,t.max,e.origin),e.scale=Ut(n)/Ut(t),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zO&&e.scale<=IO||isNaN(e.scale))&&(e.scale=1),(e.translate>=LO&&e.translate<=DO||isNaN(e.translate))&&(e.translate=0)}function ha(e,t,n,r){hv(e.x,t.x,n.x,r?r.originX:void 0),hv(e.y,t.y,n.y,r?r.originY:void 0)}function pv(e,t,n){e.min=n.min+t.min,e.max=e.min+Ut(t)}function jO(e,t,n){pv(e.x,t.x,n.x),pv(e.y,t.y,n.y)}function mv(e,t,n){e.min=t.min-n.min,e.max=e.min+Ut(t)}function pa(e,t,n){mv(e.x,t.x,n.x),mv(e.y,t.y,n.y)}function BO(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?we(n,e,r.max):Math.min(e,n)),e}function gv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NO(e,{top:t,left:n,bottom:r,right:i}){return{x:gv(e.x,n,i),y:gv(e.y,t,r)}}function yv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=as(t.min,t.max-r,e.min):r>i&&(n=as(e.min,e.max-i,t.min)),Yr(0,1,n)}function UO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const cp=.35;function HO(e=cp){return e===!1?e=0:e===!0&&(e=cp),{x:vv(e,"left","right"),y:vv(e,"top","bottom")}}function vv(e,t,n){return{min:xv(e,t),max:xv(e,n)}}function xv(e,t){return typeof e=="number"?e:e[t]||0}const bv=()=>({translate:0,scale:1,origin:0,originPoint:0}),_o=()=>({x:bv(),y:bv()}),wv=()=>({min:0,max:0}),Ae=()=>({x:wv(),y:wv()});function Xt(e){return[e("x"),e("y")]}function Kk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function GO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function KO(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function kd(e){return e===void 0||e===1}function up({scale:e,scaleX:t,scaleY:n}){return!kd(e)||!kd(t)||!kd(n)}function mi(e){return up(e)||qk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qk(e){return Sv(e.x)||Sv(e.y)}function Sv(e){return e&&e!=="0%"}function su(e,t,n){const r=e-n,i=t*r;return n+i}function kv(e,t,n,r,i){return i!==void 0&&(e=su(e,i,r)),su(e,n,r)+t}function fp(e,t=0,n=1,r,i){e.min=kv(e.min,t,n,r,i),e.max=kv(e.max,t,n,r,i)}function Yk(e,{x:t,y:n}){fp(e.x,t.translate,t.scale,t.originPoint),fp(e.y,n.translate,n.scale,n.originPoint)}const Cv=.999999999999,Pv=1.0000000000001;function qO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;aCv&&(t.x=1),t.yCv&&(t.y=1)}function $o(e,t){e.min=e.min+t,e.max=e.max+t}function Tv(e,t,n,r,i=.5){const o=we(e.min,e.max,i);fp(e,t,n,o,r)}function Mo(e,t){Tv(e.x,t.x,t.scaleX,t.scale,t.originX),Tv(e.y,t.y,t.scaleY,t.scale,t.originY)}function Qk(e,t){return Kk(KO(e.getBoundingClientRect(),t))}function YO(e,t,n){const r=Qk(e,n),{scroll:i}=t;return i&&($o(r.x,i.offset.x),$o(r.y,i.offset.y)),r}const Xk=({current:e})=>e?e.ownerDocument.defaultView:null,QO=new WeakMap;class XO{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ae(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gf(u,"page").point)},o=(u,f)=>{const{drag:d,dragPropagation:p,onDragStart:g}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wk(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xt(b=>{let m=this.getAxisMotionValue(b).get()||0;if(qn.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[b];v&&(m=Ut(v)*(parseFloat(m)/100))}}this.originPoint[b]=m}),g&&le.postRender(()=>g(u,f)),ap(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:g,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=ZO(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),h&&h(u,f)},a=(u,f)=>this.stop(u,f),l=()=>Xt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Bk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Xk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&le.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Nl(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=BO(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&To(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=NO(i.layoutBox,n):this.constraints=!1,this.elastic=HO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Xt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=UO(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!To(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=YO(r,i.root,this.visualElement.getTransformPagePoint());let s=VO(i.layout.layoutBox,o);if(n){const a=n(GO(s));this.hasMutatedConstraints=!!a,a&&(s=Kk(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Xt(u=>{if(!Nl(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ap(this.visualElement,t),r.start(hg(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xt(n=>{const{drag:r}=this.getProps();if(!Nl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-we(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!To(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=WO({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xt(s=>{if(!Nl(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(we(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;QO.set(this.visualElement,this);const t=this.visualElement.current,n=mr(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();To(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),le.read(r);const s=cr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=cp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Nl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ZO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class JO extends si{constructor(t){super(t),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new XO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const _v=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class e4 extends si{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(t){this.session=new Bk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_v(t),onStart:_v(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&le.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=mr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vg=P.createContext(null);function t4(){const e=P.useContext(vg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();P.useEffect(()=>r(i),[]);const o=P.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const Zk=P.createContext({}),Jk=P.createContext({}),xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $v(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const js={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(N.test(e))e=parseFloat(e);else return e;const n=$v(e,t.target.x),r=$v(e,t.target.y);return`${n}% ${r}%`}},n4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qr.parse(e);if(i.length>5)return r;const o=Qr.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=we(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}},au={};function r4(e){Object.assign(au,e)}const{schedule:xg,cancel:y9}=ek(queueMicrotask,!1);class i4 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;r4(o4),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eC(e){const[t,n]=t4(),r=P.useContext(Zk);return T.jsx(i4,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(Jk),isPresent:t,safeToRemove:n})}const o4={borderRadius:{...js,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:js,borderTopRightRadius:js,borderBottomLeftRadius:js,borderBottomRightRadius:js,boxShadow:n4},tC=["TopLeft","TopRight","BottomLeft","BottomRight"],s4=tC.length,Mv=e=>typeof e=="string"?parseFloat(e):e,Ev=e=>typeof e=="number"||N.test(e);function a4(e,t,n,r,i,o){i?(e.opacity=we(0,n.opacity!==void 0?n.opacity:1,l4(r)),e.opacityExit=we(t.opacity!==void 0?t.opacity:1,0,c4(r))):o&&(e.opacity=we(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(as(e,t,r))}function Av(e,t){e.min=t.min,e.max=t.max}function qt(e,t){Av(e.x,t.x),Av(e.y,t.y)}function Ov(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zv(e,t,n,r,i){return e-=t,e=su(e,1/n,r),i!==void 0&&(e=su(e,1/i,r)),e}function u4(e,t=0,n=1,r=.5,i,o=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=we(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=we(o.min,o.max,r);e===o&&(a-=t),e.min=zv(e.min,t,n,a,i),e.max=zv(e.max,t,n,a,i)}function Iv(e,t,[n,r,i],o,s){u4(e,t[n],t[r],t[i],t.scale,o,s)}const f4=["x","scaleX","originX"],d4=["y","scaleY","originY"];function Lv(e,t,n,r){Iv(e.x,t,f4,n?n.x:void 0,r?r.x:void 0),Iv(e.y,t,d4,n?n.y:void 0,r?r.y:void 0)}function Dv(e){return e.translate===0&&e.scale===1}function rC(e){return Dv(e.x)&&Dv(e.y)}function Fv(e,t){return e.min===t.min&&e.max===t.max}function h4(e,t){return Fv(e.x,t.x)&&Fv(e.y,t.y)}function jv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iC(e,t){return jv(e.x,t.x)&&jv(e.y,t.y)}function Bv(e){return Ut(e.x)/Ut(e.y)}function Nv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class p4{constructor(){this.members=[]}add(t){pg(this.members,t),t.scheduleRender()}remove(t){if(mg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function m4(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:p,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const g4=(e,t)=>e.depth-t.depth;class y4{constructor(){this.children=[],this.isDirty=!1}add(t){pg(this.children,t),this.isDirty=!0}remove(t){mg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(g4),this.isDirty=!1,this.children.forEach(t)}}function bc(e){const t=ct(e)?e.get():e;return lO(t)?t.toValue():t}function v4(e,t){const n=Yn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(qr(r),e(o-t))};return le.read(r,!0),()=>qr(r)}function x4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function b4(e,t,n){const r=ct(e)?e:Wa(e);return r.start(hg("",r,t,n)),r.animation}const gi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Js=typeof window<"u"&&window.MotionDebug!==void 0,Cd=["","X","Y","Z"],w4={visibility:"hidden"},Vv=1e3;let S4=0;function Pd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Lk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oC(r)}function sC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=S4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Js&&(gi.totalNodes=gi.resolvedTargetDeltas=gi.recalculatedProjection=0),this.nodes.forEach(P4),this.nodes.forEach(E4),this.nodes.forEach(R4),this.nodes.forEach(T4),Js&&window.MotionDebug.record(gi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=v4(d,250),xc.hasAnimatedSinceResize&&(xc.hasAnimatedSinceResize=!1,this.nodes.forEach(Uv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||L4,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=u.getProps(),y=!this.targetLayout||!iC(this.targetLayout,g)||p,v=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...Jm(h,"layout"),onPlay:b,onComplete:m};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Uv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(A4),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=w/1e3;Hv(f.x,s.x,S),Hv(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pa(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z4(this.relativeTarget,this.relativeTargetOrigin,d,S),v&&h4(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ae()),qt(v,this.relativeTarget)),h&&(this.animationValues=u,a4(u,c,this.latestValues,S,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{xc.hasAnimatedSinceResize=!0,this.currentAnimation=b4(0,Vv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&aC(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ae();const f=Ut(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Ut(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}qt(a,l),Mo(a,u),ha(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new p4),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Pd("z",s,c,this.animationValues);for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Wv),this.root.sharedNodes.clear()}}}function k4(e){e.updateLayout()}function C4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Xt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Ut(d);d.min=r[f].min,d.max=d.min+p}):aC(o,n.layoutBox,r)&&Xt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Ut(r[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=_o();ha(a,r,n.layoutBox);const l=_o();s?ha(l,e.applyTransform(i,!0),n.measuredBox):ha(l,r,n.layoutBox);const c=!rC(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const g=Ae();pa(g,n.layoutBox,d.layoutBox);const h=Ae();pa(h,r,p.layoutBox),iC(g,h)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function P4(e){Js&&gi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function T4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _4(e){e.clearSnapshot()}function Wv(e){e.clearMeasurements()}function $4(e){e.isLayoutDirty=!1}function M4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function E4(e){e.resolveTargetDelta()}function R4(e){e.calcProjection()}function A4(e){e.resetSkewAndRotation()}function O4(e){e.removeLeadSnapshot()}function Hv(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gv(e,t,n,r){e.min=we(t.min,n.min,r),e.max=we(t.max,n.max,r)}function z4(e,t,n,r){Gv(e.x,t.x,n.x,r),Gv(e.y,t.y,n.y,r)}function I4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const L4={duration:.45,ease:[.4,0,.1,1]},Kv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qv=Kv("applewebkit/")&&!Kv("chrome/")?Math.round:ft;function Yv(e){e.min=qv(e.min),e.max=qv(e.max)}function D4(e){Yv(e.x),Yv(e.y)}function aC(e,t,n){return e==="position"||e==="preserve-aspect"&&!FO(Bv(t),Bv(n),.2)}function F4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const j4=sC({attachResizeListener:(e,t)=>cr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Td={current:void 0},lC=sC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Td.current){const e=new j4({});e.mount(window),e.setOptions({layoutScroll:!0}),Td.current=e}return Td.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B4={pan:{Feature:e4},drag:{Feature:JO,ProjectionNode:lC,MeasureLayout:eC}};function Qv(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||Uk())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&le.postRender(()=>l(o,s))};return mr(e.current,n,i,{passive:!e.getProps()[r]})}class N4 extends si{mount(){this.unmount=pr(Qv(this.node,!0),Qv(this.node,!1))}unmount(){}}class V4 extends si{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pr(cr(this.node.current,"focus",()=>this.onFocus()),cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cC=(e,t)=>t?e===t?!0:cC(e,t.parentElement):!1;function _d(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,gf(n))}class W4 extends si{constructor(){super(...arguments),this.removeStartListeners=ft,this.removeEndListeners=ft,this.removeAccessibleListeners=ft,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=mr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps(),d=!f&&!cC(this.node.current,a.target)?u:c;d&&le.update(()=>d(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=mr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pr(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||_d("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&le.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=cr(this.node.current,"keyup",s),_d("down",(a,l)=>{this.startPress(a,l)})},n=cr(this.node.current,"keydown",t),r=()=>{this.isPressing&&_d("cancel",(o,s)=>this.cancelPress(o,s))},i=cr(this.node.current,"blur",r);this.removeAccessibleListeners=pr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&le.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Uk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&le.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=mr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=cr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dp=new WeakMap,$d=new WeakMap,U4=e=>{const t=dp.get(e.target);t&&t(e)},H4=e=>{e.forEach(U4)};function G4({root:e,...t}){const n=e||document;$d.has(n)||$d.set(n,{});const r=$d.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(H4,{root:e,...t})),r[i]}function K4(e,t,n){const r=G4(t);return dp.set(e,n),r.observe(e),()=>{dp.delete(e),r.unobserve(e)}}const q4={some:0,all:1};class Y4 extends si{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:q4[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return K4(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Q4(t,n))&&this.startObserver()}unmount(){}}function Q4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const X4={inView:{Feature:Y4},tap:{Feature:W4},focus:{Feature:V4},hover:{Feature:N4}},Z4={layout:{ProjectionNode:lC,MeasureLayout:eC}},uC=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yf=P.createContext({}),bg=typeof window<"u",J4=bg?P.useLayoutEffect:P.useEffect,fC=P.createContext({strict:!1});function e3(e,t,n,r,i){var o,s;const{visualElement:a}=P.useContext(yf),l=P.useContext(fC),c=P.useContext(vg),u=P.useContext(uC).reducedMotion,f=P.useRef();r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,p=P.useContext(Jk);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&t3(f.current,n,i,p);const g=P.useRef(!1);P.useInsertionEffect(()=>{d&&g.current&&d.update(n,c)});const h=n[Ik],b=P.useRef(!!h&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return J4(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),xg.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),P.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,h)}),b.current=!1))}),d}function t3(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dC(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&To(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function dC(e){if(e)return e.options.allowProjection!==!1?e.projection:dC(e.parent)}function n3(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):To(n)&&(n.current=r))},[t])}function vf(e){return hf(e.animate)||Zm.some(t=>Ba(e[t]))}function hC(e){return!!(vf(e)||e.variants)}function r3(e,t){if(vf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ba(n)?n:void 0,animate:Ba(r)?r:void 0}}return e.inherit!==!1?t:{}}function i3(e){const{initial:t,animate:n}=r3(e,P.useContext(yf));return P.useMemo(()=>({initial:t,animate:n}),[Xv(t),Xv(n)])}function Xv(e){return Array.isArray(e)?e.join(" "):e}const Zv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ls={};for(const e in Zv)ls[e]={isEnabled:t=>Zv[e].some(n=>!!t[n])};function o3(e){for(const t in e)ls[t]={...ls[t],...e[t]}}const s3=Symbol.for("motionComponentSymbol");function a3({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&o3(e);function o(a,l){let c;const u={...P.useContext(uC),...a,layoutId:l3(a)},{isStatic:f}=u,d=i3(a),p=r(a,f);if(!f&&bg){c3();const g=u3(u);c=g.MeasureLayout,d.visualElement=e3(i,p,u,t,g.ProjectionNode)}return T.jsxs(yf.Provider,{value:d,children:[c&&d.visualElement?T.jsx(c,{visualElement:d.visualElement,...u}):null,n(i,a,n3(p,d.visualElement,l),p,f,d.visualElement)]})}const s=P.forwardRef(o);return s[s3]=i,s}function l3({layoutId:e}){const t=P.useContext(Zk).id;return t&&e!==void 0?t+"-"+e:e}function c3(e,t){P.useContext(fC).strict}function u3(e){const{drag:t,layout:n}=ls;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const f3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wg(e){return typeof e!="string"||e.includes("-")?!1:!!(f3.indexOf(e)>-1||/[A-Z]/u.test(e))}function pC(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const mC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gC(e,t,n,r){pC(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mC.has(i)?i:yg(i),t.attrs[i])}function yC(e,{layout:t,layoutId:n}){return Gi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!au[e]||e==="opacity")}function Sg(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(ct(i[s])||t.style&&ct(t.style[s])||yC(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function vC(e,t,n){const r=Sg(e,t,n);for(const i in e)if(ct(e[i])||ct(t[i])){const o=ul.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function d3(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}function h3({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:p3(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const xC=e=>(t,n)=>{const r=P.useContext(yf),i=P.useContext(vg),o=()=>h3(e,t,r,i);return n?o():d3(o)};function p3(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=bc(o[d]);let{initial:s,animate:a}=e;const l=vf(e),c=hC(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!hf(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p({style:{},transform:{},transformOrigin:{},vars:{}}),bC=()=>({...kg(),attrs:{}}),wC=(e,t)=>t&&typeof e=="number"?t.transform(e):e,m3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g3=ul.length;function y3(e,t,n){let r="",i=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",S3={useVisualState:xC({scrapeMotionValuesFromProps:vC,createRenderState:bC,onMount:(e,t,{renderState:n,latestValues:r})=>{le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{Pg(n,r,Tg(t.tagName),e.transformTemplate),gC(t,n)})}})},k3={useVisualState:xC({scrapeMotionValuesFromProps:Sg,createRenderState:kg})};function SC(e,t,n){for(const r in t)!ct(t[r])&&!yC(r,n)&&(e[r]=t[r])}function C3({transformTemplate:e},t){return P.useMemo(()=>{const n=kg();return Cg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function P3(e,t){const n=e.style||{},r={};return SC(r,n,e),Object.assign(r,C3(e,t)),r}function T3(e,t){const n={},r=P3(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const _3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function lu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_3.has(e)}let kC=e=>!lu(e);function $3(e){e&&(kC=t=>t.startsWith("on")?!lu(t):e(t))}try{$3(require("@emotion/is-prop-valid").default)}catch{}function M3(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kC(i)||n===!0&&lu(i)||!t&&!lu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function E3(e,t,n,r){const i=P.useMemo(()=>{const o=bC();return Pg(o,t,Tg(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};SC(o,e.style,e),i.style={...o,...i.style}}return i}function R3(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(wg(n)?E3:T3)(r,o,s,n),c=M3(r,typeof n=="string",e),u=n!==P.Fragment?{...c,...l,ref:i}:{},{children:f}=r,d=P.useMemo(()=>ct(f)?f.get():f,[f]);return P.createElement(n,{...u,children:d})}}function A3(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...wg(r)?S3:k3,preloadedFeatures:e,useRender:R3(i),createVisualElement:t,Component:r};return a3(s)}}const hp={current:null},CC={current:!1};function O3(){if(CC.current=!0,!!bg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hp.current=e.matches;e.addListener(t),t()}else hp.current=!1}function z3(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ct(i))e.addValue(r,i);else if(ct(o))e.addValue(r,Wa(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Wa(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const e1=new WeakMap,I3=[...mk,at,Qr],L3=e=>I3.find(pk(e)),t1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class D3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Yn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),CC.current||O3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){e1.delete(this.current),this.projection&&this.projection.unmount(),qr(this.notifyUpdate),qr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Gi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ls){const n=ls[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ae()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Wa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(uk(i)||ck(i))?i=parseFloat(i):!L3(i)&&Qr.test(n)&&(i=kk(t,n)),this.setBaseTarget(t,ct(i)?i.get():i)),ct(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Qm(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ct(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class PC extends D3{constructor(){super(...arguments),this.KeyframeResolver=Ck}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function F3(e){return window.getComputedStyle(e)}class j3 extends PC{constructor(){super(...arguments),this.type="html",this.renderInstance=pC}readValueFromInstance(t,n){if(Gi.has(n)){const r=ag(n);return r&&r.default||0}else{const r=F3(t),i=(dk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Qk(t,n)}build(t,n,r){Cg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Sg(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class B3 extends PC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ae}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gi.has(n)){const r=ag(n);return r&&r.default||0}return n=mC.has(n)?n:yg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vC(t,n,r)}build(t,n,r){Pg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){gC(t,n,r,i)}mount(t){this.isSVGTag=Tg(t.tagName),super.mount(t)}}const N3=(e,t)=>wg(e)?new B3(t):new j3(t,{allowProjection:e!==P.Fragment}),V3=A3({...MO,...X4,...B4,...Z4},N3),Re=bR(V3);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var W3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ai=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...c},u)=>P.createElement("svg",{ref:u,...W3,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${U3(e)}`,a].join(" "),...c},[...t.map(([f,d])=>P.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H3=ai("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G3=ai("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K3=ai("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q3=ai("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cu=ai("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pp=ai("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y3=ai("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** + * @license lucide-react v0.350.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q3=ai("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),n1=[{name:"Home",link:"#home",icon:K3},{name:"About",link:"#about",icon:Y3},{name:"Skills",link:"#skills",icon:Q3},{name:"Projects",link:"#projects",icon:H3},{name:"Contact",link:"#contact",icon:cu}];function X3(){const[e,t]=P.useState(!1),[n,r]=P.useState("home");P.useEffect(()=>{const o=()=>{const s=window.scrollY>20;t(s);const l=n1.map(c=>c.link.substring(1)).find(c=>{const u=document.getElementById(c);if(u){const f=u.getBoundingClientRect();return f.top<=100&&f.bottom>=100}return!1});l&&r(l)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const i=(o,s)=>{o.preventDefault();const a=s.substring(1),l=document.getElementById(a);if(l){const c=l.offsetTop-60;window.scrollTo({top:c,behavior:"smooth"})}};return T.jsx(Re.div,{initial:{y:-100},animate:{y:0},transition:{duration:.5,type:"spring",stiffness:260,damping:20},className:"fixed top-4 left-1/2 -translate-x-1/2 z-50",children:T.jsx("nav",{className:` + px-6 py-3 rounded-full border border-white/[0.2] bg-black/50 backdrop-blur-md + ${e?"bg-black/80":""} + transition-all duration-300 + `,children:T.jsx("div",{className:"flex items-center gap-6",children:n1.map((o,s)=>T.jsx(Re.a,{href:o.link,onClick:a=>i(a,o.link),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"group relative",children:T.jsxs("div",{className:` + relative p-2 transition-colors duration-300 + ${n===o.link.substring(1)?"text-blue-500":"text-white/70 hover:text-white"} + `,children:[T.jsx(o.icon,{size:20}),T.jsx(Re.span,{className:"absolute -bottom-12 left-1/2 -translate-x-1/2 px-3 py-2 bg-black/80 text-white text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap",children:o.name}),n===o.link.substring(1)&&T.jsx(Re.div,{layoutId:"navbar-indicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-blue-500",transition:{type:"spring",stiffness:300,damping:30}})]})},o.name))})})})}const ki="generated",Z3="pointerdown",J3="pointerup",mp="pointerleave",ez="pointerout",ji="pointermove",tz="touchstart",r1="touchend",nz="touchmove",rz="touchcancel",iz="resize",oz="visibilitychange",dn="tsParticles - Error",Lr=100,i1=.5,ut=1e3;var Ze;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"})(Ze||(Ze={}));function TC(e){return typeof e=="boolean"}function Xr(e){return typeof e=="string"}function Zr(e){return typeof e=="number"}function Eo(e){return typeof e=="object"&&e!==null}function Zn(e){return Array.isArray(e)}function I(e){return e==null}const Fn={x:0,y:0,z:0},o1=2,sz=1;class At{constructor(t,n,r){if(this._updateFromAngle=(i,o)=>{this.x=Math.cos(i)*o,this.y=Math.sin(i)*o},!Zr(t)&&t){this.x=t.x,this.y=t.y;const i=t;this.z=i.z?i.z:Fn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=r??Fn.z;else throw new Error(`${dn} Vector3d not initialized correctly`)}static get origin(){return At.create(Fn.x,Fn.y,Fn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return At.create(t.x,t.y,t.z)}static create(t,n,r){return new At(t,n,r)}add(t){return At.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return At.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return At.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**o1+this.y**o1}mult(t){return At.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(sz/t)}rotate(t){return At.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),Fn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:Fn.z}sub(t){return At.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class qe extends At{constructor(t,n){super(t,n,Fn.z)}static get origin(){return qe.create(Fn.x,Fn.y)}static clone(t){return qe.create(t.x,t.y)}static create(t,n){return new qe(t,n)}}let az=Math.random;const _C={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)},gp=new Map,lz=2,cz=Math.PI*lz;function Md(e,t){gp.get(e)||gp.set(e,t)}function $C(e){return gp.get(e)??(t=>t)}function me(){return hn(az(),0,1-Number.EPSILON)}function uz(e){return _C.nextFrame(e)}function fz(e){_C.cancel(e)}function hn(e,t,n){return Math.min(Math.max(e,t),n)}function Ed(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function Dt(e){const t=Un(e),n=0;let r=xf(e);return t===r&&(r=n),me()*(t-r)+r}function B(e){return Zr(e)?e:Dt(e)}function xf(e){return Zr(e)?e:e.min}function Un(e){return Zr(e)?e:e.max}function ee(e,t){if(e===t||t===void 0&&Zr(e))return e;const n=xf(e),r=Un(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(r,t)}:ee(n,r)}function bt(e,t){const n=e.x-t.x,r=e.y-t.y,i=2;return{dx:n,dy:r,distance:Math.sqrt(n**i+r**i)}}function Bt(e,t){return bt(e,t).distance}function Hr(e){return e*Math.PI/180}function dz(e,t,n){if(Zr(e))return Hr(e);const r=0,i=.5,o=.25,s=i+o;switch(e){case Ze.top:return-Math.PI*i;case Ze.topRight:return-Math.PI*o;case Ze.right:return r;case Ze.bottomRight:return Math.PI*o;case Ze.bottom:return Math.PI*i;case Ze.bottomLeft:return Math.PI*s;case Ze.left:return Math.PI;case Ze.topLeft:return-Math.PI*s;case Ze.inside:return Math.atan2(n.y-t.y,n.x-t.x);case Ze.outside:return Math.atan2(t.y-n.y,t.x-n.x);default:return me()*cz}}function hz(e){const t=qe.origin;return t.length=1,t.angle=e,t}function s1(e,t,n,r){return qe.create(e.x*(n-r)/(n+r)+t.x*2*r/(n+r),e.y)}function pz(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??me()*e.size.width,y:((n=e.position)==null?void 0:n.y)??me()*e.size.height}}function MC(e){return e?e.endsWith("%")?parseFloat(e)/Lr:parseFloat(e):1}var Ci;(function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"})(Ci||(Ci={}));var je;(function(e){e.increasing="increasing",e.decreasing="decreasing"})(je||(je={}));var Bi;(function(e){e.none="none",e.max="max",e.min="min"})(Bi||(Bi={}));var q;(function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"})(q||(q={}));var cs;(function(e){e.precise="precise",e.percent="percent"})(cs||(cs={}));var No;(function(e){e.max="max",e.min="min",e.random="random"})(No||(No={}));const mz={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Ni(){return mz}function a1(e){const t={bounced:!1},{pSide:n,pOtherSide:r,rectSide:i,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,c=0;return r.mino.max||r.maxo.max||(n.max>=i.min&&n.max<=(i.max+i.min)*l&&s>c||n.min<=i.max&&n.min>(i.max+i.min)*l&&se.matches(r));return Zn(n)?n.some(r=>r):n}function Vi(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function yz(){return!Vi()&&typeof matchMedia<"u"}function EC(e){if(yz())return matchMedia(e)}function vz(e){if(!(Vi()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function xz(e){if(!(Vi()||typeof MutationObserver>"u"))return new MutationObserver(e)}function ze(e,t){return e===t||Zn(t)&&t.indexOf(e)>-1}async function l1(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function bz(e){return Math.floor(me()*e.length)}function bf(e,t,n=!0){return e[t!==void 0&&n?t%e.length:bz(e)]}function _g(e,t,n,r,i){return wz(hl(e,r??0),t,n,i)}function wz(e,t,n,r){let i=!0;return(!r||r===q.bottom)&&(i=e.topn.x),i&&(!r||r===q.right)&&(i=e.leftn.y),i}function hl(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function pt(e,...t){for(const n of t){if(n==null)continue;if(!Eo(n)){e=n;continue}const r=Array.isArray(n);r&&(Eo(e)||!e||!Array.isArray(e))?e=[]:!r&&(Eo(e)||!e||Array.isArray(e))&&(e={});for(const i in n){if(i==="__proto__")continue;const o=n,s=o[i],a=e;a[i]=Eo(s)&&Array.isArray(s)?s.map(l=>pt(a[i],l)):pt(a[i],s)}}return e}function $g(e,t){return!!OC(t,n=>n.enable&&ze(e,n.mode))}function Mg(e,t,n){gn(t,r=>{const i=r.mode;r.enable&&ze(e,i)&&Sz(r,n)})}function Sz(e,t){const n=e.selectors;gn(n,r=>{t(r,e)})}function RC(e,t){if(!(!t||!e))return OC(e,n=>gz(t,n.selectors))}function yp(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:qe.create(B(e.options.bounce.horizontal.value),B(e.options.bounce.vertical.value))}}function AC(e,t){const{x:n,y:r}=e.velocity.sub(t.velocity),[i,o]=[e.position,t.position],{dx:s,dy:a}=bt(o,i);if(n*s+r*a<0)return;const c=-Math.atan2(a,s),u=e.mass,f=t.mass,d=e.velocity.rotate(c),p=t.velocity.rotate(c),g=s1(d,p,u,f),h=s1(p,d,u,f),b=g.rotate(-c),m=h.rotate(-c);e.velocity.x=b.x*e.factor.x,e.velocity.y=b.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function kz(e,t){const n=e.getPosition(),r=e.getRadius(),i=hl(n,r),o=e.options.bounce,s=a1({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:B(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=a1({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:B(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function gn(e,t){return Zn(e)?e.map((r,i)=>t(r,i)):t(e,0)}function Cn(e,t,n){return Zn(e)?bf(e,t,n):e}function OC(e,t){return Zn(e)?e.find((r,i)=>t(r,i)):t(e,0)?e:void 0}function zC(e,t){const n=e.value,r=e.animation,i={delayTime:B(r.delay)*ut,enable:r.enable,value:B(e.value)*t,max:Un(n)*t,min:xf(n)*t,loops:0,maxLoops:B(r.count),time:0},o=1;if(r.enable){switch(i.decay=o-B(r.decay),r.mode){case Ci.increase:i.status=je.increasing;break;case Ci.decrease:i.status=je.decreasing;break;case Ci.random:i.status=me()>=i1?je.increasing:je.decreasing;break}const s=r.mode===Ci.auto;switch(r.startValue){case No.min:i.value=i.min,s&&(i.status=je.increasing);break;case No.max:i.value=i.max,s&&(i.status=je.decreasing);break;case No.random:default:i.value=Dt(i),s&&(i.status=me()>=i1?je.increasing:je.decreasing);break}}return i.initialValue=i.value,i}function Cz(e,t){if(!(e.mode===cs.percent)){const{mode:i,...o}=e;return o}return"x"in e?{x:e.x/Lr*t.width,y:e.y/Lr*t.height}:{width:e.width/Lr*t.width,height:e.height/Lr*t.height}}function IC(e,t){return Cz(e,t)}function Pz(e,t,n,r,i){switch(t){case Bi.max:n>=i&&e.destroy();break;case Bi.min:n<=r&&e.destroy();break}}function Eg(e,t,n,r,i){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const u=(t.velocity??0)*i.factor,f=t.min,d=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case je.increasing:t.value>=d?(n?t.status=je.decreasing:t.value-=d,t.loops||(t.loops=0),t.loops++):t.value+=u;break;case je.decreasing:t.value<=f?(n?t.status=je.increasing:t.value+=d,t.loops||(t.loops=0),t.loops++):t.value-=u}t.velocity&&p!==1&&(t.velocity*=p),Pz(e,r,t.value,f,d),e.destroyed||(t.value=hn(t.value,f,d))}}var vp;(function(e){e.darken="darken",e.enlighten="enlighten"})(vp||(vp={}));var yi;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"})(yi||(yi={}));const uu="random",wc="mid",wf=new Map;function c1(e){wf.set(e.key,e)}function Tz(e){for(const l of wf.values())if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,c,u,f,d)=>c+c+u+u+f+f+(d!==void 0?d+d:"")),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,i=r.exec(n),o=16;return i?{a:i[yi.a]!==void 0?parseInt(i[yi.a],o)/255:1,b:parseInt(i[yi.b],o),g:parseInt(i[yi.g],o),r:parseInt(i[yi.r],o)}:void 0}function $n(e,t,n=!0){if(!e)return;const r=Xr(e)?{value:e}:e;if(Xr(r.value))return LC(r.value,t,n);if(Zn(r.value))return $n({value:bf(r.value,t,n)});for(const i of wf.values()){const o=i.handleRangeColor(r);if(o)return o}}function LC(e,t,n=!0){if(!e)return;const r=Xr(e)?{value:e}:e;if(Xr(r.value))return r.value===uu?FC():_z(r.value);if(Zn(r.value))return LC({value:bf(r.value,t,n)});for(const i of wf.values()){const o=i.handleColor(r);if(o)return o}}function Ua(e,t,n=!0){const r=$n(e,t,n);return r?DC(r):void 0}function DC(e){const u=e.r/255,f=e.g/255,d=e.b/255,p=Math.max(u,f,d),g=Math.min(u,f,d),h={h:0,l:(p+g)*.5,s:0};return p!==g&&(h.s=h.l<.5?(p-g)/(p+g):(p-g)/(2-p-g),h.h=u===p?(f-d)/(p-g):h.h=f===p?2+(d-u)/(p-g):2*2+(u-f)/(p-g)),h.l*=100,h.s*=100,h.h*=60,h.h<0&&(h.h+=360),h.h>=360&&(h.h-=360),h}function _z(e){return Tz(e)}function us(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),c=s/360,u=a/100,f=l/100,d=255,p=3;if(a===0){const R=Math.round(f*d);return{r:R,g:R,b:R}}const g=.5,h=2,b=(R,x,$)=>{if($<0&&$++,$>1&&$--,$*6<1)return R+(x-R)*6*$;if($*h<1)return x;if($*p<1*h){const G=h/p;return R+(x-R)*(G-$)*6}return R},m=1,y=f0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const u=e.offset?Dt(e.offset):0,f=(e.velocity??0)*r.factor+u*3.6,d=e.decay??1,p=Un(t),g=xf(t);!n||e.status===je.increasing?(e.value+=f,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status=je.decreasing:e.value-=p)):(e.value-=f,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status=je.increasing)),e.velocity&&d!==1&&(e.velocity*=d),e.value=hn(e.value,g,p)}function NC(e,t){if(!e)return;const{h:n,s:r,l:i}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&Ad(n,o.h,!1,t),r&&Ad(r,o.s,!0,t),i&&Ad(i,o.l,!0,t)}const fs={x:0,y:0},Vl={a:1,b:0,c:0,d:1};function ma(e,t,n){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.closePath()}function Mz(e,t,n){e.fillStyle=n??"rgba(0,0,0,0)",e.fillRect(fs.x,fs.y,t.width,t.height)}function Ez(e,t,n,r){n&&(e.globalAlpha=r,e.drawImage(n,fs.x,fs.y,t.width,t.height),e.globalAlpha=1)}function Od(e,t){e.clearRect(fs.x,fs.y,t.width,t.height)}function Rz(e){const{container:t,context:n,particle:r,delta:i,colorStyles:o,backgroundMask:s,composite:a,radius:l,opacity:c,shadow:u,transform:f}=e,d=r.getPosition(),p=0,g=r.rotation+(r.pathRotation?r.velocity.angle:p),h={sin:Math.sin(g),cos:Math.cos(g)},b=!!g,m=1,y={a:h.cos*(f.a??Vl.a),b:b?h.sin*(f.b??m):f.b??Vl.b,c:b?-h.sin*(f.c??m):f.c??Vl.c,d:h.cos*(f.d??Vl.d)};n.setTransform(y.a,y.b,y.c,y.d,d.x,d.y),s&&(n.globalCompositeOperation=a);const v=r.shadowColor;u.enable&&v&&(n.shadowBlur=u.blur,n.shadowColor=gr(v),n.shadowOffsetX=u.offset.x,n.shadowOffsetY=u.offset.y),o.fill&&(n.fillStyle=o.fill);const w=0,S=r.strokeWidth??w;n.lineWidth=S,o.stroke&&(n.strokeStyle=o.stroke);const k={container:t,context:n,particle:r,radius:l,opacity:c,delta:i,transformData:y,strokeWidth:S};Oz(k),zz(k),Az(k),n.globalCompositeOperation="source-over",n.resetTransform()}function Az(e){const{container:t,context:n,particle:r,radius:i,opacity:o,delta:s,transformData:a}=e;if(!r.effect)return;const l=t.effectDrawers.get(r.effect);l&&l.draw({context:n,particle:r,radius:i,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function Oz(e){const{container:t,context:n,particle:r,radius:i,opacity:o,delta:s,strokeWidth:a,transformData:l}=e,c=0;if(!r.shape)return;const u=t.shapeDrawers.get(r.shape);u&&(n.beginPath(),u.draw({context:n,particle:r,radius:i,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...l}}),r.shapeClose&&n.closePath(),a>c&&n.stroke(),r.shapeFill&&n.fill())}function zz(e){const{container:t,context:n,particle:r,radius:i,opacity:o,delta:s,transformData:a}=e;if(!r.shape)return;const l=t.shapeDrawers.get(r.shape);l!=null&&l.afterDraw&&l.afterDraw({context:n,particle:r,radius:i,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function Iz(e,t,n){t.draw&&t.draw(e,n)}function Lz(e,t,n,r){t.drawParticle&&t.drawParticle(e,n,r)}function Dz(e,t,n){return{h:e.h,s:e.s,l:e.l+(t===vp.darken?-1:1)*n}}function Fz(e,t,n){const r=t[n],i=1;r!==void 0&&(e[n]=(e[n]??i)*r)}function f1(e,t,n=!1){if(!t)return;const r=e;if(!r)return;const i=r.style;if(i)for(const o in t){const s=t[o];i.setProperty(o,s,n?"important":"")}}class jz{constructor(t){this.container=t,this._applyPostDrawUpdaters=n=>{var r;for(const i of this._postDrawUpdaters)(r=i.afterDraw)==null||r.call(i,n)},this._applyPreDrawUpdaters=(n,r,i,o,s,a)=>{var l;for(const c of this._preDrawUpdaters){if(c.getColorStyles){const{fill:u,stroke:f}=c.getColorStyles(r,n,i,o);u&&(s.fill=u),f&&(s.stroke=f)}if(c.getTransformValues){const u=c.getTransformValues(r);for(const f in u)Fz(a,u,f)}(l=c.beforeDraw)==null||l.call(c,r)}},this._applyResizePlugins=()=>{var n;for(const r of this._resizePlugins)(n=r.resize)==null||n.call(r)},this._getPluginParticleColors=n=>{let r,i;for(const o of this._colorPlugins)if(!r&&o.particleFillColor&&(r=Ua(o.particleFillColor(n))),!i&&o.particleStrokeColor&&(i=Ua(o.particleStrokeColor(n))),r&&i)break;return[r,i]},this._initCover=async()=>{const n=this.container.actualOptions,r=n.backgroundMask.cover,i=r.color;if(i){const o=$n(i);if(o){const s={...o,a:r.opacity};this._coverColorStyle=gr(s,s.a)}}else await new Promise((o,s)=>{if(!r.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:r.opacity},o()}),a.addEventListener("error",l=>{s(l.error)}),a.src=r.image})},this._initStyle=()=>{const n=this.element,r=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=pt({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const i in r.style){if(!i||!r.style)continue;const o=r.style[i];o&&n.style.setProperty(i,o,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,r=n.particles.move.trail,i=r.fill;if(!r.enable)return;const o=1,s=o/r.length;if(i.color){const a=$n(i.color);if(!a)return;this._trailFill={color:{...a},opacity:s}}else await new Promise((a,l)=>{if(!i.image)return;const c=document.createElement("img");c.addEventListener("load",()=>{this._trailFill={image:c,opacity:s},a()}),c.addEventListener("error",u=>{l(u.error)}),c.src=i.image})},this._paintBase=n=>{this.draw(r=>Mz(r,this.size,n))},this._paintImage=(n,r)=>{this.draw(i=>Ez(i,this.size,n,r))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(r=>r.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(r=>{!n||!(n instanceof Node)||r.observe(n,{attributes:!0})}))},this._resetOriginalStyle=()=>{const n=this.element,r=this._originalStyle;n&&r&&f1(n,r)},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const r=10,i=this.container.actualOptions.fullScreen.zIndex.toString(r);f1(n,{position:"fixed","z-index":i,zIndex:i,top:"0",left:"0",width:"100%",height:"100%"},!0)},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 t=this.container.actualOptions,n=t.particles.move.trail,r=this._trailFill;t.backgroundMask.enable?this.paint():n.enable&&n.length>0&&r?r.color?this._paintBase(gr(r.color,r.opacity)):r.image&&this._paintImage(r.image,r.opacity):t.clear&&this.draw(o=>{Od(o,this.size)})}destroy(){if(this.stop(),this._generated){const t=this.element;t==null||t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const n=this._context;if(n)return t(n)}drawAsync(t){const n=this._context;if(n)return t(n)}drawParticle(t,n){if(t.spawning||t.destroyed)return;const r=t.getRadius();if(r<=0)return;const o=t.getFillColor(),s=t.getStrokeColor()??o;let[a,l]=this._getPluginParticleColors(t);a||(a=o),l||(l=s),!(!a&&!l)&&this.draw(c=>{var C;const u=this.container,f=u.actualOptions,d=t.options.zIndex,p=1,g=p-t.zIndexFactor,h=g**d.opacityRate,b=1,m=t.bubble.opacity??((C=t.opacity)==null?void 0:C.value)??b,y=t.strokeOpacity??m,v=m*h,w=y*h,S={},k={fill:a?Ha(a,v):void 0};k.stroke=l?Ha(l,w):k.fill,this._applyPreDrawUpdaters(c,t,r,v,k,S),Rz({container:u,context:c,particle:t,delta:n,colorStyles:k,backgroundMask:f.backgroundMask.enable,composite:f.backgroundMask.composite,radius:r*g**d.sizeRate,opacity:v,shadow:t.options.shadow,transform:S}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,n,r){this.draw(i=>Lz(i,t,n,r))}drawPlugin(t,n){this.draw(r=>Iz(r,t,n))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=xz(t=>{for(const n of t)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){Ni().error(t)}this.initBackground(),this._safeMutationObserver(t=>{!this.element||!(this.element instanceof Node)||t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions,n=t.background,r=this.element;if(!r)return;const i=r.style;if(i){if(n.color){const o=$n(n.color);i.backgroundColor=o?gr(o,n.opacity):""}else i.backgroundColor="";i.backgroundImage=n.image||"",i.backgroundPosition=n.position||"",i.backgroundRepeat=n.repeat||"",i.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&ki in t.dataset?t.dataset[ki]==="true":this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=pt({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{!this.element||!(this.element instanceof Node)||n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw(n=>{t.backgroundMask.enable&&t.backgroundMask.cover?(Od(n,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;const t=this.container,n=t.retina.pixelRatio,r=t.canvas.size,i={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(i.height===r.height&&i.width===r.width&&i.height===this.element.height&&i.width===this.element.width)return!1;const o={...r};return this.element.width=r.width=this.element.offsetWidth*n,this.element.height=r.height=this.element.offsetHeight*n,this.container.started&&t.particles.setResizeFactor({width:r.width/o.width,height:r.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>Od(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,n=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),n&&await t.refresh()}}var Vo;(function(e){e.canvas="canvas",e.parent="parent",e.window="window"})(Vo||(Vo={}));const d1=2;function Yt(e,t,n,r,i){if(r){let o={passive:!0};TC(i)?o.capture=i:i!==void 0&&(o=i),e.addEventListener(t,n,o)}else{const o=i;e.removeEventListener(t,n,o)}}class Bz{constructor(t){this.container=t,this._doMouseTouchClick=n=>{const r=this.container,i=r.actualOptions;if(this._canPush){const o=r.interactivity.mouse,s=o.position;if(!s)return;o.clickPosition={...s},o.clickTime=new Date().getTime();const a=i.interactivity.events.onClick;gn(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const r=n,i=this.container,o=i.options,s=o.defaultThemes,a=r.matches?s.dark:s.light,l=o.themes.find(c=>c.name===a);l!=null&&l.default.auto&&i.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,r=n.actualOptions;this._mouseTouchFinish(),r.pauseOnBlur&&(document!=null&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.animationStatus?n.play(!0):n.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const n=async()=>{const r=this.container.canvas;await(r==null?void 0:r.windowResize())};this._resizeTimeout=setTimeout(()=>void n(),this.container.actualOptions.interactivity.events.resize.delay*ut)},this._manageInteractivityListeners=(n,r)=>{const i=this._handlers,o=this.container,s=o.actualOptions,a=o.interactivity.element;if(!a)return;const l=a,c=o.canvas.element;c&&(c.style.pointerEvents=l===c?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(Yt(a,ji,i.mouseMove,r),Yt(a,tz,i.touchStart,r),Yt(a,nz,i.touchMove,r),s.interactivity.events.onClick.enable?(Yt(a,r1,i.touchEndClick,r),Yt(a,J3,i.mouseUp,r),Yt(a,Z3,i.mouseDown,r)):Yt(a,r1,i.touchEnd,r),Yt(a,n,i.mouseLeave,r),Yt(a,rz,i.touchCancel,r))},this._manageListeners=n=>{const r=this._handlers,i=this.container,o=i.actualOptions,s=o.interactivity.detectsOn,a=i.canvas.element;let l=mp;s===Vo.window?(i.interactivity.element=window,l=ez):s===Vo.parent&&a?i.interactivity.element=a.parentElement??a.parentNode:i.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&Yt(document,oz,r.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const r=this._handlers,i=EC("(prefers-color-scheme: dark)");if(i){if(i.addEventListener!==void 0){Yt(i,"change",r.themeChange,n);return}i.addListener!==void 0&&(n?i.addListener(r.oldThemeChange):i.removeListener(r.oldThemeChange))}},this._manageResize=n=>{const r=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){Yt(window,iz,r.resize,n);return}const s=i.canvas.element;this._resizeObserver&&!n?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&s&&(this._resizeObserver=new ResizeObserver(a=>{a.find(c=>c.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:r}=n;r.clicking=!0,r.downPosition=r.position},this._mouseTouchClick=n=>{const r=this.container,i=r.actualOptions,{mouse:o}=r.interactivity;o.inside=!0;let s=!1;const a=o.position;if(!(!a||!i.interactivity.events.onClick.enable)){for(const l of r.plugins.values())if(l.clickPositionValid&&(s=l.clickPositionValid(a),s))break;s||this._doMouseTouchClick(n),o.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const r=n.mouse;delete r.position,delete r.clickPosition,delete r.downPosition,n.status=mp,r.inside=!1,r.clicking=!1},this._mouseTouchMove=n=>{const r=this.container,i=r.actualOptions,o=r.interactivity,s=r.canvas.element;if(!(o!=null&&o.element))return;o.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const c=n;if(o.element===window){if(s){const u=s.getBoundingClientRect();a={x:c.clientX-u.left,y:c.clientY-u.top}}}else if(i.interactivity.detectsOn===Vo.parent){const u=c.target,f=c.currentTarget;if(u&&f&&s){const d=u.getBoundingClientRect(),p=f.getBoundingClientRect(),g=s.getBoundingClientRect();a={x:c.offsetX+d1*d.left-(p.left+g.left),y:c.offsetY+d1*d.top-(p.top+g.top)}}else a={x:c.offsetX??c.clientX,y:c.offsetY??c.clientY}}else c.target===s&&(a={x:c.offsetX??c.clientX,y:c.offsetY??c.clientY})}else if(this._canPush=n.type!=="touchmove",s){const c=n,u=1,f=c.touches[c.touches.length-u],d=s.getBoundingClientRect(),p=0;a={x:f.clientX-(d.left??p),y:f.clientY-(d.top??p)}}const l=r.retina.pixelRatio;a&&(a.x*=l,a.y*=l),o.mouse.position=a,o.status=ji},this._touchEnd=n=>{const r=n,i=Array.from(r.changedTouches);for(const o of i)this._touches.delete(o.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const r=n,i=Array.from(r.changedTouches);for(const o of i)this._touches.delete(o.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const r=n,i=Array.from(r.changedTouches);for(const o of i)this._touches.set(o.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)}}var vt;(function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"})(vt||(vt={}));class mt{constructor(){this.value=""}static create(t,n){const r=new mt;return r.load(t),n!==void 0&&(Xr(n)||Zn(n)?r.load({value:n}):r.load(n)),r}load(t){I(t)||I(t.value)||(this.value=t.value)}}class Nz{constructor(){this.color=new mt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){I(t)||(t.color!==void 0&&(this.color=mt.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.position!==void 0&&(this.position=t.position),t.repeat!==void 0&&(this.repeat=t.repeat),t.size!==void 0&&(this.size=t.size),t.opacity!==void 0&&(this.opacity=t.opacity))}}class Vz{constructor(){this.opacity=1}load(t){I(t)||(t.color!==void 0&&(this.color=mt.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.opacity!==void 0&&(this.opacity=t.opacity))}}class Wz{constructor(){this.composite="destination-out",this.cover=new Vz,this.enable=!1}load(t){if(!I(t)){if(t.composite!==void 0&&(this.composite=t.composite),t.cover!==void 0){const n=t.cover,r=Xr(t.cover)?{color:t.cover}:t.cover;this.cover.load(n.color!==void 0||n.image!==void 0?n:{color:r})}t.enable!==void 0&&(this.enable=t.enable)}}}class Uz{constructor(){this.enable=!0,this.zIndex=0}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.zIndex!==void 0&&(this.zIndex=t.zIndex))}}class Hz{constructor(){this.enable=!1,this.mode=[]}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode))}}var ds;(function(e){e.circle="circle",e.rectangle="rectangle"})(ds||(ds={}));class h1{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=ds.circle}load(t){I(t)||(t.selectors!==void 0&&(this.selectors=t.selectors),t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),t.type!==void 0&&(this.type=t.type))}}class Gz{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.force!==void 0&&(this.force=t.force),t.smooth!==void 0&&(this.smooth=t.smooth))}}class Kz{constructor(){this.enable=!1,this.mode=[],this.parallax=new Gz}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class qz{constructor(){this.delay=.5,this.enable=!0}load(t){I(t)||(t.delay!==void 0&&(this.delay=t.delay),t.enable!==void 0&&(this.enable=t.enable))}}class Yz{constructor(){this.onClick=new Hz,this.onDiv=new h1,this.onHover=new Kz,this.resize=new qz}load(t){if(I(t))return;this.onClick.load(t.onClick);const n=t.onDiv;n!==void 0&&(this.onDiv=gn(n,r=>{const i=new h1;return i.load(r),i})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class Qz{constructor(t,n){this._engine=t,this._container=n}load(t){if(I(t)||!this._container)return;const n=this._engine.interactors.get(this._container);if(n)for(const r of n)r.loadModeOptions&&r.loadModeOptions(this,t)}}class VC{constructor(t,n){this.detectsOn=Vo.window,this.events=new Yz,this.modes=new Qz(t,n)}load(t){if(I(t))return;const n=t.detectsOn;n!==void 0&&(this.detectsOn=n),this.events.load(t.events),this.modes.load(t.modes)}}const p1=50;class Xz{load(t){I(t)||(t.position&&(this.position={x:t.position.x??p1,y:t.position.y??p1,mode:t.position.mode??cs.percent}),t.options&&(this.options=pt({},t.options)))}}var Pi;(function(e){e.screen="screen",e.canvas="canvas"})(Pi||(Pi={}));class Zz{constructor(){this.maxWidth=1/0,this.options={},this.mode=Pi.canvas}load(t){I(t)||(I(t.maxWidth)||(this.maxWidth=t.maxWidth),I(t.mode)||(t.mode===Pi.screen?this.mode=Pi.screen:this.mode=Pi.canvas),I(t.options)||(this.options=pt({},t.options)))}}var Or;(function(e){e.any="any",e.dark="dark",e.light="light"})(Or||(Or={}));class Jz{constructor(){this.auto=!1,this.mode=Or.any,this.value=!1}load(t){I(t)||(t.auto!==void 0&&(this.auto=t.auto),t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class eI{constructor(){this.name="",this.default=new Jz}load(t){I(t)||(t.name!==void 0&&(this.name=t.name),this.default.load(t.default),t.options!==void 0&&(this.options=pt({},t.options)))}}class Ag{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){I(t)||(t.count!==void 0&&(this.count=ee(t.count)),t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=ee(t.speed)),t.decay!==void 0&&(this.decay=ee(t.decay)),t.delay!==void 0&&(this.delay=ee(t.delay)),t.sync!==void 0&&(this.sync=t.sync))}}class Og extends Ag{constructor(){super(),this.mode=Ci.auto,this.startValue=No.random}load(t){super.load(t),!I(t)&&(t.mode!==void 0&&(this.mode=t.mode),t.startValue!==void 0&&(this.startValue=t.startValue))}}class zd extends Ag{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),!I(t)&&t.offset!==void 0&&(this.offset=ee(t.offset))}}class tI{constructor(){this.h=new zd,this.s=new zd,this.l=new zd}load(t){I(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Ga extends mt{constructor(){super(),this.animation=new tI}static create(t,n){const r=new Ga;return r.load(t),n!==void 0&&(Xr(n)||Zn(n)?r.load({value:n}):r.load(n)),r}load(t){if(super.load(t),I(t))return;const n=t.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(t.animation))}}var Wo;(function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"})(Wo||(Wo={}));class nI{constructor(){this.speed=2}load(t){I(t)||t.speed!==void 0&&(this.speed=t.speed)}}class rI{constructor(){this.enable=!0,this.retries=0}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.retries!==void 0&&(this.retries=t.retries))}}class Ki{constructor(){this.value=0}load(t){I(t)||I(t.value)||(this.value=ee(t.value))}}class iI extends Ki{constructor(){super(),this.animation=new Ag}load(t){if(super.load(t),I(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class WC extends iI{constructor(){super(),this.animation=new Og}load(t){super.load(t)}}class m1 extends Ki{constructor(){super(),this.value=1}}class UC{constructor(){this.horizontal=new m1,this.vertical=new m1}load(t){I(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class oI{constructor(){this.absorb=new nI,this.bounce=new UC,this.enable=!1,this.maxSpeed=50,this.mode=Wo.bounce,this.overlap=new rI}load(t){I(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),t.enable!==void 0&&(this.enable=t.enable),t.maxSpeed!==void 0&&(this.maxSpeed=ee(t.maxSpeed)),t.mode!==void 0&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class sI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(I(t))return;const n=t.options;if(n!==void 0)for(const r in n){const i=n[r];i&&(this.options[r]=pt(this.options[r]??{},i))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class aI{constructor(){this.offset=0,this.value=90}load(t){I(t)||(t.offset!==void 0&&(this.offset=ee(t.offset)),t.value!==void 0&&(this.value=ee(t.value)))}}class lI{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!I(t)&&(t.distance!==void 0&&(this.distance=ee(t.distance)),t.enable!==void 0&&(this.enable=t.enable),t.rotate)){const n=t.rotate.x;n!==void 0&&(this.rotate.x=n);const r=t.rotate.y;r!==void 0&&(this.rotate.y=r)}}}class cI{constructor(){this.x=50,this.y=50,this.mode=cs.percent,this.radius=0}load(t){I(t)||(t.x!==void 0&&(this.x=t.x),t.y!==void 0&&(this.y=t.y),t.mode!==void 0&&(this.mode=t.mode),t.radius!==void 0&&(this.radius=t.radius))}}class uI{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){I(t)||(t.acceleration!==void 0&&(this.acceleration=ee(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.inverse!==void 0&&(this.inverse=t.inverse),t.maxSpeed!==void 0&&(this.maxSpeed=ee(t.maxSpeed)))}}class fI{constructor(){this.clamp=!0,this.delay=new Ki,this.enable=!1,this.options={}}load(t){I(t)||(t.clamp!==void 0&&(this.clamp=t.clamp),this.delay.load(t.delay),t.enable!==void 0&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=pt(this.options,t.options)))}}class dI{load(t){I(t)||(t.color!==void 0&&(this.color=mt.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image))}}class hI{constructor(){this.enable=!1,this.length=10,this.fill=new dI}load(t){I(t)||(t.enable!==void 0&&(this.enable=t.enable),t.fill!==void 0&&this.fill.load(t.fill),t.length!==void 0&&(this.length=t.length))}}var We;(function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"})(We||(We={}));class pI{constructor(){this.default=We.out}load(t){I(t)||(t.default!==void 0&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class mI{constructor(){this.acceleration=0,this.enable=!1}load(t){I(t)||(t.acceleration!==void 0&&(this.acceleration=ee(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.position&&(this.position=pt({},t.position)))}}class gI{constructor(){this.angle=new aI,this.attract=new lI,this.center=new cI,this.decay=0,this.distance={},this.direction=Ze.none,this.drift=0,this.enable=!1,this.gravity=new uI,this.path=new fI,this.outModes=new pI,this.random=!1,this.size=!1,this.speed=2,this.spin=new mI,this.straight=!1,this.trail=new hI,this.vibrate=!1,this.warp=!1}load(t){if(I(t))return;this.angle.load(Zr(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),t.decay!==void 0&&(this.decay=ee(t.decay)),t.direction!==void 0&&(this.direction=t.direction),t.distance!==void 0&&(this.distance=Zr(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),t.drift!==void 0&&(this.drift=ee(t.drift)),t.enable!==void 0&&(this.enable=t.enable),this.gravity.load(t.gravity);const n=t.outModes;n!==void 0&&(Eo(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(t.path),t.random!==void 0&&(this.random=t.random),t.size!==void 0&&(this.size=t.size),t.speed!==void 0&&(this.speed=ee(t.speed)),this.spin.load(t.spin),t.straight!==void 0&&(this.straight=t.straight),this.trail.load(t.trail),t.vibrate!==void 0&&(this.vibrate=t.vibrate),t.warp!==void 0&&(this.warp=t.warp)}}class yI extends Og{constructor(){super(),this.destroy=Bi.none,this.speed=2}load(t){super.load(t),!I(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class vI extends WC{constructor(){super(),this.animation=new yI,this.value=1}load(t){if(I(t))return;super.load(t);const n=t.animation;n!==void 0&&this.animation.load(n)}}class xI{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(I(t))return;t.enable!==void 0&&(this.enable=t.enable);const n=t.width;n!==void 0&&(this.width=n);const r=t.height;r!==void 0&&(this.height=r)}}var Ka;(function(e){e.delete="delete",e.wait="wait"})(Ka||(Ka={}));class bI{constructor(){this.mode=Ka.delete,this.value=0}load(t){I(t)||(t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class wI{constructor(){this.density=new xI,this.limit=new bI,this.value=0}load(t){I(t)||(this.density.load(t.density),this.limit.load(t.limit),t.value!==void 0&&(this.value=t.value))}}class SI{constructor(){this.blur=0,this.color=new mt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){I(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=mt.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable),t.offset!==void 0&&(t.offset.x!==void 0&&(this.offset.x=t.offset.x),t.offset.y!==void 0&&(this.offset.y=t.offset.y)))}}class kI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(I(t))return;const n=t.options;if(n!==void 0)for(const r in n){const i=n[r];i&&(this.options[r]=pt(this.options[r]??{},i))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class CI extends Og{constructor(){super(),this.destroy=Bi.none,this.speed=5}load(t){super.load(t),!I(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class PI extends WC{constructor(){super(),this.animation=new CI,this.value=3}load(t){if(super.load(t),I(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class g1{constructor(){this.width=0}load(t){I(t)||(t.color!==void 0&&(this.color=Ga.create(this.color,t.color)),t.width!==void 0&&(this.width=ee(t.width)),t.opacity!==void 0&&(this.opacity=ee(t.opacity)))}}class TI extends Ki{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),!I(t)&&(t.opacityRate!==void 0&&(this.opacityRate=t.opacityRate),t.sizeRate!==void 0&&(this.sizeRate=t.sizeRate),t.velocityRate!==void 0&&(this.velocityRate=t.velocityRate))}}class _I{constructor(t,n){this._engine=t,this._container=n,this.bounce=new UC,this.collisions=new oI,this.color=new Ga,this.color.value="#fff",this.effect=new sI,this.groups={},this.move=new gI,this.number=new wI,this.opacity=new vI,this.reduceDuplicates=!1,this.shadow=new SI,this.shape=new kI,this.size=new PI,this.stroke=new g1,this.zIndex=new TI}load(t){if(I(t))return;if(t.groups!==void 0)for(const r of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,r))continue;const i=t.groups[r];i!==void 0&&(this.groups[r]=pt(this.groups[r]??{},i))}t.reduceDuplicates!==void 0&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(Ga.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),t.interactivity!==void 0&&(this.interactivity=pt({},t.interactivity));const n=t.stroke;if(n&&(this.stroke=gn(n,r=>{const i=new g1;return i.load(r),i})),this._container){const r=this._engine.updaters.get(this._container);if(r)for(const o of r)o.loadOptions&&o.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const o of i)o.loadParticlesOptions&&o.loadParticlesOptions(this,t)}}}function HC(e,...t){for(const n of t)e.load(n)}function GC(e,t,...n){const r=new _I(e,t);return HC(r,...n),r}class $I{constructor(t,n){this._findDefaultTheme=r=>this.themes.find(i=>i.default.value&&i.default.mode===r)??this.themes.find(i=>i.default.value&&i.default.mode===Or.any),this._importPreset=r=>{this.load(this._engine.getPreset(r))},this._engine=t,this._container=n,this.autoPlay=!0,this.background=new Nz,this.backgroundMask=new Wz,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new Uz,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new VC(t,n),this.manualParticles=[],this.particles=GC(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){var s,a;if(I(t))return;t.preset!==void 0&&gn(t.preset,l=>this._importPreset(l)),t.autoPlay!==void 0&&(this.autoPlay=t.autoPlay),t.clear!==void 0&&(this.clear=t.clear),t.key!==void 0&&(this.key=t.key),t.name!==void 0&&(this.name=t.name),t.delay!==void 0&&(this.delay=ee(t.delay));const n=t.detectRetina;n!==void 0&&(this.detectRetina=n),t.duration!==void 0&&(this.duration=ee(t.duration));const r=t.fpsLimit;r!==void 0&&(this.fpsLimit=r),t.pauseOnBlur!==void 0&&(this.pauseOnBlur=t.pauseOnBlur),t.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),t.zLayers!==void 0&&(this.zLayers=t.zLayers),this.background.load(t.background);const i=t.fullScreen;TC(i)?this.fullScreen.enable=i:this.fullScreen.load(i),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(l=>{const c=new Xz;return c.load(l),c})),this.particles.load(t.particles),this.style=pt(this.style,t.style),this._engine.loadOptions(this,t),t.smooth!==void 0&&(this.smooth=t.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const l of o)l.loadOptions&&l.loadOptions(this,t);if(t.responsive!==void 0)for(const l of t.responsive){const c=new Zz;c.load(l),this.responsive.push(c)}if(this.responsive.sort((l,c)=>l.maxWidth-c.maxWidth),t.themes!==void 0)for(const l of t.themes){const c=this.themes.find(u=>u.name===l.name);if(c)c.load(l);else{const u=new eI;u.load(l),this.themes.push(u)}}this.defaultThemes.dark=(s=this._findDefaultTheme(Or.dark))==null?void 0:s.name,this.defaultThemes.light=(a=this._findDefaultTheme(Or.light))==null?void 0:a.name}setResponsive(t,n,r){this.load(r);const i=this.responsive.find(o=>o.mode===Pi.screen&&screen?o.maxWidth>screen.availWidth:o.maxWidth*n>t);return this.load(i==null?void 0:i.options),i==null?void 0:i.maxWidth}setTheme(t){if(t){const n=this.themes.find(r=>r.name===t);n&&this.load(n.options)}else{const n=EC("(prefers-color-scheme: dark)"),r=n==null?void 0:n.matches,i=this._findDefaultTheme(r?Or.dark:Or.light);i&&this.load(i.options)}}}var hs;(function(e){e.external="external",e.particles="particles"})(hs||(hs={}));class MI{constructor(t,n){this.container=n,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const n of this._externalInteractors)n.isEnabled()&&n.interact(t)}handleClickMode(t){var n;for(const r of this._externalInteractors)(n=r.handleClickMode)==null||n.call(r,t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case hs.external:this._externalInteractors.push(t);break;case hs.particles:this._particleInteractors.push(t);break}t.init()}}particlesInteract(t,n){for(const r of this._externalInteractors)r.clear(t,n);for(const r of this._particleInteractors)r.isEnabled(t)&&r.interact(t,n)}reset(t){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(t);for(const n of this._particleInteractors)n.isEnabled(t)&&n.reset(t)}}var Mn;(function(e){e.normal="normal",e.inside="inside",e.outside="outside"})(Mn||(Mn={}));const y1=0,bp=2,Wl=.5,EI=2,v1="random";function RI(e,t,n,r){const i=t.options[e];if(i)return pt({close:t.close,fill:t.fill},Cn(i,n,r))}function AI(e,t,n,r){const i=t.options[e];if(i)return pt({close:t.close,fill:t.fill},Cn(i,n,r))}function x1(e){if(!ze(e.outMode,e.checkModes))return;const t=e.radius*bp;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord{for(const g of r.plugins.values()){const h=g.particlePosition!==void 0?g.particlePosition(i,this):void 0;if(h)return At.create(h.x,h.y,o)}const a=r.canvas.size,l=pz({size:a,position:i}),c=At.create(l.x,l.y,o),u=this.getRadius(),f=this.options.move.outModes,d=g=>{x1({outMode:g,checkModes:[We.bounce],coord:c.x,maxCoord:r.canvas.size.width,setCb:h=>c.x+=h,radius:u})},p=g=>{x1({outMode:g,checkModes:[We.bounce],coord:c.y,maxCoord:r.canvas.size.height,setCb:h=>c.y+=h,radius:u})};return d(f.left??f.default),d(f.right??f.default),p(f.top??f.default),p(f.bottom??f.default),this._checkOverlap(c,s)?this._calcPosition(r,void 0,o,s+1):c},this._calculateVelocity=()=>{const r=hz(this.direction),i=r.copy(),o=this.options.move;if(o.direction===Ze.inside||o.direction===Ze.outside)return i;const s=Hr(B(o.angle.value)),a=Hr(B(o.angle.offset)),l={left:a-s*Wl,right:a+s*Wl};return o.straight||(i.angle+=Dt(ee(l.left,l.right))),o.random&&typeof o.speed=="number"&&(i.length*=me()),i},this._checkOverlap=(r,i=y1)=>{const o=this.options.collisions,s=this.getRadius();if(!o.enable)return!1;const a=o.overlap;if(a.enable)return!1;const l=a.retries;if(l>=0&&i>l)throw new Error(`${dn} particle is overlapping and can't be placed`);return!!this.container.particles.find(u=>Bt(r,u.position){if(!r||!this.roll||!this.backColor&&!this.roll.alter)return r;const i=1,o=0,s=this.roll.horizontal&&this.roll.vertical?bp*i:i,a=this.roll.horizontal?Math.PI*Wl:o;return Math.floor(((this.roll.angle??o)+a)/(Math.PI/s))%bp?this.backColor?this.backColor:this.roll.alter?Dz(r,this.roll.alter.type,this.roll.alter.value):r:r},this._initPosition=r=>{const i=this.container,o=B(this.options.zIndex.value),s=0;this.position=this._calcPosition(i,r,hn(o,s,i.zLayers)),this.initialPosition=this.position.copy();const a=i.canvas.size,l=0;switch(this.moveCenter={...IC(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??cs.percent},this.direction=dz(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case Ze.inside:this.outType=Mn.inside;break;case Ze.outside:this.outType=Mn.outside;break}this.offset=qe.origin},this._engine=t}destroy(t){var o,s,a;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,r=this.pathGenerator,i=n.shapeDrawers.get(this.shape);(o=i==null?void 0:i.particleDestroy)==null||o.call(i,this);for(const l of n.plugins.values())(s=l.particleDestroyed)==null||s.call(l,this,t);for(const l of n.particles.updaters)(a=l.particleDestroyed)==null||a.call(l,this,t);r==null||r.reset(this),this._engine.dispatchEvent(vt.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const n=this.container,r=n.canvas;for(const i of n.plugins.values())r.drawParticlePlugin(i,this,t);r.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??u1(this.color))}getMass(){return this.getRadius()**EI*Math.PI*Wl}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??u1(this.strokeColor))}init(t,n,r,i){var _,R,x,$,E,F;const o=this.container,s=this._engine;this.id=t,this.group=i,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=Mn.normal,this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,l=o.actualOptions,c=GC(this._engine,o,l.particles),{reduceDuplicates:u}=c,f=c.effect.type,d=c.shape.type;this.effect=Cn(f,this.id,u),this.shape=Cn(d,this.id,u);const p=c.effect,g=c.shape;if(r){if((_=r.effect)!=null&&_.type){const L=r.effect.type,G=Cn(L,this.id,u);G&&(this.effect=G,p.load(r.effect))}if((R=r.shape)!=null&&R.type){const L=r.shape.type,G=Cn(L,this.id,u);G&&(this.shape=G,g.load(r.shape))}}if(this.effect===v1){const L=[...this.container.effectDrawers.keys()];this.effect=L[Math.floor(Math.random()*L.length)]}if(this.shape===v1){const L=[...this.container.shapeDrawers.keys()];this.shape=L[Math.floor(Math.random()*L.length)]}this.effectData=RI(this.effect,p,this.id,u),this.shapeData=AI(this.shape,g,this.id,u),c.load(r);const h=this.effectData;h&&c.load(h.particles);const b=this.shapeData;b&&c.load(b.particles);const m=new VC(s,o);m.load(o.actualOptions.interactivity),m.load(c.interactivity),this.interactivity=m,this.effectFill=(h==null?void 0:h.fill)??c.effect.fill,this.effectClose=(h==null?void 0:h.close)??c.effect.close,this.shapeFill=(b==null?void 0:b.fill)??c.shape.fill,this.shapeClose=(b==null?void 0:b.close)??c.shape.close,this.options=c;const y=this.options.move.path;this.pathDelay=B(y.delay.value)*ut,y.generator&&(this.pathGenerator=this._engine.getPathGenerator(y.generator),this.pathGenerator&&o.addPath(y.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=zC(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const v=1;this.moveDecay=v-B(this.options.move.decay);const w=o.particles;w.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let S=o.effectDrawers.get(this.effect);S||(S=this._engine.getEffectDrawer(this.effect),S&&o.effectDrawers.set(this.effect,S)),S!=null&&S.loadEffect&&S.loadEffect(this);let k=o.shapeDrawers.get(this.shape);k||(k=this._engine.getShapeDrawer(this.shape),k&&o.shapeDrawers.set(this.shape,k)),k!=null&&k.loadShape&&k.loadShape(this);const C=k==null?void 0:k.getSidesCount;C&&(this.sides=C(this)),this.spawning=!1,this.shadowColor=$n(this.options.shadow.color);for(const L of w.updaters)L.init(this);for(const L of w.movers)(x=L.init)==null||x.call(L,this);($=S==null?void 0:S.particleInit)==null||$.call(S,o,this),(E=k==null?void 0:k.particleInit)==null||E.call(k,o,this);for(const L of o.plugins.values())(F=L.particleCreated)==null||F.call(L,this)}isInsideCanvas(){const t=this.getRadius(),n=this.container.canvas.size,r=this.position;return r.x>=-t&&r.y>=-t&&r.y<=n.height+t&&r.x<=n.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var t;for(const n of this.container.particles.updaters)(t=n.reset)==null||t.call(n,this)}}class zI{constructor(t,n){this.position=t,this.particle=n}}var Uo;(function(e){e.circle="circle",e.rectangle="rectangle"})(Uo||(Uo={}));const Bs=2;class KC{constructor(t,n,r){this.position={x:t,y:n},this.type=r}}class dt extends KC{constructor(t,n,r){super(t,n,Uo.circle),this.radius=r}contains(t){return Bt(t,this.position)<=this.radius}intersects(t){const n=this.position,r=t.position,i={x:Math.abs(r.x-n.x),y:Math.abs(r.y-n.y)},o=this.radius;if(t instanceof dt||t.type===Uo.circle){const s=t,a=o+s.radius,l=Math.sqrt(i.x**Bs+i.y**Bs);return a>l}else if(t instanceof Rn||t.type===Uo.rectangle){const s=t,{width:a,height:l}=s.size;return Math.pow(i.x-a,Bs)+Math.pow(i.y-l,Bs)<=o**Bs||i.x<=o+a&&i.y<=o+l||i.x<=a||i.y<=l}return!1}}class Rn extends KC{constructor(t,n,r,i){super(t,n,Uo.rectangle),this.size={height:i,width:r}}contains(t){const n=this.size.width,r=this.size.height,i=this.position;return t.x>=i.x&&t.x<=i.x+n&&t.y>=i.y&&t.y<=i.y+r}intersects(t){if(t instanceof dt)return t.intersects(this);const n=this.size.width,r=this.size.height,i=this.position,o=t.position,s=t instanceof Rn?t.size:{width:0,height:0},a=s.width,l=s.height;return o.xi.x&&o.yi.y}}const Ns=.5,II=2,LI=4;class fu{constructor(t,n){this.rectangle=t,this.capacity=n,this._subdivide=()=>{const{x:r,y:i}=this.rectangle.position,{width:o,height:s}=this.rectangle.size,{capacity:a}=this;for(let l=0;ln.insert(t))):!1}query(t,n){const r=[];if(!t.intersects(this.rectangle))return[];for(const i of this._points)!t.contains(i.position)&&Bt(t.position,i.position)>i.particle.getRadius()&&(!n||n(i.particle))||r.push(i.particle);if(this._divided)for(const i of this._subs)r.push(...i.query(t,n));return r}queryCircle(t,n,r){return this.query(new dt(t.x,t.y,n),r)}queryRectangle(t,n,r){return this.query(new Rn(t.x,t.y,n.width,n.height),r)}}const b1=4,DI=2,FI=1,w1=e=>{const{height:t,width:n}=e,r=-.25,i=1.5;return new Rn(r*n,r*t,i*n,i*t)};class jI{constructor(t,n){this._addToPool=(...i)=>{this._pool.push(...i)},this._applyDensity=(i,o,s)=>{var g;const a=i.number;if(!((g=i.number.density)!=null&&g.enable)){s===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(s,a.limit.value);return}const l=this._initDensityFactor(a.density),c=a.value,u=0,f=a.limit.value>u?a.limit.value:c,d=Math.min(c,f)*l+o,p=Math.min(this.count,this.filter(h=>h.group===s).length);s===void 0?this._limit=a.limit.value*l:this._groupLimits.set(s,a.limit.value*l),pd&&this.removeQuantity(p-d,s)},this._initDensityFactor=i=>{const o=this._container,s=1;if(!o.canvas.element||!i.enable)return s;const a=o.canvas.element,l=o.retina.pixelRatio;return a.width*a.height/(i.height*i.width*l**DI)},this._pushParticle=(i,o,s,a)=>{try{let l=this._pool.pop();l||(l=new OI(this._engine,this._container)),l.init(this._nextId,i,o,s);let c=!0;return a&&(c=a(l)),c?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent(vt.particleAdded,{container:this._container,data:{particle:l}}),l):void 0}catch(l){Ni().warning(`${dn} adding particle: ${l}`)}},this._removeParticle=(i,o,s)=>{const a=this._array[i];if(!a||a.group!==o)return!1;const l=this._zArray.indexOf(a),c=1;return this._array.splice(i,c),this._zArray.splice(l,c),a.destroy(s),this._engine.dispatchEvent(vt.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=t,this._container=n,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new MI(t,n),this._pluginsInitialized=!1;const r=n.canvas.size;this.quadTree=new fu(w1(r),b1),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(r=>this.addParticle(r.position?IC(r.position,t.canvas.size):void 0,r.options))}addParticle(t,n,r,i){const o=this._container.actualOptions.particles.number.limit.mode,s=r===void 0?this._limit:this._groupLimits.get(r)??this._limit,a=this.count;if(s>0)switch(o){case Ka.delete:{const f=a+1-s;f>0&&this.removeQuantity(f);break}case Ka.wait:if(a>=s)return;break}return this._pushParticle(t,n,r,i)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const n=this._container,r=n.canvas;r.clear(),this.update(t);for(const i of n.plugins.values())r.drawPlugin(i,t);for(const i of this._zArray)i.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){var i,o;const t=this._container,n=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let r=!1;for(const s of t.plugins.values())if(r=((i=s.particlesInitialization)==null?void 0:i.call(s))??r,r)break;if(this.addManualParticles(),!r){const s=n.particles,a=s.groups;for(const l in a){const c=a[l];for(let u=this.count,f=0;f<((o=c.number)==null?void 0:o.value)&&uthis.count)return;let s=0;for(let a=t;s!r.has(l);this._array=this.filter(a),this._zArray=this._zArray.filter(a);for(const l of r)this._engine.dispatchEvent(vt.particleRemoved,{container:this._container,data:{particle:l}});this._addToPool(...r)}this._interactionManager.externalInteract(t);for(const a of this._array){for(const l of this.updaters)l.update(a,t);!a.destroyed&&!a.spawning&&this._interactionManager.particlesInteract(a,t)}if(delete this._resizeFactor,this._needsSort){const a=this._zArray;a.sort((c,u)=>u.position.z-c.position.z||c.id-u.id);const l=1;this._lastZIndex=a[a.length-l].position.z,this._needsSort=!1}}}const S1=1,k1=1;class BI{constructor(t){this.container=t,this.pixelRatio=S1,this.reduceFactor=k1}init(){const t=this.container,n=t.actualOptions;this.pixelRatio=!n.detectRetina||Vi()?S1:window.devicePixelRatio,this.reduceFactor=k1;const r=this.pixelRatio,i=t.canvas;if(i.element){const a=i.element;i.size.width=a.offsetWidth*r,i.size.height=a.offsetHeight*r}const o=n.particles,s=o.move;this.maxSpeed=B(s.gravity.maxSpeed)*r,this.sizeAnimationSpeed=B(o.size.animation.speed)*r}initParticle(t){const n=t.options,r=this.pixelRatio,i=n.move,o=i.distance,s=t.retina;s.moveDrift=B(i.drift)*r,s.moveSpeed=B(i.speed)*r,s.sizeAnimationSpeed=B(n.size.animation.speed)*r;const a=s.maxDistance;a.horizontal=o.horizontal!==void 0?o.horizontal*r:void 0,a.vertical=o.vertical!==void 0?o.vertical*r:void 0,s.maxSpeed=B(i.gravity.maxSpeed)*r}}function Pe(e){return e&&!e.destroyed}const Id=60;function NI(e,t=Id,n=!1){return{value:e,factor:n?Id/t:Id*e/ut}}function ro(e,t,...n){const r=new $I(e,t);return HC(r,...n),r}let VI=class{constructor(t,n,r){this._intersectionManager=i=>{if(!(!Pe(this)||!this.actualOptions.pauseOnOutsideViewport))for(const o of i)o.target===this.interactivity.element&&(o.isIntersecting?this.play():this.pause())},this._nextFrame=i=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&iut){this.draw(!1);return}if(this.particles.draw(o),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(o){Ni().error(`${dn} in animation loop`,o)}},this._engine=t,this.id=Symbol(n),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=r,this._initialSourceOptions=r,this.retina=new BI(this),this.canvas=new jz(this),this.particles=new jI(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=ro(this._engine,this),this.actualOptions=ro(this._engine,this),this._eventListeners=new Bz(this),this._intersectionObserver=vz(i=>this._intersectionManager(i)),this._engine.dispatchEvent(vt.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&Pe(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!Pe(this))return;const n=this.interactivity.element;if(!n)return;const r=(f,d,p)=>{if(!Pe(this))return;const g=this.retina.pixelRatio,h={x:d.x*g,y:d.y*g},b=this.particles.quadTree.queryCircle(h,p*g);t(f,b)},i=f=>{if(!Pe(this))return;const d=f,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};r(f,p,1)},o=()=>{Pe(this)&&(c=!0,u=!1)},s=()=>{Pe(this)&&(u=!0)},a=f=>{if(Pe(this)){if(c&&!u){const d=f,p=1;let g=d.touches[d.touches.length-p];if(!g&&(g=d.changedTouches[d.changedTouches.length-p],!g))return;const h=this.canvas.element,b=h?h.getBoundingClientRect():void 0,m=0,y={x:g.clientX-(b?b.left:m),y:g.clientY-(b?b.top:m)};r(f,y,Math.max(g.radiusX,g.radiusY))}c=!1,u=!1}},l=()=>{Pe(this)&&(c=!1,u=!1)};let c=!1,u=!1;this._clickHandlers.set("click",i),this._clickHandlers.set("touchstart",o),this._clickHandlers.set("touchmove",s),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",l);for(const[f,d]of this._clickHandlers)n.addEventListener(f,d)}addLifeTime(t){this._lifeTime+=t}addPath(t,n,r=!1){return!Pe(this)||!r&&this.pathGenerators.has(t)?!1:(this.pathGenerators.set(t,n),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var t;if(Pe(this)){for(const[n,r]of this._clickHandlers)(t=this.interactivity.element)==null||t.removeEventListener(n,r);this._clickHandlers.clear()}}destroy(t=!0){var n,r;if(Pe(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const i of this.effectDrawers.values())(n=i.destroy)==null||n.call(i,this);for(const i of this.shapeDrawers.values())(r=i.destroy)==null||r.call(i,this);for(const i of this.effectDrawers.keys())this.effectDrawers.delete(i);for(const i of this.shapeDrawers.keys())this.shapeDrawers.delete(i);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const i=this._engine.items,o=i.findIndex(a=>a===this);o>=0&&i.splice(o,1)}this._engine.dispatchEvent(vt.containerDestroyed,{container:this})}}draw(t){if(!Pe(this))return;let n=t;const r=i=>{n&&(this._lastFrameTime=void 0,n=!1),this._nextFrame(i)};this._drawAnimationFrame=uz(i=>r(i))}async export(t,n={}){for(const r of this.plugins.values()){if(!r.export)continue;const i=await r.export(t,n);if(i.supported)return i.blob}Ni().error(`${dn} - Export plugin with type ${t} not found`)}handleClickMode(t){var n;if(Pe(this)){this.particles.handleClickMode(t);for(const r of this.plugins.values())(n=r.handleClickMode)==null||n.call(r,t)}}async init(){var f,d,p,g;if(!Pe(this))return;const t=this._engine.getSupportedEffects();for(const h of t){const b=this._engine.getEffectDrawer(h);b&&this.effectDrawers.set(h,b)}const n=this._engine.getSupportedShapes();for(const h of n){const b=this._engine.getShapeDrawer(h);b&&this.shapeDrawers.set(h,b)}await this.particles.initPlugins(),this._options=ro(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ro(this._engine,this,this._options);const r=await this._engine.getAvailablePlugins(this);for(const[h,b]of r)this.plugins.set(h,b);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:i,duration:o,delay:s,fpsLimit:a,smooth:l}=this.actualOptions;this.zLayers=i,this._duration=B(o)*ut,this._delay=B(s)*ut,this._lifeTime=0;const c=120,u=0;this.fpsLimit=a>u?a:c,this._smooth=l;for(const h of this.effectDrawers.values())await((f=h.init)==null?void 0:f.call(h,this));for(const h of this.shapeDrawers.values())await((d=h.init)==null?void 0:d.call(h,this));for(const h of this.plugins.values())await((p=h.init)==null?void 0:p.call(h));this._engine.dispatchEvent(vt.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const h of this.plugins.values())(g=h.particlesSetup)==null||g.call(h);this._engine.dispatchEvent(vt.particlesSetup,{container:this})}async loadTheme(t){Pe(this)&&(this._currentTheme=t,await this.refresh())}pause(){var t;if(Pe(this)&&(this._drawAnimationFrame!==void 0&&(fz(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const n of this.plugins.values())(t=n.pause)==null||t.call(n);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(vt.containerPaused,{container:this})}}play(t){if(!Pe(this))return;const n=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const r of this.plugins.values())r.play&&r.play();this._engine.dispatchEvent(vt.containerPlay,{container:this}),this.draw(n??!1)}async refresh(){if(Pe(this))return this.stop(),this.start()}async reset(t){if(Pe(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=ro(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ro(this._engine,this,this._options),this.refresh()}async start(){!Pe(this)||this.started||(await this.init(),this.started=!0,await new Promise(t=>{const n=async()=>{var r;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const i of this.plugins.values())await((r=i.start)==null?void 0:r.call(i));this._engine.dispatchEvent(vt.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void n(),this._delay)}))}stop(){var t;if(!(!Pe(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 n of this.plugins.values())(t=n.stop)==null||t.call(n);for(const n of this.plugins.keys())this.plugins.delete(n);this._sourceOptions=this._options,this._engine.dispatchEvent(vt.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===t?!1:(this._responsiveMaxWidth=t,!0)}};class WI{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let r=this._listeners.get(t);r||(r=[],this._listeners.set(t,r)),r.push(n)}dispatchEvent(t,n){const r=this._listeners.get(t);r==null||r.forEach(i=>i(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const r=this._listeners.get(t);if(!r)return;const i=r.length,o=r.indexOf(n);if(o<0)return;const a=1;i===a?this._listeners.delete(t):r.splice(o,a)}}async function Ld(e,t,n,r=!1){let i=t.get(e);return(!i||r)&&(i=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,i)),i}async function UI(e){const t=Cn(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(Ni().error(`${dn} ${n.status} while retrieving config file`),e.fallback)}const qC="true",C1="false",Dd="canvas",HI=e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===Dd)t=e,t.dataset[ki]||(t.dataset[ki]=C1);else{const r=e.getElementsByTagName(Dd);r.length?(t=r[0],t.dataset[ki]=C1):(t=document.createElement(Dd),t.dataset[ki]=qC,e.appendChild(t))}const n="100%";return t.style.width||(t.style.width=n),t.style.height||(t.style.height=n),t},GI=(e,t)=>{let n=t??document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,n.dataset[ki]=qC,document.body.append(n),n)};class KI{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new WI,this._initialized=!1,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.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,r]of this._configs)t[n]=r;return t}get items(){return this._domArray}get version(){return"3.6.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent(vt.configAdded,{data:{name:n,config:t}})}async addEffect(t,n,r=!0){gn(t,i=>{this.getEffectDrawer(i)||this.effectDrawers.set(i,n)}),await this.refresh(r)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,r=!0){this._initializers.interactors.set(t,n),await this.refresh(r)}async addMover(t,n,r=!0){this._initializers.movers.set(t,n),await this.refresh(r)}async addParticleUpdater(t,n,r=!0){this._initializers.updaters.set(t,n),await this.refresh(r)}async addPathGenerator(t,n,r=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(r)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,r=!1,i=!0){(r||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(i)}async addShape(t,n=!0){for(const r of t.validTypes)this.getShapeDrawer(r)||this.shapeDrawers.set(r,t);await this.refresh(n)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const n=new Map;for(const r of this.plugins)r.needsPlugin(t.actualOptions)&&n.set(r.id,await r.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return Ld(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return Ld(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return Ld(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:n}=this,r=n[t];if(!r||r.destroyed){n.splice(t,1);return}return r}async load(t){var g;const r=t.id??((g=t.element)==null?void 0:g.id)??`tsparticles${Math.floor(me()*1e4)}`,{index:i,url:o}=t,s=o?await UI({fallback:t.options,url:o,index:i}):t.options,a=Cn(s,i),{items:l}=this,c=l.findIndex(h=>h.id.description===r),u=0,f=new VI(this,r,a);if(c>=u){const h=this.item(c),b=1,m=0,y=h?b:m;h&&!h.destroyed&&h.destroy(!1),l.splice(c,y,f)}else l.push(f);const d=GI(r,t.element),p=HI(d);return f.canvas.loadCanvas(p),await f.start(),f}loadOptions(t,n){this.plugins.forEach(r=>{var i;return(i=r.loadOptions)==null?void 0:i.call(r,t,n)})}loadParticlesOptions(t,n,...r){const i=this.updaters.get(t);i&&i.forEach(o=>{var s;return(s=o.loadOptions)==null?void 0:s.call(o,n,...r)})}async refresh(t=!0){t&&await Promise.all(this.items.map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const{items:n}=this;if(!n.length)throw new Error(`${dn} can only set click handlers after calling tsParticles.load()`);n.forEach(r=>r.addClickHandler(t))}}var Ro;(function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"})(Ro||(Ro={}));class qI{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.s!==void 0&&r.l!==void 0)return us(r)}handleRangeColor(t){const n=t.value,r=n.hsl??t.value;if(r.h!==void 0&&r.l!==void 0)return us({h:B(r.h),l:B(r.l),s:B(r.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,r=n.exec(t),i=4,o=1,s=10;return r?$z({a:r.length>i?MC(r[Ro.a]):o,h:parseInt(r[Ro.h],s),l:parseInt(r[Ro.l],s),s:parseInt(r[Ro.s],s)}):void 0}}var Ao;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"})(Ao||(Ao={}));class YI{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return r}handleRangeColor(t){const n=t.value,r=n.rgb??t.value;if(r.r!==void 0)return{r:B(r.r),g:B(r.g),b:B(r.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,r=n.exec(t),i=10;return r?{a:r.length>4?MC(r[Ao.a]):1,b:parseInt(r[Ao.b],i),g:parseInt(r[Ao.g],i),r:parseInt(r[Ao.r],i)}:void 0}}function QI(){const e=new YI,t=new qI;c1(e),c1(t);const n=new KI;return n.init(),n}class Jn{constructor(t){this.type=hs.external,this.container=t}}class zg{constructor(t){this.type=hs.particles,this.container=t}}var on;(function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"})(on||(on={}));var P1;(function(e){e.linear="linear",e.radial="radial",e.random="random"})(P1||(P1={}));var Ai;(function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"})(Ai||(Ai={}));const Ig=QI();Vi()||(window.tsParticles=Ig);const XI=e=>{const t=e.id??"tsparticles";return P.useEffect(()=>{let n;return Ig.load({id:t,url:e.url,options:e.options}).then(r=>{var i;n=r,(i=e.particlesLoaded)==null||i.call(e,r)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),T.jsx("div",{id:t,className:e.className})};async function ZI(e){await e(Ig)}const wp=.5,Ti=0,Pn=1,T1=60,_1=0,JI=.01;function eL(e){const t=e.initialPosition,{dx:n,dy:r}=bt(t,e.position),i=Math.abs(n),o=Math.abs(r),{maxDistance:s}=e.retina,a=s.horizontal,l=s.vertical;if(!a&&!l)return;const c=(a&&i>=a)??!1,u=(l&&o>=l)??!1;if((c||u)&&!e.misplaced)e.misplaced=!!a&&i>a||!!l&&o>l,a&&(e.velocity.x=e.velocity.y*wp-e.velocity.x),l&&(e.velocity.y=e.velocity.x*wp-e.velocity.y);else if((!a||it.x&&d.x>Ti)&&(d.x*=-me()),l&&(f.yt.y&&d.y>Ti)&&(d.y*=-me())}}function tL(e,t,n,r,i,o){rL(e,o);const s=e.gravity,a=s!=null&&s.enable&&s.inverse?-Pn:Pn;i&&n&&(e.velocity.x+=i*o.factor/(T1*n)),s!=null&&s.enable&&n&&(e.velocity.y+=a*(s.acceleration*o.factor)/(T1*n));const l=e.moveDecay;e.velocity.multTo(l);const c=e.velocity.mult(n);s!=null&&s.enable&&r>Ti&&(!s.inverse&&c.y>=Ti&&c.y>=r||s.inverse&&c.y<=Ti&&c.y<=-r)&&(c.y=a*r,n&&(e.velocity.y=c.y/n));const u=e.options.zIndex,f=(Pn-e.zIndexFactor)**u.velocityRate;c.multTo(f);const{position:d}=e;d.addTo(c),t.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function nL(e,t){const n=e.container;if(!e.spin)return;const r={x:e.spin.direction===on.clockwise?Math.cos:Math.sin,y:e.spin.direction===on.clockwise?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*r.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*r.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;const i=Math.max(n.canvas.size.width,n.canvas.size.height),o=i*wp;e.spin.radius>o?(e.spin.radius=o,e.spin.acceleration*=-Pn):e.spin.radius<_1&&(e.spin.radius=_1,e.spin.acceleration*=-Pn),e.spin.angle+=t*JI*(Pn-e.spin.radius/i)}function rL(e,t){var s;const n=e.options,r=n.move.path;if(!r.enable)return;if(e.lastPathTime<=e.pathDelay){e.lastPathTime+=t.value;return}const o=(s=e.pathGenerator)==null?void 0:s.generate(e,t);o&&e.velocity.addTo(o),r.clamp&&(e.velocity.x=hn(e.velocity.x,-Pn,Pn),e.velocity.y=hn(e.velocity.y,-Pn,Pn)),e.lastPathTime-=e.pathDelay}function iL(e){return e.slow.inRange?e.slow.factor:Pn}function oL(e){const t=e.container,n=e.options,r=n.move.spin;if(!r.enable)return;const i=r.position??{x:50,y:50},o=.01,s={x:i.x*o*t.canvas.size.width,y:i.y*o*t.canvas.size.height},a=e.getPosition(),l=Bt(a,s),c=B(r.acceleration);e.retina.spinAcceleration=c*t.retina.pixelRatio;const u=0;e.spin={center:s,direction:e.velocity.x>=u?on.clockwise:on.counterClockwise,angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}const sL=2,aL=1,lL=1;class cL{init(t){const n=t.options,r=n.move.gravity;t.gravity={enable:r.enable,acceleration:B(r.acceleration),inverse:r.inverse},oL(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,n){var h,b;const r=t.options,i=r.move;if(!i.enable)return;const o=t.container,s=o.retina.pixelRatio;(h=t.retina).moveSpeed??(h.moveSpeed=B(i.speed)*s),(b=t.retina).moveDrift??(b.moveDrift=B(t.options.move.drift)*s);const a=iL(t),l=t.retina.moveSpeed*o.retina.reduceFactor,c=t.retina.moveDrift,u=Un(r.size.value)*s,f=i.size?t.getRadius()/u:aL,d=n.factor||lL,p=l*f*a*d/sL,g=t.retina.maxSpeed??o.retina.maxSpeed;i.spin.enable?nL(t,p):tL(t,i,p,g,c,n),eL(t)}}async function uL(e,t=!0){await e.addMover("base",()=>Promise.resolve(new cL),t)}const fL=2,dL=Math.PI*fL,hL=0,$1={x:0,y:0};function pL(e){const{context:t,particle:n,radius:r}=e;n.circleRange||(n.circleRange={min:hL,max:dL});const i=n.circleRange;t.arc($1.x,$1.y,r,i.min,i.max,!1)}const mL=12,gL=360,M1=0;class yL{constructor(){this.validTypes=["circle"]}draw(t){pL(t)}getSidesCount(){return mL}particleInit(t,n){const r=n.shapeData,i=(r==null?void 0:r.angle)??{max:gL,min:M1};n.circleRange=Eo(i)?{min:Hr(i.min),max:Hr(i.max)}:{min:M1,max:Hr(i)}}}async function vL(e,t=!0){await e.addShape(new yL,t)}class xL{constructor(t){this.container=t}init(t){const n=Ua(t.options.color,t.id,t.options.reduceDuplicates);n&&(t.color=BC(n,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:n,s:r,l:i}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&((o==null?void 0:o.h.value)!==void 0&&n.enable||(o==null?void 0:o.s.value)!==void 0&&r.enable||(o==null?void 0:o.l.value)!==void 0&&i.enable)}update(t,n){NC(t.color,n)}}async function bL(e,t=!0){await e.addParticleUpdater("color",n=>Promise.resolve(new xL(n)),t)}class wL{constructor(t){this.container=t}init(t){const n=t.options.opacity,r=1;t.opacity=zC(n,r);const i=n.animation;i.enable&&(t.opacity.velocity=B(i.speed)/Lr*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=me()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,n){!this.isEnabled(t)||!t.opacity||Eg(t,t.opacity,!0,t.options.opacity.animation.destroy,n)}}async function SL(e,t=!0){await e.addParticleUpdater("opacity",n=>Promise.resolve(new wL(n)),t)}const du=0,Ho=0;function kL(e){if(e.outMode!==We.bounce&&e.outMode!==We.split||e.direction!==q.left&&e.direction!==q.right)return;e.bounds.righte.canvasSize.width&&e.direction===q.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let n=!1;if(e.direction===q.right&&e.bounds.right>=e.canvasSize.width&&t>du||e.direction===q.left&&e.bounds.left<=Ho&&t=e.canvasSize.width&&e.direction===q.right?e.particle.position.x=e.canvasSize.width-r:e.bounds.left<=Ho&&e.direction===q.left&&(e.particle.position.x=r),e.outMode===We.split&&e.particle.destroy()}function CL(e){if(e.outMode!==We.bounce&&e.outMode!==We.split||e.direction!==q.bottom&&e.direction!==q.top)return;e.bounds.bottome.canvasSize.height&&e.direction===q.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let n=!1;if(e.direction===q.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>du||e.direction===q.top&&e.bounds.top<=Ho&&t=e.canvasSize.height&&e.direction===q.bottom?e.particle.position.y=e.canvasSize.height-r:e.bounds.top<=Ho&&e.direction===q.top&&(e.particle.position.y=r),e.outMode===We.split&&e.particle.destroy()}class PL{constructor(t){this.container=t,this.modes=[We.bounce,We.split]}update(t,n,r,i){if(!this.modes.includes(i))return;const o=this.container;let s=!1;for(const d of o.plugins.values())if(d.particleBounce!==void 0&&(s=d.particleBounce(t,r,n)),s)break;if(s)return;const a=t.getPosition(),l=t.offset,c=t.getRadius(),u=hl(a,c),f=o.canvas.size;kL({particle:t,outMode:i,direction:n,bounds:u,canvasSize:f,offset:l,size:c}),CL({particle:t,outMode:i,direction:n,bounds:u,canvasSize:f,offset:l,size:c})}}const Ul=0;class TL{constructor(t){this.container=t,this.modes=[We.destroy]}update(t,n,r,i){if(!this.modes.includes(i))return;const o=this.container;switch(t.outType){case Mn.normal:case Mn.outside:if(_g(t.position,o.canvas.size,qe.origin,t.getRadius(),n))return;break;case Mn.inside:{const{dx:s,dy:a}=bt(t.position,t.moveCenter),{x:l,y:c}=t.velocity;if(lt.moveCenter.radius||ct.moveCenter.radius||l>=Ul&&s<-t.moveCenter.radius||c>=Ul&&a<-t.moveCenter.radius)return;break}}o.particles.remove(t,t.group,!0)}}const Hl=0;class _L{constructor(t){this.container=t,this.modes=[We.none]}update(t,n,r,i){if(!this.modes.includes(i)||((t.options.move.distance.horizontal&&(n===q.left||n===q.right))??(t.options.move.distance.vertical&&(n===q.top||n===q.bottom))))return;const o=t.options.move.gravity,s=this.container,a=s.canvas.size,l=t.getRadius();if(o.enable){const c=t.position;(!o.inverse&&c.y>a.height+l&&n===q.bottom||o.inverse&&c.y<-l&&n===q.top)&&s.particles.remove(t)}else{if(t.velocity.y>Hl&&t.position.y<=a.height+l||t.velocity.y=-l||t.velocity.x>Hl&&t.position.x<=a.width+l||t.velocity.x=-l)return;_g(t.position,s.canvas.size,qe.origin,l,n)||s.particles.remove(t)}}}const Gl=0,Kl=0;class $L{constructor(t){this.container=t,this.modes=[We.out]}update(t,n,r,i){if(!this.modes.includes(i))return;const o=this.container;switch(t.outType){case Mn.inside:{const{x:s,y:a}=t.velocity,l=qe.origin;l.length=t.moveCenter.radius,l.angle=t.velocity.angle+Math.PI,l.addTo(qe.create(t.moveCenter));const{dx:c,dy:u}=bt(t.position,l);if(s<=Gl&&c>=Kl||a<=Gl&&u>=Kl||s>=Gl&&c<=Kl||a>=Gl&&u<=Kl)return;t.position.x=Math.floor(Dt({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(Dt({min:0,max:o.canvas.size.height}));const{dx:f,dy:d}=bt(t.position,t.moveCenter);t.direction=Math.atan2(-d,-f),t.velocity.angle=t.direction;break}default:{if(_g(t.position,o.canvas.size,qe.origin,t.getRadius(),n))return;switch(t.outType){case Mn.outside:{t.position.x=Math.floor(Dt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(Dt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:s,dy:a}=bt(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(a,s),t.velocity.angle=t.direction);break}case Mn.normal:{const s=t.options.move.warp,a=o.canvas.size,l={bottom:a.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:a.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},c=t.getRadius(),u=hl(t.position,c);n===q.right&&u.left>a.width+t.offset.x?(t.position.x=l.left,t.initialPosition.x=t.position.x,s||(t.position.y=me()*a.height,t.initialPosition.y=t.position.y)):n===q.left&&u.right<-t.offset.x&&(t.position.x=l.right,t.initialPosition.x=t.position.x,s||(t.position.y=me()*a.height,t.initialPosition.y=t.position.y)),n===q.bottom&&u.top>a.height+t.offset.y?(s||(t.position.x=me()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.top,t.initialPosition.y=t.position.y):n===q.top&&u.bottom<-t.offset.y&&(s||(t.position.x=me()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.bottom,t.initialPosition.y=t.position.y);break}}break}}}}const ML=(e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t;class EL{constructor(t){this._addUpdaterIfMissing=(n,r,i)=>{const o=n.options.move.outModes;!this.updaters.has(r)&&ML(o,r)&&this.updaters.set(r,i(this.container))},this._updateOutMode=(n,r,i,o)=>{for(const s of this.updaters.values())s.update(n,o,r,i)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,We.bounce,n=>new PL(n)),this._addUpdaterIfMissing(t,We.out,n=>new $L(n)),this._addUpdaterIfMissing(t,We.destroy,n=>new TL(n)),this._addUpdaterIfMissing(t,We.none,n=>new _L(n))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,n){const r=t.options.move.outModes;this._updateOutMode(t,n,r.bottom??r.default,q.bottom),this._updateOutMode(t,n,r.left??r.default,q.left),this._updateOutMode(t,n,r.right??r.default,q.right),this._updateOutMode(t,n,r.top??r.default,q.top)}}async function RL(e,t=!0){await e.addParticleUpdater("outModes",n=>Promise.resolve(new EL(n)),t)}const ci=0;class AL{init(t){const n=t.container,r=t.options.size,i=r.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/Lr*n.retina.reduceFactor,i.sync||(t.size.velocity*=me()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??ci)<=ci||(t.size.maxLoops??ci)>ci&&(t.size.loops??ci)<(t.size.maxLoops??ci))}reset(t){t.size.loops=ci}update(t,n){this.isEnabled(t)&&Eg(t,t.size,!0,t.options.size.animation.destroy,n)}}async function OL(e,t=!0){await e.addParticleUpdater("size",()=>Promise.resolve(new AL),t)}async function zL(e,t=!0){await uL(e,!1),await vL(e,!1),await bL(e,!1),await SL(e,!1),await RL(e,!1),await OL(e,!1),await e.refresh(t)}async function IL(){Md(Ai.easeInQuad,e=>e**2),Md(Ai.easeOutQuad,e=>1-(1-e)**2),Md(Ai.easeInOutQuad,e=>e<.5?2*e**2:1-(-2*e+2)**2/2),await Promise.resolve()}function LL(e,t){const{context:n,opacity:r}=e,i=.5,o=n.globalAlpha;if(!t)return;const s=t.width,a=s*i;n.globalAlpha=r,n.drawImage(t,-a,-a,s,s),n.globalAlpha=o}const Fd='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',E1=0;class DL{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[t,n]of this._emojiShapeDict)n instanceof ImageBitmap&&(n==null||n.close()),this._emojiShapeDict.delete(t)}draw(t){const n=t.particle.emojiDataKey;if(!n)return;const r=this._emojiShapeDict.get(n);r&&LL(t,r)}async init(t){const n=t.actualOptions,{validTypes:r}=this;if(!r.find(s=>ze(s,n.particles.shape.type)))return;const i=[l1(Fd)],o=r.map(s=>n.particles.shape.options[s]).find(s=>!!s);o&&gn(o,s=>{s.font&&i.push(l1(s.font))}),await Promise.all(i)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,n){const i=n.shapeData;if(!(i!=null&&i.value))return;const o=Cn(i.value,n.randomIndexData);if(!o)return;const s=typeof o=="string"?{font:i.font??Fd,padding:i.padding??E1,value:o}:{font:Fd,padding:E1,...i,...o},a=s.font,l=s.value,c=`${l}_${a}`;if(this._emojiShapeDict.has(c)){n.emojiDataKey=c;return}const u=s.padding*2,f=Un(n.size.value),d=f+u,p=d*2;let g;if(typeof OffscreenCanvas<"u"){const h=new OffscreenCanvas(p,p),b=h.getContext("2d");if(!b)return;b.font=`400 ${f*2}px ${a}`,b.textBaseline="middle",b.textAlign="center",b.fillText(l,d,d),g=h.transferToImageBitmap()}else{const h=document.createElement("canvas");h.width=p,h.height=p;const b=h.getContext("2d");if(!b)return;b.font=`400 ${f*2}px ${a}`,b.textBaseline="middle",b.textAlign="center",b.fillText(l,d,d),g=h}this._emojiShapeDict.set(c,g),n.emojiDataKey=c}}async function FL(e,t=!0){await e.addShape(new DL,t)}const jL=1,BL=1,YC=0;function QC(e,t,n,r,i){const o=e.actualOptions.interactivity.modes.attract;if(!o)return;const s=e.particles.quadTree.query(r,i);for(const a of s){const{dx:l,dy:c,distance:u}=bt(a.position,t),f=o.speed*o.factor,d=hn($C(o.easing)(BL-u/n)*f,jL,o.maxSpeed),p=qe.create(u?l/u*d:f,u?c/u*d:f);a.position.subFrom(p)}}function NL(e,t){e.attract||(e.attract={particles:[]});const{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count===e.particles.count&&(n.finish=!0)),n.clicking){const r=e.interactivity.mouse.clickPosition,i=e.retina.attractModeDistance;if(!i||it(o))}else n.clicking===!1&&(n.particles=[])}function VL(e,t){const n=e.interactivity.mouse.position,r=e.retina.attractModeDistance;!r||rt(i))}class WL{constructor(){this.distance=200,this.duration=.4,this.easing=Ai.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){I(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed),t.speed!==void 0&&(this.speed=t.speed))}}const Vs="attract";let UL=class extends Jn{constructor(t,n){super(n),this._engine=t,n.attract||(n.attract={particles:[]}),this.handleClickMode=r=>{const i=this.container.actualOptions,o=i.interactivity.modes.attract;if(!(!o||r!==Vs)){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const s of n.attract.particles)this.isEnabled(s)&&s.velocity.setTo(s.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},o.duration*ut)}}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.attract;n&&(t.retina.attractModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,r=t.interactivity.status===ji,i=n.interactivity.events,{enable:o,mode:s}=i.onHover,{enable:a,mode:l}=i.onClick;r&&o&&ze(Vs,s)?VL(this.container,c=>this.isEnabled(c)):a&&ze(Vs,l)&&NL(this.container,c=>this.isEnabled(c))}isEnabled(t){const n=this.container,r=n.actualOptions,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??r.interactivity).events;if((!i.position||!o.onHover.enable)&&(!i.clickPosition||!o.onClick.enable))return!1;const s=o.onHover.mode,a=o.onClick.mode;return ze(Vs,s)||ze(Vs,a)}loadModeOptions(t,...n){t.attract||(t.attract=new WL);for(const r of n)t.attract.load(r==null?void 0:r.attract)}reset(){}};async function HL(e,t=!0){await e.addInteractor("externalAttract",n=>Promise.resolve(new UL(e,n)),t)}const GL=2,Sc=.5,KL=Math.PI*Sc,R1=2,XC=10,qL=0;function ZC(e,t,n,r,i){const o=e.particles.quadTree.query(r,i);for(const s of o)r instanceof dt?AC(yp(s),{position:t,radius:n,mass:n**GL*KL,velocity:qe.origin,factor:qe.origin}):r instanceof Rn&&kz(s,hl(t,n))}function YL(e,t,n,r){const i=document.querySelectorAll(t);i.length&&i.forEach(o=>{const s=o,a=e.retina.pixelRatio,l={x:(s.offsetLeft+s.offsetWidth*Sc)*a,y:(s.offsetTop+s.offsetHeight*Sc)*a},c=s.offsetWidth*Sc*a,u=XC*a,f=n.type===ds.circle?new dt(l.x,l.y,c+u):new Rn(s.offsetLeft*a-u,s.offsetTop*a-u,s.offsetWidth*a+u*R1,s.offsetHeight*a+u*R1);r(l,c,f)})}function QL(e,t,n,r){Mg(n,t,(i,o)=>YL(e,i,o,(s,a,l)=>ZC(e,s,a,l,r)))}function XL(e,t){const n=e.retina.pixelRatio,r=XC*n,i=e.interactivity.mouse.position,o=e.retina.bounceModeDistance;!o||othis.isEnabled(l)):QL(this.container,a,ql,l=>this.isEnabled(l))}isEnabled(t){const n=this.container,r=n.actualOptions,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??r.interactivity).events,s=o.onDiv;return!!i.position&&o.onHover.enable&&ze(ql,o.onHover.mode)||$g(ql,s)}loadModeOptions(t,...n){t.bounce||(t.bounce=new ZL);for(const r of n)t.bounce.load(r==null?void 0:r.bounce)}reset(){}}async function eD(e,t=!0){await e.addInteractor("externalBounce",n=>Promise.resolve(new JL(n)),t)}class JC{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!I(t)){if(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.mix!==void 0&&(this.mix=t.mix),t.opacity!==void 0&&(this.opacity=t.opacity),t.color!==void 0){const n=Zn(this.color)?void 0:this.color;this.color=gn(t.color,r=>mt.create(n,r))}t.size!==void 0&&(this.size=t.size)}}}class tD extends JC{constructor(){super(),this.selectors=[]}load(t){super.load(t),!I(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class nD extends JC{load(t){super.load(t),!I(t)&&(this.divs=gn(t.divs,n=>{const r=new tD;return r.load(n),r}))}}var Dn;(function(e){e.color="color",e.opacity="opacity",e.size="size"})(Dn||(Dn={}));function A1(e,t,n,r){if(t>=n){const i=e+(t-n)*r;return hn(i,e,t)}else if(t{var c;const n=this.container,r=n.actualOptions,i=n.interactivity.mouse.clickPosition,o=r.interactivity.modes.bubble;if(!o||!i)return;n.bubble||(n.bubble={});const s=n.retina.bubbleModeDistance;if(!s||sthis.isEnabled(u)),{bubble:l}=n;for(const u of a){if(!l.clicking)continue;u.bubble.inRange=!l.durationEnd;const f=u.getPosition(),d=Bt(f,i),p=(new Date().getTime()-(n.interactivity.mouse.clickTime??rD))/ut;p>o.duration&&(l.durationEnd=!0),p>o.duration*iD&&(l.clicking=!1,l.durationEnd=!1);const g={bubbleObj:{optValue:n.retina.bubbleModeSize,value:u.bubble.radius},particlesObj:{optValue:Un(u.options.size.value)*n.retina.pixelRatio,value:u.size.value},type:Dn.size};this._process(u,d,p,g);const h={bubbleObj:{optValue:o.opacity,value:u.bubble.opacity},particlesObj:{optValue:Un(u.options.opacity.value),value:((c=u.opacity)==null?void 0:c.value)??O1},type:Dn.opacity};this._process(u,d,p,h),!l.durationEnd&&d<=s?this._hoverBubbleColor(u,d):delete u.bubble.color}},this._hoverBubble=()=>{const n=this.container,r=n.interactivity.mouse.position,i=n.retina.bubbleModeDistance;if(!i||ithis.isEnabled(s));for(const s of o){s.bubble.inRange=!0;const a=s.getPosition(),l=Bt(a,r),c=z1-l/i;l<=i?c>=sD&&n.interactivity.status===ji&&(this._hoverBubbleSize(s,c),this._hoverBubbleOpacity(s,c),this._hoverBubbleColor(s,c)):this.reset(s),n.interactivity.status===mp&&this.reset(s)}},this._hoverBubbleColor=(n,r,i)=>{const o=this.container.actualOptions,s=i??o.interactivity.modes.bubble;if(s){if(!n.bubble.finalColor){const a=s.color;if(!a)return;const l=Cn(a);n.bubble.finalColor=Ua(l)}if(n.bubble.finalColor)if(s.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?DC(Rg(a,n.bubble.finalColor,z1-r,r)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,r,i)=>{var f,d;const o=this.container,s=o.actualOptions,a=(i==null?void 0:i.opacity)??((f=s.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,c=((d=n.opacity)==null?void 0:d.value)??O1,u=A1(c,a,Un(l),r);u!==void 0&&(n.bubble.opacity=u)},this._hoverBubbleSize=(n,r,i)=>{const o=this.container,s=i!=null&&i.size?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(s===void 0)return;const a=Un(n.options.size.value)*o.retina.pixelRatio,l=n.size.value,c=A1(l,s,a,r);c!==void 0&&(n.bubble.radius=c)},this._process=(n,r,i,o)=>{const s=this.container,a=o.bubbleObj.optValue,l=s.actualOptions,c=l.interactivity.modes.bubble;if(!c||a===void 0)return;const u=c.duration,f=s.retina.bubbleModeDistance,d=o.particlesObj.optValue,p=o.bubbleObj.value,g=o.particlesObj.value??oD,h=o.type;if(!(!f||f{const o=this.container,s=document.querySelectorAll(r),a=o.actualOptions.interactivity.modes.bubble;!a||!s.length||s.forEach(l=>{const c=l,u=o.retina.pixelRatio,f={x:(c.offsetLeft+c.offsetWidth*Bd)*u,y:(c.offsetTop+c.offsetHeight*Bd)*u},d=c.offsetWidth*Bd*u,p=i.type===ds.circle?new dt(f.x,f.y,d):new Rn(c.offsetLeft*u,c.offsetTop*u,c.offsetWidth*u,c.offsetHeight*u),g=o.particles.quadTree.query(p,h=>this.isEnabled(h));for(const h of g){if(!p.contains(h.getPosition()))continue;h.bubble.inRange=!0;const b=a.divs,m=RC(b,c);(!h.bubble.div||h.bubble.div!==c)&&(this.clear(h,n,!0),h.bubble.div=c),this._hoverBubbleSize(h,Nd,m),this._hoverBubbleOpacity(h,Nd,m),this._hoverBubbleColor(h,Nd,m)}})},t.bubble||(t.bubble={}),this.handleClickMode=n=>{n===ui&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,n,r){t.bubble.inRange&&!r||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.bubble;n&&(t.retina.bubbleModeDistance=n.distance*t.retina.pixelRatio,n.size!==void 0&&(t.retina.bubbleModeSize=n.size*t.retina.pixelRatio))}interact(t){const n=this.container.actualOptions,r=n.interactivity.events,i=r.onHover,o=r.onClick,s=i.enable,a=i.mode,l=o.enable,c=o.mode,u=r.onDiv;s&&ze(ui,a)?this._hoverBubble():l&&ze(ui,c)?this._clickBubble():Mg(ui,u,(f,d)=>this._singleSelectorHover(t,f,d))}isEnabled(t){const n=this.container,r=n.actualOptions,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??r.interactivity).events,{onClick:s,onDiv:a,onHover:l}=o,c=$g(ui,a);return c||l.enable&&i.position||s.enable&&i.clickPosition?ze(ui,l.mode)||ze(ui,s.mode)||c:!1}loadModeOptions(t,...n){t.bubble||(t.bubble=new nD);for(const r of n)t.bubble.load(r==null?void 0:r.bubble)}reset(t){t.bubble.inRange=!1}}async function lD(e,t=!0){await e.addInteractor("externalBubble",n=>Promise.resolve(new aD(n)),t)}class cD{constructor(){this.opacity=.5}load(t){I(t)||t.opacity!==void 0&&(this.opacity=t.opacity)}}class uD{constructor(){this.distance=80,this.links=new cD,this.radius=60}load(t){I(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links),t.radius!==void 0&&(this.radius=t.radius))}}const I1=0,L1=1,fD=0;function dD(e,t,n,r){const i=Math.floor(n.getRadius()/t.getRadius()),o=t.getFillColor(),s=n.getFillColor();if(!o||!s)return;const a=t.getPosition(),l=n.getPosition(),c=Rg(o,s,t.getRadius(),n.getRadius()),u=e.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(I1,Ha(o,r)),u.addColorStop(hn(i,I1,L1),gr(c,r)),u.addColorStop(L1,Ha(s,r)),u}function hD(e,t,n,r,i){ma(e,r,i),e.lineWidth=t,e.strokeStyle=n,e.stroke()}function pD(e,t,n,r){const i=e.actualOptions,o=i.interactivity.modes.connect;if(o)return dD(t,n,r,o.links.opacity)}function mD(e,t,n){e.canvas.draw(r=>{const i=pD(e,r,t,n);if(!i)return;const o=t.getPosition(),s=n.getPosition();hD(r,t.retina.linksWidth??fD,i,o,s)})}const gD="connect",D1=0;class yD extends Jn{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const r=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:o}=t.retina;if(!i||ithis.isEnabled(l));a.forEach((l,c)=>{const u=l.getPosition(),f=1;for(const d of a.slice(c+f)){const p=d.getPosition(),g=Math.abs(i),h=Math.abs(u.x-p.x),b=Math.abs(u.y-p.y);hPromise.resolve(new yD(n)),t)}class xD{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){I(t)||(t.blink!==void 0&&(this.blink=t.blink),t.color!==void 0&&(this.color=mt.create(this.color,t.color)),t.consent!==void 0&&(this.consent=t.consent),t.opacity!==void 0&&(this.opacity=t.opacity))}}class bD{constructor(){this.distance=100,this.links=new xD}load(t){I(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links))}}const wD=0;function SD(e,t,n,r,i,o){ma(e,n,r),e.strokeStyle=gr(i,o),e.lineWidth=t,e.stroke()}function kD(e,t,n,r,i){e.canvas.draw(o=>{const s=t.getPosition();SD(o,t.retina.linksWidth??wD,s,i,n,r)})}const CD="grab",PD=0,TD=0;class _D extends Jn{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var a;const t=this.container,n=t.actualOptions,r=n.interactivity;if(!r.modes.grab||!r.events.onHover.enable||t.interactivity.status!==ji)return;const i=t.interactivity.mouse.position;if(!i)return;const o=t.retina.grabModeDistance;if(!o||othis.isEnabled(l));for(const l of s){const c=l.getPosition(),u=Bt(c,i);if(u>o)continue;const f=r.modes.grab.links,d=f.opacity,p=d-u*d/o;if(p<=TD)continue;const g=f.color??((a=l.options.links)==null?void 0:a.color);if(!t.particles.grabLineColor&&g){const b=r.modes.grab.links;t.particles.grabLineColor=jC(g,b.blink,b.consent)}const h=xp(l,void 0,t.particles.grabLineColor);h&&kD(t,l,h,p,i)}}isEnabled(t){const n=this.container,r=n.interactivity.mouse,i=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return i.onHover.enable&&!!r.position&&ze(CD,i.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new bD);for(const r of n)t.grab.load(r==null?void 0:r.grab)}reset(){}}async function $D(e,t=!0){await e.addInteractor("externalGrab",n=>Promise.resolve(new _D(n)),t)}const MD="pause";class ED extends Jn{constructor(t){super(t),this.handleClickMode=n=>{if(n!==MD)return;const r=this.container;r.animationStatus?r.pause():r.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function RD(e,t=!0){await e.addInteractor("externalPause",n=>Promise.resolve(new ED(n)),t)}class AD{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(I(t))return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(r=>r)),this.groups.length||(this.default=!0);const n=t.quantity;n!==void 0&&(this.quantity=ee(n))}}const OD="push",zD=0;class ID extends Jn{constructor(t){super(t),this.handleClickMode=n=>{if(n!==OD)return;const r=this.container,i=r.actualOptions,o=i.interactivity.modes.push;if(!o)return;const s=B(o.quantity);if(s<=zD)return;const a=bf([void 0,...o.groups]),l=a!==void 0?r.actualOptions.particles.groups[a]:void 0;r.particles.push(s,r.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.push||(t.push=new AD);for(const r of n)t.push.load(r==null?void 0:r.push)}reset(){}}async function LD(e,t=!0){await e.addInteractor("externalPush",n=>Promise.resolve(new ID(n)),t)}class DD{constructor(){this.quantity=2}load(t){if(I(t))return;const n=t.quantity;n!==void 0&&(this.quantity=ee(n))}}const FD="remove";class jD extends Jn{constructor(t){super(t),this.handleClickMode=n=>{const r=this.container,i=r.actualOptions;if(!i.interactivity.modes.remove||n!==FD)return;const o=B(i.interactivity.modes.remove.quantity);r.particles.removeQuantity(o)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.remove||(t.remove=new DD);for(const r of n)t.remove.load(r==null?void 0:r.remove)}reset(){}}async function BD(e,t=!0){await e.addInteractor("externalRemove",n=>Promise.resolve(new jD(n)),t)}class e2{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=Ai.easeOutQuad}load(t){I(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.speed!==void 0&&(this.speed=t.speed),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed))}}class ND extends e2{constructor(){super(),this.selectors=[]}load(t){super.load(t),!I(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class VD extends e2{load(t){super.load(t),!I(t)&&(this.divs=gn(t.divs,n=>{const r=new ND;return r.load(n),r}))}}const fi="repulse",WD=0,UD=6,HD=3,GD=2,KD=0,qD=0,YD=1,Vd=.5;class QD extends Jn{constructor(t,n){super(n),this._clickRepulse=()=>{const r=this.container,i=r.actualOptions.interactivity.modes.repulse;if(!i)return;const o=r.repulse??{particles:[]};if(o.finish||(o.count||(o.count=0),o.count++,o.count===r.particles.count&&(o.finish=!0)),o.clicking){const s=r.retina.repulseModeDistance;if(!s||sthis.isEnabled(f));for(const f of u){const{dx:d,dy:p,distance:g}=bt(l,f.position),h=g**GD,b=i.speed,m=-a*b/h;if(h<=a){o.particles.push(f);const y=qe.create(d,p);y.length=m,f.velocity.setTo(y)}}}else if(o.clicking===!1){for(const s of o.particles)s.velocity.setTo(s.initialVelocity);o.particles=[]}},this._hoverRepulse=()=>{const r=this.container,i=r.interactivity.mouse.position,o=r.retina.repulseModeDistance;!o||o{const a=this.container,l=a.particles.quadTree.query(o,b=>this.isEnabled(b)),c=a.actualOptions.interactivity.modes.repulse;if(!c)return;const{easing:u,speed:f,factor:d,maxSpeed:p}=c,g=$C(u),h=((s==null?void 0:s.speed)??f)*d;for(const b of l){const{dx:m,dy:y,distance:v}=bt(b.position,r),w=hn(g(YD-v/i)*h,qD,p),S=qe.create(v?m/v*w:h,v?y/v*w:h);b.position.addTo(S)}},this._singleSelectorRepulse=(r,i)=>{const o=this.container,s=o.actualOptions.interactivity.modes.repulse;if(!s)return;const a=document.querySelectorAll(r);a.length&&a.forEach(l=>{const c=l,u=o.retina.pixelRatio,f={x:(c.offsetLeft+c.offsetWidth*Vd)*u,y:(c.offsetTop+c.offsetHeight*Vd)*u},d=c.offsetWidth*Vd*u,p=i.type===ds.circle?new dt(f.x,f.y,d):new Rn(c.offsetLeft*u,c.offsetTop*u,c.offsetWidth*u,c.offsetHeight*u),g=s.divs,h=RC(g,c);this._processRepulse(f,d,p,h)})},this._engine=t,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=r=>{const i=this.container.actualOptions,o=i.interactivity.modes.repulse;if(!o||r!==fi)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},o.duration*ut)}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.repulse;n&&(t.retina.repulseModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,r=t.interactivity.status===ji,i=n.interactivity.events,o=i.onHover,s=o.enable,a=o.mode,l=i.onClick,c=l.enable,u=l.mode,f=i.onDiv;r&&s&&ze(fi,a)?this._hoverRepulse():c&&ze(fi,u)?this._clickRepulse():Mg(fi,f,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(t){const n=this.container,r=n.actualOptions,i=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??r.interactivity).events,s=o.onDiv,a=o.onHover,l=o.onClick,c=$g(fi,s);if(!(c||a.enable&&i.position||l.enable&&i.clickPosition))return!1;const u=a.mode,f=l.mode;return ze(fi,u)||ze(fi,f)||c}loadModeOptions(t,...n){t.repulse||(t.repulse=new VD);for(const r of n)t.repulse.load(r==null?void 0:r.repulse)}reset(){}}async function XD(e,t=!0){await e.addInteractor("externalRepulse",n=>Promise.resolve(new QD(e,n)),t)}class ZD{constructor(){this.factor=3,this.radius=200}load(t){I(t)||(t.factor!==void 0&&(this.factor=t.factor),t.radius!==void 0&&(this.radius=t.radius))}}const JD="slow",e6=0;class t6 extends Jn{constructor(t){super(t)}clear(t,n,r){t.slow.inRange&&!r||(t.slow.factor=1)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.slow;n&&(t.retina.slowModeRadius=n.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){const n=this.container,r=n.interactivity.mouse,i=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return i.onHover.enable&&!!r.position&&ze(JD,i.onHover.mode)}loadModeOptions(t,...n){t.slow||(t.slow=new ZD);for(const r of n)t.slow.load(r==null?void 0:r.slow)}reset(t){t.slow.inRange=!1;const n=this.container,r=n.actualOptions,i=n.interactivity.mouse.position,o=n.retina.slowModeRadius,s=r.interactivity.modes.slow;if(!s||!o||oo||(f.inRange=!0,f.factor=c/u)}}async function n6(e,t=!0){await e.addInteractor("externalSlow",n=>Promise.resolve(new t6(n)),t)}const r6=0,i6=1,o6=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function s6(e,t,n){const{svgData:r}=e;if(!r)return"";const i=Ha(t,n);if(r.includes("fill"))return r.replace(o6,()=>i);const o=r.indexOf(">");return`${r.substring(r6,o)} fill="${i}"${r.substring(o)}`}async function Sf(e){return new Promise(t=>{e.loading=!0;const n=new Image;e.element=n,n.addEventListener("load",()=>{e.loading=!1,t()}),n.addEventListener("error",()=>{e.element=void 0,e.error=!0,e.loading=!1,Ni().error(`${dn} loading image: ${e.source}`),t()}),n.src=e.source})}async function a6(e){if(e.type!=="svg"){await Sf(e);return}e.loading=!0;const t=await fetch(e.source);t.ok?e.svgData=await t.text():(Ni().error(`${dn} Image not found`),e.error=!0),e.loading=!1}function l6(e,t,n,r){var s;const i=s6(e,n,((s=r.opacity)==null?void 0:s.value)??i6),o={color:n,gif:t.gif,data:{...e,svgData:i},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(a=>{const l=new Blob([i],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,u=c.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{o.loaded=!0,o.element=f,a(o),c.revokeObjectURL(u)});const d=async()=>{c.revokeObjectURL(u);const p={...e,error:!1,loading:!0};await Sf(p),o.loaded=!0,o.element=p.element,a(o)};f.addEventListener("error",()=>void d()),f.src=u})}const Wd=[0,4,2,1],F1=[8,8,4,2];class c6{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const n=this.data.slice(this.pos,this.pos+t);return this.pos+=n.length,n.reduce((r,i)=>r+String.fromCharCode(i),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",n=0;const r=0,i=0;do{n=this.data[this.pos++];for(let o=n;--o>=r;t+=String.fromCharCode(this.data[this.pos++]));}while(n!==i);return t}readSubBlocksBin(){let t=this.data[this.pos],n=0;const r=0,i=1;for(let s=0;t!==r;s+=t+i,t=this.data[this.pos+s])n+=t;const o=new Uint8Array(n);t=this.data[this.pos++];for(let s=0;t!==r;t=this.data[this.pos++])for(let a=t;--a>=r;o[s++]=this.data[this.pos++]);return o}skipSubBlocks(){for(const t=1,n=0;this.data[this.pos]!==n;this.pos+=this.data[this.pos]+t);this.pos++}}var wn;(function(e){e[e.Replace=0]="Replace",e[e.Combine=1]="Combine",e[e.RestoreBackground=2]="RestoreBackground",e[e.RestorePrevious=3]="RestorePrevious",e[e.UndefinedA=4]="UndefinedA",e[e.UndefinedB=5]="UndefinedB",e[e.UndefinedC=6]="UndefinedC",e[e.UndefinedD=7]="UndefinedD"})(wn||(wn={}));var ur;(function(e){e[e.Extension=33]="Extension",e[e.ApplicationExtension=255]="ApplicationExtension",e[e.GraphicsControlExtension=249]="GraphicsControlExtension",e[e.PlainTextExtension=1]="PlainTextExtension",e[e.CommentExtension=254]="CommentExtension",e[e.Image=44]="Image",e[e.EndOfFile=59]="EndOfFile"})(ur||(ur={}));const kt={x:0,y:0},u6=0,j1=.5,f6=0,B1=0,Sp=0;function t2(e,t){const n=[];for(let r=0;r>>5,i.disposalMethod=(o&28)>>>2,i.userInputDelayFlag=(o&2)===2;const s=(o&1)===1;i.delayTime=e.nextTwoBytes()*10;const a=e.nextByte();s&&r(a),e.pos++;break}case ur.ApplicationExtension:{e.pos++;const i={identifier:e.getString(8),authenticationCode:e.getString(3),data:e.readSubBlocksBin()};t.applicationExtensions.push(i);break}case ur.CommentExtension:{t.comments.push([n(!1),e.readSubBlocks()]);break}case ur.PlainTextExtension:{if(t.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");e.pos++,t.frames[n(!1)].plainTextData={left:e.nextTwoBytes(),top:e.nextTwoBytes(),width:e.nextTwoBytes(),height:e.nextTwoBytes(),charSize:{width:e.nextTwoBytes(),height:e.nextTwoBytes()},foregroundColor:e.nextByte(),backgroundColor:e.nextByte(),text:e.readSubBlocks()};break}default:e.skipSubBlocks();break}}async function h6(e,t,n,r,i,o){const s=t.frames[r(!0)];s.left=e.nextTwoBytes(),s.top=e.nextTwoBytes(),s.width=e.nextTwoBytes(),s.height=e.nextTwoBytes();const a=e.nextByte(),l=(a&128)===128,c=(a&64)===64;s.sortFlag=(a&32)===32,s.reserved=(a&24)>>>3;const u=1<<(a&7)+1;l&&(s.localColorTable=t2(e,u));const f=m=>{const{r:y,g:v,b:w}=(l?s.localColorTable:t.globalColorTable)[m];return m!==i(null)?{r:y,g:v,b:w,a:255}:{r:y,g:v,b:w,a:n?~~((y+v+w)/3):0}},d=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(m){if(m instanceof DOMException&&m.name==="IndexSizeError")return null;throw m}})();if(d==null)throw new EvalError("GIF frame size is to large");const p=e.nextByte(),g=e.readSubBlocksBin(),h=1<{const v=m>>>3,w=m&7;return(g[v]+(g[v+1]<<8)+(g[v+2]<<16)&(1<>>w};if(c){for(let m=0,y=p+1,v=0,w=[[0]],S=0;S<4;S++)if(Wd[S]=w.length?w.push(w[R].concat(w[R][0])):R!==h&&w.push(w[R].concat(w[m][0]));for(const x of w[m]){const{r:$,g:E,b:F,a:L}=f(x);d.data.set([$,E,F,L],Wd[S]*s.width+F1[S]*C+k%(s.width*4)),k+=4}w.length===1<=s.height&&(_=!0))}}s.image=d,s.bitmap=await createImageBitmap(d)}else{let m=0,y=p+1,v=0,w=-4,S=!1;const k=[[0]];for(;!S;){const C=m;if(m=b(v,y),v+=y,m===h){y=p+1,k.length=h+2;for(let _=0;_=k.length?k.push(k[C].concat(k[C][0])):C!==h&&k.push(k[C].concat(k[m][0]));for(const _ of k[m]){const{r:R,g:x,b:$,a:E}=f(_);d.data.set([R,x,$,E],w+=4)}k.length>=1<>>4,o.sortFlag=(a&8)===8;const c=1<<(a&7)+1,u=s.nextByte();o.pixelAspectRatio=s.nextByte(),o.pixelAspectRatio!==0&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=t2(s,c));const f=(()=>{try{return new ImageData(o.width,o.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:p,b:g}=o.globalColorTable[u];f.data.set(l?[d,p,g,255]:[0,0,0,0]);for(let w=4;w(w&&(b=!0),h),v=w=>(w!=null&&(m=w),m);try{do b&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:wn.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),h++,m=-1,b=!1);while(!await p6(s,o,n,y,v,t));o.frames.length--;for(const w of o.frames){if(w.userInputDelayFlag&&w.delayTime===0){o.totalTime=1/0;break}o.totalTime+=w.delayTime}return o}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${h} "${w.message}"`):w}}function y6(e){const{context:t,radius:n,particle:r,delta:i}=e,o=r.image;if(!(o!=null&&o.gifData)||!o.gif)return;const s=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=s.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(kt.x,kt.y,s.width,s.height),r.gifLoopCount===void 0&&(r.gifLoopCount=o.gifLoopCount??Sp);let l=r.gifFrame??u6;const c={x:-o.gifData.width*j1,y:-o.gifData.height*j1},u=o.gifData.frames[l];if(r.gifTime===void 0&&(r.gifTime=f6),!!u.bitmap){switch(t.scale(n/o.gifData.width,n/o.gifData.height),u.disposalMethod){case wn.UndefinedA:case wn.UndefinedB:case wn.UndefinedC:case wn.UndefinedD:case wn.Replace:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(kt.x,kt.y,s.width,s.height);break;case wn.Combine:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y);break;case wn.RestoreBackground:a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(kt.x,kt.y,s.width,s.height),o.gifData.globalColorTable.length?a.putImageData(o.gifData.backgroundImage,c.x,c.y):a.putImageData(o.gifData.frames[B1].image,c.x+u.left,c.y+u.top);break;case wn.RestorePrevious:{const f=a.getImageData(kt.x,kt.y,s.width,s.height);a.drawImage(u.bitmap,u.left,u.top),t.drawImage(s,c.x,c.y),a.clearRect(kt.x,kt.y,s.width,s.height),a.putImageData(f,kt.x,kt.y)}break}if(r.gifTime+=i.value,r.gifTime>u.delayTime){if(r.gifTime-=u.delayTime,++l>=o.gifData.frames.length){if(--r.gifLoopCount<=Sp)return;l=B1,a.clearRect(kt.x,kt.y,s.width,s.height)}r.gifFrame=l}t.scale(o.gifData.width/n,o.gifData.height/n)}}async function v6(e){if(e.type!=="gif"){await Sf(e);return}e.loading=!0;try{e.gifData=await g6(e.source),e.gifLoopCount=m6(e.gifData)??Sp,e.gifLoopCount||(e.gifLoopCount=1/0)}catch{e.error=!0}e.loading=!1}const x6=2,b6=1,w6=12,S6=1;class k6{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${dn} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??!1,src:n.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:n,radius:r,particle:i,opacity:o}=t,s=i.image,a=s==null?void 0:s.element;if(s){if(n.globalAlpha=o,s.gif&&s.gifData)y6(t);else if(a){const l=s.ratio,c={x:-r,y:-r},u=r*x6;n.drawImage(a,c.x,c.y,u,u/l)}n.globalAlpha=b6}}getSidesCount(){return w6}async init(t){const n=t.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const r of n.preload)await this._engine.loadImage(r)}loadShape(t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=t.shapeData;if(!n)return;this._engine.images.find(i=>i.name===n.name||i.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(t)})}particleInit(t,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const r=this._engine.images,i=n.shapeData;if(!i)return;const o=n.getFillColor(),s=r.find(l=>l.name===i.name||l.source===i.src);if(!s)return;const a=i.replaceColor??s.replaceColor;if(s.loading){setTimeout(()=>{this.particleInit(t,n)});return}(async()=>{let l;s.svgData&&o?l=await l6(s,i,o,n):l={color:o,data:s,element:s.element,gif:s.gif,gifData:s.gifData,gifLoopCount:s.gifLoopCount,loaded:!0,ratio:i.width&&i.height?i.width/i.height:s.ratio??S6,replaceColor:a,source:i.src},l.ratio||(l.ratio=1);const c=i.fill??n.shapeFill,u=i.close??n.shapeClose,f={image:l,fill:c,close:u};n.image=f.image,n.shapeFill=f.fill,n.shapeClose=f.close})()}}class C6{constructor(){this.src="",this.gif=!1}load(t){I(t)||(t.gif!==void 0&&(this.gif=t.gif),t.height!==void 0&&(this.height=t.height),t.name!==void 0&&(this.name=t.name),t.replaceColor!==void 0&&(this.replaceColor=t.replaceColor),t.src!==void 0&&(this.src=t.src),t.width!==void 0&&(this.width=t.width))}}class P6{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,n){if(!(n!=null&&n.preload))return;t.preload||(t.preload=[]);const r=t.preload;for(const i of n.preload){const o=r.find(s=>s.name===i.name||s.src===i.src);if(o)o.load(i);else{const s=new C6;s.load(i),r.push(s)}}}needsPlugin(){return!0}}const T6=3;function _6(e){e.loadImage||(e.loadImage=async t=>{if(!t.name&&!t.src)throw new Error(`${dn} no image source provided`);if(e.images||(e.images=[]),!e.images.find(n=>n.name===t.name||n.source===t.src))try{const n={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-T6),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};e.images.push(n);let r;t.gif?r=v6:r=t.replaceColor?a6:Sf,await r(n)}catch{throw new Error(`${dn} ${t.name??t.src} not found`)}})}async function $6(e,t=!0){_6(e);const n=new P6(e);await e.addPlugin(n,t),await e.addShape(new k6(e),t)}class M6 extends Ki{constructor(){super(),this.sync=!1}load(t){I(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class E6 extends Ki{constructor(){super(),this.sync=!1}load(t){I(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class R6{constructor(){this.count=0,this.delay=new M6,this.duration=new E6}load(t){I(t)||(t.count!==void 0&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}const io=0,A6=-1,N1=0,V1=0;function O6(e,t,n){if(!e.life)return;const r=e.life;let i=!1;if(e.spawning)if(r.delayTime+=t.value,r.delayTime>=e.life.delay)i=!0,e.spawning=!1,r.delayTime=io,r.time=io;else return;if(r.duration===A6||e.spawning||(i?r.time=io:r.time+=t.value,r.timeN1&&e.life.count--,e.life.count===N1){e.destroy();return}const o=ee(V1,n.width),s=ee(V1,n.width);e.position.x=Dt(o),e.position.y=Dt(s),e.spawning=!0,r.delayTime=io,r.time=io,e.reset();const a=e.options.life;a&&(r.delay=B(a.delay.value)*ut,r.duration=B(a.duration.value)*ut)}const di=0,W1=1,U1=-1;class z6{constructor(t){this.container=t}init(t){const n=this.container,r=t.options,i=r.life;i&&(t.life={delay:n.retina.reduceFactor?B(i.delay.value)*(i.delay.sync?W1:me())/n.retina.reduceFactor*ut:di,delayTime:di,duration:n.retina.reduceFactor?B(i.duration.value)*(i.duration.sync?W1:me())/n.retina.reduceFactor*ut:di,time:di,count:i.count},t.life.duration<=di&&(t.life.duration=U1),t.life.count<=di&&(t.life.count=U1),t.life&&(t.spawning=t.life.delay>di))}isEnabled(t){return!t.destroyed}loadOptions(t,...n){t.life||(t.life=new R6);for(const r of n)t.life.load(r==null?void 0:r.life)}update(t,n){!this.isEnabled(t)||!t.life||O6(t,n,this.container.canvas.size)}}async function I6(e,t=!0){await e.addParticleUpdater("life",async n=>Promise.resolve(new z6(n)),t)}function L6(e){const{context:t,particle:n,radius:r}=e,i=n.shapeData,o=0;t.moveTo(-r,o),t.lineTo(r,o),t.lineCap=(i==null?void 0:i.cap)??"butt"}const D6=1;class F6{constructor(){this.validTypes=["line"]}draw(t){L6(t)}getSidesCount(){return D6}}async function j6(e,t=!0){await e.addShape(new F6,t)}const H1=.5;class B6{init(){}isEnabled(t){return!Vi()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const n=t.container,r=n.actualOptions,i=r.interactivity.events.onHover.parallax;if(Vi()||!i.enable)return;const o=i.force,s=n.interactivity.mouse.position;if(!s)return;const a=n.canvas.size,l={x:a.width*H1,y:a.height*H1},c=i.smooth,u=t.getRadius()/o,f={x:(s.x-l.x)*u,y:(s.y-l.y)*u},{offset:d}=t;d.x+=(f.x-d.x)/c,d.y+=(f.y-d.y)/c}}async function N6(e,t=!0){await e.addMover("parallax",()=>Promise.resolve(new B6),t)}const G1=1e3,V6=1;class W6 extends zg{constructor(t){super(t)}clear(){}init(){}interact(t){const n=this.container;t.attractDistance===void 0&&(t.attractDistance=B(t.options.move.attract.distance)*n.retina.pixelRatio);const r=t.attractDistance,i=t.getPosition(),o=n.particles.quadTree.queryCircle(i,r);for(const s of o){if(t===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;const a=s.getPosition(),{dx:l,dy:c}=bt(i,a),u=t.options.move.attract.rotate,f=l/(u.x*G1),d=c/(u.y*G1),p=s.size.value/t.size.value,g=V6/p;t.velocity.x-=f*p,t.velocity.y-=d*p,s.velocity.x+=f*g,s.velocity.y+=d*g}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function U6(e,t=!0){await e.addInteractor("particlesAttract",n=>Promise.resolve(new W6(n)),t)}const H6=.5,G6=10,K6=0;function K1(e,t,n,r,i,o){const s=hn(e.options.collisions.absorb.speed*i.factor/G6,K6,r);e.size.value+=s*H6,n.size.value-=s,r<=o&&(n.size.value=0,n.destroy())}function q6(e,t,n,r){const i=e.getRadius(),o=t.getRadius();i===void 0&&o!==void 0?e.destroy():i!==void 0&&o===void 0?t.destroy():i!==void 0&&o!==void 0&&(i>=o?K1(e,i,t,o,n,r):K1(t,o,e,i,n,r))}const q1=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=B(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function n2(e,t){AC(yp(e),yp(t)),q1(e),q1(t)}function Y6(e,t){!e.unbreakable&&!t.unbreakable&&n2(e,t),e.getRadius()===void 0&&t.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&t.getRadius()===void 0?t.destroy():e.getRadius()!==void 0&&t.getRadius()!==void 0&&(e.getRadius()>=t.getRadius()?t:e).destroy()}function Q6(e,t,n,r){switch(e.options.collisions.mode){case Wo.absorb:{q6(e,t,n,r);break}case Wo.bounce:{n2(e,t);break}case Wo.destroy:{Y6(e,t);break}}}const X6=2;class Z6 extends zg{constructor(t){super(t)}clear(){}init(){}interact(t,n){if(t.destroyed||t.spawning)return;const r=this.container,i=t.getPosition(),o=t.getRadius(),s=r.particles.quadTree.queryCircle(i,o*X6);for(const a of s){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),c=a.getRadius();if(Math.abs(Math.round(i.z)-Math.round(l.z))>o+c)continue;const u=Bt(i,l),f=o+c;u>f||Q6(t,a,n,r.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function J6(e,t=!0){await e.addInteractor("particlesCollisions",n=>Promise.resolve(new Z6(n)),t)}const Ud=2;class eF extends dt{constructor(t,n,r,i){super(t,n,r),this.canvasSize=i,this.canvasSize={...i}}contains(t){const{width:n,height:r}=this.canvasSize,{x:i,y:o}=t;return super.contains(t)||super.contains({x:i-n,y:o})||super.contains({x:i-n,y:o-r})||super.contains({x:i,y:o-r})}intersects(t){if(super.intersects(t))return!0;const n=t,r=t,i={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(r.radius!==void 0){const o=new dt(i.x,i.y,r.radius*Ud);return super.intersects(o)}else if(n.size!==void 0){const o=new Rn(i.x,i.y,n.size.width*Ud,n.size.height*Ud);return super.intersects(o)}return!1}}class tF{constructor(){this.blur=5,this.color=new mt,this.color.value="#000",this.enable=!1}load(t){I(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=mt.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable))}}class nF{constructor(){this.enable=!1,this.frequency=1}load(t){I(t)||(t.color!==void 0&&(this.color=mt.create(this.color,t.color)),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity))}}class rF{constructor(){this.blink=!1,this.color=new mt,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new tF,this.triangles=new nF,this.width=1,this.warp=!1}load(t){I(t)||(t.id!==void 0&&(this.id=t.id),t.blink!==void 0&&(this.blink=t.blink),this.color=mt.create(this.color,t.color),t.consent!==void 0&&(this.consent=t.consent),t.distance!==void 0&&(this.distance=t.distance),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),t.width!==void 0&&(this.width=t.width),t.warp!==void 0&&(this.warp=t.warp))}}const Y1=2,iF=1,Yl={x:0,y:0},oF=0;function sF(e,t,n,r,i){const{dx:o,dy:s,distance:a}=bt(e,t);if(!i||a<=n)return a;const l={x:Math.abs(o),y:Math.abs(s)},c={x:Math.min(l.x,r.width-l.x),y:Math.min(l.y,r.height-l.y)};return Math.sqrt(c.x**Y1+c.y**Y1)}class aF extends zg{constructor(t){super(t),this._setColor=n=>{if(!n.options.links)return;const r=this.linkContainer,i=n.options.links;let o=i.id===void 0?r.particles.linksColor:r.particles.linksColors.get(i.id);if(o)return;const s=i.color;o=jC(s,i.blink,i.consent),i.id===void 0?r.particles.linksColor=o:r.particles.linksColors.set(i.id,o)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[];const n=t.getPosition(),r=this.container,i=r.canvas.size;if(n.xi.width||n.y>i.height)return;const o=t.options.links,s=o.opacity,a=t.retina.linksDistance??oF,l=o.warp;let c;l?c=new eF(n.x,n.y,a,i):c=new dt(n.x,n.y,a);const u=r.particles.quadTree.query(c);for(const f of u){const d=f.options.links;if(t===f||!(d!=null&&d.enable)||o.id!==d.id||f.spawning||f.destroyed||!f.links||t.links.some(b=>b.destination===f)||f.links.some(b=>b.destination===t))continue;const p=f.getPosition();if(p.xi.width||p.y>i.height)continue;const g=sF(n,p,a,i,l&&d.warp);if(g>a)continue;const h=(iF-g/a)*s;this._setColor(t),t.links.push({destination:f,opacity:h})}}isEnabled(t){var n;return!!((n=t.options.links)!=null&&n.enable)}loadParticlesOptions(t,...n){t.links||(t.links=new rF);for(const r of n)t.links.load(r==null?void 0:r.links)}reset(){}}async function lF(e,t=!0){await e.addInteractor("particlesLinks",async n=>Promise.resolve(new aF(n)),t)}function cF(e,t,n,r){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.lineTo(r.x,r.y),e.closePath()}function uF(e){let t=!1;const{begin:n,end:r,maxDistance:i,context:o,canvasSize:s,width:a,backgroundMask:l,colorLine:c,opacity:u,links:f}=e;if(Bt(n,r)<=i)ma(o,n,r),t=!0;else if(f.warp){let p,g;const h={x:r.x-s.width,y:r.y},b=bt(n,h);if(b.distance<=i){const m=n.y-b.dy/b.dx*n.x;p={x:0,y:m},g={x:s.width,y:m}}else{const m={x:r.x,y:r.y-s.height},y=bt(n,m);if(y.distance<=i){const w=-(n.y-y.dy/y.dx*n.x)/(y.dy/y.dx);p={x:w,y:0},g={x:w,y:s.height}}else{const v={x:r.x-s.width,y:r.y-s.height},w=bt(n,v);if(w.distance<=i){const S=n.y-w.dy/w.dx*n.x;p={x:-S/(w.dy/w.dx),y:S},g={x:p.x+s.width,y:p.y+s.height}}}}p&&g&&(ma(o,n,p),ma(o,r,g),t=!0)}if(!t)return;o.lineWidth=a,l.enable&&(o.globalCompositeOperation=l.composite),o.strokeStyle=gr(c,u);const{shadow:d}=f;if(d.enable){const p=$n(d.color);p&&(o.shadowBlur=d.blur,o.shadowColor=gr(p))}o.stroke()}function fF(e){const{context:t,pos1:n,pos2:r,pos3:i,backgroundMask:o,colorTriangle:s,opacityTriangle:a}=e;cF(t,n,r,i),o.enable&&(t.globalCompositeOperation=o.composite),t.fillStyle=gr(s,a),t.fill()}function dF(e){return e.sort((t,n)=>t-n),e.join("_")}function Q1(e,t){const n=dF(e.map(i=>i.id));let r=t.get(n);return r===void 0&&(r=me(),t.set(n,r)),r}const X1=0,Hd=0,Z1=0,hF=.5,pF=1;class mF{constructor(t){this.container=t,this._drawLinkLine=(n,r)=>{const i=n.options.links;if(!(i!=null&&i.enable))return;const o=this.container,s=o.actualOptions,a=r.destination,l=n.getPosition(),c=a.getPosition();let u=r.opacity;o.canvas.draw(f=>{var m;let d;const p=(m=n.options.twinkle)==null?void 0:m.lines;if(p!=null&&p.enable){const y=p.frequency,v=$n(p.color);me(){const o=n.options.links;if(!(o!=null&&o.enable))return;const s=o.triangles;if(!s.enable)return;const a=this.container,l=a.actualOptions,c=r.destination,u=i.destination,f=s.opacity??(r.opacity+i.opacity)*hF;f<=X1||a.canvas.draw(d=>{const p=n.getPosition(),g=c.getPosition(),h=u.getPosition(),b=n.retina.linksDistance??Z1;if(Bt(p,g)>b||Bt(h,g)>b||Bt(h,p)>b)return;let m=$n(s.color);if(!m){const y=o.id!==void 0?a.particles.linksColors.get(o.id):a.particles.linksColor;m=xp(n,c,y)}m&&fF({context:d,pos1:p,pos2:g,pos3:h,backgroundMask:l.backgroundMask,colorTriangle:m,opacityTriangle:f})})},this._drawTriangles=(n,r,i,o)=>{var l,c,u;const s=i.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((c=s.options.links)!=null&&c.triangles.enable)))return;const a=(u=s.links)==null?void 0:u.filter(f=>{const d=this._getLinkFrequency(s,f.destination);return s.options.links&&d<=s.options.links.frequency&&o.findIndex(g=>g.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(r,s,d)>n.links.triangles.frequency||this._drawLinkTriangle(r,i,f)}},this._getLinkFrequency=(n,r)=>Q1([n,r],this._freqs.links),this._getTriangleFrequency=(n,r,i)=>Q1([n,r,i],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,n){const{links:r,options:i}=n;if(!(r!=null&&r.length))return;const o=r.filter(s=>i.links&&(i.links.frequency>=pF||this._getLinkFrequency(n,s.destination)<=i.links.frequency));for(const s of o)this._drawTriangles(i,n,s,o),s.opacity>X1&&(n.retina.linksWidth??Hd)>Hd&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const n=this.container.retina.pixelRatio,{retina:r}=t,{distance:i,width:o}=t.options.links;r.linksDistance=i*n,r.linksWidth=o*n}particleDestroyed(t){t.links=[]}}class gF{constructor(){this.id="links"}getPlugin(t){return Promise.resolve(new mF(t))}loadOptions(){}needsPlugin(){return!0}}async function yF(e,t=!0){const n=new gF;await e.addPlugin(n,t)}async function vF(e,t=!0){await lF(e,t),await yF(e,t)}const xF=180,Ql={x:0,y:0},bF=2;function wF(e,t,n){const{context:r}=e,i=n.count.numerator*n.count.denominator,o=n.count.numerator/n.count.denominator,s=xF*(o-bF)/o,a=Math.PI-Hr(s);if(r){r.beginPath(),r.translate(t.x,t.y),r.moveTo(Ql.x,Ql.y);for(let l=0;l0?on.counterClockwise:on.clockwise),r){case on.counterClockwise:case"counterClockwise":t.rotate.status=je.decreasing;break;case on.clockwise:t.rotate.status=je.increasing;break}const i=n.animation;i.enable&&(t.rotate.decay=IF-B(i.decay),t.rotate.velocity=B(i.speed)/LF*this.container.retina.reduceFactor,i.sync||(t.rotate.velocity*=me())),t.rotation=t.rotate.value}isEnabled(t){const n=t.options.rotate;return n?!t.destroyed&&!t.spawning&&(!!n.value||n.animation.enable||n.path):!1}loadOptions(t,...n){t.rotate||(t.rotate=new OF);for(const r of n)t.rotate.load(r==null?void 0:r.rotate)}update(t,n){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(Eg(t,t.rotate,!1,Bi.none,n),t.rotation=t.rotate.value))}}async function FF(e,t=!0){await e.addParticleUpdater("rotate",n=>Promise.resolve(new DF(n)),t)}const jF=2,BF=Math.sqrt(jF),NF=2;function VF(e){const{context:t,radius:n}=e,r=n/BF,i=r*NF;t.rect(-r,-r,i,i)}const WF=4;class UF{constructor(){this.validTypes=["edge","square"]}draw(t){VF(t)}getSidesCount(){return WF}}async function HF(e,t=!0){await e.addShape(new UF,t)}const GF=2,oo={x:0,y:0};function KF(e){const{context:t,particle:n,radius:r}=e,i=n.sides,o=n.starInset??GF;t.moveTo(oo.x,oo.y-r);for(let s=0;sPromise.resolve(new JF(n)),t)}async function tj(e,t=!0){await N6(e,!1),await HL(e,!1),await eD(e,!1),await lD(e,!1),await vD(e,!1),await $D(e,!1),await RD(e,!1),await LD(e,!1),await BD(e,!1),await XD(e,!1),await n6(e,!1),await U6(e,!1),await J6(e,!1),await vF(e,!1),await IL(),await FL(e,!1),await $6(e,!1),await j6(e,!1),await RF(e,!1),await HF(e,!1),await XF(e,!1),await I6(e,!1),await FF(e,!1),await ej(e,!1),await zL(e,t)}const Lg="-",nj=e=>{const t=ij(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Lg);return a[0]===""&&a.length!==1&&a.shift(),o2(a,t)||rj(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},o2=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?o2(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Lg);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},tx=/^\[(.+)\]$/,rj=e=>{if(tx.test(e)){const t=tx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ij=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return sj(Object.entries(e.classGroups),n).forEach(([o,s])=>{kp(s,r,o,t)}),r},kp=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:nx(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(oj(i)){kp(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{kp(s,nx(t,o),n,r)})})},nx=(e,t)=>{let n=e;return t.split(Lg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},oj=e=>e.isThemeGetter,sj=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e,aj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},s2="!",lj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=a=>{const l=[];let c=0,u=0,f;for(let b=0;bu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},cj=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},uj=e=>({cache:aj(e.cacheSize),parseClassName:lj(e),...nj(e)}),fj=/\s+/,dj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(fj);let a="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(c);let g=!!p,h=r(g?d.substring(0,p):d);if(!h){if(!g){a=c+(a.length>0?" "+a:a);continue}if(h=r(d),!h){a=c+(a.length>0?" "+a:a);continue}g=!1}const b=cj(u).join(":"),m=f?b+s2:b,y=m+h;if(o.includes(y))continue;o.push(y);const v=i(h,g);for(let w=0;w0?" "+a:a)}return a};function hj(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(u),e());return n=uj(c),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=dj(l,n);return i(l,u),u}return function(){return o(hj.apply(null,arguments))}}const de=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},l2=/^\[(?:([a-z-]+):)?(.+)\]$/i,mj=/^\d+\/\d+$/,gj=new Set(["px","full","screen"]),yj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tr=e=>Go(e)||gj.has(e)||mj.test(e),Tr=e=>Ts(e,"length",Mj),Go=e=>!!e&&!Number.isNaN(Number(e)),Gd=e=>Ts(e,"number",Go),Ws=e=>!!e&&Number.isInteger(Number(e)),Sj=e=>e.endsWith("%")&&Go(e.slice(0,-1)),W=e=>l2.test(e),_r=e=>yj.test(e),kj=new Set(["length","size","percentage"]),Cj=e=>Ts(e,kj,c2),Pj=e=>Ts(e,"position",c2),Tj=new Set(["image","url"]),_j=e=>Ts(e,Tj,Rj),$j=e=>Ts(e,"",Ej),Us=()=>!0,Ts=(e,t,n)=>{const r=l2.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Mj=e=>vj.test(e)&&!xj.test(e),c2=()=>!1,Ej=e=>bj.test(e),Rj=e=>wj.test(e),Aj=()=>{const e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),i=de("borderColor"),o=de("borderRadius"),s=de("borderSpacing"),a=de("borderWidth"),l=de("contrast"),c=de("grayscale"),u=de("hueRotate"),f=de("invert"),d=de("gap"),p=de("gradientColorStops"),g=de("gradientColorStopPositions"),h=de("inset"),b=de("margin"),m=de("opacity"),y=de("padding"),v=de("saturate"),w=de("scale"),S=de("sepia"),k=de("skew"),C=de("space"),_=de("translate"),R=()=>["auto","contain","none"],x=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],E=()=>[W,t],F=()=>["",tr,Tr],L=()=>["auto",Go,W],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",W],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[Go,W];return{cacheSize:500,separator:":",theme:{colors:[Us],spacing:[tr,Tr],blur:["none","",_r,W],brightness:Q(),borderColor:[e],borderRadius:["none","","full",_r,W],borderSpacing:E(),borderWidth:F(),contrast:Q(),grayscale:D(),hueRotate:Q(),invert:D(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Sj,Tr],inset:$(),margin:$(),opacity:Q(),padding:E(),saturate:Q(),scale:Q(),sepia:D(),skew:Q(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[_r]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),W]}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ws,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Ws,W]}],"grid-cols":[{"grid-cols":[Us]}],"col-start-end":[{col:["auto",{span:["full",Ws,W]},W]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Us]}],"row-start-end":[{row:["auto",{span:[Ws,W]},W]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[_r]},_r]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_r,Tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gd]}],"font-family":[{font:[Us]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Go,Gd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tr,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tr,Tr]}],"underline-offset":[{"underline-offset":["auto",tr,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Pj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_j]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[tr,W]}],"outline-w":[{outline:[tr,Tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[tr,Tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_r,$j]}],"shadow-color":[{shadow:[Us]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_r,W]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Ws,W]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tr,Tr,Gd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Oj=pj(Aj);function rx(...e){return Oj(ve(e))}const zj=e=>{const{id:t="tsparticles",className:n,background:r="transparent",minSize:i=.6,maxSize:o=1.4,particleDensity:s=100,particleColor:a="#FFFFFF"}=e,[l,c]=P.useState(!1);P.useEffect(()=>{ZI(async f=>{await tj(f)}).then(()=>{c(!0)})},[]);const u=async()=>{};return l?T.jsx("div",{className:rx("w-full h-full",n),children:T.jsx(XI,{id:t,className:rx("h-full w-full"),particlesLoaded:u,options:{background:{color:{value:r}},fullScreen:{enable:!1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!0,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:100,duration:.4}}},particles:{color:{value:a},links:{color:a,distance:150,enable:!0,opacity:.5,width:1},collisions:{enable:!0},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:s},value:s},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:i,max:o}}},detectRetina:!0}})}):null},Cp=["AI solutions","Frontend UI","Backend solutions"],u2=Math.max(...Cp.map(e=>e.length)),Ij=" ".repeat(u2),f2=P.memo(({onComplete:e})=>{const[t,n]=P.useState(0),[r,i]=P.useState(""),[o,s]=P.useState(!1),a=P.useCallback(()=>{const l=Cp[t];return o?r.length>0?(i(l.slice(0,r.length-1)),80):(s(!1),n(c=>(c+1)%Cp.length),1500):r.length{const l=setTimeout(a,a());return()=>clearTimeout(l)},[a]),T.jsxs("div",{className:"inline-block relative",style:{minWidth:`${u2}ch`},children:[T.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500 whitespace-pre opacity-0",children:Ij}),T.jsx("span",{className:"absolute top-0 left-0 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",style:{clipPath:"inset(0 0 0 0)",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",backfaceVisibility:"hidden",transition:"color 0.3s ease-in-out"},children:r}),T.jsx(Re.span,{initial:{opacity:0},animate:{opacity:[0,1,1,0]},transition:{duration:1.2,ease:"easeInOut",times:[0,.2,.8,1],repeat:1/0,repeatDelay:.2},className:"inline-block w-[4px] h-4 md:h-6 lg:h-8 bg-blue-500 ml-1"})]})});f2.displayName="TypeWriter";function Lj(){return T.jsxs("div",{id:"home",className:"h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden rounded-md relative",children:[T.jsx("div",{className:"w-full absolute inset-0 h-screen",children:T.jsx(zj,{id:"tsparticlesfullpage",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),T.jsx("div",{className:"relative z-20 text-center",children:T.jsxs(Re.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:3.5},className:"flex flex-col items-center gap-4 p-8 backdrop-blur-sm rounded-lg border border-white/10 bg-black/20",children:[T.jsx(Re.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.2},className:"text-4xl md:text-6xl font-bold text-center bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Rushi M Goswami"}),T.jsx(Re.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.3},className:"text-xl md:text-2xl text-white/90 font-semibold",children:"Software Engineer"}),T.jsxs(Re.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:4.5,delay:1.4},className:"mt-4 w-full max-w-3xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold",children:[T.jsx("span",{className:"text-white/90",children:"Building next gen "}),T.jsx(f2,{})]})]})}),T.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"})]})}const zn={company:"Promact Infotech",role:"Software Engineer",duration:"July 2023 - Present",description:"Working as a Software Engineer specializing in AI/ML development.",achievements:["Developed and deployed multiple ML models improving business efficiency by 40%","Implemented NLP solutions for automated text analysis and processing","Created custom AI solutions for client-specific requirements","Optimized existing ML pipelines reducing processing time by 30%"],responsibilities:["Design and implement ML models for various business applications","Develop and maintain AI-powered software solutions","Collaborate with cross-functional teams for project delivery","Research and implement new AI/ML technologies"],education:{degree:"B.Tech in Computer Science",institution:"Marwadi University",duration:"2019-2023",gpa:"8.9/10"}};function Dj(){const e={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},t={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5}}};return T.jsxs("section",{id:"about",className:"relative py-20",children:[T.jsx("div",{className:"absolute inset-0 bg-black",children:T.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),T.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[T.jsx(Re.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"About Me"}),T.jsxs(Re.div,{variants:e,initial:"hidden",whileInView:"visible",className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[T.jsxs(Re.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[T.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Current Role"}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("p",{className:"text-white/80",children:zn.company}),T.jsx("p",{className:"text-white/70",children:zn.role}),T.jsx("p",{className:"text-white/60",children:zn.duration}),T.jsx("p",{className:"text-white/80 mt-4",children:zn.description})]})]}),T.jsxs(Re.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[T.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Education"}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("p",{className:"text-white/80",children:zn.education.degree}),T.jsx("p",{className:"text-white/70",children:zn.education.institution}),T.jsx("p",{className:"text-white/60",children:zn.education.duration}),T.jsxs("p",{className:"text-white/80 mt-4",children:["GPA: ",zn.education.gpa]})]})]}),T.jsxs(Re.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[T.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Key Achievements"}),T.jsx("ul",{className:"list-disc list-inside space-y-2",children:zn.achievements.map((n,r)=>T.jsx("li",{className:"text-white/80",children:n},r))})]}),T.jsxs(Re.div,{variants:t,whileHover:{scale:1.02},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/[0.07] transition-all",children:[T.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:"Responsibilities"}),T.jsx("ul",{className:"list-disc list-inside space-y-2",children:zn.responsibilities.map((n,r)=>T.jsx("li",{className:"text-white/80",children:n},r))})]})]})]})]})}function Fj(e){return kr("MuiSvgIcon",e)}ii("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jj=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bj=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${H(t)}`,`fontSize${H(n)}`]};return oi(i,Fj,r)},Nj=An("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${H(n.color)}`],t[`fontSize${H(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,c,u,f,d,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Pp=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,p=Ce(r,jj),g=P.isValidElement(i)&&i.type==="svg",h=z({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:g}),b={};u||(b.viewBox=d);const m=Bj(h);return T.jsxs(Nj,z({as:a,className:ve(m.root,o),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},b,p,g&&i.props,{ownerState:h,children:[g?i.props.children:i,f?T.jsx("title",{children:f}):null]}))});Pp.muiName="SvgIcon";function Vj(e,t){function n(r,i){return T.jsx(Pp,z({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Pp.muiName,P.memo(P.forwardRef(n))}function Tp(e,t){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tp(e,t)}function Wj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tp(e,t)}const ix=fo.createContext(null);function Uj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dg(e,t){var n=function(o){return t&&P.isValidElement(o)?t(o):o},r=Object.create(null);return e&&P.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Hj(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in t){if(r[l])for(s=0;s{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return oi(o,Qj,i)},Jj=An("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qt("#fff",z0(t.elevation))}, ${Qt("#fff",z0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),eB=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=Ce(r,Xj),u=z({},r,{component:o,elevation:s,square:a,variant:l}),f=Zj(u);return T.jsx(Jj,z({as:o,ownerState:u,className:ve(f.root,i),ref:n},c))});function tB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=P.useState(!1),d=ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=ve(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),P.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),T.jsx("span",{className:d,style:p,children:T.jsx("span",{className:g})})}const Jt=ii("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nB=["center","classes","className"];let kf=e=>e,ox,sx,ax,lx;const _p=550,rB=80,iB=Gu(ox||(ox=kf` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),oB=Gu(sx||(sx=kf` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),sB=Gu(ax||(ax=kf` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),aB=An("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lB=An(tB,{name:"MuiTouchRipple",slot:"Ripple"})(lx||(lx=kf` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Jt.rippleVisible,iB,_p,({theme:e})=>e.transitions.easing.easeInOut,Jt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Jt.child,Jt.childLeaving,oB,_p,({theme:e})=>e.transitions.easing.easeInOut,Jt.childPulsate,sB,({theme:e})=>e.transitions.easing.easeInOut),cB=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Ce(r,nB),[l,c]=P.useState([]),u=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=P.useRef(!1),p=dM(),g=P.useRef(null),h=P.useRef(null),b=P.useCallback(w=>{const{pulsate:S,rippleX:k,rippleY:C,rippleSize:_,cb:R}=w;c(x=>[...x,T.jsx(lB,{classes:{ripple:ve(o.ripple,Jt.ripple),rippleVisible:ve(o.rippleVisible,Jt.rippleVisible),ripplePulsate:ve(o.ripplePulsate,Jt.ripplePulsate),child:ve(o.child,Jt.child),childLeaving:ve(o.childLeaving,Jt.childLeaving),childPulsate:ve(o.childPulsate,Jt.childPulsate)},timeout:_p,pulsate:S,rippleX:k,rippleY:C,rippleSize:_},u.current)]),u.current+=1,f.current=R},[o]),m=P.useCallback((w={},S={},k=()=>{})=>{const{pulsate:C=!1,center:_=i||S.pulsate,fakeElement:R=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const x=R?null:h.current,$=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,F,L;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)E=Math.round($.width/2),F=Math.round($.height/2);else{const{clientX:G,clientY:Z}=w.touches&&w.touches.length>0?w.touches[0]:w;E=Math.round(G-$.left),F=Math.round(Z-$.top)}if(_)L=Math.sqrt((2*$.width**2+$.height**2)/3),L%2===0&&(L+=1);else{const G=Math.max(Math.abs((x?x.clientWidth:0)-E),E)*2+2,Z=Math.max(Math.abs((x?x.clientHeight:0)-F),F)*2+2;L=Math.sqrt(G**2+Z**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{b({pulsate:C,rippleX:E,rippleY:F,rippleSize:L,cb:k})},p.start(rB,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:C,rippleX:E,rippleY:F,rippleSize:L,cb:k})},[i,b,p]),y=P.useCallback(()=>{m({},{pulsate:!0})},[m]),v=P.useCallback((w,S)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{v(w,S)});return}g.current=null,c(k=>k.length>0?k.slice(1):k),f.current=S},[p]);return P.useImperativeHandle(n,()=>({pulsate:y,start:m,stop:v}),[y,m,v]),T.jsx(aB,z({className:ve(Jt.root,o.root,s),ref:h},a,{children:T.jsx(Fg,{component:null,exit:!0,children:l})}))});function uB(e){return kr("MuiButtonBase",e)}const fB=ii("MuiButtonBase",["root","disabled","focusVisible"]),dB=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],hB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=oi({root:["root",t&&"disabled",n&&"focusVisible"]},uB,i);return n&&r&&(s.root+=` ${r}`),s},pB=An("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cx=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:g,onClick:h,onContextMenu:b,onDragLeave:m,onFocus:y,onFocusVisible:v,onKeyDown:w,onKeyUp:S,onMouseDown:k,onMouseLeave:C,onMouseUp:_,onTouchEnd:R,onTouchMove:x,onTouchStart:$,tabIndex:E=0,TouchRippleProps:F,touchRippleRef:L,type:G}=r,Z=Ce(r,dB),Y=P.useRef(null),A=P.useRef(null),D=Kh(A,L),{isFocusVisibleRef:V,onFocus:Q,onBlur:Fe,ref:Yi}=bM(),[gt,Cr]=P.useState(!1);c&>&&Cr(!1),P.useImperativeHandle(i,()=>({focusVisible:()=>{Cr(!0),Y.current.focus()}}),[]);const[vn,Qi]=P.useState(!1);P.useEffect(()=>{Qi(!0)},[]);const N2=vn&&!u&&!c;P.useEffect(()=>{gt&&d&&!u&&vn&&A.current.pulsate()},[u,d,gt,vn]);function er(U,Xg,nP=f){return Dl(Zg=>(Xg&&Xg(Zg),!nP&&A.current&&A.current[U](Zg),!0))}const V2=er("start",k),W2=er("stop",b),U2=er("stop",m),H2=er("stop",_),G2=er("stop",U=>{gt&&U.preventDefault(),C&&C(U)}),K2=er("start",$),q2=er("stop",R),Y2=er("stop",x),Q2=er("stop",U=>{Fe(U),V.current===!1&&Cr(!1),g&&g(U)},!1),X2=Dl(U=>{Y.current||(Y.current=U.currentTarget),Q(U),V.current===!0&&(Cr(!0),v&&v(U)),y&&y(U)}),Lf=()=>{const U=Y.current;return l&&l!=="button"&&!(U.tagName==="A"&&U.href)},Df=P.useRef(!1),Z2=Dl(U=>{d&&!Df.current&>&&A.current&&U.key===" "&&(Df.current=!0,A.current.stop(U,()=>{A.current.start(U)})),U.target===U.currentTarget&&Lf()&&U.key===" "&&U.preventDefault(),w&&w(U),U.target===U.currentTarget&&Lf()&&U.key==="Enter"&&!c&&(U.preventDefault(),h&&h(U))}),J2=Dl(U=>{d&&U.key===" "&&A.current&>&&!U.defaultPrevented&&(Df.current=!1,A.current.stop(U,()=>{A.current.pulsate(U)})),S&&S(U),h&&U.target===U.currentTarget&&Lf()&&U.key===" "&&!U.defaultPrevented&&h(U)});let yl=l;yl==="button"&&(Z.href||Z.to)&&(yl=p);const $s={};yl==="button"?($s.type=G===void 0?"button":G,$s.disabled=c):(!Z.href&&!Z.to&&($s.role="button"),c&&($s["aria-disabled"]=c));const eP=Kh(n,Yi,Y),Qg=z({},r,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:E,focusVisible:gt}),tP=hB(Qg);return T.jsxs(pB,z({as:yl,className:ve(tP.root,a),ownerState:Qg,onBlur:Q2,onClick:h,onContextMenu:W2,onFocus:X2,onKeyDown:Z2,onKeyUp:J2,onMouseDown:V2,onMouseLeave:G2,onMouseUp:H2,onDragLeave:U2,onTouchEnd:q2,onTouchMove:Y2,onTouchStart:K2,ref:eP,tabIndex:c?-1:E,type:G},$s,Z,{children:[s,N2?T.jsx(cB,z({ref:D,center:o},F)):null]}))});function mB(e){return kr("MuiTypography",e)}ii("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yB=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${H(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return oi(a,mB,s)},vB=An("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${H(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ux={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bB=e=>xB[e]||e,fx=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiTypography"}),i=bB(r.color),o=ll(z({},r,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:d="body1",variantMapping:p=ux}=o,g=Ce(o,gB),h=z({},o,{align:s,color:i,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:d,variantMapping:p}),b=l||(f?"p":p[d]||ux[d])||"span",m=yB(h);return T.jsx(vB,z({as:b,ref:n,ownerState:h,className:ve(m.root,a)},g))}),wB=Vj(T.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function SB(e){return kr("MuiChip",e)}const J=ii("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kB=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],CB=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${H(r)}`,`color${H(i)}`,a&&"clickable",a&&`clickableColor${H(i)}`,s&&"deletable",s&&`deletableColor${H(i)}`,`${l}${H(i)}`],label:["label",`label${H(r)}`],avatar:["avatar",`avatar${H(r)}`,`avatarColor${H(i)}`],icon:["icon",`icon${H(r)}`,`iconColor${H(o)}`],deleteIcon:["deleteIcon",`deleteIcon${H(r)}`,`deleteIconColor${H(i)}`,`deleteIcon${H(l)}Color${H(i)}`]};return oi(c,SB,t)},PB=An("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${J.avatar}`]:t.avatar},{[`& .${J.avatar}`]:t[`avatar${H(a)}`]},{[`& .${J.avatar}`]:t[`avatarColor${H(r)}`]},{[`& .${J.icon}`]:t.icon},{[`& .${J.icon}`]:t[`icon${H(a)}`]},{[`& .${J.icon}`]:t[`iconColor${H(i)}`]},{[`& .${J.deleteIcon}`]:t.deleteIcon},{[`& .${J.deleteIcon}`]:t[`deleteIcon${H(a)}`]},{[`& .${J.deleteIcon}`]:t[`deleteIconColor${H(r)}`]},{[`& .${J.deleteIcon}`]:t[`deleteIcon${H(l)}Color${H(r)}`]},t.root,t[`size${H(a)}`],t[`color${H(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${H(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${H(r)}`],t[l],t[`${l}${H(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return z({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${J.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${J.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${J.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${J.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${J.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${J.icon}`]:z({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&z({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${J.deleteIcon}`]:z({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Qt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Qt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${J.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${J.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>z({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${J.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${J.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>z({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${J.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${J.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${J.avatar}`]:{marginLeft:4},[`& .${J.avatarSmall}`]:{marginLeft:2},[`& .${J.icon}`]:{marginLeft:4},[`& .${J.iconSmall}`]:{marginLeft:2},[`& .${J.deleteIcon}`]:{marginRight:5},[`& .${J.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qt(e.palette[t.color].main,.7)}`,[`&.${J.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${J.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${J.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),TB=An("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${H(r)}`]]}})(({ownerState:e})=>z({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function dx(e){return e.key==="Backspace"||e.key==="Delete"}const d2=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:d,onClick:p,onDelete:g,onKeyDown:h,onKeyUp:b,size:m="medium",variant:y="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,S=Ce(r,kB),k=P.useRef(null),C=Kh(k,n),_=D=>{D.stopPropagation(),g&&g(D)},R=D=>{D.currentTarget===D.target&&dx(D)&&D.preventDefault(),h&&h(D)},x=D=>{D.currentTarget===D.target&&(g&&dx(D)?g(D):D.key==="Escape"&&k.current&&k.current.blur()),b&&b(D)},$=s!==!1&&p?!0:s,E=$||g?cx:l||"div",F=z({},r,{component:E,disabled:u,size:m,color:a,iconColor:P.isValidElement(f)&&f.props.color||a,onDelete:!!g,clickable:$,variant:y}),L=CB(F),G=E===cx?z({component:l||"div",focusVisibleClassName:L.focusVisible},g&&{disableRipple:!0}):{};let Z=null;g&&(Z=c&&P.isValidElement(c)?P.cloneElement(c,{className:ve(c.props.className,L.deleteIcon),onClick:_}):T.jsx(wB,{className:ve(L.deleteIcon),onClick:_}));let Y=null;i&&P.isValidElement(i)&&(Y=P.cloneElement(i,{className:ve(L.avatar,i.props.className)}));let A=null;return f&&P.isValidElement(f)&&(A=P.cloneElement(f,{className:ve(L.icon,f.props.className)})),T.jsxs(PB,z({as:E,className:ve(L.root,o),disabled:$&&u?!0:void 0,onClick:p,onKeyDown:R,onKeyUp:x,ref:C,tabIndex:w&&u?-1:v,ownerState:F},G,S,{children:[Y||A,T.jsx(TB,{className:ve(L.label),ownerState:F,children:d}),Z]}))}),_B=ii("MuiBox",["root"]),$B=qm(),Ko=N$({themeId:is,defaultTheme:$B,defaultClassName:_B.root,generateClassName:CS.generate}),h2=DM({createStyledComponent:An("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${H(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Xn({props:e,name:"MuiContainer"})}),MB=HM({createStyledComponent:An("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Xn({props:e,name:"MuiStack"})}),hx=P.createContext();function EB(e){return kr("MuiGrid",e)}const RB=[0,1,2,3,4,5,6,7,8,9,10],AB=["column-reverse","column","row-reverse","row"],OB=["nowrap","wrap-reverse","wrap"],Hs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],qa=ii("MuiGrid",["root","container","item","zeroMinWidth",...RB.map(e=>`spacing-xs-${e}`),...AB.map(e=>`direction-xs-${e}`),...OB.map(e=>`wrap-xs-${e}`),...Hs.map(e=>`grid-xs-${e}`),...Hs.map(e=>`grid-sm-${e}`),...Hs.map(e=>`grid-md-${e}`),...Hs.map(e=>`grid-lg-${e}`),...Hs.map(e=>`grid-xl-${e}`)]),zB=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function qo(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function IB({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Ei({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[i]:s;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${qo(u)})`;c={flexBasis:f,maxWidth:f}}}o=z({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function LB({theme:e,ownerState:t}){const n=Ei({values:t.direction,breakpoints:e.breakpoints.values});return Et({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${qa.item}`]={maxWidth:"none"}),i})}function p2({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function DB({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Ei({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=p2({breakpoints:e.breakpoints.values,values:o})),i=Et({theme:e},o,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{marginTop:`-${qo(u)}`,[`& > .${qa.item}`]:{paddingTop:qo(u)}}:(c=s)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${qa.item}`]:{paddingTop:0}}})}return i}function FB({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Ei({values:r,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=p2({breakpoints:e.breakpoints.values,values:o})),i=Et({theme:e},o,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{width:`calc(100% + ${qo(u)})`,marginLeft:`-${qo(u)}`,[`& > .${qa.item}`]:{paddingLeft:qo(u)}}:(c=s)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${qa.item}`]:{paddingLeft:0}}})}return i}function jB(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const BB=An("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=jB(s,c,t));const f=[];return c.forEach(d=>{const p=n[d];p&&f.push(t[`grid-${d}-${String(p)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,i!=="row"&&t[`direction-xs-${String(i)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>z({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),LB,DB,FB,IB);function NB(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const VB=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=NB(o,l));const u=[];l.forEach(d=>{const p=e[d];p&&u.push(`grid-${d}-${String(p)}`)});const f={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...u]};return oi(f,EB,t)},hu=P.forwardRef(function(t,n){const r=Xn({props:t,name:"MuiGrid"}),{breakpoints:i}=GS(),o=ll(r),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:d=!1,rowSpacing:p,spacing:g=0,wrap:h="wrap",zeroMinWidth:b=!1}=o,m=Ce(o,zB),y=p||g,v=l||g,w=P.useContext(hx),S=u?a||12:w,k={},C=z({},m);i.keys.forEach(x=>{m[x]!=null&&(k[x]=m[x],delete C[x])});const _=z({},o,{columns:S,container:u,direction:f,item:d,rowSpacing:y,columnSpacing:v,wrap:h,zeroMinWidth:b,spacing:g},k,{breakpoints:i.keys}),R=VB(_);return T.jsx(hx.Provider,{value:S,children:T.jsx(BB,z({ownerState:_,className:ve(R.root,s),as:c,ref:n},C))})});function sr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function m2(e){if(!sr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=m2(e[n])}),t}function Nt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return sr(e)&&sr(t)&&Object.keys(t).forEach(i=>{sr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&sr(e[i])?r[i]=Nt(e[i],t[i],n):n.clone?r[i]=sr(t[i])?m2(t[i]):t[i]:r[i]=t[i]}),r}function Wi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ps(e){if(typeof e!="string")throw new Error(Wi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $p(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)n[i]=o||{};else if(!o)n[i]=s;else{n[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const l=a;n[i][l]=$p(o[l],s[l])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function WB(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let s="",a=!0;for(let l=0;le,UB=()=>{let e=px;return{configure(t){e=t},generate(t){return e(t)},reset(){e=px}}},HB=UB(),GB={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function g2(e,t,n="Mui"){const r=GB[t];return r?`${n}-${r}`:`${HB.generate(e)}-${t}`}function KB(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=g2(e,i,n)}),r}function qB(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function y2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tr.startsWith("@container")).sort((r,i)=>{var s,a;const o=/min-width:\s*([0-9.]+)/;return+(((s=r.match(o))==null?void 0:s[1])||0)-+(((a=i.match(o))==null?void 0:a[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function XB(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZB(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function JB(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>t(e.breakpoints.up(...a),s),o.down=(...a)=>t(e.breakpoints.down(...a),s),o.between=(...a)=>t(e.breakpoints.between(...a),s),o.only=(...a)=>t(e.breakpoints.only(...a),s),o.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const Cf={xs:0,sm:600,md:900,lg:1200,xl:1536},mx={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cf[e]}px)`},eN={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Cf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function wr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||mx;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||mx;return Object.keys(t).reduce((s,a)=>{if(XB(o.keys,a)){const l=ZB(r.containerQueries?r:eN,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(o.values||Cf).includes(a)){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function tN(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function nN(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Pf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function pu(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Pf(e,n)||r,t&&(i=t(i,r,e)),i}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Pf(l,r)||{};return wr(s,a,f=>{let d=pu(c,i,f);return f===d&&typeof f=="string"&&(d=pu(c,i,`${t}${f==="default"?"":ps(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function rN(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iN={m:"margin",p:"padding"},oN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sN=rN(e=>{if(e.length>2)if(gx[e])e=gx[e];else return[e];const[t,n]=e.split(""),r=iN[t],i=oN[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),jg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jg,...Bg];function pl(e,t,n,r){const i=Pf(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),a=i[s];return o>=0?a:typeof a=="number"?-a:`-${a}`}:typeof i=="function"?i:()=>{}}function Ng(e){return pl(e,"spacing",8)}function ml(e,t){return typeof t=="string"||t==null?t:e(t)}function aN(e,t){return n=>e.reduce((r,i)=>(r[i]=ml(t,n),r),{})}function lN(e,t,n,r){if(!t.includes(n))return null;const i=sN(n),o=aN(i,r),s=e[n];return wr(e,s,o)}function v2(e,t){const n=Ng(e.theme);return Object.keys(e).map(r=>lN(e,t,r,n)).reduce(ga,{})}function $e(e){return v2(e,jg)}$e.propTypes={};$e.filterProps=jg;function Me(e){return v2(e,Bg)}Me.propTypes={};Me.filterProps=Bg;function Tf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?ga(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function yn(e,t){return De({prop:e,themeKey:"borders",transform:t})}const cN=yn("border",rn),uN=yn("borderTop",rn),fN=yn("borderRight",rn),dN=yn("borderBottom",rn),hN=yn("borderLeft",rn),pN=yn("borderColor"),mN=yn("borderTopColor"),gN=yn("borderRightColor"),yN=yn("borderBottomColor"),vN=yn("borderLeftColor"),xN=yn("outline",rn),bN=yn("outlineColor"),_f=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ml(t,r)});return wr(e,e.borderRadius,n)}return null};_f.propTypes={};_f.filterProps=["borderRadius"];Tf(cN,uN,fN,dN,hN,pN,mN,gN,yN,vN,_f,xN,bN);const $f=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pl(e.theme,"spacing",8),n=r=>({gap:ml(t,r)});return wr(e,e.gap,n)}return null};$f.propTypes={};$f.filterProps=["gap"];const Mf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pl(e.theme,"spacing",8),n=r=>({columnGap:ml(t,r)});return wr(e,e.columnGap,n)}return null};Mf.propTypes={};Mf.filterProps=["columnGap"];const Ef=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pl(e.theme,"spacing",8),n=r=>({rowGap:ml(t,r)});return wr(e,e.rowGap,n)}return null};Ef.propTypes={};Ef.filterProps=["rowGap"];const wN=De({prop:"gridColumn"}),SN=De({prop:"gridRow"}),kN=De({prop:"gridAutoFlow"}),CN=De({prop:"gridAutoColumns"}),PN=De({prop:"gridAutoRows"}),TN=De({prop:"gridTemplateColumns"}),_N=De({prop:"gridTemplateRows"}),$N=De({prop:"gridTemplateAreas"}),MN=De({prop:"gridArea"});Tf($f,Mf,Ef,wN,SN,kN,CN,PN,TN,_N,$N,MN);function Yo(e,t){return t==="grey"?t:e}const EN=De({prop:"color",themeKey:"palette",transform:Yo}),RN=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),AN=De({prop:"backgroundColor",themeKey:"palette",transform:Yo});Tf(EN,RN,AN);function It(e){return e<=1&&e!==0?`${e*100}%`:e}const ON=De({prop:"width",transform:It}),Vg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,s,a,l;const r=((s=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:s[n])||Cf[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:It(n)}};return wr(e,e.maxWidth,t)}return null};Vg.filterProps=["maxWidth"];const zN=De({prop:"minWidth",transform:It}),IN=De({prop:"height",transform:It}),LN=De({prop:"maxHeight",transform:It}),DN=De({prop:"minHeight",transform:It});De({prop:"size",cssProperty:"width",transform:It});De({prop:"size",cssProperty:"height",transform:It});const FN=De({prop:"boxSizing"});Tf(ON,Vg,zN,IN,LN,DN,FN);const Rf={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_f},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:$e},mt:{style:$e},mr:{style:$e},mb:{style:$e},ml:{style:$e},mx:{style:$e},my:{style:$e},margin:{style:$e},marginTop:{style:$e},marginRight:{style:$e},marginBottom:{style:$e},marginLeft:{style:$e},marginX:{style:$e},marginY:{style:$e},marginInline:{style:$e},marginInlineStart:{style:$e},marginInlineEnd:{style:$e},marginBlock:{style:$e},marginBlockStart:{style:$e},marginBlockEnd:{style:$e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$f},rowGap:{style:Ef},columnGap:{style:Mf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:It},maxWidth:{style:Vg},minWidth:{transform:It},height:{transform:It},maxHeight:{transform:It},minHeight:{transform:It},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function jN(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function BN(e,t){return typeof e=="function"?e(t):e}function NN(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=Pf(i,c)||{};return f?f(s):wr(s,r,g=>{let h=pu(d,u,g);return g===h&&typeof g=="string"&&(h=pu(d,u,`${n}${g==="default"?"":ps(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??Rf;function s(a){let l=a;if(typeof a=="function")l=a(i);else if(typeof a!="object")return a;if(!l)return null;const c=tN(i.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(d=>{const p=BN(l[d],i);if(p!=null)if(typeof p=="object")if(o[d])f=ga(f,e(d,p,i,o));else{const g=wr({theme:i},p,h=>({[d]:h}));jN(g,p)?f[d]=t({sx:p,theme:i}):f=ga(f,g)}else f=ga(f,e(d,p,i,o))}),QB(i,nN(u,f))}return Array.isArray(r)?r.map(s):s(r)}return t}const ms=NN();ms.filterProps=["sx"];function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?et(_s,--Rt):0,gs--,Ne===10&&(gs=1,Of--),Ne}function Vt(){return Ne=Rt2||Qa(Ne)>3?"":" "}function iV(e,t){for(;--t&&Vt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return gl(e,kc()+(t<6&&Qn()==32&&Vt()==32))}function Rp(e){for(;Vt();)switch(Ne){case e:return Rt;case 34:case 39:e!==34&&e!==39&&Rp(Ne);break;case 40:e===41&&Rp(e);break;case 92:Vt();break}return Rt}function oV(e,t){for(;Vt()&&e+Ne!==57;)if(e+Ne===84&&Qn()===47)break;return"/*"+gl(t,Rt-1)+"*"+Af(e===47?e:Vt())}function sV(e){for(;!Qa(Qn());)Vt();return gl(e,Rt)}function aV(e){return P2(Pc("",null,null,null,[""],e=C2(e),0,[0],e))}function Pc(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,g=0,h=1,b=1,m=1,y=0,v="",w=i,S=o,k=r,C=v;b;)switch(g=y,y=Vt()){case 40:if(g!=108&&et(C,f-1)==58){Ep(C+=ie(Cc(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Cc(y);break;case 9:case 10:case 13:case 32:C+=rV(g);break;case 92:C+=iV(kc()-1,7);continue;case 47:switch(Qn()){case 42:case 47:Xl(lV(oV(Vt(),kc()),t,n),l);break;default:C+="/"}break;case 123*h:a[c++]=Nn(C)*m;case 125*h:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+u:m==-1&&(C=ie(C,/\f/g,"")),p>0&&Nn(C)-f&&Xl(p>32?vx(C+";",r,n,f-1):vx(ie(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(Xl(k=yx(C,t,n,c,u,i,a,v,w=[],S=[],f),o),y===123)if(u===0)Pc(C,t,k,k,w,o,f,a,S);else switch(d===99&&et(C,3)===110?100:d){case 100:case 108:case 109:case 115:Pc(e,k,k,r&&Xl(yx(e,k,k,0,0,i,a,v,i,w=[],f),S),i,S,f,a,r?w:S);break;default:Pc(C,k,k,k,[""],S,0,a,S)}}c=u=p=0,h=m=1,v=C="",f=s;break;case 58:f=1+Nn(C),p=g;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&nV()==125)continue}switch(C+=Af(y),y*h){case 38:m=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(Nn(C)-1)*m,m=1;break;case 64:Qn()===45&&(C+=Cc(Vt())),d=Qn(),u=f=Nn(v=C+=sV(kc())),y++;break;case 45:g===45&&Nn(C)==2&&(h=0)}}return o}function yx(e,t,n,r,i,o,s,a,l,c,u){for(var f=i-1,d=i===0?o:[""],p=Hg(d),g=0,h=0,b=0;g0?d[m]+" "+y:ie(y,/&\f/g,d[m])))&&(l[b++]=v);return zf(e,t,n,i===0?Wg:a,l,c,u)}function lV(e,t,n){return zf(e,t,n,b2,Af(tV()),Ya(e,2,-2),0)}function vx(e,t,n,r){return zf(e,t,n,Ug,Ya(e,0,r),Ya(e,r+1,-1),r)}function Qo(e,t){for(var n="",r=Hg(e),i=0;i6)switch(et(e,t+1)){case 109:if(et(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+mu+(et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ep(e,"stretch")?T2(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(et(e,t+1)!==115)break;case 6444:switch(et(e,Nn(e)-3-(~Ep(e,"!important")&&10))){case 107:return ie(e,":",":"+ne)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(et(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+st+"$2box$3")+e}break;case 5936:switch(et(e,t+11)){case 114:return ne+e+st+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+st+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+st+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+st+e+e}return e}var yV=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ug:t.return=T2(t.value,t.length);break;case w2:return Qo([Gs(t,{value:ie(t.value,"@","@"+ne)})],i);case Wg:if(t.length)return eV(t.props,function(o){switch(JN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qo([Gs(t,{props:[ie(o,/:(read-\w+)/,":"+mu+"$1")]})],i);case"::placeholder":return Qo([Gs(t,{props:[ie(o,/:(plac\w+)/,":"+ne+"input-$1")]}),Gs(t,{props:[ie(o,/:(plac\w+)/,":"+mu+"$1")]}),Gs(t,{props:[ie(o,/:(plac\w+)/,st+"input-$1")]})],i)}return""})}},vV=[yV],xV=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||vV,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),m=1;m=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var CV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},PV=!1,TV=/[A-Z]|^ms/g,_V=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$2=function(t){return t.charCodeAt(1)===45},bx=function(t){return t!=null&&typeof t!="boolean"},Kd=x2(function(e){return $2(e)?e:e.replace(TV,"-$&").toLowerCase()}),wx=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_V,function(r,i,o){return Vn={name:i,styles:o,next:Vn},i})}return CV[t]!==1&&!$2(t)&&typeof n=="number"&&n!==0?n+"px":n},$V="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Xa(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Vn={name:i.name,styles:i.styles,next:Vn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Vn={name:s.name,styles:s.styles,next:Vn},s=s.next;var a=o.styles+";";return a}return MV(e,t,n)}case"function":{if(e!==void 0){var l=Vn,c=n(e);return Vn=l,Xa(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function MV(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?IV:LV},Cx=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},DV=!1,FV=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return _2(n,r,i),AV(function(){return SV(n,r,i)}),null},jV=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Cx(t,n,r),l=a||kx(i),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,p=1;p{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function UV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=WV(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-r/100}${n})`}function u(d){return s.indexOf(d)+1(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function GV(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function A2(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...s}=e,a=UV(n),l=R2(i);let c=Nt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...HV,...o}},s);return c=JB(c),c.applyStyles=GV,c=t.reduce((u,f)=>Nt(u,f),c),c.unstable_sxConfig={...Rf,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(f){return ms({sx:f,theme:this})},c}function O2(e){const{variants:t,...n}=e,r={variants:t,style:Tx(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Tx(i.style))}),r}const KV=A2();function qd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function qV(e){return e?(t,n)=>n[e]:null}function YV(e,t,n){e.theme=ZV(e.theme)?n:e.theme[t]||e.theme}function Tc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Tc(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...o}=n;r=o}return z2(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function z2(e,t,n=[]){var i;let r;e:for(let o=0;o{VV(a,S=>S.filter(k=>k!==ms));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=qV(e8(u)),...g}=l,h=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let m=qd;u==="Root"||u==="root"?m=r:u?m=i:JV(a)&&(m=void 0);const y=NV(a,{shouldForwardProp:m,label:XV(),...g}),v=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(C){return Tc(C,S)};if(sr(S)){const k=O2(S);return k.variants?function(_){return Tc(_,k)}:k.style}return S},w=(...S)=>{const k=[],C=S.map(v),_=[];if(k.push(o),c&&p&&_.push(function(E){var Z,Y;const L=(Y=(Z=E.theme.components)==null?void 0:Z[c])==null?void 0:Y.styleOverrides;if(!L)return null;const G={};for(const A in L)G[A]=Tc(E,L[A]);return p(E,G)}),c&&!h&&_.push(function(E){var G,Z;const F=E.theme,L=(Z=(G=F==null?void 0:F.components)==null?void 0:G[c])==null?void 0:Z.variants;return L?z2(E,L):null}),b||_.push(ms),Array.isArray(C[0])){const $=C.shift(),E=new Array(k.length).fill(""),F=new Array(_.length).fill("");let L;L=[...E,...$,...F],L.raw=[...E,...$.raw,...F],k.unshift(L)}const R=[...k,...C,..._],x=y(...R);return a.muiName&&(x.muiName=a.muiName),x};return y.withConfig&&(w.withConfig=y.withConfig),w}}function XV(e,t){return void 0}function ZV(e){for(const t in e)return!1;return!0}function JV(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e8(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Gg(e,t=0,n=1){return qB(e,t,n)}function t8(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Jr(e){if(e.type)return e;if(e.charAt(0)==="#")return Jr(t8(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Wi(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Wi(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const n8=e=>{const t=Jr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ea=(e,t)=>{try{return n8(e)}catch{return e}};function If(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function I2(e){e=Jr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),If({type:a,values:l})}function Op(e){e=Jr(e);let t=e.type==="hsl"||e.type==="hsla"?Jr(I2(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function r8(e,t){const n=Op(e),r=Op(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function i8(e,t){return e=Jr(e),t=Gg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,If(e)}function Zl(e,t,n){try{return i8(e,t)}catch{return e}}function Kg(e,t){if(e=Jr(e),t=Gg(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return If(e)}function ce(e,t,n){try{return Kg(e,t)}catch{return e}}function qg(e,t){if(e=Jr(e),t=Gg(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return If(e)}function ue(e,t,n){try{return qg(e,t)}catch{return e}}function o8(e,t=.15){return Op(e)>.5?Kg(e,t):qg(e,t)}function Jl(e,t,n){try{return o8(e,t)}catch{return e}}const s8=P.createContext(void 0);function a8(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?$p(i.defaultProps,r):!i.styleOverrides&&!i.variants?$p(i,r):r}function l8({props:e,name:t}){const n=P.useContext(s8);return a8({props:e,name:t,theme:{components:n}})}const _x={theme:void 0};function c8(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(_x.theme=i.theme,o=O2(e(_x)),t=o,n=i.theme),o}}function u8(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const $x=(e,t,n,r=[])=>{let i=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},f8=(e,t,n)=>{function r(i,o=[],s=[]){Object.entries(i).forEach(([a,l])=>{(!n||n&&!n([...o,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,a],Array.isArray(l)?[...s,a]:s):t([...o,a],l,s))})}r(e)},d8=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Yd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},s={};return f8(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,f=d8(a,l);Object.assign(i,{[u]:f}),$x(o,a,`var(${u})`,c),$x(s,a,`var(${u}, ${f})`,c)}},a=>a[0]==="vars"),{css:i,vars:o,varsWithDefaults:s}}function h8(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=Yd(l,t);let d=f;const p={},{[a]:g,...h}=o;if(Object.entries(h||{}).forEach(([v,w])=>{const{vars:S,css:k,varsWithDefaults:C}=Yd(w,t);d=Nt(d,C),p[v]={css:k,vars:S}}),g){const{css:v,vars:w,varsWithDefaults:S}=Yd(g,t);d=Nt(d,S),p[a]={css:v,vars:w}}function b(v,w){var k,C;let S=i;if(i==="class"&&(S=".%s"),i==="data"&&(S="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(S=`[${i}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((C=(k=o[v])==null?void 0:k.palette)==null?void 0:C.mode)||v})`]:{":root":w}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...c};return Object.entries(p).forEach(([,{vars:w}])=>{v=Nt(v,w)}),v},generateStyleSheets:()=>{var _,R;const v=[],w=e.defaultColorScheme||"light";function S(x,$){Object.keys($).length&&v.push(typeof x=="string"?{[x]:{...$}}:x)}S(n(void 0,{...u}),u);const{[w]:k,...C}=p;if(k){const{css:x}=k,$=(R=(_=o[w])==null?void 0:_.palette)==null?void 0:R.mode,E=!r&&$?{colorScheme:$,...x}:{...x};S(n(w,{...E}),E)}return Object.entries(C).forEach(([x,{css:$}])=>{var L,G;const E=(G=(L=o[x])==null?void 0:L.palette)==null?void 0:G.mode,F=!r&&E?{colorScheme:E,...$}:{...$};S(n(x,{...F}),F)}),v}}}function p8(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Za={black:"#000",white:"#fff"},m8={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},so={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ao={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ks={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},lo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},co={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},uo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function L2(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Za.white,default:Za.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const g8=L2();function D2(){return{text:{primary:Za.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Za.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Mx=D2();function Ex(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=qg(e.main,i):t==="dark"&&(e.dark=Kg(e.main,o)))}function y8(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function v8(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function x8(e="light"){return e==="dark"?{main:ao[500],light:ao[300],dark:ao[700]}:{main:ao[700],light:ao[400],dark:ao[800]}}function b8(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function w8(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}function S8(e="light"){return e==="dark"?{main:Ks[400],light:Ks[300],dark:Ks[700]}:{main:"#ed6c02",light:Ks[500],dark:Ks[900]}}function Yg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||y8(t),s=e.secondary||v8(t),a=e.error||x8(t),l=e.info||b8(t),c=e.success||w8(t),u=e.warning||S8(t);function f(h){return r8(h,Mx.text.primary)>=n?Mx.text.primary:g8.text.primary}const d=({color:h,name:b,mainShade:m=500,lightShade:y=300,darkShade:v=700})=>{if(h={...h},!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Wi(11,b?` (${b})`:"",m));if(typeof h.main!="string")throw new Error(Wi(12,b?` (${b})`:"",JSON.stringify(h.main)));return Ex(h,"light",y,r),Ex(h,"dark",v,r),h.contrastText||(h.contrastText=f(h.main)),h};let p;return t==="light"?p=L2():t==="dark"&&(p=D2()),Nt({common:{...Za},mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:m8,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r,...p},i)}function k8(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function C8(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function P8(e){return Math.round(e*1e5)/1e5}const Rx={textTransform:"uppercase"},Ax='"Roboto", "Helvetica", "Arial", sans-serif';function T8(e,t){const{fontFamily:n=Ax,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,d=r/14,p=u||(b=>`${b/l*d}rem`),g=(b,m,y,v,w)=>({fontFamily:n,fontWeight:b,fontSize:p(m),lineHeight:y,...n===Ax?{letterSpacing:`${P8(v/m)}em`}:{},...w,...c}),h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(s,14,1.75,.4,Rx),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,Rx),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nt({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...h},f,{clone:!1})}const _8=.2,$8=.14,M8=.12;function ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_8})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$8})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${M8})`].join(",")}const E8=["none",ye(0,2,1,-1,0,1,1,0,0,1,3,0),ye(0,3,1,-2,0,2,2,0,0,1,5,0),ye(0,3,3,-2,0,3,4,0,0,1,8,0),ye(0,2,4,-1,0,4,5,0,0,1,10,0),ye(0,3,5,-1,0,5,8,0,0,1,14,0),ye(0,3,5,-1,0,6,10,0,0,1,18,0),ye(0,4,5,-2,0,7,10,1,0,2,16,1),ye(0,5,5,-3,0,8,10,1,0,3,14,2),ye(0,5,6,-3,0,9,12,1,0,3,16,2),ye(0,6,6,-3,0,10,14,1,0,4,18,3),ye(0,6,7,-4,0,11,15,1,0,4,20,3),ye(0,7,8,-4,0,12,17,2,0,5,22,4),ye(0,7,8,-4,0,13,19,2,0,5,24,4),ye(0,7,9,-4,0,14,21,2,0,5,26,4),ye(0,8,9,-5,0,15,22,2,0,6,28,5),ye(0,8,10,-5,0,16,24,2,0,6,30,5),ye(0,8,11,-5,0,17,26,2,0,6,32,5),ye(0,9,11,-5,0,18,28,2,0,7,34,6),ye(0,9,12,-6,0,19,29,2,0,7,36,6),ye(0,10,13,-6,0,20,31,3,0,8,38,7),ye(0,10,13,-6,0,21,33,3,0,8,40,7),ye(0,10,14,-6,0,22,35,3,0,8,42,7),ye(0,11,14,-7,0,23,36,3,0,9,44,8),ye(0,11,15,-7,0,24,38,3,0,9,46,8)],R8={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},A8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ox(e){return`${Math.round(e)}ms`}function O8(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function z8(e){const t={...R8,...e.easing},n={...A8,...e.duration};return{getAutoHeightDuration:O8,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:Ox(s)} ${a} ${typeof l=="string"?l:Ox(l)}`).join(",")},...e,easing:t,duration:n}}const I8={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function L8(e){return sr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function F2(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;oNt(p,g),d),d.unstable_sxConfig={...Rf,...c==null?void 0:c.unstable_sxConfig},d.unstable_sx=function(g){return ms({sx:g,theme:this})},d.toRuntimeSource=F2,d}function D8(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const F8=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=D8(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function j2(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function B2(e){return e==="dark"?F8:[]}function j8(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=Yg(t);return{palette:o,opacity:{...j2(o.mode),...n},overlays:r||B2(o.mode),...i}}function B8(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const N8=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],V8=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return N8(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function W8(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function M(e,t,n){!e[t]&&n&&(e[t]=n)}function ta(e){return!e||!e.startsWith("hsl")?e:I2(e)}function nr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ea(ta(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function U8(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const In=e=>{try{return e()}catch{}},H8=(e="mui")=>u8(e);function Qd(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=j8({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...s}=zp({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...j2(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||B2(i)},s}function G8(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=B8,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=r||(n.light&&u!=="light"?"light":u),d=H8(o),{[f]:p,light:g,dark:h,...b}=n,m={...b};let y=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(Wi(21,f));const v=Qd(m,y,c,f);g&&!m.light&&Qd(m,g,void 0,"light"),h&&!m.dark&&Qd(m,h,void 0,"dark");let w={defaultColorScheme:f,...v,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:l,getCssVar:d,colorSchemes:m,font:{...k8(v.typography),...v.font},spacing:U8(c.spacing)};Object.keys(w.colorSchemes).forEach(R=>{const x=w.colorSchemes[R].palette,$=E=>{const F=E.split("-"),L=F[1],G=F[2];return d(E,x[L][G])};if(x.mode==="light"&&(M(x.common,"background","#fff"),M(x.common,"onBackground","#000")),x.mode==="dark"&&(M(x.common,"background","#000"),M(x.common,"onBackground","#fff")),W8(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){M(x.Alert,"errorColor",ce(x.error.light,.6)),M(x.Alert,"infoColor",ce(x.info.light,.6)),M(x.Alert,"successColor",ce(x.success.light,.6)),M(x.Alert,"warningColor",ce(x.warning.light,.6)),M(x.Alert,"errorFilledBg",$("palette-error-main")),M(x.Alert,"infoFilledBg",$("palette-info-main")),M(x.Alert,"successFilledBg",$("palette-success-main")),M(x.Alert,"warningFilledBg",$("palette-warning-main")),M(x.Alert,"errorFilledColor",In(()=>x.getContrastText(x.error.main))),M(x.Alert,"infoFilledColor",In(()=>x.getContrastText(x.info.main))),M(x.Alert,"successFilledColor",In(()=>x.getContrastText(x.success.main))),M(x.Alert,"warningFilledColor",In(()=>x.getContrastText(x.warning.main))),M(x.Alert,"errorStandardBg",ue(x.error.light,.9)),M(x.Alert,"infoStandardBg",ue(x.info.light,.9)),M(x.Alert,"successStandardBg",ue(x.success.light,.9)),M(x.Alert,"warningStandardBg",ue(x.warning.light,.9)),M(x.Alert,"errorIconColor",$("palette-error-main")),M(x.Alert,"infoIconColor",$("palette-info-main")),M(x.Alert,"successIconColor",$("palette-success-main")),M(x.Alert,"warningIconColor",$("palette-warning-main")),M(x.AppBar,"defaultBg",$("palette-grey-100")),M(x.Avatar,"defaultBg",$("palette-grey-400")),M(x.Button,"inheritContainedBg",$("palette-grey-300")),M(x.Button,"inheritContainedHoverBg",$("palette-grey-A100")),M(x.Chip,"defaultBorder",$("palette-grey-400")),M(x.Chip,"defaultAvatarColor",$("palette-grey-700")),M(x.Chip,"defaultIconColor",$("palette-grey-700")),M(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),M(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),M(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),M(x.LinearProgress,"primaryBg",ue(x.primary.main,.62)),M(x.LinearProgress,"secondaryBg",ue(x.secondary.main,.62)),M(x.LinearProgress,"errorBg",ue(x.error.main,.62)),M(x.LinearProgress,"infoBg",ue(x.info.main,.62)),M(x.LinearProgress,"successBg",ue(x.success.main,.62)),M(x.LinearProgress,"warningBg",ue(x.warning.main,.62)),M(x.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),M(x.Slider,"primaryTrack",ue(x.primary.main,.62)),M(x.Slider,"secondaryTrack",ue(x.secondary.main,.62)),M(x.Slider,"errorTrack",ue(x.error.main,.62)),M(x.Slider,"infoTrack",ue(x.info.main,.62)),M(x.Slider,"successTrack",ue(x.success.main,.62)),M(x.Slider,"warningTrack",ue(x.warning.main,.62));const E=Jl(x.background.default,.8);M(x.SnackbarContent,"bg",E),M(x.SnackbarContent,"color",In(()=>x.getContrastText(E))),M(x.SpeedDialAction,"fabHoverBg",Jl(x.background.paper,.15)),M(x.StepConnector,"border",$("palette-grey-400")),M(x.StepContent,"border",$("palette-grey-400")),M(x.Switch,"defaultColor",$("palette-common-white")),M(x.Switch,"defaultDisabledColor",$("palette-grey-100")),M(x.Switch,"primaryDisabledColor",ue(x.primary.main,.62)),M(x.Switch,"secondaryDisabledColor",ue(x.secondary.main,.62)),M(x.Switch,"errorDisabledColor",ue(x.error.main,.62)),M(x.Switch,"infoDisabledColor",ue(x.info.main,.62)),M(x.Switch,"successDisabledColor",ue(x.success.main,.62)),M(x.Switch,"warningDisabledColor",ue(x.warning.main,.62)),M(x.TableCell,"border",ue(Zl(x.divider,1),.88)),M(x.Tooltip,"bg",Zl(x.grey[700],.92))}if(x.mode==="dark"){M(x.Alert,"errorColor",ue(x.error.light,.6)),M(x.Alert,"infoColor",ue(x.info.light,.6)),M(x.Alert,"successColor",ue(x.success.light,.6)),M(x.Alert,"warningColor",ue(x.warning.light,.6)),M(x.Alert,"errorFilledBg",$("palette-error-dark")),M(x.Alert,"infoFilledBg",$("palette-info-dark")),M(x.Alert,"successFilledBg",$("palette-success-dark")),M(x.Alert,"warningFilledBg",$("palette-warning-dark")),M(x.Alert,"errorFilledColor",In(()=>x.getContrastText(x.error.dark))),M(x.Alert,"infoFilledColor",In(()=>x.getContrastText(x.info.dark))),M(x.Alert,"successFilledColor",In(()=>x.getContrastText(x.success.dark))),M(x.Alert,"warningFilledColor",In(()=>x.getContrastText(x.warning.dark))),M(x.Alert,"errorStandardBg",ce(x.error.light,.9)),M(x.Alert,"infoStandardBg",ce(x.info.light,.9)),M(x.Alert,"successStandardBg",ce(x.success.light,.9)),M(x.Alert,"warningStandardBg",ce(x.warning.light,.9)),M(x.Alert,"errorIconColor",$("palette-error-main")),M(x.Alert,"infoIconColor",$("palette-info-main")),M(x.Alert,"successIconColor",$("palette-success-main")),M(x.Alert,"warningIconColor",$("palette-warning-main")),M(x.AppBar,"defaultBg",$("palette-grey-900")),M(x.AppBar,"darkBg",$("palette-background-paper")),M(x.AppBar,"darkColor",$("palette-text-primary")),M(x.Avatar,"defaultBg",$("palette-grey-600")),M(x.Button,"inheritContainedBg",$("palette-grey-800")),M(x.Button,"inheritContainedHoverBg",$("palette-grey-700")),M(x.Chip,"defaultBorder",$("palette-grey-700")),M(x.Chip,"defaultAvatarColor",$("palette-grey-300")),M(x.Chip,"defaultIconColor",$("palette-grey-300")),M(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),M(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),M(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),M(x.LinearProgress,"primaryBg",ce(x.primary.main,.5)),M(x.LinearProgress,"secondaryBg",ce(x.secondary.main,.5)),M(x.LinearProgress,"errorBg",ce(x.error.main,.5)),M(x.LinearProgress,"infoBg",ce(x.info.main,.5)),M(x.LinearProgress,"successBg",ce(x.success.main,.5)),M(x.LinearProgress,"warningBg",ce(x.warning.main,.5)),M(x.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),M(x.Slider,"primaryTrack",ce(x.primary.main,.5)),M(x.Slider,"secondaryTrack",ce(x.secondary.main,.5)),M(x.Slider,"errorTrack",ce(x.error.main,.5)),M(x.Slider,"infoTrack",ce(x.info.main,.5)),M(x.Slider,"successTrack",ce(x.success.main,.5)),M(x.Slider,"warningTrack",ce(x.warning.main,.5));const E=Jl(x.background.default,.98);M(x.SnackbarContent,"bg",E),M(x.SnackbarContent,"color",In(()=>x.getContrastText(E))),M(x.SpeedDialAction,"fabHoverBg",Jl(x.background.paper,.15)),M(x.StepConnector,"border",$("palette-grey-600")),M(x.StepContent,"border",$("palette-grey-600")),M(x.Switch,"defaultColor",$("palette-grey-300")),M(x.Switch,"defaultDisabledColor",$("palette-grey-600")),M(x.Switch,"primaryDisabledColor",ce(x.primary.main,.55)),M(x.Switch,"secondaryDisabledColor",ce(x.secondary.main,.55)),M(x.Switch,"errorDisabledColor",ce(x.error.main,.55)),M(x.Switch,"infoDisabledColor",ce(x.info.main,.55)),M(x.Switch,"successDisabledColor",ce(x.success.main,.55)),M(x.Switch,"warningDisabledColor",ce(x.warning.main,.55)),M(x.TableCell,"border",ce(Zl(x.divider,1),.68)),M(x.Tooltip,"bg",Zl(x.grey[700],.92))}nr(x.background,"default"),nr(x.background,"paper"),nr(x.common,"background"),nr(x.common,"onBackground"),nr(x,"divider"),Object.keys(x).forEach(E=>{const F=x[E];F&&typeof F=="object"&&(F.main&&M(x[E],"mainChannel",ea(ta(F.main))),F.light&&M(x[E],"lightChannel",ea(ta(F.light))),F.dark&&M(x[E],"darkChannel",ea(ta(F.dark))),F.contrastText&&M(x[E],"contrastTextChannel",ea(ta(F.contrastText))),E==="text"&&(nr(x[E],"primary"),nr(x[E],"secondary")),E==="action"&&(F.active&&nr(x[E],"active"),F.selected&&nr(x[E],"selected")))})}),w=t.reduce((R,x)=>Nt(R,x),w);const S={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:V8(w)},{vars:k,generateThemeVars:C,generateStyleSheets:_}=h8(w,S);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([R,x])=>{w[R]=x}),w.generateThemeVars=C,w.generateStyleSheets=_,w.generateSpacing=function(){return R2(c.spacing,Ng(this))},w.getColorSchemeSelector=p8(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Rf,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(x){return ms({sx:x,theme:this})},w.toRuntimeSource=F2,w}function zx(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Yg({...n===!0?{}:n.palette,mode:t})})}function K8(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...s}=e,a=o||"light",l=i==null?void 0:i[a],c={...i,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return zp(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const f=zp({...e,palette:u},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},zx(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},zx(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),G8({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const q8=K8(),Y8="$$material";function Q8(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const X8=e=>Q8(e)&&e!=="classes",Z8=QV({themeId:Y8,defaultTheme:q8,rootShouldForwardProp:X8}),J8=c8;function e9(e){return l8(e)}function t9(e){return g2("MuiSvgIcon",e)}KB("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const n9=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ps(t)}`,`fontSize${ps(n)}`]};return WB(i,t9,r)},r9=Z8("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ps(n.color)}`],t[`fontSize${ps(n.fontSize)}`]]}})(J8(({theme:e})=>{var t,n,r,i,o,s,a,l,c,u,f,d,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var b,m;return{props:{color:h},style:{color:(m=(b=(e.vars??e).palette)==null?void 0:b[h])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(g=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gu=P.forwardRef(function(t,n){const r=e9({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...p}=r,g=P.isValidElement(i)&&i.type==="svg",h={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:g},b={};u||(b.viewBox=d);const m=n9(h);return T.jsxs(r9,{as:a,className:YB(m.root,o),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...p,...g&&i.props,ownerState:h,children:[g?i.props.children:i,f?T.jsx("title",{children:f}):null]})});gu&&(gu.muiName="SvgIcon");function qi(e,t){function n(r,i){return T.jsx(gu,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=gu.muiName,P.memo(P.forwardRef(n))}const i9=qi(T.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),o9=qi(T.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage"),s9=qi([T.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),T.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology"),a9=qi(T.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud"),l9=qi(T.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),c9=qi(T.jsx("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal"),u9=qi([T.jsx("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),T.jsx("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),T.jsx("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech"),f9=()=>{const e=GS(),t=oM(e.breakpoints.down("sm")),n=[{title:"Languages",icon:T.jsx(i9,{fontSize:"large",color:"primary"}),skills:["Python","JavaScript","C++"]},{title:"Database",icon:T.jsx(o9,{fontSize:"large",color:"primary"}),skills:["Postgres","Azure Data Tables","MySQL","Neo4j- Graph DB"]},{title:"Web Technologies",icon:T.jsx(c9,{fontSize:"large",color:"primary"}),skills:["React","Django","FastAPI","Flask","Git/GitHub","VSCode"]},{title:"Machine Learning",icon:T.jsx(u9,{fontSize:"large",color:"primary"}),skills:["Linear regression","Ridge & Lasso Regularization","Logistic Regression","Naive-Bayes Classifier","KNN","SVM","Decision Tree","Random Forest","Ada-Boost","XG-Boost","K-means Clustering"]},{title:"Deep Learning & NLP",icon:T.jsx(s9,{fontSize:"large",color:"primary"}),skills:["NLTK","Spacy","Stop-words","Stemming","Lemmatization","Tokenization","TF-IDF","Bag of Words","Word2Vec","RNNs","CNNs","LSTM","Yolo","Activation Functions","Pytorch","Tensorflow"]},{title:"Generative AI",icon:T.jsx(l9,{fontSize:"large",color:"primary"}),skills:["OpenAI API","LLMs (Llama, Mistral, Phi-mini, Reflection-based models)","Prompt Engineering","RAG","Tool Calling","Fine Tuning","PEFT","VectorDBs","Agents","Langchain","LanGraph","LlamaIndex","HuggingFace tools","Langfuse","Cursor"]},{title:"Cloud services",icon:T.jsx(a9,{fontSize:"large",color:"primary"}),skills:["Azure AI services","Azure Openai","Azure AI search","Azure Document Intelligence","Azure Speech","Azure Machine Learning","AWS bedrock","AWS sagemaker","AWS SQS"]}];return T.jsxs(Ko,{id:"skills",py:8,className:"relative",sx:{bgcolor:"background.paper"},children:[T.jsx("div",{className:"absolute inset-0 bg-black",children:T.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),T.jsxs(h2,{maxWidth:"lg",className:"relative z-10",children:[T.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},children:T.jsx(fx,{variant:t?"h4":"h3",component:"h2",textAlign:"center",gutterBottom:!0,sx:{fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem"},mb:6,textGradient:"linear-gradient(to right, #2196f3, #7a1bff)"},children:"Skills & Technologies"})}),T.jsx(hu,{container:!0,spacing:4,children:n.map((r,i)=>T.jsx(hu,{item:!0,xs:12,md:6,children:T.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:i*.1},children:T.jsxs(eB,{elevation:3,sx:{p:{xs:2,sm:3},height:"100%",transition:"transform 0.2s","&:hover":{transform:"translateY(-5px)",boxShadow:e.shadows[10]},bgcolor:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)"},children:[T.jsxs(Ko,{sx:{display:"flex",alignItems:"center",mb:2},children:[r.icon,T.jsx(fx,{variant:"h6",sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"},color:"primary.main",ml:1,fontWeight:600},children:r.title})]}),T.jsx(Ko,{sx:{display:"flex",flexWrap:"wrap",gap:{xs:.5,sm:1}},children:r.skills.map((o,s)=>T.jsx(d2,{label:o,sx:{m:.5,fontSize:{xs:"0.75rem",sm:"0.875rem"},bgcolor:"rgba(255, 255, 255, 0.1)","&:hover":{bgcolor:"rgba(255, 255, 255, 0.2)"}},variant:"outlined"},s))})]})})},i))})]})]})},d9=()=>{const e=[{title:"AI based large construction project analyser",description:"Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.",tools:["Python FastAPI","Azure functions","Azure OpenAI","Langchain","Unstructured","Neo4j"]},{title:"AI Legal Research Tool",description:"Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.",tools:["Flask","Elasticsearch","OpenAI API","RAG","BiLSTM","Selenium","Azure machine learning"]},{title:"AI Sales Agent",description:"Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.",tools:["FastAPI","Reactjs","ChromaDB","Agent Architectures","OpenAI API","Zapier","Salesforce- Apex"]}];return T.jsx(Ko,{id:"projects",py:8,children:T.jsxs(h2,{children:[T.jsx(Re.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Projects"}),T.jsx(hu,{container:!0,spacing:4,children:e.map((t,n)=>T.jsx(hu,{item:!0,xs:12,children:T.jsxs(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:[T.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90",children:t.title}),T.jsx("p",{className:"text-white/70 mb-4",children:t.description}),T.jsx(MB,{direction:"row",spacing:1,flexWrap:"wrap",gap:1,mt:2,children:t.tools.map(r=>T.jsx(d2,{label:r,color:"primary",variant:"outlined"},r))})]})},t.title))})]})})},h9=[{icon:cu,label:"Email",value:"goswamirushi39@gmail.com",link:"mailto:goswamirushi39@gmail.com"},{icon:pp,label:"Phone",value:"8140226399",link:"tel:8140226399"},{icon:q3,label:"LinkedIn",value:"linkedin.com/in/rushigoswami",link:"https://linkedin.com/in/rushigoswami"},{icon:G3,label:"GitHub",value:"github.com/rushigoswami",link:"https://github.com/rushigoswami"}];function p9(){return T.jsxs("section",{id:"contact",className:"relative py-20",children:[T.jsx("div",{className:"absolute inset-0 bg-black",children:T.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),T.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[T.jsx(Re.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Get in Touch"}),T.jsx("div",{className:"max-w-4xl mx-auto",children:T.jsx("div",{className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:T.jsx(Re.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:h9.map((e,t)=>T.jsxs(Re.a,{href:e.link,target:e.icon!==pp&&e.icon!==cu?"_blank":void 0,rel:e.icon!==pp&&e.icon!==cu?"noopener noreferrer":void 0,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/[0.07] transition-all group flex items-center gap-4",children:[T.jsx("div",{className:"p-3 rounded-full bg-white/10 group-hover:bg-white/20 transition-colors",children:T.jsx(e.icon,{size:24,className:"text-white/80"})}),T.jsxs("div",{children:[T.jsx("h3",{className:"text-lg font-semibold text-white/90 mb-1",children:e.label}),T.jsx("p",{className:"text-white/70 group-hover:text-white/90 transition-colors",children:e.value})]})]},e.label))})})})]})]})}function m9(){const[e,t]=P.useState("dark"),n=P.useMemo(()=>qm({palette:{mode:e,primary:{main:e==="dark"?"#7C3AED":"#6D28D9",light:e==="dark"?"#8B5CF6":"#7C3AED",dark:"#5B21B6"},secondary:{main:e==="dark"?"#EC4899":"#DB2777"},background:{default:e==="dark"?"#0F172A":"#F8FAFC",paper:e==="dark"?"#1E293B":"#FFFFFF"},text:{primary:e==="dark"?"#F1F5F9":"#1E293B",secondary:e==="dark"?"#CBD5E1":"#475569"}},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:800},h2:{fontWeight:700},h3:{fontWeight:700},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600}},components:{MuiContainer:{styleOverrides:{root:{"@media (min-width: 1200px)":{maxWidth:"1400px"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}}}}),[e]),r=()=>{t(i=>i==="light"?"dark":"light")};return T.jsxs(tR,{theme:n,children:[T.jsx(sR,{}),T.jsx(xR,{children:T.jsx(Ko,{sx:{width:"100%",margin:0,padding:0,overflow:"hidden",minHeight:"100vh",bgcolor:"background.default",color:"text.primary",position:"relative","&::before":{content:'""',position:"fixed",top:0,left:0,right:0,bottom:0,background:e==="dark"?"radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(15, 23, 42, 0) 70%)":"radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, rgba(248, 250, 252, 0) 70%)",pointerEvents:"none",zIndex:1}},children:T.jsxs(Ko,{sx:{position:"relative",zIndex:2},children:[T.jsx(X3,{colorMode:{mode:e,toggleColorMode:r}}),T.jsx(Lj,{}),T.jsx(Dj,{}),T.jsx(f9,{}),T.jsx(d9,{}),T.jsx(p9,{})]})})})]})}Kw(document.getElementById("root")).render(T.jsx(P.StrictMode,{children:T.jsx(m9,{})})); diff --git a/dist/index.html b/dist/index.html index 3d3a66d..e9f0939 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Rushi - Portfolio - +