From fdfdcc6cb7a6244fd99cda1a3f646bd537f23648 Mon Sep 17 00:00:00 2001 From: Abiria Date: Sat, 9 Dec 2023 11:25:19 +0900 Subject: [PATCH] wip: --- .gitignore | 2 +- docs/assets/index-7qc2ssli.js | 130 +++++++++++++++++++++++++++++++++ docs/assets/index-jucHwS0F.css | 1 + docs/index.html | 16 ++++ frontend/src/goggle.ts | 3 +- 5 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 docs/assets/index-7qc2ssli.js create mode 100644 docs/assets/index-jucHwS0F.css create mode 100644 docs/index.html diff --git a/.gitignore b/.gitignore index bcd01bd..ca1e3ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules -dist +# dist dist-ssr *.local diff --git a/docs/assets/index-7qc2ssli.js b/docs/assets/index-7qc2ssli.js new file mode 100644 index 0000000..d0df049 --- /dev/null +++ b/docs/assets/index-7qc2ssli.js @@ -0,0 +1,130 @@ +function l0(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 Tm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s0(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 Om={exports:{}},Ns={},Im={exports:{}},he={};/** + * @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 tl=Symbol.for("react.element"),a0=Symbol.for("react.portal"),u0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),f0=Symbol.for("react.provider"),p0=Symbol.for("react.context"),m0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),g0=Symbol.for("react.memo"),v0=Symbol.for("react.lazy"),ff=Symbol.iterator;function y0(e){return e===null||typeof e!="object"?null:(e=ff&&e[ff]||e["@@iterator"],typeof e=="function"?e:null)}var _m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mm=Object.assign,Nm={};function Wo(e,t,n){this.props=e,this.context=t,this.refs=Nm,this.updater=n||_m}Wo.prototype.isReactComponent={};Wo.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")};Wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lm(){}Lm.prototype=Wo.prototype;function Mc(e,t,n){this.props=e,this.context=t,this.refs=Nm,this.updater=n||_m}var Nc=Mc.prototype=new Lm;Nc.constructor=Mc;Mm(Nc,Wo.prototype);Nc.isPureReactComponent=!0;var pf=Array.isArray,Am=Object.prototype.hasOwnProperty,Lc={current:null},zm={key:!0,ref:!0,__self:!0,__source:!0};function Fm(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)Am.call(t,r)&&!zm.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ee=O[ne];if(0>>1;neo(J,U))oeo(Ee,J)?(O[ne]=Ee,O[oe]=U,ne=oe):(O[ne]=J,O[G]=U,ne=G);else if(oeo(Ee,U))O[ne]=Ee,O[oe]=U,ne=oe;else break e}}return N}function o(O,N){var U=O.sortIndex-N.sortIndex;return U!==0?U:O.id-N.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=[],c=[],f=1,u=null,d=3,g=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(O){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=O)r(c),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(c)}}function y(O){if(x=!1,m(O),!v)if(n(a)!==null)v=!0,A(C);else{var N=n(c);N!==null&&B(y,N.startTime-O)}}function C(O,N){v=!1,x&&(x=!1,h($),$=-1),g=!0;var U=d;try{for(m(N),u=n(a);u!==null&&(!(u.expirationTime>N)||O&&!L());){var ne=u.callback;if(typeof ne=="function"){u.callback=null,d=u.priorityLevel;var ee=ne(u.expirationTime<=N);N=e.unstable_now(),typeof ee=="function"?u.callback=ee:u===n(a)&&r(a),m(N)}else r(a);u=n(a)}if(u!==null)var fe=!0;else{var G=n(c);G!==null&&B(y,G.startTime-N),fe=!1}return fe}finally{u=null,d=U,g=!1}}var k=!1,S=null,$=-1,_=5,R=-1;function L(){return!(e.unstable_now()-R<_)}function M(){if(S!==null){var O=e.unstable_now();R=O;var N=!0;try{N=S(!0,O)}finally{N?z():(k=!1,S=null)}}else k=!1}var z;if(typeof p=="function")z=function(){p(M)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,j=F.port2;F.port1.onmessage=M,z=function(){j.postMessage(null)}}else z=function(){E(M,0)};function A(O){S=O,k||(k=!0,z())}function B(O,N){$=E(function(){O(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,A(C))},e.unstable_forceFrameRate=function(O){0>O||125ne?(O.sortIndex=U,t(c,O),n(a)===null&&O===n(c)&&(x?(h($),$=-1):x=!0,B(y,U-ne))):(O.sortIndex=ee,t(a,O),v||g||(v=!0,A(C))),O},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(O){var N=d;return function(){var U=d;d=N;try{return O.apply(this,arguments)}finally{d=U}}}})(Um);Bm.exports=Um;var T0=Bm.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 Wm=b,Vt=T0;function D(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"),$u=Object.prototype.hasOwnProperty,O0=/^[: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]*$/,hf={},gf={};function I0(e){return $u.call(gf,e)?!0:$u.call(hf,e)?!1:O0.test(e)?gf[e]=!0:(hf[e]=!0,!1)}function _0(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 M0(e,t,n,r){if(t===null||typeof t>"u"||_0(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 Tt(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 gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Tt(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){gt[e]=new Tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var zc=/[\-:]([a-z])/g;function Fc(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(zc,Fc);gt[t]=new Tt(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(zc,Fc);gt[t]=new Tt(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(zc,Fc);gt[t]=new Tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dc(e,t,n,r){var o=gt.hasOwnProperty(t)?gt[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{Ka=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ui(e):""}function N0(e){switch(e.tag){case 5:return ui(e.type);case 16:return ui("Lazy");case 13:return ui("Suspense");case 19:return ui("SuspenseList");case 0:case 2:case 15:return e=Ga(e.type,!1),e;case 11:return e=Ga(e.type.render,!1),e;case 1:return e=Ga(e.type,!0),e;default:return""}}function _u(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 ao:return"Fragment";case so:return"Portal";case Tu:return"Profiler";case jc:return"StrictMode";case Ou:return"Suspense";case Iu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Km:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uc:return t=e.displayName||null,t!==null?t:_u(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return _u(e(t))}catch{}}return null}function L0(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 _u(t);case 8:return t===jc?"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 vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A0(e){var t=Qm(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 gl(e){e._valueTracker||(e._valueTracker=A0(e))}function qm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function es(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 Mu(e,t){var n=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vr(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 Xm(e,t){t=t.checked,t!=null&&Dc(e,"checked",t,!1)}function Nu(e,t){Xm(e,t);var n=vr(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")?Lu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lu(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xf(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 Lu(e,t,n){(t!=="number"||es(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ci=Array.isArray;function bo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mi={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(mi).forEach(function(e){z0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mi[t]=mi[e]})});function eh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mi.hasOwnProperty(e)&&mi[e]?(""+t).trim():t+"px"}function th(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=eh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var F0=He({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 Fu(e,t){if(t){if(F0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Du(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 ju=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bu=null,wo=null,So=null;function Sf(e){if(e=ol(e)){if(typeof Bu!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ds(t),Bu(e.stateNode,e.type,t))}}function nh(e){wo?So?So.push(e):So=[e]:wo=e}function rh(){if(wo){var e=wo,t=So;if(So=wo=null,Sf(e),t)for(e=0;e>>=0,e===0?32:31-(q0(e)/X0|0)|0}var yl=64,xl=4194304;function di(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 os(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=di(s):(i&=l,i!==0&&(r=di(i)))}else l=n&~o,l!==0?r=di(l):i!==0&&(r=di(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 nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wn(t),e[t]=n}function ey(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=gi),If=" ",_f=!1;function Ch(e,t){switch(e){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uo=!1;function Oy(e,t){switch(e){case"compositionend":return kh(t);case"keypress":return t.which!==32?null:(_f=!0,If);case"textInput":return e=t.data,e===If&&_f?null:e;default:return null}}function Iy(e,t){if(uo)return e==="compositionend"||!Yc&&Ch(e,t)?(e=wh(),Dl=Qc=sr=null,uo=!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=Af(n)}}function $h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Th(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function Zc(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 jy(e){var t=Th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$h(n.ownerDocument.documentElement,n)){if(r!==null&&Zc(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=zf(n,i);var l=zf(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,co=null,Gu=null,yi=null,Qu=!1;function Ff(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qu||co==null||co!==es(r)||(r=co,"selectionStart"in r&&Zc(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}),yi&&Ai(yi,r)||(yi=r,r=ss(Gu,"onSelect"),0mo||(e.current=ec[mo],ec[mo]=null,mo--)}function Ne(e,t){mo++,ec[mo]=e.current,e.current=t}var yr={},Et=Sr(yr),_t=Sr(!1),Fr=yr;function Oo(e,t){var n=e.type.contextTypes;if(!n)return yr;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 Mt(e){return e=e.childContextTypes,e!=null}function us(){Ae(_t),Ae(Et)}function Vf(e,t,n){if(Et.current!==yr)throw Error(D(168));Ne(Et,t),Ne(_t,n)}function Fh(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(D(108,L0(e)||"Unknown",o));return He({},n,r)}function cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Fr=Et.current,Ne(Et,e),Ne(_t,_t.current),!0}function Kf(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Fh(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=e,Ae(_t),Ae(Et),Ne(Et,e)):Ae(_t),Ne(_t,n)}var Wn=null,js=!1,su=!1;function Dh(e){Wn===null?Wn=[e]:Wn.push(e)}function Zy(e){js=!0,Dh(e)}function Cr(){if(!su&&Wn!==null){su=!0;var e=0,t=Pe;try{var n=Wn;for(Pe=1;e>=l,o-=l,Vn=1<<32-wn(t)+o|n<$?(_=S,S=null):_=S.sibling;var R=d(h,S,m[$],y);if(R===null){S===null&&(S=_);break}e&&S&&R.alternate===null&&t(h,S),p=i(R,p,$),k===null?C=R:k.sibling=R,k=R,S=_}if($===m.length)return n(h,S),De&&Rr(h,$),C;if(S===null){for(;$$?(_=S,S=null):_=S.sibling;var L=d(h,S,R.value,y);if(L===null){S===null&&(S=_);break}e&&S&&L.alternate===null&&t(h,S),p=i(L,p,$),k===null?C=L:k.sibling=L,k=L,S=_}if(R.done)return n(h,S),De&&Rr(h,$),C;if(S===null){for(;!R.done;$++,R=m.next())R=u(h,R.value,y),R!==null&&(p=i(R,p,$),k===null?C=R:k.sibling=R,k=R);return De&&Rr(h,$),C}for(S=r(h,S);!R.done;$++,R=m.next())R=g(S,h,$,R.value,y),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?$:R.key),p=i(R,p,$),k===null?C=R:k.sibling=R,k=R);return e&&S.forEach(function(M){return t(h,M)}),De&&Rr(h,$),C}function E(h,p,m,y){if(typeof m=="object"&&m!==null&&m.type===ao&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case hl:e:{for(var C=m.key,k=p;k!==null;){if(k.key===C){if(C=m.type,C===ao){if(k.tag===7){n(h,k.sibling),p=o(k,m.props.children),p.return=h,h=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&Jf(C)===k.type){n(h,k.sibling),p=o(k,m.props),p.ref=ti(h,k,m),p.return=h,h=p;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===ao?(p=Ar(m.props.children,h.mode,y,m.key),p.return=h,h=p):(y=Gl(m.type,m.key,m.props,null,h.mode,y),y.ref=ti(h,p,m),y.return=h,h=y)}return l(h);case so:e:{for(k=m.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=hu(m,h.mode,y),p.return=h,h=p}return l(h);case nr:return k=m._init,E(h,p,k(m._payload),y)}if(ci(m))return v(h,p,m,y);if(Xo(m))return x(h,p,m,y);Pl(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=mu(m,h.mode,y),p.return=h,h=p),l(h)):n(h,p)}return E}var _o=Gh(!0),Qh=Gh(!1),il={},Nn=Sr(il),ji=Sr(il),Bi=Sr(il);function Mr(e){if(e===il)throw Error(D(174));return e}function sd(e,t){switch(Ne(Bi,t),Ne(ji,e),Ne(Nn,il),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zu(t,e)}Ae(Nn),Ne(Nn,t)}function Mo(){Ae(Nn),Ae(ji),Ae(Bi)}function qh(e){Mr(Bi.current);var t=Mr(Nn.current),n=zu(t,e.type);t!==n&&(Ne(ji,e),Ne(Nn,n))}function ad(e){ji.current===e&&(Ae(Nn),Ae(ji))}var Ue=Sr(0);function vs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var au=[];function ud(){for(var e=0;en?n:4,e(!0);var r=uu.transition;uu.transition={};try{e(!1),t()}finally{Pe=n,uu.transition=r}}function dg(){return an().memoizedState}function n1(e,t,n){var r=hr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fg(e))pg(t,n);else if(n=Wh(e,t,n,r),n!==null){var o=Rt();Sn(n,e,r,o),mg(n,t,r)}}function r1(e,t,n){var r=hr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fg(e))pg(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,Cn(s,l)){var a=t.interleaved;a===null?(o.next=o,id(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Wh(e,t,o,r),n!==null&&(o=Rt(),Sn(n,e,r,o),mg(n,t,r))}}function fg(e){var t=e.alternate;return e===We||t!==null&&t===We}function pg(e,t){xi=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vc(e,n)}}var xs={readContext:sn,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},o1={readContext:sn,useCallback:function(e,t){return $n().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:tp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wl(4194308,4,lg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wl(4,2,e,t)},useMemo:function(e,t){var n=$n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$n();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=n1.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=$n();return e={current:e},t.memoizedState=e},useState:ep,useDebugValue:md,useDeferredValue:function(e){return $n().memoizedState=e},useTransition:function(){var e=ep(!1),t=e[0];return e=t1.bind(null,e[1]),$n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,o=$n();if(De){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),ut===null)throw Error(D(349));jr&30||Zh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,tp(eg.bind(null,r,i,e),[e]),r.flags|=2048,Hi(9,Jh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$n(),t=ut.identifierPrefix;if(De){var n=Kn,r=Vn;n=(r&~(1<<32-wn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ui++,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[_n]=t,e[Di]=r,Cg(e,t,!1,!1),t.stateNode=e;e:{switch(l=Du(n,r),n){case"dialog":Le("cancel",e),Le("close",e),o=r;break;case"iframe":case"object":case"embed":Le("load",e),o=r;break;case"video":case"audio":for(o=0;oLo&&(t.flags|=128,r=!0,ni(i,!1),t.lanes=4194304)}else{if(!r)if(e=vs(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ni(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!De)return bt(t),null}else 2*qe()-i.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,ni(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=qe(),t.sibling=null,n=Ue.current,Ne(Ue,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return bd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function f1(e,t){switch(ed(t),t.tag){case 1:return Mt(t.type)&&us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),Ae(_t),Ae(Et),ud(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ad(t),null;case 13:if(Ae(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Ue),null;case 4:return Mo(),null;case 10:return od(t.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var $l=!1,St=!1,p1=typeof WeakSet=="function"?WeakSet:Set,K=null;function yo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function fc(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var cp=!1;function m1(e,t){if(qu=is,e=Th(),Zc(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,c=0,f=0,u=e,d=null;t:for(;;){for(var g;u!==n||o!==0&&u.nodeType!==3||(s=l+o),u!==i||r!==0&&u.nodeType!==3||(a=l+r),u.nodeType===3&&(l+=u.nodeValue.length),(g=u.firstChild)!==null;)d=u,u=g;for(;;){if(u===e)break t;if(d===n&&++c===o&&(s=l),d===i&&++f===r&&(a=l),(g=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xu={focusedElem:e,selectionRange:n},is=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,E=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:gn(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(y){Ge(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return v=cp,cp=!1,v}function bi(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&&fc(t,n,i)}o=o.next}while(o!==r)}}function Ws(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 pc(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 Pg(e){var t=e.alternate;t!==null&&(e.alternate=null,Pg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[Di],delete t[Ju],delete t[Xy],delete t[Yy])),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 Rg(e){return e.tag===5||e.tag===3||e.tag===4}function dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(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 mc(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=as));else if(r!==4&&(e=e.child,e!==null))for(mc(e,t,n),e=e.sibling;e!==null;)mc(e,t,n),e=e.sibling}function hc(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(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}var pt=null,vn=!1;function tr(e,t,n){for(n=n.child;n!==null;)$g(e,t,n),n=n.sibling}function $g(e,t,n){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Ls,n)}catch{}switch(n.tag){case 5:St||yo(n,t);case 6:var r=pt,o=vn;pt=null,tr(e,t,n),pt=r,vn=o,pt!==null&&(vn?(e=pt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pt.removeChild(n.stateNode));break;case 18:pt!==null&&(vn?(e=pt,n=n.stateNode,e.nodeType===8?lu(e.parentNode,n):e.nodeType===1&&lu(e,n),Ni(e)):lu(pt,n.stateNode));break;case 4:r=pt,o=vn,pt=n.stateNode.containerInfo,vn=!0,tr(e,t,n),pt=r,vn=o;break;case 0:case 11:case 14:case 15:if(!St&&(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)&&fc(n,t,l),o=o.next}while(o!==r)}tr(e,t,n);break;case 1:if(!St&&(yo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ge(n,t,s)}tr(e,t,n);break;case 21:tr(e,t,n);break;case 22:n.mode&1?(St=(r=St)||n.memoizedState!==null,tr(e,t,n),St=r):tr(e,t,n);break;default:tr(e,t,n)}}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new p1),t.forEach(function(r){var o=C1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function hn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=qe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g1(r/1960))-r,10e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,Ss=0,xe&6)throw Error(D(331));var o=xe;for(xe|=4,K=e.current;K!==null;){var i=K,l=i.child;if(K.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aqe()-yd?Lr(e,0):vd|=n),Nt(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=xl,xl<<=1,!(xl&130023424)&&(xl=4194304)):t=1);var n=Rt();e=Xn(e,t),e!==null&&(nl(e,t,n),Nt(e,n))}function S1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function C1(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(D(314))}r!==null&&r.delete(t),Ag(e,n)}var zg;zg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)It=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return It=!1,c1(e,t,n);It=!!(e.flags&131072)}else It=!1,De&&t.flags&1048576&&jh(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Oo(t,Et.current);ko(t,n),o=dd(null,t,r,e,o,n);var i=fd();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,Mt(r)?(i=!0,cs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ld(t),o.updater=Bs,t.stateNode=o,o._reactInternals=t,ic(t,r,e,n),t=ac(null,t,r,!0,i,n)):(t.tag=0,De&&i&&Jc(t),Pt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=E1(r),e=gn(r,e),o){case 0:t=sc(null,t,r,e,n);break e;case 1:t=sp(null,t,r,e,n);break e;case 11:t=ip(null,t,r,e,n);break e;case 14:t=lp(null,t,r,gn(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gn(r,o),sc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gn(r,o),sp(e,t,r,o,n);case 3:e:{if(bg(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Hh(e,t),gs(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=No(Error(D(423)),t),t=ap(e,t,r,n,o);break e}else if(r!==o){o=No(Error(D(424)),t),t=ap(e,t,r,n,o);break e}else for(Ut=fr(t.stateNode.containerInfo.firstChild),Wt=t,De=!0,yn=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Io(),r===o){t=Yn(e,t,n);break e}Pt(e,t,r,n)}t=t.child}return t;case 5:return qh(t),e===null&&nc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Yu(r,o)?l=null:i!==null&&Yu(r,i)&&(t.flags|=32),xg(e,t),Pt(e,t,l,n),t.child;case 6:return e===null&&nc(t),null;case 13:return wg(e,t,n);case 4:return sd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(t,null,r,n):Pt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gn(r,o),ip(e,t,r,o,n);case 7:return Pt(e,t,t.pendingProps,n),t.child;case 8:return Pt(e,t,t.pendingProps.children,n),t.child;case 12:return Pt(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,Ne(ms,r._currentValue),r._currentValue=l,i!==null)if(Cn(i.value,l)){if(i.children===o.children&&!_t.current){t=Yn(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=Gn(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),rc(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(D(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),rc(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}Pt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=sn(o),r=r(o),t.flags|=1,Pt(e,t,r,n),t.child;case 14:return r=t.type,o=gn(r,t.pendingProps),o=gn(r.type,o),lp(e,t,r,o,n);case 15:return vg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gn(r,o),Hl(e,t),t.tag=1,Mt(r)?(e=!0,cs(t)):e=!1,ko(t,n),Kh(t,r,o),ic(t,r,o,n),ac(null,t,r,!0,e,n);case 19:return Sg(e,t,n);case 22:return yg(e,t,n)}throw Error(D(156,t.tag))};function Fg(e,t){return ch(e,t)}function k1(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 rn(e,t,n,r){return new k1(e,t,n,r)}function Sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E1(e){if(typeof e=="function")return Sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===Uc)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=rn(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 Gl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Sd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ao:return Ar(n.children,o,i,t);case jc:l=8,o|=8;break;case Tu:return e=rn(12,n,t,o|2),e.elementType=Tu,e.lanes=i,e;case Ou:return e=rn(13,n,t,o),e.elementType=Ou,e.lanes=i,e;case Iu:return e=rn(19,n,t,o),e.elementType=Iu,e.lanes=i,e;case Gm:return Vs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:l=10;break e;case Km:l=9;break e;case Bc:l=11;break e;case Uc:l=14;break e;case nr:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=rn(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ar(e,t,n,r){return e=rn(7,e,r,t),e.lanes=n,e}function Vs(e,t,n,r){return e=rn(22,e,r,t),e.elementType=Gm,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=rn(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P1(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=qa(0),this.expirationTimes=qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cd(e,t,n,r,o,i,l,s,a){return e=new P1(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ld(i),e}function R1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ug)}catch(e){console.error(e)}}Ug(),jm.exports=Gt;var Xs=jm.exports;const Il=Tm(Xs);var bp=Xs;Ru.createRoot=bp.createRoot,Ru.hydrateRoot=bp.hydrateRoot;const _1={black:"#000",white:"#fff"},Ki=_1,M1={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"},eo=M1,N1={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"},to=N1,L1={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"},no=L1,A1={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"},ro=A1,z1={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"},oo=z1,F1={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"},oi=F1,D1={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"},j1=D1;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=Wg(e[n])}),t}function Ct(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return Hn(e)&&Hn(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Hn(t[o])&&o in e&&Hn(e[o])?r[o]=Ct(e[o],t[o],n):n.clone?r[o]=Hn(t[o])?Wg(t[o]):t[o]:r[o]=t[o])}),r}function xr(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 Td(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 W1(e,t){return()=>null}function Ql(e,t){var n,r;return b.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 kt(e){return e&&e.ownerDocument||document}function br(e){return kt(e).defaultView||window}function H1(e,t){return()=>null}function Gi(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const V1=typeof window<"u"?b.useLayoutEffect:b.useEffect,zn=V1;let wp=0;function K1(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(wp+=1,n(`mui-${wp}`))},[t]),r}const Sp=Pu.useId;function Qi(e){if(Sp!==void 0){const t=Sp();return e??t}return K1(e)}function G1(e,t,n,r,o){return null}function Po({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(e!==void 0),[i,l]=b.useState(t),s=o?e:i,a=b.useCallback(c=>{o||l(c)},[]);return[s,a]}function bn(e){const t=b.useRef(e);return zn(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Gi(n,t)})},e)}let sa=!0,wc=!1,Cp;const Q1={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 q1(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Q1[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function X1(e){e.metaKey||e.altKey||e.ctrlKey||(sa=!0)}function gu(){sa=!1}function Y1(){this.visibilityState==="hidden"&&wc&&(sa=!0)}function Z1(e){e.addEventListener("keydown",X1,!0),e.addEventListener("mousedown",gu,!0),e.addEventListener("pointerdown",gu,!0),e.addEventListener("touchstart",gu,!0),e.addEventListener("visibilitychange",Y1,!0)}function J1(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sa||q1(t)}function Od(){const e=b.useCallback(o=>{o!=null&&Z1(o.ownerDocument)},[]),t=b.useRef(!1);function n(){return t.current?(wc=!0,window.clearTimeout(Cp),Cp=window.setTimeout(()=>{wc=!1},100),t.current=!1,!0):!1}function r(o){return J1(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Vg(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const ex=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current},tx=ex;function Kg(e,t){const n=w({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=w({},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]=w({},i),Object.keys(o).forEach(l=>{n[r][l]=Kg(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Re(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 kp=e=>e,nx=()=>{let e=kp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kp}}},rx=nx(),Gg=rx,ox={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 ke(e,t,n="Mui"){const r=ox[t];return r?`${n}-${r}`:`${Gg.generate(e)}-${t}`}function $e(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ke(e,o,n)}),r}const Ao="$$material";function Z(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Qg(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ix=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lx=Qg(function(e){return ix.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function sx(e){if(e.sheet)return e.sheet;for(var t=0;t0?mt(Ko,--zt):0,zo--,Je===10&&(zo=1,ua--),Je}function Ht(){return Je=zt2||Xi(Je)>3?"":" "}function bx(e,t){for(;--t&&Ht()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return ll(e,ql()+(t<6&&Ln()==32&&Ht()==32))}function Cc(e){for(;Ht();)switch(Je){case e:return zt;case 34:case 39:e!==34&&e!==39&&Cc(Je);break;case 40:e===41&&Cc(e);break;case 92:Ht();break}return zt}function wx(e,t){for(;Ht()&&e+Je!==57;)if(e+Je===84&&Ln()===47)break;return"/*"+ll(t,zt-1)+"*"+aa(e===47?e:Ht())}function Sx(e){for(;!Xi(Ln());)Ht();return ll(e,zt)}function Cx(e){return ev(Yl("",null,null,null,[""],e=Jg(e),0,[0],e))}function Yl(e,t,n,r,o,i,l,s,a){for(var c=0,f=0,u=l,d=0,g=0,v=0,x=1,E=1,h=1,p=0,m="",y=o,C=i,k=r,S=m;E;)switch(v=p,p=Ht()){case 40:if(v!=108&&mt(S,u-1)==58){Sc(S+=Ce(Xl(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:S+=Xl(p);break;case 9:case 10:case 13:case 32:S+=xx(v);break;case 92:S+=bx(ql()-1,7);continue;case 47:switch(Ln()){case 42:case 47:_l(kx(wx(Ht(),ql()),t,n),a);break;default:S+="/"}break;case 123*x:s[c++]=On(S)*h;case 125*x:case 59:case 0:switch(p){case 0:case 125:E=0;case 59+f:h==-1&&(S=Ce(S,/\f/g,"")),g>0&&On(S)-u&&_l(g>32?Pp(S+";",r,n,u-1):Pp(Ce(S," ","")+";",r,n,u-2),a);break;case 59:S+=";";default:if(_l(k=Ep(S,t,n,c,f,o,s,m,y=[],C=[],u),i),p===123)if(f===0)Yl(S,t,k,k,y,i,u,s,C);else switch(d===99&&mt(S,3)===110?100:d){case 100:case 108:case 109:case 115:Yl(e,k,k,r&&_l(Ep(e,k,k,0,0,o,s,m,o,y=[],u),C),o,C,u,s,r?y:C);break;default:Yl(S,k,k,k,[""],C,0,s,C)}}c=f=g=0,x=h=1,m=S="",u=l;break;case 58:u=1+On(S),g=v;default:if(x<1){if(p==123)--x;else if(p==125&&x++==0&&yx()==125)continue}switch(S+=aa(p),p*x){case 38:h=f>0?1:(S+="\f",-1);break;case 44:s[c++]=(On(S)-1)*h,h=1;break;case 64:Ln()===45&&(S+=Xl(Ht())),d=Ln(),f=u=On(m=S+=Sx(ql())),p++;break;case 45:v===45&&On(S)==2&&(x=0)}}return i}function Ep(e,t,n,r,o,i,l,s,a,c,f){for(var u=o-1,d=o===0?i:[""],g=Md(d),v=0,x=0,E=0;v0?d[h]+" "+p:Ce(p,/&\f/g,d[h])))&&(a[E++]=m);return ca(e,t,n,o===0?Id:s,a,c,f)}function kx(e,t,n){return ca(e,t,n,qg,aa(vx()),qi(e,2,-2),0)}function Pp(e,t,n,r){return ca(e,t,n,_d,qi(e,0,r),qi(e,r+1,-1),r)}function Ro(e,t){for(var n="",r=Md(e),o=0;o6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Es+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sc(e,"stretch")?tv(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,On(e)-3-(~Sc(e,"!important")&&10))){case 107:return Ce(e,":",":"+Se)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(mt(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+wt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return Se+e+wt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+wt+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+wt+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+wt+e+e}return e}var Mx=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case _d:t.return=tv(t.value,t.length);break;case Xg:return Ro([ii(t,{value:Ce(t.value,"@","@"+Se)})],o);case Id:if(t.length)return gx(t.props,function(i){switch(hx(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ro([ii(t,{props:[Ce(i,/:(read-\w+)/,":"+Es+"$1")]})],o);case"::placeholder":return Ro([ii(t,{props:[Ce(i,/:(plac\w+)/,":"+Se+"input-$1")]}),ii(t,{props:[Ce(i,/:(plac\w+)/,":"+Es+"$1")]}),ii(t,{props:[Ce(i,/:(plac\w+)/,wt+"input-$1")]})],o)}return""})}},Nx=[Mx],Lx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var E=x.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||Nx,i={},l,s=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var E=x.getAttribute("data-emotion").split(" "),h=1;h=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 Gx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qx=/[A-Z]|^ms/g,qx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,av=function(t){return t.charCodeAt(1)===45},$p=function(t){return t!=null&&typeof t!="boolean"},vu=Qg(function(e){return av(e)?e:e.replace(Qx,"-$&").toLowerCase()}),Tp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qx,function(r,o,i){return In={name:o,styles:i,next:In},o})}return Gx[t]!==1&&!av(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yi(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return In={name:n.name,styles:n.styles,next:In},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)In={name:r.name,styles:r.styles,next:In},r=r.next;var o=n.styles+";";return o}return Xx(e,t,n)}case"function":{if(e!==void 0){var i=In,l=n(e);return In=i,Yi(e,t,l)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Xx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?tb:nb},Mp=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},rb=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return lv(n,r,o),Zx(function(){return sv(n,r,o)}),null},ob=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=Mp(t,n,r),a=s||_p(o),c=!a("as");return function(){var f=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)u.push.apply(u,f);else{u.push(f[0][0]);for(var d=f.length,g=1;gt(lb(o)?n:o):t;return T.jsx(Jx,{styles:r})}function ab(e,t){return kc(e,t)}const ub=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},cb=["values","unit","step"],db=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)=>w({},n,{[r.key]:r.val}),{})};function fb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Z(e,cb),i=db(t),l=Object.keys(i);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function a(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,g){const v=l.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(v!==-1&&typeof t[l[v]]=="number"?t[l[v]]:g)-r/100}${n})`}function f(d){return l.indexOf(d)+1`@media (min-width:${Dd[e]}px)`};function kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Np;return t.reduce((l,s,a)=>(l[i.up(i.keys[a])]=n(t[a]),l),{})}if(typeof t=="object"){const i=r.breakpoints||Np;return Object.keys(t).reduce((l,s)=>{if(Object.keys(i.values||Dd).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 fv(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function pv(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function hb(e,...t){const n=fv(e),r=[n,...t].reduce((o,i)=>Ct(o,i),{});return pv(Object.keys(n),r)}function gb(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function yu({values:e,breakpoints:t,base:n}){const r=n||gb(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,s,a)=>(Array.isArray(e)?(l[s]=e[a]!=null?e[a]:e[i],i=a):typeof e=="object"?(l[s]=e[s]!=null?e[s]:e[i],i=s):l[s]=e,l),{})}function Fo(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 Ps(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Fo(e,n)||r,t&&(o=t(o,r,e)),o}function Xe(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,c=Fo(a,r)||{};return kn(l,s,u=>{let d=Ps(c,o,u);return u===d&&typeof u=="string"&&(d=Ps(c,o,`${t}${u==="default"?"":V(u)}`,u)),n===!1?d:{[n]:d}})};return i.propTypes={},i.filterProps=[t],i}function vb(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yb={m:"margin",p:"padding"},xb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bb=vb(e=>{if(e.length>2)if(Lp[e])e=Lp[e];else return[e];const[t,n]=e.split(""),r=yb[t],o=xb[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),jd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...jd,...Bd];function sl(e,t,n,r){var o;const i=(o=Fo(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 Ud(e){return sl(e,"spacing",8)}function Wr(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 wb(e,t){return n=>e.reduce((r,o)=>(r[o]=Wr(t,n),r),{})}function Sb(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=bb(n),i=wb(o,r),l=e[n];return kn(e,l,i)}function mv(e,t){const n=Ud(e.theme);return Object.keys(e).map(r=>Sb(e,t,r,n)).reduce(Ci,{})}function Ve(e){return mv(e,jd)}Ve.propTypes={};Ve.filterProps=jd;function Ke(e){return mv(e,Bd)}Ke.propTypes={};Ke.filterProps=Bd;function Cb(e=8){if(e.mui)return e;const t=Ud({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 Sa(...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]?Ci(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function nn(e){return typeof e!="number"?e:`${e}px solid`}function fn(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const kb=fn("border",nn),Eb=fn("borderTop",nn),Pb=fn("borderRight",nn),Rb=fn("borderBottom",nn),$b=fn("borderLeft",nn),Tb=fn("borderColor"),Ob=fn("borderTopColor"),Ib=fn("borderRightColor"),_b=fn("borderBottomColor"),Mb=fn("borderLeftColor"),Nb=fn("outline",nn),Lb=fn("outlineColor"),Ca=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Wr(t,r)});return kn(e,e.borderRadius,n)}return null};Ca.propTypes={};Ca.filterProps=["borderRadius"];Sa(kb,Eb,Pb,Rb,$b,Tb,Ob,Ib,_b,Mb,Ca,Nb,Lb);const ka=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:Wr(t,r)});return kn(e,e.gap,n)}return null};ka.propTypes={};ka.filterProps=["gap"];const Ea=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:Wr(t,r)});return kn(e,e.columnGap,n)}return null};Ea.propTypes={};Ea.filterProps=["columnGap"];const Pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:Wr(t,r)});return kn(e,e.rowGap,n)}return null};Pa.propTypes={};Pa.filterProps=["rowGap"];const Ab=Xe({prop:"gridColumn"}),zb=Xe({prop:"gridRow"}),Fb=Xe({prop:"gridAutoFlow"}),Db=Xe({prop:"gridAutoColumns"}),jb=Xe({prop:"gridAutoRows"}),Bb=Xe({prop:"gridTemplateColumns"}),Ub=Xe({prop:"gridTemplateRows"}),Wb=Xe({prop:"gridTemplateAreas"}),Hb=Xe({prop:"gridArea"});Sa(ka,Ea,Pa,Ab,zb,Fb,Db,jb,Bb,Ub,Wb,Hb);function $o(e,t){return t==="grey"?t:e}const Vb=Xe({prop:"color",themeKey:"palette",transform:$o}),Kb=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$o}),Gb=Xe({prop:"backgroundColor",themeKey:"palette",transform:$o});Sa(Vb,Kb,Gb);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const Qb=Xe({prop:"width",transform:Bt}),Wd=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])||Dd[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:Bt(n)}};return kn(e,e.maxWidth,t)}return null};Wd.filterProps=["maxWidth"];const qb=Xe({prop:"minWidth",transform:Bt}),Xb=Xe({prop:"height",transform:Bt}),Yb=Xe({prop:"maxHeight",transform:Bt}),Zb=Xe({prop:"minHeight",transform:Bt});Xe({prop:"size",cssProperty:"width",transform:Bt});Xe({prop:"size",cssProperty:"height",transform:Bt});const Jb=Xe({prop:"boxSizing"});Sa(Qb,Wd,qb,Xb,Yb,Zb,Jb);const ew={border:{themeKey:"borders",transform:nn},borderTop:{themeKey:"borders",transform:nn},borderRight:{themeKey:"borders",transform:nn},borderBottom:{themeKey:"borders",transform:nn},borderLeft:{themeKey:"borders",transform:nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ca},color:{themeKey:"palette",transform:$o},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$o},backgroundColor:{themeKey:"palette",transform:$o},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:Ve},mt:{style:Ve},mr:{style:Ve},mb:{style:Ve},ml:{style:Ve},mx:{style:Ve},my:{style:Ve},margin:{style:Ve},marginTop:{style:Ve},marginRight:{style:Ve},marginBottom:{style:Ve},marginLeft:{style:Ve},marginX:{style:Ve},marginY:{style:Ve},marginInline:{style:Ve},marginInlineStart:{style:Ve},marginInlineEnd:{style:Ve},marginBlock:{style:Ve},marginBlockStart:{style:Ve},marginBlockEnd:{style:Ve},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:ka},rowGap:{style:Pa},columnGap:{style:Ea},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:Wd},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ra=ew;function tw(...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 nw(e,t){return typeof e=="function"?e(t):e}function rw(){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:c,transform:f,style:u}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=Fo(o,c)||{};return u?u(l):kn(l,r,v=>{let x=Ps(d,f,v);return v===x&&typeof v=="string"&&(x=Ps(d,f,`${n}${v==="default"?"":V(v)}`,v)),a===!1?x:{[a]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Ra;function s(a){let c=a;if(typeof a=="function")c=a(i);else if(typeof a!="object")return a;if(!c)return null;const f=fv(i.breakpoints),u=Object.keys(f);let d=f;return Object.keys(c).forEach(g=>{const v=nw(c[g],i);if(v!=null)if(typeof v=="object")if(l[g])d=Ci(d,e(g,v,i,l));else{const x=kn({theme:i},v,E=>({[g]:E}));tw(x,v)?d[g]=t({sx:v,theme:i}):d=Ci(d,x)}else d=Ci(d,e(g,v,i,l))}),pv(u,d)}return Array.isArray(o)?o.map(s):s(o)}return t}const hv=rw();hv.filterProps=["sx"];const Hd=hv,ow=["breakpoints","palette","spacing","shape"];function $a(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=Z(e,ow),s=fb(n),a=Cb(o);let c=Ct({breakpoints:s,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:a,shape:w({},mb,i)},l);return c=t.reduce((f,u)=>Ct(f,u),c),c.unstable_sxConfig=w({},Ra,l==null?void 0:l.unstable_sxConfig),c.unstable_sx=function(u){return Hd({sx:u,theme:this})},c}function iw(e){return Object.keys(e).length===0}function Vd(e=null){const t=b.useContext(wa);return!t||iw(t)?e:t}const lw=$a();function Kd(e=lw){return Vd(e)}function sw({styles:e,themeId:t,defaultTheme:n={}}){const r=Kd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(sb,{styles:o})}const aw=["sx"],uw=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ra;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function gv(e){const{sx:t}=e,n=Z(e,aw),{systemProps:r,otherProps:o}=uw(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const s=t(...l);return Hn(s)?w({},r,s):r}:i=w({},r,t),w({},o,{sx:i})}function vv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=Ap(r)?e[o]:V(e[o]):r+=`${Ap(r)?o:V(o)}${V(e[o].toString())}`}),r}const dw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fw(e){return Object.keys(e).length===0}function pw(e){return typeof e=="string"&&e.charCodeAt(0)>96}const mw=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Rs=e=>{const t={};return e&&e.forEach(n=>{const r=yv(n.props);t[r]=n.style}),t},hw=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Rs(n)},$s=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(i=>{let l=!0;Object.keys(i.props).forEach(s=>{r[s]!==i.props[s]&&e[s]!==i.props[s]&&(l=!1)}),l&&o.push(t[yv(i.props)])}),o},gw=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return $s(e,t,i)};function ki(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vw=$a(),yw=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zl({defaultTheme:e,theme:t,themeId:n}){return fw(t)?e:t[n]||t}function xw(e){return e?(t,n)=>n[e]:null}const zp=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(w({},t,{theme:Zl(w({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const l=$s(t,Rs(i),i);return[o,...l]}return o};function xv(e={}){const{themeId:t,defaultTheme:n=vw,rootShouldForwardProp:r=ki,slotShouldForwardProp:o=ki}=e,i=l=>Hd(w({},l,{theme:Zl(w({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,s={})=>{ub(l,y=>y.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:f,skipSx:u,overridesResolver:d=xw(yw(c))}=s,g=Z(s,dw),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,x=u||!1;let E,h=ki;c==="Root"||c==="root"?h=r:c?h=o:pw(l)&&(h=void 0);const p=ab(l,w({shouldForwardProp:h,label:E},g)),m=(y,...C)=>{const k=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return L=>zp({styledArg:R,props:L,defaultTheme:n,themeId:t});if(Hn(R)){let L=R,M;return R&&R.variants&&(M=R.variants,delete L.variants,L=z=>{let F=R;return $s(z,Rs(M),M).forEach(A=>{F=Ct(F,A)}),F}),L}return R}):[];let S=y;if(Hn(y)){let R;y&&y.variants&&(R=y.variants,delete S.variants,S=L=>{let M=y;return $s(L,Rs(R),R).forEach(F=>{M=Ct(M,F)}),M})}else typeof y=="function"&&y.__emotion_real!==y&&(S=R=>zp({styledArg:y,props:R,defaultTheme:n,themeId:t}));a&&d&&k.push(R=>{const L=Zl(w({},R,{defaultTheme:n,themeId:t})),M=mw(a,L);if(M){const z={};return Object.entries(M).forEach(([F,j])=>{z[F]=typeof j=="function"?j(w({},R,{theme:L})):j}),d(R,z)}return null}),a&&!v&&k.push(R=>{const L=Zl(w({},R,{defaultTheme:n,themeId:t}));return gw(R,hw(a,L),L,a)}),x||k.push(i);const $=k.length-C.length;if(Array.isArray(y)&&$>0){const R=new Array($).fill("");S=[...y,...R],S.raw=[...y.raw,...R]}const _=p(S,...k);return l.muiName&&(_.muiName=l.muiName),_};return p.withConfig&&(m.withConfig=p.withConfig),m}}const bw=xv(),ww=bw;function Sw(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Kg(t.components[n].defaultProps,r)}function bv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Kd(n);return r&&(o=o[r]||o),Sw({theme:o,name:t,props:e})}function Gd(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Cw(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 Hr(e){if(e.type)return e;if(e.charAt(0)==="#")return Hr(Cw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(xr(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(xr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Ta(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function kw(e){e=Hr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(c,f=(c+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,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])),Ta({type:s,values:a})}function Fp(e){e=Hr(e);let t=e.type==="hsl"||e.type==="hsla"?Hr(kw(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 Ew(e,t){const n=Fp(e),r=Fp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function st(e,t){return e=Hr(e),t=Gd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ta(e)}function Pw(e,t){if(e=Hr(e),t=Gd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ta(e)}function Rw(e,t){if(e=Hr(e),t=Gd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ta(e)}const $w=b.createContext(null),wv=$w;function Sv(){return b.useContext(wv)}const Tw=typeof Symbol=="function"&&Symbol.for,Ow=Tw?Symbol.for("mui.nested"):"__THEME_NESTED__";function Iw(e,t){return typeof t=="function"?t(e):w({},e,t)}function _w(e){const{children:t,theme:n}=e,r=Sv(),o=b.useMemo(()=>{const i=r===null?n:Iw(r,n);return i!=null&&(i[Ow]=r!==null),i},[n,r]);return T.jsx(wv.Provider,{value:o,children:t})}const Dp={};function jp(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),l=e?w({},t,{[e]:i}):i;return r?()=>l:l}return e?w({},t,{[e]:n}):w({},t,n)},[e,t,n,r])}function Mw(e){const{children:t,theme:n,themeId:r}=e,o=Vd(Dp),i=Sv()||Dp,l=jp(r,o,n),s=jp(r,i,n,!0);return T.jsx(_w,{theme:s,children:T.jsx(wa.Provider,{value:l,children:t})})}const Nw=["component","direction","spacing","divider","children","className","useFlexGap"],Lw=$a(),Aw=ww("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function zw(e){return bv({props:e,name:"MuiStack",defaultTheme:Lw})}function Fw(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jw=({ownerState:e,theme:t})=>{let n=w({display:"flex",flexDirection:"column"},kn({theme:t},yu({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Ud(t),o=Object.keys(t.breakpoints.values).reduce((a,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),i=yu({values:e.direction,base:o}),l=yu({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,c,f)=>{if(!i[a]){const d=c>0?i[f[c-1]]:"column";i[a]=d}}),n=Ct(n,kn({theme:t},l,(a,c)=>e.useFlexGap?{gap:Wr(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Dw(c?i[c]:e.direction)}`]:Wr(r,a)}}))}return n=hb(t.breakpoints,n),n};function Bw(e={}){const{createStyledComponent:t=Aw,useThemeProps:n=zw,componentName:r="MuiStack"}=e,o=()=>Re({root:["root"]},a=>ke(r,a),{}),i=t(jw);return b.forwardRef(function(a,c){const f=n(a),u=gv(f),{component:d="div",direction:g="column",spacing:v=0,divider:x,children:E,className:h,useFlexGap:p=!1}=u,m=Z(u,Nw),y={direction:g,spacing:v,useFlexGap:p},C=o();return T.jsx(i,w({as:d,ownerState:y,ref:c,className:te(C.root,h)},m,{children:x?Fw(E,x):E}))})}function Uw(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ww=["mode","contrastThreshold","tonalOffset"],Bp={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:Ki.white,default:Ki.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}},xu={text:{primary:Ki.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:Ki.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 Up(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=Rw(e.main,o):t==="dark"&&(e.dark=Pw(e.main,i)))}function Hw(e="light"){return e==="dark"?{main:no[200],light:no[50],dark:no[400]}:{main:no[700],light:no[400],dark:no[800]}}function Vw(e="light"){return e==="dark"?{main:to[200],light:to[50],dark:to[400]}:{main:to[500],light:to[300],dark:to[700]}}function Kw(e="light"){return e==="dark"?{main:eo[500],light:eo[300],dark:eo[700]}:{main:eo[700],light:eo[400],dark:eo[800]}}function Gw(e="light"){return e==="dark"?{main:ro[400],light:ro[300],dark:ro[700]}:{main:ro[700],light:ro[500],dark:ro[900]}}function Qw(e="light"){return e==="dark"?{main:oo[400],light:oo[300],dark:oo[700]}:{main:oo[800],light:oo[500],dark:oo[900]}}function qw(e="light"){return e==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:"#ed6c02",light:oi[500],dark:oi[900]}}function Xw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Z(e,Ww),i=e.primary||Hw(t),l=e.secondary||Vw(t),s=e.error||Kw(t),a=e.info||Gw(t),c=e.success||Qw(t),f=e.warning||qw(t);function u(x){return Ew(x,xu.text.primary)>=n?xu.text.primary:Bp.text.primary}const d=({color:x,name:E,mainShade:h=500,lightShade:p=300,darkShade:m=700})=>{if(x=w({},x),!x.main&&x[h]&&(x.main=x[h]),!x.hasOwnProperty("main"))throw new Error(xr(11,E?` (${E})`:"",h));if(typeof x.main!="string")throw new Error(xr(12,E?` (${E})`:"",JSON.stringify(x.main)));return Up(x,"light",p,r),Up(x,"dark",m,r),x.contrastText||(x.contrastText=u(x.main)),x},g={dark:xu,light:Bp};return Ct(w({common:w({},Ki),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:a,name:"info"}),success:d({color:c,name:"success"}),grey:j1,contrastThreshold:n,getContrastText:u,augmentColor:d,tonalOffset:r},g[t]),o)}const Yw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zw(e){return Math.round(e*1e5)/1e5}const Wp={textTransform:"uppercase"},Hp='"Roboto", "Helvetica", "Arial", sans-serif';function Jw(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Hp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:f,pxToRem:u}=n,d=Z(n,Yw),g=o/14,v=u||(h=>`${h/c*g}rem`),x=(h,p,m,y,C)=>w({fontFamily:r,fontWeight:h,fontSize:v(p),lineHeight:m},r===Hp?{letterSpacing:`${Zw(y/p)}em`}:{},C,f),E={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(l,48,1.167,0),h4:x(l,34,1.235,.25),h5:x(l,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(s,14,1.75,.4,Wp),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,Wp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct(w({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:s,fontWeightBold:a},E),d,{clone:!1})}const eS=.2,tS=.14,nS=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nS})`].join(",")}const rS=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],oS=rS,iS=["duration","easing","delay"],lS={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)"},sS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vp(e){return`${Math.round(e)}ms`}function aS(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function uS(e){const t=w({},lS,e.easing),n=w({},sS,e.duration);return w({getAutoHeightDuration:aS,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:s=t.easeInOut,delay:a=0}=i;return Z(i,iS),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof l=="string"?l:Vp(l)} ${s} ${typeof a=="string"?a:Vp(a)}`).join(",")}},e,{easing:t,duration:n})}const cS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dS=cS,fS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cv(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=Z(e,fS);if(e.vars)throw new Error(xr(18));const s=Xw(r),a=$a(e);let c=Ct(a,{mixins:Uw(a.breakpoints,n),palette:s,shadows:oS.slice(),typography:Jw(s,i),transitions:uS(o),zIndex:w({},dS)});return c=Ct(c,l),c=t.reduce((f,u)=>Ct(f,u),c),c.unstable_sxConfig=w({},Ra,l==null?void 0:l.unstable_sxConfig),c.unstable_sx=function(u){return Hd({sx:u,theme:this})},c}const pS=Cv(),Oa=pS;function Ia(){const e=Kd(Oa);return e[Ao]||e}function Oe({props:e,name:t}){return bv({props:e,name:t,defaultTheme:Oa,themeId:Ao})}const Dn=e=>ki(e)&&e!=="classes",mS=ki,hS=xv({themeId:Ao,defaultTheme:Oa,rootShouldForwardProp:Dn}),Q=hS,gS=["theme"];function vS(e){let{theme:t}=e,n=Z(e,gS);const r=t[Ao];return T.jsx(Mw,w({},n,{themeId:r?Ao:void 0,theme:r||t}))}const yS=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Kp=yS;function xS(e){return ke("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wS=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${V(t)}`,`fontSize${V(n)}`]};return Re(o,xS,r)},SS=Q("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${V(n.color)}`],t[`fontSize${V(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,s,a,c,f,u,d,g,v;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:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?u:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),kv=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:s="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,g=Z(r,bS),v=b.isValidElement(o)&&o.type==="svg",x=w({},r,{color:l,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:d,hasSvgAsChild:v}),E={};f||(E.viewBox=d);const h=wS(x);return T.jsxs(SS,w({as:s,className:te(h.root,i),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},E,g,v&&o.props,{ownerState:x,children:[v?o.props.children:o,u?T.jsx("title",{children:u}):null]}))});kv.muiName="SvgIcon";const Gp=kv;function _a(e,t){function n(r,o){return T.jsx(Gp,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Gp.muiName,b.memo(b.forwardRef(n))}const CS={configure:e=>{Gg.configure(e)}},kS=Object.freeze(Object.defineProperty({__proto__:null,capitalize:V,createChainedFunction:bc,createSvgIcon:_a,debounce:Td,deprecatedPropType:W1,isMuiElement:Ql,ownerDocument:kt,ownerWindow:br,requirePropFactory:H1,setRef:Gi,unstable_ClassNameGenerator:CS,unstable_useEnhancedEffect:zn,unstable_useId:Qi,unsupportedProp:G1,useControlled:Po,useEventCallback:bn,useForkRef:tt,useIsFocusVisible:Od},Symbol.toStringTag,{value:"Module"}));function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ec(e,t)}function Ev(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ec(e,t)}const Qp={disabled:!1},Ts=xn.createContext(null);var ES=function(t){return t.scrollTop},pi="unmounted",Tr="exited",Or="entering",lo="entered",Pc="exiting",er=function(e){Ev(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=Tr,i.appearStatus=Or):a=lo:r.unmountOnExit||r.mountOnEnter?a=pi:a=Tr,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===pi?{status:Tr}: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!==Or&&l!==lo&&(i=Or):(l===Or||l===lo)&&(i=Pc)}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===Or){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Il.findDOMNode(this);l&&ES(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:pi})},n.performEnter=function(o){var i=this,l=this.props.enter,s=this.context?this.context.isMounting:o,a=this.props.nodeRef?[s]:[Il.findDOMNode(this),s],c=a[0],f=a[1],u=this.getTimeouts(),d=s?u.appear:u.enter;if(!o&&!l||Qp.disabled){this.safeSetState({status:lo},function(){i.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Or},function(){i.props.onEntering(c,f),i.onTransitionEnd(d,function(){i.safeSetState({status:lo},function(){i.props.onEntered(c,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:Il.findDOMNode(this);if(!i||Qp.disabled){this.safeSetState({status:Tr},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Pc},function(){o.props.onExiting(s),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Tr},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:Il.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],c=a[0],f=a[1];this.props.addEndListener(c,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===pi)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=Z(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xn.createElement(Ts.Provider,{value:null},typeof l=="function"?l(o,s):xn.cloneElement(xn.Children.only(l),s))},t}(xn.Component);er.contextType=Ts;er.propTypes={};function io(){}er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};er.UNMOUNTED=pi;er.EXITED=Tr;er.ENTERING=Or;er.ENTERED=lo;er.EXITING=Pc;const Pv=er;function PS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function RS(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}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;le.scrollTop;function Os(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}}function MS(e){return ke("MuiPaper",e)}$e("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 NS=["className","component","elevation","square","variant"],LS=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Re(i,MS,o)},AS=Q("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 w({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"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${st("#fff",Kp(t.elevation))}, ${st("#fff",Kp(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zS=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:s=!1,variant:a="elevation"}=r,c=Z(r,NS),f=w({},r,{component:i,elevation:l,square:s,variant:a}),u=LS(f);return T.jsx(AS,w({as:i,ownerState:f,className:te(u.root,o),ref:n},c))}),Ma=zS;function FS(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:s,onExited:a,timeout:c}=e,[f,u]=b.useState(!1),d=te(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},v=te(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&u(!0),b.useEffect(()=>{if(!s&&a!=null){const x=setTimeout(a,c);return()=>{clearTimeout(x)}}},[a,s,c]),T.jsx("span",{className:d,style:g,children:T.jsx("span",{className:v})})}const DS=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jt=DS,jS=["center","classes","className"];let Na=e=>e,qp,Xp,Yp,Zp;const Rc=550,BS=80,US=Fd(qp||(qp=Na` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),WS=Fd(Xp||(Xp=Na` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),HS=Fd(Yp||(Yp=Na` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),VS=Q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),KS=Q(FS,{name:"MuiTouchRipple",slot:"Ripple"})(Zp||(Zp=Na` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Jt.rippleVisible,US,Rc,({theme:e})=>e.transitions.easing.easeInOut,Jt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Jt.child,Jt.childLeaving,WS,Rc,({theme:e})=>e.transitions.easing.easeInOut,Jt.childPulsate,HS,({theme:e})=>e.transitions.easing.easeInOut),GS=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,s=Z(r,jS),[a,c]=b.useState([]),f=b.useRef(0),u=b.useRef(null);b.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const d=b.useRef(!1),g=b.useRef(0),v=b.useRef(null),x=b.useRef(null);b.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const E=b.useCallback(y=>{const{pulsate:C,rippleX:k,rippleY:S,rippleSize:$,cb:_}=y;c(R=>[...R,T.jsx(KS,{classes:{ripple:te(i.ripple,Jt.ripple),rippleVisible:te(i.rippleVisible,Jt.rippleVisible),ripplePulsate:te(i.ripplePulsate,Jt.ripplePulsate),child:te(i.child,Jt.child),childLeaving:te(i.childLeaving,Jt.childLeaving),childPulsate:te(i.childPulsate,Jt.childPulsate)},timeout:Rc,pulsate:C,rippleX:k,rippleY:S,rippleSize:$},f.current)]),f.current+=1,u.current=_},[i]),h=b.useCallback((y={},C={},k=()=>{})=>{const{pulsate:S=!1,center:$=o||C.pulsate,fakeElement:_=!1}=C;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const R=_?null:x.current,L=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,z,F;if($||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)M=Math.round(L.width/2),z=Math.round(L.height/2);else{const{clientX:j,clientY:A}=y.touches&&y.touches.length>0?y.touches[0]:y;M=Math.round(j-L.left),z=Math.round(A-L.top)}if($)F=Math.sqrt((2*L.width**2+L.height**2)/3),F%2===0&&(F+=1);else{const j=Math.max(Math.abs((R?R.clientWidth:0)-M),M)*2+2,A=Math.max(Math.abs((R?R.clientHeight:0)-z),z)*2+2;F=Math.sqrt(j**2+A**2)}y!=null&&y.touches?v.current===null&&(v.current=()=>{E({pulsate:S,rippleX:M,rippleY:z,rippleSize:F,cb:k})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},BS)):E({pulsate:S,rippleX:M,rippleY:z,rippleSize:F,cb:k})},[o,E]),p=b.useCallback(()=>{h({},{pulsate:!0})},[h]),m=b.useCallback((y,C)=>{if(clearTimeout(g.current),(y==null?void 0:y.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{m(y,C)});return}v.current=null,c(k=>k.length>0?k.slice(1):k),u.current=C},[]);return b.useImperativeHandle(n,()=>({pulsate:p,start:h,stop:m}),[p,h,m]),T.jsx(VS,w({className:te(Jt.root,i.root,l),ref:x},s,{children:T.jsx(_S,{component:null,exit:!0,children:a})}))}),QS=GS;function qS(e){return ke("MuiButtonBase",e)}const XS=$e("MuiButtonBase",["root","disabled","focusVisible"]),YS=XS,ZS=["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"],JS=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Re({root:["root",t&&"disabled",n&&"focusVisible"]},qS,o);return n&&r&&(l.root+=` ${r}`),l},eC=Q("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"},[`&.${YS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tC=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:s,component:a="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:g="a",onBlur:v,onClick:x,onContextMenu:E,onDragLeave:h,onFocus:p,onFocusVisible:m,onKeyDown:y,onKeyUp:C,onMouseDown:k,onMouseLeave:S,onMouseUp:$,onTouchEnd:_,onTouchMove:R,onTouchStart:L,tabIndex:M=0,TouchRippleProps:z,touchRippleRef:F,type:j}=r,A=Z(r,ZS),B=b.useRef(null),O=b.useRef(null),N=tt(O,F),{isFocusVisibleRef:U,onFocus:ne,onBlur:ee,ref:fe}=Od(),[G,J]=b.useState(!1);c&&G&&J(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),B.current.focus()}}),[]);const[oe,Ee]=b.useState(!1);b.useEffect(()=>{Ee(!0)},[]);const se=oe&&!f&&!c;b.useEffect(()=>{G&&d&&!f&&oe&&O.current.pulsate()},[f,d,G,oe]);function ce(H,Qe,pn=u){return bn(Xt=>(Qe&&Qe(Xt),!pn&&O.current&&O.current[H](Xt),!0))}const je=ce("start",k),de=ce("stop",E),ue=ce("stop",h),re=ce("stop",$),ge=ce("stop",H=>{G&&H.preventDefault(),S&&S(H)}),ae=ce("start",L),X=ce("stop",_),it=ce("stop",R),ie=ce("stop",H=>{ee(H),U.current===!1&&J(!1),v&&v(H)},!1),Be=bn(H=>{B.current||(B.current=H.currentTarget),ne(H),U.current===!0&&(J(!0),m&&m(H)),p&&p(H)}),_e=()=>{const H=B.current;return a&&a!=="button"&&!(H.tagName==="A"&&H.href)},ve=b.useRef(!1),Ye=bn(H=>{d&&!ve.current&&G&&O.current&&H.key===" "&&(ve.current=!0,O.current.stop(H,()=>{O.current.start(H)})),H.target===H.currentTarget&&_e()&&H.key===" "&&H.preventDefault(),y&&y(H),H.target===H.currentTarget&&_e()&&H.key==="Enter"&&!c&&(H.preventDefault(),x&&x(H))}),Me=bn(H=>{d&&H.key===" "&&O.current&&G&&!H.defaultPrevented&&(ve.current=!1,O.current.stop(H,()=>{O.current.pulsate(H)})),C&&C(H),x&&H.target===H.currentTarget&&_e()&&H.key===" "&&!H.defaultPrevented&&x(H)});let ye=a;ye==="button"&&(A.href||A.to)&&(ye=g);const dt={};ye==="button"?(dt.type=j===void 0?"button":j,dt.disabled=c):(!A.href&&!A.to&&(dt.role="button"),c&&(dt["aria-disabled"]=c));const vt=tt(n,fe,B),ft=w({},r,{centerRipple:i,component:a,disabled:c,disableRipple:f,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:G}),le=JS(ft);return T.jsxs(eC,w({as:ye,className:te(le.root,s),ownerState:ft,onBlur:ie,onClick:x,onContextMenu:de,onFocus:Be,onKeyDown:Ye,onKeyUp:Me,onMouseDown:je,onMouseLeave:ge,onMouseUp:re,onDragLeave:ue,onTouchEnd:X,onTouchMove:it,onTouchStart:ae,ref:vt,tabIndex:c?-1:M,type:j},dt,A,{children:[l,se?T.jsx(QS,w({ref:N,center:i},z)):null]}))}),$c=tC;function nC(e){return ke("MuiIconButton",e)}const rC=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oC=rC,iC=["edge","children","className","color","disabled","disableFocusRipple","size"],lC=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${V(r)}`,o&&`edge${V(o)}`,`size${V(i)}`]};return Re(l,nC,t)},sC=Q($c,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${V(n.color)}`],n.edge&&t[`edge${V(n.edge)}`],t[`size${V(n.size)}`]]}})(({theme:e,ownerState:t})=>w({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})`:st(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 w({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&w({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":w({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:st(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)},{[`&.${oC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),aC=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:s="default",disabled:a=!1,disableFocusRipple:c=!1,size:f="medium"}=r,u=Z(r,iC),d=w({},r,{edge:o,color:s,disabled:a,disableFocusRipple:c,size:f}),g=lC(d);return T.jsx(sC,w({className:te(g.root,l),centerRipple:!0,focusRipple:!c,disabled:a,ref:n,ownerState:d},u,{children:i}))}),$v=aC,uC=_a(T.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function cC(e){return ke("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fC=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,s={root:["root",i,e.align!=="inherit"&&`align${V(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Re(s,cC,l)},pC=Q("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${V(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>w({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})),Jp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hC=e=>mC[e]||e,gC=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTypography"}),o=hC(r.color),i=gv(w({},r,{color:o})),{align:l="inherit",className:s,component:a,gutterBottom:c=!1,noWrap:f=!1,paragraph:u=!1,variant:d="body1",variantMapping:g=Jp}=i,v=Z(i,dC),x=w({},i,{align:l,color:o,className:s,component:a,gutterBottom:c,noWrap:f,paragraph:u,variant:d,variantMapping:g}),E=a||(u?"p":g[d]||Jp[d])||"span",h=fC(x);return T.jsx(pC,w({as:E,ref:n,ownerState:x,className:te(h.root,s)},v))}),Zi=gC;function vC(e){return ke("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yC=["className","color","enableColorOnDark","position"],xC=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${V(t)}`,`position${V(n)}`]};return Re(o,vC,r)},Ml=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,bC=Q(Ma,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${V(n.position)}`],t[`color${V(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return w({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&w({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&w({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&w({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ml(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ml(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ml(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ml(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),wC=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:s="fixed"}=r,a=Z(r,yC),c=w({},r,{color:i,position:s,enableColorOnDark:l}),f=xC(c);return T.jsx(bC,w({square:!0,component:"header",ownerState:c,elevation:4,className:te(f.root,o,s==="fixed"&&"mui-fixed"),ref:n},a))}),SC=wC;function Is(e){return typeof e=="string"}function CC(e,t,n){return e===void 0||Is(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}const kC={disableDefaultClasses:!1},EC=b.createContext(kC);function PC(e){const{disableDefaultClasses:t}=b.useContext(EC);return n=>t?"":e(n)}function Tv(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function RC(e,t,n){return typeof e=="function"?e(t,n):e}function em(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 $C(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=te(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=w({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=w({},n,o,r);return g.length>0&&(x.className=g),Object.keys(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const l=Tv(w({},o,r)),s=em(r),a=em(o),c=t(l),f=te(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),u=w({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=w({},c,n,a,s);return f.length>0&&(d.className=f),Object.keys(u).length>0&&(d.style=u),{props:d,internalRef:c.ref}}const TC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,l=Z(e,TC),s=i?{}:RC(r,o),{props:a,internalRef:c}=$C(w({},l,{externalSlotProps:s})),f=tt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return CC(n,w({},a,{ref:f}),o)}const OC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IC(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 _C(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 MC(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_C(e))}function NC(e){const t=[],n=[];return Array.from(e.querySelectorAll(OC)).forEach((r,o)=>{const i=IC(r);i===-1||!MC(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 LC(){return!0}function AC(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=NC,isEnabled:l=LC,open:s}=e,a=b.useRef(!1),c=b.useRef(null),f=b.useRef(null),u=b.useRef(null),d=b.useRef(null),g=b.useRef(!1),v=b.useRef(null),x=tt(t.ref,v),E=b.useRef(null);b.useEffect(()=>{!s||!v.current||(g.current=!n)},[n,s]),b.useEffect(()=>{if(!s||!v.current)return;const m=kt(v.current);return v.current.contains(m.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{o||(u.current&&u.current.focus&&(a.current=!0,u.current.focus()),u.current=null)}},[s]),b.useEffect(()=>{if(!s||!v.current)return;const m=kt(v.current),y=S=>{E.current=S,!(r||!l()||S.key!=="Tab")&&m.activeElement===v.current&&S.shiftKey&&(a.current=!0,f.current&&f.current.focus())},C=()=>{const S=v.current;if(S===null)return;if(!m.hasFocus()||!l()||a.current){a.current=!1;return}if(S.contains(m.activeElement)||r&&m.activeElement!==c.current&&m.activeElement!==f.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!g.current)return;let $=[];if((m.activeElement===c.current||m.activeElement===f.current)&&($=i(v.current)),$.length>0){var _,R;const L=!!((_=E.current)!=null&&_.shiftKey&&((R=E.current)==null?void 0:R.key)==="Tab"),M=$[0],z=$[$.length-1];typeof M!="string"&&typeof z!="string"&&(L?z.focus():M.focus())}else S.focus()};m.addEventListener("focusin",C),m.addEventListener("keydown",y,!0);const k=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(k),m.removeEventListener("focusin",C),m.removeEventListener("keydown",y,!0)}},[n,r,o,l,s,i]);const h=m=>{u.current===null&&(u.current=m.relatedTarget),g.current=!0,d.current=m.target;const y=t.props.onFocus;y&&y(m)},p=m=>{u.current===null&&(u.current=m.relatedTarget),g.current=!0};return T.jsxs(b.Fragment,{children:[T.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:x,onFocus:h}),T.jsx("div",{tabIndex:s?0:-1,onFocus:p,ref:f,"data-testid":"sentinelEnd"})]})}var Lt="top",un="bottom",cn="right",At="left",Xd="auto",al=[Lt,un,cn,At],Do="start",Ji="end",zC="clippingParents",Ov="viewport",li="popper",FC="reference",tm=al.reduce(function(e,t){return e.concat([t+"-"+Do,t+"-"+Ji])},[]),Iv=[].concat(al,[Xd]).reduce(function(e,t){return e.concat([t,t+"-"+Do,t+"-"+Ji])},[]),DC="beforeRead",jC="read",BC="afterRead",UC="beforeMain",WC="main",HC="afterMain",VC="beforeWrite",KC="write",GC="afterWrite",QC=[DC,jC,BC,UC,WC,HC,VC,KC,GC];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kr(e){var t=Kt(e).Element;return e instanceof t||e instanceof Element}function ln(e){var t=Kt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yd(e){if(typeof ShadowRoot>"u")return!1;var t=Kt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!ln(i)||!Fn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var s=o[l];s===!1?i.removeAttribute(l):i.setAttribute(l,s===!0?"":s)}))})}function XC(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=l.reduce(function(a,c){return a[c]="",a},{});!ln(o)||!Fn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const YC={name:"applyStyles",enabled:!0,phase:"write",fn:qC,effect:XC,requires:["computeStyles"]};function An(e){return e.split("-")[0]}var zr=Math.max,_s=Math.min,jo=Math.round;function Tc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _v(){return!/^((?!chrome|android).)*safari/i.test(Tc())}function Bo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ln(e)&&(o=e.offsetWidth>0&&jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&jo(r.height)/e.offsetHeight||1);var l=Kr(e)?Kt(e):window,s=l.visualViewport,a=!_v()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/o,f=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:f,right:c+u,bottom:f+d,left:c,x:c,y:f}}function Zd(e){var t=Bo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Mv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zn(e){return Kt(e).getComputedStyle(e)}function ZC(e){return["table","td","th"].indexOf(Fn(e))>=0}function kr(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function La(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yd(e)?e.host:null)||kr(e)}function nm(e){return!ln(e)||Zn(e).position==="fixed"?null:e.offsetParent}function JC(e){var t=/firefox/i.test(Tc()),n=/Trident/i.test(Tc());if(n&&ln(e)){var r=Zn(e);if(r.position==="fixed")return null}var o=La(e);for(Yd(o)&&(o=o.host);ln(o)&&["html","body"].indexOf(Fn(o))<0;){var i=Zn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ul(e){for(var t=Kt(e),n=nm(e);n&&ZC(n)&&Zn(n).position==="static";)n=nm(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&Zn(n).position==="static")?t:n||JC(e)||t}function Jd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ei(e,t,n){return zr(e,_s(t,n))}function ek(e,t,n){var r=Ei(e,t,n);return r>n?n:r}function Nv(){return{top:0,right:0,bottom:0,left:0}}function Lv(e){return Object.assign({},Nv(),e)}function Av(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Lv(typeof t!="number"?t:Av(t,al))};function nk(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,s=An(n.placement),a=Jd(s),c=[At,cn].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!l)){var u=tk(o.padding,n),d=Zd(i),g=a==="y"?Lt:At,v=a==="y"?un:cn,x=n.rects.reference[f]+n.rects.reference[a]-l[a]-n.rects.popper[f],E=l[a]-n.rects.reference[a],h=ul(i),p=h?a==="y"?h.clientHeight||0:h.clientWidth||0:0,m=x/2-E/2,y=u[g],C=p-d[f]-u[v],k=p/2-d[f]/2+m,S=Ei(y,k,C),$=a;n.modifiersData[r]=(t={},t[$]=S,t.centerOffset=S-k,t)}}function rk(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Mv(t.elements.popper,o)&&(t.elements.arrow=o))}const ok={name:"arrow",enabled:!0,phase:"main",fn:nk,effect:rk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uo(e){return e.split("-")[1]}var ik={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lk(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:jo(n*o)/o||0,y:jo(r*o)/o||0}}function rm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,s=e.position,a=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,u=e.isFixed,d=l.x,g=d===void 0?0:d,v=l.y,x=v===void 0?0:v,E=typeof f=="function"?f({x:g,y:x}):{x:g,y:x};g=E.x,x=E.y;var h=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),m=At,y=Lt,C=window;if(c){var k=ul(n),S="clientHeight",$="clientWidth";if(k===Kt(n)&&(k=kr(n),Zn(k).position!=="static"&&s==="absolute"&&(S="scrollHeight",$="scrollWidth")),k=k,o===Lt||(o===At||o===cn)&&i===Ji){y=un;var _=u&&k===C&&C.visualViewport?C.visualViewport.height:k[S];x-=_-r.height,x*=a?1:-1}if(o===At||(o===Lt||o===un)&&i===Ji){m=cn;var R=u&&k===C&&C.visualViewport?C.visualViewport.width:k[$];g-=R-r.width,g*=a?1:-1}}var L=Object.assign({position:s},c&&ik),M=f===!0?lk({x:g,y:x},Kt(n)):{x:g,y:x};if(g=M.x,x=M.y,a){var z;return Object.assign({},L,(z={},z[y]=p?"0":"",z[m]=h?"0":"",z.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",z))}return Object.assign({},L,(t={},t[y]=p?x+"px":"",t[m]=h?g+"px":"",t.transform="",t))}function sk(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,s=n.roundOffsets,a=s===void 0?!0:s,c={placement:An(t.placement),variation:Uo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ak={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sk,data:{}};var Nl={passive:!0};function uk(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,s=l===void 0?!0:l,a=Kt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",n.update,Nl)}),s&&a.addEventListener("resize",n.update,Nl),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Nl)}),s&&a.removeEventListener("resize",n.update,Nl)}}const ck={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uk,data:{}};var dk={left:"right",right:"left",bottom:"top",top:"bottom"};function Jl(e){return e.replace(/left|right|bottom|top/g,function(t){return dk[t]})}var fk={start:"end",end:"start"};function om(e){return e.replace(/start|end/g,function(t){return fk[t]})}function ef(e){var t=Kt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function tf(e){return Bo(kr(e)).left+ef(e).scrollLeft}function pk(e,t){var n=Kt(e),r=kr(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;var c=_v();(c||!c&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s+tf(e),y:a}}function mk(e){var t,n=kr(e),r=ef(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=zr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=zr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+tf(e),a=-r.scrollTop;return Zn(o||n).direction==="rtl"&&(s+=zr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:s,y:a}}function nf(e){var t=Zn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zv(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:ln(e)&&nf(e)?e:zv(La(e))}function Pi(e,t){var n;t===void 0&&(t=[]);var r=zv(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Kt(r),l=o?[i].concat(i.visualViewport||[],nf(r)?r:[]):r,s=t.concat(l);return o?s:s.concat(Pi(La(l)))}function Oc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hk(e,t){var n=Bo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function im(e,t,n){return t===Ov?Oc(pk(e,n)):Kr(t)?hk(t,n):Oc(mk(kr(e)))}function gk(e){var t=Pi(La(e)),n=["absolute","fixed"].indexOf(Zn(e).position)>=0,r=n&&ln(e)?ul(e):e;return Kr(r)?t.filter(function(o){return Kr(o)&&Mv(o,r)&&Fn(o)!=="body"}):[]}function vk(e,t,n,r){var o=t==="clippingParents"?gk(e):[].concat(t),i=[].concat(o,[n]),l=i[0],s=i.reduce(function(a,c){var f=im(e,c,r);return a.top=zr(f.top,a.top),a.right=_s(f.right,a.right),a.bottom=_s(f.bottom,a.bottom),a.left=zr(f.left,a.left),a},im(e,l,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fv(e){var t=e.reference,n=e.element,r=e.placement,o=r?An(r):null,i=r?Uo(r):null,l=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,a;switch(o){case Lt:a={x:l,y:t.y-n.height};break;case un:a={x:l,y:t.y+t.height};break;case cn:a={x:t.x+t.width,y:s};break;case At:a={x:t.x-n.width,y:s};break;default:a={x:t.x,y:t.y}}var c=o?Jd(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case Do:a[c]=a[c]-(t[f]/2-n[f]/2);break;case Ji:a[c]=a[c]+(t[f]/2-n[f]/2);break}}return a}function el(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,s=n.boundary,a=s===void 0?zC:s,c=n.rootBoundary,f=c===void 0?Ov:c,u=n.elementContext,d=u===void 0?li:u,g=n.altBoundary,v=g===void 0?!1:g,x=n.padding,E=x===void 0?0:x,h=Lv(typeof E!="number"?E:Av(E,al)),p=d===li?FC:li,m=e.rects.popper,y=e.elements[v?p:d],C=vk(Kr(y)?y:y.contextElement||kr(e.elements.popper),a,f,l),k=Bo(e.elements.reference),S=Fv({reference:k,element:m,strategy:"absolute",placement:o}),$=Oc(Object.assign({},m,S)),_=d===li?$:k,R={top:C.top-_.top+h.top,bottom:_.bottom-C.bottom+h.bottom,left:C.left-_.left+h.left,right:_.right-C.right+h.right},L=e.modifiersData.offset;if(d===li&&L){var M=L[o];Object.keys(R).forEach(function(z){var F=[cn,un].indexOf(z)>=0?1:-1,j=[Lt,un].indexOf(z)>=0?"y":"x";R[z]+=M[j]*F})}return R}function yk(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?Iv:a,f=Uo(r),u=f?s?tm:tm.filter(function(v){return Uo(v)===f}):al,d=u.filter(function(v){return c.indexOf(v)>=0});d.length===0&&(d=u);var g=d.reduce(function(v,x){return v[x]=el(e,{placement:x,boundary:o,rootBoundary:i,padding:l})[An(x)],v},{});return Object.keys(g).sort(function(v,x){return g[v]-g[x]})}function xk(e){if(An(e)===Xd)return[];var t=Jl(e);return[om(e),t,om(t)]}function bk(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!0:l,a=n.fallbackPlacements,c=n.padding,f=n.boundary,u=n.rootBoundary,d=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,x=n.allowedAutoPlacements,E=t.options.placement,h=An(E),p=h===E,m=a||(p||!v?[Jl(E)]:xk(E)),y=[E].concat(m).reduce(function(G,J){return G.concat(An(J)===Xd?yk(t,{placement:J,boundary:f,rootBoundary:u,padding:c,flipVariations:v,allowedAutoPlacements:x}):J)},[]),C=t.rects.reference,k=t.rects.popper,S=new Map,$=!0,_=y[0],R=0;R=0,j=F?"width":"height",A=el(t,{placement:L,boundary:f,rootBoundary:u,altBoundary:d,padding:c}),B=F?z?cn:At:z?un:Lt;C[j]>k[j]&&(B=Jl(B));var O=Jl(B),N=[];if(i&&N.push(A[M]<=0),s&&N.push(A[B]<=0,A[O]<=0),N.every(function(G){return G})){_=L,$=!1;break}S.set(L,N)}if($)for(var U=v?3:1,ne=function(J){var oe=y.find(function(Ee){var se=S.get(Ee);if(se)return se.slice(0,J).every(function(ce){return ce})});if(oe)return _=oe,"break"},ee=U;ee>0;ee--){var fe=ne(ee);if(fe==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const wk={name:"flip",enabled:!0,phase:"main",fn:bk,requiresIfExists:["offset"],data:{_skip:!1}};function lm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sm(e){return[Lt,cn,un,At].some(function(t){return e[t]>=0})}function Sk(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=el(t,{elementContext:"reference"}),s=el(t,{altBoundary:!0}),a=lm(l,r),c=lm(s,o,i),f=sm(a),u=sm(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}const Ck={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sk};function kk(e,t,n){var r=An(e),o=[At,Lt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],s=i[1];return l=l||0,s=(s||0)*o,[At,cn].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}function Ek(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=Iv.reduce(function(f,u){return f[u]=kk(u,t.rects,i),f},{}),s=l[t.placement],a=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=l}const Pk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ek};function Rk(e){var t=e.state,n=e.name;t.modifiersData[n]=Fv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $k={name:"popperOffsets",enabled:!0,phase:"read",fn:Rk,data:{}};function Tk(e){return e==="x"?"y":"x"}function Ok(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!1:l,a=n.boundary,c=n.rootBoundary,f=n.altBoundary,u=n.padding,d=n.tether,g=d===void 0?!0:d,v=n.tetherOffset,x=v===void 0?0:v,E=el(t,{boundary:a,rootBoundary:c,padding:u,altBoundary:f}),h=An(t.placement),p=Uo(t.placement),m=!p,y=Jd(h),C=Tk(y),k=t.modifiersData.popperOffsets,S=t.rects.reference,$=t.rects.popper,_=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,R=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var z,F=y==="y"?Lt:At,j=y==="y"?un:cn,A=y==="y"?"height":"width",B=k[y],O=B+E[F],N=B-E[j],U=g?-$[A]/2:0,ne=p===Do?S[A]:$[A],ee=p===Do?-$[A]:-S[A],fe=t.elements.arrow,G=g&&fe?Zd(fe):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nv(),oe=J[F],Ee=J[j],se=Ei(0,S[A],G[A]),ce=m?S[A]/2-U-se-oe-R.mainAxis:ne-se-oe-R.mainAxis,je=m?-S[A]/2+U+se+Ee+R.mainAxis:ee+se+Ee+R.mainAxis,de=t.elements.arrow&&ul(t.elements.arrow),ue=de?y==="y"?de.clientTop||0:de.clientLeft||0:0,re=(z=L==null?void 0:L[y])!=null?z:0,ge=B+ce-re-ue,ae=B+je-re,X=Ei(g?_s(O,ge):O,B,g?zr(N,ae):N);k[y]=X,M[y]=X-B}if(s){var it,ie=y==="x"?Lt:At,Be=y==="x"?un:cn,_e=k[C],ve=C==="y"?"height":"width",Ye=_e+E[ie],Me=_e-E[Be],ye=[Lt,At].indexOf(h)!==-1,dt=(it=L==null?void 0:L[C])!=null?it:0,vt=ye?Ye:_e-S[ve]-$[ve]-dt+R.altAxis,ft=ye?_e+S[ve]+$[ve]-dt-R.altAxis:Me,le=g&&ye?ek(vt,_e,ft):Ei(g?vt:Ye,_e,g?ft:Me);k[C]=le,M[C]=le-_e}t.modifiersData[r]=M}}const Ik={name:"preventOverflow",enabled:!0,phase:"main",fn:Ok,requiresIfExists:["offset"]};function _k(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mk(e){return e===Kt(e)||!ln(e)?ef(e):_k(e)}function Nk(e){var t=e.getBoundingClientRect(),n=jo(t.width)/e.offsetWidth||1,r=jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Lk(e,t,n){n===void 0&&(n=!1);var r=ln(t),o=ln(t)&&Nk(t),i=kr(t),l=Bo(e,o,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Fn(t)!=="body"||nf(i))&&(s=Mk(t)),ln(t)?(a=Bo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=tf(i))),{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function Ak(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(s){if(!n.has(s)){var a=t.get(s);a&&o(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function zk(e){var t=Ak(e);return QC.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Fk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Dk(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var am={placement:"bottom",modifiers:[],strategy:"absolute"};function um(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(Wk(o)||document.body)},[o,i]),zn(()=>{if(l&&!i)return Gi(n,l),()=>{Gi(n,null)}},[n,l,i]),i){if(b.isValidElement(r)){const c={ref:a};return b.cloneElement(r,c)}return T.jsx(b.Fragment,{children:r})}return T.jsx(b.Fragment,{children:l&&Xs.createPortal(r,l)})});function Hk(e){return ke("MuiPopper",e)}$e("MuiPopper",["root"]);const Vk=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Kk=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Gk(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ic(e){return typeof e=="function"?e():e}function Qk(e){return e.nodeType!==void 0}const qk=()=>Re({root:["root"]},PC(Hk)),Xk={},Yk=b.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:l,disablePortal:s,modifiers:a,open:c,placement:f,popperOptions:u,popperRef:d,slotProps:g={},slots:v={},TransitionProps:x}=t,E=Z(t,Vk),h=b.useRef(null),p=tt(h,n),m=b.useRef(null),y=tt(m,d),C=b.useRef(y);zn(()=>{C.current=y},[y]),b.useImperativeHandle(d,()=>m.current,[]);const k=Gk(f,l),[S,$]=b.useState(k),[_,R]=b.useState(Ic(o));b.useEffect(()=>{m.current&&m.current.forceUpdate()}),b.useEffect(()=>{o&&R(Ic(o))},[o]),zn(()=>{if(!_||!c)return;const j=O=>{$(O.placement)};let A=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{j(O)}}];a!=null&&(A=A.concat(a)),u&&u.modifiers!=null&&(A=A.concat(u.modifiers));const B=Uk(_,h.current,w({placement:k},u,{modifiers:A}));return C.current(B),()=>{B.destroy(),C.current(null)}},[_,s,a,c,u,k]);const L={placement:S};x!==null&&(L.TransitionProps=x);const M=qk(),z=(r=v.root)!=null?r:"div",F=Vr({elementType:z,externalSlotProps:g.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:M.root});return T.jsx(z,w({},F,{children:typeof i=="function"?i(L):i}))}),Zk=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:l="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:c,open:f,placement:u="bottom",popperOptions:d=Xk,popperRef:g,style:v,transition:x=!1,slotProps:E={},slots:h={}}=t,p=Z(t,Kk),[m,y]=b.useState(!0),C=()=>{y(!1)},k=()=>{y(!0)};if(!a&&!f&&(!x||m))return null;let S;if(i)S=i;else if(r){const R=Ic(r);S=R&&Qk(R)?kt(R).body:kt(null).body}const $=!f&&a&&(!x||m)?"none":void 0,_=x?{in:f,onEnter:C,onExited:k}:void 0;return T.jsx(Dv,{disablePortal:s,container:S,children:T.jsx(Yk,w({anchorEl:r,direction:l,disablePortal:s,modifiers:c,ref:n,open:x?!m:f,placement:u,popperOptions:d,popperRef:g,slotProps:E,slots:h},p,{style:w({position:"fixed",top:0,left:0,display:$},v),TransitionProps:_,children:o}))})});function Jk(e){const t=kt(e);return t.body===e?br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ri(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cm(e){return parseInt(br(e).getComputedStyle(e).paddingRight,10)||0}function e2(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 dm(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const s=i.indexOf(l)===-1,a=!e2(l);s&&a&&Ri(l,o)})}function bu(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function t2(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Jk(r)){const l=Vg(kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cm(r)+l}px`;const s=kt(r).querySelectorAll(".mui-fixed");[].forEach.call(s,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${cm(a)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=kt(r).body;else{const l=r.parentElement,s=br(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 n2(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class r2{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&&Ri(t.modalRef,!1);const o=n2(n);dm(n,t.mount,t.modalRef,o,!0);const i=bu(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=bu(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=t2(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=bu(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&&Ri(t.modalRef,n),dm(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&&Ri(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function o2(e){return typeof e=="function"?e():e}function i2(e){return e?e.props.hasOwnProperty("in"):!1}const l2=new r2;function s2(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=l2,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:s,children:a,onClose:c,open:f,rootRef:u}=e,d=b.useRef({}),g=b.useRef(null),v=b.useRef(null),x=tt(v,u),[E,h]=b.useState(!f),p=i2(a);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const y=()=>kt(g.current),C=()=>(d.current.modalRef=v.current,d.current.mount=g.current,d.current),k=()=>{o.mount(C(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},S=bn(()=>{const A=o2(t)||y().body;o.add(C(),A),v.current&&k()}),$=b.useCallback(()=>o.isTopModal(C()),[o]),_=bn(A=>{g.current=A,A&&(f&&$()?k():v.current&&Ri(v.current,m))}),R=b.useCallback(()=>{o.remove(C(),m)},[m,o]);b.useEffect(()=>()=>{R()},[R]),b.useEffect(()=>{f?S():(!p||!i)&&R()},[f,R,p,i,S]);const L=A=>B=>{var O;(O=A.onKeyDown)==null||O.call(A,B),!(B.key!=="Escape"||B.which===229||!$())&&(n||(B.stopPropagation(),c&&c(B,"escapeKeyDown")))},M=A=>B=>{var O;(O=A.onClick)==null||O.call(A,B),B.target===B.currentTarget&&c&&c(B,"backdropClick")};return{getRootProps:(A={})=>{const B=Tv(e);delete B.onTransitionEnter,delete B.onTransitionExited;const O=w({},B,A);return w({role:"presentation"},O,{onKeyDown:L(O),ref:x})},getBackdropProps:(A={})=>{const B=A;return w({"aria-hidden":!0},B,{onClick:M(B),open:f})},getTransitionProps:()=>{const A=()=>{h(!1),l&&l()},B=()=>{h(!0),s&&s(),i&&R()};return{onEnter:bc(A,a==null?void 0:a.props.onEnter),onExited:bc(B,a==null?void 0:a.props.onExited)}},rootRef:x,portalRef:_,isTopModal:$,exited:E,hasTransition:p}}const a2=["onChange","maxRows","minRows","style","value"];function Ll(e){return parseInt(e,10)||0}const u2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function fm(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const c2=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:s}=t,a=Z(t,a2),{current:c}=b.useRef(s!=null),f=b.useRef(null),u=tt(n,f),d=b.useRef(null),g=b.useRef(0),[v,x]=b.useState({outerHeightStyle:0}),E=b.useCallback(()=>{const y=f.current,k=br(y).getComputedStyle(y);if(k.width==="0px")return{outerHeightStyle:0};const S=d.current;S.style.width=k.width,S.value=y.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const $=k.boxSizing,_=Ll(k.paddingBottom)+Ll(k.paddingTop),R=Ll(k.borderBottomWidth)+Ll(k.borderTopWidth),L=S.scrollHeight;S.value="x";const M=S.scrollHeight;let z=L;i&&(z=Math.max(Number(i)*M,z)),o&&(z=Math.min(Number(o)*M,z)),z=Math.max(z,M);const F=z+($==="border-box"?_+R:0),j=Math.abs(z-L)<=1;return{outerHeightStyle:F,overflow:j}},[o,i,t.placeholder]),h=(y,C)=>{const{outerHeightStyle:k,overflow:S}=C;return g.current<20&&(k>0&&Math.abs((y.outerHeightStyle||0)-k)>1||y.overflow!==S)?(g.current+=1,{overflow:S,outerHeightStyle:k}):y},p=b.useCallback(()=>{const y=E();fm(y)||x(C=>h(C,y))},[E]);zn(()=>{const y=()=>{const L=E();fm(L)||Xs.flushSync(()=>{x(M=>h(M,L))})},C=()=>{g.current=0,y()};let k;const S=Td(C),$=f.current,_=br($);_.addEventListener("resize",S);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{S.clear(),cancelAnimationFrame(k),_.removeEventListener("resize",S),R&&R.disconnect()}},[E]),zn(()=>{p()}),b.useEffect(()=>{g.current=0},[s]);const m=y=>{g.current=0,c||p(),r&&r(y)};return T.jsxs(b.Fragment,{children:[T.jsx("textarea",w({value:s,onChange:m,ref:u,rows:i,style:w({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},l)},a)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:w({},u2.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function pm(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d2(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:l=!1}=e;return(s,{inputValue:a,getOptionLabel:c})=>{let f=l?a.trim():a;n&&(f=f.toLowerCase()),t&&(f=pm(f));const u=f?s.filter(d=>{let g=(i||c)(d);return n&&(g=g.toLowerCase()),t&&(g=pm(g)),o==="start"?g.indexOf(f)===0:g.indexOf(f)>-1}):s;return typeof r=="number"?u.slice(0,r):u}}function wu(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function m2(e){const{unstable_isActiveElementInListbox:t=p2,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:u=!1,disableCloseOnSelect:d=!1,disabled:g,disabledItemsFocusable:v=!1,disableListWrap:x=!1,filterOptions:E=f2,filterSelectedOptions:h=!1,freeSolo:p=!1,getOptionDisabled:m,getOptionKey:y,getOptionLabel:C=I=>{var P;return(P=I.label)!=null?P:I},groupBy:k,handleHomeEndKeys:S=!e.freeSolo,id:$,includeInputInList:_=!1,inputValue:R,isOptionEqualToValue:L=(I,P)=>I===P,multiple:M=!1,onChange:z,onClose:F,onHighlightChange:j,onInputChange:A,onOpen:B,open:O,openOnFocus:N=!1,options:U,readOnly:ne=!1,selectOnFocus:ee=!e.freeSolo,value:fe}=e,G=Qi($);let J=C;J=I=>{const P=C(I);return typeof P!="string"?String(P):P};const oe=b.useRef(!1),Ee=b.useRef(!0),se=b.useRef(null),ce=b.useRef(null),[je,de]=b.useState(null),[ue,re]=b.useState(-1),ge=o?0:-1,ae=b.useRef(ge),[X,it]=Po({controlled:fe,default:f,name:c}),[ie,Be]=Po({controlled:R,default:"",name:c,state:"inputValue"}),[_e,ve]=b.useState(!1),Ye=b.useCallback((I,P)=>{if(!(M?X.length!(h&&(M?X:[X]).some(P=>P!==null&&L(I,P)))),{inputValue:ft&&dt?"":ie,getOptionLabel:J}):[],Qe=tx({filteredOptions:H,value:X,inputValue:ie});b.useEffect(()=>{const I=X!==Qe.value;_e&&!I||p&&!I||Ye(null,X)},[X,Ye,_e,Qe.value,p]);const pn=Me&&H.length>0&&!ne,Xt=bn(I=>{I===-1?se.current.focus():je.querySelector(`[data-tag-index="${I}"]`).focus()});b.useEffect(()=>{M&&ue>X.length-1&&(re(-1),Xt(-1))},[X,M,ue,Xt]);function jn(I,P){if(!ce.current||I<0||I>=H.length)return-1;let W=I;for(;;){const Y=ce.current.querySelector(`[data-option-index="${W}"]`),we=v?!1:!Y||Y.disabled||Y.getAttribute("aria-disabled")==="true";if(Y&&Y.hasAttribute("tabindex")&&!we)return W;if(P==="next"?W=(W+1)%H.length:W=(W-1+H.length)%H.length,W===I)return-1}}const q=bn(({event:I,index:P,reason:W="auto"})=>{if(ae.current=P,P===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${G}-option-${P}`),j&&j(I,P===-1?null:H[P],W),!ce.current)return;const Y=ce.current.querySelector(`[role="option"].${n}-focused`);Y&&(Y.classList.remove(`${n}-focused`),Y.classList.remove(`${n}-focusVisible`));let we=ce.current;if(ce.current.getAttribute("role")!=="listbox"&&(we=ce.current.parentElement.querySelector('[role="listbox"]')),!we)return;if(P===-1){we.scrollTop=0;return}const Ze=ce.current.querySelector(`[data-option-index="${P}"]`);if(Ze&&(Ze.classList.add(`${n}-focused`),W==="keyboard"&&Ze.classList.add(`${n}-focusVisible`),we.scrollHeight>we.clientHeight&&W!=="mouse"&&W!=="touch")){const nt=Ze,Pn=we.clientHeight+we.scrollTop,df=nt.offsetTop+nt.offsetHeight;df>Pn?we.scrollTop=df-we.clientHeight:nt.offsetTop-nt.offsetHeight*(k?1.3:0){if(!le)return;const Ze=jn((()=>{const nt=H.length-1;if(P==="reset")return ge;if(P==="start")return 0;if(P==="end")return nt;const Pn=ae.current+P;return Pn<0?Pn===-1&&_?-1:x&&ae.current!==-1||Math.abs(P)>1?0:nt:Pn>nt?Pn===nt+1&&_?-1:x||Math.abs(P)>1?nt:0:Pn})(),W);if(q({index:Ze,reason:Y,event:I}),r&&P!=="reset")if(Ze===-1)se.current.value=ie;else{const nt=J(H[Ze]);se.current.value=nt,nt.toLowerCase().indexOf(ie.toLowerCase())===0&&ie.length>0&&se.current.setSelectionRange(ie.length,nt.length)}}),ze=()=>{const I=(P,W)=>{const Y=P?J(P):"",we=W?J(W):"";return Y===we};if(ae.current!==-1&&Qe.filteredOptions&&Qe.filteredOptions.length!==H.length&&Qe.inputValue===ie&&(M?X.length===Qe.value.length&&Qe.value.every((P,W)=>J(X[W])===J(P)):I(Qe.value,X))){const P=Qe.filteredOptions[ae.current];if(P&&H.some(Y=>J(Y)===J(P)))return!0}return!1},Yt=b.useCallback(()=>{if(!le||ze())return;const I=M?X[0]:X;if(H.length===0||I==null){pe({diff:"reset"});return}if(ce.current){if(I!=null){const P=H[ae.current];if(M&&P&&wu(X,Y=>L(P,Y))!==-1)return;const W=wu(H,Y=>L(Y,I));W===-1?pe({diff:"reset"}):q({index:W});return}if(ae.current>=H.length-1){q({index:H.length-1});return}q({index:ae.current})}},[H.length,M?!1:X,h,pe,q,le,ie,M]),qr=bn(I=>{Gi(ce,I),I&&Yt()});b.useEffect(()=>{Yt()},[Yt]);const Zt=I=>{Me||(ye(!0),vt(!0),B&&B(I))},Bn=(I,P)=>{Me&&(ye(!1),F&&F(I,P))},En=(I,P,W,Y)=>{if(M){if(X.length===P.length&&X.every((we,Ze)=>we===P[Ze]))return}else if(X===P)return;z&&z(I,P,W,Y),it(P)},Xr=b.useRef(!1),Er=(I,P,W="selectOption",Y="options")=>{let we=W,Ze=P;if(M){Ze=Array.isArray(X)?X.slice():[];const nt=wu(Ze,Pn=>L(P,Pn));nt===-1?Ze.push(P):Y!=="freeSolo"&&(Ze.splice(nt,1),we="removeOption")}Ye(I,Ze),En(I,Ze,we,{option:P}),!d&&(!I||!I.ctrlKey&&!I.metaKey)&&Bn(I,we),(l===!0||l==="touch"&&Xr.current||l==="mouse"&&!Xr.current)&&se.current.blur()};function cl(I,P){if(I===-1)return-1;let W=I;for(;;){if(P==="next"&&W===X.length||P==="previous"&&W===-1)return-1;const Y=je.querySelector(`[data-tag-index="${W}"]`);if(!Y||!Y.hasAttribute("tabindex")||Y.disabled||Y.getAttribute("aria-disabled")==="true")W+=P==="next"?1:-1;else return W}}const dl=(I,P)=>{if(!M)return;ie===""&&Bn(I,"toggleInput");let W=ue;ue===-1?ie===""&&P==="previous"&&(W=X.length-1):(W+=P==="next"?1:-1,W<0&&(W=0),W===X.length&&(W=-1)),W=cl(W,P),re(W),Xt(W)},fl=I=>{oe.current=!0,Be(""),A&&A(I,"","clear"),En(I,M?[]:null,"clear")},ja=I=>P=>{if(I.onKeyDown&&I.onKeyDown(P),!P.defaultMuiPrevented&&(ue!==-1&&["ArrowLeft","ArrowRight"].indexOf(P.key)===-1&&(re(-1),Xt(-1)),P.which!==229))switch(P.key){case"Home":le&&S&&(P.preventDefault(),pe({diff:"start",direction:"next",reason:"keyboard",event:P}));break;case"End":le&&S&&(P.preventDefault(),pe({diff:"end",direction:"previous",reason:"keyboard",event:P}));break;case"PageUp":P.preventDefault(),pe({diff:-mm,direction:"previous",reason:"keyboard",event:P}),Zt(P);break;case"PageDown":P.preventDefault(),pe({diff:mm,direction:"next",reason:"keyboard",event:P}),Zt(P);break;case"ArrowDown":P.preventDefault(),pe({diff:1,direction:"next",reason:"keyboard",event:P}),Zt(P);break;case"ArrowUp":P.preventDefault(),pe({diff:-1,direction:"previous",reason:"keyboard",event:P}),Zt(P);break;case"ArrowLeft":dl(P,"previous");break;case"ArrowRight":dl(P,"next");break;case"Enter":if(ae.current!==-1&&le){const W=H[ae.current],Y=m?m(W):!1;if(P.preventDefault(),Y)return;Er(P,W,"selectOption"),r&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else p&&ie!==""&&ft===!1&&(M&&P.preventDefault(),Er(P,ie,"createOption","freeSolo"));break;case"Escape":le?(P.preventDefault(),P.stopPropagation(),Bn(P,"escape")):a&&(ie!==""||M&&X.length>0)&&(P.preventDefault(),P.stopPropagation(),fl(P));break;case"Backspace":if(M&&!ne&&ie===""&&X.length>0){const W=ue===-1?X.length-1:ue,Y=X.slice();Y.splice(W,1),En(P,Y,"removeOption",{option:X[W]})}break;case"Delete":if(M&&!ne&&ie===""&&X.length>0&&ue!==-1){const W=ue,Y=X.slice();Y.splice(W,1),En(P,Y,"removeOption",{option:X[W]})}break}},uf=I=>{ve(!0),N&&!oe.current&&Zt(I)},Yr=I=>{if(t(ce)){se.current.focus();return}ve(!1),Ee.current=!0,oe.current=!1,i&&ae.current!==-1&&le?Er(I,H[ae.current],"blur"):i&&p&&ie!==""?Er(I,ie,"blur","freeSolo"):s&&Ye(I,X),Bn(I,"blur")},yt=I=>{const P=I.target.value;ie!==P&&(Be(P),vt(!1),A&&A(I,P,"input")),P===""?!u&&!M&&En(I,null,"clear"):Zt(I)},lt=I=>{const P=Number(I.currentTarget.getAttribute("data-option-index"));ae.current!==P&&q({event:I,index:P,reason:"mouse"})},mn=I=>{q({event:I,index:Number(I.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Xr.current=!0},cf=I=>{const P=Number(I.currentTarget.getAttribute("data-option-index"));Er(I,H[P],"selectOption"),Xr.current=!1},Ba=I=>P=>{const W=X.slice();W.splice(I,1),En(P,W,"removeOption",{option:X[I]})},Ua=I=>{Me?Bn(I,"toggleInput"):Zt(I)},Wa=I=>{I.currentTarget.contains(I.target)&&I.target.getAttribute("id")!==G&&I.preventDefault()},pl=I=>{I.currentTarget.contains(I.target)&&(se.current.focus(),ee&&Ee.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),Ee.current=!1)},qo=I=>{!g&&(ie===""||!Me)&&Ua(I)};let Pr=p&&ie.length>0;Pr=Pr||(M?X.length>0:X!==null);let Zr=H;return k&&(Zr=H.reduce((I,P,W)=>{const Y=k(P);return I.length>0&&I[I.length-1].group===Y?I[I.length-1].options.push(P):I.push({key:W,index:W,group:Y,options:[P]}),I},[])),g&&_e&&Yr(),{getRootProps:(I={})=>w({"aria-owns":pn?`${G}-listbox`:null},I,{onKeyDown:ja(I),onMouseDown:Wa,onClick:pl}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:ie,onBlur:Yr,onFocus:uf,onChange:yt,onMouseDown:qo,"aria-activedescendant":le?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pn?`${G}-listbox`:void 0,"aria-expanded":pn,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:fl}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ua}),getTagProps:({index:I})=>w({key:I,"data-tag-index":I,tabIndex:-1},!ne&&{onDelete:Ba(I)}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:qr,onMouseDown:I=>{I.preventDefault()}}),getOptionProps:({index:I,option:P})=>{var W;const Y=(M?X:[X]).some(Ze=>Ze!=null&&L(P,Ze)),we=m?m(P):!1;return{key:(W=y==null?void 0:y(P))!=null?W:J(P),tabIndex:-1,role:"option",id:`${G}-option-${I}`,onMouseMove:lt,onClick:cf,onTouchStart:mn,"data-option-index":I,"aria-disabled":we,"aria-selected":Y}},id:G,inputValue:ie,value:X,dirty:Pr,expanded:le&&je,popupOpen:le,focused:_e||ue!==-1,anchorEl:je,setAnchorEl:de,focusedTag:ue,groupedOptions:Zr}}const h2=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],g2=Q(Zk,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v2=b.forwardRef(function(t,n){var r;const o=Vd(),i=Oe({props:t,name:"MuiPopper"}),{anchorEl:l,component:s,components:a,componentsProps:c,container:f,disablePortal:u,keepMounted:d,modifiers:g,open:v,placement:x,popperOptions:E,popperRef:h,transition:p,slots:m,slotProps:y}=i,C=Z(i,h2),k=(r=m==null?void 0:m.root)!=null?r:a==null?void 0:a.Root,S=w({anchorEl:l,container:f,disablePortal:u,keepMounted:d,modifiers:g,open:v,placement:x,popperOptions:E,popperRef:h,transition:p},C);return T.jsx(g2,w({as:s,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:y??c},S,{ref:n}))}),jv=v2;function y2(e){return ke("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const x2=["className","color","component","disableGutters","disableSticky","inset"],b2=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${V(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Re(l,y2,t)},w2=Q("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${V(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>w({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Bv=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:s=!1,disableSticky:a=!1,inset:c=!1}=r,f=Z(r,x2),u=w({},r,{color:i,component:l,disableGutters:s,disableSticky:a,inset:c}),d=b2(u);return T.jsx(w2,w({as:l,className:te(d.root,o),ref:n,ownerState:u},f))});Bv.muiSkipListHighlight=!0;const S2=Bv,C2=_a(T.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function k2(e){return ke("MuiChip",e)}const E2=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),be=E2,P2=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],R2=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:l,clickable:s,variant:a}=e,c={root:["root",a,n&&"disabled",`size${V(r)}`,`color${V(o)}`,s&&"clickable",s&&`clickableColor${V(o)}`,l&&"deletable",l&&`deletableColor${V(o)}`,`${a}${V(o)}`],label:["label",`label${V(r)}`],avatar:["avatar",`avatar${V(r)}`,`avatarColor${V(o)}`],icon:["icon",`icon${V(r)}`,`iconColor${V(i)}`],deleteIcon:["deleteIcon",`deleteIcon${V(r)}`,`deleteIconColor${V(o)}`,`deleteIcon${V(a)}Color${V(o)}`]};return Re(c,k2,t)},$2=Q("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:l,size:s,variant:a}=n;return[{[`& .${be.avatar}`]:t.avatar},{[`& .${be.avatar}`]:t[`avatar${V(s)}`]},{[`& .${be.avatar}`]:t[`avatarColor${V(r)}`]},{[`& .${be.icon}`]:t.icon},{[`& .${be.icon}`]:t[`icon${V(s)}`]},{[`& .${be.icon}`]:t[`iconColor${V(o)}`]},{[`& .${be.deleteIcon}`]:t.deleteIcon},{[`& .${be.deleteIcon}`]:t[`deleteIcon${V(s)}`]},{[`& .${be.deleteIcon}`]:t[`deleteIconColor${V(r)}`]},{[`& .${be.deleteIcon}`]:t[`deleteIcon${V(a)}Color${V(r)}`]},t.root,t[`size${V(s)}`],t[`color${V(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${V(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${V(r)}`],t[a],t[`${a}${V(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return w({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${be.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${be.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${be.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${be.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${be.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${be.icon}`]:w({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&w({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${be.deleteIcon}`]:w({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:st(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:st(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:st(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:st(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>w({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:st(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:st(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${be.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>w({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${be.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${be.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${be.avatar}`]:{marginLeft:4},[`& .${be.avatarSmall}`]:{marginLeft:2},[`& .${be.icon}`]:{marginLeft:4},[`& .${be.iconSmall}`]:{marginLeft:2},[`& .${be.deleteIcon}`]:{marginRight:5},[`& .${be.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:st(e.palette[t.color].main,.7)}`,[`&.${be.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:st(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${be.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:st(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${be.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:st(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),T2=Q("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${V(r)}`]]}})(({ownerState:e})=>w({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function hm(e){return e.key==="Backspace"||e.key==="Delete"}const O2=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:l,color:s="default",component:a,deleteIcon:c,disabled:f=!1,icon:u,label:d,onClick:g,onDelete:v,onKeyDown:x,onKeyUp:E,size:h="medium",variant:p="filled",tabIndex:m,skipFocusWhenDisabled:y=!1}=r,C=Z(r,P2),k=b.useRef(null),S=tt(k,n),$=N=>{N.stopPropagation(),v&&v(N)},_=N=>{N.currentTarget===N.target&&hm(N)&&N.preventDefault(),x&&x(N)},R=N=>{N.currentTarget===N.target&&(v&&hm(N)?v(N):N.key==="Escape"&&k.current&&k.current.blur()),E&&E(N)},L=l!==!1&&g?!0:l,M=L||v?$c:a||"div",z=w({},r,{component:M,disabled:f,size:h,color:s,iconColor:b.isValidElement(u)&&u.props.color||s,onDelete:!!v,clickable:L,variant:p}),F=R2(z),j=M===$c?w({component:a||"div",focusVisibleClassName:F.focusVisible},v&&{disableRipple:!0}):{};let A=null;v&&(A=c&&b.isValidElement(c)?b.cloneElement(c,{className:te(c.props.className,F.deleteIcon),onClick:$}):T.jsx(C2,{className:te(F.deleteIcon),onClick:$}));let B=null;o&&b.isValidElement(o)&&(B=b.cloneElement(o,{className:te(F.avatar,o.props.className)}));let O=null;return u&&b.isValidElement(u)&&(O=b.cloneElement(u,{className:te(F.icon,u.props.className)})),T.jsxs($2,w({as:M,className:te(F.root,i),disabled:L&&f?!0:void 0,onClick:g,onKeyDown:_,onKeyUp:R,ref:S,tabIndex:y&&f?-1:m,ownerState:z},j,C,{children:[B||O,T.jsx(T2,{className:te(F.label),ownerState:z,children:d}),A]}))}),I2=O2;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 _2=b.createContext(void 0),rf=_2;function Qo(){return b.useContext(rf)}function M2(e){return T.jsx(sw,w({},e,{defaultTheme:Oa,themeId:Ao}))}function gm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ms(e,t=!1){return e&&(gm(e.value)&&e.value!==""||t&&gm(e.defaultValue)&&e.defaultValue!=="")}function N2(e){return e.startAdornment}function L2(e){return ke("MuiInputBase",e)}const A2=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Dt=A2,z2=["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"],Aa=(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${V(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},za=(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]},F2=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:s,fullWidth:a,hiddenLabel:c,multiline:f,readOnly:u,size:d,startAdornment:g,type:v}=e,x={root:["root",`color${V(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",l&&"focused",s&&"formControl",d&&d!=="medium"&&`size${V(d)}`,f&&"multiline",g&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",d==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]};return Re(x,L2,t)},Fa=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Aa})(({theme:e,ownerState:t})=>w({},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",[`&.${Dt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&w({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Da=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:za})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=w({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 w({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] + .${Dt.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},[`&.${Dt.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"})}),D2=T.jsx(M2,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),j2=b.forwardRef(function(t,n){var r;const o=Oe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:s,className:a,components:c={},componentsProps:f={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:x=!1,id:E,inputComponent:h="input",inputProps:p={},inputRef:m,maxRows:y,minRows:C,multiline:k=!1,name:S,onBlur:$,onChange:_,onClick:R,onFocus:L,onKeyDown:M,onKeyUp:z,placeholder:F,readOnly:j,renderSuffix:A,rows:B,slotProps:O={},slots:N={},startAdornment:U,type:ne="text",value:ee}=o,fe=Z(o,z2),G=p.value!=null?p.value:ee,{current:J}=b.useRef(G!=null),oe=b.useRef(),Ee=b.useCallback(le=>{},[]),se=tt(oe,m,p.ref,Ee),[ce,je]=b.useState(!1),de=Qo(),ue=Go({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ue.focused=de?de.focused:ce,b.useEffect(()=>{!de&&d&&ce&&(je(!1),$&&$())},[de,d,ce,$]);const re=de&&de.onFilled,ge=de&&de.onEmpty,ae=b.useCallback(le=>{Ms(le)?re&&re():ge&&ge()},[re,ge]);zn(()=>{J&&ae({value:G})},[G,ae,J]);const X=le=>{if(ue.disabled){le.stopPropagation();return}L&&L(le),p.onFocus&&p.onFocus(le),de&&de.onFocus?de.onFocus(le):je(!0)},it=le=>{$&&$(le),p.onBlur&&p.onBlur(le),de&&de.onBlur?de.onBlur(le):je(!1)},ie=(le,...H)=>{if(!J){const Qe=le.target||oe.current;if(Qe==null)throw new Error(xr(1));ae({value:Qe.value})}p.onChange&&p.onChange(le,...H),_&&_(le,...H)};b.useEffect(()=>{ae(oe.current)},[]);const Be=le=>{oe.current&&le.currentTarget===le.target&&oe.current.focus(),R&&R(le)};let _e=h,ve=p;k&&_e==="input"&&(B?ve=w({type:void 0,minRows:B,maxRows:B},ve):ve=w({type:void 0,maxRows:y,minRows:C},ve),_e=c2);const Ye=le=>{ae(le.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};b.useEffect(()=>{de&&de.setAdornedStart(!!U)},[de,U]);const Me=w({},o,{color:ue.color||"primary",disabled:ue.disabled,endAdornment:v,error:ue.error,focused:ue.focused,formControl:de,fullWidth:x,hiddenLabel:ue.hiddenLabel,multiline:k,size:ue.size,startAdornment:U,type:ne}),ye=F2(Me),dt=N.root||c.Root||Fa,vt=O.root||f.root||{},ft=N.input||c.Input||Da;return ve=w({},ve,(r=O.input)!=null?r:f.input),T.jsxs(b.Fragment,{children:[!g&&D2,T.jsxs(dt,w({},vt,!Is(dt)&&{ownerState:w({},Me,vt.ownerState)},{ref:n,onClick:Be},fe,{className:te(ye.root,vt.className,a,j&&"MuiInputBase-readOnly"),children:[U,T.jsx(rf.Provider,{value:null,children:T.jsx(ft,w({ownerState:Me,"aria-invalid":ue.error,"aria-describedby":i,autoComplete:l,autoFocus:s,defaultValue:u,disabled:ue.disabled,id:E,onAnimationStart:Ye,name:S,placeholder:F,readOnly:j,required:ue.required,rows:B,value:G,onKeyDown:M,onKeyUp:z,type:ne},ve,!Is(ft)&&{as:_e,ownerState:w({},Me,ve.ownerState)},{ref:se,className:te(ye.input,ve.className,j&&"MuiInputBase-readOnly"),onBlur:it,onChange:ie,onFocus:X}))}),v,A?A(w({},ue,{startAdornment:U})):null]}))]})}),of=j2;function B2(e){return ke("MuiInput",e)}const U2=w({},Dt,$e("MuiInput",["root","underline","input"])),lr=U2;function W2(e){return ke("MuiOutlinedInput",e)}const H2=w({},Dt,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Tn=H2;function V2(e){return ke("MuiFilledInput",e)}const K2=w({},Dt,$e("MuiFilledInput",["root","underline","input"])),jt=K2,Uv=_a(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function G2(e){return ke("MuiAutocomplete",e)}const Q2=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),me=Q2;var vm,ym;const q2=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],X2=["ref"],Y2=["key"],Z2=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:l,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:f}=e,u={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${V(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Re(u,G2,t)},J2=Q("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:l,size:s}=n;return[{[`& .${me.tag}`]:t.tag},{[`& .${me.tag}`]:t[`tagSize${V(s)}`]},{[`& .${me.inputRoot}`]:t.inputRoot},{[`& .${me.input}`]:t.input},{[`& .${me.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>w({[`&.${me.focused} .${me.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${me.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${me.tag}`]:w({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${me.inputRoot}`]:{flexWrap:"wrap",[`.${me.hasPopupIcon}&, .${me.hasClearIcon}&`]:{paddingRight:30},[`.${me.hasPopupIcon}.${me.hasClearIcon}&`]:{paddingRight:56},[`& .${me.input}`]:{width:0,minWidth:30}},[`& .${lr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${lr.root}.${Dt.sizeSmall}`]:{[`& .${lr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Tn.root}`]:{padding:9,[`.${me.hasPopupIcon}&, .${me.hasClearIcon}&`]:{paddingRight:39},[`.${me.hasPopupIcon}.${me.hasClearIcon}&`]:{paddingRight:65},[`& .${me.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${me.endAdornment}`]:{right:9}},[`& .${Tn.root}.${Dt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${me.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${jt.root}`]:{paddingTop:19,paddingLeft:8,[`.${me.hasPopupIcon}&, .${me.hasClearIcon}&`]:{paddingRight:39},[`.${me.hasPopupIcon}.${me.hasClearIcon}&`]:{paddingRight:65},[`& .${jt.input}`]:{padding:"7px 4px"},[`& .${me.endAdornment}`]:{right:9}},[`& .${jt.root}.${Dt.sizeSmall}`]:{paddingBottom:1,[`& .${jt.input}`]:{padding:"2.5px 4px"}},[`& .${Dt.hiddenLabel}`]:{paddingTop:8},[`& .${jt.root}.${Dt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${me.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${jt.root}.${Dt.hiddenLabel}.${Dt.sizeSmall}`]:{[`& .${me.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${me.input}`]:w({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),eE=Q("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),tE=Q($v,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),nE=Q($v,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>w({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>w({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),rE=Q(jv,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${me.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>w({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),oE=Q(Ma,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>w({},e.typography.body1,{overflow:"auto"})),iE=Q("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),lE=Q("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),sE=Q("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${me.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${me.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${me.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:st(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${me.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:st(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${me.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:st(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),aE=Q(S2,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),uE=Q("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${me.option}`]:{paddingLeft:24}}),cE=b.forwardRef(function(t,n){var r,o,i,l;const s=Oe({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:f=!1,blurOnSelect:u=!1,ChipProps:d,className:g,clearIcon:v=vm||(vm=T.jsx(uC,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:E=!1,clearText:h="Clear",closeText:p="Close",componentsProps:m={},defaultValue:y=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:k=!1,disabled:S=!1,disabledItemsFocusable:$=!1,disableListWrap:_=!1,disablePortal:R=!1,filterSelectedOptions:L=!1,forcePopupIcon:M="auto",freeSolo:z=!1,fullWidth:F=!1,getLimitTagsText:j=P=>`+${P}`,getOptionLabel:A,groupBy:B,handleHomeEndKeys:O=!s.freeSolo,includeInputInList:N=!1,limitTags:U=-1,ListboxComponent:ne="ul",ListboxProps:ee,loading:fe=!1,loadingText:G="Loading…",multiple:J=!1,noOptionsText:oe="No options",openOnFocus:Ee=!1,openText:se="Open",PaperComponent:ce=Ma,PopperComponent:je=jv,popupIcon:de=ym||(ym=T.jsx(Uv,{})),readOnly:ue=!1,renderGroup:re,renderInput:ge,renderOption:ae,renderTags:X,selectOnFocus:it=!s.freeSolo,size:ie="medium",slotProps:Be={}}=s,_e=Z(s,q2),{getRootProps:ve,getInputProps:Ye,getInputLabelProps:Me,getPopupIndicatorProps:ye,getClearProps:dt,getTagProps:vt,getListboxProps:ft,getOptionProps:le,value:H,dirty:Qe,expanded:pn,id:Xt,popupOpen:jn,focused:q,focusedTag:pe,anchorEl:ze,setAnchorEl:Yt,inputValue:qr,groupedOptions:Zt}=m2(w({},s,{componentName:"Autocomplete"})),Bn=!C&&!S&&Qe&&!ue,En=(!z||M===!0)&&M!==!1,{onMouseDown:Xr}=Ye(),{ref:Er}=ee??{},cl=ft(),{ref:dl}=cl,fl=Z(cl,X2),ja=tt(dl,Er),Yr=A||(P=>{var W;return(W=P.label)!=null?W:P}),yt=w({},s,{disablePortal:R,expanded:pn,focused:q,fullWidth:F,getOptionLabel:Yr,hasClearIcon:Bn,hasPopupIcon:En,inputFocused:pe===-1,popupOpen:jn,size:ie}),lt=Z2(yt);let mn;if(J&&H.length>0){const P=W=>w({className:lt.tag,disabled:S},vt(W));X?mn=X(H,P,yt):mn=H.map((W,Y)=>T.jsx(I2,w({label:Yr(W),size:ie},P({index:Y}),d)))}if(U>-1&&Array.isArray(mn)){const P=mn.length-U;!q&&P>0&&(mn=mn.splice(0,U),mn.push(T.jsx("span",{className:lt.tag,children:j(P)},mn.length)))}const Ba=re||(P=>T.jsxs("li",{children:[T.jsx(aE,{className:lt.groupLabel,ownerState:yt,component:"div",children:P.group}),T.jsx(uE,{className:lt.groupUl,ownerState:yt,children:P.children})]},P.key)),Wa=ae||((P,W)=>{const{key:Y}=P,we=Z(P,Y2);return T.jsx("li",w({},we,{children:Yr(W)}),Y)}),pl=(P,W)=>{const Y=le({option:P,index:W});return Wa(w({},Y,{className:lt.option}),P,{selected:Y["aria-selected"],index:W,inputValue:qr},yt)},qo=(r=Be.clearIndicator)!=null?r:m.clearIndicator,Pr=(o=Be.paper)!=null?o:m.paper,Zr=(i=Be.popper)!=null?i:m.popper,I=(l=Be.popupIndicator)!=null?l:m.popupIndicator;return T.jsxs(b.Fragment,{children:[T.jsx(J2,w({ref:n,className:te(lt.root,g),ownerState:yt},ve(_e),{children:ge({id:Xt,disabled:S,fullWidth:!0,size:ie==="small"?"small":void 0,InputLabelProps:Me(),InputProps:w({ref:Yt,className:lt.inputRoot,startAdornment:mn,onClick:P=>{P.target===P.currentTarget&&Xr(P)}},(Bn||En)&&{endAdornment:T.jsxs(eE,{className:lt.endAdornment,ownerState:yt,children:[Bn?T.jsx(tE,w({},dt(),{"aria-label":h,title:h,ownerState:yt},qo,{className:te(lt.clearIndicator,qo==null?void 0:qo.className),children:v})):null,En?T.jsx(nE,w({},ye(),{disabled:S,"aria-label":jn?p:se,title:jn?p:se,ownerState:yt},I,{className:te(lt.popupIndicator,I==null?void 0:I.className),children:de})):null]})}),inputProps:w({className:lt.input,disabled:S,readOnly:ue},Ye())})})),ze?T.jsx(rE,w({as:je,disablePortal:R,style:{width:ze?ze.clientWidth:null},ownerState:yt,role:"presentation",anchorEl:ze,open:jn},Zr,{className:te(lt.popper,Zr==null?void 0:Zr.className),children:T.jsxs(oE,w({ownerState:yt,as:ce},Pr,{className:te(lt.paper,Pr==null?void 0:Pr.className),children:[fe&&Zt.length===0?T.jsx(iE,{className:lt.loading,ownerState:yt,children:G}):null,Zt.length===0&&!z&&!fe?T.jsx(lE,{className:lt.noOptions,ownerState:yt,role:"presentation",onMouseDown:P=>{P.preventDefault()},children:oe}):null,Zt.length>0?T.jsx(sE,w({as:ne,className:lt.listbox,ownerState:yt},fl,ee,{ref:ja,children:Zt.map((P,W)=>B?Ba({key:P.key,group:P.group,children:P.options.map((Y,we)=>pl(Y,P.index+we))}):pl(P,W))})):null]}))})):null]})}),dE=cE,fE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pE={entering:{opacity:1},entered:{opacity:1}},mE=b.forwardRef(function(t,n){const r=Ia(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:s,easing:a,in:c,onEnter:f,onEntered:u,onEntering:d,onExit:g,onExited:v,onExiting:x,style:E,timeout:h=o,TransitionComponent:p=Pv}=t,m=Z(t,fE),y=b.useRef(null),C=tt(y,s.ref,n),k=F=>j=>{if(F){const A=y.current;j===void 0?F(A):F(A,j)}},S=k(d),$=k((F,j)=>{Rv(F);const A=Os({style:E,timeout:h,easing:a},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",A),F.style.transition=r.transitions.create("opacity",A),f&&f(F,j)}),_=k(u),R=k(x),L=k(F=>{const j=Os({style:E,timeout:h,easing:a},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",j),F.style.transition=r.transitions.create("opacity",j),g&&g(F)}),M=k(v),z=F=>{i&&i(y.current,F)};return T.jsx(p,w({appear:l,in:c,nodeRef:y,onEnter:$,onEntered:_,onEntering:S,onExit:L,onExited:M,onExiting:R,addEndListener:z,timeout:h},m,{children:(F,j)=>b.cloneElement(s,w({style:w({opacity:0,visibility:F==="exited"&&!c?"hidden":void 0},pE[F],E,s.props.style),ref:C},j))}))}),hE=mE;function gE(e){return ke("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const vE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yE=e=>{const{classes:t,invisible:n}=e;return Re({root:["root",n&&"invisible"]},gE,t)},xE=Q("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>w({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"})),bE=b.forwardRef(function(t,n){var r,o,i;const l=Oe({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:c="div",components:f={},componentsProps:u={},invisible:d=!1,open:g,slotProps:v={},slots:x={},TransitionComponent:E=hE,transitionDuration:h}=l,p=Z(l,vE),m=w({},l,{component:c,invisible:d}),y=yE(m),C=(r=v.root)!=null?r:u.root;return T.jsx(E,w({in:g,timeout:h},p,{children:T.jsx(xE,w({"aria-hidden":!0},C,{as:(o=(i=x.root)!=null?i:f.Root)!=null?o:c,className:te(y.root,a,C==null?void 0:C.className),ownerState:w({},m,C==null?void 0:C.ownerState),classes:y,ref:n,children:s}))}))}),wE=bE;function SE(e){return ke("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const CE=["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"],kE=e=>{const{open:t,exited:n,classes:r}=e;return Re({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},SE,r)},EE=Q("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})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PE=Q(wE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),RE=b.forwardRef(function(t,n){var r,o,i,l,s,a;const c=Oe({name:"MuiModal",props:t}),{BackdropComponent:f=PE,BackdropProps:u,className:d,closeAfterTransition:g=!1,children:v,container:x,component:E,components:h={},componentsProps:p={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:C=!1,disablePortal:k=!1,disableRestoreFocus:S=!1,disableScrollLock:$=!1,hideBackdrop:_=!1,keepMounted:R=!1,onBackdropClick:L,open:M,slotProps:z,slots:F}=c,j=Z(c,CE),A=w({},c,{closeAfterTransition:g,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:C,disablePortal:k,disableRestoreFocus:S,disableScrollLock:$,hideBackdrop:_,keepMounted:R}),{getRootProps:B,getBackdropProps:O,getTransitionProps:N,portalRef:U,isTopModal:ne,exited:ee,hasTransition:fe}=s2(w({},A,{rootRef:n})),G=w({},A,{exited:ee}),J=kE(G),oe={};if(v.props.tabIndex===void 0&&(oe.tabIndex="-1"),fe){const{onEnter:re,onExited:ge}=N();oe.onEnter=re,oe.onExited=ge}const Ee=(r=(o=F==null?void 0:F.root)!=null?o:h.Root)!=null?r:EE,se=(i=(l=F==null?void 0:F.backdrop)!=null?l:h.Backdrop)!=null?i:f,ce=(s=z==null?void 0:z.root)!=null?s:p.root,je=(a=z==null?void 0:z.backdrop)!=null?a:p.backdrop,de=Vr({elementType:Ee,externalSlotProps:ce,externalForwardedProps:j,getSlotProps:B,additionalProps:{ref:n,as:E},ownerState:G,className:te(d,ce==null?void 0:ce.className,J==null?void 0:J.root,!G.open&&G.exited&&(J==null?void 0:J.hidden))}),ue=Vr({elementType:se,externalSlotProps:je,additionalProps:u,getSlotProps:re=>O(w({},re,{onClick:ge=>{L&&L(ge),re!=null&&re.onClick&&re.onClick(ge)}})),className:te(je==null?void 0:je.className,u==null?void 0:u.className,J==null?void 0:J.backdrop),ownerState:G});return!R&&!M&&(!fe||ee)?null:T.jsx(Dv,{ref:U,container:x,disablePortal:k,children:T.jsxs(Ee,w({},de,{children:[!_&&f?T.jsx(se,w({},ue)):null,T.jsx(AC,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:S,isEnabled:ne,open:M,children:b.cloneElement(v,oe)})]}))})}),$E=RE,TE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],OE=e=>{const{classes:t,disableUnderline:n}=e,o=Re({root:["root",!n&&"underline"],input:["input"]},V2,t);return w({},t,o)},IE=Q(Fa,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Aa(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 w({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}},[`&.${jt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jt.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"},[`&.${jt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jt.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(.${jt.disabled}, .${jt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jt.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&w({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}))}),_E=Q(Da,{name:"MuiFilledInput",slot:"Input",overridesResolver:za})(({theme:e,ownerState:t})=>w({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})),Wv=b.forwardRef(function(t,n){var r,o,i,l;const s=Oe({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:f=!1,inputComponent:u="input",multiline:d=!1,slotProps:g,slots:v={},type:x="text"}=s,E=Z(s,TE),h=w({},s,{fullWidth:f,inputComponent:u,multiline:d,type:x}),p=OE(s),m={root:{ownerState:h},input:{ownerState:h}},y=g??c?Ct(m,g??c):m,C=(r=(o=v.root)!=null?o:a.Root)!=null?r:IE,k=(i=(l=v.input)!=null?l:a.Input)!=null?i:_E;return T.jsx(of,w({slots:{root:C,input:k},componentsProps:y,fullWidth:f,inputComponent:u,multiline:d,ref:n,type:x},E,{classes:p}))});Wv.muiName="Input";const Hv=Wv;function ME(e){return ke("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const NE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],LE=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${V(n)}`,r&&"fullWidth"]};return Re(o,ME,t)},AE=Q("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,t[`margin${V(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>w({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%"})),zE=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:s="div",disabled:a=!1,error:c=!1,focused:f,fullWidth:u=!1,hiddenLabel:d=!1,margin:g="none",required:v=!1,size:x="medium",variant:E="outlined"}=r,h=Z(r,NE),p=w({},r,{color:l,component:s,disabled:a,error:c,fullWidth:u,hiddenLabel:d,margin:g,required:v,size:x,variant:E}),m=LE(p),[y,C]=b.useState(()=>{let z=!1;return o&&b.Children.forEach(o,F=>{if(!Ql(F,["Input","Select"]))return;const j=Ql(F,["Select"])?F.props.input:F;j&&N2(j.props)&&(z=!0)}),z}),[k,S]=b.useState(()=>{let z=!1;return o&&b.Children.forEach(o,F=>{Ql(F,["Input","Select"])&&(Ms(F.props,!0)||Ms(F.props.inputProps,!0))&&(z=!0)}),z}),[$,_]=b.useState(!1);a&&$&&_(!1);const R=f!==void 0&&!a?f:$;let L;const M=b.useMemo(()=>({adornedStart:y,setAdornedStart:C,color:l,disabled:a,error:c,filled:k,focused:R,fullWidth:u,hiddenLabel:d,size:x,onBlur:()=>{_(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{_(!0)},registerEffect:L,required:v,variant:E}),[y,l,a,c,k,R,u,d,L,v,x,E]);return T.jsx(rf.Provider,{value:M,children:T.jsx(AE,w({as:s,ownerState:p,className:te(m.root,i),ref:n},h,{children:o}))})}),FE=zE,DE=Bw({createStyledComponent:Q("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Oe({props:e,name:"MuiStack"})}),jE=DE;function BE(e){return ke("MuiFormHelperText",e)}const UE=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),xm=UE;var bm;const WE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],HE=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:s,required:a}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${V(r)}`,n&&"contained",s&&"focused",l&&"filled",a&&"required"]};return Re(c,BE,t)},VE=Q("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${V(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${xm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xm.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),KE=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,s=Z(r,WE),a=Qo(),c=Go({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=w({},r,{component:l,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=HE(f);return T.jsx(VE,w({as:l,ownerState:f,className:te(u.root,i),ref:n},s,{children:o===" "?bm||(bm=T.jsx("span",{className:"notranslate",children:"​"})):o}))}),GE=KE;function QE(e){return ke("MuiFormLabel",e)}const qE=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$i=qE,XE=["children","className","color","component","disabled","error","filled","focused","required"],YE=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:s}=e,a={root:["root",`color${V(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Re(a,QE,t)},ZE=Q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$i.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$i.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$i.error}`]:{color:(e.vars||e).palette.error.main}})),JE=Q("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$i.error}`]:{color:(e.vars||e).palette.error.main}})),eP=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,s=Z(r,XE),a=Qo(),c=Go({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=w({},r,{color:c.color||"primary",component:l,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=YE(f);return T.jsxs(ZE,w({as:l,ownerState:f,className:te(u.root,i),ref:n},s,{children:[o,c.required&&T.jsxs(JE,{ownerState:f,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}),tP=eP,nP=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _c(e){return`scale(${e}, ${e**2})`}const rP={entering:{opacity:1,transform:_c(1)},entered:{opacity:1,transform:"none"}},Su=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vv=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:s,onEnter:a,onEntered:c,onEntering:f,onExit:u,onExited:d,onExiting:g,style:v,timeout:x="auto",TransitionComponent:E=Pv}=t,h=Z(t,nP),p=b.useRef(),m=b.useRef(),y=Ia(),C=b.useRef(null),k=tt(C,i.ref,n),S=j=>A=>{if(j){const B=C.current;A===void 0?j(B):j(B,A)}},$=S(f),_=S((j,A)=>{Rv(j);const{duration:B,delay:O,easing:N}=Os({style:v,timeout:x,easing:l},{mode:"enter"});let U;x==="auto"?(U=y.transitions.getAutoHeightDuration(j.clientHeight),m.current=U):U=B,j.style.transition=[y.transitions.create("opacity",{duration:U,delay:O}),y.transitions.create("transform",{duration:Su?U:U*.666,delay:O,easing:N})].join(","),a&&a(j,A)}),R=S(c),L=S(g),M=S(j=>{const{duration:A,delay:B,easing:O}=Os({style:v,timeout:x,easing:l},{mode:"exit"});let N;x==="auto"?(N=y.transitions.getAutoHeightDuration(j.clientHeight),m.current=N):N=A,j.style.transition=[y.transitions.create("opacity",{duration:N,delay:B}),y.transitions.create("transform",{duration:Su?N:N*.666,delay:Su?B:B||N*.333,easing:O})].join(","),j.style.opacity=0,j.style.transform=_c(.75),u&&u(j)}),z=S(d),F=j=>{x==="auto"&&(p.current=setTimeout(j,m.current||0)),r&&r(C.current,j)};return b.useEffect(()=>()=>{clearTimeout(p.current)},[]),T.jsx(E,w({appear:o,in:s,nodeRef:C,onEnter:_,onEntered:R,onEntering:$,onExit:M,onExited:z,onExiting:L,addEndListener:F,timeout:x==="auto"?null:x},h,{children:(j,A)=>b.cloneElement(i,w({style:w({opacity:0,transform:_c(.75),visibility:j==="exited"&&!s?"hidden":void 0},rP[j],v,i.props.style),ref:k},A))}))});Vv.muiSupportAuto=!0;const oP=Vv,iP=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lP=e=>{const{classes:t,disableUnderline:n}=e,o=Re({root:["root",!n&&"underline"],input:["input"]},B2,t);return w({},t,o)},sP=Q(Fa,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Aa(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})`),w({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"},[`&.${lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lr.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(.${lr.disabled}, .${lr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${lr.disabled}:before`]:{borderBottomStyle:"dotted"}})}),aP=Q(Da,{name:"MuiInput",slot:"Input",overridesResolver:za})({}),Kv=b.forwardRef(function(t,n){var r,o,i,l;const s=Oe({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:f,fullWidth:u=!1,inputComponent:d="input",multiline:g=!1,slotProps:v,slots:x={},type:E="text"}=s,h=Z(s,iP),p=lP(s),y={root:{ownerState:{disableUnderline:a}}},C=v??f?Ct(v??f,y):y,k=(r=(o=x.root)!=null?o:c.Root)!=null?r:sP,S=(i=(l=x.input)!=null?l:c.Input)!=null?i:aP;return T.jsx(of,w({slots:{root:k,input:S},slotProps:C,fullWidth:u,inputComponent:d,multiline:g,ref:n,type:E},h,{classes:p}))});Kv.muiName="Input";const Gv=Kv;function uP(e){return ke("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const cP=["disableAnimation","margin","shrink","variant","className"],dP=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${V(r)}`,l],asterisk:[s&&"asterisk"]},c=Re(a,uP,t);return w({},t,c)},fP=Q(tP,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$i.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})=>w({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"&&w({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&&w({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"&&w({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)"}),t.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),pP=b.forwardRef(function(t,n){const r=Oe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,s=Z(r,cP),a=Qo();let c=i;typeof c>"u"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=Go({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),u=w({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),d=dP(u);return T.jsx(fP,w({"data-shrink":c,ownerState:u,ref:n,className:te(d.root,l)},s,{classes:d}))}),mP=pP;function hP(e){return ke("MuiLink",e)}const gP=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),vP=gP,Qv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yP=e=>Qv[e]||e,xP=({theme:e,ownerState:t})=>{const n=yP(t.color),r=Fo(e,`palette.${n}`,!1)||t.color,o=Fo(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:st(r,.4)},bP=xP,wP=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],SP=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${V(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Re(i,hP,t)},CP=Q(Zi,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${V(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>w({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&w({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:bP({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vP.focusVisible}`]:{outline:"auto"}})),kP=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:l="a",onBlur:s,onFocus:a,TypographyClasses:c,underline:f="always",variant:u="inherit",sx:d}=r,g=Z(r,wP),{isFocusVisibleRef:v,onBlur:x,onFocus:E,ref:h}=Od(),[p,m]=b.useState(!1),y=tt(n,h),C=_=>{x(_),v.current===!1&&m(!1),s&&s(_)},k=_=>{E(_),v.current===!0&&m(!0),a&&a(_)},S=w({},r,{color:i,component:l,focusVisible:p,underline:f,variant:u}),$=SP(S);return T.jsx(CP,w({color:i,className:te($.root,o),classes:c,component:l,onBlur:C,onFocus:k,ref:y,ownerState:S,variant:u,sx:[...Object.keys(Qv).includes(i)?[]:[{color:i}],...Array.isArray(d)?d:[d]]},g))}),qv=kP,EP=b.createContext({}),PP=EP;function RP(e){return ke("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const $P=["children","className","component","dense","disablePadding","subheader"],TP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Re({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},RP,t)},OP=Q("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})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),IP=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:s=!1,disablePadding:a=!1,subheader:c}=r,f=Z(r,$P),u=b.useMemo(()=>({dense:s}),[s]),d=w({},r,{component:l,dense:s,disablePadding:a}),g=TP(d);return T.jsx(PP.Provider,{value:u,children:T.jsxs(OP,w({as:l,className:te(g.root,i),ref:n,ownerState:d},f,{children:[c,o]}))})}),_P=IP,MP=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Xv(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 si(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")||!Xv(s,i)||a)s=o(e,s,n);else return s.focus(),!0}return!1}const NP=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:s,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:f,variant:u="selectedMenu"}=t,d=Z(t,MP),g=b.useRef(null),v=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zn(()=>{o&&g.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,y)=>{const C=!g.current.style.width;if(m.clientHeight{const y=g.current,C=m.key,k=kt(y).activeElement;if(C==="ArrowDown")m.preventDefault(),si(y,k,c,a,Cu);else if(C==="ArrowUp")m.preventDefault(),si(y,k,c,a,wm);else if(C==="Home")m.preventDefault(),si(y,null,c,a,Cu);else if(C==="End")m.preventDefault(),si(y,null,c,a,wm);else if(C.length===1){const S=v.current,$=C.toLowerCase(),_=performance.now();S.keys.length>0&&(_-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&$!==S.keys[0]&&(S.repeating=!1)),S.lastTime=_,S.keys.push($);const R=k&&!S.repeating&&Xv(k,S);S.previousKeyMatched&&(R||si(y,k,!1,a,Cu,S))?m.preventDefault():S.previousKeyMatched=!1}f&&f(m)},E=tt(g,n);let h=-1;b.Children.forEach(l,(m,y)=>{if(!b.isValidElement(m)){h===y&&(h+=1,h>=l.length&&(h=-1));return}m.props.disabled||(u==="selectedMenu"&&m.props.selected||h===-1)&&(h=y),h===y&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(h+=1,h>=l.length&&(h=-1))});const p=b.Children.map(l,(m,y)=>{if(y===h){const C={};return i&&(C.autoFocus=!0),m.props.tabIndex===void 0&&u==="selectedMenu"&&(C.tabIndex=0),b.cloneElement(m,C)}return m});return T.jsx(_P,w({role:"menu",ref:E,className:s,onKeyDown:x,tabIndex:o?0:-1},d,{children:p}))}),LP=NP;function AP(e){return ke("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const zP=["onEntering"],FP=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],DP=["slotProps"];function Sm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Cm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function km(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ku(e){return typeof e=="function"?e():e}const jP=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"]},AP,t)},BP=Q($E,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yv=Q(Ma,{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}),UP=b.forwardRef(function(t,n){var r,o,i;const l=Oe({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:u="anchorEl",children:d,className:g,container:v,elevation:x=8,marginThreshold:E=16,open:h,PaperProps:p={},slots:m,slotProps:y,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:k=oP,transitionDuration:S="auto",TransitionProps:{onEntering:$}={},disableScrollLock:_=!1}=l,R=Z(l.TransitionProps,zP),L=Z(l,FP),M=(r=y==null?void 0:y.paper)!=null?r:p,z=b.useRef(),F=tt(z,M.ref),j=w({},l,{anchorOrigin:c,anchorReference:u,elevation:x,marginThreshold:E,externalPaperSlotProps:M,transformOrigin:C,TransitionComponent:k,transitionDuration:S,TransitionProps:R}),A=jP(j),B=b.useCallback(()=>{if(u==="anchorPosition")return f;const re=ku(a),ae=(re&&re.nodeType===1?re:kt(z.current).body).getBoundingClientRect();return{top:ae.top+Sm(ae,c.vertical),left:ae.left+Cm(ae,c.horizontal)}},[a,c.horizontal,c.vertical,f,u]),O=b.useCallback(re=>({vertical:Sm(re,C.vertical),horizontal:Cm(re,C.horizontal)}),[C.horizontal,C.vertical]),N=b.useCallback(re=>{const ge={width:re.offsetWidth,height:re.offsetHeight},ae=O(ge);if(u==="none")return{top:null,left:null,transformOrigin:km(ae)};const X=B();let it=X.top-ae.vertical,ie=X.left-ae.horizontal;const Be=it+ge.height,_e=ie+ge.width,ve=br(ku(a)),Ye=ve.innerHeight-E,Me=ve.innerWidth-E;if(E!==null&&itYe){const ye=Be-Ye;it-=ye,ae.vertical+=ye}if(E!==null&&ieMe){const ye=_e-Me;ie-=ye,ae.horizontal+=ye}return{top:`${Math.round(it)}px`,left:`${Math.round(ie)}px`,transformOrigin:km(ae)}},[a,u,B,O,E]),[U,ne]=b.useState(h),ee=b.useCallback(()=>{const re=z.current;if(!re)return;const ge=N(re);ge.top!==null&&(re.style.top=ge.top),ge.left!==null&&(re.style.left=ge.left),re.style.transformOrigin=ge.transformOrigin,ne(!0)},[N]);b.useEffect(()=>(_&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[a,_,ee]);const fe=(re,ge)=>{$&&$(re,ge),ee()},G=()=>{ne(!1)};b.useEffect(()=>{h&&ee()}),b.useImperativeHandle(s,()=>h?{updatePosition:()=>{ee()}}:null,[h,ee]),b.useEffect(()=>{if(!h)return;const re=Td(()=>{ee()}),ge=br(a);return ge.addEventListener("resize",re),()=>{re.clear(),ge.removeEventListener("resize",re)}},[a,h,ee]);let J=S;S==="auto"&&!k.muiSupportAuto&&(J=void 0);const oe=v||(a?kt(ku(a)).body:void 0),Ee=(o=m==null?void 0:m.root)!=null?o:BP,se=(i=m==null?void 0:m.paper)!=null?i:Yv,ce=Vr({elementType:se,externalSlotProps:w({},M,{style:U?M.style:w({},M.style,{opacity:0})}),additionalProps:{elevation:x,ref:F},ownerState:j,className:te(A.paper,M==null?void 0:M.className)}),je=Vr({elementType:Ee,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:oe,open:h},ownerState:j,className:te(A.root,g)}),{slotProps:de}=je,ue=Z(je,DP);return T.jsx(Ee,w({},ue,!Is(Ee)&&{slotProps:de,disableScrollLock:_},{children:T.jsx(k,w({appear:!0,in:h,onEntering:fe,onExited:G,timeout:J},R,{children:T.jsx(se,w({},ce,{children:d}))}))}))}),WP=UP;function HP(e){return ke("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const VP=["onEntering"],KP=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GP={vertical:"top",horizontal:"right"},QP={vertical:"top",horizontal:"left"},qP=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"],list:["list"]},HP,t)},XP=Q(WP,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YP=Q(Yv,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZP=Q(LP,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),JP=b.forwardRef(function(t,n){var r,o;const i=Oe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:s,className:a,disableAutoFocusItem:c=!1,MenuListProps:f={},onClose:u,open:d,PaperProps:g={},PopoverClasses:v,transitionDuration:x="auto",TransitionProps:{onEntering:E}={},variant:h="selectedMenu",slots:p={},slotProps:m={}}=i,y=Z(i.TransitionProps,VP),C=Z(i,KP),k=Ia(),S=k.direction==="rtl",$=w({},i,{autoFocus:l,disableAutoFocusItem:c,MenuListProps:f,onEntering:E,PaperProps:g,transitionDuration:x,TransitionProps:y,variant:h}),_=qP($),R=l&&!c&&d,L=b.useRef(null),M=(N,U)=>{L.current&&L.current.adjustStyleForScrollbar(N,k),E&&E(N,U)},z=N=>{N.key==="Tab"&&(N.preventDefault(),u&&u(N,"tabKeyDown"))};let F=-1;b.Children.map(s,(N,U)=>{b.isValidElement(N)&&(N.props.disabled||(h==="selectedMenu"&&N.props.selected||F===-1)&&(F=U))});const j=(r=p.paper)!=null?r:YP,A=(o=m.paper)!=null?o:g,B=Vr({elementType:p.root,externalSlotProps:m.root,ownerState:$,className:[_.root,a]}),O=Vr({elementType:j,externalSlotProps:A,ownerState:$,className:_.paper});return T.jsx(XP,w({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?GP:QP,slots:{paper:j,root:p.root},slotProps:{root:B,paper:O},open:d,ref:n,transitionDuration:x,TransitionProps:w({onEntering:M},y),ownerState:$},C,{classes:v,children:T.jsx(ZP,w({onKeyDown:z,actions:L,autoFocus:l&&(F===-1||c),autoFocusItem:R,variant:h},f,{className:te(_.list,f.className),children:s}))}))}),eR=JP;function tR(e){return ke("MuiNativeSelect",e)}const nR=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lf=nR,rR=["className","disabled","error","IconComponent","inputRef","variant"],oR=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${V(n)}`,i&&"iconOpen",r&&"disabled"]};return Re(s,tR,t)},Zv=({ownerState:e,theme:t})=>w({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":w({},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"},[`&.${lf.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}}),iR=Q("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${lf.multiple}`]:t.multiple}]}})(Zv),Jv=({ownerState:e,theme:t})=>w({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lR=Q("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})(Jv),sR=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:s,variant:a="standard"}=t,c=Z(t,rR),f=w({},t,{disabled:o,variant:a,error:i}),u=oR(f);return T.jsxs(b.Fragment,{children:[T.jsx(iR,w({ownerState:f,className:te(u.select,r),disabled:o,ref:s||n},c)),t.multiple?null:T.jsx(lR,{as:l,ownerState:f,className:u.icon})]})}),aR=sR;var Em;const uR=["children","classes","className","label","notched"],cR=Q("fieldset",{shouldForwardProp:Dn})({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%"}),dR=Q("legend",{shouldForwardProp:Dn})(({ownerState:e,theme:t})=>w({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&&w({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 fR(e){const{className:t,label:n,notched:r}=e,o=Z(e,uR),i=n!=null&&n!=="",l=w({},e,{notched:r,withLabel:i});return T.jsx(cR,w({"aria-hidden":!0,className:t,ownerState:l},o,{children:T.jsx(dR,{ownerState:l,children:i?T.jsx("span",{children:n}):Em||(Em=T.jsx("span",{className:"notranslate",children:"​"}))})}))}const pR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mR=e=>{const{classes:t}=e,r=Re({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},W2,t);return w({},t,r)},hR=Q(Fa,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Aa})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return w({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Tn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Tn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Tn.focused} .${Tn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Tn.error} .${Tn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Tn.disabled} .${Tn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&w({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),gR=Q(fR,{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}}),vR=Q(Da,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:za})(({theme:e,ownerState:t})=>w({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})),e0=b.forwardRef(function(t,n){var r,o,i,l,s;const a=Oe({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:u="input",label:d,multiline:g=!1,notched:v,slots:x={},type:E="text"}=a,h=Z(a,pR),p=mR(a),m=Qo(),y=Go({props:a,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=w({},a,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:f,hiddenLabel:y.hiddenLabel,multiline:g,size:y.size,type:E}),k=(r=(o=x.root)!=null?o:c.Root)!=null?r:hR,S=(i=(l=x.input)!=null?l:c.Input)!=null?i:vR;return T.jsx(of,w({slots:{root:k,input:S},renderSuffix:$=>T.jsx(gR,{ownerState:C,className:p.notchedOutline,label:d!=null&&d!==""&&y.required?s||(s=T.jsxs(b.Fragment,{children:[d," ","*"]})):d,notched:typeof v<"u"?v:!!($.startAdornment||$.filled||$.focused)}),fullWidth:f,inputComponent:u,multiline:g,ref:n,type:E},h,{classes:w({},p,{notchedOutline:null})}))});e0.muiName="Input";const t0=e0;function yR(e){return ke("MuiSelect",e)}const xR=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ai=xR;var Pm;const bR=["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"],wR=Q("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ai.select}`]:t.select},{[`&.${ai.select}`]:t[n.variant]},{[`&.${ai.error}`]:t.error},{[`&.${ai.multiple}`]:t.multiple}]}})(Zv,{[`&.${ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SR=Q("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${V(n.variant)}`],n.open&&t.iconOpen]}})(Jv),CR=Q("input",{shouldForwardProp:e=>mS(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 Rm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function kR(e){return e==null||typeof e=="string"&&!e.trim()}const ER=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${V(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Re(s,yR,t)},PR=b.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:l,autoWidth:s,children:a,className:c,defaultOpen:f,defaultValue:u,disabled:d,displayEmpty:g,error:v=!1,IconComponent:x,inputRef:E,labelId:h,MenuProps:p={},multiple:m,name:y,onBlur:C,onChange:k,onClose:S,onFocus:$,onOpen:_,open:R,readOnly:L,renderValue:M,SelectDisplayProps:z={},tabIndex:F,value:j,variant:A="standard"}=t,B=Z(t,bR),[O,N]=Po({controlled:j,default:u,name:"Select"}),[U,ne]=Po({controlled:R,default:f,name:"Select"}),ee=b.useRef(null),fe=b.useRef(null),[G,J]=b.useState(null),{current:oe}=b.useRef(R!=null),[Ee,se]=b.useState(),ce=tt(n,E),je=b.useCallback(q=>{fe.current=q,q&&J(q)},[]),de=G==null?void 0:G.parentNode;b.useImperativeHandle(ce,()=>({focus:()=>{fe.current.focus()},node:ee.current,value:O}),[O]),b.useEffect(()=>{f&&U&&G&&!oe&&(se(s?null:de.clientWidth),fe.current.focus())},[G,s]),b.useEffect(()=>{l&&fe.current.focus()},[l]),b.useEffect(()=>{if(!h)return;const q=kt(fe.current).getElementById(h);if(q){const pe=()=>{getSelection().isCollapsed&&fe.current.focus()};return q.addEventListener("click",pe),()=>{q.removeEventListener("click",pe)}}},[h]);const ue=(q,pe)=>{q?_&&_(pe):S&&S(pe),oe||(se(s?null:de.clientWidth),ne(q))},re=q=>{q.button===0&&(q.preventDefault(),fe.current.focus(),ue(!0,q))},ge=q=>{ue(!1,q)},ae=b.Children.toArray(a),X=q=>{const pe=ae.find(ze=>ze.props.value===q.target.value);pe!==void 0&&(N(pe.props.value),k&&k(q,pe))},it=q=>pe=>{let ze;if(pe.currentTarget.hasAttribute("tabindex")){if(m){ze=Array.isArray(O)?O.slice():[];const Yt=O.indexOf(q.props.value);Yt===-1?ze.push(q.props.value):ze.splice(Yt,1)}else ze=q.props.value;if(q.props.onClick&&q.props.onClick(pe),O!==ze&&(N(ze),k)){const Yt=pe.nativeEvent||pe,qr=new Yt.constructor(Yt.type,Yt);Object.defineProperty(qr,"target",{writable:!0,value:{value:ze,name:y}}),k(qr,q)}m||ue(!1,pe)}},ie=q=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(q.key)!==-1&&(q.preventDefault(),ue(!0,q))},Be=G!==null&&U,_e=q=>{!Be&&C&&(Object.defineProperty(q,"target",{writable:!0,value:{value:O,name:y}}),C(q))};delete B["aria-invalid"];let ve,Ye;const Me=[];let ye=!1;(Ms({value:O})||g)&&(M?ve=M(O):ye=!0);const dt=ae.map(q=>{if(!b.isValidElement(q))return null;let pe;if(m){if(!Array.isArray(O))throw new Error(xr(2));pe=O.some(ze=>Rm(ze,q.props.value)),pe&&ye&&Me.push(q.props.children)}else pe=Rm(O,q.props.value),pe&&ye&&(Ye=q.props.children);return b.cloneElement(q,{"aria-selected":pe?"true":"false",onClick:it(q),onKeyUp:ze=>{ze.key===" "&&ze.preventDefault(),q.props.onKeyUp&&q.props.onKeyUp(ze)},role:"option",selected:pe,value:void 0,"data-value":q.props.value})});ye&&(m?Me.length===0?ve=null:ve=Me.reduce((q,pe,ze)=>(q.push(pe),ze{const{classes:t}=e;return t},sf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dn(e)&&e!=="variant",slot:"Root"},IR=Q(Gv,sf)(""),_R=Q(t0,sf)(""),MR=Q(Hv,sf)(""),n0=b.forwardRef(function(t,n){const r=Oe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:s,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:f=Uv,id:u,input:d,inputProps:g,label:v,labelId:x,MenuProps:E,multiple:h=!1,native:p=!1,onClose:m,onOpen:y,open:C,renderValue:k,SelectDisplayProps:S,variant:$="outlined"}=r,_=Z(r,$R),R=p?aR:RR,L=Qo(),M=Go({props:r,muiFormControl:L,states:["variant","error"]}),z=M.variant||$,F=w({},r,{variant:z,classes:l}),j=OR(F),A=Z(j,TR),B=d||{standard:T.jsx(IR,{ownerState:F}),outlined:T.jsx(_R,{label:v,ownerState:F}),filled:T.jsx(MR,{ownerState:F})}[z],O=tt(n,B.ref);return T.jsx(b.Fragment,{children:b.cloneElement(B,w({inputComponent:R,inputProps:w({children:i,error:M.error,IconComponent:f,variant:z,type:void 0,multiple:h},p?{id:u}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:x,MenuProps:E,onClose:m,onOpen:y,open:C,renderValue:k,SelectDisplayProps:w({id:u},S)},g,{classes:g?Ct(A,g.classes):A},d?d.props.inputProps:{})},h&&p&&z==="outlined"?{notched:!0}:{},{ref:O,className:te(B.props.className,s,j.root)},!d&&{variant:z},_))})});n0.muiName="Select";const NR=n0;function LR(e){return ke("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const AR=["className","component","disableGutters","variant"],zR=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Re({root:["root",!n&&"gutters",r]},LR,t)},FR=Q("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>w({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),DR=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:s="regular"}=r,a=Z(r,AR),c=w({},r,{component:i,disableGutters:l,variant:s}),f=zR(c);return T.jsx(FR,w({as:i,className:te(f.root,o),ref:n,ownerState:c},a))}),jR=DR;function BR(e){return ke("MuiTextField",e)}$e("MuiTextField",["root"]);const UR=["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"],WR={standard:Gv,filled:Hv,outlined:t0},HR=e=>{const{classes:t}=e;return Re({root:["root"]},BR,t)},VR=Q(FE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KR=b.forwardRef(function(t,n){const r=Oe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:s,color:a="primary",defaultValue:c,disabled:f=!1,error:u=!1,FormHelperTextProps:d,fullWidth:g=!1,helperText:v,id:x,InputLabelProps:E,inputProps:h,InputProps:p,inputRef:m,label:y,maxRows:C,minRows:k,multiline:S=!1,name:$,onBlur:_,onChange:R,onFocus:L,placeholder:M,required:z=!1,rows:F,select:j=!1,SelectProps:A,type:B,value:O,variant:N="outlined"}=r,U=Z(r,UR),ne=w({},r,{autoFocus:i,color:a,disabled:f,error:u,fullWidth:g,multiline:S,required:z,select:j,variant:N}),ee=HR(ne),fe={};N==="outlined"&&(E&&typeof E.shrink<"u"&&(fe.notched=E.shrink),fe.label=y),j&&((!A||!A.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const G=Qi(x),J=v&&G?`${G}-helper-text`:void 0,oe=y&&G?`${G}-label`:void 0,Ee=WR[N],se=T.jsx(Ee,w({"aria-describedby":J,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:g,multiline:S,name:$,rows:F,maxRows:C,minRows:k,type:B,value:O,id:G,inputRef:m,onBlur:_,onChange:R,onFocus:L,placeholder:M,inputProps:h},fe,p));return T.jsxs(VR,w({className:te(ee.root,s),disabled:f,error:u,fullWidth:g,ref:n,required:z,color:a,variant:N,ownerState:ne},U,{children:[y!=null&&y!==""&&T.jsx(mP,w({htmlFor:G,id:oe},E,{children:y})),j?T.jsx(NR,w({"aria-describedby":J,id:G,labelId:oe,value:O,input:se},A,{children:l})):se,v&&T.jsx(GE,w({id:J},d,{children:v}))]}))}),GR=KR;var af={},r0={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})(r0);var QR=r0.exports,Eu={};const qR=s0(kS);var $m;function XR(){return $m||($m=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qR}(Eu)),Eu}var YR=QR;Object.defineProperty(af,"__esModule",{value:!0});var o0=af.default=void 0;e$(b);var ZR=YR(XR()),JR=T;function i0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(i0=function(r){return r?n:t})(e)}function e$(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=i0(t);if(n&&n.has(e))return n.get(e);var r={},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}var t$=(0,ZR.default)((0,JR.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");o0=af.default=t$;const n$=()=>T.jsx(SC,{position:"static",enableColorOnDark:!0,color:"primary",children:T.jsxs(jR,{variant:"dense",children:[T.jsx(Zi,{flexGrow:1,fontWeight:500,variant:"h6",children:"Goggle"}),T.jsx(qv,{href:"https://github.com/abiriadev/goggle",color:"inherit",underline:"none",children:T.jsx(o0,{})})]})});(()=>{const e=()=>{const r=new Error("not implemented");return r.code="ENOSYS",r};if(!globalThis.fs){let r="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(o,i){r+=n.decode(i);const l=r.lastIndexOf(` +`);return l!=-1&&(console.log(r.substring(0,l)),r=r.substring(l+1)),i.length},write(o,i,l,s,a,c){if(l!==0||s!==i.length||a!==null){c(e());return}const f=this.writeSync(o,i);c(null,f)},chmod(o,i,l){l(e())},chown(o,i,l,s){s(e())},close(o,i){i(e())},fchmod(o,i,l){l(e())},fchown(o,i,l,s){s(e())},fstat(o,i){i(e())},fsync(o,i){i(null)},ftruncate(o,i,l){l(e())},lchown(o,i,l,s){s(e())},link(o,i,l){l(e())},lstat(o,i){i(e())},mkdir(o,i,l){l(e())},open(o,i,l,s){s(e())},read(o,i,l,s,a,c){c(e())},readdir(o,i){i(e())},readlink(o,i){i(e())},rename(o,i,l){l(e())},rmdir(o,i){i(e())},stat(o,i){i(e())},symlink(o,i,l){l(e())},truncate(o,i,l){l(e())},unlink(o,i){i(e())},utimes(o,i,l,s){s(e())}}}if(globalThis.process||(globalThis.process={getuid(){return-1},getgid(){return-1},geteuid(){return-1},getegid(){return-1},getgroups(){throw e()},pid:-1,ppid:-1,umask(){throw e()},cwd(){throw e()},chdir(){throw e()}}),!globalThis.crypto)throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw new Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw new Error("globalThis.TextDecoder is not available, polyfill required");const t=new TextEncoder("utf-8"),n=new TextDecoder("utf-8");globalThis.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=u=>{u!==0&&console.warn("exit code:",u)},this._exitPromise=new Promise(u=>{this._resolveExitPromise=u}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const r=(u,d)=>{this.mem.setUint32(u+0,d,!0),this.mem.setUint32(u+4,Math.floor(d/4294967296),!0)},o=u=>{const d=this.mem.getUint32(u+0,!0),g=this.mem.getInt32(u+4,!0);return d+g*4294967296},i=u=>{const d=this.mem.getFloat64(u,!0);if(d===0)return;if(!isNaN(d))return d;const g=this.mem.getUint32(u,!0);return this._values[g]},l=(u,d)=>{if(typeof d=="number"&&d!==0){if(isNaN(d)){this.mem.setUint32(u+4,2146959360,!0),this.mem.setUint32(u,0,!0);return}this.mem.setFloat64(u,d,!0);return}if(d===void 0){this.mem.setFloat64(u,0,!0);return}let v=this._ids.get(d);v===void 0&&(v=this._idPool.pop(),v===void 0&&(v=this._values.length),this._values[v]=d,this._goRefCounts[v]=0,this._ids.set(d,v)),this._goRefCounts[v]++;let x=0;switch(typeof d){case"object":d!==null&&(x=1);break;case"string":x=2;break;case"symbol":x=3;break;case"function":x=4;break}this.mem.setUint32(u+4,2146959360|x,!0),this.mem.setUint32(u,v,!0)},s=u=>{const d=o(u+0),g=o(u+8);return new Uint8Array(this._inst.exports.mem.buffer,d,g)},a=u=>{const d=o(u+0),g=o(u+8),v=new Array(g);for(let x=0;x{const d=o(u+0),g=o(u+8);return n.decode(new DataView(this._inst.exports.mem.buffer,d,g))},f=Date.now()-performance.now();this.importObject={_gotest:{add:(u,d)=>u+d},gojs:{"runtime.wasmExit":u=>{u>>>=0;const d=this.mem.getInt32(u+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(d)},"runtime.wasmWrite":u=>{u>>>=0;const d=o(u+8),g=o(u+16),v=this.mem.getInt32(u+24,!0);fs.writeSync(d,new Uint8Array(this._inst.exports.mem.buffer,g,v))},"runtime.resetMemoryDataView":u=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":u=>{u>>>=0,r(u+8,(f+performance.now())*1e6)},"runtime.walltime":u=>{u>>>=0;const d=new Date().getTime();r(u+8,d/1e3),this.mem.setInt32(u+16,d%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":u=>{u>>>=0;const d=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(d,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(d);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},o(u+8))),this.mem.setInt32(u+16,d,!0)},"runtime.clearTimeoutEvent":u=>{u>>>=0;const d=this.mem.getInt32(u+8,!0);clearTimeout(this._scheduledTimeouts.get(d)),this._scheduledTimeouts.delete(d)},"runtime.getRandomData":u=>{u>>>=0,crypto.getRandomValues(s(u+8))},"syscall/js.finalizeRef":u=>{u>>>=0;const d=this.mem.getUint32(u+8,!0);if(this._goRefCounts[d]--,this._goRefCounts[d]===0){const g=this._values[d];this._values[d]=null,this._ids.delete(g),this._idPool.push(d)}},"syscall/js.stringVal":u=>{u>>>=0,l(u+24,c(u+8))},"syscall/js.valueGet":u=>{u>>>=0;const d=Reflect.get(i(u+8),c(u+16));u=this._inst.exports.getsp()>>>0,l(u+32,d)},"syscall/js.valueSet":u=>{u>>>=0,Reflect.set(i(u+8),c(u+16),i(u+32))},"syscall/js.valueDelete":u=>{u>>>=0,Reflect.deleteProperty(i(u+8),c(u+16))},"syscall/js.valueIndex":u=>{u>>>=0,l(u+24,Reflect.get(i(u+8),o(u+16)))},"syscall/js.valueSetIndex":u=>{u>>>=0,Reflect.set(i(u+8),o(u+16),i(u+24))},"syscall/js.valueCall":u=>{u>>>=0;try{const d=i(u+8),g=Reflect.get(d,c(u+16)),v=a(u+32),x=Reflect.apply(g,d,v);u=this._inst.exports.getsp()>>>0,l(u+56,x),this.mem.setUint8(u+64,1)}catch(d){u=this._inst.exports.getsp()>>>0,l(u+56,d),this.mem.setUint8(u+64,0)}},"syscall/js.valueInvoke":u=>{u>>>=0;try{const d=i(u+8),g=a(u+16),v=Reflect.apply(d,void 0,g);u=this._inst.exports.getsp()>>>0,l(u+40,v),this.mem.setUint8(u+48,1)}catch(d){u=this._inst.exports.getsp()>>>0,l(u+40,d),this.mem.setUint8(u+48,0)}},"syscall/js.valueNew":u=>{u>>>=0;try{const d=i(u+8),g=a(u+16),v=Reflect.construct(d,g);u=this._inst.exports.getsp()>>>0,l(u+40,v),this.mem.setUint8(u+48,1)}catch(d){u=this._inst.exports.getsp()>>>0,l(u+40,d),this.mem.setUint8(u+48,0)}},"syscall/js.valueLength":u=>{u>>>=0,r(u+16,parseInt(i(u+8).length))},"syscall/js.valuePrepareString":u=>{u>>>=0;const d=t.encode(String(i(u+8)));l(u+16,d),r(u+24,d.length)},"syscall/js.valueLoadString":u=>{u>>>=0;const d=i(u+8);s(u+16).set(d)},"syscall/js.valueInstanceOf":u=>{u>>>=0,this.mem.setUint8(u+24,i(u+8)instanceof i(u+16)?1:0)},"syscall/js.copyBytesToGo":u=>{u>>>=0;const d=s(u+8),g=i(u+32);if(!(g instanceof Uint8Array||g instanceof Uint8ClampedArray)){this.mem.setUint8(u+48,0);return}const v=g.subarray(0,d.length);d.set(v),r(u+40,v.length),this.mem.setUint8(u+48,1)},"syscall/js.copyBytesToJS":u=>{u>>>=0;const d=i(u+8),g=s(u+16);if(!(d instanceof Uint8Array||d instanceof Uint8ClampedArray)){this.mem.setUint8(u+48,0);return}const v=g.subarray(0,d.length);d.set(v),r(u+40,v.length),this.mem.setUint8(u+48,1)},debug:u=>{console.log(u)}}}}async run(r){if(!(r instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=r,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let o=4096;const i=u=>{const d=o,g=t.encode(u+"\0");return new Uint8Array(this.mem.buffer,o,g.length).set(g),o+=g.length,o%8!==0&&(o+=8-o%8),d},l=this.argv.length,s=[];this.argv.forEach(u=>{s.push(i(u))}),s.push(0),Object.keys(this.env).sort().forEach(u=>{s.push(i(`${u}=${this.env[u]}`))}),s.push(0);const c=o;if(s.forEach(u=>{this.mem.setUint32(o,u,!0),this.mem.setUint32(o+4,0,!0),o+=8}),o>=12288)throw new Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(l,c),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(r){const o=this;return function(){const i={id:r,this:this,args:arguments};return o._pendingEvent=i,o._resume(),i.result}}}})();const r$="/syntaxck.pack.wasm",o$=async()=>{const e=new window.Go,t=await WebAssembly.instantiateStreaming(fetch(r$),e.importObject);e.run(t.instance)},i$="http://goggle-ne6niy4rmq-uc.a.run.app",l$=async e=>await(await fetch(`${i$}/search`,{method:"POST",body:JSON.stringify({q:e})})).json(),s$=()=>{const e=Ia(),[t,n]=b.useState(!1),[r,o]=b.useState([]),[i,l]=b.useState("");return b.useEffect(()=>{(async()=>(await o$(),n(!0)))()},[]),b.useEffect(()=>{t&&window.syntaxck(i)&&(async()=>{try{const s=await l$(i);o(s.items)}catch(s){console.error(s)}})()},[i]),T.jsx(dE,{freeSolo:!0,disableCloseOnSelect:!0,sx:{width:600},options:r,filterOptions:s=>s,getOptionLabel:s=>typeof s=="string"?s:s.sig,componentsProps:{popper:{modifiers:[{name:"flip",enabled:!1},{name:"preventOverflow",enabled:!1}]}},onInputChange:(s,a)=>l(a),onChange:(s,a,c)=>{c==="selectOption"&&window.open(typeof a=="string"?a:a==null?void 0:a.link,"_blank")},renderInput:s=>T.jsx(GR,{sx:{"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:e.palette.primary.main}},"& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:e.palette.primary.main}}},...s}),renderOption:(s,a)=>T.jsx("li",{...s,children:T.jsxs(qv,{href:a.link,underline:"none",target:"_blank",children:[T.jsx(Zi,{color:"primary.light",children:a.sig}),T.jsx(Zi,{paragraph:!0,noWrap:!0,variant:"caption",color:"#bbbbbb",sx:{fontWeight:300},children:a.summary})]})})})};function a$(){return T.jsxs(T.Fragment,{children:[T.jsx(n$,{}),T.jsxs(jE,{direction:"column",alignItems:"center",spacing:3,marginTop:18,children:[T.jsx(Zi,{variant:"h1",color:"primary.main",fontFamily:"Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;",fontWeight:"bold",fontSize:"3.2em",children:"Goggle"}),T.jsx(s$,{})]})]})}const u$=Cv({palette:{mode:"dark",primary:{main:"#007d9c",light:"#50b7e0"}}});Ru.createRoot(document.getElementById("root")).render(T.jsx(xn.StrictMode,{children:T.jsx(vS,{theme:u$,children:T.jsx(a$,{})})})); diff --git a/docs/assets/index-jucHwS0F.css b/docs/assets/index-jucHwS0F.css new file mode 100644 index 0000000..f882a2a --- /dev/null +++ b/docs/assets/index-jucHwS0F.css @@ -0,0 +1 @@ +:root{color-scheme:light dark;background-color:#202224}body{margin:0}#root{width:100vw;height:100vh} diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..2bf5ceb --- /dev/null +++ b/docs/index.html @@ -0,0 +1,16 @@ + + + + + + Goggle + + + + +
+ + diff --git a/frontend/src/goggle.ts b/frontend/src/goggle.ts index b2799ce..82a1b0f 100644 --- a/frontend/src/goggle.ts +++ b/frontend/src/goggle.ts @@ -9,7 +9,8 @@ export interface ResultItem { link: string } -const host = '/api' +// const host = '/api' +const host = 'http://goggle-ne6niy4rmq-uc.a.run.app' export const query = async ( query: string,