@jhelom/react-mui-message-dialog 1.0.1 → 1.0.3
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.
- package/dist/DialogTitleEx.d.ts +7 -0
- package/dist/MessageDialog.d.ts +13 -0
- package/dist/MessageDialogContext.d.ts +17 -0
- package/dist/index.cjs.js +197 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +6473 -0
- package/dist/index.umd.js +197 -0
- package/package.json +7 -2
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export interface MessageDialogSettings {
|
3
|
+
okText?: string;
|
4
|
+
cancelText?: string;
|
5
|
+
alertTitle?: string;
|
6
|
+
confirmTitle?: string;
|
7
|
+
errorTitle?: string;
|
8
|
+
}
|
9
|
+
export interface MessageDialogProviderProps {
|
10
|
+
children: ReactNode;
|
11
|
+
settings?: MessageDialogSettings;
|
12
|
+
}
|
13
|
+
export declare const MessageDialogProvider: (props: MessageDialogProviderProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export type MessageDialogType = {
|
2
|
+
confirm: (message?: string, options?: MessageDialogOptions) => Promise<boolean>;
|
3
|
+
alert: (message?: string) => Promise<boolean>;
|
4
|
+
error: (message?: string) => Promise<boolean>;
|
5
|
+
};
|
6
|
+
export type MessageDialogOptions = {
|
7
|
+
okText?: string;
|
8
|
+
cancelText?: string;
|
9
|
+
};
|
10
|
+
export interface MessageDialogSettings {
|
11
|
+
okText?: string;
|
12
|
+
cancelText?: string;
|
13
|
+
defaultTitle?: string;
|
14
|
+
errorTitle?: string;
|
15
|
+
}
|
16
|
+
export declare const MessageDialogContext: import('react').Context<MessageDialogType | null>;
|
17
|
+
export declare const useMessageDialog: () => MessageDialogType;
|
@@ -0,0 +1,197 @@
|
|
1
|
+
"use strict";var xo=Object.defineProperty;var wo=(e,t,r)=>t in e?xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var et=(e,t,r)=>wo(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),qe=require("@mui/material");function Ro(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 _=Ro(Y);function Oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cr={exports:{}},tt={};/**
|
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 ko(){if(Ur)return tt;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 tt.Fragment=t,tt.jsx=r,tt.jsxs=r,tt}var rt={};/**
|
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 Po(){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 P:return"SuspenseList";case Q: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 R: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 k=E.error,I=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return k.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 k(){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))}k.isReactWarning=!0,Object.defineProperty(d,"key",{get:k,configurable:!0})}function u(){var d=e(this.type);return te[d]||(te[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,k,I,N,D,B,V){return k=D.ref,d={$$typeof:C,type:d,key:E,props:D,_owner:N},(k!==void 0?k: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:B}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function m(d,E,k,I,N,D,B,V){var j=E.children;if(j!==void 0)if(I)if(F(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 z=Object.keys(E).filter(function(de){return de!=="key"});I=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",oe[j+I]||(z=0<z.length?"{"+z.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,z,j),oe[j+I]=!0)}if(j=null,k!==void 0&&(r(k),j=""+k),a(E)&&(r(E.key),j=""+E.key),"key"in E){k={};for(var U in E)U!=="key"&&(k[U]=E[U])}else k=E;return j&&c(k,typeof d=="function"?d.displayName||d.name||"Unknown":d),f(d,j,D,N,o(),k,B,V)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===C&&d._store&&(d._store.validated=1)}var h=Y,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"),R=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Q=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,F=Array.isArray,W=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(d){return d()}};var ae,te={},fe=h["react-stack-bottom-frame"].bind(h,i)(),he=W(n(i)),oe={};rt.Fragment=l,rt.jsx=function(d,E,k,I,N){var D=1e4>x.recentlyCreatedOwnerStacks++;return m(d,E,k,!1,I,N,D?Error("react-stack-top-frame"):fe,D?W(n(d)):he)},rt.jsxs=function(d,E,k,I,N){var D=1e4>x.recentlyCreatedOwnerStacks++;return m(d,E,k,!0,I,N,D?Error("react-stack-top-frame"):fe,D?W(n(d)):he)}}()),rt}process.env.NODE_ENV==="production"?cr.exports=ko():cr.exports=Po();var q=cr.exports;const Yr=e=>e,$o=()=>{let e=Yr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yr}}},_o=$o();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 me(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 lr={exports:{}},Et={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 Ao(){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 R(v){if(typeof v=="object"&&v!==null){var P=v.$$typeof;switch(P){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 P}}case r:return P}}}function T(v){return R(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)||R(v)===u},X.isConcurrentMode=T,X.isContextConsumer=function(v){return R(v)===c},X.isContextProvider=function(v){return R(v)===a},X.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},X.isForwardRef=function(v){return R(v)===m},X.isFragment=function(v){return R(v)===n},X.isLazy=function(v){return R(v)===b},X.isMemo=function(v){return R(v)===C},X.isPortal=function(v){return R(v)===r},X.isProfiler=function(v){return R(v)===i},X.isStrictMode=function(v){return R(v)===o},X.isSuspense=function(v){return R(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=R,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 Io(){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 R(O){return typeof O=="string"||typeof O=="function"||O===n||O===f||O===i||O===o||O===p||O===h||typeof O=="object"&&O!==null&&(O.$$typeof===b||O.$$typeof===C||O.$$typeof===a||O.$$typeof===c||O.$$typeof===m||O.$$typeof===S||O.$$typeof===w||O.$$typeof===A||O.$$typeof===l)}function T(O){if(typeof O=="object"&&O!==null){var Te=O.$$typeof;switch(Te){case t:var Ne=O.type;switch(Ne){case u:case f:case n:case i:case o:case p:return Ne;default:var vt=Ne&&Ne.$$typeof;switch(vt){case c:case m:case b:case C:case a:return vt;default:return Te}}case r:return Te}}}var v=u,P=f,$=c,G=a,Q=t,s=m,x=n,M=b,F=C,W=r,ae=i,te=o,fe=p,he=!1;function oe(O){return he||(he=!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(O)||T(O)===u}function d(O){return T(O)===f}function E(O){return T(O)===c}function k(O){return T(O)===a}function I(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function N(O){return T(O)===m}function D(O){return T(O)===n}function B(O){return T(O)===b}function V(O){return T(O)===C}function j(O){return T(O)===r}function z(O){return T(O)===i}function U(O){return T(O)===o}function de(O){return T(O)===p}J.AsyncMode=v,J.ConcurrentMode=P,J.ContextConsumer=$,J.ContextProvider=G,J.Element=Q,J.ForwardRef=s,J.Fragment=x,J.Lazy=M,J.Memo=F,J.Portal=W,J.Profiler=ae,J.StrictMode=te,J.Suspense=fe,J.isAsyncMode=oe,J.isConcurrentMode=d,J.isContextConsumer=E,J.isContextProvider=k,J.isElement=I,J.isForwardRef=N,J.isFragment=D,J.isLazy=B,J.isMemo=V,J.isPortal=j,J.isProfiler=z,J.isStrictMode=U,J.isSuspense=de,J.isValidElementType=R,J.typeOf=T}()),J}var Hr;function xr(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?Et.exports=Ao():Et.exports=Io()),Et.exports}/*
|
37
|
+
object-assign
|
38
|
+
(c) Sindre Sorhus
|
39
|
+
@license MIT
|
40
|
+
*/var Qt,Kr;function Mo(){if(Kr)return Qt;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 Qt=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},Qt}var Zt,Xr;function wr(){if(Xr)return Zt;Xr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zt=e,Zt}var er,Jr;function Mn(){return Jr||(Jr=1,er=Function.call.bind(Object.prototype.hasOwnProperty)),er}var tr,Qr;function No(){if(Qr)return tr;Qr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=wr(),r={},n=Mn();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={})},tr=o,tr}var rr,Zr;function jo(){if(Zr)return rr;Zr=1;var e=xr(),t=Mo(),r=wr(),n=Mn(),o=No(),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 rr=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:R,element:T(),elementType:v(),instanceOf:P,node:s(),objectOf:G,oneOf:$,oneOfType:Q,shape:M,exact:F};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={},k=0;function I(D,B,V,j,z,U,de){if(j=j||h,U=U||V,de!==r){if(u){var O=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 O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=j+":"+V;!E[Te]&&k<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` 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[Te]=!0,k++)}}return B[V]==null?D?B[V]===null?new l("The "+z+" `"+U+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new l("The "+z+" `"+U+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:d(B,V,j,z,U)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function w(d){function E(k,I,N,D,B,V){var j=k[I],z=te(j);if(z!==d){var U=fe(j);return new l("Invalid "+D+" `"+B+"` of type "+("`"+U+"` supplied to `"+N+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return S(E)}function A(){return S(a)}function R(d){function E(k,I,N,D,B){if(typeof d!="function")return new l("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var V=k[I];if(!Array.isArray(V)){var j=te(V);return new l("Invalid "+D+" `"+B+"` of type "+("`"+j+"` supplied to `"+N+"`, expected an array."))}for(var z=0;z<V.length;z++){var U=d(V,z,N,D,B+"["+z+"]",r);if(U instanceof Error)return U}return null}return S(E)}function T(){function d(E,k,I,N,D){var B=E[k];if(!c(B)){var V=te(B);return new l("Invalid "+N+" `"+D+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return S(d)}function v(){function d(E,k,I,N,D){var B=E[k];if(!e.isValidElementType(B)){var V=te(B);return new l("Invalid "+N+" `"+D+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return S(d)}function P(d){function E(k,I,N,D,B){if(!(k[I]instanceof d)){var V=d.name||h,j=oe(k[I]);return new l("Invalid "+D+" `"+B+"` of type "+("`"+j+"` supplied to `"+N+"`, expected ")+("instance of `"+V+"`."))}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(k,I,N,D,B){for(var V=k[I],j=0;j<d.length;j++)if(b(V,d[j]))return null;var z=JSON.stringify(d,function(de,O){var Te=fe(O);return Te==="symbol"?String(O):O});return new l("Invalid "+D+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+N+"`, expected one of "+z+"."))}return S(E)}function G(d){function E(k,I,N,D,B){if(typeof d!="function")return new l("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var V=k[I],j=te(V);if(j!=="object")return new l("Invalid "+D+" `"+B+"` of type "+("`"+j+"` supplied to `"+N+"`, expected an object."));for(var z in V)if(n(V,z)){var U=d(V,z,N,D,B+"."+z,r);if(U instanceof Error)return U}return null}return S(E)}function Q(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 k=d[E];if(typeof k!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+he(k)+" at index "+E+"."),a}function I(N,D,B,V,j){for(var z=[],U=0;U<d.length;U++){var de=d[U],O=de(N,D,B,V,j,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&z.push(O.data.expectedType)}var Te=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new l("Invalid "+V+" `"+j+"` supplied to "+("`"+B+"`"+Te+"."))}return S(I)}function s(){function d(E,k,I,N,D){return W(E[k])?null:new l("Invalid "+N+" `"+D+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return S(d)}function x(d,E,k,I,N){return new l((d||"React class")+": "+E+" type `"+k+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function M(d){function E(k,I,N,D,B){var V=k[I],j=te(V);if(j!=="object")return new l("Invalid "+D+" `"+B+"` of type `"+j+"` "+("supplied to `"+N+"`, expected `object`."));for(var z in d){var U=d[z];if(typeof U!="function")return x(N,D,B,z,fe(U));var de=U(V,z,N,D,B+"."+z,r);if(de)return de}return null}return S(E)}function F(d){function E(k,I,N,D,B){var V=k[I],j=te(V);if(j!=="object")return new l("Invalid "+D+" `"+B+"` of type `"+j+"` "+("supplied to `"+N+"`, expected `object`."));var z=t({},k[I],d);for(var U in z){var de=d[U];if(n(d,U)&&typeof de!="function")return x(N,D,B,U,fe(de));if(!de)return new l("Invalid "+D+" `"+B+"` key `"+U+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(k[I],null," ")+`
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(d),null," "));var O=de(V,U,N,D,B+"."+U,r);if(O)return O}return null}return S(E)}function W(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(W);if(d===null||c(d))return!0;var E=p(d);if(E){var k=E.call(d),I;if(E!==d.entries){for(;!(I=k.next()).done;)if(!W(I.value))return!1}else for(;!(I=k.next()).done;){var N=I.value;if(N&&!W(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 te(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=te(d);if(E==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return E}function he(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 oe(d){return!d.constructor||!d.constructor.name?h:d.constructor.name}return C.checkPropTypes=o,C.resetWarningCache=o.resetWarningCache,C.PropTypes=C,C},rr}var nr,en;function Do(){if(en)return nr;en=1;var e=wr();function t(){}function r(){}return r.resetWarningCache=t,nr=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},nr}if(process.env.NODE_ENV!=="production"){var Bo=xr(),Fo=!0;lr.exports=jo()(Bo.isElement,Fo)}else lr.exports=Do()();var Vo=lr.exports;const g=Oo(Vo);function Nn(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=Nn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function be(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Nn(e))&&(n&&(n+=" "),n+=t);return n}function jt(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 ur={exports:{}},Z={};/**
|
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 tn;function Lo(){if(tn)return Z;tn=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 Z.ContextConsumer=i,Z.ContextProvider=a,Z.Element=e,Z.ForwardRef=c,Z.Fragment=r,Z.Lazy=p,Z.Memo=m,Z.Portal=t,Z.Profiler=o,Z.StrictMode=n,Z.Suspense=u,Z.SuspenseList=f,Z.isContextConsumer=function(l){return b(l)===i},Z.isContextProvider=function(l){return b(l)===a},Z.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},Z.isForwardRef=function(l){return b(l)===c},Z.isFragment=function(l){return b(l)===r},Z.isLazy=function(l){return b(l)===p},Z.isMemo=function(l){return b(l)===m},Z.isPortal=function(l){return b(l)===t},Z.isProfiler=function(l){return b(l)===o},Z.isStrictMode=function(l){return b(l)===n},Z.isSuspense=function(l){return b(l)===u},Z.isSuspenseList=function(l){return b(l)===f},Z.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)},Z.typeOf=b,Z}var ee={};/**
|
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 rn;function zo(){return rn||(rn=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");ee.ContextConsumer=a,ee.ContextProvider=c,ee.Element=t,ee.ForwardRef=u,ee.Fragment=n,ee.Lazy=h,ee.Memo=p,ee.Portal=r,ee.Profiler=i,ee.StrictMode=o,ee.Suspense=f,ee.SuspenseList=m,ee.isContextConsumer=function(l){return e(l)===a},ee.isContextProvider=function(l){return e(l)===c},ee.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},ee.isForwardRef=function(l){return e(l)===u},ee.isFragment=function(l){return e(l)===n},ee.isLazy=function(l){return e(l)===h},ee.isMemo=function(l){return e(l)===p},ee.isPortal=function(l){return e(l)===r},ee.isProfiler=function(l){return e(l)===i},ee.isStrictMode=function(l){return e(l)===o},ee.isSuspense=function(l){return e(l)===f},ee.isSuspenseList=function(l){return e(l)===m},ee.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)},ee.typeOf=e}()),ee}process.env.NODE_ENV==="production"?ur.exports=Lo():ur.exports=zo();var $t=ur.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 jn(e){if(_.isValidElement(e)||$t.isValidElementType(e)||!Ae(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=jn(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=>{_.isValidElement(t[o])||$t.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])?jn(t[o]):t[o]:n[o]=t[o]}),n}function st(e,t){return t?Se(e,t,{clone:!1}):e}const Fe=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{};function Uo(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 Wo(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Yo(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 qo(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 Dt={xs:0,sm:600,md:900,lg:1200,xl:1536},nn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dt[e]}px)`},Go={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Dt[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||nn;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||nn;return Object.keys(t).reduce((a,c)=>{if(Wo(i.keys,c)){const u=Yo(n.containerQueries?n:Go,c);u&&(a[u]=r(t[c],c))}else if(Object.keys(i.values||Dt).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 Ho(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Ko(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Bt(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 _t(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Bt(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=Bt(u,n)||{};return Ie(a,c,p=>{let h=_t(f,o,p);return p===h&&typeof p=="string"&&(h=_t(f,o,`${t}${p==="default"?"":me(p)}`,p)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fe}:{},i.filterProps=[t],i}function Xo(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Jo={m:"margin",p:"padding"},Qo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},on={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zo=Xo(e=>{if(e.length>2)if(on[e])e=on[e];else return[e];const[t,r]=e.split(""),n=Jo[t],o=Qo[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ft=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ei=[...Ft,...Vt];function pt(e,t,r,n){const o=Bt(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 Rr(e){return pt(e,"spacing",8,"spacing")}function mt(e,t){return typeof t=="string"||t==null?t:e(t)}function ti(e,t){return r=>e.reduce((n,o)=>(n[o]=mt(t,r),n),{})}function ri(e,t,r,n){if(!t.includes(r))return null;const o=Zo(r),i=ti(o,n),a=e[r];return Ie(e,a,i)}function Dn(e,t){const r=Rr(e.theme);return Object.keys(e).map(n=>ri(e,t,n,r)).reduce(st,{})}function se(e){return Dn(e,Ft)}se.propTypes=process.env.NODE_ENV!=="production"?Ft.reduce((e,t)=>(e[t]=Fe,e),{}):{};se.filterProps=Ft;function ce(e){return Dn(e,Vt)}ce.propTypes=process.env.NODE_ENV!=="production"?Vt.reduce((e,t)=>(e[t]=Fe,e),{}):{};ce.filterProps=Vt;process.env.NODE_ENV!=="production"&&ei.reduce((e,t)=>(e[t]=Fe,e),{});function Lt(...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]?st(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 xe(e){return typeof e!="number"?e:`${e}px solid`}function we(e,t){return le({prop:e,themeKey:"borders",transform:t})}const ni=we("border",xe),oi=we("borderTop",xe),ii=we("borderRight",xe),ai=we("borderBottom",xe),si=we("borderLeft",xe),ci=we("borderColor"),li=we("borderTopColor"),ui=we("borderRightColor"),fi=we("borderBottomColor"),di=we("borderLeftColor"),pi=we("outline",xe),mi=we("outlineColor"),zt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:mt(t,n)});return Ie(e,e.borderRadius,r)}return null};zt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fe}:{};zt.filterProps=["borderRadius"];Lt(ni,oi,ii,ai,si,ci,li,ui,fi,di,zt,pi,mi);const Ut=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pt(e.theme,"spacing",8,"gap"),r=n=>({gap:mt(t,n)});return Ie(e,e.gap,r)}return null};Ut.propTypes=process.env.NODE_ENV!=="production"?{gap:Fe}:{};Ut.filterProps=["gap"];const Wt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:mt(t,n)});return Ie(e,e.columnGap,r)}return null};Wt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fe}:{};Wt.filterProps=["columnGap"];const Yt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:mt(t,n)});return Ie(e,e.rowGap,r)}return null};Yt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fe}:{};Yt.filterProps=["rowGap"];const hi=le({prop:"gridColumn"}),gi=le({prop:"gridRow"}),yi=le({prop:"gridAutoFlow"}),bi=le({prop:"gridAutoColumns"}),vi=le({prop:"gridAutoRows"}),Si=le({prop:"gridTemplateColumns"}),Ei=le({prop:"gridTemplateRows"}),Ti=le({prop:"gridTemplateAreas"}),Ci=le({prop:"gridArea"});Lt(Ut,Wt,Yt,hi,gi,yi,bi,vi,Si,Ei,Ti,Ci);function Ge(e,t){return t==="grey"?t:e}const xi=le({prop:"color",themeKey:"palette",transform:Ge}),wi=le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ge}),Ri=le({prop:"backgroundColor",themeKey:"palette",transform:Ge});Lt(xi,wi,Ri);function ve(e){return e<=1&&e!==0?`${e*100}%`:e}const Oi=le({prop:"width",transform:ve}),Or=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])||Dt[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:ve(r)}};return Ie(e,e.maxWidth,t)}return null};Or.filterProps=["maxWidth"];const ki=le({prop:"minWidth",transform:ve}),Pi=le({prop:"height",transform:ve}),$i=le({prop:"maxHeight",transform:ve}),_i=le({prop:"minHeight",transform:ve});le({prop:"size",cssProperty:"width",transform:ve});le({prop:"size",cssProperty:"height",transform:ve});const Ai=le({prop:"boxSizing"});Lt(Oi,Or,ki,Pi,$i,_i,Ai);const qt={border:{themeKey:"borders",transform:xe},borderTop:{themeKey:"borders",transform:xe},borderRight:{themeKey:"borders",transform:xe},borderBottom:{themeKey:"borders",transform:xe},borderLeft:{themeKey:"borders",transform:xe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:Ge},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ge},backgroundColor:{themeKey:"palette",transform:Ge},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:Ut},rowGap:{style:Yt},columnGap:{style:Wt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ve},maxWidth:{style:Or},minWidth:{transform:ve},height:{transform:ve},maxHeight:{transform:ve},minHeight:{transform:ve},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 Ii(...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 Mi(e,t){return typeof e=="function"?e(t):e}function Ni(){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=Bt(o,f)||{};return p?p(a):Ie(a,n,b=>{let l=_t(h,m,b);return b===l&&typeof b=="string"&&(l=_t(h,m,`${r}${b==="default"?"":me(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??qt;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=Ho(o.breakpoints),m=Object.keys(f);let p=f;return Object.keys(u).forEach(h=>{const C=Mi(u[h],o);if(C!=null)if(typeof C=="object")if(i[h])p=st(p,e(h,C,o,i));else{const b=Ie({theme:o},C,l=>({[h]:l}));Ii(b,C)?p[h]=t({sx:C,theme:o}):p=st(p,b)}else p=st(p,e(h,C,o,i))}),Uo(o,Ko(m,p))}return Array.isArray(n)?n.map(a):a(n)}return t}const Ke=Ni();Ke.filterProps=["sx"];function At(){return At=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},At.apply(null,arguments)}function ji(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 Di(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 Bi=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(Di(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ji(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}(),ge="-ms-",It="-moz-",H="-webkit-",Bn="comm",kr="rule",Pr="decl",Fi="@import",Fn="@keyframes",Vi="@layer",Li=Math.abs,Gt=String.fromCharCode,zi=Object.assign;function Ui(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function Vn(e){return e.trim()}function Wi(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function fr(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function ct(e,t,r){return e.slice(t,r)}function Oe(e){return e.length}function $r(e){return e.length}function Tt(e,t){return t.push(e),e}function Yi(e,t){return e.map(t).join("")}var Ht=1,Xe=1,Ln=0,ye=0,ue=0,Je="";function Kt(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ht,column:Xe,length:a,return:""}}function nt(e,t){return zi(Kt("",null,null,"",null,null,0),e,{length:-e.length},t)}function qi(){return ue}function Gi(){return ue=ye>0?pe(Je,--ye):0,Xe--,ue===10&&(Xe=1,Ht--),ue}function Ee(){return ue=ye<Ln?pe(Je,ye++):0,Xe++,ue===10&&(Xe=1,Ht++),ue}function Pe(){return pe(Je,ye)}function wt(){return ye}function ht(e,t){return ct(Je,e,t)}function lt(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 zn(e){return Ht=Xe=1,Ln=Oe(Je=e),ye=0,[]}function Un(e){return Je="",e}function Rt(e){return Vn(ht(ye-1,dr(e===91?e+2:e===40?e+1:e)))}function Hi(e){for(;(ue=Pe())&&ue<33;)Ee();return lt(e)>2||lt(ue)>3?"":" "}function Ki(e,t){for(;--t&&Ee()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ht(e,wt()+(t<6&&Pe()==32&&Ee()==32))}function dr(e){for(;Ee();)switch(ue){case e:return ye;case 34:case 39:e!==34&&e!==39&&dr(ue);break;case 40:e===41&&dr(e);break;case 92:Ee();break}return ye}function Xi(e,t){for(;Ee()&&e+ue!==57;)if(e+ue===84&&Pe()===47)break;return"/*"+ht(t,ye-1)+"*"+Gt(e===47?e:Ee())}function Ji(e){for(;!lt(Pe());)Ee();return ht(e,ye)}function Qi(e){return Un(Ot("",null,null,null,[""],e=zn(e),0,[0],e))}function Ot(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,R="",T=o,v=i,P=n,$=R;S;)switch(b=A,A=Ee()){case 40:if(b!=108&&pe($,p-1)==58){fr($+=K(Rt(A),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:$+=Rt(A);break;case 9:case 10:case 13:case 32:$+=Hi(b);break;case 92:$+=Ki(wt()-1,7);continue;case 47:switch(Pe()){case 42:case 47:Tt(Zi(Xi(Ee(),wt()),t,r),u);break;default:$+="/"}break;case 123*l:c[f++]=Oe($)*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&&Oe($)-p&&Tt(C>32?sn($+";",n,r,p-1):sn(K($," ","")+";",n,r,p-2),u);break;case 59:$+=";";default:if(Tt(P=an($,t,r,f,m,o,c,R,T=[],v=[],p),i),A===123)if(m===0)Ot($,t,P,P,T,i,p,c,v);else switch(h===99&&pe($,3)===110?100:h){case 100:case 108:case 109:case 115:Ot(e,P,P,n&&Tt(an(e,P,P,0,0,o,c,R,o,T=[],p),v),o,v,p,c,n?T:v);break;default:Ot($,P,P,P,[""],v,0,c,v)}}f=m=C=0,l=w=1,R=$="",p=a;break;case 58:p=1+Oe($),C=b;default:if(l<1){if(A==123)--l;else if(A==125&&l++==0&&Gi()==125)continue}switch($+=Gt(A),A*l){case 38:w=m>0?1:($+="\f",-1);break;case 44:c[f++]=(Oe($)-1)*w,w=1;break;case 64:Pe()===45&&($+=Rt(Ee())),h=Pe(),m=p=Oe(R=$+=Ji(wt())),A++;break;case 45:b===45&&Oe($)==2&&(l=0)}}return i}function an(e,t,r,n,o,i,a,c,u,f,m){for(var p=o-1,h=o===0?i:[""],C=$r(h),b=0,l=0,S=0;b<n;++b)for(var w=0,A=ct(e,p+1,p=Li(l=a[b])),R=e;w<C;++w)(R=Vn(l>0?h[w]+" "+A:K(A,/&\f/g,h[w])))&&(u[S++]=R);return Kt(e,t,r,o===0?kr:c,u,f,m)}function Zi(e,t,r){return Kt(e,t,r,Bn,Gt(qi()),ct(e,2,-2),0)}function sn(e,t,r,n){return Kt(e,t,r,Pr,ct(e,0,n),ct(e,n+1,-1),n)}function He(e,t){for(var r="",n=$r(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ea(e,t,r,n){switch(e.type){case Vi:if(e.children.length)break;case Fi:case Pr:return e.return=e.return||e.value;case Bn:return"";case Fn:return e.return=e.value+"{"+He(e.children,n)+"}";case kr:e.value=e.props.join(",")}return Oe(r=He(e.children,n))?e.return=e.value+"{"+r+"}":""}function ta(e){var t=$r(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 ra(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var na=function(t,r,n){for(var o=0,i=0;o=i,i=Pe(),o===38&&i===12&&(r[n]=1),!lt(i);)Ee();return ht(t,ye)},oa=function(t,r){var n=-1,o=44;do switch(lt(o)){case 0:o===38&&Pe()===12&&(r[n]=1),t[n]+=na(ye-1,r,n);break;case 2:t[n]+=Rt(o);break;case 4:if(o===44){t[++n]=Pe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Gt(o)}while(o=Ee());return t},ia=function(t,r){return Un(oa(zn(t),r))},cn=new WeakMap,aa=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&&!cn.get(n))&&!o){cn.set(t,!0);for(var i=[],a=ia(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]}}},sa=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Yn(e,t){switch(Ui(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+It+e+ge+e+e;case 6828:case 4268:return H+e+ge+e+e;case 6165:return H+e+ge+"flex-"+e+e;case 5187:return H+e+K(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return H+e+ge+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return H+e+ge+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+ge+K(e,"shrink","negative")+e;case 5292:return H+e+ge+K(e,"basis","preferred-size")+e;case 6060:return H+"box-"+K(e,"-grow","")+H+e+ge+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"+ge+"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(Oe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+It+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fr(e,"stretch")?Yn(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Oe(e)-3-(~fr(e,"!important")&&10))){case 107:return K(e,":",":"+H)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(pe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return H+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+ge+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+ge+e+e}return e}var ca=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Pr:t.return=Yn(t.value,t.length);break;case Fn:return He([nt(t,{value:K(t.value,"@","@"+H)})],o);case kr:if(t.length)return Yi(t.props,function(i){switch(Wi(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return He([nt(t,{props:[K(i,/:(read-\w+)/,":"+It+"$1")]})],o);case"::placeholder":return He([nt(t,{props:[K(i,/:(plac\w+)/,":"+H+"input-$1")]}),nt(t,{props:[K(i,/:(plac\w+)/,":"+It+"$1")]}),nt(t,{props:[K(i,/:(plac\w+)/,ge+"input-$1")]})],o)}return""})}},la=[ca],ua=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||la,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=[aa,sa];{var m,p=[ea,ra(function(l){m.insert(l)})],h=ta(f.concat(o,p)),C=function(S){return He(Qi(S),h)};u=function(S,w,A,R){m=A,C(S?S+"{"+w.styles+"}":w.styles),R&&(b.inserted[w.name]=!0)}}var b={key:r,sheet:new Bi({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},qn=xr(),fa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},da={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gn={};Gn[qn.ForwardRef]=fa;Gn[qn.Memo]=da;var pa=!0;function Hn(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var _r=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||pa===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Kn=function(t,r,n){_r(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 ma(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 ha={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},ga=/[A-Z]|^ms/g,ya=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xn=function(t){return t.charCodeAt(1)===45},ln=function(t){return t!=null&&typeof t!="boolean"},or=Wn(function(e){return Xn(e)?e:e.replace(ga,"-$&").toLowerCase()}),un=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ya,function(n,o,i){return ke={name:o,styles:i,next:ke},o})}return ha[t]!==1&&!Xn(t)&&typeof r=="number"&&r!==0?r+"px":r};function ut(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 ke={name:o.name,styles:o.styles,next:ke},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ke={name:a.name,styles:a.styles,next:ke},a=a.next;var c=i.styles+";";return c}return ba(e,t,r)}case"function":{if(e!==void 0){var u=ke,f=r(e);return ke=u,ut(e,t,f)}break}}var m=r;if(t==null)return m;var p=t[m];return p!==void 0?p:m}function ba(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ut(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]+"}":ln(c)&&(n+=or(i)+":"+un(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++)ln(a[u])&&(n+=or(i)+":"+un(i,a[u])+";");else{var f=ut(e,t,a);switch(i){case"animation":case"animationName":{n+=or(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var fn=/label:\s*([^\s;{]+)\s*(;|$)/g,ke;function Xt(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="";ke=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=ut(r,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=ut(r,t,e[c]),n){var u=i;o+=u[c]}fn.lastIndex=0;for(var f="",m;(m=fn.exec(o))!==null;)f+="-"+m[1];var p=ma(o)+f;return{name:p,styles:o,next:ke}}var va=function(t){return t()},Sa=_.useInsertionEffect?_.useInsertionEffect:!1,Jn=Sa||va,Qn=_.createContext(typeof HTMLElement<"u"?ua({key:"css"}):null);Qn.Provider;var Zn=function(t){return Y.forwardRef(function(r,n){var o=Y.useContext(Qn);return t(r,o,n)})},eo=_.createContext({}),Ar={}.hasOwnProperty,pr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ea=function(t,r){var n={};for(var o in r)Ar.call(r,o)&&(n[o]=r[o]);return n[pr]=t,n},Ta=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return _r(r,n,o),Jn(function(){return Kn(r,n,o)}),null},Ca=Zn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[pr],i=[n],a="";typeof e.className=="string"?a=Hn(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var c=Xt(i,void 0,_.useContext(eo));a+=t.key+"-"+c.name;var u={};for(var f in e)Ar.call(e,f)&&f!=="css"&&f!==pr&&(u[f]=e[f]);return u.className=a,r&&(u.ref=r),_.createElement(_.Fragment,null,_.createElement(Ta,{cache:t,serialized:c,isStringTag:typeof o=="string"}),_.createElement(o,u))}),xa=Ca,dn=function(t,r){var n=arguments;if(r==null||!Ar.call(r,"css"))return _.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=xa,i[1]=Ea(t,r);for(var a=2;a<o;a++)i[a]=n[a];return _.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(dn||(dn={}));function Ir(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Xt(t)}function gt(){var e=Ir.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 wa=/^((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)-.*))$/,Ra=Wn(function(e){return wa.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Oa=Ra,ka=function(t){return t!=="theme"},pn=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Oa:ka},mn=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},Pa=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return _r(r,n,o),Jn(function(){return Kn(r,n,o)}),null},$a=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=mn(t,r,n),u=c||pn(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=Zn(function(S,w,A){var R=f&&S.as||o,T="",v=[],P=S;if(S.theme==null){P={};for(var $ in S)P[$]=S[$];P.theme=_.useContext(eo)}typeof S.className=="string"?T=Hn(w.registered,v,S.className):S.className!=null&&(T=S.className+" ");var G=Xt(p.concat(v),w.registered,P);T+=w.key+"-"+G.name,a!==void 0&&(T+=" "+a);var Q=f&&c===void 0?pn(R):u,s={};for(var x in S)f&&x==="as"||Q(x)&&(s[x]=S[x]);return s.className=T,A&&(s.ref=A),_.createElement(_.Fragment,null,_.createElement(Pa,{cache:w,serialized:G,isStringTag:typeof R=="string"}),_.createElement(R,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,At({},r,w,{shouldForwardProp:mn(l,w,!0)}));return A.apply(void 0,p)},l}},_a=["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"],mr=$a.bind(null);_a.forEach(function(e){mr[e]=mr(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 Aa(e,t){const r=mr(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 Ia(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const hn=[];function gn(e){return hn[0]=e,Xt(hn)}const Ma=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 Na(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=Ma(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 ja={borderRadius:4};function to(e=8,t=Rr({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 Da(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 ro(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,c=Na(r),u=to(o);let f=Se({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...ja,...i}},a);return f=qo(f),f.applyStyles=Da,f=t.reduce((m,p)=>Se(m,p),f),f.unstable_sxConfig={...qt,...a==null?void 0:a.unstable_sxConfig},f.unstable_sx=function(p){return Ke({sx:p,theme:this})},f}const Ba={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 Qe(e,t,r="Mui"){const n=Ba[t];return n?`${r}-${n}`:`${_o.generate(e)}-${t}`}function yt(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Qe(e,o,r)}),n}function no(e,t=""){return e.displayName||e.name||t}function yn(e,t,r){const n=no(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Fa(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return no(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $t.ForwardRef:return yn(e,e.render,"ForwardRef");case $t.Memo:return yn(e,e.type,"memo");default:return}}}function oo(e){const{variants:t,...r}=e,n={variants:t,style:gn(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=gn(o.style))}),n}const Va=ro();function ir(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function La(e){return e?(t,r)=>r[e]:null}function za(e,t,r){e.theme=qa(e.theme)?r:e.theme[t]||e.theme}function kt(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>kt(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 io(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function io(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 Ua(e={}){const{themeId:t,defaultTheme:r=Va,rootShouldForwardProp:n=ir,slotShouldForwardProp:o=ir}=e;function i(c){za(c,t,r)}return(c,u={})=>{Ia(c,v=>v.filter(P=>P!==Ke));const{name:f,slot:m,skipVariantsResolver:p,skipSx:h,overridesResolver:C=La(ao(m)),...b}=u,l=p!==void 0?p:m&&m!=="Root"&&m!=="root"||!1,S=h||!1;let w=ir;m==="Root"||m==="root"?w=n:m?w=o:Ga(c)&&(w=void 0);const A=Aa(c,{shouldForwardProp:w,label:Ya(f,m),...b}),R=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function($){return kt($,v)};if(Ae(v)){const P=oo(v);return P.variants?function(G){return kt(G,P)}:P.style}return v},T=(...v)=>{const P=[],$=v.map(R),G=[];if(P.push(i),f&&C&&G.push(function(M){var te,fe;const W=(fe=(te=M.theme.components)==null?void 0:te[f])==null?void 0:fe.styleOverrides;if(!W)return null;const ae={};for(const he in W)ae[he]=kt(M,W[he]);return C(M,ae)}),f&&!l&&G.push(function(M){var ae,te;const F=M.theme,W=(te=(ae=F==null?void 0:F.components)==null?void 0:ae[f])==null?void 0:te.variants;return W?io(M,W):null}),S||G.push(Ke),Array.isArray($[0])){const x=$.shift(),M=new Array(P.length).fill(""),F=new Array(G.length).fill("");let W;W=[...M,...x,...F],W.raw=[...M,...x.raw,...F],P.unshift(W)}const Q=[...P,...$,...G],s=A(...Q);return c.muiName&&(s.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(s.displayName=Wa(f,m,c)),s};return A.withConfig&&(T.withConfig=A.withConfig),T}}function Wa(e,t,r){return e?`${e}${me(t||"")}`:`Styled(${Fa(r)})`}function Ya(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${ao(t||"Root")}`),r}function qa(e){for(const t in e)return!1;return!0}function Ga(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ao(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function hr(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]=hr(i[u],a[u])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const Ha=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Ka(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Mr(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}].`),Ka(e,t,r)}function Xa(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 Be(e){if(e.type)return e;if(e.charAt(0)==="#")return Be(Xa(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 Ja=e=>{const t=Be(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},it=(e,t)=>{try{return Ja(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jt(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 so(e){e=Be(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])),Jt({type:c,values:u})}function gr(e){e=Be(e);let t=e.type==="hsl"||e.type==="hsla"?Be(so(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 bn(e,t){const r=gr(e),n=gr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yr(e,t){return e=Be(e),t=Mr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jt(e)}function Ct(e,t,r){try{return yr(e,t)}catch{return e}}function Nr(e,t){if(e=Be(e),t=Mr(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 Jt(e)}function re(e,t,r){try{return Nr(e,t)}catch{return e}}function jr(e,t){if(e=Be(e),t=Mr(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 Jt(e)}function ne(e,t,r){try{return jr(e,t)}catch{return e}}function Qa(e,t=.15){return gr(e)>.5?Nr(e,t):jr(e,t)}function xt(e,t,r){try{return Qa(e,t)}catch{return e}}const Za=_.createContext(void 0);process.env.NODE_ENV!=="production"&&(g.node,g.object);function es(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?hr(o.defaultProps,n):!o.styleOverrides&&!o.variants?hr(o,n):n}function ts({props:e,name:t}){const r=_.useContext(Za);return es({props:e,name:t,theme:{components:r}})}const vn={theme:void 0};function rs(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(vn.theme=o.theme,i=oo(e(vn)),t=i,r=o.theme),i}}function ns(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 Sn=(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])})},os=(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)},is=(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 ar(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return os(e,(c,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(c,u))){const m=`--${r?`${r}-`:""}${c.join("-")}`,p=is(c,u);Object.assign(o,{[m]:p}),Sn(i,c,`var(${m})`,f),Sn(a,c,`var(${m}, ${p})`,f)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function as(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}=ar(u,t);let h=p;const C={},{[c]:b,...l}=i;if(Object.entries(l||{}).forEach(([R,T])=>{const{vars:v,css:P,varsWithDefaults:$}=ar(T,t);h=Se(h,$),C[R]={css:P,vars:v}}),b){const{css:R,vars:T,varsWithDefaults:v}=ar(b,t);h=Se(h,v),C[c]={css:R,vars:T}}function S(R,T){var P,$;let v=o;if(o==="class"&&(v=".%s"),o==="data"&&(v="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(v=`[${o}="%s"]`),R){if(v==="media")return e.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${(($=(P=i[R])==null?void 0:P.palette)==null?void 0:$.mode)||R})`]:{":root":T}};if(v)return e.defaultColorScheme===R?`:root, ${v.replace("%s",String(R))}`:v.replace("%s",String(R))}return":root"}return{vars:h,generateThemeVars:()=>{let R={...f};return Object.entries(C).forEach(([,{vars:T}])=>{R=Se(R,T)}),R},generateStyleSheets:()=>{var G,Q;const R=[],T=e.defaultColorScheme||"light";function v(s,x){Object.keys(x).length&&R.push(typeof s=="string"?{[s]:{...x}}:s)}v(r(void 0,{...m}),m);const{[T]:P,...$}=C;if(P){const{css:s}=P,x=(Q=(G=i[T])==null?void 0:G.palette)==null?void 0:Q.mode,M=!n&&x?{colorScheme:x,...s}:{...s};v(r(T,{...M}),M)}return Object.entries($).forEach(([s,{css:x}])=>{var W,ae;const M=(ae=(W=i[s])==null?void 0:W.palette)==null?void 0:ae.mode,F=!n&&M?{colorScheme:M,...x}:{...x};v(r(s,{...F}),F)}),R}}}function ss(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 ft={black:"#000",white:"#fff"},cs={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"},Le={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ze={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ot={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},We={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ye={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function co(){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:ft.white,default:ft.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 ls=co();function lo(){return{text:{primary:ft.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:ft.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 En=lo();function Tn(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=jr(e.main,o):t==="dark"&&(e.dark=Nr(e.main,i)))}function us(e="light"){return e==="dark"?{main:Ue[200],light:Ue[50],dark:Ue[400]}:{main:Ue[700],light:Ue[400],dark:Ue[800]}}function fs(e="light"){return e==="dark"?{main:Le[200],light:Le[50],dark:Le[400]}:{main:Le[500],light:Le[300],dark:Le[700]}}function ds(e="light"){return e==="dark"?{main:ze[500],light:ze[300],dark:ze[700]}:{main:ze[700],light:ze[400],dark:ze[800]}}function ps(e="light"){return e==="dark"?{main:We[400],light:We[300],dark:We[700]}:{main:We[700],light:We[500],dark:We[900]}}function ms(e="light"){return e==="dark"?{main:Ye[400],light:Ye[300],dark:Ye[700]}:{main:Ye[800],light:Ye[500],dark:Ye[900]}}function hs(e="light"){return e==="dark"?{main:ot[400],light:ot[300],dark:ot[700]}:{main:"#ed6c02",light:ot[500],dark:ot[900]}}function Dr(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||us(t),a=e.secondary||fs(t),c=e.error||ds(t),u=e.info||ps(t),f=e.success||ms(t),m=e.warning||hs(t);function p(l){const S=bn(l,En.text.primary)>=r?En.text.primary:ls.text.primary;if(process.env.NODE_ENV!=="production"){const w=bn(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:R=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 Tn(l,"light",A,n),Tn(l,"dark",R,n),l.contrastText||(l.contrastText=p(l.main)),l};let C;return t==="light"?C=co():t==="dark"&&(C=lo()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Se({common:{...ft},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:cs,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...C},o)}function gs(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 ys(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bs(e){return Math.round(e*1e5)/1e5}const Cn={textTransform:"uppercase"},xn='"Roboto", "Helvetica", "Arial", sans-serif';function vs(e,t){const{fontFamily:r=xn,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,R,T)=>({fontFamily:r,fontWeight:S,fontSize:C(w),lineHeight:A,...r===xn?{letterSpacing:`${bs(R/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,Cn),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Cn),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 Ss=.2,Es=.14,Ts=.12;function ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ss})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Es})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ts})`].join(",")}const Cs=["none",ie(0,2,1,-1,0,1,1,0,0,1,3,0),ie(0,3,1,-2,0,2,2,0,0,1,5,0),ie(0,3,3,-2,0,3,4,0,0,1,8,0),ie(0,2,4,-1,0,4,5,0,0,1,10,0),ie(0,3,5,-1,0,5,8,0,0,1,14,0),ie(0,3,5,-1,0,6,10,0,0,1,18,0),ie(0,4,5,-2,0,7,10,1,0,2,16,1),ie(0,5,5,-3,0,8,10,1,0,3,14,2),ie(0,5,6,-3,0,9,12,1,0,3,16,2),ie(0,6,6,-3,0,10,14,1,0,4,18,3),ie(0,6,7,-4,0,11,15,1,0,4,20,3),ie(0,7,8,-4,0,12,17,2,0,5,22,4),ie(0,7,8,-4,0,13,19,2,0,5,24,4),ie(0,7,9,-4,0,14,21,2,0,5,26,4),ie(0,8,9,-5,0,15,22,2,0,6,28,5),ie(0,8,10,-5,0,16,24,2,0,6,30,5),ie(0,8,11,-5,0,17,26,2,0,6,32,5),ie(0,9,11,-5,0,18,28,2,0,7,34,6),ie(0,9,12,-6,0,19,29,2,0,7,36,6),ie(0,10,13,-6,0,20,31,3,0,8,38,7),ie(0,10,13,-6,0,21,33,3,0,8,40,7),ie(0,10,14,-6,0,22,35,3,0,8,42,7),ie(0,11,14,-7,0,23,36,3,0,9,44,8),ie(0,11,15,-7,0,24,38,3,0,9,46,8)],xs={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)"},ws={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wn(e){return`${Math.round(e)}ms`}function Rs(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Os(e){const t={...xs,...e.easing},r={...ws,...e.duration};return{getAutoHeightDuration:Rs,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:wn(a)} ${c} ${typeof u=="string"?u:wn(u)}`).join(",")},...e,easing:t,duration:r}}const ks={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ps(e){return Ae(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function uo(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];!Ps(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 br(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=Dr(i),p=ro(e);let h=Se(p,{mixins:ys(p.breakpoints,n),palette:m,shadows:Cs.slice(),typography:vs(m,c),transitions:Os(a),zIndex:{...ks}});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 R=Qe("",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 '&.${R}' syntax:`,JSON.stringify({root:{[`&.${R}`]: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={...qt,...f==null?void 0:f.unstable_sxConfig},h.unstable_sx=function(b){return Ke({sx:b,theme:this})},h.toRuntimeSource=uo,h}function $s(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 _s=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=$s(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function fo(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function po(e){return e==="dark"?_s:[]}function As(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Dr(t);return{palette:i,opacity:{...fo(i.mode),...r},overlays:n||po(i.mode),...o}}function Is(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 Ms=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ns=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 Ms(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 js(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function y(e,t,r){!e[t]&&r&&(e[t]=r)}function at(e){return typeof e!="string"||!e.startsWith("hsl")?e:so(e)}function $e(e,t){`${t}Channel`in e||(e[`${t}Channel`]=it(at(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 Ds(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Re=e=>{try{return e()}catch{}},Bs=(e="mui")=>ns(e);function sr(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=As({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=br({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...fo(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||po(o)},a}function Fs(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Is,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=Bs(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 R=sr(w,A,f,p);b&&!w.light&&sr(w,b,void 0,"light"),l&&!w.dark&&sr(w,l,void 0,"dark");let T={defaultColorScheme:p,...R,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:w,font:{...gs(R.typography),...R.font},spacing:Ds(f.spacing)};Object.keys(T.colorSchemes).forEach(Q=>{const s=T.colorSchemes[Q].palette,x=M=>{const F=M.split("-"),W=F[1],ae=F[2];return h(M,s[W][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")),js(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){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-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",Re(()=>s.getContrastText(s.error.main))),y(s.Alert,"infoFilledColor",Re(()=>s.getContrastText(s.info.main))),y(s.Alert,"successFilledColor",Re(()=>s.getContrastText(s.success.main))),y(s.Alert,"warningFilledColor",Re(()=>s.getContrastText(s.warning.main))),y(s.Alert,"errorStandardBg",ne(s.error.light,.9)),y(s.Alert,"infoStandardBg",ne(s.info.light,.9)),y(s.Alert,"successStandardBg",ne(s.success.light,.9)),y(s.Alert,"warningStandardBg",ne(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",ne(s.primary.main,.62)),y(s.LinearProgress,"secondaryBg",ne(s.secondary.main,.62)),y(s.LinearProgress,"errorBg",ne(s.error.main,.62)),y(s.LinearProgress,"infoBg",ne(s.info.main,.62)),y(s.LinearProgress,"successBg",ne(s.success.main,.62)),y(s.LinearProgress,"warningBg",ne(s.warning.main,.62)),y(s.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),y(s.Slider,"primaryTrack",ne(s.primary.main,.62)),y(s.Slider,"secondaryTrack",ne(s.secondary.main,.62)),y(s.Slider,"errorTrack",ne(s.error.main,.62)),y(s.Slider,"infoTrack",ne(s.info.main,.62)),y(s.Slider,"successTrack",ne(s.success.main,.62)),y(s.Slider,"warningTrack",ne(s.warning.main,.62));const M=xt(s.background.default,.8);y(s.SnackbarContent,"bg",M),y(s.SnackbarContent,"color",Re(()=>s.getContrastText(M))),y(s.SpeedDialAction,"fabHoverBg",xt(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",ne(s.primary.main,.62)),y(s.Switch,"secondaryDisabledColor",ne(s.secondary.main,.62)),y(s.Switch,"errorDisabledColor",ne(s.error.main,.62)),y(s.Switch,"infoDisabledColor",ne(s.info.main,.62)),y(s.Switch,"successDisabledColor",ne(s.success.main,.62)),y(s.Switch,"warningDisabledColor",ne(s.warning.main,.62)),y(s.TableCell,"border",ne(Ct(s.divider,1),.88)),y(s.Tooltip,"bg",Ct(s.grey[700],.92))}if(s.mode==="dark"){y(s.Alert,"errorColor",ne(s.error.light,.6)),y(s.Alert,"infoColor",ne(s.info.light,.6)),y(s.Alert,"successColor",ne(s.success.light,.6)),y(s.Alert,"warningColor",ne(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",Re(()=>s.getContrastText(s.error.dark))),y(s.Alert,"infoFilledColor",Re(()=>s.getContrastText(s.info.dark))),y(s.Alert,"successFilledColor",Re(()=>s.getContrastText(s.success.dark))),y(s.Alert,"warningFilledColor",Re(()=>s.getContrastText(s.warning.dark))),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-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",re(s.primary.main,.5)),y(s.LinearProgress,"secondaryBg",re(s.secondary.main,.5)),y(s.LinearProgress,"errorBg",re(s.error.main,.5)),y(s.LinearProgress,"infoBg",re(s.info.main,.5)),y(s.LinearProgress,"successBg",re(s.success.main,.5)),y(s.LinearProgress,"warningBg",re(s.warning.main,.5)),y(s.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),y(s.Slider,"primaryTrack",re(s.primary.main,.5)),y(s.Slider,"secondaryTrack",re(s.secondary.main,.5)),y(s.Slider,"errorTrack",re(s.error.main,.5)),y(s.Slider,"infoTrack",re(s.info.main,.5)),y(s.Slider,"successTrack",re(s.success.main,.5)),y(s.Slider,"warningTrack",re(s.warning.main,.5));const M=xt(s.background.default,.98);y(s.SnackbarContent,"bg",M),y(s.SnackbarContent,"color",Re(()=>s.getContrastText(M))),y(s.SpeedDialAction,"fabHoverBg",xt(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",re(s.primary.main,.55)),y(s.Switch,"secondaryDisabledColor",re(s.secondary.main,.55)),y(s.Switch,"errorDisabledColor",re(s.error.main,.55)),y(s.Switch,"infoDisabledColor",re(s.info.main,.55)),y(s.Switch,"successDisabledColor",re(s.success.main,.55)),y(s.Switch,"warningDisabledColor",re(s.warning.main,.55)),y(s.TableCell,"border",re(Ct(s.divider,1),.68)),y(s.Tooltip,"bg",Ct(s.grey[700],.92))}$e(s.background,"default"),$e(s.background,"paper"),$e(s.common,"background"),$e(s.common,"onBackground"),$e(s,"divider"),Object.keys(s).forEach(M=>{const F=s[M];M!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&y(s[M],"mainChannel",it(at(F.main))),F.light&&y(s[M],"lightChannel",it(at(F.light))),F.dark&&y(s[M],"darkChannel",it(at(F.dark))),F.contrastText&&y(s[M],"contrastTextChannel",it(at(F.contrastText))),M==="text"&&($e(s[M],"primary"),$e(s[M],"secondary")),M==="action"&&(F.active&&$e(s[M],"active"),F.selected&&$e(s[M],"selected")))})}),T=t.reduce((Q,s)=>Se(Q,s),T);const v={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Ns(T)},{vars:P,generateThemeVars:$,generateStyleSheets:G}=as(T,v);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([Q,s])=>{T[Q]=s}),T.generateThemeVars=$,T.generateStyleSheets=G,T.generateSpacing=function(){return to(f.spacing,Rr(this))},T.getColorSchemeSelector=ss(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...qt,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(s){return Ke({sx:s,theme:this})},T.toRuntimeSource=uo,T}function Rn(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Dr({...r===!0?{}:r.palette,mode:t})})}function Vs(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 br(e,...t);let m=r;"palette"in e||f[c]&&(f[c]!==!0?m=f[c].palette:c==="dark"&&(m={mode:"dark"}));const p=br({...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},Rn(p,"dark",f.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:p.palette},Rn(p,"light",f.light)),p}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),Fs({...a,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const Ls=Vs(),zs="$$material";function Us(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ws=e=>Us(e)&&e!=="classes",Me=Ua({themeId:zs,defaultTheme:Ls,rootShouldForwardProp:Ws}),dt=rs;process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function bt(e){return ts(e)}function Ys(e){return Qe("MuiSvgIcon",e)}yt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qs=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(r)}`]};return jt(o,Ys,n)},Gs=Me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${me(r.color)}`],t[`fontSize${me(r.fontSize)}`]]}})(dt(({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}}]}})),Mt=_.forwardRef(function(t,r){const n=bt({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=_.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=qs(l);return q.jsxs(Gs,{as:c,className:be(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"&&(Mt.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});Mt.muiName="SvgIcon";function Hs(e,t){function r(n,o){return q.jsx(Mt,{"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=Mt.muiName,_.memo(_.forwardRef(r))}let On=0;function Ks(e){const[t,r]=_.useState(e),n=e||t;return _.useEffect(()=>{t==null&&(On+=1,r(`mui-${On}`))},[t]),n}const Xs={..._},kn=Xs.useId;function Js(e){if(kn!==void 0){const t=kn();return e??t}return Ks(e)}function Pt(e){const t=_.useRef(e);return Ha(()=>{t.current=e}),_.useRef((...r)=>(0,t.current)(...r)).current}function Pn(...e){const t=_.useRef(void 0),r=_.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 _.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Qs=Hs(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 Br(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Zs(e){return typeof e.main=="string"}function ec(e,t=[]){if(!Zs(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function vr(e=[]){return([,t])=>t&&ec(t,e)}const tc=g.oneOfType([g.func,g.object]);function rc(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nc(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"&&!rc(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 oc=Br(g.elementType,nc);function $n(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 _n={};function mo(e,t){const r=_.useRef(_n);return r.current===_n&&(r.current=e(t)),r}class Nt{constructor(){et(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 Nt}static use(){const t=mo(Nt.create).current,[r,n]=_.useState(!1);return t.shouldMount=r,t.setShouldMount=n,_.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=ac(),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 ic(){return Nt.use()}function ac(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function sc(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 Sr(e,t){return Sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Sr(e,t)}function cc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sr(e,t)}const An=Y.createContext(null);function lc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fr(e,t){var r=function(i){return t&&Y.isValidElement(i)?t(i):i},n=Object.create(null);return e&&Y.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function uc(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 Ve(e,t,r){return r[t]!=null?r[t]:e.props[t]}function fc(e,t){return Fr(e.children,function(r){return Y.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Ve(r,"appear",e),enter:Ve(r,"enter",e),exit:Ve(r,"exit",e)})})}function dc(e,t,r){var n=Fr(e.children),o=uc(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(Y.isValidElement(a)){var c=i in t,u=i in n,f=t[i],m=Y.isValidElement(f)&&!f.props.in;u&&(!c||m)?o[i]=Y.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Ve(a,"exit",e),enter:Ve(a,"enter",e)}):!u&&c&&!m?o[i]=Y.cloneElement(a,{in:!1}):u&&c&&Y.isValidElement(f)&&(o[i]=Y.cloneElement(a,{onExited:r.bind(null,a),in:f.props.in,exit:Ve(a,"exit",e),enter:Ve(a,"enter",e)}))}}),o}var pc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mc={component:"div",childFactory:function(t){return t}},Vr=function(e){cc(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(lc(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?fc(o,c):dc(o,a,c),firstRender:!1}},r.handleExited=function(o,i){var a=Fr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=At({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=sc(o,["component","childFactory"]),u=this.state.contextValue,f=pc(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?Y.createElement(An.Provider,{value:u},f):Y.createElement(An.Provider,{value:u},Y.createElement(i,c,f))},t}(Y.Component);Vr.propTypes=process.env.NODE_ENV!=="production"?{component:g.any,children:g.node,appear:g.bool,enter:g.bool,exit:g.bool,childFactory:g.func}:{};Vr.defaultProps=mc;const hc=[];function gc(e){_.useEffect(e,hc)}class Lr{constructor(){et(this,"currentId",null);et(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});et(this,"disposeEffect",()=>this.clear)}static create(){return new Lr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function yc(){const e=mo(Lr.create).current;return gc(e.disposeEffect),e}function ho(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:f}=e,[m,p]=_.useState(!1),h=be(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),C={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=be(r.child,m&&r.childLeaving,n&&r.childPulsate);return!c&&!m&&p(!0),_.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"&&(ho.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 Ce=yt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Er=550,bc=80,vc=gt`
|
97
|
+
0% {
|
98
|
+
transform: scale(0);
|
99
|
+
opacity: 0.1;
|
100
|
+
}
|
101
|
+
|
102
|
+
100% {
|
103
|
+
transform: scale(1);
|
104
|
+
opacity: 0.3;
|
105
|
+
}
|
106
|
+
`,Sc=gt`
|
107
|
+
0% {
|
108
|
+
opacity: 1;
|
109
|
+
}
|
110
|
+
|
111
|
+
100% {
|
112
|
+
opacity: 0;
|
113
|
+
}
|
114
|
+
`,Ec=gt`
|
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
|
+
`,Tc=Me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cc=Me(ho,{name:"MuiTouchRipple",slot:"Ripple"})`
|
127
|
+
opacity: 0;
|
128
|
+
position: absolute;
|
129
|
+
|
130
|
+
&.${Ce.rippleVisible} {
|
131
|
+
opacity: 0.3;
|
132
|
+
transform: scale(1);
|
133
|
+
animation-name: ${vc};
|
134
|
+
animation-duration: ${Er}ms;
|
135
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
136
|
+
}
|
137
|
+
|
138
|
+
&.${Ce.ripplePulsate} {
|
139
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
140
|
+
}
|
141
|
+
|
142
|
+
& .${Ce.child} {
|
143
|
+
opacity: 1;
|
144
|
+
display: block;
|
145
|
+
width: 100%;
|
146
|
+
height: 100%;
|
147
|
+
border-radius: 50%;
|
148
|
+
background-color: currentColor;
|
149
|
+
}
|
150
|
+
|
151
|
+
& .${Ce.childLeaving} {
|
152
|
+
opacity: 0;
|
153
|
+
animation-name: ${Sc};
|
154
|
+
animation-duration: ${Er}ms;
|
155
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
156
|
+
}
|
157
|
+
|
158
|
+
& .${Ce.childPulsate} {
|
159
|
+
position: absolute;
|
160
|
+
/* @noflip */
|
161
|
+
left: 0px;
|
162
|
+
top: 0;
|
163
|
+
animation-name: ${Ec};
|
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
|
+
`,go=_.forwardRef(function(t,r){const n=bt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...c}=n,[u,f]=_.useState([]),m=_.useRef(0),p=_.useRef(null);_.useEffect(()=>{p.current&&(p.current(),p.current=null)},[u]);const h=_.useRef(!1),C=yc(),b=_.useRef(null),l=_.useRef(null),S=_.useCallback(T=>{const{pulsate:v,rippleX:P,rippleY:$,rippleSize:G,cb:Q}=T;f(s=>[...s,q.jsx(Cc,{classes:{ripple:be(i.ripple,Ce.ripple),rippleVisible:be(i.rippleVisible,Ce.rippleVisible),ripplePulsate:be(i.ripplePulsate,Ce.ripplePulsate),child:be(i.child,Ce.child),childLeaving:be(i.childLeaving,Ce.childLeaving),childPulsate:be(i.childPulsate,Ce.childPulsate)},timeout:Er,pulsate:v,rippleX:P,rippleY:$,rippleSize:G},m.current)]),m.current+=1,p.current=Q},[i]),w=_.useCallback((T={},v={},P=()=>{})=>{const{pulsate:$=!1,center:G=o||v.pulsate,fakeElement:Q=!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=Q?null:l.current,x=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,F,W;if(G||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)M=Math.round(x.width/2),F=Math.round(x.height/2);else{const{clientX:ae,clientY:te}=T.touches&&T.touches.length>0?T.touches[0]:T;M=Math.round(ae-x.left),F=Math.round(te-x.top)}if(G)W=Math.sqrt((2*x.width**2+x.height**2)/3),W%2===0&&(W+=1);else{const ae=Math.max(Math.abs((s?s.clientWidth:0)-M),M)*2+2,te=Math.max(Math.abs((s?s.clientHeight:0)-F),F)*2+2;W=Math.sqrt(ae**2+te**2)}T!=null&&T.touches?b.current===null&&(b.current=()=>{S({pulsate:$,rippleX:M,rippleY:F,rippleSize:W,cb:P})},C.start(bc,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:$,rippleX:M,rippleY:F,rippleSize:W,cb:P})},[o,S,C]),A=_.useCallback(()=>{w({},{pulsate:!0})},[w]),R=_.useCallback((T,v)=>{if(C.clear(),(T==null?void 0:T.type)==="touchend"&&b.current){b.current(),b.current=null,C.start(0,()=>{R(T,v)});return}b.current=null,f(P=>P.length>0?P.slice(1):P),p.current=v},[C]);return _.useImperativeHandle(r,()=>({pulsate:A,start:w,stop:R}),[A,w,R]),q.jsx(Tc,{className:be(Ce.root,i.root,a),ref:l,...c,children:q.jsx(Vr,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(go.propTypes={center:g.bool,classes:g.object,className:g.string});function xc(e){return Qe("MuiButtonBase",e)}const wc=yt("MuiButtonBase",["root","disabled","focusVisible"]),Rc=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=jt({root:["root",t&&"disabled",r&&"focusVisible"]},xc,o);return r&&n&&(a.root+=` ${n}`),a},Oc=Me("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"},[`&.${wc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yo=_.forwardRef(function(t,r){const n=bt({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:R,onFocusVisible:T,onKeyDown:v,onKeyUp:P,onMouseDown:$,onMouseLeave:G,onMouseUp:Q,onTouchEnd:s,onTouchMove:x,onTouchStart:M,tabIndex:F=0,TouchRippleProps:W,touchRippleRef:ae,type:te,...fe}=n,he=_.useRef(null),oe=ic(),d=Pn(oe.ref,ae),[E,k]=_.useState(!1);f&&E&&k(!1),_.useImperativeHandle(o,()=>({focusVisible:()=>{k(!0),he.current.focus()}}),[]);const I=oe.shouldMount&&!m&&!f;_.useEffect(()=>{E&&h&&!m&&oe.pulsate()},[m,h,E,oe]);const N=_e(oe,"start",$,p),D=_e(oe,"stop",w,p),B=_e(oe,"stop",A,p),V=_e(oe,"stop",Q,p),j=_e(oe,"stop",L=>{E&&L.preventDefault(),G&&G(L)},p),z=_e(oe,"start",M,p),U=_e(oe,"stop",s,p),de=_e(oe,"stop",x,p),O=_e(oe,"stop",L=>{$n(L.target)||k(!1),l&&l(L)},!1),Te=Pt(L=>{he.current||(he.current=L.currentTarget),$n(L.target)&&(k(!0),T&&T(L)),R&&R(L)}),Ne=()=>{const L=he.current;return u&&u!=="button"&&!(L.tagName==="A"&&L.href)},vt=Pt(L=>{h&&!L.repeat&&E&&L.key===" "&&oe.stop(L,()=>{oe.start(L)}),L.target===L.currentTarget&&Ne()&&L.key===" "&&L.preventDefault(),v&&v(L),L.target===L.currentTarget&&Ne()&&L.key==="Enter"&&!f&&(L.preventDefault(),S&&S(L))}),Eo=Pt(L=>{h&&L.key===" "&&E&&!L.defaultPrevented&&oe.stop(L,()=>{oe.pulsate(L)}),P&&P(L),S&&L.target===L.currentTarget&&Ne()&&L.key===" "&&!L.defaultPrevented&&S(L)});let St=u;St==="button"&&(fe.href||fe.to)&&(St=b);const Ze={};St==="button"?(Ze.type=te===void 0?"button":te,Ze.disabled=f):(!fe.href&&!fe.to&&(Ze.role="button"),f&&(Ze["aria-disabled"]=f));const To=Pn(r,he),zr={...n,centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:p,focusRipple:h,tabIndex:F,focusVisible:E},Co=Rc(zr);return q.jsxs(Oc,{as:St,className:be(Co.root,c),ownerState:zr,onBlur:O,onClick:S,onContextMenu:D,onFocus:Te,onKeyDown:vt,onKeyUp:Eo,onMouseDown:N,onMouseLeave:j,onMouseUp:V,onDragLeave:B,onTouchEnd:U,onTouchMove:de,onTouchStart:z,ref:To,tabIndex:f?-1:F,type:te,...Ze,...fe,children:[a,I?q.jsx(go,{ref:d,center:i,...W}):null]})});function _e(e,t,r,n=!1){return Pt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(yo.propTypes={action:tc,centerRipple:g.bool,children:g.node,classes:g.object,className:g.string,component:oc,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 kc(e){return Qe("MuiCircularProgress",e)}yt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const je=44,Tr=gt`
|
170
|
+
0% {
|
171
|
+
transform: rotate(0deg);
|
172
|
+
}
|
173
|
+
|
174
|
+
100% {
|
175
|
+
transform: rotate(360deg);
|
176
|
+
}
|
177
|
+
`,Cr=gt`
|
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
|
+
`,Pc=typeof Tr!="string"?Ir`
|
193
|
+
animation: ${Tr} 1.4s linear infinite;
|
194
|
+
`:null,$c=typeof Cr!="string"?Ir`
|
195
|
+
animation: ${Cr} 1.4s ease-in-out infinite;
|
196
|
+
`:null,_c=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${me(n)}`],svg:["svg"],circle:["circle",`circle${me(r)}`,o&&"circleDisableShrink"]};return jt(i,kc,t)},Ac=Me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${me(r.color)}`]]}})(dt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Pc||{animation:`${Tr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(vr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ic=Me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Mc=Me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${me(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(dt(({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:$c||{animation:`${Cr} 1.4s ease-in-out infinite`}}]}))),bo=_.forwardRef(function(t,r){const n=bt({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=_c(C),l={},S={},w={};if(p==="determinate"){const A=2*Math.PI*((je-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(Ac,{className:be(b.root,o),style:{width:c,height:c,...S,...u},ownerState:C,ref:r,role:"progressbar",...w,...h,children:q.jsx(Ic,{className:b.svg,ownerState:C,viewBox:`${je/2} ${je/2} ${je} ${je}`,children:q.jsx(Mc,{className:b.circle,style:l,ownerState:C,cx:je,cy:je,r:(je-f)/2,fill:"none",strokeWidth:f})})})});process.env.NODE_ENV!=="production"&&(bo.propTypes={classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","primary","secondary","error","info","success","warning"]),g.string]),disableShrink:Br(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 Nc(e){return Qe("MuiIconButton",e)}const In=yt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),jc=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${me(n)}`,o&&`edge${me(o)}`,`size${me(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return jt(c,Nc,t)},Dc=Me(yo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${me(r.color)}`],r.edge&&t[`edge${me(r.edge)}`],t[`size${me(r.size)}`]]}})(dt(({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})`:yr(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}}]})),dt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(vr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(vr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yr((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)}}],[`&.${In.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${In.loading}`]:{color:"transparent"}}))),Bc=Me("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=_.forwardRef(function(t,r){const n=bt({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=Js(p),S=C??q.jsx(bo,{"aria-labelledby":l,color:"inherit",size:16}),w={...n,edge:o,color:c,disabled:u,disableFocusRipple:f,loading:h,loadingIndicator:S,size:m},A=jc(w);return q.jsxs(Dc,{id:h?l:p,className:be(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(Bc,{className:A.loadingIndicator,ownerState:w,children:h&&S})}),i]})});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:Br(g.node,e=>_.Children.toArray(e.children).some(r=>_.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 Fc(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(qe.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(Qs,{})})]})}const So=Y.createContext(null),Vc=()=>{const e=Y.useContext(So);if(!e)throw new Error("useMessageDialog must be used within a MessageDialogProvider");return e},Lc={okText:"OK",cancelText:"Cancel",alertTitle:"Alert",confirmTitle:"Confirm",errorTitle:"Error"},zc=e=>{const t={...Lc,...e.settings||{}},r=Y.useMemo(()=>({backgroundColor:s=>s.palette.primary.main,color:"#fff"}),[]),[n,o]=Y.useState(!1),[i,a]=Y.useState(""),[c,u]=Y.useState(null),[f,m]=Y.useState(!1),[p,h]=Y.useState(r),[C,b]=Y.useState(t.alertTitle),[l,S]=Y.useState(t.okText),[w,A]=Y.useState(t.cancelText),R=s=>(a(s||""),o(!0),new Promise(x=>{u(()=>x)})),T=Y.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),R(s)),[r,t]),v=Y.useCallback(s=>(b(t.alertTitle),S(t.okText),m(!1),h(r),R(s)),[r,t]),P=Y.useCallback(s=>(b(t.errorTitle),S(t.okText),m(!1),h({backgroundColor:x=>x.palette.error.main,color:"#fff"}),R(s)),[t]),$=s=>{o(!1);const x=c;u(null),x==null||x(s)},G=(s,x)=>{x!=="backdropClick"&&$(!1)},Q=Y.useMemo(()=>({error:P,alert:v,confirm:T}),[P,v,T]);return Y.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:Q,children:[e.children,q.jsxs(qe.Dialog,{"data-testid":"message-dialog",open:n,onClose:G,children:[q.jsx(Fc,{title:C,onClose:()=>$(!1),sx:p}),q.jsx(qe.DialogContent,{dividers:!0,sx:{whiteSpace:"pre-line"},children:i}),q.jsxs(qe.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(qe.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(qe.Button,{"data-testid":"message-dialog-cancel-button",onClick:()=>$(!1),variant:"outlined",children:w})})]})]})]})})};exports.MessageDialogProvider=zc;exports.useMessageDialog=Vc;
|
package/dist/index.d.ts
ADDED