diff --git a/client/dist/assets/index-BaW2c4Zj.js b/client/dist/assets/index-BJD7cLZJ.js similarity index 64% rename from client/dist/assets/index-BaW2c4Zj.js rename to client/dist/assets/index-BJD7cLZJ.js index 8c7a68e1..611cb06a 100644 --- a/client/dist/assets/index-BaW2c4Zj.js +++ b/client/dist/assets/index-BJD7cLZJ.js @@ -1,4 +1,4 @@ -function X2(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ly={exports:{}},Dc={},Ay={exports:{}},_e={};/** +function K2(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _y={exports:{}},Nc={},Ly={exports:{}},_e={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function X2(e,t){for(var n=0;n>>1,$=I[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(I[g]=M,I[V]=E,g=V):(I[g]=B,I[L]=E,g=L);else if(V<$&&0>o(M,E))I[g]=M,I[V]=E,g=V;else break e}}return _}function o(I,_){var E=I.sortIndex-_.sortIndex;return E!==0?E:I.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=I)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function R(I){if(x=!1,b(I),!y)if(n(l)!==null)y=!0,J(k);else{var _=n(c);_!==null&&re(R,_.startTime-I)}}function k(I,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||I&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(R,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,O=-1;function F(){return!(e.unstable_now()-OI||125g?(I.sortIndex=E,t(c,I),n(l)===null&&I===n(c)&&(x?(v(j),j=-1):x=!0,re(R,E-g))):(I.sortIndex=$,t(l,I),y||w||(y=!0,J(k))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var _=h;return function(){var E=h;h=_;try{return I.apply(this,arguments)}finally{h=E}}}})(Ky);Gy.exports=Ky;var yS=Gy.exports;/** + */(function(e){function t(O,_){var E=O.length;O.push(_);e:for(;0>>1,$=O[g];if(0>>1;go(B,E))V<$&&0>o(M,B)?(O[g]=M,O[V]=E,g=V):(O[g]=B,O[L]=E,g=L);else if(V<$&&0>o(M,E))O[g]=M,O[V]=E,g=V;else break e}}return _}function o(O,_){var E=O.sortIndex-_.sortIndex;return E!==0?E:O.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,w=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=O)r(c),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(c)}}function k(O){if(x=!1,b(O),!y)if(n(l)!==null)y=!0,J(R);else{var _=n(c);_!==null&&re(k,_.startTime-O)}}function R(O,_){y=!1,x&&(x=!1,v(j),j=-1),w=!0;var E=h;try{for(b(_),f=n(l);f!==null&&(!(f.expirationTime>_)||O&&!F());){var g=f.callback;if(typeof g=="function"){f.callback=null,h=f.priorityLevel;var $=g(f.expirationTime<=_);_=e.unstable_now(),typeof $=="function"?f.callback=$:f===n(l)&&r(l),b(_)}else r(l);f=n(l)}if(f!==null)var z=!0;else{var L=n(c);L!==null&&re(k,L.startTime-_),z=!1}return z}finally{f=null,h=E,w=!1}}var T=!1,P=null,j=-1,N=5,I=-1;function F(){return!(e.unstable_now()-IO||125g?(O.sortIndex=E,t(c,O),n(l)===null&&O===n(c)&&(x?(v(j),j=-1):x=!0,re(k,E-g))):(O.sortIndex=$,t(l,O),y||w||(y=!0,J(R))),O},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(O){var _=h;return function(){var E=h;h=_;try{return O.apply(this,arguments)}finally{h=E}}}})(Gy);qy.exports=Gy;var gS=qy.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ function X2(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=Object.prototype.hasOwnProperty,bS=/^[: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]*$/,Mg={},jg={};function wS(e){return ff.call(jg,e)?!0:ff.call(Mg,e)?!1:bS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function SS(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 CS(e,t,n,r){if(t===null||typeof t>"u"||SS(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 Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(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 Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(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 Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(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(Up,Wp);Nt[t]=new Zt(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(Up,Wp);Nt[t]=new Zt(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(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),df=Object.prototype.hasOwnProperty,yS=/^[: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]*$/,Mg={},jg={};function xS(e){return df.call(jg,e)?!0:df.call(Mg,e)?!1:yS.test(e)?jg[e]=!0:(Mg[e]=!0,!1)}function bS(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 wS(e,t,n,r){if(t===null||typeof t>"u"||bS(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 Zt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nt[e]=new Zt(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 Zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nt[e]=new Zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nt[e]=new Zt(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 Zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nt[e]=new Zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nt[e]=new Zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nt[e]=new Zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nt[e]=new Zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Up=/[\-:]([a-z])/g;function Wp(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(Up,Wp);Nt[t]=new Zt(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(Up,Wp);Nt[t]=new Zt(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(Up,Wp);Nt[t]=new Zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!1,!1)});Nt.xlinkHref=new Zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nt[e]=new Zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hp(e,t,n,r){var o=Nt.hasOwnProperty(t)?Nt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ka(e):""}function RS(e){switch(e.tag){case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return ka("Suspense");case 19:return ka("SuspenseList");case 0:case 2:case 15:return e=md(e.type,!1),e;case 11:return e=md(e.type.render,!1),e;case 1:return e=md(e.type,!0),e;default:return""}}function gf(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 ai:return"Fragment";case ii:return"Portal";case pf:return"Profiler";case Vp:return"StrictMode";case hf:return"Suspense";case mf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qy:return(e.displayName||"Context")+".Consumer";case Xy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:gf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return gf(e(t))}catch{}}return null}function kS(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 gf(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 lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e){var t=Zy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=PS(e))}function e1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 vf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(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 t1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function yf(e,t){t1(e,t);var n=lo(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")?xf(e,t.type,n):t.hasOwnProperty("defaultValue")&&xf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(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 xf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={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},ES=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){ES.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function i1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function a1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=i1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var TS=pt({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 Sf(e,t){if(t){if(TS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Cf(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 Rf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=ks(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Wc(t),kf(e.stateNode,e.type,t))}}function s1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function l1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(zS(e)/BS|0)|0}var Xs=64,Qs=4194304;function Ea(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 Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function HS(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),qg=" ",Gg=!1;function T1(e,t){switch(e){case"keyup":return yC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function bC(e,t){switch(e){case"compositionend":return $1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function wC(e,t){if(si)return e==="compositionend"||!nh&&T1(e,t)?(e=P1(),Pl=Zp=Yr=null,si=!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=Qg(n)}}function I1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(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 MC(e){var t=_1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&I1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,li=null,jf=null,La=null,Of=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Of||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(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}),La&&Za(La,r)||(La=r,r=Zl(jf,"onSelect"),0di||(e.current=Df[di],Df[di]=null,di--)}function Je(e,t){di++,Df[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function W1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,kS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=W1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Hc=!1,$d=!1;function H1(e){Cr===null?Cr=[e]:Cr.push(e)}function UC(e){Hc=!0,H1(e)}function po(){if(!$d&&Cr!==null){$d=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,kr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var O=h(v,P,b[j],R);if(O===null){P===null&&(P=N);break}e&&P&&O.alternate===null&&t(v,P),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),k;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,O.value,R);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?k=F:T.sibling=F,T=F,P=N}if(O.done)return n(v,P),st&&wo(v,j),k;if(P===null){for(;!O.done;j++,O=b.next())O=f(v,O.value,R),O!==null&&(m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return st&&wo(v,j),k}for(P=r(v,P);!O.done;j++,O=b.next())O=w(P,v,j,O.value,R),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?j:O.key),m=i(O,m,j),T===null?k=O:T.sibling=O,T=O);return e&&P.forEach(function(W){return t(v,W)}),st&&wo(v,j),k}function C(v,m,b,R){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var k=b.key,T=m;T!==null;){if(T.key===k){if(k=b.type,k===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vr&&uv(k)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,R,b.key),m.return=v,v=m):(R=_l(b.type,b.key,b.props,null,v.mode,R),R.ref=fa(v,m,b),R.return=v,v=R)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Nd(b,v.mode,R),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),R)}if(Pa(b))return y(v,m,b,R);if(sa(b))return x(v,m,b,R);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ad(b,v.mode,R),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=K1(!0),Y1=K1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Ff(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 Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function X1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(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 qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q1(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 Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(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,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=jd.transition;jd.transition={};try{e(!1),t()}finally{He=n,jd.transition=r}}function hx(){return zn().memoizedState}function qC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mx(e))gx(t,n);else if(n=X1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),vx(n,t,r)}}function GC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mx(e))gx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=X1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),vx(n,t,r))}}function mx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function gx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},KC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,cx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();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=qC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=VC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||tx(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(rx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,nx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=kr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ra(e):""}function SS(e){switch(e.tag){case 5:return Ra(e.type);case 16:return Ra("Lazy");case 13:return Ra("Suspense");case 19:return Ra("SuspenseList");case 0:case 2:case 15:return e=hd(e.type,!1),e;case 11:return e=hd(e.type.render,!1),e;case 1:return e=hd(e.type,!0),e;default:return""}}function mf(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 ai:return"Fragment";case ii:return"Portal";case ff:return"Profiler";case Vp:return"StrictMode";case pf:return"Suspense";case hf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case Yy:return(e._context.displayName||"Context")+".Provider";case qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gp:return t=e.displayName||null,t!==null?t:mf(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return mf(e(t))}catch{}}return null}function CS(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 mf(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 lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kS(e){var t=Jy(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=kS(e))}function Zy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 gf(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ig(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lo(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 e1(e,t){t=t.checked,t!=null&&Hp(e,"checked",t,!1)}function vf(e,t){e1(e,t);var n=lo(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")?yf(e,t.type,n):t.hasOwnProperty("defaultValue")&&yf(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _g(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 yf(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pa=Array.isArray;function yi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ja={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},RS=["Webkit","ms","Moz","O"];Object.keys(ja).forEach(function(e){RS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ja[t]=ja[e]})});function o1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ja.hasOwnProperty(e)&&ja[e]?(""+t).trim():t+"px"}function i1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=o1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var PS=pt({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 wf(e,t){if(t){if(PS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Sf(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 Cf=null;function Kp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kf=null,xi=null,bi=null;function Ng(e){if(e=Rs(e)){if(typeof kf!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Uc(t),kf(e.stateNode,e.type,t))}}function a1(e){xi?bi?bi.push(e):bi=[e]:xi=e}function s1(){if(xi){var e=xi,t=bi;if(bi=xi=null,Ng(e),t)for(e=0;e>>=0,e===0?32:31-(NS(e)/DS|0)|0}var Xs=64,Qs=4194304;function Ea(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 Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Ea(s):(i&=a,i!==0&&(r=Ea(i)))}else a=n&~o,a!==0?r=Ea(a):i!==0&&(r=Ea(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-er(t),e[t]=n}function US(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),qg=" ",Gg=!1;function E1(e,t){switch(e){case"keyup":return gC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function yC(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(Gg=!0,qg);case"textInput":return e=t.data,e===qg&&Gg?null:e;default:return null}}function xC(e,t){if(si)return e==="compositionend"||!nh&&E1(e,t)?(e=R1(),Pl=Zp=Yr=null,si=!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=Qg(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I1(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function rh(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 TC(e){var t=I1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O1(n.ownerDocument.documentElement,n)){if(r!==null&&rh(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jg(n,i);var a=Jg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,li=null,Mf=null,La=null,jf=!1;function Zg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jf||li==null||li!==ql(r)||(r=li,"selectionStart"in r&&rh(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}),La&&Za(La,r)||(La=r,r=Zl(Mf,"onSelect"),0di||(e.current=Nf[di],Nf[di]=null,di--)}function Je(e,t){di++,Nf[di]=e.current,e.current=t}var co={},Wt=fo(co),on=fo(!1),_o=co;function Ti(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function an(e){return e=e.childContextTypes,e!=null}function tc(){et(on),et(Wt)}function av(e,t,n){if(Wt.current!==co)throw Error(ce(168));Je(Wt,t),Je(on,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ce(108,CS(e)||"Unknown",o));return pt({},n,r)}function nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,_o=Wt.current,Je(Wt,e),Je(on,on.current),!0}function sv(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=U1(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,et(on),et(Wt),Je(Wt,e)):et(on),Je(on,n)}var Cr=null,Wc=!1,Td=!1;function W1(e){Cr===null?Cr=[e]:Cr.push(e)}function BC(e){Wc=!0,W1(e)}function po(){if(!Td&&Cr!==null){Td=!0;var e=0,t=He;try{var n=Cr;for(He=1;e>=a,o-=a,Rr=1<<32-er(t)+o|n<j?(N=P,P=null):N=P.sibling;var I=h(v,P,b[j],k);if(I===null){P===null&&(P=N);break}e&&P&&I.alternate===null&&t(v,P),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I,P=N}if(j===b.length)return n(v,P),st&&wo(v,j),R;if(P===null){for(;jj?(N=P,P=null):N=P.sibling;var F=h(v,P,I.value,k);if(F===null){P===null&&(P=N);break}e&&P&&F.alternate===null&&t(v,P),m=i(F,m,j),T===null?R=F:T.sibling=F,T=F,P=N}if(I.done)return n(v,P),st&&wo(v,j),R;if(P===null){for(;!I.done;j++,I=b.next())I=f(v,I.value,k),I!==null&&(m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return st&&wo(v,j),R}for(P=r(v,P);!I.done;j++,I=b.next())I=w(P,v,j,I.value,k),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?j:I.key),m=i(I,m,j),T===null?R=I:T.sibling=I,T=I);return e&&P.forEach(function(H){return t(v,H)}),st&&wo(v,j),R}function C(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===ai&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Gs:e:{for(var R=b.key,T=m;T!==null;){if(T.key===R){if(R=b.type,R===ai){if(T.tag===7){n(v,T.sibling),m=o(T,b.props.children),m.return=v,v=m;break e}}else if(T.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Vr&&uv(R)===T.type){n(v,T.sibling),m=o(T,b.props),m.ref=fa(v,T,b),m.return=v,v=m;break e}n(v,T);break}else t(v,T);T=T.sibling}b.type===ai?(m=jo(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=_l(b.type,b.key,b.props,null,v.mode,k),k.ref=fa(v,m,b),k.return=v,v=k)}return a(v);case ii:e:{for(T=b.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=o(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Ad(b,v.mode,k),m.return=v,v=m}return a(v);case Vr:return T=b._init,C(v,m,T(b._payload),k)}if(Pa(b))return y(v,m,b,k);if(sa(b))return x(v,m,b,k);ol(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,b),m.return=v,v=m):(n(v,m),m=Ld(b,v.mode,k),m.return=v,v=m),a(v)):n(v,m)}return C}var Mi=G1(!0),K1=G1(!1),ic=fo(null),ac=null,hi=null,sh=null;function lh(){sh=hi=ac=null}function ch(e){var t=ic.current;et(ic),e._currentValue=t}function Bf(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 Si(e,t){ac=e,sh=hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function Dn(e){var t=e._currentValue;if(sh!==e)if(e={context:e,memoizedValue:t,next:null},hi===null){if(ac===null)throw Error(ce(308));hi=e,ac.dependencies={lanes:0,firstContext:e}}else hi=hi.next=e;return t}var Po=null;function uh(e){Po===null?Po=[e]:Po.push(e)}function Y1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uh(t)):(n.next=o.next,o.next=n),t.interleaved=n,jr(e,r)}function jr(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 qr=!1;function dh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X1(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 Tr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jr(e,n)}return o=r.interleaved,o===null?(t.next=t,uh(r)):(t.next=o.next,o.next=t),r.interleaved=t,jr(e,n)}function Tl(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,Xp(e,n)}}function dv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 sc(e,t,n,r){var o=e.updateQueue;qr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(h=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(w,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(w,f,h):y,h==null)break e;f=pt({},f,h);break e;case 2:qr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=w,l=f):u=u.next=w,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=a,e.lanes=a,e.memoizedState=f}}function fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{He=n,Md.transition=r}}function px(){return zn().memoizedState}function HC(e,t,n){var r=io(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hx(e))mx(t,n);else if(n=Y1(e,t,n,r),n!==null){var o=Xt();tr(n,e,r,o),gx(n,t,r)}}function VC(e,t,n){var r=io(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hx(e))mx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;l===null?(o.next=o,uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Y1(e,t,o,r),n!==null&&(o=Xt(),tr(n,e,r,o),gx(n,t,r))}}function hx(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function mx(e,t){Aa=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xp(e,n)}}var uc={readContext:Dn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},qC={readContext:Dn,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Dn,useEffect:hv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,lx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lr();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=HC.bind(null,dt,e),[r.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:pv,useDebugValue:xh,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=pv(!1),t=e[0];return e=WC.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=dt,o=lr();if(st){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Mt===null)throw Error(ce(349));Ao&30||ex(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hv(nx.bind(null,r,i,e),[e]),r.flags|=2048,ss(9,tx.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lr(),t=Mt.identifierPrefix;if(st){var n=Pr,r=Rr;n=(r&~(1<<32-er(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=is++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Ex(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return kh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function nR(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return kh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,rR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Xf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var kv=!1;function oR(e,t){if(If=Ql,e=_1(),rh(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;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 x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(R){gt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=kv,kv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xf(t,n,i)}o=o.next}while(o!==r)}}function Gc(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 Qf(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 Mx(e){var t=e.alternate;t!==null&&(e.alternate=null,Mx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Nf],delete t[BC],delete t[FC])),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 jx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jx(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 Jf(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=ec));else if(r!==4&&(e=e.child,e!==null))for(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}function Zf(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(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(zc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Td(e.parentNode,n):e.nodeType===1&&Td(e,n),Qa(e)):Td(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rR),t.forEach(function(r){var o=pR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aR(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function Bx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function fR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bx(e,n)}function pR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),Bx(e,n)}var Fx;Fx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,eR(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&V1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=qc,t.stateNode=o,o._reactInternals=t,Wf(t,r,e,n),t=qf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=mR(r),e=Yn(r,e),o){case 0:t=Vf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Vf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Rx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Q1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=Y1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return J1(t),e===null&&Bf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Lf(r,o)?a=null:i!==null&&Lf(r,i)&&(t.flags|=32),Cx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&Bf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ff(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ff(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return wx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),yx(t,r,o),Wf(t,r,o,n),qf(null,t,r,!0,e,n);case 19:return Px(e,t,n);case 22:return Sx(e,t,n)}throw Error(ce(156,t.tag))};function Ux(e,t){return m1(e,t)}function hR(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 In(e,t,n,r){return new hR(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mR(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(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 _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case pf:return e=In(12,n,t,o|2),e.elementType=pf,e.lanes=i,e;case hf:return e=In(13,n,t,o),e.elementType=hf,e.lanes=i,e;case mf:return e=In(19,n,t,o),e.elementType=mf,e.lanes=i,e;case Jy:return Yc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xy:a=10;break e;case Qy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Yc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Jy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ad(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Nd(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gR(e,t,n,r,o){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=vd(0),this.expirationTimes=vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new gR(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function vR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qx)}catch(e){console.error(e)}}qx(),qy.exports=Rn;var Oh=qy.exports;const cl=Nc(Oh);var Lv=Oh;df.createRoot=Lv.createRoot,df.hydrateRoot=Lv.hydrateRoot;function Gx(e,t){return function(){return e.apply(t,arguments)}}const{toString:SR}=Object.prototype,{getPrototypeOf:Ih}=Object,eu=(e=>t=>{const n=SR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>eu(t)===e),tu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=tu("undefined");function CR(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kx=ir("ArrayBuffer");function RR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kx(e.buffer),t}const kR=tu("string"),An=tu("function"),Yx=tu("number"),nu=e=>e!==null&&typeof e=="object",PR=e=>e===!0||e===!1,Ll=e=>{if(eu(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ER=ir("Date"),TR=ir("File"),$R=ir("Blob"),MR=ir("FileList"),jR=e=>nu(e)&&An(e.pipe),OR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=eu(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},IR=ir("URLSearchParams"),[_R,LR,AR,NR]=["ReadableStream","Request","Response","Headers"].map(ir),DR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Qx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jx=e=>!cs(e)&&e!==Qx;function op(){const{caseless:e}=Jx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Xx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=op(t[i],r):Ll(r)?t[i]=op({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=Gx(o,n):e[i]=o},{allOwnKeys:r}),e),BR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},UR=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HR=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Yx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),qR=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},GR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KR=ir("HTMLFormElement"),YR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XR=ir("RegExp"),Zx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},QR=e=>{Zx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},ZR=()=>{},ek=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",eb={DIGIT:Nv,ALPHA:Dd,ALPHA_DIGIT:Dd+Dd.toUpperCase()+Nv},tk=(e=16,t=eb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function nk(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rk=e=>{const t=new Array(10),n=(r,o)=>{if(nu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},ok=ir("AsyncFunction"),ik=e=>e&&(nu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Kx,isBuffer:CR,isFormData:OR,isArrayBufferView:RR,isString:kR,isNumber:Yx,isBoolean:PR,isObject:nu,isPlainObject:Ll,isReadableStream:_R,isRequest:LR,isResponse:AR,isHeaders:NR,isUndefined:cs,isDate:ER,isFile:TR,isBlob:$R,isRegExp:XR,isFunction:An,isStream:jR,isURLSearchParams:IR,isTypedArray:VR,isFileList:MR,forEach:Es,merge:op,extend:zR,trim:DR,stripBOM:BR,inherits:FR,toFlatObject:UR,kindOf:eu,kindOfTest:ir,endsWith:WR,toArray:HR,forEachEntry:qR,matchAll:GR,isHTMLForm:KR,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Zx,freezeMethods:QR,toObjectSet:JR,toCamelCase:YR,noop:ZR,toFiniteNumber:ek,findKey:Xx,global:Qx,isContextDefined:Jx,ALPHABET:eb,generateString:tk,isSpecCompliantForm:nk,toJSONObject:rk,isAsyncFn:ok,isThenable:ik};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tb=Me.prototype,nb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nb[e]={value:e}});Object.defineProperties(Me,nb);Object.defineProperty(tb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(tb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ak=null;function ip(e){return Q.isPlainObject(e)||Q.isArray(e)}function rb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=rb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sk(e){return Q.isArray(e)&&!e.some(ip)}const lk=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function ru(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&sk(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=rb(x),v.forEach(function(b,R){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],R,i):a===null?x:x+"[]",c(b))}),!1}return ip(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(lk,{defaultVisitor:u,convertValue:c,isVisitable:ip});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&ru(e,this,t)}const ob=_h.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ck(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ib(e,t,n){if(!t)return e;const r=n&&n.encode||ck,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uk=typeof URLSearchParams<"u"?URLSearchParams:_h,dk=typeof FormData<"u"?FormData:null,fk=typeof Blob<"u"?Blob:null,pk={isBrowser:!0,classes:{URLSearchParams:uk,FormData:dk,Blob:fk},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",hk=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),mk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gk=Lh&&window.location.href||"http://localhost",vk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:hk,hasStandardBrowserWebWorkerEnv:mk,origin:gk},Symbol.toStringTag,{value:"Module"})),nr={...vk,...pk};function yk(e,t){return ru(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xk(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bk(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=bk(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(xk(r),o,n,0)}),n}return null}function wk(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ab,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(sb(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yk(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ru(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wk(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const Sk=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ck=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Sk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function Rk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function Pk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ek(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!kk(t))a(Ck(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rk(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||zd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?Pk(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(Ek(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function Bd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function lb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function cb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $k(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=$k(50,250);return Mk(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},jk=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),Ok=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ik(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _k(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ub(e,t){return e&&!Ik(t)?_k(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const db=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ib(ub(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&jk(t.url))){const c=o&&i&&Ok.read(i);c&&a.set(o,c)}return t},Lk=typeof XMLHttpRequest<"u",Ak=Lk&&function(e){return new Promise(function(n,r){const o=db(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};cb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ab;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=Tk(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Nk=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Dk=function*(e,t){let n=e.byteLength;if(!t||n{const i=zk(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ou=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fb=ou&&typeof ReadableStream=="function",ap=ou&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bk=fb&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,sp=fb&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:sp&&(e=>e.body)};ou&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const Fk=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ap(e)).byteLength},Uk=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??Fk(t)},Wk=ou&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=db(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?Nk([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&Bk&&n!=="get"&&n!=="head"&&(m=await Uk(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ap))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const R=sp&&(c==="stream"||c==="response");if(sp&&(s||R)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),R&&v,ap),T)}c=c||"text";let k=await vc[Q.findKey(vc,c)||"text"](b,e);return!R&&v(),y&&y(),await new Promise((T,P)=>{cb(T,P,{data:k,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),lp={http:ak,xhr:Ak,fetch:Wk};Q.forEach(lp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,Hk=e=>Q.isFunction(e)||e===null||e===!1,pb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Id(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YC=typeof WeakMap=="function"?WeakMap:Map;function yx(e,t,n){n=Tr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fc||(fc=!0,Zf=r),Wf(e,t)},n}function xx(e,t,n){n=Tr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Wf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wf(e,t),typeof r!="function"&&(oo===null?oo=new Set([this]):oo.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function vv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ck.bind(null,e,t,n),t.then(e,e))}function yv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xv(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tr(-1,1),t.tag=2,ro(n,t,1))),n.lanes|=1),e)}var XC=Ar.ReactCurrentOwner,rn=!1;function Kt(e,t,n,r){t.child=e===null?K1(t,null,n,r):Mi(t,e.child,n,r)}function bv(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=gh(e,t,n,r,i,o),n=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&n&&oh(t),t.flags|=1,Kt(e,t,r,o),t.child)}function wv(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Eh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bx(e,t,i,r,o)):(e=_l(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(a,r)&&e.ref===t.ref)return Or(e,t,o)}return t.flags|=1,e=ao(i,r),e.ref=t.ref,e.return=t,t.child=e}function bx(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Za(i,r)&&e.ref===t.ref)if(rn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,Or(e,t,o)}return Hf(e,t,n,r,o)}function wx(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Je(gi,gn),gn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Je(gi,gn),gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Je(gi,gn),gn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Je(gi,gn),gn|=r;return Kt(e,t,o,n),t.child}function Sx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hf(e,t,n,r,o){var i=an(n)?_o:Wt.current;return i=Ti(t,i),Si(t,o),n=gh(e,t,n,r,i,o),r=vh(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Or(e,t,o)):(st&&r&&oh(t),t.flags|=1,Kt(e,t,n,o),t.child)}function Sv(e,t,n,r,o){if(an(n)){var i=!0;nc(t)}else i=!1;if(Si(t,o),t.stateNode===null)jl(e,t),vx(t,n,r),Uf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Dn(c):(c=an(n)?_o:Wt.current,c=Ti(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&gv(t,a,r,c),qr=!1;var h=t.memoizedState;a.state=h,sc(t,r,a,o),l=t.memoizedState,s!==r||h!==l||on.current||qr?(typeof u=="function"&&(Ff(t,n,u,r),l=t.memoizedState),(s=qr||mv(t,n,s,r,h,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,X1(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Yn(t.type,s),a.props=c,f=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Dn(l):(l=an(n)?_o:Wt.current,l=Ti(t,l));var w=n.getDerivedStateFromProps;(u=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&gv(t,a,r,l),qr=!1,h=t.memoizedState,a.state=h,sc(t,r,a,o);var y=t.memoizedState;s!==f||h!==y||on.current||qr?(typeof w=="function"&&(Ff(t,n,w,r),y=t.memoizedState),(c=qr||mv(t,n,c,r,h,y,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vf(e,t,n,r,i,o)}function Vf(e,t,n,r,o,i){Sx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sv(t,n,!1),Or(e,t,i);r=t.stateNode,XC.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Mi(t,e.child,null,i),t.child=Mi(t,null,s,i)):Kt(e,t,s,i),t.memoizedState=r.state,o&&sv(t,n,!0),t.child}function Cx(e){var t=e.stateNode;t.pendingContext?av(e,t.pendingContext,t.pendingContext!==t.context):t.context&&av(e,t.context,!1),fh(e,t.containerInfo)}function Cv(e,t,n,r,o){return $i(),ah(o),t.flags|=256,Kt(e,t,n,r),t.child}var qf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function kx(e,t,n){var r=t.pendingProps,o=ct.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Je(ct,o&1),e===null)return zf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Kc(a,r,0,null),e=jo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gf(n),t.memoizedState=qf,e):bh(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return QC(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ao(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=ao(s,i):(i=jo(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Gf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=qf,r}return i=e.child,e=i.sibling,r=ao(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bh(e,t){return t=Kc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,n,r){return r!==null&&ah(r),Mi(t,e.child,null,n),e=bh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QC(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Id(Error(ce(422))),il(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Kc({mode:"visible",children:r.children},o,0,null),i=jo(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Mi(t,e.child,null,a),t.child.memoizedState=Gf(a),t.memoizedState=qf,i);if(!(t.mode&1))return il(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(ce(419)),r=Id(i,r,void 0),il(e,t,a,r)}if(s=(a&e.childLanes)!==0,rn||s){if(r=Mt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,jr(e,o),tr(r,e,o,-1))}return Ph(),r=Id(Error(ce(421))),il(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=uk.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yn=no(o.nextSibling),xn=t,st=!0,Qn=null,e!==null&&(Mn[jn++]=Rr,Mn[jn++]=Pr,Mn[jn++]=Lo,Rr=e.id,Pr=e.overflow,Lo=t),t=bh(t,r.children),t.flags|=4096,t)}function kv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bf(e.return,t,n)}function _d(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rx(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Kt(e,t,r.children,n),r=ct.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kv(e,n,t);else if(e.tag===19)kv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Je(ct,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&lc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_d(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&lc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_d(t,!0,n,null,i);break;case"together":_d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),No|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=ao(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ao(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JC(e,t,n){switch(t.tag){case 3:Cx(t),$i();break;case 5:Q1(t);break;case 1:an(t.type)&&nc(t);break;case 4:fh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Je(ic,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?kx(e,t,n):(Je(ct,ct.current&1),e=Or(e,t,n),e!==null?e.sibling:null);Je(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Je(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return Or(e,t,n)}var Px,Kf,Ex,Tx;Px=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kf=function(){};Ex=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eo(pr.current);var i=null;switch(n){case"input":o=gf(e,o),r=gf(e,r),i=[];break;case"select":o=pt({},o,{value:void 0}),r=pt({},r,{value:void 0}),i=[];break;case"textarea":o=xf(e,o),r=xf(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ec)}wf(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(qa.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(qa.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ze("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function pa(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ZC(e,t,n){var r=t.pendingProps;switch(ih(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(t),null;case 1:return an(t.type)&&tc(),Bt(t),null;case 3:return r=t.stateNode,ji(),et(on),et(Wt),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qn!==null&&(np(Qn),Qn=null))),Kf(e,t),Bt(t),null;case 5:ph(t);var o=Eo(os.current);if(n=t.type,e!==null&&t.stateNode!=null)Ex(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return Bt(t),null}if(e=Eo(pr.current),rl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dr]=t,r[ns]=i,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[dr]=t,e[ns]=r,Px(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sf(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),o=r;break;case"iframe":case"object":case"embed":Ze("load",e),o=r;break;case"video":case"audio":for(o=0;oIi&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304)}else{if(!r)if(e=lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!st)return Bt(t),null}else 2*vt()-i.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=128,r=!0,pa(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vt(),t.sibling=null,n=ct.current,Je(ct,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return Rh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function ek(e,t){switch(ih(t),t.tag){case 1:return an(t.type)&&tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ji(),et(on),et(Wt),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ji(),null;case 10:return ch(t.type._context),null;case 22:case 23:return Rh(),null;case 24:return null;default:return null}}var al=!1,Ut=!1,tk=typeof WeakSet=="function"?WeakSet:Set,xe=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function Yf(e,t,n){try{n()}catch(r){gt(e,t,r)}}var Rv=!1;function nk(e,t){if(Of=Ql,e=I1(),rh(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var w;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(If={focusedElem:e,selectionRange:n},Ql=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;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 x=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yn(t.type,x),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(k){gt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=Rv,Rv=!1,y}function Na(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yf(t,n,i)}o=o.next}while(o!==r)}}function qc(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 Xf(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 $x(e){var t=e.alternate;t!==null&&(e.alternate=null,$x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[ns],delete t[Af],delete t[DC],delete t[zC])),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 Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(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 Qf(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=ec));else if(r!==4&&(e=e.child,e!==null))for(Qf(e,t,n),e=e.sibling;e!==null;)Qf(e,t,n),e=e.sibling}function Jf(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(Jf(e,t,n),e=e.sibling;e!==null;)Jf(e,t,n),e=e.sibling}var _t=null,Xn=!1;function Br(e,t,n){for(n=n.child;n!==null;)jx(e,t,n),n=n.sibling}function jx(e,t,n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:Ut||mi(n,t);case 6:var r=_t,o=Xn;_t=null,Br(e,t,n),_t=r,Xn=o,_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_t.removeChild(n.stateNode));break;case 18:_t!==null&&(Xn?(e=_t,n=n.stateNode,e.nodeType===8?Ed(e.parentNode,n):e.nodeType===1&&Ed(e,n),Qa(e)):Ed(_t,n.stateNode));break;case 4:r=_t,o=Xn,_t=n.stateNode.containerInfo,Xn=!0,Br(e,t,n),_t=r,Xn=o;break;case 0:case 11:case 14:case 15:if(!Ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yf(n,t,a),o=o.next}while(o!==r)}Br(e,t,n);break;case 1:if(!Ut&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){gt(n,t,s)}Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:n.mode&1?(Ut=(r=Ut)||n.memoizedState!==null,Br(e,t,n),Ut=r):Br(e,t,n);break;default:Br(e,t,n)}}function Ev(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tk),t.forEach(function(r){var o=dk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ok(r/1960))-r,10e?16:e,Xr===null)var r=!1;else{if(e=Xr,Xr=null,pc=0,ze&6)throw Error(ce(331));var o=ze;for(ze|=4,xe=e.current;xe!==null;){var i=xe,a=i.child;if(xe.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lvt()-Ch?Mo(e,0):Sh|=n),sn(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Xt();e=jr(e,t),e!==null&&(Cs(e,t,n),sn(e,n))}function uk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function dk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),zx(e,n)}var Bx;Bx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||on.current)rn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rn=!1,JC(e,t,n);rn=!!(e.flags&131072)}else rn=!1,st&&t.flags&1048576&&H1(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var o=Ti(t,Wt.current);Si(t,n),o=gh(null,t,r,e,o,n);var i=vh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,an(r)?(i=!0,nc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dh(t),o.updater=Vc,t.stateNode=o,o._reactInternals=t,Uf(t,r,e,n),t=Vf(null,t,r,!0,i,n)):(t.tag=0,st&&i&&oh(t),Kt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pk(r),e=Yn(r,e),o){case 0:t=Hf(null,t,r,e,n);break e;case 1:t=Sv(null,t,r,e,n);break e;case 11:t=bv(null,t,r,e,n);break e;case 14:t=wv(null,t,r,Yn(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Hf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),Sv(e,t,r,o,n);case 3:e:{if(Cx(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,X1(e,t),sc(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Oi(Error(ce(423)),t),t=Cv(e,t,r,n,o);break e}else if(r!==o){o=Oi(Error(ce(424)),t),t=Cv(e,t,r,n,o);break e}else for(yn=no(t.stateNode.containerInfo.firstChild),xn=t,st=!0,Qn=null,n=K1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===o){t=Or(e,t,n);break e}Kt(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&zf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_f(r,o)?a=null:i!==null&&_f(r,i)&&(t.flags|=32),Sx(e,t),Kt(e,t,a,n),t.child;case 6:return e===null&&zf(t),null;case 13:return kx(e,t,n);case 4:return fh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mi(t,null,r,n):Kt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),bv(e,t,r,o,n);case 7:return Kt(e,t,t.pendingProps,n),t.child;case 8:return Kt(e,t,t.pendingProps.children,n),t.child;case 12:return Kt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Je(ic,r._currentValue),r._currentValue=a,i!==null)if(rr(i.value,a)){if(i.children===o.children&&!on.current){t=Or(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tr(-1,n&-n),l.tag=2;var c=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bf(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bf(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Kt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),o=Dn(o),r=r(o),t.flags|=1,Kt(e,t,r,n),t.child;case 14:return r=t.type,o=Yn(r,t.pendingProps),o=Yn(r.type,o),wv(e,t,r,o,n);case 15:return bx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yn(r,o),jl(e,t),t.tag=1,an(r)?(e=!0,nc(t)):e=!1,Si(t,n),vx(t,r,o),Uf(t,r,o,n),Vf(null,t,r,!0,e,n);case 19:return Rx(e,t,n);case 22:return wx(e,t,n)}throw Error(ce(156,t.tag))};function Fx(e,t){return h1(e,t)}function fk(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 In(e,t,n,r){return new fk(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pk(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qp)return 11;if(e===Gp)return 14}return 2}function ao(e,t){var n=e.alternate;return n===null?(n=In(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 _l(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Eh(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ai:return jo(n.children,o,i,t);case Vp:a=8,o|=8;break;case ff:return e=In(12,n,t,o|2),e.elementType=ff,e.lanes=i,e;case pf:return e=In(13,n,t,o),e.elementType=pf,e.lanes=i,e;case hf:return e=In(19,n,t,o),e.elementType=hf,e.lanes=i,e;case Qy:return Kc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yy:a=10;break e;case Xy:a=9;break e;case qp:a=11;break e;case Gp:a=14;break e;case Vr:a=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=In(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jo(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Kc(e,t,n,r){return e=In(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function Ld(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Ad(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hk(e,t,n,r,o){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=gd(0),this.expirationTimes=gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Th(e,t,n,r,o,i,a,s,l){return e=new hk(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=In(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dh(i),e}function mk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vx)}catch(e){console.error(e)}}Vx(),Vy.exports=kn;var Oh=Vy.exports;const cl=Np(Oh);var Lv=Oh;uf.createRoot=Lv.createRoot,uf.hydrateRoot=Lv.hydrateRoot;function qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:bk}=Object.prototype,{getPrototypeOf:Ih}=Object,Zc=(e=>t=>{const n=bk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ir=e=>(e=e.toLowerCase(),t=>Zc(t)===e),eu=e=>t=>typeof t===e,{isArray:qi}=Array,cs=eu("undefined");function wk(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gx=ir("ArrayBuffer");function Sk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gx(e.buffer),t}const Ck=eu("string"),An=eu("function"),Kx=eu("number"),tu=e=>e!==null&&typeof e=="object",kk=e=>e===!0||e===!1,Ll=e=>{if(Zc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rk=ir("Date"),Pk=ir("File"),Ek=ir("Blob"),Tk=ir("FileList"),$k=e=>tu(e)&&An(e.pipe),Mk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=Zc(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},jk=ir("URLSearchParams"),[Ok,Ik,_k,Lk]=["ReadableStream","Request","Response","Headers"].map(ir),Ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),qi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Xx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qx=e=>!cs(e)&&e!==Xx;function rp(){const{caseless:e}=Qx(this)&&this||{},t={},n=(r,o)=>{const i=e&&Yx(t,o)||o;Ll(t[i])&&Ll(r)?t[i]=rp(t[i],r):Ll(r)?t[i]=rp({},r):qi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Es(t,(o,i)=>{n&&An(o)?e[i]=qx(o,n):e[i]=o},{allOwnKeys:r}),e),Dk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bk=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ih(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Uk=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!Kx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),Hk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Vk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qk=ir("HTMLFormElement"),Gk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Av=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kk=ir("RegExp"),Jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Es(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Yk=e=>{Jx(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(An(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return qi(e)?r(e):r(String(e).split(t)),n},Qk=()=>{},Jk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Nd="abcdefghijklmnopqrstuvwxyz",Nv="0123456789",Zx={DIGIT:Nv,ALPHA:Nd,ALPHA_DIGIT:Nd+Nd.toUpperCase()+Nv},Zk=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eR(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tR=e=>{const t=new Array(10),n=(r,o)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=qi(r)?[]:{};return Es(r,(a,s)=>{const l=n(a,o+1);!cs(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},nR=ir("AsyncFunction"),rR=e=>e&&(tu(e)||An(e))&&An(e.then)&&An(e.catch),Q={isArray:qi,isArrayBuffer:Gx,isBuffer:wk,isFormData:Mk,isArrayBufferView:Sk,isString:Ck,isNumber:Kx,isBoolean:kk,isObject:tu,isPlainObject:Ll,isReadableStream:Ok,isRequest:Ik,isResponse:_k,isHeaders:Lk,isUndefined:cs,isDate:Rk,isFile:Pk,isBlob:Ek,isRegExp:Kk,isFunction:An,isStream:$k,isURLSearchParams:jk,isTypedArray:Wk,isFileList:Tk,forEach:Es,merge:rp,extend:Nk,trim:Ak,stripBOM:Dk,inherits:zk,toFlatObject:Bk,kindOf:Zc,kindOfTest:ir,endsWith:Fk,toArray:Uk,forEachEntry:Hk,matchAll:Vk,isHTMLForm:qk,hasOwnProperty:Av,hasOwnProp:Av,reduceDescriptors:Jx,freezeMethods:Yk,toObjectSet:Xk,toCamelCase:Gk,noop:Qk,toFiniteNumber:Jk,findKey:Yx,global:Xx,isContextDefined:Qx,ALPHABET:Zx,generateString:Zk,isSpecCompliantForm:eR,toJSONObject:tR,isAsyncFn:nR,isThenable:rR};function Me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Q.inherits(Me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eb=Me.prototype,tb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tb[e]={value:e}});Object.defineProperties(Me,tb);Object.defineProperty(eb,"isAxiosError",{value:!0});Me.from=(e,t,n,r,o,i)=>{const a=Object.create(eb);return Q.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const oR=null;function op(e){return Q.isPlainObject(e)||Q.isArray(e)}function nb(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Dv(e,t,n){return e?e.concat(t).map(function(o,i){return o=nb(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function iR(e){return Q.isArray(e)&&!e.some(op)}const aR=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!Q.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Q.isDate(y))return y.toISOString();if(!l&&Q.isBlob(y))throw new Me("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(y)||Q.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,x,C){let v=y;if(y&&!C&&typeof y=="object"){if(Q.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(Q.isArray(y)&&iR(y)||(Q.isFileList(y)||Q.endsWith(x,"[]"))&&(v=Q.toArray(y)))return x=nb(x),v.forEach(function(b,k){!(Q.isUndefined(b)||b===null)&&t.append(a===!0?Dv([x],k,i):a===null?x:x+"[]",c(b))}),!1}return op(y)?!0:(t.append(Dv(C,x,i),c(y)),!1)}const f=[],h=Object.assign(aR,{defaultVisitor:u,convertValue:c,isVisitable:op});function w(y,x){if(!Q.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(y),Q.forEach(y,function(v,m){(!(Q.isUndefined(v)||v===null)&&o.call(t,v,Q.isString(m)?m.trim():m,x,h))===!0&&w(v,x?x.concat(m):[m])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _h(e,t){this._pairs=[],e&&nu(e,this,t)}const rb=_h.prototype;rb.append=function(t,n){this._pairs.push([t,n])};rb.toString=function(t){const n=t?function(r){return t.call(this,r,zv)}:zv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ob(e,t,n){if(!t)return e;const r=n&&n.encode||sR,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Q.isURLSearchParams(t)?t.toString():new _h(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lR=typeof URLSearchParams<"u"?URLSearchParams:_h,cR=typeof FormData<"u"?FormData:null,uR=typeof Blob<"u"?Blob:null,dR={isBrowser:!0,classes:{URLSearchParams:lR,FormData:cR,Blob:uR},protocols:["http","https","file","blob","url","data"]},Lh=typeof window<"u"&&typeof document<"u",fR=(e=>Lh&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hR=Lh&&window.location.href||"http://localhost",mR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lh,hasStandardBrowserEnv:fR,hasStandardBrowserWebWorkerEnv:pR,origin:hR},Symbol.toStringTag,{value:"Module"})),nr={...mR,...dR};function gR(e,t){return nu(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nr.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function vR(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yR(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Q.isArray(o)?o.length:a,l?(Q.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Q.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Q.isArray(o[a])&&(o[a]=yR(o[a])),!s)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,o)=>{t(vR(r),o,n,0)}),n}return null}function xR(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ts={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return o?JSON.stringify(ab(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gR(t,this.formSerializer).toString();if((s=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return nu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),xR(t)):t}],transformResponse:[function(t){const n=this.transitional||Ts.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Me.from(s,Me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Ts.headers[e]={}});const bR=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wR=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&bR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fv=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function Al(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Al):String(e)}function SR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dd(e,t,n,r,o){if(Q.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function kR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RR(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=ma(l);if(!u)throw new Error("header name must be a non-empty string");const f=Q.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Al(s))}const a=(s,l)=>Q.forEach(s,(c,u)=>i(c,u,l));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!CR(t))a(wR(t),n);else if(Q.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return SR(o);if(Q.isFunction(n))return n.call(this,o,r);if(Q.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ma(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ma(a),a){const s=Q.findKey(r,a);s&&(!n||Dd(r,r[s],s,n))&&(delete r[s],o=!0)}}return Q.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Dd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Q.forEach(this,(o,i)=>{const a=Q.findKey(r,i);if(a){n[a]=Al(o),delete n[i];return}const s=t?kR(i):String(i).trim();s!==i&&delete n[i],n[s]=Al(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Fv]=this[Fv]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=ma(a);r[s]||(RR(o,a),r[s]=!0)}return Q.isArray(t)?t.forEach(i):i(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(ln);function zd(e,t){const n=this||Ts,r=t||n,o=ln.from(r.headers);let i=r.data;return Q.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function sb(e){return!!(e&&e.__CANCEL__)}function Gi(e,t,n){Me.call(this,e??"canceled",Me.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Gi,Me,{__CANCEL__:!0});function lb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function PR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ER(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-ar)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const gc=(e,t,n=3)=>{let r=0;const o=ER(50,250);return TR(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},n)},$R=nr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Q.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),MR=nr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cb(e,t){return e&&!jR(t)?OR(e,t):t}const Uv=e=>e instanceof ln?{...e}:e;function zo(e,t){t=t||{};const n={};function r(c,u,f){return Q.isPlainObject(c)&&Q.isPlainObject(u)?Q.merge.call({caseless:f},c,u):Q.isPlainObject(u)?Q.merge({},u):Q.isArray(u)?u.slice():u}function o(c,u,f){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!Q.isUndefined(u))return r(void 0,u)}function a(c,u){if(Q.isUndefined(u)){if(!Q.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Uv(c),Uv(u),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Q.isUndefined(h)&&f!==s||(n[u]=h)}),n}const ub=e=>{const t=zo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=ln.from(a),t.url=ob(cb(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Q.isFormData(n)){if(nr.hasStandardBrowserEnv||nr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(nr.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&$R(t.url))){const c=o&&i&&MR.read(i);c&&a.set(o,c)}return t},IR=typeof XMLHttpRequest<"u",_R=IR&&function(e){return new Promise(function(n,r){const o=ub(e);let i=o.data;const a=ln.from(o.headers).normalize();let{responseType:s}=o,l;function c(){o.cancelToken&&o.cancelToken.unsubscribe(l),o.signal&&o.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function f(){if(!u)return;const w=ln.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:e,request:u};lb(function(v){n(v),c()},function(v){r(v),c()},x),u=null}"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new Me("Request aborted",Me.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new Me("Network Error",Me.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||ib;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new Me(y,x.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,o,u)),u=null},i===void 0&&a.setContentType(null),"setRequestHeader"in u&&Q.forEach(a.toJSON(),function(y,x){u.setRequestHeader(x,y)}),Q.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&u.addEventListener("progress",gc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",gc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(l=w=>{u&&(r(!w||w.type?new Gi(null,e,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(l),o.signal&&(o.signal.aborted?l():o.signal.addEventListener("abort",l)));const h=PR(o.url);if(h&&nr.protocols.indexOf(h)===-1){r(new Me("Unsupported protocol "+h+":",Me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},LR=(e,t)=>{let n=new AbortController,r;const o=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Me?c:new Gi(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{o(new Me(`timeout ${t} of ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",o):l.unsubscribe(o))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},AR=function*(e,t){let n=e.byteLength;if(!t||n{const i=NR(e,t,o);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await i.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),i.return()}},{highWaterMark:2})},Hv=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",db=ru&&typeof ReadableStream=="function",ip=ru&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),DR=db&&(()=>{let e=!1;const t=new Request(nr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vv=64*1024,ap=db&&!!(()=>{try{return Q.isReadableStream(new Response("").body)}catch{}})(),vc={stream:ap&&(e=>e.body)};ru&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vc[t]&&(vc[t]=Q.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Me(`Response type '${t}' is not supported`,Me.ERR_NOT_SUPPORT,r)})})})(new Response);const zR=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await ip(e)).byteLength},BR=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??zR(t)},FR=ru&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=ub(e);c=c?(c+"").toLowerCase():"text";let[w,y]=o||i||a?LR([o,i],a):[],x,C;const v=()=>{!x&&setTimeout(()=>{w&&w.unsubscribe()}),x=!0};let m;try{if(l&&DR&&n!=="get"&&n!=="head"&&(m=await BR(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),P;Q.isFormData(r)&&(P=T.headers.get("content-type"))&&u.setContentType(P),T.body&&(r=Wv(T.body,Vv,Hv(m,gc(l)),null,ip))}Q.isString(f)||(f=f?"cors":"omit"),C=new Request(t,{...h,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let b=await fetch(C);const k=ap&&(c==="stream"||c==="response");if(ap&&(s||k)){const T={};["status","statusText","headers"].forEach(j=>{T[j]=b[j]});const P=Q.toFiniteNumber(b.headers.get("content-length"));b=new Response(Wv(b.body,Vv,s&&Hv(P,gc(s,!0)),k&&v,ip),T)}c=c||"text";let R=await vc[Q.findKey(vc,c)||"text"](b,e);return!k&&v(),y&&y(),await new Promise((T,P)=>{lb(T,P,{data:R,headers:ln.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:C})})}catch(b){throw v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Me("Network Error",Me.ERR_NETWORK,e,C),{cause:b.cause||b}):Me.from(b,b&&b.code,e,C)}}),sp={http:oR,xhr:_R,fetch:FR};Q.forEach(sp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qv=e=>`- ${e}`,UR=e=>Q.isFunction(e)||e===null||e===!1,fb={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(qv).join(` -`):" "+qv(i[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:lp};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function Gv(e){return Fd(e),e.headers=ln.from(e.headers),e.data=Bd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pb.getAdapter(e.adapter||Ts.adapter)(e).then(function(r){return Fd(e),r.data=Bd.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return lb(r)||(Fd(e),r&&r.response&&(r.response.data=Bd.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const hb="1.7.2",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Ah.transitional=function(t,n,r){function o(i,a){return"[Axios v"+hb+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Me(o(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Kv[a]&&(Kv[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Vk(e,t,n){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Me("option "+i+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}}const cp={assertOptions:Vk,validators:Ah},Fr=cp.validators;class Oo{constructor(t){this.defaults=t,this.interceptors={request:new Bv,response:new Bv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:cp.assertOptions(o,{encode:Fr.function,serialize:Fr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ln.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[Gv.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),h=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Gi(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nh(function(o){t=o}),cancel:t}}}function qk(e){return function(n){return e.apply(null,n)}}function Gk(e){return Q.isObject(e)&&e.isAxiosError===!0}const up={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(up).forEach(([e,t])=>{up[t]=e});function mb(e){const t=new Oo(e),n=Gx(Oo.prototype.request,t);return Q.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mb(zo(e,o))},n}const Oe=mb(Ts);Oe.Axios=Oo;Oe.CanceledError=Gi;Oe.CancelToken=Nh;Oe.isCancel=lb;Oe.VERSION=hb;Oe.toFormData=ru;Oe.AxiosError=Me;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=qk;Oe.isAxiosError=Gk;Oe.mergeConfig=zo;Oe.AxiosHeaders=ln;Oe.formToJSON=e=>sb(Q.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=pb.getAdapter;Oe.HttpStatusCode=up;Oe.default=Oe;/** +`):" "+qv(i[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:sp};function Bd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gi(null,e)}function Gv(e){return Bd(e),e.headers=ln.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fb.getAdapter(e.adapter||Ts.adapter)(e).then(function(r){return Bd(e),r.data=zd.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return sb(r)||(Bd(e),r&&r.response&&(r.response.data=zd.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const pb="1.7.2",Ah={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ah[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kv={};Ah.transitional=function(t,n,r){function o(i,a){return"[Axios v"+pb+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Me(o(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!Kv[a]&&(Kv[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function WR(e,t,n){if(typeof e!="object")throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Me("option "+i+" must be "+l,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}}const lp={assertOptions:WR,validators:Ah},Fr=lp.validators;class Oo{constructor(t){this.defaults=t,this.interceptors={request:new Bv,response:new Bv}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&lp.assertOptions(r,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),o!=null&&(Q.isFunction(o)?n.paramsSerializer={serialize:o}:lp.assertOptions(o,{encode:Fr.function,serialize:Fr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Q.merge(i.common,i[n.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=ln.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let u,f=0,h;if(!l){const y=[Gv.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),h=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Gi(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nh(function(o){t=o}),cancel:t}}}function HR(e){return function(n){return e.apply(null,n)}}function VR(e){return Q.isObject(e)&&e.isAxiosError===!0}const cp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cp).forEach(([e,t])=>{cp[t]=e});function hb(e){const t=new Oo(e),n=qx(Oo.prototype.request,t);return Q.extend(n,Oo.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return hb(zo(e,o))},n}const Oe=hb(Ts);Oe.Axios=Oo;Oe.CanceledError=Gi;Oe.CancelToken=Nh;Oe.isCancel=sb;Oe.VERSION=pb;Oe.toFormData=nu;Oe.AxiosError=Me;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=HR;Oe.isAxiosError=VR;Oe.mergeConfig=zo;Oe.AxiosHeaders=ln;Oe.formToJSON=e=>ab(Q.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=fb.getAdapter;Oe.HttpStatusCode=cp;Oe.default=Oe;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -51,7 +51,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yk(){return Math.random().toString(36).substr(2,8)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function dp(e,t,n,r){return n===void 0&&(n=null),us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ki(t):t,{state:n,key:t&&t.key||r||Yk()})}function yc(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 Ki(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 Xk(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(us({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=Qr.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:v})}function h(C,v){s=Qr.Push;let m=dp(x.location,C,v);c=u()+1;let b=Xv(m,c),R=x.createHref(m);try{a.pushState(b,"",R)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(R)}i&&l&&l({action:s,location:x.location,delta:1})}function w(C,v){s=Qr.Replace;let m=dp(x.location,C,v);c=u();let b=Xv(m,c),R=x.createHref(m);a.replaceState(b,"",R),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:yc(C);return m=m.replace(/ $/,"%20"),ft(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yv,f),l=C,()=>{o.removeEventListener(Yv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:w,go(C){return a.go(C)}};return x}var Qv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qv||(Qv={}));function Qk(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ki(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=vb(e);Jk(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=so([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),vb(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:iP(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of yb(i.path))o(i,a,l)}),t}function yb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=yb(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Jk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Zk=/^:[\w-]+$/,eP=3,tP=2,nP=1,rP=10,oP=-2,Jv=e=>e==="*";function iP(e,t){let n=e.split("/"),r=n.length;return n.some(Jv)&&(r+=oP),t&&(r+=tP),n.filter(o=>!Jv(o)).reduce((o,i)=>o+(Zk.test(i)?eP:i===""?nP:rP),r)}function aP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function sP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:h,isOptional:w}=u;if(h==="*"){let x=s[f]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[f];return w&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function lP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function cP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _i(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)||"/"}function uP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ki(e):e;return{pathname:n?n.startsWith("/")?n:dP(n,t):t,search:hP(r),hash:mP(o)}}function dP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ud(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function fP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e,t){let n=fP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ki(e):(o=us({},e),ft(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Ud("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=uP(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const so=e=>e.join("/").replace(/\/\/+/g,"/"),pP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function gP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xb=["post","put","patch","delete"];new Set(xb);const vP=["get",...xb];new Set(vP);/** + */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GR(){return Math.random().toString(36).substr(2,8)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function up(e,t,n,r){return n===void 0&&(n=null),us({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ki(t):t,{state:n,key:t&&t.key||r||GR()})}function yc(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 Ki(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 KR(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qr.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(us({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=Qr.Pop;let C=u(),v=C==null?null:C-c;c=C,l&&l({action:s,location:x.location,delta:v})}function h(C,v){s=Qr.Push;let m=up(x.location,C,v);c=u()+1;let b=Xv(m,c),k=x.createHref(m);try{a.pushState(b,"",k)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(k)}i&&l&&l({action:s,location:x.location,delta:1})}function w(C,v){s=Qr.Replace;let m=up(x.location,C,v);c=u();let b=Xv(m,c),k=x.createHref(m);a.replaceState(b,"",k),i&&l&&l({action:s,location:x.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:yc(C);return m=m.replace(/ $/,"%20"),ft(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let x={get action(){return s},get location(){return e(o,a)},listen(C){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Yv,f),l=C,()=>{o.removeEventListener(Yv,f),l=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:w,go(C){return a.go(C)}};return x}var Qv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qv||(Qv={}));function YR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ki(t):t,o=_i(r.pathname||"/",n);if(o==null)return null;let i=gb(e);XR(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=so([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),gb(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:rP(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of vb(i.path))o(i,a,l)}),t}function vb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vb(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function XR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const QR=/^:[\w-]+$/,JR=3,ZR=2,eP=1,tP=10,nP=-2,Jv=e=>e==="*";function rP(e,t){let n=e.split("/"),r=n.length;return n.some(Jv)&&(r+=nP),t&&(r+=ZR),n.filter(o=>!Jv(o)).reduce((o,i)=>o+(QR.test(i)?JR:i===""?eP:tP),r)}function oP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function iP(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:h,isOptional:w}=u;if(h==="*"){let x=s[f]||"";a=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=s[f];return w&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function aP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _i(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)||"/"}function lP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ki(e):e;return{pathname:n?n.startsWith("/")?n:cP(n,t):t,search:fP(r),hash:pP(o)}}function cP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Fd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dh(e,t){let n=uP(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function zh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ki(e):(o=us({},e),ft(!o.pathname||!o.pathname.includes("?"),Fd("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),Fd("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),Fd("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=lP(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const so=e=>e.join("/").replace(/\/\/+/g,"/"),dP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yb=["post","put","patch","delete"];new Set(yb);const mP=["get",...yb];new Set(mP);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -60,7 +60,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=zh(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:so([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}function $s(){let{matches:e}=p.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function su(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Nr),{matches:o}=p.useContext(Dr),{pathname:i}=ho(),a=JSON.stringify(Dh(o,r.v7_relativeSplatPath));return p.useMemo(()=>zh(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function bP(e,t){return wP(e,t)}function wP(e,t,n,r){Yi()||ft(!1);let{navigator:o}=p.useContext(Nr),{matches:i}=p.useContext(Dr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ho(),u;if(t){var f;let C=typeof t=="string"?Ki(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||ft(!1),u=C}else u=c;let h=u.pathname||"/",w=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=Qk(e,{pathname:w}),x=PP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:so([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:so([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&x?p.createElement(au.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},x):x}function SP(){let e=MP(),t=gP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const CP=p.createElement(SP,null);class RP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Dr.Provider,{value:this.props.routeContext},p.createElement(wb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(iu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Dr.Provider,{value:t},r)}function PP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ft(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let w,y=!1,x=null,C=null;n&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||CP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),m=()=>{let b;return w?b=x:y?b=C:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,p.createElement(kP,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(RP,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var Cb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cb||{}),xc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xc||{});function EP(e){let t=p.useContext(iu);return t||ft(!1),t}function TP(e){let t=p.useContext(bb);return t||ft(!1),t}function $P(e){let t=p.useContext(Dr);return t||ft(!1),t}function Rb(e){let t=$P(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function MP(){var e;let t=p.useContext(wb),n=TP(xc.UseRouteError),r=Rb(xc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jP(){let{router:e}=EP(Cb.UseNavigateStable),t=Rb(xc.UseNavigateStable),n=p.useRef(!1);return Sb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ds({fromRouteId:t},i)))},[e,t])}function OP(e){let{to:t,replace:n,state:r,relative:o}=e;Yi()||ft(!1);let{future:i,static:a}=p.useContext(Nr),{matches:s}=p.useContext(Dr),{pathname:l}=ho(),c=qo(),u=zh(t,Dh(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function mn(e){ft(!1)}function IP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:i,static:a=!1,future:s}=e;Yi()&&ft(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:ds({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ki(r));let{pathname:u="/",search:f="",hash:h="",state:w=null,key:y="default"}=r,x=p.useMemo(()=>{let C=_i(u,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:w,key:y},navigationType:o}},[l,u,f,h,w,y,o]);return x==null?null:p.createElement(Nr.Provider,{value:c},p.createElement(au.Provider,{children:n,value:x}))}function _P(e){let{children:t,location:n}=e;return bP(pp(t),n)}new Promise(()=>{});function pp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,pp(r.props.children,i));return}r.type!==mn&&ft(!1),!r.props.index||!r.props.children||ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=pp(r.props.children,i)),n.push(a)}),n}/** + */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=zh(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:so([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}function $s(){let{matches:e}=p.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function au(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Nr),{matches:o}=p.useContext(Dr),{pathname:i}=ho(),a=JSON.stringify(Dh(o,r.v7_relativeSplatPath));return p.useMemo(()=>zh(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function yP(e,t){return xP(e,t)}function xP(e,t,n,r){Yi()||ft(!1);let{navigator:o}=p.useContext(Nr),{matches:i}=p.useContext(Dr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ho(),u;if(t){var f;let C=typeof t=="string"?Ki(t):t;l==="/"||(f=C.pathname)!=null&&f.startsWith(l)||ft(!1),u=C}else u=c;let h=u.pathname||"/",w=h;if(l!=="/"){let C=l.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=YR(e,{pathname:w}),x=kP(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:so([l,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:so([l,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&x?p.createElement(iu.Provider,{value:{location:ds({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qr.Pop}},x):x}function bP(){let e=TP(),t=hP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const wP=p.createElement(bP,null);class SP extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Dr.Provider,{value:this.props.routeContext},p.createElement(bb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(ou);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Dr.Provider,{value:t},r)}function kP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ft(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let w,y=!1,x=null,C=null;n&&(w=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||wP,l&&(c<0&&h===0?(y=!0,C=null):c===h&&(y=!0,C=f.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),m=()=>{let b;return w?b=x:y?b=C:f.route.Component?b=p.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,p.createElement(CP,{match:f,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?p.createElement(SP,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var Sb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sb||{}),xc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xc||{});function RP(e){let t=p.useContext(ou);return t||ft(!1),t}function PP(e){let t=p.useContext(xb);return t||ft(!1),t}function EP(e){let t=p.useContext(Dr);return t||ft(!1),t}function Cb(e){let t=EP(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function TP(){var e;let t=p.useContext(bb),n=PP(xc.UseRouteError),r=Cb(xc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $P(){let{router:e}=RP(Sb.UseNavigateStable),t=Cb(xc.UseNavigateStable),n=p.useRef(!1);return wb(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ds({fromRouteId:t},i)))},[e,t])}function MP(e){let{to:t,replace:n,state:r,relative:o}=e;Yi()||ft(!1);let{future:i,static:a}=p.useContext(Nr),{matches:s}=p.useContext(Dr),{pathname:l}=ho(),c=qo(),u=zh(t,Dh(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return p.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function mn(e){ft(!1)}function jP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qr.Pop,navigator:i,static:a=!1,future:s}=e;Yi()&&ft(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:i,static:a,future:ds({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ki(r));let{pathname:u="/",search:f="",hash:h="",state:w=null,key:y="default"}=r,x=p.useMemo(()=>{let C=_i(u,l);return C==null?null:{location:{pathname:C,search:f,hash:h,state:w,key:y},navigationType:o}},[l,u,f,h,w,y,o]);return x==null?null:p.createElement(Nr.Provider,{value:c},p.createElement(iu.Provider,{children:n,value:x}))}function OP(e){let{children:t,location:n}=e;return yP(fp(t),n)}new Promise(()=>{});function fp(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,fp(r.props.children,i));return}r.type!==mn&&ft(!1),!r.props.index||!r.props.children||ft(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=fp(r.props.children,i)),n.push(a)}),n}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -69,14 +69,14 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function LP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AP(e,t){return e.button===0&&(!t||t==="_self")&&!LP(e)}const NP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],DP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],zP="6";try{window.__reactRouterVersion=zP}catch{}const BP=p.createContext({isTransitioning:!1}),FP="startTransition",Zv=Vl[FP];function UP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=Kk({window:o,v5Compat:!0}));let a=i.current,[s,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=p.useCallback(f=>{c&&Zv?Zv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(IP,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const WP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,h=kb(t,NP),{basename:w}=p.useContext(Nr),y,x=!1;if(typeof c=="string"&&HP.test(c)&&(y=c,WP))try{let b=new URL(window.location.href),R=c.startsWith("//")?new URL(b.protocol+c):new URL(c),k=_i(R.pathname,w);R.origin===b.origin&&k!=null?c=k+R.search+R.hash:x=!0}catch{}let C=yP(c,{relative:o}),v=GP(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:f});function m(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",bc({},h,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))}),VP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,f=kb(t,DP),h=su(l,{relative:f.relative}),w=ho(),y=p.useContext(bb),{navigator:x,basename:C}=p.useContext(Nr),v=y!=null&&KP(h)&&c===!0,m=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,b=w.pathname,R=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(b=b.toLowerCase(),R=R?R.toLowerCase():null,m=m.toLowerCase()),R&&C&&(R=_i(R,C)||R);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(k)==="/",P=R!=null&&(R===m||!a&&R.startsWith(m)&&R.charAt(m.length)==="/"),j={isActive:T,isPending:P,isTransitioning:v},N=T?r:void 0,O;typeof i=="function"?O=i(j):O=[i,T?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(j):s;return p.createElement(Pb,bc({},f,{"aria-current":N,className:O,ref:n,style:F,to:l,unstable_viewTransition:c}),typeof u=="function"?u(j):u)});var hp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hp||(hp={}));var e0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e0||(e0={}));function qP(e){let t=p.useContext(iu);return t||ft(!1),t}function GP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qo(),c=ho(),u=su(e,{relative:a});return p.useCallback(f=>{if(AP(f,n)){f.preventDefault();let h=r!==void 0?r:yc(c)===yc(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function KP(e,t){t===void 0&&(t={});let n=p.useContext(BP);n==null&&ft(!1);let{basename:r}=qP(hp.useViewTransitionState),o=su(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_i(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_i(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fp(o.pathname,a)!=null||fp(o.pathname,i)!=null}const vr=p.createContext({user:null}),YP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,a]=p.useState(0),[s,l]=p.useState([]),c=p.useCallback(x=>{l(C=>[...C,x])},[l]),u=x=>{l(C=>C.filter((v,m)=>m!==x))},f=()=>{a(i+1)},h=qo();p.useEffect(()=>{const x=localStorage.getItem("user");console.log("Attempting to load user:",x),x?(console.log("User found in storage:",x),o(JSON.parse(x))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const w=p.useCallback(async()=>{var x;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const v=await Oe.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(v.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+v.status)}catch(C){console.error("Logout failed:",((x=C.response)==null?void 0:x.data)||C.message)}},[h]),y=async(x,C,v)=>{var m,b;try{const R=localStorage.getItem("token"),k=await Oe.patch(`/api/user/change_password/${x}`,{current_password:C,new_password:v},{headers:{Authorization:`Bearer ${R}`}});return k.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:k.data.message||"Update failed!"}}catch(R){return R.response.status===403?{success:!1,message:R.response.data.message||"Incorrect current password"}:{success:!1,message:((b=(m=R.response)==null?void 0:m.data)==null?void 0:b.message)||"Network error"}}};return p.useEffect(()=>{const x=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[c]),d.jsx(vr.Provider,{value:{user:r,setUser:o,logout:w,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:s,removeNotification:u,addNotification:c},children:e})},fs={black:"#000",white:"#fff"},Xo={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"},Qo={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"},Jo={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"},Zo={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"},ei={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"},ga={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"},XP={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"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function Eb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var JP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZP=Eb(function(e){return JP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function eE(e){if(e.sheet)return e.sheet;for(var t=0;t0?Lt(Xi,--dn):0,Li--,bt===10&&(Li=1,cu--),bt}function bn(){return bt=dn2||hs(bt)>3?"":" "}function pE(e,t){for(;--t&&bn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,Nl()+(t<6&&hr()==32&&bn()==32))}function gp(e){for(;bn();)switch(bt){case e:return dn;case 34:case 39:e!==34&&e!==39&&gp(bt);break;case 40:e===41&&gp(e);break;case 92:bn();break}return dn}function hE(e,t){for(;bn()&&e+bt!==57;)if(e+bt===84&&hr()===47)break;return"/*"+Ms(t,dn-1)+"*"+lu(e===47?e:bn())}function mE(e){for(;!hs(hr());)bn();return Ms(e,dn)}function gE(e){return Ib(zl("",null,null,null,[""],e=Ob(e),0,[0],e))}function zl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,w=0,y=0,x=1,C=1,v=1,m=0,b="",R=o,k=i,T=r,P=b;C;)switch(y=m,m=bn()){case 40:if(y!=108&&Lt(P,f-1)==58){mp(P+=We(Dl(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Dl(m);break;case 9:case 10:case 13:case 32:P+=fE(y);break;case 92:P+=pE(Nl()-1,7);continue;case 47:switch(hr()){case 42:case 47:ul(vE(hE(bn(),Nl()),t,n),l);break;default:P+="/"}break;case 123*x:s[c++]=cr(P)*v;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:v==-1&&(P=We(P,/\f/g,"")),w>0&&cr(P)-f&&ul(w>32?n0(P+";",r,n,f-1):n0(We(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(ul(T=t0(P,t,n,c,u,o,s,b,R=[],k=[],f),i),m===123)if(u===0)zl(P,t,T,T,R,i,f,s,k);else switch(h===99&&Lt(P,3)===110?100:h){case 100:case 108:case 109:case 115:zl(e,T,T,r&&ul(t0(e,T,T,0,0,o,s,b,o,R=[],f),k),o,k,f,s,r?R:k);break;default:zl(P,T,T,T,[""],k,0,s,k)}}c=u=w=0,x=v=1,b=P="",f=a;break;case 58:f=1+cr(P),w=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&dE()==125)continue}switch(P+=lu(m),m*x){case 38:v=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(cr(P)-1)*v,v=1;break;case 64:hr()===45&&(P+=Dl(bn())),h=hr(),u=f=cr(b=P+=mE(Nl())),m++;break;case 45:y===45&&cr(P)==2&&(x=0)}}return i}function t0(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],w=Uh(h),y=0,x=0,C=0;y0?h[v]+" "+m:We(m,/&\f/g,h[v])))&&(l[C++]=b);return uu(e,t,n,o===0?Bh:s,l,c,u)}function vE(e,t,n){return uu(e,t,n,Tb,lu(uE()),ps(e,2,-2),0)}function n0(e,t,n,r){return uu(e,t,n,Fh,ps(e,0,r),ps(e,r+1,-1),r)}function Ri(e,t){for(var n="",r=Uh(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+wc+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?_b(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,cr(e)-3-(~mp(e,"!important")&&10))){case 107:return We(e,":",":"+Ue)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Ft+e+e}return e}var PE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fh:t.return=_b(t.value,t.length);break;case $b:return Ri([va(t,{value:We(t.value,"@","@"+Ue)})],o);case Bh:if(t.length)return cE(t.props,function(i){switch(lE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([va(t,{props:[We(i,/:(read-\w+)/,":"+wc+"$1")]})],o);case"::placeholder":return Ri([va(t,{props:[We(i,/:(plac\w+)/,":"+Ue+"input-$1")]}),va(t,{props:[We(i,/:(plac\w+)/,":"+wc+"$1")]}),va(t,{props:[We(i,/:(plac\w+)/,Ft+"input-$1")]})],o)}return""})}},EE=[PE],Lb=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(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||EE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),v=1;v=0)&&(n[o]=e[o]);return n}function IP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _P(e,t){return e.button===0&&(!t||t==="_self")&&!IP(e)}const LP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],AP=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],NP="6";try{window.__reactRouterVersion=NP}catch{}const DP=p.createContext({isTransitioning:!1}),zP="startTransition",Zv=Vl[zP];function BP(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=qR({window:o,v5Compat:!0}));let a=i.current,[s,l]=p.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=p.useCallback(f=>{c&&Zv?Zv(()=>l(f)):l(f)},[l,c]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(jP,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const FP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rb=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,h=kb(t,LP),{basename:w}=p.useContext(Nr),y,x=!1;if(typeof c=="string"&&UP.test(c)&&(y=c,FP))try{let b=new URL(window.location.href),k=c.startsWith("//")?new URL(b.protocol+c):new URL(c),R=_i(k.pathname,w);k.origin===b.origin&&R!=null?c=R+k.search+k.hash:x=!0}catch{}let C=gP(c,{relative:o}),v=VP(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:f});function m(b){r&&r(b),b.defaultPrevented||v(b)}return p.createElement("a",bc({},h,{href:y||C,onClick:x||i?r:m,ref:n,target:l}))}),WP=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,unstable_viewTransition:c,children:u}=t,f=kb(t,AP),h=au(l,{relative:f.relative}),w=ho(),y=p.useContext(xb),{navigator:x,basename:C}=p.useContext(Nr),v=y!=null&&qP(h)&&c===!0,m=x.encodeLocation?x.encodeLocation(h).pathname:h.pathname,b=w.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(b=b.toLowerCase(),k=k?k.toLowerCase():null,m=m.toLowerCase()),k&&C&&(k=_i(k,C)||k);const R=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=b===m||!a&&b.startsWith(m)&&b.charAt(R)==="/",P=k!=null&&(k===m||!a&&k.startsWith(m)&&k.charAt(m.length)==="/"),j={isActive:T,isPending:P,isTransitioning:v},N=T?r:void 0,I;typeof i=="function"?I=i(j):I=[i,T?"active":null,P?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(j):s;return p.createElement(Rb,bc({},f,{"aria-current":N,className:I,ref:n,style:F,to:l,unstable_viewTransition:c}),typeof u=="function"?u(j):u)});var pp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pp||(pp={}));var e0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e0||(e0={}));function HP(e){let t=p.useContext(ou);return t||ft(!1),t}function VP(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=qo(),c=ho(),u=au(e,{relative:a});return p.useCallback(f=>{if(_P(f,n)){f.preventDefault();let h=r!==void 0?r:yc(c)===yc(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function qP(e,t){t===void 0&&(t={});let n=p.useContext(DP);n==null&&ft(!1);let{basename:r}=HP(pp.useViewTransitionState),o=au(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_i(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_i(n.nextLocation.pathname,r)||n.nextLocation.pathname;return dp(o.pathname,a)!=null||dp(o.pathname,i)!=null}const vr=p.createContext({user:null}),GP=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(null),[i,a]=p.useState(0),[s,l]=p.useState([]),c=p.useCallback(x=>{l(C=>[...C,x])},[l]),u=x=>{l(C=>C.filter((v,m)=>m!==x))},f=()=>{a(i+1)},h=qo();p.useEffect(()=>{const x=localStorage.getItem("user");console.log("Attempting to load user:",x),x?(console.log("User found in storage:",x),o(JSON.parse(x))):console.log("No user found in storage at initialization.")},[]),p.useEffect(()=>{r?(console.log("Storing user in storage:",r),localStorage.setItem("user",JSON.stringify(r))):(console.log("Removing user from storage."),localStorage.removeItem("user"))},[r]);const w=p.useCallback(async()=>{var x;try{const C=localStorage.getItem("token");if(console.log("Logging out with token:",C),!C){console.error("No token available for logout");return}const v=await Oe.post("/api/user/logout",{},{headers:{Authorization:`Bearer ${C}`}});if(v.status===200)o(null),localStorage.removeItem("token"),h("/auth");else throw new Error("Logout failed with status: "+v.status)}catch(C){console.error("Logout failed:",((x=C.response)==null?void 0:x.data)||C.message)}},[h]),y=async(x,C,v)=>{var m,b;try{const k=localStorage.getItem("token"),R=await Oe.patch(`/api/user/change_password/${x}`,{current_password:C,new_password:v},{headers:{Authorization:`Bearer ${k}`}});return R.status===200?{success:!0,message:"Password updated successfully!"}:{success:!1,message:R.data.message||"Update failed!"}}catch(k){return k.response.status===403?{success:!1,message:k.response.data.message||"Incorrect current password"}:{success:!1,message:((b=(m=k.response)==null?void 0:m.data)==null?void 0:b.message)||"Network error"}}};return p.useEffect(()=>{const x=C=>{C.data&&C.data.type==="NEW_NOTIFICATION"&&(console.log("Notification received:",C.data.data),c({title:C.data.data.title,message:C.data.data.body}))};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[c]),d.jsx(vr.Provider,{value:{user:r,setUser:o,logout:w,voiceEnabled:t,setVoiceEnabled:n,changePassword:y,incrementNotificationCount:f,notifications:s,removeNotification:u,addNotification:c},children:e})},fs={black:"#000",white:"#fff"},Xo={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"},Qo={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"},Jo={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"},Zo={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"},ei={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"},ga={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"},KP={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"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function Pb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,QP=Pb(function(e){return XP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function JP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Lt(Xi,--dn):0,Li--,bt===10&&(Li=1,lu--),bt}function bn(){return bt=dn2||hs(bt)>3?"":" "}function dE(e,t){for(;--t&&bn()&&!(bt<48||bt>102||bt>57&&bt<65||bt>70&&bt<97););return Ms(e,Nl()+(t<6&&hr()==32&&bn()==32))}function mp(e){for(;bn();)switch(bt){case e:return dn;case 34:case 39:e!==34&&e!==39&&mp(bt);break;case 40:e===41&&mp(e);break;case 92:bn();break}return dn}function fE(e,t){for(;bn()&&e+bt!==57;)if(e+bt===84&&hr()===47)break;return"/*"+Ms(t,dn-1)+"*"+su(e===47?e:bn())}function pE(e){for(;!hs(hr());)bn();return Ms(e,dn)}function hE(e){return Ob(zl("",null,null,null,[""],e=jb(e),0,[0],e))}function zl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,w=0,y=0,x=1,C=1,v=1,m=0,b="",k=o,R=i,T=r,P=b;C;)switch(y=m,m=bn()){case 40:if(y!=108&&Lt(P,f-1)==58){hp(P+=We(Dl(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:P+=Dl(m);break;case 9:case 10:case 13:case 32:P+=uE(y);break;case 92:P+=dE(Nl()-1,7);continue;case 47:switch(hr()){case 42:case 47:ul(mE(fE(bn(),Nl()),t,n),l);break;default:P+="/"}break;case 123*x:s[c++]=cr(P)*v;case 125*x:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+u:v==-1&&(P=We(P,/\f/g,"")),w>0&&cr(P)-f&&ul(w>32?n0(P+";",r,n,f-1):n0(We(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(ul(T=t0(P,t,n,c,u,o,s,b,k=[],R=[],f),i),m===123)if(u===0)zl(P,t,T,T,k,i,f,s,R);else switch(h===99&&Lt(P,3)===110?100:h){case 100:case 108:case 109:case 115:zl(e,T,T,r&&ul(t0(e,T,T,0,0,o,s,b,o,k=[],f),R),o,R,f,s,r?k:R);break;default:zl(P,T,T,T,[""],R,0,s,R)}}c=u=w=0,x=v=1,b=P="",f=a;break;case 58:f=1+cr(P),w=y;default:if(x<1){if(m==123)--x;else if(m==125&&x++==0&&cE()==125)continue}switch(P+=su(m),m*x){case 38:v=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(cr(P)-1)*v,v=1;break;case 64:hr()===45&&(P+=Dl(bn())),h=hr(),u=f=cr(b=P+=pE(Nl())),m++;break;case 45:y===45&&cr(P)==2&&(x=0)}}return i}function t0(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],w=Uh(h),y=0,x=0,C=0;y0?h[v]+" "+m:We(m,/&\f/g,h[v])))&&(l[C++]=b);return cu(e,t,n,o===0?Bh:s,l,c,u)}function mE(e,t,n){return cu(e,t,n,Eb,su(lE()),ps(e,2,-2),0)}function n0(e,t,n,r){return cu(e,t,n,Fh,ps(e,0,r),ps(e,r+1,-1),r)}function ki(e,t){for(var n="",r=Uh(e),o=0;o6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+wc+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~hp(e,"stretch")?Ib(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,cr(e)-3-(~hp(e,"!important")&&10))){case 107:return We(e,":",":"+Ue)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Lt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Ft+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Ft+e+e}return e}var kE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fh:t.return=Ib(t.value,t.length);break;case Tb:return ki([va(t,{value:We(t.value,"@","@"+Ue)})],o);case Bh:if(t.length)return sE(t.props,function(i){switch(aE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ki([va(t,{props:[We(i,/:(read-\w+)/,":"+wc+"$1")]})],o);case"::placeholder":return ki([va(t,{props:[We(i,/:(plac\w+)/,":"+Ue+"input-$1")]}),va(t,{props:[We(i,/:(plac\w+)/,":"+wc+"$1")]}),va(t,{props:[We(i,/:(plac\w+)/,Ft+"input-$1")]})],o)}return""})}},RE=[kE],_b=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(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||RE,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),v=1;v=4;++r,o-=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(o){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 zE={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,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},BE=/[A-Z]|^ms/g,FE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ub=function(t){return t.charCodeAt(1)===45},o0=function(t){return t!=null&&typeof t!="boolean"},Wd=Eb(function(e){return Ub(e)?e:e.replace(BE,"-$&").toLowerCase()}),i0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FE,function(r,o,i){return ur={name:o,styles:i,next:ur},o})}return zE[t]!==1&&!Ub(t)&&typeof n=="number"&&n!==0?n+"px":n};function ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ur={name:n.name,styles:n.styles,next:ur},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ur={name:r.name,styles:r.styles,next:ur},r=r.next;var o=n.styles+";";return o}return UE(e,t,n)}case"function":{if(e!==void 0){var i=ur,a=n(e);return ur=i,ms(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function UE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?GE:KE},u0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},YE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Bb(n,r,o),HE(function(){return Fb(n,r,o)}),null},XE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u0(t,n,r),l=s||c0(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var h=u.length,w=1;wt(oT(o)?n:o):t;return d.jsx(qE,{styles:r})}function Gh(e,t){return vp(e,t)}const Qb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xb,StyledEngineProvider:rT,ThemeContext:js,css:wu,default:Gh,internal_processStyles:Qb,keyframes:Qi},Symbol.toStringTag,{value:"Module"}));function Rr(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 Jb(e){if(!Rr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Rr(t[o])&&o in e&&Rr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=Rr(t[o])?Jb(t[o]):t[o]:r[o]=t[o])}),r}const aT=Object.freeze(Object.defineProperty({__proto__:null,default:Qt,isPlainObject:Rr},Symbol.toStringTag,{value:"Module"})),sT=["values","unit","step"],lT=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)=>S({},n,{[r.key]:r.val}),{})};function Zb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,sT),i=lT(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,w){const y=a.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:w)-r/100}${n})`}function u(h){return a.indexOf(h)+1`@media (min-width:${Kh[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||d0;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||d0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Kh).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function ew(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function tw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function uT(e,...t){const n=ew(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return tw(Object.keys(n),r)}function dT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function qd({values:e,breakpoints:t,base:n}){const r=n||dT(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Z(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const fT=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));function Su(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Su(e,n)||r,t&&(o=t(o,r,e)),o}function yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Su(l,r)||{};return or(a,s,f=>{let h=Sc(c,o,f);return f===h&&typeof f=="string"&&(h=Sc(c,o,`${t}${f==="default"?"":Z(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function pT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hT={m:"margin",p:"padding"},mT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gT=pT(e=>{if(e.length>2)if(f0[e])e=f0[e];else return[e];const[t,n]=e.split(""),r=hT[t],o=mT[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yh,...Xh];function Os(e,t,n,r){var o;const i=(o=Su(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qh(e){return Os(e,"spacing",8)}function Uo(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 vT(e,t){return n=>e.reduce((r,o)=>(r[o]=Uo(t,n),r),{})}function yT(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gT(n),i=vT(o,r),a=e[n];return or(e,a,i)}function nw(e,t){const n=Qh(e.theme);return Object.keys(e).map(r=>yT(e,t,r,n)).reduce(Ba,{})}function ht(e){return nw(e,Yh)}ht.propTypes={};ht.filterProps=Yh;function mt(e){return nw(e,Xh)}mt.propTypes={};mt.filterProps=Xh;function xT(e=8){if(e.mui)return e;const t=Qh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Cu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ba(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Hn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const bT=Hn("border",On),wT=Hn("borderTop",On),ST=Hn("borderRight",On),CT=Hn("borderBottom",On),RT=Hn("borderLeft",On),kT=Hn("borderColor"),PT=Hn("borderTopColor"),ET=Hn("borderRightColor"),TT=Hn("borderBottomColor"),$T=Hn("borderLeftColor"),MT=Hn("outline",On),jT=Hn("outlineColor"),Ru=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Uo(t,r)});return or(e,e.borderRadius,n)}return null};Ru.propTypes={};Ru.filterProps=["borderRadius"];Cu(bT,wT,ST,CT,RT,kT,PT,ET,TT,$T,Ru,MT,jT);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8),n=r=>({gap:Uo(t,r)});return or(e,e.gap,n)}return null};ku.propTypes={};ku.filterProps=["gap"];const Pu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({columnGap:Uo(t,r)});return or(e,e.columnGap,n)}return null};Pu.propTypes={};Pu.filterProps=["columnGap"];const Eu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({rowGap:Uo(t,r)});return or(e,e.rowGap,n)}return null};Eu.propTypes={};Eu.filterProps=["rowGap"];const OT=yt({prop:"gridColumn"}),IT=yt({prop:"gridRow"}),_T=yt({prop:"gridAutoFlow"}),LT=yt({prop:"gridAutoColumns"}),AT=yt({prop:"gridAutoRows"}),NT=yt({prop:"gridTemplateColumns"}),DT=yt({prop:"gridTemplateRows"}),zT=yt({prop:"gridTemplateAreas"}),BT=yt({prop:"gridArea"});Cu(ku,Pu,Eu,OT,IT,_T,LT,AT,NT,DT,zT,BT);function ki(e,t){return t==="grey"?t:e}const FT=yt({prop:"color",themeKey:"palette",transform:ki}),UT=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ki}),WT=yt({prop:"backgroundColor",themeKey:"palette",transform:ki});Cu(FT,UT,WT);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const HT=yt({prop:"width",transform:vn}),Jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Kh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:vn(n)}};return or(e,e.maxWidth,t)}return null};Jh.filterProps=["maxWidth"];const VT=yt({prop:"minWidth",transform:vn}),qT=yt({prop:"height",transform:vn}),GT=yt({prop:"maxHeight",transform:vn}),KT=yt({prop:"minHeight",transform:vn});yt({prop:"size",cssProperty:"width",transform:vn});yt({prop:"size",cssProperty:"height",transform:vn});const YT=yt({prop:"boxSizing"});Cu(HT,Jh,VT,qT,GT,KT,YT);const Is={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ru},color:{themeKey:"palette",transform:ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ki},backgroundColor:{themeKey:"palette",transform:ki},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},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:ku},rowGap:{style:Eu},columnGap:{style:Pu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Jh},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QT(e,t){return typeof e=="function"?e(t):e}function rw(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Su(o,c)||{};return f?f(a):or(a,r,y=>{let x=Sc(h,u,y);return y===x&&typeof y=="string"&&(x=Sc(h,u,`${n}${y==="default"?"":Z(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Is;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=ew(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(w=>{const y=QT(c[w],i);if(y!=null)if(typeof y=="object")if(a[w])h=Ba(h,e(w,y,i,a));else{const x=or({theme:i},y,C=>({[w]:C}));XT(x,y)?h[w]=t({sx:y,theme:i}):h=Ba(h,x)}else h=Ba(h,e(w,y,i,a))}),tw(f,h)}return Array.isArray(o)?o.map(s):s(o)}return t}const Ji=rw();Ji.filterProps=["sx"];function ow(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 JT=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=se(e,JT),s=Zb(n),l=xT(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},cT,i)},a);return c.applyStyles=ow,c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const ZT=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,private_createBreakpoints:Zb,unstable_applyStyles:ow},Symbol.toStringTag,{value:"Module"}));function e$(e){return Object.keys(e).length===0}function iw(e=null){const t=p.useContext(js);return!t||e$(t)?e:t}const t$=Zi();function Tu(e=t$){return iw(e)}function n$({styles:e,themeId:t,defaultTheme:n={}}){const r=Tu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Xb,{styles:o})}const r$=["sx"],o$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Is;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function $u(e){const{sx:t}=e,n=se(e,r$),{systemProps:r,otherProps:o}=o$(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Rr(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const i$=Object.freeze(Object.defineProperty({__proto__:null,default:Ji,extendSxProp:$u,unstable_createStyleFunctionSx:rw,unstable_defaultSxConfig:Is},Symbol.toStringTag,{value:"Module"})),p0=e=>e,a$=()=>{let e=p0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p0}}},Zh=a$();function aw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return p.forwardRef(function(l,c){const u=Tu(n),f=$u(l),{className:h,component:w="div"}=f,y=se(f,s$);return d.jsx(i,S({as:w,ref:c,className:le(h,o?o(r):r),theme:t&&u[t]||u},y))})}const sw={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 be(e,t,n="Mui"){const r=sw[t];return r?`${n}-${r}`:`${Zh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var lw={exports:{}},qe={};/** + */var jt=typeof Symbol=="function"&&Symbol.for,Wh=jt?Symbol.for("react.element"):60103,Hh=jt?Symbol.for("react.portal"):60106,uu=jt?Symbol.for("react.fragment"):60107,du=jt?Symbol.for("react.strict_mode"):60108,fu=jt?Symbol.for("react.profiler"):60114,pu=jt?Symbol.for("react.provider"):60109,hu=jt?Symbol.for("react.context"):60110,Vh=jt?Symbol.for("react.async_mode"):60111,mu=jt?Symbol.for("react.concurrent_mode"):60111,gu=jt?Symbol.for("react.forward_ref"):60112,vu=jt?Symbol.for("react.suspense"):60113,PE=jt?Symbol.for("react.suspense_list"):60120,yu=jt?Symbol.for("react.memo"):60115,xu=jt?Symbol.for("react.lazy"):60116,EE=jt?Symbol.for("react.block"):60121,TE=jt?Symbol.for("react.fundamental"):60117,$E=jt?Symbol.for("react.responder"):60118,ME=jt?Symbol.for("react.scope"):60119;function Pn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wh:switch(e=e.type,e){case Vh:case mu:case uu:case fu:case du:case vu:return e;default:switch(e=e&&e.$$typeof,e){case hu:case gu:case xu:case yu:case pu:return e;default:return t}}case Hh:return t}}}function Ab(e){return Pn(e)===mu}Ve.AsyncMode=Vh;Ve.ConcurrentMode=mu;Ve.ContextConsumer=hu;Ve.ContextProvider=pu;Ve.Element=Wh;Ve.ForwardRef=gu;Ve.Fragment=uu;Ve.Lazy=xu;Ve.Memo=yu;Ve.Portal=Hh;Ve.Profiler=fu;Ve.StrictMode=du;Ve.Suspense=vu;Ve.isAsyncMode=function(e){return Ab(e)||Pn(e)===Vh};Ve.isConcurrentMode=Ab;Ve.isContextConsumer=function(e){return Pn(e)===hu};Ve.isContextProvider=function(e){return Pn(e)===pu};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wh};Ve.isForwardRef=function(e){return Pn(e)===gu};Ve.isFragment=function(e){return Pn(e)===uu};Ve.isLazy=function(e){return Pn(e)===xu};Ve.isMemo=function(e){return Pn(e)===yu};Ve.isPortal=function(e){return Pn(e)===Hh};Ve.isProfiler=function(e){return Pn(e)===fu};Ve.isStrictMode=function(e){return Pn(e)===du};Ve.isSuspense=function(e){return Pn(e)===vu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===uu||e===mu||e===fu||e===du||e===vu||e===PE||typeof e=="object"&&e!==null&&(e.$$typeof===xu||e.$$typeof===yu||e.$$typeof===pu||e.$$typeof===hu||e.$$typeof===gu||e.$$typeof===TE||e.$$typeof===$E||e.$$typeof===ME||e.$$typeof===EE)};Ve.typeOf=Pn;Lb.exports=Ve;var jE=Lb.exports,Nb=jE,OE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},IE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Db={};Db[Nb.ForwardRef]=OE;Db[Nb.Memo]=IE;var _E=!0;function LE(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var zb=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||_E===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Bb=function(t,n,r){zb(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function AE(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 NE={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,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},DE=/[A-Z]|^ms/g,zE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fb=function(t){return t.charCodeAt(1)===45},o0=function(t){return t!=null&&typeof t!="boolean"},Ud=Pb(function(e){return Fb(e)?e:e.replace(DE,"-$&").toLowerCase()}),i0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zE,function(r,o,i){return ur={name:o,styles:i,next:ur},o})}return NE[t]!==1&&!Fb(t)&&typeof n=="number"&&n!==0?n+"px":n};function ms(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ur={name:n.name,styles:n.styles,next:ur},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ur={name:r.name,styles:r.styles,next:ur},r=r.next;var o=n.styles+";";return o}return BE(e,t,n)}case"function":{if(e!==void 0){var i=ur,a=n(e);return ur=i,ms(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function BE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?VE:qE},u0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},GE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return zb(n,r,o),UE(function(){return Bb(n,r,o)}),null},KE=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u0(t,n,r),l=s||c0(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var h=u.length,w=1;wt(nT(o)?n:o):t;return d.jsx(HE,{styles:r})}function Gh(e,t){return gp(e,t)}const Xb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rT=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Yb,StyledEngineProvider:tT,ThemeContext:js,css:bu,default:Gh,internal_processStyles:Xb,keyframes:Qi},Symbol.toStringTag,{value:"Module"}));function kr(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 Qb(e){if(!kr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qb(e[n])}),t}function Qt(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return kr(e)&&kr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(kr(t[o])&&o in e&&kr(e[o])?r[o]=Qt(e[o],t[o],n):n.clone?r[o]=kr(t[o])?Qb(t[o]):t[o]:r[o]=t[o])}),r}const oT=Object.freeze(Object.defineProperty({__proto__:null,default:Qt,isPlainObject:kr},Symbol.toStringTag,{value:"Module"})),iT=["values","unit","step"],aT=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)=>S({},n,{[r.key]:r.val}),{})};function Jb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,iT),i=aT(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,w){const y=a.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:w)-r/100}${n})`}function u(h){return a.indexOf(h)+1`@media (min-width:${Kh[e]}px)`};function or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||d0;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||d0;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Kh).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Zb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function ew(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function lT(e,...t){const n=Zb(e),r=[n,...t].reduce((o,i)=>Qt(o,i),{});return ew(Object.keys(n),r)}function cT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function Vd({values:e,breakpoints:t,base:n}){const r=n||cT(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Z(e){if(typeof e!="string")throw new Error(Bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const uT=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));function wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=wu(e,n)||r,t&&(o=t(o,r,e)),o}function yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=wu(l,r)||{};return or(a,s,f=>{let h=Sc(c,o,f);return f===h&&typeof f=="string"&&(h=Sc(c,o,`${t}${f==="default"?"":Z(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function dT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fT={m:"margin",p:"padding"},pT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hT=dT(e=>{if(e.length>2)if(f0[e])e=f0[e];else return[e];const[t,n]=e.split(""),r=fT[t],o=pT[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yh,...Xh];function Os(e,t,n,r){var o;const i=(o=wu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function Qh(e){return Os(e,"spacing",8)}function Uo(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 mT(e,t){return n=>e.reduce((r,o)=>(r[o]=Uo(t,n),r),{})}function gT(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=hT(n),i=mT(o,r),a=e[n];return or(e,a,i)}function tw(e,t){const n=Qh(e.theme);return Object.keys(e).map(r=>gT(e,t,r,n)).reduce(Ba,{})}function ht(e){return tw(e,Yh)}ht.propTypes={};ht.filterProps=Yh;function mt(e){return tw(e,Xh)}mt.propTypes={};mt.filterProps=Xh;function vT(e=8){if(e.mui)return e;const t=Qh({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Su(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ba(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}function Hn(e,t){return yt({prop:e,themeKey:"borders",transform:t})}const yT=Hn("border",On),xT=Hn("borderTop",On),bT=Hn("borderRight",On),wT=Hn("borderBottom",On),ST=Hn("borderLeft",On),CT=Hn("borderColor"),kT=Hn("borderTopColor"),RT=Hn("borderRightColor"),PT=Hn("borderBottomColor"),ET=Hn("borderLeftColor"),TT=Hn("outline",On),$T=Hn("outlineColor"),Cu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Uo(t,r)});return or(e,e.borderRadius,n)}return null};Cu.propTypes={};Cu.filterProps=["borderRadius"];Su(yT,xT,bT,wT,ST,CT,kT,RT,PT,ET,Cu,TT,$T);const ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Os(e.theme,"spacing",8),n=r=>({gap:Uo(t,r)});return or(e,e.gap,n)}return null};ku.propTypes={};ku.filterProps=["gap"];const Ru=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({columnGap:Uo(t,r)});return or(e,e.columnGap,n)}return null};Ru.propTypes={};Ru.filterProps=["columnGap"];const Pu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Os(e.theme,"spacing",8),n=r=>({rowGap:Uo(t,r)});return or(e,e.rowGap,n)}return null};Pu.propTypes={};Pu.filterProps=["rowGap"];const MT=yt({prop:"gridColumn"}),jT=yt({prop:"gridRow"}),OT=yt({prop:"gridAutoFlow"}),IT=yt({prop:"gridAutoColumns"}),_T=yt({prop:"gridAutoRows"}),LT=yt({prop:"gridTemplateColumns"}),AT=yt({prop:"gridTemplateRows"}),NT=yt({prop:"gridTemplateAreas"}),DT=yt({prop:"gridArea"});Su(ku,Ru,Pu,MT,jT,OT,IT,_T,LT,AT,NT,DT);function Ri(e,t){return t==="grey"?t:e}const zT=yt({prop:"color",themeKey:"palette",transform:Ri}),BT=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ri}),FT=yt({prop:"backgroundColor",themeKey:"palette",transform:Ri});Su(zT,BT,FT);function vn(e){return e<=1&&e!==0?`${e*100}%`:e}const UT=yt({prop:"width",transform:vn}),Jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Kh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:vn(n)}};return or(e,e.maxWidth,t)}return null};Jh.filterProps=["maxWidth"];const WT=yt({prop:"minWidth",transform:vn}),HT=yt({prop:"height",transform:vn}),VT=yt({prop:"maxHeight",transform:vn}),qT=yt({prop:"minHeight",transform:vn});yt({prop:"size",cssProperty:"width",transform:vn});yt({prop:"size",cssProperty:"height",transform:vn});const GT=yt({prop:"boxSizing"});Su(UT,Jh,WT,HT,VT,qT,GT);const Is={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:On},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cu},color:{themeKey:"palette",transform:Ri},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ri},backgroundColor:{themeKey:"palette",transform:Ri},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:ht},mt:{style:ht},mr:{style:ht},mb:{style:ht},ml:{style:ht},mx:{style:ht},my:{style:ht},margin:{style:ht},marginTop:{style:ht},marginRight:{style:ht},marginBottom:{style:ht},marginLeft:{style:ht},marginX:{style:ht},marginY:{style:ht},marginInline:{style:ht},marginInlineStart:{style:ht},marginInlineEnd:{style:ht},marginBlock:{style:ht},marginBlockStart:{style:ht},marginBlockEnd:{style:ht},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:ku},rowGap:{style:Pu},columnGap:{style:Ru},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vn},maxWidth:{style:Jh},minWidth:{transform:vn},height:{transform:vn},maxHeight:{transform:vn},minHeight:{transform:vn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function KT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function YT(e,t){return typeof e=="function"?e(t):e}function nw(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=wu(o,c)||{};return f?f(a):or(a,r,y=>{let x=Sc(h,u,y);return y===x&&typeof y=="string"&&(x=Sc(h,u,`${n}${y==="default"?"":Z(y)}`,y)),l===!1?x:{[l]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Is;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Zb(i.breakpoints),f=Object.keys(u);let h=u;return Object.keys(c).forEach(w=>{const y=YT(c[w],i);if(y!=null)if(typeof y=="object")if(a[w])h=Ba(h,e(w,y,i,a));else{const x=or({theme:i},y,C=>({[w]:C}));KT(x,y)?h[w]=t({sx:y,theme:i}):h=Ba(h,x)}else h=Ba(h,e(w,y,i,a))}),ew(f,h)}return Array.isArray(o)?o.map(s):s(o)}return t}const Ji=nw();Ji.filterProps=["sx"];function rw(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 XT=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=se(e,XT),s=Jb(n),l=vT(o);let c=Qt({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:l,shape:S({},sT,i)},a);return c.applyStyles=rw,c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const QT=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,private_createBreakpoints:Jb,unstable_applyStyles:rw},Symbol.toStringTag,{value:"Module"}));function JT(e){return Object.keys(e).length===0}function ow(e=null){const t=p.useContext(js);return!t||JT(t)?e:t}const ZT=Zi();function Eu(e=ZT){return ow(e)}function e$({styles:e,themeId:t,defaultTheme:n={}}){const r=Eu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(Yb,{styles:o})}const t$=["sx"],n$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Is;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Tu(e){const{sx:t}=e,n=se(e,t$),{systemProps:r,otherProps:o}=n$(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return kr(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const r$=Object.freeze(Object.defineProperty({__proto__:null,default:Ji,extendSxProp:Tu,unstable_createStyleFunctionSx:nw,unstable_defaultSxConfig:Is},Symbol.toStringTag,{value:"Module"})),p0=e=>e,o$=()=>{let e=p0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=p0}}},Zh=o$();function iw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ji);return p.forwardRef(function(l,c){const u=Eu(n),f=Tu(l),{className:h,component:w="div"}=f,y=se(f,i$);return d.jsx(i,S({as:w,ref:c,className:le(h,o?o(r):r),theme:t&&u[t]||u},y))})}const aw={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 be(e,t,n="Mui"){const r=aw[t];return r?`${n}-${r}`:`${Zh.generate(e)}-${t}`}function we(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=be(e,o,n)}),r}var sw={exports:{}},qe={};/** * @license React * react-is.production.min.js * @@ -84,7 +84,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var em=Symbol.for("react.element"),tm=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),ju=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),Iu=Symbol.for("react.provider"),_u=Symbol.for("react.context"),c$=Symbol.for("react.server_context"),Lu=Symbol.for("react.forward_ref"),Au=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),Du=Symbol.for("react.memo"),zu=Symbol.for("react.lazy"),u$=Symbol.for("react.offscreen"),cw;cw=Symbol.for("react.module.reference");function Vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case em:switch(e=e.type,e){case Mu:case Ou:case ju:case Au:case Nu:return e;default:switch(e=e&&e.$$typeof,e){case c$:case _u:case Lu:case zu:case Du:case Iu:return e;default:return t}}case tm:return t}}}qe.ContextConsumer=_u;qe.ContextProvider=Iu;qe.Element=em;qe.ForwardRef=Lu;qe.Fragment=Mu;qe.Lazy=zu;qe.Memo=Du;qe.Portal=tm;qe.Profiler=Ou;qe.StrictMode=ju;qe.Suspense=Au;qe.SuspenseList=Nu;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return Vn(e)===_u};qe.isContextProvider=function(e){return Vn(e)===Iu};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===em};qe.isForwardRef=function(e){return Vn(e)===Lu};qe.isFragment=function(e){return Vn(e)===Mu};qe.isLazy=function(e){return Vn(e)===zu};qe.isMemo=function(e){return Vn(e)===Du};qe.isPortal=function(e){return Vn(e)===tm};qe.isProfiler=function(e){return Vn(e)===Ou};qe.isStrictMode=function(e){return Vn(e)===ju};qe.isSuspense=function(e){return Vn(e)===Au};qe.isSuspenseList=function(e){return Vn(e)===Nu};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mu||e===Ou||e===ju||e===Au||e===Nu||e===u$||typeof e=="object"&&e!==null&&(e.$$typeof===zu||e.$$typeof===Du||e.$$typeof===Iu||e.$$typeof===_u||e.$$typeof===Lu||e.$$typeof===cw||e.getModuleId!==void 0)};qe.typeOf=Vn;lw.exports=qe;var h0=lw.exports;const d$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uw(e){const t=`${e}`.match(d$);return t&&t[1]||""}function dw(e,t=""){return e.displayName||e.name||uw(e)||t}function m0(e,t,n){const r=dw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function f$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h0.ForwardRef:return m0(e,e.render,"ForwardRef");case h0.Memo:return m0(e,e.type,"memo");default:return}}}const p$=Object.freeze(Object.defineProperty({__proto__:null,default:f$,getFunctionName:uw},Symbol.toStringTag,{value:"Module"})),h$=["ownerState"],m$=["variants"],g$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v$(e){return Object.keys(e).length===0}function y$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const x$=Zi(),b$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dl({defaultTheme:e,theme:t,themeId:n}){return v$(t)?e:t[n]||t}function w$(e){return e?(t,n)=>n[e]:null}function Bl(e,t){let{ownerState:n}=t,r=se(t,h$);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Bl(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=se(o,m$);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({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(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),s}return o}function S$(e={}){const{themeId:t,defaultTheme:n=x$,rootShouldForwardProp:r=Gd,slotShouldForwardProp:o=Gd}=e,i=a=>Ji(S({},a,{theme:dl(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Qb(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=w$(b$(c))}=s,w=se(s,g$),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Gd;c==="Root"||c==="root"?v=r:c?v=o:y$(a)&&(v=void 0);const m=Gh(a,S({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||Rr(k)?T=>Bl(k,S({},T,{theme:dl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=dl(S({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Bl(J,S({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=dl(S({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Bl({variants:G},S({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}const fw=S$();function nm(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=nm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function C$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nm(t.components[n].defaultProps,r)}function rm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Tu(n);return r&&(o=o[r]||o),C$({theme:o,name:t,props:e})}const Sn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function R$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const k$=Object.freeze(Object.defineProperty({__proto__:null,default:R$},Symbol.toStringTag,{value:"Module"}));function xp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ea(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function P$(e,t){return()=>null}function Fa(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function St(e){return e&&e.ownerDocument||document}function Bn(e){return St(e).defaultView||window}function E$(e,t){return()=>null}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let g0=0;function T$(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(g0+=1,n(`mui-${g0}`))},[t]),r}const v0=Vl.useId;function _s(e){if(v0!==void 0){const t=v0();return e??t}return T$(e)}function $$(e,t,n,r,o){return null}function gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Yt(e){const t=p.useRef(e);return Sn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cc(n,t)})},e)}const y0={};function M$(e,t){const n=p.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const j$=[];function O$(e){p.useEffect(e,j$)}class Ls{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ls}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function To(){const e=M$(Ls.create).current;return O$(e.disposeEffect),e}let Bu=!0,bp=!1;const I$=new Ls,_$={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 L$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function A$(e){e.metaKey||e.altKey||e.ctrlKey||(Bu=!0)}function Kd(){Bu=!1}function N$(){this.visibilityState==="hidden"&&bp&&(Bu=!0)}function D$(e){e.addEventListener("keydown",A$,!0),e.addEventListener("mousedown",Kd,!0),e.addEventListener("pointerdown",Kd,!0),e.addEventListener("touchstart",Kd,!0),e.addEventListener("visibilitychange",N$,!0)}function z$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Bu||L$(t)}function om(){const e=p.useCallback(o=>{o!=null&&D$(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(bp=!0,I$.start(100,()=>{bp=!1}),t.current=!1,!0):!1}function r(o){return z$(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function pw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ti;function hw(){if(ti)return ti;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ti="reverse",e.scrollLeft>0?ti="default":(e.scrollLeft=1,e.scrollLeft===0&&(ti="negative")),document.body.removeChild(e),ti}function B$(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(hw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mw=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function Se(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const gw=p.createContext(null);function vw(){return p.useContext(gw)}const F$=typeof Symbol=="function"&&Symbol.for,U$=F$?Symbol.for("mui.nested"):"__THEME_NESTED__";function W$(e,t){return typeof t=="function"?t(e):S({},e,t)}function H$(e){const{children:t,theme:n}=e,r=vw(),o=p.useMemo(()=>{const i=r===null?n:W$(r,n);return i!=null&&(i[U$]=r!==null),i},[n,r]);return d.jsx(gw.Provider,{value:o,children:t})}const V$=["value"],yw=p.createContext();function q$(e){let{value:t}=e,n=se(e,V$);return d.jsx(yw.Provider,S({value:t??!0},n))}const As=()=>{const e=p.useContext(yw);return e??!1},x0={};function b0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function G$(e){const{children:t,theme:n,themeId:r}=e,o=iw(x0),i=vw()||x0,a=b0(r,o,n),s=b0(r,i,n,!0),l=a.direction==="rtl";return d.jsx(H$,{theme:s,children:d.jsx(js.Provider,{value:a,children:d.jsx(q$,{value:l,children:t})})})}const K$=["className","component","disableGutters","fixed","maxWidth","classes"],Y$=Zi(),X$=fw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Q$=e=>rm({props:e,name:"MuiContainer",defaultTheme:Y$}),J$=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Z(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Se(s,n,r)};function Z$(e={}){const{createStyledComponent:t=X$,useThemeProps:n=Q$,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:w=!1,maxWidth:y="lg"}=c,x=se(c,K$),C=S({},c,{component:f,disableGutters:h,fixed:w,maxWidth:y}),v=J$(C,r);return d.jsx(o,S({as:f,ownerState:C,className:le(v.root,u),ref:l},x))})}const e4=["component","direction","spacing","divider","children","className","useFlexGap"],t4=Zi(),n4=fw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function r4(e){return rm({props:e,name:"MuiStack",defaultTheme:t4})}function o4(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],a4=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},or({theme:t},qd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qh(t),o=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),{}),i=qd({values:e.direction,base:o}),a=qd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=Qt(n,or({theme:t},a,(l,c)=>e.useFlexGap?{gap:Uo(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i4(c?i[c]:e.direction)}`]:Uo(r,l)}}))}return n=uT(t.breakpoints,n),n};function s4(e={}){const{createStyledComponent:t=n4,useThemeProps:n=r4,componentName:r="MuiStack"}=e,o=()=>Se({root:["root"]},l=>be(r,l),{}),i=t(a4);return p.forwardRef(function(l,c){const u=n(l),f=$u(u),{component:h="div",direction:w="column",spacing:y=0,divider:x,children:C,className:v,useFlexGap:m=!1}=f,b=se(f,e4),R={direction:w,spacing:y,useFlexGap:m},k=o();return d.jsx(i,S({as:h,ownerState:R,ref:c,className:le(k.root,v)},b,{children:x?o4(C,x):C}))})}function l4(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={},xw={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})(xw);var Te=xw.exports;const c4=Lr(QP),u4=Lr(k$);var bw=Te;Object.defineProperty(xt,"__esModule",{value:!0});var Fe=xt.alpha=Rw;xt.blend=S4;xt.colorChannel=void 0;var Rc=xt.darken=am;xt.decomposeColor=Fn;var d4=xt.emphasize=kw,f4=xt.getContrastRatio=v4;xt.getLuminance=Pc;xt.hexToRgb=ww;xt.hslToRgb=Cw;var kc=xt.lighten=sm;xt.private_safeAlpha=y4;xt.private_safeColorChannel=void 0;xt.private_safeDarken=x4;xt.private_safeEmphasize=w4;xt.private_safeLighten=b4;xt.recomposeColor=ta;xt.rgbToHex=g4;var w0=bw(c4),p4=bw(u4);function im(e,t=0,n=1){return(0,p4.default)(e,t,n)}function ww(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function h4(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(ww(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,w0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error((0,w0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Sw=e=>{const t=Fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};xt.colorChannel=Sw;const m4=(e,t)=>{try{return Sw(e)}catch{return e}};xt.private_safeColorChannel=m4;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):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 g4(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((n,r)=>h4(r===3?Math.round(255*n):n)).join("")}`}function Cw(e){e=Fn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ta({type:s,values:l})}function Pc(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(Cw(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 v4(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rw(e,t){return e=Fn(e),t=im(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function y4(e,t,n){try{return Rw(e,t)}catch{return e}}function am(e,t){if(e=Fn(e),t=im(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 ta(e)}function x4(e,t,n){try{return am(e,t)}catch{return e}}function sm(e,t){if(e=Fn(e),t=im(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 ta(e)}function b4(e,t,n){try{return sm(e,t)}catch{return e}}function kw(e,t=.15){return Pc(e)>.5?am(e,t):sm(e,t)}function w4(e,t,n){try{return kw(e,t)}catch{return e}}function S4(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Fn(e),a=Fn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ta({type:"rgb",values:s})}const C4=["mode","contrastThreshold","tonalOffset"],S0={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:fs.white,default:fs.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}},Yd={text:{primary:fs.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:fs.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 C0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kc(e.main,o):t==="dark"&&(e.dark=Rc(e.main,i)))}function R4(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function k4(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function P4(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function E4(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function T4(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function $4(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:"#ed6c02",light:ga[500],dark:ga[900]}}function M4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,C4),i=e.primary||R4(t),a=e.secondary||k4(t),s=e.error||P4(t),l=e.info||E4(t),c=e.success||T4(t),u=e.warning||$4(t);function f(x){return f4(x,Yd.text.primary)>=n?Yd.text.primary:S0.text.primary}const h=({color:x,name:C,mainShade:v=500,lightShade:m=300,darkShade:b=700})=>{if(x=S({},x),!x.main&&x[v]&&(x.main=x[v]),!x.hasOwnProperty("main"))throw new Error(Bo(11,C?` (${C})`:"",v));if(typeof x.main!="string")throw new Error(Bo(12,C?` (${C})`:"",JSON.stringify(x.main)));return C0(x,"light",m,r),C0(x,"dark",b,r),x.contrastText||(x.contrastText=f(x.main)),x},w={dark:Yd,light:S0};return Qt(S({common:S({},fs),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:XP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},w[t]),o)}const j4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function O4(e){return Math.round(e*1e5)/1e5}const R0={textTransform:"uppercase"},k0='"Roboto", "Helvetica", "Arial", sans-serif';function I4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=k0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,h=se(n,j4),w=o/14,y=f||(v=>`${v/c*w}rem`),x=(v,m,b,R,k)=>S({fontFamily:r,fontWeight:v,fontSize:y(m),lineHeight:b},r===k0?{letterSpacing:`${O4(R/m)}em`}:{},k,u),C={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,R0),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,R0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),h,{clone:!1})}const _4=.2,L4=.14,A4=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${L4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${A4})`].join(",")}const N4=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],D4=["duration","easing","delay"],z4={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)"},B4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P0(e){return`${Math.round(e)}ms`}function F4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function U4(e){const t=S({},z4,e.easing),n=S({},B4,e.duration);return S({getAutoHeightDuration:F4,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return se(i,D4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:P0(a)} ${s} ${typeof l=="string"?l:P0(l)}`).join(",")}},e,{easing:t,duration:n})}const W4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=se(e,H4);if(e.vars)throw new Error(Bo(18));const s=M4(r),l=Zi(e);let c=Qt(l,{mixins:l4(l.breakpoints,n),palette:s,shadows:N4.slice(),typography:I4(s,i),transitions:U4(o),zIndex:S({},W4)});return c=Qt(c,a),c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const Fu=Ns();function mo(){const e=Tu(Fu);return e[Fo]||e}function Re({props:e,name:t}){return rm({props:e,name:t,defaultTheme:Fu,themeId:Fo})}var Ds={},Xd={exports:{}},E0;function V4(){return E0||(E0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xd)),Xd.exports}const Pw=Lr(iT),q4=Lr(aT),G4=Lr(fT),K4=Lr(p$),Y4=Lr(ZT),X4=Lr(i$);var na=Te;Object.defineProperty(Ds,"__esModule",{value:!0});var Q4=Ds.default=u5;Ds.shouldForwardProp=Fl;Ds.systemDefaultTheme=void 0;var Tn=na(qb()),wp=na(V4()),T0=o5(Pw),J4=q4;na(G4);na(K4);var Z4=na(Y4),e5=na(X4);const t5=["ownerState"],n5=["variants"],r5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ew(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ew=function(r){return r?n:t})(e)}function o5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ew(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function i5(e){return Object.keys(e).length===0}function a5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const s5=Ds.systemDefaultTheme=(0,Z4.default)(),l5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fl({defaultTheme:e,theme:t,themeId:n}){return i5(t)?e:t[n]||t}function c5(e){return e?(t,n)=>n[e]:null}function Ul(e,t){let{ownerState:n}=t,r=(0,wp.default)(t,t5);const o=typeof e=="function"?e((0,Tn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ul(i,(0,Tn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,wp.default)(o,n5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Tn.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(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Tn.default)({ownerState:n},r,n)):l.style))}),s}return o}function u5(e={}){const{themeId:t,defaultTheme:n=s5,rootShouldForwardProp:r=Fl,slotShouldForwardProp:o=Fl}=e,i=a=>(0,e5.default)((0,Tn.default)({},a,{theme:fl((0,Tn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,T0.internal_processStyles)(a,k=>k.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=c5(l5(c))}=s,w=(0,wp.default)(s,r5),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Fl;c==="Root"||c==="root"?v=r:c?v=o:a5(a)&&(v=void 0);const m=(0,T0.default)(a,(0,Tn.default)({shouldForwardProp:v,label:C},w)),b=k=>typeof k=="function"&&k.__emotion_real!==k||(0,J4.isPlainObject)(k)?T=>Ul(k,(0,Tn.default)({},T,{theme:fl({theme:T.theme,defaultTheme:n,themeId:t})})):k,R=(k,...T)=>{let P=b(k);const j=T?T.map(b):[];l&&h&&j.push(F=>{const W=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const U=W.components[l].styleOverrides,G={};return Object.entries(U).forEach(([ee,J])=>{G[ee]=Ul(J,(0,Tn.default)({},F,{theme:W}))}),h(F,G)}),l&&!y&&j.push(F=>{var W;const U=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t})),G=U==null||(W=U.components)==null||(W=W[l])==null?void 0:W.variants;return Ul({variants:G},(0,Tn.default)({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(k)&&N>0){const F=new Array(N).fill("");P=[...k,...F],P.raw=[...k.raw,...F]}const O=m(P,...j);return a.muiName&&(O.muiName=a.muiName),O};return m.withConfig&&(R.withConfig=m.withConfig),R}}function Tw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>Tw(e)&&e!=="classes",ie=Q4({themeId:Fo,defaultTheme:Fu,rootShouldForwardProp:Ht}),d5=["theme"];function lm(e){let{theme:t}=e,n=se(e,d5);const r=t[Fo];return d.jsx(G$,S({},n,{themeId:r?Fo:void 0,theme:r||t}))}const $0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function f5(e){return be("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const p5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Se(o,f5,r)},m5=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,h,w,y;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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Sp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,w=se(r,p5),y=p.isValidElement(o)&&o.type==="svg",x=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y}),C={};u||(C.viewBox=h);const v=h5(x);return d.jsxs(m5,S({as:s,className:le(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,w,y&&o.props,{ownerState:x,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});Sp.muiName="SvgIcon";function Vt(e,t){function n(r,o){return d.jsx(Sp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Sp.muiName,p.memo(p.forwardRef(n))}const g5={configure:e=>{Zh.configure(e)}},v5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Z,createChainedFunction:xp,createSvgIcon:Vt,debounce:ea,deprecatedPropType:P$,isMuiElement:Fa,ownerDocument:St,ownerWindow:Bn,requirePropFactory:E$,setRef:Cc,unstable_ClassNameGenerator:g5,unstable_useEnhancedEffect:Sn,unstable_useId:_s,unsupportedProp:$$,useControlled:gs,useEventCallback:Yt,useForkRef:lt,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));var Ke={};/** + */var em=Symbol.for("react.element"),tm=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),Mu=Symbol.for("react.strict_mode"),ju=Symbol.for("react.profiler"),Ou=Symbol.for("react.provider"),Iu=Symbol.for("react.context"),s$=Symbol.for("react.server_context"),_u=Symbol.for("react.forward_ref"),Lu=Symbol.for("react.suspense"),Au=Symbol.for("react.suspense_list"),Nu=Symbol.for("react.memo"),Du=Symbol.for("react.lazy"),l$=Symbol.for("react.offscreen"),lw;lw=Symbol.for("react.module.reference");function Vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case em:switch(e=e.type,e){case $u:case ju:case Mu:case Lu:case Au:return e;default:switch(e=e&&e.$$typeof,e){case s$:case Iu:case _u:case Du:case Nu:case Ou:return e;default:return t}}case tm:return t}}}qe.ContextConsumer=Iu;qe.ContextProvider=Ou;qe.Element=em;qe.ForwardRef=_u;qe.Fragment=$u;qe.Lazy=Du;qe.Memo=Nu;qe.Portal=tm;qe.Profiler=ju;qe.StrictMode=Mu;qe.Suspense=Lu;qe.SuspenseList=Au;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return Vn(e)===Iu};qe.isContextProvider=function(e){return Vn(e)===Ou};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===em};qe.isForwardRef=function(e){return Vn(e)===_u};qe.isFragment=function(e){return Vn(e)===$u};qe.isLazy=function(e){return Vn(e)===Du};qe.isMemo=function(e){return Vn(e)===Nu};qe.isPortal=function(e){return Vn(e)===tm};qe.isProfiler=function(e){return Vn(e)===ju};qe.isStrictMode=function(e){return Vn(e)===Mu};qe.isSuspense=function(e){return Vn(e)===Lu};qe.isSuspenseList=function(e){return Vn(e)===Au};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$u||e===ju||e===Mu||e===Lu||e===Au||e===l$||typeof e=="object"&&e!==null&&(e.$$typeof===Du||e.$$typeof===Nu||e.$$typeof===Ou||e.$$typeof===Iu||e.$$typeof===_u||e.$$typeof===lw||e.getModuleId!==void 0)};qe.typeOf=Vn;sw.exports=qe;var h0=sw.exports;const c$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cw(e){const t=`${e}`.match(c$);return t&&t[1]||""}function uw(e,t=""){return e.displayName||e.name||cw(e)||t}function m0(e,t,n){const r=uw(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function u$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case h0.ForwardRef:return m0(e,e.render,"ForwardRef");case h0.Memo:return m0(e,e.type,"memo");default:return}}}const d$=Object.freeze(Object.defineProperty({__proto__:null,default:u$,getFunctionName:cw},Symbol.toStringTag,{value:"Module"})),f$=["ownerState"],p$=["variants"],h$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m$(e){return Object.keys(e).length===0}function g$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const v$=Zi(),y$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dl({defaultTheme:e,theme:t,themeId:n}){return m$(t)?e:t[n]||t}function x$(e){return e?(t,n)=>n[e]:null}function Bl(e,t){let{ownerState:n}=t,r=se(t,f$);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Bl(i,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=se(o,p$);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(S({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(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(S({ownerState:n},r,n)):l.style))}),s}return o}function b$(e={}){const{themeId:t,defaultTheme:n=v$,rootShouldForwardProp:r=qd,slotShouldForwardProp:o=qd}=e,i=a=>Ji(S({},a,{theme:dl(S({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{Xb(a,R=>R.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=x$(y$(c))}=s,w=se(s,h$),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=qd;c==="Root"||c==="root"?v=r:c?v=o:g$(a)&&(v=void 0);const m=Gh(a,S({shouldForwardProp:v,label:C},w)),b=R=>typeof R=="function"&&R.__emotion_real!==R||kr(R)?T=>Bl(R,S({},T,{theme:dl({theme:T.theme,defaultTheme:n,themeId:t})})):R,k=(R,...T)=>{let P=b(R);const j=T?T.map(b):[];l&&h&&j.push(F=>{const H=dl(S({},F,{defaultTheme:n,themeId:t}));if(!H.components||!H.components[l]||!H.components[l].styleOverrides)return null;const U=H.components[l].styleOverrides,q={};return Object.entries(U).forEach(([ee,J])=>{q[ee]=Bl(J,S({},F,{theme:H}))}),h(F,q)}),l&&!y&&j.push(F=>{var H;const U=dl(S({},F,{defaultTheme:n,themeId:t})),q=U==null||(H=U.components)==null||(H=H[l])==null?void 0:H.variants;return Bl({variants:q},S({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(R)&&N>0){const F=new Array(N).fill("");P=[...R,...F],P.raw=[...R.raw,...F]}const I=m(P,...j);return a.muiName&&(I.muiName=a.muiName),I};return m.withConfig&&(k.withConfig=m.withConfig),k}}const dw=b$();function nm(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(a=>{n[r][a]=nm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function w$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nm(t.components[n].defaultProps,r)}function rm({props:e,name:t,defaultTheme:n,themeId:r}){let o=Eu(n);return r&&(o=o[r]||o),w$({theme:o,name:t,props:e})}const Sn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function S$(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const C$=Object.freeze(Object.defineProperty({__proto__:null,default:S$},Symbol.toStringTag,{value:"Module"}));function yp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ea(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function k$(e,t){return()=>null}function Fa(e,t){var n,r;return p.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function St(e){return e&&e.ownerDocument||document}function Bn(e){return St(e).defaultView||window}function R$(e,t){return()=>null}function Cc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let g0=0;function P$(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(g0+=1,n(`mui-${g0}`))},[t]),r}const v0=Vl.useId;function _s(e){if(v0!==void 0){const t=v0();return e??t}return P$(e)}function E$(e,t,n,r,o){return null}function gs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,a]=p.useState(t),s=o?e:i,l=p.useCallback(c=>{o||a(c)},[]);return[s,l]}function Yt(e){const t=p.useRef(e);return Sn(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cc(n,t)})},e)}const y0={};function T$(e,t){const n=p.useRef(y0);return n.current===y0&&(n.current=e(t)),n}const $$=[];function M$(e){p.useEffect(e,$$)}class Ls{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ls}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function To(){const e=T$(Ls.create).current;return M$(e.disposeEffect),e}let zu=!0,xp=!1;const j$=new Ls,O$={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 I$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _$(e){e.metaKey||e.altKey||e.ctrlKey||(zu=!0)}function Gd(){zu=!1}function L$(){this.visibilityState==="hidden"&&xp&&(zu=!0)}function A$(e){e.addEventListener("keydown",_$,!0),e.addEventListener("mousedown",Gd,!0),e.addEventListener("pointerdown",Gd,!0),e.addEventListener("touchstart",Gd,!0),e.addEventListener("visibilitychange",L$,!0)}function N$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zu||I$(t)}function om(){const e=p.useCallback(o=>{o!=null&&A$(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(xp=!0,j$.start(100,()=>{xp=!1}),t.current=!1,!0):!1}function r(o){return N$(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ti;function pw(){if(ti)return ti;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ti="reverse",e.scrollLeft>0?ti="default":(e.scrollLeft=1,e.scrollLeft===0&&(ti="negative")),document.body.removeChild(e),ti}function D$(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(pw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const hw=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current};function Se(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const mw=p.createContext(null);function gw(){return p.useContext(mw)}const z$=typeof Symbol=="function"&&Symbol.for,B$=z$?Symbol.for("mui.nested"):"__THEME_NESTED__";function F$(e,t){return typeof t=="function"?t(e):S({},e,t)}function U$(e){const{children:t,theme:n}=e,r=gw(),o=p.useMemo(()=>{const i=r===null?n:F$(r,n);return i!=null&&(i[B$]=r!==null),i},[n,r]);return d.jsx(mw.Provider,{value:o,children:t})}const W$=["value"],vw=p.createContext();function H$(e){let{value:t}=e,n=se(e,W$);return d.jsx(vw.Provider,S({value:t??!0},n))}const As=()=>{const e=p.useContext(vw);return e??!1},x0={};function b0(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?S({},t,{[e]:i}):i;return r?()=>a:a}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function V$(e){const{children:t,theme:n,themeId:r}=e,o=ow(x0),i=gw()||x0,a=b0(r,o,n),s=b0(r,i,n,!0),l=a.direction==="rtl";return d.jsx(U$,{theme:s,children:d.jsx(js.Provider,{value:a,children:d.jsx(H$,{value:l,children:t})})})}const q$=["className","component","disableGutters","fixed","maxWidth","classes"],G$=Zi(),K$=dw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Y$=e=>rm({props:e,name:"MuiContainer",defaultTheme:G$}),X$=(e,t)=>{const n=l=>be(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Z(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Se(s,n,r)};function Q$(e={}){const{createStyledComponent:t=K$,useThemeProps:n=Y$,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>S({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>S({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return p.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:w=!1,maxWidth:y="lg"}=c,x=se(c,q$),C=S({},c,{component:f,disableGutters:h,fixed:w,maxWidth:y}),v=X$(C,r);return d.jsx(o,S({as:f,ownerState:C,className:le(v.root,u),ref:l},x))})}const J$=["component","direction","spacing","divider","children","className","useFlexGap"],Z$=Zi(),e4=dw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function t4(e){return rm({props:e,name:"MuiStack",defaultTheme:Z$})}function n4(e,t){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],o4=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},or({theme:t},Vd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qh(t),o=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),{}),i=Vd({values:e.direction,base:o}),a=Vd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=Qt(n,or({theme:t},a,(l,c)=>e.useFlexGap?{gap:Uo(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r4(c?i[c]:e.direction)}`]:Uo(r,l)}}))}return n=lT(t.breakpoints,n),n};function i4(e={}){const{createStyledComponent:t=e4,useThemeProps:n=t4,componentName:r="MuiStack"}=e,o=()=>Se({root:["root"]},l=>be(r,l),{}),i=t(o4);return p.forwardRef(function(l,c){const u=n(l),f=Tu(u),{component:h="div",direction:w="column",spacing:y=0,divider:x,children:C,className:v,useFlexGap:m=!1}=f,b=se(f,J$),k={direction:w,spacing:y,useFlexGap:m},R=o();return d.jsx(i,S({as:h,ownerState:k,ref:c,className:le(R.root,v)},b,{children:x?n4(C,x):C}))})}function a4(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xt={},yw={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})(yw);var Te=yw.exports;const s4=Lr(YP),l4=Lr(C$);var xw=Te;Object.defineProperty(xt,"__esModule",{value:!0});var Fe=xt.alpha=Cw;xt.blend=b4;xt.colorChannel=void 0;var kc=xt.darken=am;xt.decomposeColor=Fn;var c4=xt.emphasize=kw,u4=xt.getContrastRatio=m4;xt.getLuminance=Pc;xt.hexToRgb=bw;xt.hslToRgb=Sw;var Rc=xt.lighten=sm;xt.private_safeAlpha=g4;xt.private_safeColorChannel=void 0;xt.private_safeDarken=v4;xt.private_safeEmphasize=x4;xt.private_safeLighten=y4;xt.recomposeColor=ta;xt.rgbToHex=h4;var w0=xw(s4),d4=xw(l4);function im(e,t=0,n=1){return(0,d4.default)(e,t,n)}function bw(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function f4(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(bw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,w0.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error((0,w0.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ww=e=>{const t=Fn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};xt.colorChannel=ww;const p4=(e,t)=>{try{return ww(e)}catch{return e}};xt.private_safeColorChannel=p4;function ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):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 h4(e){if(e.indexOf("#")===0)return e;const{values:t}=Fn(e);return`#${t.map((n,r)=>f4(r===3?Math.round(255*n):n)).join("")}`}function Sw(e){e=Fn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ta({type:s,values:l})}function Pc(e){e=Fn(e);let t=e.type==="hsl"||e.type==="hsla"?Fn(Sw(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 m4(e,t){const n=Pc(e),r=Pc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Cw(e,t){return e=Fn(e),t=im(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function g4(e,t,n){try{return Cw(e,t)}catch{return e}}function am(e,t){if(e=Fn(e),t=im(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 ta(e)}function v4(e,t,n){try{return am(e,t)}catch{return e}}function sm(e,t){if(e=Fn(e),t=im(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 ta(e)}function y4(e,t,n){try{return sm(e,t)}catch{return e}}function kw(e,t=.15){return Pc(e)>.5?am(e,t):sm(e,t)}function x4(e,t,n){try{return kw(e,t)}catch{return e}}function b4(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=Fn(e),a=Fn(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ta({type:"rgb",values:s})}const w4=["mode","contrastThreshold","tonalOffset"],S0={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:fs.white,default:fs.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}},Kd={text:{primary:fs.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:fs.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 C0(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Rc(e.main,o):t==="dark"&&(e.dark=kc(e.main,i)))}function S4(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function C4(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function k4(e="light"){return e==="dark"?{main:Xo[500],light:Xo[300],dark:Xo[700]}:{main:Xo[700],light:Xo[400],dark:Xo[800]}}function R4(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function P4(e="light"){return e==="dark"?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}function E4(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:"#ed6c02",light:ga[500],dark:ga[900]}}function T4(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,w4),i=e.primary||S4(t),a=e.secondary||C4(t),s=e.error||k4(t),l=e.info||R4(t),c=e.success||P4(t),u=e.warning||E4(t);function f(x){return u4(x,Kd.text.primary)>=n?Kd.text.primary:S0.text.primary}const h=({color:x,name:C,mainShade:v=500,lightShade:m=300,darkShade:b=700})=>{if(x=S({},x),!x.main&&x[v]&&(x.main=x[v]),!x.hasOwnProperty("main"))throw new Error(Bo(11,C?` (${C})`:"",v));if(typeof x.main!="string")throw new Error(Bo(12,C?` (${C})`:"",JSON.stringify(x.main)));return C0(x,"light",m,r),C0(x,"dark",b,r),x.contrastText||(x.contrastText=f(x.main)),x},w={dark:Kd,light:S0};return Qt(S({common:S({},fs),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:KP,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},w[t]),o)}const $4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function M4(e){return Math.round(e*1e5)/1e5}const k0={textTransform:"uppercase"},R0='"Roboto", "Helvetica", "Arial", sans-serif';function j4(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=R0,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,h=se(n,$4),w=o/14,y=f||(v=>`${v/c*w}rem`),x=(v,m,b,k,R)=>S({fontFamily:r,fontWeight:v,fontSize:y(m),lineHeight:b},r===R0?{letterSpacing:`${M4(k/m)}em`}:{},R,u),C={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,k0),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,k0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qt(S({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},C),h,{clone:!1})}const O4=.2,I4=.14,_4=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${O4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${I4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${_4})`].join(",")}const L4=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],A4=["duration","easing","delay"],N4={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)"},D4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P0(e){return`${Math.round(e)}ms`}function z4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function B4(e){const t=S({},N4,e.easing),n=S({},D4,e.duration);return S({getAutoHeightDuration:z4,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return se(i,A4),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:P0(a)} ${s} ${typeof l=="string"?l:P0(l)}`).join(",")}},e,{easing:t,duration:n})}const F4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},U4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=se(e,U4);if(e.vars)throw new Error(Bo(18));const s=T4(r),l=Zi(e);let c=Qt(l,{mixins:a4(l.breakpoints,n),palette:s,shadows:L4.slice(),typography:j4(s,i),transitions:B4(o),zIndex:S({},F4)});return c=Qt(c,a),c=t.reduce((u,f)=>Qt(u,f),c),c.unstable_sxConfig=S({},Is,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return Ji({sx:f,theme:this})},c}const Bu=Ns();function mo(){const e=Eu(Bu);return e[Fo]||e}function ke({props:e,name:t}){return rm({props:e,name:t,defaultTheme:Bu,themeId:Fo})}var Ds={},Yd={exports:{}},E0;function W4(){return E0||(E0=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Yd)),Yd.exports}const Rw=Lr(rT),H4=Lr(oT),V4=Lr(uT),q4=Lr(d$),G4=Lr(QT),K4=Lr(r$);var na=Te;Object.defineProperty(Ds,"__esModule",{value:!0});var Y4=Ds.default=l5;Ds.shouldForwardProp=Fl;Ds.systemDefaultTheme=void 0;var Tn=na(Vb()),bp=na(W4()),T0=n5(Rw),X4=H4;na(V4);na(q4);var Q4=na(G4),J4=na(K4);const Z4=["ownerState"],e5=["variants"],t5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Pw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pw=function(r){return r?n:t})(e)}function n5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function r5(e){return Object.keys(e).length===0}function o5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const i5=Ds.systemDefaultTheme=(0,Q4.default)(),a5=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fl({defaultTheme:e,theme:t,themeId:n}){return r5(t)?e:t[n]||t}function s5(e){return e?(t,n)=>n[e]:null}function Ul(e,t){let{ownerState:n}=t,r=(0,bp.default)(t,Z4);const o=typeof e=="function"?e((0,Tn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ul(i,(0,Tn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,bp.default)(o,e5);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Tn.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(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Tn.default)({ownerState:n},r,n)):l.style))}),s}return o}function l5(e={}){const{themeId:t,defaultTheme:n=i5,rootShouldForwardProp:r=Fl,slotShouldForwardProp:o=Fl}=e,i=a=>(0,J4.default)((0,Tn.default)({},a,{theme:fl((0,Tn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,T0.internal_processStyles)(a,R=>R.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:h=s5(a5(c))}=s,w=(0,bp.default)(s,t5),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=f||!1;let C,v=Fl;c==="Root"||c==="root"?v=r:c?v=o:o5(a)&&(v=void 0);const m=(0,T0.default)(a,(0,Tn.default)({shouldForwardProp:v,label:C},w)),b=R=>typeof R=="function"&&R.__emotion_real!==R||(0,X4.isPlainObject)(R)?T=>Ul(R,(0,Tn.default)({},T,{theme:fl({theme:T.theme,defaultTheme:n,themeId:t})})):R,k=(R,...T)=>{let P=b(R);const j=T?T.map(b):[];l&&h&&j.push(F=>{const H=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t}));if(!H.components||!H.components[l]||!H.components[l].styleOverrides)return null;const U=H.components[l].styleOverrides,q={};return Object.entries(U).forEach(([ee,J])=>{q[ee]=Ul(J,(0,Tn.default)({},F,{theme:H}))}),h(F,q)}),l&&!y&&j.push(F=>{var H;const U=fl((0,Tn.default)({},F,{defaultTheme:n,themeId:t})),q=U==null||(H=U.components)==null||(H=H[l])==null?void 0:H.variants;return Ul({variants:q},(0,Tn.default)({},F,{theme:U}))}),x||j.push(i);const N=j.length-T.length;if(Array.isArray(R)&&N>0){const F=new Array(N).fill("");P=[...R,...F],P.raw=[...R.raw,...F]}const I=m(P,...j);return a.muiName&&(I.muiName=a.muiName),I};return m.withConfig&&(k.withConfig=m.withConfig),k}}function Ew(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ht=e=>Ew(e)&&e!=="classes",ie=Y4({themeId:Fo,defaultTheme:Bu,rootShouldForwardProp:Ht}),c5=["theme"];function lm(e){let{theme:t}=e,n=se(e,c5);const r=t[Fo];return d.jsx(V$,S({},n,{themeId:r?Fo:void 0,theme:r||t}))}const $0=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function u5(e){return be("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const d5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],f5=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Se(o,u5,r)},p5=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,h,w,y;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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),wp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,w=se(r,d5),y=p.isValidElement(o)&&o.type==="svg",x=S({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:y}),C={};u||(C.viewBox=h);const v=f5(x);return d.jsxs(p5,S({as:s,className:le(v.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},C,w,y&&o.props,{ownerState:x,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});wp.muiName="SvgIcon";function Vt(e,t){function n(r,o){return d.jsx(wp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=wp.muiName,p.memo(p.forwardRef(n))}const h5={configure:e=>{Zh.configure(e)}},m5=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Z,createChainedFunction:yp,createSvgIcon:Vt,debounce:ea,deprecatedPropType:k$,isMuiElement:Fa,ownerDocument:St,ownerWindow:Bn,requirePropFactory:R$,setRef:Cc,unstable_ClassNameGenerator:h5,unstable_useEnhancedEffect:Sn,unstable_useId:_s,unsupportedProp:E$,useControlled:gs,useEventCallback:Yt,useForkRef:lt,useIsFocusVisible:om},Symbol.toStringTag,{value:"Module"}));var Ke={};/** * @license React * react-is.production.min.js * @@ -92,7 +92,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cm=Symbol.for("react.element"),um=Symbol.for("react.portal"),Uu=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),Hu=Symbol.for("react.profiler"),Vu=Symbol.for("react.provider"),qu=Symbol.for("react.context"),y5=Symbol.for("react.server_context"),Gu=Symbol.for("react.forward_ref"),Ku=Symbol.for("react.suspense"),Yu=Symbol.for("react.suspense_list"),Xu=Symbol.for("react.memo"),Qu=Symbol.for("react.lazy"),x5=Symbol.for("react.offscreen"),$w;$w=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case Uu:case Hu:case Wu:case Ku:case Yu:return e;default:switch(e=e&&e.$$typeof,e){case y5:case qu:case Gu:case Qu:case Xu:case Vu:return e;default:return t}}case um:return t}}}Ke.ContextConsumer=qu;Ke.ContextProvider=Vu;Ke.Element=cm;Ke.ForwardRef=Gu;Ke.Fragment=Uu;Ke.Lazy=Qu;Ke.Memo=Xu;Ke.Portal=um;Ke.Profiler=Hu;Ke.StrictMode=Wu;Ke.Suspense=Ku;Ke.SuspenseList=Yu;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return qn(e)===qu};Ke.isContextProvider=function(e){return qn(e)===Vu};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};Ke.isForwardRef=function(e){return qn(e)===Gu};Ke.isFragment=function(e){return qn(e)===Uu};Ke.isLazy=function(e){return qn(e)===Qu};Ke.isMemo=function(e){return qn(e)===Xu};Ke.isPortal=function(e){return qn(e)===um};Ke.isProfiler=function(e){return qn(e)===Hu};Ke.isStrictMode=function(e){return qn(e)===Wu};Ke.isSuspense=function(e){return qn(e)===Ku};Ke.isSuspenseList=function(e){return qn(e)===Yu};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Uu||e===Hu||e===Wu||e===Ku||e===Yu||e===x5||typeof e=="object"&&e!==null&&(e.$$typeof===Qu||e.$$typeof===Xu||e.$$typeof===Vu||e.$$typeof===qu||e.$$typeof===Gu||e.$$typeof===$w||e.getModuleId!==void 0)};Ke.typeOf=qn;function Ju(e){return Re}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cp(e,t)}function Mw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cp(e,t)}const M0={disabled:!1},Ec=nn.createContext(null);var b5=function(t){return t.scrollTop},$a="unmounted",Co="exited",Ro="entering",ri="entered",Rp="exiting",ar=function(e){Mw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Co,i.appearStatus=Ro):l=ri:r.unmountOnExit||r.mountOnEnter?l=$a:l=Co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$a?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ro&&a!==ri&&(i=Ro):(a===Ro||a===ri)&&(i=Rp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this);a&&b5(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:$a})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cl.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||M0.disabled){this.safeSetState({status:ri},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ro},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ri},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cl.findDOMNode(this);if(!i||M0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Rp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$a)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(Ec.Provider,{value:null},typeof a=="function"?a(o,s):nn.cloneElement(nn.Children.only(a),s))},t}(nn.Component);ar.contextType=Ec;ar.propTypes={};function ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni};ar.UNMOUNTED=$a;ar.EXITED=Co;ar.ENTERING=Ro;ar.ENTERED=ri;ar.EXITING=Rp;function w5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function S5(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function E5(e){return be("MuiPaper",e)}we("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const T5=["className","component","elevation","square","variant"],$5=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Se(i,E5,o)},M5=ie("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 S({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"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fe("#fff",$0(t.elevation))}, ${Fe("#fff",$0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),En=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=se(r,T5),u=S({},r,{component:i,elevation:a,square:s,variant:l}),f=$5(u);return d.jsx(M5,S({as:i,ownerState:u,className:le(f.root,o),ref:n},c))});function Ni(e){return typeof e=="string"}function vi(e,t,n){return e===void 0||Ni(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const j5={disableDefaultClasses:!1},O5=p.createContext(j5);function I5(e){const{disableDefaultClasses:t}=p.useContext(O5);return n=>t?"":e(n)}function Tc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jw(e,t,n){return typeof e=="function"?e(t,n):e}function j0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ow(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=S({},n,o,r);return w.length>0&&(x.className=w),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=Tc(S({},o,r)),s=j0(r),l=j0(o),c=t(a),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const _5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=se(e,_5),s=i?{}:jw(r,o),{props:l,internalRef:c}=Ow(S({},a,{externalSlotProps:s})),u=lt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vi(n,S({},l,{ref:u}),o)}const L5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],A5=["component","slots","slotProps"],N5=["component"];function kp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=se(t,L5),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=se(i,A5),w=u[e]||r,y=jw(f[e],o),x=Ow(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:v}=x,m=se(x.props,N5),b=lt(v,y==null?void 0:y.ref,t.ref),R=a?a(m):{},k=S({},o,R),T=e==="root"?C||c:C,P=vi(w,S({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,m,T&&{as:T},{ref:b}),k);return Object.keys(R).forEach(j=>{delete P[j]}),[w,P]}function D5(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),h=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),d.jsx("span",{className:h,style:w,children:d.jsx("span",{className:y})})}const $n=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),z5=["center","classes","className"];let Zu=e=>e,O0,I0,_0,L0;const Pp=550,B5=80,F5=Qi(O0||(O0=Zu` + */var cm=Symbol.for("react.element"),um=Symbol.for("react.portal"),Fu=Symbol.for("react.fragment"),Uu=Symbol.for("react.strict_mode"),Wu=Symbol.for("react.profiler"),Hu=Symbol.for("react.provider"),Vu=Symbol.for("react.context"),g5=Symbol.for("react.server_context"),qu=Symbol.for("react.forward_ref"),Gu=Symbol.for("react.suspense"),Ku=Symbol.for("react.suspense_list"),Yu=Symbol.for("react.memo"),Xu=Symbol.for("react.lazy"),v5=Symbol.for("react.offscreen"),Tw;Tw=Symbol.for("react.module.reference");function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case Fu:case Wu:case Uu:case Gu:case Ku:return e;default:switch(e=e&&e.$$typeof,e){case g5:case Vu:case qu:case Xu:case Yu:case Hu:return e;default:return t}}case um:return t}}}Ke.ContextConsumer=Vu;Ke.ContextProvider=Hu;Ke.Element=cm;Ke.ForwardRef=qu;Ke.Fragment=Fu;Ke.Lazy=Xu;Ke.Memo=Yu;Ke.Portal=um;Ke.Profiler=Wu;Ke.StrictMode=Uu;Ke.Suspense=Gu;Ke.SuspenseList=Ku;Ke.isAsyncMode=function(){return!1};Ke.isConcurrentMode=function(){return!1};Ke.isContextConsumer=function(e){return qn(e)===Vu};Ke.isContextProvider=function(e){return qn(e)===Hu};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};Ke.isForwardRef=function(e){return qn(e)===qu};Ke.isFragment=function(e){return qn(e)===Fu};Ke.isLazy=function(e){return qn(e)===Xu};Ke.isMemo=function(e){return qn(e)===Yu};Ke.isPortal=function(e){return qn(e)===um};Ke.isProfiler=function(e){return qn(e)===Wu};Ke.isStrictMode=function(e){return qn(e)===Uu};Ke.isSuspense=function(e){return qn(e)===Gu};Ke.isSuspenseList=function(e){return qn(e)===Ku};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fu||e===Wu||e===Uu||e===Gu||e===Ku||e===v5||typeof e=="object"&&e!==null&&(e.$$typeof===Xu||e.$$typeof===Yu||e.$$typeof===Hu||e.$$typeof===Vu||e.$$typeof===qu||e.$$typeof===Tw||e.getModuleId!==void 0)};Ke.typeOf=qn;function Qu(e){return ke}function Sp(e,t){return Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Sp(e,t)}function $w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sp(e,t)}const M0={disabled:!1},Ec=nn.createContext(null);var y5=function(t){return t.scrollTop},$a="unmounted",Co="exited",ko="entering",ri="entered",Cp="exiting",ar=function(e){$w(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Co,i.appearStatus=ko):l=ri:r.unmountOnExit||r.mountOnEnter?l=$a:l=Co,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$a?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ko&&a!==ri&&(i=ko):(a===ko||a===ri)&&(i=Cp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ko){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this);a&&y5(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:$a})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[cl.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||M0.disabled){this.safeSetState({status:ri},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ko},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ri},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:cl.findDOMNode(this);if(!i||M0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Cp},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:cl.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$a)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(Ec.Provider,{value:null},typeof a=="function"?a(o,s):nn.cloneElement(nn.Children.only(a),s))},t}(nn.Component);ar.contextType=Ec;ar.propTypes={};function ni(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ni,onEntering:ni,onEntered:ni,onExit:ni,onExiting:ni,onExited:ni};ar.UNMOUNTED=$a;ar.EXITED=Co;ar.ENTERING=ko;ar.ENTERED=ri;ar.EXITING=Cp;function x5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function b5(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function R5(e){return be("MuiPaper",e)}we("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const P5=["className","component","elevation","square","variant"],E5=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Se(i,R5,o)},T5=ie("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 S({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"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fe("#fff",$0(t.elevation))}, ${Fe("#fff",$0(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),En=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=se(r,P5),u=S({},r,{component:i,elevation:a,square:s,variant:l}),f=E5(u);return d.jsx(T5,S({as:i,ownerState:u,className:le(f.root,o),ref:n},c))});function Ni(e){return typeof e=="string"}function vi(e,t,n){return e===void 0||Ni(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const $5={disableDefaultClasses:!1},M5=p.createContext($5);function j5(e){const{disableDefaultClasses:t}=p.useContext(M5);return n=>t?"":e(n)}function Tc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Mw(e,t,n){return typeof e=="function"?e(t,n):e}function j0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function jw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=S({},n,o,r);return w.length>0&&(x.className=w),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:void 0}}const a=Tc(S({},o,r)),s=j0(r),l=j0(o),c=t(a),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const O5=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=se(e,O5),s=i?{}:Mw(r,o),{props:l,internalRef:c}=jw(S({},a,{externalSlotProps:s})),u=lt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return vi(n,S({},l,{ref:u}),o)}const I5=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_5=["component","slots","slotProps"],L5=["component"];function kp(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=se(t,I5),{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0}}=i,h=se(i,_5),w=u[e]||r,y=Mw(f[e],o),x=jw(S({className:n},l,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y})),{props:{component:C},internalRef:v}=x,m=se(x.props,L5),b=lt(v,y==null?void 0:y.ref,t.ref),k=a?a(m):{},R=S({},o,k),T=e==="root"?C||c:C,P=vi(w,S({},e==="root"&&!c&&!u[e]&&s,e!=="root"&&!u[e]&&s,m,T&&{as:T},{ref:b}),R);return Object.keys(k).forEach(j=>{delete P[j]}),[w,P]}function A5(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),h=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),d.jsx("span",{className:h,style:w,children:d.jsx("span",{className:y})})}const $n=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),N5=["center","classes","className"];let Ju=e=>e,O0,I0,_0,L0;const Rp=550,D5=80,z5=Qi(O0||(O0=Ju` 0% { transform: scale(0); opacity: 0.1; @@ -102,7 +102,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),U5=Qi(I0||(I0=Zu` +`)),B5=Qi(I0||(I0=Ju` 0% { opacity: 1; } @@ -110,7 +110,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),W5=Qi(_0||(_0=Zu` +`)),F5=Qi(_0||(_0=Ju` 0% { transform: scale(1); } @@ -122,7 +122,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),H5=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),V5=ie(D5,{name:"MuiTouchRipple",slot:"Ripple"})(L0||(L0=Zu` +`)),U5=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),W5=ie(A5,{name:"MuiTouchRipple",slot:"Ripple"})(L0||(L0=Ju` opacity: 0; position: absolute; @@ -165,8 +165,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),$n.rippleVisible,F5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,U5,Pp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,W5,({theme:e})=>e.transitions.easing.easeInOut),q5=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,z5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(R=>{const{pulsate:k,rippleX:T,rippleY:P,rippleSize:j,cb:N}=R;c(O=>[...O,d.jsx(V5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Pp,pulsate:k,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((R={},k={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||k.pulsate,fakeElement:N=!1}=k;if((R==null?void 0:R.type)==="mousedown"&&h.current){h.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(h.current=!0);const O=N?null:x.current,F=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,U,G;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)W=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=R.touches&&R.touches.length>0?R.touches[0]:R;W=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)G=Math.sqrt((2*F.width**2+F.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((O?O.clientWidth:0)-W),W)*2+2,J=Math.max(Math.abs((O?O.clientHeight:0)-U),U)*2+2;G=Math.sqrt(ee**2+J**2)}R!=null&&R.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},w.start(B5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:W,rippleY:U,rippleSize:G,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((R,k)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(R,k)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=k},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(H5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function G5(e){return be("MuiButtonBase",e)}const K5=we("MuiButtonBase",["root","disabled","focusVisible"]),Y5=["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"],X5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},G5,o);return n&&r&&(a.root+=` ${r}`),a},Q5=ie("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"},[`&.${K5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:R,onKeyUp:k,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:O,onTouchStart:F,tabIndex:W=0,TouchRippleProps:U,touchRippleRef:G,type:ee}=r,J=se(r,Y5),re=p.useRef(null),I=p.useRef(null),_=lt(I,G),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&I.current.pulsate()},[u,h,L,V]);function K(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&I.current&&I.current[he](Ye),!0))}const Y=K("start",T),q=K("stop",C),oe=K("stop",v),te=K("stop",j),ne=K("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=K("start",F),ke=K("stop",N),H=K("stop",O),ae=K("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&I.current&&he.key===" "&&(X.current=!0,I.current.stop(he,()=>{I.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),R&&R(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&I.current&&L&&!he.defaultPrevented&&(X.current=!1,I.current.stop(he,()=>{I.current.pulsate(he)})),k&&k(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:W,focusVisible:L}),Ee=X5(De);return d.jsxs(Q5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:q,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:Y,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:ke,onTouchMove:H,onTouchStart:de,ref:Le,tabIndex:c?-1:W,type:ee},Ce,J,{children:[a,A?d.jsx(q5,S({ref:_,center:i},U)):null]}))});function J5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Z5(e){return be("MuiIconButton",e)}const eM=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),tM=["edge","children","className","color","disabled","disableFocusRipple","size"],nM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Z5,t)},rM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${eM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,tM),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=nM(h);return d.jsx(rM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),oM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uM=Ju(),dM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,J5,o)},fM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Rc:kc,n=e.palette.mode==="light"?kc:Rc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),pM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(oM,{fontSize:"inherit"}),warning:d.jsx(iM,{fontSize:"inherit"}),error:d.jsx(aM,{fontSize:"inherit"}),info:d.jsx(sM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=uM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,cM),R=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),k=dM(R),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:R}),[N,O]=kp("closeIcon",{elementType:lM,externalForwardedProps:T,ownerState:R});return d.jsxs(fM,S({role:y,elevation:0,ownerState:R,className:le(k.root,a),ref:n},b,{children:[f!==!1?d.jsx(pM,{ownerState:R,className:k.icon,children:f||h[x]||D0[x]}):null,d.jsx(hM,{ownerState:R,className:k.message,children:i}),o!=null?d.jsx(N0,{ownerState:R,className:k.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:R,className:k.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},O))}))}):null]}))});function mM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,mM,a)},yM=ie("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${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({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})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bM=e=>xM[e]||e,Ie=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=bM(r.color),i=$u(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,gM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=vM(x);return d.jsx(yM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function wM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const SM=["className","color","enableColorOnDark","position"],CM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,wM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,RM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),kM=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,SM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=CM(c);return d.jsx(RM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function PM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Iw="base";function EM(e){return`${Iw}--${e}`}function TM(e,t){return`${Iw}-${e}-${t}`}function _w(e,t){const n=sw[t];return n?EM(n):TM(e,t)}function $M(e,t){const n={};return t.forEach(r=>{n[r]=_w(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function MM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&MM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const OM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _M(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_M(e))}function AM(e){const t=[],n=[];return Array.from(e.querySelectorAll(OM)).forEach((r,o)=>{const i=IM(r);i===-1||!LM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function DM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=AM,isEnabled:a=NM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),R=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,O;const F=!!((N=C.current)!=null&&N.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),W=j[0],U=j[j.length-1];typeof W!="string"&&typeof U!="string"&&(F?U.focus():W.focus())}else P.focus()};b.addEventListener("focusin",k),b.addEventListener("keydown",R,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",k),b.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const R=t.props.onFocus;R&&R(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function zM(e){return typeof e=="function"?e():e}const Lw=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(zM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function BM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function FM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!FM(a);s&&l&&Ua(a,o)})}function Qd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(BM(r)){const a=pw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function WM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=WM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Qd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Qd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=UM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Qd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function VM(e){return typeof e=="function"?e():e}function qM(e){return e?e.props.hasOwnProperty("in"):!1}const GM=new HM;function KM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=GM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=qM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const R=()=>St(w.current),k=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=VM(t)||R().body;o.add(k(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(k()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),O=p.useCallback(()=>{o.remove(k(),b)},[b,o]);p.useEffect(()=>()=>{O()},[O]),p.useEffect(()=>{u?P():(!m||!i)&&O()},[u,O,m,i,P]);const F=J=>re=>{var I;(I=J.onKeyDown)==null||I.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},W=J=>re=>{var I;(I=J.onClick)==null||I.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const I=S({},re,J);return S({role:"presentation"},I,{onKeyDown:F(I),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:W(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&O()};return{onEnter:xp(J,l==null?void 0:l.props.onEnter),onExited:xp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",YM="clippingParents",Aw="viewport",ya="popper",XM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Nw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),QM="beforeRead",JM="read",ZM="afterRead",ej="beforeMain",tj="main",nj="afterMain",rj="beforeWrite",oj="write",ij="afterWrite",aj=[QM,JM,ZM,ej,tj,nj,rj,oj,ij];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cj={name:"applyStyles",enabled:!0,phase:"write",fn:sj,effect:lj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Ep(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(Ep())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function uj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function dj(e){var t=/firefox/i.test(Ep()),n=/Trident/i.test(Ep());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=ed(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&uj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||dj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function fj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function Bw(){return{top:0,right:0,bottom:0,left:0}}function Fw(e){return Object.assign({},Bw(),e)}function Uw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fw(typeof t!="number"?t:Uw(t,zs))};function hj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=pj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,R=f[w],k=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(R,T,k),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function mj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zw(t.elements.popper,o)&&(t.elements.arrow=o))}const gj={name:"arrow",enabled:!0,phase:"main",fn:hj,effect:mj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var vj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,R=cn,k=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){R=Un;var N=f&&T===k&&k.visualViewport?k.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var O=f&&T===k&&k.visualViewport?k.visualViewport.width:T[j];w-=O-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&vj),W=u===!0?yj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=W.x,x=W.y,l){var U;return Object.assign({},F,(U={},U[R]=m?"0":"",U[b]=v?"0":"",U.transform=(k.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[R]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function xj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const bj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xj,data:{}};var hl={passive:!0};function wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const Sj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wj,data:{}};var Cj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return Cj[t]})}var Rj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Rj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function kj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function Pj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ww(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Ww(ed(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Ww(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(ed(a)))}function Tp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ej(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Aw?Tp(kj(e,n)):Wo(t)?Ej(t,n):Tp(Pj(go(e)))}function Tj(e){var t=Ha(ed(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&zw(o,r)&&yr(o)!=="body"}):[]}function $j(e,t,n,r){var o=t==="clippingParents"?Tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hw(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YM:s,c=n.rootBoundary,u=c===void 0?Aw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Fw(typeof C!="number"?C:Uw(C,zs)),m=h===ya?XM:ya,b=e.rects.popper,R=e.elements[y?m:h],k=$j(Wo(R)?R:R.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Hw({reference:T,element:b,strategy:"absolute",placement:o}),j=Tp(Object.assign({},b,P)),N=h===ya?j:T,O={top:k.top-N.top+v.top,bottom:N.bottom-k.bottom+v.bottom,left:k.left-N.left+v.left,right:N.right-k.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var W=F[o];Object.keys(O).forEach(function(U){var G=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";O[U]+=W[ee]*G})}return O}function Mj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function jj(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Oj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:jj(C)),R=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Mj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),k=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=R[0],O=0;O=0,ee=G?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=G?U?Wn:un:U?Un:cn;k[ee]>T[ee]&&(re=Wl(re));var I=Wl(re),_=[];if(i&&_.push(J[W]<=0),s&&_.push(J[re]<=0,J[I]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=R.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(K){return K})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const Ij={name:"flip",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function _j(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_j};function Aj(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Nj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Nw.reduce(function(u,f){return u[f]=Aj(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nj};function zj(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bj={name:"popperOffsets",enabled:!0,phase:"read",fn:zj,data:{}};function Fj(e){return e==="x"?"y":"x"}function Uj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,R=vm(v),k=Fj(R),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(T){if(i){var U,G=R==="y"?cn:un,ee=R==="y"?Un:Wn,J=R==="y"?"height":"width",re=T[R],I=re+C[G],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bw(),V=B[G],M=B[ee],A=Wa(0,P[J],L[J]),K=b?P[J]/2-E-A-V-O.mainAxis:g-A-V-O.mainAxis,Y=b?-P[J]/2+E+A+M+O.mainAxis:$+A+M+O.mainAxis,q=t.elements.arrow&&Bs(t.elements.arrow),oe=q?R==="y"?q.clientTop||0:q.clientLeft||0:0,te=(U=F==null?void 0:F[R])!=null?U:0,ne=re+K-te-oe,de=re+Y-te,ke=Wa(w?$c(I,ne):I,re,w?Io(_,de):_);T[R]=ke,W[R]=ke-re}if(s){var H,ae=R==="x"?cn:un,ge=R==="x"?Un:Wn,D=T[k],X=k==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(H=F==null?void 0:F[k])!=null?H:0,Le=ve?fe:D-P[X]-j[X]-Ce+O.altAxis,De=ve?D+P[X]+j[X]-Ce-O.altAxis:pe,Ee=w&&ve?fj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[k]=Ee,W[k]=Ee-D}t.modifiersData[r]=W}}const Wj={name:"preventOverflow",enabled:!0,phase:"main",fn:Uj,requiresIfExists:["offset"]};function Hj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vj(e){return e===Cn(e)||!Nn(e)?ym(e):Hj(e)}function qj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&qj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Vj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Yj(e){var t=Kj(e);return aj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Xj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},I5(tO)),sO={},lO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,nO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),R=lt(b,h),k=p.useRef(R);Sn(()=>{k.current=R},[R]),p.useImperativeHandle(h,()=>b.current,[]);const T=oO(u,a),[P,j]=p.useState(T),[N,O]=p.useState($p(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&O($p(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=I=>{j(I.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{ee(I)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=eO(N,v.current,S({placement:T},f,{modifiers:J}));return k.current(re),()=>{re.destroy(),k.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const W=aO(),U=(r=y.root)!=null?r:"div",G=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:W.root});return d.jsx(U,S({},G,{children:typeof i=="function"?i(F):i}))}),cO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=sO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,rO),[b,R]=p.useState(!0),k=()=>{R(!1)},T=()=>{R(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const O=$p(r);P=O&&iO(O)?St(O).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:k,onExited:T}:void 0;return d.jsx(Lw,{disablePortal:s,container:P,children:d.jsx(lO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function uO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const dO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const fO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,dO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const R=m.boxSizing,k=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const O=N+(R==="border-box"?k+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:O,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(pO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,R=Bn(b);R.addEventListener("resize",m);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(C),k.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),R.removeEventListener("resize",m),k&&k.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},fO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var qw=wm.default=void 0,mO=vO(p),gO=Pw;function Gw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Gw=function(r){return r?n:t})(e)}function vO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Gw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yO(e){return Object.keys(e).length===0}function xO(e=null){const t=mO.useContext(gO.ThemeContext);return!t||yO(t)?e:t}qw=wm.default=xO;const bO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wO=ie(cO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kw=p.forwardRef(function(t,n){var r;const o=qw(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:R}=i,k=se(i,bO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},k);return d.jsx(wO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:R??c},P,{ref:n}))}),SO=Vt(d.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 CO(e){return be("MuiChip",e)}const Be=we("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"]),RO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,CO,t)},PO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({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",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(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)`:Fe(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)`:Fe(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&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},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}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(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, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},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]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.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)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),EO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({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 J0(e){return e.key==="Backspace"||e.key==="Delete"}const TO=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:R=!1}=r,k=se(r,RO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},O=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,W=F||y?Ir:l||"div",U=S({},r,{component:W,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),G=kO(U),ee=W===Ir?S({component:l||"div",focusVisibleClassName:G.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,G.deleteIcon),onClick:j}):d.jsx(SO,{className:le(G.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(G.avatar,o.props.className)}));let I=null;return f&&p.isValidElement(f)&&(I=p.cloneElement(f,{className:le(G.icon,f.props.className)})),d.jsxs(PO,S({as:W,className:le(G.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:O,ref:P,tabIndex:R&&u?-1:b,ownerState:U},ee,k,{children:[re||I,d.jsx(EO,{className:le(G.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const td=p.createContext(void 0);function br(){return p.useContext(td)}function Yw(e){return d.jsx(n$,S({},e,{defaultTheme:Fu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function $O(e){return e.startAdornment}function MO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jO=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nd=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},OO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,MO,t)},od=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),id=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),IO=d.jsx(Yw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_O=p.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:O,onFocus:F,onKeyDown:W,onKeyUp:U,placeholder:G,readOnly:ee,renderSuffix:J,rows:re,slotProps:I={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,jO),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[K,Y]=p.useState(!1),q=br(),oe=vo({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=q?q.focused:K,p.useEffect(()=>{!q&&h&&K&&(Y(!1),j&&j())},[q,h,K,j]);const te=q&&q.onFilled,ne=q&&q.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const ke=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),q&&q.onFocus?q.onFocus(Ee):Y(!0)},H=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),q&&q.onBlur?q.onBlur(Ee):Y(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),O&&O(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:R,minRows:k},X),D=hO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{q&&q.setAdornedStart(!!E)},[q,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:q,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=OO(pe),Ce=_.root||c.Root||od,Le=I.root||u.root||{},De=_.input||c.Input||id;return X=S({},X,(r=I.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&IO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(td.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:G,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:W,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:H,onChange:ae,onFocus:ke}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=_O;function LO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function AO(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function NO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),DO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UO=Ju(),WO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BO,t)},HO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),VO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qO=ie(zO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=UO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,FO);let C=null;const v=GO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",R=S({},r,{colorDefault:!b,component:s,variant:y}),k=WO(R),[T,P]=kp("img",{className:k.img,elementType:VO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:R});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(qO,{ownerState:R,className:k.fallback}),d.jsx(HO,S({as:s,ownerState:R,className:le(k.root,a),ref:n},x,{children:C}))}),KO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YO={entering:{opacity:1},entered:{opacity:1}},Xw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,KO),R=p.useRef(null),k=lt(R,s.ref,n),T=G=>ee=>{if(G){const J=R.current;ee===void 0?G(J):G(J,ee)}},P=T(h),j=T((G,ee)=>{pm(G);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});G.style.webkitTransition=r.transitions.create("opacity",J),G.style.transition=r.transitions.create("opacity",J),u&&u(G,ee)}),N=T(f),O=T(x),F=T(G=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});G.style.webkitTransition=r.transitions.create("opacity",ee),G.style.transition=r.transitions.create("opacity",ee),w&&w(G)}),W=T(y),U=G=>{i&&i(R.current,G)};return d.jsx(m,S({appear:a,in:c,nodeRef:R,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:W,onExiting:O,addEndListener:U,timeout:v},b,{children:(G,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:G==="exited"&&!c?"hidden":void 0},YO[G],C,s.props.style),ref:k},ee))}))});function XO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const QO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},XO,t)},ZO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Qw=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Xw,transitionDuration:v}=a,m=se(a,QO),b=S({},a,{component:c,invisible:h}),R=JO(b),k=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(ZO,S({"aria-hidden":!0},k,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(R.root,l,k==null?void 0:k.className),ownerState:S({},b,k==null?void 0:k.ownerState),classes:R,ref:n,children:s}))}))});function e3(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),t3=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Jd=10,Zd=4,n3=Ju(),r3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,e3,a)},o3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),i3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:"0 6px",height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),a3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=n3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:R,slots:k,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,t3),{badgeContent:O,invisible:F,max:W,displayValue:U}=PM({max:b,invisible:m,badgeContent:R,showZero:P}),G=mw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:R}),ee=F||O==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:I=u,variant:_=j}=ee?G:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:O,invisible:ee,max:W,displayValue:E,showZero:P,anchorOrigin:I,color:J,overlap:re,variant:_}),$=r3(g),z=(r=(o=k==null?void 0:k.root)!=null?o:w.Root)!=null?r:o3,L=(i=(a=k==null?void 0:k.badge)!=null?a:w.Badge)!=null?i:i3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),s3=we("MuiBox",["root"]),l3=Ns(),at=l$({themeId:Fo,defaultTheme:l3,defaultClassName:s3.root,generateClassName:Zh.generate});function c3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),u3=p.createContext({}),d3=p.createContext(void 0),f3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,c3,a);return S({},a,l)},Jw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),h3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),m3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Jw(e))),g3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Jw(e))),kt=p.forwardRef(function(t,n){const r=p.useContext(u3),o=p.useContext(d3),i=nm(r,t),a=Re({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:R="text"}=a,k=se(a,f3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:R}),P=p3(T),j=m&&d.jsx(m3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(g3,{className:P.endIcon,ownerState:T,children:y}),O=o||"";return d.jsxs(h3,S({ownerState:T,className:le(r.className,P.root,u,O),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},k,{classes:P,children:[j,s,N]}))});function v3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const y3=["className","raised"],x3=e=>{const{classes:t}=e;return Se({root:["root"]},v3,t)},b3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ad=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,y3),s=S({},r,{raised:i}),l=x3(s);return d.jsx(b3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function w3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const S3=["className","component"],C3=e=>{const{classes:t}=e;return Se({root:["root"]},w3,t)},R3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,S3),s=S({},r,{component:i}),l=C3(s);return d.jsx(R3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function k3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],E3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,k3,t)},T3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),$3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:R=!1,tabIndex:k,type:T,value:P}=t,j=se(t,P3),[N,O]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),W=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},G=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;O(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),I=E3(re);return d.jsxs(T3,S({component:"span",className:le(I.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:W,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx($3,S({autoFocus:r,checked:o,defaultChecked:s,className:I.input,disabled:ee,id:J?h:void 0,name:x,onChange:G,readOnly:b,ref:y,required:R,ownerState:re,tabIndex:k,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),M3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),O3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function I3(e){return be("MuiCheckbox",e)}const ef=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],L3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,I3,t);return S({},t,a)},A3=ie(Zw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ef.checked}, &.${ef.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ef.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N3=d.jsx(j3,{}),D3=d.jsx(M3,{}),z3=d.jsx(O3,{}),Rm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:a=N3,color:s="primary",icon:l=D3,indeterminate:c=!1,indeterminateIcon:u=z3,inputProps:f,size:h="medium",className:w}=i,y=se(i,_3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=L3(v);return d.jsx(A3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function B3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const F3=["className","color","disableShrink","size","style","thickness","value","variant"];let sd=e=>e,ey,ty,ny,ry;const Hr=44,U3=Qi(ey||(ey=sd` +`),$n.rippleVisible,z5,Rp,({theme:e})=>e.transitions.easing.easeInOut,$n.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$n.child,$n.childLeaving,B5,Rp,({theme:e})=>e.transitions.easing.easeInOut,$n.childPulsate,F5,({theme:e})=>e.transitions.easing.easeInOut),H5=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=se(r,N5),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),w=To(),y=p.useRef(null),x=p.useRef(null),C=p.useCallback(k=>{const{pulsate:R,rippleX:T,rippleY:P,rippleSize:j,cb:N}=k;c(I=>[...I,d.jsx(W5,{classes:{ripple:le(i.ripple,$n.ripple),rippleVisible:le(i.rippleVisible,$n.rippleVisible),ripplePulsate:le(i.ripplePulsate,$n.ripplePulsate),child:le(i.child,$n.child),childLeaving:le(i.childLeaving,$n.childLeaving),childPulsate:le(i.childPulsate,$n.childPulsate)},timeout:Rp,pulsate:R,rippleX:T,rippleY:P,rippleSize:j},u.current)]),u.current+=1,f.current=N},[i]),v=p.useCallback((k={},R={},T=()=>{})=>{const{pulsate:P=!1,center:j=o||R.pulsate,fakeElement:N=!1}=R;if((k==null?void 0:k.type)==="mousedown"&&h.current){h.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(h.current=!0);const I=N?null:x.current,F=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,U,q;if(j||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)H=Math.round(F.width/2),U=Math.round(F.height/2);else{const{clientX:ee,clientY:J}=k.touches&&k.touches.length>0?k.touches[0]:k;H=Math.round(ee-F.left),U=Math.round(J-F.top)}if(j)q=Math.sqrt((2*F.width**2+F.height**2)/3),q%2===0&&(q+=1);else{const ee=Math.max(Math.abs((I?I.clientWidth:0)-H),H)*2+2,J=Math.max(Math.abs((I?I.clientHeight:0)-U),U)*2+2;q=Math.sqrt(ee**2+J**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{C({pulsate:P,rippleX:H,rippleY:U,rippleSize:q,cb:T})},w.start(D5,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:P,rippleX:H,rippleY:U,rippleSize:q,cb:T})},[o,C,w]),m=p.useCallback(()=>{v({},{pulsate:!0})},[v]),b=p.useCallback((k,R)=>{if(w.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,w.start(0,()=>{b(k,R)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=R},[w]);return p.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:b}),[m,v,b]),d.jsx(U5,S({className:le($n.root,i.root,a),ref:x},s,{children:d.jsx(fm,{component:null,exit:!0,children:l})}))});function V5(e){return be("MuiButtonBase",e)}const q5=we("MuiButtonBase",["root","disabled","focusVisible"]),G5=["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"],K5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Se({root:["root",t&&"disabled",n&&"focusVisible"]},V5,o);return n&&r&&(a.root+=` ${r}`),a},Y5=ie("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"},[`&.${q5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ir=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:w="a",onBlur:y,onClick:x,onContextMenu:C,onDragLeave:v,onFocus:m,onFocusVisible:b,onKeyDown:k,onKeyUp:R,onMouseDown:T,onMouseLeave:P,onMouseUp:j,onTouchEnd:N,onTouchMove:I,onTouchStart:F,tabIndex:H=0,TouchRippleProps:U,touchRippleRef:q,type:ee}=r,J=se(r,G5),re=p.useRef(null),O=p.useRef(null),_=lt(O,q),{isFocusVisibleRef:E,onFocus:g,onBlur:$,ref:z}=om(),[L,B]=p.useState(!1);c&&L&&B(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{B(!0),re.current.focus()}}),[]);const[V,M]=p.useState(!1);p.useEffect(()=>{M(!0)},[]);const A=V&&!u&&!c;p.useEffect(()=>{L&&h&&!u&&V&&O.current.pulsate()},[u,h,L,V]);function G(he,Ge,Xe=f){return Yt(Ye=>(Ge&&Ge(Ye),!Xe&&O.current&&O.current[he](Ye),!0))}const Y=G("start",T),K=G("stop",C),oe=G("stop",v),te=G("stop",j),ne=G("stop",he=>{L&&he.preventDefault(),P&&P(he)}),de=G("start",F),Re=G("stop",N),W=G("stop",I),ae=G("stop",he=>{$(he),E.current===!1&&B(!1),y&&y(he)},!1),ge=Yt(he=>{re.current||(re.current=he.currentTarget),g(he),E.current===!0&&(B(!0),b&&b(he)),m&&m(he)}),D=()=>{const he=re.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},X=p.useRef(!1),fe=Yt(he=>{h&&!X.current&&L&&O.current&&he.key===" "&&(X.current=!0,O.current.stop(he,()=>{O.current.start(he)})),he.target===he.currentTarget&&D()&&he.key===" "&&he.preventDefault(),k&&k(he),he.target===he.currentTarget&&D()&&he.key==="Enter"&&!c&&(he.preventDefault(),x&&x(he))}),pe=Yt(he=>{h&&he.key===" "&&O.current&&L&&!he.defaultPrevented&&(X.current=!1,O.current.stop(he,()=>{O.current.pulsate(he)})),R&&R(he),x&&he.target===he.currentTarget&&D()&&he.key===" "&&!he.defaultPrevented&&x(he)});let ve=l;ve==="button"&&(J.href||J.to)&&(ve=w);const Ce={};ve==="button"?(Ce.type=ee===void 0?"button":ee,Ce.disabled=c):(!J.href&&!J.to&&(Ce.role="button"),c&&(Ce["aria-disabled"]=c));const Le=lt(n,z,re),De=S({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:H,focusVisible:L}),Ee=K5(De);return d.jsxs(Y5,S({as:ve,className:le(Ee.root,s),ownerState:De,onBlur:ae,onClick:x,onContextMenu:K,onFocus:ge,onKeyDown:fe,onKeyUp:pe,onMouseDown:Y,onMouseLeave:ne,onMouseUp:te,onDragLeave:oe,onTouchEnd:Re,onTouchMove:W,onTouchStart:de,ref:Le,tabIndex:c?-1:H,type:ee},Ce,J,{children:[a,A?d.jsx(H5,S({ref:_,center:i},U)):null]}))});function X5(e){return be("MuiAlert",e)}const A0=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Q5(e){return be("MuiIconButton",e)}const J5=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Z5=["edge","children","className","color","disabled","disableFocusRipple","size"],eM=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Z(r)}`,o&&`edge${Z(o)}`,`size${Z(i)}`]};return Se(a,Q5,t)},tM=ie(Ir,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${J5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ut=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=se(r,Z5),h=S({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),w=eM(h);return d.jsx(tM,S({className:le(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:h,children:i}))}),nM=Vt(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),rM=Vt(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),oM=Vt(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),iM=Vt(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),aM=Vt(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),sM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],lM=Qu(),cM=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Z(n||r)}`,`${t}${Z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Se(i,X5,o)},uM=ie(En,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?kc:Rc,n=e.palette.mode==="light"?Rc:kc;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${A0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),dM=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),fM=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),N0=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),D0={success:d.jsx(nM,{fontSize:"inherit"}),warning:d.jsx(rM,{fontSize:"inherit"}),error:d.jsx(oM,{fontSize:"inherit"}),info:d.jsx(iM,{fontSize:"inherit"})},xr=p.forwardRef(function(t,n){const r=lM({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=D0,onClose:w,role:y="alert",severity:x="success",slotProps:C={},slots:v={},variant:m="standard"}=r,b=se(r,sM),k=S({},r,{color:l,severity:x,variant:m,colorSeverity:l||x}),R=cM(k),T={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},v),slotProps:S({},u,C)},[P,j]=kp("closeButton",{elementType:ut,externalForwardedProps:T,ownerState:k}),[N,I]=kp("closeIcon",{elementType:aM,externalForwardedProps:T,ownerState:k});return d.jsxs(uM,S({role:y,elevation:0,ownerState:k,className:le(R.root,a),ref:n},b,{children:[f!==!1?d.jsx(dM,{ownerState:k,className:R.icon,children:f||h[x]||D0[x]}):null,d.jsx(fM,{ownerState:k,className:R.message,children:i}),o!=null?d.jsx(N0,{ownerState:k,className:R.action,children:o}):null,o==null&&w?d.jsx(N0,{ownerState:k,className:R.action,children:d.jsx(P,S({size:"small","aria-label":s,title:s,color:"inherit",onClick:w},j,{children:d.jsx(N,S({fontSize:"small"},I))}))}):null]}))});function pM(e){return be("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mM=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Se(s,pM,a)},gM=ie("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${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({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})),z0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yM=e=>vM[e]||e,Ie=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTypography"}),o=yM(r.color),i=Tu(S({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:h="body1",variantMapping:w=z0}=i,y=se(i,hM),x=S({},i,{align:a,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:h,variantMapping:w}),C=l||(f?"p":w[h]||z0[h])||"span",v=mM(x);return d.jsx(gM,S({as:C,ref:n,ownerState:x,className:le(v.root,s)},y))});function xM(e){return be("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bM=["className","color","enableColorOnDark","position"],wM=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Z(t)}`,`position${Z(n)}`]};return Se(o,xM,r)},pl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,SM=ie(En,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:pl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:pl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:pl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:pl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),CM=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=se(r,bM),c=S({},r,{color:i,position:s,enableColorOnDark:a}),u=wM(c);return d.jsx(SM,S({square:!0,component:"header",ownerState:c,elevation:4,className:le(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))});function kM(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=hw({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}const Ow="base";function RM(e){return`${Ow}--${e}`}function PM(e,t){return`${Ow}-${e}-${t}`}function Iw(e,t){const n=aw[t];return n?RM(n):PM(e,t)}function EM(e,t){const n={};return t.forEach(r=>{n[r]=Iw(e,r)}),n}function B0(e){return e.substring(2).toLowerCase()}function TM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=lt(t.ref,s),f=Yt(y=>{const x=c.current;c.current=!1;const C=St(s.current);if(!l.current||!s.current||"clientX"in y&&TM(y,C))return;if(a.current){a.current=!1;return}let v;y.composedPath?v=y.composedPath().indexOf(s.current)>-1:v=!C.documentElement.contains(y.target)||s.current.contains(y.target),!v&&(n||!x)&&o(y)}),h=y=>x=>{c.current=!0;const C=t.props[y];C&&C(x)},w={ref:u};return i!==!1&&(w[i]=h(i)),p.useEffect(()=>{if(i!==!1){const y=B0(i),x=St(s.current),C=()=>{a.current=!0};return x.addEventListener(y,f),x.addEventListener("touchmove",C),()=>{x.removeEventListener(y,f),x.removeEventListener("touchmove",C)}}},[f,i]),r!==!1&&(w[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=B0(r),x=St(s.current);return x.addEventListener(y,f),()=>{x.removeEventListener(y,f)}}},[f,r]),d.jsx(p.Fragment,{children:p.cloneElement(t,w)})}const MM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function OM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function IM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||OM(e))}function _M(e){const t=[],n=[];return Array.from(e.querySelectorAll(MM)).forEach((r,o)=>{const i=jM(r);i===-1||!IM(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function LM(){return!0}function AM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=_M,isEnabled:a=LM,open:s}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),h=p.useRef(null),w=p.useRef(!1),y=p.useRef(null),x=lt(t.ref,y),C=p.useRef(null);p.useEffect(()=>{!s||!y.current||(w.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current);return y.current.contains(b.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),w.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!y.current)return;const b=St(y.current),k=P=>{C.current=P,!(r||!a()||P.key!=="Tab")&&b.activeElement===y.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},R=()=>{const P=y.current;if(P===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(P.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==u.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!w.current)return;let j=[];if((b.activeElement===c.current||b.activeElement===u.current)&&(j=i(y.current)),j.length>0){var N,I;const F=!!((N=C.current)!=null&&N.shiftKey&&((I=C.current)==null?void 0:I.key)==="Tab"),H=j[0],U=j[j.length-1];typeof H!="string"&&typeof U!="string"&&(F?U.focus():H.focus())}else P.focus()};b.addEventListener("focusin",R),b.addEventListener("keydown",k,!0);const T=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(T),b.removeEventListener("focusin",R),b.removeEventListener("keydown",k,!0)}},[n,r,o,a,s,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0,h.current=b.target;const k=t.props.onFocus;k&&k(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),w.current=!0};return d.jsxs(p.Fragment,{children:[d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:x,onFocus:v}),d.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}function NM(e){return typeof e=="function"?e():e}const _w=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=p.useState(null),l=lt(p.isValidElement(r)?r.ref:null,n);if(Sn(()=>{i||s(NM(o)||document.body)},[o,i]),Sn(()=>{if(a&&!i)return Cc(n,a),()=>{Cc(n,null)}},[n,a,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return d.jsx(p.Fragment,{children:r})}return d.jsx(p.Fragment,{children:a&&Oh.createPortal(r,a)})});function DM(e){const t=St(e);return t.body===e?Bn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ua(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F0(e){return parseInt(Bn(e).getComputedStyle(e).paddingRight,10)||0}function zM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function U0(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!zM(a);s&&l&&Ua(a,o)})}function Xd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function BM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(DM(r)){const a=fw(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${F0(r)+a}px`;const s=St(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${F0(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,s=Bn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function FM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ua(t.modalRef,!1);const o=FM(n);U0(n,t.mount,t.modalRef,o,!0);const i=Xd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Xd(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=BM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Xd(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ua(t.modalRef,n),U0(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ua(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function WM(e){return typeof e=="function"?e():e}function HM(e){return e?e.props.hasOwnProperty("in"):!1}const VM=new UM;function qM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=VM,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,h=p.useRef({}),w=p.useRef(null),y=p.useRef(null),x=lt(y,f),[C,v]=p.useState(!u),m=HM(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const k=()=>St(w.current),R=()=>(h.current.modalRef=y.current,h.current.mount=w.current,h.current),T=()=>{o.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Yt(()=>{const J=WM(t)||k().body;o.add(R(),J),y.current&&T()}),j=p.useCallback(()=>o.isTopModal(R()),[o]),N=Yt(J=>{w.current=J,J&&(u&&j()?T():y.current&&Ua(y.current,b))}),I=p.useCallback(()=>{o.remove(R(),b)},[b,o]);p.useEffect(()=>()=>{I()},[I]),p.useEffect(()=>{u?P():(!m||!i)&&I()},[u,I,m,i,P]);const F=J=>re=>{var O;(O=J.onKeyDown)==null||O.call(J,re),!(re.key!=="Escape"||re.which===229||!j())&&(n||(re.stopPropagation(),c&&c(re,"escapeKeyDown")))},H=J=>re=>{var O;(O=J.onClick)==null||O.call(J,re),re.target===re.currentTarget&&c&&c(re,"backdropClick")};return{getRootProps:(J={})=>{const re=Tc(e);delete re.onTransitionEnter,delete re.onTransitionExited;const O=S({},re,J);return S({role:"presentation"},O,{onKeyDown:F(O),ref:x})},getBackdropProps:(J={})=>{const re=J;return S({"aria-hidden":!0},re,{onClick:H(re),open:u})},getTransitionProps:()=>{const J=()=>{v(!1),a&&a()},re=()=>{v(!0),s&&s(),i&&I()};return{onEnter:yp(J,l==null?void 0:l.props.onEnter),onExited:yp(re,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:N,isTopModal:j,exited:C,hasTransition:m}}var cn="top",Un="bottom",Wn="right",un="left",hm="auto",zs=[cn,Un,Wn,un],Di="start",vs="end",GM="clippingParents",Lw="viewport",ya="popper",KM="reference",W0=zs.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+vs])},[]),Aw=[].concat(zs,[hm]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+vs])},[]),YM="beforeRead",XM="read",QM="afterRead",JM="beforeMain",ZM="main",ej="afterMain",tj="beforeWrite",nj="write",rj="afterWrite",oj=[YM,XM,QM,JM,ZM,ej,tj,nj,rj];function yr(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mm(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ij(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Nn(i)||!yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function aj(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Nn(o)||!yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const sj={name:"applyStyles",enabled:!0,phase:"write",fn:ij,effect:aj,requires:["computeStyles"]};function mr(e){return e.split("-")[0]}var Io=Math.max,$c=Math.min,zi=Math.round;function Pp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Nw(){return!/^((?!chrome|android).)*safari/i.test(Pp())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Nn(e)&&(o=e.offsetWidth>0&&zi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(r.height)/e.offsetHeight||1);var a=Wo(e)?Cn(e):window,s=a.visualViewport,l=!Nw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function gm(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Dw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _r(e){return Cn(e).getComputedStyle(e)}function lj(e){return["table","td","th"].indexOf(yr(e))>=0}function go(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zu(e){return yr(e)==="html"?e:e.assignedSlot||e.parentNode||(mm(e)?e.host:null)||go(e)}function H0(e){return!Nn(e)||_r(e).position==="fixed"?null:e.offsetParent}function cj(e){var t=/firefox/i.test(Pp()),n=/Trident/i.test(Pp());if(n&&Nn(e)){var r=_r(e);if(r.position==="fixed")return null}var o=Zu(e);for(mm(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(yr(o))<0;){var i=_r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bs(e){for(var t=Cn(e),n=H0(e);n&&lj(n)&&_r(n).position==="static";)n=H0(n);return n&&(yr(n)==="html"||yr(n)==="body"&&_r(n).position==="static")?t:n||cj(e)||t}function vm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wa(e,t,n){return Io(e,$c(t,n))}function uj(e,t,n){var r=Wa(e,t,n);return r>n?n:r}function zw(){return{top:0,right:0,bottom:0,left:0}}function Bw(e){return Object.assign({},zw(),e)}function Fw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dj=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Bw(typeof t!="number"?t:Fw(t,zs))};function fj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mr(n.placement),l=vm(s),c=[un,Wn].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=dj(o.padding,n),h=gm(i),w=l==="y"?cn:un,y=l==="y"?Un:Wn,x=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],C=a[l]-n.rects.reference[l],v=Bs(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-C/2,k=f[w],R=m-h[u]-f[y],T=m/2-h[u]/2+b,P=Wa(k,T,R),j=l;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-T,t)}}function pj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Dw(t.elements.popper,o)&&(t.elements.arrow=o))}const hj={name:"arrow",enabled:!0,phase:"main",fn:fj,effect:pj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var mj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zi(n*o)/o||0,y:zi(r*o)/o||0}}function V0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,w=h===void 0?0:h,y=a.y,x=y===void 0?0:y,C=typeof u=="function"?u({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=un,k=cn,R=window;if(c){var T=Bs(n),P="clientHeight",j="clientWidth";if(T===Cn(n)&&(T=go(n),_r(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",j="scrollWidth")),T=T,o===cn||(o===un||o===Wn)&&i===vs){k=Un;var N=f&&T===R&&R.visualViewport?R.visualViewport.height:T[P];x-=N-r.height,x*=l?1:-1}if(o===un||(o===cn||o===Un)&&i===vs){b=Wn;var I=f&&T===R&&R.visualViewport?R.visualViewport.width:T[j];w-=I-r.width,w*=l?1:-1}}var F=Object.assign({position:s},c&&mj),H=u===!0?gj({x:w,y:x},Cn(n)):{x:w,y:x};if(w=H.x,x=H.y,l){var U;return Object.assign({},F,(U={},U[k]=m?"0":"",U[b]=v?"0":"",U.transform=(R.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",U))}return Object.assign({},F,(t={},t[k]=m?x+"px":"",t[b]=v?w+"px":"",t.transform="",t))}function vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:mr(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vj,data:{}};var hl={passive:!0};function xj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,hl)}),s&&l.addEventListener("resize",n.update,hl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,hl)}),s&&l.removeEventListener("resize",n.update,hl)}}const bj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xj,data:{}};var wj={left:"right",right:"left",bottom:"top",top:"bottom"};function Wl(e){return e.replace(/left|right|bottom|top/g,function(t){return wj[t]})}var Sj={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return Sj[t]})}function ym(e){var t=Cn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return Bi(go(e)).left+ym(e).scrollLeft}function Cj(e,t){var n=Cn(e),r=go(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Nw();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+xm(e),y:l}}function kj(e){var t,n=go(e),r=ym(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Io(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Io(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+xm(e),l=-r.scrollTop;return _r(o||n).direction==="rtl"&&(s+=Io(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function bm(e){var t=_r(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Uw(e){return["html","body","#document"].indexOf(yr(e))>=0?e.ownerDocument.body:Nn(e)&&bm(e)?e:Uw(Zu(e))}function Ha(e,t){var n;t===void 0&&(t=[]);var r=Uw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(r),a=o?[i].concat(i.visualViewport||[],bm(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Ha(Zu(a)))}function Ep(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function G0(e,t,n){return t===Lw?Ep(Cj(e,n)):Wo(t)?Rj(t,n):Ep(kj(go(e)))}function Pj(e){var t=Ha(Zu(e)),n=["absolute","fixed"].indexOf(_r(e).position)>=0,r=n&&Nn(e)?Bs(e):e;return Wo(r)?t.filter(function(o){return Wo(o)&&Dw(o,r)&&yr(o)!=="body"}):[]}function Ej(e,t,n,r){var o=t==="clippingParents"?Pj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=G0(e,c,r);return l.top=Io(u.top,l.top),l.right=$c(u.right,l.right),l.bottom=$c(u.bottom,l.bottom),l.left=Io(u.left,l.left),l},G0(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ww(e){var t=e.reference,n=e.element,r=e.placement,o=r?mr(r):null,i=r?Fi(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case cn:l={x:a,y:t.y-n.height};break;case Un:l={x:a,y:t.y+t.height};break;case Wn:l={x:t.x+t.width,y:s};break;case un:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?vm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Di:l[c]=l[c]-(t[u]/2-n[u]/2);break;case vs:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function ys(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?GM:s,c=n.rootBoundary,u=c===void 0?Lw:c,f=n.elementContext,h=f===void 0?ya:f,w=n.altBoundary,y=w===void 0?!1:w,x=n.padding,C=x===void 0?0:x,v=Bw(typeof C!="number"?C:Fw(C,zs)),m=h===ya?KM:ya,b=e.rects.popper,k=e.elements[y?m:h],R=Ej(Wo(k)?k:k.contextElement||go(e.elements.popper),l,u,a),T=Bi(e.elements.reference),P=Ww({reference:T,element:b,strategy:"absolute",placement:o}),j=Ep(Object.assign({},b,P)),N=h===ya?j:T,I={top:R.top-N.top+v.top,bottom:N.bottom-R.bottom+v.bottom,left:R.left-N.left+v.left,right:N.right-R.right+v.right},F=e.modifiersData.offset;if(h===ya&&F){var H=F[o];Object.keys(I).forEach(function(U){var q=[Wn,Un].indexOf(U)>=0?1:-1,ee=[cn,Un].indexOf(U)>=0?"y":"x";I[U]+=H[ee]*q})}return I}function Tj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Aw:l,u=Fi(r),f=u?s?W0:W0.filter(function(y){return Fi(y)===u}):zs,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var w=h.reduce(function(y,x){return y[x]=ys(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[mr(x)],y},{});return Object.keys(w).sort(function(y,x){return w[y]-w[x]})}function $j(e){if(mr(e)===hm)return[];var t=Wl(e);return[q0(e),t,q0(t)]}function Mj(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,w=n.flipVariations,y=w===void 0?!0:w,x=n.allowedAutoPlacements,C=t.options.placement,v=mr(C),m=v===C,b=l||(m||!y?[Wl(C)]:$j(C)),k=[C].concat(b).reduce(function(L,B){return L.concat(mr(B)===hm?Tj(t,{placement:B,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:x}):B)},[]),R=t.rects.reference,T=t.rects.popper,P=new Map,j=!0,N=k[0],I=0;I=0,ee=q?"width":"height",J=ys(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),re=q?U?Wn:un:U?Un:cn;R[ee]>T[ee]&&(re=Wl(re));var O=Wl(re),_=[];if(i&&_.push(J[H]<=0),s&&_.push(J[re]<=0,J[O]<=0),_.every(function(L){return L})){N=F,j=!1;break}P.set(F,_)}if(j)for(var E=y?3:1,g=function(B){var V=k.find(function(M){var A=P.get(M);if(A)return A.slice(0,B).every(function(G){return G})});if(V)return N=V,"break"},$=E;$>0;$--){var z=g($);if(z==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const jj={name:"flip",enabled:!0,phase:"main",fn:Mj,requiresIfExists:["offset"],data:{_skip:!1}};function K0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Y0(e){return[cn,Wn,Un,un].some(function(t){return e[t]>=0})}function Oj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ys(t,{elementContext:"reference"}),s=ys(t,{altBoundary:!0}),l=K0(a,r),c=K0(s,o,i),u=Y0(l),f=Y0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Ij={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oj};function _j(e,t,n){var r=mr(e),o=[un,cn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[un,Wn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Lj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Aw.reduce(function(u,f){return u[f]=_j(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Aj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lj};function Nj(e){var t=e.state,n=e.name;t.modifiersData[n]=Ww({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dj={name:"popperOffsets",enabled:!0,phase:"read",fn:Nj,data:{}};function zj(e){return e==="x"?"y":"x"}function Bj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,w=h===void 0?!0:h,y=n.tetherOffset,x=y===void 0?0:y,C=ys(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),v=mr(t.placement),m=Fi(t.placement),b=!m,k=vm(v),R=zj(k),T=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,N=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(T){if(i){var U,q=k==="y"?cn:un,ee=k==="y"?Un:Wn,J=k==="y"?"height":"width",re=T[k],O=re+C[q],_=re-C[ee],E=w?-j[J]/2:0,g=m===Di?P[J]:j[J],$=m===Di?-j[J]:-P[J],z=t.elements.arrow,L=w&&z?gm(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zw(),V=B[q],M=B[ee],A=Wa(0,P[J],L[J]),G=b?P[J]/2-E-A-V-I.mainAxis:g-A-V-I.mainAxis,Y=b?-P[J]/2+E+A+M+I.mainAxis:$+A+M+I.mainAxis,K=t.elements.arrow&&Bs(t.elements.arrow),oe=K?k==="y"?K.clientTop||0:K.clientLeft||0:0,te=(U=F==null?void 0:F[k])!=null?U:0,ne=re+G-te-oe,de=re+Y-te,Re=Wa(w?$c(O,ne):O,re,w?Io(_,de):_);T[k]=Re,H[k]=Re-re}if(s){var W,ae=k==="x"?cn:un,ge=k==="x"?Un:Wn,D=T[R],X=R==="y"?"height":"width",fe=D+C[ae],pe=D-C[ge],ve=[cn,un].indexOf(v)!==-1,Ce=(W=F==null?void 0:F[R])!=null?W:0,Le=ve?fe:D-P[X]-j[X]-Ce+I.altAxis,De=ve?D+P[X]+j[X]-Ce-I.altAxis:pe,Ee=w&&ve?uj(Le,D,De):Wa(w?Le:fe,D,w?De:pe);T[R]=Ee,H[R]=Ee-D}t.modifiersData[r]=H}}const Fj={name:"preventOverflow",enabled:!0,phase:"main",fn:Bj,requiresIfExists:["offset"]};function Uj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wj(e){return e===Cn(e)||!Nn(e)?ym(e):Uj(e)}function Hj(e){var t=e.getBoundingClientRect(),n=zi(t.width)/e.offsetWidth||1,r=zi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Vj(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&Hj(t),i=go(t),a=Bi(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yr(t)!=="body"||bm(i))&&(s=Wj(t)),Nn(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xm(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function qj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Gj(e){var t=qj(e);return oj.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Kj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Yj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Q0(){for(var e=arguments.length,t=new Array(e),n=0;nSe({root:["root"]},j5(Zj)),iO={},aO=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:h,slotProps:w={},slots:y={},TransitionProps:x}=t,C=se(t,eO),v=p.useRef(null),m=lt(v,n),b=p.useRef(null),k=lt(b,h),R=p.useRef(k);Sn(()=>{R.current=k},[k]),p.useImperativeHandle(h,()=>b.current,[]);const T=nO(u,a),[P,j]=p.useState(T),[N,I]=p.useState(Tp(o));p.useEffect(()=>{b.current&&b.current.forceUpdate()}),p.useEffect(()=>{o&&I(Tp(o))},[o]),Sn(()=>{if(!N||!c)return;const ee=O=>{j(O.placement)};let J=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{ee(O)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const re=Jj(N,v.current,S({placement:T},f,{modifiers:J}));return R.current(re),()=>{re.destroy(),R.current(null)}},[N,s,l,c,f,T]);const F={placement:P};x!==null&&(F.TransitionProps=x);const H=oO(),U=(r=y.root)!=null?r:"div",q=fn({elementType:U,externalSlotProps:w.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:H.root});return d.jsx(U,S({},q,{children:typeof i=="function"?i(F):i}))}),sO=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=iO,popperRef:w,style:y,transition:x=!1,slotProps:C={},slots:v={}}=t,m=se(t,tO),[b,k]=p.useState(!0),R=()=>{k(!1)},T=()=>{k(!0)};if(!l&&!u&&(!x||b))return null;let P;if(i)P=i;else if(r){const I=Tp(r);P=I&&rO(I)?St(I).body:St(null).body}const j=!u&&l&&(!x||b)?"none":void 0,N=x?{in:u,onEnter:R,onExited:T}:void 0;return d.jsx(_w,{disablePortal:s,container:P,children:d.jsx(aO,S({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:x?!b:u,placement:f,popperOptions:h,popperRef:w,slotProps:C,slots:v},m,{style:S({position:"fixed",top:0,left:0,display:j},y),TransitionProps:N,children:o}))})});function lO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=To();p.useEffect(()=>{if(!o)return;function v(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(r==null||r(m,"escapeKeyDown"))}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const s=Yt((v,m)=>{r==null||r(v,m)}),l=Yt(v=>{!r||v==null||a.start(v,()=>{s(null,"timeout")})});p.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=v=>{r==null||r(v,"clickaway")},u=a.clear,f=p.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=v=>m=>{const b=v.onBlur;b==null||b(m),f()},w=v=>m=>{const b=v.onFocus;b==null||b(m),u()},y=v=>m=>{const b=v.onMouseEnter;b==null||b(m),u()},x=v=>m=>{const b=v.onMouseLeave;b==null||b(m),f()};return p.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(v={})=>{const m=S({},Tc(e),Tc(v));return S({role:"presentation"},v,m,{onBlur:h(m),onFocus:w(m),onMouseEnter:y(m),onMouseLeave:x(m)})},onClickAway:c}}const cO=["onChange","maxRows","minRows","style","value"];function ml(e){return parseInt(e,10)||0}const uO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dO(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const fO=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=se(t,cO),{current:c}=p.useRef(s!=null),u=p.useRef(null),f=lt(n,u),h=p.useRef(null),w=p.useCallback(()=>{const C=u.current,m=Bn(C).getComputedStyle(C);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=h.current;b.style.width=m.width,b.value=C.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const k=m.boxSizing,R=ml(m.paddingBottom)+ml(m.paddingTop),T=ml(m.borderBottomWidth)+ml(m.borderTopWidth),P=b.scrollHeight;b.value="x";const j=b.scrollHeight;let N=P;i&&(N=Math.max(Number(i)*j,N)),o&&(N=Math.min(Number(o)*j,N)),N=Math.max(N,j);const I=N+(k==="border-box"?R+T:0),F=Math.abs(N-P)<=1;return{outerHeightStyle:I,overflowing:F}},[o,i,t.placeholder]),y=p.useCallback(()=>{const C=w();if(dO(C))return;const v=u.current;v.style.height=`${C.outerHeightStyle}px`,v.style.overflow=C.overflowing?"hidden":""},[w]);Sn(()=>{const C=()=>{y()};let v;const m=ea(C),b=u.current,k=Bn(b);k.addEventListener("resize",m);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe(b)),()=>{m.clear(),cancelAnimationFrame(v),k.removeEventListener("resize",m),R&&R.disconnect()}},[w,y]),Sn(()=>{y()});const x=C=>{c||y(),r&&r(C)};return d.jsxs(p.Fragment,{children:[d.jsx("textarea",S({value:s,onChange:x,ref:f,rows:i,style:a},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},uO.shadow,a,{paddingTop:0,paddingBottom:0})})]})});var wm={};Object.defineProperty(wm,"__esModule",{value:!0});var Vw=wm.default=void 0,pO=mO(p),hO=Rw;function qw(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(qw=function(r){return r?n:t})(e)}function mO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=qw(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function gO(e){return Object.keys(e).length===0}function vO(e=null){const t=pO.useContext(hO.ThemeContext);return!t||gO(t)?e:t}Vw=wm.default=vO;const yO=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xO=ie(sO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gw=p.forwardRef(function(t,n){var r;const o=Vw(),i=ke({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m,slots:b,slotProps:k}=i,R=se(i,yO),T=(r=b==null?void 0:b.root)!=null?r:l==null?void 0:l.Root,P=S({anchorEl:a,container:u,disablePortal:f,keepMounted:h,modifiers:w,open:y,placement:x,popperOptions:C,popperRef:v,transition:m},R);return d.jsx(xO,S({as:s,direction:o==null?void 0:o.direction,slots:{root:T},slotProps:k??c},P,{ref:n}))}),bO=Vt(d.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 wO(e){return be("MuiChip",e)}const Be=we("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"]),SO=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],CO=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Z(r)}`,`color${Z(o)}`,s&&"clickable",s&&`clickableColor${Z(o)}`,a&&"deletable",a&&`deletableColor${Z(o)}`,`${l}${Z(o)}`],label:["label",`label${Z(r)}`],avatar:["avatar",`avatar${Z(r)}`,`avatarColor${Z(o)}`],icon:["icon",`icon${Z(r)}`,`iconColor${Z(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Z(r)}`,`deleteIconColor${Z(o)}`,`deleteIcon${Z(l)}Color${Z(o)}`]};return Se(c,wO,t)},kO=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Be.avatar}`]:t.avatar},{[`& .${Be.avatar}`]:t[`avatar${Z(s)}`]},{[`& .${Be.avatar}`]:t[`avatarColor${Z(r)}`]},{[`& .${Be.icon}`]:t.icon},{[`& .${Be.icon}`]:t[`icon${Z(s)}`]},{[`& .${Be.icon}`]:t[`iconColor${Z(o)}`]},{[`& .${Be.deleteIcon}`]:t.deleteIcon},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(s)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIconColor${Z(r)}`]},{[`& .${Be.deleteIcon}`]:t[`deleteIcon${Z(l)}Color${Z(r)}`]},t.root,t[`size${Z(s)}`],t[`color${Z(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Z(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Z(r)}`],t[l],t[`${l}${Z(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({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",[`&.${Be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Be.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Be.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fe(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)`:Fe(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)`:Fe(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&&{[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},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}))`:Fe(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(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, &.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},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]}`,[`&.${Be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Be.avatar}`]:{marginLeft:4},[`& .${Be.avatarSmall}`]:{marginLeft:2},[`& .${Be.icon}`]:{marginLeft:4},[`& .${Be.iconSmall}`]:{marginLeft:2},[`& .${Be.deleteIcon}`]:{marginRight:5},[`& .${Be.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)`:Fe(e.palette[t.color].main,.7)}`,[`&.${Be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fe(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fe(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),RO=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Z(r)}`]]}})(({ownerState:e})=>S({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 J0(e){return e.key==="Backspace"||e.key==="Delete"}const PO=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:w,onDelete:y,onKeyDown:x,onKeyUp:C,size:v="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:k=!1}=r,R=se(r,SO),T=p.useRef(null),P=lt(T,n),j=_=>{_.stopPropagation(),y&&y(_)},N=_=>{_.currentTarget===_.target&&J0(_)&&_.preventDefault(),x&&x(_)},I=_=>{_.currentTarget===_.target&&(y&&J0(_)?y(_):_.key==="Escape"&&T.current&&T.current.blur()),C&&C(_)},F=a!==!1&&w?!0:a,H=F||y?Ir:l||"div",U=S({},r,{component:H,disabled:u,size:v,color:s,iconColor:p.isValidElement(f)&&f.props.color||s,onDelete:!!y,clickable:F,variant:m}),q=CO(U),ee=H===Ir?S({component:l||"div",focusVisibleClassName:q.focusVisible},y&&{disableRipple:!0}):{};let J=null;y&&(J=c&&p.isValidElement(c)?p.cloneElement(c,{className:le(c.props.className,q.deleteIcon),onClick:j}):d.jsx(bO,{className:le(q.deleteIcon),onClick:j}));let re=null;o&&p.isValidElement(o)&&(re=p.cloneElement(o,{className:le(q.avatar,o.props.className)}));let O=null;return f&&p.isValidElement(f)&&(O=p.cloneElement(f,{className:le(q.icon,f.props.className)})),d.jsxs(kO,S({as:H,className:le(q.root,i),disabled:F&&u?!0:void 0,onClick:w,onKeyDown:N,onKeyUp:I,ref:P,tabIndex:k&&u?-1:b,ownerState:U},ee,R,{children:[re||O,d.jsx(RO,{className:le(q.label),ownerState:U,children:h}),J]}))});function vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const ed=p.createContext(void 0);function br(){return p.useContext(ed)}function Kw(e){return d.jsx(e$,S({},e,{defaultTheme:Bu,themeId:Fo}))}function Z0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mc(e,t=!1){return e&&(Z0(e.value)&&e.value!==""||t&&Z0(e.defaultValue)&&e.defaultValue!=="")}function EO(e){return e.startAdornment}function TO(e){return be("MuiInputBase",e)}const Ui=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$O=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],td=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},MO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:w,type:y}=e,x={root:["root",`color${Z(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Z(h)}`,u&&"multiline",w&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Se(x,TO,t)},rd=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:td})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),od=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),jO=d.jsx(Kw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),OO=p.forwardRef(function(t,n){var r;const o=ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:w,endAdornment:y,fullWidth:x=!1,id:C,inputComponent:v="input",inputProps:m={},inputRef:b,maxRows:k,minRows:R,multiline:T=!1,name:P,onBlur:j,onChange:N,onClick:I,onFocus:F,onKeyDown:H,onKeyUp:U,placeholder:q,readOnly:ee,renderSuffix:J,rows:re,slotProps:O={},slots:_={},startAdornment:E,type:g="text",value:$}=o,z=se(o,$O),L=m.value!=null?m.value:$,{current:B}=p.useRef(L!=null),V=p.useRef(),M=p.useCallback(Ee=>{},[]),A=lt(V,b,m.ref,M),[G,Y]=p.useState(!1),K=br(),oe=vo({props:o,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=K?K.focused:G,p.useEffect(()=>{!K&&h&&G&&(Y(!1),j&&j())},[K,h,G,j]);const te=K&&K.onFilled,ne=K&&K.onEmpty,de=p.useCallback(Ee=>{Mc(Ee)?te&&te():ne&&ne()},[te,ne]);Sn(()=>{B&&de({value:L})},[L,de,B]);const Re=Ee=>{if(oe.disabled){Ee.stopPropagation();return}F&&F(Ee),m.onFocus&&m.onFocus(Ee),K&&K.onFocus?K.onFocus(Ee):Y(!0)},W=Ee=>{j&&j(Ee),m.onBlur&&m.onBlur(Ee),K&&K.onBlur?K.onBlur(Ee):Y(!1)},ae=(Ee,...he)=>{if(!B){const Ge=Ee.target||V.current;if(Ge==null)throw new Error(Bo(1));de({value:Ge.value})}m.onChange&&m.onChange(Ee,...he),N&&N(Ee,...he)};p.useEffect(()=>{de(V.current)},[]);const ge=Ee=>{V.current&&Ee.currentTarget===Ee.target&&V.current.focus(),I&&I(Ee)};let D=v,X=m;T&&D==="input"&&(re?X=S({type:void 0,minRows:re,maxRows:re},X):X=S({type:void 0,maxRows:k,minRows:R},X),D=fO);const fe=Ee=>{de(Ee.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};p.useEffect(()=>{K&&K.setAdornedStart(!!E)},[K,E]);const pe=S({},o,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:y,error:oe.error,focused:oe.focused,formControl:K,fullWidth:x,hiddenLabel:oe.hiddenLabel,multiline:T,size:oe.size,startAdornment:E,type:g}),ve=MO(pe),Ce=_.root||c.Root||rd,Le=O.root||u.root||{},De=_.input||c.Input||od;return X=S({},X,(r=O.input)!=null?r:u.input),d.jsxs(p.Fragment,{children:[!w&&jO,d.jsxs(Ce,S({},Le,!Ni(Ce)&&{ownerState:S({},pe,Le.ownerState)},{ref:n,onClick:ge},z,{className:le(ve.root,Le.className,l,ee&&"MuiInputBase-readOnly"),children:[E,d.jsx(ed.Provider,{value:null,children:d.jsx(De,S({ownerState:pe,"aria-invalid":oe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:oe.disabled,id:C,onAnimationStart:fe,name:P,placeholder:q,readOnly:ee,required:oe.required,rows:re,value:L,onKeyDown:H,onKeyUp:U,type:g},X,!Ni(De)&&{as:D,ownerState:S({},pe,X.ownerState)},{ref:A,className:le(ve.input,X.className,ee&&"MuiInputBase-readOnly"),onBlur:W,onChange:ae,onFocus:Re}))}),y,J?J(S({},oe,{startAdornment:E})):null]}))]})}),Sm=OO;function IO(e){return be("MuiInput",e)}const xa=S({},Ui,we("MuiInput",["root","underline","input"]));function _O(e){return be("MuiOutlinedInput",e)}const Ur=S({},Ui,we("MuiOutlinedInput",["root","notchedOutline","input"]));function LO(e){return be("MuiFilledInput",e)}const xo=S({},Ui,we("MuiFilledInput",["root","underline","input"])),AO=Vt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),NO=Vt(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function DO(e){return be("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const zO=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],BO=Qu(),FO=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Se({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},DO,t)},UO=ie("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:S({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:S({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WO=ie("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),HO=ie(NO,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function VO({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Er=p.forwardRef(function(t,n){const r=BO({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:w,variant:y="circular"}=r,x=se(r,zO);let C=null;const v=VO(S({},u,{src:h,srcSet:w})),m=h||w,b=m&&v!=="error",k=S({},r,{colorDefault:!b,component:s,variant:y}),R=FO(k),[T,P]=kp("img",{className:R.img,elementType:WO,externalForwardedProps:{slots:l,slotProps:{img:S({},u,c.img)}},additionalProps:{alt:o,src:h,srcSet:w,sizes:f},ownerState:k});return b?C=d.jsx(T,S({},P)):i||i===0?C=i:m&&o?C=o[0]:C=d.jsx(HO,{ownerState:k,className:R.fallback}),d.jsx(UO,S({as:s,ownerState:k,className:le(R.root,a),ref:n},x,{children:C}))}),qO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],GO={entering:{opacity:1},entered:{opacity:1}},Yw=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:w,onExited:y,onExiting:x,style:C,timeout:v=o,TransitionComponent:m=ar}=t,b=se(t,qO),k=p.useRef(null),R=lt(k,s.ref,n),T=q=>ee=>{if(q){const J=k.current;ee===void 0?q(J):q(J,ee)}},P=T(h),j=T((q,ee)=>{pm(q);const J=Ai({style:C,timeout:v,easing:l},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",J),q.style.transition=r.transitions.create("opacity",J),u&&u(q,ee)}),N=T(f),I=T(x),F=T(q=>{const ee=Ai({style:C,timeout:v,easing:l},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",ee),q.style.transition=r.transitions.create("opacity",ee),w&&w(q)}),H=T(y),U=q=>{i&&i(k.current,q)};return d.jsx(m,S({appear:a,in:c,nodeRef:k,onEnter:j,onEntered:N,onEntering:P,onExit:F,onExited:H,onExiting:I,addEndListener:U,timeout:v},b,{children:(q,ee)=>p.cloneElement(s,S({style:S({opacity:0,visibility:q==="exited"&&!c?"hidden":void 0},GO[q],C,s.props.style),ref:R},ee))}))});function KO(e){return be("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const YO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],XO=e=>{const{classes:t,invisible:n}=e;return Se({root:["root",n&&"invisible"]},KO,t)},QO=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Xw=p.forwardRef(function(t,n){var r,o,i;const a=ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:h=!1,open:w,slotProps:y={},slots:x={},TransitionComponent:C=Yw,transitionDuration:v}=a,m=se(a,YO),b=S({},a,{component:c,invisible:h}),k=XO(b),R=(r=y.root)!=null?r:f.root;return d.jsx(C,S({in:w,timeout:v},m,{children:d.jsx(QO,S({"aria-hidden":!0},R,{as:(o=(i=x.root)!=null?i:u.Root)!=null?o:c,className:le(k.root,l,R==null?void 0:R.className),ownerState:S({},b,R==null?void 0:R.ownerState),classes:k,ref:n,children:s}))}))});function JO(e){return be("MuiBadge",e)}const Wr=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ZO=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Qd=10,Jd=4,e3=Qu(),t3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(o)}`,`overlap${Z(o)}`,t!=="default"&&`color${Z(t)}`]};return Se(s,JO,a)},n3=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),r3=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}${Z(n.overlap)}`],n.color!=="default"&&t[`color${Z(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Qd*2,lineHeight:1,padding:"0 6px",height:Qd*2,borderRadius:Qd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Jd,height:Jd*2,minWidth:Jd*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Wr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),o3=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=e3({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:h,components:w={},componentsProps:y={},children:x,overlap:C="rectangular",color:v="default",invisible:m=!1,max:b=99,badgeContent:k,slots:R,slotProps:T,showZero:P=!1,variant:j="standard"}=c,N=se(c,ZO),{badgeContent:I,invisible:F,max:H,displayValue:U}=kM({max:b,invisible:m,badgeContent:k,showZero:P}),q=hw({anchorOrigin:u,color:v,overlap:C,variant:j,badgeContent:k}),ee=F||I==null&&j!=="dot",{color:J=v,overlap:re=C,anchorOrigin:O=u,variant:_=j}=ee?q:c,E=_!=="dot"?U:void 0,g=S({},c,{badgeContent:I,invisible:ee,max:H,displayValue:E,showZero:P,anchorOrigin:O,color:J,overlap:re,variant:_}),$=t3(g),z=(r=(o=R==null?void 0:R.root)!=null?o:w.Root)!=null?r:n3,L=(i=(a=R==null?void 0:R.badge)!=null?a:w.Badge)!=null?i:r3,B=(s=T==null?void 0:T.root)!=null?s:y.root,V=(l=T==null?void 0:T.badge)!=null?l:y.badge,M=fn({elementType:z,externalSlotProps:B,externalForwardedProps:N,additionalProps:{ref:n,as:h},ownerState:g,className:le(B==null?void 0:B.className,$.root,f)}),A=fn({elementType:L,externalSlotProps:V,ownerState:g,className:le($.badge,V==null?void 0:V.className)});return d.jsxs(z,S({},M,{children:[x,d.jsx(L,S({},A,{children:E}))]}))}),i3=we("MuiBox",["root"]),a3=Ns(),at=a$({themeId:Fo,defaultTheme:a3,defaultClassName:i3.root,generateClassName:Zh.generate});function s3(e){return be("MuiButton",e)}const gl=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),l3=p.createContext({}),c3=p.createContext(void 0),u3=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],d3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${Z(t)}`,`size${Z(o)}`,`${i}Size${Z(o)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Z(o)}`],endIcon:["icon","endIcon",`iconSize${Z(o)}`]},l=Se(s,s3,a);return S({},a,l)},Qw=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),f3=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gl.disabled}`]:{boxShadow:"none"}}),p3=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Qw(e))),h3=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Z(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Qw(e))),Rt=p.forwardRef(function(t,n){const r=p.useContext(l3),o=p.useContext(c3),i=nm(r,t),a=ke({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:w=!1,endIcon:y,focusVisibleClassName:x,fullWidth:C=!1,size:v="medium",startIcon:m,type:b,variant:k="text"}=a,R=se(a,u3),T=S({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:w,fullWidth:C,size:v,type:b,variant:k}),P=d3(T),j=m&&d.jsx(p3,{className:P.startIcon,ownerState:T,children:m}),N=y&&d.jsx(h3,{className:P.endIcon,ownerState:T,children:y}),I=o||"";return d.jsxs(f3,S({ownerState:T,className:le(r.className,P.root,u,I),component:c,disabled:f,focusRipple:!w,focusVisibleClassName:le(P.focusVisible,x),ref:n,type:b},R,{classes:P,children:[j,s,N]}))});function m3(e){return be("MuiCard",e)}we("MuiCard",["root"]);const g3=["className","raised"],v3=e=>{const{classes:t}=e;return Se({root:["root"]},m3,t)},y3=ie(En,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),id=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=se(r,g3),s=S({},r,{raised:i}),l=v3(s);return d.jsx(y3,S({className:le(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))});function x3(e){return be("MuiCardContent",e)}we("MuiCardContent",["root"]);const b3=["className","component"],w3=e=>{const{classes:t}=e;return Se({root:["root"]},x3,t)},S3=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cm=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=se(r,b3),s=S({},r,{component:i}),l=w3(s);return d.jsx(S3,S({as:i,className:le(l.root,o),ownerState:s,ref:n},a))});function C3(e){return be("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const k3=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],R3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Z(o)}`],input:["input"]};return Se(i,C3,t)},P3=ie(Ir)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),E3=ie("input",{shouldForwardProp:Ht})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jw=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:h,inputProps:w,inputRef:y,name:x,onBlur:C,onChange:v,onFocus:m,readOnly:b,required:k=!1,tabIndex:R,type:T,value:P}=t,j=se(t,k3),[N,I]=gs({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=br(),H=_=>{m&&m(_),F&&F.onFocus&&F.onFocus(_)},U=_=>{C&&C(_),F&&F.onBlur&&F.onBlur(_)},q=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;I(E),v&&v(_,E)};let ee=l;F&&typeof ee>"u"&&(ee=F.disabled);const J=T==="checkbox"||T==="radio",re=S({},t,{checked:N,disabled:ee,disableFocusRipple:c,edge:u}),O=R3(re);return d.jsxs(P3,S({component:"span",className:le(O.root,a),centerRipple:!0,focusRipple:!c,disabled:ee,tabIndex:null,role:void 0,onFocus:H,onBlur:U,ownerState:re,ref:n},j,{children:[d.jsx(E3,S({autoFocus:r,checked:o,defaultChecked:s,className:O.input,disabled:ee,id:J?h:void 0,name:x,onChange:q,readOnly:b,ref:y,required:k,ownerState:re,tabIndex:R,type:T},T==="checkbox"&&P===void 0?{}:{value:P},w)),N?i:f]}))}),T3=Vt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$3=Vt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),M3=Vt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function j3(e){return be("MuiCheckbox",e)}const Zd=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),O3=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],I3=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(o)}`]},a=Se(i,j3,t);return S({},t,a)},_3=ie(Jw,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zd.checked}, &.${Zd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),L3=d.jsx($3,{}),A3=d.jsx(T3,{}),N3=d.jsx(M3,{}),km=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiCheckbox"}),{checkedIcon:a=L3,color:s="primary",icon:l=A3,indeterminate:c=!1,indeterminateIcon:u=N3,inputProps:f,size:h="medium",className:w}=i,y=se(i,O3),x=c?u:l,C=c?u:a,v=S({},i,{color:s,indeterminate:c,size:h}),m=I3(v);return d.jsx(_3,S({type:"checkbox",inputProps:S({"data-indeterminate":c},f),icon:p.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:v,ref:n,className:le(m.root,w)},y,{classes:m}))});function D3(e){return be("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const z3=["className","color","disableShrink","size","style","thickness","value","variant"];let ad=e=>e,ey,ty,ny,ry;const Hr=44,B3=Qi(ey||(ey=ad` 0% { transform: rotate(0deg); } @@ -174,7 +174,7 @@ Error generating stack: `+i.message+` 100% { transform: rotate(360deg); } -`)),W3=Qi(ty||(ty=sd` +`)),F3=Qi(ty||(ty=ad` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -189,11 +189,11 @@ Error generating stack: `+i.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),H3=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Z(r)}`],svg:["svg"],circle:["circle",`circle${Z(n)}`,o&&"circleDisableShrink"]};return Se(i,B3,t)},V3=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&wu(ny||(ny=sd` +`)),U3=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Z(r)}`],svg:["svg"],circle:["circle",`circle${Z(n)}`,o&&"circleDisableShrink"]};return Se(i,D3,t)},W3=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bu(ny||(ny=ad` animation: ${0} 1.4s linear infinite; - `),U3)),q3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),G3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wu(ry||(ry=sd` + `),B3)),H3=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),V3=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bu(ry||(ry=ad` animation: ${0} 1.4s ease-in-out infinite; - `),W3)),_n=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,F3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=H3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(V3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(q3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(G3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),e2=Z$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),K3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Y3=e=>S({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}}),X3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:K3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},Y3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function km(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Yw,{styles:o=>X3(o,r)}),n]})}function Q3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const J3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Z3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q3,r)},eI=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tI=ie(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=tI,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:O=!1,onBackdropClick:F,open:W,slotProps:U,slots:G}=c,ee=se(c,J3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:R,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:O}),{getRootProps:re,getBackdropProps:I,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=KM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Z3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=G==null?void 0:G.root)!=null?o:v.Root)!=null?r:eI,A=(i=(a=G==null?void 0:G.backdrop)!=null?a:v.Backdrop)!=null?i:u,K=(s=U==null?void 0:U.root)!=null?s:m.root,Y=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,q=fn({elementType:M,externalSlotProps:K,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,K==null?void 0:K.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:Y,additionalProps:f,getSlotProps:te=>I(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(Y==null?void 0:Y.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!O&&!W&&(!z||$)?null:d.jsx(Lw,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},q,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(DM,{disableEnforceFocus:R,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:W,children:p.cloneElement(y,V)})]}))})});function nI(e){return be("MuiDialog",e)}const tf=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),t2=p.createContext({}),rI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oI=ie(Qw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,nI,t)},aI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Mp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:R=En,PaperProps:k={},scroll:T="paper",TransitionComponent:P=Xw,transitionDuration:j=i,TransitionProps:N}=r,O=se(r,rI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),W=iI(F),U=p.useRef(),G=I=>{U.current=I.target===I.currentTarget},ee=I=>{v&&v(I),U.current&&(U.current=null,C&&C(I),m&&m(I,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(aI,S({className:le(W.root,f),closeAfterTransition:!0,components:{Backdrop:oI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},O,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(sI,{className:le(W.container),onMouseDown:G,ownerState:F,children:d.jsx(lI,S({as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},k,{className:le(W.paper,k.className),ownerState:F,children:d.jsx(t2.Provider,{value:re,children:u})}))})}))}))});function cI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const uI=["className","disableSpacing"],dI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},cI,t)},fI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jp=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,uI),s=S({},r,{disableSpacing:i}),l=dI(s);return d.jsx(fI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function pI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function hI(e){return be("MuiDialogTitle",e)}const mI=we("MuiDialogTitle",["root"]),gI=["className","dividers"],vI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},pI,t)},yI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${mI.root} + &`]:{paddingTop:0}})),Op=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,gI),s=S({},r,{dividers:i}),l=vI(s);return d.jsx(yI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function xI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const bI=["children","className"],wI=e=>{const{classes:t}=e,r=Se({root:["root"]},xI,t);return S({},t,r)},SI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,bI),a=wI(i);return d.jsx(SI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),CI=["className","id"],RI=e=>{const{classes:t}=e;return Se({root:["root"]},hI,t)},kI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ip=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,CI),s=r,l=RI(s),{titleId:c=i}=p.useContext(t2);return d.jsx(kI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function PI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],TI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},PI,r)},$I=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),MI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,EI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=TI(x);return d.jsx($I,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(MI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const jI=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function OI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function II(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=II(n),o=OI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _I=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:R=i,TransitionComponent:k=ar}=t,T=se(t,jI),P=p.useRef(null),j=lt(l.ref,P,n),N=I=>_=>{I&&(_===void 0?I(P.current):I(P.current,_))},O=N((I,_)=>{vl(u,I,c),pm(I),w&&w(I,_)}),F=N((I,_)=>{const E=Ai({timeout:R,style:b,easing:f},{mode:"enter"});I.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),I.style.transition=r.transitions.create("transform",S({},E)),I.style.webkitTransform="none",I.style.transform="none",x&&x(I,_)}),W=N(y),U=N(m),G=N(I=>{const _=Ai({timeout:R,style:b,easing:f},{mode:"exit"});I.style.webkitTransition=r.transitions.create("-webkit-transform",_),I.style.transition=r.transitions.create("transform",_),vl(u,I,c),C&&C(I)}),ee=N(I=>{I.style.webkitTransition="",I.style.transition="",v&&v(I)}),J=I=>{a&&a(P.current,I)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const I=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",I),()=>{I.clear(),_.removeEventListener("resize",I)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(k,S({nodeRef:P,onEnter:O,onEntered:W,onEntering:F,onExit:G,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:R},T,{children:(I,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:I==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function LI(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const AI=["BackdropProps"],NI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],r2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},DI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,LI,t)},zI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:r2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r2})({flex:"0 0 auto"}),BI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),o2={left:"right",right:"left",top:"down",bottom:"up"};function FI(e){return["left","right"].indexOf(e)!==-1}function UI({direction:e},t){return e==="rtl"&&FI(t)?o2[t]:t}const WI=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=_I,transitionDuration:b=a,variant:R="temporary"}=r,k=se(r.ModalProps,AI),T=se(r,NI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=UI({direction:i?"rtl":"ltr"},s),O=S({},r,{anchor:s,elevation:f,open:x,variant:R},T),F=DI(O),W=d.jsx(BI,S({elevation:R==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:O,children:c}));if(R==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:W}));const U=d.jsx(m,S({in:x,direction:o2[j],timeout:b,appear:P.current},v,{children:W}));return R==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:O,ref:n},T,{children:U})):d.jsx(zI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:O,onClose:y,hideBackdrop:h,ref:n},T,k,{children:U}))}),HI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},NO,t);return S({},t,o)},qI=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),GI=ie(id,{name:"MuiFilledInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,HI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=VI(s),b={root:{ownerState:v},input:{ownerState:v}},R=w??c?Qt(b,w??c):b,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:qI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:GI;return d.jsx(Sm,S({slots:{root:k,input:T},componentsProps:R,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function KI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const YI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,KI,t)},QI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ld=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,YI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=XI(m),[R,k]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{if(!Fa(G,["Input","Select"]))return;const ee=Fa(G,["Select"])?G.props.input:G;ee&&$O(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,G=>{Fa(G,["Input","Select"])&&(Mc(G.props,!0)||Mc(G.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const O=u!==void 0&&!l?u:j;let F;const W=p.useMemo(()=>({adornedStart:R,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:O,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[R,a,l,c,T,O,f,h,F,y,x,C]);return d.jsx(td.Provider,{value:W,children:d.jsx(QI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),JI=s4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function ZI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e_=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t_=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,ZI,t)},n_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),r_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,e_),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const R=vo({props:i,muiFormControl:C,states:["error"]}),k=S({},i,{disabled:v,labelPlacement:h,required:m,error:R.error}),T=t_(k),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(n_,S({className:le(T.root,a),ownerState:k,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(JI,{display:"block",children:[j,d.jsxs(r_,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function o_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const i_=["className","row"],a_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},o_,t)},s_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),i2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,i_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=a_(c);return d.jsx(s_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function l_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const c_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],u_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,l_,t)},d_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),f_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,c_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=u_(u);return d.jsx(d_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function p_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),h_=["children","className","color","component","disabled","error","filled","focused","required"],m_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,p_,t)},g_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),v_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),y_=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,h_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=m_(u);return d.jsxs(g_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(v_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),x_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return`scale(${e}, ${e**2})`}const b_={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},nf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,x_),m=To(),b=p.useRef(),R=mo(),k=p.useRef(null),T=lt(k,i.ref,n),P=ee=>J=>{if(ee){const re=k.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:I,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[R.transitions.create("opacity",{duration:E,delay:I}),R.transitions.create("transform",{duration:nf?E:E*.666,delay:I,easing:_})].join(","),l&&l(ee,J)}),O=P(c),F=P(w),W=P(ee=>{const{duration:J,delay:re,easing:I}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=R.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[R.transitions.create("opacity",{duration:_,delay:re}),R.transitions.create("transform",{duration:nf?_:_*.666,delay:nf?re:re||_*.333,easing:I})].join(","),ee.style.opacity=0,ee.style.transform=_p(.75),f&&f(ee)}),U=P(h),G=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(k.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:k,onEnter:N,onEntered:O,onEntering:j,onExit:W,onExited:U,onExiting:F,addEndListener:G,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:_p(.75),visibility:ee==="exited"&&!s?"hidden":void 0},b_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const w_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],S_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},C_=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nd(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),R_=ie(id,{name:"MuiInput",slot:"Input",overridesResolver:rd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,w_),m=S_(s),R={root:{ownerState:{disableUnderline:l}}},k=y??u?Qt(y??u,R):R,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:C_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:R_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:k,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function k_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const P_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],E_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},T_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,k_,t)},$_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:E_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,P_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=T_(y);return d.jsx(td.Provider,{value:null,children:d.jsx($_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function M_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j_=["disableAnimation","margin","shrink","variant","className"],O_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,M_,t);return S({},t,c)},I_=ie(y_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cd=p.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,j_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=O_(f);return d.jsx(I_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function __(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const L_=["children","className","component","dense","disablePadding","subheader"],A_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},N_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,L_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=A_(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(N_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function D_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),z_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function B_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const F_=["className"],U_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},B_,n)},W_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,F_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=U_(s);return d.jsx(W_,S({className:le(l.root,o),ownerState:s,ref:n},i))});a2.muiName="ListItemSecondaryAction";const H_=["className"],V_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],q_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},G_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},D_,r)},K_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:q_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${z_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Y_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:R,selected:k=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,H_),N=se(r,V_),O=p.useContext(gr),F=p.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),W=p.useRef(null);Sn(()=>{i&&W.current&&W.current.focus()},[i]);const U=p.Children.toArray(s),G=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:G,selected:k}),J=G_(ee),re=lt(W,n),I=P.root||u.Root||K_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),G?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(Y_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(I,S({},_,!Ni(I)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(I,S({},_,{as:g,ref:re},!Ni(I)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,R&&d.jsx(a2,{children:R})]}))})});function X_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Q_=["className"],J_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},X_,n)},Z_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),eL=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Q_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=J_(s);return d.jsx(Z_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function tL(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nL=["className"],rL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tL,n)},oL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,nL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=rL(s);return d.jsx(oL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function iL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iL,t)},lL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,aL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=sL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(lL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),cL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function s2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!s2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,cL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:R})=>{const k=!w.current.style.width;if(b.clientHeight{const R=w.current,k=b.key,T=St(R).activeElement;if(k==="ArrowDown")b.preventDefault(),ba(R,T,c,l,rf);else if(k==="ArrowUp")b.preventDefault(),ba(R,T,c,l,fy);else if(k==="Home")b.preventDefault(),ba(R,null,c,l,rf);else if(k==="End")b.preventDefault(),ba(R,null,c,l,fy);else if(k.length===1){const P=y.current,j=k.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const O=T&&!P.repeating&&s2(T,P);P.previousKeyMatched&&(O||ba(R,T,!1,l,rf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,R)=>{if(!p.isValidElement(b)){v===R&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=R),v===R&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,R)=>{if(R===v){const k={};return i&&(k.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),p.cloneElement(b,k)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function dL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const fL=["onEntering"],pL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function of(e){return typeof e=="function"?e():e}const mL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},dL,t)},gL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vL=p.forwardRef(function(t,n){var r,o,i;const a=Re({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:R,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,O=se(a.TransitionProps,fL),F=se(a,pL),W=(r=R==null?void 0:R.paper)!=null?r:m,U=p.useRef(),G=lt(U,W.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:W,transformOrigin:k,TransitionComponent:T,transitionDuration:P,TransitionProps:O}),J=mL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=of(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=p.useCallback(te=>({vertical:py(te,k.vertical),horizontal:hy(te,k.horizontal)}),[k.horizontal,k.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=I(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const ke=re();let H=ke.top-de.vertical,ae=ke.left-de.horizontal;const ge=H+ne.height,D=ae+ne.width,X=Bn(of(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Hfe){const ve=ge-fe;H-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(H)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,I,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(of(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:gL,A=(i=b==null?void 0:b.paper)!=null?i:l2,K=fn({elementType:A,externalSlotProps:S({},W,{style:E?W.style:S({},W.style,{opacity:0})}),additionalProps:{elevation:x,ref:G},ownerState:ee,className:le(J.paper,W==null?void 0:W.className)}),Y=fn({elementType:M,externalSlotProps:(R==null?void 0:R.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:q}=Y,oe=se(Y,hL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:q,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},O,{children:d.jsx(A,S({},K,{children:h}))}))}))});function yL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const xL=["onEntering"],bL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wL={vertical:"top",horizontal:"right"},SL={vertical:"top",horizontal:"left"},CL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},yL,t)},RL=ie(vL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kL=ie(l2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PL=ie(uL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c2=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,R=se(i.TransitionProps,xL),k=se(i,bL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:R,variant:v}),j=CL(P),N=a&&!c&&h,O=p.useRef(null),F=(I,_)=>{O.current&&O.current.adjustStyleForScrollbar(I,{direction:T?"rtl":"ltr"}),C&&C(I,_)},W=I=>{I.key==="Tab"&&(I.preventDefault(),f&&f(I,"tabKeyDown"))};let U=-1;p.Children.map(s,(I,_)=>{p.isValidElement(I)&&(I.props.disabled||(v==="selectedMenu"&&I.props.selected||U===-1)&&(U=_))});const G=(r=m.paper)!=null?r:kL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:G,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(RL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wL:SL,slots:{paper:G,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},R),ownerState:P},k,{classes:y,children:d.jsx(PL,S({onKeyDown:W,actions:O,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function EL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),TL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$L=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ML=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},EL,a);return S({},a,l)},jL=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$L})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,TL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=ML(r),b=lt(C,n);let R;return r.disabled||(R=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx(jL,S({ref:b,role:u,tabIndex:R,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function OL(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),IL=["className","disabled","error","IconComponent","inputRef","variant"],_L=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,OL,t)},u2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(u2),d2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AL=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),NL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,IL),u=S({},t,{disabled:o,variant:l,error:i}),f=_L(u);return d.jsxs(p.Fragment,{children:[d.jsx(LL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(AL,{as:a,ownerState:u,className:f.icon})]})});var gy;const DL=["children","classes","className","label","notched"],zL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function FL(e){const{className:t,label:n,notched:r}=e,o=se(e,DL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(zL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(BL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const UL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AO,t);return S({},t,r)},HL=ie(od,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),VL=ie(FL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),qL=ie(id,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,UL),m=WL(l),b=br(),R=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:b,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:w,size:R.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:HL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:qL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(VL,{ownerState:k,className:m.notchedOutline,label:h!=null&&h!==""&&R.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function GL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const KL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],YL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(u2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(d2),QL=ie("input",{shouldForwardProp:e=>Tw(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function JL(e){return e==null||typeof e=="string"&&!e.trim()}const ZL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,GL,t)},eA=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:R,onBlur:k,onChange:T,onClose:P,onFocus:j,onOpen:N,open:O,readOnly:F,renderValue:W,SelectDisplayProps:U={},tabIndex:G,value:ee,variant:J="standard"}=t,re=se(t,KL),[I,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:O,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(O!=null),[M,A]=p.useState(),K=lt(n,C),Y=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),q=L==null?void 0:L.parentNode;p.useImperativeHandle(K,()=>({focus:()=>{z.current.focus()},node:$.current,value:I}),[I]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:q.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:q.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),ke=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},H=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(I)?I.slice():[];const me=I.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),I!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:R}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&k&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:I,name:R}}),k(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:I})||w)&&(W?X=W(I):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(I))throw new Error(Bo(2));Pe=I.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(I,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:H(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},oA=ie($m,Om)(""),iA=ie(jm,Om)(""),aA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=DO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,tA),O=m?NL:eA,F=br(),W=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=W.variant||j,G=S({},r,{variant:U,classes:a}),ee=rA(G),J=se(ee,nA),re=h||{standard:d.jsx(oA,{ownerState:G}),outlined:d.jsx(iA,{label:y,ownerState:G}),filled:d.jsx(aA,{ownerState:G})}[U],I=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:O,inputProps:S({children:i,error:W.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:R,open:k,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:I,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function sA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const lA=["action","className","message","role"],cA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},sA,t)},uA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=d4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),dA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),fA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,lA),c=r,u=cA(c);return d.jsxs(uA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(dA,{className:u.message,ownerState:c,children:a}),o?d.jsx(fA,{className:u.action,ownerState:c,children:o}):null]}))});function hA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mA=["onEnter","onExited"],gA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,hA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:R}={}}=r,k=se(r.TransitionProps,mA),T=se(r,gA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=vA(P),{getRootProps:N,onClickAway:O}=uO(S({},P)),[F,W]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),G=J=>{W(!0),R&&R(J)},ee=(J,re)=>{W(!1),b&&b(J,re)};return!C&&F?null:d.jsx(jM,S({onClickAway:O},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:G},k,{children:u||d.jsx(pA,S({message:x,action:a},w))}))}))}))});function yA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),xA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bA(e){return Math.round(e*1e5)/1e5}const wA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,yA,t)},SA=ie(Kw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),CA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),RA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,R,k;const T=Re({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:O={},describeChild:F=!1,disableFocusListener:W=!1,disableHoverListener:U=!1,disableInteractive:G=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:I=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:K={},slots:Y={},title:q,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,xA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),ke=mo(),H=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=G||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(ke.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(I,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},dd=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!q&&q!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof q=="string";F?(tt.title=!Ge&&en&&!U?q:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?q:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=dd),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),W||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:H,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=wA(qt),Ko=(r=(o=Y.popper)!=null?o:N.Popper)!=null?r:SA,aa=(i=(a=(s=Y.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=Y.tooltip)!=null?c:N.Tooltip)!=null?l:CA,Vs=(u=(f=Y.arrow)!=null?f:N.Arrow)!=null?u:RA,q2=vi(Ko,S({},A,(h=K.popper)!=null?h:O.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=K.popper)!=null?y:O.popper)==null?void 0:w.className)}),qt),G2=vi(aa,S({},te,(x=K.transition)!=null?x:O.transition),qt),K2=vi(Hs,S({},(C=K.tooltip)!=null?C:O.tooltip,{className:le(Gn.tooltip,(v=(m=K.tooltip)!=null?m:O.tooltip)==null?void 0:v.className)}),qt),Y2=vi(Vs,S({},(b=K.arrow)!=null?b:O.arrow,{className:le(Gn.arrow,(R=(k=K.arrow)!=null?k:O.arrow)==null?void 0:R.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Kw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,q2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:ke.transitions.duration.shorter},Ne,G2,{children:d.jsxs(Hs,S({},K2,{children:[q,P?d.jsx(Vs,S({},Y2,{ref:X})):null]}))}))}))]})});function kA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PA=["className","color","edge","size","sx"],EA=Ju(),TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,kA,t);return S({},t,l)},$A=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),MA=ie(Zw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?kc(e.palette[t].main,.62):Rc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),jA=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),IA=p.forwardRef(function(t,n){const r=EA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,PA),u=S({},r,{color:i,edge:a,size:s}),f=TA(u),h=d.jsx(OA,{className:f.thumb,ownerState:u});return d.jsxs($A,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(MA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx(jA,{className:f.track,ownerState:u})]})});function _A(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),LA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,_A,t)},NA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,R=se(r,LA),k=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=AA(k),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=O=>{!x&&h&&h(O,m),w&&w(O)},N=O=>{C&&!x&&h&&h(O,m),y&&y(O)};return d.jsxs(NA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:k,tabIndex:x?0:-1},R,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function DA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const zA=["className","component","disableGutters","variant"],BA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},DA,t)},FA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UA=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,zA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=BA(c);return d.jsx(FA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),WA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),HA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qA(e,t,n,r={},o=()=>{}){const{ease:i=VA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const GA=["onChange"],KA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function YA(e){const{onChange:t}=e,n=se(e,GA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:KA,ref:o},n))}function XA(e){return be("MuiTabScrollButton",e)}const QA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JA=["className","slots","slotProps","direction","orientation","disabled"],ZA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},XA,t)},eN=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${QA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),tN=p.forwardRef(function(t,n){var r,o;const i=Re({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,JA),f=As(),h=S({isRtl:f},i),w=ZA(h),y=(r=s.StartScrollButtonIcon)!=null?r:WA,x=(o=s.EndScrollButtonIcon)!=null?o:HA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(eN,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function nN(e){return be("MuiTabs",e)}const af=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},oN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nN,l)},iN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.scrollButtons}`]:t.scrollButtons},{[`& .${af.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${af.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),lN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),cN=ie(YA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},f2=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=tN,scrollButtons:m="auto",selectionFollowsFocus:b,slots:R={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:O="standard",visibleScrollbar:F=!1}=r,W=se(r,rN),U=O==="scrollable",G=C==="vertical",ee=G?"scrollTop":"scrollLeft",J=G?"top":"left",re=G?"bottom":"right",I=G?"clientHeight":"clientWidth",_=G?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:G,scrollButtons:m,textColor:j,variant:O,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!G,scrollableY:U&&G,centered:c&&!U,scrollButtonsHideMobile:!w}),g=oN(E),$=fn({elementType:R.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:E}),z=fn({elementType:R.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,K]=p.useState(!1),[Y,q]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,H=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=H.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:B$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[ke.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(G)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?qA(ee,H.current,ue,{duration:o.transitions.duration.standard}):H.current[ee]=ue},fe=ue=>{let me=H.current[ee];G?me+=ue:(me+=ue*(i?-1:1),me*=i&&hw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=H.current[I];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[I]>ue){Ae===0&&(me=ue);break}me+=Qe[I]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(cN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||Y)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!Y},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{H.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(H.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:H.current,threshold:.99},Ct=zr=>{K(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{q(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(lN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;ke.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:O==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(iN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},W,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(aN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[G?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:H,children:[d.jsx(sN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function uN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const dN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fN={standard:$m,filled:Em,outlined:jm},pN=e=>{const{classes:t}=e;return Se({root:["root"]},uN,t)},hN=ie(ld,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:R,maxRows:k,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:O,onFocus:F,placeholder:W,required:U=!1,rows:G,select:ee=!1,SelectProps:J,type:re,value:I,variant:_="outlined"}=r,E=se(r,dN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=pN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=R),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=R&&L?`${L}-label`:void 0,M=fN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:G,maxRows:k,minRows:T,type:re,value:I,id:L,inputRef:b,onBlur:N,onChange:O,onFocus:F,placeholder:W,inputProps:v},z,m));return d.jsxs(hN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[R!=null&&R!==""&&d.jsx(cd,S({htmlFor:L,id:V},C,{children:R})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:I,input:A},J,{children:a})):A,y&&d.jsx(f_,S({id:B},h,{children:y}))]}))});var Im={},sf={};const mN=Lr(v5);var Ry;function je(){return Ry||(Ry=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mN}(sf)),sf}var gN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,vN=gN(je()),yN=d;ra=Im.default=(0,vN.default)((0,yN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},xN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,bN=xN(je()),wN=d;Lm=_m.default=(0,bN.default)((0,wN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},SN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,CN=SN(je()),RN=d;Nm=Am.default=(0,CN.default)((0,RN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},kN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var ud=Dm.default=void 0,PN=kN(je()),EN=d;ud=Dm.default=(0,PN.default)((0,EN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},TN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,$N=TN(je()),MN=d;_c=zm.default=(0,$N.default)((0,MN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},jN=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,ON=jN(je()),IN=d;Lc=Bm.default=(0,ON.default)((0,IN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},_N=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,LN=_N(je()),AN=d;Um=Fm.default=(0,LN.default)((0,AN.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var p2={exports:{}};(function(e){/** + `),F3)),_n=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=r,h=se(r,z3),w=S({},r,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f}),y=U3(w),x={},C={},v={};if(f==="determinate"){const m=2*Math.PI*((Hr-c)/2);x.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*m).toFixed(3)}px`,C.transform="rotate(-90deg)"}return d.jsx(W3,S({className:le(y.root,o),style:S({width:s,height:s},C,l),ownerState:w,ref:n,role:"progressbar"},v,h,{children:d.jsx(H3,{className:y.svg,ownerState:w,viewBox:`${Hr/2} ${Hr/2} ${Hr} ${Hr}`,children:d.jsx(V3,{className:y.circle,style:x,ownerState:w,cx:Hr,cy:Hr,r:(Hr-c)/2,fill:"none",strokeWidth:c})})}))}),Zw=Q$({createStyledComponent:ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ke({props:e,name:"MuiContainer"})}),q3=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),G3=e=>S({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}}),K3=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let o=S({html:q3(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},G3(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function Rm(e){const t=ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(p.Fragment,{children:[d.jsx(Kw,{styles:o=>K3(o,r)}),n]})}function Y3(e){return be("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const X3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Q3=e=>{const{open:t,exited:n,classes:r}=e;return Se({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Y3,r)},J3=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Z3=ie(Xw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pm=p.forwardRef(function(t,n){var r,o,i,a,s,l;const c=ke({name:"MuiModal",props:t}),{BackdropComponent:u=Z3,BackdropProps:f,className:h,closeAfterTransition:w=!1,children:y,container:x,component:C,components:v={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:R=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:j=!1,hideBackdrop:N=!1,keepMounted:I=!1,onBackdropClick:F,open:H,slotProps:U,slots:q}=c,ee=se(c,X3),J=S({},c,{closeAfterTransition:w,disableAutoFocus:b,disableEnforceFocus:k,disableEscapeKeyDown:R,disablePortal:T,disableRestoreFocus:P,disableScrollLock:j,hideBackdrop:N,keepMounted:I}),{getRootProps:re,getBackdropProps:O,getTransitionProps:_,portalRef:E,isTopModal:g,exited:$,hasTransition:z}=qM(S({},J,{rootRef:n})),L=S({},J,{exited:$}),B=Q3(L),V={};if(y.props.tabIndex===void 0&&(V.tabIndex="-1"),z){const{onEnter:te,onExited:ne}=_();V.onEnter=te,V.onExited=ne}const M=(r=(o=q==null?void 0:q.root)!=null?o:v.Root)!=null?r:J3,A=(i=(a=q==null?void 0:q.backdrop)!=null?a:v.Backdrop)!=null?i:u,G=(s=U==null?void 0:U.root)!=null?s:m.root,Y=(l=U==null?void 0:U.backdrop)!=null?l:m.backdrop,K=fn({elementType:M,externalSlotProps:G,externalForwardedProps:ee,getSlotProps:re,additionalProps:{ref:n,as:C},ownerState:L,className:le(h,G==null?void 0:G.className,B==null?void 0:B.root,!L.open&&L.exited&&(B==null?void 0:B.hidden))}),oe=fn({elementType:A,externalSlotProps:Y,additionalProps:f,getSlotProps:te=>O(S({},te,{onClick:ne=>{F&&F(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:le(Y==null?void 0:Y.className,f==null?void 0:f.className,B==null?void 0:B.backdrop),ownerState:L});return!I&&!H&&(!z||$)?null:d.jsx(_w,{ref:E,container:x,disablePortal:T,children:d.jsxs(M,S({},K,{children:[!N&&u?d.jsx(A,S({},oe)):null,d.jsx(AM,{disableEnforceFocus:k,disableAutoFocus:b,disableRestoreFocus:P,isEnabled:g,open:H,children:p.cloneElement(y,V)})]}))})});function eI(e){return be("MuiDialog",e)}const ef=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),e2=p.createContext({}),tI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],nI=ie(Xw,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Se(a,eI,t)},oI=ie(Pm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),iI=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),aI=ie(En,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ef.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ef.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ef.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),$p=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialog"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:h=!1,fullScreen:w=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:C,onClick:v,onClose:m,open:b,PaperComponent:k=En,PaperProps:R={},scroll:T="paper",TransitionComponent:P=Yw,transitionDuration:j=i,TransitionProps:N}=r,I=se(r,tI),F=S({},r,{disableEscapeKeyDown:h,fullScreen:w,fullWidth:y,maxWidth:x,scroll:T}),H=rI(F),U=p.useRef(),q=O=>{U.current=O.target===O.currentTarget},ee=O=>{v&&v(O),U.current&&(U.current=null,C&&C(O),m&&m(O,"backdropClick"))},J=_s(s),re=p.useMemo(()=>({titleId:J}),[J]);return d.jsx(oI,S({className:le(H.root,f),closeAfterTransition:!0,components:{Backdrop:nI},componentsProps:{backdrop:S({transitionDuration:j,as:l},c)},disableEscapeKeyDown:h,onClose:m,open:b,ref:n,onClick:ee,ownerState:F},I,{children:d.jsx(P,S({appear:!0,in:b,timeout:j,role:"presentation"},N,{children:d.jsx(iI,{className:le(H.container),onMouseDown:q,ownerState:F,children:d.jsx(aI,S({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":J},R,{className:le(H.paper,R.className),ownerState:F,children:d.jsx(e2.Provider,{value:re,children:u})}))})}))}))});function sI(e){return be("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const lI=["className","disableSpacing"],cI=e=>{const{classes:t,disableSpacing:n}=e;return Se({root:["root",!n&&"spacing"]},sI,t)},uI=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Mp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=se(r,lI),s=S({},r,{disableSpacing:i}),l=cI(s);return d.jsx(uI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function dI(e){return be("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function fI(e){return be("MuiDialogTitle",e)}const pI=we("MuiDialogTitle",["root"]),hI=["className","dividers"],mI=e=>{const{classes:t,dividers:n}=e;return Se({root:["root",n&&"dividers"]},dI,t)},gI=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${pI.root} + &`]:{paddingTop:0}})),jp=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=se(r,hI),s=S({},r,{dividers:i}),l=mI(s);return d.jsx(gI,S({className:le(l.root,o),ownerState:s,ref:n},a))});function vI(e){return be("MuiDialogContentText",e)}we("MuiDialogContentText",["root"]);const yI=["children","className"],xI=e=>{const{classes:t}=e,r=Se({root:["root"]},vI,t);return S({},t,r)},bI=ie(Ie,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=se(r,yI),a=xI(i);return d.jsx(bI,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:le(a.root,o)},r,{classes:a}))}),wI=["className","id"],SI=e=>{const{classes:t}=e;return Se({root:["root"]},fI,t)},CI=ie(Ie,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Op=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=se(r,wI),s=r,l=SI(s),{titleId:c=i}=p.useContext(e2);return d.jsx(CI,S({component:"h2",className:le(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c},a))});function kI(e){return be("MuiDivider",e)}const oy=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),RI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],PI=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Se({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},kI,r)},EI=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fe(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),TI=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),xs=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:h="center",variant:w="fullWidth"}=r,y=se(r,RI),x=S({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:h,variant:w}),C=PI(x);return d.jsx(EI,S({as:s,className:le(C.root,a),role:f,ref:n,ownerState:x},y,{children:i?d.jsx(TI,{className:C.wrapper,ownerState:x,children:i}):null}))});xs.muiSkipListHighlight=!0;const $I=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MI(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function jI(e){return typeof e=="function"?e():e}function vl(e,t,n){const r=jI(n),o=MI(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const OI=p.forwardRef(function(t,n){const r=mo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:w,onEntered:y,onEntering:x,onExit:C,onExited:v,onExiting:m,style:b,timeout:k=i,TransitionComponent:R=ar}=t,T=se(t,$I),P=p.useRef(null),j=lt(l.ref,P,n),N=O=>_=>{O&&(_===void 0?O(P.current):O(P.current,_))},I=N((O,_)=>{vl(u,O,c),pm(O),w&&w(O,_)}),F=N((O,_)=>{const E=Ai({timeout:k,style:b,easing:f},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",S({},E)),O.style.transition=r.transitions.create("transform",S({},E)),O.style.webkitTransform="none",O.style.transform="none",x&&x(O,_)}),H=N(y),U=N(m),q=N(O=>{const _=Ai({timeout:k,style:b,easing:f},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",_),O.style.transition=r.transitions.create("transform",_),vl(u,O,c),C&&C(O)}),ee=N(O=>{O.style.webkitTransition="",O.style.transition="",v&&v(O)}),J=O=>{a&&a(P.current,O)},re=p.useCallback(()=>{P.current&&vl(u,P.current,c)},[u,c]);return p.useEffect(()=>{if(h||u==="down"||u==="right")return;const O=ea(()=>{P.current&&vl(u,P.current,c)}),_=Bn(P.current);return _.addEventListener("resize",O),()=>{O.clear(),_.removeEventListener("resize",O)}},[u,h,c]),p.useEffect(()=>{h||re()},[h,re]),d.jsx(R,S({nodeRef:P,onEnter:I,onEntered:H,onEntering:F,onExit:q,onExited:ee,onExiting:U,addEndListener:J,appear:s,in:h,timeout:k},T,{children:(O,_)=>p.cloneElement(l,S({ref:j,style:S({visibility:O==="exited"&&!h?"hidden":void 0},b,l.props.style)},_))}))});function II(e){return be("MuiDrawer",e)}we("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _I=["BackdropProps"],LI=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],n2=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},AI=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Z(n)}`,r!=="temporary"&&`paperAnchorDocked${Z(n)}`]};return Se(o,II,t)},NI=ie(Pm,{name:"MuiDrawer",slot:"Root",overridesResolver:n2})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),iy=ie("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:n2})({flex:"0 0 auto"}),DI=ie(En,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Z(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Z(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),r2={left:"right",right:"left",top:"down",bottom:"up"};function zI(e){return["left","right"].indexOf(e)!==-1}function BI({direction:e},t){return e==="rtl"&&zI(t)?r2[t]:t}const FI=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiDrawer"}),o=mo(),i=As(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:w}={},onClose:y,open:x=!1,PaperProps:C={},SlideProps:v,TransitionComponent:m=OI,transitionDuration:b=a,variant:k="temporary"}=r,R=se(r.ModalProps,_I),T=se(r,LI),P=p.useRef(!1);p.useEffect(()=>{P.current=!0},[]);const j=BI({direction:i?"rtl":"ltr"},s),I=S({},r,{anchor:s,elevation:f,open:x,variant:k},T),F=AI(I),H=d.jsx(DI,S({elevation:k==="temporary"?f:0,square:!0},C,{className:le(F.paper,C.className),ownerState:I,children:c}));if(k==="permanent")return d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:I,ref:n},T,{children:H}));const U=d.jsx(m,S({in:x,direction:r2[j],timeout:b,appear:P.current},v,{children:H}));return k==="persistent"?d.jsx(iy,S({className:le(F.root,F.docked,u),ownerState:I,ref:n},T,{children:U})):d.jsx(NI,S({BackdropProps:S({},l,w,{transitionDuration:b}),className:le(F.root,F.modal,u),open:x,ownerState:I,onClose:y,hideBackdrop:h,ref:n},T,R,{children:U}))}),UI=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],WI=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},LO,t);return S({},t,o)},HI=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),VI=ie(od,{name:"MuiFilledInput",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Em=p.forwardRef(function(t,n){var r,o,i,a;const s=ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:h=!1,slotProps:w,slots:y={},type:x="text"}=s,C=se(s,UI),v=S({},s,{fullWidth:u,inputComponent:f,multiline:h,type:x}),m=WI(s),b={root:{ownerState:v},input:{ownerState:v}},k=w??c?Qt(b,w??c):b,R=(r=(o=y.root)!=null?o:l.Root)!=null?r:HI,T=(i=(a=y.input)!=null?a:l.Input)!=null?i:VI;return d.jsx(Sm,S({slots:{root:R,input:T},componentsProps:k,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:x},C,{classes:m}))});Em.muiName="Input";function qI(e){return be("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GI=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KI=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return Se(o,qI,t)},YI=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Z(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),sd=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:w="none",required:y=!1,size:x="medium",variant:C="outlined"}=r,v=se(r,GI),m=S({},r,{color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:w,required:y,size:x,variant:C}),b=KI(m),[k,R]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,q=>{if(!Fa(q,["Input","Select"]))return;const ee=Fa(q,["Select"])?q.props.input:q;ee&&EO(ee.props)&&(U=!0)}),U}),[T,P]=p.useState(()=>{let U=!1;return o&&p.Children.forEach(o,q=>{Fa(q,["Input","Select"])&&(Mc(q.props,!0)||Mc(q.props.inputProps,!0))&&(U=!0)}),U}),[j,N]=p.useState(!1);l&&j&&N(!1);const I=u!==void 0&&!l?u:j;let F;const H=p.useMemo(()=>({adornedStart:k,setAdornedStart:R,color:a,disabled:l,error:c,filled:T,focused:I,fullWidth:f,hiddenLabel:h,size:x,onBlur:()=>{N(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{N(!0)},registerEffect:F,required:y,variant:C}),[k,a,l,c,T,I,f,h,F,y,x,C]);return d.jsx(ed.Provider,{value:H,children:d.jsx(YI,S({as:s,ownerState:m,className:le(b.root,i),ref:n},v,{children:o}))})}),XI=i4({createStyledComponent:ie("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ke({props:e,name:"MuiStack"})});function QI(e){return be("MuiFormControlLabel",e)}const Ma=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JI=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ZI=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Se(a,QI,t)},e_=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ma.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ma.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ma.label}`]:{[`&.${Ma.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),t_=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ma.error}`]:{color:(e.vars||e).palette.error.main}})),Tm=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:h="end",required:w,slotProps:y={}}=i,x=se(i,JI),C=br(),v=(r=c??l.props.disabled)!=null?r:C==null?void 0:C.disabled,m=w??l.props.required,b={disabled:v,required:m};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof i[N]<"u"&&(b[N]=i[N])});const k=vo({props:i,muiFormControl:C,states:["error"]}),R=S({},i,{disabled:v,labelPlacement:h,required:m,error:k.error}),T=ZI(R),P=(o=y.typography)!=null?o:s.typography;let j=f;return j!=null&&j.type!==Ie&&!u&&(j=d.jsx(Ie,S({component:"span"},P,{className:le(T.label,P==null?void 0:P.className),children:j}))),d.jsxs(e_,S({className:le(T.root,a),ownerState:R,ref:n},x,{children:[p.cloneElement(l,b),m?d.jsxs(XI,{display:"block",children:[j,d.jsxs(t_,{ownerState:R,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):j]}))});function n_(e){return be("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const r_=["className","row"],o_=e=>{const{classes:t,row:n,error:r}=e;return Se({root:["root",n&&"row",r&&"error"]},n_,t)},i_=ie("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>S({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),o2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=se(r,r_),s=br(),l=vo({props:r,muiFormControl:s,states:["error"]}),c=S({},r,{row:i,error:l.error}),u=o_(c);return d.jsx(i_,S({className:le(u.root,o),ownerState:c,ref:n},a))});function a_(e){return be("MuiFormHelperText",e)}const ay=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sy;const s_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],l_=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Z(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Se(c,a_,t)},c_=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ay.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ay.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),u_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=se(r,s_),l=br(),c=vo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=l_(u);return d.jsx(c_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:o===" "?sy||(sy=d.jsx("span",{className:"notranslate",children:"​"})):o}))});function d_(e){return be("MuiFormLabel",e)}const Va=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),f_=["children","className","color","component","disabled","error","filled","focused","required"],p_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Z(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Se(l,d_,t)},h_=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Va.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),m_=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),g_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=se(r,f_),l=br(),c=vo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=p_(u);return d.jsxs(h_,S({as:a,ownerState:u,className:le(f.root,i),ref:n},s,{children:[o,c.required&&d.jsxs(m_,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),v_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ip(e){return`scale(${e}, ${e**2})`}const y_={entering:{opacity:1,transform:Ip(1)},entered:{opacity:1,transform:"none"}},tf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bs=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:w,style:y,timeout:x="auto",TransitionComponent:C=ar}=t,v=se(t,v_),m=To(),b=p.useRef(),k=mo(),R=p.useRef(null),T=lt(R,i.ref,n),P=ee=>J=>{if(ee){const re=R.current;J===void 0?ee(re):ee(re,J)}},j=P(u),N=P((ee,J)=>{pm(ee);const{duration:re,delay:O,easing:_}=Ai({style:y,timeout:x,easing:a},{mode:"enter"});let E;x==="auto"?(E=k.transitions.getAutoHeightDuration(ee.clientHeight),b.current=E):E=re,ee.style.transition=[k.transitions.create("opacity",{duration:E,delay:O}),k.transitions.create("transform",{duration:tf?E:E*.666,delay:O,easing:_})].join(","),l&&l(ee,J)}),I=P(c),F=P(w),H=P(ee=>{const{duration:J,delay:re,easing:O}=Ai({style:y,timeout:x,easing:a},{mode:"exit"});let _;x==="auto"?(_=k.transitions.getAutoHeightDuration(ee.clientHeight),b.current=_):_=J,ee.style.transition=[k.transitions.create("opacity",{duration:_,delay:re}),k.transitions.create("transform",{duration:tf?_:_*.666,delay:tf?re:re||_*.333,easing:O})].join(","),ee.style.opacity=0,ee.style.transform=Ip(.75),f&&f(ee)}),U=P(h),q=ee=>{x==="auto"&&m.start(b.current||0,ee),r&&r(R.current,ee)};return d.jsx(C,S({appear:o,in:s,nodeRef:R,onEnter:N,onEntered:I,onEntering:j,onExit:H,onExited:U,onExiting:F,addEndListener:q,timeout:x==="auto"?null:x},v,{children:(ee,J)=>p.cloneElement(i,S({style:S({opacity:0,transform:Ip(.75),visibility:ee==="exited"&&!s?"hidden":void 0},y_[ee],y,i.props.style),ref:T},J))}))});bs.muiSupportAuto=!0;const x_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],b_=e=>{const{classes:t,disableUnderline:n}=e,o=Se({root:["root",!n&&"underline"],input:["input"]},IO,t);return S({},t,o)},w_=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),S_=ie(od,{name:"MuiInput",slot:"Input",overridesResolver:nd})({}),$m=p.forwardRef(function(t,n){var r,o,i,a;const s=ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:w=!1,slotProps:y,slots:x={},type:C="text"}=s,v=se(s,x_),m=b_(s),k={root:{ownerState:{disableUnderline:l}}},R=y??u?Qt(y??u,k):k,T=(r=(o=x.root)!=null?o:c.Root)!=null?r:w_,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:S_;return d.jsx(Sm,S({slots:{root:T,input:P},slotProps:R,fullWidth:f,inputComponent:h,multiline:w,ref:n,type:C},v,{classes:m}))});$m.muiName="Input";function C_(e){return be("MuiInputAdornment",e)}const ly=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cy;const k_=["children","className","component","disablePointerEvents","disableTypography","position","variant"],R_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},P_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Z(o)}`,a,r&&"hiddenLabel",i&&`size${Z(i)}`]};return Se(s,C_,t)},E_=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:R_})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ly.positionStart}&:not(.${ly.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jc=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=se(r,k_),h=br()||{};let w=u;u&&h.variant,h&&!w&&(w=h.variant);const y=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:w}),x=P_(y);return d.jsx(ed.Provider,{value:null,children:d.jsx(E_,S({as:a,ownerState:y,className:le(x.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Ie,{color:"text.secondary",children:o}):d.jsxs(p.Fragment,{children:[c==="start"?cy||(cy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function T_(e){return be("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $_=["disableAnimation","margin","shrink","variant","className"],M_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Z(r)}`,a],asterisk:[s&&"asterisk"]},c=Se(l,T_,t);return S({},t,c)},j_=ie(g_,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),ld=p.forwardRef(function(t,n){const r=ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=se(r,$_),l=br();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=vo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=S({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=M_(f);return d.jsx(j_,S({"data-shrink":c,ownerState:f,ref:n,className:le(h.root,a)},s,{classes:h}))}),gr=p.createContext({});function O_(e){return be("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const I_=["children","className","component","dense","disablePadding","subheader"],__=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Se({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},O_,t)},L_=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fs=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=se(r,I_),f=p.useMemo(()=>({dense:s}),[s]),h=S({},r,{component:a,dense:s,disablePadding:l}),w=__(h);return d.jsx(gr.Provider,{value:f,children:d.jsxs(L_,S({as:a,className:le(w.root,i),ref:n,ownerState:h},u,{children:[c,o]}))})});function A_(e){return be("MuiListItem",e)}const oi=we("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),N_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function D_(e){return be("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const z_=["className"],B_=e=>{const{disableGutters:t,classes:n}=e;return Se({root:["root",t&&"disableGutters"]},D_,n)},F_=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),i2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,z_),a=p.useContext(gr),s=S({},r,{disableGutters:a.disableGutters}),l=B_(s);return d.jsx(F_,S({className:le(l.root,o),ownerState:s,ref:n},i))});i2.muiName="ListItemSecondaryAction";const U_=["className"],W_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],H_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},V_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Se({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},A_,r)},q_=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:H_})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${N_.root}`]:{paddingRight:48}},{[`&.${oi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),G_=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Oc=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:w}={},dense:y=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:v=!1,divider:m=!1,focusVisibleClassName:b,secondaryAction:k,selected:R=!1,slotProps:T={},slots:P={}}=r,j=se(r.ContainerProps,U_),N=se(r,W_),I=p.useContext(gr),F=p.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:C}),[o,I.dense,y,C]),H=p.useRef(null);Sn(()=>{i&&H.current&&H.current.focus()},[i]);const U=p.Children.toArray(s),q=U.length&&Fa(U[U.length-1],["ListItemSecondaryAction"]),ee=S({},r,{alignItems:o,autoFocus:i,button:a,dense:F.dense,disabled:x,disableGutters:C,disablePadding:v,divider:m,hasSecondaryAction:q,selected:R}),J=V_(ee),re=lt(H,n),O=P.root||u.Root||q_,_=T.root||f.root||{},E=S({className:le(J.root,_.className,l),disabled:x},N);let g=c||"li";return a&&(E.component=c||"div",E.focusVisibleClassName=le(oi.focusVisible,b),g=Ir),q?(g=!E.component&&!c?"div":g,h==="li"&&(g==="li"?g="div":E.component==="li"&&(E.component="div")),d.jsx(gr.Provider,{value:F,children:d.jsxs(G_,S({as:h,className:le(J.container,w),ref:re,ownerState:ee},j,{children:[d.jsx(O,S({},_,!Ni(O)&&{as:g,ownerState:S({},ee,_.ownerState)},E,{children:U})),U.pop()]}))})):d.jsx(gr.Provider,{value:F,children:d.jsxs(O,S({},_,{as:g,ref:re},!Ni(O)&&{ownerState:S({},ee,_.ownerState)},E,{children:[U,k&&d.jsx(i2,{children:k})]}))})});function K_(e){return be("MuiListItemAvatar",e)}we("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Y_=["className"],X_=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},K_,n)},Q_=ie("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>S({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),J_=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=se(r,Y_),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=X_(s);return d.jsx(Q_,S({className:le(l.root,o),ownerState:s,ref:n},i))});function Z_(e){return be("MuiListItemIcon",e)}const uy=we("MuiListItemIcon",["root","alignItemsFlexStart"]),eL=["className"],tL=e=>{const{alignItems:t,classes:n}=e;return Se({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Z_,n)},nL=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),dy=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,eL),a=p.useContext(gr),s=S({},r,{alignItems:a.alignItems}),l=tL(s);return d.jsx(nL,S({className:le(l.root,o),ownerState:s,ref:n},i))});function rL(e){return be("MuiListItemText",e)}const Ic=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],iL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Se({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},rL,t)},aL=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ic.primary}`]:t.primary},{[`& .${Ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ws=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,h=se(r,oL),{dense:w}=p.useContext(gr);let y=l??o,x=u;const C=S({},r,{disableTypography:a,inset:s,primary:!!y,secondary:!!x,dense:w}),v=iL(C);return y!=null&&y.type!==Ie&&!a&&(y=d.jsx(Ie,S({variant:w?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:y}))),x!=null&&x.type!==Ie&&!a&&(x=d.jsx(Ie,S({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:x}))),d.jsxs(aL,S({className:le(v.root,i),ownerState:C,ref:n},h,{children:[y,x]}))}),sL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function a2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ba(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!a2(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const lL=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,h=se(t,sL),w=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&w.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(b,{direction:k})=>{const R=!w.current.style.width;if(b.clientHeight{const k=w.current,R=b.key,T=St(k).activeElement;if(R==="ArrowDown")b.preventDefault(),ba(k,T,c,l,nf);else if(R==="ArrowUp")b.preventDefault(),ba(k,T,c,l,fy);else if(R==="Home")b.preventDefault(),ba(k,null,c,l,nf);else if(R==="End")b.preventDefault(),ba(k,null,c,l,fy);else if(R.length===1){const P=y.current,j=R.toLowerCase(),N=performance.now();P.keys.length>0&&(N-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&j!==P.keys[0]&&(P.repeating=!1)),P.lastTime=N,P.keys.push(j);const I=T&&!P.repeating&&a2(T,P);P.previousKeyMatched&&(I||ba(k,T,!1,l,nf,P))?b.preventDefault():P.previousKeyMatched=!1}u&&u(b)},C=lt(w,n);let v=-1;p.Children.forEach(a,(b,k)=>{if(!p.isValidElement(b)){v===k&&(v+=1,v>=a.length&&(v=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||v===-1)&&(v=k),v===k&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const m=p.Children.map(a,(b,k)=>{if(k===v){const R={};return i&&(R.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),p.cloneElement(b,R)}return b});return d.jsx(Fs,S({role:"menu",ref:C,className:s,onKeyDown:x,tabIndex:o?0:-1},h,{children:m}))});function cL(e){return be("MuiPopover",e)}we("MuiPopover",["root","paper"]);const uL=["onEntering"],dL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fL=["slotProps"];function py(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function my(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function rf(e){return typeof e=="function"?e():e}const pL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},cL,t)},hL=ie(Pm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s2=ie(En,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mL=p.forwardRef(function(t,n){var r,o,i;const a=ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:h,className:w,container:y,elevation:x=8,marginThreshold:C=16,open:v,PaperProps:m={},slots:b,slotProps:k,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:T=bs,transitionDuration:P="auto",TransitionProps:{onEntering:j}={},disableScrollLock:N=!1}=a,I=se(a.TransitionProps,uL),F=se(a,dL),H=(r=k==null?void 0:k.paper)!=null?r:m,U=p.useRef(),q=lt(U,H.ref),ee=S({},a,{anchorOrigin:c,anchorReference:f,elevation:x,marginThreshold:C,externalPaperSlotProps:H,transformOrigin:R,TransitionComponent:T,transitionDuration:P,TransitionProps:I}),J=pL(ee),re=p.useCallback(()=>{if(f==="anchorPosition")return u;const te=rf(l),de=(te&&te.nodeType===1?te:St(U.current).body).getBoundingClientRect();return{top:de.top+py(de,c.vertical),left:de.left+hy(de,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),O=p.useCallback(te=>({vertical:py(te,R.vertical),horizontal:hy(te,R.horizontal)}),[R.horizontal,R.vertical]),_=p.useCallback(te=>{const ne={width:te.offsetWidth,height:te.offsetHeight},de=O(ne);if(f==="none")return{top:null,left:null,transformOrigin:my(de)};const Re=re();let W=Re.top-de.vertical,ae=Re.left-de.horizontal;const ge=W+ne.height,D=ae+ne.width,X=Bn(rf(l)),fe=X.innerHeight-C,pe=X.innerWidth-C;if(C!==null&&Wfe){const ve=ge-fe;W-=ve,de.vertical+=ve}if(C!==null&&aepe){const ve=D-pe;ae-=ve,de.horizontal+=ve}return{top:`${Math.round(W)}px`,left:`${Math.round(ae)}px`,transformOrigin:my(de)}},[l,f,re,O,C]),[E,g]=p.useState(v),$=p.useCallback(()=>{const te=U.current;if(!te)return;const ne=_(te);ne.top!==null&&(te.style.top=ne.top),ne.left!==null&&(te.style.left=ne.left),te.style.transformOrigin=ne.transformOrigin,g(!0)},[_]);p.useEffect(()=>(N&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[l,N,$]);const z=(te,ne)=>{j&&j(te,ne),$()},L=()=>{g(!1)};p.useEffect(()=>{v&&$()}),p.useImperativeHandle(s,()=>v?{updatePosition:()=>{$()}}:null,[v,$]),p.useEffect(()=>{if(!v)return;const te=ea(()=>{$()}),ne=Bn(l);return ne.addEventListener("resize",te),()=>{te.clear(),ne.removeEventListener("resize",te)}},[l,v,$]);let B=P;P==="auto"&&!T.muiSupportAuto&&(B=void 0);const V=y||(l?St(rf(l)).body:void 0),M=(o=b==null?void 0:b.root)!=null?o:hL,A=(i=b==null?void 0:b.paper)!=null?i:s2,G=fn({elementType:A,externalSlotProps:S({},H,{style:E?H.style:S({},H.style,{opacity:0})}),additionalProps:{elevation:x,ref:q},ownerState:ee,className:le(J.paper,H==null?void 0:H.className)}),Y=fn({elementType:M,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:v},ownerState:ee,className:le(J.root,w)}),{slotProps:K}=Y,oe=se(Y,fL);return d.jsx(M,S({},oe,!Ni(M)&&{slotProps:K,disableScrollLock:N},{children:d.jsx(T,S({appear:!0,in:v,onEntering:z,onExited:L,timeout:B},I,{children:d.jsx(A,S({},G,{children:h}))}))}))});function gL(e){return be("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const vL=["onEntering"],yL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xL={vertical:"top",horizontal:"right"},bL={vertical:"top",horizontal:"left"},wL=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},gL,t)},SL=ie(mL,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CL=ie(s2,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kL=ie(lL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),l2=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:w={},PopoverClasses:y,transitionDuration:x="auto",TransitionProps:{onEntering:C}={},variant:v="selectedMenu",slots:m={},slotProps:b={}}=i,k=se(i.TransitionProps,vL),R=se(i,yL),T=As(),P=S({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:C,PaperProps:w,transitionDuration:x,TransitionProps:k,variant:v}),j=wL(P),N=a&&!c&&h,I=p.useRef(null),F=(O,_)=>{I.current&&I.current.adjustStyleForScrollbar(O,{direction:T?"rtl":"ltr"}),C&&C(O,_)},H=O=>{O.key==="Tab"&&(O.preventDefault(),f&&f(O,"tabKeyDown"))};let U=-1;p.Children.map(s,(O,_)=>{p.isValidElement(O)&&(O.props.disabled||(v==="selectedMenu"&&O.props.selected||U===-1)&&(U=_))});const q=(r=m.paper)!=null?r:CL,ee=(o=b.paper)!=null?o:w,J=fn({elementType:m.root,externalSlotProps:b.root,ownerState:P,className:[j.root,l]}),re=fn({elementType:q,externalSlotProps:ee,ownerState:P,className:j.paper});return d.jsx(SL,S({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?xL:bL,slots:{paper:q,root:m.root},slotProps:{root:J,paper:re},open:h,ref:n,transitionDuration:x,TransitionProps:S({onEntering:F},k),ownerState:P},R,{classes:y,children:d.jsx(kL,S({onKeyDown:H,actions:I,autoFocus:a&&(U===-1||c),autoFocusItem:N,variant:v},u,{className:le(j.list,u.className),children:s}))}))});function RL(e){return be("MuiMenuItem",e)}const wa=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),PL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],EL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},TL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Se({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},RL,a);return S({},a,l)},$L=ie(Ir,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:EL})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oy.inset}`]:{marginLeft:52},[`& .${Ic.root}`]:{marginTop:0,marginBottom:0},[`& .${Ic.inset}`]:{paddingLeft:36},[`& .${uy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uy.root} svg`]:{fontSize:"1.25rem"}}))),Jn=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h}=r,w=se(r,PL),y=p.useContext(gr),x=p.useMemo(()=>({dense:a||y.dense||!1,disableGutters:l}),[y.dense,a,l]),C=p.useRef(null);Sn(()=>{o&&C.current&&C.current.focus()},[o]);const v=S({},r,{dense:x.dense,divider:s,disableGutters:l}),m=TL(r),b=lt(C,n);let k;return r.disabled||(k=f!==void 0?f:-1),d.jsx(gr.Provider,{value:x,children:d.jsx($L,S({ref:b,role:u,tabIndex:k,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,h)},w,{ownerState:v,classes:m}))})});function ML(e){return be("MuiNativeSelect",e)}const Mm=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),jL=["className","disabled","error","IconComponent","inputRef","variant"],OL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"]};return Se(s,ML,t)},c2=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Mm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),IL=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ht,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mm.multiple}`]:t.multiple}]}})(c2),u2=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),_L=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(u2),LL=p.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=se(t,jL),u=S({},t,{disabled:o,variant:l,error:i}),f=OL(u);return d.jsxs(p.Fragment,{children:[d.jsx(IL,S({ownerState:u,className:le(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:d.jsx(_L,{as:a,ownerState:u,className:f.icon})]})});var gy;const AL=["children","classes","className","label","notched"],NL=ie("fieldset",{shouldForwardProp:Ht})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),DL=ie("legend",{shouldForwardProp:Ht})(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zL(e){const{className:t,label:n,notched:r}=e,o=se(e,AL),i=n!=null&&n!=="",a=S({},e,{notched:r,withLabel:i});return d.jsx(NL,S({"aria-hidden":!0,className:t,ownerState:a},o,{children:d.jsx(DL,{ownerState:a,children:i?d.jsx("span",{children:n}):gy||(gy=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const BL=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],FL=e=>{const{classes:t}=e,r=Se({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_O,t);return S({},t,r)},UL=ie(rd,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:td})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WL=ie(zL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),HL=ie(od,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nd})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),jm=p.forwardRef(function(t,n){var r,o,i,a,s;const l=ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:h,multiline:w=!1,notched:y,slots:x={},type:C="text"}=l,v=se(l,BL),m=FL(l),b=br(),k=vo({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=S({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:b,fullWidth:u,hiddenLabel:k.hiddenLabel,multiline:w,size:k.size,type:C}),T=(r=(o=x.root)!=null?o:c.Root)!=null?r:UL,P=(i=(a=x.input)!=null?a:c.Input)!=null?i:HL;return d.jsx(Sm,S({slots:{root:T,input:P},renderSuffix:j=>d.jsx(WL,{ownerState:R,className:m.notchedOutline,label:h!=null&&h!==""&&k.required?s||(s=d.jsxs(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:u,inputComponent:f,multiline:w,ref:n,type:C},v,{classes:S({},m,{notchedOutline:null})}))});jm.muiName="Input";function VL(e){return be("MuiSelect",e)}const Sa=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vy;const qL=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],GL=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(c2,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KL=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})(u2),YL=ie("input",{shouldForwardProp:e=>Ew(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function XL(e){return e==null||typeof e=="string"&&!e.trim()}const QL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Se(s,VL,t)},JL=p.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:h,displayEmpty:w,error:y=!1,IconComponent:x,inputRef:C,labelId:v,MenuProps:m={},multiple:b,name:k,onBlur:R,onChange:T,onClose:P,onFocus:j,onOpen:N,open:I,readOnly:F,renderValue:H,SelectDisplayProps:U={},tabIndex:q,value:ee,variant:J="standard"}=t,re=se(t,qL),[O,_]=gs({controlled:ee,default:f,name:"Select"}),[E,g]=gs({controlled:I,default:u,name:"Select"}),$=p.useRef(null),z=p.useRef(null),[L,B]=p.useState(null),{current:V}=p.useRef(I!=null),[M,A]=p.useState(),G=lt(n,C),Y=p.useCallback(ye=>{z.current=ye,ye&&B(ye)},[]),K=L==null?void 0:L.parentNode;p.useImperativeHandle(G,()=>({focus:()=>{z.current.focus()},node:$.current,value:O}),[O]),p.useEffect(()=>{u&&E&&L&&!V&&(A(s?null:K.clientWidth),z.current.focus())},[L,s]),p.useEffect(()=>{a&&z.current.focus()},[a]),p.useEffect(()=>{if(!v)return;const ye=St(z.current).getElementById(v);if(ye){const Pe=()=>{getSelection().isCollapsed&&z.current.focus()};return ye.addEventListener("click",Pe),()=>{ye.removeEventListener("click",Pe)}}},[v]);const oe=(ye,Pe)=>{ye?N&&N(Pe):P&&P(Pe),V||(A(s?null:K.clientWidth),g(ye))},te=ye=>{ye.button===0&&(ye.preventDefault(),z.current.focus(),oe(!0,ye))},ne=ye=>{oe(!1,ye)},de=p.Children.toArray(l),Re=ye=>{const Pe=de.find(ue=>ue.props.value===ye.target.value);Pe!==void 0&&(_(Pe.props.value),T&&T(ye,Pe))},W=ye=>Pe=>{let ue;if(Pe.currentTarget.hasAttribute("tabindex")){if(b){ue=Array.isArray(O)?O.slice():[];const me=O.indexOf(ye.props.value);me===-1?ue.push(ye.props.value):ue.splice(me,1)}else ue=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Pe),O!==ue&&(_(ue),T)){const me=Pe.nativeEvent||Pe,$e=new me.constructor(me.type,me);Object.defineProperty($e,"target",{writable:!0,value:{value:ue,name:k}}),T($e,ye)}b||oe(!1,Pe)}},ae=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ye.key)!==-1&&(ye.preventDefault(),oe(!0,ye))},ge=L!==null&&E,D=ye=>{!ge&&R&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:O,name:k}}),R(ye))};delete re["aria-invalid"];let X,fe;const pe=[];let ve=!1;(Mc({value:O})||w)&&(H?X=H(O):ve=!0);const Ce=de.map(ye=>{if(!p.isValidElement(ye))return null;let Pe;if(b){if(!Array.isArray(O))throw new Error(Bo(2));Pe=O.some(ue=>yy(ue,ye.props.value)),Pe&&ve&&pe.push(ye.props.children)}else Pe=yy(O,ye.props.value),Pe&&ve&&(fe=ye.props.children);return p.cloneElement(ye,{"aria-selected":Pe?"true":"false",onClick:W(ye),onKeyUp:ue=>{ue.key===" "&&ue.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(ue)},role:"option",selected:Pe,value:void 0,"data-value":ye.props.value})});ve&&(b?pe.length===0?X=null:X=pe.reduce((ye,Pe,ue)=>(ye.push(Pe),ue{const{classes:t}=e;return t},Om={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ht(e)&&e!=="variant",slot:"Root"},nA=ie($m,Om)(""),rA=ie(jm,Om)(""),oA=ie(Em,Om)(""),Us=p.forwardRef(function(t,n){const r=ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=AO,id:f,input:h,inputProps:w,label:y,labelId:x,MenuProps:C,multiple:v=!1,native:m=!1,onClose:b,onOpen:k,open:R,renderValue:T,SelectDisplayProps:P,variant:j="outlined"}=r,N=se(r,ZL),I=m?LL:JL,F=br(),H=vo({props:r,muiFormControl:F,states:["variant","error"]}),U=H.variant||j,q=S({},r,{variant:U,classes:a}),ee=tA(q),J=se(ee,eA),re=h||{standard:d.jsx(nA,{ownerState:q}),outlined:d.jsx(rA,{label:y,ownerState:q}),filled:d.jsx(oA,{ownerState:q})}[U],O=lt(n,re.ref);return d.jsx(p.Fragment,{children:p.cloneElement(re,S({inputComponent:I,inputProps:S({children:i,error:H.error,IconComponent:u,variant:U,type:void 0,multiple:v},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:C,onClose:b,onOpen:k,open:R,renderValue:T,SelectDisplayProps:S({id:f},P)},w,{classes:w?Qt(J,w.classes):J},h?h.props.inputProps:{})},(v&&m||c)&&U==="outlined"?{notched:!0}:{},{ref:O,className:le(re.props.className,s,ee.root)},!h&&{variant:U},N))})});Us.muiName="Select";function iA(e){return be("MuiSnackbarContent",e)}we("MuiSnackbarContent",["root","message","action"]);const aA=["action","className","message","role"],sA=e=>{const{classes:t}=e;return Se({root:["root"],action:["action"],message:["message"]},iA,t)},lA=ie(En,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=c4(e.palette.background.default,t);return S({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),cA=ie("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),uA=ie("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),dA=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert"}=r,l=se(r,aA),c=r,u=sA(c);return d.jsxs(lA,S({role:s,square:!0,elevation:6,className:le(u.root,i),ownerState:c,ref:n},l,{children:[d.jsx(cA,{className:u.message,ownerState:c,children:a}),o?d.jsx(uA,{className:u.action,ownerState:c,children:o}):null]}))});function fA(e){return be("MuiSnackbar",e)}we("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pA=["onEnter","onExited"],hA=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],mA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return Se(r,fA,t)},xy=ie("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return S({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:S({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),yo=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiSnackbar"}),o=mo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:w,disableWindowBlurListener:y=!1,message:x,open:C,TransitionComponent:v=bs,transitionDuration:m=i,TransitionProps:{onEnter:b,onExited:k}={}}=r,R=se(r.TransitionProps,pA),T=se(r,hA),P=S({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:v,transitionDuration:m}),j=mA(P),{getRootProps:N,onClickAway:I}=lO(S({},P)),[F,H]=p.useState(!0),U=fn({elementType:xy,getSlotProps:N,externalForwardedProps:T,ownerState:P,additionalProps:{ref:n},className:[j.root,f]}),q=J=>{H(!0),k&&k(J)},ee=(J,re)=>{H(!1),b&&b(J,re)};return!C&&F?null:d.jsx($M,S({onClickAway:I},h,{children:d.jsx(xy,S({},U,{children:d.jsx(v,S({appear:!0,in:C,timeout:m,direction:s==="top"?"down":"up",onEnter:ee,onExited:q},R,{children:u||d.jsx(dA,S({message:x,action:a},w))}))}))}))});function gA(e){return be("MuiTooltip",e)}const Jr=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),vA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function yA(e){return Math.round(e*1e5)/1e5}const xA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Z(i.split("-")[0])}`],arrow:["arrow"]};return Se(a,gA,t)},bA=ie(Gw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wA=ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Jr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),SA=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yl=!1;const by=new Ls;let Ca={x:0,y:0};function xl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Zn=p.forwardRef(function(t,n){var r,o,i,a,s,l,c,u,f,h,w,y,x,C,v,m,b,k,R;const T=ke({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:j,components:N={},componentsProps:I={},describeChild:F=!1,disableFocusListener:H=!1,disableHoverListener:U=!1,disableInteractive:q=!1,disableTouchListener:ee=!1,enterDelay:J=100,enterNextDelay:re=0,enterTouchDelay:O=700,followCursor:_=!1,id:E,leaveDelay:g=0,leaveTouchDelay:$=1500,onClose:z,onOpen:L,open:B,placement:V="bottom",PopperComponent:M,PopperProps:A={},slotProps:G={},slots:Y={},title:K,TransitionComponent:oe=bs,TransitionProps:te}=T,ne=se(T,vA),de=p.isValidElement(j)?j:d.jsx("span",{children:j}),Re=mo(),W=As(),[ae,ge]=p.useState(),[D,X]=p.useState(null),fe=p.useRef(!1),pe=q||_,ve=To(),Ce=To(),Le=To(),De=To(),[Ee,he]=gs({controlled:B,default:!1,name:"Tooltip",state:"open"});let Ge=Ee;const Xe=_s(E),Ye=p.useRef(),ye=Yt(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),De.clear()});p.useEffect(()=>ye,[ye]);const Pe=Ne=>{by.clear(),yl=!0,he(!0),L&&!Ge&&L(Ne)},ue=Yt(Ne=>{by.start(800+g,()=>{yl=!1}),he(!1),z&&Ge&&z(Ne),ve.start(Re.transitions.duration.shortest,()=>{fe.current=!1})}),me=Ne=>{fe.current&&Ne.type!=="touchstart"||(ae&&ae.removeAttribute("title"),Ce.clear(),Le.clear(),J||yl&&re?Ce.start(yl?re:J,()=>{Pe(Ne)}):Pe(Ne))},$e=Ne=>{Ce.clear(),Le.start(g,()=>{ue(Ne)})},{isFocusVisibleRef:Ae,onBlur:Qe,onFocus:Ct,ref:Ot}=om(),[,pn]=p.useState(!1),Dt=Ne=>{Qe(Ne),Ae.current===!1&&(pn(!1),$e(Ne))},zr=Ne=>{ae||ge(Ne.currentTarget),Ct(Ne),Ae.current===!0&&(pn(!0),me(Ne))},Go=Ne=>{fe.current=!0;const hn=de.props;hn.onTouchStart&&hn.onTouchStart(Ne)},Et=Ne=>{Go(Ne),Le.clear(),ve.clear(),ye(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(O,()=>{document.body.style.WebkitUserSelect=Ye.current,me(Ne)})},ud=Ne=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ne),ye(),Le.start($,()=>{ue(Ne)})};p.useEffect(()=>{if(!Ge)return;function Ne(hn){(hn.key==="Escape"||hn.key==="Esc")&&ue(hn)}return document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}},[ue,Ge]);const Ws=lt(de.ref,Ot,ge,n);!K&&K!==0&&(Ge=!1);const oa=p.useRef(),ia=Ne=>{const hn=de.props;hn.onMouseMove&&hn.onMouseMove(Ne),Ca={x:Ne.clientX,y:Ne.clientY},oa.current&&oa.current.update()},tt={},en=typeof K=="string";F?(tt.title=!Ge&&en&&!U?K:null,tt["aria-describedby"]=Ge?Xe:null):(tt["aria-label"]=en?K:null,tt["aria-labelledby"]=Ge&&!en?Xe:null);const nt=S({},tt,ne,de.props,{className:le(ne.className,de.props.className),onTouchStart:Go,ref:Ws},_?{onMouseMove:ia}:{}),Tt={};ee||(nt.onTouchStart=Et,nt.onTouchEnd=ud),U||(nt.onMouseOver=xl(me,nt.onMouseOver),nt.onMouseLeave=xl($e,nt.onMouseLeave),pe||(Tt.onMouseOver=me,Tt.onMouseLeave=$e)),H||(nt.onFocus=xl(zr,nt.onFocus),nt.onBlur=xl(Dt,nt.onBlur),pe||(Tt.onFocus=zr,Tt.onBlur=Dt));const It=p.useMemo(()=>{var Ne;let hn=[{name:"arrow",enabled:!!D,options:{element:D,padding:4}}];return(Ne=A.popperOptions)!=null&&Ne.modifiers&&(hn=hn.concat(A.popperOptions.modifiers)),S({},A.popperOptions,{modifiers:hn})},[D,A]),qt=S({},T,{isRtl:W,arrow:P,disableInteractive:pe,placement:V,PopperComponentProp:M,touch:fe.current}),Gn=xA(qt),Ko=(r=(o=Y.popper)!=null?o:N.Popper)!=null?r:bA,aa=(i=(a=(s=Y.transition)!=null?s:N.Transition)!=null?a:oe)!=null?i:bs,Hs=(l=(c=Y.tooltip)!=null?c:N.Tooltip)!=null?l:wA,Vs=(u=(f=Y.arrow)!=null?f:N.Arrow)!=null?u:SA,H2=vi(Ko,S({},A,(h=G.popper)!=null?h:I.popper,{className:le(Gn.popper,A==null?void 0:A.className,(w=(y=G.popper)!=null?y:I.popper)==null?void 0:w.className)}),qt),V2=vi(aa,S({},te,(x=G.transition)!=null?x:I.transition),qt),q2=vi(Hs,S({},(C=G.tooltip)!=null?C:I.tooltip,{className:le(Gn.tooltip,(v=(m=G.tooltip)!=null?m:I.tooltip)==null?void 0:v.className)}),qt),G2=vi(Vs,S({},(b=G.arrow)!=null?b:I.arrow,{className:le(Gn.arrow,(k=(R=G.arrow)!=null?R:I.arrow)==null?void 0:k.className)}),qt);return d.jsxs(p.Fragment,{children:[p.cloneElement(de,nt),d.jsx(Ko,S({as:M??Gw,placement:V,anchorEl:_?{getBoundingClientRect:()=>({top:Ca.y,left:Ca.x,right:Ca.x,bottom:Ca.y,width:0,height:0})}:ae,popperRef:oa,open:ae?Ge:!1,id:Xe,transition:!0},Tt,H2,{popperOptions:It,children:({TransitionProps:Ne})=>d.jsx(aa,S({timeout:Re.transitions.duration.shorter},Ne,V2,{children:d.jsxs(Hs,S({},q2,{children:[K,P?d.jsx(Vs,S({},G2,{ref:X})):null]}))}))}))]})});function CA(e){return be("MuiSwitch",e)}const Gt=we("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kA=["className","color","edge","size","sx"],RA=Qu(),PA=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Se(s,CA,t);return S({},t,l)},EA=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Gt.thumb}`]:{width:16,height:16},[`& .${Gt.switchBase}`]:{padding:4,[`&.${Gt.checked}`]:{transform:"translateX(16px)"}}}}]}),TA=ie(Jw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Gt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Gt.checked}`]:{transform:"translateX(20px)"},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Gt.checked} + .${Gt.track}`]:{opacity:.5},[`&.${Gt.disabled} + .${Gt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Gt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Gt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fe(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Rc(e.palette[t].main,.62):kc(e.palette[t].main,.55)}`}},[`&.${Gt.checked} + .${Gt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),$A=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),MA=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),jA=p.forwardRef(function(t,n){const r=RA({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l}=r,c=se(r,kA),u=S({},r,{color:i,edge:a,size:s}),f=PA(u),h=d.jsx(MA,{className:f.thumb,ownerState:u});return d.jsxs(EA,{className:le(f.root,o),sx:l,ownerState:u,children:[d.jsx(TA,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},f,{root:f.switchBase})})),d.jsx($A,{className:f.track,ownerState:u})]})});function OA(e){return be("MuiTab",e)}const bo=we("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),IA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_A=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Z(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Se(c,OA,t)},LA=ie(Ir,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Z(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bo.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bo.selected}`]:{opacity:1},[`&.${bo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Hl=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:w,onFocus:y,selected:x,selectionFollowsFocus:C,textColor:v="inherit",value:m,wrapped:b=!1}=r,k=se(r,IA),R=S({},r,{disabled:i,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:v,wrapped:b}),T=_A(R),P=l&&f&&p.isValidElement(l)?p.cloneElement(l,{className:le(T.iconWrapper,l.props.className)}):l,j=I=>{!x&&h&&h(I,m),w&&w(I)},N=I=>{C&&!x&&h&&h(I,m),y&&y(I)};return d.jsxs(LA,S({focusRipple:!a,className:le(T.root,o),ref:n,role:"tab","aria-selected":x,disabled:i,onClick:j,onFocus:N,ownerState:R,tabIndex:x?0:-1},k,{children:[c==="top"||c==="start"?d.jsxs(p.Fragment,{children:[P,f]}):d.jsxs(p.Fragment,{children:[f,P]}),u]}))});function AA(e){return be("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const NA=["className","component","disableGutters","variant"],DA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Se({root:["root",!n&&"gutters",r]},AA,t)},zA=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),BA=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=r,l=se(r,NA),c=S({},r,{component:i,disableGutters:a,variant:s}),u=DA(c);return d.jsx(zA,S({as:i,className:le(u.root,o),ref:n,ownerState:c},l))}),FA=Vt(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),UA=Vt(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function WA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function HA(e,t,n,r={},o=()=>{}){const{ease:i=WA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const w=Math.min(1,(h-s)/a);if(t[e]=i(w)*(n-l)+l,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const VA=["onChange"],qA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function GA(e){const{onChange:t}=e,n=se(e,VA),r=p.useRef(),o=p.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ea(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Bn(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),p.useEffect(()=>{i(),t(r.current)},[t]),d.jsx("div",S({style:qA,ref:o},n))}function KA(e){return be("MuiTabScrollButton",e)}const YA=we("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),XA=["className","slots","slotProps","direction","orientation","disabled"],QA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Se({root:["root",n,r&&"disabled"]},KA,t)},JA=ie(Ir,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${YA.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ZA=p.forwardRef(function(t,n){var r,o;const i=ke({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=i,u=se(i,XA),f=As(),h=S({isRtl:f},i),w=QA(h),y=(r=s.StartScrollButtonIcon)!=null?r:FA,x=(o=s.EndScrollButtonIcon)!=null?o:UA,C=fn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=fn({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return d.jsx(JA,S({component:"div",className:le(w.root,a),ref:n,role:null,ownerState:h,tabIndex:null},u,{children:c==="left"?d.jsx(y,S({},C)):d.jsx(x,S({},v))}))});function eN(e){return be("MuiTabs",e)}const of=we("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tN=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wy=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Sy=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},nN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},eN,l)},rN=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${of.scrollButtons}`]:t.scrollButtons},{[`& .${of.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${of.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),oN=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),iN=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),aN=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),sN=ie(GA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cy={},d2=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTabs"}),o=mo(),i=As(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:w=!1,indicatorColor:y="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:v=ZA,scrollButtons:m="auto",selectionFollowsFocus:b,slots:k={},slotProps:R={},TabIndicatorProps:T={},TabScrollButtonProps:P={},textColor:j="primary",value:N,variant:I="standard",visibleScrollbar:F=!1}=r,H=se(r,tN),U=I==="scrollable",q=C==="vertical",ee=q?"scrollTop":"scrollLeft",J=q?"top":"left",re=q?"bottom":"right",O=q?"clientHeight":"clientWidth",_=q?"height":"width",E=S({},r,{component:h,allowScrollButtonsMobile:w,indicatorColor:y,orientation:C,vertical:q,scrollButtons:m,textColor:j,variant:I,visibleScrollbar:F,fixed:!U,hideScrollbar:U&&!F,scrollableX:U&&!q,scrollableY:U&&q,centered:c&&!U,scrollButtonsHideMobile:!w}),g=nN(E),$=fn({elementType:k.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:E}),z=fn({elementType:k.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:E}),[L,B]=p.useState(!1),[V,M]=p.useState(Cy),[A,G]=p.useState(!1),[Y,K]=p.useState(!1),[oe,te]=p.useState(!1),[ne,de]=p.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,W=p.useRef(null),ae=p.useRef(null),ge=()=>{const ue=W.current;let me;if(ue){const Ae=ue.getBoundingClientRect();me={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:D$(ue,i?"rtl":"ltr"),scrollWidth:ue.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let $e;if(ue&&N!==!1){const Ae=ae.current.children;if(Ae.length>0){const Qe=Ae[Re.get(N)];$e=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:$e}},D=Yt(()=>{const{tabsMeta:ue,tabMeta:me}=ge();let $e=0,Ae;if(q)Ae="top",me&&ue&&($e=me.top-ue.top+ue.scrollTop);else if(Ae=i?"right":"left",me&&ue){const Ct=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;$e=(i?-1:1)*(me[Ae]-ue[Ae]+Ct)}const Qe={[Ae]:$e,[_]:me?me[_]:0};if(isNaN(V[Ae])||isNaN(V[_]))M(Qe);else{const Ct=Math.abs(V[Ae]-Qe[Ae]),Ot=Math.abs(V[_]-Qe[_]);(Ct>=1||Ot>=1)&&M(Qe)}}),X=(ue,{animation:me=!0}={})=>{me?HA(ee,W.current,ue,{duration:o.transitions.duration.standard}):W.current[ee]=ue},fe=ue=>{let me=W.current[ee];q?me+=ue:(me+=ue*(i?-1:1),me*=i&&pw()==="reverse"?-1:1),X(me)},pe=()=>{const ue=W.current[O];let me=0;const $e=Array.from(ae.current.children);for(let Ae=0;Ae<$e.length;Ae+=1){const Qe=$e[Ae];if(me+Qe[O]>ue){Ae===0&&(me=ue);break}me+=Qe[O]}return me},ve=()=>{fe(-1*pe())},Ce=()=>{fe(pe())},Le=p.useCallback(ue=>{de({overflow:null,scrollbarWidth:ue})},[]),De=()=>{const ue={};ue.scrollbarSizeListener=U?d.jsx(sN,{onChange:Le,className:le(g.scrollableX,g.hideScrollbar)}):null;const $e=U&&(m==="auto"&&(A||Y)||m===!0);return ue.scrollButtonStart=$e?d.jsx(v,S({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:ve,disabled:!A},P,{className:le(g.scrollButtons,P.className)})):null,ue.scrollButtonEnd=$e?d.jsx(v,S({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:z},orientation:C,direction:i?"left":"right",onClick:Ce,disabled:!Y},P,{className:le(g.scrollButtons,P.className)})):null,ue},Ee=Yt(ue=>{const{tabsMeta:me,tabMeta:$e}=ge();if(!(!$e||!me)){if($e[J]me[re]){const Ae=me[ee]+($e[re]-me[re]);X(Ae,{animation:ue})}}}),he=Yt(()=>{U&&m!==!1&&te(!oe)});p.useEffect(()=>{const ue=ea(()=>{W.current&&D()});let me;const $e=Ct=>{Ct.forEach(Ot=>{Ot.removedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.unobserve(pn)}),Ot.addedNodes.forEach(pn=>{var Dt;(Dt=me)==null||Dt.observe(pn)})}),ue(),he()},Ae=Bn(W.current);Ae.addEventListener("resize",ue);let Qe;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ue),Array.from(ae.current.children).forEach(Ct=>{me.observe(Ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver($e),Qe.observe(ae.current,{childList:!0})),()=>{var Ct,Ot;ue.clear(),Ae.removeEventListener("resize",ue),(Ct=Qe)==null||Ct.disconnect(),(Ot=me)==null||Ot.disconnect()}},[D,he]),p.useEffect(()=>{const ue=Array.from(ae.current.children),me=ue.length;if(typeof IntersectionObserver<"u"&&me>0&&U&&m!==!1){const $e=ue[0],Ae=ue[me-1],Qe={root:W.current,threshold:.99},Ct=zr=>{G(!zr[0].isIntersecting)},Ot=new IntersectionObserver(Ct,Qe);Ot.observe($e);const pn=zr=>{K(!zr[0].isIntersecting)},Dt=new IntersectionObserver(pn,Qe);return Dt.observe(Ae),()=>{Ot.disconnect(),Dt.disconnect()}}},[U,m,oe,u==null?void 0:u.length]),p.useEffect(()=>{B(!0)},[]),p.useEffect(()=>{D()}),p.useEffect(()=>{Ee(Cy!==V)},[Ee,V]),p.useImperativeHandle(l,()=>({updateIndicator:D,updateScrollButtons:he}),[D,he]);const Ge=d.jsx(aN,S({},T,{className:le(g.indicator,T.className),ownerState:E,style:S({},V,T.style)}));let Xe=0;const Ye=p.Children.map(u,ue=>{if(!p.isValidElement(ue))return null;const me=ue.props.value===void 0?Xe:ue.props.value;Re.set(me,Xe);const $e=me===N;return Xe+=1,p.cloneElement(ue,S({fullWidth:I==="fullWidth",indicator:$e&&!L&&Ge,selected:$e,selectionFollowsFocus:b,onChange:x,textColor:j,value:me},Xe===1&&N===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ye=ue=>{const me=ae.current,$e=St(me).activeElement;if($e.getAttribute("role")!=="tab")return;let Qe=C==="horizontal"?"ArrowLeft":"ArrowUp",Ct=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&i&&(Qe="ArrowRight",Ct="ArrowLeft"),ue.key){case Qe:ue.preventDefault(),bl(me,$e,Sy);break;case Ct:ue.preventDefault(),bl(me,$e,wy);break;case"Home":ue.preventDefault(),bl(me,null,wy);break;case"End":ue.preventDefault(),bl(me,null,Sy);break}},Pe=De();return d.jsxs(rN,S({className:le(g.root,f),ownerState:E,ref:n,as:h},H,{children:[Pe.scrollButtonStart,Pe.scrollbarSizeListener,d.jsxs(oN,{className:g.scroller,ownerState:E,style:{overflow:ne.overflow,[q?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-ne.scrollbarWidth},ref:W,children:[d.jsx(iN,{"aria-label":a,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:g.flexContainer,ownerState:E,onKeyDown:ye,ref:ae,role:"tablist",children:Ye}),L&&Ge]}),Pe.scrollButtonEnd]}))});function lN(e){return be("MuiTextField",e)}we("MuiTextField",["root"]);const cN=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],uN={standard:$m,filled:Em,outlined:jm},dN=e=>{const{classes:t}=e;return Se({root:["root"]},lN,t)},fN=ie(sd,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),it=p.forwardRef(function(t,n){const r=ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:w=!1,helperText:y,id:x,InputLabelProps:C,inputProps:v,InputProps:m,inputRef:b,label:k,maxRows:R,minRows:T,multiline:P=!1,name:j,onBlur:N,onChange:I,onFocus:F,placeholder:H,required:U=!1,rows:q,select:ee=!1,SelectProps:J,type:re,value:O,variant:_="outlined"}=r,E=se(r,cN),g=S({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:w,multiline:P,required:U,select:ee,variant:_}),$=dN(g),z={};_==="outlined"&&(C&&typeof C.shrink<"u"&&(z.notched=C.shrink),z.label=k),ee&&((!J||!J.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const L=_s(x),B=y&&L?`${L}-helper-text`:void 0,V=k&&L?`${L}-label`:void 0,M=uN[_],A=d.jsx(M,S({"aria-describedby":B,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:w,multiline:P,name:j,rows:q,maxRows:R,minRows:T,type:re,value:O,id:L,inputRef:b,onBlur:N,onChange:I,onFocus:F,placeholder:H,inputProps:v},z,m));return d.jsxs(fN,S({className:le($.root,s),disabled:u,error:f,fullWidth:w,ref:n,required:U,color:l,variant:_,ownerState:g},E,{children:[k!=null&&k!==""&&d.jsx(ld,S({htmlFor:L,id:V},C,{children:k})),ee?d.jsx(Us,S({"aria-describedby":B,id:L,labelId:V,value:O,input:A},J,{children:a})):A,y&&d.jsx(u_,S({id:B},h,{children:y}))]}))});var Im={},af={};const pN=Lr(m5);var ky;function je(){return ky||(ky=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=pN}(af)),af}var hN=Te;Object.defineProperty(Im,"__esModule",{value:!0});var ra=Im.default=void 0,mN=hN(je()),gN=d;ra=Im.default=(0,mN.default)((0,gN.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _m={},vN=Te;Object.defineProperty(_m,"__esModule",{value:!0});var Lm=_m.default=void 0,yN=vN(je()),xN=d;Lm=_m.default=(0,yN.default)((0,xN.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"Mic");var Am={},bN=Te;Object.defineProperty(Am,"__esModule",{value:!0});var Nm=Am.default=void 0,wN=bN(je()),SN=d;Nm=Am.default=(0,wN.default)((0,SN.jsx)("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"}),"MicOff");var Dm={},CN=Te;Object.defineProperty(Dm,"__esModule",{value:!0});var cd=Dm.default=void 0,kN=CN(je()),RN=d;cd=Dm.default=(0,kN.default)((0,RN.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var zm={},PN=Te;Object.defineProperty(zm,"__esModule",{value:!0});var _c=zm.default=void 0,EN=PN(je()),TN=d;_c=zm.default=(0,EN.default)((0,TN.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp");var Bm={},$N=Te;Object.defineProperty(Bm,"__esModule",{value:!0});var Lc=Bm.default=void 0,MN=$N(je()),jN=d;Lc=Bm.default=(0,MN.default)((0,jN.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff");var Fm={},ON=Te;Object.defineProperty(Fm,"__esModule",{value:!0});var Um=Fm.default=void 0,IN=ON(je()),_N=d;Um=Fm.default=(0,IN.default)((0,_N.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9h-4v4h-2v-4H9V9h4V5h2v4h4z"}),"LibraryAdd");const Pi="/assets/Aria-BMTE8U_Y.jpg";var LN={exports:{}};(function(e){/** * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows. * @summary Record audio, video or screen inside the browser. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -210,7 +210,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc. * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.} - */function t(E,g){if(!E)throw"First parameter is required.";g=g||{type:"video"},g=new n(E,g);var $=this;function z(H){return g.disableLogs||console.log("RecordRTC version: ",$.version),H&&(g=new n(E,H)),g.disableLogs||console.log("started recording "+g.type+" stream."),ne?(ne.clearRecordedData(),ne.record(),q("recording"),$.recordingDuration&&Y(),$):(L(function(){$.recordingDuration&&Y()}),$)}function L(H){H&&(g.initCallback=function(){H(),H=g.initCallback=null});var ae=new r(E,g);ne=new ae(E,g),ne.record(),q("recording"),g.disableLogs||console.log("Initialized recorderType:",ne.constructor.name,"for output-type:",g.type)}function B(H){if(H=H||function(){},!ne){te();return}if($.state==="paused"){$.resumeRecording(),setTimeout(function(){B(H)},1);return}$.state!=="recording"&&!g.disableLogs&&console.warn('Recording state should be: "recording", however current state is: ',$.state),g.disableLogs||console.log("Stopped recording "+g.type+" stream."),g.type!=="gif"?ne.stop(ae):(ne.stop(),ae()),q("stopped");function ae(ge){if(!ne){typeof H.call=="function"?H.call($,""):H("");return}Object.keys(ne).forEach(function(fe){typeof ne[fe]!="function"&&($[fe]=ne[fe])});var D=ne.blob;if(!D)if(ge)ne.blob=D=ge;else throw"Recording failed.";if(D&&!g.disableLogs&&console.log(D.type,"->",v(D.size)),H){var X;try{X=u.createObjectURL(D)}catch{}typeof H.call=="function"?H.call($,X):H(X)}g.autoWriteToDisk&&K(function(fe){var pe={};pe[g.type+"Blob"]=fe,G.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}q("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}q("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(H){postMessage(new FileReaderSync().readAsDataURL(H))}function K(H,ae){if(!H)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){K(H,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){H(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){H(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function Y(H){if(H=H||0,$.state==="paused"){setTimeout(function(){Y(H)},1e3);return}if($.state!=="stopped"){if(H>=$.recordingDuration){B($.onRecordingStopped);return}H+=1e3,setTimeout(function(){Y(H)},1e3)}}function q(H){$&&($.state=H,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,H):$.onStateChanged(H))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(H,ae){if(typeof H>"u")throw"recordingDuration is required.";if(typeof H!="number")throw"recordingDuration must be a number.";return $.recordingDuration=H,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:K,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(H){if(!ne){te();return}m(ne.blob,H)},getFromDisk:function(H){if(!ne){te();return}t.getFromDisk(g.type,H)},setAdvertisementArray:function(H){g.advertisement=[];for(var ae=H.length,ge=0;ge",v(D.size)),W){var X;try{X=u.createObjectURL(D)}catch{}typeof W.call=="function"?W.call($,X):W(X)}g.autoWriteToDisk&&G(function(fe){var pe={};pe[g.type+"Blob"]=fe,q.Store(pe)})}}function V(){if(!ne){te();return}if($.state!=="recording"){g.disableLogs||console.warn("Unable to pause the recording. Recording state: ",$.state);return}K("paused"),ne.pause(),g.disableLogs||console.log("Paused recording.")}function M(){if(!ne){te();return}if($.state!=="paused"){g.disableLogs||console.warn("Unable to resume the recording. Recording state: ",$.state);return}K("recording"),ne.resume(),g.disableLogs||console.log("Resumed recording.")}function A(W){postMessage(new FileReaderSync().readAsDataURL(W))}function G(W,ae){if(!W)throw"Pass a callback function over getDataURL.";var ge=ae?ae.blob:(ne||{}).blob;if(!ge){g.disableLogs||console.warn("Blob encoder did not finish its job yet."),setTimeout(function(){G(W,ae)},1e3);return}if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var D=fe(A);D.onmessage=function(pe){W(pe.data)},D.postMessage(ge)}else{var X=new FileReader;X.readAsDataURL(ge),X.onload=function(pe){W(pe.target.result)}}function fe(pe){try{var ve=u.createObjectURL(new Blob([pe.toString(),"this.onmessage = function (eee) {"+pe.name+"(eee.data);}"],{type:"application/javascript"})),Ce=new Worker(ve);return u.revokeObjectURL(ve),Ce}catch{}}}function Y(W){if(W=W||0,$.state==="paused"){setTimeout(function(){Y(W)},1e3);return}if($.state!=="stopped"){if(W>=$.recordingDuration){B($.onRecordingStopped);return}W+=1e3,setTimeout(function(){Y(W)},1e3)}}function K(W){$&&($.state=W,typeof $.onStateChanged.call=="function"?$.onStateChanged.call($,W):$.onStateChanged(W))}var oe='It seems that recorder is destroyed or "startRecording" is not invoked for '+g.type+" recorder.";function te(){g.disableLogs!==!0&&console.warn(oe)}var ne,de={startRecording:z,stopRecording:B,pauseRecording:V,resumeRecording:M,initRecorder:L,setRecordingDuration:function(W,ae){if(typeof W>"u")throw"recordingDuration is required.";if(typeof W!="number")throw"recordingDuration must be a number.";return $.recordingDuration=W,$.onRecordingStopped=ae||function(){},{onRecordingStopped:function(ge){$.onRecordingStopped=ge}}},clearRecordedData:function(){if(!ne){te();return}ne.clearRecordedData(),g.disableLogs||console.log("Cleared old recorded data.")},getBlob:function(){if(!ne){te();return}return ne.blob},getDataURL:G,toURL:function(){if(!ne){te();return}return u.createObjectURL(ne.blob)},getInternalRecorder:function(){return ne},save:function(W){if(!ne){te();return}m(ne.blob,W)},getFromDisk:function(W){if(!ne){te();return}t.getFromDisk(g.type,W)},setAdvertisementArray:function(W){g.advertisement=[];for(var ae=W.length,ge=0;ge"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function R(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function k(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(q){$.read(q)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),K=this.result.slice($.metadataSize),Y=new Blob([A,K],{type:"video/webm"});g(Y)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=R,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** + */function o(E){this.addStream=function(g){g&&(E=g)},this.mediaType={audio:!0,video:!0},this.startRecording=function(){var g=this.mediaType,$,z=this.mimeType||{audio:null,video:null,gif:null};if(typeof g.audio!="function"&&j()&&!k(E,"audio").length&&(g.audio=!1),typeof g.video!="function"&&j()&&!k(E,"video").length&&(g.video=!1),typeof g.gif!="function"&&j()&&!k(E,"video").length&&(g.gif=!1),!g.audio&&!g.video&&!g.gif)throw"MediaStream must have either audio or video tracks.";if(g.audio&&($=null,typeof g.audio=="function"&&($=g.audio),this.audioRecorder=new t(E,{type:"audio",bufferSize:this.bufferSize,sampleRate:this.sampleRate,numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:$,mimeType:z.audio,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp}),g.video||this.audioRecorder.startRecording()),g.video){$=null,typeof g.video=="function"&&($=g.video);var L=E;if(j()&&g.audio&&typeof g.audio=="function"){var B=k(E,"video")[0];w?(L=new C,L.addTrack(B),$&&$===H&&($=N)):(L=new C,L.addTrack(B))}this.videoRecorder=new t(L,{type:"video",video:this.video,canvas:this.canvas,frameInterval:this.frameInterval||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.video,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp,workerPath:this.workerPath,webAssemblyPath:this.webAssemblyPath,frameRate:this.frameRate,bitrate:this.bitrate}),g.audio||this.videoRecorder.startRecording()}if(g.audio&&g.video){var V=this,M=j()===!0;(g.audio instanceof I&&g.video||g.audio!==!0&&g.video!==!0&&g.audio!==g.video)&&(M=!1),M===!0?(V.audioRecorder=null,V.videoRecorder.startRecording()):V.videoRecorder.initRecorder(function(){V.audioRecorder.initRecorder(function(){V.videoRecorder.startRecording(),V.audioRecorder.startRecording()})})}g.gif&&($=null,typeof g.gif=="function"&&($=g.gif),this.gifRecorder=new t(E,{type:"gif",frameRate:this.frameRate||200,quality:this.quality||10,disableLogs:this.disableLogs,recorderType:$,mimeType:z.gif}),this.gifRecorder.startRecording())},this.stopRecording=function(g){g=g||function(){},this.audioRecorder&&this.audioRecorder.stopRecording(function($){g($,"audio")}),this.videoRecorder&&this.videoRecorder.stopRecording(function($){g($,"video")}),this.gifRecorder&&this.gifRecorder.stopRecording(function($){g($,"gif")})},this.pauseRecording=function(){this.audioRecorder&&this.audioRecorder.pauseRecording(),this.videoRecorder&&this.videoRecorder.pauseRecording(),this.gifRecorder&&this.gifRecorder.pauseRecording()},this.resumeRecording=function(){this.audioRecorder&&this.audioRecorder.resumeRecording(),this.videoRecorder&&this.videoRecorder.resumeRecording(),this.gifRecorder&&this.gifRecorder.resumeRecording()},this.getBlob=function(g){var $={};return this.audioRecorder&&($.audio=this.audioRecorder.getBlob()),this.videoRecorder&&($.video=this.videoRecorder.getBlob()),this.gifRecorder&&($.gif=this.gifRecorder.getBlob()),g&&g($),$},this.destroy=function(){this.audioRecorder&&(this.audioRecorder.destroy(),this.audioRecorder=null),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.gifRecorder&&(this.gifRecorder.destroy(),this.gifRecorder=null)},this.getDataURL=function(g){this.getBlob(function(L){L.audio&&L.video?$(L.audio,function(B){$(L.video,function(V){g({audio:B,video:V})})}):L.audio?$(L.audio,function(B){g({audio:B})}):L.video&&$(L.video,function(B){g({video:B})})});function $(L,B){if(typeof Worker<"u"){var V=z(function(G){postMessage(new FileReaderSync().readAsDataURL(G))});V.onmessage=function(A){B(A.data)},V.postMessage(L)}else{var M=new FileReader;M.readAsDataURL(L),M.onload=function(A){B(A.target.result)}}}function z(L){var B=u.createObjectURL(new Blob([L.toString(),"this.onmessage = function (eee) {"+L.name+"(eee.data);}"],{type:"application/javascript"})),V=new Worker(B),M;if(typeof u<"u")M=u;else if(typeof webkitURL<"u")M=webkitURL;else throw"Neither URL nor webkitURL detected.";return M.revokeObjectURL(B),V}},this.writeToDisk=function(){t.writeToDisk({audio:this.audioRecorder,video:this.videoRecorder,gif:this.gifRecorder})},this.save=function(g){g=g||{audio:!0,video:!0,gif:!0},g.audio&&this.audioRecorder&&this.audioRecorder.save(typeof g.audio=="string"?g.audio:""),g.video&&this.videoRecorder&&this.videoRecorder.save(typeof g.video=="string"?g.video:""),g.gif&&this.gifRecorder&&this.gifRecorder.save(typeof g.gif=="string"?g.gif:"")}}o.getFromDisk=t.getFromDisk,o.writeToDisk=t.writeToDisk,typeof t<"u"&&(t.MRecordRTC=o);var i="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(E){E&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:i,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(E.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var g={getContext:function(){return g},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return g},E.HTMLVideoElement=function(){}),typeof location>"u"&&(E.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(E.screen={width:0,height:0}),typeof u>"u"&&(E.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),E.window=rt))})(typeof rt<"u"?rt:null);var a=window.requestAnimationFrame;if(typeof a>"u"){if(typeof webkitRequestAnimationFrame<"u")a=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")a=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")a=msRequestAnimationFrame;else if(typeof a>"u"){var s=0;a=function(E,g){var $=new Date().getTime(),z=Math.max(0,16-($-s)),L=setTimeout(function(){E($+z)},z);return s=$+z,L}}}var l=window.cancelAnimationFrame;typeof l>"u"&&(typeof webkitCancelAnimationFrame<"u"?l=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?l=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?l=msCancelAnimationFrame:typeof l>"u"&&(l=function(E){clearTimeout(E)}));var c=window.AudioContext;typeof c>"u"&&(typeof webkitAudioContext<"u"&&(c=webkitAudioContext),typeof mozAudioContext<"u"&&(c=mozAudioContext));var u=window.URL;typeof u>"u"&&typeof webkitURL<"u"&&(u=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var f=navigator.userAgent.indexOf("Edge")!==-1&&(!!navigator.msSaveBlob||!!navigator.msSaveOrOpenBlob),h=!!window.opera||navigator.userAgent.indexOf("OPR/")!==-1,w=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),y=!h&&!f&&!!navigator.webkitGetUserMedia||b()||navigator.userAgent.toLowerCase().indexOf("chrome/")!==-1,x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);x&&!y&&navigator.userAgent.indexOf("CriOS")!==-1&&(x=!1,y=!0);var C=window.MediaStream;typeof C>"u"&&typeof webkitMediaStream<"u"&&(C=webkitMediaStream),typeof C<"u"&&typeof C.prototype.stop>"u"&&(C.prototype.stop=function(){this.getTracks().forEach(function(E){E.stop()})});function v(E){var g=1e3,$=["Bytes","KB","MB","GB","TB"];if(E===0)return"0 Bytes";var z=parseInt(Math.floor(Math.log(E)/Math.log(g)),10);return(E/Math.pow(g,z)).toPrecision(3)+" "+$[z]}function m(E,g){if(!E)throw"Blob object is required.";if(!E.type)try{E.type="video/webm"}catch{}var $=(E.type||"video/webm").split("/")[1];if($.indexOf(";")!==-1&&($=$.split(";")[0]),g&&g.indexOf(".")!==-1){var z=g.split(".");g=z[0],$=z[1]}var L=(g||Math.round(Math.random()*9999999999)+888888888)+"."+$;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(E,L);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(E,L);var B=document.createElement("a");B.href=u.createObjectURL(E),B.download=L,B.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(B),typeof B.click=="function"?B.click():(B.target="_blank",B.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),u.revokeObjectURL(B.href)}function b(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}function k(E,g){return!E||!E.getTracks?[]:E.getTracks().filter(function($){return $.kind===(g||"audio")})}function R(E,g){"srcObject"in g?g.srcObject=E:"mozSrcObject"in g?g.mozSrcObject=E:g.srcObject=E}function T(E,g){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var $=new EBML.Reader,z=new EBML.Decoder,L=EBML.tools,B=new FileReader;B.onload=function(V){var M=z.decode(this.result);M.forEach(function(K){$.read(K)}),$.stop();var A=L.makeMetadataSeekable($.metadatas,$.duration,$.cues),G=this.result.slice($.metadataSize),Y=new Blob([A,G],{type:"video/webm"});g(Y)},B.readAsArrayBuffer(E)}typeof t<"u"&&(t.invokeSaveAsDialog=m,t.getTracks=k,t.getSeekableBlob=T,t.bytesToSize=v,t.isElectron=b);/** * Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext". * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -298,7 +298,7 @@ Error generating stack: `+i.message+` * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000} * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser. - */function N(E,g){var Y=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(R(E,"video").length&&R(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(R(E,"audio")[0])):$=new C(R(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){Y.blob=null,Y.clearRecordedData(),Y.timestamps=[],K=[],z=[];var q=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",q),M&&(M=null),y&&!j()&&(q="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&q.mimeType&&(MediaRecorder.isTypeSupported(q.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType),q.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,q),g.mimeType=q.mimeType}catch{M=new MediaRecorder(E)}q.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(q.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",q.mimeType)),M.ondataavailable=function(oe){if(oe.data&&K.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||Y.blob){Y.recordingCallback&&(Y.recordingCallback(new Blob([],{type:B(q)})),Y.recordingCallback=null);return}Y.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(q)}),Y.recordingCallback&&(Y.recordingCallback(Y.blob),Y.recordingCallback=null)},M.onstart=function(){K.push("started")},M.onpause=function(){K.push("paused")},M.onresume=function(){K.push("resumed")},M.onstop=function(){K.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),K.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",q.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!Y.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){Y.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(Y.timestamps[Y.timestamps.length-1],Y.timestamps)}function B(q){return M&&M.mimeType?M.mimeType:q.mimeType||"video/webm"}this.stop=function(q){q=q||function(){},Y.manuallyStopped=!0,M&&(this.recordingCallback=q,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){Y.blob=new Blob(z,{type:B(g)}),Y.recordingCallback(Y.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&Y.stop(V),V()};function V(){z=[],M=null,Y.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var K=[];this.getAllStates=function(){return K},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var Y=this;(function q(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),Y.stop();return}setTimeout(q,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** + */function N(E,g){var Y=this;if(typeof E>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";if(g=g||{mimeType:"video/webm"},g.type==="audio"){if(k(E,"video").length&&k(E,"audio").length){var $;navigator.mozGetUserMedia?($=new C,$.addTrack(k(E,"audio")[0])):$=new C(k(E,"audio")),E=$}(!g.mimeType||g.mimeType.toString().toLowerCase().indexOf("audio")===-1)&&(g.mimeType=y?"audio/webm":"audio/ogg"),g.mimeType&&g.mimeType.toString().toLowerCase()!=="audio/ogg"&&navigator.mozGetUserMedia&&(g.mimeType="audio/ogg")}var z=[];this.getArrayOfBlobs=function(){return z},this.record=function(){Y.blob=null,Y.clearRecordedData(),Y.timestamps=[],G=[],z=[];var K=g;g.disableLogs||console.log("Passing following config over MediaRecorder API.",K),M&&(M=null),y&&!j()&&(K="video/vp8"),typeof MediaRecorder.isTypeSupported=="function"&&K.mimeType&&(MediaRecorder.isTypeSupported(K.mimeType)||(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",K.mimeType),K.mimeType=g.type==="audio"?"audio/webm":"video/webm"));try{M=new MediaRecorder(E,K),g.mimeType=K.mimeType}catch{M=new MediaRecorder(E)}K.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in M&&M.canRecordMimeType(K.mimeType)===!1&&(g.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",K.mimeType)),M.ondataavailable=function(oe){if(oe.data&&G.push("ondataavailable: "+v(oe.data.size)),typeof g.timeSlice=="number"){if(oe.data&&oe.data.size&&(z.push(oe.data),L(),typeof g.ondataavailable=="function")){var te=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(K)});g.ondataavailable(te)}return}if(!oe.data||!oe.data.size||oe.data.size<100||Y.blob){Y.recordingCallback&&(Y.recordingCallback(new Blob([],{type:B(K)})),Y.recordingCallback=null);return}Y.blob=g.getNativeBlob?oe.data:new Blob([oe.data],{type:B(K)}),Y.recordingCallback&&(Y.recordingCallback(Y.blob),Y.recordingCallback=null)},M.onstart=function(){G.push("started")},M.onpause=function(){G.push("paused")},M.onresume=function(){G.push("resumed")},M.onstop=function(){G.push("stopped")},M.onerror=function(oe){oe&&(oe.name||(oe.name="UnknownError"),G.push("error: "+oe),g.disableLogs||(oe.name.toString().toLowerCase().indexOf("invalidstate")!==-1?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",oe):oe.name.toString().toLowerCase().indexOf("notsupported")!==-1?console.error("MIME type (",K.mimeType,") is not supported.",oe):oe.name.toString().toLowerCase().indexOf("security")!==-1?console.error("MediaRecorder security error",oe):oe.name==="OutOfMemory"?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="IllegalStreamModification"?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="OtherRecordingError"?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",oe):oe.name==="GenericError"?console.error("The UA cannot provide the codec or recording option that has been requested.",oe):console.error("MediaRecorder Error",oe)),function(te){if(!Y.manuallyStopped&&M&&M.state==="inactive"){delete g.timeslice,M.start(10*60*1e3);return}setTimeout(te,1e3)}(),M.state!=="inactive"&&M.state!=="stopped"&&M.stop())},typeof g.timeSlice=="number"?(L(),M.start(g.timeSlice)):M.start(36e5),g.initCallback&&g.initCallback()},this.timestamps=[];function L(){Y.timestamps.push(new Date().getTime()),typeof g.onTimeStamp=="function"&&g.onTimeStamp(Y.timestamps[Y.timestamps.length-1],Y.timestamps)}function B(K){return M&&M.mimeType?M.mimeType:K.mimeType||"video/webm"}this.stop=function(K){K=K||function(){},Y.manuallyStopped=!0,M&&(this.recordingCallback=K,M.state==="recording"&&M.stop(),typeof g.timeSlice=="number"&&setTimeout(function(){Y.blob=new Blob(z,{type:B(g)}),Y.recordingCallback(Y.blob)},100))},this.pause=function(){M&&M.state==="recording"&&M.pause()},this.resume=function(){M&&M.state==="paused"&&M.resume()},this.clearRecordedData=function(){M&&M.state==="recording"&&Y.stop(V),V()};function V(){z=[],M=null,Y.timestamps=[]}var M;this.getInternalRecorder=function(){return M};function A(){if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.blob=null,this.getState=function(){return M&&M.state||"inactive"};var G=[];this.getAllStates=function(){return G},typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!1);var Y=this;(function K(){if(!(!M||g.checkForInactiveTracks===!1)){if(A()===!1){g.disableLogs||console.log("MediaStream seems stopped."),Y.stop();return}setTimeout(K,1e3)}})(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MediaStreamRecorder=N);/** * StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome. * @summary JavaScript standalone object for stereo audio recording. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -317,7 +317,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.} - */function O(E,g){if(!R(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,K=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function Y(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function q(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],ke=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(ke)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(ke,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(ke,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(ke=M.bufferSize);var H=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(H<22050||H>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=K,$.sampleRate=H,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(Y()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=ke,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=ke,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=K,this.sampleRate=H,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(q({desiredSampRate:K,sampleRate:H,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=O);/** + */function I(E,g){if(!k(E,"audio").length)throw"Your stream has no audio tracks.";g=g||{};var $=this,z=[],L=[],B=!1,V=0,M,A=2,G=g.desiredSampRate;g.leftChannel===!0&&(A=1),g.numberOfAudioChannels===1&&(A=1),(!A||A<1)&&(A=2),g.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+A),typeof g.checkForInactiveTracks>"u"&&(g.checkForInactiveTracks=!0);function Y(){if(g.checkForInactiveTracks===!1)return!0;if("active"in E){if(!E.active)return!1}else if("ended"in E&&E.ended)return!1;return!0}this.record=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";ge(),X=ae=!1,B=!0,typeof g.timeSlice<"u"&&ve()};function K(Ce,Le){function De(he,Ge){var Xe=he.numberOfAudioChannels,Ye=he.leftBuffers.slice(0),ye=he.rightBuffers.slice(0),Pe=he.sampleRate,ue=he.internalInterleavedLength,me=he.desiredSampRate;Xe===2&&(Ye=Qe(Ye,ue),ye=Qe(ye,ue),me&&(Ye=$e(Ye,me,Pe),ye=$e(ye,me,Pe))),Xe===1&&(Ye=Qe(Ye,ue),me&&(Ye=$e(Ye,me,Pe))),me&&(Pe=me);function $e(tt,en,nt){var Tt=Math.round(tt.length*(en/nt)),It=[],qt=Number((tt.length-1)/(Tt-1));It[0]=tt[0];for(var Gn=1;Gn"u"&&(t.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!t.Storage.AudioContextConstructor||t.Storage.AudioContextConstructor.state==="closed")&&(t.Storage.AudioContextConstructor=new t.Storage.AudioContext);var te=t.Storage.AudioContextConstructor,ne=te.createMediaStreamSource(E),de=[0,256,512,1024,2048,4096,8192,16384],Re=typeof g.bufferSize>"u"?4096:g.bufferSize;if(de.indexOf(Re)===-1&&(g.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(de,null," "))),te.createJavaScriptNode)M=te.createJavaScriptNode(Re,A,A);else if(te.createScriptProcessor)M=te.createScriptProcessor(Re,A,A);else throw"WebAudio API has no support on this browser.";ne.connect(M),g.bufferSize||(Re=M.bufferSize);var W=typeof g.sampleRate<"u"?g.sampleRate:te.sampleRate||44100;(W<22050||W>96e3)&&(g.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),g.disableLogs||g.desiredSampRate&&console.log("Desired sample-rate: "+g.desiredSampRate);var ae=!1;this.pause=function(){ae=!0},this.resume=function(){if(Y()===!1)throw"Please make sure MediaStream is active.";if(!B){g.disableLogs||console.log("Seems recording has been restarted."),this.record();return}ae=!1},this.clearRecordedData=function(){g.checkForInactiveTracks=!1,B&&this.stop(D),D()};function ge(){z=[],L=[],V=0,X=!1,B=!1,ae=!1,te=null,$.leftchannel=z,$.rightchannel=L,$.numberOfAudioChannels=A,$.desiredSampRate=G,$.sampleRate=W,$.recordingLength=V,pe={left:[],right:[],recordingLength:0}}function D(){M&&(M.onaudioprocess=null,M.disconnect(),M=null),ne&&(ne.disconnect(),ne=null),ge()}this.name="StereoAudioRecorder",this.toString=function(){return this.name};var X=!1;function fe(Ce){if(!ae){if(Y()===!1&&(g.disableLogs||console.log("MediaStream seems stopped."),M.disconnect(),B=!1),!B){ne&&(ne.disconnect(),ne=null);return}X||(X=!0,g.onAudioProcessStarted&&g.onAudioProcessStarted(),g.initCallback&&g.initCallback());var Le=Ce.inputBuffer.getChannelData(0),De=new Float32Array(Le);if(z.push(De),A===2){var Ee=Ce.inputBuffer.getChannelData(1),he=new Float32Array(Ee);L.push(he)}V+=Re,$.recordingLength=V,typeof g.timeSlice<"u"&&(pe.recordingLength+=Re,pe.left.push(De),A===2&&pe.right.push(he))}}M.onaudioprocess=fe,te.createMediaStreamDestination?M.connect(te.createMediaStreamDestination()):M.connect(te.destination),this.leftchannel=z,this.rightchannel=L,this.numberOfAudioChannels=A,this.desiredSampRate=G,this.sampleRate=W,$.recordingLength=V;var pe={left:[],right:[],recordingLength:0};function ve(){!B||typeof g.ondataavailable!="function"||typeof g.timeSlice>"u"||(pe.left.length?(K({desiredSampRate:G,sampleRate:W,numberOfAudioChannels:A,internalInterleavedLength:pe.recordingLength,leftBuffers:pe.left,rightBuffers:A===1?[]:pe.right},function(Ce,Le){var De=new Blob([Le],{type:"audio/wav"});g.ondataavailable(De),setTimeout(ve,g.timeSlice)}),pe={left:[],right:[],recordingLength:0}):setTimeout(ve,g.timeSlice))}}typeof t<"u"&&(t.StereoAudioRecorder=I);/** * CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}. * @summary HTML2Canvas recording into video WebM. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -333,7 +333,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc. * @param {object} config - {disableLogs:true, initCallback: function} - */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var ke=new C;ke.addTrack(R(de,"video")[0]),de=ke}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var ke=ne.frames.length;ne.frames.forEach(function(H,ae){var ge=ke-ae;g.disableLogs||console.log(ge+"/"+ke+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,ke);var D=H.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var ke=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(H){g.disableLogs||console.log("Recording finished!"),ke.blob=H,ke.blob.forEach&&(ke.blob=new Blob([],{type:"video/webm"})),de&&de(ke.blob),ne.frames=[]})})};var K=!1;this.pause=function(){if(K=!0,M instanceof N){M.pause();return}},this.resume=function(){if(K=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(Y),Y()};function Y(){ne.frames=[],A=!1,K=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function q(){var de=document.createElement("canvas"),ke=de.getContext("2d");return de.width=E.width,de.height=E.height,ke.drawImage(E,0,0),de}function oe(){if(K)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:q(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(ke){var H=new Date().getTime()-te;if(!H)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:ke.toDataURL("image/webp",1),duration:H}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** + */function F(E,g){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";g=g||{},g.frameInterval||(g.frameInterval=10);var $=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(de){de in document.createElement("canvas")&&($=!0)});var z=(!!window.webkitRTCPeerConnection||!!window.webkitGetUserMedia)&&!!window.chrome,L=50,B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);z&&B&&B[2]&&(L=parseInt(B[2],10)),z&&L<52&&($=!1),g.useWhammyRecorder&&($=!1);var V,M;if($)if(g.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),E instanceof HTMLCanvasElement)V=E;else if(E instanceof CanvasRenderingContext2D)V=E.canvas;else throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";else navigator.mozGetUserMedia&&(g.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));var A;this.record=function(){if(A=!0,$&&!g.useWhammyRecorder){var de;"captureStream"in V?de=V.captureStream(25):"mozCaptureStream"in V?de=V.mozCaptureStream(25):"webkitCaptureStream"in V&&(de=V.webkitCaptureStream(25));try{var Re=new C;Re.addTrack(k(de,"video")[0]),de=Re}catch{}if(!de)throw"captureStream API are NOT available.";M=new N(de,{mimeType:g.mimeType||"video/webm"}),M.record()}else ne.frames=[],te=new Date().getTime(),oe();g.initCallback&&g.initCallback()},this.getWebPImages=function(de){if(E.nodeName.toLowerCase()!=="canvas"){de();return}var Re=ne.frames.length;ne.frames.forEach(function(W,ae){var ge=Re-ae;g.disableLogs||console.log(ge+"/"+Re+" frames remaining"),g.onEncodingCallback&&g.onEncodingCallback(ge,Re);var D=W.image.toDataURL("image/webp",1);ne.frames[ae].image=D}),g.disableLogs||console.log("Generating WebM"),de()},this.stop=function(de){A=!1;var Re=this;if($&&M){M.stop(de);return}this.getWebPImages(function(){ne.compile(function(W){g.disableLogs||console.log("Recording finished!"),Re.blob=W,Re.blob.forEach&&(Re.blob=new Blob([],{type:"video/webm"})),de&&de(Re.blob),ne.frames=[]})})};var G=!1;this.pause=function(){if(G=!0,M instanceof N){M.pause();return}},this.resume=function(){if(G=!1,M instanceof N){M.resume();return}A||this.record()},this.clearRecordedData=function(){A&&this.stop(Y),Y()};function Y(){ne.frames=[],A=!1,G=!1}this.name="CanvasRecorder",this.toString=function(){return this.name};function K(){var de=document.createElement("canvas"),Re=de.getContext("2d");return de.width=E.width,de.height=E.height,Re.drawImage(E,0,0),de}function oe(){if(G)return te=new Date().getTime(),setTimeout(oe,500);if(E.nodeName.toLowerCase()==="canvas"){var de=new Date().getTime()-te;te=new Date().getTime(),ne.frames.push({image:K(),duration:de}),A&&setTimeout(oe,g.frameInterval);return}html2canvas(E,{grabMouse:typeof g.showMousePointer>"u"||g.showMousePointer,onrendered:function(Re){var W=new Date().getTime()-te;if(!W)return setTimeout(oe,g.frameInterval);te=new Date().getTime(),ne.frames.push({image:Re.toDataURL("image/webp",1),duration:W}),A&&setTimeout(oe,g.frameInterval)}})}var te=new Date().getTime(),ne=new U.Video(100)}typeof t<"u"&&(t.CanvasRecorder=F);/** * WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}. * @summary Video recording feature in Chrome. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -349,7 +349,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.} - */function W(E,g){g=g||{},g.frameInterval||(g.frameInterval=10),g.disableLogs||console.log("Using frames-interval:",g.frameInterval),this.record=function(){g.width||(g.width=320),g.height||(g.height=240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),A.width=g.canvas.width||320,A.height=g.canvas.height||240,K=A.getContext("2d"),g.video&&g.video instanceof HTMLVideoElement?(Y=g.video.cloneNode(),g.initCallback&&g.initCallback()):(Y=document.createElement("video"),k(E,Y),Y.onloadedmetadata=function(){g.initCallback&&g.initCallback()},Y.width=g.video.width,Y.height=g.video.height),Y.muted=!0,Y.play(),q=new Date().getTime(),oe=new U.Video,g.disableLogs||(console.log("canvas resolutions",A.width,"*",A.height),console.log("video width/height",Y.width||A.width,"*",Y.height||A.height)),$(g.frameInterval)};function $(te){te=typeof te<"u"?te:10;var ne=new Date().getTime()-q;if(!ne)return setTimeout($,te,te);if(V)return q=new Date().getTime(),setTimeout($,100);q=new Date().getTime(),Y.paused&&Y.play(),K.drawImage(Y,0,0,A.width,A.height),oe.frames.push({duration:ne,image:A.toDataURL("image/webp")}),B||setTimeout($,te,te)}function z(te){var ne=-1,de=te.length;(function ke(){if(ne++,ne===de){te.callback();return}setTimeout(function(){te.functionToLoop(ke,ne)},1)})()}function L(te,ne,de,ke,H){var ae=document.createElement("canvas");ae.width=A.width,ae.height=A.height;var ge=ae.getContext("2d"),D=[],X=te.length,fe={r:0,g:0,b:0},pe=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),ve=0,Ce=0,Le=!1;z({length:X,functionToLoop:function(De,Ee){var he,Ge,Xe,Ye=function(){!Le&&Xe-he<=Xe*Ce||(Le=!0,D.push(te[Ee])),De()};if(Le)Ye();else{var ye=new Image;ye.onload=function(){ge.drawImage(ye,0,0,A.width,A.height);var Pe=ge.getImageData(0,0,A.width,A.height);he=0,Ge=Pe.data.length,Xe=Pe.data.length/4;for(var ue=0;ue0;)ae.push(H&255),H=H>>8;return new Uint8Array(ae.reverse())}function A(H){return new Uint8Array(H.split("").map(function(ae){return ae.charCodeAt(0)}))}function K(H){var ae=[],ge=H.length%8?new Array(9-H.length%8).join("0"):"";H=ge+H;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[H.trackNum|128,H.timecode>>8,H.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+H.frame;return ge}function oe(H){for(var ae=H.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:H}}function te(H,ae){return parseInt(H.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(H){for(var ae=0,ge={};ae0;)ae.push(W&255),W=W>>8;return new Uint8Array(ae.reverse())}function A(W){return new Uint8Array(W.split("").map(function(ae){return ae.charCodeAt(0)}))}function G(W){var ae=[],ge=W.length%8?new Array(9-W.length%8).join("0"):"";W=ge+W;for(var D=0;D127)throw"TrackNumber > 127 not supported";var ge=[W.trackNum|128,W.timecode>>8,W.timecode&255,ae].map(function(D){return String.fromCharCode(D)}).join("")+W.frame;return ge}function oe(W){for(var ae=W.RIFF[0].WEBP[0],ge=ae.indexOf("*"),D=0,X=[];D<4;D++)X[D]=ae.charCodeAt(ge+3+D);var fe,pe,ve;return ve=X[1]<<8|X[0],fe=ve&16383,ve=X[3]<<8|X[2],pe=ve&16383,{width:fe,height:pe,data:ae,riff:W}}function te(W,ae){return parseInt(W.substr(ae+4,4).split("").map(function(ge){var D=ge.charCodeAt(0).toString(2);return new Array(8-D.length+1).join("0")+D}).join(""),2)}function ne(W){for(var ae=0,ge={};ae"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(K){M.objectStore(E.dataStoreName).get(K).onsuccess=function(Y){E.callback&&E.callback(Y.target.result,K)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=G);/** + */var q={init:function(){var E=this;if(typeof indexedDB>"u"||typeof indexedDB.open>"u"){console.error("IndexedDB API are not available in this browser.");return}var g=1,$=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),z,L=indexedDB.open($,g);function B(M){M.createObjectStore(E.dataStoreName)}function V(){var M=z.transaction([E.dataStoreName],"readwrite");E.videoBlob&&M.objectStore(E.dataStoreName).put(E.videoBlob,"videoBlob"),E.gifBlob&&M.objectStore(E.dataStoreName).put(E.gifBlob,"gifBlob"),E.audioBlob&&M.objectStore(E.dataStoreName).put(E.audioBlob,"audioBlob");function A(G){M.objectStore(E.dataStoreName).get(G).onsuccess=function(Y){E.callback&&E.callback(Y.target.result,G)}}A("audioBlob"),A("videoBlob"),A("gifBlob")}L.onerror=E.onError,L.onsuccess=function(){if(z=L.result,z.onerror=E.onError,z.setVersion)if(z.version!==g){var M=z.setVersion(g);M.onsuccess=function(){B(z),V()}}else V();else V()},L.onupgradeneeded=function(M){B(M.target.result)}},Fetch:function(E){return this.callback=E,this.init(),this},Store:function(E){return this.audioBlob=E.audioBlob,this.videoBlob=E.videoBlob,this.gifBlob=E.gifBlob,this.init(),this},onError:function(E){console.error(JSON.stringify(E,null," "))},dataStoreName:"recordRTC",dbName:null};typeof t<"u"&&(t.DiskStorage=q);/** * GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} * @author {@link https://MuazKhan.com|Muaz Khan} @@ -400,7 +400,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D. * @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10} - */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=K.offsetWidth||320),g.height||(g.height=K.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,K.width=g.video.width||320,K.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);Y=a(ne),typeof q===void 0&&(q=de),!(de-q<90)&&(!z&&K.paused&&K.play(),z||M.drawImage(K,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),q=de)}}Y=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},Y&&l(Y),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var K=document.createElement("video");K.muted=!0,K.autoplay=!0,K.playsInline=!0,A=!1,K.onloadedmetadata=function(){A=!0},k(E,K),K.play()}var Y=null,q,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof K>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var K=window.URL;typeof K>"u"&&typeof webkitURL<"u"&&(K=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Y=window.MediaStream;typeof Y>"u"&&typeof webkitMediaStream<"u"&&(Y=webkitMediaStream),typeof Y<"u"&&typeof Y.prototype.stop>"u"&&(Y.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var q={};typeof A<"u"?q.AudioContext=A:typeof webkitAudioContext<"u"&&(q.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=ke(),X=H();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function ke(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new Y;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function H(){q.AudioContextConstructor||(q.AudioContextConstructor=new q.AudioContext),M.audioContext=q.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new Y;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** + */function ee(E,g){if(typeof GIFEncoder>"u"){var $=document.createElement("script");$.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild($)}g=g||{};var z=E instanceof CanvasRenderingContext2D||E instanceof HTMLCanvasElement;this.record=function(){if(typeof GIFEncoder>"u"){setTimeout(te.record,1e3);return}if(!A){setTimeout(te.record,1e3);return}z||(g.width||(g.width=G.offsetWidth||320),g.height||(g.height=G.offsetHeight||240),g.video||(g.video={width:g.width,height:g.height}),g.canvas||(g.canvas={width:g.width,height:g.height}),V.width=g.canvas.width||320,V.height=g.canvas.height||240,G.width=g.video.width||320,G.height=g.video.height||240),oe=new GIFEncoder,oe.setRepeat(0),oe.setDelay(g.frameRate||200),oe.setQuality(g.quality||10),oe.start(),typeof g.onGifRecordingStarted=="function"&&g.onGifRecordingStarted();function ne(de){if(te.clearedRecordedData!==!0){if(L)return setTimeout(function(){ne(de)},100);Y=a(ne),typeof K===void 0&&(K=de),!(de-K<90)&&(!z&&G.paused&&G.play(),z||M.drawImage(G,0,0,V.width,V.height),g.onGifPreview&&g.onGifPreview(V.toDataURL("image/png")),oe.addFrame(M),K=de)}}Y=a(ne),g.initCallback&&g.initCallback()},this.stop=function(ne){ne=ne||function(){},Y&&l(Y),this.blob=new Blob([new Uint8Array(oe.stream().bin)],{type:"image/gif"}),ne(this.blob),oe.stream().bin=[]};var L=!1;this.pause=function(){L=!0},this.resume=function(){L=!1},this.clearRecordedData=function(){te.clearedRecordedData=!0,B()};function B(){oe&&(oe.stream().bin=[])}this.name="GifRecorder",this.toString=function(){return this.name};var V=document.createElement("canvas"),M=V.getContext("2d");z&&(E instanceof CanvasRenderingContext2D?(M=E,V=M.canvas):E instanceof HTMLCanvasElement&&(M=E.getContext("2d"),V=E));var A=!0;if(!z){var G=document.createElement("video");G.muted=!0,G.autoplay=!0,G.playsInline=!0,A=!1,G.onloadedmetadata=function(){A=!0},R(E,G),G.play()}var Y=null,K,oe,te=this}typeof t<"u"&&(t.GifRecorder=ee);function J(E,g){var $="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";(function(D){typeof t<"u"||D&&(typeof window<"u"||typeof rt>"u"||(rt.navigator={userAgent:$,getUserMedia:function(){}},rt.console||(rt.console={}),(typeof rt.console.log>"u"||typeof rt.console.error>"u")&&(rt.console.error=rt.console.log=rt.console.log||function(){console.log(arguments)}),typeof document>"u"&&(D.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var X={getContext:function(){return X},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return X},D.HTMLVideoElement=function(){}),typeof location>"u"&&(D.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(D.screen={width:0,height:0}),typeof G>"u"&&(D.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),D.window=rt))})(typeof rt<"u"?rt:null),g=g||"multi-streams-mixer";var z=[],L=!1,B=document.createElement("canvas"),V=B.getContext("2d");B.style.opacity=0,B.style.position="absolute",B.style.zIndex=-1,B.style.top="-1000em",B.style.left="-1000em",B.className=g,(document.body||document.documentElement).appendChild(B),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var M=this,A=window.AudioContext;typeof A>"u"&&(typeof webkitAudioContext<"u"&&(A=webkitAudioContext),typeof mozAudioContext<"u"&&(A=mozAudioContext));var G=window.URL;typeof G>"u"&&typeof webkitURL<"u"&&(G=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Y=window.MediaStream;typeof Y>"u"&&typeof webkitMediaStream<"u"&&(Y=webkitMediaStream),typeof Y<"u"&&typeof Y.prototype.stop>"u"&&(Y.prototype.stop=function(){this.getTracks().forEach(function(D){D.stop()})});var K={};typeof A<"u"?K.AudioContext=A:typeof webkitAudioContext<"u"&&(K.AudioContext=webkitAudioContext);function oe(D,X){"srcObject"in X?X.srcObject=D:"mozSrcObject"in X?X.mozSrcObject=D:X.srcObject=D}this.startDrawingFrames=function(){te()};function te(){if(!L){var D=z.length,X=!1,fe=[];if(z.forEach(function(ve){ve.stream||(ve.stream={}),ve.stream.fullcanvas?X=ve:fe.push(ve)}),X)B.width=X.stream.width,B.height=X.stream.height;else if(fe.length){B.width=D>1?fe[0].width*2:fe[0].width;var pe=1;(D===3||D===4)&&(pe=2),(D===5||D===6)&&(pe=3),(D===7||D===8)&&(pe=4),(D===9||D===10)&&(pe=5),B.height=fe[0].height*pe}else B.width=M.width||360,B.height=M.height||240;X&&X instanceof HTMLVideoElement&&ne(X),fe.forEach(function(ve,Ce){ne(ve,Ce)}),setTimeout(te,M.frameInterval)}}function ne(D,X){if(!L){var fe=0,pe=0,ve=D.width,Ce=D.height;X===1&&(fe=D.width),X===2&&(pe=D.height),X===3&&(fe=D.width,pe=D.height),X===4&&(pe=D.height*2),X===5&&(fe=D.width,pe=D.height*2),X===6&&(pe=D.height*3),X===7&&(fe=D.width,pe=D.height*3),typeof D.stream.left<"u"&&(fe=D.stream.left),typeof D.stream.top<"u"&&(pe=D.stream.top),typeof D.stream.width<"u"&&(ve=D.stream.width),typeof D.stream.height<"u"&&(Ce=D.stream.height),V.drawImage(D,fe,pe,ve,Ce),typeof D.stream.onRender=="function"&&D.stream.onRender(V,fe,pe,ve,Ce,X)}}function de(){L=!1;var D=Re(),X=W();return X&&X.getTracks().filter(function(fe){return fe.kind==="audio"}).forEach(function(fe){D.addTrack(fe)}),E.forEach(function(fe){fe.fullcanvas}),D}function Re(){ge();var D;"captureStream"in B?D=B.captureStream():"mozCaptureStream"in B?D=B.mozCaptureStream():M.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var X=new Y;return D.getTracks().filter(function(fe){return fe.kind==="video"}).forEach(function(fe){X.addTrack(fe)}),B.stream=X,X}function W(){K.AudioContextConstructor||(K.AudioContextConstructor=new K.AudioContext),M.audioContext=K.AudioContextConstructor,M.audioSources=[],M.useGainNode===!0&&(M.gainNode=M.audioContext.createGain(),M.gainNode.connect(M.audioContext.destination),M.gainNode.gain.value=0);var D=0;if(E.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="audio"}).length){D++;var fe=M.audioContext.createMediaStreamSource(X);M.useGainNode===!0&&fe.connect(M.gainNode),M.audioSources.push(fe)}}),!!D)return M.audioDestination=M.audioContext.createMediaStreamDestination(),M.audioSources.forEach(function(X){X.connect(M.audioDestination)}),M.audioDestination.stream}function ae(D){var X=document.createElement("video");return oe(D,X),X.className=g,X.muted=!0,X.volume=0,X.width=D.width||M.width||360,X.height=D.height||M.height||240,X.play(),X}this.appendStreams=function(D){if(!D)throw"First parameter is required.";D instanceof Array||(D=[D]),D.forEach(function(X){var fe=new Y;if(X.getTracks().filter(function(Ce){return Ce.kind==="video"}).length){var pe=ae(X);pe.stream=X,z.push(pe),fe.addTrack(X.getTracks().filter(function(Ce){return Ce.kind==="video"})[0])}if(X.getTracks().filter(function(Ce){return Ce.kind==="audio"}).length){var ve=M.audioContext.createMediaStreamSource(X);M.audioDestination=M.audioContext.createMediaStreamDestination(),ve.connect(M.audioDestination),fe.addTrack(M.audioDestination.stream.getTracks().filter(function(Ce){return Ce.kind==="audio"})[0])}E.push(fe)})},this.releaseStreams=function(){z=[],L=!0,M.gainNode&&(M.gainNode.disconnect(),M.gainNode=null),M.audioSources.length&&(M.audioSources.forEach(function(D){D.disconnect()}),M.audioSources=[]),M.audioDestination&&(M.audioDestination.disconnect(),M.audioDestination=null),M.audioContext&&M.audioContext.close(),M.audioContext=null,V.clearRect(0,0,B.width,B.height),B.stream&&(B.stream.stop(),B.stream=null)},this.resetVideoStreams=function(D){D&&!(D instanceof Array)&&(D=[D]),ge(D)};function ge(D){z=[],D=D||E,D.forEach(function(X){if(X.getTracks().filter(function(pe){return pe.kind==="video"}).length){var fe=ae(X);fe.stream=X,z.push(fe)}})}this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=de}typeof t>"u"&&(e.exports=J);/** * MultiStreamRecorder can record multiple videos in single container. * @summary Multi-videos recorder. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -422,7 +422,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStreams} mediaStreams - Array of MediaStreams. * @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"} - */function re(E,g){E=E||[];var $=this,z,L;g=g||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}},g.frameInterval||(g.frameInterval=10),g.video||(g.video={}),g.video.width||(g.video.width=360),g.video.height||(g.video.height=240),this.record=function(){z=new J(E,g.elementClass||"multi-streams-mixer"),B().length&&(z.frameInterval=g.frameInterval||10,z.width=g.video.width||360,z.height=g.video.height||240,z.startDrawingFrames()),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()),L=new N(z.getMixedStream(),g),L.record()};function B(){var V=[];return E.forEach(function(M){R(M,"video").forEach(function(A){V.push(A)})}),V}this.stop=function(V){L&&L.stop(function(M){$.blob=M,V(M),$.clearRecordedData()})},this.pause=function(){L&&L.pause()},this.resume=function(){L&&L.resume()},this.clearRecordedData=function(){L&&(L.clearRecordedData(),L=null),z&&(z.releaseStreams(),z=null)},this.addStreams=function(V){if(!V)throw"First parameter is required.";V instanceof Array||(V=[V]),E.concat(V),!(!L||!z)&&(z.appendStreams(V),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()))},this.resetVideoStreams=function(V){z&&(V&&!(V instanceof Array)&&(V=[V]),z.resetVideoStreams(V))},this.getMixer=function(){return z},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MultiStreamRecorder=re);/** + */function re(E,g){E=E||[];var $=this,z,L;g=g||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}},g.frameInterval||(g.frameInterval=10),g.video||(g.video={}),g.video.width||(g.video.width=360),g.video.height||(g.video.height=240),this.record=function(){z=new J(E,g.elementClass||"multi-streams-mixer"),B().length&&(z.frameInterval=g.frameInterval||10,z.width=g.video.width||360,z.height=g.video.height||240,z.startDrawingFrames()),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()),L=new N(z.getMixedStream(),g),L.record()};function B(){var V=[];return E.forEach(function(M){k(M,"video").forEach(function(A){V.push(A)})}),V}this.stop=function(V){L&&L.stop(function(M){$.blob=M,V(M),$.clearRecordedData()})},this.pause=function(){L&&L.pause()},this.resume=function(){L&&L.resume()},this.clearRecordedData=function(){L&&(L.clearRecordedData(),L=null),z&&(z.releaseStreams(),z=null)},this.addStreams=function(V){if(!V)throw"First parameter is required.";V instanceof Array||(V=[V]),E.concat(V),!(!L||!z)&&(z.appendStreams(V),g.previewStream&&typeof g.previewStream=="function"&&g.previewStream(z.getMixedStream()))},this.resetVideoStreams=function(V){z&&(V&&!(V instanceof Array)&&(V=[V]),z.resetVideoStreams(V))},this.getMixer=function(){return z},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}typeof t<"u"&&(t.MultiStreamRecorder=re);/** * RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here} * @summary Promises for {@link RecordRTC} * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -442,7 +442,7 @@ Error generating stack: `+i.message+` * @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.} * @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing. * @requires {@link RecordRTC} - */function I(E,g){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof E>"u")throw'First argument "MediaStream" is required.';var $=this;$.recordRTC=new t(E,g),this.startRecording=function(){return new Promise(function(z,L){try{$.recordRTC.startRecording(),z()}catch(B){L(B)}})},this.stopRecording=function(){return new Promise(function(z,L){try{$.recordRTC.stopRecording(function(B){if($.blob=$.recordRTC.getBlob(),!$.blob||!$.blob.size){L("Empty blob.",$.blob);return}z(B)})}catch(B){L(B)}})},this.pauseRecording=function(){return new Promise(function(z,L){try{$.recordRTC.pauseRecording(),z()}catch(B){L(B)}})},this.resumeRecording=function(){return new Promise(function(z,L){try{$.recordRTC.resumeRecording(),z()}catch(B){L(B)}})},this.getDataURL=function(z){return new Promise(function(L,B){try{$.recordRTC.getDataURL(function(V){L(V)})}catch(V){B(V)}})},this.getBlob=function(){return new Promise(function(z,L){try{z($.recordRTC.getBlob())}catch(B){L(B)}})},this.getInternalRecorder=function(){return new Promise(function(z,L){try{z($.recordRTC.getInternalRecorder())}catch(B){L(B)}})},this.reset=function(){return new Promise(function(z,L){try{z($.recordRTC.reset())}catch(B){L(B)}})},this.destroy=function(){return new Promise(function(z,L){try{z($.recordRTC.destroy())}catch(B){L(B)}})},this.getState=function(){return new Promise(function(z,L){try{z($.recordRTC.getState())}catch(B){L(B)}})},this.blob=null,this.version="5.6.2"}typeof t<"u"&&(t.RecordRTCPromisesHandler=I);/** + */function O(E,g){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof E>"u")throw'First argument "MediaStream" is required.';var $=this;$.recordRTC=new t(E,g),this.startRecording=function(){return new Promise(function(z,L){try{$.recordRTC.startRecording(),z()}catch(B){L(B)}})},this.stopRecording=function(){return new Promise(function(z,L){try{$.recordRTC.stopRecording(function(B){if($.blob=$.recordRTC.getBlob(),!$.blob||!$.blob.size){L("Empty blob.",$.blob);return}z(B)})}catch(B){L(B)}})},this.pauseRecording=function(){return new Promise(function(z,L){try{$.recordRTC.pauseRecording(),z()}catch(B){L(B)}})},this.resumeRecording=function(){return new Promise(function(z,L){try{$.recordRTC.resumeRecording(),z()}catch(B){L(B)}})},this.getDataURL=function(z){return new Promise(function(L,B){try{$.recordRTC.getDataURL(function(V){L(V)})}catch(V){B(V)}})},this.getBlob=function(){return new Promise(function(z,L){try{z($.recordRTC.getBlob())}catch(B){L(B)}})},this.getInternalRecorder=function(){return new Promise(function(z,L){try{z($.recordRTC.getInternalRecorder())}catch(B){L(B)}})},this.reset=function(){return new Promise(function(z,L){try{z($.recordRTC.reset())}catch(B){L(B)}})},this.destroy=function(){return new Promise(function(z,L){try{z($.recordRTC.destroy())}catch(B){L(B)}})},this.getState=function(){return new Promise(function(z,L){try{z($.recordRTC.getState())}catch(B){L(B)}})},this.blob=null,this.version="5.6.2"}typeof t<"u"&&(t.RecordRTCPromisesHandler=O);/** * WebAssemblyRecorder lets you create webm videos in JavaScript via WebAssembly. The library consumes raw RGBA32 buffers (4 bytes per pixel) and turns them into a webm video with the given framerate and quality. This makes it compatible out-of-the-box with ImageData from a CANVAS. With realtime mode you can also use webm-wasm for streaming webm videos. * @summary Video recording feature in Chrome, Firefox and maybe Edge. * @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT} @@ -458,7 +458,7 @@ Error generating stack: `+i.message+` * @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code} * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API. * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true} - */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(K){var Y=document.createElement("canvas"),q=document.createElement("video"),oe=!0;q.srcObject=E,q.muted=!0,q.height=g.height,q.width=g.width,q.volume=0,q.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),K.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(q,0,0),K._controlledReadableStream.state!=="closed")try{K.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},q.play()}})}var L;function B(K,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(K,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var q=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(q)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(K){if(!L){K&&K();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,K&&K())}),L.postMessage(null)}var A=[];this.stop=function(K){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),K(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(p2);var NN=p2.exports;const ky=Nc(NN),DN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),zN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,R]=p.useState(""),[k,T]=p.useState(!1),[P,j]=p.useState(!1),[N,O]=p.useState(""),[F,W]=p.useState("info"),[U,G]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){G(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,K=new SpeechSynthesisUtterance(M),Y=()=>{const q=A.getVoices();console.log(q.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=q.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?K.voice=oe:console.log("No female voice found"),K.onend=()=>{G(null)},G(M),A.speak(K)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(R(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),R("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const I=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(O("Chat finalized successfully"),W("success"),i(null),s(0),f([]),re()):(O("Failed to finalize chat"),W("error"))}catch{O("Error finalizing chat"),W("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),K=await A.json();console.log(K),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:K,sender:"agent"}]),t&&K&&J(K),s(Y=>Y+1),c("")):(console.error("Failed to send message:",K.error||"Unknown error occurred"),O(K.error||"An error occurred while sending the message."),W("error"),j(!0))}catch(M){console.error("Failed to send message:",M),O("Network or server error occurred."),W("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported?MediaRecorder.isTypeSupported("audio/webm; codecs=opus"):!1,$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let K;const Y={type:"audio",mimeType:A?"audio/webm; codecs=opus":"audio/wav"};A?K=new MediaRecorder(M,Y):(K=new ky(M,{type:"audio",mimeType:"audio/wav",recorderType:ky.StereoAudioRecorder,numberOfAudioChannels:1}),K.startRecording()),K.ondataavailable=q=>{console.log("Data available:",q.data.size),C.current.push(q.data)},K instanceof MediaRecorder&&K.start(),x(K),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M),j(!0),O("Unable to access microphone: "+M.message),W("error")})},z=()=>{y&&(y.stream&&y.stream.active&&y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{L(C.current,{type:y.mimeType}),w(!1),x(null)},y instanceof MediaRecorder?y.stop():typeof y.stopRecording=="function"&&y.stopRecording(function(){y.getBlob()}))},L=()=>{const M=y.mimeType;console.log("Audio chunks size:",C.current.reduce((Y,q)=>Y+q.size,0));const A=new Blob(C.current,{type:M});if(A.size===0){console.error("Audio Blob is empty"),O("Recording is empty. Please try again."),W("error"),j(!0);return}console.log(`Sending audio blob of size: ${A.size} bytes`);const K=new FormData;K.append("audio",A),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",K,{headers:{"Content-Type":"multipart/form-data"}}).then(Y=>{const{message:q}=Y.data;c(q),E()}).catch(Y=>{console.error("Error uploading audio:",Y),j(!0),O("Error processing voice input: "+Y.message),W("error")}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),O("Word limit reached. Only 200 words allowed."),W("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + */function _(E,g){(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),g=g||{},g.width=g.width||640,g.height=g.height||480,g.frameRate=g.frameRate||30,g.bitrate=g.bitrate||1200,g.realtime=g.realtime||!0;var $;function z(){return new ReadableStream({start:function(G){var Y=document.createElement("canvas"),K=document.createElement("video"),oe=!0;K.srcObject=E,K.muted=!0,K.height=g.height,K.width=g.width,K.volume=0,K.onplaying=function(){Y.width=g.width,Y.height=g.height;var te=Y.getContext("2d"),ne=1e3/g.frameRate,de=setInterval(function(){if($&&(clearInterval(de),G.close()),oe&&(oe=!1,g.onVideoProcessStarted&&g.onVideoProcessStarted()),te.drawImage(K,0,0),G._controlledReadableStream.state!=="closed")try{G.enqueue(te.getImageData(0,0,g.width,g.height))}catch{}},ne)},K.play()}})}var L;function B(G,Y){if(!g.workerPath&&!Y){$=!1,fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(oe){oe.arrayBuffer().then(function(te){B(G,te)})});return}if(!g.workerPath&&Y instanceof ArrayBuffer){var K=new Blob([Y],{type:"text/javascript"});g.workerPath=u.createObjectURL(K)}g.workerPath||console.error("workerPath parameter is missing."),L=new Worker(g.workerPath),L.postMessage(g.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),L.addEventListener("message",function(oe){oe.data==="READY"?(L.postMessage({width:g.width,height:g.height,bitrate:g.bitrate||1200,timebaseDen:g.frameRate||30,realtime:g.realtime}),z().pipeTo(new WritableStream({write:function(te){if($){console.error("Got image, but recorder is finished!");return}L.postMessage(te.data.buffer,[te.data.buffer])}}))):oe.data&&(V||A.push(oe.data))})}this.record=function(){A=[],V=!1,this.blob=null,B(E),typeof g.initCallback=="function"&&g.initCallback()};var V;this.pause=function(){V=!0},this.resume=function(){V=!1};function M(G){if(!L){G&&G();return}L.addEventListener("message",function(Y){Y.data===null&&(L.terminate(),L=null,G&&G())}),L.postMessage(null)}var A=[];this.stop=function(G){$=!0;var Y=this;M(function(){Y.blob=new Blob(A,{type:"video/webm"}),G(Y.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){A=[],V=!1,this.blob=null},this.blob=null}typeof t<"u"&&(t.WebAssemblyRecorder=_)})(LN);const AN=()=>d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:[d.jsx(Er,{src:Pi,sx:{width:24,height:24,marginRight:1},alt:"Aria"}),d.jsxs("div",{style:{display:"flex"},children:[d.jsx("div",{style:{animation:"blink 1.4s infinite",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.2s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor",marginRight:2}}),d.jsx("div",{style:{animation:"blink 1.4s infinite 0.4s",width:6,height:6,borderRadius:"50%",backgroundColor:"currentColor"}})]})]}),NN=()=>{const{user:e,voiceEnabled:t,setVoiceEnabled:n}=p.useContext(vr),r=e==null?void 0:e.userId,[o,i]=p.useState(null),[a,s]=p.useState(0),[l,c]=p.useState(""),[u,f]=p.useState([]),[h,w]=p.useState(!1),[y,x]=p.useState(null),C=p.useRef([]),[v,m]=p.useState(!1),[b,k]=p.useState(""),[R,T]=p.useState(!1),[P,j]=p.useState(!1),[N,I]=p.useState(""),[F,H]=p.useState("info"),[U,q]=p.useState(null),ee=M=>{M.preventDefault(),n(!t)},J=M=>{if(!t||M===U){q(null),window.speechSynthesis.cancel();return}const A=window.speechSynthesis,G=new SpeechSynthesisUtterance(M),Y=()=>{const K=A.getVoices();console.log(K.map(te=>`${te.name} - ${te.lang} - ${te.gender}`));const oe=K.find(te=>te.name.includes("Microsoft Zira - English (United States)"));oe?G.voice=oe:console.log("No female voice found"),G.onend=()=>{q(null)},q(M),A.speak(G)};A.getVoices().length===0?A.onvoiceschanged=Y:Y()},re=p.useCallback(async()=>{if(r){m(!0),T(!0);try{const M=await fetch(`/api/ai/mental_health/welcome/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();console.log(A),M.ok?(k(A.message),t&&A.message&&J(A.message),i(A.chat_id),console.log(A.chat_id)):(console.error("Failed to fetch welcome message:",A),k("Error fetching welcome message."))}catch(M){console.error("Network or server error:",M)}finally{m(!1),T(!1)}}},[r]);p.useEffect(()=>{re()},[]);const O=(M,A)=>{A!=="clickaway"&&j(!1)},_=p.useCallback(async()=>{if(o!==null){m(!0);try{const M=await fetch(`/api/ai/mental_health/finalize/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"}}),A=await M.json();M.ok?(I("Chat finalized successfully"),H("success"),i(null),s(0),f([]),re()):(I("Failed to finalize chat"),H("error"))}catch{I("Error finalizing chat"),H("error")}finally{m(!1),j(!0)}}},[r,o,re]),E=p.useCallback(async()=>{if(!(!l.trim()||o===void 0)){console.log(o),m(!0);try{const M=JSON.stringify({prompt:l,turn_id:a}),A=await fetch(`/api/ai/mental_health/${r}/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:M}),G=await A.json();console.log(G),A.ok?(f(Y=>[...Y,{message:l,sender:"user"},{message:G,sender:"agent"}]),t&&G&&J(G),s(Y=>Y+1),c("")):(console.error("Failed to send message:",G.error||"Unknown error occurred"),I(G.error||"An error occurred while sending the message."),H("error"),j(!0))}catch(M){console.error("Failed to send message:",M),I("Network or server error occurred."),H("error"),j(!0)}finally{m(!1)}}},[l,r,o,a]),g=()=>MediaRecorder.isTypeSupported("audio/webm; codecs=opus")?"audio/webm; codecs=opus":MediaRecorder.isTypeSupported("audio/mp4")?"audio/mp4":"audio/wav",$=()=>{navigator.mediaDevices.getUserMedia({audio:{sampleRate:44100,channelCount:1,volume:1,echoCancellation:!0}}).then(M=>{C.current=[];const A=g();let G=new MediaRecorder(M,{mimeType:A});G.ondataavailable=Y=>{C.current.push(Y.data)},G.start(),x(G),w(!0)}).catch(M=>{console.error("Error accessing microphone:",M)})},z=()=>{y&&(y.stream.getTracks().forEach(M=>M.stop()),y.onstop=()=>{const M=y.mimeType,A=new Blob(C.current,{type:M});L(A),w(!1),x(null)},y.stop())},L=M=>{if(M.size===0){console.error("Audio Blob is empty");return}const A=new FormData;A.append("audio",M),m(!0),Oe.post("/api/ai/mental_health/voice-to-text",A,{headers:{"Content-Type":"multipart/form-data"}}).then(G=>{const{message:Y}=G.data;c(Y),E()}).catch(G=>{console.error("Error uploading audio:",G)}).finally(()=>{m(!1)})},B=p.useCallback(M=>{const A=M.target.value;A.split(/\s+/).length>200?(c(Y=>Y.split(/\s+/).slice(0,200).join(" ")),I("Word limit reached. Only 200 words allowed."),H("warning"),j(!0)):c(A)},[]),V=M=>M===U?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -472,7 +472,7 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(IA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),k?d.jsx(DN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:I,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:I,severity:F,children:N})})]})]})};var Wm={},BN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var h2=Wm.default=void 0,FN=BN(je()),UN=d;h2=Wm.default=(0,FN.default)((0,UN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},WN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var m2=Hm.default=void 0,HN=WN(je()),VN=d;m2=Hm.default=(0,HN.default)((0,VN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},qN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,GN=qN(je()),KN=d;Ac=Vm.default=(0,GN.default)((0,KN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Py=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ey=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},YN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,XN=YN(je()),QN=d;Gm=qm.default=(0,XN.default)((0,QN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const lf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),JN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function ZN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[R,k]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[O,F]=p.useState(!1),[W,U]=p.useState(!1),[G,ee]=p.useState(""),[J,re]=p.useState("info"),I=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const K=A.target.value,Y=_.includes(K)?_.filter(q=>q!==K):[..._,K];E(Y)},$=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/login",{username:a,password:h});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Login failed:",q),ee("Login failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:R,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(q&&q.data){const oe=q.data.userId;localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(q){console.error("Signup failed:",q),ee(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var K,Y;A.preventDefault(),F(!0);try{const q=await Oe.post("/api/user/anonymous_signin");if(q&&q.data)localStorage.setItem("token",q.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(q){console.error("Anonymous sign-in failed:",q),ee("Anonymous sign-in failed: "+(((Y=(K=q.response)==null?void 0:K.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,K)=>{i(K)},V=(A,K)=>{K!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:lf,children:[d.jsx(km,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:lf.palette.background.default},children:d.jsxs(JN,{children:[d.jsxs(f2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(h2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(m2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsxs(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:O,children:[O?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Pb,{to:"/request_reset",style:{textDecoration:"none",color:lf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Ey,{}):d.jsx(Py,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(ld,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{value:R,label:"Gender",onChange:A=>k(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(i2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),I.map(A=>d.jsx(Tm,{control:d.jsx(Rm,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:eD(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(kt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:O,children:O?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:W,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:G})})]})})]})}function eD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},tD=Te;Object.defineProperty(Km,"__esModule",{value:!0});var g2=Km.default=void 0,nD=tD(je()),rD=d;g2=Km.default=(0,nD.default)((0,rD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},oD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var v2=Ym.default=void 0,iD=oD(je()),aD=d;v2=Ym.default=(0,iD.default)((0,aD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ty=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),sD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ty,children:d.jsx(e2,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ty.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(v2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(g2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},lD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var y2=Xm.default=void 0,cD=lD(je()),uD=d;y2=Xm.default=(0,cD.default)((0,uD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},dD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var x2=Qm.default=void 0,fD=dD(je()),pD=d;x2=Qm.default=(0,fD.default)((0,pD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},hD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var b2=Jm.default=void 0,mD=hD(je()),gD=d;b2=Jm.default=(0,mD.default)((0,gD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},vD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var w2=Zm.default=void 0,yD=vD(je()),xD=d;w2=Zm.default=(0,yD.default)((0,xD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},bD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var S2=eg.default=void 0,wD=bD(je()),SD=d;S2=eg.default=(0,wD.default)((0,SD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},CD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,RD=CD(je()),kD=d;ng=tg.default=(0,RD.default)((0,kD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},PD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var C2=rg.default=void 0,ED=PD(je()),TD=d;C2=rg.default=(0,ED.default)((0,TD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const $D=ie(f2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),$y=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),MD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),jD=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function OD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(R=>{const k=b?[...R.mental_health_concerns,m]:R.mental_health_concerns.filter(T=>T!==m);return{...R,mental_health_concerns:k}})},y=v=>{const{name:m,value:b}=v.target;n(R=>({...R,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:MD,children:[d.jsx(km,{}),d.jsxs(e2,{component:"main",maxWidth:"md",children:[d.jsxs($D,{value:r,onChange:i,centered:!0,children:[d.jsx($y,{label:"Profile"}),d.jsx($y,{label:"Update Password"})]}),r===0&&d.jsxs(jD,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(ud,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(y2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsxs(ld,{fullWidth:!0,children:[d.jsx(cd,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(b2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(w2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(S2,{})})}}),d.jsx(i2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(Rm,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:ID(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(kt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(C2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(sD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function ID(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},_D=Te;Object.defineProperty(og,"__esModule",{value:!0});var R2=og.default=void 0,LD=_D(je()),My=d;R2=og.default=(0,LD.default)([(0,My.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,My.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},AD=Te;Object.defineProperty(ig,"__esModule",{value:!0});var k2=ig.default=void 0,ND=AD(je()),DD=d;k2=ig.default=(0,ND.default)((0,DD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},zD=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,BD=zD(je()),FD=d;sg=ag.default=(0,BD.default)((0,FD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},UD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var P2=lg.default=void 0,WD=UD(je()),HD=d;P2=lg.default=(0,WD.default)((0,HD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},VD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var E2=cg.default=void 0,qD=VD(je()),GD=d;E2=cg.default=(0,qD.default)((0,GD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},KD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var T2=ug.default=void 0,YD=KD(je()),jy=d;T2=ug.default=(0,YD.default)([(0,jy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,jy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},XD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var $2=dg.default=void 0,QD=XD(je()),JD=d;$2=dg.default=(0,QD.default)((0,JD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const Oy=230;function ZD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(R2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(k2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(T2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(E2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx($2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(WI,{sx:{width:Oy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:Oy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(VP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(P2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},e6=Te;Object.defineProperty(fg,"__esModule",{value:!0});var M2=fg.default=void 0,t6=e6(je()),n6=d;M2=fg.default=(0,t6.default)((0,n6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},r6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var j2=pg.default=void 0,o6=r6(je()),i6=d;j2=pg.default=(0,o6.default)((0,i6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},a6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var O2=hg.default=void 0,s6=a6(je()),l6=d;O2=hg.default=(0,s6.default)((0,l6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel");function c6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(kM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(UA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(M2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(a3,{badgeContent:n.length,color:"secondary",children:d.jsx(j2,{})})}),d.jsx(c2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(ad,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(O2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},u6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var I2=mg.default=void 0,d6=u6(je()),f6=d;I2=mg.default=(0,d6.default)((0,f6.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.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},p6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var Lp=gg.default=void 0,h6=p6(je()),m6=d;Lp=gg.default=(0,h6.default)((0,m6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},g6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var _2=vg.default=void 0,v6=g6(je()),y6=d;_2=vg.default=(0,v6.default)((0,y6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const x6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(kt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function b6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(k,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=k=>{x(k),r(!0)},b=async(k=!1)=>{var T,P;c(!0);try{const j=k?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=k?{params:{start_date:u,end_date:h}}:{},O=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([O.data])),W=document.createElement("a");W.href=F,W.setAttribute("download",k?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(W),W.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},R=async()=>{var k,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(k=P.response)==null?void 0:k.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(x6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:k=>f(k.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:k=>w(k.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(_2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(I2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(Lp,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(Lp,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs(Mp,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Ip,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(kt,{onClick:()=>R(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Iy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[R,k]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),O=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},W=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(k("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(k("Failed to finalize chat"),P("error"))}catch{k("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),k(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),k("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),G=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),k("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),I=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsxs(at,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",marginBottom:"5px"},children:[d.jsx(Zn,{title:"Toggle voice responses",children:d.jsx(ut,{color:"inherit",onClick:ee,sx:{padding:0},children:d.jsx(jA,{checked:t,onChange:M=>n(M.target.checked),icon:d.jsx(Lc,{}),checkedIcon:d.jsx(_c,{}),inputProps:{"aria-label":"Voice response toggle"},color:"default",sx:{height:42,"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white",transform:"translateX(16px)","& + .MuiSwitch-track":{backgroundColor:"primary.main"}}}})})}),d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:_,disabled:v,sx:{"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})})]}),d.jsx(xs,{sx:{marginBottom:"10px"}}),b.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),R?d.jsx(AN,{}):u.length===0&&d.jsxs(at,{sx:{display:"flex"},children:[d.jsx(Er,{src:Pi,sx:{width:36,height:36,marginRight:1},alt:"Aria"}),d.jsxs(Ie,{variant:"body1",gutterBottom:!0,sx:{bgcolor:"grey.200",borderRadius:"16px",px:2,py:1,display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[b,t&&b&&d.jsx(ut,{onClick:()=>J(b),size:"small",sx:{ml:1},children:V(b)})]})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:u.map((M,A)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:M.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:M.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[M.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[M.message,t&&M.sender==="agent"&&d.jsx(ut,{onClick:()=>J(M.message),size:"small",sx:{ml:1},children:V(M.message)})]}),primaryTypographyProps:{sx:{color:M.sender==="user"?"common.white":"text.primary",bgcolor:M.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),M.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(cd,{})})]})},A))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:l,onChange:B,disabled:v,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:h?z:$,color:"primary.main","aria-label":h?"Stop recording":"Start recording",size:"large",edge:"end",disabled:v,children:[h?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),h&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),v?d.jsx(_n,{size:24}):d.jsx(Rt,{variant:"contained",color:"primary",onClick:E,disabled:v||!l.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:P,autoHideDuration:6e3,onClose:O,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:O,severity:F,children:N})})]})]})};var Wm={},DN=Te;Object.defineProperty(Wm,"__esModule",{value:!0});var f2=Wm.default=void 0,zN=DN(je()),BN=d;f2=Wm.default=(0,zN.default)((0,BN.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined");var Hm={},FN=Te;Object.defineProperty(Hm,"__esModule",{value:!0});var p2=Hm.default=void 0,UN=FN(je()),WN=d;p2=Hm.default=(0,UN.default)((0,WN.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var Vm={},HN=Te;Object.defineProperty(Vm,"__esModule",{value:!0});var Ac=Vm.default=void 0,VN=HN(je()),qN=d;Ac=Vm.default=(0,VN.default)((0,qN.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");const Ry=Vt(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Py=Vt(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var qm={},GN=Te;Object.defineProperty(qm,"__esModule",{value:!0});var Gm=qm.default=void 0,KN=GN(je()),YN=d;Gm=qm.default=(0,KN.default)((0,YN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const sf=Ns({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},background:{default:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",paper:"#fff"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h5:{fontWeight:600,color:"#444"},button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{margin:"8px"}}}}}),XN=ie(En)(({theme:e})=>({marginTop:e.spacing(12),display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(4),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[10],width:"90%",maxWidth:"450px",opacity:.98,backdropFilter:"blur(10px)"}));function QN(){const e=qo(),[t,n]=p.useState(!1),{setUser:r}=p.useContext(vr),[o,i]=p.useState(0),[a,s]=p.useState(""),[l,c]=p.useState(""),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState(""),[k,R]=p.useState(""),[T,P]=p.useState(""),[j,N]=p.useState(""),[I,F]=p.useState(!1),[H,U]=p.useState(!1),[q,ee]=p.useState(""),[J,re]=p.useState("info"),O=[{id:"job_search",name:"Stress from job search"},{id:"classwork",name:"Stress from classwork"},{id:"social_anxiety",name:"Social anxiety"},{id:"impostor_syndrome",name:"Impostor Syndrome"},{id:"career_drift",name:"Career Drift"}],[_,E]=p.useState([]),g=A=>{const G=A.target.value,Y=_.includes(G)?_.filter(K=>K!==G):[..._,G];E(Y)},$=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/login",{username:a,password:h});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Login successful!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User logged in:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Login failed:",K),ee("Login failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error"),f(!0)}U(!0),F(!1)},z=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/signup",{username:a,email:l,password:h,name:C,age:m,gender:k,placeOfResidence:T,fieldOfWork:j,mental_health_concerns:_});if(K&&K.data){const oe=K.data.userId;localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("User registered successfully!"),re("success"),n(!0),r({userId:oe}),e("/"),console.log("User registered:",oe)}else throw new Error("Invalid response from server")}catch(K){console.error("Signup failed:",K),ee(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.error)||"Failed to register user."),re("error")}F(!1),U(!0)},L=async A=>{var G,Y;A.preventDefault(),F(!0);try{const K=await Oe.post("/api/user/anonymous_signin");if(K&&K.data)localStorage.setItem("token",K.data.access_token),console.log("Token stored:",localStorage.getItem("token")),ee("Anonymous sign-in successful!"),re("success"),n(!0),r({userId:null}),e("/");else throw new Error("Invalid response from server")}catch(K){console.error("Anonymous sign-in failed:",K),ee("Anonymous sign-in failed: "+(((Y=(G=K.response)==null?void 0:G.data)==null?void 0:Y.msg)||"Unknown error")),re("error")}F(!1),U(!0)},B=(A,G)=>{i(G)},V=(A,G)=>{G!=="clickaway"&&U(!1)},M=()=>{x(!y)};return d.jsxs(lm,{theme:sf,children:[d.jsx(Rm,{}),d.jsx(at,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:sf.palette.background.default},children:d.jsxs(XN,{children:[d.jsxs(d2,{value:o,onChange:B,variant:"fullWidth",centered:!0,indicatorColor:"primary",textColor:"primary",children:[d.jsx(Hl,{icon:d.jsx(f2,{}),label:"Login"}),d.jsx(Hl,{icon:d.jsx(p2,{}),label:"Sign Up"}),d.jsx(Hl,{icon:d.jsx(Ac,{}),label:"Anonymous"})]}),d.jsxs(at,{sx:{mt:3,width:"100%",px:3},children:[o===0&&d.jsxs("form",{onSubmit:$,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Py,{}):d.jsx(Ry,{})})}}),d.jsxs(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2,maxWidth:"325px"},disabled:I,children:[I?d.jsx(_n,{size:24}):"Login"," "]}),u&&d.jsxs(Ie,{variant:"body2",textAlign:"center",sx:{mt:2},children:["Forgot your password? ",d.jsx(Rb,{to:"/request_reset",style:{textDecoration:"none",color:sf.palette.secondary.main},children:"Reset it here"})]})]}),o===1&&d.jsxs("form",{onSubmit:z,children:[d.jsx(it,{label:"Username",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:a,onChange:A=>s(A.target.value)}),d.jsx(it,{label:"Email",type:"email",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:l,onChange:A=>c(A.target.value)}),d.jsx(it,{label:"Password",type:y?"text":"password",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:h,onChange:A=>w(A.target.value),InputProps:{endAdornment:d.jsx(ut,{onClick:M,edge:"end",children:y?d.jsx(Py,{}):d.jsx(Ry,{})})}}),d.jsx(it,{label:"Name",variant:"outlined",margin:"normal",fullWidth:!0,value:C,onChange:A=>v(A.target.value)}),d.jsx(it,{label:"Age",type:"number",variant:"outlined",margin:"normal",required:!0,fullWidth:!0,value:m,onChange:A=>b(A.target.value)}),d.jsxs(sd,{required:!0,fullWidth:!0,margin:"normal",children:[d.jsx(ld,{children:"Gender"}),d.jsxs(Us,{value:k,label:"Gender",onChange:A=>R(A.target.value),children:[d.jsx(Jn,{value:"",children:"Select Gender"}),d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{label:"Place of Residence",variant:"outlined",margin:"normal",fullWidth:!0,value:T,onChange:A=>P(A.target.value)}),d.jsx(it,{label:"Field of Work",variant:"outlined",margin:"normal",fullWidth:!0,value:j,onChange:A=>N(A.target.value)}),d.jsxs(o2,{sx:{marginTop:"10px"},children:[d.jsx(Ie,{variant:"body1",gutterBottom:!0,children:"Select any mental stressors you are currently experiencing to help us better tailor your therapy sessions."}),O.map(A=>d.jsx(Tm,{control:d.jsx(km,{checked:_.includes(A.id),onChange:g,value:A.id}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[A.name,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:JN(A.id)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},A.id))]}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},disabled:I,children:I?d.jsx(_n,{size:24}):"Sign Up"})]}),o===2&&d.jsx("form",{onSubmit:L,children:d.jsx(Rt,{type:"submit",variant:"outlined",color:"secondary",fullWidth:!0,sx:{mt:2},disabled:I,children:I?d.jsx(_n,{size:24}):"Anonymous Sign-In"})})]}),d.jsx(yo,{open:H,autoHideDuration:6e3,onClose:V,children:d.jsx(xr,{onClose:V,severity:J,sx:{width:"100%"},children:q})})]})})]})}function JN(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var Km={},ZN=Te;Object.defineProperty(Km,"__esModule",{value:!0});var h2=Km.default=void 0,eD=ZN(je()),tD=d;h2=Km.default=(0,eD.default)((0,tD.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey");var Ym={},nD=Te;Object.defineProperty(Ym,"__esModule",{value:!0});var m2=Ym.default=void 0,rD=nD(je()),oD=d;m2=Ym.default=(0,rD.default)((0,oD.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");const Ey=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"}}}),iD=()=>{const{changePassword:e}=p.useContext(vr),[t,n]=p.useState(""),[r,o]=p.useState(""),[i,a]=p.useState(!1),[s,l]=p.useState(""),[c,u]=p.useState("success"),{userId:f}=$s(),h=async w=>{w.preventDefault();const y=await e(f,t,r);l(y.message),u(y.success?"success":"error"),a(!0)};return d.jsx(lm,{theme:Ey,children:d.jsx(Zw,{component:"main",maxWidth:"xs",sx:{background:"#fff",borderRadius:"8px",boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"},children:d.jsxs(at,{sx:{marginTop:8,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(Ie,{component:"h1",variant:"h5",children:"Update Password"}),d.jsxs("form",{onSubmit:h,style:{width:"100%",marginTop:Ey.spacing(1)},children:[d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"current-password",label:"Current Password",name:"currentPassword",autoComplete:"current-password",type:"password",value:t,onChange:w=>n(w.target.value),InputProps:{startAdornment:d.jsx(m2,{color:"primary",style:{marginRight:"10px"}})}}),d.jsx(it,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"new-password",label:"New Password",name:"newPassword",autoComplete:"new-password",type:"password",value:r,onChange:w=>o(w.target.value),InputProps:{startAdornment:d.jsx(h2,{color:"secondary",style:{marginRight:"10px"}})}}),d.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:3,mb:2},children:"Update Password"})]}),d.jsx(yo,{open:i,autoHideDuration:6e3,onClose:()=>a(!1),children:d.jsx(xr,{onClose:()=>a(!1),severity:c,sx:{width:"100%"},children:s})})]})})})};var Xm={},aD=Te;Object.defineProperty(Xm,"__esModule",{value:!0});var g2=Xm.default=void 0,sD=aD(je()),lD=d;g2=Xm.default=(0,sD.default)((0,lD.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Qm={},cD=Te;Object.defineProperty(Qm,"__esModule",{value:!0});var v2=Qm.default=void 0,uD=cD(je()),dD=d;v2=Qm.default=(0,uD.default)((0,dD.jsx)("path",{d:"M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2m4.6 9.99-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-1.96-.61V21c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-4.61c-.56.38-1.23.61-1.96.61-.92 0-1.79-.36-2.44-1.01M18 9h-5V7h-2v2H6c-1.66 0-3 1.34-3 3v1.54c0 1.08.88 1.96 1.96 1.96.52 0 1.02-.2 1.38-.57l2.14-2.13 2.13 2.13c.74.74 2.03.74 2.77 0l2.14-2.13 2.13 2.13c.37.37.86.57 1.38.57 1.08 0 1.96-.88 1.96-1.96V12C21 10.34 19.66 9 18 9"}),"Cake");var Jm={},fD=Te;Object.defineProperty(Jm,"__esModule",{value:!0});var y2=Jm.default=void 0,pD=fD(je()),hD=d;y2=Jm.default=(0,pD.default)((0,hD.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2"}),"Wc");var Zm={},mD=Te;Object.defineProperty(Zm,"__esModule",{value:!0});var x2=Zm.default=void 0,gD=mD(je()),vD=d;x2=Zm.default=(0,gD.default)((0,vD.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var eg={},yD=Te;Object.defineProperty(eg,"__esModule",{value:!0});var b2=eg.default=void 0,xD=yD(je()),bD=d;b2=eg.default=(0,xD.default)((0,bD.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work");var tg={},wD=Te;Object.defineProperty(tg,"__esModule",{value:!0});var ng=tg.default=void 0,SD=wD(je()),CD=d;ng=tg.default=(0,SD.default)((0,CD.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle");var rg={},kD=Te;Object.defineProperty(rg,"__esModule",{value:!0});var w2=rg.default=void 0,RD=kD(je()),PD=d;w2=rg.default=(0,RD.default)((0,PD.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");const ED=ie(d2)({background:"#fff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",margin:"20px 0",maxWidth:"100%",overflow:"hidden"}),Ty=ie(Hl)({fontSize:"1rem",fontWeight:"bold",color:"#3F51B5",marginRight:"4px",marginLeft:"4px",flex:1,maxWidth:"none","&.Mui-selected":{color:"#F6AE2D",background:"#e0e0e0"},"&:hover":{background:"#f4f4f4",transition:"background-color 0.3s"},"@media (max-width: 720px)":{padding:"6px 12px",fontSize:"0.8rem"}}),TD=Ns({palette:{primary:{main:"#3F51B5"},secondary:{main:"#F6AE2D"},background:{default:"#e0e0e0"}},typography:{fontFamily:'"Open Sans", "Helvetica", "Arial", sans-serif',button:{textTransform:"none",fontWeight:"bold"}},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none",borderRadius:8,"&:hover":{boxShadow:"0px 2px 4px rgba(0,0,0,0.2)"}}}},MuiPaper:{styleOverrides:{root:{padding:"20px",borderRadius:"10px",boxShadow:"0px 4px 12px rgba(0,0,0,0.1)"}}}}}),$D=ie(En)(({theme:e})=>({marginTop:e.spacing(2),padding:e.spacing(2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),boxShadow:e.shadows[3]}));function MD(){const{userId:e}=$s(),[t,n]=p.useState({username:"",name:"",email:"",age:"",gender:"",placeOfResidence:"",fieldOfWork:"",mental_health_concerns:[]}),[r,o]=p.useState(0),i=(v,m)=>{o(m)},[a,s]=p.useState(""),[l,c]=p.useState(!1),[u,f]=p.useState("info");p.useEffect(()=>{if(!e){console.error("User ID is undefined");return}(async()=>{try{const m=await Oe.get(`/api/user/profile/${e}`);console.log("Fetched data:",m.data);const b={username:m.data.username||"",name:m.data.name||"",email:m.data.email||"",age:m.data.age||"",gender:m.data.gender||"",placeOfResidence:m.data.placeOfResidence||"Not specified",fieldOfWork:m.data.fieldOfWork||"Not specified",mental_health_concerns:m.data.mental_health_concerns||[]};console.log("Formatted data:",b),n(b)}catch{s("Failed to fetch user data"),f("error"),c(!0)}})()},[e]);const h=[{label:"Stress from Job Search",value:"job_search"},{label:"Stress from Classwork",value:"classwork"},{label:"Social Anxiety",value:"social_anxiety"},{label:"Impostor Syndrome",value:"impostor_syndrome"},{label:"Career Drift",value:"career_drift"}];console.log("current mental health concerns: ",t.mental_health_concerns);const w=v=>{const{name:m,checked:b}=v.target;n(k=>{const R=b?[...k.mental_health_concerns,m]:k.mental_health_concerns.filter(T=>T!==m);return{...k,mental_health_concerns:R}})},y=v=>{const{name:m,value:b}=v.target;n(k=>({...k,[m]:b}))},x=async v=>{v.preventDefault();try{await Oe.patch(`/api/user/profile/${e}`,t),s("Profile updated successfully!"),f("success")}catch{s("Failed to update profile"),f("error")}c(!0)},C=()=>{c(!1)};return d.jsxs(lm,{theme:TD,children:[d.jsx(Rm,{}),d.jsxs(Zw,{component:"main",maxWidth:"md",children:[d.jsxs(ED,{value:r,onChange:i,centered:!0,children:[d.jsx(Ty,{label:"Profile"}),d.jsx(Ty,{label:"Update Password"})]}),r===0&&d.jsxs($D,{component:"form",onSubmit:x,sx:{maxHeight:"81vh",overflow:"auto"},children:[d.jsxs(Ie,{variant:"h5",style:{fontWeight:700},children:[d.jsx(ng,{style:{marginRight:"10px"}})," ",t.username]}),d.jsx(it,{fullWidth:!0,label:"Name",variant:"outlined",name:"name",value:t.name||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(cd,{})})}}),d.jsx(it,{fullWidth:!0,label:"Email",variant:"outlined",name:"email",value:t.email||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(g2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Age",variant:"outlined",name:"age",type:"number",value:t.age||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(v2,{})})}}),d.jsxs(sd,{fullWidth:!0,children:[d.jsx(ld,{children:"Gender"}),d.jsxs(Us,{name:"gender",value:t.gender||"",label:"Gender",onChange:y,startAdornment:d.jsx(ut,{children:d.jsx(y2,{})}),children:[d.jsx(Jn,{value:"male",children:"Male"}),d.jsx(Jn,{value:"female",children:"Female"}),d.jsx(Jn,{value:"other",children:"Other"})]})]}),d.jsx(it,{fullWidth:!0,label:"Place of Residence",variant:"outlined",name:"placeOfResidence",value:t.placeOfResidence||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{children:d.jsx(x2,{})})}}),d.jsx(it,{fullWidth:!0,label:"Field of Work",variant:"outlined",name:"fieldOfWork",value:t.fieldOfWork||"",onChange:y,InputProps:{startAdornment:d.jsx(ut,{position:"start",children:d.jsx(b2,{})})}}),d.jsx(o2,{children:h.map((v,m)=>(console.log(`Is "${v.label}" checked?`,t.mental_health_concerns.includes(v.value)),d.jsx(Tm,{control:d.jsx(km,{checked:t.mental_health_concerns.includes(v.value),onChange:w,name:v.value}),label:d.jsxs(at,{display:"flex",alignItems:"center",children:[v.label,d.jsx(Zn,{title:d.jsx(Ie,{variant:"body2",children:jD(v.value)}),arrow:!0,placement:"right",children:d.jsx(Gm,{color:"action",style:{marginLeft:4,fontSize:20}})})]})},m)))}),d.jsxs(Rt,{type:"submit",color:"primary",variant:"contained",children:[d.jsx(w2,{style:{marginRight:"10px"}}),"Update Profile"]})]}),r===1&&d.jsx(iD,{userId:e}),d.jsx(yo,{open:l,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:u,sx:{width:"100%"},children:a})})]})]})}function jD(e){switch(e){case"job_search":return"Feelings of stress stemming from the job search process.";case"classwork":return"Stress related to managing coursework and academic responsibilities.";case"social_anxiety":return"Anxiety experienced during social interactions or in anticipation of social interactions.";case"impostor_syndrome":return"Persistent doubt concerning one's abilities or accomplishments coupled with a fear of being exposed as a fraud.";case"career_drift":return"Stress from uncertainty or dissatisfaction with one's career path or progress.";default:return"No description available."}}var og={},OD=Te;Object.defineProperty(og,"__esModule",{value:!0});var S2=og.default=void 0,ID=OD(je()),$y=d;S2=og.default=(0,ID.default)([(0,$y.jsx)("path",{d:"M22 9 12 2 2 9h9v13h2V9z"},"0"),(0,$y.jsx)("path",{d:"m4.14 12-1.96.37.82 4.37V22h2l.02-4H7v4h2v-6H4.9zm14.96 4H15v6h2v-4h1.98l.02 4h2v-5.26l.82-4.37-1.96-.37z"},"1")],"Deck");var ig={},_D=Te;Object.defineProperty(ig,"__esModule",{value:!0});var C2=ig.default=void 0,LD=_D(je()),AD=d;C2=ig.default=(0,LD.default)((0,AD.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"InsertEmoticon");var ag={},ND=Te;Object.defineProperty(ag,"__esModule",{value:!0});var sg=ag.default=void 0,DD=ND(je()),zD=d;sg=ag.default=(0,DD.default)((0,zD.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");var lg={},BD=Te;Object.defineProperty(lg,"__esModule",{value:!0});var k2=lg.default=void 0,FD=BD(je()),UD=d;k2=lg.default=(0,FD.default)((0,UD.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp");var cg={},WD=Te;Object.defineProperty(cg,"__esModule",{value:!0});var R2=cg.default=void 0,HD=WD(je()),VD=d;R2=cg.default=(0,HD.default)((0,VD.jsx)("path",{d:"M16.53 11.06 15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14z"}),"EventAvailable");var ug={},qD=Te;Object.defineProperty(ug,"__esModule",{value:!0});var P2=ug.default=void 0,GD=qD(je()),My=d;P2=ug.default=(0,GD.default)([(0,My.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,My.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule");var dg={},KD=Te;Object.defineProperty(dg,"__esModule",{value:!0});var E2=dg.default=void 0,YD=KD(je()),XD=d;E2=dg.default=(0,YD.default)((0,XD.jsx)("path",{d:"m22.69 18.37 1.14-1-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L20 14h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1c-.08.5-.08.76 0 1.26l-1.14 1 1 1.73 1.45-.49c.32.27.68.48 1.08.63L18 24h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1c.08-.51.08-.77 0-1.27M19 21c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M11 7v5.41l2.36 2.36 1.04-1.79-1.4-1.39V7zm10 5c0-4.97-4.03-9-9-9-2.83 0-5.35 1.32-7 3.36V4H3v6h6V8H6.26C7.53 6.19 9.63 5 12 5c3.86 0 7 3.14 7 7zm-10.14 6.91c-2.99-.49-5.35-2.9-5.78-5.91H3.06c.5 4.5 4.31 8 8.94 8h.07z"}),"ManageHistory");const jy=230;function QD(){const{logout:e,user:t}=p.useContext(vr),n=ho(),r=i=>n.pathname===i,o=[{text:"Mind Chat",icon:d.jsx(S2,{}),path:"/"},...t!=null&&t.userId?[{text:"Track Your Vibes",icon:d.jsx(C2,{}),path:"/user/mood_logging"},{text:"Mood Logs",icon:d.jsx(sg,{}),path:"/user/mood_logs"},{text:"Schedule Check-In",icon:d.jsx(P2,{}),path:"/user/check_in"},{text:"Check-In Reporting",icon:d.jsx(R2,{}),path:`/user/check_ins/${t==null?void 0:t.userId}`},{text:"Chat Log Manager",icon:d.jsx(E2,{}),path:"/user/chat_log_Manager"}]:[]];return d.jsx(FI,{sx:{width:jy,flexShrink:0,mt:8,"& .MuiDrawer-paper":{width:jy,boxSizing:"border-box",position:"relative",height:"91vh",top:0,overflowX:"hidden",borderRadius:2,boxShadow:1}},variant:"permanent",anchor:"left",children:d.jsxs(Fs,{children:[o.map(i=>d.jsx(WP,{to:i.path,style:{textDecoration:"none",color:"inherit"},children:d.jsxs(Oc,{button:!0,sx:{backgroundColor:r(i.path)?"rgba(25, 118, 210, 0.5)":"inherit","&:hover":{bgcolor:"grey.200"}},children:[d.jsx(dy,{children:i.icon}),d.jsx(ws,{primary:i.text})]})},i.text)),d.jsxs(Oc,{button:!0,onClick:e,children:[d.jsx(dy,{children:d.jsx(k2,{})}),d.jsx(ws,{primary:"Logout"})]})]})})}var fg={},JD=Te;Object.defineProperty(fg,"__esModule",{value:!0});var T2=fg.default=void 0,ZD=JD(je()),e6=d;T2=fg.default=(0,ZD.default)((0,e6.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var pg={},t6=Te;Object.defineProperty(pg,"__esModule",{value:!0});var $2=pg.default=void 0,n6=t6(je()),r6=d;$2=pg.default=(0,n6.default)((0,r6.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var hg={},o6=Te;Object.defineProperty(hg,"__esModule",{value:!0});var M2=hg.default=void 0,i6=o6(je()),a6=d;M2=hg.default=(0,i6.default)((0,a6.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel");function s6({toggleSidebar:e}){const{incrementNotificationCount:t,notifications:n,addNotification:r,removeNotification:o}=p.useContext(vr),i=qo(),{user:a}=p.useContext(vr),[s,l]=p.useState(null),c=localStorage.getItem("token"),u=a==null?void 0:a.userId;console.log("User ID:",u),p.useEffect(()=>{u?f():console.error("No user ID available from URL parameters.")},[u]);const f=async()=>{if(!u){console.error("User ID is missing in context");return}try{const C=(await Oe.get(`/api/check-in/missed?user_id=${u}`,{headers:{Authorization:`Bearer ${c}`}})).data;console.log("Missed check-ins:",C),C.length>0?C.forEach(v=>{r({title:`Missed Check-in on ${new Date(v.check_in_time).toLocaleString()}`,message:"Please complete your check-in."})}):r({title:"You have no missed check-ins.",message:""})}catch(x){console.error("Failed to fetch missed check-ins:",x),r({title:"Failed to fetch missed check-ins. Please check the console for more details.",message:""})}},h=x=>{l(x.currentTarget)},w=x=>{l(null),o(x)},y=()=>{a&&a.userId?i(`/user/profile/${a.userId}`):console.error("User ID not found")};return p.useEffect(()=>{const x=C=>{C.data&&C.data.msg==="updateCount"&&(console.log("Received message from service worker:",C.data),r({title:C.data.title,message:C.data.body}),t())};return navigator.serviceWorker.addEventListener("message",x),()=>{navigator.serviceWorker.removeEventListener("message",x)}},[]),d.jsx(CM,{position:"fixed",sx:{zIndex:x=>x.zIndex.drawer+1},children:d.jsxs(BA,{children:[d.jsx(ut,{onClick:e,color:"inherit",edge:"start",sx:{marginRight:2},children:d.jsx(T2,{})}),d.jsx(Ie,{variant:"h6",noWrap:!0,component:"div",sx:{flexGrow:1},children:"Dashboard"}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:h,children:d.jsx(o3,{badgeContent:n.length,color:"secondary",children:d.jsx($2,{})})}),d.jsx(l2,{anchorEl:s,open:!!s,onClose:()=>w(null),children:n.map((x,C)=>d.jsx(Jn,{onClick:()=>w(C),sx:{whiteSpace:"normal",maxWidth:350,padding:1},children:d.jsxs(id,{elevation:2,sx:{display:"flex",alignItems:"center",width:"100%"},children:[d.jsx(M2,{color:"error"}),d.jsxs(Cm,{sx:{flex:"1 1 auto"},children:[d.jsx(Ie,{variant:"subtitle1",sx:{fontWeight:"bold"},children:x.title}),d.jsx(Ie,{variant:"body2",color:"text.secondary",children:x.message})]})]})},C))}),(a==null?void 0:a.userId)&&d.jsx(ut,{color:"inherit",onClick:y,children:d.jsx(ng,{})})]})})}var mg={},l6=Te;Object.defineProperty(mg,"__esModule",{value:!0});var j2=mg.default=void 0,c6=l6(je()),u6=d;j2=mg.default=(0,c6.default)((0,u6.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.96M17 13l-5 5-5-5h3V9h4v4z"}),"CloudDownload");var gg={},d6=Te;Object.defineProperty(gg,"__esModule",{value:!0});var _p=gg.default=void 0,f6=d6(je()),p6=d;_p=gg.default=(0,f6.default)((0,p6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var vg={},h6=Te;Object.defineProperty(vg,"__esModule",{value:!0});var O2=vg.default=void 0,m6=h6(je()),g6=d;O2=vg.default=(0,m6.default)((0,g6.jsx)("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"}),"DateRange");const v6=ie(En)(({theme:e})=>({padding:e.spacing(3),borderRadius:e.shape.borderRadius,boxShadow:1,maxWidth:"100%",margin:"auto",marginTop:e.spacing(2),backgroundColor:"#fff",overflow:"auto"})),wl=ie(Rt)(({theme:e})=>({margin:e.spacing(0),paddingLeft:e.spacing(1),paddingRight:e.spacing(3)}));function y6(){const[e,t]=nn.useState(!1),[n,r]=p.useState(!1),[o,i]=nn.useState(""),[a,s]=nn.useState("info"),[l,c]=p.useState(!1),[u,f]=p.useState(""),[h,w]=p.useState(""),[y,x]=p.useState(!1),C=(R,T)=>{T!=="clickaway"&&t(!1)},v=()=>{r(!1)},m=R=>{x(R),r(!0)},b=async(R=!1)=>{var T,P;c(!0);try{const j=R?"/api/user/download_chat_logs/range":"/api/user/download_chat_logs",N=R?{params:{start_date:u,end_date:h}}:{},I=await Oe.get(j,{...N,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`},responseType:"blob"}),F=window.URL.createObjectURL(new Blob([I.data])),H=document.createElement("a");H.href=F,H.setAttribute("download",R?"chat_logs_range.csv":"chat_logs.csv"),document.body.appendChild(H),H.click(),i("Chat logs downloaded successfully."),s("success")}catch(j){i(`Failed to download chat logs: ${((P=(T=j.response)==null?void 0:T.data)==null?void 0:P.error)||j.message}`),s("error")}finally{c(!1)}t(!0)},k=async()=>{var R,T;r(!1),c(!0);try{const P=y?"/api/user/delete_chat_logs/range":"/api/user/delete_chat_logs",j=y?{params:{start_date:u,end_date:h}}:{},N=await Oe.delete(P,{...j,headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i(N.data.message),s("success")}catch(P){i(`Failed to delete chat logs: ${((T=(R=P.response)==null?void 0:R.data)==null?void 0:T.error)||P.message}`),s("error")}finally{c(!1)}t(!0)};return d.jsxs(v6,{sx:{height:"91vh"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Manage Your Chat Logs"}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Manage your chat logs efficiently by downloading or deleting entries for specific dates or entire ranges. Please be cautious as deletion is permanent."}),d.jsxs("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:20},children:[d.jsxs("div",{style:{display:"flex",gap:10,marginBottom:20},children:[d.jsx(it,{label:"Start Date",type:"date",value:u,onChange:R=>f(R.target.value),InputLabelProps:{shrink:!0}}),d.jsx(it,{label:"End Date",type:"date",value:h,onChange:R=>w(R.target.value),InputLabelProps:{shrink:!0}})]}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Here you can download your chat logs as a CSV file, which includes details like chat IDs, content, type, and additional information for each session."}),d.jsx(Zn,{title:"Download chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",startIcon:d.jsx(O2,{}),onClick:()=>b(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Range"})}),d.jsx(Zn,{title:"Download your chat logs as a CSV file",children:d.jsx(wl,{variant:"contained",color:"primary",startIcon:d.jsx(j2,{}),onClick:()=>b(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Download Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"If you need to clear your history for privacy or other reasons, you can also permanently delete your chat logs from the server."}),d.jsx(Zn,{title:"Delete chat logs for selected date range",children:d.jsx(wl,{variant:"outlined",color:"warning",startIcon:d.jsx(_p,{}),onClick:()=>m(!0),disabled:l||!u||!h,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Range"})}),d.jsx(Zn,{title:"Permanently delete all your chat logs",children:d.jsx(wl,{variant:"contained",color:"secondary",startIcon:d.jsx(_p,{}),onClick:()=>m(!1),disabled:l,children:l?d.jsx(_n,{size:24,color:"inherit"}):"Delete Chat Logs"})}),d.jsx(Ie,{variant:"body1",paragraph:!0,children:"Please use these options carefully as deleting your chat logs is irreversible."})]}),d.jsxs($p,{open:n,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[d.jsx(Op,{id:"alert-dialog-title",children:"Confirm Deletion"}),d.jsx(jp,{children:d.jsx(t2,{id:"alert-dialog-description",children:"Are you sure you want to delete these chat logs? This action cannot be undone."})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:v,color:"primary",children:"Cancel"}),d.jsx(Rt,{onClick:()=>k(),color:"secondary",autoFocus:!0,children:"Confirm"})]})]}),d.jsx(yo,{open:e,autoHideDuration:6e3,onClose:C,children:d.jsx(xr,{onClose:C,severity:a,sx:{width:"100%"},children:o})})]})}const Oy=()=>{const{user:e,voiceEnabled:t}=p.useContext(vr),n=e==null?void 0:e.userId,[r,o]=p.useState(0),[i,a]=p.useState(0),[s,l]=p.useState(""),[c,u]=p.useState([]),[f,h]=p.useState(!1),[w,y]=p.useState(null),x=p.useRef([]),[C,v]=p.useState(!1),[m,b]=p.useState(!1),[k,R]=p.useState(""),[T,P]=p.useState("info"),[j,N]=p.useState(null),I=_=>{if(!t||_===j){N(null),window.speechSynthesis.cancel();return}const E=window.speechSynthesis,g=new SpeechSynthesisUtterance(_),$=E.getVoices();console.log($.map(L=>`${L.name} - ${L.lang} - ${L.gender}`));const z=$.find(L=>L.name.includes("Microsoft Zira - English (United States)"));z?g.voice=z:console.log("No female voice found"),g.onend=()=>{N(null)},N(_),E.speak(g)},F=(_,E)=>{E!=="clickaway"&&b(!1)},H=p.useCallback(async()=>{if(r!==null){v(!0);try{const _=await fetch(`/api/ai/mental_health/finalize/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"}}),E=await _.json();_.ok?(R("Chat finalized successfully"),P("success"),o(null),a(0),u([])):(R("Failed to finalize chat"),P("error"))}catch{R("Error finalizing chat"),P("error")}finally{v(!1),b(!0)}}},[n,r]),U=p.useCallback(async()=>{if(s.trim()){console.log(r),v(!0);try{const _=JSON.stringify({prompt:s,turn_id:i}),E=await fetch(`/api/ai/mental_health/${n}/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:_}),g=await E.json();console.log(g),E.ok?(u($=>[...$,{message:s,sender:"user"},{message:g,sender:"agent"}]),a($=>$+1),l("")):(console.error("Failed to send message:",g),R(g.error||"An error occurred while sending the message."),P("error"),b(!0))}catch(_){console.error("Failed to send message:",_),R("Network or server error occurred."),P("error"),b(!0)}finally{v(!1)}}},[s,n,r,i]),q=()=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(_=>{x.current=[];const E={mimeType:"audio/webm"},g=new MediaRecorder(_,E);g.ondataavailable=$=>{console.log("Data available:",$.data.size),x.current.push($.data)},g.start(),y(g),h(!0)}).catch(console.error)},ee=()=>{w&&(w.onstop=()=>{J(x.current),h(!1),y(null)},w.stop())},J=_=>{console.log("Audio chunks size:",_.reduce(($,z)=>$+z.size,0));const E=new Blob(_,{type:"audio/webm"});if(E.size===0){console.error("Audio Blob is empty");return}console.log(`Sending audio blob of size: ${E.size} bytes`);const g=new FormData;g.append("audio",E),v(!0),Oe.post("/api/ai/mental_health/voice-to-text",g,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{const{message:z}=$.data;l(z),U()}).catch($=>{console.error("Error uploading audio:",$),b(!0),R("Error processing voice input: "+$.message),P("error")}).finally(()=>{v(!1)})},re=p.useCallback(_=>{l(_.target.value)},[]),O=_=>_===j?d.jsx(Lc,{}):d.jsx(_c,{});return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:` @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } @@ -486,4 +486,4 @@ Error generating stack: `+i.message+` font-size: 0.8rem; /* Smaller font size */ } } - `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(ad,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:W,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})}),c.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,E)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&d.jsx(ut,{onClick:()=>O(_.message),size:"small",sx:{ml:1},children:I(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(ud,{})})]})},E))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:s,onChange:re,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:f?ee:G,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),f&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?d.jsx(_n,{size:24}):d.jsx(kt,{variant:"contained",color:"primary",onClick:U,disabled:C||!s.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:m,autoHideDuration:6e3,onClose:F,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:F,severity:T,children:R})})]})]})};var yg={},w6=Te;Object.defineProperty(yg,"__esModule",{value:!0});var L2=yg.default=void 0,S6=w6(je()),C6=d;L2=yg.default=(0,S6.default)((0,C6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function R6(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return d.jsxs("div",{className:"mood-logging-container",children:[d.jsxs("h1",{children:[d.jsx(L2,{fontSize:"large"})," Track Your Vibes "]}),d.jsxs("div",{className:"mood-logging",children:[d.jsxs("div",{className:"input-group",children:[d.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),d.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),d.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),d.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),d.jsx(kt,{variant:"contained",className:"submit-button",onClick:a,startIcon:d.jsx(ra,{}),children:"Log Mood"}),o&&d.jsx("div",{className:"message",children:o})]})]})}function k6(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return d.jsxs("div",{className:"mood-logs",children:[d.jsxs("h2",{children:[d.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?d.jsx("div",{className:"error",children:n}):d.jsx("ul",{children:e.map((i,a)=>d.jsxs("li",{children:[d.jsxs("div",{children:[d.jsx("strong",{children:"Mood:"})," ",i.mood]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Activities:"})," ",i.activities]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function P6(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const A2=6e4,N2=36e5;function cf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function E6(e,t){const n=P6(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=cf(n.getDate(),2),s=cf(n.getMonth()+1,2);o=`${cf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function T6(e,t){const r=O6(e);let o;if(r.date){const l=I6(r.date,2);o=_6(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=L6(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=A6(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,M6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,j6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function O6(e){const t={},n=e.split(Sl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function I6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function _6(e,t){if(t===null)return new Date(NaN);const n=e.match($6);if(!n)return new Date(NaN);const r=!!n[4],o=Ra(n[1]),i=Ra(n[2])-1,a=Ra(n[3]),s=Ra(n[4]),l=Ra(n[5])-1;if(r)return F6(t,s,l)?N6(t,s,l):new Date(NaN);{const c=new Date(0);return!z6(t,i,a)||!B6(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function Ra(e){return e?parseInt(e):1}function L6(e){const t=e.match(M6);if(!t)return NaN;const n=uf(t[1]),r=uf(t[2]),o=uf(t[3]);return U6(n,r,o)?n*N2+r*A2+o*1e3:NaN}function uf(e){return e&&parseFloat(e.replace(",","."))||0}function A6(e){if(e==="Z")return 0;const t=e.match(j6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return W6(r,o)?n*(r*N2+o*A2):NaN}function N6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const D6=[31,null,31,30,31,30,31,31,30,31,30,31];function D2(e){return e%400===0||e%4===0&&e%100!==0}function z6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(D6[t]||(D2(e)?29:28))}function B6(e,t){return t>=1&&t<=(D2(e)?366:365)}function F6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function U6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function W6(e,t){return t>=0&&t<=59}function Ap({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=$s(),[c,u]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(u(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(C=>{const v=C.data;console.log("Fetched check-in data:",v);const m=E6(T6(v.check_in_time),{representation:"date"});r(m.slice(0,16)),i(v.frequency),s(v.notify),u(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),u(!1)}))},[t,l]);const y=async C=>{var P,j,N;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",R={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const k=t?"patch":"post",T={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",T);try{const O=await Oe[k](b,T,R);console.log("Success:",O.data.message),h({open:!0,message:O.data.message,severity:"success"})}catch(O){console.error("Error:",((P=O.response)==null?void 0:P.data)||O);const F=((N=(j=O.response)==null?void 0:j.data)==null?void 0:N.error)||"An unexpected error occurred";h({open:!0,message:F,severity:"error"})}},x=(C,v)=>{v!=="clickaway"&&h({...f,open:!1})};return c?d.jsx(Ie,{children:"Loading..."}):d.jsxs(at,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[d.jsx(it,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),d.jsxs(ld,{fullWidth:!0,sx:{marginBottom:3},children:[d.jsx(cd,{id:"frequency-label",children:"Frequency"}),d.jsxs(Us,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[d.jsx(Jn,{value:"daily",children:"Daily"}),d.jsx(Jn,{value:"weekly",children:"Weekly"}),d.jsx(Jn,{value:"monthly",children:"Monthly"})]}),d.jsx(Zn,{title:"Choose how often you want the check-ins to occur",children:d.jsx("i",{className:"fas fa-info-circle"})})]}),d.jsx(Tm,{control:d.jsx(Rm,{checked:a,onChange:C=>s(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),d.jsx(kt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),d.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:d.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Ap.propTypes={userId:Vd.string.isRequired,checkInId:Vd.string,update:Vd.bool.isRequired};var xg={},H6=Te;Object.defineProperty(xg,"__esModule",{value:!0});var z2=xg.default=void 0,V6=H6(je()),_y=d;z2=xg.default=(0,V6.default)([(0,_y.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,_y.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},q6=Te;Object.defineProperty(bg,"__esModule",{value:!0});var B2=bg.default=void 0,G6=q6(je()),K6=d;B2=bg.default=(0,G6.default)((0,K6.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},Y6=Te;Object.defineProperty(wg,"__esModule",{value:!0});var F2=wg.default=void 0,X6=Y6(je()),Q6=d;F2=wg.default=(0,X6.default)((0,Q6.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},J6=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var U2=Sg.default=void 0,Z6=J6(je()),ez=d;U2=Sg.default=(0,Z6.default)((0,ez.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},tz=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var W2=Cg.default=void 0,nz=tz(je()),rz=d;W2=Cg.default=(0,nz.default)((0,rz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const oz=ie(ad)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),iz=nn.forwardRef(function(t,n){return d.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function az(){const{userId:e}=$s(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState("info"),R=localStorage.getItem("token");p.useEffect(()=>{k()},[e]);const k=async()=>{if(!e){w("User not logged in");return}if(!R){w("No token found, please log in again");return}f(!0);try{const W=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${R}`}});if(console.log("API Response:",W.data),Array.isArray(W.data)&&W.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=W.data.map(G=>({...G,_id:G._id.$oid,check_in_time:new Date(G.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",W.data),w("Unexpected data format");f(!1)}catch(W){console.error("Error during fetch:",W),w(W.message),f(!1)}},T=W=>{const U=n.find(G=>G._id===W);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},j=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${R}`}}),v("Check-in deleted successfully"),b("success"),k(),P()}catch{v("Failed to delete check-in"),b("error")}x(!0)}},N=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},O=(W,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?u?d.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):d.jsxs(at,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),d.jsx(xs,{sx:{mb:2}}),n.length>0?d.jsx(Fs,{children:n.map(W=>d.jsxs(oz,{children:[d.jsx(eL,{children:d.jsx(Er,{sx:{bgcolor:"primary.main"},children:d.jsx(z2,{})})}),d.jsx(ws,{primary:`Check-In: ${W.check_in_time}`,secondary:d.jsx(TO,{label:W.frequency,icon:d.jsx(B2,{}),size:"small"})}),d.jsx(Zn,{title:"More options",children:d.jsx(ut,{onClick:()=>T(W._id),children:d.jsx(F2,{})})})]},W._id))}):d.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),d.jsxs(Mp,{open:a,onClose:P,children:[d.jsx(Ip,{children:"Check-In Details"}),d.jsx(Op,{children:d.jsxs(Ie,{component:"div",children:[d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:N,startIcon:d.jsx(W2,{}),children:"Update"}),d.jsx(kt,{onClick:F,startIcon:d.jsx(U2,{}),color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Close"})]})]}),d.jsxs(Mp,{open:l,onClose:P,children:[d.jsx(Ip,{children:"Confirm Deletion"}),d.jsx(Op,{children:d.jsx(n2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),d.jsxs(jp,{children:[d.jsx(kt,{onClick:j,color:"error",children:"Delete"}),d.jsx(kt,{onClick:P,children:"Cancel"})]})]}),d.jsx(yo,{open:y,autoHideDuration:6e3,onClose:O,children:d.jsx(iz,{onClose:O,severity:m,children:C})})]}):d.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:d.jsx(OP,{to:"/auth",replace:!0})};var Rg={},sz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var H2=Rg.default=void 0,lz=sz(je()),cz=d;H2=Rg.default=(0,lz.default)((0,cz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function uz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var u,f;c.preventDefault(),s(!0);try{const h=await Oe.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(u=h.response)==null?void 0:u.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:d.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[d.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),d.jsxs("form",{onSubmit:l,children:[d.jsx(it,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(H2,{})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:d.jsx(ra,{}),children:a?d.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&d.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var kg={},dz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var Np=kg.default=void 0,fz=dz(je()),pz=d;Np=kg.default=(0,fz.default)((0,pz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},hz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var V2=Pg.default=void 0,mz=hz(je()),gz=d;V2=Pg.default=(0,mz.default)((0,gz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function vz(){const e=qo(),{token:t}=$s(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[u,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:d.jsxs(En,{elevation:6,children:[d.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",d.jsx(V2,{})]}),d.jsxs("form",{onSubmit:h,children:[d.jsx(it,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(it,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Np,{}):d.jsx(Ac,{})})})}}),d.jsx(kt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:d.jsx(ra,{}),children:"Reset Password"})]}),l&&d.jsx(xr,{severity:u?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function yz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),d.jsx(xz,{children:d.jsxs(_P,{children:[d.jsx(mn,{path:"/",element:d.jsx(wr,{children:e!=null&&e.userId?d.jsx(zN,{}):d.jsx(Iy,{})})}),d.jsx(mn,{path:"/chat",element:d.jsx(wr,{children:d.jsx(Iy,{})})}),d.jsx(mn,{path:"/reset_password/:token",element:d.jsx(vz,{})}),d.jsx(mn,{path:"/request_reset",element:d.jsx(uz,{})}),d.jsx(mn,{path:"/auth",element:d.jsx(ZN,{})}),d.jsx(mn,{path:"/user/profile/:userId",element:d.jsx(wr,{children:d.jsx(OD,{})})}),d.jsx(mn,{path:"/user/mood_logging",element:d.jsx(wr,{children:d.jsx(R6,{})})}),d.jsx(mn,{path:"/user/mood_logs",element:d.jsx(wr,{children:d.jsx(k6,{})})}),d.jsx(mn,{path:"/user/check_in",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),d.jsx(mn,{path:"/user/check_in/:checkInId",element:d.jsx(wr,{children:d.jsx(Ap,{userId:e==null?void 0:e.userId,update:!0})})}),d.jsx(mn,{path:"/user/chat_log_Manager",element:d.jsx(wr,{children:d.jsx(b6,{})})}),d.jsx(mn,{path:"/user/check_ins/:userId",element:d.jsx(wr,{children:d.jsx(az,{})})})]})})}function xz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return d.jsxs(at,{sx:{display:"flex",maxHeight:"100vh"},children:[d.jsx(km,{}),r&&d.jsx(c6,{toggleSidebar:s}),r&&i&&d.jsx(ZD,{}),d.jsx(at,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function bz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:bz(Sz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=wz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});df.createRoot(document.getElementById("root")).render(d.jsx(UP,{children:d.jsx(YP,{children:d.jsx(yz,{})})})); + `}),d.jsxs(at,{sx:{maxWidth:"100%",mx:"auto",my:2,display:"flex",flexDirection:"column",height:"91vh",borderRadius:2,boxShadow:1},children:[d.jsxs(id,{sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:2,boxShadow:3},children:[d.jsxs(Cm,{sx:{flexGrow:1,overflow:"auto",padding:3,position:"relative"},children:[d.jsx(Zn,{title:"Start a new chat",placement:"top",arrow:!0,children:d.jsx(ut,{"aria-label":"new chat",color:"primary",onClick:H,disabled:C,sx:{position:"absolute",top:5,right:5,"&:hover":{backgroundColor:"primary.main",color:"common.white"}},children:d.jsx(Um,{})})}),c.length===0&&d.jsxs(at,{sx:{display:"flex",marginBottom:2,marginTop:3},children:[d.jsx(Er,{src:Pi,sx:{width:44,height:44,marginRight:2},alt:"Aria"}),d.jsx(Ie,{variant:"h4",component:"h1",gutterBottom:!0,children:"Welcome to Mental Health Companion"})]}),d.jsx(Fs,{sx:{maxHeight:"100%",overflow:"auto"},children:c.map((_,E)=>d.jsx(Oc,{sx:{display:"flex",flexDirection:"column",alignItems:_.sender==="user"?"flex-end":"flex-start",borderRadius:2,mb:.5,p:1,border:"none","&:before":{display:"none"},"&:after":{display:"none"}},children:d.jsxs(at,{sx:{display:"flex",alignItems:"center",color:_.sender==="user"?"common.white":"text.primary",borderRadius:"16px"},children:[_.sender==="agent"&&d.jsx(Er,{src:Pi,sx:{width:36,height:36,mr:1},alt:"Aria"}),d.jsx(ws,{primary:d.jsxs(at,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap"},children:[_.message,t&&_.sender==="agent"&&d.jsx(ut,{onClick:()=>I(_.message),size:"small",sx:{ml:1},children:O(_.message)})]}),primaryTypographyProps:{sx:{color:_.sender==="user"?"common.white":"text.primary",bgcolor:_.sender==="user"?"primary.main":"grey.200",borderRadius:"16px",px:2,py:1,display:"inline-block"}}}),_.sender==="user"&&d.jsx(Er,{sx:{width:36,height:36,ml:1},children:d.jsx(cd,{})})]})},E))})]}),d.jsx(xs,{}),d.jsxs(at,{sx:{p:2,pb:1,display:"flex",alignItems:"center",bgcolor:"background.paper"},children:[d.jsx(it,{fullWidth:!0,variant:"outlined",placeholder:"Type your message here...",value:s,onChange:re,disabled:C,sx:{mr:1,flexGrow:1},InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsxs(ut,{onClick:f?ee:q,color:"primary.main","aria-label":f?"Stop recording":"Start recording",size:"large",edge:"end",disabled:C,children:[f?d.jsx(Nm,{size:"small"}):d.jsx(Lm,{size:"small"}),f&&d.jsx(_n,{size:30,sx:{color:"primary.main",position:"absolute",zIndex:1}})]})})}}),C?d.jsx(_n,{size:24}):d.jsx(Rt,{variant:"contained",color:"primary",onClick:U,disabled:C||!s.trim(),endIcon:d.jsx(ra,{}),children:"Send"})]})]}),d.jsx(yo,{open:m,autoHideDuration:6e3,onClose:F,children:d.jsx(xr,{elevation:6,variant:"filled",onClose:F,severity:T,children:k})})]})]})};var yg={},x6=Te;Object.defineProperty(yg,"__esModule",{value:!0});var I2=yg.default=void 0,b6=x6(je()),w6=d;I2=yg.default=(0,b6.default)((0,w6.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"}),"Mood");function S6(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(""),a=async()=>{const s=localStorage.getItem("token");if(!e||!n){i("Both mood and activities are required.");return}if(!s){i("You are not logged in.");return}try{const l=await Oe.post("/api/user/log_mood",{mood:e,activities:n},{headers:{Authorization:`Bearer ${s}`}});i(l.data.message)}catch(l){i(l.response.data.error)}};return d.jsxs("div",{className:"mood-logging-container",children:[d.jsxs("h1",{children:[d.jsx(I2,{fontSize:"large"})," Track Your Vibes "]}),d.jsxs("div",{className:"mood-logging",children:[d.jsxs("div",{className:"input-group",children:[d.jsx("label",{htmlFor:"mood-input",children:"Mood:"}),d.jsx("input",{id:"mood-input",type:"text",value:e,onChange:s=>t(s.target.value),placeholder:"Enter your current mood"}),d.jsx("label",{htmlFor:"activities-input",children:"Activities:"}),d.jsx("input",{id:"activities-input",type:"text",value:n,onChange:s=>r(s.target.value),placeholder:"What are you doing?"})]}),d.jsx(Rt,{variant:"contained",className:"submit-button",onClick:a,startIcon:d.jsx(ra,{}),children:"Log Mood"}),o&&d.jsx("div",{className:"message",children:o})]})]})}function C6(){const[e,t]=p.useState([]),[n,r]=p.useState("");p.useEffect(()=>{(async()=>{const a=localStorage.getItem("token");if(!a){r("You are not logged in.");return}try{const s=await Oe.get("/api/user/get_mood_logs",{headers:{Authorization:`Bearer ${a}`}});console.log("Received data:",s.data),t(s.data.mood_logs||[])}catch(s){r(s.response.data.error)}})()},[]);const o=i=>{const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"};try{const s=i.$date;return new Date(s).toLocaleDateString("en-US",a)}catch(s){return console.error("Date parsing error:",s),"Invalid Date"}};return d.jsxs("div",{className:"mood-logs",children:[d.jsxs("h2",{children:[d.jsx(sg,{className:"icon-large"}),"Your Mood Journey"]}),n?d.jsx("div",{className:"error",children:n}):d.jsx("ul",{children:e.map((i,a)=>d.jsxs("li",{children:[d.jsxs("div",{children:[d.jsx("strong",{children:"Mood:"})," ",i.mood]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Activities:"})," ",i.activities]}),d.jsxs("div",{children:[d.jsx("strong",{children:"Timestamp:"})," ",o(i.timestamp)]})]},a))})]})}function k6(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}const _2=6e4,L2=36e5;function lf(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}function R6(e,t){const n=k6(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended";let o="";const i=r==="extended"?"-":"";{const a=lf(n.getDate(),2),s=lf(n.getMonth()+1,2);o=`${lf(n.getFullYear(),4)}${i}${s}${i}${a}`}return o}function P6(e,t){const r=M6(e);let o;if(r.date){const l=j6(r.date,2);o=O6(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const i=o.getTime();let a=0,s;if(r.time&&(a=I6(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=_6(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(i+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(i+a+s)}const Sl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},E6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,T6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function M6(e){const t={},n=e.split(Sl.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sl.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=Sl.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function j6(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function O6(e,t){if(t===null)return new Date(NaN);const n=e.match(E6);if(!n)return new Date(NaN);const r=!!n[4],o=ka(n[1]),i=ka(n[2])-1,a=ka(n[3]),s=ka(n[4]),l=ka(n[5])-1;if(r)return z6(t,s,l)?L6(t,s,l):new Date(NaN);{const c=new Date(0);return!N6(t,i,a)||!D6(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function ka(e){return e?parseInt(e):1}function I6(e){const t=e.match(T6);if(!t)return NaN;const n=cf(t[1]),r=cf(t[2]),o=cf(t[3]);return B6(n,r,o)?n*L2+r*_2+o*1e3:NaN}function cf(e){return e&&parseFloat(e.replace(",","."))||0}function _6(e){if(e==="Z")return 0;const t=e.match($6);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return F6(r,o)?n*(r*L2+o*_2):NaN}function L6(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const A6=[31,null,31,30,31,30,31,31,30,31,30,31];function A2(e){return e%400===0||e%4===0&&e%100!==0}function N6(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(A6[t]||(A2(e)?29:28))}function D6(e,t){return t>=1&&t<=(A2(e)?366:365)}function z6(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function B6(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function F6(e,t){return t>=0&&t<=59}function Lp({userId:e,update:t}){const[n,r]=p.useState(""),[o,i]=p.useState("daily"),[a,s]=p.useState(!1),{checkInId:l}=$s(),[c,u]=p.useState(!1),[f,h]=p.useState({open:!1,message:"",severity:"info"}),w=localStorage.getItem("token");p.useEffect(()=>{t&&l&&(u(!0),Oe.get(`/api/check-in/${l}`,{headers:{Authorization:`Bearer ${w}`}}).then(C=>{const v=C.data;console.log("Fetched check-in data:",v);const m=R6(P6(v.check_in_time),{representation:"date"});r(m.slice(0,16)),i(v.frequency),s(v.notify),u(!1)}).catch(C=>{console.error("Failed to fetch check-in details:",C),u(!1)}))},[t,l]);const y=async C=>{var P,j,N;if(C.preventDefault(),new Date(n)<=new Date){h({open:!0,message:"Cannot schedule check-in in the past. Please choose a future time.",severity:"error"});return}const b=t?`/api/check-in/${l}`:"/api/check-in/schedule",k={headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}};console.log("URL:",b);const R=t?"patch":"post",T={user_id:e,check_in_time:n,frequency:o,notify:a};console.log("Submitting:",T);try{const I=await Oe[R](b,T,k);console.log("Success:",I.data.message),h({open:!0,message:I.data.message,severity:"success"})}catch(I){console.error("Error:",((P=I.response)==null?void 0:P.data)||I);const F=((N=(j=I.response)==null?void 0:j.data)==null?void 0:N.error)||"An unexpected error occurred";h({open:!0,message:F,severity:"error"})}},x=(C,v)=>{v!=="clickaway"&&h({...f,open:!1})};return c?d.jsx(Ie,{children:"Loading..."}):d.jsxs(at,{component:"form",onSubmit:y,noValidate:!0,sx:{mt:4,padding:3,borderRadius:2,boxShadow:3},children:[d.jsx(it,{id:"datetime-local",label:"Check-in Time",type:"datetime-local",fullWidth:!0,value:n,onChange:C=>r(C.target.value),sx:{marginBottom:3},InputLabelProps:{shrink:!0},required:!0,helperText:"Select the date and time for your check-in."}),d.jsxs(sd,{fullWidth:!0,sx:{marginBottom:3},children:[d.jsx(ld,{id:"frequency-label",children:"Frequency"}),d.jsxs(Us,{labelId:"frequency-label",id:"frequency",value:o,label:"Frequency",onChange:C=>i(C.target.value),children:[d.jsx(Jn,{value:"daily",children:"Daily"}),d.jsx(Jn,{value:"weekly",children:"Weekly"}),d.jsx(Jn,{value:"monthly",children:"Monthly"})]}),d.jsx(Zn,{title:"Choose how often you want the check-ins to occur",children:d.jsx("i",{className:"fas fa-info-circle"})})]}),d.jsx(Tm,{control:d.jsx(km,{checked:a,onChange:C=>s(C.target.checked),color:"primary"}),label:"Notify me",sx:{marginBottom:2}}),d.jsx(Rt,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",sx:{mt:2,mb:2,padding:"10px 0"},children:t?"Update Check-In":"Schedule Check-In"}),d.jsx(yo,{open:f.open,autoHideDuration:6e3,onClose:x,children:d.jsx(xr,{onClose:x,severity:f.severity,children:f.message})})]})}Lp.propTypes={userId:Hd.string.isRequired,checkInId:Hd.string,update:Hd.bool.isRequired};var xg={},U6=Te;Object.defineProperty(xg,"__esModule",{value:!0});var N2=xg.default=void 0,W6=U6(je()),Iy=d;N2=xg.default=(0,W6.default)([(0,Iy.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Iy.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var bg={},H6=Te;Object.defineProperty(bg,"__esModule",{value:!0});var D2=bg.default=void 0,V6=H6(je()),q6=d;D2=bg.default=(0,V6.default)((0,q6.jsx)("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat");var wg={},G6=Te;Object.defineProperty(wg,"__esModule",{value:!0});var z2=wg.default=void 0,K6=G6(je()),Y6=d;z2=wg.default=(0,K6.default)((0,Y6.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Sg={},X6=Te;Object.defineProperty(Sg,"__esModule",{value:!0});var B2=Sg.default=void 0,Q6=X6(je()),J6=d;B2=Sg.default=(0,Q6.default)((0,J6.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var Cg={},Z6=Te;Object.defineProperty(Cg,"__esModule",{value:!0});var F2=Cg.default=void 0,ez=Z6(je()),tz=d;F2=Cg.default=(0,ez.default)((0,tz.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");const nz=ie(id)(({theme:e})=>({marginBottom:e.spacing(2),padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",transition:"transform 0.1s ease-in-out","&:hover":{transform:"scale(1.01)",boxShadow:e.shadows[3]}})),rz=nn.forwardRef(function(t,n){return d.jsx(xr,{elevation:6,ref:n,variant:"filled",...t})});function oz(){const{userId:e}=$s(),t=qo(),[n,r]=p.useState([]),[o,i]=p.useState(null),[a,s]=p.useState(!1),[l,c]=p.useState(!1),[u,f]=p.useState(!1),[h,w]=p.useState(""),[y,x]=p.useState(!1),[C,v]=p.useState(""),[m,b]=p.useState("info"),k=localStorage.getItem("token");p.useEffect(()=>{R()},[e]);const R=async()=>{if(!e){w("User not logged in");return}if(!k){w("No token found, please log in again");return}f(!0);try{const H=await Oe.get(`/api/check-in/all?user_id=${e}`,{headers:{Authorization:`Bearer ${k}`}});if(console.log("API Response:",H.data),Array.isArray(H.data)&&H.data.every(U=>U._id&&U._id.$oid&&U.check_in_time&&U.check_in_time.$date)){const U=H.data.map(q=>({...q,_id:q._id.$oid,check_in_time:new Date(q.check_in_time.$date).toLocaleString()}));r(U)}else console.error("Data received is not in expected array format:",H.data),w("Unexpected data format");f(!1)}catch(H){console.error("Error during fetch:",H),w(H.message),f(!1)}},T=H=>{const U=n.find(q=>q._id===H);U&&(i(U),console.log("Selected check-in for details or update:",U),s(!0))},P=()=>{s(!1),c(!1)},j=async()=>{if(o){try{await Oe.delete(`/api/check-in/${o._id}`,{headers:{Authorization:`Bearer ${k}`}}),v("Check-in deleted successfully"),b("success"),R(),P()}catch{v("Failed to delete check-in"),b("error")}x(!0)}},N=()=>{t(`/user/check_in/${o._id}`),console.log("Redirecting to update check-in form",o._id)},I=(H,U)=>{U!=="clickaway"&&x(!1)},F=()=>{c(!0)};return e?u?d.jsx(Ie,{variant:"h6",mt:"2",children:"Loading..."}):d.jsxs(at,{sx:{margin:3,maxWidth:600,mx:"auto",maxHeight:"91vh",overflow:"auto"},children:[d.jsx(Ie,{variant:"h4",gutterBottom:!0,children:"Track Your Commitments"}),d.jsx(xs,{sx:{mb:2}}),n.length>0?d.jsx(Fs,{children:n.map(H=>d.jsxs(nz,{children:[d.jsx(J_,{children:d.jsx(Er,{sx:{bgcolor:"primary.main"},children:d.jsx(N2,{})})}),d.jsx(ws,{primary:`Check-In: ${H.check_in_time}`,secondary:d.jsx(PO,{label:H.frequency,icon:d.jsx(D2,{}),size:"small"})}),d.jsx(Zn,{title:"More options",children:d.jsx(ut,{onClick:()=>T(H._id),children:d.jsx(z2,{})})})]},H._id))}):d.jsx(Ie,{variant:"h6",sx:{mb:2,mt:2,color:"error.main",fontWeight:"medium",textAlign:"center",padding:2,borderRadius:1,backgroundColor:"background.paper",boxShadow:2},children:"No check-ins found."}),d.jsxs($p,{open:a,onClose:P,children:[d.jsx(Op,{children:"Check-In Details"}),d.jsx(jp,{children:d.jsxs(Ie,{component:"div",children:[d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Time:"})," ",o==null?void 0:o.check_in_time]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Frequency:"})," ",o==null?void 0:o.frequency]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Status:"})," ",o==null?void 0:o.status]}),d.jsxs(Ie,{variant:"body1",children:[d.jsx("strong",{children:"Notify:"})," ",o!=null&&o.notify?"Yes":"No"]})]})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:N,startIcon:d.jsx(F2,{}),children:"Update"}),d.jsx(Rt,{onClick:F,startIcon:d.jsx(B2,{}),color:"error",children:"Delete"}),d.jsx(Rt,{onClick:P,children:"Close"})]})]}),d.jsxs($p,{open:l,onClose:P,children:[d.jsx(Op,{children:"Confirm Deletion"}),d.jsx(jp,{children:d.jsx(t2,{children:"Are you sure you want to delete this check-in? This action cannot be undone."})}),d.jsxs(Mp,{children:[d.jsx(Rt,{onClick:j,color:"error",children:"Delete"}),d.jsx(Rt,{onClick:P,children:"Cancel"})]})]}),d.jsx(yo,{open:y,autoHideDuration:6e3,onClose:I,children:d.jsx(rz,{onClose:I,severity:m,children:C})})]}):d.jsx(Ie,{variant:"h6",mt:"2",children:"Please log in to see your check-ins."})}const wr=({children:e})=>{const t=localStorage.getItem("token");return console.log("isAuthenticated:",t),t?e:d.jsx(MP,{to:"/auth",replace:!0})};var kg={},iz=Te;Object.defineProperty(kg,"__esModule",{value:!0});var U2=kg.default=void 0,az=iz(je()),sz=d;U2=kg.default=(0,az.default)((0,sz.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline");function lz(){const[e,t]=p.useState(""),[n,r]=p.useState(""),[o,i]=p.useState(!1),[a,s]=p.useState(!1),l=async c=>{var u,f;c.preventDefault(),s(!0);try{const h=await Oe.post("/api/user/request_reset",{email:e});r(h.data.message),i(!1)}catch(h){r(((f=(u=h.response)==null?void 0:u.data)==null?void 0:f.message)||"Failed to send reset link. Please try again."),i(!0)}s(!1)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{background:"#fff",padding:"30px",width:"400px",textAlign:"center"}},children:d.jsxs(En,{elevation:3,style:{padding:"30px",width:"400px",textAlign:"center"},children:[d.jsx(Ie,{variant:"h5",component:"h1",marginBottom:"20px",children:"Reset Your Password"}),d.jsxs("form",{onSubmit:l,children:[d.jsx(it,{label:"Email Address",type:"email",value:e,onChange:c=>t(c.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(U2,{})}}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:a,endIcon:a?null:d.jsx(ra,{}),children:a?d.jsx(_n,{size:24}):"Send Reset Link"})]}),n&&d.jsx(xr,{severity:o?"error":"success",sx:{maxWidth:"325px",mt:2},children:n})]})})}var Rg={},cz=Te;Object.defineProperty(Rg,"__esModule",{value:!0});var Ap=Rg.default=void 0,uz=cz(je()),dz=d;Ap=Rg.default=(0,uz.default)((0,dz.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var Pg={},fz=Te;Object.defineProperty(Pg,"__esModule",{value:!0});var W2=Pg.default=void 0,pz=fz(je()),hz=d;W2=Pg.default=(0,pz.default)((0,hz.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"}),"LockReset");function mz(){const e=qo(),{token:t}=$s(),[n,r]=p.useState(""),[o,i]=p.useState(""),[a,s]=p.useState(!1),[l,c]=p.useState(""),[u,f]=p.useState(!1),h=async y=>{if(y.preventDefault(),n!==o){c("Passwords do not match."),f(!0);return}try{const x=await Oe.post(`/api/user/reset_password/${t}`,{password:n});c(x.data.message),f(!1),setTimeout(()=>e("/auth"),2e3)}catch(x){c(x.response.data.error),f(!0)}},w=()=>{s(!a)};return d.jsx(at,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",sx:{background:"linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)","& .MuiPaper-root":{padding:"40px",width:"400px",textAlign:"center",marginTop:"20px",borderRadius:"10px"}},children:d.jsxs(En,{elevation:6,children:[d.jsxs(Ie,{variant:"h5",component:"h1",marginBottom:"2",children:["Reset Your Password ",d.jsx(W2,{})]}),d.jsxs("form",{onSubmit:h,children:[d.jsx(it,{label:"New Password",type:a?"text":"password",value:n,onChange:y=>r(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Ap,{}):d.jsx(Ac,{})})})}}),d.jsx(it,{label:"Confirm New Password",type:a?"text":"password",value:o,onChange:y=>i(y.target.value),variant:"outlined",fullWidth:!0,required:!0,margin:"normal",InputProps:{endAdornment:d.jsx(jc,{position:"end",children:d.jsx(ut,{"aria-label":"toggle password visibility",onClick:w,children:a?d.jsx(Ap,{}):d.jsx(Ac,{})})})}}),d.jsx(Rt,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,sx:{mt:2},endIcon:d.jsx(ra,{}),children:"Reset Password"})]}),l&&d.jsx(xr,{severity:u?"error":"success",sx:{mt:2,maxWidth:"325px"},children:l})]})})}function gz(){const{user:e}=p.useContext(vr);return p.useEffect(()=>{document.body.style.backgroundColor="#f5f5f5"},[]),d.jsx(vz,{children:d.jsxs(OP,{children:[d.jsx(mn,{path:"/",element:d.jsx(wr,{children:e!=null&&e.userId?d.jsx(NN,{}):d.jsx(Oy,{})})}),d.jsx(mn,{path:"/chat",element:d.jsx(wr,{children:d.jsx(Oy,{})})}),d.jsx(mn,{path:"/reset_password/:token",element:d.jsx(mz,{})}),d.jsx(mn,{path:"/request_reset",element:d.jsx(lz,{})}),d.jsx(mn,{path:"/auth",element:d.jsx(QN,{})}),d.jsx(mn,{path:"/user/profile/:userId",element:d.jsx(wr,{children:d.jsx(MD,{})})}),d.jsx(mn,{path:"/user/mood_logging",element:d.jsx(wr,{children:d.jsx(S6,{})})}),d.jsx(mn,{path:"/user/mood_logs",element:d.jsx(wr,{children:d.jsx(C6,{})})}),d.jsx(mn,{path:"/user/check_in",element:d.jsx(wr,{children:d.jsx(Lp,{userId:e==null?void 0:e.userId,checkInId:"",update:!1})})}),d.jsx(mn,{path:"/user/check_in/:checkInId",element:d.jsx(wr,{children:d.jsx(Lp,{userId:e==null?void 0:e.userId,update:!0})})}),d.jsx(mn,{path:"/user/chat_log_Manager",element:d.jsx(wr,{children:d.jsx(y6,{})})}),d.jsx(mn,{path:"/user/check_ins/:userId",element:d.jsx(wr,{children:d.jsx(oz,{})})})]})})}function vz({children:e}){p.useContext(vr);const t=ho(),r=!["/auth","/request_reset",new RegExp("^/reset_password/[^/]+$")].some(l=>typeof l=="string"?l===t.pathname:l.test(t.pathname)),o=r?6:0,[i,a]=p.useState(!0),s=()=>{a(!i)};return d.jsxs(at,{sx:{display:"flex",maxHeight:"100vh"},children:[d.jsx(Rm,{}),r&&d.jsx(s6,{toggleSidebar:s}),r&&i&&d.jsx(QD,{}),d.jsx(at,{component:"main",sx:{flexGrow:1,p:o},children:e})]})}function yz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let i=0;i{if(t!=="granted")throw new Error("Permission not granted for Notification");return e.pushManager.getSubscription()}).then(function(t){return t||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:yz(bz)})}).then(function(t){console.log("Subscription:",t);const n={p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(t.getKey("auth"))))};if(console.log("Subscription keys:",n),!n.p256dh||!n.auth)throw console.error("Subscription object:",t),new Error("Subscription keys are missing");const r={endpoint:t.endpoint,keys:n},o=xz();if(!o)throw new Error("No token found");return fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(r)})}).then(t=>t.json()).then(t=>console.log("Subscription response:",t)).catch(t=>console.error("Subscription failed:",t))}).catch(function(e){console.error("Service Worker registration failed:",e)})});uf.createRoot(document.getElementById("root")).render(d.jsx(BP,{children:d.jsx(GP,{children:d.jsx(gz,{})})})); diff --git a/client/dist/index.html b/client/dist/index.html index 7ecaa4f9..0249de86 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -10,7 +10,7 @@ content="Web site created using create-react-app" /> Mental Health App - + diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index 046650c5..eee7bb07 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -207,120 +207,98 @@ const ChatComponent = () => { }, [input, userId, chatId, turnId]); - const supportsWebM = () => { - // This is a simple test; for more robust detection, consider specific codec checks - const mediaRecorderType = MediaRecorder.isTypeSupported ? MediaRecorder.isTypeSupported('audio/webm; codecs=opus') : false; - return mediaRecorderType; - }; // Function to handle recording start - const startRecording = () => { - navigator.mediaDevices.getUserMedia({ audio: { - sampleRate: 44100, // iOS supports 44.1 kHz sample rate - channelCount: 1, // Mono audio + // Function to check supported MIME types for recording +const getSupportedMimeType = () => { + if (MediaRecorder.isTypeSupported('audio/webm; codecs=opus')) { + return 'audio/webm; codecs=opus'; + } else if (MediaRecorder.isTypeSupported('audio/mp4')) { + // Fallback for Safari on iOS + return 'audio/mp4'; + } else { + // Default to WAV if no other formats are supported + return 'audio/wav'; + } +}; + +// Function to start recording +const startRecording = () => { + navigator.mediaDevices.getUserMedia({ + audio: { + sampleRate: 44100, + channelCount: 1, volume: 1.0, echoCancellation: true - }}) - .then(stream => { - audioChunksRef.current = []; // Clear the ref at the start of recording - const isWebMSupported = supportsWebM(); - let recorder; - const options = { type: 'audio', - mimeType: isWebMSupported ? 'audio/webm; codecs=opus' : 'audio/wav' }; - if (isWebMSupported) { - recorder = new MediaRecorder(stream, options); - } else { - // RecordRTC options need to be adjusted if RecordRTC is used - recorder = new RecordRTC(stream, { - type: 'audio', - mimeType: 'audio/wav', - recorderType: RecordRTC.StereoAudioRecorder, - numberOfAudioChannels: 1 - }); - recorder.startRecording(); - } - recorder.ondataavailable = (e) => { - console.log('Data available:', e.data.size); // Log size to check if data is present - audioChunksRef.current.push(e.data); - }; + } + }) + .then(stream => { + audioChunksRef.current = []; + const mimeType = getSupportedMimeType(); + let recorder = new MediaRecorder(stream, { mimeType }); + + recorder.ondataavailable = e => { + audioChunksRef.current.push(e.data); + }; - if (recorder instanceof MediaRecorder) { - recorder.start(); - } - setMediaRecorder(recorder); - setIsRecording(true); - }).catch(error => { - console.error('Error accessing microphone:', error); - setOpen(true); - setSnackbarMessage('Unable to access microphone: ' + error.message); - setSnackbarSeverity('error'); - }); - }; + recorder.start(); + setMediaRecorder(recorder); + setIsRecording(true); + }) + .catch(error => { + console.error('Error accessing microphone:', error); + // Handle error - show message to user + }); +}; - // Function to handle recording stop - const stopRecording = () => { - if (mediaRecorder) { - // First ensure all tracks are stopped - if (mediaRecorder.stream && mediaRecorder.stream.active) { - mediaRecorder.stream.getTracks().forEach(track => track.stop()); - } - - mediaRecorder.onstop = () => { - sendAudioToServer(audioChunksRef.current, { type: mediaRecorder.mimeType }); - setIsRecording(false); - setMediaRecorder(null); - }; - - // Now call stop on the recorder if it exists - if (mediaRecorder instanceof MediaRecorder) { - mediaRecorder.stop(); - } else if (typeof mediaRecorder.stopRecording === 'function') { - mediaRecorder.stopRecording(function() { - mediaRecorder.getBlob(); - // Do something with the blob - }); - } +// Function to stop recording +const stopRecording = () => { + if (mediaRecorder) { + mediaRecorder.stream.getTracks().forEach(track => track.stop()); + + mediaRecorder.onstop = () => { + const mimeType = mediaRecorder.mimeType; + const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); + sendAudioToServer(audioBlob); + setIsRecording(false); + setMediaRecorder(null); + }; + + mediaRecorder.stop(); } }; - - const sendAudioToServer = () => { - const mimeType = mediaRecorder.mimeType; // Ensure this is defined in your recorder setup - console.log('Audio chunks size:', audioChunksRef.current.reduce((sum, chunk) => sum + chunk.size, 0)); - const audioBlob = new Blob(audioChunksRef.current, { type: mimeType }); - if (audioBlob.size === 0) { - console.error('Audio Blob is empty'); - setSnackbarMessage('Recording is empty. Please try again.'); - setSnackbarSeverity('error'); - setOpen(true); - return; - } - console.log(`Sending audio blob of size: ${audioBlob.size} bytes`); - const formData = new FormData(); - formData.append('audio', audioBlob); - setIsLoading(true); +// Function to send audio to server +const sendAudioToServer = (audioBlob) => { + if (audioBlob.size === 0) { + console.error('Audio Blob is empty'); + // Handle error - show message to user + return; + } - axios.post('/api/ai/mental_health/voice-to-text', formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }) - .then(response => { - const { message } = response.data; - setInput(message); - sendMessage(); - }) - .catch(error => { - console.error('Error uploading audio:', error); - setOpen(true); - setSnackbarMessage('Error processing voice input: ' + error.message); - setSnackbarSeverity('error'); - }) - .finally(() => { - setIsLoading(false); - }); - }; // Remove audioChunks from dependencies to prevent re-creation + const formData = new FormData(); + formData.append('audio', audioBlob); + setIsLoading(true); + + axios.post('/api/ai/mental_health/voice-to-text', formData, { + headers: { + 'Content-Type': 'multipart/form-data' + } + }) + .then(response => { + const { message } = response.data; + setInput(message); + sendMessage(); + }) + .catch(error => { + console.error('Error uploading audio:', error); + // Handle error - show message to user + }) + .finally(() => { + setIsLoading(false); + }); +};// Remove audioChunks from dependencies to prevent re-creation // Handle input changes