diff --git "a/assets/index-a6505a9c.js" "b/assets/index-a6505a9c.js" new file mode 100644--- /dev/null +++ "b/assets/index-a6505a9c.js" @@ -0,0 +1,135 @@ +function S0(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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)}})();function Wp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sn(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 Up={exports:{}},Zl={},Hp={exports:{}},Z={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xi=Symbol.for("react.element"),C0=Symbol.for("react.portal"),k0=Symbol.for("react.fragment"),b0=Symbol.for("react.strict_mode"),E0=Symbol.for("react.profiler"),P0=Symbol.for("react.provider"),R0=Symbol.for("react.context"),T0=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),_0=Symbol.for("react.memo"),M0=Symbol.for("react.lazy"),Td=Symbol.iterator;function O0(e){return e===null||typeof e!="object"?null:(e=Td&&e[Td]||e["@@iterator"],typeof e=="function"?e:null)}var Vp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yp=Object.assign,Kp={};function ao(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gp(){}Gp.prototype=ao.prototype;function Gu(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}var qu=Gu.prototype=new Gp;qu.constructor=Gu;Yp(qu,ao.prototype);qu.isPureReactComponent=!0;var $d=Array.isArray,qp=Object.prototype.hasOwnProperty,Qu={current:null},Qp={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)qp.call(t,r)&&!Qp.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Q=R[X];if(0>>1;Xo(le,A))Wo(re,le)?(R[X]=re,R[W]=A,X=W):(R[X]=le,R[G]=A,X=G);else if(Wo(re,A))R[X]=re,R[W]=A,X=W;else break e}}return z}function o(R,z){var A=R.sortIndex-z.sortIndex;return A!==0?A:R.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,h=null,m=3,w=!1,g=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(R){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=R)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function v(R){if(y=!1,f(R),!g)if(n(a)!==null)g=!0,L(k);else{var z=n(u);z!==null&&j(v,z.startTime-R)}}function k(R,z){g=!1,y&&(y=!1,p(T),T=-1),w=!0;var A=m;try{for(f(z),h=n(a);h!==null&&(!(h.expirationTime>z)||R&&!D());){var X=h.callback;if(typeof X=="function"){h.callback=null,m=h.priorityLevel;var Q=X(h.expirationTime<=z);z=e.unstable_now(),typeof Q=="function"?h.callback=Q:h===n(a)&&r(a),f(z)}else r(a);h=n(a)}if(h!==null)var ae=!0;else{var G=n(u);G!==null&&j(v,G.startTime-z),ae=!1}return ae}finally{h=null,m=A,w=!1}}var b=!1,C=null,T=-1,F=5,$=-1;function D(){return!(e.unstable_now()-$R||125X?(R.sortIndex=A,t(u,R),n(a)===null&&R===n(u)&&(y?(p(T),T=-1):y=!0,j(v,A-X))):(R.sortIndex=Q,t(a,R),g||w||(g=!0,L(k))),R},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(R){var z=m;return function(){var A=m;m=z;try{return R.apply(this,arguments)}finally{m=A}}}})(nm);tm.exports=nm;var U0=tm.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var H0=x,kt=U0;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ha=Object.prototype.hasOwnProperty,V0=/^[: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]*$/,Md={},Od={};function Y0(e){return Ha.call(Od,e)?!0:Ha.call(Md,e)?!1:V0.test(e)?Od[e]=!0:(Md[e]=!0,!1)}function K0(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 G0(e,t,n,r){if(t===null||typeof t>"u"||K0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function st(e,t,n,r,o,i,l){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=l}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zu=/[\-:]([a-z])/g;function Ju(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(Zu,Ju);Xe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zu,Ju);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zu,Ju);Xe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function ec(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` +`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{la=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Io(e):""}function q0(e){switch(e.tag){case 5:return Io(e.type);case 16:return Io("Lazy");case 13:return Io("Suspense");case 19:return Io("SuspenseList");case 0:case 2:case 15:return e=sa(e.type,!1),e;case 11:return e=sa(e.type.render,!1),e;case 1:return e=sa(e.type,!0),e;default:return""}}function Ga(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 Or:return"Fragment";case Mr:return"Portal";case Va:return"Profiler";case tc:return"StrictMode";case Ya:return"Suspense";case Ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case im:return(e.displayName||"Context")+".Consumer";case om:return(e._context.displayName||"Context")+".Provider";case nc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rc:return t=e.displayName||null,t!==null?t:Ga(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return Ga(e(t))}catch{}}return null}function Q0(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 Ga(t);case 8:return t===tc?"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 Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X0(e){var t=sm(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ii(e){e._valueTracker||(e._valueTracker=X0(e))}function am(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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 qa(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(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 um(e,t){t=t.checked,t!=null&&ec(e,"checked",t,!1)}function Qa(e,t){um(e,t);var n=Hn(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")?Xa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xa(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zd(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 Xa(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function Ur(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jo={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},Z0=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(e){Z0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jo[t]=jo[e]})});function pm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jo.hasOwnProperty(e)&&jo[e]?(""+t).trim():t+"px"}function mm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=pm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var J0=Oe({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 eu(e,t){if(t){if(J0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function tu(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 nu=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ru=null,Hr=null,Vr=null;function Dd(e){if(e=Ci(e)){if(typeof ru!="function")throw Error(I(280));var t=e.stateNode;t&&(t=rs(t),ru(e.stateNode,e.type,t))}}function hm(e){Hr?Vr?Vr.push(e):Vr=[e]:Hr=e}function gm(){if(Hr){var e=Hr,t=Vr;if(Vr=Hr=null,Dd(e),t)for(e=0;e>>=0,e===0?32:31-(cv(e)/dv|0)|0}var Fi=64,Li=4194304;function Fo(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 Cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Fo(s):(i&=l,i!==0&&(r=Fo(i)))}else l=n&~o,l!==0?r=Fo(l):i!==0&&(r=Fo(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 wi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function hv(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=Bo),Kd=String.fromCharCode(32),Gd=!1;function Fm(e,t){switch(e){case"keyup":return Uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function Vv(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(Gd=!0,Kd);case"textInput":return e=t.data,e===Kd&&Gd?null:e;default:return null}}function Yv(e,t){if(Nr)return e==="compositionend"||!fc&&Fm(e,t)?(e=Im(),rl=uc=In=null,Nr=!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=Zd(n)}}function Bm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function pc(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 ty(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bm(n.ownerDocument.documentElement,n)){if(r!==null&&pc(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=Jd(n,i);var l=Jd(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Ir=null,uu=null,Uo=null,cu=!1;function ef(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cu||Ir==null||Ir!==yl(r)||(r=Ir,"selectionStart"in r&&pc(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}),Uo&&oi(Uo,r)||(Uo=r,r=El(uu,"onSelect"),0Lr||(e.current=gu[Lr],gu[Lr]=null,Lr--)}function xe(e,t){Lr++,gu[Lr]=e.current,e.current=t}var Vn={},rt=Xn(Vn),dt=Xn(!1),fr=Vn;function Jr(e,t){var n=e.type.contextTypes;if(!n)return Vn;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 ft(e){return e=e.childContextTypes,e!=null}function Rl(){ke(dt),ke(rt)}function af(e,t,n){if(rt.current!==Vn)throw Error(I(168));xe(rt,t),xe(dt,n)}function Xm(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(I(108,Q0(e)||"Unknown",o));return Oe({},n,r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,fr=rt.current,xe(rt,e),xe(dt,dt.current),!0}function uf(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Xm(e,t,fr),r.__reactInternalMemoizedMergedChildContext=e,ke(dt),ke(rt),xe(rt,e)):ke(dt),xe(dt,n)}var dn=null,os=!1,Sa=!1;function Zm(e){dn===null?dn=[e]:dn.push(e)}function py(e){os=!0,Zm(e)}function Zn(){if(!Sa&&dn!==null){Sa=!0;var e=0,t=ce;try{var n=dn;for(ce=1;e>=l,o-=l,fn=1<<32-Kt(t)+o|n<T?(F=C,C=null):F=C.sibling;var $=m(p,C,f[T],v);if($===null){C===null&&(C=F);break}e&&C&&$.alternate===null&&t(p,C),d=i($,d,T),b===null?k=$:b.sibling=$,b=$,C=F}if(T===f.length)return n(p,C),Re&&er(p,T),k;if(C===null){for(;TT?(F=C,C=null):F=C.sibling;var D=m(p,C,$.value,v);if(D===null){C===null&&(C=F);break}e&&C&&D.alternate===null&&t(p,C),d=i(D,d,T),b===null?k=D:b.sibling=D,b=D,C=F}if($.done)return n(p,C),Re&&er(p,T),k;if(C===null){for(;!$.done;T++,$=f.next())$=h(p,$.value,v),$!==null&&(d=i($,d,T),b===null?k=$:b.sibling=$,b=$);return Re&&er(p,T),k}for(C=r(p,C);!$.done;T++,$=f.next())$=w(C,p,T,$.value,v),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?T:$.key),d=i($,d,T),b===null?k=$:b.sibling=$,b=$);return e&&C.forEach(function(O){return t(p,O)}),Re&&er(p,T),k}function E(p,d,f,v){if(typeof f=="object"&&f!==null&&f.type===Or&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Ni:e:{for(var k=f.key,b=d;b!==null;){if(b.key===k){if(k=f.type,k===Or){if(b.tag===7){n(p,b.sibling),d=o(b,f.props.children),d.return=p,p=d;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$n&&ff(k)===b.type){n(p,b.sibling),d=o(b,f.props),d.ref=bo(p,b,f),d.return=p,p=d;break e}n(p,b);break}else t(p,b);b=b.sibling}f.type===Or?(d=dr(f.props.children,p.mode,v,f.key),d.return=p,p=d):(v=dl(f.type,f.key,f.props,null,p.mode,v),v.ref=bo(p,d,f),v.return=p,p=v)}return l(p);case Mr:e:{for(b=f.key;d!==null;){if(d.key===b)if(d.tag===4&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){n(p,d.sibling),d=o(d,f.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=$a(f,p.mode,v),d.return=p,p=d}return l(p);case $n:return b=f._init,E(p,d,b(f._payload),v)}if(zo(f))return g(p,d,f,v);if(xo(f))return y(p,d,f,v);Hi(p,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,f),d.return=p,p=d):(n(p,d),d=Ta(f,p.mode,v),d.return=p,p=d),l(p)):n(p,d)}return E}var to=nh(!0),rh=nh(!1),Ml=Xn(null),Ol=null,Ar=null,vc=null;function yc(){vc=Ar=Ol=null}function xc(e){var t=Ml.current;ke(Ml),e._currentValue=t}function xu(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 Kr(e,t){Ol=e,vc=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(vc!==e)if(e={context:e,memoizedValue:t,next:null},Ar===null){if(Ol===null)throw Error(I(308));Ar=e,Ol.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return t}var lr=null;function wc(e){lr===null?lr=[e]:lr.push(e)}function oh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,wc(t)):(n.next=o.next,o.next=n),t.interleaved=n,yn(e,r)}function yn(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 _n=!1;function Sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ih(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 hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function An(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,yn(e,n)}return o=r.interleaved,o===null?(t.next=t,wc(r)):(t.next=o.next,o.next=t),r.interleaved=t,yn(e,n)}function il(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,lc(e,n)}}function pf(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,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 Nl(e,t,n,r){var o=e.updateQueue;_n=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(i!==null){var h=o.baseState;l=0,c=u=a=null,s=i;do{var m=s.lane,w=s.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(m=t,w=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){h=g.call(w,h,m);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,m=typeof g=="function"?g.call(w,h,m):g,m==null)break e;h=Oe({},h,m);break e;case 2:_n=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else w={eventTime:w,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=w,a=h):c=c.next=w,l|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(c===null&&(a=h),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);hr|=l,e.lanes=l,e.memoizedState=h}}function mf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ka.transition;ka.transition={};try{e(!1),t()}finally{ce=n,ka.transition=r}}function Ch(){return Dt().memoizedState}function vy(e,t,n){var r=Wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kh(e))bh(t,n);else if(n=oh(e,t,n,r),n!==null){var o=it();Gt(n,e,r,o),Eh(n,t,r)}}function yy(e,t,n){var r=Wn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kh(e))bh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,qt(s,l)){var a=t.interleaved;a===null?(o.next=o,wc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=oh(e,t,o,r),n!==null&&(o=it(),Gt(n,e,r,o),Eh(n,t,r))}}function kh(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function bh(e,t){Ho=zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lc(e,n)}}var Fl={readContext:Lt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},xy={readContext:Lt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();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=vy.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:hf,useDebugValue:$c,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=hf(!1),t=e[0];return e=gy.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=Jt();if(Re){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ve===null)throw Error(I(349));mr&30||uh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gf(dh.bind(null,r,i,e),[e]),r.flags|=2048,fi(9,ch.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Ve.identifierPrefix;if(Re){var n=pn,r=fn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ci++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[nn]=t,e[si]=r,zh(e,t,!1,!1),t.stateNode=e;e:{switch(l=tu(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;ooo&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Il(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Re)return et(t),null}else 2*Fe()-i.renderingStartTime>oo&&n!==1073741824&&(t.flags|=128,r=!0,Eo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fe(),t.sibling=null,n=_e.current,xe(_e,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return zc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Ry(e,t){switch(hc(t),t.tag){case 1:return ft(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return no(),ke(dt),ke(rt),bc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kc(t),null;case 13:if(ke(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(_e),null;case 4:return no(),null;case 10:return xc(t.type._context),null;case 22:case 23:return zc(),null;case 24:return null;default:return null}}var Yi=!1,nt=!1,Ty=typeof WeakSet=="function"?WeakSet:Set,B=null;function Br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Tu(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Rf=!1;function $y(e,t){if(du=kl,e=Wm(),pc(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 l=0,s=-1,a=-1,u=0,c=0,h=e,m=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(w=h.firstChild)!==null;)m=h,h=w;for(;;){if(h===e)break t;if(m===n&&++u===o&&(s=l),m===i&&++c===r&&(a=l),(w=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},kl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,E=g.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ht(t.type,y),E);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(v){ze(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return g=Rf,Rf=!1,g}function Vo(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&&Tu(t,n,i)}o=o.next}while(o!==r)}}function ss(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 $u(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 Dh(e){var t=e.alternate;t!==null&&(e.alternate=null,Dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[si],delete t[hu],delete t[dy],delete t[fy])),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 jh(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(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 _u(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=Pl));else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function Mu(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(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}var Ge=null,Vt=!1;function Pn(e,t,n){for(n=n.child;n!==null;)Ah(e,t,n),n=n.sibling}function Ah(e,t,n){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 5:nt||Br(n,t);case 6:var r=Ge,o=Vt;Ge=null,Pn(e,t,n),Ge=r,Vt=o,Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Vt?(e=Ge,n=n.stateNode,e.nodeType===8?wa(e.parentNode,n):e.nodeType===1&&wa(e,n),ni(e)):wa(Ge,n.stateNode));break;case 4:r=Ge,o=Vt,Ge=n.stateNode.containerInfo,Vt=!0,Pn(e,t,n),Ge=r,Vt=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Tu(n,t,l),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!nt&&(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ze(n,t,s)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Pn(e,t,n),nt=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function $f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ty),t.forEach(function(r){var o=Dy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*My(r/1960))-r,10e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,jl=0,ne&6)throw Error(I(331));var o=ne;for(ne|=4,B=e.current;B!==null;){var i=B,l=i.child;if(B.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aFe()-Nc?cr(e,0):Oc|=n),pt(e,t)}function Gh(e,t){t===0&&(e.mode&1?(t=Li,Li<<=1,!(Li&130023424)&&(Li=4194304)):t=1);var n=it();e=yn(e,t),e!==null&&(wi(e,t,n),pt(e,n))}function Ly(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gh(e,n)}function Dy(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(I(314))}r!==null&&r.delete(t),Gh(e,n)}var qh;qh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,Ey(e,t,n);ct=!!(e.flags&131072)}else ct=!1,Re&&t.flags&1048576&&Jm(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=Jr(t,rt.current);Kr(t,n),o=Pc(null,t,r,e,o,n);var i=Rc();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,ft(r)?(i=!0,Tl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sc(t),o.updater=ls,t.stateNode=o,o._reactInternals=t,Su(t,r,e,n),t=bu(null,t,r,!0,i,n)):(t.tag=0,Re&&i&&mc(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ay(r),e=Ht(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=Cf(null,t,r,e,n);break e;case 14:t=kf(null,t,r,Ht(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),ku(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),bf(e,t,r,o,n);case 3:e:{if(Oh(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ih(e,t),Nl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ro(Error(I(423)),t),t=Ef(e,t,r,n,o);break e}else if(r!==o){o=ro(Error(I(424)),t),t=Ef(e,t,r,n,o);break e}else for(xt=jn(t.stateNode.containerInfo.firstChild),wt=t,Re=!0,Yt=null,n=rh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eo(),r===o){t=xn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return lh(t),e===null&&yu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,pu(r,o)?l=null:i!==null&&pu(r,i)&&(t.flags|=32),Mh(e,t),ot(e,t,l,n),t.child;case 6:return e===null&&yu(t),null;case 13:return Nh(e,t,n);case 4:return Cc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=to(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),Cf(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,xe(Ml,r._currentValue),r._currentValue=l,i!==null)if(qt(i.value,l)){if(i.children===o.children&&!dt.current){t=xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=hn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),xu(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(I(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),xu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Kr(t,n),o=Lt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Ht(r,t.pendingProps),o=Ht(r.type,o),kf(e,t,r,o,n);case 15:return $h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ht(r,o),al(e,t),t.tag=1,ft(r)?(e=!0,Tl(t)):e=!1,Kr(t,n),Ph(t,r,o),Su(t,r,o,n),bu(null,t,r,!0,e,n);case 19:return Ih(e,t,n);case 22:return _h(e,t,n)}throw Error(I(156,t.tag))};function Qh(e,t){return km(e,t)}function jy(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 zt(e,t,n,r){return new jy(e,t,n,r)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ay(e){if(typeof e=="function")return Lc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nc)return 11;if(e===rc)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=zt(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 dl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Lc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Or:return dr(n.children,o,i,t);case tc:l=8,o|=8;break;case Va:return e=zt(12,n,t,o|2),e.elementType=Va,e.lanes=i,e;case Ya:return e=zt(13,n,t,o),e.elementType=Ya,e.lanes=i,e;case Ka:return e=zt(19,n,t,o),e.elementType=Ka,e.lanes=i,e;case lm:return us(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case om:l=10;break e;case im:l=9;break e;case nc:l=11;break e;case rc:l=14;break e;case $n:l=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=zt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function dr(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function us(e,t,n,r){return e=zt(22,e,r,t),e.elementType=lm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ta(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function $a(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function By(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=ua(0),this.expirationTimes=ua(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ua(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,o,i,l,s,a){return e=new By(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sc(i),e}function Wy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eg)}catch(e){console.error(e)}}eg(),em.exports=bt;var Wc=em.exports;const qi=Wp(Wc);var Lf=Wc;Ua.createRoot=Lf.createRoot,Ua.hydrateRoot=Lf.hydrateRoot;function Ky({text:e,percentage:t}){return t=t??0,P.jsx("div",{className:"progress-container",children:P.jsxs("div",{className:"progress-bar",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}var Uc={},tg={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})(tg);var bi=tg.exports,_a={};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=ng(e[n])}),t}function St(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return Nn(e)&&Nn(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])?r[o]=t[o]:Nn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Nn(e[o])?r[o]=St(e[o],t[o],n):n.clone?r[o]=Nn(t[o])?ng(t[o]):t[o]:r[o]=t[o]}),r}const Gy=Object.freeze(Object.defineProperty({__proto__:null,default:St,isPlainObject:Nn},Symbol.toStringTag,{value:"Module"}));function vr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Yc(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 n1(e,t){return()=>null}function fl(e,t){var n,r;return x.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 mt(e){return e&&e.ownerDocument||document}function Yn(e){return mt(e).defaultView||window}function r1(e,t){return()=>null}function Wl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const o1=typeof window<"u"?x.useLayoutEffect:x.useEffect,Kn=o1;let Af=0;function i1(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Af+=1,n(`mui-${Af}`))},[t]),r}const Bf=Wa["useId".toString()];function Kc(e){if(Bf!==void 0){const t=Bf();return e??t}return i1(e)}function l1(e,t,n,r,o){return null}function Ul({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,l]=x.useState(t),s=o?e:i,a=x.useCallback(u=>{o||l(u)},[]);return[s,a]}function ar(e){const t=x.useRef(e);return Kn(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ze(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Wl(n,t)})},e)}const Wf={};function s1(e,t){const n=x.useRef(Wf);return n.current===Wf&&(n.current=e(t)),n}const a1=[];function u1(e){x.useEffect(e,a1)}class bs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Gc(){const e=s1(bs.create).current;return u1(e.disposeEffect),e}let Es=!0,Lu=!1;const c1=new bs,d1={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 f1(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&d1[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function p1(e){e.metaKey||e.altKey||e.ctrlKey||(Es=!0)}function Ma(){Es=!1}function m1(){this.visibilityState==="hidden"&&Lu&&(Es=!0)}function h1(e){e.addEventListener("keydown",p1,!0),e.addEventListener("mousedown",Ma,!0),e.addEventListener("pointerdown",Ma,!0),e.addEventListener("touchstart",Ma,!0),e.addEventListener("visibilitychange",m1,!0)}function g1(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Es||f1(t)}function lg(){const e=x.useCallback(o=>{o!=null&&h1(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Lu=!0,c1.start(100,()=>{Lu=!1}),t.current=!1,!0):!1}function r(o){return g1(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function sg(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Hl(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(l=>{n[r][l]=Hl(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const s=t(l);s!==""&&i.push(s),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const Uf=e=>e,v1=()=>{let e=Uf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Uf}}},y1=v1(),qc=y1,x1={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 de(e,t,n="Mui"){const r=x1[t];return r?`${n}-${r}`:`${qc.generate(e)}-${t}`}function se(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=de(e,o,n)}),r}function w1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const S1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"}));function H(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Vl(e){return typeof e=="string"}function C1(e,t,n){return e===void 0||Vl(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function ag(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;tr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Hf(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 k1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=q(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=S({},n,o,r);return w.length>0&&(y.className=w),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const l=ug(S({},o,r)),s=Hf(r),a=Hf(o),u=t(l),c=q(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},u,n,a,s);return c.length>0&&(m.className=c),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:u.ref}}function b1(e,t,n){return typeof e=="function"?e(t,n):e}const E1=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function io(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,l=H(e,E1),s=i?{}:b1(r,o),{props:a,internalRef:u}=k1(S({},l,{externalSlotProps:s})),c=Ze(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return C1(n,S({},a,{ref:c}),o)}function fo(e){if(parseInt(x.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const P1=x.createContext(void 0);function R1(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Hl(o.defaultProps,r):!o.styleOverrides&&!o.variants?Hl(o,r):r}function T1({props:e,name:t}){const n=x.useContext(P1);return R1({props:e,name:t,theme:{components:n}})}function ve(e){return T1(e)}var Ei={},Oa={exports:{}},Vf;function cg(){return Vf||(Vf=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r0?qe(po,--ht):0,lo--,je===10&&(lo=1,Rs--),je}function Ct(){return je=ht2||hi(je)>3?"":" "}function H1(e,t){for(;--t&&Ct()&&!(je<48||je>102||je>57&&je<65||je>70&&je<97););return Pi(e,pl()+(t<6&&ln()==32&&Ct()==32))}function ju(e){for(;Ct();)switch(je){case e:return ht;case 34:case 39:e!==34&&e!==39&&ju(je);break;case 40:e===41&&ju(e);break;case 92:Ct();break}return ht}function V1(e,t){for(;Ct()&&e+je!==47+10;)if(e+je===42+42&&ln()===47)break;return"/*"+Pi(t,ht-1)+"*"+Ps(e===47?e:Ct())}function Y1(e){for(;!hi(ln());)Ct();return Pi(e,ht)}function K1(e){return gg(hl("",null,null,null,[""],e=hg(e),0,[0],e))}function hl(e,t,n,r,o,i,l,s,a){for(var u=0,c=0,h=l,m=0,w=0,g=0,y=1,E=1,p=1,d=0,f="",v=o,k=i,b=r,C=f;E;)switch(g=d,d=Ct()){case 40:if(g!=108&&qe(C,h-1)==58){Du(C+=ie(ml(d),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=ml(d);break;case 9:case 10:case 13:case 32:C+=U1(g);break;case 92:C+=H1(pl()-1,7);continue;case 47:switch(ln()){case 42:case 47:Qi(G1(V1(Ct(),pl()),t,n),a);break;default:C+="/"}break;case 123*y:s[u++]=en(C)*p;case 125*y:case 59:case 0:switch(d){case 0:case 125:E=0;case 59+c:p==-1&&(C=ie(C,/\f/g,"")),w>0&&en(C)-h&&Qi(w>32?Gf(C+";",r,n,h-1):Gf(ie(C," ","")+";",r,n,h-2),a);break;case 59:C+=";";default:if(Qi(b=Kf(C,t,n,u,c,o,s,f,v=[],k=[],h),i),d===123)if(c===0)hl(C,t,b,b,v,i,h,s,k);else switch(m===99&&qe(C,3)===110?100:m){case 100:case 108:case 109:case 115:hl(e,b,b,r&&Qi(Kf(e,b,b,0,0,o,s,f,o,v=[],h),k),o,k,h,s,r?v:k);break;default:hl(C,b,b,b,[""],k,0,s,k)}}u=c=w=0,y=p=1,f=C="",h=l;break;case 58:h=1+en(C),w=g;default:if(y<1){if(d==123)--y;else if(d==125&&y++==0&&W1()==125)continue}switch(C+=Ps(d),d*y){case 38:p=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(en(C)-1)*p,p=1;break;case 64:ln()===45&&(C+=ml(Ct())),m=ln(),c=h=en(f=C+=Y1(pl())),d++;break;case 45:g===45&&en(C)==2&&(y=0)}}return i}function Kf(e,t,n,r,o,i,l,s,a,u,c){for(var h=o-1,m=o===0?i:[""],w=Zc(m),g=0,y=0,E=0;g0?m[p]+" "+d:ie(d,/&\f/g,m[p])))&&(a[E++]=f);return Ts(e,t,n,o===0?Qc:s,a,u,c)}function G1(e,t,n){return Ts(e,t,n,dg,Ps(B1()),mi(e,2,-2),0)}function Gf(e,t,n,r){return Ts(e,t,n,Xc,mi(e,0,r),mi(e,r+1,-1),r)}function qr(e,t){for(var n="",r=Zc(e),o=0;o6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Yl+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Du(e,"stretch")?yg(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,en(e)-3-(~Du(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(qe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return oe+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+tt+e+e}return e}var rx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Xc:t.return=yg(t.value,t.length);break;case fg:return qr([Ro(t,{value:ie(t.value,"@","@"+oe)})],o);case Qc:if(t.length)return A1(t.props,function(i){switch(j1(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qr([Ro(t,{props:[ie(i,/:(read-\w+)/,":"+Yl+"$1")]})],o);case"::placeholder":return qr([Ro(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Ro(t,{props:[ie(i,/:(plac\w+)/,":"+Yl+"$1")]}),Ro(t,{props:[ie(i,/:(plac\w+)/,tt+"input-$1")]})],o)}return""})}},ox=[rx],xg=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(y){var E=y.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||ox,i={},l,s=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var E=y.getAttribute("data-emotion").split(" "),p=1;p=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 hx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gx=!1,vx=/[A-Z]|^ms/g,yx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Eg=function(t){return t.charCodeAt(1)===45},Qf=function(t){return t!=null&&typeof t!="boolean"},Ia=vg(function(e){return Eg(e)?e:e.replace(vx,"-$&").toLowerCase()}),Xf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(yx,function(r,o,i){return tn={name:o,styles:i,next:tn},o})}return hx[t]!==1&&!Eg(t)&&typeof n=="number"&&n!==0?n+"px":n},xx="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gi(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return tn={name:o.name,styles:o.styles,next:tn},o.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)tn={name:l.name,styles:l.styles,next:tn},l=l.next;var s=i.styles+";";return s}return wx(e,t,n)}case"function":{if(e!==void 0){var a=tn,u=n(e);return tn=a,gi(e,t,u)}break}}var c=n;if(t==null)return c;var h=t[c];return h!==void 0?h:c}function wx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Ox:Nx},np=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Ix=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return nd(n,r,o),Rg(function(){return rd(n,r,o)}),null},zx=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var s=np(t,n,r),a=s||tp(o),u=!a("as");return function(){var c=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)h.push.apply(h,c);else{var m=c[0];h.push(m[0]);for(var w=c.length,g=1;gt(Dx(o)?n:o):t;return P.jsx(Tx,{styles:r})}/** + * @mui/styled-engine v5.16.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Mg(e,t){return Bu(e,t)}const jx=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ax=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:_g,StyledEngineProvider:Lx,ThemeContext:Ri,css:$g,default:Mg,internal_processStyles:jx,keyframes:As},Symbol.toStringTag,{value:"Module"})),Bx=Sn(Ax),Wx=Sn(Gy),Ux=Sn(t1),Hx=Sn(e1),Vx=["values","unit","step"],Yx=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 Og(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=H(e,Vx),i=Yx(t),l=Object.keys(i);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function a(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,w){const g=l.indexOf(w);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:w)-r/100}${n})`}function c(m){return l.indexOf(m)+1`@media (min-width:${ld[e]}px)`};function wn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rp;return t.reduce((l,s,a)=>(l[i.up(i.keys[a])]=n(t[a]),l),{})}if(typeof t=="object"){const i=r.breakpoints||rp;return Object.keys(t).reduce((l,s)=>{if(Object.keys(i.values||ld).indexOf(s)!==-1){const a=i.up(s);l[a]=n(t[s],s)}else{const a=s;l[a]=t[a]}return l},{})}return n(t)}function qx(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Qx(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Bs(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 Kl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Bs(e,n)||r,t&&(o=t(o,r,e)),o}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const s=l[t],a=l.theme,u=Bs(a,r)||{};return wn(l,s,h=>{let m=Kl(u,o,h);return h===m&&typeof h=="string"&&(m=Kl(u,o,`${t}${h==="default"?"":K(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function Xx(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Zx={m:"margin",p:"padding"},Jx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},op={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ew=Xx(e=>{if(e.length>2)if(op[e])e=op[e];else return[e];const[t,n]=e.split(""),r=Zx[t],o=Jx[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),sd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ad=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...sd,...ad];function Ti(e,t,n,r){var o;const i=(o=Bs(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function Ng(e){return Ti(e,"spacing",8)}function $i(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 tw(e,t){return n=>e.reduce((r,o)=>(r[o]=$i(t,n),r),{})}function nw(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=ew(n),i=tw(o,r),l=e[n];return wn(e,l,i)}function Ig(e,t){const n=Ng(e.theme);return Object.keys(e).map(r=>nw(e,t,r,n)).reduce(Go,{})}function Ne(e){return Ig(e,sd)}Ne.propTypes={};Ne.filterProps=sd;function Ie(e){return Ig(e,ad)}Ie.propTypes={};Ie.filterProps=ad;function rw(e=8){if(e.mui)return e;const t=Ng({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Ws(...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]?Go(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function It(e){return typeof e!="number"?e:`${e}px solid`}function Bt(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const ow=Bt("border",It),iw=Bt("borderTop",It),lw=Bt("borderRight",It),sw=Bt("borderBottom",It),aw=Bt("borderLeft",It),uw=Bt("borderColor"),cw=Bt("borderTopColor"),dw=Bt("borderRightColor"),fw=Bt("borderBottomColor"),pw=Bt("borderLeftColor"),mw=Bt("outline",It),hw=Bt("outlineColor"),Us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ti(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:$i(t,r)});return wn(e,e.borderRadius,n)}return null};Us.propTypes={};Us.filterProps=["borderRadius"];Ws(ow,iw,lw,sw,aw,uw,cw,dw,fw,pw,Us,mw,hw);const Hs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ti(e.theme,"spacing",8),n=r=>({gap:$i(t,r)});return wn(e,e.gap,n)}return null};Hs.propTypes={};Hs.filterProps=["gap"];const Vs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ti(e.theme,"spacing",8),n=r=>({columnGap:$i(t,r)});return wn(e,e.columnGap,n)}return null};Vs.propTypes={};Vs.filterProps=["columnGap"];const Ys=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ti(e.theme,"spacing",8),n=r=>({rowGap:$i(t,r)});return wn(e,e.rowGap,n)}return null};Ys.propTypes={};Ys.filterProps=["rowGap"];const gw=Le({prop:"gridColumn"}),vw=Le({prop:"gridRow"}),yw=Le({prop:"gridAutoFlow"}),xw=Le({prop:"gridAutoColumns"}),ww=Le({prop:"gridAutoRows"}),Sw=Le({prop:"gridTemplateColumns"}),Cw=Le({prop:"gridTemplateRows"}),kw=Le({prop:"gridTemplateAreas"}),bw=Le({prop:"gridArea"});Ws(Hs,Vs,Ys,gw,vw,yw,xw,ww,Sw,Cw,kw,bw);function Qr(e,t){return t==="grey"?t:e}const Ew=Le({prop:"color",themeKey:"palette",transform:Qr}),Pw=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qr}),Rw=Le({prop:"backgroundColor",themeKey:"palette",transform:Qr});Ws(Ew,Pw,Rw);function yt(e){return e<=1&&e!==0?`${e*100}%`:e}const Tw=Le({prop:"width",transform:yt}),ud=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])||ld[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:yt(n)}};return wn(e,e.maxWidth,t)}return null};ud.filterProps=["maxWidth"];const $w=Le({prop:"minWidth",transform:yt}),_w=Le({prop:"height",transform:yt}),Mw=Le({prop:"maxHeight",transform:yt}),Ow=Le({prop:"minHeight",transform:yt});Le({prop:"size",cssProperty:"width",transform:yt});Le({prop:"size",cssProperty:"height",transform:yt});const Nw=Le({prop:"boxSizing"});Ws(Tw,ud,$w,_w,Mw,Ow,Nw);const Iw={border:{themeKey:"borders",transform:It},borderTop:{themeKey:"borders",transform:It},borderRight:{themeKey:"borders",transform:It},borderBottom:{themeKey:"borders",transform:It},borderLeft:{themeKey:"borders",transform:It},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:It},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Us},color:{themeKey:"palette",transform:Qr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qr},backgroundColor:{themeKey:"palette",transform:Qr},p:{style:Ie},pt:{style:Ie},pr:{style:Ie},pb:{style:Ie},pl:{style:Ie},px:{style:Ie},py:{style:Ie},padding:{style:Ie},paddingTop:{style:Ie},paddingRight:{style:Ie},paddingBottom:{style:Ie},paddingLeft:{style:Ie},paddingX:{style:Ie},paddingY:{style:Ie},paddingInline:{style:Ie},paddingInlineStart:{style:Ie},paddingInlineEnd:{style:Ie},paddingBlock:{style:Ie},paddingBlockStart:{style:Ie},paddingBlockEnd:{style:Ie},m:{style:Ne},mt:{style:Ne},mr:{style:Ne},mb:{style:Ne},ml:{style:Ne},mx:{style:Ne},my:{style:Ne},margin:{style:Ne},marginTop:{style:Ne},marginRight:{style:Ne},marginBottom:{style:Ne},marginLeft:{style:Ne},marginX:{style:Ne},marginY:{style:Ne},marginInline:{style:Ne},marginInlineStart:{style:Ne},marginInlineEnd:{style:Ne},marginBlock:{style:Ne},marginBlockStart:{style:Ne},marginBlockEnd:{style:Ne},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:Hs},rowGap:{style:Ys},columnGap:{style:Vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yt},maxWidth:{style:ud},minWidth:{transform:yt},height:{transform:yt},maxHeight:{transform:yt},minHeight:{transform:yt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},_i=Iw;function zw(...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 Fw(e,t){return typeof e=="function"?e(t):e}function zg(){function e(n,r,o,i){const l={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Bs(o,u)||{};return h?h(l):wn(l,r,g=>{let y=Kl(m,c,g);return g===y&&typeof g=="string"&&(y=Kl(m,c,`${n}${g==="default"?"":K(g)}`,g)),a===!1?y:{[a]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:_i;function s(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=qx(i.breakpoints),h=Object.keys(c);let m=c;return Object.keys(u).forEach(w=>{const g=Fw(u[w],i);if(g!=null)if(typeof g=="object")if(l[w])m=Go(m,e(w,g,i,l));else{const y=wn({theme:i},g,E=>({[w]:E}));zw(y,g)?m[w]=t({sx:g,theme:i}):m=Go(m,y)}else m=Go(m,e(w,g,i,l))}),Qx(h,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const Fg=zg();Fg.filterProps=["sx"];const Ks=Fg;function Lg(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 Lw=["breakpoints","palette","spacing","shape"];function cd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=H(e,Lw),s=Og(n),a=rw(o);let u=St({breakpoints:s,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},Gx,i)},l);return u.applyStyles=Lg,u=t.reduce((c,h)=>St(c,h),u),u.unstable_sxConfig=S({},_i,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(h){return Ks({sx:h,theme:this})},u}const Dw=Object.freeze(Object.defineProperty({__proto__:null,default:cd,private_createBreakpoints:Og,unstable_applyStyles:Lg},Symbol.toStringTag,{value:"Module"})),jw=Sn(Dw),Aw=["sx"],Bw=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:_i;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function dd(e){const{sx:t}=e,n=H(e,Aw),{systemProps:r,otherProps:o}=Bw(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const s=t(...l);return Nn(s)?S({},r,s):r}:i=S({},r,t),S({},o,{sx:i})}const Ww=Object.freeze(Object.defineProperty({__proto__:null,default:Ks,extendSxProp:dd,unstable_createStyleFunctionSx:zg,unstable_defaultSxConfig:_i},Symbol.toStringTag,{value:"Module"})),Uw=Sn(Ww);var mo=bi;Object.defineProperty(Ei,"__esModule",{value:!0});var Hw=Ei.default=rS;Ei.shouldForwardProp=gl;Ei.systemDefaultTheme=void 0;var _t=mo(cg()),Uu=mo($1()),ip=Xw(Bx),Vw=Wx;mo(Ux);mo(Hx);var Yw=mo(jw),Kw=mo(Uw);const Gw=["ownerState"],qw=["variants"],Qw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dg(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Dg=function(r){return r?n:t})(e)}function Xw(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Dg(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 l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Zw(e){return Object.keys(e).length===0}function Jw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eS=Ei.systemDefaultTheme=(0,Yw.default)(),tS=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xi({defaultTheme:e,theme:t,themeId:n}){return Zw(t)?e:t[n]||t}function nS(e){return e?(t,n)=>n[e]:null}function vl(e,t){let{ownerState:n}=t,r=(0,Uu.default)(t,Gw);const o=typeof e=="function"?e((0,_t.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>vl(i,(0,_t.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,Uu.default)(o,qw);return i.forEach(a=>{let u=!0;typeof a.props=="function"?u=a.props((0,_t.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(c=>{(n==null?void 0:n[c])!==a.props[c]&&r[c]!==a.props[c]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof a.style=="function"?a.style((0,_t.default)({ownerState:n},r,n)):a.style))}),s}return o}function rS(e={}){const{themeId:t,defaultTheme:n=eS,rootShouldForwardProp:r=gl,slotShouldForwardProp:o=gl}=e,i=l=>(0,Kw.default)((0,_t.default)({},l,{theme:Xi((0,_t.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,s={})=>{(0,ip.internal_processStyles)(l,k=>k.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:h,overridesResolver:m=nS(tS(u))}=s,w=(0,Uu.default)(s,Qw),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let E,p=gl;u==="Root"||u==="root"?p=r:u?p=o:Jw(l)&&(p=void 0);const d=(0,ip.default)(l,(0,_t.default)({shouldForwardProp:p,label:E},w)),f=k=>typeof k=="function"&&k.__emotion_real!==k||(0,Vw.isPlainObject)(k)?b=>vl(k,(0,_t.default)({},b,{theme:Xi({theme:b.theme,defaultTheme:n,themeId:t})})):k,v=(k,...b)=>{let C=f(k);const T=b?b.map(f):[];a&&m&&T.push(D=>{const O=Xi((0,_t.default)({},D,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const N=O.components[a].styleOverrides,_={};return Object.entries(N).forEach(([M,L])=>{_[M]=vl(L,(0,_t.default)({},D,{theme:O}))}),m(D,_)}),a&&!g&&T.push(D=>{var O;const N=Xi((0,_t.default)({},D,{defaultTheme:n,themeId:t})),_=N==null||(O=N.components)==null||(O=O[a])==null?void 0:O.variants;return vl({variants:_},(0,_t.default)({},D,{theme:N}))}),y||T.push(i);const F=T.length-b.length;if(Array.isArray(k)&&F>0){const D=new Array(F).fill("");C=[...k,...D],C.raw=[...k.raw,...D]}const $=d(C,...T);return l.muiName&&($.muiName=l.muiName),$};return d.withConfig&&(v.withConfig=d.withConfig),v}}function oS(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var De={};const iS=Sn(qy),lS=Sn(S1);var jg=bi;Object.defineProperty(De,"__esModule",{value:!0});var mn=De.alpha=Ug;De.blend=xS;De.colorChannel=void 0;var sS=De.darken=pd;De.decomposeColor=jt;De.emphasize=Hg;var aS=De.getContrastRatio=mS;De.getLuminance=Gl;De.hexToRgb=Ag;De.hslToRgb=Wg;var uS=De.lighten=md;De.private_safeAlpha=hS;De.private_safeColorChannel=void 0;De.private_safeDarken=gS;De.private_safeEmphasize=yS;De.private_safeLighten=vS;De.recomposeColor=ho;De.rgbToHex=pS;var lp=jg(iS),cS=jg(lS);function fd(e,t=0,n=1){return(0,cS.default)(e,t,n)}function Ag(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 dS(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jt(e){if(e.type)return e;if(e.charAt(0)==="#")return jt(Ag(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,lp.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,lp.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Bg=e=>{const t=jt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};De.colorChannel=Bg;const fS=(e,t)=>{try{return Bg(e)}catch{return e}};De.private_safeColorChannel=fS;function ho(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 pS(e){if(e.indexOf("#")===0)return e;const{values:t}=jt(e);return`#${t.map((n,r)=>dS(r===3?Math.round(255*n):n)).join("")}`}function Wg(e){e=jt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const a=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ho({type:s,values:a})}function Gl(e){e=jt(e);let t=e.type==="hsl"||e.type==="hsla"?jt(Wg(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 mS(e,t){const n=Gl(e),r=Gl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ug(e,t){return e=jt(e),t=fd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ho(e)}function hS(e,t,n){try{return Ug(e,t)}catch{return e}}function pd(e,t){if(e=jt(e),t=fd(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 ho(e)}function gS(e,t,n){try{return pd(e,t)}catch{return e}}function md(e,t){if(e=jt(e),t=fd(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 ho(e)}function vS(e,t,n){try{return md(e,t)}catch{return e}}function Hg(e,t=.15){return Gl(e)>.5?pd(e,t):md(e,t)}function yS(e,t,n){try{return Hg(e,t)}catch{return e}}function xS(e,t,n,r=1){const o=(a,u)=>Math.round((a**(1/r)*(1-n)+u**(1/r)*n)**r),i=jt(e),l=jt(t),s=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return ho({type:"rgb",values:s})}const wS={black:"#000",white:"#fff"},vi=wS,SS={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"},CS=SS,kS={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"},kr=kS,bS={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"},br=bS,ES={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"},To=ES,PS={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"},Er=PS,RS={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"},Pr=RS,TS={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"},Rr=TS,$S=["mode","contrastThreshold","tonalOffset"],sp={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:vi.white,default:vi.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}},za={text:{primary:vi.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:vi.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 ap(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=uS(e.main,o):t==="dark"&&(e.dark=sS(e.main,i)))}function _S(e="light"){return e==="dark"?{main:Er[200],light:Er[50],dark:Er[400]}:{main:Er[700],light:Er[400],dark:Er[800]}}function MS(e="light"){return e==="dark"?{main:kr[200],light:kr[50],dark:kr[400]}:{main:kr[500],light:kr[300],dark:kr[700]}}function OS(e="light"){return e==="dark"?{main:br[500],light:br[300],dark:br[700]}:{main:br[700],light:br[400],dark:br[800]}}function NS(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:Pr[700],light:Pr[500],dark:Pr[900]}}function IS(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[800],light:Rr[500],dark:Rr[900]}}function zS(e="light"){return e==="dark"?{main:To[400],light:To[300],dark:To[700]}:{main:"#ed6c02",light:To[500],dark:To[900]}}function FS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=H(e,$S),i=e.primary||_S(t),l=e.secondary||MS(t),s=e.error||OS(t),a=e.info||NS(t),u=e.success||IS(t),c=e.warning||zS(t);function h(y){return aS(y,za.text.primary)>=n?za.text.primary:sp.text.primary}const m=({color:y,name:E,mainShade:p=500,lightShade:d=300,darkShade:f=700})=>{if(y=S({},y),!y.main&&y[p]&&(y.main=y[p]),!y.hasOwnProperty("main"))throw new Error(vr(11,E?` (${E})`:"",p));if(typeof y.main!="string")throw new Error(vr(12,E?` (${E})`:"",JSON.stringify(y.main)));return ap(y,"light",d,r),ap(y,"dark",f,r),y.contrastText||(y.contrastText=h(y.main)),y},w={dark:za,light:sp};return St(S({common:S({},vi),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:c,name:"warning"}),info:m({color:a,name:"info"}),success:m({color:u,name:"success"}),grey:CS,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},w[t]),o)}const LS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DS(e){return Math.round(e*1e5)/1e5}const up={textTransform:"uppercase"},cp='"Roboto", "Helvetica", "Arial", sans-serif';function jS(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=cp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:h}=n,m=H(n,LS),w=o/14,g=h||(p=>`${p/u*w}rem`),y=(p,d,f,v,k)=>S({fontFamily:r,fontWeight:p,fontSize:g(d),lineHeight:f},r===cp?{letterSpacing:`${DS(v/d)}em`}:{},k,c),E={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(s,14,1.75,.4,up),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,up),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return St(S({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:s,fontWeightBold:a},E),m,{clone:!1})}const AS=.2,BS=.14,WS=.12;function Pe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${AS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${BS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${WS})`].join(",")}const US=["none",Pe(0,2,1,-1,0,1,1,0,0,1,3,0),Pe(0,3,1,-2,0,2,2,0,0,1,5,0),Pe(0,3,3,-2,0,3,4,0,0,1,8,0),Pe(0,2,4,-1,0,4,5,0,0,1,10,0),Pe(0,3,5,-1,0,5,8,0,0,1,14,0),Pe(0,3,5,-1,0,6,10,0,0,1,18,0),Pe(0,4,5,-2,0,7,10,1,0,2,16,1),Pe(0,5,5,-3,0,8,10,1,0,3,14,2),Pe(0,5,6,-3,0,9,12,1,0,3,16,2),Pe(0,6,6,-3,0,10,14,1,0,4,18,3),Pe(0,6,7,-4,0,11,15,1,0,4,20,3),Pe(0,7,8,-4,0,12,17,2,0,5,22,4),Pe(0,7,8,-4,0,13,19,2,0,5,24,4),Pe(0,7,9,-4,0,14,21,2,0,5,26,4),Pe(0,8,9,-5,0,15,22,2,0,6,28,5),Pe(0,8,10,-5,0,16,24,2,0,6,30,5),Pe(0,8,11,-5,0,17,26,2,0,6,32,5),Pe(0,9,11,-5,0,18,28,2,0,7,34,6),Pe(0,9,12,-6,0,19,29,2,0,7,36,6),Pe(0,10,13,-6,0,20,31,3,0,8,38,7),Pe(0,10,13,-6,0,21,33,3,0,8,40,7),Pe(0,10,14,-6,0,22,35,3,0,8,42,7),Pe(0,11,14,-7,0,23,36,3,0,9,44,8),Pe(0,11,15,-7,0,24,38,3,0,9,46,8)],HS=US,VS=["duration","easing","delay"],YS={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)"},Vg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dp(e){return`${Math.round(e)}ms`}function KS(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function GS(e){const t=S({},YS,e.easing),n=S({},Vg,e.duration);return S({getAutoHeightDuration:KS,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:s=t.easeInOut,delay:a=0}=i;return H(i,VS),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:dp(l)} ${s} ${typeof a=="string"?a:dp(a)}`).join(",")}},e,{easing:t,duration:n})}const qS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},QS=qS,XS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=H(e,XS);if(e.vars)throw new Error(vr(18));const s=FS(r),a=cd(e);let u=St(a,{mixins:oS(a.breakpoints,n),palette:s,shadows:HS.slice(),typography:jS(s,i),transitions:GS(o),zIndex:S({},QS)});return u=St(u,l),u=t.reduce((c,h)=>St(c,h),u),u.unstable_sxConfig=S({},_i,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(h){return Ks({sx:h,theme:this})},u}const ZS=Yg(),hd=ZS,Gs="$$material";function Kg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const JS=e=>Kg(e)&&e!=="classes",gt=JS,eC=Hw({themeId:Gs,defaultTheme:hd,rootShouldForwardProp:gt}),U=eC;function tC(e){return de("MuiSvgIcon",e)}se("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nC=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rC=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${K(t)}`,`fontSize${K(n)}`]};return me(o,tC,r)},oC=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${K(n.color)}`],t[`fontSize${K(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,s,a,u,c,h,m,w,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(l=i.pxToRem)==null?void 0:l.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?h:{action:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Gg=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,w=H(r,nC),g=x.isValidElement(o)&&o.type==="svg",y=S({},r,{color:l,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:m,hasSvgAsChild:g}),E={};c||(E.viewBox=m);const p=rC(y);return P.jsxs(oC,S({as:s,className:q(p.root,i),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},E,w,g&&o.props,{ownerState:y,children:[g?o.props.children:o,h?P.jsx("title",{children:h}):null]}))});Gg.muiName="SvgIcon";const fp=Gg;function Mi(e,t){function n(r,o){return P.jsx(fp,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=fp.muiName,x.memo(x.forwardRef(n))}const iC={configure:e=>{qc.configure(e)}},lC=Object.freeze(Object.defineProperty({__proto__:null,capitalize:K,createChainedFunction:Fu,createSvgIcon:Mi,debounce:Yc,deprecatedPropType:n1,isMuiElement:fl,ownerDocument:mt,ownerWindow:Yn,requirePropFactory:r1,setRef:Wl,unstable_ClassNameGenerator:iC,unstable_useEnhancedEffect:Kn,unstable_useId:Kc,unsupportedProp:l1,useControlled:Ul,useEventCallback:ar,useForkRef:Ze,useIsFocusVisible:lg},Symbol.toStringTag,{value:"Module"})),sC=Sn(lC);var pp;function gd(){return pp||(pp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sC}(_a)),_a}var aC=bi;Object.defineProperty(Uc,"__esModule",{value:!0});var qg=Uc.default=void 0,uC=aC(gd()),cC=P;qg=Uc.default=(0,uC.default)((0,cC.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle");function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hu(e,t)}function Qg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hu(e,t)}const mp={disabled:!1},ql=te.createContext(null);var dC=function(t){return t.scrollTop},Do="unmounted",nr="exited",rr="entering",_r="entered",Vu="exiting",kn=function(e){Qg(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,s=l&&!l.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?s?(a=nr,i.appearStatus=rr):a=_r:r.unmountOnExit||r.mountOnEnter?a=Do:a=nr,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===Do?{status:nr}: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 l=this.state.status;this.props.in?l!==rr&&l!==_r&&(i=rr):(l===rr||l===_r)&&(i=Vu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,s;return i=l=s=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,s=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===rr){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:qi.findDOMNode(this);l&&dC(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nr&&this.setState({status:Do})},n.performEnter=function(o){var i=this,l=this.props.enter,s=this.context?this.context.isMounting:o,a=this.props.nodeRef?[s]:[qi.findDOMNode(this),s],u=a[0],c=a[1],h=this.getTimeouts(),m=s?h.appear:h.enter;if(!o&&!l||mp.disabled){this.safeSetState({status:_r},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:rr},function(){i.props.onEntering(u,c),i.onTransitionEnd(m,function(){i.safeSetState({status:_r},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:qi.findDOMNode(this);if(!i||mp.disabled){this.safeSetState({status:nr},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vu},function(){o.props.onExiting(s),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:nr},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,l=!0;return this.nextCallback=function(s){l&&(l=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:qi.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Do)return null;var i=this.props,l=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=H(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(ql.Provider,{value:null},typeof l=="function"?l(o,s):te.cloneElement(te.Children.only(l),s))},t}(te.Component);kn.contextType=ql;kn.propTypes={};function Tr(){}kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tr,onEntering:Tr,onEntered:Tr,onExit:Tr,onExiting:Tr,onExited:Tr};kn.UNMOUNTED=Do;kn.EXITED=nr;kn.ENTERING=rr;kn.ENTERED=_r;kn.EXITING=Vu;const qs=kn;function fC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vd(e,t){var n=function(i){return t&&x.isValidElement(i)?t(i):i},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pC(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,s={};for(var a in t){if(r[a])for(l=0;ls!=="theme"&&s!=="sx"&&s!=="as"})(Ks);return x.forwardRef(function(a,u){const c=xd(n),h=dd(a),{className:m,component:w="div"}=h,g=H(h,kC);return P.jsx(i,S({as:w,ref:u,className:q(m,o?o(r):r),theme:t&&c[t]||c},g))})}const EC=x.createContext(),PC=()=>{const e=x.useContext(EC);return e??!1};function RC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:s,onExited:a,timeout:u}=e,[c,h]=x.useState(!1),m=q(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},g=q(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&h(!0),x.useEffect(()=>{if(!s&&a!=null){const y=setTimeout(a,u);return()=>{clearTimeout(y)}}},[a,s,u]),P.jsx("span",{className:m,style:w,children:P.jsx("span",{className:g})})}const TC=se("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mt=TC,$C=["center","classes","className"];let Qs=e=>e,hp,gp,vp,yp;const Yu=550,_C=80,MC=As(hp||(hp=Qs` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),OC=As(gp||(gp=Qs` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),NC=As(vp||(vp=Qs` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),IC=U("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zC=U(RC,{name:"MuiTouchRipple",slot:"Ripple"})(yp||(yp=Qs` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Mt.rippleVisible,MC,Yu,({theme:e})=>e.transitions.easing.easeInOut,Mt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Mt.child,Mt.childLeaving,OC,Yu,({theme:e})=>e.transitions.easing.easeInOut,Mt.childPulsate,NC,({theme:e})=>e.transitions.easing.easeInOut),FC=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,s=H(r,$C),[a,u]=x.useState([]),c=x.useRef(0),h=x.useRef(null);x.useEffect(()=>{h.current&&(h.current(),h.current=null)},[a]);const m=x.useRef(!1),w=Gc(),g=x.useRef(null),y=x.useRef(null),E=x.useCallback(v=>{const{pulsate:k,rippleX:b,rippleY:C,rippleSize:T,cb:F}=v;u($=>[...$,P.jsx(zC,{classes:{ripple:q(i.ripple,Mt.ripple),rippleVisible:q(i.rippleVisible,Mt.rippleVisible),ripplePulsate:q(i.ripplePulsate,Mt.ripplePulsate),child:q(i.child,Mt.child),childLeaving:q(i.childLeaving,Mt.childLeaving),childPulsate:q(i.childPulsate,Mt.childPulsate)},timeout:Yu,pulsate:k,rippleX:b,rippleY:C,rippleSize:T},c.current)]),c.current+=1,h.current=F},[i]),p=x.useCallback((v={},k={},b=()=>{})=>{const{pulsate:C=!1,center:T=o||k.pulsate,fakeElement:F=!1}=k;if((v==null?void 0:v.type)==="mousedown"&&m.current){m.current=!1;return}(v==null?void 0:v.type)==="touchstart"&&(m.current=!0);const $=F?null:y.current,D=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,N,_;if(T||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)O=Math.round(D.width/2),N=Math.round(D.height/2);else{const{clientX:M,clientY:L}=v.touches&&v.touches.length>0?v.touches[0]:v;O=Math.round(M-D.left),N=Math.round(L-D.top)}if(T)_=Math.sqrt((2*D.width**2+D.height**2)/3),_%2===0&&(_+=1);else{const M=Math.max(Math.abs(($?$.clientWidth:0)-O),O)*2+2,L=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;_=Math.sqrt(M**2+L**2)}v!=null&&v.touches?g.current===null&&(g.current=()=>{E({pulsate:C,rippleX:O,rippleY:N,rippleSize:_,cb:b})},w.start(_C,()=>{g.current&&(g.current(),g.current=null)})):E({pulsate:C,rippleX:O,rippleY:N,rippleSize:_,cb:b})},[o,E,w]),d=x.useCallback(()=>{p({},{pulsate:!0})},[p]),f=x.useCallback((v,k)=>{if(w.clear(),(v==null?void 0:v.type)==="touchend"&&g.current){g.current(),g.current=null,w.start(0,()=>{f(v,k)});return}g.current=null,u(b=>b.length>0?b.slice(1):b),h.current=k},[w]);return x.useImperativeHandle(n,()=>({pulsate:d,start:p,stop:f}),[d,p,f]),P.jsx(IC,S({className:q(Mt.root,i.root,l),ref:y},s,{children:P.jsx(yC,{component:null,exit:!0,children:a})}))}),LC=FC;function DC(e){return de("MuiButtonBase",e)}const jC=se("MuiButtonBase",["root","disabled","focusVisible"]),AC=jC,BC=["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"],WC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=me({root:["root",t&&"disabled",n&&"focusVisible"]},DC,o);return n&&r&&(l.root+=` ${r}`),l},UC=U("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"},[`&.${AC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),HC=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:s,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:w="a",onBlur:g,onClick:y,onContextMenu:E,onDragLeave:p,onFocus:d,onFocusVisible:f,onKeyDown:v,onKeyUp:k,onMouseDown:b,onMouseLeave:C,onMouseUp:T,onTouchEnd:F,onTouchMove:$,onTouchStart:D,tabIndex:O=0,TouchRippleProps:N,touchRippleRef:_,type:M}=r,L=H(r,BC),j=x.useRef(null),R=x.useRef(null),z=Ze(R,_),{isFocusVisibleRef:A,onFocus:X,onBlur:Q,ref:ae}=lg(),[G,le]=x.useState(!1);u&&G&&le(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{le(!0),j.current.focus()}}),[]);const[W,re]=x.useState(!1);x.useEffect(()=>{re(!0)},[]);const we=W&&!c&&!u;x.useEffect(()=>{G&&m&&!c&&W&&R.current.pulsate()},[c,m,G,W]);function he(Y,un,vo=h){return ar(yo=>(un&&un(yo),!vo&&R.current&&R.current[Y](yo),!0))}const Be=he("start",b),ee=he("stop",E),Te=he("stop",p),J=he("stop",T),pe=he("stop",Y=>{G&&Y.preventDefault(),C&&C(Y)}),be=he("start",D),bn=he("stop",F),Rt=he("stop",$),Tt=he("stop",Y=>{Q(Y),A.current===!1&&le(!1),g&&g(Y)},!1),Wt=ar(Y=>{j.current||(j.current=Y.currentTarget),X(Y),A.current===!0&&(le(!0),f&&f(Y)),d&&d(Y)}),$t=()=>{const Y=j.current;return a&&a!=="button"&&!(Y.tagName==="A"&&Y.href)},$e=x.useRef(!1),sn=ar(Y=>{m&&!$e.current&&G&&R.current&&Y.key===" "&&($e.current=!0,R.current.stop(Y,()=>{R.current.start(Y)})),Y.target===Y.currentTarget&&$t()&&Y.key===" "&&Y.preventDefault(),v&&v(Y),Y.target===Y.currentTarget&&$t()&&Y.key==="Enter"&&!u&&(Y.preventDefault(),y&&y(Y))}),at=ar(Y=>{m&&Y.key===" "&&R.current&&G&&!Y.defaultPrevented&&($e.current=!1,R.current.stop(Y,()=>{R.current.pulsate(Y)})),k&&k(Y),y&&Y.target===Y.currentTarget&&$t()&&Y.key===" "&&!Y.defaultPrevented&&y(Y)});let Ee=a;Ee==="button"&&(L.href||L.to)&&(Ee=w);const Xt={};Ee==="button"?(Xt.type=M===void 0?"button":M,Xt.disabled=u):(!L.href&&!L.to&&(Xt.role="button"),u&&(Xt["aria-disabled"]=u));const En=Ze(n,ae,j),an=S({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:h,focusRipple:m,tabIndex:O,focusVisible:G}),ye=WC(an);return P.jsxs(UC,S({as:Ee,className:q(ye.root,s),ownerState:an,onBlur:Tt,onClick:y,onContextMenu:ee,onFocus:Wt,onKeyDown:sn,onKeyUp:at,onMouseDown:Be,onMouseLeave:pe,onMouseUp:J,onDragLeave:Te,onTouchEnd:bn,onTouchMove:Rt,onTouchStart:be,ref:En,tabIndex:u?-1:O,type:M},Xt,L,{children:[l,we?P.jsx(LC,S({ref:z,center:i},N)):null]}))}),Xs=HC;function VC(e){return de("MuiFab",e)}const YC=se("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),xp=YC,KC=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],GC=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${K(o)}`,t==="inherit"?"colorInherit":t]},l=me(i,VC,r);return S({},r,l)},qC=U(Xs,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>gt(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${K(n.size)}`],n.color==="inherit"&&t.colorInherit,t[K(n.size)],t[n.color]]}})(({theme:e,ownerState:t})=>{var n,r;return S({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},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).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${xp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>S({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${xp.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),QC=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFab"}),{children:o,className:i,color:l="default",component:s="button",disabled:a=!1,disableFocusRipple:u=!1,focusVisibleClassName:c,size:h="large",variant:m="circular"}=r,w=H(r,KC),g=S({},r,{color:l,component:s,disabled:a,disableFocusRipple:u,size:h,variant:m}),y=GC(g);return P.jsx(qC,S({className:q(y.root,i),component:s,disabled:a,focusRipple:!u,focusVisibleClassName:q(y.focusVisible,c),ownerState:g,ref:n},w,{classes:y,children:o}))}),XC=QC,ZC=["onChange","maxRows","minRows","style","value"];function Zi(e){return parseInt(e,10)||0}const JC={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ek(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const tk=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:s}=t,a=H(t,ZC),{current:u}=x.useRef(s!=null),c=x.useRef(null),h=Ze(n,c),m=x.useRef(null),w=x.useRef(null),g=x.useCallback(()=>{const p=c.current,f=Yn(p).getComputedStyle(p);if(f.width==="0px")return{outerHeightStyle:0,overflowing:!1};const v=w.current;v.style.width=f.width,v.value=p.value||t.placeholder||"x",v.value.slice(-1)===` +`&&(v.value+=" ");const k=f.boxSizing,b=Zi(f.paddingBottom)+Zi(f.paddingTop),C=Zi(f.borderBottomWidth)+Zi(f.borderTopWidth),T=v.scrollHeight;v.value="x";const F=v.scrollHeight;let $=T;i&&($=Math.max(Number(i)*F,$)),o&&($=Math.min(Number(o)*F,$)),$=Math.max($,F);const D=$+(k==="border-box"?b+C:0),O=Math.abs($-T)<=1;return{outerHeightStyle:D,overflowing:O}},[o,i,t.placeholder]),y=x.useCallback(()=>{const p=g();if(ek(p))return;const d=p.outerHeightStyle,f=c.current;m.current!==d&&(m.current=d,f.style.height=`${d}px`),f.style.overflow=p.overflowing?"hidden":""},[g]);Kn(()=>{const p=()=>{y()};let d;const f=Yc(p),v=c.current,k=Yn(v);k.addEventListener("resize",f);let b;return typeof ResizeObserver<"u"&&(b=new ResizeObserver(p),b.observe(v)),()=>{f.clear(),cancelAnimationFrame(d),k.removeEventListener("resize",f),b&&b.disconnect()}},[g,y]),Kn(()=>{y()});const E=p=>{u||y(),r&&r(p)};return P.jsxs(x.Fragment,{children:[P.jsx("textarea",S({value:s,onChange:E,ref:h,rows:i,style:l},a)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:S({},JC.shadow,l,{paddingTop:0,paddingBottom:0})})]})}),nk=tk;function go({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 rk=x.createContext(void 0),wd=rk;function wr(){return x.useContext(wd)}function ok(e){return P.jsx(CC,S({},e,{defaultTheme:hd,themeId:Gs}))}function wp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ql(e,t=!1){return e&&(wp(e.value)&&e.value!==""||t&&wp(e.defaultValue)&&e.defaultValue!=="")}function ik(e){return e.startAdornment}function lk(e){return de("MuiInputBase",e)}const sk=se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),so=sk,ak=["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"],Zs=(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${K(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Js=(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]},uk=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:s,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:h,size:m,startAdornment:w,type:g}=e,y={root:["root",`color${K(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",l&&"focused",s&&"formControl",m&&m!=="medium"&&`size${K(m)}`,c&&"multiline",w&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return me(y,lk,t)},ea=U("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zs})(({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",[`&.${so.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%"})),ta=U("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Js})(({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] + .${so.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},[`&.${so.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"})}),ck=P.jsx(ok,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dk=x.forwardRef(function(t,n){var r;const o=ve({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:s,className:a,components:u={},componentsProps:c={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:w,endAdornment:g,fullWidth:y=!1,id:E,inputComponent:p="input",inputProps:d={},inputRef:f,maxRows:v,minRows:k,multiline:b=!1,name:C,onBlur:T,onChange:F,onClick:$,onFocus:D,onKeyDown:O,onKeyUp:N,placeholder:_,readOnly:M,renderSuffix:L,rows:j,slotProps:R={},slots:z={},startAdornment:A,type:X="text",value:Q}=o,ae=H(o,ak),G=d.value!=null?d.value:Q,{current:le}=x.useRef(G!=null),W=x.useRef(),re=x.useCallback(ye=>{},[]),we=Ze(W,f,d.ref,re),[he,Be]=x.useState(!1),ee=wr(),Te=go({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=ee?ee.focused:he,x.useEffect(()=>{!ee&&m&&he&&(Be(!1),T&&T())},[ee,m,he,T]);const J=ee&&ee.onFilled,pe=ee&&ee.onEmpty,be=x.useCallback(ye=>{Ql(ye)?J&&J():pe&&pe()},[J,pe]);Kn(()=>{le&&be({value:G})},[G,be,le]);const bn=ye=>{if(Te.disabled){ye.stopPropagation();return}D&&D(ye),d.onFocus&&d.onFocus(ye),ee&&ee.onFocus?ee.onFocus(ye):Be(!0)},Rt=ye=>{T&&T(ye),d.onBlur&&d.onBlur(ye),ee&&ee.onBlur?ee.onBlur(ye):Be(!1)},Tt=(ye,...Y)=>{if(!le){const un=ye.target||W.current;if(un==null)throw new Error(vr(1));be({value:un.value})}d.onChange&&d.onChange(ye,...Y),F&&F(ye,...Y)};x.useEffect(()=>{be(W.current)},[]);const Wt=ye=>{W.current&&ye.currentTarget===ye.target&&W.current.focus(),$&&$(ye)};let $t=p,$e=d;b&&$t==="input"&&(j?$e=S({type:void 0,minRows:j,maxRows:j},$e):$e=S({type:void 0,maxRows:v,minRows:k},$e),$t=nk);const sn=ye=>{be(ye.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};x.useEffect(()=>{ee&&ee.setAdornedStart(!!A)},[ee,A]);const at=S({},o,{color:Te.color||"primary",disabled:Te.disabled,endAdornment:g,error:Te.error,focused:Te.focused,formControl:ee,fullWidth:y,hiddenLabel:Te.hiddenLabel,multiline:b,size:Te.size,startAdornment:A,type:X}),Ee=uk(at),Xt=z.root||u.Root||ea,En=R.root||c.root||{},an=z.input||u.Input||ta;return $e=S({},$e,(r=R.input)!=null?r:c.input),P.jsxs(x.Fragment,{children:[!w&&ck,P.jsxs(Xt,S({},En,!Vl(Xt)&&{ownerState:S({},at,En.ownerState)},{ref:n,onClick:Wt},ae,{className:q(Ee.root,En.className,a,M&&"MuiInputBase-readOnly"),children:[A,P.jsx(wd.Provider,{value:null,children:P.jsx(an,S({ownerState:at,"aria-invalid":Te.error,"aria-describedby":i,autoComplete:l,autoFocus:s,defaultValue:h,disabled:Te.disabled,id:E,onAnimationStart:sn,name:C,placeholder:_,readOnly:M,required:Te.required,rows:j,value:G,onKeyDown:O,onKeyUp:N,type:X},$e,!Vl(an)&&{as:$t,ownerState:S({},at,$e.ownerState)},{ref:we,className:q(Ee.input,$e.className,M&&"MuiInputBase-readOnly"),onBlur:Rt,onChange:Tt,onFocus:bn}))}),g,L?L(S({},Te,{startAdornment:A})):null]}))]})}),Sd=dk;function fk(e){return de("MuiInput",e)}const pk=S({},so,se("MuiInput",["root","underline","input"])),$o=pk,mk=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],hk=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},fk,t);return S({},t,o)},gk=U(ea,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(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"},[`&.${$o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$o.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(.${$o.disabled}, .${$o.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${$o.disabled}:before`]:{borderBottomStyle:"dotted"}})}),vk=U(ta,{name:"MuiInput",slot:"Input",overridesResolver:Js})({}),Xg=x.forwardRef(function(t,n){var r,o,i,l;const s=ve({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:h=!1,inputComponent:m="input",multiline:w=!1,slotProps:g,slots:y={},type:E="text"}=s,p=H(s,mk),d=hk(s),v={root:{ownerState:{disableUnderline:a}}},k=g??c?St(g??c,v):v,b=(r=(o=y.root)!=null?o:u.Root)!=null?r:gk,C=(i=(l=y.input)!=null?l:u.Input)!=null?i:vk;return P.jsx(Sd,S({slots:{root:b,input:C},slotProps:k,fullWidth:h,inputComponent:m,multiline:w,ref:n,type:E},p,{classes:d}))});Xg.muiName="Input";const Zg=Xg;function yk(e){return de("MuiFilledInput",e)}const xk=S({},so,se("MuiFilledInput",["root","underline","input"])),Jn=xk,wk=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sk=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},yk,t);return S({},t,o)},Ck=U(ea,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(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)",l=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:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Jn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jn.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"},[`&.${Jn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jn.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(.${Jn.disabled}, .${Jn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jn.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}))}),kk=U(ta,{name:"MuiFilledInput",slot:"Input",overridesResolver:Js})(({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})),Jg=x.forwardRef(function(t,n){var r,o,i,l;const s=ve({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:h="input",multiline:m=!1,slotProps:w,slots:g={},type:y="text"}=s,E=H(s,wk),p=S({},s,{fullWidth:c,inputComponent:h,multiline:m,type:y}),d=Sk(s),f={root:{ownerState:p},input:{ownerState:p}},v=w??u?St(f,w??u):f,k=(r=(o=g.root)!=null?o:a.Root)!=null?r:Ck,b=(i=(l=g.input)!=null?l:a.Input)!=null?i:kk;return P.jsx(Sd,S({slots:{root:k,input:b},componentsProps:v,fullWidth:c,inputComponent:h,multiline:m,ref:n,type:y},E,{classes:d}))});Jg.muiName="Input";const e0=Jg;var Sp;const bk=["children","classes","className","label","notched"],Ek=U("fieldset",{shouldForwardProp:gt})({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%"}),Pk=U("legend",{shouldForwardProp:gt})(({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 Rk(e){const{className:t,label:n,notched:r}=e,o=H(e,bk),i=n!=null&&n!=="",l=S({},e,{notched:r,withLabel:i});return P.jsx(Ek,S({"aria-hidden":!0,className:t,ownerState:l},o,{children:P.jsx(Pk,{ownerState:l,children:i?P.jsx("span",{children:n}):Sp||(Sp=P.jsx("span",{className:"notranslate",children:"​"}))})}))}function Tk(e){return de("MuiOutlinedInput",e)}const $k=S({},so,se("MuiOutlinedInput",["root","notchedOutline","input"])),Rn=$k,_k=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Mk=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tk,t);return S({},t,r)},Ok=U(ea,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zs})(({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 .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Rn.focused} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Rn.error} .${Rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rn.disabled} .${Rn.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"}))}),Nk=U(Rk,{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}}),Ik=U(ta,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Js})(({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})),t0=x.forwardRef(function(t,n){var r,o,i,l,s;const a=ve({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:h="input",label:m,multiline:w=!1,notched:g,slots:y={},type:E="text"}=a,p=H(a,_k),d=Mk(a),f=wr(),v=go({props:a,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},a,{color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:f,fullWidth:c,hiddenLabel:v.hiddenLabel,multiline:w,size:v.size,type:E}),b=(r=(o=y.root)!=null?o:u.Root)!=null?r:Ok,C=(i=(l=y.input)!=null?l:u.Input)!=null?i:Ik;return P.jsx(Sd,S({slots:{root:b,input:C},renderSuffix:T=>P.jsx(Nk,{ownerState:k,className:d.notchedOutline,label:m!=null&&m!==""&&v.required?s||(s=P.jsxs(x.Fragment,{children:[m," ","*"]})):m,notched:typeof g<"u"?g:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:c,inputComponent:h,multiline:w,ref:n,type:E},p,{classes:S({},d,{notchedOutline:null})}))});t0.muiName="Input";const n0=t0;function zk(e){return de("MuiFormLabel",e)}const Fk=se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),qo=Fk,Lk=["children","className","color","component","disabled","error","filled","focused","required"],Dk=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:s}=e,a={root:["root",`color${K(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return me(a,zk,t)},jk=U("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",[`&.${qo.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${qo.error}`]:{color:(e.vars||e).palette.error.main}})),Ak=U("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qo.error}`]:{color:(e.vars||e).palette.error.main}})),Bk=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,s=H(r,Lk),a=wr(),u=go({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=S({},r,{color:u.color||"primary",component:l,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=Dk(c);return P.jsxs(jk,S({as:l,ownerState:c,className:q(h.root,i),ref:n},s,{children:[o,u.required&&P.jsxs(Ak,{ownerState:c,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Wk=Bk;function Uk(e){return de("MuiInputLabel",e)}se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Hk=["disableAnimation","margin","shrink","variant","className"],Vk=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:s}=e,a={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${K(r)}`,l],asterisk:[s&&"asterisk"]},u=me(a,Uk,t);return S({},t,u)},Yk=U(Wk,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qo.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)"}))),Kk=x.forwardRef(function(t,n){const r=ve({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,s=H(r,Hk),a=wr();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=go({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),h=S({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),m=Vk(h);return P.jsx(Yk,S({"data-shrink":u,ownerState:h,ref:n,className:q(m.root,l)},s,{classes:m}))}),Gk=Kk;function qk(e){return de("MuiFormControl",e)}se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qk=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Xk=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${K(n)}`,r&&"fullWidth"]};return me(o,qk,t)},Zk=U("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${K(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%"})),Jk=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:s="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:h=!1,hiddenLabel:m=!1,margin:w="none",required:g=!1,size:y="medium",variant:E="outlined"}=r,p=H(r,Qk),d=S({},r,{color:l,component:s,disabled:a,error:u,fullWidth:h,hiddenLabel:m,margin:w,required:g,size:y,variant:E}),f=Xk(d),[v,k]=x.useState(()=>{let N=!1;return o&&x.Children.forEach(o,_=>{if(!fl(_,["Input","Select"]))return;const M=fl(_,["Select"])?_.props.input:_;M&&ik(M.props)&&(N=!0)}),N}),[b,C]=x.useState(()=>{let N=!1;return o&&x.Children.forEach(o,_=>{fl(_,["Input","Select"])&&(Ql(_.props,!0)||Ql(_.props.inputProps,!0))&&(N=!0)}),N}),[T,F]=x.useState(!1);a&&T&&F(!1);const $=c!==void 0&&!a?c:T;let D;const O=x.useMemo(()=>({adornedStart:v,setAdornedStart:k,color:l,disabled:a,error:u,filled:b,focused:$,fullWidth:h,hiddenLabel:m,size:y,onBlur:()=>{F(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{F(!0)},registerEffect:D,required:g,variant:E}),[v,l,a,u,b,$,h,m,D,g,y,E]);return P.jsx(wd.Provider,{value:O,children:P.jsx(Zk,S({as:s,ownerState:d,className:q(f.root,i),ref:n},p,{children:o}))})}),eb=Jk;function tb(e){return de("MuiFormHelperText",e)}const nb=se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Cp=nb;var kp;const rb=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ob=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:s,required:a}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${K(r)}`,n&&"contained",s&&"focused",l&&"filled",a&&"required"]};return me(u,tb,t)},ib=U("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${K(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,[`&.${Cp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cp.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),lb=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,s=H(r,rb),a=wr(),u=go({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=S({},r,{component:l,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=ob(c);return P.jsx(ib,S({as:l,ownerState:c,className:q(h.root,i),ref:n},s,{children:o===" "?kp||(kp=P.jsx("span",{className:"notranslate",children:"​"})):o}))}),sb=lb,ab=x.createContext({}),ub=ab;function cb(e){return de("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const db=["children","className","component","dense","disablePadding","subheader"],fb=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cb,t)},pb=U("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})),mb=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:s=!1,disablePadding:a=!1,subheader:u}=r,c=H(r,db),h=x.useMemo(()=>({dense:s}),[s]),m=S({},r,{component:l,dense:s,disablePadding:a}),w=fb(m);return P.jsx(ub.Provider,{value:h,children:P.jsxs(pb,S({as:l,className:q(w.root,i),ref:n,ownerState:m},c,{children:[u,o]}))})}),hb=mb,gb=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Fa(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function r0(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 _o(e,t,n,r,o,i){let l=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(l)return!1;l=!0}const a=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!r0(s,i)||a)s=o(e,s,n);else return s.focus(),!0}return!1}const vb=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:s,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:h="selectedMenu"}=t,m=H(t,gb),w=x.useRef(null),g=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&w.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(f,{direction:v})=>{const k=!w.current.style.width;if(f.clientHeight{const v=w.current,k=f.key,b=mt(v).activeElement;if(k==="ArrowDown")f.preventDefault(),_o(v,b,u,a,Fa);else if(k==="ArrowUp")f.preventDefault(),_o(v,b,u,a,bp);else if(k==="Home")f.preventDefault(),_o(v,null,u,a,Fa);else if(k==="End")f.preventDefault(),_o(v,null,u,a,bp);else if(k.length===1){const C=g.current,T=k.toLowerCase(),F=performance.now();C.keys.length>0&&(F-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&T!==C.keys[0]&&(C.repeating=!1)),C.lastTime=F,C.keys.push(T);const $=b&&!C.repeating&&r0(b,C);C.previousKeyMatched&&($||_o(v,b,!1,a,Fa,C))?f.preventDefault():C.previousKeyMatched=!1}c&&c(f)},E=Ze(w,n);let p=-1;x.Children.forEach(l,(f,v)=>{if(!x.isValidElement(f)){p===v&&(p+=1,p>=l.length&&(p=-1));return}f.props.disabled||(h==="selectedMenu"&&f.props.selected||p===-1)&&(p=v),p===v&&(f.props.disabled||f.props.muiSkipListHighlight||f.type.muiSkipListHighlight)&&(p+=1,p>=l.length&&(p=-1))});const d=x.Children.map(l,(f,v)=>{if(v===p){const k={};return i&&(k.autoFocus=!0),f.props.tabIndex===void 0&&h==="selectedMenu"&&(k.tabIndex=0),x.cloneElement(f,k)}return f});return P.jsx(hb,S({role:"menu",ref:E,className:s,onKeyDown:y,tabIndex:o?0:-1},m,{children:d}))}),yb=vb;function na(){const e=xd(hd);return e[Gs]||e}const Cd=e=>e.scrollTop;function Gn(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:l.transitionDelay}}const xb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ku(e){return`scale(${e}, ${e**2})`}const wb={entering:{opacity:1,transform:Ku(1)},entered:{opacity:1,transform:"none"}},La=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),o0=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:s,onEnter:a,onEntered:u,onEntering:c,onExit:h,onExited:m,onExiting:w,style:g,timeout:y="auto",TransitionComponent:E=qs}=t,p=H(t,xb),d=Gc(),f=x.useRef(),v=na(),k=x.useRef(null),b=Ze(k,fo(i),n),C=M=>L=>{if(M){const j=k.current;L===void 0?M(j):M(j,L)}},T=C(c),F=C((M,L)=>{Cd(M);const{duration:j,delay:R,easing:z}=Gn({style:g,timeout:y,easing:l},{mode:"enter"});let A;y==="auto"?(A=v.transitions.getAutoHeightDuration(M.clientHeight),f.current=A):A=j,M.style.transition=[v.transitions.create("opacity",{duration:A,delay:R}),v.transitions.create("transform",{duration:La?A:A*.666,delay:R,easing:z})].join(","),a&&a(M,L)}),$=C(u),D=C(w),O=C(M=>{const{duration:L,delay:j,easing:R}=Gn({style:g,timeout:y,easing:l},{mode:"exit"});let z;y==="auto"?(z=v.transitions.getAutoHeightDuration(M.clientHeight),f.current=z):z=L,M.style.transition=[v.transitions.create("opacity",{duration:z,delay:j}),v.transitions.create("transform",{duration:La?z:z*.666,delay:La?j:j||z*.333,easing:R})].join(","),M.style.opacity=0,M.style.transform=Ku(.75),h&&h(M)}),N=C(m),_=M=>{y==="auto"&&d.start(f.current||0,M),r&&r(k.current,M)};return P.jsx(E,S({appear:o,in:s,nodeRef:k,onEnter:F,onEntered:$,onEntering:T,onExit:O,onExited:N,onExiting:D,addEndListener:_,timeout:y==="auto"?null:y},p,{children:(M,L)=>x.cloneElement(i,S({style:S({opacity:0,transform:Ku(.75),visibility:M==="exited"&&!s?"hidden":void 0},wb[M],g,i.props.style),ref:b},L))}))});o0.muiSupportAuto=!0;const Sb=o0;function Cb(e){const t=mt(e);return t.body===e?Yn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ep(e){return parseInt(Yn(e).getComputedStyle(e).paddingRight,10)||0}function kb(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 Pp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const s=i.indexOf(l)===-1,a=!kb(l);s&&a&&Qo(l,o)})}function Da(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function bb(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Cb(r)){const l=sg(mt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ep(r)+l}px`;const s=mt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Ep(a)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=mt(r).body;else{const l=r.parentElement,s=Yn(r);i=(l==null?void 0:l.nodeName)==="HTML"&&s.getComputedStyle(l).overflowY==="scroll"?l: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:l,property:s})=>{i?l.style.setProperty(s,i):l.style.removeProperty(s)})}}function Eb(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Pb{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&&Qo(t.modalRef,!1);const o=Eb(n);Pp(n,t.mount,t.modalRef,o,!0);const i=Da(this.containers,l=>l.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=Da(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=bb(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Da(this.containers,l=>l.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&&Qo(t.modalRef,n),Pp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&Qo(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Rb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Tb(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 $b(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 _b(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$b(e))}function Mb(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rb)).forEach((r,o)=>{const i=Tb(r);i===-1||!_b(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 Ob(){return!0}function Nb(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Mb,isEnabled:l=Ob,open:s}=e,a=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),h=x.useRef(null),m=x.useRef(null),w=x.useRef(!1),g=x.useRef(null),y=Ze(fo(t),g),E=x.useRef(null);x.useEffect(()=>{!s||!g.current||(w.current=!n)},[n,s]),x.useEffect(()=>{if(!s||!g.current)return;const f=mt(g.current);return g.current.contains(f.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),w.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(a.current=!0,h.current.focus()),h.current=null)}},[s]),x.useEffect(()=>{if(!s||!g.current)return;const f=mt(g.current),v=C=>{E.current=C,!(r||!l()||C.key!=="Tab")&&f.activeElement===g.current&&C.shiftKey&&(a.current=!0,c.current&&c.current.focus())},k=()=>{const C=g.current;if(C===null)return;if(!f.hasFocus()||!l()||a.current){a.current=!1;return}if(C.contains(f.activeElement)||r&&f.activeElement!==u.current&&f.activeElement!==c.current)return;if(f.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!w.current)return;let T=[];if((f.activeElement===u.current||f.activeElement===c.current)&&(T=i(g.current)),T.length>0){var F,$;const D=!!((F=E.current)!=null&&F.shiftKey&&(($=E.current)==null?void 0:$.key)==="Tab"),O=T[0],N=T[T.length-1];typeof O!="string"&&typeof N!="string"&&(D?N.focus():O.focus())}else C.focus()};f.addEventListener("focusin",k),f.addEventListener("keydown",v,!0);const b=setInterval(()=>{f.activeElement&&f.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(b),f.removeEventListener("focusin",k),f.removeEventListener("keydown",v,!0)}},[n,r,o,l,s,i]);const p=f=>{h.current===null&&(h.current=f.relatedTarget),w.current=!0,m.current=f.target;const v=t.props.onFocus;v&&v(f)},d=f=>{h.current===null&&(h.current=f.relatedTarget),w.current=!0};return P.jsxs(x.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:d,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:y,onFocus:p}),P.jsx("div",{tabIndex:s?0:-1,onFocus:d,ref:c,"data-testid":"sentinelEnd"})]})}function Ib(e){return typeof e=="function"?e():e}const zb=x.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,s]=x.useState(null),a=Ze(x.isValidElement(r)?fo(r):null,n);if(Kn(()=>{i||s(Ib(o)||document.body)},[o,i]),Kn(()=>{if(l&&!i)return Wl(n,l),()=>{Wl(n,null)}},[n,l,i]),i){if(x.isValidElement(r)){const u={ref:a};return x.cloneElement(r,u)}return P.jsx(x.Fragment,{children:r})}return P.jsx(x.Fragment,{children:l&&Wc.createPortal(r,l)})}),Fb=zb,Lb=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Db={entering:{opacity:1},entered:{opacity:1}},jb=x.forwardRef(function(t,n){const r=na(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:s,easing:a,in:u,onEnter:c,onEntered:h,onEntering:m,onExit:w,onExited:g,onExiting:y,style:E,timeout:p=o,TransitionComponent:d=qs}=t,f=H(t,Lb),v=x.useRef(null),k=Ze(v,fo(s),n),b=_=>M=>{if(_){const L=v.current;M===void 0?_(L):_(L,M)}},C=b(m),T=b((_,M)=>{Cd(_);const L=Gn({style:E,timeout:p,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",L),_.style.transition=r.transitions.create("opacity",L),c&&c(_,M)}),F=b(h),$=b(y),D=b(_=>{const M=Gn({style:E,timeout:p,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",M),_.style.transition=r.transitions.create("opacity",M),w&&w(_)}),O=b(g),N=_=>{i&&i(v.current,_)};return P.jsx(d,S({appear:l,in:u,nodeRef:v,onEnter:T,onEntered:F,onEntering:C,onExit:D,onExited:O,onExiting:$,addEndListener:N,timeout:p},f,{children:(_,M)=>x.cloneElement(s,S({style:S({opacity:0,visibility:_==="exited"&&!u?"hidden":void 0},Db[_],E,s.props.style),ref:k},M))}))}),Ab=jb;function Bb(e){return de("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const Wb=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ub=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},Bb,t)},Hb=U("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"})),Vb=x.forwardRef(function(t,n){var r,o,i;const l=ve({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:u="div",components:c={},componentsProps:h={},invisible:m=!1,open:w,slotProps:g={},slots:y={},TransitionComponent:E=Ab,transitionDuration:p}=l,d=H(l,Wb),f=S({},l,{component:u,invisible:m}),v=Ub(f),k=(r=g.root)!=null?r:h.root;return P.jsx(E,S({in:w,timeout:p},d,{children:P.jsx(Hb,S({"aria-hidden":!0},k,{as:(o=(i=y.root)!=null?i:c.Root)!=null?o:u,className:q(v.root,a,k==null?void 0:k.className),ownerState:S({},f,k==null?void 0:k.ownerState),classes:v,ref:n,children:s}))}))}),Yb=Vb;function Kb(e){return typeof e=="function"?e():e}function Gb(e){return e?e.props.hasOwnProperty("in"):!1}const qb=new Pb;function Qb(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=qb,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:a,onClose:u,open:c,rootRef:h}=e,m=x.useRef({}),w=x.useRef(null),g=x.useRef(null),y=Ze(g,h),[E,p]=x.useState(!c),d=Gb(a);let f=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(f=!1);const v=()=>mt(w.current),k=()=>(m.current.modalRef=g.current,m.current.mount=w.current,m.current),b=()=>{o.mount(k(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},C=ar(()=>{const L=Kb(t)||v().body;o.add(k(),L),g.current&&b()}),T=x.useCallback(()=>o.isTopModal(k()),[o]),F=ar(L=>{w.current=L,L&&(c&&T()?b():g.current&&Qo(g.current,f))}),$=x.useCallback(()=>{o.remove(k(),f)},[f,o]);x.useEffect(()=>()=>{$()},[$]),x.useEffect(()=>{c?C():(!d||!i)&&$()},[c,$,d,i,C]);const D=L=>j=>{var R;(R=L.onKeyDown)==null||R.call(L,j),!(j.key!=="Escape"||j.which===229||!T())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},O=L=>j=>{var R;(R=L.onClick)==null||R.call(L,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(L={})=>{const j=ug(e);delete j.onTransitionEnter,delete j.onTransitionExited;const R=S({},j,L);return S({role:"presentation"},R,{onKeyDown:D(R),ref:y})},getBackdropProps:(L={})=>{const j=L;return S({"aria-hidden":!0},j,{onClick:O(j),open:c})},getTransitionProps:()=>{const L=()=>{p(!1),l&&l()},j=()=>{p(!0),s&&s(),i&&$()};return{onEnter:Fu(L,a==null?void 0:a.props.onEnter),onExited:Fu(j,a==null?void 0:a.props.onExited)}},rootRef:y,portalRef:F,isTopModal:T,exited:E,hasTransition:d}}function Xb(e){return de("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const Zb=["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"],Jb=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Xb,r)},eE=U("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"})),tE=U(Yb,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),nE=x.forwardRef(function(t,n){var r,o,i,l,s,a;const u=ve({name:"MuiModal",props:t}),{BackdropComponent:c=tE,BackdropProps:h,className:m,closeAfterTransition:w=!1,children:g,container:y,component:E,components:p={},componentsProps:d={},disableAutoFocus:f=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:k=!1,disablePortal:b=!1,disableRestoreFocus:C=!1,disableScrollLock:T=!1,hideBackdrop:F=!1,keepMounted:$=!1,onBackdropClick:D,open:O,slotProps:N,slots:_}=u,M=H(u,Zb),L=S({},u,{closeAfterTransition:w,disableAutoFocus:f,disableEnforceFocus:v,disableEscapeKeyDown:k,disablePortal:b,disableRestoreFocus:C,disableScrollLock:T,hideBackdrop:F,keepMounted:$}),{getRootProps:j,getBackdropProps:R,getTransitionProps:z,portalRef:A,isTopModal:X,exited:Q,hasTransition:ae}=Qb(S({},L,{rootRef:n})),G=S({},L,{exited:Q}),le=Jb(G),W={};if(g.props.tabIndex===void 0&&(W.tabIndex="-1"),ae){const{onEnter:J,onExited:pe}=z();W.onEnter=J,W.onExited=pe}const re=(r=(o=_==null?void 0:_.root)!=null?o:p.Root)!=null?r:eE,we=(i=(l=_==null?void 0:_.backdrop)!=null?l:p.Backdrop)!=null?i:c,he=(s=N==null?void 0:N.root)!=null?s:d.root,Be=(a=N==null?void 0:N.backdrop)!=null?a:d.backdrop,ee=io({elementType:re,externalSlotProps:he,externalForwardedProps:M,getSlotProps:j,additionalProps:{ref:n,as:E},ownerState:G,className:q(m,he==null?void 0:he.className,le==null?void 0:le.root,!G.open&&G.exited&&(le==null?void 0:le.hidden))}),Te=io({elementType:we,externalSlotProps:Be,additionalProps:h,getSlotProps:J=>R(S({},J,{onClick:pe=>{D&&D(pe),J!=null&&J.onClick&&J.onClick(pe)}})),className:q(Be==null?void 0:Be.className,h==null?void 0:h.className,le==null?void 0:le.backdrop),ownerState:G});return!$&&!O&&(!ae||Q)?null:P.jsx(Fb,{ref:A,container:y,disablePortal:b,children:P.jsxs(re,S({},ee,{children:[!F&&c?P.jsx(we,S({},Te)):null,P.jsx(Nb,{disableEnforceFocus:v,disableAutoFocus:f,disableRestoreFocus:C,isEnabled:X,open:O,children:x.cloneElement(g,W)})]}))})}),i0=nE,rE=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Rp=rE;function oE(e){return de("MuiPaper",e)}se("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 iE=["className","component","elevation","square","variant"],lE=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(i,oE,o)},sE=U("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(${mn("#fff",Rp(t.elevation))}, ${mn("#fff",Rp(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),aE=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:s=!1,variant:a="elevation"}=r,u=H(r,iE),c=S({},r,{component:i,elevation:l,square:s,variant:a}),h=lE(c);return P.jsx(sE,S({as:i,ownerState:c,className:q(h.root,o),ref:n},u))}),l0=aE;function uE(e){return de("MuiPopover",e)}se("MuiPopover",["root","paper"]);const cE=["onEntering"],dE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fE=["slotProps"];function Tp(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $p(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _p(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ja(e){return typeof e=="function"?e():e}const pE=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},uE,t)},mE=U(i0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s0=U(l0,{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}),hE=x.forwardRef(function(t,n){var r,o,i;const l=ve({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:h="anchorEl",children:m,className:w,container:g,elevation:y=8,marginThreshold:E=16,open:p,PaperProps:d={},slots:f,slotProps:v,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:b=Sb,transitionDuration:C="auto",TransitionProps:{onEntering:T}={},disableScrollLock:F=!1}=l,$=H(l.TransitionProps,cE),D=H(l,dE),O=(r=v==null?void 0:v.paper)!=null?r:d,N=x.useRef(),_=Ze(N,O.ref),M=S({},l,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:E,externalPaperSlotProps:O,transformOrigin:k,TransitionComponent:b,transitionDuration:C,TransitionProps:$}),L=pE(M),j=x.useCallback(()=>{if(h==="anchorPosition")return c;const J=ja(a),be=(J&&J.nodeType===1?J:mt(N.current).body).getBoundingClientRect();return{top:be.top+Tp(be,u.vertical),left:be.left+$p(be,u.horizontal)}},[a,u.horizontal,u.vertical,c,h]),R=x.useCallback(J=>({vertical:Tp(J,k.vertical),horizontal:$p(J,k.horizontal)}),[k.horizontal,k.vertical]),z=x.useCallback(J=>{const pe={width:J.offsetWidth,height:J.offsetHeight},be=R(pe);if(h==="none")return{top:null,left:null,transformOrigin:_p(be)};const bn=j();let Rt=bn.top-be.vertical,Tt=bn.left-be.horizontal;const Wt=Rt+pe.height,$t=Tt+pe.width,$e=Yn(ja(a)),sn=$e.innerHeight-E,at=$e.innerWidth-E;if(E!==null&&Rtsn){const Ee=Wt-sn;Rt-=Ee,be.vertical+=Ee}if(E!==null&&Ttat){const Ee=$t-at;Tt-=Ee,be.horizontal+=Ee}return{top:`${Math.round(Rt)}px`,left:`${Math.round(Tt)}px`,transformOrigin:_p(be)}},[a,h,j,R,E]),[A,X]=x.useState(p),Q=x.useCallback(()=>{const J=N.current;if(!J)return;const pe=z(J);pe.top!==null&&(J.style.top=pe.top),pe.left!==null&&(J.style.left=pe.left),J.style.transformOrigin=pe.transformOrigin,X(!0)},[z]);x.useEffect(()=>(F&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,F,Q]);const ae=(J,pe)=>{T&&T(J,pe),Q()},G=()=>{X(!1)};x.useEffect(()=>{p&&Q()}),x.useImperativeHandle(s,()=>p?{updatePosition:()=>{Q()}}:null,[p,Q]),x.useEffect(()=>{if(!p)return;const J=Yc(()=>{Q()}),pe=Yn(a);return pe.addEventListener("resize",J),()=>{J.clear(),pe.removeEventListener("resize",J)}},[a,p,Q]);let le=C;C==="auto"&&!b.muiSupportAuto&&(le=void 0);const W=g||(a?mt(ja(a)).body:void 0),re=(o=f==null?void 0:f.root)!=null?o:mE,we=(i=f==null?void 0:f.paper)!=null?i:s0,he=io({elementType:we,externalSlotProps:S({},O,{style:A?O.style:S({},O.style,{opacity:0})}),additionalProps:{elevation:y,ref:_},ownerState:M,className:q(L.paper,O==null?void 0:O.className)}),Be=io({elementType:re,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:W,open:p},ownerState:M,className:q(L.root,w)}),{slotProps:ee}=Be,Te=H(Be,fE);return P.jsx(re,S({},Te,!Vl(re)&&{slotProps:ee,disableScrollLock:F},{children:P.jsx(b,S({appear:!0,in:p,onEntering:ae,onExited:G,timeout:le},$,{children:P.jsx(we,S({},he,{children:m}))}))}))}),gE=hE;function vE(e){return de("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const yE=["onEntering"],xE=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wE={vertical:"top",horizontal:"right"},SE={vertical:"top",horizontal:"left"},CE=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},vE,t)},kE=U(gE,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bE=U(s0,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),EE=U(yb,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),PE=x.forwardRef(function(t,n){var r,o;const i=ve({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:s,className:a,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:h,open:m,PaperProps:w={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:E}={},variant:p="selectedMenu",slots:d={},slotProps:f={}}=i,v=H(i.TransitionProps,yE),k=H(i,xE),b=PC(),C=S({},i,{autoFocus:l,disableAutoFocusItem:u,MenuListProps:c,onEntering:E,PaperProps:w,transitionDuration:y,TransitionProps:v,variant:p}),T=CE(C),F=l&&!u&&m,$=x.useRef(null),D=(R,z)=>{$.current&&$.current.adjustStyleForScrollbar(R,{direction:b?"rtl":"ltr"}),E&&E(R,z)},O=R=>{R.key==="Tab"&&(R.preventDefault(),h&&h(R,"tabKeyDown"))};let N=-1;x.Children.map(s,(R,z)=>{x.isValidElement(R)&&(R.props.disabled||(p==="selectedMenu"&&R.props.selected||N===-1)&&(N=z))});const _=(r=d.paper)!=null?r:bE,M=(o=f.paper)!=null?o:w,L=io({elementType:d.root,externalSlotProps:f.root,ownerState:C,className:[T.root,a]}),j=io({elementType:_,externalSlotProps:M,ownerState:C,className:T.paper});return P.jsx(kE,S({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?wE:SE,slots:{paper:_,root:d.root},slotProps:{root:L,paper:j},open:m,ref:n,transitionDuration:y,TransitionProps:S({onEntering:D},v),ownerState:C},k,{classes:g,children:P.jsx(EE,S({onKeyDown:O,actions:$,autoFocus:l&&(N===-1||u),autoFocusItem:F,variant:p},c,{className:q(T.list,c.className),children:s}))}))}),RE=PE;function TE(e){return de("MuiNativeSelect",e)}const $E=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kd=$E,_E=["className","disabled","error","IconComponent","inputRef","variant"],ME=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${K(n)}`,i&&"iconOpen",r&&"disabled"]};return me(s,TE,t)},a0=({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"},[`&.${kd.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}}),OE=U("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${kd.multiple}`]:t.multiple}]}})(a0),u0=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),NE=U("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${K(n.variant)}`],n.open&&t.iconOpen]}})(u0),IE=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:s,variant:a="standard"}=t,u=H(t,_E),c=S({},t,{disabled:o,variant:a,error:i}),h=ME(c);return P.jsxs(x.Fragment,{children:[P.jsx(OE,S({ownerState:c,className:q(h.select,r),disabled:o,ref:s||n},u)),t.multiple?null:P.jsx(NE,{as:l,ownerState:c,className:h.icon})]})}),zE=IE;function FE(e){return de("MuiSelect",e)}const LE=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Mo=LE;var Mp;const DE=["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"],jE=U("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Mo.select}`]:t.select},{[`&.${Mo.select}`]:t[n.variant]},{[`&.${Mo.error}`]:t.error},{[`&.${Mo.multiple}`]:t.multiple}]}})(a0,{[`&.${Mo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),AE=U("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${K(n.variant)}`],n.open&&t.iconOpen]}})(u0),BE=U("input",{shouldForwardProp:e=>Kg(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 Op(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function WE(e){return e==null||typeof e=="string"&&!e.trim()}const UE=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,s={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${K(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(s,FE,t)},HE=x.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:l,autoWidth:s,children:a,className:u,defaultOpen:c,defaultValue:h,disabled:m,displayEmpty:w,error:g=!1,IconComponent:y,inputRef:E,labelId:p,MenuProps:d={},multiple:f,name:v,onBlur:k,onChange:b,onClose:C,onFocus:T,onOpen:F,open:$,readOnly:D,renderValue:O,SelectDisplayProps:N={},tabIndex:_,value:M,variant:L="standard"}=t,j=H(t,DE),[R,z]=Ul({controlled:M,default:h,name:"Select"}),[A,X]=Ul({controlled:$,default:c,name:"Select"}),Q=x.useRef(null),ae=x.useRef(null),[G,le]=x.useState(null),{current:W}=x.useRef($!=null),[re,we]=x.useState(),he=Ze(n,E),Be=x.useCallback(V=>{ae.current=V,V&&le(V)},[]),ee=G==null?void 0:G.parentNode;x.useImperativeHandle(he,()=>({focus:()=>{ae.current.focus()},node:Q.current,value:R}),[R]),x.useEffect(()=>{c&&A&&G&&!W&&(we(s?null:ee.clientWidth),ae.current.focus())},[G,s]),x.useEffect(()=>{l&&ae.current.focus()},[l]),x.useEffect(()=>{if(!p)return;const V=mt(ae.current).getElementById(p);if(V){const Se=()=>{getSelection().isCollapsed&&ae.current.focus()};return V.addEventListener("click",Se),()=>{V.removeEventListener("click",Se)}}},[p]);const Te=(V,Se)=>{V?F&&F(Se):C&&C(Se),W||(we(s?null:ee.clientWidth),X(V))},J=V=>{V.button===0&&(V.preventDefault(),ae.current.focus(),Te(!0,V))},pe=V=>{Te(!1,V)},be=x.Children.toArray(a),bn=V=>{const Se=be.find(Ke=>Ke.props.value===V.target.value);Se!==void 0&&(z(Se.props.value),b&&b(V,Se))},Rt=V=>Se=>{let Ke;if(Se.currentTarget.hasAttribute("tabindex")){if(f){Ke=Array.isArray(R)?R.slice():[];const Sr=R.indexOf(V.props.value);Sr===-1?Ke.push(V.props.value):Ke.splice(Sr,1)}else Ke=V.props.value;if(V.props.onClick&&V.props.onClick(Se),R!==Ke&&(z(Ke),b)){const Sr=Se.nativeEvent||Se,Rd=new Sr.constructor(Sr.type,Sr);Object.defineProperty(Rd,"target",{writable:!0,value:{value:Ke,name:v}}),b(Rd,V)}f||Te(!1,Se)}},Tt=V=>{D||[" ","ArrowUp","ArrowDown","Enter"].indexOf(V.key)!==-1&&(V.preventDefault(),Te(!0,V))},Wt=G!==null&&A,$t=V=>{!Wt&&k&&(Object.defineProperty(V,"target",{writable:!0,value:{value:R,name:v}}),k(V))};delete j["aria-invalid"];let $e,sn;const at=[];let Ee=!1;(Ql({value:R})||w)&&(O?$e=O(R):Ee=!0);const Xt=be.map(V=>{if(!x.isValidElement(V))return null;let Se;if(f){if(!Array.isArray(R))throw new Error(vr(2));Se=R.some(Ke=>Op(Ke,V.props.value)),Se&&Ee&&at.push(V.props.children)}else Se=Op(R,V.props.value),Se&&Ee&&(sn=V.props.children);return x.cloneElement(V,{"aria-selected":Se?"true":"false",onClick:Rt(V),onKeyUp:Ke=>{Ke.key===" "&&Ke.preventDefault(),V.props.onKeyUp&&V.props.onKeyUp(Ke)},role:"option",selected:Se,value:void 0,"data-value":V.props.value})});Ee&&(f?at.length===0?$e=null:$e=at.reduce((V,Se,Ke)=>(V.push(Se),Ke{const{classes:t}=e;return t},bd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gt(e)&&e!=="variant",slot:"Root"},QE=U(Zg,bd)(""),XE=U(n0,bd)(""),ZE=U(e0,bd)(""),c0=x.forwardRef(function(t,n){const r=ve({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:s,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=YE,id:h,input:m,inputProps:w,label:g,labelId:y,MenuProps:E,multiple:p=!1,native:d=!1,onClose:f,onOpen:v,open:k,renderValue:b,SelectDisplayProps:C,variant:T="outlined"}=r,F=H(r,KE),$=d?zE:VE,D=wr(),O=go({props:r,muiFormControl:D,states:["variant","error"]}),N=O.variant||T,_=S({},r,{variant:N,classes:l}),M=qE(_),L=H(M,GE),j=m||{standard:P.jsx(QE,{ownerState:_}),outlined:P.jsx(XE,{label:g,ownerState:_}),filled:P.jsx(ZE,{ownerState:_})}[N],R=Ze(n,fo(j));return P.jsx(x.Fragment,{children:x.cloneElement(j,S({inputComponent:$,inputProps:S({children:i,error:O.error,IconComponent:c,variant:N,type:void 0,multiple:p},d?{id:h}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:y,MenuProps:E,onClose:f,onOpen:v,open:k,renderValue:b,SelectDisplayProps:S({id:h},C)},w,{classes:w?St(L,w.classes):L},m?m.props.inputProps:{})},(p&&d||u)&&N==="outlined"?{notched:!0}:{},{ref:R,className:q(j.props.className,s,M.root)},!m&&{variant:N},F))})});c0.muiName="Select";const JE=c0;function e2(e){return de("MuiTextField",e)}se("MuiTextField",["root"]);const t2=["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"],n2={standard:Zg,filled:e0,outlined:n0},r2=e=>{const{classes:t}=e;return me({root:["root"]},e2,t)},o2=U(eb,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i2=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:s,color:a="primary",defaultValue:u,disabled:c=!1,error:h=!1,FormHelperTextProps:m,fullWidth:w=!1,helperText:g,id:y,InputLabelProps:E,inputProps:p,InputProps:d,inputRef:f,label:v,maxRows:k,minRows:b,multiline:C=!1,name:T,onBlur:F,onChange:$,onFocus:D,placeholder:O,required:N=!1,rows:_,select:M=!1,SelectProps:L,type:j,value:R,variant:z="outlined"}=r,A=H(r,t2),X=S({},r,{autoFocus:i,color:a,disabled:c,error:h,fullWidth:w,multiline:C,required:N,select:M,variant:z}),Q=r2(X),ae={};z==="outlined"&&(E&&typeof E.shrink<"u"&&(ae.notched=E.shrink),ae.label=v),M&&((!L||!L.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const G=Kc(y),le=g&&G?`${G}-helper-text`:void 0,W=v&&G?`${G}-label`:void 0,re=n2[z],we=P.jsx(re,S({"aria-describedby":le,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:w,multiline:C,name:T,rows:_,maxRows:k,minRows:b,type:j,value:R,id:G,inputRef:f,onBlur:F,onChange:$,onFocus:D,placeholder:O,inputProps:p},ae,d));return P.jsxs(o2,S({className:q(Q.root,s),disabled:c,error:h,fullWidth:w,ref:n,required:N,color:a,variant:z,ownerState:X},A,{children:[v!=null&&v!==""&&P.jsx(Gk,S({htmlFor:G,id:W},E,{children:v})),M?P.jsx(JE,S({"aria-describedby":le,id:G,labelId:W,value:R,input:we},L,{children:l})):we,g&&P.jsx(sb,S({id:le},m,{children:g}))]}))}),Np=i2,l2=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],s2={entering:{transform:"none"},entered:{transform:"none"}},a2=x.forwardRef(function(t,n){const r=na(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:s,easing:a,in:u,onEnter:c,onEntered:h,onEntering:m,onExit:w,onExited:g,onExiting:y,style:E,timeout:p=o,TransitionComponent:d=qs}=t,f=H(t,l2),v=x.useRef(null),k=Ze(v,fo(s),n),b=_=>M=>{if(_){const L=v.current;M===void 0?_(L):_(L,M)}},C=b(m),T=b((_,M)=>{Cd(_);const L=Gn({style:E,timeout:p,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("transform",L),_.style.transition=r.transitions.create("transform",L),c&&c(_,M)}),F=b(h),$=b(y),D=b(_=>{const M=Gn({style:E,timeout:p,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("transform",M),_.style.transition=r.transitions.create("transform",M),w&&w(_)}),O=b(g),N=_=>{i&&i(v.current,_)};return P.jsx(d,S({appear:l,in:u,nodeRef:v,onEnter:T,onEntered:F,onEntering:C,onExit:D,onExited:O,onExiting:$,addEndListener:N,timeout:p},f,{children:(_,M)=>x.cloneElement(s,S({style:S({transform:"scale(0)",visibility:_==="exited"&&!u?"hidden":void 0},s2[_],E,s.props.style),ref:k},M))}))}),u2=a2;function c2(e){return de("MuiCollapse",e)}se("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const d2=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],f2=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return me(r,c2,n)},p2=U("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),m2=U("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),h2=U("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),d0=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:l,collapsedSize:s="0px",component:a,easing:u,in:c,onEnter:h,onEntered:m,onEntering:w,onExit:g,onExited:y,onExiting:E,orientation:p="vertical",style:d,timeout:f=Vg.standard,TransitionComponent:v=qs}=r,k=H(r,d2),b=S({},r,{orientation:p,collapsedSize:s}),C=f2(b),T=na(),F=Gc(),$=x.useRef(null),D=x.useRef(),O=typeof s=="number"?`${s}px`:s,N=p==="horizontal",_=N?"width":"height",M=x.useRef(null),L=Ze(n,M),j=W=>re=>{if(W){const we=M.current;re===void 0?W(we):W(we,re)}},R=()=>$.current?$.current[N?"clientWidth":"clientHeight"]:0,z=j((W,re)=>{$.current&&N&&($.current.style.position="absolute"),W.style[_]=O,h&&h(W,re)}),A=j((W,re)=>{const we=R();$.current&&N&&($.current.style.position="");const{duration:he,easing:Be}=Gn({style:d,timeout:f,easing:u},{mode:"enter"});if(f==="auto"){const ee=T.transitions.getAutoHeightDuration(we);W.style.transitionDuration=`${ee}ms`,D.current=ee}else W.style.transitionDuration=typeof he=="string"?he:`${he}ms`;W.style[_]=`${we}px`,W.style.transitionTimingFunction=Be,w&&w(W,re)}),X=j((W,re)=>{W.style[_]="auto",m&&m(W,re)}),Q=j(W=>{W.style[_]=`${R()}px`,g&&g(W)}),ae=j(y),G=j(W=>{const re=R(),{duration:we,easing:he}=Gn({style:d,timeout:f,easing:u},{mode:"exit"});if(f==="auto"){const Be=T.transitions.getAutoHeightDuration(re);W.style.transitionDuration=`${Be}ms`,D.current=Be}else W.style.transitionDuration=typeof we=="string"?we:`${we}ms`;W.style[_]=O,W.style.transitionTimingFunction=he,E&&E(W)}),le=W=>{f==="auto"&&F.start(D.current||0,W),o&&o(M.current,W)};return P.jsx(v,S({in:c,onEnter:z,onEntered:X,onEntering:A,onExit:Q,onExited:ae,onExiting:G,addEndListener:le,nodeRef:M,timeout:f==="auto"?null:f},k,{children:(W,re)=>P.jsx(p2,S({as:a,className:q(C.root,l,{entered:C.entered,exited:!c&&O==="0px"&&C.hidden}[W]),style:S({[N?"minWidth":"minHeight"]:O},d),ref:L},re,{ownerState:S({},b,{state:W}),children:P.jsx(m2,{ownerState:S({},b,{state:W}),className:C.wrapper,ref:$,children:P.jsx(h2,{ownerState:S({},b,{state:W}),className:C.wrapperInner,children:i})})}))}))});d0.muiSupportAuto=!0;const g2=d0;function v2({onAdd:e}){const[t,n]=te.useState({title:"",content:""}),[r,o]=te.useState(!1),[i,l]=te.useState(!1),s=te.useCallback(c=>{const{name:h,value:m}=c.target;n(w=>({...w,[h]:m}))},[]),a=te.useCallback(c=>{if(c.preventDefault(),t.title.trim()===""&&t.content.trim()===""){l(!0);const h=setTimeout(()=>l(!1),500);return()=>clearTimeout(h)}t.title.trim()===""&&(t.title=t.content.split(" ")[0]),t.content.trim()===""&&(t.content="no content"),e(t),n({title:"",content:""}),o(!1)},[t,e]),u=te.useCallback(()=>{o(!0)},[]);return P.jsx("div",{children:P.jsxs("form",{className:"create-area-form",autoComplete:"off",onClick:u,children:[P.jsx(Np,{className:"create-area-input",name:"title",onChange:s,value:t.title,label:"Title",variant:"outlined",fullWidth:!0,onFocus:u}),P.jsx(g2,{in:r,children:P.jsx(Np,{className:"create-area-input",name:"content",onChange:s,value:t.content,label:"Take a note...",variant:"outlined",multiline:!0,rows:3,fullWidth:!0})}),P.jsx(u2,{in:r,children:P.jsx(XC,{className:q("create-area-fab",{shake:i}),onClick:a,children:P.jsx(qg,{})})})]})})}const y2=te.memo(v2);function x2(e){return de("MuiButton",e)}const w2=se("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"]),Ji=w2,S2=x.createContext({}),C2=S2,k2=x.createContext(void 0),b2=k2,E2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],P2=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,s={root:["root",i,`${i}${K(t)}`,`size${K(o)}`,`${i}Size${K(o)}`,`color${K(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${K(o)}`],endIcon:["icon","endIcon",`iconSize${K(o)}`]},a=me(s,x2,l);return S({},l,a)},f0=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}}),R2=U(Xs,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${K(n.color)}`],t[`size${K(n.size)}`],t[`${n.variant}Size${K(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})`:mn(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})`:mn(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})`:mn(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]}),[`&.${Ji.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ji.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 ${mn(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"},[`&.${Ji.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ji.disabled}`]:{boxShadow:"none"}}),T2=U("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${K(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},f0(e))),$2=U("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${K(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},f0(e))),_2=x.forwardRef(function(t,n){const r=x.useContext(C2),o=x.useContext(b2),i=Hl(r,t),l=ve({props:i,name:"MuiButton"}),{children:s,color:a="primary",component:u="button",className:c,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:w=!1,endIcon:g,focusVisibleClassName:y,fullWidth:E=!1,size:p="medium",startIcon:d,type:f,variant:v="text"}=l,k=H(l,E2),b=S({},l,{color:a,component:u,disabled:h,disableElevation:m,disableFocusRipple:w,fullWidth:E,size:p,type:f,variant:v}),C=P2(b),T=d&&P.jsx(T2,{className:C.startIcon,ownerState:b,children:d}),F=g&&P.jsx($2,{className:C.endIcon,ownerState:b,children:g}),$=o||"";return P.jsxs(R2,S({ownerState:b,className:q(r.className,C.root,c,$),component:u,disabled:h,focusRipple:!w,focusVisibleClassName:q(C.focusVisible,y),ref:n,type:f},k,{classes:C,children:[T,s,F]}))}),M2=_2;const O2=te.memo(function({onSummarize:t,disabled:n}){return P.jsxs("header",{className:"header",children:[P.jsx("h1",{children:"Keeper AI"}),P.jsx(M2,{variant:"contained",color:"primary",onClick:t,disabled:n,className:"summarize-button",children:"Summarize"})]})});te.memo(function(){const t=new Date().getFullYear();return P.jsx("footer",{children:P.jsxs("p",{children:["Made with ❤ ",P.jsx("br",{}),"Copyright ⓒ ",t]})})});var Ed={},N2=bi;Object.defineProperty(Ed,"__esModule",{value:!0});var p0=Ed.default=void 0,I2=N2(gd()),z2=P;p0=Ed.default=(0,I2.default)((0,z2.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");function F2(e){return de("MuiIconButton",e)}const L2=se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),D2=L2,j2=["edge","children","className","color","disabled","disableFocusRipple","size"],A2=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${K(r)}`,o&&`edge${K(o)}`,`size${K(i)}`]};return me(l,F2,t)},B2=U(Xs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${K(n.color)}`],n.edge&&t[`edge${K(n.edge)}`],t[`size${K(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})`:mn(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})`:mn(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)},{[`&.${D2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),W2=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:s="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium"}=r,h=H(r,j2),m=S({},r,{edge:o,color:s,disabled:a,disableFocusRipple:u,size:c}),w=A2(m);return P.jsx(B2,S({className:q(w.root,l),centerRipple:!0,focusRipple:!u,disabled:a,ref:n},h,{ownerState:m,children:i}))}),m0=W2;function U2(e){return de("MuiCard",e)}se("MuiCard",["root"]);const H2=["className","raised"],V2=e=>{const{classes:t}=e;return me({root:["root"]},U2,t)},Y2=U(l0,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),K2=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,l=H(r,H2),s=S({},r,{raised:i}),a=V2(s);return P.jsx(Y2,S({className:q(a.root,o),elevation:i?8:void 0,ref:n,ownerState:s},l))}),G2=K2;function q2(e){return de("MuiCardContent",e)}se("MuiCardContent",["root"]);const Q2=["className","component"],X2=e=>{const{classes:t}=e;return me({root:["root"]},q2,t)},Z2=U("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),J2=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,l=H(r,Q2),s=S({},r,{component:i}),a=X2(s);return P.jsx(Z2,S({as:i,className:q(a.root,o),ownerState:s,ref:n},l))}),eP=J2;function tP(e){return de("MuiTypography",e)}se("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nP=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rP=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,s={root:["root",i,e.align!=="inherit"&&`align${K(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(s,tP,l)},oP=U("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${K(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})),Ip={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},iP={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lP=e=>iP[e]||e,sP=x.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTypography"}),o=lP(r.color),i=dd(S({},r,{color:o})),{align:l="inherit",className:s,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:h=!1,variant:m="body1",variantMapping:w=Ip}=i,g=H(i,nP),y=S({},i,{align:l,color:o,className:s,component:a,gutterBottom:u,noWrap:c,paragraph:h,variant:m,variantMapping:w}),E=a||(h?"p":w[m]||Ip[m])||"span",p=rP(y);return P.jsx(oP,S({as:E,ref:n,ownerState:y,className:q(p.root,s)},g))}),Xr=sP;function aP(e){return de("PrivateSwitchBase",e)}se("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const uP=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cP=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${K(o)}`],input:["input"]};return me(i,aP,t)},dP=U(Xs)(({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})),fP=U("input",{shouldForwardProp:gt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pP=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:l,defaultChecked:s,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:h,id:m,inputProps:w,inputRef:g,name:y,onBlur:E,onChange:p,onFocus:d,readOnly:f,required:v=!1,tabIndex:k,type:b,value:C}=t,T=H(t,uP),[F,$]=Ul({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),D=wr(),O=z=>{d&&d(z),D&&D.onFocus&&D.onFocus(z)},N=z=>{E&&E(z),D&&D.onBlur&&D.onBlur(z)},_=z=>{if(z.nativeEvent.defaultPrevented)return;const A=z.target.checked;$(A),p&&p(z,A)};let M=a;D&&typeof M>"u"&&(M=D.disabled);const L=b==="checkbox"||b==="radio",j=S({},t,{checked:F,disabled:M,disableFocusRipple:u,edge:c}),R=cP(j);return P.jsxs(dP,S({component:"span",className:q(R.root,l),centerRipple:!0,focusRipple:!u,disabled:M,tabIndex:null,role:void 0,onFocus:O,onBlur:N,ownerState:j,ref:n},T,{children:[P.jsx(fP,S({autoFocus:r,checked:o,defaultChecked:s,className:R.input,disabled:M,id:L?m:void 0,name:y,onChange:_,readOnly:f,ref:g,required:v,ownerState:j,tabIndex:k,type:b},b==="checkbox"&&C===void 0?{}:{value:C},w)),F?i:h]}))}),mP=pP,hP=Mi(P.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"),gP=Mi(P.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"),vP=Mi(P.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 yP(e){return de("MuiCheckbox",e)}const xP=se("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Aa=xP,wP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],SP=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${K(r)}`,`size${K(o)}`]},l=me(i,yP,t);return S({},t,l)},CP=U(mP,{shouldForwardProp:e=>gt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${K(n.size)}`],n.color!=="default"&&t[`color${K(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})`:mn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Aa.checked}, &.${Aa.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Aa.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kP=P.jsx(gP,{}),bP=P.jsx(hP,{}),EP=P.jsx(vP,{}),PP=x.forwardRef(function(t,n){var r,o;const i=ve({props:t,name:"MuiCheckbox"}),{checkedIcon:l=kP,color:s="primary",icon:a=bP,indeterminate:u=!1,indeterminateIcon:c=EP,inputProps:h,size:m="medium",className:w}=i,g=H(i,wP),y=u?c:a,E=u?c:l,p=S({},i,{color:s,indeterminate:u,size:m}),d=SP(p);return P.jsx(CP,S({type:"checkbox",inputProps:S({"data-indeterminate":u},h),icon:x.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:m}),checkedIcon:x.cloneElement(E,{fontSize:(o=E.props.fontSize)!=null?o:m}),ownerState:p,ref:n,className:q(d.root,w)},g,{classes:d}))}),RP=PP;const h0=6048e5,TP=864e5,zp=Symbol.for("constructDateFrom");function qn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&zp in e?e[zp](t):e instanceof Date?new e.constructor(t):new Date(t)}function Qt(e,t){return qn(t||e,e)}let $P={};function ra(){return $P}function yi(e,t){var s,a,u,c;const n=ra(),r=(t==null?void 0:t.weekStartsOn)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=Qt(e,t==null?void 0:t.in),i=o.getDay(),l=(i=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Fp(e){const t=Qt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function _P(e,...t){const n=qn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Lp(e,t){const n=Qt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function MP(e,t,n){const[r,o]=_P(n==null?void 0:n.in,e,t),i=Lp(r),l=Lp(o),s=+i-Fp(i),a=+l-Fp(l);return Math.round((s-a)/TP)}function OP(e,t){const n=g0(e,t),r=qn((t==null?void 0:t.in)||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xl(r)}function NP(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function IP(e){return!(!NP(e)&&typeof e!="number"||isNaN(+Qt(e)))}function zP(e,t){const n=Qt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const FP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LP=(e,t,n)=>{let r;const o=FP[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ba(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const DP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},AP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BP={date:Ba({formats:DP,defaultWidth:"full"}),time:Ba({formats:jP,defaultWidth:"full"}),dateTime:Ba({formats:AP,defaultWidth:"full"})},WP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UP=(e,t,n,r)=>WP[e];function Oo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):l;o=e.formattingValues[s]||e.formattingValues[l]}else{const l=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const HP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},VP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},KP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},GP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},QP=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},XP={ordinalNumber:QP,era:Oo({values:HP,defaultWidth:"wide"}),quarter:Oo({values:VP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oo({values:YP,defaultWidth:"wide"}),day:Oo({values:KP,defaultWidth:"wide"}),dayPeriod:Oo({values:GP,defaultWidth:"wide",formattingValues:qP,defaultFormattingWidth:"wide"})};function No(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?JP(s,h=>h.test(l)):ZP(s,h=>h.test(l));let u;u=e.valueCallback?e.valueCallback(a):a,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(l.length);return{value:u,rest:c}}}function ZP(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function JP(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;const s=t.slice(o.length);return{value:l,rest:s}}}const tR=/^(\d+)(th|st|nd|rd)?/i,nR=/\d+/i,rR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},oR={any:[/^b/i,/^(a|c)/i]},iR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},lR={any:[/1/i,/2/i,/3/i,/4/i]},sR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},dR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},fR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pR={ordinalNumber:eR({matchPattern:tR,parsePattern:nR,valueCallback:e=>parseInt(e,10)}),era:No({matchPatterns:rR,defaultMatchWidth:"wide",parsePatterns:oR,defaultParseWidth:"any"}),quarter:No({matchPatterns:iR,defaultMatchWidth:"wide",parsePatterns:lR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:No({matchPatterns:sR,defaultMatchWidth:"wide",parsePatterns:aR,defaultParseWidth:"any"}),day:No({matchPatterns:uR,defaultMatchWidth:"wide",parsePatterns:cR,defaultParseWidth:"any"}),dayPeriod:No({matchPatterns:dR,defaultMatchWidth:"any",parsePatterns:fR,defaultParseWidth:"any"})},mR={code:"en-US",formatDistance:LP,formatLong:BP,formatRelative:UP,localize:XP,match:pR,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hR(e,t){const n=Qt(e,t==null?void 0:t.in);return MP(n,zP(n))+1}function gR(e,t){const n=Qt(e,t==null?void 0:t.in),r=+Xl(n)-+OP(n);return Math.round(r/h0)+1}function v0(e,t){var c,h,m,w;const n=Qt(e,t==null?void 0:t.in),r=n.getFullYear(),o=ra(),i=(t==null?void 0:t.firstWeekContainsDate)??((h=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(m=o.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,l=qn((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,i),l.setHours(0,0,0,0);const s=yi(l,t),a=qn((t==null?void 0:t.in)||e,0);a.setFullYear(r,0,i),a.setHours(0,0,0,0);const u=yi(a,t);return+n>=+s?r+1:+n>=+u?r:r-1}function vR(e,t){var s,a,u,c;const n=ra(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=v0(e,t),i=qn((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),yi(i,t)}function yR(e,t){const n=Qt(e,t==null?void 0:t.in),r=+yi(n,t)-+vR(n,t);return Math.round(r/h0)+1}function ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ue(n+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ue(o,t.length)}},$r={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Tn.y(e,t)},Y:function(e,t,n,r){const o=v0(e,r),i=o>0?o:1-o;if(t==="YY"){const l=i%100;return ue(l,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):ue(i,t.length)},R:function(e,t){const n=g0(e);return ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=yR(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,n){const r=gR(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tn.d(e,t)},D:function(e,t,n){const r=hR(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ue(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ue(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ue(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=$r.noon:r===0?o=$r.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=$r.evening:r>=12?o=$r.afternoon:r>=4?o=$r.morning:o=$r.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tn.s(e,t)},S:function(e,t){return Tn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ap(r);case"XXXX":case"XX":return or(r);case"XXXXX":case"XXX":default:return or(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ap(r);case"xxxx":case"xx":return or(r);case"xxxxx":case"xxx":default:return or(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jp(r,":");case"OOOO":default:return"GMT"+or(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jp(r,":");case"zzzz":default:return"GMT"+or(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ue(r,t.length)},T:function(e,t,n){return ue(+e,t.length)}};function jp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+ue(i,2)}function Ap(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):or(e,t)}function or(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ue(Math.trunc(r/60),2),i=ue(r%60,2);return n+o+t+i}const Bp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},y0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},xR=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Bp(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Bp(r,t)).replace("{{time}}",y0(o,t))},wR={p:y0,P:xR},SR=/^D+$/,CR=/^Y+$/,kR=["D","DD","YY","YYYY"];function bR(e){return SR.test(e)}function ER(e){return CR.test(e)}function PR(e,t,n){const r=RR(e,t,n);if(console.warn(r),kR.includes(e))throw new RangeError(r)}function RR(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const TR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$R=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_R=/^'([^]*?)'?$/,MR=/''/g,OR=/[a-zA-Z]/;function x0(e,t,n){var c,h,m,w,g,y,E,p;const r=ra(),o=(n==null?void 0:n.locale)??r.locale??mR,i=(n==null?void 0:n.firstWeekContainsDate)??((h=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(m=r.locale)==null?void 0:m.options)==null?void 0:w.firstWeekContainsDate)??1,l=(n==null?void 0:n.weekStartsOn)??((y=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??r.weekStartsOn??((p=(E=r.locale)==null?void 0:E.options)==null?void 0:p.weekStartsOn)??0,s=Qt(e,n==null?void 0:n.in);if(!IP(s))throw new RangeError("Invalid time value");let a=t.match($R).map(d=>{const f=d[0];if(f==="p"||f==="P"){const v=wR[f];return v(d,o.formatLong)}return d}).join("").match(TR).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const f=d[0];if(f==="'")return{isToken:!1,value:NR(d)};if(Dp[f])return{isToken:!0,value:d};if(f.match(OR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(a=o.localize.preprocessor(s,a));const u={firstWeekContainsDate:i,weekStartsOn:l,locale:o};return a.map(d=>{if(!d.isToken)return d.value;const f=d.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ER(f)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&bR(f))&&PR(f,t,String(e));const v=Dp[f[0]];return v(s,f,o.localize,u)}).join("")}function NR(e){const t=e.match(_R);return t?t[1].replace(MR,"'"):e}function IR({id:e,title:t,content:n,createdAt:r,onDelete:o,onChecked:i,onUnChecked:l,onClick:s}){const[a,u]=te.useState({}),[c,h]=te.useState(!1),m=te.useCallback(E=>{const p=E.currentTarget,{left:d,top:f,width:v,height:k}=p.getBoundingClientRect(),b=E.clientX-d-v/2,C=E.clientY-f-k/2,T=15,F=C/k*T*-1,$=b/v*T;u({transform:`rotateX(${F}deg) rotateY(${$}deg)`,boxShadow:"0 8px 15px rgba(0, 0, 0, 0.2)"})},[]),w=te.useCallback(()=>{u({transform:"rotateX(0deg) rotateY(0deg)",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"})},[]);te.useCallback(E=>{E.stopPropagation(),o(e)},[e,o]);const g=te.useCallback(E=>{E.stopPropagation(),h(E.target.checked),E.target.checked?i(e):l(e)},[e,i,l]),y=te.useCallback(E=>{E.stopPropagation()},[]);return P.jsxs(G2,{className:"note-card",style:a,onMouseMove:m,onMouseLeave:w,onClick:s,children:[P.jsxs(eP,{children:[P.jsx(Xr,{className:"note-title",variant:"h5",children:t.slice(0,20)}),P.jsx(Xr,{className:"note-content",variant:"body2",children:n.slice(0,20)}),P.jsx(Xr,{className:"note-timestamp",variant:"caption",children:x0(new Date(r),"MMM dd, yyyy • HH:mm")})]}),P.jsx(RP,{className:"note-checkbox",checked:c,onChange:g,onClick:y,color:"primary",inputProps:{"aria-label":"Select note",onClick:E=>E.stopPropagation()}}),P.jsx(m0,{className:"note-delete-button",onClick:E=>{E.stopPropagation(),o(e)},"aria-label":"delete",children:P.jsx(p0,{})})]})}const zR=te.memo(IR),FR=se("MuiBox",["root"]),LR=FR,DR=Yg(),jR=bC({themeId:Gs,defaultTheme:DR,defaultClassName:LR.root,generateClassName:qc.generate}),AR=jR;var Pd={},BR=bi;Object.defineProperty(Pd,"__esModule",{value:!0});var w0=Pd.default=void 0,WR=BR(gd()),UR=P;w0=Pd.default=(0,WR.default)((0,UR.jsx)("path",{d:"M19 6.41 17.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");const HR=({open:e,handleClose:t,note:n})=>P.jsx(i0,{open:e,onClose:t,children:P.jsxs(AR,{className:"style",children:[P.jsx(m0,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:-1,top:-1},children:P.jsx(w0,{})}),n&&P.jsxs(P.Fragment,{children:[P.jsx(Xr,{variant:"h5",component:"h2",children:P.jsx("b",{children:n.title})}),P.jsx(Xr,{sx:{mt:2},children:n.content}),P.jsxs(Xr,{variant:"caption",sx:{mt:2,color:"text.secondary"},children:["Created: ",x0(new Date(n.createdAt),"MMM dd, yyyy • HH:mm")]})]})]})});const VR=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error saving to localStorage:",n)}},YR=(e,t)=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("Error loading from localStorage:",n),t}};function KR(){const[e,t]=x.useState(null),[n,r]=x.useState(!1),[o,i]=x.useState([]),[l,s]=x.useState("nothing"),[a,u]=x.useState(""),c=x.useRef(null),h=x.useRef(null),m=x.useRef(null);x.useEffect(()=>{m.current||(m.current=new Worker(new URL("/assets/worker-c6a76041.js",self.location),{type:"module"}));const O=N=>{switch(N.data.status){case"initiate":t(!1),i(_=>[..._,N.data]);break;case"progress":i(_=>_.map(M=>M.file===N.data.file?{...M,progress:N.data.progress}:M));break;case"done":i(_=>_.filter(M=>M.file!==N.data.file));break;case"ready":t(!0);break;case"update":u(N.data.output);break;case"complete":r(!1);break}};return m.current.addEventListener("message",O),()=>m.current.removeEventListener("message",O)}),x.useEffect(()=>{if(c.current&&h.current){const N=parseInt(getComputedStyle(c.current).lineHeight)*2;if(c.current.scrollHeight>N){h.current.textContent=a;const _=h.current.offsetWidth+20;c.current.style.width=`${Math.max(_,300)}px`}else c.current.style.width="300px"}},[a]);const w=()=>{r(!0),m.current.postMessage({text:E.join(" ")})},[g,y]=x.useState(()=>YR("notes",[])),[E,p]=te.useState([]),[d,f]=x.useState(null),[v,k]=x.useState(!1),b=te.useCallback(O=>{if(O.title||O.content){const N={...O,createdAt:new Date().toISOString()};y(M=>[...M,N]);const _=`${O.title} Description: ${O.content}`;s(_)}},[]),C=te.useCallback(O=>{let N=g.find((M,L)=>L==O),_=`Title:${N.title} Description: ${N.content}`;p(M=>M.filter(L=>L!==_)),y(M=>M.filter((L,j)=>j!==O))},[g]),T=te.useCallback(O=>{console.log(O);const N=g.find((_,M)=>M==O);if(console.log(N),N){let _=`Title:${N.title} Description: ${N.content}`;p(M=>M.filter(L=>L!==_))}},[g]),F=te.useCallback(O=>{console.log(O);const N=g.find((_,M)=>M==O);if(console.log(N),N){let _=`Title:${N.title} Description: ${N.content}`;p(M=>[...M,_])}},[g]),$=O=>{f(O),k(!0)},D=()=>{k(!1),f(null)};return x.useEffect(()=>{console.log("Current Note Updated:",E)},[E]),x.useEffect(()=>{VR("notes",g)},[g]),P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"header-container",children:P.jsx(O2,{onSummarize:w,disabled:n})}),P.jsx(y2,{onAdd:b}),P.jsx("div",{className:"app-container",children:P.jsxs("div",{className:"textbox-container output-container",children:[P.jsx("textarea",{ref:c,value:a,readOnly:!0,className:"auto-expand-textarea"}),P.jsx("span",{ref:h,className:"hidden-span-measure"})]})}),P.jsx("div",{className:"note-container",children:g.map((O,N)=>P.jsx(zR,{id:N,title:O.title,content:O.content,createdAt:O.createdAt,onDelete:C,onChecked:F,onUnChecked:T,onClick:()=>$(O)},N))}),P.jsx(HR,{open:v,handleClose:D,note:d}),P.jsxs("div",{className:"progress-bars-container",children:[e===!1&&P.jsx("label",{children:"Loading models... (only run once)"}),o.map(O=>P.jsx("div",{children:P.jsx(Ky,{text:O.file,percentage:O.progress})},O.file))]})]})}Ua.createRoot(document.getElementById("root")).render(P.jsx(te.StrictMode,{children:P.jsx(KR,{})}));