sosk-ui-lib 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export type ImageFieldValue = {
3
+ base64: string;
4
+ fileName: string;
5
+ fileType: string;
6
+ fileSize: number;
7
+ };
8
+ type ImageFieldProps = {
9
+ label?: string;
10
+ value?: ImageFieldValue | null;
11
+ onChange: (value: ImageFieldValue | null) => void;
12
+ error?: boolean;
13
+ helperText?: string;
14
+ maxSizeMB?: number;
15
+ disabled?: boolean;
16
+ };
17
+ export declare function ImageField({ label, value, onChange, error, helperText, maxSizeMB, disabled, }: ImageFieldProps): React.JSX.Element;
18
+ export {};
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { TextFieldProps as MuiTextFieldProps } from '@mui/material';
3
+ type BaseProps = Omit<MuiTextFieldProps, "variant" | "value" | "onChange" | "label"> & {
4
+ variant?: MuiTextFieldProps["variant"];
5
+ label?: string;
6
+ };
7
+ type TextProps = BaseProps & {
8
+ price?: false;
9
+ value?: MuiTextFieldProps["value"];
10
+ onChange?: MuiTextFieldProps["onChange"];
11
+ };
12
+ type PriceProps = BaseProps & {
13
+ price: true;
14
+ value: number | undefined;
15
+ onChange: (value: number | undefined) => void;
16
+ currencySymbol?: string;
17
+ };
18
+ export type TextFieldProps = TextProps | PriceProps;
19
+ /**
20
+ * TextField wrapper that standardizes the label/error/helperText/fullWidth
21
+ * pattern used across forms, renders the label as static text above the
22
+ * field (rather than MUI's floating/notched label), and doubles as a
23
+ * currency input when `price` is set — emitting a plain number (or
24
+ * undefined when cleared) via onChange instead of a raw change event, and
25
+ * rendering the currency adornment through the MUI v9 slotProps API
26
+ * (InputProps -> slotProps.input) in one place instead of at every call
27
+ * site.
28
+ */
29
+ export declare const TextField: React.ForwardRefExoticComponent<(Omit<TextProps, "ref"> | Omit<PriceProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
30
+ export default TextField;
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AddNewItemFormProps {
3
+ onSubmit: (payload: Record<string, unknown>) => void | Promise<void>;
4
+ onCancel: () => void;
5
+ }
6
+ export interface ItemGridProps<T = Record<string, unknown>> {
7
+ items: T[];
8
+ renderItem: (item: T) => ReactNode;
9
+ getItemKey: (item: T) => string | number;
10
+ margin?: number | string;
11
+ spacing?: number;
12
+ gridSize?: {
13
+ xs?: number;
14
+ sm?: number;
15
+ md?: number;
16
+ lg?: number;
17
+ };
18
+ onAddNewItem?: (payload: Record<string, unknown>) => void | Promise<void>;
19
+ addNewItemForm?: (props: AddNewItemFormProps) => ReactNode;
20
+ addNewItemLabel?: string;
21
+ loading?: boolean;
22
+ skeletonCount?: number;
23
+ skeletonWidth?: number | string;
24
+ skeletonHeight?: number | string;
25
+ }
26
+ export declare function ItemGrid<T = Record<string, unknown>>({ items, renderItem, getItemKey, margin, spacing, gridSize, onAddNewItem, addNewItemForm, addNewItemLabel, loading, skeletonCount, skeletonWidth, skeletonHeight, }: ItemGridProps<T>): import("react").JSX.Element;
27
+ export default ItemGrid;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ export interface EditFormProps {
4
+ onSubmit: (payload: Record<string, unknown>) => void | Promise<void>;
5
+ onCancel: () => void;
6
+ }
7
+ export interface MediaCardProps {
8
+ image?: string;
9
+ imageAlt?: string;
10
+ imageHeight?: number;
11
+ fallback?: ReactNode;
12
+ title: ReactNode;
13
+ description?: ReactNode;
14
+ descriptionLines?: number;
15
+ highlight?: ReactNode;
16
+ footer?: ReactNode;
17
+ sx?: SxProps<Theme>;
18
+ onEdit?: (payload: Record<string, unknown>) => void | Promise<void>;
19
+ editForm?: (props: EditFormProps) => ReactNode;
20
+ editLabel?: string;
21
+ onDelete?: () => void | Promise<void>;
22
+ deleteLabel?: string;
23
+ deleteConfirmMessage?: ReactNode;
24
+ onClick?: () => void;
25
+ }
26
+ export declare function MediaCard({ image, imageAlt, imageHeight, fallback, title, description, descriptionLines, highlight, footer, sx, onEdit, editForm, editLabel, onDelete, deleteLabel, deleteConfirmMessage, onClick, }: MediaCardProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,8 @@
1
- export { default as ProductCard } from './components/ProductCard';
2
- export type { Product } from './types';
1
+ export { MediaCard } from './components/MediaCard';
2
+ export type { MediaCardProps } from './components/MediaCard';
3
+ export { ItemGrid } from './components/ItemGrid';
4
+ export type { ItemGridProps, AddNewItemFormProps } from './components/ItemGrid';
5
+ export { ImageField } from './components/Form/ImageField';
6
+ export type { ImageFieldValue } from './components/Form/ImageField';
7
+ export { TextField } from './components/Form/TextField';
8
+ export type { TextFieldProps } from './components/Form/TextField';
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("react"),c=require("@mui/material");var j={exports:{}},b={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ue=require("react"),k=require("@mui/material"),Qr=require("@emotion/styled");require("@emotion/react");function Zr(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 ve=Zr(ue);function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={exports:{}},Me={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var I;function re(){if(I)return b;I=1;var o=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function d(m,s,l){var _=null;if(l!==void 0&&(_=""+l),s.key!==void 0&&(_=""+s.key),"key"in s){l={};for(var E in s)E!=="key"&&(l[E]=s[E])}else l=s;return s=l.ref,{$$typeof:o,type:m,key:_,ref:s!==void 0?s:null,props:l}}return b.Fragment=u,b.jsx=d,b.jsxs=d,b}var p={};/**
9
+ */var Yt;function tn(){if(Yt)return Me;Yt=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 l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return Me.Fragment=t,Me.jsx=r,Me.jsxs=r,Me}var De={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,9 +14,84 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var D;function te(){return D||(D=1,process.env.NODE_ENV!=="production"&&function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case J:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case L:return"Portal";case V:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case G:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function u(e){return""+e}function d(e){try{u(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),u(e)}}function m(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===k)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=y.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function _(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){C||(C=!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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function M(){var e=o(this.type);return N[e]||(N[e]=!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.")),e=this.props.ref,e!==void 0?e:null}function W(e,r,t,a,R,h){var n=t.ref;return e={$$typeof:A,type:e,key:r,props:t,_owner:a},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:M}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function O(e,r,t,a,R,h){var n=r.children;if(n!==void 0)if(a)if(Q(n)){for(a=0;a<n.length;a++)S(n[a]);Object.freeze&&Object.freeze(n)}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 S(n);if(w.call(r,"key")){n=o(e);var f=Object.keys(r).filter(function(K){return K!=="key"});a=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",F[n+a]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Ut;function rn(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===U?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case x:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case _:return"Suspense";case V:return"SuspenseList";case ae:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case c:return"Portal";case w:return f.displayName||"Context";case N:return(f._context.displayName||"Context")+".Consumer";case g:var E=f.render;return f=f.displayName,f||(f=E.displayName||E.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case Q:return E=f.displayName||null,E!==null?E:e(f.type)||"Memo";case Z:E=f._payload,f=f._init;try{return e(f(E))}catch{}}return null}function t(f){return""+f}function r(f){try{t(f);var E=!1}catch{E=!0}if(E){E=console;var R=E.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return R.call(E,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(f)}}function n(f){if(f===x)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===Z)return"<...>";try{var E=e(f);return E?"<"+E+">":"<...>"}catch{return"<...>"}}function o(){var f=s.A;return f===null?null:f.getOwner()}function i(){return Error("react-stack-top-frame")}function a(f){if(A.call(f,"key")){var E=Object.getOwnPropertyDescriptor(f,"key").get;if(E&&E.isReactWarning)return!1}return f.key!==void 0}function l(f,E){function R(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",E))}R.isReactWarning=!0,Object.defineProperty(f,"key",{get:R,configurable:!0})}function d(){var f=e(this.type);return te[f]||(te[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function p(f,E,R,$,L,B){var P=R.ref;return f={$$typeof:b,type:f,key:E,props:R,_owner:$},(P!==void 0?P:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:d}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function h(f,E,R,$,L,B){var P=E.children;if(P!==void 0)if($)if(T(P)){for($=0;$<P.length;$++)y(P[$]);Object.freeze&&Object.freeze(P)}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 y(P);if(A.call(E,"key")){P=e(f);var F=Object.keys(E).filter(function(W){return W!=="key"});$=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",S[P+$]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,a,n,f,n),F[n+a]=!0)}if(n=null,t!==void 0&&(d(t),n=""+t),_(r)&&(d(r.key),n=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return n&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),W(e,n,t,s(),R,h)}function S(e){P(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===k&&(e._payload.status==="fulfilled"?P(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===A}var v=ee,A=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),V=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),y=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,Q=Array.isArray,g=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var C,N={},Y=v.react_stack_bottom_frame.bind(v,l)(),$=g(m(l)),F={};p.Fragment=T,p.jsx=function(e,r,t){var a=1e4>y.recentlyCreatedOwnerStacks++;return O(e,r,t,!1,a?Error("react-stack-top-frame"):Y,a?g(m(e)):$)},p.jsxs=function(e,r,t){var a=1e4>y.recentlyCreatedOwnerStacks++;return O(e,r,t,!0,a?Error("react-stack-top-frame"):Y,a?g(m(e)):$)}}()),p}process.env.NODE_ENV==="production"?j.exports=re():j.exports=te();var i=j.exports;function ae({product:o}){return i.jsxs(c.Card,{children:[o.image&&i.jsx(c.CardMedia,{component:"img",height:"200",image:o.image,alt:o.name}),i.jsxs(c.CardContent,{children:[i.jsx(c.Typography,{variant:"h6",children:o.name}),i.jsx(c.Typography,{variant:"body2",color:"text.secondary",children:o.description}),i.jsxs(c.Typography,{variant:"h6",sx:{mt:1},children:["$",o.price.toFixed(2)]}),i.jsx(c.Stack,{direction:"row",spacing:1,sx:{mt:1,flexWrap:"wrap",gap:.5},children:o.tags.map(u=>i.jsx(c.Chip,{label:u,size:"small"},u))})]})]})}exports.ProductCard=ae;
22
+ <%s key={someKey} {...props} />`,$,P,F,P),S[P+$]=!0)}if(P=null,R!==void 0&&(r(R),P=""+R),a(E)&&(r(E.key),P=""+E.key),"key"in E){R={};for(var z in E)z!=="key"&&(R[z]=E[z])}else R=E;return P&&l(R,typeof f=="function"?f.displayName||f.name||"Unknown":f),p(f,P,R,o(),L,B)}function y(f){v(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===Z&&(f._payload.status==="fulfilled"?v(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function v(f){return typeof f=="object"&&f!==null&&f.$$typeof===b}var u=ue,b=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),w=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),s=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,T=Array.isArray,M=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(f){return f()}};var D,te={},ie=u.react_stack_bottom_frame.bind(u,i)(),he=M(n(i)),S={};De.Fragment=x,De.jsx=function(f,E,R){var $=1e4>s.recentlyCreatedOwnerStacks++;return h(f,E,R,!1,$?Error("react-stack-top-frame"):ie,$?M(n(f)):he)},De.jsxs=function(f,E,R){var $=1e4>s.recentlyCreatedOwnerStacks++;return h(f,E,R,!0,$?Error("react-stack-top-frame"):ie,$?M(n(f)):he)}}()),De}process.env.NODE_ENV==="production"?At.exports=tn():At.exports=rn();var C=At.exports,$t={exports:{}},He={exports:{}},G={};/** @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 Gt;function nn(){if(Gt)return G;Gt=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,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function N(g){if(typeof g=="object"&&g!==null){var _=g.$$typeof;switch(_){case t:switch(g=g.type,g){case d:case p:case n:case i:case o:case y:return g;default:switch(g=g&&g.$$typeof,g){case l:case h:case b:case u:case a:return g;default:return _}}case r:return _}}}function w(g){return N(g)===p}return G.AsyncMode=d,G.ConcurrentMode=p,G.ContextConsumer=l,G.ContextProvider=a,G.Element=t,G.ForwardRef=h,G.Fragment=n,G.Lazy=b,G.Memo=u,G.Portal=r,G.Profiler=i,G.StrictMode=o,G.Suspense=y,G.isAsyncMode=function(g){return w(g)||N(g)===d},G.isConcurrentMode=w,G.isContextConsumer=function(g){return N(g)===l},G.isContextProvider=function(g){return N(g)===a},G.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},G.isForwardRef=function(g){return N(g)===h},G.isFragment=function(g){return N(g)===n},G.isLazy=function(g){return N(g)===b},G.isMemo=function(g){return N(g)===u},G.isPortal=function(g){return N(g)===r},G.isProfiler=function(g){return N(g)===i},G.isStrictMode=function(g){return N(g)===o},G.isSuspense=function(g){return N(g)===y},G.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===p||g===i||g===o||g===y||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===b||g.$$typeof===u||g.$$typeof===a||g.$$typeof===l||g.$$typeof===h||g.$$typeof===x||g.$$typeof===I||g.$$typeof===j||g.$$typeof===c)},G.typeOf=N,G}var q={};/** @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 qt;function on(){return qt||(qt=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,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,c=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function N(O){return typeof O=="string"||typeof O=="function"||O===n||O===p||O===i||O===o||O===y||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===b||O.$$typeof===u||O.$$typeof===a||O.$$typeof===l||O.$$typeof===h||O.$$typeof===x||O.$$typeof===I||O.$$typeof===j||O.$$typeof===c)}function w(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var qe=O.type;switch(qe){case d:case p:case n:case i:case o:case y:return qe;default:var zt=qe&&qe.$$typeof;switch(zt){case l:case h:case b:case u:case a:return zt;default:return pe}}case r:return pe}}}var g=d,_=p,V=l,Q=a,Z=t,ae=h,U=n,s=b,A=u,T=r,M=i,D=o,te=y,ie=!1;function he(O){return ie||(ie=!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.")),S(O)||w(O)===d}function S(O){return w(O)===p}function f(O){return w(O)===l}function E(O){return w(O)===a}function R(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function $(O){return w(O)===h}function L(O){return w(O)===n}function B(O){return w(O)===b}function P(O){return w(O)===u}function F(O){return w(O)===r}function z(O){return w(O)===i}function W(O){return w(O)===o}function se(O){return w(O)===y}q.AsyncMode=g,q.ConcurrentMode=_,q.ContextConsumer=V,q.ContextProvider=Q,q.Element=Z,q.ForwardRef=ae,q.Fragment=U,q.Lazy=s,q.Memo=A,q.Portal=T,q.Profiler=M,q.StrictMode=D,q.Suspense=te,q.isAsyncMode=he,q.isConcurrentMode=S,q.isContextConsumer=f,q.isContextProvider=E,q.isElement=R,q.isForwardRef=$,q.isFragment=L,q.isLazy=B,q.isMemo=P,q.isPortal=F,q.isProfiler=z,q.isStrictMode=W,q.isSuspense=se,q.isValidElementType=N,q.typeOf=w}()),q}var Ht;function Or(){return Ht||(Ht=1,process.env.NODE_ENV==="production"?He.exports=nn():He.exports=on()),He.exports}/*
37
+ object-assign
38
+ (c) Sindre Sorhus
39
+ @license MIT
40
+ */var yt,Kt;function an(){if(Kt)return yt;Kt=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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yt=o()?Object.assign:function(i,a){for(var l,d=n(i),p,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var y in l)t.call(l,y)&&(d[y]=l[y]);if(e){p=e(l);for(var v=0;v<p.length;v++)r.call(l,p[v])&&(d[p[v]]=l[p[v]])}}return d},yt}var bt,Xt;function Nt(){if(Xt)return bt;Xt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bt=e,bt}var vt,Jt;function Ar(){return Jt||(Jt=1,vt=Function.call.bind(Object.prototype.hasOwnProperty)),vt}var St,Qt;function sn(){if(Qt)return St;Qt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Nt(),r={},n=Ar();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,d,p){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var y;try{if(typeof i[h]!="function"){var v=Error((d||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}y=i[h](a,h,d,l,null,t)}catch(b){y=b}if(y&&!(y instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in r)){r[y.message]=!0;var u=p?p():"";e("Failed "+l+" type: "+y.message+(u??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},St=o,St}var xt,Zt;function ln(){if(Zt)return xt;Zt=1;var e=Or(),t=an(),r=Nt(),n=Ar(),o=sn(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return xt=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function y(S){var f=S&&(p&&S[p]||S[h]);if(typeof f=="function")return f}var v="<<anonymous>>",u={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:j(),arrayOf:N,element:w(),elementType:g(),instanceOf:_,node:ae(),objectOf:Q,oneOf:V,oneOfType:Z,shape:s,exact:A};function b(S,f){return S===f?S!==0||1/S===1/f:S!==S&&f!==f}function c(S,f){this.message=S,this.data=f&&typeof f=="object"?f:{},this.stack=""}c.prototype=Error.prototype;function x(S){if(process.env.NODE_ENV!=="production")var f={},E=0;function R(L,B,P,F,z,W,se){if(F=F||v,W=W||P,se!==r){if(d){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 pe=F+":"+P;!f[pe]&&E<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+F+"`. 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."),f[pe]=!0,E++)}}return B[P]==null?L?B[P]===null?new c("The "+z+" `"+W+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new c("The "+z+" `"+W+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:S(B,P,F,z,W)}var $=R.bind(null,!1);return $.isRequired=R.bind(null,!0),$}function I(S){function f(E,R,$,L,B,P){var F=E[R],z=D(F);if(z!==S){var W=te(F);return new c("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+$+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return x(f)}function j(){return x(a)}function N(S){function f(E,R,$,L,B){if(typeof S!="function")return new c("Property `"+B+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var P=E[R];if(!Array.isArray(P)){var F=D(P);return new c("Invalid "+L+" `"+B+"` of type "+("`"+F+"` supplied to `"+$+"`, expected an array."))}for(var z=0;z<P.length;z++){var W=S(P,z,$,L,B+"["+z+"]",r);if(W instanceof Error)return W}return null}return x(f)}function w(){function S(f,E,R,$,L){var B=f[E];if(!l(B)){var P=D(B);return new c("Invalid "+$+" `"+L+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return x(S)}function g(){function S(f,E,R,$,L){var B=f[E];if(!e.isValidElementType(B)){var P=D(B);return new c("Invalid "+$+" `"+L+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return x(S)}function _(S){function f(E,R,$,L,B){if(!(E[R]instanceof S)){var P=S.name||v,F=he(E[R]);return new c("Invalid "+L+" `"+B+"` of type "+("`"+F+"` supplied to `"+$+"`, expected ")+("instance of `"+P+"`."))}return null}return x(f)}function V(S){if(!Array.isArray(S))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 f(E,R,$,L,B){for(var P=E[R],F=0;F<S.length;F++)if(b(P,S[F]))return null;var z=JSON.stringify(S,function(se,O){var pe=te(O);return pe==="symbol"?String(O):O});return new c("Invalid "+L+" `"+B+"` of value `"+String(P)+"` "+("supplied to `"+$+"`, expected one of "+z+"."))}return x(f)}function Q(S){function f(E,R,$,L,B){if(typeof S!="function")return new c("Property `"+B+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var P=E[R],F=D(P);if(F!=="object")return new c("Invalid "+L+" `"+B+"` of type "+("`"+F+"` supplied to `"+$+"`, expected an object."));for(var z in P)if(n(P,z)){var W=S(P,z,$,L,B+"."+z,r);if(W instanceof Error)return W}return null}return x(f)}function Z(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var f=0;f<S.length;f++){var E=S[f];if(typeof E!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(E)+" at index "+f+"."),a}function R($,L,B,P,F){for(var z=[],W=0;W<S.length;W++){var se=S[W],O=se($,L,B,P,F,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&z.push(O.data.expectedType)}var pe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new c("Invalid "+P+" `"+F+"` supplied to "+("`"+B+"`"+pe+"."))}return x(R)}function ae(){function S(f,E,R,$,L){return T(f[E])?null:new c("Invalid "+$+" `"+L+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return x(S)}function U(S,f,E,R,$){return new c((S||"React class")+": "+f+" type `"+E+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function s(S){function f(E,R,$,L,B){var P=E[R],F=D(P);if(F!=="object")return new c("Invalid "+L+" `"+B+"` of type `"+F+"` "+("supplied to `"+$+"`, expected `object`."));for(var z in S){var W=S[z];if(typeof W!="function")return U($,L,B,z,te(W));var se=W(P,z,$,L,B+"."+z,r);if(se)return se}return null}return x(f)}function A(S){function f(E,R,$,L,B){var P=E[R],F=D(P);if(F!=="object")return new c("Invalid "+L+" `"+B+"` of type `"+F+"` "+("supplied to `"+$+"`, expected `object`."));var z=t({},E[R],S);for(var W in z){var se=S[W];if(n(S,W)&&typeof se!="function")return U($,L,B,W,te(se));if(!se)return new c("Invalid "+L+" `"+B+"` key `"+W+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(E[R],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var O=se(P,W,$,L,B+"."+W,r);if(O)return O}return null}return x(f)}function T(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(T);if(S===null||l(S))return!0;var f=y(S);if(f){var E=f.call(S),R;if(f!==S.entries){for(;!(R=E.next()).done;)if(!T(R.value))return!1}else for(;!(R=E.next()).done;){var $=R.value;if($&&!T($[1]))return!1}}else return!1;return!0;default:return!1}}function M(S,f){return S==="symbol"?!0:f?f["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&f instanceof Symbol:!1}function D(S){var f=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":M(f,S)?"symbol":f}function te(S){if(typeof S>"u"||S===null)return""+S;var f=D(S);if(f==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return f}function ie(S){var f=te(S);switch(f){case"array":case"object":return"an "+f;case"boolean":case"date":case"regexp":return"a "+f;default:return f}}function he(S){return!S.constructor||!S.constructor.name?v:S.constructor.name}return u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},xt}var Tt,er;function cn(){if(er)return Tt;er=1;var e=Nt();function t(){}function r(){}return r.resetWarningCache=t,Tt=function(){function n(a,l,d,p,h,y){if(y!==e){var v=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 v.name="Invariant Violation",v}}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},Tt}if(process.env.NODE_ENV!=="production"){var un=Or(),fn=!0;$t.exports=ln()(un.isElement,fn)}else $t.exports=cn()();var dn=$t.exports;const Y=en(dn);function $r(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=$r(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$r(e))&&(n&&(n+=" "),n+=t);return n}function pn(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",l=!0;for(let d=0;d<i.length;d+=1){const p=i[d];p&&(a+=(l===!0?"":" ")+t(p),l=!1,r&&r[p]&&(a+=" "+r[p]))}n[o]=a}return n}function we(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 Ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":we(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ke(e,t){const r=Array.isArray(t),n=Array.isArray(e);return bn(t)?t:vn(e)?je(t):r&&n?gn(e,t):r!==n?je(t):Sn(e,t)}function mn(e){let t=0;const r=e.length,n=new Array(r);for(t=0;t<r;t+=1)n[t]=je(e[t]);return n}function hn(e){const t={};for(const r in e)r==="__proto__"||r==="constructor"||r==="prototype"||(t[r]=je(e[r]));return t}function gn(e,t){const r=e.length;for(let n=0;n<t.length;n+=1)e[r+n]=je(t[n]);return e}function yn(e){return typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Date)}function bn(e){return typeof e!="object"||e===null}function vn(e){return typeof e!="object"||e===null||e instanceof RegExp||e instanceof Date}function je(e){return yn(e)?Array.isArray(e)?mn(e):hn(e):e}function Sn(e,t){for(const r in t)r==="__proto__"||r==="constructor"||r==="prototype"||(r in e?e[r]=ke(e[r],t[r]):e[r]=je(t[r]));return e}const xe=process.env.NODE_ENV!=="production"?Y.oneOfType([Y.number,Y.string,Y.object,Y.array]):{};function kr(e){if(e==null)return!0;for(const t in e)return!1;return!0}var Rt={exports:{}},X={};/**
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 tr;function xn(){if(tr)return X;tr=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"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),u=Symbol.for("react.client.reference");function b(c){if(typeof c=="object"&&c!==null){var x=c.$$typeof;switch(x){case e:switch(c=c.type,c){case r:case o:case n:case d:case p:case v:return c;default:switch(c=c&&c.$$typeof,c){case a:case l:case y:case h:return c;case i:return c;default:return x}}case t:return x}}}return X.ContextConsumer=i,X.ContextProvider=a,X.Element=e,X.ForwardRef=l,X.Fragment=r,X.Lazy=y,X.Memo=h,X.Portal=t,X.Profiler=o,X.StrictMode=n,X.Suspense=d,X.SuspenseList=p,X.isContextConsumer=function(c){return b(c)===i},X.isContextProvider=function(c){return b(c)===a},X.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===e},X.isForwardRef=function(c){return b(c)===l},X.isFragment=function(c){return b(c)===r},X.isLazy=function(c){return b(c)===y},X.isMemo=function(c){return b(c)===h},X.isPortal=function(c){return b(c)===t},X.isProfiler=function(c){return b(c)===o},X.isStrictMode=function(c){return b(c)===n},X.isSuspense=function(c){return b(c)===d},X.isSuspenseList=function(c){return b(c)===p},X.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===o||c===n||c===d||c===p||typeof c=="object"&&c!==null&&(c.$$typeof===y||c.$$typeof===h||c.$$typeof===a||c.$$typeof===i||c.$$typeof===l||c.$$typeof===u||c.getModuleId!==void 0)},X.typeOf=b,X}var J={};/**
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 rr;function Tn(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){function e(c){if(typeof c=="object"&&c!==null){var x=c.$$typeof;switch(x){case t:switch(c=c.type,c){case n:case i:case o:case p:case h:case u:return c;default:switch(c=c&&c.$$typeof,c){case l:case d:case v:case y:return c;case a:return c;default:return x}}case r:return x}}}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"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),u=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");J.ContextConsumer=a,J.ContextProvider=l,J.Element=t,J.ForwardRef=d,J.Fragment=n,J.Lazy=v,J.Memo=y,J.Portal=r,J.Profiler=i,J.StrictMode=o,J.Suspense=p,J.SuspenseList=h,J.isContextConsumer=function(c){return e(c)===a},J.isContextProvider=function(c){return e(c)===l},J.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},J.isForwardRef=function(c){return e(c)===d},J.isFragment=function(c){return e(c)===n},J.isLazy=function(c){return e(c)===v},J.isMemo=function(c){return e(c)===y},J.isPortal=function(c){return e(c)===r},J.isProfiler=function(c){return e(c)===i},J.isStrictMode=function(c){return e(c)===o},J.isSuspense=function(c){return e(c)===p},J.isSuspenseList=function(c){return e(c)===h},J.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===i||c===o||c===p||c===h||typeof c=="object"&&c!==null&&(c.$$typeof===v||c.$$typeof===y||c.$$typeof===l||c.$$typeof===a||c.$$typeof===d||c.$$typeof===b||c.getModuleId!==void 0)},J.typeOf=e}()),J}process.env.NODE_ENV==="production"?Rt.exports=xn():Rt.exports=Tn();var Je=Rt.exports;function ye(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 Pr(e){if(ve.isValidElement(e)||Je.isValidElementType(e)||!ye(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Pr(e[r])}),t}function fe(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ye(e)&&ye(t)&&Object.keys(t).forEach(o=>{ve.isValidElement(t[o])||Je.isValidElementType(t[o])?n[o]=t[o]:ye(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ye(e[o])?n[o]=fe(e[o],t[o],r):r.clone?n[o]=ye(t[o])?Pr(t[o]):t[o]:n[o]=t[o]}),n}const nr=/min-width:\s*([0-9.]+)/;function or(e,t){if(!e.containerQueries||!En(t))return t;const r=[];for(const o in t)o.startsWith("@container")&&r.push(o);r.sort((o,i)=>{var a,l;return+(((a=o.match(nr))==null?void 0:a[1])||0)-+(((l=i.match(nr))==null?void 0:l[1])||0)});const n=t;for(let o=0;o<r.length;o+=1){const i=r[o],a=n[i];delete n[i],n[i]=a}return n}function En(e){for(const t in e)if(t.startsWith("@container"))return!0;return!1}function Ir(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Cn(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(`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\`.`);return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function wn(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const _n=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 jr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=_n(t),a=Object.keys(i);function l(u){return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r})`}function d(u){return`@media (max-width:${(typeof t[u]=="number"?t[u]:u)-n/100}${r})`}function p(u,b){const c=a.indexOf(b);return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r}) and (max-width:${(c!==-1&&typeof t[a[c]]=="number"?t[a[c]]:b)-n/100}${r})`}function h(u){return a.indexOf(u)+1<a.length?p(u,a[a.indexOf(u)+1]):l(u)}function y(u){const b=a.indexOf(u);return b===0?l(a[1]):b===a.length-1?d(a[b]):p(u,a[a.indexOf(u)+1]).replace("@media","@media not all and")}const v=[];for(let u=0;u<a.length;u+=1)v.push(l(a[u]));return{keys:a,values:i,up:l,down:d,between:p,only:h,not:y,unit:r,internal_mediaKeys:v,...o}}const On={},nt={xs:0,sm:600,md:900,lg:1200,xl:1536},Qe=jr({values:nt}),An={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:nt[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ne(e,t,r){const n={};return ot(n,e.theme,t,(o,i,a)=>{const l=r(i,a);o?n[o]=l:ke(n,l)})}function ot(e,t,r,n){if(t??(t=On),Array.isArray(r)){const o=t.breakpoints??Qe;for(let i=0;i<r.length;i+=1)Et(e,o.up(o.keys[i]),r[i],void 0,n);return e}if(typeof r=="object"){const o=t.breakpoints??Qe,i=o.values??nt;for(const a in r)if(Ir(o.keys,a)){const l=Cn(t.containerQueries?t:An,a);l&&Et(e,l,r[a],a,n)}else if(a in i){const l=o.up(a);Et(e,l,r[a],a,n)}else{const l=a;e[l]=r[l]}return e}return n(void 0,r),e}function Et(e,t,r,n,o){e[t]??(e[t]={}),o(t,r,n)}function $n(e=Qe){const{internal_mediaKeys:t}=e,r={};for(let n=0;n<t.length;n+=1)r[t[n]]={};return r}function ir(e,t){const r=e.internal_mediaKeys;for(let n=0;n<r.length;n+=1){const o=r[n];kr(t[o])&&delete t[o]}return t}function Rn(e,t){if(Array.isArray(t))return!0;if(typeof t=="object"&&t!==null){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;const r=Object.keys(t);for(let n=0;n<r.length;n+=1)if(Ir(e.keys,r[n]))return!0}return!1}function Nr(e,t,r,n){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||r:typeof r=="string"?o=it(e,r,!0,n)||r:o=r,t&&(o=t(o,r,e)),o}function it(e,t,r=!0,n=void 0){if(!e||!t)return null;const o=t.split(".");if(e.vars&&r){const i=ar(e.vars,o,n);if(i!=null)return i}return ar(e,o,n)}function ar(e,t,r=void 0){let n,o=e,i=0;for(;i<t.length;){if(o==null)return o;n=o,o=o[t[i]],i+=1}if(r&&o===void 0){const a=t[t.length-1],l=`${r}${a==="default"?"":Ie(a)}`;return n==null?void 0:n[l]}return o}function re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,p=it(d,n)||{};return Ne(a,l,y=>{const v=Nr(p,o,y,t);return r===!1?v:{[r]:v}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:xe}:{},i.filterProps=[t],i}const kn={internal_cache:{}},Ze={m:"margin",p:"padding"},sr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Le={};for(const e in Ze)Le[e]=[Ze[e]];for(const e in Ze)for(const t in sr){const r=Ze[e],n=sr[t],o=Array.isArray(n)?n.map(i=>r+i):[r+n];Le[e+t]=o}for(const e in lr)Le[e]=Le[lr[e]];const at=new Set(["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"]),st=new Set(["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"]),Pn=new Set([...at,...st]);function Ye(e,t,r,n){const o=it(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 l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}: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 Mt(e){return Ye(e,"spacing",8,"spacing")}function Ue(e,t){return typeof t=="string"||t==null?t:e(t)}const cr=[""];function Mr(e,t){var i;const r=e.theme??kn,n=((i=r==null?void 0:r.internal_cache)==null?void 0:i.unarySpacing)??Mt(r),o={};for(const a in e){if(!t.has(a))continue;const l=Le[a]??(cr[0]=a,cr),d=e[a];ot(o,e.theme,d,(p,h)=>{const y=p?o[p]:o;for(let v=0;v<l.length;v+=1)y[l[v]]=Ue(n,h)})}return o}function Dt(e){return Mr(e,at)}Dt.propTypes=process.env.NODE_ENV!=="production"?Array.from(at).reduce((e,t)=>(e[t]=xe,e),{}):{};Dt.filterProps=at;const ne=Dt;function Bt(e){return Mr(e,st)}Bt.propTypes=process.env.NODE_ENV!=="production"?Array.from(st).reduce((e,t)=>(e[t]=xe,e),{}):{};Bt.filterProps=st;const oe=Bt;process.env.NODE_ENV!=="production"&&Array.from(Pn).reduce((e,t)=>(e[t]=xe,e),{});function lt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>{const o={};for(const i in n)t[i]&&ke(o,t[i](n));return o};return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ce(e){return typeof e!="number"?e:`${e}px solid`}function de(e,t){return re({prop:e,themeKey:"borders",transform:t})}const In=de("border",ce),jn=de("borderTop",ce),Nn=de("borderRight",ce),Mn=de("borderBottom",ce),Dn=de("borderLeft",ce),Bn=de("borderColor"),Fn=de("borderTopColor"),Vn=de("borderRightColor"),Ln=de("borderBottomColor"),Wn=de("borderLeftColor"),zn=de("outline",ce),Yn=de("outlineColor"),ct=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ye(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ue(t,n)});return Ne(e,e.borderRadius,r)}return null};ct.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:xe}:{};ct.filterProps=["borderRadius"];lt(In,jn,Nn,Mn,Dn,Bn,Fn,Vn,Ln,Wn,ct,zn,Yn);const ut=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ye(e.theme,"spacing",8,"gap"),r=n=>({gap:Ue(t,n)});return Ne(e,e.gap,r)}return null};ut.propTypes=process.env.NODE_ENV!=="production"?{gap:xe}:{};ut.filterProps=["gap"];const ft=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ye(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ue(t,n)});return Ne(e,e.columnGap,r)}return null};ft.propTypes=process.env.NODE_ENV!=="production"?{columnGap:xe}:{};ft.filterProps=["columnGap"];const dt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ye(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ue(t,n)});return Ne(e,e.rowGap,r)}return null};dt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:xe}:{};dt.filterProps=["rowGap"];const Un=re({prop:"gridColumn"}),Gn=re({prop:"gridRow"}),qn=re({prop:"gridAutoFlow"}),Hn=re({prop:"gridAutoColumns"}),Kn=re({prop:"gridAutoRows"}),Xn=re({prop:"gridTemplateColumns"}),Jn=re({prop:"gridTemplateRows"}),Qn=re({prop:"gridTemplateAreas"}),Zn=re({prop:"gridArea"});lt(ut,ft,dt,Un,Gn,qn,Hn,Kn,Xn,Jn,Qn,Zn);function Pe(e,t){return t==="grey"?t:e}const eo=re({prop:"color",themeKey:"palette",transform:Pe}),to=re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pe}),ro=re({prop:"backgroundColor",themeKey:"palette",transform:Pe});lt(eo,to,ro);const no=nt;function le(e){return e<=1&&e!==0?`${e*100}%`:e}const oo=re({prop:"width",transform:le}),Ft=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,l,d;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||no[r];return n?((d=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:le(r)}};return Ne(e,e.maxWidth,t)}return null};Ft.filterProps=["maxWidth"];const io=re({prop:"minWidth",transform:le}),ao=re({prop:"height",transform:le}),so=re({prop:"maxHeight",transform:le}),lo=re({prop:"minHeight",transform:le});re({prop:"size",cssProperty:"width",transform:le});re({prop:"size",cssProperty:"height",transform:le});const co=re({prop:"boxSizing"});lt(oo,Ft,io,ao,so,lo,co);const pt={border:{themeKey:"borders",transform:ce},borderTop:{themeKey:"borders",transform:ce},borderRight:{themeKey:"borders",transform:ce},borderBottom:{themeKey:"borders",transform:ce},borderLeft:{themeKey:"borders",transform:ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ce},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ct},color:{themeKey:"palette",transform:Pe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pe},backgroundColor:{themeKey:"palette",transform:Pe},p:{style:oe},pt:{style:oe},pr:{style:oe},pb:{style:oe},pl:{style:oe},px:{style:oe},py:{style:oe},padding:{style:oe},paddingTop:{style:oe},paddingRight:{style:oe},paddingBottom:{style:oe},paddingLeft:{style:oe},paddingX:{style:oe},paddingY:{style:oe},paddingInline:{style:oe},paddingInlineStart:{style:oe},paddingInlineEnd:{style:oe},paddingBlock:{style:oe},paddingBlockStart:{style:oe},paddingBlockEnd:{style:oe},m:{style:ne},mt:{style:ne},mr:{style:ne},mb:{style:ne},ml:{style:ne},mx:{style:ne},my:{style:ne},margin:{style:ne},marginTop:{style:ne},marginRight:{style:ne},marginBottom:{style:ne},marginLeft:{style:ne},marginX:{style:ne},marginY:{style:ne},marginInline:{style:ne},marginInlineStart:{style:ne},marginInlineEnd:{style:ne},marginBlock:{style:ne},marginBlockStart:{style:ne},marginBlockEnd:{style:ne},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ut},rowGap:{style:dt},columnGap:{style:ft},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:le},maxWidth:{style:Ft},minWidth:{transform:le},height:{transform:le},maxHeight:{transform:le},minHeight:{transform:le},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"}},uo={};function fo(){function e(t){if(!t.sx)return null;const{sx:r,theme:n=uo,nested:o}=t,i=n.unstable_sxConfig??pt,a={sx:null,theme:n,nested:!0};function l(d){let p=d;if(typeof d=="function")p=d(n);else if(typeof d!="object")return d;if(!p)return null;const h=n.breakpoints??Qe,y=$n(h);for(const v in p){const u=po(p[v],n);if(u!=null){if(typeof u!="object"){ur(y,v,u,n,i);continue}if(i[v]){ur(y,v,u,n,i);continue}Rn(h,u)?ot(y,t.theme,u,(b,c)=>{y[b][v]=c}):(a.sx=u,y[v]=e(a))}}return!o&&n.modularCssLayers?{"@layer sx":or(n,ir(h,y))}:or(n,ir(h,y))}return Array.isArray(r)?r.map(l):l(r)}return e.filterProps=["sx"],e}const We=fo();function ur(e,t,r,n,o){const i=o[t];if(!i){e[t]=r;return}if(r==null)return;const{themeKey:a}=i;if(a==="typography"&&r==="inherit"){e[t]=r;return}const{style:l}=i;if(l){ke(e,l({[t]:r,theme:n}));return}const{cssProperty:d=t,transform:p}=i,h=it(n,a);ot(e,n,r,(y,v)=>{const u=Nr(h,p,v,t);d===!1?ke(y?e[y]:e,u):y?e[y][d]=u:e[d]=u})}function po(e,t){return typeof e=="function"?e(t):e}function mo(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 ho={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};function go(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var yo=/[A-Z]|^ms/g,bo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dr=function(t){return t.charCodeAt(1)===45},fr=function(t){return t!=null&&typeof t!="boolean"},Ct=go(function(e){return Dr(e)?e:e.replace(yo,"-$&").toLowerCase()}),dr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bo,function(n,o,i){return be={name:o,styles:i,next:be},o})}return ho[t]!==1&&!Dr(t)&&typeof r=="number"&&r!==0?r+"px":r};function et(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 be={name:o.name,styles:o.styles,next:be},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)be={name:a.name,styles:a.styles,next:be},a=a.next;var l=i.styles+";";return l}return vo(e,t,r)}}var d=r;return d}function vo(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=et(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;fr(l)&&(n+=Ct(i)+":"+dr(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var d=0;d<a.length;d++)fr(a[d])&&(n+=Ct(i)+":"+dr(i,a[d])+";");else{var p=et(e,t,a);switch(i){case"animation":case"animationName":{n+=Ct(i)+":"+p+";";break}default:n+=i+"{"+p+"}"}}}return n}var pr=/label:\s*([^\s;{]+)\s*(;|$)/g,be;function So(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="";be=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=et(r,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=et(r,t,e[l]),n){var d=i;o+=d[l]}pr.lastIndex=0;for(var p="",h;(h=pr.exec(o))!==null;)p+="-"+h[1];var y=mo(o)+p;return{name:y,styles:o,next:be}}/**
62
+ * @mui/styled-engine v9.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 xo(e,t){const r=Qr(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 To(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mr=[];function Ce(e){return mr[0]=e,So(mr)}const Eo={borderRadius:4};function Br(e=8,t=Mt({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 Co(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 Fr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,l=jr(r),d=Br(o);let p=fe({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...Eo,...i}},a);return p=wn(p),p.applyStyles=Co,p=t.reduce((h,y)=>fe(h,y),p),p.unstable_sxConfig={...pt,...a==null?void 0:a.unstable_sxConfig},p.unstable_sx=function(y){return We({sx:y,theme:this})},p.internal_cache={},p}const hr=e=>e,wo=()=>{let e=hr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hr}}},_o=wo(),Oo={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 Vt(e,t,r="Mui"){const n=Oo[t];return n?`${r}-${n}`:`${_o.generate(e)}-${t}`}function Ao(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Vt(e,o,r)}),n}function Vr(e,t=""){return e.displayName||e.name||t}function gr(e,t,r){const n=Vr(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function $o(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Je.ForwardRef:return gr(e,e.render,"ForwardRef");case Je.Memo:return gr(e,e.type,"memo");default:return}}}function Lr(e){const{variants:t,...r}=e,n={variants:t,style:Ce(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ce(o.style))}),n}const Ro=Fr();function wt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ee(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ko(e){return e?(t,r)=>r[e]:null}function Po(e,t,r){e.theme=kr(e.theme)?r:e.theme[t]||e.theme}function Xe(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Xe(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Ee(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?Ee(Ce(a),r):a}return Wr(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Ee(Ce(n.style),r):n.style:r?Ee(Ce(n),r):n}function Wr(e,t,r=[],n=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const d in l.props)if(e[d]!==l.props[d]&&((i=e.ownerState)==null?void 0:i[d])!==l.props[d])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?Ee(Ce(l.style(o)),n):l.style(o))):r.push(n?Ee(Ce(l.style),n):l.style)}return r}function Io(e={}){const{themeId:t,defaultTheme:r=Ro,rootShouldForwardProp:n=wt,slotShouldForwardProp:o=wt}=e;function i(l){Po(l,t,r)}return(l,d={})=>{To(l,_=>_.filter(V=>V!==We));const{name:p,slot:h,skipVariantsResolver:y,skipSx:v,overridesResolver:u=ko(zr(h)),...b}=d,c=p&&p.startsWith("Mui")||h?"components":"custom",x=y!==void 0?y:h&&h!=="Root"&&h!=="root"||!1,I=v||!1;let j=wt;h==="Root"||h==="root"?j=n:h?j=o:Mo(l)&&(j=void 0);const N=xo(l,{shouldForwardProp:j,label:No(p,h),...b}),w=_=>{if(_.__emotion_real===_)return _;if(typeof _=="function")return function(Q){return Xe(Q,_,Q.theme.modularCssLayers?c:void 0)};if(ye(_)){const V=Lr(_);return function(Z){return V.variants?Xe(Z,V,Z.theme.modularCssLayers?c:void 0):Z.theme.modularCssLayers?Ee(V.style,c):V.style}}return _},g=(..._)=>{const V=[],Q=_.map(w),Z=[];if(V.push(i),p&&u&&Z.push(function(A){var te,ie;const M=(ie=(te=A.theme.components)==null?void 0:te[p])==null?void 0:ie.styleOverrides;if(!M)return null;const D={};for(const he in M)D[he]=Xe(A,M[he],A.theme.modularCssLayers?"theme":void 0);return u(A,D)}),p&&!x&&Z.push(function(A){var D,te;const T=A.theme,M=(te=(D=T==null?void 0:T.components)==null?void 0:D[p])==null?void 0:te.variants;return M?Wr(A,M,[],A.theme.modularCssLayers?"theme":void 0):null}),I||Z.push(We),Array.isArray(Q[0])){const s=Q.shift(),A=new Array(V.length).fill(""),T=new Array(Z.length).fill("");let M;M=[...A,...s,...T],M.raw=[...A,...s.raw,...T],V.unshift(M)}const ae=[...V,...Q,...Z],U=N(...ae);return l.muiName&&(U.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(U.displayName=jo(p,h,l)),U};return N.withConfig&&(g.withConfig=N.withConfig),g}}function jo(e,t,r){return e?`${e}${Ie(t||"")}`:`Styled(${$o(r)})`}function No(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${zr(t||"Root")}`),r}function Mo(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zr(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function kt(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;n[i][p]=kt(a[p],l[p],r)}}}else i==="className"&&r&&t.className!==void 0?n.className=Rr(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Do(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Lt(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}].`),Do(e,t,r)}function Bo(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 Se(e){if(e.type)return e;if(e.charAt(0)==="#")return Se(Bo(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().`:we(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.`:we(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Fo=e=>{const t=Se(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Fe=(e,t)=>{try{return Fo(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function mt(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 Yr(e){e=Se(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(p,h=(p+r/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),mt({type:l,values:d})}function Pt(e){e=Se(e);let t=e.type==="hsl"||e.type==="hsla"?Se(Yr(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 yr(e,t){const r=Pt(e),n=Pt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ur(e,t){return e=Se(e),t=Lt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mt(e)}function Te(e,t,r){try{return Ur(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ht(e,t){if(e=Se(e),t=Lt(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 mt(e)}function H(e,t,r){try{return ht(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function gt(e,t){if(e=Se(e),t=Lt(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 mt(e)}function K(e,t,r){try{return gt(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Vo(e,t=.15){return Pt(e)>.5?ht(e,t):gt(e,t)}function Ke(e,t,r){try{return Vo(e,t)}catch{return e}}const Lo=ve.createContext(void 0);process.env.NODE_ENV!=="production"&&(Y.node,Y.object);function Wo(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?kt(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?kt(o,n,t.components.mergeClassNameAndStyle):n}function zo({props:e,name:t}){const r=ve.useContext(Lo);return Wo({props:e,name:t,theme:{components:r}})}const br={theme:void 0};function Yo(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(br.theme=o.theme,i=Lr(e(br)),t=i,r=o.theme),i}}function Uo(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 vr=(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])})},Go=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([l,d])=>{(!r||r&&!r([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}n(e)},qo=(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 _t(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return Go(e,(l,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(l,d))){const h=`--${r?`${r}-`:""}${l.join("-")}`,y=qo(l,d);Object.assign(o,{[h]:y}),vr(i,l,`var(${h})`,p),vr(a,l,`var(${h}, ${y})`,p)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Ho(e,t={}){const{getSelector:r=I,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:d="light",...p}=e,{vars:h,css:y,varsWithDefaults:v}=_t(p,t);let u=v;const b={},{[d]:c,...x}=a;if(Object.entries(x||{}).forEach(([w,g])=>{const{vars:_,css:V,varsWithDefaults:Q}=_t(g,t);u=fe(u,Q),b[w]={css:V,vars:_}}),c){const{css:w,vars:g,varsWithDefaults:_}=_t(c,t);u=fe(u,_),b[d]={css:w,vars:g}}function I(w,g){var V,Q;let _=o;if(o==="class"&&(_=".%s"),o==="data"&&(_="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(_=`[${o}="%s"]`),w){if(_==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((Q=(V=a[w])==null?void 0:V.palette)==null?void 0:Q.mode)||w})`]:{":root":g}};if(_)return e.defaultColorScheme===w?`:root, ${_.replace("%s",String(w))}`:_.replace("%s",String(w))}return":root"}return{vars:u,generateThemeVars:()=>{let w={...h};return Object.entries(b).forEach(([,{vars:g}])=>{w=fe(w,g)}),w},generateStyleSheets:()=>{var Z,ae;const w=[],g=e.defaultColorScheme||"light";function _(U,s){Object.keys(s).length&&w.push(typeof U=="string"?{[U]:{...s}}:U)}_(r(void 0,{...y}),y);const{[g]:V,...Q}=b;if(V){const{css:U}=V,s=(ae=(Z=a[g])==null?void 0:Z.palette)==null?void 0:ae.mode,A=!n&&s?{colorScheme:s,...U}:{...U};_(r(g,{...A}),A)}return Object.entries(Q).forEach(([U,{css:s}])=>{var M,D;const A=(D=(M=a[U])==null?void 0:M.palette)==null?void 0:D.mode,T=!n&&A?{colorScheme:A,...s}:{...s};_(r(U,{...T}),T)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function Ko(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 ze={black:"#000",white:"#fff"},Xo={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"},_e={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Oe={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Be={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ae={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},$e={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Re={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Gr(){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:ze.white,default:ze.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 qr=Gr();function Hr(){return{text:{primary:ze.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:ze.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 It=Hr();function Sr(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=gt(e.main,o):t==="dark"&&(e.dark=ht(e.main,i)))}function xr(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Jo(e="light"){return e==="dark"?{main:Ae[200],light:Ae[50],dark:Ae[400]}:{main:Ae[700],light:Ae[400],dark:Ae[800]}}function Qo(e="light"){return e==="dark"?{main:_e[200],light:_e[50],dark:_e[400]}:{main:_e[500],light:_e[300],dark:_e[700]}}function Zo(e="light"){return e==="dark"?{main:Oe[500],light:Oe[300],dark:Oe[700]}:{main:Oe[700],light:Oe[400],dark:Oe[800]}}function ei(e="light"){return e==="dark"?{main:$e[400],light:$e[300],dark:$e[700]}:{main:$e[700],light:$e[500],dark:$e[900]}}function ti(e="light"){return e==="dark"?{main:Re[400],light:Re[300],dark:Re[700]}:{main:Re[800],light:Re[500],dark:Re[900]}}function ri(e="light"){return e==="dark"?{main:Be[400],light:Be[300],dark:Be[700]}:{main:"#ed6c02",light:Be[500],dark:Be[900]}}function ni(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Wt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||Jo(t),l=e.secondary||Qo(t),d=e.error||Zo(t),p=e.info||ei(t),h=e.success||ti(t),y=e.warning||ri(t);function v(x){if(o)return ni(x);const I=yr(x,It.text.primary)>=r?It.text.primary:qr.text.primary;if(process.env.NODE_ENV!=="production"){const j=yr(x,I);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${I} on ${x}`,"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 I}const u=({color:x,name:I,mainShade:j=500,lightShade:N=300,darkShade:w=700})=>{if(x={...x},!x.main&&x[j]&&(x.main=x[j]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${I?` (${I})`:""} provided to augmentColor(color) is invalid.
72
+ The color object needs to have a \`main\` property or a \`${j}\` property.`:we(11,I?` (${I})`:"",j));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${I?` (${I})`:""} provided to augmentColor(color) is invalid.
73
+ \`color.main\` should be a string, but \`${JSON.stringify(x.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
+ } });`:we(12,I?` (${I})`:"",JSON.stringify(x.main)));return o?(xr(o,x,"light",N,n),xr(o,x,"dark",w,n)):(Sr(x,"light",N,n),Sr(x,"dark",w,n)),x.contrastText||(x.contrastText=v(x.main)),x};let b;return t==="light"?b=Gr():t==="dark"&&(b=Hr()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),fe({common:{...ze},mode:t,primary:u({color:a,name:"primary"}),secondary:u({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:u({color:d,name:"error"}),warning:u({color:y,name:"warning"}),info:u({color:p,name:"info"}),success:u({color:h,name:"success"}),grey:Xo,contrastThreshold:r,getContrastText:v,augmentColor:u,tonalOffset:n,...b},i)}function oi(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 ii(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ai(e){return Math.round(e*1e5)/1e5}const Tr={textTransform:"uppercase"},Er='"Roboto", "Helvetica", "Arial", sans-serif';function si(e,t){const{fontFamily:r=Er,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:p,pxToRem:h,...y}=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 d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=n/14,u=h||(x=>`${x/d*v}rem`),b=(x,I,j,N,w)=>({fontFamily:r,fontWeight:x,fontSize:u(I),lineHeight:j,...r===Er?{letterSpacing:`${ai(N/I)}em`}:{},...w,...p}),c={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,Tr),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Tr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fe({htmlFontSize:d,pxToRem:u,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...c},y,{clone:!1})}const li=.2,ci=.14,ui=.12;function ee(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${li})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ci})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ui})`].join(",")}const fi=["none",ee(0,2,1,-1,0,1,1,0,0,1,3,0),ee(0,3,1,-2,0,2,2,0,0,1,5,0),ee(0,3,3,-2,0,3,4,0,0,1,8,0),ee(0,2,4,-1,0,4,5,0,0,1,10,0),ee(0,3,5,-1,0,5,8,0,0,1,14,0),ee(0,3,5,-1,0,6,10,0,0,1,18,0),ee(0,4,5,-2,0,7,10,1,0,2,16,1),ee(0,5,5,-3,0,8,10,1,0,3,14,2),ee(0,5,6,-3,0,9,12,1,0,3,16,2),ee(0,6,6,-3,0,10,14,1,0,4,18,3),ee(0,6,7,-4,0,11,15,1,0,4,20,3),ee(0,7,8,-4,0,12,17,2,0,5,22,4),ee(0,7,8,-4,0,13,19,2,0,5,24,4),ee(0,7,9,-4,0,14,21,2,0,5,26,4),ee(0,8,9,-5,0,15,22,2,0,6,28,5),ee(0,8,10,-5,0,16,24,2,0,6,30,5),ee(0,8,11,-5,0,17,26,2,0,6,32,5),ee(0,9,11,-5,0,18,28,2,0,7,34,6),ee(0,9,12,-6,0,19,29,2,0,7,36,6),ee(0,10,13,-6,0,20,31,3,0,8,38,7),ee(0,10,13,-6,0,21,33,3,0,8,40,7),ee(0,10,14,-6,0,22,35,3,0,8,42,7),ee(0,11,14,-7,0,23,36,3,0,9,44,8),ee(0,11,15,-7,0,24,38,3,0,9,46,8)],di=["all"],pi={},mi={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)"},hi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cr(e){return`${Math.round(e)}ms`}function gi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function yi(e){const t={...e};delete t.reducedMotion;const r={...mi,...t.easing},n={...hi,...t.duration},o=(a=di,l=pi)=>{const{duration:d=n.standard,easing:p=r.easeInOut,delay:h=0,...y}=l;if(process.env.NODE_ENV!=="production"){const v=b=>typeof b=="string",u=b=>!Number.isNaN(parseFloat(b));!v(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(d)&&!v(d)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${d}.`),v(p)||console.error('MUI: Argument "easing" must be a string.'),!u(h)&&!v(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof l!="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(y).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(y).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(v=>`${v} ${typeof d=="string"?d:Cr(d)} ${p} ${typeof h=="string"?h:Cr(h)}`).join(",")},i=t.create??o;return{getAutoHeightDuration:gi,create:i,...t,easing:r,duration:n}}const bi={};function vi(e=bi){return{reducedMotion:"never",...e}}const Si={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xi(e){return ye(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Kr(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,l]=o[i];!xi(l)||a.startsWith("unstable_")||a.startsWith("internal_")?delete n[a]:ye(l)&&(n[a]={...l},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.motion = { reducedMotion: 'never', ...theme.motion };
92
+ theme.transitions = createTransitions(theme.transitions || {});
93
+
94
+ export default theme;`}function wr(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ti=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Ei(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ur(t,Ti(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${wr(r)})`:gt(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${wr(r)})`:ht(t,r)}})}function jt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},motion:a={},transitions:l={},typography:d={},shape:p,colorSpace:h,...y}=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.":we(22));const v=Wt({...i,colorSpace:h}),u=Fr(e);let b=fe(u,{mixins:ii(u.breakpoints,n),palette:v,shadows:fi.slice(),typography:si(v,d),motion:vi(a),transitions:yi(l),zIndex:{...Si}});if(b=fe(b,y),b=t.reduce((c,x)=>fe(c,x),b),delete b.transitions.reducedMotion,process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],x=(I,j)=>{let N;for(N in I){const w=I[N];if(c.includes(N)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const g=Vt("",N);console.error([`MUI: The \`${j}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(I,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
95
+ `))}I[N]={}}}};Object.keys(b.components).forEach(I=>{const j=b.components[I].styleOverrides;j&&I.startsWith("Mui")&&x(j,I)})}return b.unstable_sxConfig={...pt,...y==null?void 0:y.unstable_sxConfig},b.unstable_sx=function(x){return We({sx:x,theme:this})},b.toRuntimeSource=Kr,Ei(b),b}function Ci(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 wi=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Ci(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Xr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Jr(e){return e==="dark"?wi:[]}function _i(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Wt({...t,colorSpace:o});return{palette:a,opacity:{...Xr(a.mode),...r},overlays:n||Jr(a.mode),...i}}function Oi(e){var t;return e[0]==="motion"||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ai=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$i=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 Ai(e.cssVarPrefix).forEach(l=>{a[l]=r[l],delete r[l]}),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 Ri(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function m(e,t,r){!e[t]&&r&&(e[t]=r)}function Ve(e){return typeof e!="string"||!e.startsWith("hsl")?e:Yr(e)}function ge(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fe(Ve(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().
96
+ 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 ki(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const me=e=>{try{return e()}catch{}},Pi=(e="mui")=>Uo(e);function Ot(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=_i({...r,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:a,...l}=jt({...n,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Xr(i),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Jr(i)},l}function Ii(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Oi,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...h}=e,y=Object.keys(r)[0],v=n||(r.light&&y!=="light"?"light":y),u=Pi(i),{[v]:b,light:c,dark:x,...I}=r,j={...I};let N=b;if((v==="dark"&&!("dark"in r)||v==="light"&&!("light"in r))&&(N=!0),!N)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${v}\` option is either missing or invalid.`:we(21,v));let w;a&&(w="oklch");const g=Ot(w,j,N,h,v);c&&!j.light&&Ot(w,j,c,void 0,"light"),x&&!j.dark&&Ot(w,j,x,void 0,"dark");let _={defaultColorScheme:v,...g,cssVarPrefix:i,colorSchemeSelector:d,rootSelector:p,getCssVar:u,colorSchemes:j,font:{...oi(g.typography),...g.font},spacing:ki(h.spacing)};Object.keys(_.colorSchemes).forEach(U=>{const s=_.colorSchemes[U].palette,A=M=>{const D=M.split("-"),te=D[1],ie=D[2];return u(M,s[te][ie])};s.mode==="light"&&(m(s.common,"background","#fff"),m(s.common,"onBackground","#000")),s.mode==="dark"&&(m(s.common,"background","#000"),m(s.common,"onBackground","#fff"));function T(M,D,te){if(w){let ie;return M===Te&&(ie=`transparent ${((1-te)*100).toFixed(0)}%`),M===H&&(ie=`#000 ${(te*100).toFixed(0)}%`),M===K&&(ie=`#fff ${(te*100).toFixed(0)}%`),`color-mix(in ${w}, ${D}, ${ie})`}return M(D,te)}if(Ri(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){m(s.Alert,"errorColor",T(H,a?u("palette-error-light"):s.error.light,.6)),m(s.Alert,"infoColor",T(H,a?u("palette-info-light"):s.info.light,.6)),m(s.Alert,"successColor",T(H,a?u("palette-success-light"):s.success.light,.6)),m(s.Alert,"warningColor",T(H,a?u("palette-warning-light"):s.warning.light,.6)),m(s.Alert,"errorFilledBg",A("palette-error-main")),m(s.Alert,"infoFilledBg",A("palette-info-main")),m(s.Alert,"successFilledBg",A("palette-success-main")),m(s.Alert,"warningFilledBg",A("palette-warning-main")),m(s.Alert,"errorFilledColor",me(()=>s.getContrastText(s.error.main))),m(s.Alert,"infoFilledColor",me(()=>s.getContrastText(s.info.main))),m(s.Alert,"successFilledColor",me(()=>s.getContrastText(s.success.main))),m(s.Alert,"warningFilledColor",me(()=>s.getContrastText(s.warning.main))),m(s.Alert,"errorStandardBg",T(K,a?u("palette-error-light"):s.error.light,.9)),m(s.Alert,"infoStandardBg",T(K,a?u("palette-info-light"):s.info.light,.9)),m(s.Alert,"successStandardBg",T(K,a?u("palette-success-light"):s.success.light,.9)),m(s.Alert,"warningStandardBg",T(K,a?u("palette-warning-light"):s.warning.light,.9)),m(s.Alert,"errorIconColor",A("palette-error-main")),m(s.Alert,"infoIconColor",A("palette-info-main")),m(s.Alert,"successIconColor",A("palette-success-main")),m(s.Alert,"warningIconColor",A("palette-warning-main")),m(s.AppBar,"defaultBg",A("palette-grey-100")),m(s.Avatar,"defaultBg",A("palette-grey-400")),m(s.Button,"inheritContainedBg",A("palette-grey-300")),m(s.Button,"inheritContainedHoverBg",A("palette-grey-A100")),m(s.Chip,"defaultBorder",A("palette-grey-400")),m(s.Chip,"defaultAvatarColor",A("palette-grey-700")),m(s.Chip,"defaultIconColor",A("palette-grey-700")),m(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),m(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),m(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),m(s.LinearProgress,"primaryBg",T(K,a?u("palette-primary-main"):s.primary.main,.62)),m(s.LinearProgress,"secondaryBg",T(K,a?u("palette-secondary-main"):s.secondary.main,.62)),m(s.LinearProgress,"errorBg",T(K,a?u("palette-error-main"):s.error.main,.62)),m(s.LinearProgress,"infoBg",T(K,a?u("palette-info-main"):s.info.main,.62)),m(s.LinearProgress,"successBg",T(K,a?u("palette-success-main"):s.success.main,.62)),m(s.LinearProgress,"warningBg",T(K,a?u("palette-warning-light"):s.warning.main,.62)),m(s.Skeleton,"bg",w?T(Te,a?u("palette-text-primary"):s.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),m(s.Slider,"primaryTrack",T(K,a?u("palette-primary-main"):s.primary.main,.62)),m(s.Slider,"secondaryTrack",T(K,a?u("palette-secondary-main"):s.secondary.main,.62)),m(s.Slider,"errorTrack",T(K,a?u("palette-error-main"):s.error.main,.62)),m(s.Slider,"infoTrack",T(K,a?u("palette-info-main"):s.info.main,.62)),m(s.Slider,"successTrack",T(K,a?u("palette-success-main"):s.success.main,.62)),m(s.Slider,"warningTrack",T(K,a?u("palette-warning-main"):s.warning.main,.62));const M=w?T(H,a?u("palette-background-default"):s.background.default,.6825):Ke(s.background.default,.8);m(s.SnackbarContent,"bg",M),m(s.SnackbarContent,"color",me(()=>w?It.text.primary:s.getContrastText(M))),m(s.SpeedDialAction,"fabHoverBg",Ke(s.background.paper,.15)),m(s.StepConnector,"border",A("palette-grey-400")),m(s.StepContent,"border",A("palette-grey-400")),m(s.Switch,"defaultColor",A("palette-common-white")),m(s.Switch,"defaultDisabledColor",A("palette-grey-100")),m(s.Switch,"primaryDisabledColor",T(K,a?u("palette-primary-main"):s.primary.main,.62)),m(s.Switch,"secondaryDisabledColor",T(K,a?u("palette-secondary-main"):s.secondary.main,.62)),m(s.Switch,"errorDisabledColor",T(K,a?u("palette-error-main"):s.error.main,.62)),m(s.Switch,"infoDisabledColor",T(K,a?u("palette-info-main"):s.info.main,.62)),m(s.Switch,"successDisabledColor",T(K,a?u("palette-success-main"):s.success.main,.62)),m(s.Switch,"warningDisabledColor",T(K,a?u("palette-warning-main"):s.warning.main,.62)),m(s.TableCell,"border",T(K,Te(a?u("palette-divider"):s.divider,1),.88)),m(s.Tooltip,"bg",T(Te,a?u("palette-grey-700"):s.grey[700],.92))}if(s.mode==="dark"){m(s.Alert,"errorColor",T(K,a?u("palette-error-light"):s.error.light,.6)),m(s.Alert,"infoColor",T(K,a?u("palette-info-light"):s.info.light,.6)),m(s.Alert,"successColor",T(K,a?u("palette-success-light"):s.success.light,.6)),m(s.Alert,"warningColor",T(K,a?u("palette-warning-light"):s.warning.light,.6)),m(s.Alert,"errorFilledBg",A("palette-error-dark")),m(s.Alert,"infoFilledBg",A("palette-info-dark")),m(s.Alert,"successFilledBg",A("palette-success-dark")),m(s.Alert,"warningFilledBg",A("palette-warning-dark")),m(s.Alert,"errorFilledColor",me(()=>s.getContrastText(s.error.dark))),m(s.Alert,"infoFilledColor",me(()=>s.getContrastText(s.info.dark))),m(s.Alert,"successFilledColor",me(()=>s.getContrastText(s.success.dark))),m(s.Alert,"warningFilledColor",me(()=>s.getContrastText(s.warning.dark))),m(s.Alert,"errorStandardBg",T(H,a?u("palette-error-light"):s.error.light,.9)),m(s.Alert,"infoStandardBg",T(H,a?u("palette-info-light"):s.info.light,.9)),m(s.Alert,"successStandardBg",T(H,a?u("palette-success-light"):s.success.light,.9)),m(s.Alert,"warningStandardBg",T(H,a?u("palette-warning-light"):s.warning.light,.9)),m(s.Alert,"errorIconColor",A("palette-error-main")),m(s.Alert,"infoIconColor",A("palette-info-main")),m(s.Alert,"successIconColor",A("palette-success-main")),m(s.Alert,"warningIconColor",A("palette-warning-main")),m(s.AppBar,"defaultBg",A("palette-grey-900")),m(s.AppBar,"darkBg",A("palette-background-paper")),m(s.AppBar,"darkColor",A("palette-text-primary")),m(s.Avatar,"defaultBg",A("palette-grey-600")),m(s.Button,"inheritContainedBg",A("palette-grey-800")),m(s.Button,"inheritContainedHoverBg",A("palette-grey-700")),m(s.Chip,"defaultBorder",A("palette-grey-700")),m(s.Chip,"defaultAvatarColor",A("palette-grey-300")),m(s.Chip,"defaultIconColor",A("palette-grey-300")),m(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),m(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),m(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),m(s.LinearProgress,"primaryBg",T(H,a?u("palette-primary-main"):s.primary.main,.5)),m(s.LinearProgress,"secondaryBg",T(H,a?u("palette-secondary-main"):s.secondary.main,.5)),m(s.LinearProgress,"errorBg",T(H,a?u("palette-error-main"):s.error.main,.5)),m(s.LinearProgress,"infoBg",T(H,a?u("palette-info-main"):s.info.main,.5)),m(s.LinearProgress,"successBg",T(H,a?u("palette-success-main"):s.success.main,.5)),m(s.LinearProgress,"warningBg",T(H,a?u("palette-warning-main"):s.warning.main,.5)),m(s.Skeleton,"bg",w?T(Te,a?u("palette-text-primary"):s.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),m(s.Slider,"primaryTrack",T(H,a?u("palette-primary-main"):s.primary.main,.5)),m(s.Slider,"secondaryTrack",T(H,a?u("palette-secondary-main"):s.secondary.main,.5)),m(s.Slider,"errorTrack",T(H,a?u("palette-error-main"):s.error.main,.5)),m(s.Slider,"infoTrack",T(H,a?u("palette-info-main"):s.info.main,.5)),m(s.Slider,"successTrack",T(H,a?u("palette-success-main"):s.success.main,.5)),m(s.Slider,"warningTrack",T(H,a?u("palette-warning-light"):s.warning.main,.5));const M=w?T(K,a?u("palette-background-default"):s.background.default,.985):Ke(s.background.default,.98);m(s.SnackbarContent,"bg",M),m(s.SnackbarContent,"color",me(()=>w?qr.text.primary:s.getContrastText(M))),m(s.SpeedDialAction,"fabHoverBg",Ke(s.background.paper,.15)),m(s.StepConnector,"border",A("palette-grey-600")),m(s.StepContent,"border",A("palette-grey-600")),m(s.Switch,"defaultColor",A("palette-grey-300")),m(s.Switch,"defaultDisabledColor",A("palette-grey-600")),m(s.Switch,"primaryDisabledColor",T(H,a?u("palette-primary-main"):s.primary.main,.55)),m(s.Switch,"secondaryDisabledColor",T(H,a?u("palette-secondary-main"):s.secondary.main,.55)),m(s.Switch,"errorDisabledColor",T(H,a?u("palette-error-main"):s.error.main,.55)),m(s.Switch,"infoDisabledColor",T(H,a?u("palette-info-main"):s.info.main,.55)),m(s.Switch,"successDisabledColor",T(H,a?u("palette-success-main"):s.success.main,.55)),m(s.Switch,"warningDisabledColor",T(H,a?u("palette-warning-light"):s.warning.main,.55)),m(s.TableCell,"border",T(H,Te(a?u("palette-divider"):s.divider,1),.68)),m(s.Tooltip,"bg",T(Te,a?u("palette-grey-700"):s.grey[700],.92))}a||(ge(s.background,"default"),ge(s.background,"paper"),ge(s.common,"background"),ge(s.common,"onBackground"),ge(s,"divider")),Object.keys(s).forEach(M=>{const D=s[M];M!=="tonalOffset"&&!a&&D&&typeof D=="object"&&(D.main&&m(s[M],"mainChannel",Fe(Ve(D.main))),D.light&&m(s[M],"lightChannel",Fe(Ve(D.light))),D.dark&&m(s[M],"darkChannel",Fe(Ve(D.dark))),D.contrastText&&m(s[M],"contrastTextChannel",Fe(Ve(D.contrastText))),M==="text"&&(ge(s[M],"primary"),ge(s[M],"secondary")),M==="action"&&(D.active&&ge(s[M],"active"),D.selected&&ge(s[M],"selected")))})}),_=t.reduce((U,s)=>fe(U,s),_);const V={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:$i(_),enableContrastVars:a},{vars:Q,generateThemeVars:Z,generateStyleSheets:ae}=Ho(_,V);return _.vars=Q,Object.entries(_.colorSchemes[_.defaultColorScheme]).forEach(([U,s])=>{_[U]=s}),_.generateThemeVars=Z,_.generateStyleSheets=ae,_.generateSpacing=function(){return Br(h.spacing,Mt(this))},_.getColorSchemeSelector=Ko(d),_.spacing=_.generateSpacing(),_.shouldSkipGeneratingVar=l,_.unstable_sxConfig={...pt,...h==null?void 0:h.unstable_sxConfig},_.unstable_sx=function(s){return We({sx:s,theme:this})},_.internal_cache={},_.toRuntimeSource=Kr,_}function _r(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Wt({...r===!0?{}:r.palette,mode:t})})}function ji(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,l=i||"light",d=o==null?void 0:o[l],p={...o,...r?{[l]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return jt(e,...t);let h=r;"palette"in e||p[l]&&(p[l]!==!0?h=p[l].palette:l==="dark"&&(h={mode:"dark"}));const y=jt({...e,palette:h},...t);return y.defaultColorScheme=l,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},_r(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},_r(y,"light",p.light)),y}return!r&&!("light"in p)&&l==="light"&&(p.light=!0),Ii({...a,colorSchemes:p,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Ni=ji(),Mi="$$material";function Di(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bi=e=>Di(e)&&e!=="classes",Fi=Io({themeId:Mi,defaultTheme:Ni,rootShouldForwardProp:Bi}),Vi=Yo;process.env.NODE_ENV!=="production"&&(Y.node,Y.object.isRequired);function Li(e){return zo(e)}function Wi(e){return Vt("MuiSvgIcon",e)}Ao("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zi={transition:"none"};function Yi(e,t){return e==="always"?t:e==="system"?{"@media (prefers-reduced-motion: reduce)":t}:null}const Ui={},Gi=["all"],qi={};function Hi(e,t){var n;const r=zi;return Yi((n=e.motion)==null?void 0:n.reducedMotion,r)}function Ki(e,t=Gi,r=qi){var a,l;const n=(l=(a=e.transitions)==null?void 0:a.create)==null?void 0:l.call(a,t,r),o=Hi(e);if(n===void 0)return o??Ui;const i={transition:n};return o?{...i,...o}:i}const Xi=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ie(t)}`,`fontSize${Ie(r)}`]};return pn(o,Wi,n)},Ji=Fi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ie(r.color)}`],t[`fontSize${Ie(r.fontSize)}`]]}})(Vi(({theme:e})=>{var t,r,n,o,i,a,l,d,p,h,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,...Ki(e,"fill",{duration:(r=(t=(e.vars??e).transitions)==null?void 0:t.duration)==null?void 0:r.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(n=e.typography)==null?void 0:n.pxToRem)==null?void 0:o.call(n,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:d.call(l,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var b,c;return{props:{color:u},style:{color:(c=(b=(e.vars??e).palette)==null?void 0:b[u])==null?void 0:c.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:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),tt=ve.forwardRef(function(t,r){const n=Li({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:y,viewBox:v="0 0 24 24",...u}=n,b=ve.isValidElement(o)&&o.type==="svg",c={...n,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:v,hasSvgAsChild:b},x={};h||(x.viewBox=v);const I=Xi(c);return C.jsxs(Ji,{as:l,className:Rr(I.root,i),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:r,...x,...u,...b&&o.props,ownerState:c,children:[b?o.props.children:o,y?C.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(tt.propTypes={children:Y.node,classes:Y.object,className:Y.string,color:Y.oneOfType([Y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Y.string]),component:Y.elementType,fontSize:Y.oneOfType([Y.oneOf(["inherit","large","medium","small"]),Y.string]),htmlColor:Y.string,inheritViewBox:Y.bool,shapeRendering:Y.string,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),titleAccess:Y.string,viewBox:Y.string});tt.muiName="SvgIcon";function Ge(e,t){function r(n,o){return C.jsx(tt,{"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=tt.muiName,ve.memo(ve.forwardRef(r))}const Qi=Ge(C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Zi=Ge(C.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),rt=Ge(C.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 ea({image:e,imageAlt:t="",imageHeight:r=260,fallback:n=C.jsx(k.Typography,{children:"No Image Available"}),title:o,description:i,descriptionLines:a=3,highlight:l,footer:d,sx:p,onEdit:h,editForm:y,editLabel:v="Edit",onDelete:u,deleteLabel:b="Delete",deleteConfirmMessage:c="Are you sure you want to delete this item? This action cannot be undone.",onClick:x}){const[I,j]=ue.useState(!1),[N,w]=ue.useState(!1),[g,_]=ue.useState(!1),V=!!(h&&y),Q=!!u,Z=async U=>{h&&(await h(U),j(!1))},ae=async()=>{if(u){_(!0);try{await u(),w(!1)}finally{_(!1)}}};return C.jsxs(k.Box,{sx:{position:"relative",height:"100%"},children:[(V||Q)&&C.jsxs(k.Stack,{direction:"row",spacing:.5,sx:{position:"absolute",top:8,right:8,zIndex:1,bgcolor:"background.paper",borderRadius:1,boxShadow:1},children:[V&&C.jsx(k.IconButton,{size:"small",onClick:()=>j(!0),"aria-label":v,children:C.jsx(Qi,{fontSize:"small"})}),Q&&C.jsx(k.IconButton,{size:"small",onClick:()=>w(!0),"aria-label":b,children:C.jsx(Zi,{fontSize:"small",color:"error"})})]}),C.jsxs(k.Card,{onClick:x,sx:{height:"100%",display:"flex",flexDirection:"column",borderRadius:3,overflow:"hidden",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",transition:"all 0.25s ease","&:hover":{transform:"translateY(-4px)",boxShadow:"0 10px 28px rgba(0,0,0,0.12)"},...p},children:[e?C.jsx(k.CardMedia,{component:"img",image:e,alt:t,sx:{height:r,objectFit:"cover",bgcolor:"background.default"}}):C.jsx(k.Box,{sx:{height:r,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"grey.100",color:"text.secondary"},children:n}),C.jsxs(k.CardContent,{sx:{display:"flex",flexDirection:"column",flexGrow:1,p:3},children:[C.jsx(k.Typography,{variant:"h6",sx:{fontWeight:600,color:"text.primary",mb:1},children:o}),i&&C.jsx(k.Typography,{variant:"body2",color:"text.secondary",sx:{flexGrow:1,mb:2,display:"-webkit-box",WebkitLineClamp:a,WebkitBoxOrient:"vertical",overflow:"hidden"},children:i}),l&&C.jsx(k.Typography,{variant:"h5",sx:{fontWeight:700,color:"primary.main",mb:2},children:l}),d]})]}),V&&C.jsxs(k.Dialog,{open:I,onClose:()=>j(!1),fullWidth:!0,maxWidth:"sm",children:[C.jsxs(k.DialogTitle,{sx:{borderBottom:2,borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v,C.jsx(k.IconButton,{size:"small",onClick:()=>j(!1),"aria-label":"Close",children:C.jsx(rt,{fontSize:"small"})})]}),C.jsx(k.DialogContent,{sx:{padding:0},children:y({onSubmit:Z,onCancel:()=>j(!1)})})]}),Q&&C.jsxs(k.Dialog,{open:N,onClose:()=>!g&&w(!1),fullWidth:!0,maxWidth:"xs",children:[C.jsxs(k.DialogTitle,{sx:{borderBottom:2,borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[b,C.jsx(k.IconButton,{size:"small",onClick:()=>w(!1),disabled:g,"aria-label":"Close",children:C.jsx(rt,{fontSize:"small"})})]}),C.jsxs(k.DialogContent,{sx:{padding:0},children:[C.jsx(k.Box,{sx:{p:2},children:C.jsx(k.Typography,{children:c})}),C.jsxs(k.Stack,{direction:"row",spacing:2,sx:{justifyContent:"flex-end",borderTop:2,borderColor:"divider",p:2},children:[C.jsx(k.Button,{variant:"outlined",color:"inherit",onClick:()=>w(!1),disabled:g,children:"Cancel"}),C.jsx(k.Button,{onClick:ae,color:"error",variant:"contained",disabled:g,children:g?"Deleting…":b})]})]})]})]})}const ta=Ge(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function ra({items:e,renderItem:t,getItemKey:r,margin:n=8,spacing:o=2,gridSize:i={xs:12,sm:6,md:4},onAddNewItem:a,addNewItemForm:l,addNewItemLabel:d="Add New Item",loading:p=!1,skeletonCount:h=6,skeletonWidth:y=500,skeletonHeight:v=450}){const[u,b]=ue.useState(!1),c=!!(a&&l),x={xs:i.xs,sm:i.sm?Math.max(1,Math.floor(i.sm/2)):void 0,md:i.md?Math.max(1,Math.floor(i.md/2)):void 0,lg:i.lg?Math.max(1,Math.floor(i.lg/2)):void 0},I=async j=>{a&&(await a(j),b(!1))};return C.jsxs(k.Box,{sx:{margin:n},children:[C.jsxs(k.Grid,{container:!0,spacing:o,sx:{width:"100%"},children:[p?Array.from({length:h}).map((j,N)=>C.jsx(k.Grid,{size:i,children:C.jsx(k.Skeleton,{variant:"rounded",animation:"wave",height:v,sx:{width:"100%",maxWidth:y,mx:"auto",borderRadius:4}})},`skeleton-${N}`)):e.map(j=>C.jsx(k.Grid,{size:i,children:t(j)},r(j))),!p&&c&&C.jsx(k.Grid,{size:x,children:C.jsx(k.Box,{sx:{height:"100%",minHeight:160,display:"flex",alignItems:"center",justifyContent:"center"},children:C.jsx(k.Card,{variant:"outlined",sx:{width:"100%",height:"50%",minHeight:80,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(0, 0, 0, 0.04)",border:"3px dashed",borderColor:"grey.400",boxShadow:"none",transition:"all 0.2s ease",borderRadius:4,"&:hover":{bgcolor:"rgba(0, 0, 0, 0.08)",borderColor:"primary.main"}},children:C.jsxs(k.CardActionArea,{onClick:()=>b(!0),sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1,p:2},children:[C.jsx(ta,{fontSize:"large",color:"action"}),C.jsx(k.Typography,{color:"text.secondary",children:d})]})})})})]}),c&&C.jsxs(k.Dialog,{open:u,onClose:()=>b(!1),fullWidth:!0,maxWidth:"sm",children:[C.jsxs(k.DialogTitle,{sx:{borderBottom:2,borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d,C.jsx(k.IconButton,{size:"small",onClick:()=>b(!1),"aria-label":"Close",children:C.jsx(rt,{fontSize:"small"})})]}),C.jsx(k.DialogContent,{sx:{padding:0},children:l({onSubmit:I,onCancel:()=>b(!1)})})]})]})}const na=Ge(C.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),oa=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)});function ia({label:e="Image",value:t,onChange:r,error:n,helperText:o,maxSizeMB:i=5,disabled:a=!1}){const[l,d]=ue.useState(!1),[p,h]=ue.useState(null),y=ue.useRef(null),v=ue.useCallback(async g=>{if(h(null),!g.type.startsWith("image/")){h("Only image files are allowed.");return}if(g.size>i*1024*1024){h(`Image must be smaller than ${i}MB.`);return}try{const _=await oa(g);r({base64:_,fileName:g.name,fileType:g.type,fileSize:g.size})}catch{h("Failed to read the image file.")}},[i,r]),u=ue.useCallback(g=>{var V;if(g.preventDefault(),g.stopPropagation(),d(!1),a)return;const _=(V=g.dataTransfer.files)==null?void 0:V[0];_&&v(_)},[a,v]),b=g=>{g.preventDefault(),g.stopPropagation(),a||d(!0)},c=g=>{g.preventDefault(),g.stopPropagation(),d(!1)},x=g=>{var V;const _=(V=g.target.files)==null?void 0:V[0];_&&v(_),g.target.value=""},I=()=>{var g;a||(g=y.current)==null||g.click()},j=g=>{g.stopPropagation(),r(null),h(null)},N=n||!!p,w=p||o;return C.jsxs(k.Box,{children:[C.jsx(k.Typography,{variant:"subtitle2",sx:{mb:.5},children:e}),C.jsxs(k.Paper,{variant:"outlined",onClick:I,onDrop:u,onDragOver:b,onDragLeave:c,sx:{p:3,textAlign:"center",cursor:a?"not-allowed":"pointer",borderStyle:"dashed",borderWidth:2,borderColor:N?"error.main":l?"primary.main":"divider",bgcolor:l?"action.hover":"background.paper",opacity:a?.5:1,transition:"border-color 0.15s, background-color 0.15s","&:hover":a?void 0:{borderColor:"primary.main",bgcolor:"action.hover"}},children:[C.jsx("input",{ref:y,type:"file",accept:"image/*",hidden:!0,disabled:a,onChange:x}),t?C.jsxs(k.Stack,{direction:"row",spacing:2,sx:{alignItems:"center",justifyContent:"center"},children:[C.jsx(k.Avatar,{src:t.base64,variant:"rounded",sx:{width:56,height:56}}),C.jsxs(k.Box,{sx:{textAlign:"left",minWidth:0},children:[C.jsx(k.Typography,{variant:"body2",noWrap:!0,sx:{maxWidth:220},children:t.fileName}),C.jsxs(k.Typography,{variant:"caption",color:"text.secondary",children:[(t.fileSize/1024).toFixed(1)," KB"]})]}),C.jsx(k.IconButton,{size:"small",onClick:j,disabled:a,children:C.jsx(rt,{fontSize:"small"})})]}):C.jsxs(k.Stack,{spacing:1,sx:{alignItems:"center"},children:[C.jsx(na,{color:"action"}),C.jsx(k.Typography,{variant:"body2",color:"text.secondary",children:"Drag & drop an image here, or click to browse"})]})]}),w&&C.jsx(k.FormHelperText,{error:N,children:w})]})}const aa=ue.forwardRef(function(t,r){const{fullWidth:n=!0,label:o,...i}=t,a=h=>C.jsxs(k.Box,{sx:{width:n?"100%":"auto"},children:[o&&C.jsxs(k.Typography,{component:"label",variant:"body2",sx:{display:"block",mb:.5,fontWeight:500},children:[o,i.required&&C.jsx(k.Typography,{component:"span",sx:{color:"error.main",ml:.5},children:"*"})]}),h]});if(i.price){const{price:h,value:y,onChange:v,currencySymbol:u="$",slotProps:b,...c}=i,x=I=>{const j=I.target.value;if(j===""){v(void 0);return}const N=Number(j);Number.isNaN(N)||v(N)};return a(C.jsx(k.TextField,{...c,ref:r,fullWidth:n,type:"number",value:y??"",onChange:x,hiddenLabel:!0,slotProps:{...b,input:{...b==null?void 0:b.input,startAdornment:C.jsx(k.InputAdornment,{position:"start",children:u})},htmlInput:{min:0,step:"0.01",...b==null?void 0:b.htmlInput},formHelperText:{sx:{mx:0},...b==null?void 0:b.formHelperText}}}))}const{price:l,slotProps:d,...p}=i;return a(C.jsx(k.TextField,{...p,ref:r,fullWidth:n,hiddenLabel:!0,slotProps:{...d,formHelperText:{sx:{mx:0},...d==null?void 0:d.formHelperText}}}))});exports.ImageField=ia;exports.ItemGrid=ra;exports.MediaCard=ea;exports.TextField=aa;
97
+ //# sourceMappingURL=sosk-ui-lib.cjs.map