@jhelom/react-mui-message-dialog 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,197 @@
1
+ (function(ye,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react"),require("@mui/material")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material"],D):(ye=typeof globalThis<"u"?globalThis:ye||self,D(ye.UiLib1={},ye.React,ye.MaterialUI))})(this,function(ye,D,ke){"use strict";var Fc=Object.defineProperty;var Vc=(ye,D,ke)=>D in ye?Fc(ye,D,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ye[D]=ke;var vt=(ye,D,ke)=>Vc(ye,typeof D!="symbol"?D+"":D,ke);function To(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=To(D);function Co(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},et={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ur;function xo(){if(Ur)return et;Ur=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return et.Fragment=t,et.jsx=r,et.jsxs=r,et}var tt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Wr;function wo(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===s?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case l:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case v:return"Suspense";case $:return"SuspenseList";case ee:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case b:return"Portal";case O:return(d.displayName||"Context")+".Provider";case A:return(d._context.displayName||"Context")+".Consumer";case T:var E=d.render;return d=d.displayName,d||(d=E.displayName||E.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case _:return E=d.displayName||null,E!==null?E:e(d.type)||"Memo";case G:E=d._payload,d=d._init;try{return e(d(E))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var E=!1}catch{E=!0}if(E){E=console;var R=E.error,I=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return R.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I),t(d)}}function n(d){if(d===l)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===G)return"<...>";try{var E=e(d);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function o(){var d=x.A;return d===null?null:d.getOwner()}function i(){return Error("react-stack-top-frame")}function a(d){if(M.call(d,"key")){var E=Object.getOwnPropertyDescriptor(d,"key").get;if(E&&E.isReactWarning)return!1}return d.key!==void 0}function c(d,E){function R(){ae||(ae=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}R.isReactWarning=!0,Object.defineProperty(d,"key",{get:R,configurable:!0})}function u(){var d=e(this.type);return ne[d]||(ne[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function f(d,E,R,I,N,B,F,L){return R=B.ref,d={$$typeof:C,type:d,key:E,props:B,_owner:N},(R!==void 0?R:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:u}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function m(d,E,R,I,N,B,F,L){var j=E.children;if(j!==void 0)if(I)if(V(j)){for(I=0;I<j.length;I++)p(j[I]);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(j);if(M.call(E,"key")){j=e(d);var U=Object.keys(E).filter(function(de){return de!=="key"});I=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",ie[j+I]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,I,j,U,j),ie[j+I]=!0)}if(j=null,R!==void 0&&(r(R),j=""+R),a(E)&&(r(E.key),j=""+E.key),"key"in E){R={};for(var W in E)W!=="key"&&(R[W]=E[W])}else R=E;return j&&c(R,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,j,B,N,o(),R,F,L)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===C&&d._store&&(d._store.validated=1)}var h=D,C=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),s=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,V=Array.isArray,Y=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(d){return d()}};var ae,ne={},fe=h["react-stack-bottom-frame"].bind(h,i)(),ge=Y(n(i)),ie={};tt.Fragment=l,tt.jsx=function(d,E,R,I,N){var B=1e4>x.recentlyCreatedOwnerStacks++;return m(d,E,R,!1,I,N,B?Error("react-stack-top-frame"):fe,B?Y(n(d)):ge)},tt.jsxs=function(d,E,R,I,N){var B=1e4>x.recentlyCreatedOwnerStacks++;return m(d,E,R,!0,I,N,B?Error("react-stack-top-frame"):fe,B?Y(n(d)):ge)}}()),tt}process.env.NODE_ENV==="production"?Zt.exports=xo():Zt.exports=wo();var q=Zt.exports;const Yr=e=>e,Oo=(()=>{let e=Yr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yr}}})();function De(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":De(7));return e.charAt(0).toUpperCase()+e.slice(1)}var er={exports:{}},St={exports:{}},X={};/** @license React v16.13.1
23
+ * react-is.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */var qr;function ko(){if(qr)return X;qr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(v){if(typeof v=="object"&&v!==null){var $=v.$$typeof;switch($){case t:switch(v=v.type,v){case u:case f:case n:case i:case o:case p:return v;default:switch(v=v&&v.$$typeof,v){case c:case m:case b:case C:case a:return v;default:return $}}case r:return $}}}function T(v){return O(v)===f}return X.AsyncMode=u,X.ConcurrentMode=f,X.ContextConsumer=c,X.ContextProvider=a,X.Element=t,X.ForwardRef=m,X.Fragment=n,X.Lazy=b,X.Memo=C,X.Portal=r,X.Profiler=i,X.StrictMode=o,X.Suspense=p,X.isAsyncMode=function(v){return T(v)||O(v)===u},X.isConcurrentMode=T,X.isContextConsumer=function(v){return O(v)===c},X.isContextProvider=function(v){return O(v)===a},X.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},X.isForwardRef=function(v){return O(v)===m},X.isFragment=function(v){return O(v)===n},X.isLazy=function(v){return O(v)===b},X.isMemo=function(v){return O(v)===C},X.isPortal=function(v){return O(v)===r},X.isProfiler=function(v){return O(v)===i},X.isStrictMode=function(v){return O(v)===o},X.isSuspense=function(v){return O(v)===p},X.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===f||v===i||v===o||v===p||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===b||v.$$typeof===C||v.$$typeof===a||v.$$typeof===c||v.$$typeof===m||v.$$typeof===S||v.$$typeof===w||v.$$typeof===A||v.$$typeof===l)},X.typeOf=O,X}var J={};/** @license React v16.13.1
30
+ * react-is.development.js
31
+ *
32
+ * Copyright (c) Facebook, Inc. and its affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */var Gr;function Ro(){return Gr||(Gr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(k){return typeof k=="string"||typeof k=="function"||k===n||k===f||k===i||k===o||k===p||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===b||k.$$typeof===C||k.$$typeof===a||k.$$typeof===c||k.$$typeof===m||k.$$typeof===S||k.$$typeof===w||k.$$typeof===A||k.$$typeof===l)}function T(k){if(typeof k=="object"&&k!==null){var Oe=k.$$typeof;switch(Oe){case t:var Le=k.type;switch(Le){case u:case f:case n:case i:case o:case p:return Le;default:var Jt=Le&&Le.$$typeof;switch(Jt){case c:case m:case b:case C:case a:return Jt;default:return Oe}}case r:return Oe}}}var v=u,$=f,_=c,G=a,ee=t,s=m,x=n,M=b,V=C,Y=r,ae=i,ne=o,fe=p,ge=!1;function ie(k){return ge||(ge=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(k)||T(k)===u}function d(k){return T(k)===f}function E(k){return T(k)===c}function R(k){return T(k)===a}function I(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function N(k){return T(k)===m}function B(k){return T(k)===n}function F(k){return T(k)===b}function L(k){return T(k)===C}function j(k){return T(k)===r}function U(k){return T(k)===i}function W(k){return T(k)===o}function de(k){return T(k)===p}J.AsyncMode=v,J.ConcurrentMode=$,J.ContextConsumer=_,J.ContextProvider=G,J.Element=ee,J.ForwardRef=s,J.Fragment=x,J.Lazy=M,J.Memo=V,J.Portal=Y,J.Profiler=ae,J.StrictMode=ne,J.Suspense=fe,J.isAsyncMode=ie,J.isConcurrentMode=d,J.isContextConsumer=E,J.isContextProvider=R,J.isElement=I,J.isForwardRef=N,J.isFragment=B,J.isLazy=F,J.isMemo=L,J.isPortal=j,J.isProfiler=U,J.isStrictMode=W,J.isSuspense=de,J.isValidElementType=O,J.typeOf=T}()),J}var Hr;function tr(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?St.exports=ko():St.exports=Ro()),St.exports}/*
37
+ object-assign
38
+ (c) Sindre Sorhus
39
+ @license MIT
40
+ */var rr,Kr;function Po(){if(Kr)return rr;Kr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rr=o()?Object.assign:function(i,a){for(var c,u=n(i),f,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},rr}var nr,Xr;function or(){if(Xr)return nr;Xr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nr=e,nr}var ir,Jr;function Qr(){return Jr||(Jr=1,ir=Function.call.bind(Object.prototype.hasOwnProperty)),ir}var ar,Zr;function $o(){if(Zr)return ar;Zr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=or(),r={},n=Qr();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var p;try{if(typeof i[m]!="function"){var h=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[m](a,m,u,c,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var C=f?f():"";e("Failed "+c+" type: "+p.message+(C??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ar=o,ar}var sr,en;function _o(){if(en)return sr;en=1;var e=tr(),t=Po(),r=or(),n=Qr(),o=$o(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return sr=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(d){var E=d&&(f&&d[f]||d[m]);if(typeof E=="function")return E}var h="<<anonymous>>",C={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:A(),arrayOf:O,element:T(),elementType:v(),instanceOf:$,node:s(),objectOf:G,oneOf:_,oneOfType:ee,shape:M,exact:V};function b(d,E){return d===E?d!==0||1/d===1/E:d!==d&&E!==E}function l(d,E){this.message=d,this.data=E&&typeof E=="object"?E:{},this.stack=""}l.prototype=Error.prototype;function S(d){if(process.env.NODE_ENV!=="production")var E={},R=0;function I(B,F,L,j,U,W,de){if(j=j||h,W=W||L,de!==r){if(u){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=j+":"+L;!E[Oe]&&R<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[Oe]=!0,R++)}}return F[L]==null?B?F[L]===null?new l("The "+U+" `"+W+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new l("The "+U+" `"+W+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:d(F,L,j,U,W)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function w(d){function E(R,I,N,B,F,L){var j=R[I],U=ne(j);if(U!==d){var W=fe(j);return new l("Invalid "+B+" `"+F+"` of type "+("`"+W+"` supplied to `"+N+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return S(E)}function A(){return S(a)}function O(d){function E(R,I,N,B,F){if(typeof d!="function")return new l("Property `"+F+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var L=R[I];if(!Array.isArray(L)){var j=ne(L);return new l("Invalid "+B+" `"+F+"` of type "+("`"+j+"` supplied to `"+N+"`, expected an array."))}for(var U=0;U<L.length;U++){var W=d(L,U,N,B,F+"["+U+"]",r);if(W instanceof Error)return W}return null}return S(E)}function T(){function d(E,R,I,N,B){var F=E[R];if(!c(F)){var L=ne(F);return new l("Invalid "+N+" `"+B+"` of type "+("`"+L+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return S(d)}function v(){function d(E,R,I,N,B){var F=E[R];if(!e.isValidElementType(F)){var L=ne(F);return new l("Invalid "+N+" `"+B+"` of type "+("`"+L+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return S(d)}function $(d){function E(R,I,N,B,F){if(!(R[I]instanceof d)){var L=d.name||h,j=ie(R[I]);return new l("Invalid "+B+" `"+F+"` of type "+("`"+j+"` supplied to `"+N+"`, expected ")+("instance of `"+L+"`."))}return null}return S(E)}function _(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function E(R,I,N,B,F){for(var L=R[I],j=0;j<d.length;j++)if(b(L,d[j]))return null;var U=JSON.stringify(d,function(de,k){var Oe=fe(k);return Oe==="symbol"?String(k):k});return new l("Invalid "+B+" `"+F+"` of value `"+String(L)+"` "+("supplied to `"+N+"`, expected one of "+U+"."))}return S(E)}function G(d){function E(R,I,N,B,F){if(typeof d!="function")return new l("Property `"+F+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var L=R[I],j=ne(L);if(j!=="object")return new l("Invalid "+B+" `"+F+"` of type "+("`"+j+"` supplied to `"+N+"`, expected an object."));for(var U in L)if(n(L,U)){var W=d(L,U,N,B,F+"."+U,r);if(W instanceof Error)return W}return null}return S(E)}function ee(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var E=0;E<d.length;E++){var R=d[E];if(typeof R!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(R)+" at index "+E+"."),a}function I(N,B,F,L,j){for(var U=[],W=0;W<d.length;W++){var de=d[W],k=de(N,B,F,L,j,r);if(k==null)return null;k.data&&n(k.data,"expectedType")&&U.push(k.data.expectedType)}var Oe=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new l("Invalid "+L+" `"+j+"` supplied to "+("`"+F+"`"+Oe+"."))}return S(I)}function s(){function d(E,R,I,N,B){return Y(E[R])?null:new l("Invalid "+N+" `"+B+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return S(d)}function x(d,E,R,I,N){return new l((d||"React class")+": "+E+" type `"+R+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function M(d){function E(R,I,N,B,F){var L=R[I],j=ne(L);if(j!=="object")return new l("Invalid "+B+" `"+F+"` of type `"+j+"` "+("supplied to `"+N+"`, expected `object`."));for(var U in d){var W=d[U];if(typeof W!="function")return x(N,B,F,U,fe(W));var de=W(L,U,N,B,F+"."+U,r);if(de)return de}return null}return S(E)}function V(d){function E(R,I,N,B,F){var L=R[I],j=ne(L);if(j!=="object")return new l("Invalid "+B+" `"+F+"` of type `"+j+"` "+("supplied to `"+N+"`, expected `object`."));var U=t({},R[I],d);for(var W in U){var de=d[W];if(n(d,W)&&typeof de!="function")return x(N,B,F,W,fe(de));if(!de)return new l("Invalid "+B+" `"+F+"` key `"+W+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(R[I],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(d),null," "));var k=de(L,W,N,B,F+"."+W,r);if(k)return k}return null}return S(E)}function Y(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(Y);if(d===null||c(d))return!0;var E=p(d);if(E){var R=E.call(d),I;if(E!==d.entries){for(;!(I=R.next()).done;)if(!Y(I.value))return!1}else for(;!(I=R.next()).done;){var N=I.value;if(N&&!Y(N[1]))return!1}}else return!1;return!0;default:return!1}}function ae(d,E){return d==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function ne(d){var E=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":ae(E,d)?"symbol":E}function fe(d){if(typeof d>"u"||d===null)return""+d;var E=ne(d);if(E==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return E}function ge(d){var E=fe(d);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function ie(d){return!d.constructor||!d.constructor.name?h:d.constructor.name}return C.checkPropTypes=o,C.resetWarningCache=o.resetWarningCache,C.PropTypes=C,C},sr}var cr,tn;function Ao(){if(tn)return cr;tn=1;var e=or();function t(){}function r(){}return r.resetWarningCache=t,cr=function(){function n(a,c,u,f,m,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},cr}if(process.env.NODE_ENV!=="production"){var Io=tr(),Mo=!0;er.exports=_o()(Io.isElement,Mo)}else er.exports=Ao()();var No=er.exports;const g=Co(No);function rn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=rn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=rn(e))&&(n&&(n+=" "),n+=t);return n}function Et(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const f=i[u];f&&(a+=(c===!0?"":" ")+t(f),c=!1,r&&r[f]&&(a+=" "+r[f]))}n[o]=a}return n}var lr={exports:{}},Q={};/**
42
+ * @license React
43
+ * react-is.production.js
44
+ *
45
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */var nn;function jo(){if(nn)return Q;nn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function b(l){if(typeof l=="object"&&l!==null){var S=l.$$typeof;switch(S){case e:switch(l=l.type,l){case r:case o:case n:case u:case f:case h:return l;default:switch(l=l&&l.$$typeof,l){case a:case c:case p:case m:return l;case i:return l;default:return S}}case t:return S}}}return Q.ContextConsumer=i,Q.ContextProvider=a,Q.Element=e,Q.ForwardRef=c,Q.Fragment=r,Q.Lazy=p,Q.Memo=m,Q.Portal=t,Q.Profiler=o,Q.StrictMode=n,Q.Suspense=u,Q.SuspenseList=f,Q.isContextConsumer=function(l){return b(l)===i},Q.isContextProvider=function(l){return b(l)===a},Q.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},Q.isForwardRef=function(l){return b(l)===c},Q.isFragment=function(l){return b(l)===r},Q.isLazy=function(l){return b(l)===p},Q.isMemo=function(l){return b(l)===m},Q.isPortal=function(l){return b(l)===t},Q.isProfiler=function(l){return b(l)===o},Q.isStrictMode=function(l){return b(l)===n},Q.isSuspense=function(l){return b(l)===u},Q.isSuspenseList=function(l){return b(l)===f},Q.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===u||l===f||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===m||l.$$typeof===a||l.$$typeof===i||l.$$typeof===c||l.$$typeof===C||l.getModuleId!==void 0)},Q.typeOf=b,Q}var Z={};/**
50
+ * @license React
51
+ * react-is.development.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var on;function Do(){return on||(on=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(typeof l=="object"&&l!==null){var S=l.$$typeof;switch(S){case t:switch(l=l.type,l){case n:case i:case o:case f:case m:case C:return l;default:switch(l=l&&l.$$typeof,l){case c:case u:case h:case p:return l;case a:return l;default:return S}}case r:return S}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Z.ContextConsumer=a,Z.ContextProvider=c,Z.Element=t,Z.ForwardRef=u,Z.Fragment=n,Z.Lazy=h,Z.Memo=p,Z.Portal=r,Z.Profiler=i,Z.StrictMode=o,Z.Suspense=f,Z.SuspenseList=m,Z.isContextConsumer=function(l){return e(l)===a},Z.isContextProvider=function(l){return e(l)===c},Z.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},Z.isForwardRef=function(l){return e(l)===u},Z.isFragment=function(l){return e(l)===n},Z.isLazy=function(l){return e(l)===h},Z.isMemo=function(l){return e(l)===p},Z.isPortal=function(l){return e(l)===r},Z.isProfiler=function(l){return e(l)===i},Z.isStrictMode=function(l){return e(l)===o},Z.isSuspense=function(l){return e(l)===f},Z.isSuspenseList=function(l){return e(l)===m},Z.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===i||l===o||l===f||l===m||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===p||l.$$typeof===c||l.$$typeof===a||l.$$typeof===u||l.$$typeof===b||l.getModuleId!==void 0)},Z.typeOf=e}()),Z}process.env.NODE_ENV==="production"?lr.exports=jo():lr.exports=Do();var Tt=lr.exports;function Ae(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function an(e){if(P.isValidElement(e)||Tt.isValidElementType(e)||!Ae(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=an(e[r])}),t}function Se(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Ae(e)&&Ae(t)&&Object.keys(t).forEach(o=>{P.isValidElement(t[o])||Tt.isValidElementType(t[o])?n[o]=t[o]:Ae(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ae(e[o])?n[o]=Se(e[o],t[o],r):r.clone?n[o]=Ae(t[o])?an(t[o]):t[o]:n[o]=t[o]}),n}function rt(e,t){return t?Se(e,t,{clone:!1}):e}const Be=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{};function Bo(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=n.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Fo(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Vo(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
58
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:De(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function Lo(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Ct={xs:0,sm:600,md:900,lg:1200,xl:1536},sn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ct[e]}px)`},zo={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ct[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ie(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||sn;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||sn;return Object.keys(t).reduce((a,c)=>{if(Fo(i.keys,c)){const u=Vo(n.containerQueries?n:zo,c);u&&(a[u]=r(t[c],c))}else if(Object.keys(i.values||Ct).includes(c)){const u=i.up(c);a[u]=r(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return r(t)}function Uo(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Wo(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function xt(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function wt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=xt(e,r)||n,t&&(o=t(o,n,e)),o}function le(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,f=xt(u,n)||{};return Ie(a,c,p=>{let h=wt(f,o,p);return p===h&&typeof p=="string"&&(h=wt(f,o,`${t}${p==="default"?"":pe(p)}`,p)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Be}:{},i.filterProps=[t],i}function Yo(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const qo={m:"margin",p:"padding"},Go={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ho=Yo(e=>{if(e.length>2)if(cn[e])e=cn[e];else return[e];const[t,r]=e.split(""),n=qo[t],o=Go[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ot=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ko=[...Ot,...kt];function nt(e,t,r,n){const o=xt(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
59
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
60
+ `)));const c=o[a];return i>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
61
+ `)),()=>{})}function ur(e){return nt(e,"spacing",8,"spacing")}function ot(e,t){return typeof t=="string"||t==null?t:e(t)}function Xo(e,t){return r=>e.reduce((n,o)=>(n[o]=ot(t,r),n),{})}function Jo(e,t,r,n){if(!t.includes(r))return null;const o=Ho(r),i=Xo(o,n),a=e[r];return Ie(e,a,i)}function ln(e,t){const r=ur(e.theme);return Object.keys(e).map(n=>Jo(e,t,n,r)).reduce(rt,{})}function se(e){return ln(e,Ot)}se.propTypes=process.env.NODE_ENV!=="production"?Ot.reduce((e,t)=>(e[t]=Be,e),{}):{},se.filterProps=Ot;function ce(e){return ln(e,kt)}ce.propTypes=process.env.NODE_ENV!=="production"?kt.reduce((e,t)=>(e[t]=Be,e),{}):{},ce.filterProps=kt,process.env.NODE_ENV!=="production"&&Ko.reduce((e,t)=>(e[t]=Be,e),{});function Rt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?rt(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ce(e){return typeof e!="number"?e:`${e}px solid`}function xe(e,t){return le({prop:e,themeKey:"borders",transform:t})}const Qo=xe("border",Ce),Zo=xe("borderTop",Ce),ei=xe("borderRight",Ce),ti=xe("borderBottom",Ce),ri=xe("borderLeft",Ce),ni=xe("borderColor"),oi=xe("borderTopColor"),ii=xe("borderRightColor"),ai=xe("borderBottomColor"),si=xe("borderLeftColor"),ci=xe("outline",Ce),li=xe("outlineColor"),Pt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ot(t,n)});return Ie(e,e.borderRadius,r)}return null};Pt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Be}:{},Pt.filterProps=["borderRadius"],Rt(Qo,Zo,ei,ti,ri,ni,oi,ii,ai,si,Pt,ci,li);const $t=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nt(e.theme,"spacing",8,"gap"),r=n=>({gap:ot(t,n)});return Ie(e,e.gap,r)}return null};$t.propTypes=process.env.NODE_ENV!=="production"?{gap:Be}:{},$t.filterProps=["gap"];const _t=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ot(t,n)});return Ie(e,e.columnGap,r)}return null};_t.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Be}:{},_t.filterProps=["columnGap"];const At=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ot(t,n)});return Ie(e,e.rowGap,r)}return null};At.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Be}:{},At.filterProps=["rowGap"];const ui=le({prop:"gridColumn"}),fi=le({prop:"gridRow"}),di=le({prop:"gridAutoFlow"}),pi=le({prop:"gridAutoColumns"}),mi=le({prop:"gridAutoRows"}),hi=le({prop:"gridTemplateColumns"}),gi=le({prop:"gridTemplateRows"}),yi=le({prop:"gridTemplateAreas"}),bi=le({prop:"gridArea"});Rt($t,_t,At,ui,fi,di,pi,mi,hi,gi,yi,bi);function Ue(e,t){return t==="grey"?t:e}const vi=le({prop:"color",themeKey:"palette",transform:Ue}),Si=le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ue}),Ei=le({prop:"backgroundColor",themeKey:"palette",transform:Ue});Rt(vi,Si,Ei);function Ee(e){return e<=1&&e!==0?`${e*100}%`:e}const Ti=le({prop:"width",transform:Ee}),fr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,c,u;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||Ct[r];return n?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ee(r)}};return Ie(e,e.maxWidth,t)}return null};fr.filterProps=["maxWidth"];const Ci=le({prop:"minWidth",transform:Ee}),xi=le({prop:"height",transform:Ee}),wi=le({prop:"maxHeight",transform:Ee}),Oi=le({prop:"minHeight",transform:Ee});le({prop:"size",cssProperty:"width",transform:Ee}),le({prop:"size",cssProperty:"height",transform:Ee});const ki=le({prop:"boxSizing"});Rt(Ti,fr,Ci,xi,wi,Oi,ki);const It={border:{themeKey:"borders",transform:Ce},borderTop:{themeKey:"borders",transform:Ce},borderRight:{themeKey:"borders",transform:Ce},borderBottom:{themeKey:"borders",transform:Ce},borderLeft:{themeKey:"borders",transform:Ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pt},color:{themeKey:"palette",transform:Ue},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ue},backgroundColor:{themeKey:"palette",transform:Ue},p:{style:ce},pt:{style:ce},pr:{style:ce},pb:{style:ce},pl:{style:ce},px:{style:ce},py:{style:ce},padding:{style:ce},paddingTop:{style:ce},paddingRight:{style:ce},paddingBottom:{style:ce},paddingLeft:{style:ce},paddingX:{style:ce},paddingY:{style:ce},paddingInline:{style:ce},paddingInlineStart:{style:ce},paddingInlineEnd:{style:ce},paddingBlock:{style:ce},paddingBlockStart:{style:ce},paddingBlockEnd:{style:ce},m:{style:se},mt:{style:se},mr:{style:se},mb:{style:se},ml:{style:se},mx:{style:se},my:{style:se},margin:{style:se},marginTop:{style:se},marginRight:{style:se},marginBottom:{style:se},marginLeft:{style:se},marginX:{style:se},marginY:{style:se},marginInline:{style:se},marginInlineStart:{style:se},marginInlineEnd:{style:se},marginBlock:{style:se},marginBlockStart:{style:se},marginBlockEnd:{style:se},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:$t},rowGap:{style:At},columnGap:{style:_t},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ee},maxWidth:{style:fr},minWidth:{transform:Ee},height:{transform:Ee},maxHeight:{transform:Ee},minHeight:{transform:Ee},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ri(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Pi(e,t){return typeof e=="function"?e(t):e}function $i(){function e(r,n,o,i){const a={[r]:n,theme:o},c=i[r];if(!c)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:m,style:p}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const h=xt(o,f)||{};return p?p(a):Ie(a,n,b=>{let l=wt(h,m,b);return b===l&&typeof b=="string"&&(l=wt(h,m,`${r}${b==="default"?"":pe(b)}`,b)),u===!1?l:{[u]:l}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=o.unstable_sxConfig??It;function a(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const f=Uo(o.breakpoints),m=Object.keys(f);let p=f;return Object.keys(u).forEach(h=>{const C=Pi(u[h],o);if(C!=null)if(typeof C=="object")if(i[h])p=rt(p,e(h,C,o,i));else{const b=Ie({theme:o},C,l=>({[h]:l}));Ri(b,C)?p[h]=t({sx:C,theme:o}):p=rt(p,b)}else p=rt(p,e(h,C,o,i))}),Bo(o,Wo(m,p))}return Array.isArray(n)?n.map(a):a(n)}return t}const We=$i();We.filterProps=["sx"];function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mt.apply(null,arguments)}function _i(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ai(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ii=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ai(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_i(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),he="-ms-",Nt="-moz-",H="-webkit-",un="comm",dr="rule",pr="decl",Mi="@import",fn="@keyframes",Ni="@layer",ji=Math.abs,jt=String.fromCharCode,Di=Object.assign;function Bi(e,t){return me(e,0)^45?(((t<<2^me(e,0))<<2^me(e,1))<<2^me(e,2))<<2^me(e,3):0}function dn(e){return e.trim()}function Fi(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function mr(e,t){return e.indexOf(t)}function me(e,t){return e.charCodeAt(t)|0}function it(e,t,r){return e.slice(t,r)}function Re(e){return e.length}function hr(e){return e.length}function Dt(e,t){return t.push(e),e}function Vi(e,t){return e.map(t).join("")}var Bt=1,Ye=1,pn=0,be=0,ue=0,qe="";function Ft(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Bt,column:Ye,length:a,return:""}}function at(e,t){return Di(Ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function Li(){return ue}function zi(){return ue=be>0?me(qe,--be):0,Ye--,ue===10&&(Ye=1,Bt--),ue}function Te(){return ue=be<pn?me(qe,be++):0,Ye++,ue===10&&(Ye=1,Bt++),ue}function Pe(){return me(qe,be)}function Vt(){return be}function st(e,t){return it(qe,e,t)}function ct(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mn(e){return Bt=Ye=1,pn=Re(qe=e),be=0,[]}function hn(e){return qe="",e}function Lt(e){return dn(st(be-1,gr(e===91?e+2:e===40?e+1:e)))}function Ui(e){for(;(ue=Pe())&&ue<33;)Te();return ct(e)>2||ct(ue)>3?"":" "}function Wi(e,t){for(;--t&&Te()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return st(e,Vt()+(t<6&&Pe()==32&&Te()==32))}function gr(e){for(;Te();)switch(ue){case e:return be;case 34:case 39:e!==34&&e!==39&&gr(ue);break;case 40:e===41&&gr(e);break;case 92:Te();break}return be}function Yi(e,t){for(;Te()&&e+ue!==57;)if(e+ue===84&&Pe()===47)break;return"/*"+st(t,be-1)+"*"+jt(e===47?e:Te())}function qi(e){for(;!ct(Pe());)Te();return st(e,be)}function Gi(e){return hn(zt("",null,null,null,[""],e=mn(e),0,[0],e))}function zt(e,t,r,n,o,i,a,c,u){for(var f=0,m=0,p=a,h=0,C=0,b=0,l=1,S=1,w=1,A=0,O="",T=o,v=i,$=n,_=O;S;)switch(b=A,A=Te()){case 40:if(b!=108&&me(_,p-1)==58){mr(_+=K(Lt(A),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:_+=Lt(A);break;case 9:case 10:case 13:case 32:_+=Ui(b);break;case 92:_+=Wi(Vt()-1,7);continue;case 47:switch(Pe()){case 42:case 47:Dt(Hi(Yi(Te(),Vt()),t,r),u);break;default:_+="/"}break;case 123*l:c[f++]=Re(_)*w;case 125*l:case 59:case 0:switch(A){case 0:case 125:S=0;case 59+m:w==-1&&(_=K(_,/\f/g,"")),C>0&&Re(_)-p&&Dt(C>32?yn(_+";",n,r,p-1):yn(K(_," ","")+";",n,r,p-2),u);break;case 59:_+=";";default:if(Dt($=gn(_,t,r,f,m,o,c,O,T=[],v=[],p),i),A===123)if(m===0)zt(_,t,$,$,T,i,p,c,v);else switch(h===99&&me(_,3)===110?100:h){case 100:case 108:case 109:case 115:zt(e,$,$,n&&Dt(gn(e,$,$,0,0,o,c,O,o,T=[],p),v),o,v,p,c,n?T:v);break;default:zt(_,$,$,$,[""],v,0,c,v)}}f=m=C=0,l=w=1,O=_="",p=a;break;case 58:p=1+Re(_),C=b;default:if(l<1){if(A==123)--l;else if(A==125&&l++==0&&zi()==125)continue}switch(_+=jt(A),A*l){case 38:w=m>0?1:(_+="\f",-1);break;case 44:c[f++]=(Re(_)-1)*w,w=1;break;case 64:Pe()===45&&(_+=Lt(Te())),h=Pe(),m=p=Re(O=_+=qi(Vt())),A++;break;case 45:b===45&&Re(_)==2&&(l=0)}}return i}function gn(e,t,r,n,o,i,a,c,u,f,m){for(var p=o-1,h=o===0?i:[""],C=hr(h),b=0,l=0,S=0;b<n;++b)for(var w=0,A=it(e,p+1,p=ji(l=a[b])),O=e;w<C;++w)(O=dn(l>0?h[w]+" "+A:K(A,/&\f/g,h[w])))&&(u[S++]=O);return Ft(e,t,r,o===0?dr:c,u,f,m)}function Hi(e,t,r){return Ft(e,t,r,un,jt(Li()),it(e,2,-2),0)}function yn(e,t,r,n){return Ft(e,t,r,pr,it(e,0,n),it(e,n+1,-1),n)}function Ge(e,t){for(var r="",n=hr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ki(e,t,r,n){switch(e.type){case Ni:if(e.children.length)break;case Mi:case pr:return e.return=e.return||e.value;case un:return"";case fn:return e.return=e.value+"{"+Ge(e.children,n)+"}";case dr:e.value=e.props.join(",")}return Re(r=Ge(e.children,n))?e.return=e.value+"{"+r+"}":""}function Xi(e){var t=hr(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function Ji(e){return function(t){t.root||(t=t.return)&&e(t)}}function bn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Qi=function(t,r,n){for(var o=0,i=0;o=i,i=Pe(),o===38&&i===12&&(r[n]=1),!ct(i);)Te();return st(t,be)},Zi=function(t,r){var n=-1,o=44;do switch(ct(o)){case 0:o===38&&Pe()===12&&(r[n]=1),t[n]+=Qi(be-1,r,n);break;case 2:t[n]+=Lt(o);break;case 4:if(o===44){t[++n]=Pe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=jt(o)}while(o=Te());return t},ea=function(t,r){return hn(Zi(mn(t),r))},vn=new WeakMap,ta=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!vn.get(n))&&!o){vn.set(t,!0);for(var i=[],a=ea(r,i),c=n.props,u=0,f=0;u<a.length;u++)for(var m=0;m<c.length;m++,f++)t.props[f]=i[u]?a[u].replace(/&\f/g,c[m]):c[m]+" "+a[u]}}},ra=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Sn(e,t){switch(Bi(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Nt+e+he+e+e;case 6828:case 4268:return H+e+he+e+e;case 6165:return H+e+he+"flex-"+e+e;case 5187:return H+e+K(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+he+"flex-$1$2")+e;case 5443:return H+e+he+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return H+e+he+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+he+K(e,"shrink","negative")+e;case 5292:return H+e+he+K(e,"basis","preferred-size")+e;case 6060:return H+"box-"+K(e,"-grow","")+H+e+he+K(e,"grow","positive")+e;case 4554:return H+K(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+he+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Re(e)-1-t>6)switch(me(e,t+1)){case 109:if(me(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Nt+(me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mr(e,"stretch")?Sn(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(me(e,t+1)!==115)break;case 6444:switch(me(e,Re(e)-3-(~mr(e,"!important")&&10))){case 107:return K(e,":",":"+H)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(me(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+he+"$2box$3")+e}break;case 5936:switch(me(e,t+11)){case 114:return H+e+he+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+he+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+he+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+he+e+e}return e}var na=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case pr:t.return=Sn(t.value,t.length);break;case fn:return Ge([at(t,{value:K(t.value,"@","@"+H)})],o);case dr:if(t.length)return Vi(t.props,function(i){switch(Fi(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ge([at(t,{props:[K(i,/:(read-\w+)/,":"+Nt+"$1")]})],o);case"::placeholder":return Ge([at(t,{props:[K(i,/:(plac\w+)/,":"+H+"input-$1")]}),at(t,{props:[K(i,/:(plac\w+)/,":"+Nt+"$1")]}),at(t,{props:[K(i,/:(plac\w+)/,he+"input-$1")]})],o)}return""})}},oa=[na],ia=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(l){var S=l.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||oa,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var S=l.getAttribute("data-emotion").split(" "),w=1;w<S.length;w++)i[S[w]]=!0;c.push(l)});var u,f=[ta,ra];{var m,p=[Ki,Ji(function(l){m.insert(l)})],h=Xi(f.concat(o,p)),C=function(S){return Ge(Gi(S),h)};u=function(S,w,A,O){m=A,C(S?S+"{"+w.styles+"}":w.styles),O&&(b.inserted[w.name]=!0)}}var b={key:r,sheet:new Ii({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(c),b},En=tr(),aa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tn={};Tn[En.ForwardRef]=aa,Tn[En.Memo]=sa;var ca=!0;function Cn(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var yr=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||ca===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},xn=function(t,r,n){yr(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function la(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 ua={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fa=/[A-Z]|^ms/g,da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wn=function(t){return t.charCodeAt(1)===45},On=function(t){return t!=null&&typeof t!="boolean"},br=bn(function(e){return wn(e)?e:e.replace(fa,"-$&").toLowerCase()}),kn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(da,function(n,o,i){return $e={name:o,styles:i,next:$e},o})}return ua[t]!==1&&!wn(t)&&typeof r=="number"&&r!==0?r+"px":r};function lt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return $e={name:o.name,styles:o.styles,next:$e},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)$e={name:a.name,styles:a.styles,next:$e},a=a.next;var c=i.styles+";";return c}return pa(e,t,r)}case"function":{if(e!==void 0){var u=$e,f=r(e);return $e=u,lt(e,t,f)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function pa(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=lt(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?n+=i+"{"+t[c]+"}":On(c)&&(n+=br(i)+":"+kn(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)On(a[u])&&(n+=br(i)+":"+kn(i,a[u])+";");else{var f=lt(e,t,a);switch(i){case"animation":case"animationName":{n+=br(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var Rn=/label:\s*([^\s;{]+)\s*(;|$)/g,$e;function Ut(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";$e=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=lt(r,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=lt(r,t,e[c]),n){var u=i;o+=u[c]}Rn.lastIndex=0;for(var f="",m;(m=Rn.exec(o))!==null;)f+="-"+m[1];var p=la(o)+f;return{name:p,styles:o,next:$e}}var ma=function(t){return t()},ha=P.useInsertionEffect?P.useInsertionEffect:!1,Pn=ha||ma,$n=P.createContext(typeof HTMLElement<"u"?ia({key:"css"}):null);$n.Provider;var _n=function(t){return D.forwardRef(function(r,n){var o=D.useContext($n);return t(r,o,n)})},An=P.createContext({}),vr={}.hasOwnProperty,Sr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ga=function(t,r){var n={};for(var o in r)vr.call(r,o)&&(n[o]=r[o]);return n[Sr]=t,n},ya=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yr(r,n,o),Pn(function(){return xn(r,n,o)}),null},ba=_n(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Sr],i=[n],a="";typeof e.className=="string"?a=Cn(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var c=Ut(i,void 0,P.useContext(An));a+=t.key+"-"+c.name;var u={};for(var f in e)vr.call(e,f)&&f!=="css"&&f!==Sr&&(u[f]=e[f]);return u.className=a,r&&(u.ref=r),P.createElement(P.Fragment,null,P.createElement(ya,{cache:t,serialized:c,isStringTag:typeof o=="string"}),P.createElement(o,u))}),va=ba,In=function(t,r){var n=arguments;if(r==null||!vr.call(r,"css"))return P.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=va,i[1]=ga(t,r);for(var a=2;a<o;a++)i[a]=n[a];return P.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(In||(In={}));function Er(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ut(t)}function ut(){var e=Er.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Sa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,Ea=bn(function(e){return Sa.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ta=Ea,Ca=function(t){return t!=="theme"},Mn=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ta:Ca},Nn=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},xa=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return yr(r,n,o),Pn(function(){return xn(r,n,o)}),null},wa=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var c=Nn(t,r,n),u=c||Mn(o),f=!u("as");return function(){var m=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var h=m[0];p.push(h[0]);for(var C=m.length,b=1;b<C;b++)p.push(m[b],h[b])}var l=_n(function(S,w,A){var O=f&&S.as||o,T="",v=[],$=S;if(S.theme==null){$={};for(var _ in S)$[_]=S[_];$.theme=P.useContext(An)}typeof S.className=="string"?T=Cn(w.registered,v,S.className):S.className!=null&&(T=S.className+" ");var G=Ut(p.concat(v),w.registered,$);T+=w.key+"-"+G.name,a!==void 0&&(T+=" "+a);var ee=f&&c===void 0?Mn(O):u,s={};for(var x in S)f&&x==="as"||ee(x)&&(s[x]=S[x]);return s.className=T,A&&(s.ref=A),P.createElement(P.Fragment,null,P.createElement(xa,{cache:w,serialized:G,isStringTag:typeof O=="string"}),P.createElement(O,s))});return l.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",l.defaultProps=t.defaultProps,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_styles=p,l.__emotion_forwardProp=c,Object.defineProperty(l,"toString",{value:function(){return"."+a}}),l.withComponent=function(S,w){var A=e(S,Mt({},r,w,{shouldForwardProp:Nn(l,w,!0)}));return A.apply(void 0,p)},l}},Oa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Tr=wa.bind(null);Oa.forEach(function(e){Tr[e]=Tr(e)});/**
62
+ * @mui/styled-engine v7.1.1
63
+ *
64
+ * @license MIT
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */function ka(e,t){const r=Tr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
68
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function Ra(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const jn=[];function Dn(e){return jn[0]=e,Ut(jn)}const Pa=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function $a(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=Pa(t),a=Object.keys(i);function c(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function f(h,C){const b=a.indexOf(C);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:C)-n/100}${r})`}function m(h){return a.indexOf(h)+1<a.length?f(h,a[a.indexOf(h)+1]):c(h)}function p(h){const C=a.indexOf(h);return C===0?c(a[1]):C===a.length-1?u(a[C]):f(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:f,only:m,not:p,unit:r,...o}}const _a={borderRadius:4};function Bn(e=8,t=ur({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Aa(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function Fn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,c=$a(r),u=Bn(o);let f=Se({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{..._a,...i}},a);return f=Lo(f),f.applyStyles=Aa,f=t.reduce((m,p)=>Se(m,p),f),f.unstable_sxConfig={...It,...a==null?void 0:a.unstable_sxConfig},f.unstable_sx=function(p){return We({sx:p,theme:this})},f}const Ia={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 He(e,t,r="Mui"){const n=Ia[t];return n?`${r}-${n}`:`${Oo.generate(e)}-${t}`}function ft(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=He(e,o,r)}),n}function Vn(e,t=""){return e.displayName||e.name||t}function Ln(e,t,r){const n=Vn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ma(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Tt.ForwardRef:return Ln(e,e.render,"ForwardRef");case Tt.Memo:return Ln(e,e.type,"memo");default:return}}}function zn(e){const{variants:t,...r}=e,n={variants:t,style:Dn(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Dn(o.style))}),n}const Na=Fn();function Cr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ja(e){return e?(t,r)=>r[e]:null}function Da(e,t,r){e.theme=La(e.theme)?r:e.theme[t]||e.theme}function Wt(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Wt(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...i}=r;n=i}return Un(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Un(e,t,r=[]){var o;let n;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&((o=e.ownerState)==null?void 0:o[c])!==a.props[c])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function Ba(e={}){const{themeId:t,defaultTheme:r=Na,rootShouldForwardProp:n=Cr,slotShouldForwardProp:o=Cr}=e;function i(c){Da(c,t,r)}return(c,u={})=>{Ra(c,v=>v.filter($=>$!==We));const{name:f,slot:m,skipVariantsResolver:p,skipSx:h,overridesResolver:C=ja(Wn(m)),...b}=u,l=p!==void 0?p:m&&m!=="Root"&&m!=="root"||!1,S=h||!1;let w=Cr;m==="Root"||m==="root"?w=n:m?w=o:za(c)&&(w=void 0);const A=ka(c,{shouldForwardProp:w,label:Va(f,m),...b}),O=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(_){return Wt(_,v)};if(Ae(v)){const $=zn(v);return $.variants?function(G){return Wt(G,$)}:$.style}return v},T=(...v)=>{const $=[],_=v.map(O),G=[];if($.push(i),f&&C&&G.push(function(M){var ne,fe;const Y=(fe=(ne=M.theme.components)==null?void 0:ne[f])==null?void 0:fe.styleOverrides;if(!Y)return null;const ae={};for(const ge in Y)ae[ge]=Wt(M,Y[ge]);return C(M,ae)}),f&&!l&&G.push(function(M){var ae,ne;const V=M.theme,Y=(ne=(ae=V==null?void 0:V.components)==null?void 0:ae[f])==null?void 0:ne.variants;return Y?Un(M,Y):null}),S||G.push(We),Array.isArray(_[0])){const x=_.shift(),M=new Array($.length).fill(""),V=new Array(G.length).fill("");let Y;Y=[...M,...x,...V],Y.raw=[...M,...x.raw,...V],$.unshift(Y)}const ee=[...$,..._,...G],s=A(...ee);return c.muiName&&(s.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(s.displayName=Fa(f,m,c)),s};return A.withConfig&&(T.withConfig=A.withConfig),T}}function Fa(e,t,r){return e?`${e}${pe(t||"")}`:`Styled(${Ma(r)})`}function Va(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Wn(t||"Root")}`),r}function La(e){for(const t in e)return!1;return!0}function za(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function xr(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)r[o]=i||{};else if(!i)r[o]=a;else{r[o]={...a};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;r[o][u]=xr(i[u],a[u])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const Ua=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Wa(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function wr(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Wa(e,t,r)}function Ya(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Fe(e){if(e.type)return e;if(e.charAt(0)==="#")return Fe(Ya(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
69
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:De(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
70
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:De(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const qa=e=>{const t=Fe(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},dt=(e,t)=>{try{return qa(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Yt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Yn(e){e=Fe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(f,m=(f+r/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Yt({type:c,values:u})}function Or(e){e=Fe(e);let t=e.type==="hsl"||e.type==="hsla"?Fe(Yn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qn(e,t){const r=Or(e),n=Or(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function kr(e,t){return e=Fe(e),t=wr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yt(e)}function qt(e,t,r){try{return kr(e,t)}catch{return e}}function Rr(e,t){if(e=Fe(e),t=wr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Yt(e)}function te(e,t,r){try{return Rr(e,t)}catch{return e}}function Pr(e,t){if(e=Fe(e),t=wr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Yt(e)}function re(e,t,r){try{return Pr(e,t)}catch{return e}}function Ga(e,t=.15){return Or(e)>.5?Rr(e,t):Pr(e,t)}function Gt(e,t,r){try{return Ga(e,t)}catch{return e}}const Ha=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(g.node,g.object);function Ka(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?xr(o.defaultProps,n):!o.styleOverrides&&!o.variants?xr(o,n):n}function Xa({props:e,name:t}){const r=P.useContext(Ha);return Ka({props:e,name:t,theme:{components:r}})}const Gn={theme:void 0};function Ja(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Gn.theme=o.theme,i=zn(e(Gn)),t=i,r=o.theme),i}}function Qa(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Hn=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Za=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!r||r&&!r([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}n(e)},es=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function $r(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return Za(e,(c,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(c,u))){const m=`--${r?`${r}-`:""}${c.join("-")}`,p=es(c,u);Object.assign(o,{[m]:p}),Hn(i,c,`var(${m})`,f),Hn(a,c,`var(${m}, ${p})`,f)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ts(e,t={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...u}=e,{vars:f,css:m,varsWithDefaults:p}=$r(u,t);let h=p;const C={},{[c]:b,...l}=i;if(Object.entries(l||{}).forEach(([O,T])=>{const{vars:v,css:$,varsWithDefaults:_}=$r(T,t);h=Se(h,_),C[O]={css:$,vars:v}}),b){const{css:O,vars:T,varsWithDefaults:v}=$r(b,t);h=Se(h,v),C[c]={css:O,vars:T}}function S(O,T){var $,_;let v=o;if(o==="class"&&(v=".%s"),o==="data"&&(v="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(v=`[${o}="%s"]`),O){if(v==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((_=($=i[O])==null?void 0:$.palette)==null?void 0:_.mode)||O})`]:{":root":T}};if(v)return e.defaultColorScheme===O?`:root, ${v.replace("%s",String(O))}`:v.replace("%s",String(O))}return":root"}return{vars:h,generateThemeVars:()=>{let O={...f};return Object.entries(C).forEach(([,{vars:T}])=>{O=Se(O,T)}),O},generateStyleSheets:()=>{var G,ee;const O=[],T=e.defaultColorScheme||"light";function v(s,x){Object.keys(x).length&&O.push(typeof s=="string"?{[s]:{...x}}:s)}v(r(void 0,{...m}),m);const{[T]:$,..._}=C;if($){const{css:s}=$,x=(ee=(G=i[T])==null?void 0:G.palette)==null?void 0:ee.mode,M=!n&&x?{colorScheme:x,...s}:{...s};v(r(T,{...M}),M)}return Object.entries(_).forEach(([s,{css:x}])=>{var Y,ae;const M=(ae=(Y=i[s])==null?void 0:Y.palette)==null?void 0:ae.mode,V=!n&&M?{colorScheme:M,...x}:{...x};v(r(s,{...V}),V)}),O}}}function rs(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const pt={black:"#000",white:"#fff"},ns={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"},Ke={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xe={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},mt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Je={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Qe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ze={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Kn(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:pt.white,default:pt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const os=Kn();function Xn(){return{text:{primary:pt.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:pt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Jn=Xn();function Qn(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Pr(e.main,o):t==="dark"&&(e.dark=Rr(e.main,i)))}function is(e="light"){return e==="dark"?{main:Je[200],light:Je[50],dark:Je[400]}:{main:Je[700],light:Je[400],dark:Je[800]}}function as(e="light"){return e==="dark"?{main:Ke[200],light:Ke[50],dark:Ke[400]}:{main:Ke[500],light:Ke[300],dark:Ke[700]}}function ss(e="light"){return e==="dark"?{main:Xe[500],light:Xe[300],dark:Xe[700]}:{main:Xe[700],light:Xe[400],dark:Xe[800]}}function cs(e="light"){return e==="dark"?{main:Qe[400],light:Qe[300],dark:Qe[700]}:{main:Qe[700],light:Qe[500],dark:Qe[900]}}function ls(e="light"){return e==="dark"?{main:Ze[400],light:Ze[300],dark:Ze[700]}:{main:Ze[800],light:Ze[500],dark:Ze[900]}}function us(e="light"){return e==="dark"?{main:mt[400],light:mt[300],dark:mt[700]}:{main:"#ed6c02",light:mt[500],dark:mt[900]}}function _r(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||is(t),a=e.secondary||as(t),c=e.error||ss(t),u=e.info||cs(t),f=e.success||ls(t),m=e.warning||us(t);function p(l){const S=qn(l,Jn.text.primary)>=r?Jn.text.primary:os.text.primary;if(process.env.NODE_ENV!=="production"){const w=qn(l,S);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${S} on ${l}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
71
+ `))}return S}const h=({color:l,name:S,mainShade:w=500,lightShade:A=300,darkShade:O=700})=>{if(l={...l},!l.main&&l[w]&&(l.main=l[w]),!l.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
72
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:De(11,S?` (${S})`:"",w));if(typeof l.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
73
+ \`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
74
+
75
+ Did you intend to use one of the following approaches?
76
+
77
+ import { green } from "@mui/material/colors";
78
+
79
+ const theme1 = createTheme({ palette: {
80
+ primary: green,
81
+ } });
82
+
83
+ const theme2 = createTheme({ palette: {
84
+ primary: { main: green[500] },
85
+ } });`:De(12,S?` (${S})`:"",JSON.stringify(l.main)));return Qn(l,"light",A,n),Qn(l,"dark",O,n),l.contrastText||(l.contrastText=p(l.main)),l};let C;return t==="light"?C=Kn():t==="dark"&&(C=Xn()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Se({common:{...pt},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:m,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:f,name:"success"}),grey:ns,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...C},o)}function fs(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function ds(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ps(e){return Math.round(e*1e5)/1e5}const Zn={textTransform:"uppercase"},eo='"Roboto", "Helvetica", "Arial", sans-serif';function ms(e,t){const{fontFamily:r=eo,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:m,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,C=m||(S=>`${S/u*h}rem`),b=(S,w,A,O,T)=>({fontFamily:r,fontWeight:S,fontSize:C(w),lineHeight:A,...r===eo?{letterSpacing:`${ps(O/w)}em`}:{},...T,...f}),l={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,Zn),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Zn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Se({htmlFontSize:u,pxToRem:C,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...l},p,{clone:!1})}const hs=.2,gs=.14,ys=.12;function oe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ys})`].join(",")}const bs=["none",oe(0,2,1,-1,0,1,1,0,0,1,3,0),oe(0,3,1,-2,0,2,2,0,0,1,5,0),oe(0,3,3,-2,0,3,4,0,0,1,8,0),oe(0,2,4,-1,0,4,5,0,0,1,10,0),oe(0,3,5,-1,0,5,8,0,0,1,14,0),oe(0,3,5,-1,0,6,10,0,0,1,18,0),oe(0,4,5,-2,0,7,10,1,0,2,16,1),oe(0,5,5,-3,0,8,10,1,0,3,14,2),oe(0,5,6,-3,0,9,12,1,0,3,16,2),oe(0,6,6,-3,0,10,14,1,0,4,18,3),oe(0,6,7,-4,0,11,15,1,0,4,20,3),oe(0,7,8,-4,0,12,17,2,0,5,22,4),oe(0,7,8,-4,0,13,19,2,0,5,24,4),oe(0,7,9,-4,0,14,21,2,0,5,26,4),oe(0,8,9,-5,0,15,22,2,0,6,28,5),oe(0,8,10,-5,0,16,24,2,0,6,30,5),oe(0,8,11,-5,0,17,26,2,0,6,32,5),oe(0,9,11,-5,0,18,28,2,0,7,34,6),oe(0,9,12,-6,0,19,29,2,0,7,36,6),oe(0,10,13,-6,0,20,31,3,0,8,38,7),oe(0,10,13,-6,0,21,33,3,0,8,40,7),oe(0,10,14,-6,0,22,35,3,0,8,42,7),oe(0,11,14,-7,0,23,36,3,0,9,44,8),oe(0,11,15,-7,0,24,38,3,0,9,46,8)],vs={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 to(e){return`${Math.round(e)}ms`}function Es(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ts(e){const t={...vs,...e.easing},r={...Ss,...e.duration};return{getAutoHeightDuration:Es,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:c=t.easeInOut,delay:u=0,...f}=i;if(process.env.NODE_ENV!=="production"){const m=h=>typeof h=="string",p=h=>!Number.isNaN(parseFloat(h));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
86
+ `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:to(a)} ${c} ${typeof u=="string"?u:to(u)}`).join(",")},...e,easing:t,duration:r}}const Cs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xs(e){return Ae(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ro(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,c]=o[i];!xs(c)||a.startsWith("unstable_")?delete n[a]:Ae(c)&&(n[a]={...c},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
87
+
88
+ const theme = ${JSON.stringify(t,null,2)};
89
+
90
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
91
+ theme.transitions = createTransitions(theme.transitions || {});
92
+
93
+ export default theme;`}function Ar(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":De(20));const m=_r(i),p=Fn(e);let h=Se(p,{mixins:ds(p.breakpoints,n),palette:m,shadows:bs.slice(),typography:ms(m,c),transitions:Ts(a),zIndex:{...Cs}});if(h=Se(h,f),h=t.reduce((C,b)=>Se(C,b),h),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(l,S)=>{let w;for(w in l){const A=l[w];if(C.includes(w)&&Object.keys(A).length>0){if(process.env.NODE_ENV!=="production"){const O=He("",w);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(l,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:A}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
+ `))}l[w]={}}}};Object.keys(h.components).forEach(l=>{const S=h.components[l].styleOverrides;S&&l.startsWith("Mui")&&b(S,l)})}return h.unstable_sxConfig={...It,...f==null?void 0:f.unstable_sxConfig},h.unstable_sx=function(b){return We({sx:b,theme:this})},h.toRuntimeSource=ro,h}function ws(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Os=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ws(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function no(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function oo(e){return e==="dark"?Os:[]}function ks(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=_r(t);return{palette:i,opacity:{...no(i.mode),...r},overlays:n||oo(i.mode),...o}}function Rs(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ps=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$s=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Ps(e.cssVarPrefix).forEach(c=>{a[c]=r[c],delete r[c]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function _s(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function y(e,t,r){!e[t]&&r&&(e[t]=r)}function ht(e){return typeof e!="string"||!e.startsWith("hsl")?e:Yn(e)}function Me(e,t){`${t}Channel`in e||(e[`${t}Channel`]=dt(ht(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
95
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function As(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const _e=e=>{try{return e()}catch{}},Is=(e="mui")=>Qa(e);function Ir(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=ks({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Ar({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...no(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||oo(o)},a}function Ms(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Rs,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=e,m=Object.keys(r)[0],p=n||(r.light&&m!=="light"?"light":m),h=Is(i),{[p]:C,light:b,dark:l,...S}=r,w={...S};let A=C;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(A=!0),!A)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:De(21,p));const O=Ir(w,A,f,p);b&&!w.light&&Ir(w,b,void 0,"light"),l&&!w.dark&&Ir(w,l,void 0,"dark");let T={defaultColorScheme:p,...O,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:w,font:{...fs(O.typography),...O.font},spacing:As(f.spacing)};Object.keys(T.colorSchemes).forEach(ee=>{const s=T.colorSchemes[ee].palette,x=M=>{const V=M.split("-"),Y=V[1],ae=V[2];return h(M,s[Y][ae])};if(s.mode==="light"&&(y(s.common,"background","#fff"),y(s.common,"onBackground","#000")),s.mode==="dark"&&(y(s.common,"background","#000"),y(s.common,"onBackground","#fff")),_s(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){y(s.Alert,"errorColor",te(s.error.light,.6)),y(s.Alert,"infoColor",te(s.info.light,.6)),y(s.Alert,"successColor",te(s.success.light,.6)),y(s.Alert,"warningColor",te(s.warning.light,.6)),y(s.Alert,"errorFilledBg",x("palette-error-main")),y(s.Alert,"infoFilledBg",x("palette-info-main")),y(s.Alert,"successFilledBg",x("palette-success-main")),y(s.Alert,"warningFilledBg",x("palette-warning-main")),y(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.main))),y(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.main))),y(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.main))),y(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.main))),y(s.Alert,"errorStandardBg",re(s.error.light,.9)),y(s.Alert,"infoStandardBg",re(s.info.light,.9)),y(s.Alert,"successStandardBg",re(s.success.light,.9)),y(s.Alert,"warningStandardBg",re(s.warning.light,.9)),y(s.Alert,"errorIconColor",x("palette-error-main")),y(s.Alert,"infoIconColor",x("palette-info-main")),y(s.Alert,"successIconColor",x("palette-success-main")),y(s.Alert,"warningIconColor",x("palette-warning-main")),y(s.AppBar,"defaultBg",x("palette-grey-100")),y(s.Avatar,"defaultBg",x("palette-grey-400")),y(s.Button,"inheritContainedBg",x("palette-grey-300")),y(s.Button,"inheritContainedHoverBg",x("palette-grey-A100")),y(s.Chip,"defaultBorder",x("palette-grey-400")),y(s.Chip,"defaultAvatarColor",x("palette-grey-700")),y(s.Chip,"defaultIconColor",x("palette-grey-700")),y(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),y(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),y(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),y(s.LinearProgress,"primaryBg",re(s.primary.main,.62)),y(s.LinearProgress,"secondaryBg",re(s.secondary.main,.62)),y(s.LinearProgress,"errorBg",re(s.error.main,.62)),y(s.LinearProgress,"infoBg",re(s.info.main,.62)),y(s.LinearProgress,"successBg",re(s.success.main,.62)),y(s.LinearProgress,"warningBg",re(s.warning.main,.62)),y(s.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),y(s.Slider,"primaryTrack",re(s.primary.main,.62)),y(s.Slider,"secondaryTrack",re(s.secondary.main,.62)),y(s.Slider,"errorTrack",re(s.error.main,.62)),y(s.Slider,"infoTrack",re(s.info.main,.62)),y(s.Slider,"successTrack",re(s.success.main,.62)),y(s.Slider,"warningTrack",re(s.warning.main,.62));const M=Gt(s.background.default,.8);y(s.SnackbarContent,"bg",M),y(s.SnackbarContent,"color",_e(()=>s.getContrastText(M))),y(s.SpeedDialAction,"fabHoverBg",Gt(s.background.paper,.15)),y(s.StepConnector,"border",x("palette-grey-400")),y(s.StepContent,"border",x("palette-grey-400")),y(s.Switch,"defaultColor",x("palette-common-white")),y(s.Switch,"defaultDisabledColor",x("palette-grey-100")),y(s.Switch,"primaryDisabledColor",re(s.primary.main,.62)),y(s.Switch,"secondaryDisabledColor",re(s.secondary.main,.62)),y(s.Switch,"errorDisabledColor",re(s.error.main,.62)),y(s.Switch,"infoDisabledColor",re(s.info.main,.62)),y(s.Switch,"successDisabledColor",re(s.success.main,.62)),y(s.Switch,"warningDisabledColor",re(s.warning.main,.62)),y(s.TableCell,"border",re(qt(s.divider,1),.88)),y(s.Tooltip,"bg",qt(s.grey[700],.92))}if(s.mode==="dark"){y(s.Alert,"errorColor",re(s.error.light,.6)),y(s.Alert,"infoColor",re(s.info.light,.6)),y(s.Alert,"successColor",re(s.success.light,.6)),y(s.Alert,"warningColor",re(s.warning.light,.6)),y(s.Alert,"errorFilledBg",x("palette-error-dark")),y(s.Alert,"infoFilledBg",x("palette-info-dark")),y(s.Alert,"successFilledBg",x("palette-success-dark")),y(s.Alert,"warningFilledBg",x("palette-warning-dark")),y(s.Alert,"errorFilledColor",_e(()=>s.getContrastText(s.error.dark))),y(s.Alert,"infoFilledColor",_e(()=>s.getContrastText(s.info.dark))),y(s.Alert,"successFilledColor",_e(()=>s.getContrastText(s.success.dark))),y(s.Alert,"warningFilledColor",_e(()=>s.getContrastText(s.warning.dark))),y(s.Alert,"errorStandardBg",te(s.error.light,.9)),y(s.Alert,"infoStandardBg",te(s.info.light,.9)),y(s.Alert,"successStandardBg",te(s.success.light,.9)),y(s.Alert,"warningStandardBg",te(s.warning.light,.9)),y(s.Alert,"errorIconColor",x("palette-error-main")),y(s.Alert,"infoIconColor",x("palette-info-main")),y(s.Alert,"successIconColor",x("palette-success-main")),y(s.Alert,"warningIconColor",x("palette-warning-main")),y(s.AppBar,"defaultBg",x("palette-grey-900")),y(s.AppBar,"darkBg",x("palette-background-paper")),y(s.AppBar,"darkColor",x("palette-text-primary")),y(s.Avatar,"defaultBg",x("palette-grey-600")),y(s.Button,"inheritContainedBg",x("palette-grey-800")),y(s.Button,"inheritContainedHoverBg",x("palette-grey-700")),y(s.Chip,"defaultBorder",x("palette-grey-700")),y(s.Chip,"defaultAvatarColor",x("palette-grey-300")),y(s.Chip,"defaultIconColor",x("palette-grey-300")),y(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),y(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),y(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),y(s.LinearProgress,"primaryBg",te(s.primary.main,.5)),y(s.LinearProgress,"secondaryBg",te(s.secondary.main,.5)),y(s.LinearProgress,"errorBg",te(s.error.main,.5)),y(s.LinearProgress,"infoBg",te(s.info.main,.5)),y(s.LinearProgress,"successBg",te(s.success.main,.5)),y(s.LinearProgress,"warningBg",te(s.warning.main,.5)),y(s.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),y(s.Slider,"primaryTrack",te(s.primary.main,.5)),y(s.Slider,"secondaryTrack",te(s.secondary.main,.5)),y(s.Slider,"errorTrack",te(s.error.main,.5)),y(s.Slider,"infoTrack",te(s.info.main,.5)),y(s.Slider,"successTrack",te(s.success.main,.5)),y(s.Slider,"warningTrack",te(s.warning.main,.5));const M=Gt(s.background.default,.98);y(s.SnackbarContent,"bg",M),y(s.SnackbarContent,"color",_e(()=>s.getContrastText(M))),y(s.SpeedDialAction,"fabHoverBg",Gt(s.background.paper,.15)),y(s.StepConnector,"border",x("palette-grey-600")),y(s.StepContent,"border",x("palette-grey-600")),y(s.Switch,"defaultColor",x("palette-grey-300")),y(s.Switch,"defaultDisabledColor",x("palette-grey-600")),y(s.Switch,"primaryDisabledColor",te(s.primary.main,.55)),y(s.Switch,"secondaryDisabledColor",te(s.secondary.main,.55)),y(s.Switch,"errorDisabledColor",te(s.error.main,.55)),y(s.Switch,"infoDisabledColor",te(s.info.main,.55)),y(s.Switch,"successDisabledColor",te(s.success.main,.55)),y(s.Switch,"warningDisabledColor",te(s.warning.main,.55)),y(s.TableCell,"border",te(qt(s.divider,1),.68)),y(s.Tooltip,"bg",qt(s.grey[700],.92))}Me(s.background,"default"),Me(s.background,"paper"),Me(s.common,"background"),Me(s.common,"onBackground"),Me(s,"divider"),Object.keys(s).forEach(M=>{const V=s[M];M!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&y(s[M],"mainChannel",dt(ht(V.main))),V.light&&y(s[M],"lightChannel",dt(ht(V.light))),V.dark&&y(s[M],"darkChannel",dt(ht(V.dark))),V.contrastText&&y(s[M],"contrastTextChannel",dt(ht(V.contrastText))),M==="text"&&(Me(s[M],"primary"),Me(s[M],"secondary")),M==="action"&&(V.active&&Me(s[M],"active"),V.selected&&Me(s[M],"selected")))})}),T=t.reduce((ee,s)=>Se(ee,s),T);const v={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:$s(T)},{vars:$,generateThemeVars:_,generateStyleSheets:G}=ts(T,v);return T.vars=$,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([ee,s])=>{T[ee]=s}),T.generateThemeVars=_,T.generateStyleSheets=G,T.generateSpacing=function(){return Bn(f.spacing,ur(this))},T.getColorSchemeSelector=rs(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...It,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(s){return We({sx:s,theme:this})},T.toRuntimeSource=ro,T}function io(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:_r({...r===!0?{}:r.palette,mode:t})})}function Ns(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],f={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ar(e,...t);let m=r;"palette"in e||f[c]&&(f[c]!==!0?m=f[c].palette:c==="dark"&&(m={mode:"dark"}));const p=Ar({...e,palette:m},...t);return p.defaultColorScheme=c,p.colorSchemes=f,p.palette.mode==="light"&&(p.colorSchemes.light={...f.light!==!0&&f.light,palette:p.palette},io(p,"dark",f.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:p.palette},io(p,"light",f.light)),p}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),Ms({...a,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const js=Ns(),Ds="$$material";function Bs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ne=Ba({themeId:Ds,defaultTheme:js,rootShouldForwardProp:e=>Bs(e)&&e!=="classes"}),gt=Ja;process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function yt(e){return Xa(e)}function Fs(e){return He("MuiSvgIcon",e)}ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vs=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(r)}`]};return Et(o,Fs,n)},Ls=Ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${pe(r.color)}`],t[`fontSize${pe(r.fontSize)}`]]}})(gt(({theme:e})=>{var t,r,n,o,i,a,c,u,f,m,p,h,C,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:l=>!l.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:m.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,l])=>l&&l.main).map(([l])=>{var S,w;return{props:{color:l},style:{color:(w=(S=(e.vars??e).palette)==null?void 0:S[l])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(b=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ht=P.forwardRef(function(t,r){const n=yt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:p,viewBox:h="0 0 24 24",...C}=n,b=P.isValidElement(o)&&o.type==="svg",l={...n,color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:h,hasSvgAsChild:b},S={};m||(S.viewBox=h);const w=Vs(l);return q.jsxs(Ls,{as:c,className:ve(w.root,i),focusable:"false",color:f,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...S,...C,...b&&o.props,ownerState:l,children:[b?o.props.children:o,p?q.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ht.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string}),Ht.muiName="SvgIcon";function zs(e,t){function r(n,o){return q.jsx(Ht,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ht.muiName,P.memo(P.forwardRef(r))}let ao=0;function Us(e){const[t,r]=P.useState(e),n=e||t;return P.useEffect(()=>{t==null&&(ao+=1,r(`mui-${ao}`))},[t]),n}const so={...P}.useId;function Ws(e){if(so!==void 0){const t=so();return e??t}return Us(e)}function Kt(e){const t=P.useRef(e);return Ua(()=>{t.current=e}),P.useRef((...r)=>(0,t.current)(...r)).current}function co(...e){const t=P.useRef(void 0),r=P.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(n);return typeof c=="function"?c:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return P.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Ys=zs(q.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Mr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function qs(e){return typeof e.main=="string"}function Gs(e,t=[]){if(!qs(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Nr(e=[]){return([,t])=>t&&Gs(t,e)}const Hs=g.oneOfType([g.func,g.object]);function Ks(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Xs(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!Ks(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Js=Mr(g.elementType,Xs);function lo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
96
+ `))}return!1}const uo={};function fo(e,t){const r=P.useRef(uo);return r.current===uo&&(r.current=e(t)),r}class Xt{constructor(){vt(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xt}static use(){const t=fo(Xt.create).current,[r,n]=P.useState(!1);return t.shouldMount=r,t.setShouldMount=n,P.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=Zs(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function Qs(){return Xt.use()}function Zs(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function ec(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function jr(e,t){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},jr(e,t)}function tc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jr(e,t)}const po=D.createContext(null);function rc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dr(e,t){var r=function(i){return t&&D.isValidElement(i)?t(i):i},n=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function nc(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,c={};for(var u in t){if(n[u])for(a=0;a<n[u].length;a++){var f=n[u][a];c[n[u][a]]=r(f)}c[u]=r(u)}for(a=0;a<o.length;a++)c[o[a]]=r(o[a]);return c}function ze(e,t,r){return r[t]!=null?r[t]:e.props[t]}function oc(e,t){return Dr(e.children,function(r){return D.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ze(r,"appear",e),enter:ze(r,"enter",e),exit:ze(r,"exit",e)})})}function ic(e,t,r){var n=Dr(e.children),o=nc(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(D.isValidElement(a)){var c=i in t,u=i in n,f=t[i],m=D.isValidElement(f)&&!f.props.in;u&&(!c||m)?o[i]=D.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:ze(a,"exit",e),enter:ze(a,"enter",e)}):!u&&c&&!m?o[i]=D.cloneElement(a,{in:!1}):u&&c&&D.isValidElement(f)&&(o[i]=D.cloneElement(a,{onExited:r.bind(null,a),in:f.props.in,exit:ze(a,"exit",e),enter:ze(a,"enter",e)}))}}),o}var ac=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sc={component:"div",childFactory:function(t){return t}},Br=function(e){tc(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(rc(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,u=i.firstRender;return{children:u?oc(o,c):ic(o,a,c),firstRender:!1}},r.handleExited=function(o,i){var a=Dr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=Mt({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=ec(o,["component","childFactory"]),u=this.state.contextValue,f=ac(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?D.createElement(po.Provider,{value:u},f):D.createElement(po.Provider,{value:u},D.createElement(i,c,f))},t}(D.Component);Br.propTypes=process.env.NODE_ENV!=="production"?{component:g.any,children:g.node,appear:g.bool,enter:g.bool,exit:g.bool,childFactory:g.func}:{},Br.defaultProps=sc;const cc=[];function lc(e){P.useEffect(e,cc)}class Fr{constructor(){vt(this,"currentId",null);vt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});vt(this,"disposeEffect",()=>this.clear)}static create(){return new Fr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function uc(){const e=fo(Fr.create).current;return lc(e.disposeEffect),e}function mo(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:f}=e,[m,p]=P.useState(!1),h=ve(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),C={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=ve(r.child,m&&r.childLeaving,n&&r.childPulsate);return!c&&!m&&p(!0),P.useEffect(()=>{if(!c&&u!=null){const l=setTimeout(u,f);return()=>{clearTimeout(l)}}},[u,c,f]),q.jsx("span",{className:h,style:C,children:q.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(mo.propTypes={classes:g.object.isRequired,className:g.string,in:g.bool,onExited:g.func,pulsate:g.bool,rippleSize:g.number,rippleX:g.number,rippleY:g.number,timeout:g.number.isRequired});const we=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vr=550,fc=80,dc=ut`
97
+ 0% {
98
+ transform: scale(0);
99
+ opacity: 0.1;
100
+ }
101
+
102
+ 100% {
103
+ transform: scale(1);
104
+ opacity: 0.3;
105
+ }
106
+ `,pc=ut`
107
+ 0% {
108
+ opacity: 1;
109
+ }
110
+
111
+ 100% {
112
+ opacity: 0;
113
+ }
114
+ `,mc=ut`
115
+ 0% {
116
+ transform: scale(1);
117
+ }
118
+
119
+ 50% {
120
+ transform: scale(0.92);
121
+ }
122
+
123
+ 100% {
124
+ transform: scale(1);
125
+ }
126
+ `,hc=Ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gc=Ne(mo,{name:"MuiTouchRipple",slot:"Ripple"})`
127
+ opacity: 0;
128
+ position: absolute;
129
+
130
+ &.${we.rippleVisible} {
131
+ opacity: 0.3;
132
+ transform: scale(1);
133
+ animation-name: ${dc};
134
+ animation-duration: ${Vr}ms;
135
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
136
+ }
137
+
138
+ &.${we.ripplePulsate} {
139
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
140
+ }
141
+
142
+ & .${we.child} {
143
+ opacity: 1;
144
+ display: block;
145
+ width: 100%;
146
+ height: 100%;
147
+ border-radius: 50%;
148
+ background-color: currentColor;
149
+ }
150
+
151
+ & .${we.childLeaving} {
152
+ opacity: 0;
153
+ animation-name: ${pc};
154
+ animation-duration: ${Vr}ms;
155
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
156
+ }
157
+
158
+ & .${we.childPulsate} {
159
+ position: absolute;
160
+ /* @noflip */
161
+ left: 0px;
162
+ top: 0;
163
+ animation-name: ${mc};
164
+ animation-duration: 2500ms;
165
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
166
+ animation-iteration-count: infinite;
167
+ animation-delay: 200ms;
168
+ }
169
+ `,ho=P.forwardRef(function(t,r){const n=yt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...c}=n,[u,f]=P.useState([]),m=P.useRef(0),p=P.useRef(null);P.useEffect(()=>{p.current&&(p.current(),p.current=null)},[u]);const h=P.useRef(!1),C=uc(),b=P.useRef(null),l=P.useRef(null),S=P.useCallback(T=>{const{pulsate:v,rippleX:$,rippleY:_,rippleSize:G,cb:ee}=T;f(s=>[...s,q.jsx(gc,{classes:{ripple:ve(i.ripple,we.ripple),rippleVisible:ve(i.rippleVisible,we.rippleVisible),ripplePulsate:ve(i.ripplePulsate,we.ripplePulsate),child:ve(i.child,we.child),childLeaving:ve(i.childLeaving,we.childLeaving),childPulsate:ve(i.childPulsate,we.childPulsate)},timeout:Vr,pulsate:v,rippleX:$,rippleY:_,rippleSize:G},m.current)]),m.current+=1,p.current=ee},[i]),w=P.useCallback((T={},v={},$=()=>{})=>{const{pulsate:_=!1,center:G=o||v.pulsate,fakeElement:ee=!1}=v;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const s=ee?null:l.current,x=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,V,Y;if(G||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)M=Math.round(x.width/2),V=Math.round(x.height/2);else{const{clientX:ae,clientY:ne}=T.touches&&T.touches.length>0?T.touches[0]:T;M=Math.round(ae-x.left),V=Math.round(ne-x.top)}if(G)Y=Math.sqrt((2*x.width**2+x.height**2)/3),Y%2===0&&(Y+=1);else{const ae=Math.max(Math.abs((s?s.clientWidth:0)-M),M)*2+2,ne=Math.max(Math.abs((s?s.clientHeight:0)-V),V)*2+2;Y=Math.sqrt(ae**2+ne**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{S({pulsate:_,rippleX:M,rippleY:V,rippleSize:Y,cb:$})},C.start(fc,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:_,rippleX:M,rippleY:V,rippleSize:Y,cb:$})},[o,S,C]),A=P.useCallback(()=>{w({},{pulsate:!0})},[w]),O=P.useCallback((T,v)=>{if(C.clear(),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,C.start(0,()=>{O(T,v)});return}b.current=null,f($=>$.length>0?$.slice(1):$),p.current=v},[C]);return P.useImperativeHandle(r,()=>({pulsate:A,start:w,stop:O}),[A,w,O]),q.jsx(hc,{className:ve(we.root,i.root,a),ref:l,...c,children:q.jsx(Br,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(ho.propTypes={center:g.bool,classes:g.object,className:g.string});function yc(e){return He("MuiButtonBase",e)}const bc=ft("MuiButtonBase",["root","disabled","focusVisible"]),vc=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Et({root:["root",t&&"disabled",r&&"focusVisible"]},yc,o);return r&&n&&(a.root+=` ${n}`),a},Sc=Ne("button",{name:"MuiButtonBase",slot:"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"},[`&.${bc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),go=P.forwardRef(function(t,r){const n=yt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:u="button",disabled:f=!1,disableRipple:m=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:C,LinkComponent:b="a",onBlur:l,onClick:S,onContextMenu:w,onDragLeave:A,onFocus:O,onFocusVisible:T,onKeyDown:v,onKeyUp:$,onMouseDown:_,onMouseLeave:G,onMouseUp:ee,onTouchEnd:s,onTouchMove:x,onTouchStart:M,tabIndex:V=0,TouchRippleProps:Y,touchRippleRef:ae,type:ne,...fe}=n,ge=P.useRef(null),ie=Qs(),d=co(ie.ref,ae),[E,R]=P.useState(!1);f&&E&&R(!1),P.useImperativeHandle(o,()=>({focusVisible:()=>{R(!0),ge.current.focus()}}),[]);const I=ie.shouldMount&&!m&&!f;P.useEffect(()=>{E&&h&&!m&&ie.pulsate()},[m,h,E,ie]);const N=je(ie,"start",_,p),B=je(ie,"stop",w,p),F=je(ie,"stop",A,p),L=je(ie,"stop",ee,p),j=je(ie,"stop",z=>{E&&z.preventDefault(),G&&G(z)},p),U=je(ie,"start",M,p),W=je(ie,"stop",s,p),de=je(ie,"stop",x,p),k=je(ie,"stop",z=>{lo(z.target)||R(!1),l&&l(z)},!1),Oe=Kt(z=>{ge.current||(ge.current=z.currentTarget),lo(z.target)&&(R(!0),T&&T(z)),O&&O(z)}),Le=()=>{const z=ge.current;return u&&u!=="button"&&!(z.tagName==="A"&&z.href)},Jt=Kt(z=>{h&&!z.repeat&&E&&z.key===" "&&ie.stop(z,()=>{ie.start(z)}),z.target===z.currentTarget&&Le()&&z.key===" "&&z.preventDefault(),v&&v(z),z.target===z.currentTarget&&Le()&&z.key==="Enter"&&!f&&(z.preventDefault(),S&&S(z))}),jc=Kt(z=>{h&&z.key===" "&&E&&!z.defaultPrevented&&ie.stop(z,()=>{ie.pulsate(z)}),$&&$(z),S&&z.target===z.currentTarget&&Le()&&z.key===" "&&!z.defaultPrevented&&S(z)});let Qt=u;Qt==="button"&&(fe.href||fe.to)&&(Qt=b);const bt={};Qt==="button"?(bt.type=ne===void 0?"button":ne,bt.disabled=f):(!fe.href&&!fe.to&&(bt.role="button"),f&&(bt["aria-disabled"]=f));const Dc=co(r,ge),Eo={...n,centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:p,focusRipple:h,tabIndex:V,focusVisible:E},Bc=vc(Eo);return q.jsxs(Sc,{as:Qt,className:ve(Bc.root,c),ownerState:Eo,onBlur:k,onClick:S,onContextMenu:B,onFocus:Oe,onKeyDown:Jt,onKeyUp:jc,onMouseDown:N,onMouseLeave:j,onMouseUp:L,onDragLeave:F,onTouchEnd:W,onTouchMove:de,onTouchStart:U,ref:Dc,tabIndex:f?-1:V,type:ne,...bt,...fe,children:[a,I?q.jsx(ho,{ref:d,center:i,...Y}):null]})});function je(e,t,r,n=!1){return Kt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(go.propTypes={action:Hs,centerRipple:g.bool,children:g.node,classes:g.object,className:g.string,component:Js,disabled:g.bool,disableRipple:g.bool,disableTouchRipple:g.bool,focusRipple:g.bool,focusVisibleClassName:g.string,href:g.any,LinkComponent:g.elementType,onBlur:g.func,onClick:g.func,onContextMenu:g.func,onDragLeave:g.func,onFocus:g.func,onFocusVisible:g.func,onKeyDown:g.func,onKeyUp:g.func,onMouseDown:g.func,onMouseLeave:g.func,onMouseUp:g.func,onTouchEnd:g.func,onTouchMove:g.func,onTouchStart:g.func,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),tabIndex:g.number,TouchRippleProps:g.object,touchRippleRef:g.oneOfType([g.func,g.shape({current:g.shape({pulsate:g.func.isRequired,start:g.func.isRequired,stop:g.func.isRequired})})]),type:g.oneOfType([g.oneOf(["button","reset","submit"]),g.string])});function Ec(e){return He("MuiCircularProgress",e)}ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ve=44,Lr=ut`
170
+ 0% {
171
+ transform: rotate(0deg);
172
+ }
173
+
174
+ 100% {
175
+ transform: rotate(360deg);
176
+ }
177
+ `,zr=ut`
178
+ 0% {
179
+ stroke-dasharray: 1px, 200px;
180
+ stroke-dashoffset: 0;
181
+ }
182
+
183
+ 50% {
184
+ stroke-dasharray: 100px, 200px;
185
+ stroke-dashoffset: -15px;
186
+ }
187
+
188
+ 100% {
189
+ stroke-dasharray: 1px, 200px;
190
+ stroke-dashoffset: -126px;
191
+ }
192
+ `,Tc=typeof Lr!="string"?Er`
193
+ animation: ${Lr} 1.4s linear infinite;
194
+ `:null,Cc=typeof zr!="string"?Er`
195
+ animation: ${zr} 1.4s ease-in-out infinite;
196
+ `:null,xc=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${pe(n)}`],svg:["svg"],circle:["circle",`circle${pe(r)}`,o&&"circleDisableShrink"]};return Et(i,Ec,t)},wc=Ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${pe(r.color)}`]]}})(gt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Tc||{animation:`${Lr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Nr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Oc=Ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kc=Ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(gt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Cc||{animation:`${zr} 1.4s ease-in-out infinite`}}]}))),yo=P.forwardRef(function(t,r){const n=yt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:c=40,style:u,thickness:f=3.6,value:m=0,variant:p="indeterminate",...h}=n,C={...n,color:i,disableShrink:a,size:c,thickness:f,value:m,variant:p},b=xc(C),l={},S={},w={};if(p==="determinate"){const A=2*Math.PI*((Ve-f)/2);l.strokeDasharray=A.toFixed(3),w["aria-valuenow"]=Math.round(m),l.strokeDashoffset=`${((100-m)/100*A).toFixed(3)}px`,S.transform="rotate(-90deg)"}return q.jsx(wc,{className:ve(b.root,o),style:{width:c,height:c,...S,...u},ownerState:C,ref:r,role:"progressbar",...w,...h,children:q.jsx(Oc,{className:b.svg,ownerState:C,viewBox:`${Ve/2} ${Ve/2} ${Ve} ${Ve}`,children:q.jsx(kc,{className:b.circle,style:l,ownerState:C,cx:Ve,cy:Ve,r:(Ve-f)/2,fill:"none",strokeWidth:f})})})});process.env.NODE_ENV!=="production"&&(yo.propTypes={classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","primary","secondary","error","info","success","warning"]),g.string]),disableShrink:Mr(g.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:g.oneOfType([g.number,g.string]),style:g.object,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),thickness:g.number,value:g.number,variant:g.oneOf(["determinate","indeterminate"])});function Rc(e){return He("MuiIconButton",e)}const bo=ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Pc=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:a}=e,c={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${pe(n)}`,o&&`edge${pe(o)}`,`size${pe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Et(c,Rc,t)},$c=Ne(go,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${pe(r.color)}`],r.edge&&t[`edge${pe(r.edge)}`],t[`size${pe(r.size)}`]]}})(gt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kr(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),gt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Nr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Nr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kr((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${bo.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${bo.loading}`]:{color:"transparent"}}))),_c=Ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),vo=P.forwardRef(function(t,r){const n=yt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:u=!1,disableFocusRipple:f=!1,size:m="medium",id:p,loading:h=null,loadingIndicator:C,...b}=n,l=Ws(p),S=C??q.jsx(yo,{"aria-labelledby":l,color:"inherit",size:16}),w={...n,edge:o,color:c,disabled:u,disableFocusRipple:f,loading:h,loadingIndicator:S,size:m},A=Pc(w);return q.jsxs($c,{id:h?l:p,className:ve(A.root,a),centerRipple:!0,focusRipple:!f,disabled:u||h,ref:r,...b,ownerState:w,children:[typeof h=="boolean"&&q.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:q.jsx(_c,{className:A.loadingIndicator,ownerState:w,children:h&&S})}),i]})});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:Mr(g.node,e=>P.Children.toArray(e.children).some(r=>P.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
197
+ `)):null),classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),g.string]),disabled:g.bool,disableFocusRipple:g.bool,disableRipple:g.bool,edge:g.oneOf(["end","start",!1]),id:g.string,loading:g.bool,loadingIndicator:g.node,size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});function Ac(e){const t=()=>{var n;(n=e.onClose)==null||n.call(e)},r=e.sx||{backgroundColor:n=>n.palette.primary.main,color:"#fff"};return q.jsxs(q.Fragment,{children:[q.jsx(ke.DialogTitle,{"data-testid":"dialog-title",sx:r,children:e.title}),q.jsx(vo,{onClick:()=>t(),sx:{position:"absolute",right:8,top:12,color:"#fff"},children:q.jsx(Ys,{})})]})}const So=D.createContext(null),Ic=()=>{const e=D.useContext(So);if(!e)throw new Error("useMessageDialog must be used within a MessageDialogProvider");return e},Mc={okText:"OK",cancelText:"Cancel",alertTitle:"Alert",confirmTitle:"Confirm",errorTitle:"Error"},Nc=e=>{const t={...Mc,...e.settings||{}},r=D.useMemo(()=>({backgroundColor:s=>s.palette.primary.main,color:"#fff"}),[]),[n,o]=D.useState(!1),[i,a]=D.useState(""),[c,u]=D.useState(null),[f,m]=D.useState(!1),[p,h]=D.useState(r),[C,b]=D.useState(t.alertTitle),[l,S]=D.useState(t.okText),[w,A]=D.useState(t.cancelText),O=s=>(a(s||""),o(!0),new Promise(x=>{u(()=>x)})),T=D.useCallback((s,x)=>(b(t.confirmTitle),S((x==null?void 0:x.okText)||t.okText),A((x==null?void 0:x.cancelText)||t.cancelText),m(!0),h(r),O(s)),[r,t]),v=D.useCallback(s=>(b(t.alertTitle),S(t.okText),m(!1),h(r),O(s)),[r,t]),$=D.useCallback(s=>(b(t.errorTitle),S(t.okText),m(!1),h({backgroundColor:x=>x.palette.error.main,color:"#fff"}),O(s)),[t]),_=s=>{o(!1);const x=c;u(null),x==null||x(s)},G=(s,x)=>{x!=="backdropClick"&&_(!1)},ee=D.useMemo(()=>({error:$,alert:v,confirm:T}),[$,v,T]);return D.useEffect(()=>{const s=x=>{n&&o(!1)};return window.addEventListener("popstate",s),()=>{window.removeEventListener("popstate",s)}},[n]),q.jsx(q.Fragment,{children:q.jsxs(So.Provider,{value:ee,children:[e.children,q.jsxs(ke.Dialog,{"data-testid":"message-dialog",open:n,onClose:G,children:[q.jsx(Ac,{title:C,onClose:()=>_(!1),sx:p}),q.jsx(ke.DialogContent,{dividers:!0,sx:{whiteSpace:"pre-line"},children:i}),q.jsxs(ke.DialogActions,{sx:{display:"flex",justifyContent:"space-between",paddingLeft:3,paddingRight:3},children:[q.jsx("div",{style:{flex:1,display:"flex",justifyContent:f?"flex-start":"center"},children:q.jsx(ke.Button,{"data-testid":"message-dialog-ok-button",onClick:()=>_(!0),sx:p,children:l})}),f&&q.jsx("div",{style:{flex:1,display:"flex",justifyContent:"flex-end"},children:q.jsx(ke.Button,{"data-testid":"message-dialog-cancel-button",onClick:()=>_(!1),variant:"outlined",children:w})})]})]})]})})};ye.MessageDialogProvider=Nc,ye.useMessageDialog=Ic,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhelom/react-mui-message-dialog",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,8 +32,12 @@
32
32
  "keywords": [
33
33
  "react",
34
34
  "mui",
35
- "dialog"
35
+ "dialog",
36
+ "typescript",
37
+ "promise",
38
+ "message"
36
39
  ],
40
+ "license": "MIT",
37
41
  "scripts": {
38
42
  "build": "vite build",
39
43
  "test": "vitest",