@fastspace/schema-form 0.0.7 → 0.0.8

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.
@@ -1,8 +1,8 @@
1
- (function(V,ct){typeof exports=="object"&&typeof module<"u"?ct(exports,require("valibot"),require("react/jsx-runtime"),require("react"),require("react-hook-form"),require("@emotion/react"),require("@emotion/styled"),require("@mui/material"),require("@mui/x-date-pickers"),require("@mui/x-date-pickers/AdapterDayjs"),require("@mui/x-date-pickers/DateTimePicker"),require("dayjs"),require("dayjs/locale/zh-cn"),require("@mui/x-date-pickers/DatePicker"),require("@mui/x-date-pickers/TimePicker")):typeof define=="function"&&define.amd?define(["exports","valibot","react/jsx-runtime","react","react-hook-form","@emotion/react","@emotion/styled","@mui/material","@mui/x-date-pickers","@mui/x-date-pickers/AdapterDayjs","@mui/x-date-pickers/DateTimePicker","dayjs","dayjs/locale/zh-cn","@mui/x-date-pickers/DatePicker","@mui/x-date-pickers/TimePicker"],ct):(V=typeof globalThis<"u"?globalThis:V||self,ct(V.SchemaFormLib={},V.Valibot,V.jsxRuntime,V.React,V.ReactHookForm,V.react,V.emStyled,V.MaterialUI,V.xDatePickers,V.AdapterDayjs,V.DateTimePicker,V.dayjs,null,V.DatePicker,V.TimePicker))})(this,(function(V,ct,v,W,Fe,Be,ti,L,or,ir,ri,an,Wc,ni,oi){"use strict";function ln(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=ln(ct),D=ln(W);function Tt(e){return!!(e==null||typeof e=="string"&&e.trim()===""||Array.isArray(e)&&e.length===0)}function ii(e,t){const r=t.split(".");let n=e;for(const o of r){if(n==null)return;n=n[o]}return n}function cn(e){return"field"in e}function si(e){return"and"in e||"or"in e||"not"in e}function ai(e,t){const r=ii(t,e.field);return"eq"in e?r===e.eq:"ne"in e?r!==e.ne:"gt"in e&&typeof r=="number"?r>e.gt:"gte"in e&&typeof r=="number"?r>=e.gte:"lt"in e&&typeof r=="number"?r<e.lt:"lte"in e&&typeof r=="number"?r<=e.lte:"in"in e&&Array.isArray(e.in)?e.in.includes(r):"notIn"in e&&Array.isArray(e.notIn)?!e.notIn.includes(r):"empty"in e?e.empty?Tt(r):!Tt(r):"notEmpty"in e?e.notEmpty?!Tt(r):Tt(r):!1}function li(e,t){return"and"in e?e.and.every(r=>Ne(r,t)):"or"in e?e.or.some(r=>Ne(r,t)):"not"in e?!Ne(e.not,t):!1}function Ne(e,t){return e?typeof e=="function"?e(t):cn(e)?ai(e,t):si(e)?li(e,t):!0:!0}function qe(e){const t=[];if(cn(e))t.push(e.field);else if("and"in e)for(const r of e.and)t.push(...qe(r));else if("or"in e)for(const r of e.or)t.push(...qe(r));else"not"in e&&t.push(...qe(e.not));return[...new Set(t)]}function ut(e,t,r=!1,n=!1){let o=!e.hidden;o&&e.visibleWhen&&(o=Ne(e.visibleWhen,t));let i=e.disabled??!1;!i&&e.disabledWhen&&(i=Ne(e.disabledWhen,t)),r&&(i=!0);let a=e.rules?.some(u=>u.type==="required")??!1;!a&&e.requiredWhen&&(a=Ne(e.requiredWhen,t));const l=e.readonly??n;return{visible:o,disabled:i,required:a,readonly:l}}function ci(e,t,r=!1,n=!1){const o=new Map;for(const i of e.input.fields){const a=ut(i,t,r,n);o.set(i.name,a)}return o}function Ze(e,t){if(e&&typeof e!="function"){if("field"in e){t.add(e.field);return}"and"in e&&Array.isArray(e.and)&&e.and.forEach(r=>Ze(r,t)),"or"in e&&Array.isArray(e.or)&&e.or.forEach(r=>Ze(r,t)),"not"in e&&Ze(e.not,t)}}function un(e){const t=new Set;for(const r of e.allFields){if(r.dependencies)for(const n of r.dependencies)t.add(n);if(Ze(r.visibleWhen,t),Ze(r.disabledWhen,t),Ze(r.requiredWhen,t),r.compute?.dependencies)for(const n of r.compute.dependencies)t.add(n)}return Array.from(t)}function ui(e){const t=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g,r=e.match(t)??[],n=new Set(["true","false","null","undefined","Math","Number","String","Boolean","Array","Object","if","else","return","const","let","var"]);return r.filter(o=>!n.has(o))}function dn(e){const t=new Map,r=new Map,n={},o=[],i=a=>{for(const l of a){const u=l.name;t.set(u,l),o.push(l),l.defaultValue!==void 0&&(n[u]=l.defaultValue),l.columns&&i(l.columns)}};i(e.fields);for(const a of o){const l=a.name,u=new Set;if(a.dependencies)for(const f of a.dependencies)u.add(f);if(a.visibleWhen)for(const f of qe(a.visibleWhen))u.add(f);if(a.disabledWhen)for(const f of qe(a.disabledWhen))u.add(f);if(a.requiredWhen)for(const f of qe(a.requiredWhen))u.add(f);if(a.compute)if(a.compute.dependencies)for(const f of a.compute.dependencies)u.add(f);else for(const f of ui(a.compute.expr))u.add(f);for(const f of u)r.has(f)||r.set(f,new Set),r.get(f)?.add(l)}return{input:e,fieldMap:t,dependencyGraph:r,defaultValues:n,allFields:o}}function di(e,t){const r=new Set,n=[e];for(;n.length>0;){const o=n.shift();if(!o)continue;const i=t.get(o);if(i)for(const a of i)r.has(a)||(r.add(a),n.push(a))}return r}function fi(e,t){return{...e.defaultValues,...t}}function pi(e,t){return e.rules?.some(n=>n.type==="required")?!0:e.requiredWhen?Ne(e.requiredWhen,t):!1}function mi(e){const t=e.rules?.find(n=>n.type==="required"),r=e.ui?.label??String(e.name);return t?.message??`${r}不能为空`}function sr(e,t){const r=e.ui?.label??String(e.name),n=e.component,o=e.rules??[],i=pi(e,t),a=mi(e),l=e.ui?.props?.multiple===!0;if((n==="Autocomplete"||n==="Select")&&l){const h=[];i&&h.push(P.check(g=>Array.isArray(g)&&g.length>0&&g!==void 0&&g!==null,a));const d=P.union([P.string(),P.number(),P.boolean(),P.undefined_(),P.null_(),P.array(P.unknown())]);return h.length>0?P.pipe(d,...h):d}if(["Radio","Select","Autocomplete"].includes(n)){const h=P.union([P.string(),P.number(),P.boolean(),P.undefined_(),P.null_()]);return i?P.pipe(h,P.check(d=>d!=null&&d!=="",a)):h}if(["Text","Password","Textarea","Date","Time","DateTime"].includes(n)){const h=P.union([P.string(),P.undefined_(),P.null_()]),d=[];i&&d.push(P.check(g=>g!=null&&g!=="",a));for(const g of o)switch(g.type){case"minLength":d.push(P.check(x=>x==null||x===""||String(x).length>=g.value,g.message??`${r}至少${g.value}个字符`));break;case"maxLength":d.push(P.check(x=>x==null||x===""||String(x).length<=g.value,g.message??`${r}最多${g.value}个字符`));break;case"pattern":{const x=typeof g.value=="string"?new RegExp(g.value):g.value;d.push(P.check(A=>A==null||A===""||x.test(String(A)),g.message??`${r}格式不正确`));break}case"email":d.push(P.check(x=>x==null||x===""||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(x)),g.message??`${r}必须是有效的邮箱`));break;case"url":d.push(P.check(x=>{if(x==null||x==="")return!0;try{return new URL(String(x)),!0}catch{return!1}},g.message??`${r}必须是有效的URL`));break;case"custom":d.push(P.check(x=>g.validate(x,t)===!0,x=>{const A=g.validate(x.input,t);return typeof A=="string"?A:"校验失败"}));break}return d.length>0?P.pipe(h,...d):h}if(["Number","Slider","Rating"].includes(n)){const h=P.union([P.number(),P.undefined_(),P.null_(),P.pipe(P.string(),P.transform(Number),P.number())]),d=[];i&&d.push(P.check(g=>g!=null&&!Number.isNaN(g),a));for(const g of o)switch(g.type){case"min":d.push(P.check(x=>x==null||Number(x)>=g.value,g.message??`${r}不能小于${g.value}`));break;case"max":d.push(P.check(x=>x==null||Number(x)<=g.value,g.message??`${r}不能大于${g.value}`));break;case"custom":d.push(P.check(x=>g.validate(x,t)===!0,x=>{const A=g.validate(x.input,t);return typeof A=="string"?A:"校验失败"}));break}return d.length>0?P.pipe(h,...d):h}if(["Checkbox","Switch"].includes(n)){const h=P.union([P.boolean(),P.undefined_(),P.null_()]);return i?P.pipe(h,P.check(d=>d===!0,a)):h}if(n==="FormList"){const h=e.columns??[],d=e.minItems??0,g=e.maxItems??1/0,x={};for(const C of h)if(C.component==="Group"&&C.columns)for(const E of C.columns)x[E.name]=sr(E,t);else C.component!=="Group"&&(x[C.name]=sr(C,t));const A=P.object(x),M=[];d>0&&M.push(P.check(C=>Array.isArray(C)&&C.length>=d,`至少需要${d}条数据`)),g<1/0&&M.push(P.check(C=>Array.isArray(C)&&C.length<=g,`最多允许${g}条数据`));const $=P.array(A);return M.length>0?P.pipe($,...M):$}if(n==="Upload"){const h=o.find(g=>g.type==="array"),d=h?.type==="array"?h.minItems??(i?1:0):i?1:0;return d>0?P.pipe(P.union([P.array(P.unknown()),P.undefined_(),P.null_()]),P.check(g=>Array.isArray(g)&&g.length>=d,h?.message??a)):P.union([P.array(P.unknown()),P.undefined_(),P.null_()])}const b=o.filter(h=>h.type==="custom");return b.length>0?P.pipe(P.unknown(),...b.map(h=>h.type==="custom"?P.check(d=>h.validate(d,t)===!0,d=>{const g=h.validate(d.input,t);return typeof g=="string"?g:"校验失败"}):P.check(()=>!0,""))):i?P.pipe(P.unknown(),P.check(h=>h!=null&&h!=="",a)):P.optional(P.unknown())}function fn(e,t){const r={};for(const n of e.input.fields){if(n.hidden||n.component==="Hidden"){r[n.name]=P.optional(P.unknown());continue}if(n.component!=="Group"){if(n.visibleWhen&&!Ne(n.visibleWhen,t)){r[n.name]=P.optional(P.unknown());continue}r[n.name]=sr(n,t)}}return P.object(r)}function pn(e){return async(t,r,n)=>{const o=fn(e,t),i=P.safeParse(o,t);if(i.success)return{values:i.output,errors:{}};const a={};for(const l of i.issues){const u=Array.isArray(l.path)?l.path.map(f=>f.key??"").filter(f=>f!=="").join("."):"";u&&!a[u]&&(a[u]={type:"validation",message:l.message})}return{values:{},errors:a}}}function mn(e){const t=e.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],r=new Set(["true","false","null","undefined","NaN","Infinity","Math","Number","String","Boolean","Array","Object","if","else","return","function"]);return Array.from(new Set(t.filter(n=>!r.has(n))))}function ar(e){return e==null?!1:typeof e=="number"?!Number.isNaN(e):typeof e=="string"?e.trim()!=="":!0}function hn(e,t,r,n,o="round"){try{for(const u of r)if(!ar(t[u]))return;const i={};for(const u of r){const f=t[u];typeof f=="string"&&!Number.isNaN(Number(f))?i[u]=Number(f):i[u]=f??0}let l=new Function(...Object.keys(i),`"use strict"; return (${e});`)(...Object.values(i));if(typeof l=="number"){if(!Number.isFinite(l))return;if(n!==void 0&&n>=0){const u=Math.pow(10,n);switch(o){case"ceil":l=Math.ceil(l*u)/u;break;case"floor":l=Math.floor(l*u)/u;break;case"round":default:l=Number(l.toFixed(n));break}}}return l}catch{return}}function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt={exports:{}},wt={exports:{}},oe={};var gn;function gi(){if(gn)return oe;gn=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,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function M(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case t:switch(C=C.type,C){case u:case f:case n:case i:case o:case y:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case h:case b:case a:return C;default:return E}}case r:return E}}}function $(C){return M(C)===f}return oe.AsyncMode=u,oe.ConcurrentMode=f,oe.ContextConsumer=l,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=m,oe.Fragment=n,oe.Lazy=h,oe.Memo=b,oe.Portal=r,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=y,oe.isAsyncMode=function(C){return $(C)||M(C)===u},oe.isConcurrentMode=$,oe.isContextConsumer=function(C){return M(C)===l},oe.isContextProvider=function(C){return M(C)===a},oe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},oe.isForwardRef=function(C){return M(C)===m},oe.isFragment=function(C){return M(C)===n},oe.isLazy=function(C){return M(C)===h},oe.isMemo=function(C){return M(C)===b},oe.isPortal=function(C){return M(C)===r},oe.isProfiler=function(C){return M(C)===i},oe.isStrictMode=function(C){return M(C)===o},oe.isSuspense=function(C){return M(C)===y},oe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===f||C===i||C===o||C===y||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===b||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===g||C.$$typeof===x||C.$$typeof===A||C.$$typeof===d)},oe.typeOf=M,oe}var ie={};var yn;function yi(){return yn||(yn=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,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function M(N){return typeof N=="string"||typeof N=="function"||N===n||N===f||N===i||N===o||N===y||N===p||typeof N=="object"&&N!==null&&(N.$$typeof===h||N.$$typeof===b||N.$$typeof===a||N.$$typeof===l||N.$$typeof===m||N.$$typeof===g||N.$$typeof===x||N.$$typeof===A||N.$$typeof===d)}function $(N){if(typeof N=="object"&&N!==null){var we=N.$$typeof;switch(we){case t:var Le=N.type;switch(Le){case u:case f:case n:case i:case o:case y:return Le;default:var rr=Le&&Le.$$typeof;switch(rr){case l:case m:case h:case b:case a:return rr;default:return we}}case r:return we}}}var C=u,E=f,j=l,H=a,z=t,q=m,I=n,c=h,w=b,T=r,R=i,_=o,B=y,U=!1;function K(N){return U||(U=!0),O(N)||$(N)===u}function O(N){return $(N)===f}function k(N){return $(N)===l}function F(N){return $(N)===a}function G(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Y(N){return $(N)===m}function Z(N){return $(N)===n}function Q(N){return $(N)===h}function J(N){return $(N)===b}function ee(N){return $(N)===r}function ne(N){return $(N)===i}function te(N){return $(N)===o}function ge(N){return $(N)===y}ie.AsyncMode=C,ie.ConcurrentMode=E,ie.ContextConsumer=j,ie.ContextProvider=H,ie.Element=z,ie.ForwardRef=q,ie.Fragment=I,ie.Lazy=c,ie.Memo=w,ie.Portal=T,ie.Profiler=R,ie.StrictMode=_,ie.Suspense=B,ie.isAsyncMode=K,ie.isConcurrentMode=O,ie.isContextConsumer=k,ie.isContextProvider=F,ie.isElement=G,ie.isForwardRef=Y,ie.isFragment=Z,ie.isLazy=Q,ie.isMemo=J,ie.isPortal=ee,ie.isProfiler=ne,ie.isStrictMode=te,ie.isSuspense=ge,ie.isValidElementType=M,ie.typeOf=$})()),ie}var bn;function vn(){return bn||(bn=1,process.env.NODE_ENV==="production"?wt.exports=gi():wt.exports=yi()),wt.exports}var lr,Sn;function bi(){if(Sn)return lr;Sn=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 u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lr=o()?Object.assign:function(i,a){for(var l,u=n(i),f,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var y in l)t.call(l,y)&&(u[y]=l[y]);if(e){f=e(l);for(var p=0;p<f.length;p++)r.call(l,f[p])&&(u[f[p]]=l[f[p]])}}return u},lr}var cr,Cn;function ur(){if(Cn)return cr;Cn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cr=e,cr}var dr,Tn;function xn(){return Tn||(Tn=1,dr=Function.call.bind(Object.prototype.hasOwnProperty)),dr}var fr,wn;function vi(){if(wn)return fr;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ur(),r={},n=xn();e=function(i){var a="Warning: "+i;try{throw new Error(a)}catch{}}}function o(i,a,l,u,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var y;try{if(typeof i[m]!="function"){var p=Error((u||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}y=i[m](a,m,u,l,null,t)}catch(h){y=h}if(y&&!(y instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` 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 b=f?f():"";e("Failed "+l+" type: "+y.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},fr=o,fr}var pr,En;function Si(){if(En)return pr;En=1;var e=vn(),t=bi(),r=ur(),n=xn(),o=vi(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;try{throw new Error(u)}catch{}});function a(){return null}return pr=function(l,u){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function y(O){var k=O&&(f&&O[f]||O[m]);if(typeof k=="function")return k}var p="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:A(),arrayOf:M,element:$(),elementType:C(),instanceOf:E,node:q(),objectOf:H,oneOf:j,oneOfType:z,shape:c,exact:w};function h(O,k){return O===k?O!==0||1/O===1/k:O!==O&&k!==k}function d(O,k){this.message=O,this.data=k&&typeof k=="object"?k:{},this.stack=""}d.prototype=Error.prototype;function g(O){if(process.env.NODE_ENV!=="production")var k={},F=0;function G(Z,Q,J,ee,ne,te,ge){if(ee=ee||p,te=te||J,ge!==r){if(u){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ee+":"+J;!k[we]&&F<3&&(i("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. 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."),k[we]=!0,F++)}}return Q[J]==null?Z?Q[J]===null?new d("The "+ne+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new d("The "+ne+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:O(Q,J,ee,ne,te)}var Y=G.bind(null,!1);return Y.isRequired=G.bind(null,!0),Y}function x(O){function k(F,G,Y,Z,Q,J){var ee=F[G],ne=_(ee);if(ne!==O){var te=B(ee);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+Y+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return g(k)}function A(){return g(a)}function M(O){function k(F,G,Y,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var J=F[G];if(!Array.isArray(J)){var ee=_(J);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var te=O(J,ne,Y,Z,Q+"["+ne+"]",r);if(te instanceof Error)return te}return null}return g(k)}function $(){function O(k,F,G,Y,Z){var Q=k[F];if(!l(Q)){var J=_(Q);return new d("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return g(O)}function C(){function O(k,F,G,Y,Z){var Q=k[F];if(!e.isValidElementType(Q)){var J=_(Q);return new d("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return g(O)}function E(O){function k(F,G,Y,Z,Q){if(!(F[G]instanceof O)){var J=O.name||p,ee=K(F[G]);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected ")+("instance of `"+J+"`."))}return null}return g(k)}function j(O){if(!Array.isArray(O))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 k(F,G,Y,Z,Q){for(var J=F[G],ee=0;ee<O.length;ee++)if(h(J,O[ee]))return null;var ne=JSON.stringify(O,function(ge,N){var we=B(N);return we==="symbol"?String(N):N});return new d("Invalid "+Z+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+Y+"`, expected one of "+ne+"."))}return g(k)}function H(O){function k(F,G,Y,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var J=F[G],ee=_(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an object."));for(var ne in J)if(n(J,ne)){var te=O(J,ne,Y,Z,Q+"."+ne,r);if(te instanceof Error)return te}return null}return g(k)}function z(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<O.length;k++){var F=O[k];if(typeof F!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(F)+" at index "+k+"."),a}function G(Y,Z,Q,J,ee){for(var ne=[],te=0;te<O.length;te++){var ge=O[te],N=ge(Y,Z,Q,J,ee,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&ne.push(N.data.expectedType)}var we=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new d("Invalid "+J+" `"+ee+"` supplied to "+("`"+Q+"`"+we+"."))}return g(G)}function q(){function O(k,F,G,Y,Z){return T(k[F])?null:new d("Invalid "+Y+" `"+Z+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return g(O)}function I(O,k,F,G,Y){return new d((O||"React class")+": "+k+" type `"+F+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function c(O){function k(F,G,Y,Z,Q){var J=F[G],ee=_(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ne in O){var te=O[ne];if(typeof te!="function")return I(Y,Z,Q,ne,B(te));var ge=te(J,ne,Y,Z,Q+"."+ne,r);if(ge)return ge}return null}return g(k)}function w(O){function k(F,G,Y,Z,Q){var J=F[G],ee=_(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));var ne=t({},F[G],O);for(var te in ne){var ge=O[te];if(n(O,te)&&typeof ge!="function")return I(Y,Z,Q,te,B(ge));if(!ge)return new d("Invalid "+Z+" `"+Q+"` key `"+te+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(F[G],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var N=ge(J,te,Y,Z,Q+"."+te,r);if(N)return N}return null}return g(k)}function T(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(T);if(O===null||l(O))return!0;var k=y(O);if(k){var F=k.call(O),G;if(k!==O.entries){for(;!(G=F.next()).done;)if(!T(G.value))return!1}else for(;!(G=F.next()).done;){var Y=G.value;if(Y&&!T(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function _(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":R(k,O)?"symbol":k}function B(O){if(typeof O>"u"||O===null)return""+O;var k=_(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function U(O){var k=B(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function K(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},pr}var mr,On;function Ci(){if(On)return mr;On=1;var e=ur();function t(){}function r(){}return r.resetWarningCache=t,mr=function(){function n(a,l,u,f,m,y){if(y!==e){var p=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 p.name="Invariant Violation",p}}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},mr}var $n;function Ti(){if($n)return xt.exports;if($n=1,process.env.NODE_ENV!=="production"){var e=vn(),t=!0;xt.exports=Si()(e.isElement,t)}else xt.exports=Ci()();return xt.exports}var xi=Ti();const s=hi(xi);function kn(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=kn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kn(e))&&(n&&(n+=" "),n+=t);return n}function wi(e,t){return D.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const An=e=>e,Pn=(()=>{let e=An;return{configure(t){e=t},generate(t){return e(t)},reset(){e=An}}})(),Ei={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 ve(e,t,r="Mui"){const n=Ei[t];return n?`${r}-${n}`:`${Pn.generate(e)}-${t}`}function Pe(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",l=!0;for(let u=0;u<i.length;u+=1){const f=i[u];f&&(a+=(l===!0?"":" ")+t(f),l=!1,r&&r[f]&&(a+=" "+r[f]))}n[o]=a}return n}function Oi(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 $i={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 ki(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ai=/[A-Z]|^ms/g,Pi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,In=function(t){return t.charCodeAt(1)===45},Mn=function(t){return t!=null&&typeof t!="boolean"},hr=ki(function(e){return In(e)?e:e.replace(Ai,"-$&").toLowerCase()}),_n=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Pi,function(n,o,i){return je={name:o,styles:i,next:je},o})}return $i[t]!==1&&!In(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 je={name:o.name,styles:o.styles,next:je},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)je={name:a.name,styles:a.styles,next:je},a=a.next;var l=i.styles+";";return l}return Ii(e,t,r)}}var u=r;return u}function Ii(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;Mn(l)&&(n+=hr(i)+":"+_n(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Mn(a[u])&&(n+=hr(i)+":"+_n(i,a[u])+";");else{var f=Et(e,t,a);switch(i){case"animation":case"animationName":{n+=hr(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var Nn=/label:\s*([^\s;{]+)\s*(;|$)/g,je;function Mi(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="";je=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 u=i;o+=u[l]}Nn.lastIndex=0;for(var f="",m;(m=Nn.exec(o))!==null;)f+="-"+m[1];var y=Oi(o)+f;return{name:y,styles:o,next:je}}function Rn(e,t){const r=ti(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0||n.some(i=>i===void 0),r(...n)}:r}function _i(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Dn=[];function Ge(e){return Dn[0]=e,Mi(Dn)}var Ot={exports:{}},le={};var Bn;function Ni(){if(Bn)return le;Bn=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"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function h(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case o:case n:case u:case f:case p:return d;default:switch(d=d&&d.$$typeof,d){case a:case l:case y:case m:return d;case i:return d;default:return g}}case t:return g}}}return le.ContextConsumer=i,le.ContextProvider=a,le.Element=e,le.ForwardRef=l,le.Fragment=r,le.Lazy=y,le.Memo=m,le.Portal=t,le.Profiler=o,le.StrictMode=n,le.Suspense=u,le.SuspenseList=f,le.isContextConsumer=function(d){return h(d)===i},le.isContextProvider=function(d){return h(d)===a},le.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},le.isForwardRef=function(d){return h(d)===l},le.isFragment=function(d){return h(d)===r},le.isLazy=function(d){return h(d)===y},le.isMemo=function(d){return h(d)===m},le.isPortal=function(d){return h(d)===t},le.isProfiler=function(d){return h(d)===o},le.isStrictMode=function(d){return h(d)===n},le.isSuspense=function(d){return h(d)===u},le.isSuspenseList=function(d){return h(d)===f},le.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===u||d===f||typeof d=="object"&&d!==null&&(d.$$typeof===y||d.$$typeof===m||d.$$typeof===a||d.$$typeof===i||d.$$typeof===l||d.$$typeof===b||d.getModuleId!==void 0)},le.typeOf=h,le}var ce={};var jn;function Ri(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case t:switch(d=d.type,d){case n:case i:case o:case f:case m:case b:return d;default:switch(d=d&&d.$$typeof,d){case l:case u:case p:case y:return d;case a:return d;default:return g}}case r:return g}}}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"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ce.ContextConsumer=a,ce.ContextProvider=l,ce.Element=t,ce.ForwardRef=u,ce.Fragment=n,ce.Lazy=p,ce.Memo=y,ce.Portal=r,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=f,ce.SuspenseList=m,ce.isContextConsumer=function(d){return e(d)===a},ce.isContextProvider=function(d){return e(d)===l},ce.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},ce.isForwardRef=function(d){return e(d)===u},ce.isFragment=function(d){return e(d)===n},ce.isLazy=function(d){return e(d)===p},ce.isMemo=function(d){return e(d)===y},ce.isPortal=function(d){return e(d)===r},ce.isProfiler=function(d){return e(d)===i},ce.isStrictMode=function(d){return e(d)===o},ce.isSuspense=function(d){return e(d)===f},ce.isSuspenseList=function(d){return e(d)===m},ce.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===i||d===o||d===f||d===m||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===y||d.$$typeof===l||d.$$typeof===a||d.$$typeof===u||d.$$typeof===h||d.getModuleId!==void 0)},ce.typeOf=e})()),ce}var Vn;function Di(){return Vn||(Vn=1,process.env.NODE_ENV==="production"?Ot.exports=Ni():Ot.exports=Ri()),Ot.exports}var $t=Di();function Ie(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 zn(e){if(D.isValidElement(e)||$t.isValidElementType(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zn(e[r])}),t}function ye(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||$t.isValidElementType(t[o])?n[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?n[o]=ye(e[o],t[o],r):r.clone?n[o]=Ie(t[o])?zn(t[o]):t[o]:n[o]=t[o]}),n}function Ve(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 re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ve(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Wn(e,t=""){return e.displayName||e.name||t}function Ln(e,t,r){const n=Wn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Bi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $t.ForwardRef:return Ln(e,e.render,"ForwardRef");case $t.Memo:return Ln(e,e.type,"memo");default:return}}}const ji=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 Vi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=ji(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function f(p,b){const h=a.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:b)-n/100}${r})`}function m(p){return a.indexOf(p)+1<a.length?f(p,a[a.indexOf(p)+1]):l(p)}function y(p){const b=a.indexOf(p);return b===0?l(a[1]):b===a.length-1?u(a[b]):f(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:f,only:m,not:y,unit:r,...o}}function Fn(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function zi(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Wi(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ve(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function Li(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 u=t(e.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Fi={borderRadius:4},ze=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function dt(e,t){return t?ye(e,t,{clone:!1}):e}const kt={xs:0,sm:600,md:900,lg:1200,xl:1536},qn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kt[e]}px)`},qi={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:kt[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ee(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||qn;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||qn;return Object.keys(t).reduce((a,l)=>{if(zi(i.keys,l)){const u=Wi(n.containerQueries?n:qi,l);u&&(a[u]=r(t[l],l))}else if(Object.keys(i.values||kt).includes(l)){const u=i.up(l);a[u]=r(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return r(t)}function Gn(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function gr(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Gi(e,...t){const r=Gn(e),n=[r,...t].reduce((o,i)=>ye(o,i),{});return gr(Object.keys(r),n)}function Ui(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function yr({values:e,breakpoints:t,base:r}){const n=r||Ui(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,l,u)=>(Array.isArray(e)?(a[l]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function At(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Pt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=At(e,r)||n,t&&(o=t(o,n,e)),o}function me(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],u=a.theme,f=At(u,n)||{};return Ee(a,l,y=>{let p=Pt(f,o,y);return y===p&&typeof y=="string"&&(p=Pt(f,o,`${t}${y==="default"?"":re(y)}`,y)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ze}:{},i.filterProps=[t],i}function Yi(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hi={m:"margin",p:"padding"},Ki={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Un={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xi=Yi(e=>{if(e.length>2)if(Un[e])e=Un[e];else return[e];const[t,r]=e.split(""),n=Hi[t],o=Ki[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),It=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Qi=[...It,...Mt];function ft(e,t,r,n){const o=At(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV,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;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,()=>{})}function _t(e){return ft(e,"spacing",8,"spacing")}function Ue(e,t){return typeof t=="string"||t==null?t:e(t)}function Ji(e,t){return r=>e.reduce((n,o)=>(n[o]=Ue(t,r),n),{})}function Zi(e,t,r,n){if(!t.includes(r))return null;const o=Xi(r),i=Ji(o,n),a=e[r];return Ee(e,a,i)}function Yn(e,t){const r=_t(e.theme);return Object.keys(e).map(n=>Zi(e,t,n,r)).reduce(dt,{})}function fe(e){return Yn(e,It)}fe.propTypes=process.env.NODE_ENV!=="production"?It.reduce((e,t)=>(e[t]=ze,e),{}):{},fe.filterProps=It;function pe(e){return Yn(e,Mt)}pe.propTypes=process.env.NODE_ENV!=="production"?Mt.reduce((e,t)=>(e[t]=ze,e),{}):{},pe.filterProps=Mt,process.env.NODE_ENV!=="production"&&Qi.reduce((e,t)=>(e[t]=ze,e),{});function Hn(e=8,t=_t({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&n.length<=4,(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 Nt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?dt(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Se(e){return typeof e!="number"?e:`${e}px solid`}function Ce(e,t){return me({prop:e,themeKey:"borders",transform:t})}const es=Ce("border",Se),ts=Ce("borderTop",Se),rs=Ce("borderRight",Se),ns=Ce("borderBottom",Se),os=Ce("borderLeft",Se),is=Ce("borderColor"),ss=Ce("borderTopColor"),as=Ce("borderRightColor"),ls=Ce("borderBottomColor"),cs=Ce("borderLeftColor"),us=Ce("outline",Se),ds=Ce("outlineColor"),Rt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ft(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ue(t,n)});return Ee(e,e.borderRadius,r)}return null};Rt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ze}:{},Rt.filterProps=["borderRadius"],Nt(es,ts,rs,ns,os,is,ss,as,ls,cs,Rt,us,ds);const Dt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ft(e.theme,"spacing",8,"gap"),r=n=>({gap:Ue(t,n)});return Ee(e,e.gap,r)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{gap:ze}:{},Dt.filterProps=["gap"];const Bt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ft(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ue(t,n)});return Ee(e,e.columnGap,r)}return null};Bt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ze}:{},Bt.filterProps=["columnGap"];const jt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ft(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ue(t,n)});return Ee(e,e.rowGap,r)}return null};jt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ze}:{},jt.filterProps=["rowGap"];const fs=me({prop:"gridColumn"}),ps=me({prop:"gridRow"}),ms=me({prop:"gridAutoFlow"}),hs=me({prop:"gridAutoColumns"}),gs=me({prop:"gridAutoRows"}),ys=me({prop:"gridTemplateColumns"}),bs=me({prop:"gridTemplateRows"}),vs=me({prop:"gridTemplateAreas"}),Ss=me({prop:"gridArea"});Nt(Dt,Bt,jt,fs,ps,ms,hs,gs,ys,bs,vs,Ss);function et(e,t){return t==="grey"?t:e}const Cs=me({prop:"color",themeKey:"palette",transform:et}),Ts=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:et}),xs=me({prop:"backgroundColor",themeKey:"palette",transform:et});Nt(Cs,Ts,xs);function be(e){return e<=1&&e!==0?`${e*100}%`:e}const ws=me({prop:"width",transform:be}),br=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||kt[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:be(r)}};return Ee(e,e.maxWidth,t)}return null};br.filterProps=["maxWidth"];const Es=me({prop:"minWidth",transform:be}),Os=me({prop:"height",transform:be}),$s=me({prop:"maxHeight",transform:be}),ks=me({prop:"minHeight",transform:be});me({prop:"size",cssProperty:"width",transform:be}),me({prop:"size",cssProperty:"height",transform:be});const As=me({prop:"boxSizing"});Nt(ws,br,Es,Os,$s,ks,As);const pt={border:{themeKey:"borders",transform:Se},borderTop:{themeKey:"borders",transform:Se},borderRight:{themeKey:"borders",transform:Se},borderBottom:{themeKey:"borders",transform:Se},borderLeft:{themeKey:"borders",transform:Se},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Se},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rt},color:{themeKey:"palette",transform:et},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:et},backgroundColor:{themeKey:"palette",transform:et},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:fe},mt:{style:fe},mr:{style:fe},mb:{style:fe},ml:{style:fe},mx:{style:fe},my:{style:fe},margin:{style:fe},marginTop:{style:fe},marginRight:{style:fe},marginBottom:{style:fe},marginLeft:{style:fe},marginX:{style:fe},marginY:{style:fe},marginInline:{style:fe},marginInlineStart:{style:fe},marginInlineEnd:{style:fe},marginBlock:{style:fe},marginBlockStart:{style:fe},marginBlockEnd:{style:fe},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:Dt},rowGap:{style:jt},columnGap:{style:Bt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:be},maxWidth:{style:br},minWidth:{transform:be},height:{transform:be},maxHeight:{transform:be},minHeight:{transform:be},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Is(e,t){return typeof e=="function"?e(t):e}function Ms(){function e(r,n,o,i){const a={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:m,style:y}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const p=At(o,f)||{};return y?y(a):Ee(a,n,h=>{let d=Pt(p,m,h);return h===d&&typeof h=="string"&&(d=Pt(p,m,`${r}${h==="default"?"":re(h)}`,h)),u===!1?d:{[u]:d}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??pt;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const m=Gn(o.breakpoints),y=Object.keys(m);let p=m;return Object.keys(f).forEach(b=>{const h=Is(f[b],o);if(h!=null)if(typeof h=="object")if(a[b])p=dt(p,e(b,h,o,a));else{const d=Ee({theme:o},h,g=>({[b]:g}));Ps(d,h)?p[b]=t({sx:h,theme:o,nested:!0}):p=dt(p,d)}else p=dt(p,e(b,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Fn(o,gr(y,p))}:Fn(o,gr(y,p))}return Array.isArray(n)?n.map(l):l(n)}return t}const Ye=Ms();Ye.filterProps=["sx"];function _s(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function mt(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,l=Vi(r),u=Hn(o);let f=ye({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...Fi,...i}},a);return f=Li(f),f.applyStyles=_s,f=t.reduce((m,y)=>ye(m,y),f),f.unstable_sxConfig={...pt,...a?.unstable_sxConfig},f.unstable_sx=function(y){return Ye({sx:y,theme:this})},f}const Ns=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??pt;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function Vt(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Ns(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Ie(l)?{...n,...l}:n}:i={...n,...t},{...o,sx:i}}function Kn(e){const{variants:t,...r}=e,n={variants:t,style:Ge(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ge(o.style))}),n}const Rs=mt();function vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function He(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ds(e){return e?(t,r)=>r[e]:null}function Bs(e,t,r){e.theme=zs(e.theme)?r:e.theme[t]||e.theme}function zt(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>zt(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?He(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?He(Ge(a),r):a}return Xn(e,n.variants,[o],r)}return n?.isProcessed?r?He(Ge(n.style),r):n.style:r?He(Ge(n),r):n}function Xn(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?He(Ge(a.style(o)),n):a.style(o))):r.push(n?He(Ge(a.style),n):a.style)}return r}function Qn(e={}){const{themeId:t,defaultTheme:r=Rs,rootShouldForwardProp:n=vr,slotShouldForwardProp:o=vr}=e;function i(l){Bs(l,t,r)}return(l,u={})=>{_i(l,E=>E.filter(j=>j!==Ye));const{name:f,slot:m,skipVariantsResolver:y,skipSx:p,overridesResolver:b=Ds(Jn(m)),...h}=u,d=f&&f.startsWith("Mui")||m?"components":"custom",g=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,x=p||!1;let A=vr;m==="Root"||m==="root"?A=n:m?A=o:Ws(l)&&(A=void 0);const M=Rn(l,{shouldForwardProp:A,label:Vs(f,m),...h}),$=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(H){return zt(H,E,H.theme.modularCssLayers?d:void 0)};if(Ie(E)){const j=Kn(E);return function(z){return j.variants?zt(z,j,z.theme.modularCssLayers?d:void 0):z.theme.modularCssLayers?He(j.style,d):j.style}}return E},C=(...E)=>{const j=[],H=E.map($),z=[];if(j.push(i),f&&b&&z.push(function(w){const R=w.theme.components?.[f]?.styleOverrides;if(!R)return null;const _={};for(const B in R)_[B]=zt(w,R[B],w.theme.modularCssLayers?"theme":void 0);return b(w,_)}),f&&!g&&z.push(function(w){const R=w.theme?.components?.[f]?.variants;return R?Xn(w,R,[],w.theme.modularCssLayers?"theme":void 0):null}),x||z.push(Ye),Array.isArray(H[0])){const c=H.shift(),w=new Array(j.length).fill(""),T=new Array(z.length).fill("");let R;R=[...w,...c,...T],R.raw=[...w,...c.raw,...T],j.unshift(R)}const q=[...j,...H,...z],I=M(...q);return l.muiName&&(I.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=js(f,m,l)),I};return M.withConfig&&(C.withConfig=M.withConfig),C}}function js(e,t,r){return e?`${e}${re(t||"")}`:`Styled(${Bi(r)})`}function Vs(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Jn(t||"Root")}`),r}function zs(e){for(const t in e)return!1;return!0}function Ws(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Zn=Qn();function ht(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 u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[i][f]=ht(a[f],l[f],r)}}}else i==="className"&&r&&t.className?n.className=de(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Ls(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:ht(t.components[r].defaultProps,n)}function Fs(e){return Object.keys(e).length===0}function qs(e=null){const t=D.useContext(Be.ThemeContext);return!t||Fs(t)?e:t}const Gs=mt();function Wt(e=Gs){return qs(e)}function eo({props:e,name:t,defaultTheme:r,themeId:n}){let o=Wt(r);return n&&(o=o[n]||o),Ls({theme:o,name:t,props:e})}const Us=(e,t)=>e.filter(r=>t.includes(r)),tt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{r((a,l)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,l):a[e.up(e.keys[i])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Us(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&r((l,u)=>{n===i?Object.assign(l,u):l[e.up(i)]=u},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,i)=>{Object.assign(o,i)},t)};function Lt(e){return`--Grid-${e}Spacing`}function Ft(e){return`--Grid-parent-${e}Spacing`}const to="--Grid-columns",rt="--Grid-parent-columns",Ys=({theme:e,ownerState:t})=>{const r={};return tt(e.breakpoints,t.size,(n,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${rt}) - (var(${rt}) - ${o}) * (var(${Ft("column")}) / var(${rt})))`}),n(r,i)}),r},Hs=({theme:e,ownerState:t})=>{const r={};return tt(e.breakpoints,t.offset,(n,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${rt}) + var(${Ft("column")}) * ${o} / var(${rt}))`}),n(r,i)}),r},Ks=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[to]:12};return tt(e.breakpoints,t.columns,(n,o)=>{const i=o??12;n(r,{[to]:i,"> *":{[rt]:i}})}),r},Xs=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.rowSpacing,(n,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);n(r,{[Lt("row")]:i,"> *":{[Ft("row")]:i}})}),r},Qs=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.columnSpacing,(n,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);n(r,{[Lt("column")]:i,"> *":{[Ft("column")]:i}})}),r},Js=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Zs=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Lt("row")}) var(${Lt("column")})`}}),ea=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},ta=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,i])=>{r(i)&&n.push(`spacing-${o}-${String(i)}`)}),n}return[]},ra=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Fc=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,ro=[];function na(e,t){const r=[];e.item!==void 0&&(delete e.item,r.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,r.push("zeroMinWidth")),t.keys.forEach(n=>{e[n]!==void 0&&(r.push(n),delete e[n])}),process.env.NODE_ENV!=="production"&&r.forEach(n=>{ro.includes(n)||ro.push(n)})}const oa=mt(),ia=Zn("div",{name:"MuiGrid",slot:"Root"});function sa(e){return eo({props:e,name:"MuiGrid",defaultTheme:oa})}function aa(e={}){const{createStyledComponent:t=ia,useThemeProps:r=sa,useTheme:n=Wt,componentName:o="MuiGrid"}=e,i=(f,m)=>{const{container:y,direction:p,spacing:b,wrap:h,size:d}=f,g={root:["root",y&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...ra(p),...ea(d),...y?ta(b,m.breakpoints.keys[0]):[]]};return Pe(g,x=>ve(o,x),{})};function a(f,m,y=()=>!0){const p={};return f===null||(Array.isArray(f)?f.forEach((b,h)=>{b!==null&&y(b)&&m.keys[h]&&(p[m.keys[h]]=b)}):typeof f=="object"?Object.keys(f).forEach(b=>{const h=f[b];h!=null&&y(h)&&(p[b]=h)}):p[m.keys[0]]=f),p}const l=t(Ks,Qs,Xs,Ys,Js,Zs,Hs),u=D.forwardRef(function(m,y){const p=n(),b=r(m),h=Vt(b);na(h,p.breakpoints);const{className:d,children:g,columns:x=12,container:A=!1,component:M="div",direction:$="row",wrap:C="wrap",size:E={},offset:j={},spacing:H=0,rowSpacing:z=H,columnSpacing:q=H,unstable_level:I=0,...c}=h,w=a(E,p.breakpoints,k=>k!==!1),T=a(j,p.breakpoints),R=m.columns??(I?void 0:x),_=m.spacing??(I?void 0:H),B=m.rowSpacing??m.spacing??(I?void 0:z),U=m.columnSpacing??m.spacing??(I?void 0:q),K={...h,level:I,columns:R,container:A,direction:$,wrap:C,spacing:_,rowSpacing:B,columnSpacing:U,size:w,offset:T},O=i(K,p);return v.jsx(l,{ref:y,as:M,ownerState:K,className:de(O.root,d),...c,children:D.Children.map(g,k=>D.isValidElement(k)&&wi(k,["Grid"])&&A&&k.props.container?D.cloneElement(k,{unstable_level:k.props?.unstable_level??I+1}):k)})});return process.env.NODE_ENV!=="production"&&(u.propTypes={children:s.node,className:s.string,columns:s.oneOfType([s.arrayOf(s.number),s.number,s.object]),columnSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),component:s.elementType,container:s.bool,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),offset:s.oneOfType([s.string,s.number,s.arrayOf(s.oneOfType([s.string,s.number])),s.object]),rowSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),size:s.oneOfType([s.string,s.bool,s.number,s.arrayOf(s.oneOfType([s.string,s.bool,s.number])),s.object]),spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),wrap:s.oneOf(["nowrap","wrap-reverse","wrap"])}),u.muiName="Grid",u}function Me(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ve(e,o,r)}),n}function la(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const r=t?{...t.propTypes}:null;return o=>(i,a,l,u,f,...m)=>{const y=f||a,p=r?.[y];if(p){const b=p(i,a,l,u,f,...m);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${y}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Sr="$$material";function ca(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Rn("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Ye);return D.forwardRef(function(u,f){const m=Wt(r),{className:y,component:p="div",...b}=Vt(u);return v.jsx(i,{as:p,ref:f,className:de(y,o?o(n):n),theme:t&&m[t]||m,...b})})}const ua=typeof window<"u"?D.useLayoutEffect:D.useEffect;function da(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Cr(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r),da(e,t,r)}function fa(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),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 We(e){if(e.type)return e;if(e.charAt(0)==="#")return We(fa(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.
1
+ (function(j,ct){typeof exports=="object"&&typeof module<"u"?ct(exports,require("valibot"),require("react/jsx-runtime"),require("react"),require("react-hook-form"),require("@emotion/react"),require("@emotion/styled"),require("@mui/material"),require("@mui/x-date-pickers"),require("@mui/x-date-pickers/AdapterDayjs"),require("@mui/x-date-pickers/DateTimePicker"),require("dayjs"),require("dayjs/locale/zh-cn"),require("@mui/x-date-pickers/DatePicker"),require("@mui/x-date-pickers/TimePicker")):typeof define=="function"&&define.amd?define(["exports","valibot","react/jsx-runtime","react","react-hook-form","@emotion/react","@emotion/styled","@mui/material","@mui/x-date-pickers","@mui/x-date-pickers/AdapterDayjs","@mui/x-date-pickers/DateTimePicker","dayjs","dayjs/locale/zh-cn","@mui/x-date-pickers/DatePicker","@mui/x-date-pickers/TimePicker"],ct):(j=typeof globalThis<"u"?globalThis:j||self,ct(j.SchemaFormLib={},j.Valibot,j.jsxRuntime,j.React,j.ReactHookForm,j.react,j.emStyled,j.MaterialUI,j.xDatePickers,j.AdapterDayjs,j.DateTimePicker,j.dayjs,null,j.DatePicker,j.TimePicker))})(this,(function(j,ct,v,z,Fe,Be,ti,q,or,ir,ri,an,Wc,ni,oi){"use strict";function ln(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=ln(ct),D=ln(z);function Tt(e){return!!(e==null||typeof e=="string"&&e.trim()===""||Array.isArray(e)&&e.length===0)}function ii(e,t){const r=t.split(".");let n=e;for(const o of r){if(n==null)return;n=n[o]}return n}function cn(e){return"field"in e}function si(e){return"and"in e||"or"in e||"not"in e}function ai(e,t){const r=ii(t,e.field);return"eq"in e?r===e.eq:"ne"in e?r!==e.ne:"gt"in e&&typeof r=="number"?r>e.gt:"gte"in e&&typeof r=="number"?r>=e.gte:"lt"in e&&typeof r=="number"?r<e.lt:"lte"in e&&typeof r=="number"?r<=e.lte:"in"in e&&Array.isArray(e.in)?e.in.includes(r):"notIn"in e&&Array.isArray(e.notIn)?!e.notIn.includes(r):"empty"in e?e.empty?Tt(r):!Tt(r):"notEmpty"in e?e.notEmpty?!Tt(r):Tt(r):!1}function li(e,t){return"and"in e?e.and.every(r=>Ne(r,t)):"or"in e?e.or.some(r=>Ne(r,t)):"not"in e?!Ne(e.not,t):!1}function Ne(e,t){return e?typeof e=="function"?e(t):cn(e)?ai(e,t):si(e)?li(e,t):!0:!0}function qe(e){const t=[];if(cn(e))t.push(e.field);else if("and"in e)for(const r of e.and)t.push(...qe(r));else if("or"in e)for(const r of e.or)t.push(...qe(r));else"not"in e&&t.push(...qe(e.not));return[...new Set(t)]}function ut(e,t,r=!1,n=!1){let o=!e.hidden;o&&e.visibleWhen&&(o=Ne(e.visibleWhen,t));let i=e.disabled??!1;!i&&e.disabledWhen&&(i=Ne(e.disabledWhen,t)),r&&(i=!0);let a=e.rules?.some(u=>u.type==="required")??!1;!a&&e.requiredWhen&&(a=Ne(e.requiredWhen,t));const l=e.readonly??n;return{visible:o,disabled:i,required:a,readonly:l}}function ci(e,t,r=!1,n=!1){const o=new Map;for(const i of e.input.fields){const a=ut(i,t,r,n);o.set(i.name,a)}return o}function Ze(e,t){if(e&&typeof e!="function"){if("field"in e){t.add(e.field);return}"and"in e&&Array.isArray(e.and)&&e.and.forEach(r=>Ze(r,t)),"or"in e&&Array.isArray(e.or)&&e.or.forEach(r=>Ze(r,t)),"not"in e&&Ze(e.not,t)}}function un(e){const t=new Set;for(const r of e.allFields){if(r.dependencies)for(const n of r.dependencies)t.add(n);if(Ze(r.visibleWhen,t),Ze(r.disabledWhen,t),Ze(r.requiredWhen,t),r.compute?.dependencies)for(const n of r.compute.dependencies)t.add(n)}return Array.from(t)}function ui(e){const t=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g,r=e.match(t)??[],n=new Set(["true","false","null","undefined","Math","Number","String","Boolean","Array","Object","if","else","return","const","let","var"]);return r.filter(o=>!n.has(o))}function dn(e){const t=new Map,r=new Map,n={},o=[],i=a=>{for(const l of a){const u=l.name;t.set(u,l),o.push(l),l.defaultValue!==void 0&&(n[u]=l.defaultValue),l.columns&&i(l.columns)}};i(e.fields);for(const a of o){const l=a.name,u=new Set;if(a.dependencies)for(const f of a.dependencies)u.add(f);if(a.visibleWhen)for(const f of qe(a.visibleWhen))u.add(f);if(a.disabledWhen)for(const f of qe(a.disabledWhen))u.add(f);if(a.requiredWhen)for(const f of qe(a.requiredWhen))u.add(f);if(a.compute)if(a.compute.dependencies)for(const f of a.compute.dependencies)u.add(f);else for(const f of ui(a.compute.expr))u.add(f);for(const f of u)r.has(f)||r.set(f,new Set),r.get(f)?.add(l)}return{input:e,fieldMap:t,dependencyGraph:r,defaultValues:n,allFields:o}}function di(e,t){const r=new Set,n=[e];for(;n.length>0;){const o=n.shift();if(!o)continue;const i=t.get(o);if(i)for(const a of i)r.has(a)||(r.add(a),n.push(a))}return r}function fi(e,t){return{...e.defaultValues,...t}}function pi(e,t){return e.rules?.some(n=>n.type==="required")?!0:e.requiredWhen?Ne(e.requiredWhen,t):!1}function mi(e){const t=e.rules?.find(n=>n.type==="required"),r=e.ui?.label??String(e.name);return t?.message??`${r}不能为空`}function sr(e,t){const r=e.ui?.label??String(e.name),n=e.component,o=e.rules??[],i=pi(e,t),a=mi(e),l=e.ui?.props?.multiple===!0;if((n==="Autocomplete"||n==="Select")&&l){const h=[];i&&h.push(P.check(g=>Array.isArray(g)&&g.length>0&&g!==void 0&&g!==null,a));const d=P.union([P.string(),P.number(),P.boolean(),P.undefined_(),P.null_(),P.array(P.unknown())]);return h.length>0?P.pipe(d,...h):d}if(["Radio","Select","Autocomplete"].includes(n)){const h=P.union([P.string(),P.number(),P.boolean(),P.undefined_(),P.null_()]);return i?P.pipe(h,P.check(d=>d!=null&&d!=="",a)):h}if(["Text","Password","Textarea","Date","Time","DateTime"].includes(n)){const h=P.union([P.string(),P.undefined_(),P.null_()]),d=[];i&&d.push(P.check(g=>g!=null&&g!=="",a));for(const g of o)switch(g.type){case"minLength":d.push(P.check(x=>x==null||x===""||String(x).length>=g.value,g.message??`${r}至少${g.value}个字符`));break;case"maxLength":d.push(P.check(x=>x==null||x===""||String(x).length<=g.value,g.message??`${r}最多${g.value}个字符`));break;case"pattern":{const x=typeof g.value=="string"?new RegExp(g.value):g.value;d.push(P.check(A=>A==null||A===""||x.test(String(A)),g.message??`${r}格式不正确`));break}case"email":d.push(P.check(x=>x==null||x===""||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(x)),g.message??`${r}必须是有效的邮箱`));break;case"url":d.push(P.check(x=>{if(x==null||x==="")return!0;try{return new URL(String(x)),!0}catch{return!1}},g.message??`${r}必须是有效的URL`));break;case"custom":d.push(P.check(x=>g.validate(x,t)===!0,x=>{const A=g.validate(x.input,t);return typeof A=="string"?A:"校验失败"}));break}return d.length>0?P.pipe(h,...d):h}if(["Number","Slider","Rating"].includes(n)){const h=P.union([P.number(),P.undefined_(),P.null_(),P.pipe(P.string(),P.transform(Number),P.number())]),d=[];i&&d.push(P.check(g=>g!=null&&!Number.isNaN(g),a));for(const g of o)switch(g.type){case"min":d.push(P.check(x=>x==null||Number(x)>=g.value,g.message??`${r}不能小于${g.value}`));break;case"max":d.push(P.check(x=>x==null||Number(x)<=g.value,g.message??`${r}不能大于${g.value}`));break;case"custom":d.push(P.check(x=>g.validate(x,t)===!0,x=>{const A=g.validate(x.input,t);return typeof A=="string"?A:"校验失败"}));break}return d.length>0?P.pipe(h,...d):h}if(["Checkbox","Switch"].includes(n)){const h=P.union([P.boolean(),P.undefined_(),P.null_()]);return i?P.pipe(h,P.check(d=>d===!0,a)):h}if(n==="FormList"){const h=e.columns??[],d=e.minItems??0,g=e.maxItems??1/0,x={};for(const C of h)if(C.component==="Group"&&C.columns)for(const w of C.columns)x[w.name]=sr(w,t);else C.component!=="Group"&&(x[C.name]=sr(C,t));const A=P.object(x),_=[];d>0&&_.push(P.check(C=>Array.isArray(C)&&C.length>=d,`至少需要${d}条数据`)),g<1/0&&_.push(P.check(C=>Array.isArray(C)&&C.length<=g,`最多允许${g}条数据`));const $=P.array(A);return _.length>0?P.pipe($,..._):$}if(n==="Upload"){const h=o.find(g=>g.type==="array"),d=h?.type==="array"?h.minItems??(i?1:0):i?1:0;return d>0?P.pipe(P.union([P.array(P.unknown()),P.undefined_(),P.null_()]),P.check(g=>Array.isArray(g)&&g.length>=d,h?.message??a)):P.union([P.array(P.unknown()),P.undefined_(),P.null_()])}const b=o.filter(h=>h.type==="custom");return b.length>0?P.pipe(P.unknown(),...b.map(h=>h.type==="custom"?P.check(d=>h.validate(d,t)===!0,d=>{const g=h.validate(d.input,t);return typeof g=="string"?g:"校验失败"}):P.check(()=>!0,""))):i?P.pipe(P.unknown(),P.check(h=>h!=null&&h!=="",a)):P.optional(P.unknown())}function fn(e,t){const r={};for(const n of e.input.fields){if(n.hidden||n.component==="Hidden"){r[n.name]=P.optional(P.unknown());continue}if(n.component!=="Group"){if(n.visibleWhen&&!Ne(n.visibleWhen,t)){r[n.name]=P.optional(P.unknown());continue}r[n.name]=sr(n,t)}}return P.object(r)}function pn(e){return async(t,r,n)=>{const o=fn(e,t),i=P.safeParse(o,t);if(i.success)return{values:i.output,errors:{}};const a={};for(const l of i.issues){const u=Array.isArray(l.path)?l.path.map(f=>f.key??"").filter(f=>f!=="").join("."):"";u&&!a[u]&&(a[u]={type:"validation",message:l.message})}return{values:{},errors:a}}}function mn(e){const t=e.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],r=new Set(["true","false","null","undefined","NaN","Infinity","Math","Number","String","Boolean","Array","Object","if","else","return","function"]);return Array.from(new Set(t.filter(n=>!r.has(n))))}function ar(e){return e==null?!1:typeof e=="number"?!Number.isNaN(e):typeof e=="string"?e.trim()!=="":!0}function hn(e,t,r,n,o="round"){try{for(const u of r)if(!ar(t[u]))return;const i={};for(const u of r){const f=t[u];typeof f=="string"&&!Number.isNaN(Number(f))?i[u]=Number(f):i[u]=f??0}let l=new Function(...Object.keys(i),`"use strict"; return (${e});`)(...Object.values(i));if(typeof l=="number"){if(!Number.isFinite(l))return;if(n!==void 0&&n>=0){const u=Math.pow(10,n);switch(o){case"ceil":l=Math.ceil(l*u)/u;break;case"floor":l=Math.floor(l*u)/u;break;case"round":default:l=Number(l.toFixed(n));break}}}return l}catch{return}}function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt={exports:{}},wt={exports:{}},oe={};var gn;function gi(){if(gn)return oe;gn=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,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function _(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case t:switch(C=C.type,C){case u:case f:case n:case i:case o:case y:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case h:case b:case a:return C;default:return w}}case r:return w}}}function $(C){return _(C)===f}return oe.AsyncMode=u,oe.ConcurrentMode=f,oe.ContextConsumer=l,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=m,oe.Fragment=n,oe.Lazy=h,oe.Memo=b,oe.Portal=r,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=y,oe.isAsyncMode=function(C){return $(C)||_(C)===u},oe.isConcurrentMode=$,oe.isContextConsumer=function(C){return _(C)===l},oe.isContextProvider=function(C){return _(C)===a},oe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},oe.isForwardRef=function(C){return _(C)===m},oe.isFragment=function(C){return _(C)===n},oe.isLazy=function(C){return _(C)===h},oe.isMemo=function(C){return _(C)===b},oe.isPortal=function(C){return _(C)===r},oe.isProfiler=function(C){return _(C)===i},oe.isStrictMode=function(C){return _(C)===o},oe.isSuspense=function(C){return _(C)===y},oe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===f||C===i||C===o||C===y||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===b||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===g||C.$$typeof===x||C.$$typeof===A||C.$$typeof===d)},oe.typeOf=_,oe}var ie={};var yn;function yi(){return yn||(yn=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,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function _(R){return typeof R=="string"||typeof R=="function"||R===n||R===f||R===i||R===o||R===y||R===p||typeof R=="object"&&R!==null&&(R.$$typeof===h||R.$$typeof===b||R.$$typeof===a||R.$$typeof===l||R.$$typeof===m||R.$$typeof===g||R.$$typeof===x||R.$$typeof===A||R.$$typeof===d)}function $(R){if(typeof R=="object"&&R!==null){var we=R.$$typeof;switch(we){case t:var Le=R.type;switch(Le){case u:case f:case n:case i:case o:case y:return Le;default:var rr=Le&&Le.$$typeof;switch(rr){case l:case m:case h:case b:case a:return rr;default:return we}}case r:return we}}}var C=u,w=f,B=l,Y=a,W=t,G=m,M=n,c=h,E=b,T=r,I=i,N=o,H=y,L=!1;function K(R){return L||(L=!0),O(R)||$(R)===u}function O(R){return $(R)===f}function k(R){return $(R)===l}function V(R){return $(R)===a}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function U(R){return $(R)===m}function Z(R){return $(R)===n}function Q(R){return $(R)===h}function J(R){return $(R)===b}function ee(R){return $(R)===r}function ne(R){return $(R)===i}function te(R){return $(R)===o}function ge(R){return $(R)===y}ie.AsyncMode=C,ie.ConcurrentMode=w,ie.ContextConsumer=B,ie.ContextProvider=Y,ie.Element=W,ie.ForwardRef=G,ie.Fragment=M,ie.Lazy=c,ie.Memo=E,ie.Portal=T,ie.Profiler=I,ie.StrictMode=N,ie.Suspense=H,ie.isAsyncMode=K,ie.isConcurrentMode=O,ie.isContextConsumer=k,ie.isContextProvider=V,ie.isElement=F,ie.isForwardRef=U,ie.isFragment=Z,ie.isLazy=Q,ie.isMemo=J,ie.isPortal=ee,ie.isProfiler=ne,ie.isStrictMode=te,ie.isSuspense=ge,ie.isValidElementType=_,ie.typeOf=$})()),ie}var bn;function vn(){return bn||(bn=1,process.env.NODE_ENV==="production"?wt.exports=gi():wt.exports=yi()),wt.exports}var lr,Sn;function bi(){if(Sn)return lr;Sn=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 u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lr=o()?Object.assign:function(i,a){for(var l,u=n(i),f,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var y in l)t.call(l,y)&&(u[y]=l[y]);if(e){f=e(l);for(var p=0;p<f.length;p++)r.call(l,f[p])&&(u[f[p]]=l[f[p]])}}return u},lr}var cr,Cn;function ur(){if(Cn)return cr;Cn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cr=e,cr}var dr,Tn;function xn(){return Tn||(Tn=1,dr=Function.call.bind(Object.prototype.hasOwnProperty)),dr}var fr,wn;function vi(){if(wn)return fr;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ur(),r={},n=xn();e=function(i){var a="Warning: "+i;try{throw new Error(a)}catch{}}}function o(i,a,l,u,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var y;try{if(typeof i[m]!="function"){var p=Error((u||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}y=i[m](a,m,u,l,null,t)}catch(h){y=h}if(y&&!(y instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` 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 b=f?f():"";e("Failed "+l+" type: "+y.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},fr=o,fr}var pr,En;function Si(){if(En)return pr;En=1;var e=vn(),t=bi(),r=ur(),n=xn(),o=vi(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;try{throw new Error(u)}catch{}});function a(){return null}return pr=function(l,u){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function y(O){var k=O&&(f&&O[f]||O[m]);if(typeof k=="function")return k}var p="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:A(),arrayOf:_,element:$(),elementType:C(),instanceOf:w,node:G(),objectOf:Y,oneOf:B,oneOfType:W,shape:c,exact:E};function h(O,k){return O===k?O!==0||1/O===1/k:O!==O&&k!==k}function d(O,k){this.message=O,this.data=k&&typeof k=="object"?k:{},this.stack=""}d.prototype=Error.prototype;function g(O){if(process.env.NODE_ENV!=="production")var k={},V=0;function F(Z,Q,J,ee,ne,te,ge){if(ee=ee||p,te=te||J,ge!==r){if(u){var R=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 R.name="Invariant Violation",R}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ee+":"+J;!k[we]&&V<3&&(i("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. 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."),k[we]=!0,V++)}}return Q[J]==null?Z?Q[J]===null?new d("The "+ne+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new d("The "+ne+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:O(Q,J,ee,ne,te)}var U=F.bind(null,!1);return U.isRequired=F.bind(null,!0),U}function x(O){function k(V,F,U,Z,Q,J){var ee=V[F],ne=N(ee);if(ne!==O){var te=H(ee);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+te+"` supplied to `"+U+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return g(k)}function A(){return g(a)}function _(O){function k(V,F,U,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var J=V[F];if(!Array.isArray(J)){var ee=N(J);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var te=O(J,ne,U,Z,Q+"["+ne+"]",r);if(te instanceof Error)return te}return null}return g(k)}function $(){function O(k,V,F,U,Z){var Q=k[V];if(!l(Q)){var J=N(Q);return new d("Invalid "+U+" `"+Z+"` of type "+("`"+J+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return g(O)}function C(){function O(k,V,F,U,Z){var Q=k[V];if(!e.isValidElementType(Q)){var J=N(Q);return new d("Invalid "+U+" `"+Z+"` of type "+("`"+J+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return g(O)}function w(O){function k(V,F,U,Z,Q){if(!(V[F]instanceof O)){var J=O.name||p,ee=K(V[F]);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected ")+("instance of `"+J+"`."))}return null}return g(k)}function B(O){if(!Array.isArray(O))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 k(V,F,U,Z,Q){for(var J=V[F],ee=0;ee<O.length;ee++)if(h(J,O[ee]))return null;var ne=JSON.stringify(O,function(ge,R){var we=H(R);return we==="symbol"?String(R):R});return new d("Invalid "+Z+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+U+"`, expected one of "+ne+"."))}return g(k)}function Y(O){function k(V,F,U,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var J=V[F],ee=N(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected an object."));for(var ne in J)if(n(J,ne)){var te=O(J,ne,U,Z,Q+"."+ne,r);if(te instanceof Error)return te}return null}return g(k)}function W(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<O.length;k++){var V=O[k];if(typeof V!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(V)+" at index "+k+"."),a}function F(U,Z,Q,J,ee){for(var ne=[],te=0;te<O.length;te++){var ge=O[te],R=ge(U,Z,Q,J,ee,r);if(R==null)return null;R.data&&n(R.data,"expectedType")&&ne.push(R.data.expectedType)}var we=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new d("Invalid "+J+" `"+ee+"` supplied to "+("`"+Q+"`"+we+"."))}return g(F)}function G(){function O(k,V,F,U,Z){return T(k[V])?null:new d("Invalid "+U+" `"+Z+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return g(O)}function M(O,k,V,F,U){return new d((O||"React class")+": "+k+" type `"+V+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function c(O){function k(V,F,U,Z,Q){var J=V[F],ee=N(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+U+"`, expected `object`."));for(var ne in O){var te=O[ne];if(typeof te!="function")return M(U,Z,Q,ne,H(te));var ge=te(J,ne,U,Z,Q+"."+ne,r);if(ge)return ge}return null}return g(k)}function E(O){function k(V,F,U,Z,Q){var J=V[F],ee=N(J);if(ee!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+U+"`, expected `object`."));var ne=t({},V[F],O);for(var te in ne){var ge=O[te];if(n(O,te)&&typeof ge!="function")return M(U,Z,Q,te,H(ge));if(!ge)return new d("Invalid "+Z+" `"+Q+"` key `"+te+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(V[F],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var R=ge(J,te,U,Z,Q+"."+te,r);if(R)return R}return null}return g(k)}function T(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(T);if(O===null||l(O))return!0;var k=y(O);if(k){var V=k.call(O),F;if(k!==O.entries){for(;!(F=V.next()).done;)if(!T(F.value))return!1}else for(;!(F=V.next()).done;){var U=F.value;if(U&&!T(U[1]))return!1}}else return!1;return!0;default:return!1}}function I(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function N(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":I(k,O)?"symbol":k}function H(O){if(typeof O>"u"||O===null)return""+O;var k=N(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function L(O){var k=H(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function K(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},pr}var mr,On;function Ci(){if(On)return mr;On=1;var e=ur();function t(){}function r(){}return r.resetWarningCache=t,mr=function(){function n(a,l,u,f,m,y){if(y!==e){var p=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 p.name="Invariant Violation",p}}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},mr}var $n;function Ti(){if($n)return xt.exports;if($n=1,process.env.NODE_ENV!=="production"){var e=vn(),t=!0;xt.exports=Si()(e.isElement,t)}else xt.exports=Ci()();return xt.exports}var xi=Ti();const s=hi(xi);function kn(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=kn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kn(e))&&(n&&(n+=" "),n+=t);return n}function wi(e,t){return D.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const An=e=>e,Pn=(()=>{let e=An;return{configure(t){e=t},generate(t){return e(t)},reset(){e=An}}})(),Ei={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 ve(e,t,r="Mui"){const n=Ei[t];return n?`${r}-${n}`:`${Pn.generate(e)}-${t}`}function Pe(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",l=!0;for(let u=0;u<i.length;u+=1){const f=i[u];f&&(a+=(l===!0?"":" ")+t(f),l=!1,r&&r[f]&&(a+=" "+r[f]))}n[o]=a}return n}function Oi(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 $i={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 ki(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ai=/[A-Z]|^ms/g,Pi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,In=function(t){return t.charCodeAt(1)===45},Mn=function(t){return t!=null&&typeof t!="boolean"},hr=ki(function(e){return In(e)?e:e.replace(Ai,"-$&").toLowerCase()}),_n=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Pi,function(n,o,i){return je={name:o,styles:i,next:je},o})}return $i[t]!==1&&!In(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 je={name:o.name,styles:o.styles,next:je},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)je={name:a.name,styles:a.styles,next:je},a=a.next;var l=i.styles+";";return l}return Ii(e,t,r)}}var u=r;return u}function Ii(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;Mn(l)&&(n+=hr(i)+":"+_n(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Mn(a[u])&&(n+=hr(i)+":"+_n(i,a[u])+";");else{var f=Et(e,t,a);switch(i){case"animation":case"animationName":{n+=hr(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var Nn=/label:\s*([^\s;{]+)\s*(;|$)/g,je;function Mi(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="";je=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 u=i;o+=u[l]}Nn.lastIndex=0;for(var f="",m;(m=Nn.exec(o))!==null;)f+="-"+m[1];var y=Oi(o)+f;return{name:y,styles:o,next:je}}function Rn(e,t){const r=ti(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0||n.some(i=>i===void 0),r(...n)}:r}function _i(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Dn=[];function Ge(e){return Dn[0]=e,Mi(Dn)}var Ot={exports:{}},le={};var Bn;function Ni(){if(Bn)return le;Bn=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"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function h(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case o:case n:case u:case f:case p:return d;default:switch(d=d&&d.$$typeof,d){case a:case l:case y:case m:return d;case i:return d;default:return g}}case t:return g}}}return le.ContextConsumer=i,le.ContextProvider=a,le.Element=e,le.ForwardRef=l,le.Fragment=r,le.Lazy=y,le.Memo=m,le.Portal=t,le.Profiler=o,le.StrictMode=n,le.Suspense=u,le.SuspenseList=f,le.isContextConsumer=function(d){return h(d)===i},le.isContextProvider=function(d){return h(d)===a},le.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},le.isForwardRef=function(d){return h(d)===l},le.isFragment=function(d){return h(d)===r},le.isLazy=function(d){return h(d)===y},le.isMemo=function(d){return h(d)===m},le.isPortal=function(d){return h(d)===t},le.isProfiler=function(d){return h(d)===o},le.isStrictMode=function(d){return h(d)===n},le.isSuspense=function(d){return h(d)===u},le.isSuspenseList=function(d){return h(d)===f},le.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===u||d===f||typeof d=="object"&&d!==null&&(d.$$typeof===y||d.$$typeof===m||d.$$typeof===a||d.$$typeof===i||d.$$typeof===l||d.$$typeof===b||d.getModuleId!==void 0)},le.typeOf=h,le}var ce={};var jn;function Ri(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case t:switch(d=d.type,d){case n:case i:case o:case f:case m:case b:return d;default:switch(d=d&&d.$$typeof,d){case l:case u:case p:case y:return d;case a:return d;default:return g}}case r:return g}}}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"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ce.ContextConsumer=a,ce.ContextProvider=l,ce.Element=t,ce.ForwardRef=u,ce.Fragment=n,ce.Lazy=p,ce.Memo=y,ce.Portal=r,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=f,ce.SuspenseList=m,ce.isContextConsumer=function(d){return e(d)===a},ce.isContextProvider=function(d){return e(d)===l},ce.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},ce.isForwardRef=function(d){return e(d)===u},ce.isFragment=function(d){return e(d)===n},ce.isLazy=function(d){return e(d)===p},ce.isMemo=function(d){return e(d)===y},ce.isPortal=function(d){return e(d)===r},ce.isProfiler=function(d){return e(d)===i},ce.isStrictMode=function(d){return e(d)===o},ce.isSuspense=function(d){return e(d)===f},ce.isSuspenseList=function(d){return e(d)===m},ce.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===i||d===o||d===f||d===m||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===y||d.$$typeof===l||d.$$typeof===a||d.$$typeof===u||d.$$typeof===h||d.getModuleId!==void 0)},ce.typeOf=e})()),ce}var Vn;function Di(){return Vn||(Vn=1,process.env.NODE_ENV==="production"?Ot.exports=Ni():Ot.exports=Ri()),Ot.exports}var $t=Di();function Ie(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 zn(e){if(D.isValidElement(e)||$t.isValidElementType(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zn(e[r])}),t}function ye(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||$t.isValidElementType(t[o])?n[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?n[o]=ye(e[o],t[o],r):r.clone?n[o]=Ie(t[o])?zn(t[o]):t[o]:n[o]=t[o]}),n}function Ve(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 re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ve(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Wn(e,t=""){return e.displayName||e.name||t}function Ln(e,t,r){const n=Wn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Bi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $t.ForwardRef:return Ln(e,e.render,"ForwardRef");case $t.Memo:return Ln(e,e.type,"memo");default:return}}}const ji=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 Vi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=ji(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function f(p,b){const h=a.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:b)-n/100}${r})`}function m(p){return a.indexOf(p)+1<a.length?f(p,a[a.indexOf(p)+1]):l(p)}function y(p){const b=a.indexOf(p);return b===0?l(a[1]):b===a.length-1?u(a[b]):f(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:f,only:m,not:y,unit:r,...o}}function Fn(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function zi(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Wi(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
3
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ve(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function Li(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 u=t(e.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Fi={borderRadius:4},ze=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function dt(e,t){return t?ye(e,t,{clone:!1}):e}const kt={xs:0,sm:600,md:900,lg:1200,xl:1536},qn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kt[e]}px)`},qi={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:kt[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ee(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||qn;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||qn;return Object.keys(t).reduce((a,l)=>{if(zi(i.keys,l)){const u=Wi(n.containerQueries?n:qi,l);u&&(a[u]=r(t[l],l))}else if(Object.keys(i.values||kt).includes(l)){const u=i.up(l);a[u]=r(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return r(t)}function Gn(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function gr(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Gi(e,...t){const r=Gn(e),n=[r,...t].reduce((o,i)=>ye(o,i),{});return gr(Object.keys(r),n)}function Ui(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function yr({values:e,breakpoints:t,base:r}){const n=r||Ui(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,l,u)=>(Array.isArray(e)?(a[l]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function At(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Pt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=At(e,r)||n,t&&(o=t(o,n,e)),o}function me(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],u=a.theme,f=At(u,n)||{};return Ee(a,l,y=>{let p=Pt(f,o,y);return y===p&&typeof y=="string"&&(p=Pt(f,o,`${t}${y==="default"?"":re(y)}`,y)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ze}:{},i.filterProps=[t],i}function Yi(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hi={m:"margin",p:"padding"},Ki={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Un={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xi=Yi(e=>{if(e.length>2)if(Un[e])e=Un[e];else return[e];const[t,r]=e.split(""),n=Hi[t],o=Ki[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),It=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Qi=[...It,...Mt];function ft(e,t,r,n){const o=At(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV,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;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,()=>{})}function _t(e){return ft(e,"spacing",8,"spacing")}function Ue(e,t){return typeof t=="string"||t==null?t:e(t)}function Ji(e,t){return r=>e.reduce((n,o)=>(n[o]=Ue(t,r),n),{})}function Zi(e,t,r,n){if(!t.includes(r))return null;const o=Xi(r),i=Ji(o,n),a=e[r];return Ee(e,a,i)}function Yn(e,t){const r=_t(e.theme);return Object.keys(e).map(n=>Zi(e,t,n,r)).reduce(dt,{})}function fe(e){return Yn(e,It)}fe.propTypes=process.env.NODE_ENV!=="production"?It.reduce((e,t)=>(e[t]=ze,e),{}):{},fe.filterProps=It;function pe(e){return Yn(e,Mt)}pe.propTypes=process.env.NODE_ENV!=="production"?Mt.reduce((e,t)=>(e[t]=ze,e),{}):{},pe.filterProps=Mt,process.env.NODE_ENV!=="production"&&Qi.reduce((e,t)=>(e[t]=ze,e),{});function Hn(e=8,t=_t({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&n.length<=4,(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 Nt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?dt(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Se(e){return typeof e!="number"?e:`${e}px solid`}function Ce(e,t){return me({prop:e,themeKey:"borders",transform:t})}const es=Ce("border",Se),ts=Ce("borderTop",Se),rs=Ce("borderRight",Se),ns=Ce("borderBottom",Se),os=Ce("borderLeft",Se),is=Ce("borderColor"),ss=Ce("borderTopColor"),as=Ce("borderRightColor"),ls=Ce("borderBottomColor"),cs=Ce("borderLeftColor"),us=Ce("outline",Se),ds=Ce("outlineColor"),Rt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ft(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ue(t,n)});return Ee(e,e.borderRadius,r)}return null};Rt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ze}:{},Rt.filterProps=["borderRadius"],Nt(es,ts,rs,ns,os,is,ss,as,ls,cs,Rt,us,ds);const Dt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ft(e.theme,"spacing",8,"gap"),r=n=>({gap:Ue(t,n)});return Ee(e,e.gap,r)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{gap:ze}:{},Dt.filterProps=["gap"];const Bt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ft(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ue(t,n)});return Ee(e,e.columnGap,r)}return null};Bt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ze}:{},Bt.filterProps=["columnGap"];const jt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ft(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ue(t,n)});return Ee(e,e.rowGap,r)}return null};jt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ze}:{},jt.filterProps=["rowGap"];const fs=me({prop:"gridColumn"}),ps=me({prop:"gridRow"}),ms=me({prop:"gridAutoFlow"}),hs=me({prop:"gridAutoColumns"}),gs=me({prop:"gridAutoRows"}),ys=me({prop:"gridTemplateColumns"}),bs=me({prop:"gridTemplateRows"}),vs=me({prop:"gridTemplateAreas"}),Ss=me({prop:"gridArea"});Nt(Dt,Bt,jt,fs,ps,ms,hs,gs,ys,bs,vs,Ss);function et(e,t){return t==="grey"?t:e}const Cs=me({prop:"color",themeKey:"palette",transform:et}),Ts=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:et}),xs=me({prop:"backgroundColor",themeKey:"palette",transform:et});Nt(Cs,Ts,xs);function be(e){return e<=1&&e!==0?`${e*100}%`:e}const ws=me({prop:"width",transform:be}),br=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||kt[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:be(r)}};return Ee(e,e.maxWidth,t)}return null};br.filterProps=["maxWidth"];const Es=me({prop:"minWidth",transform:be}),Os=me({prop:"height",transform:be}),$s=me({prop:"maxHeight",transform:be}),ks=me({prop:"minHeight",transform:be});me({prop:"size",cssProperty:"width",transform:be}),me({prop:"size",cssProperty:"height",transform:be});const As=me({prop:"boxSizing"});Nt(ws,br,Es,Os,$s,ks,As);const pt={border:{themeKey:"borders",transform:Se},borderTop:{themeKey:"borders",transform:Se},borderRight:{themeKey:"borders",transform:Se},borderBottom:{themeKey:"borders",transform:Se},borderLeft:{themeKey:"borders",transform:Se},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Se},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rt},color:{themeKey:"palette",transform:et},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:et},backgroundColor:{themeKey:"palette",transform:et},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:fe},mt:{style:fe},mr:{style:fe},mb:{style:fe},ml:{style:fe},mx:{style:fe},my:{style:fe},margin:{style:fe},marginTop:{style:fe},marginRight:{style:fe},marginBottom:{style:fe},marginLeft:{style:fe},marginX:{style:fe},marginY:{style:fe},marginInline:{style:fe},marginInlineStart:{style:fe},marginInlineEnd:{style:fe},marginBlock:{style:fe},marginBlockStart:{style:fe},marginBlockEnd:{style:fe},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:Dt},rowGap:{style:jt},columnGap:{style:Bt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:be},maxWidth:{style:br},minWidth:{transform:be},height:{transform:be},maxHeight:{transform:be},minHeight:{transform:be},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Is(e,t){return typeof e=="function"?e(t):e}function Ms(){function e(r,n,o,i){const a={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:m,style:y}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const p=At(o,f)||{};return y?y(a):Ee(a,n,h=>{let d=Pt(p,m,h);return h===d&&typeof h=="string"&&(d=Pt(p,m,`${r}${h==="default"?"":re(h)}`,h)),u===!1?d:{[u]:d}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??pt;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const m=Gn(o.breakpoints),y=Object.keys(m);let p=m;return Object.keys(f).forEach(b=>{const h=Is(f[b],o);if(h!=null)if(typeof h=="object")if(a[b])p=dt(p,e(b,h,o,a));else{const d=Ee({theme:o},h,g=>({[b]:g}));Ps(d,h)?p[b]=t({sx:h,theme:o,nested:!0}):p=dt(p,d)}else p=dt(p,e(b,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Fn(o,gr(y,p))}:Fn(o,gr(y,p))}return Array.isArray(n)?n.map(l):l(n)}return t}const Ye=Ms();Ye.filterProps=["sx"];function _s(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function mt(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,l=Vi(r),u=Hn(o);let f=ye({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...Fi,...i}},a);return f=Li(f),f.applyStyles=_s,f=t.reduce((m,y)=>ye(m,y),f),f.unstable_sxConfig={...pt,...a?.unstable_sxConfig},f.unstable_sx=function(y){return Ye({sx:y,theme:this})},f}const Ns=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??pt;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function Vt(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Ns(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Ie(l)?{...n,...l}:n}:i={...n,...t},{...o,sx:i}}function Kn(e){const{variants:t,...r}=e,n={variants:t,style:Ge(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ge(o.style))}),n}const Rs=mt();function vr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function He(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ds(e){return e?(t,r)=>r[e]:null}function Bs(e,t,r){e.theme=zs(e.theme)?r:e.theme[t]||e.theme}function zt(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>zt(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?He(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?He(Ge(a),r):a}return Xn(e,n.variants,[o],r)}return n?.isProcessed?r?He(Ge(n.style),r):n.style:r?He(Ge(n),r):n}function Xn(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?He(Ge(a.style(o)),n):a.style(o))):r.push(n?He(Ge(a.style),n):a.style)}return r}function Qn(e={}){const{themeId:t,defaultTheme:r=Rs,rootShouldForwardProp:n=vr,slotShouldForwardProp:o=vr}=e;function i(l){Bs(l,t,r)}return(l,u={})=>{_i(l,w=>w.filter(B=>B!==Ye));const{name:f,slot:m,skipVariantsResolver:y,skipSx:p,overridesResolver:b=Ds(Jn(m)),...h}=u,d=f&&f.startsWith("Mui")||m?"components":"custom",g=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,x=p||!1;let A=vr;m==="Root"||m==="root"?A=n:m?A=o:Ws(l)&&(A=void 0);const _=Rn(l,{shouldForwardProp:A,label:Vs(f,m),...h}),$=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(Y){return zt(Y,w,Y.theme.modularCssLayers?d:void 0)};if(Ie(w)){const B=Kn(w);return function(W){return B.variants?zt(W,B,W.theme.modularCssLayers?d:void 0):W.theme.modularCssLayers?He(B.style,d):B.style}}return w},C=(...w)=>{const B=[],Y=w.map($),W=[];if(B.push(i),f&&b&&W.push(function(E){const I=E.theme.components?.[f]?.styleOverrides;if(!I)return null;const N={};for(const H in I)N[H]=zt(E,I[H],E.theme.modularCssLayers?"theme":void 0);return b(E,N)}),f&&!g&&W.push(function(E){const I=E.theme?.components?.[f]?.variants;return I?Xn(E,I,[],E.theme.modularCssLayers?"theme":void 0):null}),x||W.push(Ye),Array.isArray(Y[0])){const c=Y.shift(),E=new Array(B.length).fill(""),T=new Array(W.length).fill("");let I;I=[...E,...c,...T],I.raw=[...E,...c.raw,...T],B.unshift(I)}const G=[...B,...Y,...W],M=_(...G);return l.muiName&&(M.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=js(f,m,l)),M};return _.withConfig&&(C.withConfig=_.withConfig),C}}function js(e,t,r){return e?`${e}${re(t||"")}`:`Styled(${Bi(r)})`}function Vs(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Jn(t||"Root")}`),r}function zs(e){for(const t in e)return!1;return!0}function Ws(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Zn=Qn();function ht(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 u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[i][f]=ht(a[f],l[f],r)}}}else i==="className"&&r&&t.className?n.className=de(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Ls(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:ht(t.components[r].defaultProps,n)}function Fs(e){return Object.keys(e).length===0}function qs(e=null){const t=D.useContext(Be.ThemeContext);return!t||Fs(t)?e:t}const Gs=mt();function Wt(e=Gs){return qs(e)}function eo({props:e,name:t,defaultTheme:r,themeId:n}){let o=Wt(r);return n&&(o=o[n]||o),Ls({theme:o,name:t,props:e})}const Us=(e,t)=>e.filter(r=>t.includes(r)),tt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{r((a,l)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,l):a[e.up(e.keys[i])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Us(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&r((l,u)=>{n===i?Object.assign(l,u):l[e.up(i)]=u},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,i)=>{Object.assign(o,i)},t)};function Lt(e){return`--Grid-${e}Spacing`}function Ft(e){return`--Grid-parent-${e}Spacing`}const to="--Grid-columns",rt="--Grid-parent-columns",Ys=({theme:e,ownerState:t})=>{const r={};return tt(e.breakpoints,t.size,(n,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${rt}) - (var(${rt}) - ${o}) * (var(${Ft("column")}) / var(${rt})))`}),n(r,i)}),r},Hs=({theme:e,ownerState:t})=>{const r={};return tt(e.breakpoints,t.offset,(n,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${rt}) + var(${Ft("column")}) * ${o} / var(${rt}))`}),n(r,i)}),r},Ks=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[to]:12};return tt(e.breakpoints,t.columns,(n,o)=>{const i=o??12;n(r,{[to]:i,"> *":{[rt]:i}})}),r},Xs=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.rowSpacing,(n,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);n(r,{[Lt("row")]:i,"> *":{[Ft("row")]:i}})}),r},Qs=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.columnSpacing,(n,o)=>{const i=typeof o=="string"?o:e.spacing?.(o);n(r,{[Lt("column")]:i,"> *":{[Ft("column")]:i}})}),r},Js=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return tt(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Zs=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Lt("row")}) var(${Lt("column")})`}}),ea=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},ta=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,i])=>{r(i)&&n.push(`spacing-${o}-${String(i)}`)}),n}return[]},ra=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Fc=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,ro=[];function na(e,t){const r=[];e.item!==void 0&&(delete e.item,r.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,r.push("zeroMinWidth")),t.keys.forEach(n=>{e[n]!==void 0&&(r.push(n),delete e[n])}),process.env.NODE_ENV!=="production"&&r.forEach(n=>{ro.includes(n)||ro.push(n)})}const oa=mt(),ia=Zn("div",{name:"MuiGrid",slot:"Root"});function sa(e){return eo({props:e,name:"MuiGrid",defaultTheme:oa})}function aa(e={}){const{createStyledComponent:t=ia,useThemeProps:r=sa,useTheme:n=Wt,componentName:o="MuiGrid"}=e,i=(f,m)=>{const{container:y,direction:p,spacing:b,wrap:h,size:d}=f,g={root:["root",y&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...ra(p),...ea(d),...y?ta(b,m.breakpoints.keys[0]):[]]};return Pe(g,x=>ve(o,x),{})};function a(f,m,y=()=>!0){const p={};return f===null||(Array.isArray(f)?f.forEach((b,h)=>{b!==null&&y(b)&&m.keys[h]&&(p[m.keys[h]]=b)}):typeof f=="object"?Object.keys(f).forEach(b=>{const h=f[b];h!=null&&y(h)&&(p[b]=h)}):p[m.keys[0]]=f),p}const l=t(Ks,Qs,Xs,Ys,Js,Zs,Hs),u=D.forwardRef(function(m,y){const p=n(),b=r(m),h=Vt(b);na(h,p.breakpoints);const{className:d,children:g,columns:x=12,container:A=!1,component:_="div",direction:$="row",wrap:C="wrap",size:w={},offset:B={},spacing:Y=0,rowSpacing:W=Y,columnSpacing:G=Y,unstable_level:M=0,...c}=h,E=a(w,p.breakpoints,k=>k!==!1),T=a(B,p.breakpoints),I=m.columns??(M?void 0:x),N=m.spacing??(M?void 0:Y),H=m.rowSpacing??m.spacing??(M?void 0:W),L=m.columnSpacing??m.spacing??(M?void 0:G),K={...h,level:M,columns:I,container:A,direction:$,wrap:C,spacing:N,rowSpacing:H,columnSpacing:L,size:E,offset:T},O=i(K,p);return v.jsx(l,{ref:y,as:_,ownerState:K,className:de(O.root,d),...c,children:D.Children.map(g,k=>D.isValidElement(k)&&wi(k,["Grid"])&&A&&k.props.container?D.cloneElement(k,{unstable_level:k.props?.unstable_level??M+1}):k)})});return process.env.NODE_ENV!=="production"&&(u.propTypes={children:s.node,className:s.string,columns:s.oneOfType([s.arrayOf(s.number),s.number,s.object]),columnSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),component:s.elementType,container:s.bool,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),offset:s.oneOfType([s.string,s.number,s.arrayOf(s.oneOfType([s.string,s.number])),s.object]),rowSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),size:s.oneOfType([s.string,s.bool,s.number,s.arrayOf(s.oneOfType([s.string,s.bool,s.number])),s.object]),spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),wrap:s.oneOf(["nowrap","wrap-reverse","wrap"])}),u.muiName="Grid",u}function Me(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=ve(e,o,r)}),n}function la(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const r=t?{...t.propTypes}:null;return o=>(i,a,l,u,f,...m)=>{const y=f||a,p=r?.[y];if(p){const b=p(i,a,l,u,f,...m);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${y}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Sr="$$material";function ca(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Rn("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Ye);return D.forwardRef(function(u,f){const m=Wt(r),{className:y,component:p="div",...b}=Vt(u);return v.jsx(i,{as:p,ref:f,className:de(y,o?o(n):n),theme:t&&m[t]||m,...b})})}const ua=typeof window<"u"?D.useLayoutEffect:D.useEffect;function da(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Cr(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r),da(e,t,r)}function fa(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),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 We(e){if(e.type)return e;if(e.charAt(0)==="#")return We(fa(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.
4
4
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ve(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.
5
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ve(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const pa=e=>{const t=We(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},gt=(e,t)=>{try{return pa(e)}catch{return t&&process.env.NODE_ENV,e}};function qt(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 no(e){e=We(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(f,m=(f+r/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),qt({type:l,values:u})}function Tr(e){e=We(e);let t=e.type==="hsl"||e.type==="hsla"?We(no(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 oo(e,t){const r=Tr(e),n=Tr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Gt(e,t){return e=We(e),t=Cr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qt(e)}function Ke(e,t,r){try{return Gt(e,t)}catch{return r&&process.env.NODE_ENV,e}}function Ut(e,t){if(e=We(e),t=Cr(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 qt(e)}function se(e,t,r){try{return Ut(e,t)}catch{return r&&process.env.NODE_ENV,e}}function Yt(e,t){if(e=We(e),t=Cr(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 qt(e)}function ae(e,t,r){try{return Yt(e,t)}catch{return r&&process.env.NODE_ENV,e}}function ma(e,t=.15){return Tr(e)>.5?Ut(e,t):Yt(e,t)}function Ht(e,t,r){try{return ma(e,t)}catch{return e}}const ha=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ga(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?ht(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?ht(o,n,t.components.mergeClassNameAndStyle):n}function ya({props:e,name:t}){const r=D.useContext(ha);return ga({props:e,name:t,theme:{components:r}})}let io=0;function ba(e){const[t,r]=D.useState(e),n=e||t;return D.useEffect(()=>{t==null&&(io+=1,r(`mui-${io}`))},[t]),n}const so={...D}.useId;function ao(e){if(so!==void 0){const t=so();return e??t}return ba(e)}const lo={theme:void 0};function va(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(lo.theme=o.theme,i=Kn(e(lo)),t=i,r=o.theme),i}}function Sa(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 co=(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])})},Ca=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}n(e)},Ta=(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 xr(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return Ca(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const m=`--${r?`${r}-`:""}${l.join("-")}`,y=Ta(l,u);Object.assign(o,{[m]:y}),co(i,l,`var(${m})`,f),co(a,l,`var(${m}, ${y})`,f)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function xa(e,t={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...f}=e,{vars:m,css:y,varsWithDefaults:p}=xr(f,t);let b=p;const h={},{[u]:d,...g}=a;if(Object.entries(g||{}).forEach(([$,C])=>{const{vars:E,css:j,varsWithDefaults:H}=xr(C,t);b=ye(b,H),h[$]={css:j,vars:E}}),d){const{css:$,vars:C,varsWithDefaults:E}=xr(d,t);b=ye(b,E),h[u]={css:$,vars:C}}function x($,C){let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),$){if(E==="media")return e.defaultColorScheme===$?":root":{[`@media (prefers-color-scheme: ${a[$]?.palette?.mode||$})`]:{":root":C}};if(E)return e.defaultColorScheme===$?`:root, ${E.replace("%s",String($))}`:E.replace("%s",String($))}return":root"}return{vars:b,generateThemeVars:()=>{let $={...m};return Object.entries(h).forEach(([,{vars:C}])=>{$=ye($,C)}),$},generateStyleSheets:()=>{const $=[],C=e.defaultColorScheme||"light";function E(z,q){Object.keys(q).length&&$.push(typeof z=="string"?{[z]:{...q}}:z)}E(r(void 0,{...y}),y);const{[C]:j,...H}=h;if(j){const{css:z}=j,q=a[C]?.palette?.mode,I=!n&&q?{colorScheme:q,...z}:{...z};E(r(C,{...I}),I)}return Object.entries(H).forEach(([z,{css:q}])=>{const I=a[z]?.palette?.mode,c=!n&&I?{colorScheme:I,...q}:{...q};E(r(z,{...c}),c)}),i&&$.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)"}}),$}}}function wa(e){return function(r){return e==="media"?(process.env.NODE_ENV,`@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 Ea=mt(),Oa=Zn("div",{name:"MuiStack",slot:"Root"});function $a(e){return eo({props:e,name:"MuiStack",defaultTheme:Ea})}function ka(e,t){const r=D.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(D.cloneElement(t,{key:`separator-${i}`})),n),[])}const Aa=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Pa=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Ee({theme:t},yr({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=_t(t),o=Object.keys(t.breakpoints.values).reduce((u,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(u[f]=!0),u),{}),i=yr({values:e.direction,base:o}),a=yr({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,f,m)=>{if(!i[u]){const p=f>0?i[m[f-1]]:"column";i[u]=p}}),r=ye(r,Ee({theme:t},a,(u,f)=>e.useFlexGap?{gap:Ue(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Aa(f?i[f]:e.direction)}`]:Ue(n,u)}}))}return r=Gi(t.breakpoints,r),r};function Ia(e={}){const{createStyledComponent:t=Oa,useThemeProps:r=$a,componentName:n="MuiStack"}=e,o=()=>Pe({root:["root"]},u=>ve(n,u),{}),i=t(Pa),a=D.forwardRef(function(u,f){const m=r(u),y=Vt(m),{component:p="div",direction:b="column",spacing:h=0,divider:d,children:g,className:x,useFlexGap:A=!1,...M}=y,$={direction:b,spacing:h,useFlexGap:A},C=o();return v.jsx(i,{as:p,ownerState:$,ref:f,className:de(C.root,x),...M,children:d?ka(g,d):g})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const yt={black:"#000",white:"#fff"},Ma={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"},nt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ot={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},it={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},st={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},at={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function uo(){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:yt.white,default:yt.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 fo=uo();function po(){return{text:{primary:yt.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:yt.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 wr=po();function mo(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=Yt(e.main,o):t==="dark"&&(e.dark=Ut(e.main,i)))}function ho(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 _a(e="light"){return e==="dark"?{main:it[200],light:it[50],dark:it[400]}:{main:it[700],light:it[400],dark:it[800]}}function Na(e="light"){return e==="dark"?{main:nt[200],light:nt[50],dark:nt[400]}:{main:nt[500],light:nt[300],dark:nt[700]}}function Ra(e="light"){return e==="dark"?{main:ot[500],light:ot[300],dark:ot[700]}:{main:ot[700],light:ot[400],dark:ot[800]}}function Da(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:st[700],light:st[500],dark:st[900]}}function Ba(e="light"){return e==="dark"?{main:at[400],light:at[300],dark:at[700]}:{main:at[800],light:at[500],dark:at[900]}}function ja(e="light"){return e==="dark"?{main:bt[400],light:bt[300],dark:bt[700]}:{main:"#ed6c02",light:bt[500],dark:bt[900]}}function Va(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Er(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||_a(t),l=e.secondary||Na(t),u=e.error||Ra(t),f=e.info||Da(t),m=e.success||Ba(t),y=e.warning||ja(t);function p(g){if(o)return Va(g);const x=oo(g,wr.text.primary)>=r?wr.text.primary:fo.text.primary;return process.env.NODE_ENV!=="production"&&oo(g,x)<3,x}const b=({color:g,name:x,mainShade:A=500,lightShade:M=300,darkShade:$=700})=>{if(g={...g},!g.main&&g[A]&&(g.main=g[A]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
5
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ve(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const pa=e=>{const t=We(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},gt=(e,t)=>{try{return pa(e)}catch{return t&&process.env.NODE_ENV,e}};function qt(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 no(e){e=We(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(f,m=(f+r/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),qt({type:l,values:u})}function Tr(e){e=We(e);let t=e.type==="hsl"||e.type==="hsla"?We(no(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 oo(e,t){const r=Tr(e),n=Tr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Gt(e,t){return e=We(e),t=Cr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qt(e)}function Ke(e,t,r){try{return Gt(e,t)}catch{return r&&process.env.NODE_ENV,e}}function Ut(e,t){if(e=We(e),t=Cr(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 qt(e)}function se(e,t,r){try{return Ut(e,t)}catch{return r&&process.env.NODE_ENV,e}}function Yt(e,t){if(e=We(e),t=Cr(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 qt(e)}function ae(e,t,r){try{return Yt(e,t)}catch{return r&&process.env.NODE_ENV,e}}function ma(e,t=.15){return Tr(e)>.5?Ut(e,t):Yt(e,t)}function Ht(e,t,r){try{return ma(e,t)}catch{return e}}const ha=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ga(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?ht(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?ht(o,n,t.components.mergeClassNameAndStyle):n}function ya({props:e,name:t}){const r=D.useContext(ha);return ga({props:e,name:t,theme:{components:r}})}let io=0;function ba(e){const[t,r]=D.useState(e),n=e||t;return D.useEffect(()=>{t==null&&(io+=1,r(`mui-${io}`))},[t]),n}const so={...D}.useId;function ao(e){if(so!==void 0){const t=so();return e??t}return ba(e)}const lo={theme:void 0};function va(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(lo.theme=o.theme,i=Kn(e(lo)),t=i,r=o.theme),i}}function Sa(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 co=(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])})},Ca=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}n(e)},Ta=(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 xr(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return Ca(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const m=`--${r?`${r}-`:""}${l.join("-")}`,y=Ta(l,u);Object.assign(o,{[m]:y}),co(i,l,`var(${m})`,f),co(a,l,`var(${m}, ${y})`,f)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function xa(e,t={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...f}=e,{vars:m,css:y,varsWithDefaults:p}=xr(f,t);let b=p;const h={},{[u]:d,...g}=a;if(Object.entries(g||{}).forEach(([$,C])=>{const{vars:w,css:B,varsWithDefaults:Y}=xr(C,t);b=ye(b,Y),h[$]={css:B,vars:w}}),d){const{css:$,vars:C,varsWithDefaults:w}=xr(d,t);b=ye(b,w),h[u]={css:$,vars:C}}function x($,C){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),$){if(w==="media")return e.defaultColorScheme===$?":root":{[`@media (prefers-color-scheme: ${a[$]?.palette?.mode||$})`]:{":root":C}};if(w)return e.defaultColorScheme===$?`:root, ${w.replace("%s",String($))}`:w.replace("%s",String($))}return":root"}return{vars:b,generateThemeVars:()=>{let $={...m};return Object.entries(h).forEach(([,{vars:C}])=>{$=ye($,C)}),$},generateStyleSheets:()=>{const $=[],C=e.defaultColorScheme||"light";function w(W,G){Object.keys(G).length&&$.push(typeof W=="string"?{[W]:{...G}}:W)}w(r(void 0,{...y}),y);const{[C]:B,...Y}=h;if(B){const{css:W}=B,G=a[C]?.palette?.mode,M=!n&&G?{colorScheme:G,...W}:{...W};w(r(C,{...M}),M)}return Object.entries(Y).forEach(([W,{css:G}])=>{const M=a[W]?.palette?.mode,c=!n&&M?{colorScheme:M,...G}:{...G};w(r(W,{...c}),c)}),i&&$.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)"}}),$}}}function wa(e){return function(r){return e==="media"?(process.env.NODE_ENV,`@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 Ea=mt(),Oa=Zn("div",{name:"MuiStack",slot:"Root"});function $a(e){return eo({props:e,name:"MuiStack",defaultTheme:Ea})}function ka(e,t){const r=D.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(D.cloneElement(t,{key:`separator-${i}`})),n),[])}const Aa=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Pa=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Ee({theme:t},yr({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=_t(t),o=Object.keys(t.breakpoints.values).reduce((u,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(u[f]=!0),u),{}),i=yr({values:e.direction,base:o}),a=yr({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,f,m)=>{if(!i[u]){const p=f>0?i[m[f-1]]:"column";i[u]=p}}),r=ye(r,Ee({theme:t},a,(u,f)=>e.useFlexGap?{gap:Ue(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Aa(f?i[f]:e.direction)}`]:Ue(n,u)}}))}return r=Gi(t.breakpoints,r),r};function Ia(e={}){const{createStyledComponent:t=Oa,useThemeProps:r=$a,componentName:n="MuiStack"}=e,o=()=>Pe({root:["root"]},u=>ve(n,u),{}),i=t(Pa),a=D.forwardRef(function(u,f){const m=r(u),y=Vt(m),{component:p="div",direction:b="column",spacing:h=0,divider:d,children:g,className:x,useFlexGap:A=!1,..._}=y,$={direction:b,spacing:h,useFlexGap:A},C=o();return v.jsx(i,{as:p,ownerState:$,ref:f,className:de(C.root,x),..._,children:d?ka(g,d):g})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const yt={black:"#000",white:"#fff"},Ma={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"},nt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ot={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},it={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},st={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},at={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function uo(){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:yt.white,default:yt.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 fo=uo();function po(){return{text:{primary:yt.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:yt.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 wr=po();function mo(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=Yt(e.main,o):t==="dark"&&(e.dark=Ut(e.main,i)))}function ho(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 _a(e="light"){return e==="dark"?{main:it[200],light:it[50],dark:it[400]}:{main:it[700],light:it[400],dark:it[800]}}function Na(e="light"){return e==="dark"?{main:nt[200],light:nt[50],dark:nt[400]}:{main:nt[500],light:nt[300],dark:nt[700]}}function Ra(e="light"){return e==="dark"?{main:ot[500],light:ot[300],dark:ot[700]}:{main:ot[700],light:ot[400],dark:ot[800]}}function Da(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:st[700],light:st[500],dark:st[900]}}function Ba(e="light"){return e==="dark"?{main:at[400],light:at[300],dark:at[700]}:{main:at[800],light:at[500],dark:at[900]}}function ja(e="light"){return e==="dark"?{main:bt[400],light:bt[300],dark:bt[700]}:{main:"#ed6c02",light:bt[500],dark:bt[900]}}function Va(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Er(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||_a(t),l=e.secondary||Na(t),u=e.error||Ra(t),f=e.info||Da(t),m=e.success||Ba(t),y=e.warning||ja(t);function p(g){if(o)return Va(g);const x=oo(g,wr.text.primary)>=r?wr.text.primary:fo.text.primary;return process.env.NODE_ENV!=="production"&&oo(g,x)<3,x}const b=({color:g,name:x,mainShade:A=500,lightShade:_=300,darkShade:$=700})=>{if(g={...g},!g.main&&g[A]&&(g.main=g[A]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
6
6
  The color object needs to have a \`main\` property or a \`${A}\` property.`:Ve(11,x?` (${x})`:"",A));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
7
7
  \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
8
8
 
@@ -16,15 +16,15 @@ const theme1 = createTheme({ palette: {
16
16
 
17
17
  const theme2 = createTheme({ palette: {
18
18
  primary: { main: green[500] },
19
- } });`:Ve(12,x?` (${x})`:"",JSON.stringify(g.main)));return o?(ho(o,g,"light",M,n),ho(o,g,"dark",$,n)):(mo(g,"light",M,n),mo(g,"dark",$,n)),g.contrastText||(g.contrastText=p(g.main)),g};let h;return t==="light"?h=uo():t==="dark"&&(h=po()),process.env.NODE_ENV,ye({common:{...yt},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:f,name:"info"}),success:b({color:m,name:"success"}),grey:Ma,contrastThreshold:r,getContrastText:p,augmentColor:b,tonalOffset:n,...h},i)}function za(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 Wa(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function La(e){return Math.round(e*1e5)/1e5}const go={textTransform:"uppercase"},yo='"Roboto", "Helvetica", "Arial", sans-serif';function Fa(e,t){const{fontFamily:r=yo,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:m,...y}=typeof t=="function"?t(e):t;process.env.NODE_ENV;const p=n/14,b=m||(g=>`${g/u*p}rem`),h=(g,x,A,M,$)=>({fontFamily:r,fontWeight:g,fontSize:b(x),lineHeight:A,...r===yo?{letterSpacing:`${La(M/x)}em`}:{},...$,...f}),d={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,go),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,go),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ye({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...d},y,{clone:!1})}const qa=.2,Ga=.14,Ua=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qa})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ga})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ua})`].join(",")}const Ya=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],Ha={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)"},Ka={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bo(e){return`${Math.round(e)}ms`}function Xa(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Qa(e){const t={...Ha,...e.easing},r={...Ka,...e.duration};return{getAutoHeightDuration:Xa,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:l=t.easeInOut,delay:u=0,...f}=i;if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",y=p=>!Number.isNaN(parseFloat(p));!m(o)&&Array.isArray(o),!y(a)&&m(a),m(l),!y(u)&&m(u),Object.keys(f).length}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:bo(a)} ${l} ${typeof u=="string"?u:bo(u)}`).join(",")},...e,easing:t,duration:r}}const Ja={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Za(e){return Ie(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function vo(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];!Za(l)||a.startsWith("unstable_")?delete n[a]:Ie(l)&&(n[a]={...l},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
19
+ } });`:Ve(12,x?` (${x})`:"",JSON.stringify(g.main)));return o?(ho(o,g,"light",_,n),ho(o,g,"dark",$,n)):(mo(g,"light",_,n),mo(g,"dark",$,n)),g.contrastText||(g.contrastText=p(g.main)),g};let h;return t==="light"?h=uo():t==="dark"&&(h=po()),process.env.NODE_ENV,ye({common:{...yt},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:f,name:"info"}),success:b({color:m,name:"success"}),grey:Ma,contrastThreshold:r,getContrastText:p,augmentColor:b,tonalOffset:n,...h},i)}function za(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 Wa(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function La(e){return Math.round(e*1e5)/1e5}const go={textTransform:"uppercase"},yo='"Roboto", "Helvetica", "Arial", sans-serif';function Fa(e,t){const{fontFamily:r=yo,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:m,...y}=typeof t=="function"?t(e):t;process.env.NODE_ENV;const p=n/14,b=m||(g=>`${g/u*p}rem`),h=(g,x,A,_,$)=>({fontFamily:r,fontWeight:g,fontSize:b(x),lineHeight:A,...r===yo?{letterSpacing:`${La(_/x)}em`}:{},...$,...f}),d={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,go),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,go),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ye({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...d},y,{clone:!1})}const qa=.2,Ga=.14,Ua=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qa})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ga})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ua})`].join(",")}const Ya=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],Ha={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)"},Ka={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bo(e){return`${Math.round(e)}ms`}function Xa(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Qa(e){const t={...Ha,...e.easing},r={...Ka,...e.duration};return{getAutoHeightDuration:Xa,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:l=t.easeInOut,delay:u=0,...f}=i;if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",y=p=>!Number.isNaN(parseFloat(p));!m(o)&&Array.isArray(o),!y(a)&&m(a),m(l),!y(u)&&m(u),Object.keys(f).length}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:bo(a)} ${l} ${typeof u=="string"?u:bo(u)}`).join(",")},...e,easing:t,duration:r}}const Ja={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Za(e){return Ie(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function vo(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];!Za(l)||a.startsWith("unstable_")?delete n[a]:Ie(l)&&(n[a]={...l},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
20
20
 
21
21
  const theme = ${JSON.stringify(t,null,2)};
22
22
 
23
23
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
24
24
  theme.transitions = createTransitions(theme.transitions || {});
25
25
 
26
- export default theme;`}function So(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const el=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 tl(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})`:Gt(t,el(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${So(r)})`:Yt(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${So(r)})`:Ut(t,r)}})}function Or(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:u,colorSpace:f,...m}=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.":Ve(20));const y=Er({...i,colorSpace:f}),p=mt(e);let b=ye(p,{mixins:Wa(p.breakpoints,n),palette:y,shadows:Ya.slice(),typography:Fa(y,l),transitions:Qa(a),zIndex:{...Ja}});if(b=ye(b,m),b=t.reduce((h,d)=>ye(h,d),b),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(g,x)=>{let A;for(A in g){const M=g[A];if(h.includes(A)&&Object.keys(M).length>0){if(process.env.NODE_ENV!=="production"){const $=ve("",A)}g[A]={}}}};Object.keys(b.components).forEach(g=>{const x=b.components[g].styleOverrides;x&&g.startsWith("Mui")&&d(x,g)})}return b.unstable_sxConfig={...pt,...m?.unstable_sxConfig},b.unstable_sx=function(d){return Ye({sx:d,theme:this})},b.toRuntimeSource=vo,tl(b),b}function $r(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 rl=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=$r(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Co(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function To(e){return e==="dark"?rl:[]}function nl(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Er({...t,colorSpace:o});return{palette:a,opacity:{...Co(a.mode),...r},overlays:n||To(a.mode),...i}}function ol(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const il=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],sl=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?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return il(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 al(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function S(e,t,r){!e[t]&&r&&(e[t]=r)}function vt(e){return typeof e!="string"||!e.startsWith("hsl")?e:no(e)}function Re(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gt(vt(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().
27
- 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 ll(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const _e=e=>{try{return e()}catch{}},cl=(e="mui")=>Sa(e);function kr(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=nl({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...l}=Or({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Co(i),...r?.opacity},overlays:r?.overlays||To(i)},l}function ul(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=ol,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...m}=e,y=Object.keys(r)[0],p=n||(r.light&&y!=="light"?"light":y),b=cl(i),{[p]:h,light:d,dark:g,...x}=r,A={...x};let M=h;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ve(21,p));let $;a&&($="oklch");const C=kr($,A,M,m,p);d&&!A.light&&kr($,A,d,void 0,"light"),g&&!A.dark&&kr($,A,g,void 0,"dark");let E={defaultColorScheme:p,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:f,getCssVar:b,colorSchemes:A,font:{...za(C.typography),...C.font},spacing:ll(m.spacing)};Object.keys(E.colorSchemes).forEach(I=>{const c=E.colorSchemes[I].palette,w=R=>{const _=R.split("-"),B=_[1],U=_[2];return b(R,c[B][U])};c.mode==="light"&&(S(c.common,"background","#fff"),S(c.common,"onBackground","#000")),c.mode==="dark"&&(S(c.common,"background","#000"),S(c.common,"onBackground","#fff"));function T(R,_,B){if($){let U;return R===Ke&&(U=`transparent ${((1-B)*100).toFixed(0)}%`),R===se&&(U=`#000 ${(B*100).toFixed(0)}%`),R===ae&&(U=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${$}, ${_}, ${U})`}return R(_,B)}if(al(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){S(c.Alert,"errorColor",T(se,c.error.light,.6)),S(c.Alert,"infoColor",T(se,c.info.light,.6)),S(c.Alert,"successColor",T(se,c.success.light,.6)),S(c.Alert,"warningColor",T(se,c.warning.light,.6)),S(c.Alert,"errorFilledBg",w("palette-error-main")),S(c.Alert,"infoFilledBg",w("palette-info-main")),S(c.Alert,"successFilledBg",w("palette-success-main")),S(c.Alert,"warningFilledBg",w("palette-warning-main")),S(c.Alert,"errorFilledColor",_e(()=>c.getContrastText(c.error.main))),S(c.Alert,"infoFilledColor",_e(()=>c.getContrastText(c.info.main))),S(c.Alert,"successFilledColor",_e(()=>c.getContrastText(c.success.main))),S(c.Alert,"warningFilledColor",_e(()=>c.getContrastText(c.warning.main))),S(c.Alert,"errorStandardBg",T(ae,c.error.light,.9)),S(c.Alert,"infoStandardBg",T(ae,c.info.light,.9)),S(c.Alert,"successStandardBg",T(ae,c.success.light,.9)),S(c.Alert,"warningStandardBg",T(ae,c.warning.light,.9)),S(c.Alert,"errorIconColor",w("palette-error-main")),S(c.Alert,"infoIconColor",w("palette-info-main")),S(c.Alert,"successIconColor",w("palette-success-main")),S(c.Alert,"warningIconColor",w("palette-warning-main")),S(c.AppBar,"defaultBg",w("palette-grey-100")),S(c.Avatar,"defaultBg",w("palette-grey-400")),S(c.Button,"inheritContainedBg",w("palette-grey-300")),S(c.Button,"inheritContainedHoverBg",w("palette-grey-A100")),S(c.Chip,"defaultBorder",w("palette-grey-400")),S(c.Chip,"defaultAvatarColor",w("palette-grey-700")),S(c.Chip,"defaultIconColor",w("palette-grey-700")),S(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),S(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),S(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),S(c.LinearProgress,"primaryBg",T(ae,c.primary.main,.62)),S(c.LinearProgress,"secondaryBg",T(ae,c.secondary.main,.62)),S(c.LinearProgress,"errorBg",T(ae,c.error.main,.62)),S(c.LinearProgress,"infoBg",T(ae,c.info.main,.62)),S(c.LinearProgress,"successBg",T(ae,c.success.main,.62)),S(c.LinearProgress,"warningBg",T(ae,c.warning.main,.62)),S(c.Skeleton,"bg",$?T(Ke,c.text.primary,.11):`rgba(${w("palette-text-primaryChannel")} / 0.11)`),S(c.Slider,"primaryTrack",T(ae,c.primary.main,.62)),S(c.Slider,"secondaryTrack",T(ae,c.secondary.main,.62)),S(c.Slider,"errorTrack",T(ae,c.error.main,.62)),S(c.Slider,"infoTrack",T(ae,c.info.main,.62)),S(c.Slider,"successTrack",T(ae,c.success.main,.62)),S(c.Slider,"warningTrack",T(ae,c.warning.main,.62));const R=$?T(se,c.background.default,.6825):Ht(c.background.default,.8);S(c.SnackbarContent,"bg",R),S(c.SnackbarContent,"color",_e(()=>$?wr.text.primary:c.getContrastText(R))),S(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),S(c.StepConnector,"border",w("palette-grey-400")),S(c.StepContent,"border",w("palette-grey-400")),S(c.Switch,"defaultColor",w("palette-common-white")),S(c.Switch,"defaultDisabledColor",w("palette-grey-100")),S(c.Switch,"primaryDisabledColor",T(ae,c.primary.main,.62)),S(c.Switch,"secondaryDisabledColor",T(ae,c.secondary.main,.62)),S(c.Switch,"errorDisabledColor",T(ae,c.error.main,.62)),S(c.Switch,"infoDisabledColor",T(ae,c.info.main,.62)),S(c.Switch,"successDisabledColor",T(ae,c.success.main,.62)),S(c.Switch,"warningDisabledColor",T(ae,c.warning.main,.62)),S(c.TableCell,"border",T(ae,T(Ke,c.divider,1),.88)),S(c.Tooltip,"bg",T(Ke,c.grey[700],.92))}if(c.mode==="dark"){S(c.Alert,"errorColor",T(ae,c.error.light,.6)),S(c.Alert,"infoColor",T(ae,c.info.light,.6)),S(c.Alert,"successColor",T(ae,c.success.light,.6)),S(c.Alert,"warningColor",T(ae,c.warning.light,.6)),S(c.Alert,"errorFilledBg",w("palette-error-dark")),S(c.Alert,"infoFilledBg",w("palette-info-dark")),S(c.Alert,"successFilledBg",w("palette-success-dark")),S(c.Alert,"warningFilledBg",w("palette-warning-dark")),S(c.Alert,"errorFilledColor",_e(()=>c.getContrastText(c.error.dark))),S(c.Alert,"infoFilledColor",_e(()=>c.getContrastText(c.info.dark))),S(c.Alert,"successFilledColor",_e(()=>c.getContrastText(c.success.dark))),S(c.Alert,"warningFilledColor",_e(()=>c.getContrastText(c.warning.dark))),S(c.Alert,"errorStandardBg",T(se,c.error.light,.9)),S(c.Alert,"infoStandardBg",T(se,c.info.light,.9)),S(c.Alert,"successStandardBg",T(se,c.success.light,.9)),S(c.Alert,"warningStandardBg",T(se,c.warning.light,.9)),S(c.Alert,"errorIconColor",w("palette-error-main")),S(c.Alert,"infoIconColor",w("palette-info-main")),S(c.Alert,"successIconColor",w("palette-success-main")),S(c.Alert,"warningIconColor",w("palette-warning-main")),S(c.AppBar,"defaultBg",w("palette-grey-900")),S(c.AppBar,"darkBg",w("palette-background-paper")),S(c.AppBar,"darkColor",w("palette-text-primary")),S(c.Avatar,"defaultBg",w("palette-grey-600")),S(c.Button,"inheritContainedBg",w("palette-grey-800")),S(c.Button,"inheritContainedHoverBg",w("palette-grey-700")),S(c.Chip,"defaultBorder",w("palette-grey-700")),S(c.Chip,"defaultAvatarColor",w("palette-grey-300")),S(c.Chip,"defaultIconColor",w("palette-grey-300")),S(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),S(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),S(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),S(c.LinearProgress,"primaryBg",T(se,c.primary.main,.5)),S(c.LinearProgress,"secondaryBg",T(se,c.secondary.main,.5)),S(c.LinearProgress,"errorBg",T(se,c.error.main,.5)),S(c.LinearProgress,"infoBg",T(se,c.info.main,.5)),S(c.LinearProgress,"successBg",T(se,c.success.main,.5)),S(c.LinearProgress,"warningBg",T(se,c.warning.main,.5)),S(c.Skeleton,"bg",$?T(Ke,c.text.primary,.13):`rgba(${w("palette-text-primaryChannel")} / 0.13)`),S(c.Slider,"primaryTrack",T(se,c.primary.main,.5)),S(c.Slider,"secondaryTrack",T(se,c.secondary.main,.5)),S(c.Slider,"errorTrack",T(se,c.error.main,.5)),S(c.Slider,"infoTrack",T(se,c.info.main,.5)),S(c.Slider,"successTrack",T(se,c.success.main,.5)),S(c.Slider,"warningTrack",T(se,c.warning.main,.5));const R=$?T(ae,c.background.default,.985):Ht(c.background.default,.98);S(c.SnackbarContent,"bg",R),S(c.SnackbarContent,"color",_e(()=>$?fo.text.primary:c.getContrastText(R))),S(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),S(c.StepConnector,"border",w("palette-grey-600")),S(c.StepContent,"border",w("palette-grey-600")),S(c.Switch,"defaultColor",w("palette-grey-300")),S(c.Switch,"defaultDisabledColor",w("palette-grey-600")),S(c.Switch,"primaryDisabledColor",T(se,c.primary.main,.55)),S(c.Switch,"secondaryDisabledColor",T(se,c.secondary.main,.55)),S(c.Switch,"errorDisabledColor",T(se,c.error.main,.55)),S(c.Switch,"infoDisabledColor",T(se,c.info.main,.55)),S(c.Switch,"successDisabledColor",T(se,c.success.main,.55)),S(c.Switch,"warningDisabledColor",T(se,c.warning.main,.55)),S(c.TableCell,"border",T(se,T(Ke,c.divider,1),.68)),S(c.Tooltip,"bg",T(Ke,c.grey[700],.92))}Re(c.background,"default"),Re(c.background,"paper"),Re(c.common,"background"),Re(c.common,"onBackground"),Re(c,"divider"),Object.keys(c).forEach(R=>{const _=c[R];R!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&S(c[R],"mainChannel",gt(vt(_.main))),_.light&&S(c[R],"lightChannel",gt(vt(_.light))),_.dark&&S(c[R],"darkChannel",gt(vt(_.dark))),_.contrastText&&S(c[R],"contrastTextChannel",gt(vt(_.contrastText))),R==="text"&&(Re(c[R],"primary"),Re(c[R],"secondary")),R==="action"&&(_.active&&Re(c[R],"active"),_.selected&&Re(c[R],"selected")))})}),E=t.reduce((I,c)=>ye(I,c),E);const j={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:sl(E),enableContrastVars:a},{vars:H,generateThemeVars:z,generateStyleSheets:q}=xa(E,j);return E.vars=H,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([I,c])=>{E[I]=c}),E.generateThemeVars=z,E.generateStyleSheets=q,E.generateSpacing=function(){return Hn(m.spacing,_t(this))},E.getColorSchemeSelector=wa(u),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...pt,...m?.unstable_sxConfig},E.unstable_sx=function(c){return Ye({sx:c,theme:this})},E.toRuntimeSource=vo,E}function xo(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Er({...r===!0?{}:r.palette,mode:t})})}function wo(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,l=i||"light",u=o?.[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Or(e,...t);let m=r;"palette"in e||f[l]&&(f[l]!==!0?m=f[l].palette:l==="dark"&&(m={mode:"dark"}));const y=Or({...e,palette:m},...t);return y.defaultColorScheme=l,y.colorSchemes=f,y.palette.mode==="light"&&(y.colorSchemes.light={...f.light!==!0&&f.light,palette:y.palette},xo(y,"dark",f.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:y.palette},xo(y,"light",f.light)),y}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),ul({...a,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Eo=wo();function Oo(){const e=Wt(Eo);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[Sr]||e}function dl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $o=e=>dl(e)&&e!=="classes",he=Qn({themeId:Sr,defaultTheme:Eo,rootShouldForwardProp:$o});process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Oe(e){return ya(e)}const Xe=aa({createStyledComponent:he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Oe({props:e,name:"MuiGrid"}),useTheme:Oo});if(process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:s.node,columns:s.oneOfType([s.arrayOf(s.number),s.number,s.object]),columnSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),container:s.bool,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),offset:s.oneOfType([s.string,s.number,s.arrayOf(s.oneOfType([s.string,s.number])),s.object]),rowSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),size:s.oneOfType([s.string,s.bool,s.number,s.arrayOf(s.oneOfType([s.string,s.bool,s.number])),s.object]),spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),unstable_level:s.number,wrap:s.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=Xe,t=la("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function fl(e){return e==null?{xs:12}:typeof e=="object"?e:{xs:e}}function pl(e){const t=new Set,r=n=>{const o=i=>{if(i){if(typeof i=="function"){t.add("*");return}"field"in i&&t.add(i.field),"and"in i&&Array.isArray(i.and)&&i.and.forEach(o),"or"in i&&Array.isArray(i.or)&&i.or.forEach(o),"not"in i&&o(i.not)}};o(n.visibleWhen),o(n.disabledWhen),o(n.requiredWhen),n.dependencies&&n.dependencies.forEach(i=>t.add(i))};if(r(e),e.component==="Group"&&e.columns){const n=o=>{o.forEach(i=>{r(i),i.component==="Group"&&i.columns&&n(i.columns)})};n(e.columns)}return Array.from(t)}function ml({field:e,index:t,values:r,form:n,disabled:o=!1,readOnly:i=!1,widgets:a,optionsMap:l,useGrid:u=!0}){const f=ut(e,r,o,i);if(!f.visible)return null;const m=a[e.component]??a.Text,y=l[e.name]??e.ui?.options??[],b=e.component==="Group"||e.component==="FormList"?v.jsx(m,{field:{name:e.name,value:void 0,onChange:()=>{},onBlur:()=>{},ref:()=>{}},form:n,globalDisabled:o,globalReadOnly:i,label:e.ui?.label,optionsMap:l,schema:e,widgets:a,values:r}):v.jsx(Fe.Controller,{control:n.control,name:e.name,render:({field:h,fieldState:d})=>v.jsx(m,{error:!!d.error,field:h,fieldProps:{...e.ui?.props,disabled:f.disabled,required:f.required,readOnly:f.readonly,placeholder:e.ui?.placeholder},form:n,helperText:d.error?.message??e.ui?.helperText,label:e.ui?.label,options:y,values:r,schema:e})});if(u){const h=fl(e.colSpan);return v.jsx(Xe,{size:h,children:b},`${String(e.name)}-${t}`)}return b}const ko=W.memo(ml,(e,t)=>{if(e.field!==t.field||e.index!==t.index||e.disabled!==t.disabled||e.readOnly!==t.readOnly||e.useGrid!==t.useGrid||e.widgets!==t.widgets||e.form!==t.form)return!1;const r=e.optionsMap[e.field.name],n=t.optionsMap[t.field.name];if(r!==n)return!1;const o=pl(t.field);if(o.includes("*"))return!1;for(const i of o)if(e.values[i]!==t.values[i])return!1;return!0}),Ao=({spacing:e=2,children:t})=>v.jsx(Xe,{container:!0,spacing:e,children:t}),Po=Ia({createStyledComponent:he("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Oe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Po.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const Io=({spacing:e=2,children:t})=>v.jsx(Po,{spacing:e,children:t}),$e={"& .MuiInputBase-input":{fontSize:14,padding:"8px 12px"},"& .MuiInputLabel-root":{fontSize:14,transform:"translate(14px, 9px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}},"& .MuiOutlinedInput-root":{minHeight:"40px"},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:12},"& .MuiInputLabel-asterisk":{display:"none"}},Ar="YYYY-MM-DD",Pr="YYYY-MM-DD HH:mm",hl=L.styled("ul")(({theme:e})=>({padding:e.spacing(.5),margin:0,listStyle:"none",maxHeight:260,overflow:"auto","& .MuiAutocomplete-option":{minHeight:36,padding:e.spacing(.75,1.5),display:"flex",alignItems:"center",gap:e.spacing(1),fontSize:14,borderRadius:e.shape.borderRadius,cursor:"pointer",transition:e.transitions.create(["background-color"],{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:e.palette.action.hover},'&[aria-selected="true"]':{backgroundColor:e.palette.action.selected},'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"}},"& .MuiAutocomplete-listboxStatus":{cursor:"default",pointerEvents:"none"}})),gl=W.forwardRef((e,t)=>{const{children:r,fetchingMore:n,hasMore:o=!0,showNoMore:i,empty:a,error:l,...u}=e;return v.jsxs(hl,{...u,ref:t,children:[r,a&&!n&&v.jsx(L.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:2,justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(L.Typography,{variant:"body2",color:"text.secondary",children:"暂无数据"})}),l&&v.jsx(L.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:2,color:"error.main",justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(L.Typography,{variant:"body2",children:"加载失败,请重试"})}),n&&v.jsxs(L.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:1.5,gap:1,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",color:"text.secondary",cursor:"default"},children:[v.jsx(L.CircularProgress,{size:16,color:"inherit"}),v.jsx(L.Typography,{variant:"body2",children:"加载中…"})]}),!o&&i&&!n&&!a&&v.jsx(L.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:1.5,justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(L.Typography,{variant:"caption",color:"text.disabled",children:"没有更多数据了"})})]})}),lt=({field:e,label:t,error:r,helperText:n,options:o=[],fieldProps:i,form:a,schema:l})=>{const{onChange:u,multiple:f=!1,loading:m,...y}=i??{},p=l?.ui?.remoteConfig,[b,h]=W.useState([]),[d,g]=W.useState(!1),[x,A]=W.useState(!1),[M,$]=W.useState(""),[C,E]=W.useState(!1),[j,H]=W.useState(1),[z,q]=W.useState(!0),I=p?b:o,c=p?.pageSize??20;W.useEffect(()=>{if(!p?.fetchById||!e.value)return;const U=(Array.isArray(e.value)?e.value:[e.value]).filter(K=>!b.some(O=>O.value===K));U.length!==0&&U.forEach(async K=>{try{const O=await p.fetchById(K);O&&h(k=>k.some(F=>F.value===O.value)?k:[...k,O])}catch{}})},[e.value,p,b]);const w=W.useCallback(async(B,U,K=!1)=>{if(p){K||(H(1),q(!0)),K?A(!0):g(!0),p.onLoadingChange?.(!0);try{const O=await p.fetchOptions(B,U,c);h(K?k=>{const F=O.data.filter(G=>!k.some(Y=>Y.value===G.value));return[...k,...F]}:O.data),q(O.hasMore)}catch{}finally{K?A(!1):g(!1),p.onLoadingChange?.(!1)}}},[p,c]),T=W.useRef(null);W.useEffect(()=>{C&&p&&w(M,1,!1)},[C]);const R=(B,U,K)=>{$(U),p&&(T.current&&clearTimeout(T.current),(K==="input"||K==="clear")&&(T.current=setTimeout(()=>{w(U,1,!1)},p.debounceTimeout??500)))};W.useEffect(()=>()=>{T.current&&clearTimeout(T.current)},[]);const _=B=>{const U=B.currentTarget;if(!d&&!x&&z&&U.scrollTop+U.clientHeight>=U.scrollHeight-20){const K=j+1;H(K),w(M,K,!0)}};return v.jsx(L.FormControl,{fullWidth:!0,error:r,required:y?.required,disabled:y?.disabled,size:"small",sx:$e,children:v.jsx(L.Autocomplete,{multiple:f,disableCloseOnSelect:f,open:C,onOpen:()=>E(!0),onClose:()=>E(!1),inputValue:p?M:void 0,onInputChange:p?R:void 0,options:I,loading:d||m,filterOptions:p?B=>B:void 0,value:f?I.filter(B=>(e.value??[]).includes(B.value)):I.find(B=>B.value===e.value)??null,onChange:(B,U)=>{const K=f?U.map(O=>O.value):U?.value??null;e.onChange(K),typeof u=="function"&&u(B,U),a?.trigger(e.name)},slots:{listbox:p?gl:void 0},slotProps:{listbox:{onScroll:p?_:void 0,style:{maxHeight:260},...p?{fetchingMore:x,hasMore:z,showNoMore:b.length>0,empty:b.length===0&&!d&&!x,error:!1}:{}},chip:{size:"small",variant:"outlined",sx:{height:22,fontSize:12,borderRadius:1,backgroundColor:"background.paper","& .MuiChip-label":{px:.75},"& .MuiChip-deleteIcon":{fontSize:16,marginRight:.25}}}},getOptionLabel:B=>B?.label??"",isOptionEqualToValue:(B,U)=>B?.value===U?.value,size:"small",disabled:y?.disabled,renderInput:B=>v.jsx(L.TextField,{...B,error:r,fullWidth:!0,helperText:n,label:t,onBlur:()=>{e.onBlur?.(),a?.trigger(e.name)},required:y?.required,size:"small",sx:$e,slotProps:{input:{...B.InputProps,endAdornment:v.jsxs(v.Fragment,{children:[d||m?v.jsx(L.CircularProgress,{color:"inherit",size:20}):null,B.InputProps.endAdornment]})}}})})})},Te=(e,t)=>t?v.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[v.jsx("span",{style:{color:"#d32f2f",marginRight:"4px",fontSize:"20px",fontWeight:"bold",lineHeight:"1",paddingTop:"4px"},children:"*"}),e]}):e,Ir=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsxs(L.FormControl,{error:r,required:o?.required,component:"fieldset",children:[v.jsx(L.FormControlLabel,{control:v.jsx(L.Checkbox,{checked:e.value??!1,disabled:o?.disabled,onChange:i=>e.onChange(i.target.checked),inputRef:e.ref}),label:Te(t,o?.required)}),n&&v.jsx(L.FormHelperText,{children:n})]}),Mr=({field:e,label:t,error:r,helperText:n,fieldProps:o,form:i,values:a})=>{const{children:l,component:u,...f}=o??{};return l!==void 0?typeof l=="function"?l({field:e,label:t,error:r,helperText:n,form:i,values:a,fieldProps:f}):v.jsx(v.Fragment,{children:l}):u?v.jsx(u,{field:e,label:t,error:r,helperText:n,form:i,values:a,...f}):v.jsx(L.TextField,{...e,label:Te(t,f?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,...f})},_r=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(ri.DateTimePicker,{value:e.value?an(e.value):null,onChange:i=>e.onChange(i?.isValid()?i.format(Pr):""),format:Pr,disabled:o?.disabled,slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e}},...o})}),Nr=({field:e,label:t,error:r,helperText:n,fieldProps:o,form:i})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(ni.DatePicker,{value:e.value?an(e.value):null,onChange:a=>e.onChange(a?.isValid()?a.format(Ar):""),onClose:()=>i?.trigger(e.name),format:Ar,disabled:o?.disabled,slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e,onBlur:()=>i?.trigger(e.name)}},...o})});function yl(){return Vt}const ke=va;function bl(e){return ve("MuiSvgIcon",e)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vl=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(r)}`]};return Pe(o,bl,n)},Sl=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${re(r.color)}`],t[`fontSize${re(r.fontSize)}`]]}})(ke(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Kt=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:y,viewBox:p="0 0 24 24",...b}=n,h=D.isValidElement(o)&&o.type==="svg",d={...n,color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:p,hasSvgAsChild:h},g={};m||(g.viewBox=p);const x=vl(d);return v.jsxs(Sl,{as:l,className:de(x.root,i),focusable:"false",color:f,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:r,...g,...b,...h&&o.props,ownerState:d,children:[h?o.props.children:o,y?v.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(Kt.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),Kt.muiName="SvgIcon";function Rr(e,t){function r(n,o){return v.jsx(Kt,{"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=Kt.muiName,D.memo(D.forwardRef(r))}function Xt(e){const t=D.useRef(e);return ua(()=>{t.current=e}),D.useRef((...r)=>(0,t.current)(...r)).current}function Mo(...e){const t=D.useRef(void 0),r=D.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(n);return typeof l=="function"?l:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return D.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Cl=Rr(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Tl=Rr(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),xl=Rr(v.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"),wl=Me("MuiBox",["root"]),El=wo(),Qt=ca({themeId:Sr,defaultTheme:El,defaultClassName:wl.root,generateClassName:Pn.generate});process.env.NODE_ENV!=="production"&&(Qt.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ol=s.oneOfType([s.func,s.object]);function Jt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function $l(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kl(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!$l(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Al=Jt(s.elementType,kl);function _o(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&window.navigator.userAgent.includes("jsdom")}return!1}const No={};function Ro(e,t){const r=D.useRef(No);return r.current===No&&(r.current=e(t)),r}class Zt{static create(){return new Zt}static use(){const t=Ro(Zt.create).current,[r,n]=D.useState(!1);return t.shouldMount=r,t.setShouldMount=n,D.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Il(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Pl(){return Zt.use()}function Il(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(null,arguments)}function Ml(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Br(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}const Do=W.createContext(null);function Nl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e,t){var r=function(i){return t&&W.isValidElement(i)?t(i):i},n=Object.create(null);return e&&W.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Rl(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(n[u])for(a=0;a<n[u].length;a++){var f=n[u][a];l[n[u][a]]=r(f)}l[u]=r(u)}for(a=0;a<o.length;a++)l[o[a]]=r(o[a]);return l}function Qe(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Dl(e,t){return jr(e.children,function(r){return W.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Qe(r,"appear",e),enter:Qe(r,"enter",e),exit:Qe(r,"exit",e)})})}function Bl(e,t,r){var n=jr(e.children),o=Rl(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(W.isValidElement(a)){var l=i in t,u=i in n,f=t[i],m=W.isValidElement(f)&&!f.props.in;u&&(!l||m)?o[i]=W.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Qe(a,"exit",e),enter:Qe(a,"enter",e)}):!u&&l&&!m?o[i]=W.cloneElement(a,{in:!1}):u&&l&&W.isValidElement(f)&&(o[i]=W.cloneElement(a,{onExited:r.bind(null,a),in:f.props.in,exit:Qe(a,"exit",e),enter:Qe(a,"enter",e)}))}}),o}var jl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Vl={component:"div",childFactory:function(t){return t}},Vr=(function(e){_l(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(Nl(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,u=i.firstRender;return{children:u?Dl(o,l):Bl(o,a,l),firstRender:!1}},r.handleExited=function(o,i){var a=jr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var u=Dr({},l.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=Ml(o,["component","childFactory"]),u=this.state.contextValue,f=jl(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?W.createElement(Do.Provider,{value:u},f):W.createElement(Do.Provider,{value:u},W.createElement(i,l,f))},t})(W.Component);Vr.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},Vr.defaultProps=Vl;const zl=[];function Wl(e){D.useEffect(e,zl)}class zr{static create(){return new zr}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ll(){const e=Ro(zr.create).current;return Wl(e.disposeEffect),e}function Bo(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:u,timeout:f}=e,[m,y]=D.useState(!1),p=de(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=de(r.child,m&&r.childLeaving,n&&r.childPulsate);return!l&&!m&&y(!0),D.useEffect(()=>{if(!l&&u!=null){const d=setTimeout(u,f);return()=>{clearTimeout(d)}}},[u,l,f]),v.jsx("span",{className:p,style:b,children:v.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(Bo.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const xe=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wr=550,Fl=80,ql=Be.keyframes`
26
+ export default theme;`}function So(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const el=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 tl(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})`:Gt(t,el(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${So(r)})`:Yt(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${So(r)})`:Ut(t,r)}})}function Or(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:u,colorSpace:f,...m}=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.":Ve(20));const y=Er({...i,colorSpace:f}),p=mt(e);let b=ye(p,{mixins:Wa(p.breakpoints,n),palette:y,shadows:Ya.slice(),typography:Fa(y,l),transitions:Qa(a),zIndex:{...Ja}});if(b=ye(b,m),b=t.reduce((h,d)=>ye(h,d),b),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(g,x)=>{let A;for(A in g){const _=g[A];if(h.includes(A)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const $=ve("",A)}g[A]={}}}};Object.keys(b.components).forEach(g=>{const x=b.components[g].styleOverrides;x&&g.startsWith("Mui")&&d(x,g)})}return b.unstable_sxConfig={...pt,...m?.unstable_sxConfig},b.unstable_sx=function(d){return Ye({sx:d,theme:this})},b.toRuntimeSource=vo,tl(b),b}function $r(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 rl=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=$r(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Co(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function To(e){return e==="dark"?rl:[]}function nl(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Er({...t,colorSpace:o});return{palette:a,opacity:{...Co(a.mode),...r},overlays:n||To(a.mode),...i}}function ol(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const il=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],sl=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?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return il(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 al(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function S(e,t,r){!e[t]&&r&&(e[t]=r)}function vt(e){return typeof e!="string"||!e.startsWith("hsl")?e:no(e)}function Re(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gt(vt(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().
27
+ 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 ll(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const _e=e=>{try{return e()}catch{}},cl=(e="mui")=>Sa(e);function kr(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=nl({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...l}=Or({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Co(i),...r?.opacity},overlays:r?.overlays||To(i)},l}function ul(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=ol,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...m}=e,y=Object.keys(r)[0],p=n||(r.light&&y!=="light"?"light":y),b=cl(i),{[p]:h,light:d,dark:g,...x}=r,A={...x};let _=h;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ve(21,p));let $;a&&($="oklch");const C=kr($,A,_,m,p);d&&!A.light&&kr($,A,d,void 0,"light"),g&&!A.dark&&kr($,A,g,void 0,"dark");let w={defaultColorScheme:p,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:f,getCssVar:b,colorSchemes:A,font:{...za(C.typography),...C.font},spacing:ll(m.spacing)};Object.keys(w.colorSchemes).forEach(M=>{const c=w.colorSchemes[M].palette,E=I=>{const N=I.split("-"),H=N[1],L=N[2];return b(I,c[H][L])};c.mode==="light"&&(S(c.common,"background","#fff"),S(c.common,"onBackground","#000")),c.mode==="dark"&&(S(c.common,"background","#000"),S(c.common,"onBackground","#fff"));function T(I,N,H){if($){let L;return I===Ke&&(L=`transparent ${((1-H)*100).toFixed(0)}%`),I===se&&(L=`#000 ${(H*100).toFixed(0)}%`),I===ae&&(L=`#fff ${(H*100).toFixed(0)}%`),`color-mix(in ${$}, ${N}, ${L})`}return I(N,H)}if(al(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){S(c.Alert,"errorColor",T(se,c.error.light,.6)),S(c.Alert,"infoColor",T(se,c.info.light,.6)),S(c.Alert,"successColor",T(se,c.success.light,.6)),S(c.Alert,"warningColor",T(se,c.warning.light,.6)),S(c.Alert,"errorFilledBg",E("palette-error-main")),S(c.Alert,"infoFilledBg",E("palette-info-main")),S(c.Alert,"successFilledBg",E("palette-success-main")),S(c.Alert,"warningFilledBg",E("palette-warning-main")),S(c.Alert,"errorFilledColor",_e(()=>c.getContrastText(c.error.main))),S(c.Alert,"infoFilledColor",_e(()=>c.getContrastText(c.info.main))),S(c.Alert,"successFilledColor",_e(()=>c.getContrastText(c.success.main))),S(c.Alert,"warningFilledColor",_e(()=>c.getContrastText(c.warning.main))),S(c.Alert,"errorStandardBg",T(ae,c.error.light,.9)),S(c.Alert,"infoStandardBg",T(ae,c.info.light,.9)),S(c.Alert,"successStandardBg",T(ae,c.success.light,.9)),S(c.Alert,"warningStandardBg",T(ae,c.warning.light,.9)),S(c.Alert,"errorIconColor",E("palette-error-main")),S(c.Alert,"infoIconColor",E("palette-info-main")),S(c.Alert,"successIconColor",E("palette-success-main")),S(c.Alert,"warningIconColor",E("palette-warning-main")),S(c.AppBar,"defaultBg",E("palette-grey-100")),S(c.Avatar,"defaultBg",E("palette-grey-400")),S(c.Button,"inheritContainedBg",E("palette-grey-300")),S(c.Button,"inheritContainedHoverBg",E("palette-grey-A100")),S(c.Chip,"defaultBorder",E("palette-grey-400")),S(c.Chip,"defaultAvatarColor",E("palette-grey-700")),S(c.Chip,"defaultIconColor",E("palette-grey-700")),S(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),S(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),S(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),S(c.LinearProgress,"primaryBg",T(ae,c.primary.main,.62)),S(c.LinearProgress,"secondaryBg",T(ae,c.secondary.main,.62)),S(c.LinearProgress,"errorBg",T(ae,c.error.main,.62)),S(c.LinearProgress,"infoBg",T(ae,c.info.main,.62)),S(c.LinearProgress,"successBg",T(ae,c.success.main,.62)),S(c.LinearProgress,"warningBg",T(ae,c.warning.main,.62)),S(c.Skeleton,"bg",$?T(Ke,c.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),S(c.Slider,"primaryTrack",T(ae,c.primary.main,.62)),S(c.Slider,"secondaryTrack",T(ae,c.secondary.main,.62)),S(c.Slider,"errorTrack",T(ae,c.error.main,.62)),S(c.Slider,"infoTrack",T(ae,c.info.main,.62)),S(c.Slider,"successTrack",T(ae,c.success.main,.62)),S(c.Slider,"warningTrack",T(ae,c.warning.main,.62));const I=$?T(se,c.background.default,.6825):Ht(c.background.default,.8);S(c.SnackbarContent,"bg",I),S(c.SnackbarContent,"color",_e(()=>$?wr.text.primary:c.getContrastText(I))),S(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),S(c.StepConnector,"border",E("palette-grey-400")),S(c.StepContent,"border",E("palette-grey-400")),S(c.Switch,"defaultColor",E("palette-common-white")),S(c.Switch,"defaultDisabledColor",E("palette-grey-100")),S(c.Switch,"primaryDisabledColor",T(ae,c.primary.main,.62)),S(c.Switch,"secondaryDisabledColor",T(ae,c.secondary.main,.62)),S(c.Switch,"errorDisabledColor",T(ae,c.error.main,.62)),S(c.Switch,"infoDisabledColor",T(ae,c.info.main,.62)),S(c.Switch,"successDisabledColor",T(ae,c.success.main,.62)),S(c.Switch,"warningDisabledColor",T(ae,c.warning.main,.62)),S(c.TableCell,"border",T(ae,T(Ke,c.divider,1),.88)),S(c.Tooltip,"bg",T(Ke,c.grey[700],.92))}if(c.mode==="dark"){S(c.Alert,"errorColor",T(ae,c.error.light,.6)),S(c.Alert,"infoColor",T(ae,c.info.light,.6)),S(c.Alert,"successColor",T(ae,c.success.light,.6)),S(c.Alert,"warningColor",T(ae,c.warning.light,.6)),S(c.Alert,"errorFilledBg",E("palette-error-dark")),S(c.Alert,"infoFilledBg",E("palette-info-dark")),S(c.Alert,"successFilledBg",E("palette-success-dark")),S(c.Alert,"warningFilledBg",E("palette-warning-dark")),S(c.Alert,"errorFilledColor",_e(()=>c.getContrastText(c.error.dark))),S(c.Alert,"infoFilledColor",_e(()=>c.getContrastText(c.info.dark))),S(c.Alert,"successFilledColor",_e(()=>c.getContrastText(c.success.dark))),S(c.Alert,"warningFilledColor",_e(()=>c.getContrastText(c.warning.dark))),S(c.Alert,"errorStandardBg",T(se,c.error.light,.9)),S(c.Alert,"infoStandardBg",T(se,c.info.light,.9)),S(c.Alert,"successStandardBg",T(se,c.success.light,.9)),S(c.Alert,"warningStandardBg",T(se,c.warning.light,.9)),S(c.Alert,"errorIconColor",E("palette-error-main")),S(c.Alert,"infoIconColor",E("palette-info-main")),S(c.Alert,"successIconColor",E("palette-success-main")),S(c.Alert,"warningIconColor",E("palette-warning-main")),S(c.AppBar,"defaultBg",E("palette-grey-900")),S(c.AppBar,"darkBg",E("palette-background-paper")),S(c.AppBar,"darkColor",E("palette-text-primary")),S(c.Avatar,"defaultBg",E("palette-grey-600")),S(c.Button,"inheritContainedBg",E("palette-grey-800")),S(c.Button,"inheritContainedHoverBg",E("palette-grey-700")),S(c.Chip,"defaultBorder",E("palette-grey-700")),S(c.Chip,"defaultAvatarColor",E("palette-grey-300")),S(c.Chip,"defaultIconColor",E("palette-grey-300")),S(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),S(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),S(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),S(c.LinearProgress,"primaryBg",T(se,c.primary.main,.5)),S(c.LinearProgress,"secondaryBg",T(se,c.secondary.main,.5)),S(c.LinearProgress,"errorBg",T(se,c.error.main,.5)),S(c.LinearProgress,"infoBg",T(se,c.info.main,.5)),S(c.LinearProgress,"successBg",T(se,c.success.main,.5)),S(c.LinearProgress,"warningBg",T(se,c.warning.main,.5)),S(c.Skeleton,"bg",$?T(Ke,c.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),S(c.Slider,"primaryTrack",T(se,c.primary.main,.5)),S(c.Slider,"secondaryTrack",T(se,c.secondary.main,.5)),S(c.Slider,"errorTrack",T(se,c.error.main,.5)),S(c.Slider,"infoTrack",T(se,c.info.main,.5)),S(c.Slider,"successTrack",T(se,c.success.main,.5)),S(c.Slider,"warningTrack",T(se,c.warning.main,.5));const I=$?T(ae,c.background.default,.985):Ht(c.background.default,.98);S(c.SnackbarContent,"bg",I),S(c.SnackbarContent,"color",_e(()=>$?fo.text.primary:c.getContrastText(I))),S(c.SpeedDialAction,"fabHoverBg",Ht(c.background.paper,.15)),S(c.StepConnector,"border",E("palette-grey-600")),S(c.StepContent,"border",E("palette-grey-600")),S(c.Switch,"defaultColor",E("palette-grey-300")),S(c.Switch,"defaultDisabledColor",E("palette-grey-600")),S(c.Switch,"primaryDisabledColor",T(se,c.primary.main,.55)),S(c.Switch,"secondaryDisabledColor",T(se,c.secondary.main,.55)),S(c.Switch,"errorDisabledColor",T(se,c.error.main,.55)),S(c.Switch,"infoDisabledColor",T(se,c.info.main,.55)),S(c.Switch,"successDisabledColor",T(se,c.success.main,.55)),S(c.Switch,"warningDisabledColor",T(se,c.warning.main,.55)),S(c.TableCell,"border",T(se,T(Ke,c.divider,1),.68)),S(c.Tooltip,"bg",T(Ke,c.grey[700],.92))}Re(c.background,"default"),Re(c.background,"paper"),Re(c.common,"background"),Re(c.common,"onBackground"),Re(c,"divider"),Object.keys(c).forEach(I=>{const N=c[I];I!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&S(c[I],"mainChannel",gt(vt(N.main))),N.light&&S(c[I],"lightChannel",gt(vt(N.light))),N.dark&&S(c[I],"darkChannel",gt(vt(N.dark))),N.contrastText&&S(c[I],"contrastTextChannel",gt(vt(N.contrastText))),I==="text"&&(Re(c[I],"primary"),Re(c[I],"secondary")),I==="action"&&(N.active&&Re(c[I],"active"),N.selected&&Re(c[I],"selected")))})}),w=t.reduce((M,c)=>ye(M,c),w);const B={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:sl(w),enableContrastVars:a},{vars:Y,generateThemeVars:W,generateStyleSheets:G}=xa(w,B);return w.vars=Y,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([M,c])=>{w[M]=c}),w.generateThemeVars=W,w.generateStyleSheets=G,w.generateSpacing=function(){return Hn(m.spacing,_t(this))},w.getColorSchemeSelector=wa(u),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=l,w.unstable_sxConfig={...pt,...m?.unstable_sxConfig},w.unstable_sx=function(c){return Ye({sx:c,theme:this})},w.toRuntimeSource=vo,w}function xo(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Er({...r===!0?{}:r.palette,mode:t})})}function wo(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,l=i||"light",u=o?.[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Or(e,...t);let m=r;"palette"in e||f[l]&&(f[l]!==!0?m=f[l].palette:l==="dark"&&(m={mode:"dark"}));const y=Or({...e,palette:m},...t);return y.defaultColorScheme=l,y.colorSchemes=f,y.palette.mode==="light"&&(y.colorSchemes.light={...f.light!==!0&&f.light,palette:y.palette},xo(y,"dark",f.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:y.palette},xo(y,"light",f.light)),y}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),ul({...a,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Eo=wo();function Oo(){const e=Wt(Eo);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[Sr]||e}function dl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $o=e=>dl(e)&&e!=="classes",he=Qn({themeId:Sr,defaultTheme:Eo,rootShouldForwardProp:$o});process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Oe(e){return ya(e)}const Xe=aa({createStyledComponent:he("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Oe({props:e,name:"MuiGrid"}),useTheme:Oo});if(process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:s.node,columns:s.oneOfType([s.arrayOf(s.number),s.number,s.object]),columnSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),container:s.bool,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),offset:s.oneOfType([s.string,s.number,s.arrayOf(s.oneOfType([s.string,s.number])),s.object]),rowSpacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),size:s.oneOfType([s.string,s.bool,s.number,s.arrayOf(s.oneOfType([s.string,s.bool,s.number])),s.object]),spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),unstable_level:s.number,wrap:s.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=Xe,t=la("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function fl(e){return e==null?{xs:12}:typeof e=="object"?e:{xs:e}}function pl(e){const t=new Set,r=n=>{const o=i=>{if(i){if(typeof i=="function"){t.add("*");return}"field"in i&&t.add(i.field),"and"in i&&Array.isArray(i.and)&&i.and.forEach(o),"or"in i&&Array.isArray(i.or)&&i.or.forEach(o),"not"in i&&o(i.not)}};o(n.visibleWhen),o(n.disabledWhen),o(n.requiredWhen),n.dependencies&&n.dependencies.forEach(i=>t.add(i))};if(r(e),e.component==="Group"&&e.columns){const n=o=>{o.forEach(i=>{r(i),i.component==="Group"&&i.columns&&n(i.columns)})};n(e.columns)}return Array.from(t)}function ml({field:e,index:t,values:r,form:n,disabled:o=!1,readOnly:i=!1,widgets:a,optionsMap:l,useGrid:u=!0}){const f=ut(e,r,o,i);if(!f.visible)return null;const m=a[e.component]??a.Text,y=l[e.name]??e.ui?.options??[],b=e.component==="Group"||e.component==="FormList"?v.jsx(m,{field:{name:e.name,value:void 0,onChange:()=>{},onBlur:()=>{},ref:()=>{}},form:n,globalDisabled:o,globalReadOnly:i,label:e.ui?.label,optionsMap:l,schema:e,widgets:a,values:r}):v.jsx(Fe.Controller,{control:n.control,name:e.name,render:({field:h,fieldState:d})=>v.jsx(m,{error:!!d.error,field:h,fieldProps:{...e.ui?.props,disabled:f.disabled,required:f.required,readOnly:f.readonly,placeholder:e.ui?.placeholder},form:n,helperText:d.error?.message??e.ui?.helperText,label:e.ui?.label,options:y,values:r,schema:e})});if(u){const h=fl(e.colSpan);return v.jsx(Xe,{size:h,children:b},`${String(e.name)}-${t}`)}return b}const ko=z.memo(ml,(e,t)=>{if(e.field!==t.field||e.index!==t.index||e.disabled!==t.disabled||e.readOnly!==t.readOnly||e.useGrid!==t.useGrid||e.widgets!==t.widgets||e.form!==t.form)return!1;const r=e.optionsMap[e.field.name],n=t.optionsMap[t.field.name];if(r!==n)return!1;const o=pl(t.field);if(o.includes("*"))return!1;for(const i of o)if(e.values[i]!==t.values[i])return!1;return!0}),Ao=({spacing:e=2,children:t})=>v.jsx(Xe,{container:!0,spacing:e,children:t}),Po=Ia({createStyledComponent:he("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Oe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Po.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const Io=({spacing:e=2,children:t})=>v.jsx(Po,{spacing:e,children:t}),$e={"& .MuiInputBase-input":{fontSize:14,padding:"8px 12px"},"& .MuiInputLabel-root":{fontSize:14,transform:"translate(14px, 9px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}},"& .MuiOutlinedInput-root":{minHeight:"40px"},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:12},"& .MuiInputLabel-asterisk":{display:"none"}},Ar="YYYY-MM-DD",Pr="YYYY-MM-DD HH:mm",hl=q.styled("ul")(({theme:e})=>({padding:e.spacing(.5),margin:0,listStyle:"none",maxHeight:260,overflow:"auto","& .MuiAutocomplete-option":{minHeight:36,padding:e.spacing(.75,1.5),display:"flex",alignItems:"center",gap:e.spacing(1),fontSize:14,borderRadius:e.shape.borderRadius,cursor:"pointer",transition:e.transitions.create(["background-color"],{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:e.palette.action.hover},'&[aria-selected="true"]':{backgroundColor:e.palette.action.selected},'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"}},"& .MuiAutocomplete-listboxStatus":{cursor:"default",pointerEvents:"none"}})),gl=z.forwardRef((e,t)=>{const{children:r,fetchingMore:n,hasMore:o=!0,showNoMore:i,empty:a,error:l,...u}=e;return v.jsxs(hl,{...u,ref:t,children:[r,a&&!n&&v.jsx(q.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:2,justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(q.Typography,{variant:"body2",color:"text.secondary",children:"暂无数据"})}),l&&v.jsx(q.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:2,color:"error.main",justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(q.Typography,{variant:"body2",children:"加载失败,请重试"})}),n&&v.jsxs(q.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:1.5,gap:1,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",color:"text.secondary",cursor:"default"},children:[v.jsx(q.CircularProgress,{size:16,color:"inherit"}),v.jsx(q.Typography,{variant:"body2",children:"加载中…"})]}),!o&&i&&!n&&!a&&v.jsx(q.Box,{component:"li",className:"MuiAutocomplete-option MuiAutocomplete-listboxStatus",sx:{py:1.5,justifyContent:"center",pointerEvents:"none",cursor:"default"},children:v.jsx(q.Typography,{variant:"caption",color:"text.disabled",children:"没有更多数据了"})})]})}),lt=({field:e,label:t,error:r,helperText:n,options:o=[],fieldProps:i,form:a,schema:l})=>{const{onChange:u,multiple:f=!1,loading:m,...y}=i??{},p=l?.ui?.remoteConfig,b=z.useRef(p);b.current=p;const[h,d]=z.useState([]),[g,x]=z.useState(!1),[A,_]=z.useState(!1),[$,C]=z.useState(""),[w,B]=z.useState(!1),[Y,W]=z.useState(1),[G,M]=z.useState(!0),c=p?h:o,E=p?.pageSize??20;z.useEffect(()=>{const L=b.current;if(!L?.fetchById||!e.value)return;const O=(Array.isArray(e.value)?e.value:[e.value]).filter(k=>!h.some(V=>V.value==k));O.length!==0&&O.forEach(async k=>{try{const V=await L.fetchById(k);V&&d(F=>F.some(U=>U.value==V.value)?F:[...F,V])}catch{}})},[e.value,h]);const T=z.useCallback(async(L,K,O=!1)=>{if(p){O||(W(1),M(!0)),O?_(!0):x(!0),p.onLoadingChange?.(!0);try{const k=await p.fetchOptions(L,K,E);d(O?V=>{const F=k.data.filter(U=>!V.some(Z=>Z.value===U.value));return[...V,...F]}:k.data),M(k.hasMore)}catch{}finally{O?_(!1):x(!1),p.onLoadingChange?.(!1)}}},[p,E]),I=z.useRef(null);z.useEffect(()=>{w&&p&&T($,1,!1)},[w]);const N=(L,K,O)=>{C(K),p&&(I.current&&clearTimeout(I.current),(O==="input"||O==="clear")&&(I.current=setTimeout(()=>{T(K,1,!1)},p.debounceTimeout??500)))};z.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const H=L=>{const K=L.currentTarget;if(!g&&!A&&G&&K.scrollTop+K.clientHeight>=K.scrollHeight-20){const O=Y+1;W(O),T($,O,!0)}};return v.jsx(q.FormControl,{fullWidth:!0,error:r,required:y?.required,disabled:y?.disabled,size:"small",sx:$e,children:v.jsx(q.Autocomplete,{multiple:f,disableCloseOnSelect:f,open:w,onOpen:()=>B(!0),onClose:()=>B(!1),inputValue:p?$:void 0,onInputChange:p?N:void 0,options:c,loading:g||m,filterOptions:p?L=>L:void 0,value:f?c.filter(L=>(e.value??[]).includes(L.value)):c.find(L=>L.value===e.value)??null,onChange:(L,K)=>{const O=f?K.map(k=>k.value):K?.value??null;e.onChange(O),typeof u=="function"&&u(L,K),a?.trigger(e.name)},slots:{listbox:p?gl:void 0},slotProps:{listbox:{onScroll:p?H:void 0,style:{maxHeight:260},...p?{fetchingMore:A,hasMore:G,showNoMore:h.length>0,empty:h.length===0&&!g&&!A,error:!1}:{}},chip:{size:"small",variant:"outlined",sx:{height:22,fontSize:12,borderRadius:1,backgroundColor:"background.paper","& .MuiChip-label":{px:.75},"& .MuiChip-deleteIcon":{fontSize:16,marginRight:.25}}}},getOptionLabel:L=>L?.label??"",isOptionEqualToValue:(L,K)=>L?.value===K?.value,size:"small",disabled:y?.disabled,renderInput:L=>v.jsx(q.TextField,{...L,error:r,fullWidth:!0,helperText:n,label:t,onBlur:()=>{e.onBlur?.(),a?.trigger(e.name)},required:y?.required,size:"small",sx:$e,slotProps:{input:{...L.InputProps,endAdornment:v.jsxs(v.Fragment,{children:[g||m?v.jsx(q.CircularProgress,{color:"inherit",size:20}):null,L.InputProps.endAdornment]})}}})})})},Te=(e,t)=>t?v.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[v.jsx("span",{style:{color:"#d32f2f",marginRight:"4px",fontSize:"20px",fontWeight:"bold",lineHeight:"1",paddingTop:"4px"},children:"*"}),e]}):e,Ir=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsxs(q.FormControl,{error:r,required:o?.required,component:"fieldset",children:[v.jsx(q.FormControlLabel,{control:v.jsx(q.Checkbox,{checked:e.value??!1,disabled:o?.disabled,onChange:i=>e.onChange(i.target.checked),inputRef:e.ref}),label:Te(t,o?.required)}),n&&v.jsx(q.FormHelperText,{children:n})]}),Mr=({field:e,label:t,error:r,helperText:n,fieldProps:o,form:i,values:a})=>{const{children:l,component:u,...f}=o??{};return l!==void 0?typeof l=="function"?l({field:e,label:t,error:r,helperText:n,form:i,values:a,fieldProps:f}):v.jsx(v.Fragment,{children:l}):u?v.jsx(u,{field:e,label:t,error:r,helperText:n,form:i,values:a,...f}):v.jsx(q.TextField,{...e,label:Te(t,f?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,...f})},_r=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(ri.DateTimePicker,{value:e.value?an(e.value):null,onChange:i=>e.onChange(i?.isValid()?i.format(Pr):""),format:Pr,disabled:o?.disabled,slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e}},...o})}),Nr=({field:e,label:t,error:r,helperText:n,fieldProps:o,form:i})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(ni.DatePicker,{value:e.value?an(e.value):null,onChange:a=>e.onChange(a?.isValid()?a.format(Ar):""),onClose:()=>i?.trigger(e.name),format:Ar,disabled:o?.disabled,slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e,onBlur:()=>i?.trigger(e.name)}},...o})});function yl(){return Vt}const ke=va;function bl(e){return ve("MuiSvgIcon",e)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vl=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(r)}`]};return Pe(o,bl,n)},Sl=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${re(r.color)}`],t[`fontSize${re(r.fontSize)}`]]}})(ke(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Kt=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:y,viewBox:p="0 0 24 24",...b}=n,h=D.isValidElement(o)&&o.type==="svg",d={...n,color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:p,hasSvgAsChild:h},g={};m||(g.viewBox=p);const x=vl(d);return v.jsxs(Sl,{as:l,className:de(x.root,i),focusable:"false",color:f,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:r,...g,...b,...h&&o.props,ownerState:d,children:[h?o.props.children:o,y?v.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(Kt.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),Kt.muiName="SvgIcon";function Rr(e,t){function r(n,o){return v.jsx(Kt,{"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=Kt.muiName,D.memo(D.forwardRef(r))}function Xt(e){const t=D.useRef(e);return ua(()=>{t.current=e}),D.useRef((...r)=>(0,t.current)(...r)).current}function Mo(...e){const t=D.useRef(void 0),r=D.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(n);return typeof l=="function"?l:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return D.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Cl=Rr(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Tl=Rr(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),xl=Rr(v.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"),wl=Me("MuiBox",["root"]),El=wo(),Qt=ca({themeId:Sr,defaultTheme:El,defaultClassName:wl.root,generateClassName:Pn.generate});process.env.NODE_ENV!=="production"&&(Qt.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ol=s.oneOfType([s.func,s.object]);function Jt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function $l(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kl(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!$l(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Al=Jt(s.elementType,kl);function _o(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&window.navigator.userAgent.includes("jsdom")}return!1}const No={};function Ro(e,t){const r=D.useRef(No);return r.current===No&&(r.current=e(t)),r}class Zt{static create(){return new Zt}static use(){const t=Ro(Zt.create).current,[r,n]=D.useState(!1);return t.shouldMount=r,t.setShouldMount=n,D.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Il(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Pl(){return Zt.use()}function Il(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(null,arguments)}function Ml(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Br(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Br(e,t)}const Do=z.createContext(null);function Nl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e,t){var r=function(i){return t&&z.isValidElement(i)?t(i):i},n=Object.create(null);return e&&z.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function Rl(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(n[u])for(a=0;a<n[u].length;a++){var f=n[u][a];l[n[u][a]]=r(f)}l[u]=r(u)}for(a=0;a<o.length;a++)l[o[a]]=r(o[a]);return l}function Qe(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Dl(e,t){return jr(e.children,function(r){return z.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Qe(r,"appear",e),enter:Qe(r,"enter",e),exit:Qe(r,"exit",e)})})}function Bl(e,t,r){var n=jr(e.children),o=Rl(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(z.isValidElement(a)){var l=i in t,u=i in n,f=t[i],m=z.isValidElement(f)&&!f.props.in;u&&(!l||m)?o[i]=z.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:Qe(a,"exit",e),enter:Qe(a,"enter",e)}):!u&&l&&!m?o[i]=z.cloneElement(a,{in:!1}):u&&l&&z.isValidElement(f)&&(o[i]=z.cloneElement(a,{onExited:r.bind(null,a),in:f.props.in,exit:Qe(a,"exit",e),enter:Qe(a,"enter",e)}))}}),o}var jl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Vl={component:"div",childFactory:function(t){return t}},Vr=(function(e){_l(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(Nl(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,u=i.firstRender;return{children:u?Dl(o,l):Bl(o,a,l),firstRender:!1}},r.handleExited=function(o,i){var a=jr(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var u=Dr({},l.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=Ml(o,["component","childFactory"]),u=this.state.contextValue,f=jl(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?z.createElement(Do.Provider,{value:u},f):z.createElement(Do.Provider,{value:u},z.createElement(i,l,f))},t})(z.Component);Vr.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},Vr.defaultProps=Vl;const zl=[];function Wl(e){D.useEffect(e,zl)}class zr{static create(){return new zr}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ll(){const e=Ro(zr.create).current;return Wl(e.disposeEffect),e}function Bo(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:u,timeout:f}=e,[m,y]=D.useState(!1),p=de(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=de(r.child,m&&r.childLeaving,n&&r.childPulsate);return!l&&!m&&y(!0),D.useEffect(()=>{if(!l&&u!=null){const d=setTimeout(u,f);return()=>{clearTimeout(d)}}},[u,l,f]),v.jsx("span",{className:p,style:b,children:v.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(Bo.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const xe=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wr=550,Fl=80,ql=Be.keyframes`
28
28
  0% {
29
29
  transform: scale(0);
30
30
  opacity: 0.1;
@@ -97,7 +97,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
97
97
  animation-iteration-count: infinite;
98
98
  animation-delay: 200ms;
99
99
  }
100
- `,jo=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=n,[u,f]=D.useState([]),m=D.useRef(0),y=D.useRef(null);D.useEffect(()=>{y.current&&(y.current(),y.current=null)},[u]);const p=D.useRef(!1),b=Ll(),h=D.useRef(null),d=D.useRef(null),g=D.useCallback($=>{const{pulsate:C,rippleX:E,rippleY:j,rippleSize:H,cb:z}=$;f(q=>[...q,v.jsx(Hl,{classes:{ripple:de(i.ripple,xe.ripple),rippleVisible:de(i.rippleVisible,xe.rippleVisible),ripplePulsate:de(i.ripplePulsate,xe.ripplePulsate),child:de(i.child,xe.child),childLeaving:de(i.childLeaving,xe.childLeaving),childPulsate:de(i.childPulsate,xe.childPulsate)},timeout:Wr,pulsate:C,rippleX:E,rippleY:j,rippleSize:H},m.current)]),m.current+=1,y.current=z},[i]),x=D.useCallback(($={},C={},E=()=>{})=>{const{pulsate:j=!1,center:H=o||C.pulsate,fakeElement:z=!1}=C;if($?.type==="mousedown"&&p.current){p.current=!1;return}$?.type==="touchstart"&&(p.current=!0);const q=z?null:d.current,I=q?q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,w,T;if(H||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)c=Math.round(I.width/2),w=Math.round(I.height/2);else{const{clientX:R,clientY:_}=$.touches&&$.touches.length>0?$.touches[0]:$;c=Math.round(R-I.left),w=Math.round(_-I.top)}if(H)T=Math.sqrt((2*I.width**2+I.height**2)/3),T%2===0&&(T+=1);else{const R=Math.max(Math.abs((q?q.clientWidth:0)-c),c)*2+2,_=Math.max(Math.abs((q?q.clientHeight:0)-w),w)*2+2;T=Math.sqrt(R**2+_**2)}$?.touches?h.current===null&&(h.current=()=>{g({pulsate:j,rippleX:c,rippleY:w,rippleSize:T,cb:E})},b.start(Fl,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:j,rippleX:c,rippleY:w,rippleSize:T,cb:E})},[o,g,b]),A=D.useCallback(()=>{x({},{pulsate:!0})},[x]),M=D.useCallback(($,C)=>{if(b.clear(),$?.type==="touchend"&&h.current){h.current(),h.current=null,b.start(0,()=>{M($,C)});return}h.current=null,f(E=>E.length>0?E.slice(1):E),y.current=C},[b]);return D.useImperativeHandle(r,()=>({pulsate:A,start:x,stop:M}),[A,x,M]),v.jsx(Yl,{className:de(xe.root,i.root,a),ref:d,...l,children:v.jsx(Vr,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(jo.propTypes={center:s.bool,classes:s.object,className:s.string});function Kl(e){return ve("MuiButtonBase",e)}const Xl=Me("MuiButtonBase",["root","disabled","focusVisible"]),Ql=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Pe({root:["root",t&&"disabled",r&&"focusVisible"]},Kl,o);return r&&n&&(a.root+=` ${n}`),a},Jl=he("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lr=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:u="button",disabled:f=!1,disableRipple:m=!1,disableTouchRipple:y=!1,focusRipple:p=!1,focusVisibleClassName:b,LinkComponent:h="a",onBlur:d,onClick:g,onContextMenu:x,onDragLeave:A,onFocus:M,onFocusVisible:$,onKeyDown:C,onKeyUp:E,onMouseDown:j,onMouseLeave:H,onMouseUp:z,onTouchEnd:q,onTouchMove:I,onTouchStart:c,tabIndex:w=0,TouchRippleProps:T,touchRippleRef:R,type:_,...B}=n,U=D.useRef(null),K=Pl(),O=Mo(K.ref,R),[k,F]=D.useState(!1);f&&k&&F(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{F(!0),U.current.focus()}}),[]);const G=K.shouldMount&&!m&&!f;D.useEffect(()=>{k&&p&&!m&&K.pulsate()},[m,p,k,K]);const Y=De(K,"start",j,y),Z=De(K,"stop",x,y),Q=De(K,"stop",A,y),J=De(K,"stop",z,y),ee=De(K,"stop",X=>{k&&X.preventDefault(),H&&H(X)},y),ne=De(K,"start",c,y),te=De(K,"stop",q,y),ge=De(K,"stop",I,y),N=De(K,"stop",X=>{_o(X.target)||F(!1),d&&d(X)},!1),we=Xt(X=>{U.current||(U.current=X.currentTarget),_o(X.target)&&(F(!0),$&&$(X)),M&&M(X)}),Le=()=>{const X=U.current;return u&&u!=="button"&&!(X.tagName==="A"&&X.href)},rr=Xt(X=>{p&&!X.repeat&&k&&X.key===" "&&K.stop(X,()=>{K.start(X)}),X.target===X.currentTarget&&Le()&&X.key===" "&&X.preventDefault(),C&&C(X),X.target===X.currentTarget&&Le()&&X.key==="Enter"&&!f&&(X.preventDefault(),g&&g(X))}),jc=Xt(X=>{p&&X.key===" "&&k&&!X.defaultPrevented&&K.stop(X,()=>{K.pulsate(X)}),E&&E(X),g&&X.target===X.currentTarget&&Le()&&X.key===" "&&!X.defaultPrevented&&g(X)});let nr=u;nr==="button"&&(B.href||B.to)&&(nr=h);const Ct={};if(nr==="button"){const X=!!B.formAction;Ct.type=_===void 0&&!X?"button":_,Ct.disabled=f}else!B.href&&!B.to&&(Ct.role="button"),f&&(Ct["aria-disabled"]=f);const Vc=Mo(r,U),ei={...n,centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:y,focusRipple:p,tabIndex:w,focusVisible:k},zc=Ql(ei);return v.jsxs(Jl,{as:nr,className:de(zc.root,l),ownerState:ei,onBlur:N,onClick:g,onContextMenu:Z,onFocus:we,onKeyDown:rr,onKeyUp:jc,onMouseDown:Y,onMouseLeave:ee,onMouseUp:J,onDragLeave:Q,onTouchEnd:te,onTouchMove:ge,onTouchStart:ne,ref:Vc,tabIndex:f?-1:w,type:_,...Ct,...B,children:[a,G?v.jsx(jo,{ref:O,center:i,...T}):null]})});function De(e,t,r,n=!1){return Xt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Lr.propTypes={action:Ol,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Al,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function Zl(e){return typeof e.main=="string"}function ec(e,t=[]){if(!Zl(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function St(e=[]){return([,t])=>t&&ec(t,e)}function tc(e){return ve("MuiCircularProgress",e)}Me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ae=44,Fr=Be.keyframes`
100
+ `,jo=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=n,[u,f]=D.useState([]),m=D.useRef(0),y=D.useRef(null);D.useEffect(()=>{y.current&&(y.current(),y.current=null)},[u]);const p=D.useRef(!1),b=Ll(),h=D.useRef(null),d=D.useRef(null),g=D.useCallback($=>{const{pulsate:C,rippleX:w,rippleY:B,rippleSize:Y,cb:W}=$;f(G=>[...G,v.jsx(Hl,{classes:{ripple:de(i.ripple,xe.ripple),rippleVisible:de(i.rippleVisible,xe.rippleVisible),ripplePulsate:de(i.ripplePulsate,xe.ripplePulsate),child:de(i.child,xe.child),childLeaving:de(i.childLeaving,xe.childLeaving),childPulsate:de(i.childPulsate,xe.childPulsate)},timeout:Wr,pulsate:C,rippleX:w,rippleY:B,rippleSize:Y},m.current)]),m.current+=1,y.current=W},[i]),x=D.useCallback(($={},C={},w=()=>{})=>{const{pulsate:B=!1,center:Y=o||C.pulsate,fakeElement:W=!1}=C;if($?.type==="mousedown"&&p.current){p.current=!1;return}$?.type==="touchstart"&&(p.current=!0);const G=W?null:d.current,M=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,E,T;if(Y||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)c=Math.round(M.width/2),E=Math.round(M.height/2);else{const{clientX:I,clientY:N}=$.touches&&$.touches.length>0?$.touches[0]:$;c=Math.round(I-M.left),E=Math.round(N-M.top)}if(Y)T=Math.sqrt((2*M.width**2+M.height**2)/3),T%2===0&&(T+=1);else{const I=Math.max(Math.abs((G?G.clientWidth:0)-c),c)*2+2,N=Math.max(Math.abs((G?G.clientHeight:0)-E),E)*2+2;T=Math.sqrt(I**2+N**2)}$?.touches?h.current===null&&(h.current=()=>{g({pulsate:B,rippleX:c,rippleY:E,rippleSize:T,cb:w})},b.start(Fl,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:B,rippleX:c,rippleY:E,rippleSize:T,cb:w})},[o,g,b]),A=D.useCallback(()=>{x({},{pulsate:!0})},[x]),_=D.useCallback(($,C)=>{if(b.clear(),$?.type==="touchend"&&h.current){h.current(),h.current=null,b.start(0,()=>{_($,C)});return}h.current=null,f(w=>w.length>0?w.slice(1):w),y.current=C},[b]);return D.useImperativeHandle(r,()=>({pulsate:A,start:x,stop:_}),[A,x,_]),v.jsx(Yl,{className:de(xe.root,i.root,a),ref:d,...l,children:v.jsx(Vr,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(jo.propTypes={center:s.bool,classes:s.object,className:s.string});function Kl(e){return ve("MuiButtonBase",e)}const Xl=Me("MuiButtonBase",["root","disabled","focusVisible"]),Ql=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=Pe({root:["root",t&&"disabled",r&&"focusVisible"]},Kl,o);return r&&n&&(a.root+=` ${n}`),a},Jl=he("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lr=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:u="button",disabled:f=!1,disableRipple:m=!1,disableTouchRipple:y=!1,focusRipple:p=!1,focusVisibleClassName:b,LinkComponent:h="a",onBlur:d,onClick:g,onContextMenu:x,onDragLeave:A,onFocus:_,onFocusVisible:$,onKeyDown:C,onKeyUp:w,onMouseDown:B,onMouseLeave:Y,onMouseUp:W,onTouchEnd:G,onTouchMove:M,onTouchStart:c,tabIndex:E=0,TouchRippleProps:T,touchRippleRef:I,type:N,...H}=n,L=D.useRef(null),K=Pl(),O=Mo(K.ref,I),[k,V]=D.useState(!1);f&&k&&V(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{V(!0),L.current.focus()}}),[]);const F=K.shouldMount&&!m&&!f;D.useEffect(()=>{k&&p&&!m&&K.pulsate()},[m,p,k,K]);const U=De(K,"start",B,y),Z=De(K,"stop",x,y),Q=De(K,"stop",A,y),J=De(K,"stop",W,y),ee=De(K,"stop",X=>{k&&X.preventDefault(),Y&&Y(X)},y),ne=De(K,"start",c,y),te=De(K,"stop",G,y),ge=De(K,"stop",M,y),R=De(K,"stop",X=>{_o(X.target)||V(!1),d&&d(X)},!1),we=Xt(X=>{L.current||(L.current=X.currentTarget),_o(X.target)&&(V(!0),$&&$(X)),_&&_(X)}),Le=()=>{const X=L.current;return u&&u!=="button"&&!(X.tagName==="A"&&X.href)},rr=Xt(X=>{p&&!X.repeat&&k&&X.key===" "&&K.stop(X,()=>{K.start(X)}),X.target===X.currentTarget&&Le()&&X.key===" "&&X.preventDefault(),C&&C(X),X.target===X.currentTarget&&Le()&&X.key==="Enter"&&!f&&(X.preventDefault(),g&&g(X))}),jc=Xt(X=>{p&&X.key===" "&&k&&!X.defaultPrevented&&K.stop(X,()=>{K.pulsate(X)}),w&&w(X),g&&X.target===X.currentTarget&&Le()&&X.key===" "&&!X.defaultPrevented&&g(X)});let nr=u;nr==="button"&&(H.href||H.to)&&(nr=h);const Ct={};if(nr==="button"){const X=!!H.formAction;Ct.type=N===void 0&&!X?"button":N,Ct.disabled=f}else!H.href&&!H.to&&(Ct.role="button"),f&&(Ct["aria-disabled"]=f);const Vc=Mo(r,L),ei={...n,centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:y,focusRipple:p,tabIndex:E,focusVisible:k},zc=Ql(ei);return v.jsxs(Jl,{as:nr,className:de(zc.root,l),ownerState:ei,onBlur:R,onClick:g,onContextMenu:Z,onFocus:we,onKeyDown:rr,onKeyUp:jc,onMouseDown:U,onMouseLeave:ee,onMouseUp:J,onDragLeave:Q,onTouchEnd:te,onTouchMove:ge,onTouchStart:ne,ref:Vc,tabIndex:f?-1:E,type:N,...Ct,...H,children:[a,F?v.jsx(jo,{ref:O,center:i,...T}):null]})});function De(e,t,r,n=!1){return Xt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Lr.propTypes={action:Ol,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Al,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function Zl(e){return typeof e.main=="string"}function ec(e,t=[]){if(!Zl(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function St(e=[]){return([,t])=>t&&ec(t,e)}function tc(e){return ve("MuiCircularProgress",e)}Me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ae=44,Fr=Be.keyframes`
101
101
  0% {
102
102
  transform: rotate(0deg);
103
103
  }
@@ -124,5 +124,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
124
124
  animation: ${Fr} 1.4s linear infinite;
125
125
  `:null,nc=typeof qr!="string"?Be.css`
126
126
  animation: ${qr} 1.4s ease-in-out infinite;
127
- `:null,oc=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${re(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${re(r)}`,o&&"circleDisableShrink"]};return Pe(i,tc,t)},ic=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${re(r.color)}`]]}})(ke(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rc||{animation:`${Fr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),sc=he("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ac=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${re(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ke(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:nc||{animation:`${qr} 1.4s ease-in-out infinite`}}]}))),lc=he("circle",{name:"MuiCircularProgress",slot:"Track"})(ke(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Gr=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:u=40,style:f,thickness:m=3.6,value:y=0,variant:p="indeterminate",...b}=n,h={...n,color:i,disableShrink:a,size:u,thickness:m,value:y,variant:p,enableTrackSlot:l},d=oc(h),g={},x={},A={};if(p==="determinate"){const M=2*Math.PI*((Ae-m)/2);g.strokeDasharray=M.toFixed(3),A["aria-valuenow"]=Math.round(y),g.strokeDashoffset=`${((100-y)/100*M).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx(ic,{className:de(d.root,o),style:{width:u,height:u,...x,...f},ownerState:h,ref:r,role:"progressbar",...A,...b,children:v.jsxs(sc,{className:d.svg,ownerState:h,viewBox:`${Ae/2} ${Ae/2} ${Ae} ${Ae}`,children:[l?v.jsx(lc,{className:d.track,ownerState:h,cx:Ae,cy:Ae,r:(Ae-m)/2,fill:"none",strokeWidth:m,"aria-hidden":"true"}):null,v.jsx(ac,{className:d.circle,style:g,ownerState:h,cx:Ae,cy:Ae,r:(Ae-m)/2,fill:"none",strokeWidth:m})]})})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Jt(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function cc(e){return ve("MuiButton",e)}const Je=Me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Vo=D.createContext({});process.env.NODE_ENV!=="production"&&(Vo.displayName="ButtonGroupContext");const zo=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(zo.displayName="ButtonGroupButtonContext");const uc=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:a,loadingPosition:l,classes:u}=e,f={root:["root",a&&"loading",i,`${i}${re(t)}`,`size${re(o)}`,`${i}Size${re(o)}`,`color${re(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${re(l)}`],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Pe(f,cc,u);return{...u,...m}},Wo=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],dc=he(Lr,{shouldForwardProp:e=>$o(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${re(r.color)}`],t[`size${re(r.size)}`],t[`${r.variant}Size${re(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Je.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Je.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Je.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Je.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(St()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Je.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Je.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Je.loading}`]:{color:"transparent"}}}]}})),fc=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${re(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Wo]})),pc=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${re(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Wo]})),mc=he("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Lo=he("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Fo=D.forwardRef(function(t,r){const n=D.useContext(Vo),o=D.useContext(zo),i=ht(n,t),a=Oe({props:i,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:m,disabled:y=!1,disableElevation:p=!1,disableFocusRipple:b=!1,endIcon:h,focusVisibleClassName:d,fullWidth:g=!1,id:x,loading:A=null,loadingIndicator:M,loadingPosition:$="center",size:C="medium",startIcon:E,type:j,variant:H="text",...z}=a,q=ao(x),I=M??v.jsx(Gr,{"aria-labelledby":q,color:"inherit",size:16}),c={...a,color:u,component:f,disabled:y,disableElevation:p,disableFocusRipple:b,fullWidth:g,loading:A,loadingIndicator:I,loadingPosition:$,size:C,type:j,variant:H},w=uc(c),T=(E||A&&$==="start")&&v.jsx(fc,{className:w.startIcon,ownerState:c,children:E||v.jsx(Lo,{className:w.loadingIconPlaceholder,ownerState:c})}),R=(h||A&&$==="end")&&v.jsx(pc,{className:w.endIcon,ownerState:c,children:h||v.jsx(Lo,{className:w.loadingIconPlaceholder,ownerState:c})}),_=o||"",B=typeof A=="boolean"?v.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:A&&v.jsx(mc,{className:w.loadingIndicator,ownerState:c,children:I})}):null;return v.jsxs(dc,{ownerState:c,className:de(n.className,w.root,m,_),component:f,disabled:y||A,focusRipple:!b,focusVisibleClassName:de(w.focusVisible,d),ref:r,type:j,id:A?q:x,...z,classes:w,children:[T,$!=="end"&&B,l,$==="end"&&B,R]})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function hc(e){return ve("MuiDivider",e)}Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const gc=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:u}=e;return Pe({root:["root",t&&"absolute",u,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},hc,n)},yc=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),bc=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),er=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:u=i||l==="vertical"?"div":"hr",flexItem:f=!1,light:m=!1,role:y=u!=="hr"?"separator":void 0,textAlign:p="center",variant:b="fullWidth",...h}=n,d={...n,absolute:o,component:u,flexItem:f,light:m,orientation:l,role:y,textAlign:p,variant:b},g=gc(d);return v.jsx(yc,{as:u,className:de(g.root,a),role:y,ref:r,ownerState:d,"aria-orientation":y==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...h,children:i?v.jsx(bc,{className:g.wrapper,ownerState:d,children:i}):null})});er&&(er.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(er.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});function vc(e){return ve("MuiIconButton",e)}const qo=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Sc=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${re(n)}`,o&&`edge${re(o)}`,`size${re(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Pe(l,vc,t)},Cc=he(Lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${re(r.color)}`],r.edge&&t[`edge${re(r.edge)}`],t[`size${re(r.size)}`]]}})(ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${qo.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${qo.loading}`]:{color:"transparent"}}))),Tc=he("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ur=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:m="medium",id:y,loading:p=null,loadingIndicator:b,...h}=n,d=ao(y),g=b??v.jsx(Gr,{"aria-labelledby":d,color:"inherit",size:16}),x={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:p,loadingIndicator:g,size:m},A=Sc(x);return v.jsxs(Cc,{id:p?d:y,className:de(A.root,a),centerRipple:!0,focusRipple:!f,disabled:u||p,ref:r,...h,ownerState:x,children:[typeof p=="boolean"&&v.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:v.jsx(Tc,{className:A.loadingIndicator,ownerState:x,children:p&&g})}),i]})});process.env.NODE_ENV!=="production"&&(Ur.propTypes={children:Jt(s.node,e=>D.Children.toArray(e.children).some(r=>D.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
128
- `)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xc(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Go(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=xc(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Uo(e,t,r,n){return e[t]===void 0?null:Go(e,t,r,n)}function Yr(){return null}Uo.isRequired=Go,Yr.isRequired=Yr;const wc=process.env.NODE_ENV==="production"?Yr:Uo;function Ec(e){return ve("MuiPaper",e)}Me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Oc=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Pe(i,Ec,o)},$c=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Yo=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiPaper"}),o=Oo(),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:f="elevation",...m}=n,y={...n,component:a,elevation:l,square:u,variant:f},p=Oc(y);return process.env.NODE_ENV!=="production"&&o.shadows[l],v.jsx($c,{as:a,ownerState:y,className:de(p.root,i),ref:r,...m,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",$r(l))}, ${Gt("#fff",$r(l))})`}},...m.style}})});process.env.NODE_ENV!=="production"&&(Yo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Jt(wc,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function kc(e){return ve("MuiTypography",e)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ac={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Pc=yl(),Ic=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${re(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Pe(l,kc,a)},Mc=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${re(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ke(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${re(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ho={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hr=D.forwardRef(function(t,r){const{color:n,...o}=Oe({props:t,name:"MuiTypography"}),i=!Ac[n],a=Pc({...o,...i&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:m=!1,noWrap:y=!1,paragraph:p=!1,variant:b="body1",variantMapping:h=Ho,...d}=a,g={...a,align:l,color:n,className:u,component:f,gutterBottom:m,noWrap:y,paragraph:p,variant:b,variantMapping:h},x=f||(p?"p":h[b]||Ho[b])||"span",A=Ic(g);return v.jsx(Mc,{as:x,ref:r,className:de(A.root,u),...d,ownerState:g,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...d.style}})});process.env.NODE_ENV!=="production"&&(Hr.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function Ko(e){return e?typeof e=="object"&&("xs"in e||"sm"in e||"md"in e)?e:{xs:e}:{xs:12}}function Xo(e){if(!e)return{};const t={};for(const r of e)r.component==="Group"&&r.columns?Object.assign(t,Xo(r.columns)):t[r.name]=r.defaultValue??"";return t}function Qo(e){const t=[];for(const r of e)r.component==="Group"&&r.columns?t.push(...Qo(r.columns)):r.compute&&t.push({name:r.name,expr:r.compute.expr,dependencies:r.compute.dependencies||mn(r.compute.expr),precision:r.compute.precision,roundMode:r.compute.roundMode});return t}const tr=({schema:e,form:t,widgets:r={},optionsMap:n={},globalDisabled:o=!1,globalReadOnly:i=!1,label:a})=>{if(!e||!t||!r)return null;const{fields:l,append:u,remove:f}=Fe.useFieldArray({control:t.control,name:e.name}),m=W.useMemo(()=>e.columns?Qo(e.columns):[],[e.columns]),y=(E,j)=>{if(!m.some(q=>q.dependencies.includes(j)))return;const z=t.getValues(`${e.name}.${E}`);z&&m.forEach(({name:q,expr:I,dependencies:c,precision:w,roundMode:T})=>{if(q===j||!c.includes(j)||!c.every(U=>ar(z[U])))return;const _=hn(I,z,c,w,T),B=z[q];_!==void 0&&_!==B&&!Number.isNaN(_)&&(typeof _!="number"||typeof B!="number"||Math.abs(_-B)>1e-4)&&t.setValue(`${e.name}.${E}.${q}`,_,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})})},p=t.watch(),{columns:b=[],minItems:h=0,maxItems:d=1/0,addText:g="添加一行",copyable:x=!1}=e,A=()=>{if(l.length>=d)return;const E=Xo(b);u(E)},M=E=>{if(l.length>=d)return;const j=t.getValues(`${e.name}.${E}`);u(j)},$=E=>{l.length<=h||f(E)},C=(E,j,H)=>{const z=`${e.name}.${j}.${E.name}`,q=p?.[e.name]?.[j]||{},I={...p,...q},c=ut(E,I,o,i);if(!c.visible)return null;if(E.component==="Group")return v.jsx(L.Grid,{size:Ko(E.colSpan),children:v.jsx(L.Grid,{container:!0,spacing:2,children:E.columns?.map((_,B)=>C({..._,name:_.name},j,B))})},`${z}-${H}`);const w=r[E.component]??r.Text;if(!w)return null;const T=n[E.name]??E.ui?.options??[],R=Ko(E.colSpan);return v.jsx(L.Grid,{size:R,children:v.jsx(Fe.Controller,{control:t.control,name:z,render:({field:_,fieldState:B})=>v.jsx(w,{error:!!B.error,field:{..._,onBlur:U=>{_.onBlur(),y(j,E.name)}},fieldProps:{...E.ui?.props,disabled:c.disabled,required:c.required,readOnly:c.readonly,placeholder:E.ui?.placeholder},form:t,helperText:B.error?.message??E.ui?.helperText,label:E.ui?.label,options:T})})},`${z}-${H}`)};return v.jsxs(Qt,{children:[a&&v.jsx(Hr,{variant:"subtitle2",sx:{mb:1,fontWeight:600},children:a}),l.map((E,j)=>v.jsxs(Yo,{variant:"outlined",sx:{p:2,mb:2,position:"relative"},children:[v.jsxs(Qt,{sx:{position:"absolute",top:8,right:8,display:"flex",gap:.5},children:[x&&l.length<d&&!o&&v.jsx(Ur,{size:"small",onClick:()=>M(j),title:"复制",children:v.jsx(Tl,{fontSize:"small"})}),l.length>h&&!o&&v.jsx(Ur,{size:"small",onClick:()=>$(j),color:"error",title:"删除",children:v.jsx(xl,{fontSize:"small"})})]}),v.jsx(L.Grid,{container:!0,spacing:2,sx:{pr:6},children:b.map((H,z)=>C(H,j,z))})]},E.id)),l.length<d&&!o&&v.jsx(v.Fragment,{children:v.jsx(er,{sx:{my:2},children:v.jsx(Fo,{variant:"text",size:"small",startIcon:v.jsx(Cl,{}),onClick:A,children:g})})})]})};function _c(e){return e?typeof e=="object"&&("xs"in e||"sm"in e||"md"in e)?e:{xs:e}:{xs:12}}const Kr=({schema:e,form:t,widgets:r={},optionsMap:n={},globalDisabled:o=!1,globalReadOnly:i=!1,values:a})=>{if(!e?.columns||!t||!r)return null;const l=a||t.watch();return v.jsxs(Qt,{sx:{width:"100%"},children:[e.ui?.label&&v.jsx(Hr,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:"bold",mb:2},children:e.ui.label}),v.jsx(Xe,{container:!0,spacing:2,children:e.columns.map((u,f)=>{const m=ut(u,l,o,i);if(!m.visible)return null;const y=r[u.component]??r.Text;if(!y)return null;const p=n[u.name]??u.ui?.options??[],b=_c(u.colSpan);return u.component==="Group"||u.component==="FormList"?v.jsx(Xe,{size:b,children:v.jsx(y,{field:{name:u.name,value:void 0,onChange:()=>{},onBlur:()=>{},ref:()=>{}},form:t,globalDisabled:o,globalReadOnly:i,optionsMap:n,schema:u,widgets:r,values:l})},`${String(u.name)}-${f}`):v.jsx(Xe,{size:b,children:v.jsx(Fe.Controller,{control:t.control,name:u.name,render:({field:h,fieldState:d})=>v.jsx(y,{error:!!d.error,field:h,fieldProps:{...u.ui?.props,disabled:m.disabled,required:m.required,readOnly:m.readonly,placeholder:u.ui?.placeholder},form:t,helperText:d.error?.message??u.ui?.helperText,label:u.ui?.label,options:p,values:l})})},`${String(u.name)}-${f}`)})})]})},Xr=({field:e})=>v.jsx("input",{type:"hidden",...e,value:e.value??""}),Qr=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(L.TextField,{name:e.name,ref:e.ref,value:e.value??"",onChange:i=>{const a=i.target.value;e.onChange(a===""?null:Number(a))},onBlur:e.onBlur,type:"number",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),Jr=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(L.TextField,{...e,value:e.value??"",type:"password",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),Jo=L.styled(L.Box)(({theme:e})=>({backgroundColor:"#fff",...e.typography.body2,textAlign:"center",color:(e.vars??e).palette.text.secondary,...e.applyStyles("dark",{backgroundColor:"#1A2027"})})),Zr=({field:e,label:t,options:r=[],error:n,helperText:o,fieldProps:i})=>{const a=m=>r.find(p=>String(p.value)===m)?.value??m,l=e.value!==void 0&&e.value!==null?String(e.value):"",u=i?.inline===!0,f=v.jsx(L.RadioGroup,{row:!0,onChange:m=>{const y=a(m.target.value);e.onChange(y)},value:l,sx:u?{flexWrap:"nowrap"}:void 0,children:r.map(m=>v.jsx(L.FormControlLabel,{control:v.jsx(L.Radio,{size:"small"}),disabled:m.disabled,label:m.label,value:String(m.value)},String(m.value)))});return v.jsxs(L.FormControl,{component:"fieldset",disabled:i?.disabled,error:n,required:i?.required,sx:{width:"100%","& .MuiFormLabel-root":{fontSize:14,"&.Mui-focused":{color:"primary.main"}},"& .MuiFormControlLabel-label":{fontSize:14},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:12}},children:[u?v.jsxs(L.Stack,{direction:"row",spacing:2,alignItems:"center",children:[v.jsx(Jo,{children:t&&v.jsx(L.FormLabel,{component:"legend",required:!1,sx:{mb:0,flexShrink:0},children:Te(t,i?.required)})}),v.jsx(Jo,{children:f})]}):v.jsxs(L.Stack,{spacing:0,children:[t&&v.jsx(L.FormLabel,{component:"legend",required:!1,children:Te(t,i?.required)}),f]}),o&&v.jsx(L.FormHelperText,{children:o})]})},en=({field:e,label:t,fieldProps:r})=>v.jsxs(L.FormControl,{children:[t&&v.jsx(L.FormLabel,{children:t}),v.jsx(L.Rating,{value:e.value??0,onChange:(n,o)=>e.onChange(o),disabled:r?.disabled,readOnly:r?.readOnly,...r})]}),tn=({field:e,label:t,fieldProps:r})=>v.jsxs(L.FormControl,{fullWidth:!0,children:[t&&v.jsx(L.FormLabel,{children:t}),v.jsx(L.Slider,{value:e.value??0,onChange:(n,o)=>e.onChange(o),disabled:r?.disabled,...r})]}),rn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsxs(L.FormControl,{error:r,required:o?.required,component:"fieldset",children:[v.jsx(L.FormControlLabel,{control:v.jsx(L.Switch,{checked:e.value??!1,disabled:o?.disabled,onChange:i=>e.onChange(i.target.checked),inputRef:e.ref}),label:Te(t,o?.required)}),n&&v.jsx(L.FormHelperText,{children:n})]}),nn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(L.TextField,{...e,value:e.value??"",label:Te(t,o?.required),multiline:!0,rows:4,error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),on=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(L.TextField,{...e,value:e.value??"",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),sn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(oi.TimePicker,{disabled:o?.disabled,onChange:i=>e.onChange(i),slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e}},value:e.value??null,...o})}),Zo={Hidden:Xr,Text:on,Password:Jr,Number:Qr,Textarea:nn,Select:lt,Autocomplete:lt,Checkbox:Ir,Switch:rn,Radio:Zr,Slider:tn,Rating:en,Date:Nr,Time:sn,DateTime:_r,Custom:Mr,Group:Kr,FormList:tr,hidden:Xr,text:on,password:Jr,number:Qr,textarea:nn,select:lt,autocomplete:lt,checkbox:Ir,switch:rn,radio:Zr,slider:tn,rating:en,date:Nr,time:sn,datetime:_r,custom:Mr,group:Kr,formList:tr,formlist:tr};async function Nc(e,t){const r=e.ui?.optionRequest;if(!r)return null;try{return await r(t)}catch{return e.ui?.options??[]}}function Rc(e,t){const[r,n]=W.useState({}),o=W.useRef({}),i=W.useRef(new Set),a=W.useRef({});return W.useEffect(()=>{i.current.clear(),o.current={},a.current={};const l={};for(const u of e)l[u.name]=u.ui?.options??[];n(l)},[e]),W.useEffect(()=>{e.forEach(async l=>{if(!l.ui?.optionRequest)return;const u=l.name,f=l.dependencies||[];let m=!1;const y={};if(f.forEach(p=>{y[p]=t[p]}),f.length===0)i.current.has(u)||(m=!0);else if(!i.current.has(u))m=!0;else{const p=o.current[u];f.some(h=>y[h]!==p?.[h])&&(m=!0)}if(m){i.current.add(u),o.current[u]=y;const p=(a.current[u]||0)+1;a.current[u]=p;try{const b=await Nc(l,t);a.current[u]===p&&b!==null&&n(h=>({...h,[u]:b}))}catch{a.current[u]}}})},[e,t]),r}function Dc(e,t){const{schema:r,defaultValues:n,onSubmit:o,onValuesChange:i,grid:a=!0,readOnly:l=!1,disabled:u=!1,widgets:f={},children:m,spacing:y}=e,p=W.useMemo(()=>dn(r),[r]),b=W.useRef(void 0);b.current===void 0&&(b.current={...p.defaultValues,...n||{}});const h=W.useMemo(()=>({...Zo,...f}),[f]),d=W.useMemo(()=>pn(p),[p]),g=Fe.useForm({defaultValues:b.current,resolver:d,mode:"onBlur",reValidateMode:"onBlur"}),x=W.useMemo(()=>un(p),[p]),A=Fe.useWatch({control:g.control,name:x}),M=W.useMemo(()=>{const I={};return Array.isArray(A)&&x.forEach((c,w)=>{I[c]=A[w]}),I},[A,x]),$=Rc(p.allFields,M),C=W.useRef({});W.useEffect(()=>{const I=C.current;if(Object.keys(I).length===0){C.current={...M};return}const c={};let w=!1;for(const T of p.allFields)if(T.dependencies?.length&&T.dependencies.some(_=>M[_]!==I[_])){const _=g.getValues(T.name);_!=null&&_!==""&&(c[T.name]=null,w=!0)}w&&Object.entries(c).forEach(([T,R])=>{g.setValue(T,R,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})}),C.current={...M}},[M,p.allFields,g]),W.useEffect(()=>{i&&i(g.getValues())},[M,i,g]);const E=W.useMemo(()=>p.allFields.filter(I=>I.compute).map(I=>({name:I.name,expr:I.compute.expr,dependencies:I.compute.dependencies||mn(I.compute.expr),precision:I.compute.precision,roundMode:I.compute.roundMode})),[p.allFields]),j=W.useRef({});W.useEffect(()=>{if(E.length===0)return;let I=!1;const c={};for(const{name:w,expr:T,dependencies:R,precision:_,roundMode:B}of E){const U=R.map(G=>`${G}:${M[G]}`).join("|"),K=j.current[w];if(U===K)continue;if(!R.every(G=>ar(M[G]))){j.current[w]=U;continue}const k=hn(T,M,R,_,B),F=g.getValues(w);k!==void 0&&k!==F&&!Number.isNaN(k)&&(typeof k!="number"||typeof F!="number"||Math.abs(k-F)>1e-4)&&(c[w]=k,I=!0),j.current[w]=U}I&&g.reset({...g.getValues(),...c},{keepDirty:!0,keepTouched:!0,keepErrors:!0,keepDefaultValues:!1})},[M,E,g]);const H=W.useCallback(async I=>{const c=g.getValues(),w={};for(const T of p.allFields){if(T.noSubmit)continue;const R=T.name;let _=R in I?I[R]:c[R];T.transform?w[R]=T.transform(_,c):w[R]=_}o&&await o(w)},[p.allFields,o,g]);W.useImperativeHandle(t,()=>({...g,submit:async()=>{await g.handleSubmit(H)()},getFormValues:()=>{const c=g.getValues(),w={};for(const T of p.allFields)T.noSubmit||(w[T.name]=c[T.name]);return w},setValues:c=>{for(const[w,T]of Object.entries(c))T!==void 0&&g.setValue(w,T)}}),[g,p,H]);const z=()=>p.input.fields.flatMap((c,w)=>{if(c.component==="Hidden")return[];const T=[];return c.newLine&&a&&T.push(v.jsx("div",{style:{gridColumn:"1 / -1",height:0}},`${String(c.name)}-${w}-newline`)),T.push(v.jsx(ko,{field:c,index:w,values:M,form:g,disabled:u,readOnly:l,widgets:h,optionsMap:$,useGrid:a},`${String(c.name)}-${w}`)),T}),q=y??r.layout?.spacing??2;return v.jsx(Fe.FormProvider,{...g,children:v.jsxs("form",{noValidate:!0,style:{marginTop:"16px"},children:[a?v.jsx(Ao,{spacing:q,children:z()}):v.jsx(Io,{spacing:q,children:z()}),m]})})}const Bc=W.forwardRef(Dc);V.AutocompleteWidget=lt,V.CheckboxWidget=Ir,V.CustomWidget=Mr,V.DATETIME_FORMAT=Pr,V.DATE_FORMAT=Ar,V.DateTimeWidget=_r,V.DateWidget=Nr,V.FieldRenderer=ko,V.FormListWidget=tr,V.GridLayout=Ao,V.GroupWidget=Kr,V.HiddenWidget=Xr,V.NumberWidget=Qr,V.PasswordWidget=Jr,V.RadioWidget=Zr,V.RatingWidget=en,V.SchemaForm=Bc,V.SelectWidget=lt,V.SliderWidget=tn,V.StackLayout=Io,V.SwitchWidget=rn,V.TextWidget=on,V.TextareaWidget=nn,V.TimeWidget=sn,V.buildValibotSchema=fn,V.compactFieldStyles=$e,V.computeAllFieldStates=ci,V.computeFieldState=ut,V.createDynamicResolver=pn,V.defaultWidgets=Zo,V.evaluateCondition=Ne,V.extractDependencies=qe,V.getDownstreamFields=di,V.getWatchFields=un,V.mergeDefaultValues=fi,V.parseSchema=dn,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
127
+ `:null,oc=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${re(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${re(r)}`,o&&"circleDisableShrink"]};return Pe(i,tc,t)},ic=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${re(r.color)}`]]}})(ke(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rc||{animation:`${Fr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),sc=he("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ac=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${re(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ke(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:nc||{animation:`${qr} 1.4s ease-in-out infinite`}}]}))),lc=he("circle",{name:"MuiCircularProgress",slot:"Track"})(ke(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Gr=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:u=40,style:f,thickness:m=3.6,value:y=0,variant:p="indeterminate",...b}=n,h={...n,color:i,disableShrink:a,size:u,thickness:m,value:y,variant:p,enableTrackSlot:l},d=oc(h),g={},x={},A={};if(p==="determinate"){const _=2*Math.PI*((Ae-m)/2);g.strokeDasharray=_.toFixed(3),A["aria-valuenow"]=Math.round(y),g.strokeDashoffset=`${((100-y)/100*_).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx(ic,{className:de(d.root,o),style:{width:u,height:u,...x,...f},ownerState:h,ref:r,role:"progressbar",...A,...b,children:v.jsxs(sc,{className:d.svg,ownerState:h,viewBox:`${Ae/2} ${Ae/2} ${Ae} ${Ae}`,children:[l?v.jsx(lc,{className:d.track,ownerState:h,cx:Ae,cy:Ae,r:(Ae-m)/2,fill:"none",strokeWidth:m,"aria-hidden":"true"}):null,v.jsx(ac,{className:d.circle,style:g,ownerState:h,cx:Ae,cy:Ae,r:(Ae-m)/2,fill:"none",strokeWidth:m})]})})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Jt(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function cc(e){return ve("MuiButton",e)}const Je=Me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Vo=D.createContext({});process.env.NODE_ENV!=="production"&&(Vo.displayName="ButtonGroupContext");const zo=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(zo.displayName="ButtonGroupButtonContext");const uc=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:a,loadingPosition:l,classes:u}=e,f={root:["root",a&&"loading",i,`${i}${re(t)}`,`size${re(o)}`,`${i}Size${re(o)}`,`color${re(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${re(l)}`],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Pe(f,cc,u);return{...u,...m}},Wo=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],dc=he(Lr,{shouldForwardProp:e=>$o(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${re(r.color)}`],t[`size${re(r.size)}`],t[`${r.variant}Size${re(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Je.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Je.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Je.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Je.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(St()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Je.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Je.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Je.loading}`]:{color:"transparent"}}}]}})),fc=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${re(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Wo]})),pc=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${re(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Wo]})),mc=he("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Lo=he("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Fo=D.forwardRef(function(t,r){const n=D.useContext(Vo),o=D.useContext(zo),i=ht(n,t),a=Oe({props:i,name:"MuiButton"}),{children:l,color:u="primary",component:f="button",className:m,disabled:y=!1,disableElevation:p=!1,disableFocusRipple:b=!1,endIcon:h,focusVisibleClassName:d,fullWidth:g=!1,id:x,loading:A=null,loadingIndicator:_,loadingPosition:$="center",size:C="medium",startIcon:w,type:B,variant:Y="text",...W}=a,G=ao(x),M=_??v.jsx(Gr,{"aria-labelledby":G,color:"inherit",size:16}),c={...a,color:u,component:f,disabled:y,disableElevation:p,disableFocusRipple:b,fullWidth:g,loading:A,loadingIndicator:M,loadingPosition:$,size:C,type:B,variant:Y},E=uc(c),T=(w||A&&$==="start")&&v.jsx(fc,{className:E.startIcon,ownerState:c,children:w||v.jsx(Lo,{className:E.loadingIconPlaceholder,ownerState:c})}),I=(h||A&&$==="end")&&v.jsx(pc,{className:E.endIcon,ownerState:c,children:h||v.jsx(Lo,{className:E.loadingIconPlaceholder,ownerState:c})}),N=o||"",H=typeof A=="boolean"?v.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:A&&v.jsx(mc,{className:E.loadingIndicator,ownerState:c,children:M})}):null;return v.jsxs(dc,{ownerState:c,className:de(n.className,E.root,m,N),component:f,disabled:y||A,focusRipple:!b,focusVisibleClassName:de(E.focusVisible,d),ref:r,type:B,id:A?G:x,...W,classes:E,children:[T,$!=="end"&&H,l,$==="end"&&H,I]})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function hc(e){return ve("MuiDivider",e)}Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const gc=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:u}=e;return Pe({root:["root",t&&"absolute",u,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},hc,n)},yc=he("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),bc=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),er=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:u=i||l==="vertical"?"div":"hr",flexItem:f=!1,light:m=!1,role:y=u!=="hr"?"separator":void 0,textAlign:p="center",variant:b="fullWidth",...h}=n,d={...n,absolute:o,component:u,flexItem:f,light:m,orientation:l,role:y,textAlign:p,variant:b},g=gc(d);return v.jsx(yc,{as:u,className:de(g.root,a),role:y,ref:r,ownerState:d,"aria-orientation":y==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...h,children:i?v.jsx(bc,{className:g.wrapper,ownerState:d,children:i}):null})});er&&(er.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(er.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});function vc(e){return ve("MuiIconButton",e)}const qo=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Sc=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${re(n)}`,o&&`edge${re(o)}`,`size${re(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Pe(l,vc,t)},Cc=he(Lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${re(r.color)}`],r.edge&&t[`edge${re(r.edge)}`],t[`size${re(r.size)}`]]}})(ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${qo.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${qo.loading}`]:{color:"transparent"}}))),Tc=he("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ur=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:u=!1,disableFocusRipple:f=!1,size:m="medium",id:y,loading:p=null,loadingIndicator:b,...h}=n,d=ao(y),g=b??v.jsx(Gr,{"aria-labelledby":d,color:"inherit",size:16}),x={...n,edge:o,color:l,disabled:u,disableFocusRipple:f,loading:p,loadingIndicator:g,size:m},A=Sc(x);return v.jsxs(Cc,{id:p?d:y,className:de(A.root,a),centerRipple:!0,focusRipple:!f,disabled:u||p,ref:r,...h,ownerState:x,children:[typeof p=="boolean"&&v.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:v.jsx(Tc,{className:A.loadingIndicator,ownerState:x,children:p&&g})}),i]})});process.env.NODE_ENV!=="production"&&(Ur.propTypes={children:Jt(s.node,e=>D.Children.toArray(e.children).some(r=>D.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
128
+ `)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xc(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Go(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=xc(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Uo(e,t,r,n){return e[t]===void 0?null:Go(e,t,r,n)}function Yr(){return null}Uo.isRequired=Go,Yr.isRequired=Yr;const wc=process.env.NODE_ENV==="production"?Yr:Uo;function Ec(e){return ve("MuiPaper",e)}Me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Oc=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Pe(i,Ec,o)},$c=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Yo=D.forwardRef(function(t,r){const n=Oe({props:t,name:"MuiPaper"}),o=Oo(),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:f="elevation",...m}=n,y={...n,component:a,elevation:l,square:u,variant:f},p=Oc(y);return process.env.NODE_ENV!=="production"&&o.shadows[l],v.jsx($c,{as:a,ownerState:y,className:de(p.root,i),ref:r,...m,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",$r(l))}, ${Gt("#fff",$r(l))})`}},...m.style}})});process.env.NODE_ENV!=="production"&&(Yo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Jt(wc,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function kc(e){return ve("MuiTypography",e)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ac={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Pc=yl(),Ic=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${re(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Pe(l,kc,a)},Mc=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${re(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ke(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(St()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${re(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ho={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hr=D.forwardRef(function(t,r){const{color:n,...o}=Oe({props:t,name:"MuiTypography"}),i=!Ac[n],a=Pc({...o,...i&&{color:n}}),{align:l="inherit",className:u,component:f,gutterBottom:m=!1,noWrap:y=!1,paragraph:p=!1,variant:b="body1",variantMapping:h=Ho,...d}=a,g={...a,align:l,color:n,className:u,component:f,gutterBottom:m,noWrap:y,paragraph:p,variant:b,variantMapping:h},x=f||(p?"p":h[b]||Ho[b])||"span",A=Ic(g);return v.jsx(Mc,{as:x,ref:r,className:de(A.root,u),...d,ownerState:g,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...d.style}})});process.env.NODE_ENV!=="production"&&(Hr.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function Ko(e){return e?typeof e=="object"&&("xs"in e||"sm"in e||"md"in e)?e:{xs:e}:{xs:12}}function Xo(e){if(!e)return{};const t={};for(const r of e)r.component==="Group"&&r.columns?Object.assign(t,Xo(r.columns)):t[r.name]=r.defaultValue??"";return t}function Qo(e){const t=[];for(const r of e)r.component==="Group"&&r.columns?t.push(...Qo(r.columns)):r.compute&&t.push({name:r.name,expr:r.compute.expr,dependencies:r.compute.dependencies||mn(r.compute.expr),precision:r.compute.precision,roundMode:r.compute.roundMode});return t}const tr=({schema:e,form:t,widgets:r={},optionsMap:n={},globalDisabled:o=!1,globalReadOnly:i=!1,label:a})=>{if(!e||!t||!r)return null;const{fields:l,append:u,remove:f}=Fe.useFieldArray({control:t.control,name:e.name}),m=z.useMemo(()=>e.columns?Qo(e.columns):[],[e.columns]),y=(w,B)=>{if(!m.some(G=>G.dependencies.includes(B)))return;const W=t.getValues(`${e.name}.${w}`);W&&m.forEach(({name:G,expr:M,dependencies:c,precision:E,roundMode:T})=>{if(G===B||!c.includes(B)||!c.every(L=>ar(W[L])))return;const N=hn(M,W,c,E,T),H=W[G];N!==void 0&&N!==H&&!Number.isNaN(N)&&(typeof N!="number"||typeof H!="number"||Math.abs(N-H)>1e-4)&&t.setValue(`${e.name}.${w}.${G}`,N,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})})},p=t.watch(),{columns:b=[],minItems:h=0,maxItems:d=1/0,addText:g="添加一行",copyable:x=!1}=e,A=()=>{if(l.length>=d)return;const w=Xo(b);u(w)},_=w=>{if(l.length>=d)return;const B=t.getValues(`${e.name}.${w}`);u(B)},$=w=>{l.length<=h||f(w)},C=(w,B,Y)=>{const W=`${e.name}.${B}.${w.name}`,G=p?.[e.name]?.[B]||{},M={...p,...G},c=ut(w,M,o,i);if(!c.visible)return null;if(w.component==="Group")return v.jsx(q.Grid,{size:Ko(w.colSpan),children:v.jsx(q.Grid,{container:!0,spacing:2,children:w.columns?.map((N,H)=>C({...N,name:N.name},B,H))})},`${W}-${Y}`);const E=r[w.component]??r.Text;if(!E)return null;const T=n[w.name]??w.ui?.options??[],I=Ko(w.colSpan);return v.jsx(q.Grid,{size:I,children:v.jsx(Fe.Controller,{control:t.control,name:W,render:({field:N,fieldState:H})=>v.jsx(E,{error:!!H.error,field:{...N,onBlur:L=>{N.onBlur(),y(B,w.name)}},fieldProps:{...w.ui?.props,disabled:c.disabled,required:c.required,readOnly:c.readonly,placeholder:w.ui?.placeholder},form:t,helperText:H.error?.message??w.ui?.helperText,label:w.ui?.label,options:T})})},`${W}-${Y}`)};return v.jsxs(Qt,{children:[a&&v.jsx(Hr,{variant:"subtitle2",sx:{mb:1,fontWeight:600},children:a}),l.map((w,B)=>v.jsxs(Yo,{variant:"outlined",sx:{p:2,mb:2,position:"relative"},children:[v.jsxs(Qt,{sx:{position:"absolute",top:8,right:8,display:"flex",gap:.5},children:[x&&l.length<d&&!o&&v.jsx(Ur,{size:"small",onClick:()=>_(B),title:"复制",children:v.jsx(Tl,{fontSize:"small"})}),l.length>h&&!o&&v.jsx(Ur,{size:"small",onClick:()=>$(B),color:"error",title:"删除",children:v.jsx(xl,{fontSize:"small"})})]}),v.jsx(q.Grid,{container:!0,spacing:2,sx:{pr:6},children:b.map((Y,W)=>C(Y,B,W))})]},w.id)),l.length<d&&!o&&v.jsx(v.Fragment,{children:v.jsx(er,{sx:{my:2},children:v.jsx(Fo,{variant:"text",size:"small",startIcon:v.jsx(Cl,{}),onClick:A,children:g})})})]})};function _c(e){return e?typeof e=="object"&&("xs"in e||"sm"in e||"md"in e)?e:{xs:e}:{xs:12}}const Kr=({schema:e,form:t,widgets:r={},optionsMap:n={},globalDisabled:o=!1,globalReadOnly:i=!1,values:a})=>{if(!e?.columns||!t||!r)return null;const l=a||t.watch();return v.jsxs(Qt,{sx:{width:"100%"},children:[e.ui?.label&&v.jsx(Hr,{variant:"subtitle1",gutterBottom:!0,sx:{fontWeight:"bold",mb:2},children:e.ui.label}),v.jsx(Xe,{container:!0,spacing:2,children:e.columns.map((u,f)=>{const m=ut(u,l,o,i);if(!m.visible)return null;const y=r[u.component]??r.Text;if(!y)return null;const p=n[u.name]??u.ui?.options??[],b=_c(u.colSpan);return u.component==="Group"||u.component==="FormList"?v.jsx(Xe,{size:b,children:v.jsx(y,{field:{name:u.name,value:void 0,onChange:()=>{},onBlur:()=>{},ref:()=>{}},form:t,globalDisabled:o,globalReadOnly:i,optionsMap:n,schema:u,widgets:r,values:l})},`${String(u.name)}-${f}`):v.jsx(Xe,{size:b,children:v.jsx(Fe.Controller,{control:t.control,name:u.name,render:({field:h,fieldState:d})=>v.jsx(y,{error:!!d.error,field:h,fieldProps:{...u.ui?.props,disabled:m.disabled,required:m.required,readOnly:m.readonly,placeholder:u.ui?.placeholder},form:t,helperText:d.error?.message??u.ui?.helperText,label:u.ui?.label,options:p,values:l})})},`${String(u.name)}-${f}`)})})]})},Xr=({field:e})=>v.jsx("input",{type:"hidden",...e,value:e.value??""}),Qr=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(q.TextField,{name:e.name,ref:e.ref,value:e.value??"",onChange:i=>{const a=i.target.value;e.onChange(a===""?null:Number(a))},onBlur:e.onBlur,type:"number",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),Jr=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(q.TextField,{...e,value:e.value??"",type:"password",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),Jo=q.styled(q.Box)(({theme:e})=>({backgroundColor:"#fff",...e.typography.body2,textAlign:"center",color:(e.vars??e).palette.text.secondary,...e.applyStyles("dark",{backgroundColor:"#1A2027"})})),Zr=({field:e,label:t,options:r=[],error:n,helperText:o,fieldProps:i})=>{const a=m=>r.find(p=>String(p.value)===m)?.value??m,l=e.value!==void 0&&e.value!==null?String(e.value):"",u=i?.inline===!0,f=v.jsx(q.RadioGroup,{row:!0,onChange:m=>{const y=a(m.target.value);e.onChange(y)},value:l,sx:u?{flexWrap:"nowrap"}:void 0,children:r.map(m=>v.jsx(q.FormControlLabel,{control:v.jsx(q.Radio,{size:"small"}),disabled:m.disabled,label:m.label,value:String(m.value)},String(m.value)))});return v.jsxs(q.FormControl,{component:"fieldset",disabled:i?.disabled,error:n,required:i?.required,sx:{width:"100%","& .MuiFormLabel-root":{fontSize:14,"&.Mui-focused":{color:"primary.main"}},"& .MuiFormControlLabel-label":{fontSize:14},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:12}},children:[u?v.jsxs(q.Stack,{direction:"row",spacing:2,alignItems:"center",children:[v.jsx(Jo,{children:t&&v.jsx(q.FormLabel,{component:"legend",required:!1,sx:{mb:0,flexShrink:0},children:Te(t,i?.required)})}),v.jsx(Jo,{children:f})]}):v.jsxs(q.Stack,{spacing:0,children:[t&&v.jsx(q.FormLabel,{component:"legend",required:!1,children:Te(t,i?.required)}),f]}),o&&v.jsx(q.FormHelperText,{children:o})]})},en=({field:e,label:t,fieldProps:r})=>v.jsxs(q.FormControl,{children:[t&&v.jsx(q.FormLabel,{children:t}),v.jsx(q.Rating,{value:e.value??0,onChange:(n,o)=>e.onChange(o),disabled:r?.disabled,readOnly:r?.readOnly,...r})]}),tn=({field:e,label:t,fieldProps:r})=>v.jsxs(q.FormControl,{fullWidth:!0,children:[t&&v.jsx(q.FormLabel,{children:t}),v.jsx(q.Slider,{value:e.value??0,onChange:(n,o)=>e.onChange(o),disabled:r?.disabled,...r})]}),rn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsxs(q.FormControl,{error:r,required:o?.required,component:"fieldset",children:[v.jsx(q.FormControlLabel,{control:v.jsx(q.Switch,{checked:e.value??!1,disabled:o?.disabled,onChange:i=>e.onChange(i.target.checked),inputRef:e.ref}),label:Te(t,o?.required)}),n&&v.jsx(q.FormHelperText,{children:n})]}),nn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(q.TextField,{...e,value:e.value??"",label:Te(t,o?.required),multiline:!0,rows:4,error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),on=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(q.TextField,{...e,value:e.value??"",label:Te(t,o?.required),error:r,helperText:n,fullWidth:!0,size:"small",sx:$e,disabled:o?.disabled,required:o?.required,...o}),sn=({field:e,label:t,error:r,helperText:n,fieldProps:o})=>v.jsx(or.LocalizationProvider,{adapterLocale:"zh-cn",dateAdapter:ir.AdapterDayjs,children:v.jsx(oi.TimePicker,{disabled:o?.disabled,onChange:i=>e.onChange(i),slotProps:{textField:{fullWidth:!0,label:Te(t,o?.required),error:r,helperText:n,required:o?.required,size:"small",sx:$e}},value:e.value??null,...o})}),Zo={Hidden:Xr,Text:on,Password:Jr,Number:Qr,Textarea:nn,Select:lt,Autocomplete:lt,Checkbox:Ir,Switch:rn,Radio:Zr,Slider:tn,Rating:en,Date:Nr,Time:sn,DateTime:_r,Custom:Mr,Group:Kr,FormList:tr,hidden:Xr,text:on,password:Jr,number:Qr,textarea:nn,select:lt,autocomplete:lt,checkbox:Ir,switch:rn,radio:Zr,slider:tn,rating:en,date:Nr,time:sn,datetime:_r,custom:Mr,group:Kr,formList:tr,formlist:tr};async function Nc(e,t){const r=e.ui?.optionRequest;if(!r)return null;try{return await r(t)}catch{return e.ui?.options??[]}}function Rc(e,t){const[r,n]=z.useState({}),o=z.useRef({}),i=z.useRef(new Set),a=z.useRef({});return z.useEffect(()=>{i.current.clear(),o.current={},a.current={};const l={};for(const u of e)l[u.name]=u.ui?.options??[];n(l)},[e]),z.useEffect(()=>{e.forEach(async l=>{if(!l.ui?.optionRequest)return;const u=l.name,f=l.dependencies||[];let m=!1;const y={};if(f.forEach(p=>{y[p]=t[p]}),f.length===0)i.current.has(u)||(m=!0);else if(!i.current.has(u))m=!0;else{const p=o.current[u];f.some(h=>y[h]!==p?.[h])&&(m=!0)}if(m){i.current.add(u),o.current[u]=y;const p=(a.current[u]||0)+1;a.current[u]=p;try{const b=await Nc(l,t);a.current[u]===p&&b!==null&&n(h=>({...h,[u]:b}))}catch{a.current[u]}}})},[e,t]),r}function Dc(e,t){const{schema:r,defaultValues:n,onSubmit:o,onValuesChange:i,grid:a=!0,readOnly:l=!1,disabled:u=!1,widgets:f={},children:m,spacing:y}=e,p=z.useMemo(()=>dn(r),[r]),b=z.useRef(void 0);b.current===void 0&&(b.current={...p.defaultValues,...n||{}});const h=z.useMemo(()=>({...Zo,...f}),[f]),d=z.useMemo(()=>pn(p),[p]),g=Fe.useForm({defaultValues:b.current,resolver:d,mode:"onBlur",reValidateMode:"onBlur"}),x=z.useMemo(()=>un(p),[p]),A=Fe.useWatch({control:g.control,name:x}),_=z.useMemo(()=>{const M={};return Array.isArray(A)&&x.forEach((c,E)=>{M[c]=A[E]}),M},[A,x]),$=Rc(p.allFields,_),C=z.useRef({});z.useEffect(()=>{const M=C.current;if(Object.keys(M).length===0){C.current={..._};return}const c={};let E=!1;for(const T of p.allFields)if(T.dependencies?.length&&T.dependencies.some(N=>_[N]!==M[N])){const N=g.getValues(T.name);N!=null&&N!==""&&(c[T.name]=null,E=!0)}E&&Object.entries(c).forEach(([T,I])=>{g.setValue(T,I,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})}),C.current={..._}},[_,p.allFields,g]),z.useEffect(()=>{i&&i(g.getValues())},[_,i,g]);const w=z.useMemo(()=>p.allFields.filter(M=>M.compute).map(M=>({name:M.name,expr:M.compute.expr,dependencies:M.compute.dependencies||mn(M.compute.expr),precision:M.compute.precision,roundMode:M.compute.roundMode})),[p.allFields]),B=z.useRef({});z.useEffect(()=>{if(w.length===0)return;let M=!1;const c={};for(const{name:E,expr:T,dependencies:I,precision:N,roundMode:H}of w){const L=I.map(F=>`${F}:${_[F]}`).join("|"),K=B.current[E];if(L===K)continue;if(!I.every(F=>ar(_[F]))){B.current[E]=L;continue}const k=hn(T,_,I,N,H),V=g.getValues(E);k!==void 0&&k!==V&&!Number.isNaN(k)&&(typeof k!="number"||typeof V!="number"||Math.abs(k-V)>1e-4)&&(c[E]=k,M=!0),B.current[E]=L}M&&g.reset({...g.getValues(),...c},{keepDirty:!0,keepTouched:!0,keepErrors:!0,keepDefaultValues:!1})},[_,w,g]);const Y=z.useCallback(async M=>{const c=g.getValues(),E={};for(const T of p.allFields){if(T.noSubmit)continue;const I=T.name;let N=I in M?M[I]:c[I];T.transform?E[I]=T.transform(N,c):E[I]=N}o&&await o(E)},[p.allFields,o,g]);z.useImperativeHandle(t,()=>({...g,submit:async()=>{await g.handleSubmit(Y)()},getFormValues:()=>{const c=g.getValues(),E={};for(const T of p.allFields)T.noSubmit||(E[T.name]=c[T.name]);return E},setValues:c=>{for(const[E,T]of Object.entries(c))T!==void 0&&g.setValue(E,T)}}),[g,p,Y]);const W=()=>p.input.fields.flatMap((c,E)=>{if(c.component==="Hidden")return[];const T=[];return c.newLine&&a&&T.push(v.jsx("div",{style:{gridColumn:"1 / -1",height:0}},`${String(c.name)}-${E}-newline`)),T.push(v.jsx(ko,{field:c,index:E,values:_,form:g,disabled:u,readOnly:l,widgets:h,optionsMap:$,useGrid:a},`${String(c.name)}-${E}`)),T}),G=y??r.layout?.spacing??2;return v.jsx(Fe.FormProvider,{...g,children:v.jsxs("form",{noValidate:!0,style:{marginTop:"16px"},children:[a?v.jsx(Ao,{spacing:G,children:W()}):v.jsx(Io,{spacing:G,children:W()}),m]})})}const Bc=z.forwardRef(Dc);j.AutocompleteWidget=lt,j.CheckboxWidget=Ir,j.CustomWidget=Mr,j.DATETIME_FORMAT=Pr,j.DATE_FORMAT=Ar,j.DateTimeWidget=_r,j.DateWidget=Nr,j.FieldRenderer=ko,j.FormListWidget=tr,j.GridLayout=Ao,j.GroupWidget=Kr,j.HiddenWidget=Xr,j.NumberWidget=Qr,j.PasswordWidget=Jr,j.RadioWidget=Zr,j.RatingWidget=en,j.SchemaForm=Bc,j.SelectWidget=lt,j.SliderWidget=tn,j.StackLayout=Io,j.SwitchWidget=rn,j.TextWidget=on,j.TextareaWidget=nn,j.TimeWidget=sn,j.buildValibotSchema=fn,j.compactFieldStyles=$e,j.computeAllFieldStates=ci,j.computeFieldState=ut,j.createDynamicResolver=pn,j.defaultWidgets=Zo,j.evaluateCondition=Ne,j.extractDependencies=qe,j.getDownstreamFields=di,j.getWatchFields=un,j.mergeDefaultValues=fi,j.parseSchema=dn,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})}));