diff --git a/dist/index.js b/dist/index.js index ef80770..6894137 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,10 +2,10 @@ var Yc = Object.defineProperty; var Kc = (e, t, n) => t in e ? Yc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var En = (e, t, n) => Kc(e, typeof t != "symbol" ? t + "" : t, n); import * as x from "react"; -import at, { forwardRef as Xc, useContext as za, isValidElement as yr, cloneElement as gr, Children as Jc, createContext as Qc, useState as $t, useCallback as Zc, useMemo as eu, useEffect as li } from "react"; +import at, { forwardRef as Xc, useContext as za, isValidElement as gr, cloneElement as br, Children as Jc, createContext as Qc, useState as $t, useCallback as Zc, useMemo as eu, useEffect as ci } from "react"; import * as tu from "react-dom"; -import lr from "react-dom"; -const qo = (e) => { +import cr from "react-dom"; +const Go = (e) => { var t; if (e != null && e.status) { const { status: n, data: r, message: s } = e; @@ -53,7 +53,7 @@ const { toString: nu } = Object.prototype, { getPrototypeOf: zr } = Object, { it const n = nu.call(t); return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)), ct = (e) => (e = e.toLowerCase(), (t) => Hr(t) === e), qr = (e) => (t) => typeof t === e, { isArray: yn } = Array, pn = qr("undefined"); -function Wn(e) { +function Hn(e) { return e !== null && !pn(e) && e.constructor !== null && !pn(e.constructor) && qe(e.constructor.isBuffer) && e.constructor.isBuffer(e); } const qa = ct("ArrayBuffer"); @@ -61,26 +61,26 @@ function ru(e) { let t; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qa(e.buffer), t; } -const ou = qr("string"), qe = qr("function"), Ga = qr("number"), Hn = (e) => e !== null && typeof e == "object", su = (e) => e === !0 || e === !1, br = (e) => { +const ou = qr("string"), qe = qr("function"), Ga = qr("number"), qn = (e) => e !== null && typeof e == "object", su = (e) => e === !0 || e === !1, vr = (e) => { if (Hr(e) !== "object") return !1; const t = zr(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ha in e) && !(Wr in e); }, iu = (e) => { - if (!Hn(e) || Wn(e)) + if (!qn(e) || Hn(e)) return !1; try { return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype; } catch { return !1; } -}, au = ct("Date"), lu = ct("File"), cu = (e) => !!(e && typeof e.uri < "u"), uu = (e) => e && typeof e.getParts < "u", du = ct("Blob"), pu = ct("FileList"), fu = (e) => Hn(e) && qe(e.pipe); +}, au = ct("Date"), lu = ct("File"), cu = (e) => !!(e && typeof e.uri < "u"), uu = (e) => e && typeof e.getParts < "u", du = ct("Blob"), pu = ct("FileList"), fu = (e) => qn(e) && qe(e.pipe); function mu() { return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}; } -const ci = mu(), ui = typeof ci.FormData < "u" ? ci.FormData : void 0, hu = (e) => { +const ui = mu(), di = typeof ui.FormData < "u" ? ui.FormData : void 0, hu = (e) => { if (!e) return !1; - if (ui && e instanceof ui) return !0; + if (di && e instanceof di) return !0; const t = zr(e); if (!t || t === Object.prototype || !qe(e.append)) return !1; const n = Hr(e); @@ -92,7 +92,7 @@ const ci = mu(), ui = typeof ci.FormData < "u" ? ci.FormData : void 0, hu = (e) "Response", "Headers" ].map(ct), Su = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); -function qn(e, t, { allOwnKeys: n = !1 } = {}) { +function Gn(e, t, { allOwnKeys: n = !1 } = {}) { if (e === null || typeof e > "u") return; let r, s; @@ -100,7 +100,7 @@ function qn(e, t, { allOwnKeys: n = !1 } = {}) { for (r = 0, s = e.length; r < s; r++) t.call(null, e[r], r, e); else { - if (Wn(e)) + if (Hn(e)) return; const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length; let l; @@ -109,7 +109,7 @@ function qn(e, t, { allOwnKeys: n = !1 } = {}) { } } function Ya(e, t) { - if (Wn(e)) + if (Hn(e)) return null; t = t.toLowerCase(); const n = Object.keys(e); @@ -120,18 +120,18 @@ function Ya(e, t) { return null; } const Ft = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ka = (e) => !pn(e) && e !== Ft; -function Go(...e) { +function Yo(...e) { const { caseless: t, skipUndefined: n } = Ka(this) && this || {}, r = {}, s = (i, a) => { if (a === "__proto__" || a === "constructor" || a === "prototype") return; - const l = t && Ya(r, a) || a, c = Yo(r, l) ? r[l] : void 0; - br(c) && br(i) ? r[l] = Go(c, i) : br(i) ? r[l] = Go({}, i) : yn(i) ? r[l] = i.slice() : (!n || !pn(i)) && (r[l] = i); + const l = t && Ya(r, a) || a, c = Ko(r, l) ? r[l] : void 0; + vr(c) && vr(i) ? r[l] = Yo(c, i) : vr(i) ? r[l] = Yo({}, i) : yn(i) ? r[l] = i.slice() : (!n || !pn(i)) && (r[l] = i); }; for (let i = 0, a = e.length; i < a; i++) - e[i] && qn(e[i], s); + e[i] && Gn(e[i], s); return r; } -const Tu = (e, t, n, { allOwnKeys: r } = {}) => (qn( +const Tu = (e, t, n, { allOwnKeys: r } = {}) => (Gn( t, (s, i) => { n && qe(s) ? Object.defineProperty(e, i, { @@ -172,11 +172,11 @@ const Tu = (e, t, n, { allOwnKeys: r } = {}) => (qn( e = n !== !1 && zr(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; -}, Cu = (e, t, n) => { +}, wu = (e, t, n) => { e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; const r = e.indexOf(t, n); return r !== -1 && r === n; -}, wu = (e) => { +}, Cu = (e) => { if (!e) return null; if (yn(e)) return e; let t = e.length; @@ -200,9 +200,9 @@ const Tu = (e, t, n, { allOwnKeys: r } = {}) => (qn( return r; }, Iu = ct("HTMLFormElement"), Nu = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) { return r.toUpperCase() + s; -}), Yo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ku = ct("RegExp"), Xa = (e, t) => { +}), Ko = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ku = ct("RegExp"), Xa = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; - qn(n, (s, i) => { + Gn(n, (s, i) => { let a; (a = t(s, i, e)) !== !1 && (r[i] = a || s); }), Object.defineProperties(e, r); @@ -235,15 +235,15 @@ function Du(e) { } const Bu = (e) => { const t = /* @__PURE__ */ new WeakSet(), n = (r) => { - if (Hn(r)) { + if (qn(r)) { if (t.has(r)) return; - if (Wn(r)) + if (Hn(r)) return r; if (!("toJSON" in r)) { t.add(r); const s = yn(r) ? [] : {}; - return qn(r, (i, a) => { + return Gn(r, (i, a) => { const l = n(i); !pn(l) && (s[a] = l); }), t.delete(r), s; @@ -252,7 +252,7 @@ const Bu = (e) => { return r; }; return n(e); -}, Fu = ct("AsyncFunction"), Uu = (e) => e && (Hn(e) || qe(e)) && qe(e.then) && qe(e.catch), Ja = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ft.addEventListener( +}, Fu = ct("AsyncFunction"), Uu = (e) => e && (qn(e) || qe(e)) && qe(e.then) && qe(e.catch), Ja = ((e, t) => e ? setImmediate : t ? ((n, r) => (Ft.addEventListener( "message", ({ source: s, data: i }) => { s === Ft && i === n && r.length && r.shift()(); @@ -260,17 +260,17 @@ const Bu = (e) => { !1 ), (s) => { r.push(s), Ft.postMessage(n, "*"); -}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", qe(Ft.postMessage)), Vu = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ft) : typeof process < "u" && process.nextTick || Ja, zu = (e) => e != null && qe(e[Wr]), w = { +}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", qe(Ft.postMessage)), Vu = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ft) : typeof process < "u" && process.nextTick || Ja, zu = (e) => e != null && qe(e[Wr]), C = { isArray: yn, isArrayBuffer: qa, - isBuffer: Wn, + isBuffer: Hn, isFormData: hu, isArrayBufferView: ru, isString: ou, isNumber: Ga, isBoolean: su, - isObject: Hn, - isPlainObject: br, + isObject: qn, + isPlainObject: vr, isEmptyObject: iu, isReadableStream: gu, isRequest: bu, @@ -288,8 +288,8 @@ const Bu = (e) => { isURLSearchParams: yu, isTypedArray: Pu, isFileList: pu, - forEach: qn, - merge: Go, + forEach: Gn, + merge: Yo, extend: Tu, trim: Su, stripBOM: xu, @@ -297,13 +297,13 @@ const Bu = (e) => { toFlatObject: Ru, kindOf: Hr, kindOfTest: ct, - endsWith: Cu, - toArray: wu, + endsWith: wu, + toArray: Cu, forEachEntry: _u, matchAll: Au, isHTMLForm: Iu, - hasOwnProperty: Yo, - hasOwnProp: Yo, + hasOwnProperty: Ko, + hasOwnProp: Ko, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: Xa, freezeMethods: $u, @@ -321,7 +321,7 @@ const Bu = (e) => { setImmediate: Ja, asap: Vu, isIterable: zu -}, Wu = w.toObjectSet([ +}, Wu = C.toObjectSet([ "age", "authorization", "content-length", @@ -364,22 +364,22 @@ function qu(e) { return t === 0 && n === e.length ? e : e.slice(t, n); } const Gu = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Yu = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g"); -function Ts(e, t) { - return w.isArray(e) ? e.map((n) => Ts(n, t)) : qu(String(e).replace(t, "")); +function xs(e, t) { + return C.isArray(e) ? e.map((n) => xs(n, t)) : qu(String(e).replace(t, "")); } -const Ku = (e) => Ts(e, Gu), Xu = (e) => Ts(e, Yu); +const Ku = (e) => xs(e, Gu), Xu = (e) => xs(e, Yu); function Qa(e) { const t = /* @__PURE__ */ Object.create(null); - return w.forEach(e.toJSON(), (n, r) => { + return C.forEach(e.toJSON(), (n, r) => { t[r] = Xu(n); }), t; } -const di = Symbol("internals"); +const pi = Symbol("internals"); function Sn(e) { return e && String(e).trim().toLowerCase(); } -function vr(e) { - return e === !1 || e == null ? e : w.isArray(e) ? e.map(vr) : Ku(String(e)); +function Er(e) { + return e === !1 || e == null ? e : C.isArray(e) ? e.map(Er) : Ku(String(e)); } function Ju(e) { const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; @@ -390,12 +390,12 @@ function Ju(e) { } const Qu = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function Ro(e, t, n, r, s) { - if (w.isFunction(r)) + if (C.isFunction(r)) return r.call(this, t, n); - if (s && (t = n), !!w.isString(t)) { - if (w.isString(r)) + if (s && (t = n), !!C.isString(t)) { + if (C.isString(r)) return t.indexOf(r) !== -1; - if (w.isRegExp(r)) + if (C.isRegExp(r)) return r.test(t); } } @@ -403,7 +403,7 @@ function Zu(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); } function ed(e, t) { - const n = w.toCamelCase(" " + t); + const n = C.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { // Null-proto descriptor so a polluted Object.prototype.get cannot turn @@ -426,20 +426,20 @@ let ze = class { const d = Sn(c); if (!d) throw new Error("header name must be a non-empty string"); - const h = w.findKey(s, d); - (!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || c] = vr(l)); + const h = C.findKey(s, d); + (!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || c] = Er(l)); } - const a = (l, c) => w.forEach(l, (u, d) => i(u, d, c)); - if (w.isPlainObject(t) || t instanceof this.constructor) + const a = (l, c) => C.forEach(l, (u, d) => i(u, d, c)); + if (C.isPlainObject(t) || t instanceof this.constructor) a(t, n); - else if (w.isString(t) && (t = t.trim()) && !Qu(t)) + else if (C.isString(t) && (t = t.trim()) && !Qu(t)) a(Hu(t), n); - else if (w.isObject(t) && w.isIterable(t)) { + else if (C.isObject(t) && C.isIterable(t)) { let l = {}, c, u; for (const d of t) { - if (!w.isArray(d)) + if (!C.isArray(d)) throw TypeError("Object iterator must return a key-value pair"); - l[u = d[0]] = (c = l[u]) ? w.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1]; + l[u = d[0]] = (c = l[u]) ? C.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1]; } a(l, n); } else @@ -448,16 +448,16 @@ let ze = class { } get(t, n) { if (t = Sn(t), t) { - const r = w.findKey(this, t); + const r = C.findKey(this, t); if (r) { const s = this[r]; if (!n) return s; if (n === !0) return Ju(s); - if (w.isFunction(n)) + if (C.isFunction(n)) return n.call(this, s, r); - if (w.isRegExp(n)) + if (C.isRegExp(n)) return n.exec(s); throw new TypeError("parser must be boolean|regexp|function"); } @@ -465,7 +465,7 @@ let ze = class { } has(t, n) { if (t = Sn(t), t) { - const r = w.findKey(this, t); + const r = C.findKey(this, t); return !!(r && this[r] !== void 0 && (!n || Ro(this, this[r], r, n))); } return !1; @@ -475,11 +475,11 @@ let ze = class { let s = !1; function i(a) { if (a = Sn(a), a) { - const l = w.findKey(r, a); + const l = C.findKey(r, a); l && (!n || Ro(r, r[l], l, n)) && (delete r[l], s = !0); } } - return w.isArray(t) ? t.forEach(i) : i(t), s; + return C.isArray(t) ? t.forEach(i) : i(t), s; } clear(t) { const n = Object.keys(this); @@ -492,14 +492,14 @@ let ze = class { } normalize(t) { const n = this, r = {}; - return w.forEach(this, (s, i) => { - const a = w.findKey(r, i); + return C.forEach(this, (s, i) => { + const a = C.findKey(r, i); if (a) { - n[a] = vr(s), delete n[i]; + n[a] = Er(s), delete n[i]; return; } const l = t ? Zu(i) : String(i).trim(); - l !== i && delete n[i], n[l] = vr(s), r[l] = !0; + l !== i && delete n[i], n[l] = Er(s), r[l] = !0; }), this; } concat(...t) { @@ -507,8 +507,8 @@ let ze = class { } toJSON(t) { const n = /* @__PURE__ */ Object.create(null); - return w.forEach(this, (r, s) => { - r != null && r !== !1 && (n[s] = t && w.isArray(r) ? r.join(", ") : r); + return C.forEach(this, (r, s) => { + r != null && r !== !1 && (n[s] = t && C.isArray(r) ? r.join(", ") : r); }), n; } [Symbol.iterator]() { @@ -532,14 +532,14 @@ let ze = class { return n.forEach((s) => r.set(s)), r; } static accessor(t) { - const r = (this[di] = this[di] = { + const r = (this[pi] = this[pi] = { accessors: {} }).accessors, s = this.prototype; function i(a) { const l = Sn(a); r[l] || (ed(s, a), r[l] = !0); } - return w.isArray(t) ? t.forEach(i) : i(t), this; + return C.isArray(t) ? t.forEach(i) : i(t), this; } }; ze.accessor([ @@ -550,7 +550,7 @@ ze.accessor([ "User-Agent", "Authorization" ]); -w.reduceDescriptors(ze.prototype, ({ value: e }, t) => { +C.reduceDescriptors(ze.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, @@ -559,14 +559,14 @@ w.reduceDescriptors(ze.prototype, ({ value: e }, t) => { } }; }); -w.freezeMethods(ze); +C.freezeMethods(ze); const td = "[REDACTED ****]"; function nd(e) { - if (w.hasOwnProp(e, "toJSON")) + if (C.hasOwnProp(e, "toJSON")) return !0; let t = Object.getPrototypeOf(e); for (; t && t !== Object.prototype; ) { - if (w.hasOwnProp(t, "toJSON")) + if (C.hasOwnProp(t, "toJSON")) return !0; t = Object.getPrototypeOf(t); } @@ -574,22 +574,22 @@ function nd(e) { } function rd(e, t) { const n = new Set(t.map((i) => String(i).toLowerCase())), r = [], s = (i) => { - if (i === null || typeof i != "object" || w.isBuffer(i)) return i; + if (i === null || typeof i != "object" || C.isBuffer(i)) return i; if (r.indexOf(i) !== -1) return; i instanceof ze && (i = i.toJSON()), r.push(i); let a; - if (w.isArray(i)) + if (C.isArray(i)) a = [], i.forEach((l, c) => { const u = s(l); - w.isUndefined(u) || (a[c] = u); + C.isUndefined(u) || (a[c] = u); }); else { - if (!w.isPlainObject(i) && nd(i)) + if (!C.isPlainObject(i) && nd(i)) return r.pop(), i; a = /* @__PURE__ */ Object.create(null); for (const [l, c] of Object.entries(i)) { const u = n.has(l.toLowerCase()) ? td : s(c); - w.isUndefined(u) || (a[l] = u); + C.isUndefined(u) || (a[l] = u); } } return r.pop(), a; @@ -624,7 +624,7 @@ let te = class Za extends Error { }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), i && (this.response = i, this.status = i.status); } toJSON() { - const t = this.config, n = t && w.hasOwnProp(t, "redact") ? t.redact : void 0, r = w.isArray(n) && n.length > 0 ? rd(t, n) : w.toJSONObject(t); + const t = this.config, n = t && C.hasOwnProp(t, "redact") ? t.redact : void 0, r = C.isArray(n) && n.length > 0 ? rd(t, n) : C.toJSONObject(t); return { // Standard message: this.message, @@ -659,27 +659,27 @@ te.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT"; te.ERR_INVALID_URL = "ERR_INVALID_URL"; te.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED"; const od = null; -function Ko(e) { - return w.isPlainObject(e) || w.isArray(e); +function Xo(e) { + return C.isPlainObject(e) || C.isArray(e); } function el(e) { - return w.endsWith(e, "[]") ? e.slice(0, -2) : e; + return C.endsWith(e, "[]") ? e.slice(0, -2) : e; } -function Co(e, t, n) { +function wo(e, t, n) { return e ? e.concat(t).map(function(s, i) { return s = el(s), !n && i ? "[" + s + "]" : s; }).join(n ? "." : "") : t; } function sd(e) { - return w.isArray(e) && !e.some(Ko); + return C.isArray(e) && !e.some(Xo); } -const id = w.toFlatObject(w, {}, null, function(t) { +const id = C.toFlatObject(C, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function Gr(e, t, n) { - if (!w.isObject(e)) + if (!C.isObject(e)) throw new TypeError("target must be an object"); - t = t || new FormData(), n = w.toFlatObject( + t = t || new FormData(), n = C.toFlatObject( n, { metaTokens: !0, @@ -688,47 +688,47 @@ function Gr(e, t, n) { }, !1, function(y, S) { - return !w.isUndefined(S[y]); + return !C.isUndefined(S[y]); } ); - const r = n.metaTokens, s = n.visitor || h, i = n.dots, a = n.indexes, l = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, u = l && w.isSpecCompliantForm(t); - if (!w.isFunction(s)) + const r = n.metaTokens, s = n.visitor || h, i = n.dots, a = n.indexes, l = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, u = l && C.isSpecCompliantForm(t); + if (!C.isFunction(s)) throw new TypeError("visitor must be a function"); function d(p) { if (p === null) return ""; - if (w.isDate(p)) + if (C.isDate(p)) return p.toISOString(); - if (w.isBoolean(p)) + if (C.isBoolean(p)) return p.toString(); - if (!u && w.isBlob(p)) + if (!u && C.isBlob(p)) throw new te("Blob is not supported. Use a Buffer instead."); - return w.isArrayBuffer(p) || w.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; + return C.isArrayBuffer(p) || C.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; } function h(p, y, S) { let R = p; - if (w.isReactNative(t) && w.isReactNativeBlob(p)) - return t.append(Co(S, y, i), d(p)), !1; + if (C.isReactNative(t) && C.isReactNativeBlob(p)) + return t.append(wo(S, y, i), d(p)), !1; if (p && !S && typeof p == "object") { - if (w.endsWith(y, "{}")) + if (C.endsWith(y, "{}")) y = r ? y : y.slice(0, -2), p = JSON.stringify(p); - else if (w.isArray(p) && sd(p) || (w.isFileList(p) || w.endsWith(y, "[]")) && (R = w.toArray(p))) + else if (C.isArray(p) && sd(p) || (C.isFileList(p) || C.endsWith(y, "[]")) && (R = C.toArray(p))) return y = el(y), R.forEach(function(b, E) { - !(w.isUndefined(b) || b === null) && t.append( + !(C.isUndefined(b) || b === null) && t.append( // eslint-disable-next-line no-nested-ternary - a === !0 ? Co([y], E, i) : a === null ? y : y + "[]", + a === !0 ? wo([y], E, i) : a === null ? y : y + "[]", d(b) ); }), !1; } - return Ko(p) ? !0 : (t.append(Co(S, y, i), d(p)), !1); + return Xo(p) ? !0 : (t.append(wo(S, y, i), d(p)), !1); } const v = [], m = Object.assign(id, { defaultVisitor: h, convertValue: d, - isVisitable: Ko + isVisitable: Xo }); function g(p, y, S = 0) { - if (!w.isUndefined(p)) { + if (!C.isUndefined(p)) { if (S > c) throw new te( "Object is too deeply nested (" + S + " levels). Max depth: " + c, @@ -736,16 +736,16 @@ function Gr(e, t, n) { ); if (v.indexOf(p) !== -1) throw Error("Circular reference detected in " + y.join(".")); - v.push(p), w.forEach(p, function(T, b) { - (!(w.isUndefined(T) || T === null) && s.call(t, T, w.isString(b) ? b.trim() : b, y, m)) === !0 && g(T, y ? y.concat(b) : [b], S + 1); + v.push(p), C.forEach(p, function(T, b) { + (!(C.isUndefined(T) || T === null) && s.call(t, T, C.isString(b) ? b.trim() : b, y, m)) === !0 && g(T, y ? y.concat(b) : [b], S + 1); }), v.pop(); } } - if (!w.isObject(e)) + if (!C.isObject(e)) throw new TypeError("data must be an object"); return g(e), t; } -function pi(e) { +function fi(e) { const t = { "!": "%21", "'": "%27", @@ -758,17 +758,17 @@ function pi(e) { return t[r]; }); } -function xs(e, t) { +function Os(e, t) { this._pairs = [], e && Gr(e, this, t); } -const tl = xs.prototype; +const tl = Os.prototype; tl.append = function(t, n) { this._pairs.push([t, n]); }; tl.toString = function(t) { const n = t ? function(r) { - return t.call(this, r, pi); - } : pi; + return t.call(this, r, fi); + } : fi; return this._pairs.map(function(s) { return n(s[0]) + "=" + n(s[1]); }, "").join("&"); @@ -779,17 +779,17 @@ function ad(e) { function nl(e, t, n) { if (!t) return e; - const r = n && n.encode || ad, s = w.isFunction(n) ? { + const r = n && n.encode || ad, s = C.isFunction(n) ? { serialize: n } : n, i = s && s.serialize; let a; - if (i ? a = i(t, s) : a = w.isURLSearchParams(t) ? t.toString() : new xs(t, s).toString(r), a) { + if (i ? a = i(t, s) : a = C.isURLSearchParams(t) ? t.toString() : new Os(t, s).toString(r), a) { const l = e.indexOf("#"); l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + a; } return e; } -class fi { +class mi { constructor() { this.handlers = []; } @@ -839,17 +839,17 @@ class fi { * @returns {void} */ forEach(t) { - w.forEach(this.handlers, function(r) { + C.forEach(this.handlers, function(r) { r !== null && t(r); }); } } -const Os = { +const Rs = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1, legacyInterceptorReqResOrdering: !0 -}, ld = typeof URLSearchParams < "u" ? URLSearchParams : xs, cd = typeof FormData < "u" ? FormData : null, ud = typeof Blob < "u" ? Blob : null, dd = { +}, ld = typeof URLSearchParams < "u" ? URLSearchParams : Os, cd = typeof FormData < "u" ? FormData : null, ud = typeof Blob < "u" ? Blob : null, dd = { isBrowser: !0, classes: { URLSearchParams: ld, @@ -857,13 +857,13 @@ const Os = { Blob: ud }, protocols: ["http", "https", "file", "blob", "url", "data"] -}, Rs = typeof window < "u" && typeof document < "u", Xo = typeof navigator == "object" && navigator || void 0, pd = Rs && (!Xo || ["ReactNative", "NativeScript", "NS"].indexOf(Xo.product) < 0), fd = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef -self instanceof WorkerGlobalScope && typeof self.importScripts == "function", md = Rs && window.location.href || "http://localhost", hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, ws = typeof window < "u" && typeof document < "u", Jo = typeof navigator == "object" && navigator || void 0, pd = ws && (!Jo || ["ReactNative", "NativeScript", "NS"].indexOf(Jo.product) < 0), fd = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef +self instanceof WorkerGlobalScope && typeof self.importScripts == "function", md = ws && window.location.href || "http://localhost", hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - hasBrowserEnv: Rs, + hasBrowserEnv: ws, hasStandardBrowserEnv: pd, hasStandardBrowserWebWorkerEnv: fd, - navigator: Xo, + navigator: Jo, origin: md }, Symbol.toStringTag, { value: "Module" })), Ue = { ...hd, @@ -872,13 +872,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", md function yd(e, t) { return Gr(e, new Ue.classes.URLSearchParams(), { visitor: function(n, r, s, i) { - return Ue.isNode && w.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); + return Ue.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); }, ...t }); } function gd(e) { - return w.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); + return C.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } function bd(e) { const t = {}, n = Object.keys(e); @@ -894,47 +894,47 @@ function rl(e) { let a = n[i++]; if (a === "__proto__") return !0; const l = Number.isFinite(+a), c = i >= n.length; - return a = !a && w.isArray(s) ? s.length : a, c ? (w.hasOwnProp(s, a) ? s[a] = w.isArray(s[a]) ? s[a].concat(r) : [s[a], r] : s[a] = r, !l) : ((!w.hasOwnProp(s, a) || !w.isObject(s[a])) && (s[a] = []), t(n, r, s[a], i) && w.isArray(s[a]) && (s[a] = bd(s[a])), !l); + return a = !a && C.isArray(s) ? s.length : a, c ? (C.hasOwnProp(s, a) ? s[a] = C.isArray(s[a]) ? s[a].concat(r) : [s[a], r] : s[a] = r, !l) : ((!C.hasOwnProp(s, a) || !C.isObject(s[a])) && (s[a] = []), t(n, r, s[a], i) && C.isArray(s[a]) && (s[a] = bd(s[a])), !l); } - if (w.isFormData(e) && w.isFunction(e.entries)) { + if (C.isFormData(e) && C.isFunction(e.entries)) { const n = {}; - return w.forEachEntry(e, (r, s) => { + return C.forEachEntry(e, (r, s) => { t(gd(r), s, n, 0); }), n; } return null; } -const en = (e, t) => e != null && w.hasOwnProp(e, t) ? e[t] : void 0; +const en = (e, t) => e != null && C.hasOwnProp(e, t) ? e[t] : void 0; function vd(e, t, n) { - if (w.isString(e)) + if (C.isString(e)) try { - return (t || JSON.parse)(e), w.trim(e); + return (t || JSON.parse)(e), C.trim(e); } catch (r) { if (r.name !== "SyntaxError") throw r; } return (n || JSON.stringify)(e); } -const Gn = { - transitional: Os, +const Yn = { + transitional: Rs, adapter: ["xhr", "http", "fetch"], transformRequest: [ function(t, n) { - const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = w.isObject(t); - if (i && w.isHTMLForm(t) && (t = new FormData(t)), w.isFormData(t)) + const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = C.isObject(t); + if (i && C.isHTMLForm(t) && (t = new FormData(t)), C.isFormData(t)) return s ? JSON.stringify(rl(t)) : t; - if (w.isArrayBuffer(t) || w.isBuffer(t) || w.isStream(t) || w.isFile(t) || w.isBlob(t) || w.isReadableStream(t)) + if (C.isArrayBuffer(t) || C.isBuffer(t) || C.isStream(t) || C.isFile(t) || C.isBlob(t) || C.isReadableStream(t)) return t; - if (w.isArrayBufferView(t)) + if (C.isArrayBufferView(t)) return t.buffer; - if (w.isURLSearchParams(t)) + if (C.isURLSearchParams(t)) return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); let l; if (i) { const c = en(this, "formSerializer"); if (r.indexOf("application/x-www-form-urlencoded") > -1) return yd(t, c).toString(); - if ((l = w.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + if ((l = C.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const u = en(this, "env"), d = u && u.FormData; return Gr( l ? { "files[]": t } : t, @@ -948,10 +948,10 @@ const Gn = { ], transformResponse: [ function(t) { - const n = en(this, "transitional") || Gn.transitional, r = n && n.forcedJSONParsing, s = en(this, "responseType"), i = s === "json"; - if (w.isResponse(t) || w.isReadableStream(t)) + const n = en(this, "transitional") || Yn.transitional, r = n && n.forcedJSONParsing, s = en(this, "responseType"), i = s === "json"; + if (C.isResponse(t) || C.isReadableStream(t)) return t; - if (t && w.isString(t) && (r && !s || i)) { + if (t && C.isString(t) && (r && !s || i)) { const l = !(n && n.silentJSONParsing) && i; try { return JSON.parse(t, en(this, "parseReviver")); @@ -986,20 +986,20 @@ const Gn = { } } }; -w.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => { - Gn.headers[e] = {}; +C.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => { + Yn.headers[e] = {}; }); -function wo(e, t) { - const n = this || Gn, r = t || n, s = ze.from(r.headers); +function Co(e, t) { + const n = this || Yn, r = t || n, s = ze.from(r.headers); let i = r.data; - return w.forEach(e, function(l) { + return C.forEach(e, function(l) { i = l.call(n, i, s.normalize(), t ? t.status : void 0); }), s.normalize(), i; } function ol(e) { return !!(e && e.__CANCEL__); } -let Yn = class extends te { +let Kn = class extends te { /** * A `CanceledError` is an object that is thrown when an operation is canceled. * @@ -1055,7 +1055,7 @@ function Td(e, t) { }, r - h))); }, () => s && a(s)]; } -const Rr = (e, t, n = 3) => { +const wr = (e, t, n = 3) => { let r = 0; const s = Sd(50, 250); return Td((i) => { @@ -1076,7 +1076,7 @@ const Rr = (e, t, n = 3) => { }; e(h); }, n); -}, mi = (e, t) => { +}, hi = (e, t) => { const n = e != null; return [ (r) => t[0]({ @@ -1086,7 +1086,7 @@ const Rr = (e, t, n = 3) => { }), t[1] ]; -}, hi = (e) => (...t) => w.asap(() => e(...t)), xd = Ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ue.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( +}, yi = (e) => (...t) => C.asap(() => e(...t)), xd = Ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ue.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( new URL(Ue.origin), Ue.navigator && /(msie|trident)/i.test(Ue.navigator.userAgent) ) : () => !0, Od = Ue.hasStandardBrowserEnv ? ( @@ -1095,7 +1095,7 @@ const Rr = (e, t, n = 3) => { write(e, t, n, r, s, i, a) { if (typeof document > "u") return; const l = [`${e}=${encodeURIComponent(t)}`]; - w.isNumber(n) && l.push(`expires=${new Date(n).toUTCString()}`), w.isString(r) && l.push(`path=${r}`), w.isString(s) && l.push(`domain=${s}`), i === !0 && l.push("secure"), w.isString(a) && l.push(`SameSite=${a}`), document.cookie = l.join("; "); + C.isNumber(n) && l.push(`expires=${new Date(n).toUTCString()}`), C.isString(r) && l.push(`path=${r}`), C.isString(s) && l.push(`domain=${s}`), i === !0 && l.push("secure"), C.isString(a) && l.push(`SameSite=${a}`), document.cookie = l.join("; "); }, read(e) { if (typeof document > "u") return null; @@ -1126,14 +1126,14 @@ const Rr = (e, t, n = 3) => { function Rd(e) { return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); } -function Cd(e, t) { +function wd(e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; } function il(e, t, n) { let r = !Rd(t); - return e && (r || n === !1) ? Cd(e, t) : t; + return e && (r || n === !1) ? wd(e, t) : t; } -const yi = (e) => e instanceof ze ? { ...e } : e; +const gi = (e) => e instanceof ze ? { ...e } : e; function Ht(e, t) { t = t || {}; const n = /* @__PURE__ */ Object.create(null); @@ -1147,28 +1147,28 @@ function Ht(e, t) { configurable: !0 }); function r(u, d, h, v) { - return w.isPlainObject(u) && w.isPlainObject(d) ? w.merge.call({ caseless: v }, u, d) : w.isPlainObject(d) ? w.merge({}, d) : w.isArray(d) ? d.slice() : d; + return C.isPlainObject(u) && C.isPlainObject(d) ? C.merge.call({ caseless: v }, u, d) : C.isPlainObject(d) ? C.merge({}, d) : C.isArray(d) ? d.slice() : d; } function s(u, d, h, v) { - if (w.isUndefined(d)) { - if (!w.isUndefined(u)) + if (C.isUndefined(d)) { + if (!C.isUndefined(u)) return r(void 0, u, h, v); } else return r(u, d, h, v); } function i(u, d) { - if (!w.isUndefined(d)) + if (!C.isUndefined(d)) return r(void 0, d); } function a(u, d) { - if (w.isUndefined(d)) { - if (!w.isUndefined(u)) + if (C.isUndefined(d)) { + if (!C.isUndefined(u)) return r(void 0, u); } else return r(void 0, d); } function l(u, d, h) { - if (w.hasOwnProp(t, h)) + if (C.hasOwnProp(t, h)) return r(u, d); - if (w.hasOwnProp(e, h)) + if (C.hasOwnProp(e, h)) return r(void 0, u); } const c = { @@ -1201,29 +1201,29 @@ function Ht(e, t) { allowedSocketPaths: a, responseEncoding: a, validateStatus: l, - headers: (u, d, h) => s(yi(u), yi(d), h, !0) + headers: (u, d, h) => s(gi(u), gi(d), h, !0) }; - return w.forEach(Object.keys({ ...e, ...t }), function(d) { + return C.forEach(Object.keys({ ...e, ...t }), function(d) { if (d === "__proto__" || d === "constructor" || d === "prototype") return; - const h = w.hasOwnProp(c, d) ? c[d] : s, v = w.hasOwnProp(e, d) ? e[d] : void 0, m = w.hasOwnProp(t, d) ? t[d] : void 0, g = h(v, m, d); - w.isUndefined(g) && h !== l || (n[d] = g); + const h = C.hasOwnProp(c, d) ? c[d] : s, v = C.hasOwnProp(e, d) ? e[d] : void 0, m = C.hasOwnProp(t, d) ? t[d] : void 0, g = h(v, m, d); + C.isUndefined(g) && h !== l || (n[d] = g); }), n; } -const wd = ["content-type", "content-length"]; +const Cd = ["content-type", "content-length"]; function Pd(e, t, n) { if (n !== "content-only") { e.set(t); return; } Object.entries(t).forEach(([r, s]) => { - wd.includes(r.toLowerCase()) && e.set(r, s); + Cd.includes(r.toLowerCase()) && e.set(r, s); }); } const _d = (e) => encodeURIComponent(e).replace( /%([0-9A-F]{2})/gi, (t, n) => String.fromCharCode(parseInt(n, 16)) ), al = (e) => { - const t = Ht({}, e), n = (v) => w.hasOwnProp(t, v) ? t[v] : void 0, r = n("data"); + const t = Ht({}, e), n = (v) => C.hasOwnProp(t, v) ? t[v] : void 0, r = n("data"); let s = n("withXSRFToken"); const i = n("xsrfHeaderName"), a = n("xsrfCookieName"); let l = n("headers"); @@ -1235,7 +1235,7 @@ const _d = (e) => encodeURIComponent(e).replace( ), c && l.set( "Authorization", "Basic " + btoa((c.username || "") + ":" + (c.password ? _d(c.password) : "")) - ), w.isFormData(r) && (Ue.hasStandardBrowserEnv || Ue.hasStandardBrowserWebWorkerEnv ? l.setContentType(void 0) : w.isFunction(r.getHeaders) && Pd(l, r.getHeaders(), n("formDataHeaderPolicy"))), Ue.hasStandardBrowserEnv && (w.isFunction(s) && (s = s(t)), s === !0 || s == null && xd(t.url))) { + ), C.isFormData(r) && (Ue.hasStandardBrowserEnv || Ue.hasStandardBrowserWebWorkerEnv ? l.setContentType(void 0) : C.isFunction(r.getHeaders) && Pd(l, r.getHeaders(), n("formDataHeaderPolicy"))), Ue.hasStandardBrowserEnv && (C.isFunction(s) && (s = s(t)), s === !0 || s == null && xd(t.url))) { const m = i && a && Od.read(a); m && l.set(i, m); } @@ -1279,11 +1279,11 @@ const _d = (e) => encodeURIComponent(e).replace( }, y.onabort = function() { y && (r(new te("Request aborted", te.ECONNABORTED, e, y)), p(), y = null); }, y.onerror = function(b) { - const E = b && b.message ? b.message : "Network Error", C = new te(E, te.ERR_NETWORK, e, y); - C.event = b || null, r(C), p(), y = null; + const E = b && b.message ? b.message : "Network Error", w = new te(E, te.ERR_NETWORK, e, y); + w.event = b || null, r(w), p(), y = null; }, y.ontimeout = function() { let b = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded"; - const E = s.transitional || Os; + const E = s.transitional || Rs; s.timeoutErrorMessage && (b = s.timeoutErrorMessage), r( new te( b, @@ -1292,10 +1292,10 @@ const _d = (e) => encodeURIComponent(e).replace( y ) ), p(), y = null; - }, i === void 0 && a.setContentType(null), "setRequestHeader" in y && w.forEach(Qa(a), function(b, E) { + }, i === void 0 && a.setContentType(null), "setRequestHeader" in y && C.forEach(Qa(a), function(b, E) { y.setRequestHeader(E, b); - }), w.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), l && l !== "json" && (y.responseType = s.responseType), u && ([v, g] = Rr(u, !0), y.addEventListener("progress", v)), c && y.upload && ([h, m] = Rr(c), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", m)), (s.cancelToken || s.signal) && (d = (T) => { - y && (r(!T || T.type ? new Yn(null, e, y) : T), y.abort(), p(), y = null); + }), C.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), l && l !== "json" && (y.responseType = s.responseType), u && ([v, g] = wr(u, !0), y.addEventListener("progress", v)), c && y.upload && ([h, m] = wr(c), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", m)), (s.cancelToken || s.signal) && (d = (T) => { + y && (r(!T || T.type ? new Kn(null, e, y) : T), y.abort(), p(), y = null); }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d))); const R = Ed(s.url); if (R && !Ue.protocols.includes(R)) { @@ -1320,7 +1320,7 @@ const _d = (e) => encodeURIComponent(e).replace( r = !0, a(); const u = c instanceof Error ? c : this.reason; n.abort( - u instanceof te ? u : new Yn(u instanceof Error ? u.message : u) + u instanceof te ? u : new Kn(u instanceof Error ? u.message : u) ); } }; @@ -1334,7 +1334,7 @@ const _d = (e) => encodeURIComponent(e).replace( }; e.forEach((c) => c.addEventListener("abort", s)); const { signal: l } = n; - return l.unsubscribe = () => w.asap(a), l; + return l.unsubscribe = () => C.asap(a), l; }, kd = function* (e, t) { let n = e.byteLength; if (n < t) { @@ -1363,7 +1363,7 @@ const _d = (e) => encodeURIComponent(e).replace( } finally { await t.cancel(); } -}, gi = (e, t, n, r) => { +}, bi = (e, t, n, r) => { const s = $d(e, t); let i = 0, a, l = (c) => { a || (a = !0, r && r(c)); @@ -1434,15 +1434,15 @@ function jd(e) { } return i; } -const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { +const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { try { return !!e(...t); } catch { return !1; } }, Ld = (e) => { - const t = w.global !== void 0 && w.global !== null ? w.global : globalThis, { ReadableStream: n, TextEncoder: r } = t; - e = w.merge.call( + const t = C.global !== void 0 && C.global !== null ? C.global : globalThis, { ReadableStream: n, TextEncoder: r } = t; + e = C.merge.call( { skipUndefined: !0 }, @@ -1452,10 +1452,10 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { }, e ); - const { fetch: s, Request: i, Response: a } = e, l = s ? cr(s) : typeof fetch == "function", c = cr(i), u = cr(a); + const { fetch: s, Request: i, Response: a } = e, l = s ? ur(s) : typeof fetch == "function", c = ur(i), u = ur(a); if (!l) return !1; - const d = l && cr(n), h = l && (typeof r == "function" ? /* @__PURE__ */ ((S) => (R) => S.encode(R))(new r()) : async (S) => new Uint8Array(await new i(S).arrayBuffer())), v = c && d && vi(() => { + const d = l && ur(n), h = l && (typeof r == "function" ? /* @__PURE__ */ ((S) => (R) => S.encode(R))(new r()) : async (S) => new Uint8Array(await new i(S).arrayBuffer())), v = c && d && Ei(() => { let S = !1; const R = new i(Ue.origin, { body: new n(), @@ -1465,7 +1465,7 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { } }), T = R.headers.has("Content-Type"); return R.body != null && R.body.cancel(), S && !T; - }), m = u && d && vi(() => w.isReadableStream(new a("").body)), g = { + }), m = u && d && Ei(() => C.isReadableStream(new a("").body)), g = { stream: m && ((S) => S.body) }; l && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((S) => { @@ -1483,19 +1483,19 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { const p = async (S) => { if (S == null) return 0; - if (w.isBlob(S)) + if (C.isBlob(S)) return S.size; - if (w.isSpecCompliantForm(S)) + if (C.isSpecCompliantForm(S)) return (await new i(Ue.origin, { method: "POST", body: S }).arrayBuffer()).byteLength; - if (w.isArrayBufferView(S) || w.isArrayBuffer(S)) + if (C.isArrayBufferView(S) || C.isArrayBuffer(S)) return S.byteLength; - if (w.isURLSearchParams(S) && (S = S + ""), w.isString(S)) + if (C.isURLSearchParams(S) && (S = S + ""), C.isString(S)) return (await h(S)).byteLength; }, y = async (S, R) => { - const T = w.toFiniteNumber(S.getContentLength()); + const T = C.toFiniteNumber(S.getContentLength()); return T ?? p(R); }; return async (S) => { @@ -1504,39 +1504,39 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { method: T, data: b, signal: E, - cancelToken: C, + cancelToken: w, timeout: k, - onDownloadProgress: D, + onDownloadProgress: L, onUploadProgress: H, responseType: G, - headers: F, + headers: z, withCredentials: f = "same-origin", - fetchOptions: A, - maxContentLength: I, - maxBodyLength: L + fetchOptions: I, + maxContentLength: A, + maxBodyLength: j } = al(S); - const M = w.isNumber(I) && I > -1, Y = w.isNumber(L) && L > -1; - let Q = s || fetch; + const $ = C.isNumber(A) && A > -1, Y = C.isNumber(j) && j > -1; + let Z = s || fetch; G = G ? (G + "").toLowerCase() : "text"; let X = Nd( - [E, C && C.toAbortSignal()], + [E, w && w.toAbortSignal()], k ), O = null; - const P = X && X.unsubscribe && (() => { + const _ = X && X.unsubscribe && (() => { X.unsubscribe(); }); let q; try { - if (M && typeof R == "string" && R.startsWith("data:") && jd(R) > I) + if ($ && typeof R == "string" && R.startsWith("data:") && jd(R) > A) throw new te( - "maxContentLength size of " + I + " exceeded", + "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, S, O ); if (Y && T !== "get" && T !== "head") { - const U = await y(F, b); - if (typeof U == "number" && isFinite(U) && U > L) + const U = await y(z, b); + if (typeof U == "number" && isFinite(U) && U > j) throw new te( "Request body larger than maxBodyLength limit", te.ERR_BAD_REQUEST, @@ -1544,118 +1544,118 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { O ); } - if (H && v && T !== "get" && T !== "head" && (q = await y(F, b)) !== 0) { + if (H && v && T !== "get" && T !== "head" && (q = await y(z, b)) !== 0) { let U = new i(R, { method: "POST", body: b, duplex: "half" }), K; - if (w.isFormData(b) && (K = U.headers.get("content-type")) && F.setContentType(K), U.body) { - const [z, Z] = mi( + if (C.isFormData(b) && (K = U.headers.get("content-type")) && z.setContentType(K), U.body) { + const [D, Q] = hi( q, - Rr(hi(H)) + wr(yi(H)) ); - b = gi(U.body, bi, z, Z); + b = bi(U.body, vi, D, Q); } } - w.isString(f) || (f = f ? "include" : "omit"); - const B = c && "credentials" in i.prototype; - if (w.isFormData(b)) { - const U = F.getContentType(); - U && /^multipart\/form-data/i.test(U) && !/boundary=/i.test(U) && F.delete("content-type"); + C.isString(f) || (f = f ? "include" : "omit"); + const F = c && "credentials" in i.prototype; + if (C.isFormData(b)) { + const U = z.getContentType(); + U && /^multipart\/form-data/i.test(U) && !/boundary=/i.test(U) && z.delete("content-type"); } - F.set("User-Agent", "axios/" + Cs, !1); + z.set("User-Agent", "axios/" + Cs, !1); const J = { - ...A, + ...I, signal: X, method: T.toUpperCase(), - headers: Qa(F.normalize()), + headers: Qa(z.normalize()), body: b, duplex: "half", - credentials: B ? f : void 0 + credentials: F ? f : void 0 }; O = c && new i(R, J); - let $ = await (c ? Q(O, A) : Q(R, J)); - if (M) { - const U = w.toFiniteNumber($.headers.get("content-length")); - if (U != null && U > I) + let W = await (c ? Z(O, I) : Z(R, J)); + if ($) { + const U = C.toFiniteNumber(W.headers.get("content-length")); + if (U != null && U > A) throw new te( - "maxContentLength size of " + I + " exceeded", + "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, S, O ); } - const V = m && (G === "stream" || G === "response"); - if (m && $.body && (D || M || V && P)) { + const B = m && (G === "stream" || G === "response"); + if (m && W.body && (L || $ || B && _)) { const U = {}; ["status", "statusText", "headers"].forEach((ne) => { - U[ne] = $[ne]; + U[ne] = W[ne]; }); - const K = w.toFiniteNumber($.headers.get("content-length")), [z, Z] = D && mi( + const K = C.toFiniteNumber(W.headers.get("content-length")), [D, Q] = L && hi( K, - Rr(hi(D), !0) + wr(yi(L), !0) ) || []; - let _ = 0; + let P = 0; const ae = (ne) => { - if (M && (_ = ne, _ > I)) + if ($ && (P = ne, P > A)) throw new te( - "maxContentLength size of " + I + " exceeded", + "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, S, O ); - z && z(ne); + D && D(ne); }; - $ = new a( - gi($.body, bi, ae, () => { - Z && Z(), P && P(); + W = new a( + bi(W.body, vi, ae, () => { + Q && Q(), _ && _(); }), U ); } G = G || "text"; - let W = await g[w.findKey(g, G) || "text"]( - $, + let V = await g[C.findKey(g, G) || "text"]( + W, S ); - if (M && !m && !V) { + if ($ && !m && !B) { let U; - if (W != null && (typeof W.byteLength == "number" ? U = W.byteLength : typeof W.size == "number" ? U = W.size : typeof W == "string" && (U = typeof r == "function" ? new r().encode(W).byteLength : W.length)), typeof U == "number" && U > I) + if (V != null && (typeof V.byteLength == "number" ? U = V.byteLength : typeof V.size == "number" ? U = V.size : typeof V == "string" && (U = typeof r == "function" ? new r().encode(V).byteLength : V.length)), typeof U == "number" && U > A) throw new te( - "maxContentLength size of " + I + " exceeded", + "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, S, O ); } - return !V && P && P(), await new Promise((U, K) => { + return !B && _ && _(), await new Promise((U, K) => { sl(U, K, { - data: W, - headers: ze.from($.headers), - status: $.status, - statusText: $.statusText, + data: V, + headers: ze.from(W.headers), + status: W.status, + statusText: W.statusText, config: S, request: O }); }); - } catch (B) { - if (P && P(), X && X.aborted && X.reason instanceof te) { + } catch (F) { + if (_ && _(), X && X.aborted && X.reason instanceof te) { const J = X.reason; - throw J.config = S, O && (J.request = O), B !== J && (J.cause = B), J; + throw J.config = S, O && (J.request = O), F !== J && (J.cause = F), J; } - throw B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign( + throw F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign( new te( "Network Error", te.ERR_NETWORK, S, O, - B && B.response + F && F.response ), { - cause: B.cause || B + cause: F.cause || F } - ) : te.from(B, B && B.code, S, O, B && B.response); + ) : te.from(F, F && F.code, S, O, F && F.response); } }; }, Dd = /* @__PURE__ */ new Map(), ll = (e) => { @@ -1667,14 +1667,14 @@ const Cs = "1.16.1", bi = 64 * 1024, { isFunction: cr } = w, vi = (e, ...t) => { return u; }; ll(); -const ws = { +const Ps = { http: od, xhr: Id, fetch: { get: ll } }; -w.forEach(ws, (e, t) => { +C.forEach(Ps, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { __proto__: null, value: t }); @@ -1683,18 +1683,18 @@ w.forEach(ws, (e, t) => { Object.defineProperty(e, "adapterName", { __proto__: null, value: t }); } }); -const Ei = (e) => `- ${e}`, Bd = (e) => w.isFunction(e) || e === null || e === !1; +const Si = (e) => `- ${e}`, Bd = (e) => C.isFunction(e) || e === null || e === !1; function Fd(e, t) { - e = w.isArray(e) ? e : [e]; + e = C.isArray(e) ? e : [e]; const { length: n } = e; let r, s; const i = {}; for (let a = 0; a < n; a++) { r = e[a]; let l; - if (s = r, !Bd(r) && (s = ws[(l = String(r)).toLowerCase()], s === void 0)) + if (s = r, !Bd(r) && (s = Ps[(l = String(r)).toLowerCase()], s === void 0)) throw new te(`Unknown adapter '${l}'`); - if (s && (w.isFunction(s) || (s = s.get(t)))) + if (s && (C.isFunction(s) || (s = s.get(t)))) break; i[l || "#" + a] = s; } @@ -1703,8 +1703,8 @@ function Fd(e, t) { ([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build") ); let l = n ? a.length > 1 ? `since : -` + a.map(Ei).join(` -`) : " " + Ei(a[0]) : "as no adapter specified"; +` + a.map(Si).join(` +`) : " " + Si(a[0]) : "as no adapter specified"; throw new te( "There is no suitable adapter to dispatch the request " + l, "ERR_NOT_SUPPORT" @@ -1722,18 +1722,18 @@ const cl = { * Exposes all known adapters * @type {Object} */ - adapters: ws + adapters: Ps }; function Po(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) - throw new Yn(null, e); + throw new Kn(null, e); } -function Si(e) { - return Po(e), e.headers = ze.from(e.headers), e.data = wo.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), cl.getAdapter(e.adapter || Gn.adapter, e)(e).then( +function Ti(e) { + return Po(e), e.headers = ze.from(e.headers), e.data = Co.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), cl.getAdapter(e.adapter || Yn.adapter, e)(e).then( function(r) { Po(e), e.response = r; try { - r.data = wo.call(e, e.transformResponse, r); + r.data = Co.call(e, e.transformResponse, r); } finally { delete e.response; } @@ -1743,7 +1743,7 @@ function Si(e) { if (!ol(r) && (Po(e), r && r.response)) { e.response = r.response; try { - r.response.data = wo.call( + r.response.data = Co.call( e, e.transformResponse, r.response @@ -1763,7 +1763,7 @@ const Yr = {}; return typeof r === e || "a" + (t < 1 ? "n " : " ") + e; }; }); -const Ti = {}; +const xi = {}; Yr.transitional = function(t, n, r) { function s(i, a) { return "[Axios v" + Cs + "] Transitional option '" + i + "'" + a + (r ? ". " + r : ""); @@ -1774,7 +1774,7 @@ Yr.transitional = function(t, n, r) { s(a, " has been removed" + (n ? " in " + n : "")), te.ERR_DEPRECATED ); - return n && !Ti[a] && (Ti[a] = !0, console.warn( + return n && !xi[a] && (xi[a] = !0, console.warn( s( a, " has been deprecated since v" + n + " and will be removed in the near future" @@ -1805,15 +1805,15 @@ function Ud(e, t, n) { throw new te("Unknown option " + i, te.ERR_BAD_OPTION); } } -const Er = { +const Sr = { assertOptions: Ud, validators: Yr -}, Qe = Er.validators; +}, Qe = Sr.validators; let zt = class { constructor(t) { this.defaults = t || {}, this.interceptors = { - request: new fi(), - response: new fi() + request: new mi(), + response: new mi() }; } /** @@ -1857,7 +1857,7 @@ let zt = class { _request(t, n) { typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ht(this.defaults, n); const { transitional: r, paramsSerializer: s, headers: i } = n; - r !== void 0 && Er.assertOptions( + r !== void 0 && Sr.assertOptions( r, { silentJSONParsing: Qe.transitional(Qe.boolean), @@ -1866,16 +1866,16 @@ let zt = class { legacyInterceptorReqResOrdering: Qe.transitional(Qe.boolean) }, !1 - ), s != null && (w.isFunction(s) ? n.paramsSerializer = { + ), s != null && (C.isFunction(s) ? n.paramsSerializer = { serialize: s - } : Er.assertOptions( + } : Sr.assertOptions( s, { encode: Qe.function, serialize: Qe.function }, !0 - )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Er.assertOptions( + )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Sr.assertOptions( n, { baseUrl: Qe.spelling("baseURL"), @@ -1883,8 +1883,8 @@ let zt = class { }, !0 ), n.method = (n.method || this.defaults.method || "get").toLowerCase(); - let a = i && w.merge(i.common, i[n.method]); - i && w.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => { + let a = i && C.merge(i.common, i[n.method]); + i && C.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => { delete i[g]; }), n.headers = ze.concat(a, i); const l = []; @@ -1893,7 +1893,7 @@ let zt = class { if (typeof p.runWhen == "function" && p.runWhen(n) === !1) return; c = c && p.synchronous; - const y = n.transitional || Os; + const y = n.transitional || Rs; y && y.legacyInterceptorReqResOrdering ? l.unshift(p.fulfilled, p.rejected) : l.push(p.fulfilled, p.rejected); }); const u = []; @@ -1902,7 +1902,7 @@ let zt = class { }); let d, h = 0, v; if (!c) { - const g = [Si.bind(this), void 0]; + const g = [Ti.bind(this), void 0]; for (g.unshift(...l), g.push(...u), v = g.length, d = Promise.resolve(n); h < v; ) d = d.then(g[h++], g[h++]); return d; @@ -1919,7 +1919,7 @@ let zt = class { } } try { - d = Si.call(this, m); + d = Ti.call(this, m); } catch (g) { return Promise.reject(g); } @@ -1933,7 +1933,7 @@ let zt = class { return nl(n, t.params, t.paramsSerializer); } }; -w.forEach(["delete", "get", "head", "options"], function(t) { +C.forEach(["delete", "get", "head", "options"], function(t) { zt.prototype[t] = function(n, r) { return this.request( Ht(r || {}, { @@ -1944,7 +1944,7 @@ w.forEach(["delete", "get", "head", "options"], function(t) { ); }; }); -w.forEach(["post", "put", "patch", "query"], function(t) { +C.forEach(["post", "put", "patch", "query"], function(t) { function n(r) { return function(i, a, l) { return this.request( @@ -1985,7 +1985,7 @@ let Vd = class ul { r.unsubscribe(i); }, a; }, t(function(i, a, l) { - r.reason || (r.reason = new Yn(i, a, l), n(r.reason)); + r.reason || (r.reason = new Kn(i, a, l), n(r.reason)); }); } /** @@ -2040,9 +2040,9 @@ function zd(e) { }; } function Wd(e) { - return w.isObject(e) && e.isAxiosError === !0; + return C.isObject(e) && e.isAxiosError === !0; } -const Jo = { +const Qo = { Continue: 100, SwitchingProtocols: 101, Processing: 102, @@ -2113,18 +2113,18 @@ const Jo = { SslHandshakeFailed: 525, InvalidSslCertificate: 526 }; -Object.entries(Jo).forEach(([e, t]) => { - Jo[t] = e; +Object.entries(Qo).forEach(([e, t]) => { + Qo[t] = e; }); function dl(e) { const t = new zt(e), n = Wa(zt.prototype.request, t); - return w.extend(n, zt.prototype, t, { allOwnKeys: !0 }), w.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { + return C.extend(n, zt.prototype, t, { allOwnKeys: !0 }), C.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { return dl(Ht(e, s)); }, n; } -const $e = dl(Gn); +const $e = dl(Yn); $e.Axios = zt; -$e.CanceledError = Yn; +$e.CanceledError = Kn; $e.CancelToken = Vd; $e.isCancel = ol; $e.VERSION = Cs; @@ -2138,9 +2138,9 @@ $e.spread = zd; $e.isAxiosError = Wd; $e.mergeConfig = Ht; $e.AxiosHeaders = ze; -$e.formToJSON = (e) => rl(w.isHTMLForm(e) ? new FormData(e) : e); +$e.formToJSON = (e) => rl(C.isHTMLForm(e) ? new FormData(e) : e); $e.getAdapter = cl.getAdapter; -$e.HttpStatusCode = Jo; +$e.HttpStatusCode = Qo; $e.default = $e; const { Axios: mv, @@ -2155,8 +2155,8 @@ const { spread: xv, toFormData: Ov, AxiosHeaders: Rv, - HttpStatusCode: Cv, - formToJSON: wv, + HttpStatusCode: wv, + formToJSON: Cv, getAdapter: Pv, mergeConfig: _v, create: Av @@ -2193,14 +2193,14 @@ const Yt = (e, t = !1) => { return t && n.interceptors.response.use( (r) => { var s; - return qo({ + return Go({ status: r.status, data: r.data, message: ((s = r.data) == null ? void 0 : s.message) ?? r.statusText, totalRecord: r.totalRecord ?? 0 }); }, - (r) => Promise.resolve(qo(r)) + (r) => Promise.resolve(Go(r)) ), n; }, qd = Yt(Gt.OSLOG_API, !0), Gd = Yt(Gt.API_GO, !0); Yt(Gt.API_PHP); @@ -2227,7 +2227,7 @@ const Kt = async ({ ...a }); } catch (c) { - return qo(c); + return Go(c); } }, Yd = (e, t = null, n = {}) => Kt({ method: "post", @@ -2285,7 +2285,7 @@ const Kt = async ({ data: n, isApiGo: r, axiosConfig: s -}), xi = { +}), Ao = { new: Yd, add: Kd, getById: Xd, @@ -2297,7 +2297,7 @@ const Kt = async ({ function tp(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -var Qo = { exports: {} }, Tn = {}; +var Zo = { exports: {} }, Tn = {}; /** * @license React * react-jsx-runtime.production.js @@ -2356,7 +2356,7 @@ function rp() { return "StrictMode"; case E: return "Suspense"; - case C: + case w: return "SuspenseList"; case H: return "Activity"; @@ -2372,14 +2372,14 @@ function rp() { case R: return (O._context.displayName || "Context") + ".Consumer"; case b: - var P = O.render; - return O = O.displayName, O || (O = P.displayName || P.name || "", O = O !== "" ? "ForwardRef(" + O + ")" : "ForwardRef"), O; + var _ = O.render; + return O = O.displayName, O || (O = _.displayName || _.name || "", O = O !== "" ? "ForwardRef(" + O + ")" : "ForwardRef"), O; case k: - return P = O.displayName || null, P !== null ? P : e(O.type) || "Memo"; - case D: - P = O._payload, O = O._init; + return _ = O.displayName || null, _ !== null ? _ : e(O.type) || "Memo"; + case L: + _ = O._payload, O = O._init; try { - return e(O(P)); + return e(O(_)); } catch { } } @@ -2391,33 +2391,33 @@ function rp() { function n(O) { try { t(O); - var P = !1; + var _ = !1; } catch { - P = !0; + _ = !0; } - if (P) { - P = console; - var q = P.error, B = typeof Symbol == "function" && Symbol.toStringTag && O[Symbol.toStringTag] || O.constructor.name || "Object"; + if (_) { + _ = console; + var q = _.error, F = typeof Symbol == "function" && Symbol.toStringTag && O[Symbol.toStringTag] || O.constructor.name || "Object"; return q.call( - P, + _, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", - B + F ), t(O); } } function r(O) { if (O === p) return "<>"; - if (typeof O == "object" && O !== null && O.$$typeof === D) + if (typeof O == "object" && O !== null && O.$$typeof === L) return "<...>"; try { - var P = e(O); - return P ? "<" + P + ">" : "<...>"; + var _ = e(O); + return _ ? "<" + _ + ">" : "<...>"; } catch { return "<...>"; } } function s() { - var O = F.A; + var O = z.A; return O === null ? null : O.getOwner(); } function i() { @@ -2425,16 +2425,16 @@ function rp() { } function a(O) { if (f.call(O, "key")) { - var P = Object.getOwnPropertyDescriptor(O, "key").get; - if (P && P.isReactWarning) return !1; + var _ = Object.getOwnPropertyDescriptor(O, "key").get; + if (_ && _.isReactWarning) return !1; } return O.key !== void 0; } - function l(O, P) { + function l(O, _) { function q() { - L || (L = !0, console.error( + j || (j = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", - P + _ )); } q.isReactWarning = !0, Object.defineProperty(O, "key", { @@ -2444,16 +2444,16 @@ function rp() { } function c() { var O = e(this.type); - return M[O] || (M[O] = !0, console.error( + return $[O] || ($[O] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), O = this.props.ref, O !== void 0 ? O : null; } - function u(O, P, q, B, J, $, V, W) { - return q = $.ref, O = { + function u(O, _, q, F, J, W, B, V) { + return q = W.ref, O = { $$typeof: m, type: O, - key: P, - props: $, + key: _, + props: W, _owner: J }, (q !== void 0 ? q : null) !== null ? Object.defineProperty(O, "ref", { enumerable: !1, @@ -2472,68 +2472,68 @@ function rp() { configurable: !1, enumerable: !1, writable: !0, - value: V + value: B }), Object.defineProperty(O, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, - value: W + value: V }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O; } - function d(O, P, q, B, J, $, V, W) { - var U = P.children; + function d(O, _, q, F, J, W, B, V) { + var U = _.children; if (U !== void 0) - if (B) - if (A(U)) { - for (B = 0; B < U.length; B++) - h(U[B]); + if (F) + if (I(U)) { + for (F = 0; F < U.length; F++) + h(U[F]); Object.freeze && Object.freeze(U); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else h(U); - if (f.call(P, "key")) { + if (f.call(_, "key")) { U = e(O); - var K = Object.keys(P).filter(function(Z) { - return Z !== "key"; + var K = Object.keys(_).filter(function(Q) { + return Q !== "key"; }); - B = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", X[U + B] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error( + F = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", X[U + F] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, - B, + F, U, K, U - ), X[U + B] = !0); + ), X[U + F] = !0); } - if (U = null, q !== void 0 && (n(q), U = "" + q), a(P) && (n(P.key), U = "" + P.key), "key" in P) { + if (U = null, q !== void 0 && (n(q), U = "" + q), a(_) && (n(_.key), U = "" + _.key), "key" in _) { q = {}; - for (var z in P) - z !== "key" && (q[z] = P[z]); - } else q = P; + for (var D in _) + D !== "key" && (q[D] = _[D]); + } else q = _; return U && l( q, typeof O == "function" ? O.displayName || O.name || "Unknown" : O ), u( O, U, - $, + W, J, s(), q, - V, - W + B, + V ); } function h(O) { typeof O == "object" && O !== null && O.$$typeof === m && O._store && (O._store.validated = 1); } - var v = at, m = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), T = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), F = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, f = Object.prototype.hasOwnProperty, A = Array.isArray, I = console.createTask ? console.createTask : function() { + var v = at, m = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), T = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), z = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, f = Object.prototype.hasOwnProperty, I = Array.isArray, A = console.createTask ? console.createTask : function() { return null; }; v = { @@ -2541,40 +2541,40 @@ React keys must be passed directly to JSX without using spread: return O(); } }; - var L, M = {}, Y = v["react-stack-bottom-frame"].bind( + var j, $ = {}, Y = v["react-stack-bottom-frame"].bind( v, i - )(), Q = I(r(i)), X = {}; - xn.Fragment = p, xn.jsx = function(O, P, q, B, J) { - var $ = 1e4 > F.recentlyCreatedOwnerStacks++; + )(), Z = A(r(i)), X = {}; + xn.Fragment = p, xn.jsx = function(O, _, q, F, J) { + var W = 1e4 > z.recentlyCreatedOwnerStacks++; return d( O, - P, + _, q, !1, - B, + F, J, - $ ? Error("react-stack-top-frame") : Y, - $ ? I(r(O)) : Q + W ? Error("react-stack-top-frame") : Y, + W ? A(r(O)) : Z ); - }, xn.jsxs = function(O, P, q, B, J) { - var $ = 1e4 > F.recentlyCreatedOwnerStacks++; + }, xn.jsxs = function(O, _, q, F, J) { + var W = 1e4 > z.recentlyCreatedOwnerStacks++; return d( O, - P, + _, q, !0, - B, + F, J, - $ ? Error("react-stack-top-frame") : Y, - $ ? I(r(O)) : Q + W ? Error("react-stack-top-frame") : Y, + W ? A(r(O)) : Z ); }; }()), xn; } -process.env.NODE_ENV === "production" ? Qo.exports = np() : Qo.exports = rp(); -var N = Qo.exports; -const Dn = { +process.env.NODE_ENV === "production" ? Zo.exports = np() : Zo.exports = rp(); +var N = Zo.exports; +const Bn = { black: "#000", white: "#fff" }, tn = { @@ -2635,7 +2635,7 @@ function xt(e, ...t) { const n = new URL(`https://mui.com/production-error/?code=${e}`); return t.forEach((r) => n.searchParams.append("args[]", r)), `Minified MUI error #${e}; visit ${n} for the full message.`; } -const Ps = "$$material"; +const _s = "$$material"; function Cr() { return Cr = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { @@ -2685,7 +2685,7 @@ var ap = /* @__PURE__ */ function() { return (s = r.parentNode) == null ? void 0 : s.removeChild(r); }), this.tags = [], this.ctr = 0; }, e; -}(), Fe = "-ms-", wr = "-moz-", pe = "-webkit-", pl = "comm", _s = "rule", As = "decl", lp = "@import", fl = "@keyframes", cp = "@layer", up = Math.abs, Kr = String.fromCharCode, dp = Object.assign; +}(), Fe = "-ms-", Pr = "-moz-", pe = "-webkit-", pl = "comm", As = "rule", Is = "decl", lp = "@import", fl = "@keyframes", cp = "@layer", up = Math.abs, Kr = String.fromCharCode, dp = Object.assign; function pp(e, t) { return Be(e, 0) ^ 45 ? (((t << 2 ^ Be(e, 0)) << 2 ^ Be(e, 1)) << 2 ^ Be(e, 2)) << 2 ^ Be(e, 3) : 0; } @@ -2698,22 +2698,22 @@ function fp(e, t) { function fe(e, t, n) { return e.replace(t, n); } -function Zo(e, t) { +function es(e, t) { return e.indexOf(t); } function Be(e, t) { return e.charCodeAt(t) | 0; } -function Bn(e, t, n) { +function Fn(e, t, n) { return e.slice(t, n); } function ft(e) { return e.length; } -function Is(e) { +function Ns(e) { return e.length; } -function ur(e, t) { +function dr(e, t) { return t.push(e), e; } function mp(e, t) { @@ -2738,13 +2738,13 @@ function Je() { function yt() { return Be(gn, Ge); } -function Sr() { +function Tr() { return Ge; } -function Kn(e, t) { - return Bn(gn, e, t); +function Xn(e, t) { + return Fn(gn, e, t); } -function Fn(e) { +function Un(e) { switch (e) { case 0: case 9: @@ -2782,30 +2782,30 @@ function yl(e) { function gl(e) { return gn = "", e; } -function Tr(e) { - return ml(Kn(Ge - 1, es(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); +function xr(e) { + return ml(Xn(Ge - 1, ts(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function gp(e) { for (; (je = yt()) && je < 33; ) Je(); - return Fn(e) > 2 || Fn(je) > 3 ? "" : " "; + return Un(e) > 2 || Un(je) > 3 ? "" : " "; } function bp(e, t) { for (; --t && Je() && !(je < 48 || je > 102 || je > 57 && je < 65 || je > 70 && je < 97); ) ; - return Kn(e, Sr() + (t < 6 && yt() == 32 && Je() == 32)); + return Xn(e, Tr() + (t < 6 && yt() == 32 && Je() == 32)); } -function es(e) { +function ts(e) { for (; Je(); ) switch (je) { case e: return Ge; case 34: case 39: - e !== 34 && e !== 39 && es(je); + e !== 34 && e !== 39 && ts(je); break; case 40: - e === 41 && es(e); + e === 41 && ts(e); break; case 92: Je(); @@ -2817,28 +2817,28 @@ function vp(e, t) { for (; Je() && e + je !== 57; ) if (e + je === 84 && yt() === 47) break; - return "/*" + Kn(t, Ge - 1) + "*" + Kr(e === 47 ? e : Je()); + return "/*" + Xn(t, Ge - 1) + "*" + Kr(e === 47 ? e : Je()); } function Ep(e) { - for (; !Fn(yt()); ) + for (; !Un(yt()); ) Je(); - return Kn(e, Ge); + return Xn(e, Ge); } function Sp(e) { - return gl(xr("", null, null, null, [""], e = yl(e), 0, [0], e)); + return gl(Or("", null, null, null, [""], e = yl(e), 0, [0], e)); } -function xr(e, t, n, r, s, i, a, l, c) { - for (var u = 0, d = 0, h = a, v = 0, m = 0, g = 0, p = 1, y = 1, S = 1, R = 0, T = "", b = s, E = i, C = r, k = T; y; ) +function Or(e, t, n, r, s, i, a, l, c) { + for (var u = 0, d = 0, h = a, v = 0, m = 0, g = 0, p = 1, y = 1, S = 1, R = 0, T = "", b = s, E = i, w = r, k = T; y; ) switch (g = R, R = Je()) { case 40: if (g != 108 && Be(k, h - 1) == 58) { - Zo(k += fe(Tr(R), "&", "&\f"), "&\f") != -1 && (S = -1); + es(k += fe(xr(R), "&", "&\f"), "&\f") != -1 && (S = -1); break; } case 34: case 39: case 91: - k += Tr(R); + k += xr(R); break; case 9: case 10: @@ -2847,13 +2847,13 @@ function xr(e, t, n, r, s, i, a, l, c) { k += gp(g); break; case 92: - k += bp(Sr() - 1, 7); + k += bp(Tr() - 1, 7); continue; case 47: switch (yt()) { case 42: case 47: - ur(Tp(vp(Je(), Sr()), t, n), c); + dr(Tp(vp(Je(), Tr()), t, n), c); break; default: k += "/"; @@ -2869,24 +2869,24 @@ function xr(e, t, n, r, s, i, a, l, c) { case 125: y = 0; case 59 + d: - S == -1 && (k = fe(k, /\f/g, "")), m > 0 && ft(k) - h && ur(m > 32 ? wi(k + ";", r, n, h - 1) : wi(fe(k, " ", "") + ";", r, n, h - 2), c); + S == -1 && (k = fe(k, /\f/g, "")), m > 0 && ft(k) - h && dr(m > 32 ? Ci(k + ";", r, n, h - 1) : Ci(fe(k, " ", "") + ";", r, n, h - 2), c); break; case 59: k += ";"; default: - if (ur(C = Ci(k, t, n, u, d, s, l, T, b = [], E = [], h), i), R === 123) + if (dr(w = wi(k, t, n, u, d, s, l, T, b = [], E = [], h), i), R === 123) if (d === 0) - xr(k, t, C, C, b, i, h, l, E); + Or(k, t, w, w, b, i, h, l, E); else switch (v === 99 && Be(k, 3) === 110 ? 100 : v) { case 100: case 108: case 109: case 115: - xr(e, C, C, r && ur(Ci(e, C, C, 0, 0, s, l, T, s, b = [], h), E), s, E, h, l, r ? b : E); + Or(e, w, w, r && dr(wi(e, w, w, 0, 0, s, l, T, s, b = [], h), E), s, E, h, l, r ? b : E); break; default: - xr(k, C, C, C, [""], E, 0, l, E); + Or(k, w, w, w, [""], E, 0, l, E); } } u = d = m = 0, p = S = 1, T = k = "", h = a; @@ -2908,7 +2908,7 @@ function xr(e, t, n, r, s, i, a, l, c) { l[u++] = (ft(k) - 1) * S, S = 1; break; case 64: - yt() === 45 && (k += Tr(Je())), v = yt(), d = h = ft(T = k += Ep(Sr())), R++; + yt() === 45 && (k += xr(Je())), v = yt(), d = h = ft(T = k += Ep(Tr())), R++; break; case 45: g === 45 && ft(k) == 2 && (p = 0); @@ -2916,20 +2916,20 @@ function xr(e, t, n, r, s, i, a, l, c) { } return i; } -function Ci(e, t, n, r, s, i, a, l, c, u, d) { - for (var h = s - 1, v = s === 0 ? i : [""], m = Is(v), g = 0, p = 0, y = 0; g < r; ++g) - for (var S = 0, R = Bn(e, h + 1, h = up(p = a[g])), T = e; S < m; ++S) +function wi(e, t, n, r, s, i, a, l, c, u, d) { + for (var h = s - 1, v = s === 0 ? i : [""], m = Ns(v), g = 0, p = 0, y = 0; g < r; ++g) + for (var S = 0, R = Fn(e, h + 1, h = up(p = a[g])), T = e; S < m; ++S) (T = ml(p > 0 ? v[S] + " " + R : fe(R, /&\f/g, v[S]))) && (c[y++] = T); - return Jr(e, t, n, s === 0 ? _s : l, c, u, d); + return Jr(e, t, n, s === 0 ? As : l, c, u, d); } function Tp(e, t, n) { - return Jr(e, t, n, pl, Kr(hp()), Bn(e, 2, -2), 0); + return Jr(e, t, n, pl, Kr(hp()), Fn(e, 2, -2), 0); } -function wi(e, t, n, r) { - return Jr(e, t, n, As, Bn(e, 0, r), Bn(e, r + 1, -1), r); +function Ci(e, t, n, r) { + return Jr(e, t, n, Is, Fn(e, 0, r), Fn(e, r + 1, -1), r); } function un(e, t) { - for (var n = "", r = Is(e), s = 0; s < r; s++) + for (var n = "", r = Ns(e), s = 0; s < r; s++) n += t(e[s], s, e, t) || ""; return n; } @@ -2938,19 +2938,19 @@ function xp(e, t, n, r) { case cp: if (e.children.length) break; case lp: - case As: + case Is: return e.return = e.return || e.value; case pl: return ""; case fl: return e.return = e.value + "{" + un(e.children, r) + "}"; - case _s: + case As: e.value = e.props.join(","); } return ft(n = un(e.children, r)) ? e.return = e.value + "{" + n + "}" : ""; } function Op(e) { - var t = Is(e); + var t = Ns(e); return function(n, r, s, i) { for (var a = "", l = 0; l < t; l++) a += e[l](n, r, s, i) || ""; @@ -2968,19 +2968,19 @@ function bl(e) { return t[n] === void 0 && (t[n] = e(n)), t[n]; }; } -var Cp = function(t, n, r) { - for (var s = 0, i = 0; s = i, i = yt(), s === 38 && i === 12 && (n[r] = 1), !Fn(i); ) +var wp = function(t, n, r) { + for (var s = 0, i = 0; s = i, i = yt(), s === 38 && i === 12 && (n[r] = 1), !Un(i); ) Je(); - return Kn(t, Ge); -}, wp = function(t, n) { + return Xn(t, Ge); +}, Cp = function(t, n) { var r = -1, s = 44; do - switch (Fn(s)) { + switch (Un(s)) { case 0: - s === 38 && yt() === 12 && (n[r] = 1), t[r] += Cp(Ge - 1, n, r); + s === 38 && yt() === 12 && (n[r] = 1), t[r] += wp(Ge - 1, n, r); break; case 2: - t[r] += Tr(s); + t[r] += xr(s); break; case 4: if (s === 44) { @@ -2993,7 +2993,7 @@ var Cp = function(t, n, r) { while (s = Je()); return t; }, Pp = function(t, n) { - return gl(wp(yl(t), n)); + return gl(Cp(yl(t), n)); }, Pi = /* @__PURE__ */ new WeakMap(), _p = function(t) { if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo // negative .length indicates that this rule has been already prefixed @@ -3050,7 +3050,7 @@ function vl(e, t) { case 4810: case 6968: case 2756: - return pe + e + wr + e + Fe + e + e; + return pe + e + Pr + e + Fe + e + e; case 6828: case 4268: return pe + e + Fe + e + e; @@ -3098,15 +3098,15 @@ function vl(e, t) { case 109: if (Be(e, t + 4) !== 45) break; case 102: - return fe(e, /(.+:)(.+)-([^]+)/, "$1" + pe + "$2-$3$1" + wr + (Be(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; + return fe(e, /(.+:)(.+)-([^]+)/, "$1" + pe + "$2-$3$1" + Pr + (Be(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: - return ~Zo(e, "stretch") ? vl(fe(e, "stretch", "fill-available"), t) + e : e; + return ~es(e, "stretch") ? vl(fe(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: if (Be(e, t + 1) !== 115) break; case 6444: - switch (Be(e, ft(e) - 3 - (~Zo(e, "!important") && 10))) { + switch (Be(e, ft(e) - 3 - (~es(e, "!important") && 10))) { case 107: return fe(e, ":", ":" + pe) + e; case 101: @@ -3128,26 +3128,26 @@ function vl(e, t) { } var Ip = function(t, n, r, s) { if (t.length > -1 && !t.return) switch (t.type) { - case As: + case Is: t.return = vl(t.value, t.length); break; case fl: return un([Rn(t, { value: fe(t.value, "@", "@" + pe) })], s); - case _s: + case As: if (t.length) return mp(t.props, function(i) { switch (fp(i, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": return un([Rn(t, { - props: [fe(i, /:(read-\w+)/, ":" + wr + "$1")] + props: [fe(i, /:(read-\w+)/, ":" + Pr + "$1")] })], s); case "::placeholder": return un([Rn(t, { props: [fe(i, /:(plac\w+)/, ":" + pe + "input-$1")] }), Rn(t, { - props: [fe(i, /:(plac\w+)/, ":" + wr + "$1")] + props: [fe(i, /:(plac\w+)/, ":" + Pr + "$1")] }), Rn(t, { props: [fe(i, /:(plac\w+)/, Fe + "input-$1")] })], s); @@ -3202,7 +3202,7 @@ var Ip = function(t, n, r, s) { insert: c }; return g.sheet.hydrate(l), g; -}, ts = { exports: {} }, ge = {}; +}, ns = { exports: {} }, ge = {}; /** @license React v16.13.1 * react-is.production.min.js * @@ -3218,8 +3218,8 @@ function $p() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = 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, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119; function T(E) { if (typeof E == "object" && E !== null) { - var C = E.$$typeof; - switch (C) { + var w = E.$$typeof; + switch (w) { case t: switch (E = E.type, E) { case c: @@ -3238,11 +3238,11 @@ function $p() { case a: return E; default: - return C; + return w; } } case n: - return C; + return w; } } } @@ -3290,16 +3290,16 @@ var Ai; function Mp() { return Ai || (Ai = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = 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, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119; - function T(_) { - return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - _ === r || _ === u || _ === i || _ === s || _ === h || _ === v || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === m || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === y || _.$$typeof === S || _.$$typeof === R || _.$$typeof === p); + function T(P) { + return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + P === r || P === u || P === i || P === s || P === h || P === v || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === m || P.$$typeof === a || P.$$typeof === l || P.$$typeof === d || P.$$typeof === y || P.$$typeof === S || P.$$typeof === R || P.$$typeof === p); } - function b(_) { - if (typeof _ == "object" && _ !== null) { - var ae = _.$$typeof; + function b(P) { + if (typeof P == "object" && P !== null) { + var ae = P.$$typeof; switch (ae) { case t: - var ne = _.type; + var ne = P.type; switch (ne) { case c: case u: @@ -3326,51 +3326,51 @@ function Mp() { } } } - var E = c, C = u, k = l, D = a, H = t, G = d, F = r, f = g, A = m, I = n, L = i, M = s, Y = h, Q = !1; - function X(_) { - return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(_) || b(_) === c; + var E = c, w = u, k = l, L = a, H = t, G = d, z = r, f = g, I = m, A = n, j = i, $ = s, Y = h, Z = !1; + function X(P) { + return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(P) || b(P) === c; } - function O(_) { - return b(_) === u; + function O(P) { + return b(P) === u; } - function P(_) { - return b(_) === l; + function _(P) { + return b(P) === l; } - function q(_) { - return b(_) === a; + function q(P) { + return b(P) === a; } - function B(_) { - return typeof _ == "object" && _ !== null && _.$$typeof === t; + function F(P) { + return typeof P == "object" && P !== null && P.$$typeof === t; } - function J(_) { - return b(_) === d; + function J(P) { + return b(P) === d; } - function $(_) { - return b(_) === r; + function W(P) { + return b(P) === r; } - function V(_) { - return b(_) === g; + function B(P) { + return b(P) === g; } - function W(_) { - return b(_) === m; + function V(P) { + return b(P) === m; } - function U(_) { - return b(_) === n; + function U(P) { + return b(P) === n; } - function K(_) { - return b(_) === i; + function K(P) { + return b(P) === i; } - function z(_) { - return b(_) === s; + function D(P) { + return b(P) === s; } - function Z(_) { - return b(_) === h; + function Q(P) { + return b(P) === h; } - be.AsyncMode = E, be.ConcurrentMode = C, be.ContextConsumer = k, be.ContextProvider = D, be.Element = H, be.ForwardRef = G, be.Fragment = F, be.Lazy = f, be.Memo = A, be.Portal = I, be.Profiler = L, be.StrictMode = M, be.Suspense = Y, be.isAsyncMode = X, be.isConcurrentMode = O, be.isContextConsumer = P, be.isContextProvider = q, be.isElement = B, be.isForwardRef = J, be.isFragment = $, be.isLazy = V, be.isMemo = W, be.isPortal = U, be.isProfiler = K, be.isStrictMode = z, be.isSuspense = Z, be.isValidElementType = T, be.typeOf = b; + be.AsyncMode = E, be.ConcurrentMode = w, be.ContextConsumer = k, be.ContextProvider = L, be.Element = H, be.ForwardRef = G, be.Fragment = z, be.Lazy = f, be.Memo = I, be.Portal = A, be.Profiler = j, be.StrictMode = $, be.Suspense = Y, be.isAsyncMode = X, be.isConcurrentMode = O, be.isContextConsumer = _, be.isContextProvider = q, be.isElement = F, be.isForwardRef = J, be.isFragment = W, be.isLazy = B, be.isMemo = V, be.isPortal = U, be.isProfiler = K, be.isStrictMode = D, be.isSuspense = Q, be.isValidElementType = T, be.typeOf = b; }()), be; } -process.env.NODE_ENV === "production" ? ts.exports = $p() : ts.exports = Mp(); -var jp = ts.exports, El = jp, Lp = { +process.env.NODE_ENV === "production" ? ns.exports = $p() : ns.exports = Mp(); +var jp = ns.exports, El = jp, Lp = { $$typeof: !0, render: !0, defaultProps: !0, @@ -3393,7 +3393,7 @@ function Tl(e, t, n) { e[s] !== void 0 ? t.push(e[s] + ";") : s && (r += s + " "); }), r; } -var Ns = function(t, n, r) { +var ks = function(t, n, r) { var s = t.key + "-" + n.name; // we only need to add the styles to the registered cache if the // class name could be used further down @@ -3405,8 +3405,8 @@ var Ns = function(t, n, r) { // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser Bp === !1) && t.registered[s] === void 0 && (t.registered[s] = n.styles); -}, ks = function(t, n, r) { - Ns(t, n, r); +}, $s = function(t, n, r) { + ks(t, n, r); var s = t.key + "-" + n.name; if (t.inserted[n.name] === void 0) { var i = n; @@ -3487,7 +3487,7 @@ var Up = { return t.charCodeAt(1) === 45; }, Ii = function(t) { return t != null && typeof t != "boolean"; -}, Ao = /* @__PURE__ */ bl(function(e) { +}, Io = /* @__PURE__ */ bl(function(e) { return xl(e) ? e : e.replace(Vp, "-$&").toLowerCase(); }), Ni = function(t, n) { switch (t) { @@ -3504,7 +3504,7 @@ var Up = { } return Up[t] !== 1 && !xl(t) && typeof n == "number" && n !== 0 ? n + "px" : n; }; -function Un(e, t, n) { +function Vn(e, t, n) { if (n == null) return ""; var r = n; @@ -3539,7 +3539,7 @@ function Un(e, t, n) { case "function": { if (e !== void 0) { var c = mt, u = n(e); - return mt = c, Un(e, t, u); + return mt = c, Vn(e, t, u); } break; } @@ -3554,22 +3554,22 @@ function Wp(e, t, n) { var r = ""; if (Array.isArray(n)) for (var s = 0; s < n.length; s++) - r += Un(e, t, n[s]) + ";"; + r += Vn(e, t, n[s]) + ";"; else for (var i in n) { var a = n[i]; if (typeof a != "object") { var l = a; - t != null && t[l] !== void 0 ? r += i + "{" + t[l] + "}" : Ii(l) && (r += Ao(i) + ":" + Ni(i, l) + ";"); + t != null && t[l] !== void 0 ? r += i + "{" + t[l] + "}" : Ii(l) && (r += Io(i) + ":" + Ni(i, l) + ";"); } else if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0)) for (var c = 0; c < a.length; c++) - Ii(a[c]) && (r += Ao(i) + ":" + Ni(i, a[c]) + ";"); + Ii(a[c]) && (r += Io(i) + ":" + Ni(i, a[c]) + ";"); else { - var u = Un(e, t, a); + var u = Vn(e, t, a); switch (i) { case "animation": case "animationName": { - r += Ao(i) + ":" + u + ";"; + r += Io(i) + ":" + u + ";"; break; } default: @@ -3580,20 +3580,20 @@ function Wp(e, t, n) { return r; } var ki = /label:\s*([^\s;{]+)\s*(;|$)/g, mt; -function Xn(e, t, n) { +function Jn(e, t, n) { if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0]; var r = !0, s = ""; mt = void 0; var i = e[0]; if (i == null || i.raw === void 0) - r = !1, s += Un(n, t, i); + r = !1, s += Vn(n, t, i); else { var a = i; s += a[0]; } for (var l = 1; l < e.length; l++) - if (s += Un(n, t, e[l]), r) { + if (s += Vn(n, t, e[l]), r) { var c = i; s += c[l]; } @@ -3609,7 +3609,7 @@ function Xn(e, t, n) { } var Hp = function(t) { return t(); -}, Ol = x.useInsertionEffect ? x.useInsertionEffect : !1, Rl = Ol || Hp, $i = Ol || x.useLayoutEffect, Cl = /* @__PURE__ */ x.createContext( +}, Ol = x.useInsertionEffect ? x.useInsertionEffect : !1, Rl = Ol || Hp, $i = Ol || x.useLayoutEffect, wl = /* @__PURE__ */ x.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes @@ -3620,32 +3620,32 @@ var Hp = function(t) { key: "css" }) : null ); -Cl.Provider; -var $s = function(t) { +wl.Provider; +var Ms = function(t) { return /* @__PURE__ */ Xc(function(n, r) { - var s = za(Cl); + var s = za(wl); return t(n, s, r); }); -}, Qr = /* @__PURE__ */ x.createContext({}), Ms = {}.hasOwnProperty, ns = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", qp = function(t, n) { +}, Qr = /* @__PURE__ */ x.createContext({}), js = {}.hasOwnProperty, rs = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", qp = function(t, n) { var r = {}; for (var s in n) - Ms.call(n, s) && (r[s] = n[s]); - return r[ns] = t, r; + js.call(n, s) && (r[s] = n[s]); + return r[rs] = t, r; }, Gp = function(t) { var n = t.cache, r = t.serialized, s = t.isStringTag; - return Ns(n, r, s), Rl(function() { - return ks(n, r, s); + return ks(n, r, s), Rl(function() { + return $s(n, r, s); }), null; -}, Yp = /* @__PURE__ */ $s(function(e, t, n) { +}, Yp = /* @__PURE__ */ Ms(function(e, t, n) { var r = e.css; typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]); - var s = e[ns], i = [r], a = ""; + var s = e[rs], i = [r], a = ""; typeof e.className == "string" ? a = Tl(t.registered, i, e.className) : e.className != null && (a = e.className + " "); - var l = Xn(i, void 0, x.useContext(Qr)); + var l = Jn(i, void 0, x.useContext(Qr)); a += t.key + "-" + l.name; var c = {}; for (var u in e) - Ms.call(e, u) && u !== "css" && u !== ns && (c[u] = e[u]); + js.call(e, u) && u !== "css" && u !== rs && (c[u] = e[u]); return c.className = a, n && (c.ref = n), /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(Gp, { cache: t, serialized: l, @@ -3653,7 +3653,7 @@ var $s = function(t) { }), /* @__PURE__ */ x.createElement(s, c)); }), Kp = Yp, Mi = function(t, n) { var r = arguments; - if (n == null || !Ms.call(n, "css")) + if (n == null || !js.call(n, "css")) return x.createElement.apply(void 0, r); var s = r.length, i = new Array(s); i[0] = Kp, i[1] = qp(t, n); @@ -3665,8 +3665,8 @@ var $s = function(t) { var t; t || (t = e.JSX || (e.JSX = {})); })(Mi || (Mi = {})); -var Xp = /* @__PURE__ */ $s(function(e, t) { - var n = e.styles, r = Xn([n], void 0, x.useContext(Qr)), s = x.useRef(); +var Xp = /* @__PURE__ */ Ms(function(e, t) { + var n = e.styles, r = Jn([n], void 0, x.useContext(Qr)), s = x.useRef(); return $i(function() { var i = t.key + "-global", a = new t.sheet.constructor({ key: i, @@ -3683,20 +3683,20 @@ var Xp = /* @__PURE__ */ $s(function(e, t) { i[1] = !1; return; } - if (r.next !== void 0 && ks(t, r.next, !0), a.tags.length) { + if (r.next !== void 0 && $s(t, r.next, !0), a.tags.length) { var c = a.tags[a.tags.length - 1].nextElementSibling; a.before = c, a.flush(); } t.insert("", r, a, !1); }, [t, r.name]), null; }); -function js() { +function Ls() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return Xn(t); + return Jn(t); } -function Jn() { - var e = js.apply(void 0, arguments), t = "animation-" + e.name; +function Qn() { + var e = Ls.apply(void 0, arguments), t = "animation-" + e.name; return { name: t, styles: "@keyframes " + t + "{" + e.styles + "}", @@ -3729,8 +3729,8 @@ var Jp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def return typeof s != "function" && r && (s = t.__emotion_forwardProp), s; }, tf = function(t) { var n = t.cache, r = t.serialized, s = t.isStringTag; - return Ns(n, r, s), Rl(function() { - return ks(n, r, s); + return ks(n, r, s), Rl(function() { + return $s(n, r, s); }), null; }, nf = function e(t, n) { var r = t.__emotion_real === t, s = r && t.__emotion_base || t, i, a; @@ -3746,23 +3746,23 @@ var Jp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def for (var m = d.length, g = 1; g < m; g++) h.push(d[g], v[g]); } - var p = $s(function(y, S, R) { - var T = u && y.as || s, b = "", E = [], C = y; + var p = Ms(function(y, S, R) { + var T = u && y.as || s, b = "", E = [], w = y; if (y.theme == null) { - C = {}; + w = {}; for (var k in y) - C[k] = y[k]; - C.theme = x.useContext(Qr); + w[k] = y[k]; + w.theme = x.useContext(Qr); } typeof y.className == "string" ? b = Tl(S.registered, E, y.className) : y.className != null && (b = y.className + " "); - var D = Xn(h.concat(E), S.registered, C); - b += S.key + "-" + D.name, a !== void 0 && (b += " " + a); + var L = Jn(h.concat(E), S.registered, w); + b += S.key + "-" + L.name, a !== void 0 && (b += " " + a); var H = u && l === void 0 ? ji(T) : c, G = {}; - for (var F in y) - u && F === "as" || H(F) && (G[F] = y[F]); + for (var z in y) + u && z === "as" || H(z) && (G[z] = y[z]); return G.className = b, R && (G.ref = R), /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(tf, { cache: S, - serialized: D, + serialized: L, isStringTag: typeof T == "string" }), /* @__PURE__ */ x.createElement(T, G)); }); @@ -3913,11 +3913,11 @@ var Jp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def "svg", "text", "tspan" -], rs = nf.bind(null); +], os = nf.bind(null); rf.forEach(function(e) { - rs[e] = rs(e); + os[e] = os(e); }); -var os = { exports: {} }, dr = { exports: {} }, ve = {}; +var ss = { exports: {} }, pr = { exports: {} }, ve = {}; /** @license React v16.13.1 * react-is.production.min.js * @@ -3933,8 +3933,8 @@ function of() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = 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, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119; function T(E) { if (typeof E == "object" && E !== null) { - var C = E.$$typeof; - switch (C) { + var w = E.$$typeof; + switch (w) { case t: switch (E = E.type, E) { case c: @@ -3953,11 +3953,11 @@ function of() { case a: return E; default: - return C; + return w; } } case n: - return C; + return w; } } } @@ -4005,16 +4005,16 @@ var Bi; function sf() { return Bi || (Bi = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = 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, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119; - function T(_) { - return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - _ === r || _ === u || _ === i || _ === s || _ === h || _ === v || typeof _ == "object" && _ !== null && (_.$$typeof === g || _.$$typeof === m || _.$$typeof === a || _.$$typeof === l || _.$$typeof === d || _.$$typeof === y || _.$$typeof === S || _.$$typeof === R || _.$$typeof === p); + function T(P) { + return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + P === r || P === u || P === i || P === s || P === h || P === v || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === m || P.$$typeof === a || P.$$typeof === l || P.$$typeof === d || P.$$typeof === y || P.$$typeof === S || P.$$typeof === R || P.$$typeof === p); } - function b(_) { - if (typeof _ == "object" && _ !== null) { - var ae = _.$$typeof; + function b(P) { + if (typeof P == "object" && P !== null) { + var ae = P.$$typeof; switch (ae) { case t: - var ne = _.type; + var ne = P.type; switch (ne) { case c: case u: @@ -4041,61 +4041,61 @@ function sf() { } } } - var E = c, C = u, k = l, D = a, H = t, G = d, F = r, f = g, A = m, I = n, L = i, M = s, Y = h, Q = !1; - function X(_) { - return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(_) || b(_) === c; + var E = c, w = u, k = l, L = a, H = t, G = d, z = r, f = g, I = m, A = n, j = i, $ = s, Y = h, Z = !1; + function X(P) { + return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(P) || b(P) === c; } - function O(_) { - return b(_) === u; + function O(P) { + return b(P) === u; } - function P(_) { - return b(_) === l; + function _(P) { + return b(P) === l; } - function q(_) { - return b(_) === a; + function q(P) { + return b(P) === a; } - function B(_) { - return typeof _ == "object" && _ !== null && _.$$typeof === t; + function F(P) { + return typeof P == "object" && P !== null && P.$$typeof === t; } - function J(_) { - return b(_) === d; + function J(P) { + return b(P) === d; } - function $(_) { - return b(_) === r; + function W(P) { + return b(P) === r; } - function V(_) { - return b(_) === g; + function B(P) { + return b(P) === g; } - function W(_) { - return b(_) === m; + function V(P) { + return b(P) === m; } - function U(_) { - return b(_) === n; + function U(P) { + return b(P) === n; } - function K(_) { - return b(_) === i; + function K(P) { + return b(P) === i; } - function z(_) { - return b(_) === s; + function D(P) { + return b(P) === s; } - function Z(_) { - return b(_) === h; + function Q(P) { + return b(P) === h; } - Ee.AsyncMode = E, Ee.ConcurrentMode = C, Ee.ContextConsumer = k, Ee.ContextProvider = D, Ee.Element = H, Ee.ForwardRef = G, Ee.Fragment = F, Ee.Lazy = f, Ee.Memo = A, Ee.Portal = I, Ee.Profiler = L, Ee.StrictMode = M, Ee.Suspense = Y, Ee.isAsyncMode = X, Ee.isConcurrentMode = O, Ee.isContextConsumer = P, Ee.isContextProvider = q, Ee.isElement = B, Ee.isForwardRef = J, Ee.isFragment = $, Ee.isLazy = V, Ee.isMemo = W, Ee.isPortal = U, Ee.isProfiler = K, Ee.isStrictMode = z, Ee.isSuspense = Z, Ee.isValidElementType = T, Ee.typeOf = b; + Ee.AsyncMode = E, Ee.ConcurrentMode = w, Ee.ContextConsumer = k, Ee.ContextProvider = L, Ee.Element = H, Ee.ForwardRef = G, Ee.Fragment = z, Ee.Lazy = f, Ee.Memo = I, Ee.Portal = A, Ee.Profiler = j, Ee.StrictMode = $, Ee.Suspense = Y, Ee.isAsyncMode = X, Ee.isConcurrentMode = O, Ee.isContextConsumer = _, Ee.isContextProvider = q, Ee.isElement = F, Ee.isForwardRef = J, Ee.isFragment = W, Ee.isLazy = B, Ee.isMemo = V, Ee.isPortal = U, Ee.isProfiler = K, Ee.isStrictMode = D, Ee.isSuspense = Q, Ee.isValidElementType = T, Ee.typeOf = b; }()), Ee; } var Fi; -function wl() { - return Fi || (Fi = 1, process.env.NODE_ENV === "production" ? dr.exports = of() : dr.exports = sf()), dr.exports; +function Cl() { + return Fi || (Fi = 1, process.env.NODE_ENV === "production" ? pr.exports = of() : pr.exports = sf()), pr.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ -var Io, Ui; +var No, Ui; function af() { - if (Ui) return Io; + if (Ui) return No; Ui = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; function r(i) { @@ -4125,7 +4125,7 @@ function af() { return !1; } } - return Io = s() ? Object.assign : function(i, a) { + return No = s() ? Object.assign : function(i, a) { for (var l, c = r(i), u, d = 1; d < arguments.length; d++) { l = Object(arguments[d]); for (var h in l) @@ -4137,27 +4137,27 @@ function af() { } } return c; - }, Io; + }, No; } -var No, Vi; -function Ls() { - if (Vi) return No; +var ko, Vi; +function Ds() { + if (Vi) return ko; Vi = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return No = e, No; + return ko = e, ko; } -var ko, zi; +var $o, zi; function Pl() { - return zi || (zi = 1, ko = Function.call.bind(Object.prototype.hasOwnProperty)), ko; + return zi || (zi = 1, $o = Function.call.bind(Object.prototype.hasOwnProperty)), $o; } -var $o, Wi; +var Mo, Wi; function lf() { - if (Wi) return $o; + if (Wi) return Mo; Wi = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { - var t = Ls(), n = {}, r = Pl(); + var t = Ds(), n = {}, r = Pl(); e = function(i) { var a = "Warning: " + i; typeof console < "u" && console.error(a); @@ -4197,13 +4197,13 @@ function lf() { } return s.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (n = {}); - }, $o = s, $o; + }, Mo = s, Mo; } -var Mo, Hi; +var jo, Hi; function cf() { - if (Hi) return Mo; + if (Hi) return jo; Hi = 1; - var e = wl(), t = af(), n = Ls(), r = Pl(), s = lf(), i = function() { + var e = Cl(), t = af(), n = Ds(), r = Pl(), s = lf(), i = function() { }; process.env.NODE_ENV !== "production" && (i = function(l) { var c = "Warning: " + l; @@ -4216,12 +4216,12 @@ function cf() { function a() { return null; } - return Mo = function(l, c) { + return jo = function(l, c) { var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator"; function h(O) { - var P = O && (u && O[u] || O[d]); - if (typeof P == "function") - return P; + var _ = O && (u && O[u] || O[d]); + if (typeof _ == "function") + return _; } var v = "<>", m = { array: S("array"), @@ -4236,219 +4236,219 @@ function cf() { arrayOf: T, element: b(), elementType: E(), - instanceOf: C, + instanceOf: w, node: G(), - objectOf: D, + objectOf: L, oneOf: k, oneOfType: H, shape: f, - exact: A + exact: I }; - function g(O, P) { - return O === P ? O !== 0 || 1 / O === 1 / P : O !== O && P !== P; + function g(O, _) { + return O === _ ? O !== 0 || 1 / O === 1 / _ : O !== O && _ !== _; } - function p(O, P) { - this.message = O, this.data = P && typeof P == "object" ? P : {}, this.stack = ""; + function p(O, _) { + this.message = O, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = ""; } p.prototype = Error.prototype; function y(O) { if (process.env.NODE_ENV !== "production") - var P = {}, q = 0; - function B($, V, W, U, K, z, Z) { - if (U = U || v, z = z || W, Z !== n) { + var _ = {}, q = 0; + function F(W, B, V, U, K, D, Q) { + if (U = U || v, D = D || V, Q !== n) { if (c) { - var _ = new Error( + 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 _.name = "Invariant Violation", _; + throw P.name = "Invariant Violation", P; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var ae = U + ":" + W; - !P[ae] && // Avoid spamming the console because they are often not actionable except for lib authors + var ae = U + ":" + V; + !_[ae] && // Avoid spamming the console because they are often not actionable except for lib authors q < 3 && (i( - "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + U + "`. 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." - ), P[ae] = !0, q++); + "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + U + "`. 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." + ), _[ae] = !0, q++); } } - return V[W] == null ? $ ? V[W] === null ? new p("The " + K + " `" + z + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new p("The " + K + " `" + z + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : O(V, W, U, K, z); + return B[V] == null ? W ? B[V] === null ? new p("The " + K + " `" + D + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new p("The " + K + " `" + D + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : O(B, V, U, K, D); } - var J = B.bind(null, !1); - return J.isRequired = B.bind(null, !0), J; + var J = F.bind(null, !1); + return J.isRequired = F.bind(null, !0), J; } function S(O) { - function P(q, B, J, $, V, W) { - var U = q[B], K = M(U); + function _(q, F, J, W, B, V) { + var U = q[F], K = $(U); if (K !== O) { - var z = Y(U); + var D = Y(U); return new p( - "Invalid " + $ + " `" + V + "` of type " + ("`" + z + "` supplied to `" + J + "`, expected ") + ("`" + O + "`."), + "Invalid " + W + " `" + B + "` of type " + ("`" + D + "` supplied to `" + J + "`, expected ") + ("`" + O + "`."), { expectedType: O } ); } return null; } - return y(P); + return y(_); } function R() { return y(a); } function T(O) { - function P(q, B, J, $, V) { + function _(q, F, J, W, B) { if (typeof O != "function") - return new p("Property `" + V + "` of component `" + J + "` has invalid PropType notation inside arrayOf."); - var W = q[B]; - if (!Array.isArray(W)) { - var U = M(W); - return new p("Invalid " + $ + " `" + V + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected an array.")); + return new p("Property `" + B + "` of component `" + J + "` has invalid PropType notation inside arrayOf."); + var V = q[F]; + if (!Array.isArray(V)) { + var U = $(V); + return new p("Invalid " + W + " `" + B + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected an array.")); } - for (var K = 0; K < W.length; K++) { - var z = O(W, K, J, $, V + "[" + K + "]", n); - if (z instanceof Error) - return z; + for (var K = 0; K < V.length; K++) { + var D = O(V, K, J, W, B + "[" + K + "]", n); + if (D instanceof Error) + return D; } return null; } - return y(P); + return y(_); } function b() { - function O(P, q, B, J, $) { - var V = P[q]; - if (!l(V)) { - var W = M(V); - return new p("Invalid " + J + " `" + $ + "` of type " + ("`" + W + "` supplied to `" + B + "`, expected a single ReactElement.")); + function O(_, q, F, J, W) { + var B = _[q]; + if (!l(B)) { + var V = $(B); + return new p("Invalid " + J + " `" + W + "` of type " + ("`" + V + "` supplied to `" + F + "`, expected a single ReactElement.")); } return null; } return y(O); } function E() { - function O(P, q, B, J, $) { - var V = P[q]; - if (!e.isValidElementType(V)) { - var W = M(V); - return new p("Invalid " + J + " `" + $ + "` of type " + ("`" + W + "` supplied to `" + B + "`, expected a single ReactElement type.")); + function O(_, q, F, J, W) { + var B = _[q]; + if (!e.isValidElementType(B)) { + var V = $(B); + return new p("Invalid " + J + " `" + W + "` of type " + ("`" + V + "` supplied to `" + F + "`, expected a single ReactElement type.")); } return null; } return y(O); } - function C(O) { - function P(q, B, J, $, V) { - if (!(q[B] instanceof O)) { - var W = O.name || v, U = X(q[B]); - return new p("Invalid " + $ + " `" + V + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected ") + ("instance of `" + W + "`.")); + function w(O) { + function _(q, F, J, W, B) { + if (!(q[F] instanceof O)) { + var V = O.name || v, U = X(q[F]); + return new p("Invalid " + W + " `" + B + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected ") + ("instance of `" + V + "`.")); } return null; } - return y(P); + return y(_); } function k(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 P(q, B, J, $, V) { - for (var W = q[B], U = 0; U < O.length; U++) - if (g(W, O[U])) + function _(q, F, J, W, B) { + for (var V = q[F], U = 0; U < O.length; U++) + if (g(V, O[U])) return null; - var K = JSON.stringify(O, function(Z, _) { - var ae = Y(_); - return ae === "symbol" ? String(_) : _; + var K = JSON.stringify(O, function(Q, P) { + var ae = Y(P); + return ae === "symbol" ? String(P) : P; }); - return new p("Invalid " + $ + " `" + V + "` of value `" + String(W) + "` " + ("supplied to `" + J + "`, expected one of " + K + ".")); + return new p("Invalid " + W + " `" + B + "` of value `" + String(V) + "` " + ("supplied to `" + J + "`, expected one of " + K + ".")); } - return y(P); + return y(_); } - function D(O) { - function P(q, B, J, $, V) { + function L(O) { + function _(q, F, J, W, B) { if (typeof O != "function") - return new p("Property `" + V + "` of component `" + J + "` has invalid PropType notation inside objectOf."); - var W = q[B], U = M(W); + return new p("Property `" + B + "` of component `" + J + "` has invalid PropType notation inside objectOf."); + var V = q[F], U = $(V); if (U !== "object") - return new p("Invalid " + $ + " `" + V + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected an object.")); - for (var K in W) - if (r(W, K)) { - var z = O(W, K, J, $, V + "." + K, n); - if (z instanceof Error) - return z; + return new p("Invalid " + W + " `" + B + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected an object.")); + for (var K in V) + if (r(V, K)) { + var D = O(V, K, J, W, B + "." + K, n); + if (D instanceof Error) + return D; } return null; } - return y(P); + return y(_); } function H(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 P = 0; P < O.length; P++) { - var q = O[P]; + for (var _ = 0; _ < O.length; _++) { + var q = O[_]; if (typeof q != "function") return i( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(q) + " at index " + P + "." + "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(q) + " at index " + _ + "." ), a; } - function B(J, $, V, W, U) { - for (var K = [], z = 0; z < O.length; z++) { - var Z = O[z], _ = Z(J, $, V, W, U, n); - if (_ == null) + function F(J, W, B, V, U) { + for (var K = [], D = 0; D < O.length; D++) { + var Q = O[D], P = Q(J, W, B, V, U, n); + if (P == null) return null; - _.data && r(_.data, "expectedType") && K.push(_.data.expectedType); + P.data && r(P.data, "expectedType") && K.push(P.data.expectedType); } var ae = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : ""; - return new p("Invalid " + W + " `" + U + "` supplied to " + ("`" + V + "`" + ae + ".")); + return new p("Invalid " + V + " `" + U + "` supplied to " + ("`" + B + "`" + ae + ".")); } - return y(B); + return y(F); } function G() { - function O(P, q, B, J, $) { - return I(P[q]) ? null : new p("Invalid " + J + " `" + $ + "` supplied to " + ("`" + B + "`, expected a ReactNode.")); + function O(_, q, F, J, W) { + return A(_[q]) ? null : new p("Invalid " + J + " `" + W + "` supplied to " + ("`" + F + "`, expected a ReactNode.")); } return y(O); } - function F(O, P, q, B, J) { + function z(O, _, q, F, J) { return new p( - (O || "React class") + ": " + P + " type `" + q + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`." + (O || "React class") + ": " + _ + " type `" + q + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`." ); } function f(O) { - function P(q, B, J, $, V) { - var W = q[B], U = M(W); + function _(q, F, J, W, B) { + var V = q[F], U = $(V); if (U !== "object") - return new p("Invalid " + $ + " `" + V + "` of type `" + U + "` " + ("supplied to `" + J + "`, expected `object`.")); + return new p("Invalid " + W + " `" + B + "` of type `" + U + "` " + ("supplied to `" + J + "`, expected `object`.")); for (var K in O) { - var z = O[K]; - if (typeof z != "function") - return F(J, $, V, K, Y(z)); - var Z = z(W, K, J, $, V + "." + K, n); - if (Z) - return Z; + var D = O[K]; + if (typeof D != "function") + return z(J, W, B, K, Y(D)); + var Q = D(V, K, J, W, B + "." + K, n); + if (Q) + return Q; } return null; } - return y(P); - } - function A(O) { - function P(q, B, J, $, V) { - var W = q[B], U = M(W); - if (U !== "object") - return new p("Invalid " + $ + " `" + V + "` of type `" + U + "` " + ("supplied to `" + J + "`, expected `object`.")); - var K = t({}, q[B], O); - for (var z in K) { - var Z = O[z]; - if (r(O, z) && typeof Z != "function") - return F(J, $, V, z, Y(Z)); - if (!Z) - return new p( - "Invalid " + $ + " `" + V + "` key `" + z + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(q[B], null, " ") + ` -Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") - ); - var _ = Z(W, z, J, $, V + "." + z, n); - if (_) - return _; - } - return null; - } - return y(P); + return y(_); } function I(O) { + function _(q, F, J, W, B) { + var V = q[F], U = $(V); + if (U !== "object") + return new p("Invalid " + W + " `" + B + "` of type `" + U + "` " + ("supplied to `" + J + "`, expected `object`.")); + var K = t({}, q[F], O); + for (var D in K) { + var Q = O[D]; + if (r(O, D) && typeof Q != "function") + return z(J, W, B, D, Y(Q)); + if (!Q) + return new p( + "Invalid " + W + " `" + B + "` key `" + D + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(q[F], null, " ") + ` +Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") + ); + var P = Q(V, D, J, W, B + "." + D, n); + if (P) + return P; + } + return null; + } + return y(_); + } + function A(O) { switch (typeof O) { case "number": case "string": @@ -4458,20 +4458,20 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") return !O; case "object": if (Array.isArray(O)) - return O.every(I); + return O.every(A); if (O === null || l(O)) return !0; - var P = h(O); - if (P) { - var q = P.call(O), B; - if (P !== O.entries) { - for (; !(B = q.next()).done; ) - if (!I(B.value)) + var _ = h(O); + if (_) { + var q = _.call(O), F; + if (_ !== O.entries) { + for (; !(F = q.next()).done; ) + if (!A(F.value)) return !1; } else - for (; !(B = q.next()).done; ) { - var J = B.value; - if (J && !I(J[1])) + for (; !(F = q.next()).done; ) { + var J = F.value; + if (J && !A(J[1])) return !1; } } else @@ -4481,55 +4481,55 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") return !1; } } - function L(O, P) { - return O === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1; + function j(O, _) { + return O === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1; } - function M(O) { - var P = typeof O; - return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : L(P, O) ? "symbol" : P; + function $(O) { + var _ = typeof O; + return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : j(_, O) ? "symbol" : _; } function Y(O) { if (typeof O > "u" || O === null) return "" + O; - var P = M(O); - if (P === "object") { + var _ = $(O); + if (_ === "object") { if (O instanceof Date) return "date"; if (O instanceof RegExp) return "regexp"; } - return P; + return _; } - function Q(O) { - var P = Y(O); - switch (P) { + function Z(O) { + var _ = Y(O); + switch (_) { case "array": case "object": - return "an " + P; + return "an " + _; case "boolean": case "date": case "regexp": - return "a " + P; + return "a " + _; default: - return P; + return _; } } function X(O) { return !O.constructor || !O.constructor.name ? v : O.constructor.name; } return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m; - }, Mo; + }, jo; } -var jo, qi; +var Lo, qi; function uf() { - if (qi) return jo; + if (qi) return Lo; qi = 1; - var e = Ls(); + var e = Ds(); function t() { } function n() { } - return n.resetWarningCache = t, jo = function() { + return n.resetWarningCache = t, Lo = function() { function r(a, l, c, u, d, h) { if (h !== e) { var v = new Error( @@ -4566,14 +4566,14 @@ function uf() { resetWarningCache: t }; return i.PropTypes = i, i; - }, jo; + }, Lo; } if (process.env.NODE_ENV !== "production") { - var df = wl(), pf = !0; - os.exports = cf()(df.isElement, pf); + var df = Cl(), pf = !0; + ss.exports = cf()(df.isElement, pf); } else - os.exports = uf()(); -var ff = os.exports; + ss.exports = uf()(); +var ff = ss.exports; const o = /* @__PURE__ */ tp(ff); function mf(e) { return e == null || Object.keys(e).length === 0; @@ -4599,7 +4599,7 @@ process.env.NODE_ENV !== "production" && (_l.propTypes = { * LICENSE file in the root directory of this source tree. */ function hf(e, t) { - const n = rs(e, t); + const n = os(e, t); return process.env.NODE_ENV !== "production" ? (...r) => { const s = typeof e == "string" ? `"${e}"` : "component"; return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` @@ -4611,9 +4611,9 @@ function yf(e, t) { } const Gi = []; function Pt(e) { - return Gi[0] = e, Xn(Gi); + return Gi[0] = e, Jn(Gi); } -var ss = { exports: {} }, xe = {}; +var is = { exports: {} }, xe = {}; /** * @license React * react-is.production.js @@ -4761,8 +4761,8 @@ function bf() { }, Oe.typeOf = e; }()), Oe; } -process.env.NODE_ENV === "production" ? ss.exports = gf() : ss.exports = bf(); -var qt = ss.exports; +process.env.NODE_ENV === "production" ? is.exports = gf() : is.exports = bf(); +var qt = is.exports; function ht(e) { if (typeof e != "object" || e === null) return !1; @@ -4950,7 +4950,7 @@ function Ot(e, t, n) { } return n(t); } -function Cf(e = {}) { +function wf(e = {}) { var n; return ((n = e.keys) == null ? void 0 : n.reduce((r, s) => { const i = e.up(s); @@ -4978,7 +4978,7 @@ function eo(e, t, n = !0) { } return t.split(".").reduce((r, s) => r && r[s] != null ? r[s] : null, e); } -function Pr(e, t, n, r = n) { +function _r(e, t, n, r = n) { let s; return typeof e == "function" ? s = e(n) : Array.isArray(e) ? s = e[n] || r : s = eo(e, n) || r, t && (s = t(s, r, e)), s; } @@ -4993,8 +4993,8 @@ function Me(e) { return null; const l = a[t], c = a.theme, u = eo(c, r) || {}; return Ot(a, l, (h) => { - let v = Pr(u, s, h); - return h === v && typeof h == "string" && (v = Pr(u, s, `${t}${h === "default" ? "" : re(h)}`, h)), n === !1 ? v : { + let v = _r(u, s, h); + return h === v && typeof h == "string" && (v = _r(u, s, `${t}${h === "default" ? "" : re(h)}`, h)), n === !1 ? v : { [n]: v }; }); @@ -5003,7 +5003,7 @@ function Me(e) { [t]: At } : {}, i.filterProps = [t], i; } -function wf(e) { +function Cf(e) { const t = {}; return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]); } @@ -5022,7 +5022,7 @@ const Pf = { marginY: "my", paddingX: "px", paddingY: "py" -}, Af = wf((e) => { +}, Af = Cf((e) => { if (e.length > 2) if (Zi[e]) e = Zi[e]; @@ -5031,7 +5031,7 @@ const Pf = { const [t, n] = e.split(""), r = Pf[t], s = _f[n] || ""; return Array.isArray(s) ? s.map((i) => r + i) : [r + s]; }), to = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], no = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], If = [...to, ...no]; -function Qn(e, t, n, r) { +function Zn(e, t, n, r) { const s = eo(e, t, !0) ?? n; return typeof s == "number" || typeof s == "string" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`), typeof s == "string" ? s.startsWith("var(") && i === 0 ? 0 : s.startsWith("var(") && i === 1 ? s : `calc(${i} * ${s})` : s * i) : Array.isArray(s) ? (i) => { if (typeof i == "string") @@ -5046,14 +5046,14 @@ function Qn(e, t, n, r) { `)), () => { }); } -function Ds(e) { - return Qn(e, "spacing", 8, "spacing"); +function Bs(e) { + return Zn(e, "spacing", 8, "spacing"); } -function Zn(e, t) { +function er(e, t) { return typeof t == "string" || t == null ? t : e(t); } function Nf(e, t) { - return (n) => e.reduce((r, s) => (r[s] = Zn(t, n), r), {}); + return (n) => e.reduce((r, s) => (r[s] = er(t, n), r), {}); } function kf(e, t, n, r) { if (!t.includes(n)) @@ -5062,7 +5062,7 @@ function kf(e, t, n, r) { return Ot(e, a, i); } function Il(e, t) { - const n = Ds(e.theme); + const n = Bs(e.theme); return Object.keys(e).map((r) => kf(e, t, r, n)).reduce($n, {}); } function Ae(e) { @@ -5076,7 +5076,7 @@ function Ie(e) { Ie.propTypes = process.env.NODE_ENV !== "production" ? no.reduce((e, t) => (e[t] = At, e), {}) : {}; Ie.filterProps = no; process.env.NODE_ENV !== "production" && If.reduce((e, t) => (e[t] = At, e), {}); -function Nl(e = 8, t = Ds({ +function Nl(e = 8, t = Bs({ spacing: e })) { if (e.mui) @@ -5105,8 +5105,8 @@ function rt(e, t) { } const $f = rt("border", et), Mf = rt("borderTop", et), jf = rt("borderRight", et), Lf = rt("borderBottom", et), Df = rt("borderLeft", et), Bf = rt("borderColor"), Ff = rt("borderTopColor"), Uf = rt("borderRightColor"), Vf = rt("borderBottomColor"), zf = rt("borderLeftColor"), Wf = rt("outline", et), Hf = rt("outlineColor"), oo = (e) => { if (e.borderRadius !== void 0 && e.borderRadius !== null) { - const t = Qn(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({ - borderRadius: Zn(t, r) + const t = Zn(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({ + borderRadius: er(t, r) }); return Ot(e, e.borderRadius, n); } @@ -5119,8 +5119,8 @@ oo.filterProps = ["borderRadius"]; ro($f, Mf, jf, Lf, Df, Bf, Ff, Uf, Vf, zf, oo, Wf, Hf); const so = (e) => { if (e.gap !== void 0 && e.gap !== null) { - const t = Qn(e.theme, "spacing", 8, "gap"), n = (r) => ({ - gap: Zn(t, r) + const t = Zn(e.theme, "spacing", 8, "gap"), n = (r) => ({ + gap: er(t, r) }); return Ot(e, e.gap, n); } @@ -5132,8 +5132,8 @@ so.propTypes = process.env.NODE_ENV !== "production" ? { so.filterProps = ["gap"]; const io = (e) => { if (e.columnGap !== void 0 && e.columnGap !== null) { - const t = Qn(e.theme, "spacing", 8, "columnGap"), n = (r) => ({ - columnGap: Zn(t, r) + const t = Zn(e.theme, "spacing", 8, "columnGap"), n = (r) => ({ + columnGap: er(t, r) }); return Ot(e, e.columnGap, n); } @@ -5145,8 +5145,8 @@ io.propTypes = process.env.NODE_ENV !== "production" ? { io.filterProps = ["columnGap"]; const ao = (e) => { if (e.rowGap !== void 0 && e.rowGap !== null) { - const t = Qn(e.theme, "spacing", 8, "rowGap"), n = (r) => ({ - rowGap: Zn(t, r) + const t = Zn(e.theme, "spacing", 8, "rowGap"), n = (r) => ({ + rowGap: er(t, r) }); return Ot(e, e.rowGap, n); } @@ -5200,7 +5200,7 @@ function Xe(e) { const om = Me({ prop: "width", transform: Xe -}), Bs = (e) => { +}), Fs = (e) => { if (e.maxWidth !== void 0 && e.maxWidth !== null) { const t = (n) => { var s, i, a, l, c; @@ -5217,7 +5217,7 @@ const om = Me({ } return null; }; -Bs.filterProps = ["maxWidth"]; +Fs.filterProps = ["maxWidth"]; const sm = Me({ prop: "minWidth", transform: Xe @@ -5244,8 +5244,8 @@ Me({ const cm = Me({ prop: "boxSizing" }); -ro(om, Bs, sm, im, am, lm, cm); -const er = { +ro(om, Fs, sm, im, am, lm, cm); +const tr = { // borders border: { themeKey: "borders", @@ -5493,7 +5493,7 @@ const er = { transform: Xe }, maxWidth: { - style: Bs + style: Fs }, minWidth: { transform: Xe @@ -5564,8 +5564,8 @@ function pm() { }; const v = eo(s, u) || {}; return h ? h(a) : Ot(a, r, (g) => { - let p = Pr(v, d, g); - return g === p && typeof g == "string" && (p = Pr(v, d, `${n}${g === "default" ? "" : re(g)}`, g)), c === !1 ? p : { + let p = _r(v, d, g); + return g === p && typeof g == "string" && (p = _r(v, d, `${n}${g === "default" ? "" : re(g)}`, g)), c === !1 ? p : { [c]: p }; }); @@ -5578,7 +5578,7 @@ function pm() { } = n || {}; if (!r) return null; - const a = s.unstable_sxConfig ?? er; + const a = s.unstable_sxConfig ?? tr; function l(c) { let u = c; if (typeof c == "function") @@ -5587,7 +5587,7 @@ function pm() { return c; if (!u) return null; - const d = Cf(s.breakpoints), h = Object.keys(d); + const d = wf(s.breakpoints), h = Object.keys(d); let v = d; return Object.keys(u).forEach((m) => { const g = dm(u[m], s); @@ -5632,7 +5632,7 @@ function fm(e, t) { } return n.palette.mode === e ? t : {}; } -function Fs(e = {}, ...t) { +function Us(e = {}, ...t) { const { breakpoints: n = {}, palette: r = {}, @@ -5656,7 +5656,7 @@ function Fs(e = {}, ...t) { } }, a); return u = xf(u), u.applyStyles = fm, u = t.reduce((d, h) => Ve(d, h), u), u.unstable_sxConfig = { - ...er, + ...tr, ...a == null ? void 0 : a.unstable_sxConfig }, u.unstable_sx = function(h) { return mn({ @@ -5672,11 +5672,11 @@ function hm(e = null) { const t = x.useContext(Qr); return !t || mm(t) ? e : t; } -const ym = Fs(); +const ym = Us(); function kl(e = ym) { return hm(e); } -function Lo(e) { +function Do(e) { const t = Pt(e); return e !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : e; } @@ -5687,7 +5687,7 @@ function $l({ }) { const r = kl(n), s = t && r[t] || r; let i = typeof e == "function" ? e(s) : e; - return s.modularCssLayers && (Array.isArray(i) ? i = i.map((a) => Lo(typeof a == "function" ? a(s) : a)) : i = Lo(i)), /* @__PURE__ */ N.jsx(_l, { + return s.modularCssLayers && (Array.isArray(i) ? i = i.map((a) => Do(typeof a == "function" ? a(s) : a)) : i = Do(i)), /* @__PURE__ */ N.jsx(_l, { styles: i }); } @@ -5714,7 +5714,7 @@ const gm = (e) => { const t = { systemProps: {}, otherProps: {} - }, n = ((r = e == null ? void 0 : e.theme) == null ? void 0 : r.unstable_sxConfig) ?? er; + }, n = ((r = e == null ? void 0 : e.theme) == null ? void 0 : r.unstable_sxConfig) ?? tr; return Object.keys(e).forEach((s) => { n[s] ? t.systemProps[s] = e[s] : t.otherProps[s] = e[s]; }), t; @@ -5830,8 +5830,8 @@ function Ll(e) { typeof s.style != "function" && (s.style = Pt(s.style)); }), r; } -const xm = Fs(); -function Do(e) { +const xm = Us(); +function Bo(e) { return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"; } function Ut(e, t) { @@ -5843,10 +5843,10 @@ function Om(e) { function Rm(e, t, n) { e.theme = _m(e.theme) ? n : e.theme[t] || e.theme; } -function Or(e, t, n) { +function Rr(e, t, n) { const r = typeof t == "function" ? t(e) : t; if (Array.isArray(r)) - return r.flatMap((s) => Or(e, s, n)); + return r.flatMap((s) => Rr(e, s, n)); if (Array.isArray(r == null ? void 0 : r.variants)) { let s; if (r.isProcessed) @@ -5886,18 +5886,18 @@ function Dl(e, t, n = [], r = void 0) { } return n; } -function Cm(e = {}) { +function wm(e = {}) { const { themeId: t, defaultTheme: n = xm, - rootShouldForwardProp: r = Do, - slotShouldForwardProp: s = Do + rootShouldForwardProp: r = Bo, + slotShouldForwardProp: s = Bo } = e; function i(l) { Rm(l, t, n); } return (l, c = {}) => { - yf(l, (C) => C.filter((k) => k !== mn)); + yf(l, (w) => w.filter((k) => k !== mn)); const { name: u, slot: d, @@ -5912,53 +5912,53 @@ function Cm(e = {}) { // For more details: https://github.com/mui/material-ui/pull/37908 d && d !== "Root" && d !== "root" || !1 ), S = v || !1; - let R = Do; + let R = Bo; d === "Root" || d === "root" ? R = r : d ? R = s : Am(l) && (R = void 0); const T = hf(l, { shouldForwardProp: R, label: Pm(u, d), ...g - }), b = (C) => { - if (C.__emotion_real === C) - return C; - if (typeof C == "function") - return function(D) { - return Or(D, C, D.theme.modularCssLayers ? p : void 0); + }), b = (w) => { + if (w.__emotion_real === w) + return w; + if (typeof w == "function") + return function(L) { + return Rr(L, w, L.theme.modularCssLayers ? p : void 0); }; - if (ht(C)) { - const k = Ll(C); + if (ht(w)) { + const k = Ll(w); return function(H) { - return k.variants ? Or(H, k, H.theme.modularCssLayers ? p : void 0) : H.theme.modularCssLayers ? Ut(k.style, p) : k.style; + return k.variants ? Rr(H, k, H.theme.modularCssLayers ? p : void 0) : H.theme.modularCssLayers ? Ut(k.style, p) : k.style; }; } - return C; - }, E = (...C) => { - const k = [], D = C.map(b), H = []; - if (k.push(i), u && m && H.push(function(A) { - var Y, Q; - const L = (Q = (Y = A.theme.components) == null ? void 0 : Y[u]) == null ? void 0 : Q.styleOverrides; - if (!L) + return w; + }, E = (...w) => { + const k = [], L = w.map(b), H = []; + if (k.push(i), u && m && H.push(function(I) { + var Y, Z; + const j = (Z = (Y = I.theme.components) == null ? void 0 : Y[u]) == null ? void 0 : Z.styleOverrides; + if (!j) return null; - const M = {}; - for (const X in L) - M[X] = Or(A, L[X], A.theme.modularCssLayers ? "theme" : void 0); - return m(A, M); - }), u && !y && H.push(function(A) { - var M, Y; - const I = A.theme, L = (Y = (M = I == null ? void 0 : I.components) == null ? void 0 : M[u]) == null ? void 0 : Y.variants; - return L ? Dl(A, L, [], A.theme.modularCssLayers ? "theme" : void 0) : null; - }), S || H.push(mn), Array.isArray(D[0])) { - const f = D.shift(), A = new Array(k.length).fill(""), I = new Array(H.length).fill(""); - let L; - L = [...A, ...f, ...I], L.raw = [...A, ...f.raw, ...I], k.unshift(L); + const $ = {}; + for (const X in j) + $[X] = Rr(I, j[X], I.theme.modularCssLayers ? "theme" : void 0); + return m(I, $); + }), u && !y && H.push(function(I) { + var $, Y; + const A = I.theme, j = (Y = ($ = A == null ? void 0 : A.components) == null ? void 0 : $[u]) == null ? void 0 : Y.variants; + return j ? Dl(I, j, [], I.theme.modularCssLayers ? "theme" : void 0) : null; + }), S || H.push(mn), Array.isArray(L[0])) { + const f = L.shift(), I = new Array(k.length).fill(""), A = new Array(H.length).fill(""); + let j; + j = [...I, ...f, ...A], j.raw = [...I, ...f.raw, ...A], k.unshift(j); } - const G = [...k, ...D, ...H], F = T(...G); - return l.muiName && (F.muiName = l.muiName), process.env.NODE_ENV !== "production" && (F.displayName = wm(u, d, l)), F; + const G = [...k, ...L, ...H], z = T(...G); + return l.muiName && (z.muiName = l.muiName), process.env.NODE_ENV !== "production" && (z.displayName = Cm(u, d, l)), z; }; return T.withConfig && (E.withConfig = T.withConfig), E; }; } -function wm(e, t, n) { +function Cm(e, t, n) { return e ? `${e}${re(t || "")}` : `Styled(${Tm(n)})`; } function Pm(e, t) { @@ -5979,7 +5979,7 @@ function Am(e) { function Bl(e) { return e && e.charAt(0).toLowerCase() + e.slice(1); } -function _r(e, t, n = !1) { +function Ar(e, t, n = !1) { const r = { ...t }; @@ -6004,7 +6004,7 @@ function _r(e, t, n = !1) { for (const c in a) if (Object.prototype.hasOwnProperty.call(a, c)) { const u = c; - r[i][u] = _r(a[u], l[u], n); + r[i][u] = Ar(a[u], l[u], n); } } } else i === "className" && n && t.className ? r.className = ie(e == null ? void 0 : e.className, t == null ? void 0 : t.className) : i === "style" && n && t.style ? r.style = { @@ -6018,7 +6018,7 @@ const Rt = typeof window < "u" ? x.useLayoutEffect : x.useEffect; function Im(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) { return Math.max(t, Math.min(e, n)); } -function Us(e, t = 0, n = 1) { +function Vs(e, t = 0, n = 1) { return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), Im(e, t, n); } function Nm(e) { @@ -6081,27 +6081,27 @@ function Fl(e) { values: c }); } -function is(e) { +function as(e) { e = _t(e); let t = e.type === "hsl" || e.type === "hsla" ? _t(Fl(e)).values : e.values; return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3)); } function na(e, t) { - const n = is(e), r = is(t); + const n = as(e), r = as(t); return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05); } -function Ar(e, t) { - return e = _t(e), t = Us(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, lo(e); +function Ir(e, t) { + return e = _t(e), t = Vs(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, lo(e); } function Mt(e, t, n) { try { - return Ar(e, t); + return Ir(e, t); } catch { return n && process.env.NODE_ENV !== "production" && console.warn(n), e; } } function co(e, t) { - if (e = _t(e), t = Us(t), e.type.includes("hsl")) + if (e = _t(e), t = Vs(t), e.type.includes("hsl")) e.values[2] *= 1 - t; else if (e.type.includes("rgb") || e.type.includes("color")) for (let n = 0; n < 3; n += 1) @@ -6116,7 +6116,7 @@ function Se(e, t, n) { } } function uo(e, t) { - if (e = _t(e), t = Us(t), e.type.includes("hsl")) + if (e = _t(e), t = Vs(t), e.type.includes("hsl")) e.values[2] += (100 - e.values[2]) * t; else if (e.type.includes("rgb")) for (let n = 0; n < 3; n += 1) @@ -6134,9 +6134,9 @@ function Te(e, t, n) { } } function $m(e, t = 0.15) { - return is(e) > 0.5 ? co(e, t) : uo(e, t); + return as(e) > 0.5 ? co(e, t) : uo(e, t); } -function pr(e, t, n) { +function fr(e, t, n) { try { return $m(e, t); } catch { @@ -6166,7 +6166,7 @@ function Bm(e) { if (!t || !t.components || !t.components[n]) return r; const s = t.components[n]; - return s.defaultProps ? _r(s.defaultProps, r, t.components.mergeClassNameAndStyle) : !s.styleOverrides && !s.variants ? _r(s, r, t.components.mergeClassNameAndStyle) : r; + return s.defaultProps ? Ar(s.defaultProps, r, t.components.mergeClassNameAndStyle) : !s.styleOverrides && !s.variants ? Ar(s, r, t.components.mergeClassNameAndStyle) : r; } function Fm({ props: e, @@ -6191,7 +6191,7 @@ function Um(e) { const Vm = { ...x }, oa = Vm.useId; -function tr(e) { +function nr(e) { if (oa !== void 0) { const t = oa(); return e ?? t; @@ -6230,7 +6230,7 @@ const ia = (e, t, n, r = []) => { } r(e); }, qm = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((r) => e.includes(r)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t; -function Bo(e, t) { +function Fo(e, t) { const { prefix: n, shouldSkipGeneratingVar: r @@ -6268,7 +6268,7 @@ function Gm(e, t = {}) { vars: d, css: h, varsWithDefaults: v - } = Bo(u, t); + } = Fo(u, t); let m = v; const g = {}, { [c]: p, @@ -6276,37 +6276,37 @@ function Gm(e, t = {}) { } = a; if (Object.entries(y || {}).forEach(([b, E]) => { const { - vars: C, + vars: w, css: k, - varsWithDefaults: D - } = Bo(E, t); - m = Ve(m, D), g[b] = { + varsWithDefaults: L + } = Fo(E, t); + m = Ve(m, L), g[b] = { css: k, - vars: C + vars: w }; }), p) { const { css: b, vars: E, - varsWithDefaults: C - } = Bo(p, t); - m = Ve(m, C), g[c] = { + varsWithDefaults: w + } = Fo(p, t); + m = Ve(m, w), g[c] = { css: b, vars: E }; } function S(b, E) { - var k, D; - let C = s; - if (s === "class" && (C = ".%s"), s === "data" && (C = "[data-%s]"), s != null && s.startsWith("data-") && !s.includes("%s") && (C = `[${s}="%s"]`), b) { - if (C === "media") + var k, L; + let w = s; + if (s === "class" && (w = ".%s"), s === "data" && (w = "[data-%s]"), s != null && s.startsWith("data-") && !s.includes("%s") && (w = `[${s}="%s"]`), b) { + if (w === "media") return e.defaultColorScheme === b ? ":root" : { - [`@media (prefers-color-scheme: ${((D = (k = a[b]) == null ? void 0 : k.palette) == null ? void 0 : D.mode) || b})`]: { + [`@media (prefers-color-scheme: ${((L = (k = a[b]) == null ? void 0 : k.palette) == null ? void 0 : L.mode) || b})`]: { ":root": E } }; - if (C) - return e.defaultColorScheme === b ? `:root, ${C.replace("%s", String(b))}` : C.replace("%s", String(b)); + if (w) + return e.defaultColorScheme === b ? `:root, ${w.replace("%s", String(b))}` : w.replace("%s", String(b)); } return ":root"; } @@ -6325,46 +6325,46 @@ function Gm(e, t = {}) { generateStyleSheets: () => { var H, G; const b = [], E = e.defaultColorScheme || "light"; - function C(F, f) { - Object.keys(f).length && b.push(typeof F == "string" ? { - [F]: { + function w(z, f) { + Object.keys(f).length && b.push(typeof z == "string" ? { + [z]: { ...f } - } : F); + } : z); } - C(n(void 0, { + w(n(void 0, { ...h }), h); const { [E]: k, - ...D + ...L } = g; if (k) { const { - css: F - } = k, f = (G = (H = a[E]) == null ? void 0 : H.palette) == null ? void 0 : G.mode, A = !r && f ? { + css: z + } = k, f = (G = (H = a[E]) == null ? void 0 : H.palette) == null ? void 0 : G.mode, I = !r && f ? { colorScheme: f, - ...F + ...z } : { - ...F + ...z }; - C(n(E, { - ...A - }), A); - } - return Object.entries(D).forEach(([F, { - css: f - }]) => { - var L, M; - const A = (M = (L = a[F]) == null ? void 0 : L.palette) == null ? void 0 : M.mode, I = !r && A ? { - colorScheme: A, - ...f - } : { - ...f - }; - C(n(F, { + w(n(E, { ...I }), I); + } + return Object.entries(L).forEach(([z, { + css: f + }]) => { + var j, $; + const I = ($ = (j = a[z]) == null ? void 0 : j.palette) == null ? void 0 : $.mode, A = !r && I ? { + colorScheme: I, + ...f + } : { + ...f + }; + w(n(z, { + ...A + }), A); }), i && b.push({ ":root": { // use double underscore to indicate that these are private variables @@ -6395,7 +6395,7 @@ function de(e, t, n = void 0) { } return r; } -function Fo(e, t) { +function Uo(e, t) { var n, r, s; return /* @__PURE__ */ x.isValidElement(e) && t.indexOf( // For server components `muiName` is available in element.type._payload.value.muiName @@ -6420,8 +6420,8 @@ function Vl() { // The background colors used to style the surfaces. // Consistency between these values is important. background: { - paper: Dn.white, - default: Dn.white + paper: Bn.white, + default: Bn.white }, // The colors used to style the action elements. action: { @@ -6448,7 +6448,7 @@ const zl = Vl(); function Wl() { return { text: { - primary: Dn.white, + primary: Bn.white, secondary: "rgba(255, 255, 255, 0.7)", disabled: "rgba(255, 255, 255, 0.5)", icon: "rgba(255, 255, 255, 0.5)" @@ -6459,7 +6459,7 @@ function Wl() { default: "#121212" }, action: { - active: Dn.white, + active: Bn.white, hover: "rgba(255, 255, 255, 0.08)", hoverOpacity: 0.08, selected: "rgba(255, 255, 255, 0.16)", @@ -6473,7 +6473,7 @@ function Wl() { } }; } -const as = Wl(); +const ls = Wl(); function aa(e, t, n, r) { const s = r.light || r, i = r.dark || r * 1.5; e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = uo(e.main, s) : t === "dark" && (e.dark = co(e.main, i))); @@ -6552,7 +6552,7 @@ function eh(e = "light") { function th(e) { return `oklch(from ${e} var(--__l) 0 h / var(--__a))`; } -function Vs(e) { +function zs(e) { const { mode: t = "light", contrastThreshold: n = 3, @@ -6563,7 +6563,7 @@ function Vs(e) { function v(y) { if (s) return th(y); - const S = na(y, as.text.primary) >= n ? as.text.primary : zl.text.primary; + const S = na(y, ls.text.primary) >= n ? ls.text.primary : zl.text.primary; if (process.env.NODE_ENV !== "production") { const R = na(y, S); R < 3 && console.error([`MUI: The contrast ratio of ${R}:1 for ${S} on ${y}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` @@ -6604,7 +6604,7 @@ const theme2 = createTheme({ palette: { return t === "light" ? g = Vl() : t === "dark" && (g = Wl()), process.env.NODE_ENV !== "production" && (g || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Ve({ // A collection of common colors. common: { - ...Dn + ...Bn }, // prevent mutable object. // The palette mode, can be light or dark. @@ -6759,10 +6759,10 @@ function sh(e, t) { }); } const ih = 0.2, ah = 0.14, lh = 0.12; -function we(...e) { +function Ce(...e) { return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ih})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ah})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lh})`].join(","); } -const ch = ["none", we(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), we(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), we(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), we(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), we(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), we(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), we(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), we(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), we(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), we(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), we(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), we(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), we(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), we(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), we(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), we(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), we(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), we(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), we(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), we(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), we(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), we(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), we(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), we(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], uh = { +const ch = ["none", Ce(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Ce(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), Ce(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), Ce(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), Ce(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), Ce(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), Ce(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), Ce(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), Ce(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), Ce(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), Ce(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), Ce(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), Ce(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), Ce(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), Ce(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), Ce(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), Ce(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), Ce(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), Ce(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), Ce(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), Ce(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), Ce(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), Ce(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), Ce(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], uh = { // This is the most common easing curve. easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", // Objects enter the screen at full velocity from off-screen and @@ -6876,7 +6876,7 @@ function gh(e) { Object.assign(e, { alpha(t, n) { const r = this || e; - return r.colorSpace ? `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})` : r.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof n == "string" ? `calc(${n})` : n})` : Ar(t, yh(n)); + return r.colorSpace ? `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})` : r.vars ? `rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof n == "string" ? `calc(${n})` : n})` : Ir(t, yh(n)); }, lighten(t, n) { const r = this || e; @@ -6888,7 +6888,7 @@ function gh(e) { } }); } -function ls(e = {}, ...t) { +function cs(e = {}, ...t) { const { breakpoints: n, mixins: r = {}, @@ -6904,10 +6904,10 @@ function ls(e = {}, ...t) { // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider. 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://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : xt(20)); - const h = Vs({ + const h = zs({ ...i, colorSpace: u - }), v = Fs(e); + }), v = Us(e); let m = Ve(v, { mixins: rh(v.breakpoints, r), palette: h, @@ -6944,7 +6944,7 @@ function ls(e = {}, ...t) { }); } return m.unstable_sxConfig = { - ...er, + ...tr, ...d == null ? void 0 : d.unstable_sxConfig }, m.unstable_sx = function(p) { return mn({ @@ -6953,14 +6953,14 @@ function ls(e = {}, ...t) { }); }, m.toRuntimeSource = Hl, gh(m), m; } -function cs(e) { +function us(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 bh = [...Array(25)].map((e, t) => { if (t === 0) return "none"; - const n = cs(t); + const n = us(t); return `linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`; }); function ql(e) { @@ -6984,7 +6984,7 @@ function vh(e) { overlays: r, colorSpace: s, ...i - } = e, a = Vs({ + } = e, a = zs({ ...t, colorSpace: s }); @@ -7045,7 +7045,7 @@ function xh(e, t) { e[n] || (e[n] = {}); }); } -function j(e, t, n) { +function M(e, t, n) { !e[t] && n && (e[t] = n); } function In(e) { @@ -7064,7 +7064,7 @@ const dt = (e) => { } catch { } }, Rh = (e = "mui") => Wm(e); -function Uo(e, t, n, r, s) { +function Vo(e, t, n, r, s) { if (!n) return; n = n === !0 ? {} : n; @@ -7083,7 +7083,7 @@ function Uo(e, t, n, r, s) { const { palette: a, ...l - } = ls({ + } = cs({ ...r, palette: { mode: i, @@ -7101,7 +7101,7 @@ function Uo(e, t, n, r, s) { overlays: (n == null ? void 0 : n.overlays) || Gl(i) }, l; } -function Ch(e = {}, ...t) { +function wh(e = {}, ...t) { const { colorSchemes: n = { light: !0 @@ -7127,9 +7127,9 @@ function Ch(e = {}, ...t) { throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${v}\` option is either missing or invalid.` : xt(21, v)); let b; a && (b = "oklch"); - const E = Uo(b, R, T, d, v); - p && !R.light && Uo(b, R, p, void 0, "light"), y && !R.dark && Uo(b, R, y, void 0, "dark"); - let C = { + const E = Vo(b, R, T, d, v); + p && !R.light && Vo(b, R, p, void 0, "light"), y && !R.dark && Vo(b, R, y, void 0, "dark"); + let w = { defaultColorScheme: v, ...E, cssVarPrefix: i, @@ -7143,70 +7143,70 @@ function Ch(e = {}, ...t) { }, spacing: Oh(d.spacing) }; - Object.keys(C.colorSchemes).forEach((F) => { - const f = C.colorSchemes[F].palette, A = (L) => { - const M = L.split("-"), Y = M[1], Q = M[2]; - return m(L, f[Y][Q]); + Object.keys(w.colorSchemes).forEach((z) => { + const f = w.colorSchemes[z].palette, I = (j) => { + const $ = j.split("-"), Y = $[1], Z = $[2]; + return m(j, f[Y][Z]); }; - f.mode === "light" && (j(f.common, "background", "#fff"), j(f.common, "onBackground", "#000")), f.mode === "dark" && (j(f.common, "background", "#000"), j(f.common, "onBackground", "#fff")); - function I(L, M, Y) { + f.mode === "light" && (M(f.common, "background", "#fff"), M(f.common, "onBackground", "#000")), f.mode === "dark" && (M(f.common, "background", "#000"), M(f.common, "onBackground", "#fff")); + function A(j, $, Y) { if (b) { - let Q; - return L === Mt && (Q = `transparent ${((1 - Y) * 100).toFixed(0)}%`), L === Se && (Q = `#000 ${(Y * 100).toFixed(0)}%`), L === Te && (Q = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${b}, ${M}, ${Q})`; + let Z; + return j === Mt && (Z = `transparent ${((1 - Y) * 100).toFixed(0)}%`), j === Se && (Z = `#000 ${(Y * 100).toFixed(0)}%`), j === Te && (Z = `#fff ${(Y * 100).toFixed(0)}%`), `color-mix(in ${b}, ${$}, ${Z})`; } - return L(M, Y); + return j($, Y); } if (xh(f, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), f.mode === "light") { - j(f.Alert, "errorColor", I(Se, a ? m("palette-error-light") : f.error.light, 0.6)), j(f.Alert, "infoColor", I(Se, a ? m("palette-info-light") : f.info.light, 0.6)), j(f.Alert, "successColor", I(Se, a ? m("palette-success-light") : f.success.light, 0.6)), j(f.Alert, "warningColor", I(Se, a ? m("palette-warning-light") : f.warning.light, 0.6)), j(f.Alert, "errorFilledBg", A("palette-error-main")), j(f.Alert, "infoFilledBg", A("palette-info-main")), j(f.Alert, "successFilledBg", A("palette-success-main")), j(f.Alert, "warningFilledBg", A("palette-warning-main")), j(f.Alert, "errorFilledColor", dt(() => f.getContrastText(f.error.main))), j(f.Alert, "infoFilledColor", dt(() => f.getContrastText(f.info.main))), j(f.Alert, "successFilledColor", dt(() => f.getContrastText(f.success.main))), j(f.Alert, "warningFilledColor", dt(() => f.getContrastText(f.warning.main))), j(f.Alert, "errorStandardBg", I(Te, a ? m("palette-error-light") : f.error.light, 0.9)), j(f.Alert, "infoStandardBg", I(Te, a ? m("palette-info-light") : f.info.light, 0.9)), j(f.Alert, "successStandardBg", I(Te, a ? m("palette-success-light") : f.success.light, 0.9)), j(f.Alert, "warningStandardBg", I(Te, a ? m("palette-warning-light") : f.warning.light, 0.9)), j(f.Alert, "errorIconColor", A("palette-error-main")), j(f.Alert, "infoIconColor", A("palette-info-main")), j(f.Alert, "successIconColor", A("palette-success-main")), j(f.Alert, "warningIconColor", A("palette-warning-main")), j(f.AppBar, "defaultBg", A("palette-grey-100")), j(f.Avatar, "defaultBg", A("palette-grey-400")), j(f.Button, "inheritContainedBg", A("palette-grey-300")), j(f.Button, "inheritContainedHoverBg", A("palette-grey-A100")), j(f.Chip, "defaultBorder", A("palette-grey-400")), j(f.Chip, "defaultAvatarColor", A("palette-grey-700")), j(f.Chip, "defaultIconColor", A("palette-grey-700")), j(f.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), j(f.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), j(f.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), j(f.LinearProgress, "primaryBg", I(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), j(f.LinearProgress, "secondaryBg", I(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), j(f.LinearProgress, "errorBg", I(Te, a ? m("palette-error-main") : f.error.main, 0.62)), j(f.LinearProgress, "infoBg", I(Te, a ? m("palette-info-main") : f.info.main, 0.62)), j(f.LinearProgress, "successBg", I(Te, a ? m("palette-success-main") : f.success.main, 0.62)), j(f.LinearProgress, "warningBg", I(Te, a ? m("palette-warning-light") : f.warning.main, 0.62)), j(f.Skeleton, "bg", b ? I(Mt, a ? m("palette-text-primary") : f.text.primary, 0.11) : `rgba(${A("palette-text-primaryChannel")} / 0.11)`), j(f.Slider, "primaryTrack", I(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), j(f.Slider, "secondaryTrack", I(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), j(f.Slider, "errorTrack", I(Te, a ? m("palette-error-main") : f.error.main, 0.62)), j(f.Slider, "infoTrack", I(Te, a ? m("palette-info-main") : f.info.main, 0.62)), j(f.Slider, "successTrack", I(Te, a ? m("palette-success-main") : f.success.main, 0.62)), j(f.Slider, "warningTrack", I(Te, a ? m("palette-warning-main") : f.warning.main, 0.62)); - const L = b ? I(Se, a ? m("palette-background-default") : f.background.default, 0.6825) : pr(f.background.default, 0.8); - j(f.SnackbarContent, "bg", L), j(f.SnackbarContent, "color", dt(() => b ? as.text.primary : f.getContrastText(L))), j(f.SpeedDialAction, "fabHoverBg", pr(f.background.paper, 0.15)), j(f.StepConnector, "border", A("palette-grey-400")), j(f.StepContent, "border", A("palette-grey-400")), j(f.Switch, "defaultColor", A("palette-common-white")), j(f.Switch, "defaultDisabledColor", A("palette-grey-100")), j(f.Switch, "primaryDisabledColor", I(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), j(f.Switch, "secondaryDisabledColor", I(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), j(f.Switch, "errorDisabledColor", I(Te, a ? m("palette-error-main") : f.error.main, 0.62)), j(f.Switch, "infoDisabledColor", I(Te, a ? m("palette-info-main") : f.info.main, 0.62)), j(f.Switch, "successDisabledColor", I(Te, a ? m("palette-success-main") : f.success.main, 0.62)), j(f.Switch, "warningDisabledColor", I(Te, a ? m("palette-warning-main") : f.warning.main, 0.62)), j(f.TableCell, "border", I(Te, Mt(a ? m("palette-divider") : f.divider, 1), 0.88)), j(f.Tooltip, "bg", I(Mt, a ? m("palette-grey-700") : f.grey[700], 0.92)); + M(f.Alert, "errorColor", A(Se, a ? m("palette-error-light") : f.error.light, 0.6)), M(f.Alert, "infoColor", A(Se, a ? m("palette-info-light") : f.info.light, 0.6)), M(f.Alert, "successColor", A(Se, a ? m("palette-success-light") : f.success.light, 0.6)), M(f.Alert, "warningColor", A(Se, a ? m("palette-warning-light") : f.warning.light, 0.6)), M(f.Alert, "errorFilledBg", I("palette-error-main")), M(f.Alert, "infoFilledBg", I("palette-info-main")), M(f.Alert, "successFilledBg", I("palette-success-main")), M(f.Alert, "warningFilledBg", I("palette-warning-main")), M(f.Alert, "errorFilledColor", dt(() => f.getContrastText(f.error.main))), M(f.Alert, "infoFilledColor", dt(() => f.getContrastText(f.info.main))), M(f.Alert, "successFilledColor", dt(() => f.getContrastText(f.success.main))), M(f.Alert, "warningFilledColor", dt(() => f.getContrastText(f.warning.main))), M(f.Alert, "errorStandardBg", A(Te, a ? m("palette-error-light") : f.error.light, 0.9)), M(f.Alert, "infoStandardBg", A(Te, a ? m("palette-info-light") : f.info.light, 0.9)), M(f.Alert, "successStandardBg", A(Te, a ? m("palette-success-light") : f.success.light, 0.9)), M(f.Alert, "warningStandardBg", A(Te, a ? m("palette-warning-light") : f.warning.light, 0.9)), M(f.Alert, "errorIconColor", I("palette-error-main")), M(f.Alert, "infoIconColor", I("palette-info-main")), M(f.Alert, "successIconColor", I("palette-success-main")), M(f.Alert, "warningIconColor", I("palette-warning-main")), M(f.AppBar, "defaultBg", I("palette-grey-100")), M(f.Avatar, "defaultBg", I("palette-grey-400")), M(f.Button, "inheritContainedBg", I("palette-grey-300")), M(f.Button, "inheritContainedHoverBg", I("palette-grey-A100")), M(f.Chip, "defaultBorder", I("palette-grey-400")), M(f.Chip, "defaultAvatarColor", I("palette-grey-700")), M(f.Chip, "defaultIconColor", I("palette-grey-700")), M(f.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), M(f.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), M(f.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), M(f.LinearProgress, "primaryBg", A(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), M(f.LinearProgress, "secondaryBg", A(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), M(f.LinearProgress, "errorBg", A(Te, a ? m("palette-error-main") : f.error.main, 0.62)), M(f.LinearProgress, "infoBg", A(Te, a ? m("palette-info-main") : f.info.main, 0.62)), M(f.LinearProgress, "successBg", A(Te, a ? m("palette-success-main") : f.success.main, 0.62)), M(f.LinearProgress, "warningBg", A(Te, a ? m("palette-warning-light") : f.warning.main, 0.62)), M(f.Skeleton, "bg", b ? A(Mt, a ? m("palette-text-primary") : f.text.primary, 0.11) : `rgba(${I("palette-text-primaryChannel")} / 0.11)`), M(f.Slider, "primaryTrack", A(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), M(f.Slider, "secondaryTrack", A(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), M(f.Slider, "errorTrack", A(Te, a ? m("palette-error-main") : f.error.main, 0.62)), M(f.Slider, "infoTrack", A(Te, a ? m("palette-info-main") : f.info.main, 0.62)), M(f.Slider, "successTrack", A(Te, a ? m("palette-success-main") : f.success.main, 0.62)), M(f.Slider, "warningTrack", A(Te, a ? m("palette-warning-main") : f.warning.main, 0.62)); + const j = b ? A(Se, a ? m("palette-background-default") : f.background.default, 0.6825) : fr(f.background.default, 0.8); + M(f.SnackbarContent, "bg", j), M(f.SnackbarContent, "color", dt(() => b ? ls.text.primary : f.getContrastText(j))), M(f.SpeedDialAction, "fabHoverBg", fr(f.background.paper, 0.15)), M(f.StepConnector, "border", I("palette-grey-400")), M(f.StepContent, "border", I("palette-grey-400")), M(f.Switch, "defaultColor", I("palette-common-white")), M(f.Switch, "defaultDisabledColor", I("palette-grey-100")), M(f.Switch, "primaryDisabledColor", A(Te, a ? m("palette-primary-main") : f.primary.main, 0.62)), M(f.Switch, "secondaryDisabledColor", A(Te, a ? m("palette-secondary-main") : f.secondary.main, 0.62)), M(f.Switch, "errorDisabledColor", A(Te, a ? m("palette-error-main") : f.error.main, 0.62)), M(f.Switch, "infoDisabledColor", A(Te, a ? m("palette-info-main") : f.info.main, 0.62)), M(f.Switch, "successDisabledColor", A(Te, a ? m("palette-success-main") : f.success.main, 0.62)), M(f.Switch, "warningDisabledColor", A(Te, a ? m("palette-warning-main") : f.warning.main, 0.62)), M(f.TableCell, "border", A(Te, Mt(a ? m("palette-divider") : f.divider, 1), 0.88)), M(f.Tooltip, "bg", A(Mt, a ? m("palette-grey-700") : f.grey[700], 0.92)); } if (f.mode === "dark") { - j(f.Alert, "errorColor", I(Te, a ? m("palette-error-light") : f.error.light, 0.6)), j(f.Alert, "infoColor", I(Te, a ? m("palette-info-light") : f.info.light, 0.6)), j(f.Alert, "successColor", I(Te, a ? m("palette-success-light") : f.success.light, 0.6)), j(f.Alert, "warningColor", I(Te, a ? m("palette-warning-light") : f.warning.light, 0.6)), j(f.Alert, "errorFilledBg", A("palette-error-dark")), j(f.Alert, "infoFilledBg", A("palette-info-dark")), j(f.Alert, "successFilledBg", A("palette-success-dark")), j(f.Alert, "warningFilledBg", A("palette-warning-dark")), j(f.Alert, "errorFilledColor", dt(() => f.getContrastText(f.error.dark))), j(f.Alert, "infoFilledColor", dt(() => f.getContrastText(f.info.dark))), j(f.Alert, "successFilledColor", dt(() => f.getContrastText(f.success.dark))), j(f.Alert, "warningFilledColor", dt(() => f.getContrastText(f.warning.dark))), j(f.Alert, "errorStandardBg", I(Se, a ? m("palette-error-light") : f.error.light, 0.9)), j(f.Alert, "infoStandardBg", I(Se, a ? m("palette-info-light") : f.info.light, 0.9)), j(f.Alert, "successStandardBg", I(Se, a ? m("palette-success-light") : f.success.light, 0.9)), j(f.Alert, "warningStandardBg", I(Se, a ? m("palette-warning-light") : f.warning.light, 0.9)), j(f.Alert, "errorIconColor", A("palette-error-main")), j(f.Alert, "infoIconColor", A("palette-info-main")), j(f.Alert, "successIconColor", A("palette-success-main")), j(f.Alert, "warningIconColor", A("palette-warning-main")), j(f.AppBar, "defaultBg", A("palette-grey-900")), j(f.AppBar, "darkBg", A("palette-background-paper")), j(f.AppBar, "darkColor", A("palette-text-primary")), j(f.Avatar, "defaultBg", A("palette-grey-600")), j(f.Button, "inheritContainedBg", A("palette-grey-800")), j(f.Button, "inheritContainedHoverBg", A("palette-grey-700")), j(f.Chip, "defaultBorder", A("palette-grey-700")), j(f.Chip, "defaultAvatarColor", A("palette-grey-300")), j(f.Chip, "defaultIconColor", A("palette-grey-300")), j(f.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), j(f.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), j(f.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), j(f.LinearProgress, "primaryBg", I(Se, a ? m("palette-primary-main") : f.primary.main, 0.5)), j(f.LinearProgress, "secondaryBg", I(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.5)), j(f.LinearProgress, "errorBg", I(Se, a ? m("palette-error-main") : f.error.main, 0.5)), j(f.LinearProgress, "infoBg", I(Se, a ? m("palette-info-main") : f.info.main, 0.5)), j(f.LinearProgress, "successBg", I(Se, a ? m("palette-success-main") : f.success.main, 0.5)), j(f.LinearProgress, "warningBg", I(Se, a ? m("palette-warning-main") : f.warning.main, 0.5)), j(f.Skeleton, "bg", b ? I(Mt, a ? m("palette-text-primary") : f.text.primary, 0.13) : `rgba(${A("palette-text-primaryChannel")} / 0.13)`), j(f.Slider, "primaryTrack", I(Se, a ? m("palette-primary-main") : f.primary.main, 0.5)), j(f.Slider, "secondaryTrack", I(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.5)), j(f.Slider, "errorTrack", I(Se, a ? m("palette-error-main") : f.error.main, 0.5)), j(f.Slider, "infoTrack", I(Se, a ? m("palette-info-main") : f.info.main, 0.5)), j(f.Slider, "successTrack", I(Se, a ? m("palette-success-main") : f.success.main, 0.5)), j(f.Slider, "warningTrack", I(Se, a ? m("palette-warning-light") : f.warning.main, 0.5)); - const L = b ? I(Te, a ? m("palette-background-default") : f.background.default, 0.985) : pr(f.background.default, 0.98); - j(f.SnackbarContent, "bg", L), j(f.SnackbarContent, "color", dt(() => b ? zl.text.primary : f.getContrastText(L))), j(f.SpeedDialAction, "fabHoverBg", pr(f.background.paper, 0.15)), j(f.StepConnector, "border", A("palette-grey-600")), j(f.StepContent, "border", A("palette-grey-600")), j(f.Switch, "defaultColor", A("palette-grey-300")), j(f.Switch, "defaultDisabledColor", A("palette-grey-600")), j(f.Switch, "primaryDisabledColor", I(Se, a ? m("palette-primary-main") : f.primary.main, 0.55)), j(f.Switch, "secondaryDisabledColor", I(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.55)), j(f.Switch, "errorDisabledColor", I(Se, a ? m("palette-error-main") : f.error.main, 0.55)), j(f.Switch, "infoDisabledColor", I(Se, a ? m("palette-info-main") : f.info.main, 0.55)), j(f.Switch, "successDisabledColor", I(Se, a ? m("palette-success-main") : f.success.main, 0.55)), j(f.Switch, "warningDisabledColor", I(Se, a ? m("palette-warning-light") : f.warning.main, 0.55)), j(f.TableCell, "border", I(Se, Mt(a ? m("palette-divider") : f.divider, 1), 0.68)), j(f.Tooltip, "bg", I(Mt, a ? m("palette-grey-700") : f.grey[700], 0.92)); + M(f.Alert, "errorColor", A(Te, a ? m("palette-error-light") : f.error.light, 0.6)), M(f.Alert, "infoColor", A(Te, a ? m("palette-info-light") : f.info.light, 0.6)), M(f.Alert, "successColor", A(Te, a ? m("palette-success-light") : f.success.light, 0.6)), M(f.Alert, "warningColor", A(Te, a ? m("palette-warning-light") : f.warning.light, 0.6)), M(f.Alert, "errorFilledBg", I("palette-error-dark")), M(f.Alert, "infoFilledBg", I("palette-info-dark")), M(f.Alert, "successFilledBg", I("palette-success-dark")), M(f.Alert, "warningFilledBg", I("palette-warning-dark")), M(f.Alert, "errorFilledColor", dt(() => f.getContrastText(f.error.dark))), M(f.Alert, "infoFilledColor", dt(() => f.getContrastText(f.info.dark))), M(f.Alert, "successFilledColor", dt(() => f.getContrastText(f.success.dark))), M(f.Alert, "warningFilledColor", dt(() => f.getContrastText(f.warning.dark))), M(f.Alert, "errorStandardBg", A(Se, a ? m("palette-error-light") : f.error.light, 0.9)), M(f.Alert, "infoStandardBg", A(Se, a ? m("palette-info-light") : f.info.light, 0.9)), M(f.Alert, "successStandardBg", A(Se, a ? m("palette-success-light") : f.success.light, 0.9)), M(f.Alert, "warningStandardBg", A(Se, a ? m("palette-warning-light") : f.warning.light, 0.9)), M(f.Alert, "errorIconColor", I("palette-error-main")), M(f.Alert, "infoIconColor", I("palette-info-main")), M(f.Alert, "successIconColor", I("palette-success-main")), M(f.Alert, "warningIconColor", I("palette-warning-main")), M(f.AppBar, "defaultBg", I("palette-grey-900")), M(f.AppBar, "darkBg", I("palette-background-paper")), M(f.AppBar, "darkColor", I("palette-text-primary")), M(f.Avatar, "defaultBg", I("palette-grey-600")), M(f.Button, "inheritContainedBg", I("palette-grey-800")), M(f.Button, "inheritContainedHoverBg", I("palette-grey-700")), M(f.Chip, "defaultBorder", I("palette-grey-700")), M(f.Chip, "defaultAvatarColor", I("palette-grey-300")), M(f.Chip, "defaultIconColor", I("palette-grey-300")), M(f.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), M(f.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), M(f.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), M(f.LinearProgress, "primaryBg", A(Se, a ? m("palette-primary-main") : f.primary.main, 0.5)), M(f.LinearProgress, "secondaryBg", A(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.5)), M(f.LinearProgress, "errorBg", A(Se, a ? m("palette-error-main") : f.error.main, 0.5)), M(f.LinearProgress, "infoBg", A(Se, a ? m("palette-info-main") : f.info.main, 0.5)), M(f.LinearProgress, "successBg", A(Se, a ? m("palette-success-main") : f.success.main, 0.5)), M(f.LinearProgress, "warningBg", A(Se, a ? m("palette-warning-main") : f.warning.main, 0.5)), M(f.Skeleton, "bg", b ? A(Mt, a ? m("palette-text-primary") : f.text.primary, 0.13) : `rgba(${I("palette-text-primaryChannel")} / 0.13)`), M(f.Slider, "primaryTrack", A(Se, a ? m("palette-primary-main") : f.primary.main, 0.5)), M(f.Slider, "secondaryTrack", A(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.5)), M(f.Slider, "errorTrack", A(Se, a ? m("palette-error-main") : f.error.main, 0.5)), M(f.Slider, "infoTrack", A(Se, a ? m("palette-info-main") : f.info.main, 0.5)), M(f.Slider, "successTrack", A(Se, a ? m("palette-success-main") : f.success.main, 0.5)), M(f.Slider, "warningTrack", A(Se, a ? m("palette-warning-light") : f.warning.main, 0.5)); + const j = b ? A(Te, a ? m("palette-background-default") : f.background.default, 0.985) : fr(f.background.default, 0.98); + M(f.SnackbarContent, "bg", j), M(f.SnackbarContent, "color", dt(() => b ? zl.text.primary : f.getContrastText(j))), M(f.SpeedDialAction, "fabHoverBg", fr(f.background.paper, 0.15)), M(f.StepConnector, "border", I("palette-grey-600")), M(f.StepContent, "border", I("palette-grey-600")), M(f.Switch, "defaultColor", I("palette-grey-300")), M(f.Switch, "defaultDisabledColor", I("palette-grey-600")), M(f.Switch, "primaryDisabledColor", A(Se, a ? m("palette-primary-main") : f.primary.main, 0.55)), M(f.Switch, "secondaryDisabledColor", A(Se, a ? m("palette-secondary-main") : f.secondary.main, 0.55)), M(f.Switch, "errorDisabledColor", A(Se, a ? m("palette-error-main") : f.error.main, 0.55)), M(f.Switch, "infoDisabledColor", A(Se, a ? m("palette-info-main") : f.info.main, 0.55)), M(f.Switch, "successDisabledColor", A(Se, a ? m("palette-success-main") : f.success.main, 0.55)), M(f.Switch, "warningDisabledColor", A(Se, a ? m("palette-warning-light") : f.warning.main, 0.55)), M(f.TableCell, "border", A(Se, Mt(a ? m("palette-divider") : f.divider, 1), 0.68)), M(f.Tooltip, "bg", A(Mt, a ? m("palette-grey-700") : f.grey[700], 0.92)); } - a || (Et(f.background, "default"), Et(f.background, "paper"), Et(f.common, "background"), Et(f.common, "onBackground"), Et(f, "divider")), Object.keys(f).forEach((L) => { - const M = f[L]; - L !== "tonalOffset" && !a && M && typeof M == "object" && (M.main && j(f[L], "mainChannel", An(In(M.main))), M.light && j(f[L], "lightChannel", An(In(M.light))), M.dark && j(f[L], "darkChannel", An(In(M.dark))), M.contrastText && j(f[L], "contrastTextChannel", An(In(M.contrastText))), L === "text" && (Et(f[L], "primary"), Et(f[L], "secondary")), L === "action" && (M.active && Et(f[L], "active"), M.selected && Et(f[L], "selected"))); + a || (Et(f.background, "default"), Et(f.background, "paper"), Et(f.common, "background"), Et(f.common, "onBackground"), Et(f, "divider")), Object.keys(f).forEach((j) => { + const $ = f[j]; + j !== "tonalOffset" && !a && $ && typeof $ == "object" && ($.main && M(f[j], "mainChannel", An(In($.main))), $.light && M(f[j], "lightChannel", An(In($.light))), $.dark && M(f[j], "darkChannel", An(In($.dark))), $.contrastText && M(f[j], "contrastTextChannel", An(In($.contrastText))), j === "text" && (Et(f[j], "primary"), Et(f[j], "secondary")), j === "action" && ($.active && Et(f[j], "active"), $.selected && Et(f[j], "selected"))); }); - }), C = t.reduce((F, f) => Ve(F, f), C); + }), w = t.reduce((z, f) => Ve(z, f), w); const k = { prefix: i, disableCssColorScheme: s, shouldSkipGeneratingVar: l, - getSelector: Th(C), + getSelector: Th(w), enableContrastVars: a }, { - vars: D, + vars: L, generateThemeVars: H, generateStyleSheets: G - } = Gm(C, k); - return C.vars = D, Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([F, f]) => { - C[F] = f; - }), C.generateThemeVars = H, C.generateStyleSheets = G, C.generateSpacing = function() { - return Nl(d.spacing, Ds(this)); - }, C.getColorSchemeSelector = Ym(c), C.spacing = C.generateSpacing(), C.shouldSkipGeneratingVar = l, C.unstable_sxConfig = { - ...er, + } = Gm(w, k); + return w.vars = L, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([z, f]) => { + w[z] = f; + }), w.generateThemeVars = H, w.generateStyleSheets = G, w.generateSpacing = function() { + return Nl(d.spacing, Bs(this)); + }, w.getColorSchemeSelector = Ym(c), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = { + ...tr, ...d == null ? void 0 : d.unstable_sxConfig - }, C.unstable_sx = function(f) { + }, w.unstable_sx = function(f) { return mn({ sx: f, theme: this }); - }, C.toRuntimeSource = Hl, C; + }, w.toRuntimeSource = Hl, w; } function fa(e, t, n) { e.colorSchemes && n && (e.colorSchemes[t] = { ...n !== !0 && n, - palette: Vs({ + palette: zs({ ...n === !0 ? {} : n.palette, mode: t }) // cast type to skip module augmentation test }); } -function wh(e = {}, ...t) { +function Ch(e = {}, ...t) { const { palette: n, cssVariables: r = !1, @@ -7226,12 +7226,12 @@ function wh(e = {}, ...t) { }; if (r === !1) { if (!("colorSchemes" in e)) - return ls(e, ...t); + return cs(e, ...t); let d = n; "palette" in e || u[l] && (u[l] !== !0 ? d = u[l].palette : l === "dark" && (d = { mode: "dark" })); - const h = ls({ + const h = cs({ ...e, palette: d }, ...t); @@ -7243,24 +7243,24 @@ function wh(e = {}, ...t) { palette: h.palette }, fa(h, "light", u.light)), h; } - return !n && !("light" in u) && l === "light" && (u.light = !0), Ch({ + return !n && !("light" in u) && l === "light" && (u.light = !0), wh({ ...a, colorSchemes: u, defaultColorScheme: l, ...typeof r != "boolean" && r }, ...t); } -const zs = wh(); +const Ws = Ch(); function po() { - const e = kl(zs); - return process.env.NODE_ENV !== "production" && x.useDebugValue(e), e[Ps] || e; + const e = kl(Ws); + return process.env.NODE_ENV !== "production" && x.useDebugValue(e), e[_s] || e; } function Yl(e) { return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"; } -const Ye = (e) => Yl(e) && e !== "classes", ee = Cm({ - themeId: Ps, - defaultTheme: zs, +const Ye = (e) => Yl(e) && e !== "classes", ee = wm({ + themeId: _s, + defaultTheme: Ws, rootShouldForwardProp: Ye }); function ma(...e) { @@ -7272,8 +7272,8 @@ function ma(...e) { function Kl(e) { return /* @__PURE__ */ N.jsx($l, { ...e, - defaultTheme: zs, - themeId: Ps + defaultTheme: Ws, + themeId: _s }); } process.env.NODE_ENV !== "production" && (Kl.propTypes = { @@ -7421,7 +7421,7 @@ const Ih = (e) => { } ] }; -})), Ir = /* @__PURE__ */ x.forwardRef(function(t, n) { +})), Nr = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiSvgIcon" @@ -7465,7 +7465,7 @@ const Ih = (e) => { }) : null] }); }); -process.env.NODE_ENV !== "production" && (Ir.propTypes = { +process.env.NODE_ENV !== "production" && (Nr.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -7537,17 +7537,17 @@ process.env.NODE_ENV !== "production" && (Ir.propTypes = { */ viewBox: o.string }); -Ir.muiName = "SvgIcon"; -function nr(e, t) { +Nr.muiName = "SvgIcon"; +function rr(e, t) { function n(r, s) { - return /* @__PURE__ */ N.jsx(Ir, { + return /* @__PURE__ */ N.jsx(Nr, { "data-testid": process.env.NODE_ENV !== "production" ? `${t}Icon` : void 0, ref: s, ...r, children: e }); } - return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = Ir.muiName, /* @__PURE__ */ x.memo(/* @__PURE__ */ x.forwardRef(n)); + return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = Nr.muiName, /* @__PURE__ */ x.memo(/* @__PURE__ */ x.forwardRef(n)); } function Xl(e, t = 166) { let n; @@ -7564,13 +7564,13 @@ function Xl(e, t = 166) { function nt(e) { return e && e.ownerDocument || document; } -function Ct(e) { +function wt(e) { return nt(e).defaultView || window; } function ha(e, t) { typeof e == "function" ? e(t) : e && (e.current = t); } -function us(e) { +function ds(e) { const { controlled: t, default: n, @@ -7701,13 +7701,13 @@ function Ql(e, t) { } return n; } -function ds(e, t) { - return ds = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) { +function ps(e, t) { + return ps = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) { return n.__proto__ = r, n; - }, ds(e, t); + }, ps(e, t); } function Zl(e, t) { - e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ds(e, t); + e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ps(e, t); } const ya = { disabled: !1 @@ -7729,10 +7729,10 @@ process.env.NODE_ENV !== "production" && o.oneOfType([o.string, o.shape({ exitDone: o.string, exitActive: o.string })]); -const Nr = at.createContext(null); +const kr = at.createContext(null); var Mh = function(t) { return t.scrollTop; -}, Nn = "unmounted", Dt = "exited", Bt = "entering", ln = "entered", ps = "exiting", gt = /* @__PURE__ */ function(e) { +}, Nn = "unmounted", Dt = "exited", Bt = "entering", ln = "entered", fs = "exiting", gt = /* @__PURE__ */ function(e) { Zl(t, e); function t(r, s) { var i; @@ -7755,7 +7755,7 @@ var Mh = function(t) { var i = null; if (s !== this.props) { var a = this.state.status; - this.props.in ? a !== Bt && a !== ln && (i = Bt) : (a === Bt || a === ln) && (i = ps); + this.props.in ? a !== Bt && a !== ln && (i = Bt) : (a === Bt || a === ln) && (i = fs); } this.updateStatus(!1, i); }, n.componentWillUnmount = function() { @@ -7771,7 +7771,7 @@ var Mh = function(t) { if (s === void 0 && (s = !1), i !== null) if (this.cancelNextCallback(), i === Bt) { if (this.props.unmountOnExit || this.props.mountOnEnter) { - var a = this.props.nodeRef ? this.props.nodeRef.current : lr.findDOMNode(this); + var a = this.props.nodeRef ? this.props.nodeRef.current : cr.findDOMNode(this); a && Mh(a); } this.performEnter(s); @@ -7781,7 +7781,7 @@ var Mh = function(t) { status: Nn }); }, n.performEnter = function(s) { - var i = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [lr.findDOMNode(this), l], u = c[0], d = c[1], h = this.getTimeouts(), v = l ? h.appear : h.enter; + var i = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [cr.findDOMNode(this), l], u = c[0], d = c[1], h = this.getTimeouts(), v = l ? h.appear : h.enter; if (!s && !a || ya.disabled) { this.safeSetState({ status: ln @@ -7802,7 +7802,7 @@ var Mh = function(t) { }); }); }, n.performExit = function() { - var s = this, i = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : lr.findDOMNode(this); + var s = this, i = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : cr.findDOMNode(this); if (!i || ya.disabled) { this.safeSetState({ status: Dt @@ -7812,7 +7812,7 @@ var Mh = function(t) { return; } this.props.onExit(l), this.safeSetState({ - status: ps + status: fs }, function() { s.props.onExiting(l), s.onTransitionEnd(a.exit, function() { s.safeSetState({ @@ -7835,7 +7835,7 @@ var Mh = function(t) { }, this.nextCallback; }, n.onTransitionEnd = function(s, i) { this.setNextCallback(i); - var a = this.props.nodeRef ? this.props.nodeRef.current : lr.findDOMNode(this), l = s == null && !this.props.addEndListener; + var a = this.props.nodeRef ? this.props.nodeRef.current : cr.findDOMNode(this), l = s == null && !this.props.addEndListener; if (!a || l) { setTimeout(this.nextCallback, 0); return; @@ -7854,13 +7854,13 @@ var Mh = function(t) { var l = Ql(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); return ( // allows for nested Transitions - /* @__PURE__ */ at.createElement(Nr.Provider, { + /* @__PURE__ */ at.createElement(kr.Provider, { value: null }, typeof a == "function" ? a(s, l) : at.cloneElement(at.Children.only(a), l)) ); }, t; }(at.Component); -gt.contextType = Nr; +gt.contextType = kr; gt.propTypes = process.env.NODE_ENV !== "production" ? { /** * A React reference to DOM element that need to transition: @@ -8050,14 +8050,14 @@ gt.UNMOUNTED = Nn; gt.EXITED = Dt; gt.ENTERING = Bt; gt.ENTERED = ln; -gt.EXITING = ps; +gt.EXITING = fs; function jh(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } -function Ws(e, t) { +function Hs(e, t) { var n = function(i) { - return t && yr(i) ? t(i) : i; + return t && gr(i) ? t(i) : i; }, r = /* @__PURE__ */ Object.create(null); return e && Jc.map(e, function(s) { return s; @@ -8090,8 +8090,8 @@ function Vt(e, t, n) { return n[t] != null ? n[t] : e.props[t]; } function Dh(e, t) { - return Ws(e.children, function(n) { - return gr(n, { + return Hs(e.children, function(n) { + return br(n, { onExited: t.bind(null, n), in: !0, appear: Vt(n, "appear", e), @@ -8101,19 +8101,19 @@ function Dh(e, t) { }); } function Bh(e, t, n) { - var r = Ws(e.children), s = Lh(t, r); + var r = Hs(e.children), s = Lh(t, r); return Object.keys(s).forEach(function(i) { var a = s[i]; - if (yr(a)) { - var l = i in t, c = i in r, u = t[i], d = yr(u) && !u.props.in; - c && (!l || d) ? s[i] = gr(a, { + if (gr(a)) { + var l = i in t, c = i in r, u = t[i], d = gr(u) && !u.props.in; + c && (!l || d) ? s[i] = br(a, { onExited: n.bind(null, a), in: !0, exit: Vt(a, "exit", e), enter: Vt(a, "enter", e) - }) : !c && l && !d ? s[i] = gr(a, { + }) : !c && l && !d ? s[i] = br(a, { in: !1 - }) : c && l && yr(u) && (s[i] = gr(a, { + }) : c && l && gr(u) && (s[i] = br(a, { onExited: n.bind(null, a), in: u.props.in, exit: Vt(a, "exit", e), @@ -8131,7 +8131,7 @@ var Fh = Object.values || function(e) { childFactory: function(t) { return t; } -}, Hs = /* @__PURE__ */ function(e) { +}, qs = /* @__PURE__ */ function(e) { Zl(t, e); function t(r, s) { var i; @@ -8161,7 +8161,7 @@ var Fh = Object.values || function(e) { firstRender: !1 }; }, n.handleExited = function(s, i) { - var a = Ws(this.props.children); + var a = Hs(this.props.children); s.key in a || (s.props.onExited && s.props.onExited(i), this.mounted && this.setState(function(l) { var c = Cr({}, l.children); return delete c[s.key], { @@ -8170,14 +8170,14 @@ var Fh = Object.values || function(e) { })); }, n.render = function() { var s = this.props, i = s.component, a = s.childFactory, l = Ql(s, ["component", "childFactory"]), c = this.state.contextValue, u = Fh(this.state.children).map(a); - return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ at.createElement(Nr.Provider, { + return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ at.createElement(kr.Provider, { value: c - }, u) : /* @__PURE__ */ at.createElement(Nr.Provider, { + }, u) : /* @__PURE__ */ at.createElement(kr.Provider, { value: c }, /* @__PURE__ */ at.createElement(i, l, u)); }, t; }(at.Component); -Hs.propTypes = process.env.NODE_ENV !== "production" ? { +qs.propTypes = process.env.NODE_ENV !== "production" ? { /** * `` renders a `
` by default. You can change this * behavior by providing a `component` prop. @@ -8230,7 +8230,7 @@ Hs.propTypes = process.env.NODE_ENV !== "production" ? { */ childFactory: o.func } : {}; -Hs.defaultProps = Uh; +qs.defaultProps = Uh; const ga = {}; function ec(e, t) { const n = x.useRef(ga); @@ -8240,7 +8240,7 @@ const Vh = []; function zh(e) { x.useEffect(e, Vh); } -class qs { +class Gs { constructor() { En(this, "currentId", null); En(this, "clear", () => { @@ -8249,7 +8249,7 @@ class qs { En(this, "disposeEffect", () => this.clear); } static create() { - return new qs(); + return new Gs(); } /** * Executes `fn` after `delay`, clearing any previously scheduled call. @@ -8261,7 +8261,7 @@ class qs { } } function tc() { - const e = ec(qs.create).current; + const e = ec(Gs.create).current; return zh(e.disposeEffect), e; } function Wh(e) { @@ -8281,7 +8281,7 @@ function Hh(e, t, n, r, s) { let l; return typeof i == "function" && !Wh(i) && (l = "Did you accidentally provide a plain function component instead?"), i === x.Fragment && (l = "Did you accidentally provide a React.Fragment instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`) : null; } -const Gs = Xt(o.elementType, Hh), nc = (e) => e.scrollTop; +const Ys = Xt(o.elementType, Hh), nc = (e) => e.scrollTop; function tt(e, t) { return (n) => { if (t) { @@ -8298,7 +8298,7 @@ function rc(e, t, n, r, s, i) { ...i } : a; } -function kr(e, t) { +function $r(e, t) { const { timeout: n, easing: r, @@ -8310,11 +8310,11 @@ function kr(e, t) { delay: s.transitionDelay }; } -function $r(e) { +function Mr(e) { return typeof e == "string"; } function oc(e, t, n) { - return e === void 0 || $r(e) ? t : { + return e === void 0 || Mr(e) ? t : { ...t, ownerState: { ...t.ownerState, @@ -8383,7 +8383,7 @@ function ac(e) { internalRef: u.ref }; } -function Ce(e, t) { +function we(e, t) { const { className: n, elementType: r, @@ -8448,12 +8448,12 @@ function lc(e, t, n, r) { function cc(e, t, n, r) { return e[t] === void 0 ? null : lc(e, t, n, r); } -function fs() { +function ms() { return null; } cc.isRequired = lc; -fs.isRequired = fs; -const uc = process.env.NODE_ENV === "production" ? fs : cc; +ms.isRequired = ms; +const uc = process.env.NODE_ENV === "production" ? ms : cc; function Gh(e) { return le("MuiPaper", e); } @@ -8539,7 +8539,7 @@ const Yh = (e) => { "--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l] }, ...!s.vars && s.palette.mode === "dark" && { - "--Paper-overlay": `linear-gradient(${Ar("#fff", cs(l))}, ${Ar("#fff", cs(l))})` + "--Paper-overlay": `linear-gradient(${Ir("#fff", us(l))}, ${Ir("#fff", us(l))})` } }, ...d.style @@ -8609,7 +8609,7 @@ function va(e) { } return !1; } -class Mr { +class jr { constructor() { En(this, "mountEffect", () => { this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve()); @@ -8624,10 +8624,10 @@ class Mr { /** If the ripple component has been mounted */ /** React state hook setter */ static create() { - return new Mr(); + return new jr(); } static use() { - const t = ec(Mr.create).current, [n, r] = x.useState(!1); + const t = ec(jr.create).current, [n, r] = x.useState(!1); return t.shouldMount = n, t.setShouldMount = r, x.useEffect(t.mountEffect, [n]), t; } mount() { @@ -8654,7 +8654,7 @@ class Mr { } } function Xh() { - return Mr.use(); + return jr.use(); } function Jh() { let e, t; @@ -8730,7 +8730,7 @@ process.env.NODE_ENV !== "production" && (dc.propTypes = { */ timeout: o.number.isRequired }); -const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ms = 550, Qh = 80, Zh = Jn` +const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), hs = 550, Qh = 80, Zh = Qn` 0% { transform: scale(0); opacity: 0.1; @@ -8740,7 +8740,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa transform: scale(1); opacity: 0.3; } -`, ey = Jn` +`, ey = Qn` 0% { opacity: 1; } @@ -8748,7 +8748,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa 100% { opacity: 0; } -`, ty = Jn` +`, ty = Qn` 0% { transform: scale(1); } @@ -8784,7 +8784,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa opacity: 0.3; transform: scale(1); animation-name: ${Zh}; - animation-duration: ${ms}ms; + animation-duration: ${hs}ms; animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut}; @@ -8808,7 +8808,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa & .${Ze.childLeaving} { opacity: 0; animation-name: ${ey}; - animation-duration: ${ms}ms; + animation-duration: ${hs}ms; animation-timing-function: ${({ theme: e }) => e.transitions.easing.easeInOut}; @@ -8843,9 +8843,9 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa const v = x.useRef(!1), m = tc(), g = x.useRef(null), p = x.useRef(null), y = x.useCallback((b) => { const { pulsate: E, - rippleX: C, + rippleX: w, rippleY: k, - rippleSize: D, + rippleSize: L, cb: H } = b; u((G) => [...G, /* @__PURE__ */ N.jsx(ry, { @@ -8857,17 +8857,17 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa childLeaving: ie(i.childLeaving, Ze.childLeaving), childPulsate: ie(i.childPulsate, Ze.childPulsate) }, - timeout: ms, + timeout: hs, pulsate: E, - rippleX: C, + rippleX: w, rippleY: k, - rippleSize: D + rippleSize: L }, d.current)]), d.current += 1, h.current = H; - }, [i]), S = x.useCallback((b = {}, E = {}, C = () => { + }, [i]), S = x.useCallback((b = {}, E = {}, w = () => { }) => { const { pulsate: k = !1, - center: D = s || E.pulsate, + center: L = s || E.pulsate, fakeElement: H = !1 // For test purposes } = E; @@ -8876,44 +8876,44 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa return; } (b == null ? void 0 : b.type) === "touchstart" && (v.current = !0); - const G = H ? null : p.current, F = G ? G.getBoundingClientRect() : { + const G = H ? null : p.current, z = G ? G.getBoundingClientRect() : { width: 0, height: 0, left: 0, top: 0 }; - let f, A, I; - if (D || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches) - f = Math.round(F.width / 2), A = Math.round(F.height / 2); + let f, I, A; + if (L || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches) + f = Math.round(z.width / 2), I = Math.round(z.height / 2); else { const { - clientX: L, - clientY: M + clientX: j, + clientY: $ } = b.touches && b.touches.length > 0 ? b.touches[0] : b; - f = Math.round(L - F.left), A = Math.round(M - F.top); + f = Math.round(j - z.left), I = Math.round($ - z.top); } - if (D) - I = Math.sqrt((2 * F.width ** 2 + F.height ** 2) / 3), I % 2 === 0 && (I += 1); + if (L) + A = Math.sqrt((2 * z.width ** 2 + z.height ** 2) / 3), A % 2 === 0 && (A += 1); else { - const L = Math.max(Math.abs((G ? G.clientWidth : 0) - f), f) * 2 + 2, M = Math.max(Math.abs((G ? G.clientHeight : 0) - A), A) * 2 + 2; - I = Math.sqrt(L ** 2 + M ** 2); + const j = Math.max(Math.abs((G ? G.clientWidth : 0) - f), f) * 2 + 2, $ = Math.max(Math.abs((G ? G.clientHeight : 0) - I), I) * 2 + 2; + A = Math.sqrt(j ** 2 + $ ** 2); } b != null && b.touches ? g.current === null && (g.current = () => { y({ pulsate: k, rippleX: f, - rippleY: A, - rippleSize: I, - cb: C + rippleY: I, + rippleSize: A, + cb: w }); }, m.start(Qh, () => { g.current && (g.current(), g.current = null); })) : y({ pulsate: k, rippleX: f, - rippleY: A, - rippleSize: I, - cb: C + rippleY: I, + rippleSize: A, + cb: w }); }, [s, y, m]), R = x.useCallback(() => { S({}, { @@ -8926,7 +8926,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa }); return; } - g.current = null, u((C) => C.length > 0 ? C.slice(1) : C), h.current = E; + g.current = null, u((w) => w.length > 0 ? w.slice(1) : w), h.current = E; }, [m]); return x.useImperativeHandle(n, () => ({ pulsate: R, @@ -8936,7 +8936,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa className: ie(Ze.root, i.root, a), ref: p, ...l, - children: /* @__PURE__ */ N.jsx(Hs, { + children: /* @__PURE__ */ N.jsx(qs, { component: null, exit: !0, children: c @@ -9013,7 +9013,7 @@ const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) = "@media print": { colorAdjust: "exact" } -}), rr = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), or = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiButtonBase" @@ -9036,55 +9036,55 @@ const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) = onFocus: T, onFocusVisible: b, onKeyDown: E, - onKeyUp: C, + onKeyUp: w, onMouseDown: k, - onMouseLeave: D, + onMouseLeave: L, onMouseUp: H, onTouchEnd: G, - onTouchMove: F, + onTouchMove: z, onTouchStart: f, - tabIndex: A = 0, - TouchRippleProps: I, - touchRippleRef: L, - type: M, + tabIndex: I = 0, + TouchRippleProps: A, + touchRippleRef: j, + type: $, ...Y - } = r, Q = x.useRef(null), X = Xh(), O = We(X.ref, L), [P, q] = x.useState(!1); - u && P && q(!1), x.useImperativeHandle(s, () => ({ + } = r, Z = x.useRef(null), X = Xh(), O = We(X.ref, j), [_, q] = x.useState(!1); + u && _ && q(!1), x.useImperativeHandle(s, () => ({ focusVisible: () => { - q(!0), Q.current.focus(); + q(!0), Z.current.focus(); } }), []); - const B = X.shouldMount && !d && !u; + const F = X.shouldMount && !d && !u; x.useEffect(() => { - P && v && !d && X.pulsate(); - }, [d, v, P, X]); - const J = St(X, "start", k, h), $ = St(X, "stop", S, h), V = St(X, "stop", R, h), W = St(X, "stop", H, h), U = St(X, "stop", (se) => { - P && se.preventDefault(), D && D(se); - }, h), K = St(X, "start", f, h), z = St(X, "stop", G, h), Z = St(X, "stop", F, h), _ = St(X, "stop", (se) => { + _ && v && !d && X.pulsate(); + }, [d, v, _, X]); + const J = St(X, "start", k, h), W = St(X, "stop", S, h), B = St(X, "stop", R, h), V = St(X, "stop", H, h), U = St(X, "stop", (se) => { + _ && se.preventDefault(), L && L(se); + }, h), K = St(X, "start", f, h), D = St(X, "stop", G, h), Q = St(X, "stop", z, h), P = St(X, "stop", (se) => { va(se.target) || q(!1), p && p(se); }, !1), ae = Wt((se) => { - Q.current || (Q.current = se.currentTarget), va(se.target) && (q(!0), b && b(se)), T && T(se); + Z.current || (Z.current = se.currentTarget), va(se.target) && (q(!0), b && b(se)), T && T(se); }), ne = () => { - const se = Q.current; + const se = Z.current; return se ? se.tagName === "BUTTON" ? !1 : !(se.tagName === "A" && se.href) : c && c !== "button"; }, he = Wt((se) => { - v && !se.repeat && P && se.key === " " && X.stop(se, () => { + v && !se.repeat && _ && se.key === " " && X.stop(se, () => { X.start(se); }), se.target === se.currentTarget && ne() && se.key === " " && se.preventDefault(), E && E(se), se.target === se.currentTarget && ne() && se.key === "Enter" && !u && (se.preventDefault(), y && y(se)); }), Le = Wt((se) => { - v && se.key === " " && P && !se.defaultPrevented && X.stop(se, () => { + v && se.key === " " && _ && !se.defaultPrevented && X.stop(se, () => { X.pulsate(se); - }), C && C(se), y && se.target === se.currentTarget && ne() && se.key === " " && !se.defaultPrevented && !u && y(se); + }), w && w(se), y && se.target === se.currentTarget && ne() && se.key === " " && !se.defaultPrevented && !u && y(se); }); let Ne = c; Ne === "button" && (Y.href || Y.to) && (Ne = g); const ke = {}; if (Ne === "button") { const se = !!Y.formAction; - ke.type = M === void 0 && !se ? "button" : M, ke.disabled = u; + ke.type = $ === void 0 && !se ? "button" : $, ke.disabled = u; } else !Y.href && !Y.to && (ke.role = "button"), u && (ke["aria-disabled"] = u); - const Ke = We(n, Q), ot = { + const Ke = We(n, Z), ot = { ...r, centerRipple: i, component: c, @@ -9092,42 +9092,42 @@ const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) = disableRipple: d, disableTouchRipple: h, focusRipple: v, - tabIndex: A, - focusVisible: P + tabIndex: I, + focusVisible: _ }, _e = iy(ot); return /* @__PURE__ */ N.jsxs(ay, { as: Ne, className: ie(_e.root, l), ownerState: ot, - onBlur: _, + onBlur: P, onClick: y, - onContextMenu: $, + onContextMenu: W, onFocus: ae, onKeyDown: he, onKeyUp: Le, onMouseDown: J, onMouseLeave: U, - onMouseUp: W, - onDragLeave: V, - onTouchEnd: z, - onTouchMove: Z, + onMouseUp: V, + onDragLeave: B, + onTouchEnd: D, + onTouchMove: Q, onTouchStart: K, ref: Ke, - tabIndex: u ? -1 : A, - type: M, + tabIndex: u ? -1 : I, + type: $, ...ke, ...Y, - children: [a, B ? /* @__PURE__ */ N.jsx(pc, { + children: [a, F ? /* @__PURE__ */ N.jsx(pc, { ref: O, center: i, - ...I + ...A }) : null] }); }); function St(e, t, n, r = !1) { return Wt((s) => (n && n(s), r || e[t](s), !0)); } -process.env.NODE_ENV !== "production" && (rr.propTypes = { +process.env.NODE_ENV !== "production" && (or.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9159,7 +9159,7 @@ process.env.NODE_ENV !== "production" && (rr.propTypes = { * The component used for the root node. * Either a string to use a HTML element or a component. */ - component: Gs, + component: Ys, /** * If `true`, the component is disabled. * @default false @@ -9307,7 +9307,7 @@ function uy(e) { return le("MuiCircularProgress", e); } ue("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]); -const it = 44, hs = Jn` +const it = 44, ys = Qn` 0% { transform: rotate(0deg); } @@ -9315,7 +9315,7 @@ const it = 44, hs = Jn` 100% { transform: rotate(360deg); } -`, ys = Jn` +`, gs = Qn` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -9330,10 +9330,10 @@ const it = 44, hs = Jn` stroke-dasharray: 1px, 200px; stroke-dashoffset: -126px; } -`, dy = typeof hs != "string" ? js` - animation: ${hs} 1.4s linear infinite; - ` : null, py = typeof ys != "string" ? js` - animation: ${ys} 1.4s ease-in-out infinite; +`, dy = typeof ys != "string" ? Ls` + animation: ${ys} 1.4s linear infinite; + ` : null, py = typeof gs != "string" ? Ls` + animation: ${gs} 1.4s ease-in-out infinite; ` : null, fy = (e) => { const { classes: t, @@ -9372,7 +9372,7 @@ const it = 44, hs = Jn` variant: "indeterminate" }, style: dy || { - animation: `${hs} 1.4s linear infinite` + animation: `${ys} 1.4s linear infinite` } }, ...Object.entries(e.palette).filter(lt()).map(([t]) => ({ props: { @@ -9424,7 +9424,7 @@ const it = 44, hs = Jn` }) => t.variant === "indeterminate" && !t.disableShrink, style: py || { // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used. - animation: `${ys} 1.4s ease-in-out infinite` + animation: `${gs} 1.4s ease-in-out infinite` } }] }))), gy = ee("circle", { @@ -9435,7 +9435,7 @@ const it = 44, hs = Jn` }) => ({ stroke: "currentColor", opacity: (e.vars || e).palette.action.activatedOpacity -}))), Ys = /* @__PURE__ */ x.forwardRef(function(t, n) { +}))), Ks = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiCircularProgress" @@ -9503,7 +9503,7 @@ const it = 44, hs = Jn` }) }); }); -process.env.NODE_ENV !== "production" && (Ys.propTypes = { +process.env.NODE_ENV !== "production" && (Ks.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9585,7 +9585,7 @@ const Ea = ue("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar loadingWrapper: ["loadingWrapper"] }; return de(l, by, t); -}, Ey = ee(rr, { +}, Ey = ee(or, { name: "MuiIconButton", slot: "Root", overridesResolver: (e, t) => { @@ -9734,7 +9734,7 @@ const Ea = ue("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar loading: v = null, loadingIndicator: m, ...g - } = r, p = tr(h), y = m ?? /* @__PURE__ */ N.jsx(Ys, { + } = r, p = nr(h), y = m ?? /* @__PURE__ */ N.jsx(Ks, { "aria-labelledby": p, color: "inherit", size: 16 @@ -9875,7 +9875,7 @@ const Sa = ue("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub root: ["root", i, e.align !== "inherit" && `align${re(t)}`, n && "gutterBottom", r && "noWrap", s && "paragraph"] }; return de(l, Ty, a); -}, Cy = ee("span", { +}, wy = ee("span", { name: "MuiTypography", slot: "Root", overridesResolver: (e, t) => { @@ -9997,7 +9997,7 @@ const Sa = ue("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub variant: m, variantMapping: g }, S = u || (v ? "p" : g[m] || Ta[m]) || "span", R = Ry(y); - return /* @__PURE__ */ N.jsx(Cy, { + return /* @__PURE__ */ N.jsx(wy, { as: S, ref: n, className: ie(R.root, c), @@ -10114,13 +10114,13 @@ function xa(e, t) { } return !1; } -function Vn(e, t, n, r, s) { +function zn(e, t, n, r, s) { if (process.env.NODE_ENV === "production") return null; const i = e[t], a = s || t; return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null; } -function wy(e) { +function Cy(e) { var h; const { elementType: t, @@ -10145,19 +10145,19 @@ function mc() { // eslint-disable-next-line mui/consistent-production-guard process.env.NODE_ENV === "test"); } -function or(e) { +function sr(e) { var t; return parseInt(x.version, 10) >= 19 ? ((t = e == null ? void 0 : e.props) == null ? void 0 : t.ref) || null : (e == null ? void 0 : e.ref) || null; } function Py(e) { return typeof e == "function" ? e() : e; } -const jr = /* @__PURE__ */ x.forwardRef(function(t, n) { +const Lr = /* @__PURE__ */ x.forwardRef(function(t, n) { const { children: r, container: s, disablePortal: i = !1 - } = t, [a, l] = x.useState(null), c = We(/* @__PURE__ */ x.isValidElement(r) ? or(r) : null, n); + } = t, [a, l] = x.useState(null), c = We(/* @__PURE__ */ x.isValidElement(r) ? sr(r) : null, n); if (Rt(() => { i || l(Py(s) || document.body); }, [s, i]), Rt(() => { @@ -10176,7 +10176,7 @@ const jr = /* @__PURE__ */ x.forwardRef(function(t, n) { } return a && /* @__PURE__ */ tu.createPortal(r, a); }); -process.env.NODE_ENV !== "production" && (jr.propTypes = { +process.env.NODE_ENV !== "production" && (Lr.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -10195,15 +10195,15 @@ process.env.NODE_ENV !== "production" && (jr.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: o.oneOfType([Vn, o.func]), + container: o.oneOfType([zn, o.func]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ disablePortal: o.bool }); -process.env.NODE_ENV !== "production" && (jr.propTypes = Ul(jr.propTypes)); -function fr(e) { +process.env.NODE_ENV !== "production" && (Lr.propTypes = Ul(Lr.propTypes)); +function mr(e) { return parseInt(e, 10) || 0; } const _y = { @@ -10243,23 +10243,23 @@ const hc = /* @__PURE__ */ x.forwardRef(function(t, n) { const T = d.current, b = m.current; if (!T || !b) return; - const C = Ct(T).getComputedStyle(T); - if (C.width === "0px") + const w = wt(T).getComputedStyle(T); + if (w.width === "0px") return { outerHeightStyle: 0, overflowing: !1 }; - b.style.width = C.width, b.value = T.value || t.placeholder || "x", b.value.slice(-1) === ` + b.style.width = w.width, b.value = T.value || t.placeholder || "x", b.value.slice(-1) === ` ` && (b.value += " "); - const k = C.boxSizing, D = fr(C.paddingBottom) + fr(C.paddingTop), H = fr(C.borderBottomWidth) + fr(C.borderTopWidth), G = b.scrollHeight; + const k = w.boxSizing, L = mr(w.paddingBottom) + mr(w.paddingTop), H = mr(w.borderBottomWidth) + mr(w.borderTopWidth), G = b.scrollHeight; b.value = "x"; - const F = b.scrollHeight; + const z = b.scrollHeight; let f = G; - i && (f = Math.max(Number(i) * F, f)), s && (f = Math.min(Number(s) * F, f)), f = Math.max(f, F); - const A = f + (k === "border-box" ? D + H : 0), I = Math.abs(f - G) <= 1; + i && (f = Math.max(Number(i) * z, f)), s && (f = Math.min(Number(s) * z, f)), f = Math.max(f, z); + const I = f + (k === "border-box" ? L + H : 0), A = Math.abs(f - G) <= 1; return { - outerHeightStyle: A, - overflowing: I + outerHeightStyle: I, + overflowing: A }; }, [s, i, t.placeholder]), p = Wt(() => { const T = d.current, b = g(); @@ -10278,24 +10278,24 @@ const hc = /* @__PURE__ */ x.forwardRef(function(t, n) { const T = Xl(y), b = d == null ? void 0 : d.current; if (!b) return; - const E = Ct(b); + const E = wt(b); E.addEventListener("resize", T); - let C; - return typeof ResizeObserver < "u" && (C = new ResizeObserver(() => { - p() && (C.unobserve(b), cancelAnimationFrame(S.current), y(), S.current = requestAnimationFrame(() => { - C.observe(b); + let w; + return typeof ResizeObserver < "u" && (w = new ResizeObserver(() => { + p() && (w.unobserve(b), cancelAnimationFrame(S.current), y(), S.current = requestAnimationFrame(() => { + w.observe(b); })); - }), C.observe(b)), () => { - T.clear(), cancelAnimationFrame(S.current), E.removeEventListener("resize", T), C && C.disconnect(); + }), w.observe(b)), () => { + T.clear(), cancelAnimationFrame(S.current), E.removeEventListener("resize", T), w && w.disconnect(); }; }, [g, y, p]), Rt(() => { y(); }); const R = (T) => { u || y(); - const b = T.target, E = b.value.length, C = b.value.endsWith(` + const b = T.target, E = b.value.length, w = b.value.endsWith(` `), k = b.selectionStart === E; - C && k && b.setSelectionRange(E, E), r && r(T); + w && k && b.setSelectionRange(E, E), r && r(T); }; return /* @__PURE__ */ N.jsxs(x.Fragment, { children: [/* @__PURE__ */ N.jsx("textarea", { @@ -10362,10 +10362,10 @@ function bn({ }) { return t.reduce((r, s) => (r[s] = e[s], n && typeof e[s] > "u" && (r[s] = n[s]), r), {}); } -const sr = /* @__PURE__ */ x.createContext(void 0); -process.env.NODE_ENV !== "production" && (sr.displayName = "FormControlContext"); +const ir = /* @__PURE__ */ x.createContext(void 0); +process.env.NODE_ENV !== "production" && (ir.displayName = "FormControlContext"); function It() { - return x.useContext(sr); + return x.useContext(ir); } function cn(e) { var n; @@ -10377,7 +10377,7 @@ function cn(e) { function Ra(e) { return e != null && !(Array.isArray(e) && e.length === 0); } -function Lr(e, t = !1) { +function Dr(e, t = !1) { return e && (Ra(e.value) && e.value !== "" || t && Ra(e.defaultValue) && e.defaultValue !== ""); } function Iy(e) { @@ -10387,8 +10387,8 @@ function Ny(e) { return le("MuiInputBase", e); } const hn = ue("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]); -var Ca; -const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { +var wa; +const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { const { ownerState: n } = e; @@ -10544,11 +10544,11 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { ownerState: i }) => !i.disableInjectingGlobalStyles, style: { - animationName: Dr, + animationName: Br, animationDuration: "10ms", "&:-webkit-autofill": { animationDuration: "5000s", - animationName: gs + animationName: bs } } }, { @@ -10578,17 +10578,17 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { } }] }; -})), wa = Ph({ +})), Ca = Ph({ // Keep keyframes non-empty for Emotion production builds. Animation properties are ignored // inside keyframes, avoiding the visible display animation triggered by Chrome 117+. - [`@keyframes ${gs}`]: { + [`@keyframes ${bs}`]: { from: { - animationName: gs + animationName: bs } }, - [`@keyframes ${Dr}`]: { + [`@keyframes ${Br}`]: { from: { - animationName: Dr + animationName: Br } } }), bo = /* @__PURE__ */ x.forwardRef(function(t, n) { @@ -10614,33 +10614,33 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { inputProps: T = {}, inputRef: b, margin: E, - maxRows: C, + maxRows: w, minRows: k, - multiline: D = !1, + multiline: L = !1, name: H, onBlur: G, - onChange: F, + onChange: z, onClick: f, - onFocus: A, - onKeyDown: I, - onKeyUp: L, - placeholder: M, + onFocus: I, + onKeyDown: A, + onKeyUp: j, + placeholder: $, readOnly: Y, - renderSuffix: Q, + renderSuffix: Z, rows: X, size: O, - slotProps: P = {}, + slotProps: _ = {}, slots: q = {}, - startAdornment: B, + startAdornment: F, type: J = "text", - value: $, - ...V - } = r, W = T.value != null ? T.value : $, { + value: W, + ...B + } = r, V = T.value != null ? T.value : W, { current: U - } = x.useRef(W != null), K = x.useRef(), z = x.useCallback((ye) => { + } = x.useRef(V != null), K = x.useRef(), D = x.useCallback((ye) => { process.env.NODE_ENV !== "production" && ye && ye.nodeName !== "INPUT" && !ye.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(` `)); - }, []), Z = We(K, b, T.ref, z), [_, ae] = x.useState(!1), ne = It(); + }, []), Q = We(K, b, T.ref, D), [P, ae] = x.useState(!1), ne = It(); process.env.NODE_ENV !== "production" && x.useEffect(() => { if (ne) return ne.registerEffect(); @@ -10650,27 +10650,27 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { muiFormControl: ne, states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"] }); - he.focused = ne ? ne.focused : _, x.useEffect(() => { - !ne && v && _ && (ae(!1), G && G()); - }, [ne, v, _, G]); + he.focused = ne ? ne.focused : P, x.useEffect(() => { + !ne && v && P && (ae(!1), G && G()); + }, [ne, v, P, G]); const Le = ne && ne.onFilled, Ne = ne && ne.onEmpty, ke = x.useCallback((ye) => { - Lr(ye) ? Le && Le() : Ne && Ne(); + Dr(ye) ? Le && Le() : Ne && Ne(); }, [Le, Ne]); Rt(() => { U && ke({ - value: W + value: V }); - }, [W, ke, U]), Rt(() => { + }, [V, ke, U]), Rt(() => { if (!a) return; const ye = K.current; if (!ye) return; - const vt = nt(ye), st = cn(vt), ar = st == null || st === vt.body || st === vt.documentElement; - ye === st ? ne && ne.onFocus ? ne.onFocus() : ae(!0) : ar && ye.focus(); + const vt = nt(ye), st = cn(vt), lr = st == null || st === vt.body || st === vt.documentElement; + ye === st ? ne && ne.onFocus ? ne.onFocus() : ae(!0) : lr && ye.focus(); }, [a]); const Ke = (ye) => { - A && A(ye), T.onFocus && T.onFocus(ye), ne && ne.onFocus ? ne.onFocus(ye) : ae(!0); + I && I(ye), T.onFocus && T.onFocus(ye), ne && ne.onFocus ? ne.onFocus(ye) : ae(!0); }, ot = (ye) => { G && G(ye), T.onBlur && T.onBlur(ye), ne && ne.onBlur ? ne.onBlur(ye) : ae(!1); }, _e = (ye, ...vt) => { @@ -10682,7 +10682,7 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { value: st.value }); } - T.onChange && T.onChange(ye, ...vt), F && F(ye, ...vt); + T.onChange && T.onChange(ye, ...vt), z && z(ye, ...vt); }; x.useEffect(() => { ke(K.current); @@ -10691,25 +10691,25 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { K.current && ye.currentTarget === ye.target && K.current.focus(), f && f(ye); }; let Nt = R, He = T; - D && Nt === "input" && (X ? (process.env.NODE_ENV !== "production" && (k || C) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), He = { + L && Nt === "input" && (X ? (process.env.NODE_ENV !== "production" && (k || w) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), He = { type: void 0, minRows: X, maxRows: X, ...He }) : He = { type: void 0, - maxRows: C, + maxRows: w, minRows: k, ...He }, Nt = hc); const To = (ye) => { - ke(ye.animationName === Dr ? K.current : { + ke(ye.animationName === Br ? K.current : { value: "x" }); }; x.useEffect(() => { - ne && ne.setAdornedStart(!!B); - }, [ne, B]); + ne && ne.setAdornedStart(!!F); + }, [ne, F]); const ut = { ...r, color: he.color || "primary", @@ -10720,30 +10720,30 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { formControl: ne, fullWidth: y, hiddenLabel: he.hiddenLabel, - multiline: D, + multiline: L, size: he.size, - startAdornment: B, + startAdornment: F, type: J - }, vn = ky(ut), kt = q.root || u.Root || yo, wt = P.root || d.root || {}, Jt = q.input || u.Input || go; + }, vn = ky(ut), kt = q.root || u.Root || yo, Ct = _.root || d.root || {}, Jt = q.input || u.Input || go; return He = { ...He, - ...P.input ?? d.input + ..._.input ?? d.input }, /* @__PURE__ */ N.jsxs(x.Fragment, { - children: [!m && typeof wa == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function + children: [!m && typeof Ca == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function // For Pigment CSS, this has no effect because the InputGlobalStyles will be null. - (Ca || (Ca = /* @__PURE__ */ N.jsx(wa, {}))), /* @__PURE__ */ N.jsxs(kt, { - ...wt, + (wa || (wa = /* @__PURE__ */ N.jsx(Ca, {}))), /* @__PURE__ */ N.jsxs(kt, { + ...Ct, ref: n, onClick: se, - ...V, - ...!$r(kt) && { + ...B, + ...!Mr(kt) && { ownerState: { ...ut, - ...wt.ownerState + ...Ct.ownerState } }, - className: ie(vn.root, wt.className, l, Y && "MuiInputBase-readOnly"), - children: [B, /* @__PURE__ */ N.jsx(sr.Provider, { + className: ie(vn.root, Ct.className, l, Y && "MuiInputBase-readOnly"), + children: [F, /* @__PURE__ */ N.jsx(ir.Provider, { value: null, children: /* @__PURE__ */ N.jsx(Jt, { "aria-invalid": he.error, @@ -10755,31 +10755,31 @@ const gs = "mui-auto-fill", Dr = "mui-auto-fill-cancel", mo = (e, t) => { id: S, onAnimationStart: To, name: H, - placeholder: M, + placeholder: $, readOnly: Y, required: he.required, rows: X, - value: W, - onKeyDown: I, - onKeyUp: L, + value: V, + onKeyDown: A, + onKeyUp: j, type: J, ...He, - ...!$r(Jt) && { + ...!Mr(Jt) && { as: Nt, ownerState: { ...ut, ...He.ownerState } }, - ref: Z, + ref: Q, className: ie(vn.input, He.className, Y && "MuiInputBase-readOnly"), onBlur: ot, onChange: _e, onFocus: Ke }) - }), g, Q ? Q({ + }), g, Z ? Z({ ...he, - startAdornment: B + startAdornment: F }) : null] })] }); @@ -10879,7 +10879,7 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = { * Either a string to use a HTML element or a component. * @default 'input' */ - inputComponent: Gs, + inputComponent: Ys, /** * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element. * @default {} @@ -11015,7 +11015,7 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = { function $y(e) { return le("MuiInput", e); } -const Cn = { +const wn = { ...hn, ...ue("MuiInput", ["root", "underline", "input"]) }; @@ -11032,7 +11032,7 @@ function jy(e) { const jt = { ...hn, ...ue("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"]) -}, Ly = nr(/* @__PURE__ */ N.jsx("path", { +}, Ly = rr(/* @__PURE__ */ N.jsx("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown"); function Dy(e) { @@ -11053,8 +11053,8 @@ function yc(e, t, n, r, s) { const c = i.type; return typeof c == "function" && !Dy(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; } -const ir = Xt(o.element, yc); -ir.isRequired = Xt(o.element.isRequired, yc); +const ar = Xt(o.element, yc); +ar.isRequired = Xt(o.element.isRequired, yc); const By = { entering: { opacity: 1 @@ -11071,7 +11071,7 @@ const By = { }, Fy = { opacity: 0, visibility: "hidden" -}, Br = /* @__PURE__ */ x.forwardRef(function(t, n) { +}, Fr = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = po(), s = { enter: r.transitions.duration.enteringScreen, exit: r.transitions.duration.leavingScreen @@ -11090,57 +11090,57 @@ const By = { style: y, timeout: S = s, ...R - } = t, T = x.useRef(null), b = We(T, or(l), n), E = tt(T, v), C = tt(T, (f, A) => { + } = t, T = x.useRef(null), b = We(T, sr(l), n), E = tt(T, v), w = tt(T, (f, I) => { nc(f); - const I = kr({ + const A = $r({ style: y, timeout: S, easing: c }, { mode: "enter" }); - f.style.transition = r.transitions.create("opacity", I), d && d(f, A); - }), k = tt(T, h), D = tt(T, p), H = tt(T, (f) => { - const A = kr({ + f.style.transition = r.transitions.create("opacity", A), d && d(f, I); + }), k = tt(T, h), L = tt(T, p), H = tt(T, (f) => { + const I = $r({ style: y, timeout: S, easing: c }, { mode: "exit" }); - f.style.transition = r.transitions.create("opacity", A), m && m(f); + f.style.transition = r.transitions.create("opacity", I), m && m(f); }), G = tt(T, (f) => { f.style.transition = "", g && g(f); - }), F = (f) => { + }), z = (f) => { i && i(T.current, f); }; return /* @__PURE__ */ N.jsx(gt, { appear: a, in: u, nodeRef: T, - onEnter: C, + onEnter: w, onEntered: k, onEntering: E, onExit: H, onExited: G, - onExiting: D, - addEndListener: F, + onExiting: L, + addEndListener: z, timeout: S, ...R, children: (f, { - ownerState: A, - ...I + ownerState: I, + ...A }) => { - const L = rc(f, u, By, Fy, y, l.props.style); + const j = rc(f, u, By, Fy, y, l.props.style); return /* @__PURE__ */ x.cloneElement(l, { - style: L, + style: j, ref: b, - ...I + ...A }); } }); }); -process.env.NODE_ENV !== "production" && (Br.propTypes = { +process.env.NODE_ENV !== "production" && (Fr.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -11160,7 +11160,7 @@ process.env.NODE_ENV !== "production" && (Br.propTypes = { /** * A single child content element. */ - children: ir.isRequired, + children: ar.isRequired, /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. @@ -11255,7 +11255,7 @@ const Vy = (e) => { backgroundColor: "transparent" } }] -}), Ks = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), Xs = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiBackdrop" @@ -11287,13 +11287,13 @@ const Vy = (e) => { component: a, slots: R, slotProps: T - }, [E, C] = Ce("root", { + }, [E, w] = we("root", { elementType: zy, externalForwardedProps: b, className: ie(S.root, i), ownerState: y - }), [k, D] = Ce("transition", { - elementType: Br, + }), [k, L] = we("transition", { + elementType: Fr, externalForwardedProps: b, ownerState: y }); @@ -11301,16 +11301,16 @@ const Vy = (e) => { in: c, timeout: g, ...p, - ...D, + ...L, children: /* @__PURE__ */ N.jsx(E, { "aria-hidden": !0, - ...C, + ...w, ref: n, children: s }) }); }); -process.env.NODE_ENV !== "production" && (Ks.propTypes = { +process.env.NODE_ENV !== "production" && (Xs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -11456,7 +11456,7 @@ const Hy = (e) => { fontSize: 22 } } -}], qy = ee(rr, { +}], qy = ee(or, { shouldForwardProp: (e) => Ye(e) || e === "classes", name: "MuiButton", slot: "Root", @@ -11858,8 +11858,8 @@ const Hy = (e) => { display: "inline-block", width: "1em", height: "1em" -}), bs = /* @__PURE__ */ x.forwardRef(function(t, n) { - const r = x.useContext(gc), s = x.useContext(bc), i = _r(r, t), a = me({ +}), vs = /* @__PURE__ */ x.forwardRef(function(t, n) { + const r = x.useContext(gc), s = x.useContext(bc), i = Ar(r, t), a = me({ props: i, name: "MuiButton" }), { @@ -11878,11 +11878,11 @@ const Hy = (e) => { loadingIndicator: T, loadingPosition: b = "center", size: E = "medium", - startIcon: C, + startIcon: w, type: k, - variant: D = "text", + variant: L = "text", ...H - } = a, G = tr(S), F = T ?? /* @__PURE__ */ N.jsx(Ys, { + } = a, G = nr(S), z = T ?? /* @__PURE__ */ N.jsx(Ks, { "aria-labelledby": G, color: "inherit", size: 16 @@ -11895,58 +11895,58 @@ const Hy = (e) => { disableFocusRipple: m, fullWidth: y, loading: R, - loadingIndicator: F, + loadingIndicator: z, loadingPosition: b, size: E, type: k, - variant: D - }, A = Hy(f), I = (C || R && b === "start") && /* @__PURE__ */ N.jsx(Gy, { - className: A.startIcon, + variant: L + }, I = Hy(f), A = (w || R && b === "start") && /* @__PURE__ */ N.jsx(Gy, { + className: I.startIcon, ownerState: f, - children: C || /* @__PURE__ */ N.jsx(Pa, { - className: A.loadingIconPlaceholder, + children: w || /* @__PURE__ */ N.jsx(Pa, { + className: I.loadingIconPlaceholder, ownerState: f }) - }), L = (g || R && b === "end") && /* @__PURE__ */ N.jsx(Yy, { - className: A.endIcon, + }), j = (g || R && b === "end") && /* @__PURE__ */ N.jsx(Yy, { + className: I.endIcon, ownerState: f, children: g || /* @__PURE__ */ N.jsx(Pa, { - className: A.loadingIconPlaceholder, + className: I.loadingIconPlaceholder, ownerState: f }) - }), M = s || "", Y = typeof R == "boolean" ? ( + }), $ = s || "", Y = typeof R == "boolean" ? ( // use plain HTML span to minimize the runtime overhead /* @__PURE__ */ N.jsx("span", { - className: A.loadingWrapper, + className: I.loadingWrapper, style: { display: "contents" }, children: R && /* @__PURE__ */ N.jsx(Ky, { - className: A.loadingIndicator, + className: I.loadingIndicator, ownerState: f, - children: F + children: z }) }) ) : null, { - root: Q, + root: Z, ...X - } = A; + } = I; return /* @__PURE__ */ N.jsxs(qy, { ownerState: f, - className: ie(r.className, A.root, d, M), + className: ie(r.className, I.root, d, $), component: u, disabled: h || R, focusRipple: !m, - focusVisibleClassName: ie(A.focusVisible, p), + focusVisibleClassName: ie(I.focusVisible, p), ref: n, type: k, id: R ? G : S, ...H, classes: X, - children: [I, b !== "end" && Y, l, b === "end" && Y, L] + children: [A, b !== "end" && Y, l, b === "end" && Y, j] }); }); -process.env.NODE_ENV !== "production" && (bs.propTypes = { +process.env.NODE_ENV !== "production" && (vs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -12077,7 +12077,7 @@ const Jy = (e) => { input: ["input"] }; return de(i, Xy, t); -}, Qy = ee(rr, { +}, Qy = ee(or, { name: "MuiSwitchBase" })({ padding: 9, @@ -12150,40 +12150,40 @@ const Jy = (e) => { required: T = !1, tabIndex: b, type: E, - value: C, + value: w, slots: k = {}, - slotProps: D = {}, + slotProps: L = {}, ...H - } = t, [G, F] = us({ + } = t, [G, z] = ds({ controlled: s, default: !!a, name: "SwitchBase", state: "checked" - }), f = It(), A = ($) => { - S && S($), f && f.onFocus && f.onFocus($); - }, I = ($) => { - p && p($), f && f.onBlur && f.onBlur($); - }, L = ($) => { - if ($.nativeEvent.defaultPrevented || R) + }), f = It(), I = (W) => { + S && S(W), f && f.onFocus && f.onFocus(W); + }, A = (W) => { + p && p(W), f && f.onBlur && f.onBlur(W); + }, j = (W) => { + if (W.nativeEvent.defaultPrevented || R) return; - const V = $.target.checked; - F(V), y && y($, V); + const B = W.target.checked; + z(B), y && y(W, B); }; - let M = l; - f && typeof M > "u" && (M = f.disabled); - const Y = E === "checkbox" || E === "radio", Q = { + let $ = l; + f && typeof $ > "u" && ($ = f.disabled); + const Y = E === "checkbox" || E === "radio", Z = { ...t, checked: G, - disabled: M, + disabled: $, disableFocusRipple: c, edge: u - }, X = Jy(Q), O = { + }, X = Jy(Z), O = { slots: k, slotProps: { input: v, - ...D + ...L } - }, [P, q] = Ce("root", { + }, [_, q] = we("root", { ref: n, elementType: Qy, className: X.root, @@ -12193,56 +12193,56 @@ const Jy = (e) => { component: "span", ...H }, - getSlotProps: ($) => ({ - ...$, - onFocus: (V) => { - var W; - (W = $.onFocus) == null || W.call($, V), A(V); + getSlotProps: (W) => ({ + ...W, + onFocus: (B) => { + var V; + (V = W.onFocus) == null || V.call(W, B), I(B); }, - onBlur: (V) => { - var W; - (W = $.onBlur) == null || W.call($, V), I(V); + onBlur: (B) => { + var V; + (V = W.onBlur) == null || V.call(W, B), A(B); } }), - ownerState: Q, + ownerState: Z, additionalProps: { centerRipple: !0, focusRipple: !c, role: void 0, tabIndex: null } - }), [B, J] = Ce("input", { + }), [F, J] = we("input", { ref: m, elementType: Zy, className: X.input, externalForwardedProps: O, - getSlotProps: ($) => ({ - ...$, - onChange: (V) => { - var W; - (W = $.onChange) == null || W.call($, V), L(V); + getSlotProps: (W) => ({ + ...W, + onChange: (B) => { + var V; + (V = W.onChange) == null || V.call(W, B), j(B); } }), - ownerState: Q, + ownerState: Z, additionalProps: { autoFocus: r, checked: s, defaultChecked: a, - disabled: M, + disabled: $, id: Y ? h : void 0, name: g, readOnly: R, required: T, tabIndex: b, type: E, - ...E === "checkbox" && C === void 0 ? {} : { - value: C + ...E === "checkbox" && w === void 0 ? {} : { + value: w } } }); - return /* @__PURE__ */ N.jsxs(P, { + return /* @__PURE__ */ N.jsxs(_, { ...q, - children: [/* @__PURE__ */ N.jsx(B, { + children: [/* @__PURE__ */ N.jsx(F, { ...J }), G ? i : d] }); @@ -12366,17 +12366,17 @@ process.env.NODE_ENV !== "production" && (Ec.propTypes = { */ value: o.any }); -const eg = nr(/* @__PURE__ */ N.jsx("path", { +const eg = rr(/* @__PURE__ */ N.jsx("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" -}), "CheckBoxOutlineBlank"), tg = nr(/* @__PURE__ */ N.jsx("path", { +}), "CheckBoxOutlineBlank"), tg = rr(/* @__PURE__ */ N.jsx("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" -}), "CheckBox"), ng = nr(/* @__PURE__ */ N.jsx("path", { +}), "CheckBox"), ng = rr(/* @__PURE__ */ N.jsx("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox"); function rg(e) { return le("MuiCheckbox", e); } -const Vo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), og = (e) => { +const zo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), og = (e) => { const { classes: t, indeterminate: n, @@ -12429,10 +12429,10 @@ const Vo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c color: t }, style: { - [`&.${Vo.checked}, &.${Vo.indeterminate}`]: { + [`&.${zo.checked}, &.${zo.indeterminate}`]: { color: (e.vars || e).palette[t].main }, - [`&.${Vo.disabled}`]: { + [`&.${zo.disabled}`]: { color: (e.vars || e).palette.action.disabled } } @@ -12473,7 +12473,7 @@ const Vo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c color: i, indeterminate: l, size: d - }, T = og(R), b = g.input ?? u, [E, C] = Ce("root", { + }, T = og(R), b = g.input ?? u, [E, w] = we("root", { ref: n, elementType: sg, className: ie(T.root, v), @@ -12503,7 +12503,7 @@ const Vo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c } }); return /* @__PURE__ */ N.jsx(E, { - ...C, + ...w, classes: T }); }); @@ -12627,13 +12627,13 @@ function Tc(e = window) { } function cg(e) { const t = nt(e); - return t.body === e ? Ct(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight; + return t.body === e ? wt(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight; } function Mn(e, t) { t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden"); } function _a(e) { - return parseFloat(Ct(e).getComputedStyle(e).paddingRight) || 0; + return parseFloat(wt(e).getComputedStyle(e).paddingRight) || 0; } function ug(e) { const n = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), r = e.tagName === "INPUT" && e.getAttribute("type") === "hidden"; @@ -12646,7 +12646,7 @@ function Aa(e, t, n, r, s) { l && c && Mn(a, s); }); } -function zo(e, t) { +function Wo(e, t) { let n = -1; return e.some((r, s) => t(r) ? (n = s, !0) : !1), n; } @@ -12654,7 +12654,7 @@ function dg(e, t) { const n = [], r = e.container; if (!t.disableScrollLock) { if (cg(r)) { - const a = Tc(Ct(r)); + const a = Tc(wt(r)); n.push({ value: r.style.paddingRight, property: "padding-right", @@ -12673,7 +12673,7 @@ function dg(e, t) { if (r.parentNode instanceof DocumentFragment) i = nt(r).body; else { - const a = r.parentElement, l = Ct(r); + const a = r.parentElement, l = wt(r); i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r; } n.push({ @@ -12717,7 +12717,7 @@ class fg { r = this.modals.length, this.modals.push(t), t.modalRef && Mn(t.modalRef, !1); const s = pg(n); Aa(n, t.mount, t.modalRef, s, !0); - const i = zo(this.containers, (a) => a.container === n); + const i = Wo(this.containers, (a) => a.container === n); return i !== -1 ? (this.containers[i].modals.push(t), r) : (this.containers.push({ modals: [t], container: n, @@ -12726,14 +12726,14 @@ class fg { }), r); } mount(t, n) { - const r = zo(this.containers, (i) => i.modals.includes(t)), s = this.containers[r]; + const r = Wo(this.containers, (i) => i.modals.includes(t)), s = this.containers[r]; s.restore || (s.restore = dg(s, n)); } remove(t, n = !0) { const r = this.modals.indexOf(t); if (r === -1) return r; - const s = zo(this.containers, (a) => a.modals.includes(t)), i = this.containers[s]; + const s = Wo(this.containers, (a) => a.modals.includes(t)), i = this.containers[s]; if (i.modals.splice(i.modals.indexOf(t), 1), this.modals.splice(r, 1), i.modals.length === 0) i.restore && i.restore(), t.modalRef && Mn(t.modalRef, n), Aa(i.container, t.mount, t.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1); else { @@ -12746,9 +12746,9 @@ class fg { return this.modals.length > 0 && this.modals[this.modals.length - 1] === t; } } -const vs = "data-mui-focusable"; +const Es = "data-mui-focusable"; function mg(e) { - return e ? e.hasAttribute(vs) ? e : e.querySelector(`[${vs}]`) : null; + return e ? e.hasAttribute(Es) ? e : e.querySelector(`[${Es}]`) : null; } const hg = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(","); function yg(e) { @@ -12779,7 +12779,7 @@ function vg(e) { function Eg() { return !0; } -function Fr(e) { +function Ur(e) { const { children: t, disableAutoFocus: n = !1, @@ -12788,7 +12788,7 @@ function Fr(e) { getTabbable: i = vg, isEnabled: a = Eg, open: l - } = e, c = x.useRef(!1), u = x.useRef(null), d = x.useRef(null), h = x.useRef(null), v = x.useRef(null), m = x.useRef(!1), g = x.useRef(null), p = We(or(t), g), y = x.useRef(null); + } = e, c = x.useRef(!1), u = x.useRef(null), d = x.useRef(null), h = x.useRef(null), v = x.useRef(null), m = x.useRef(!1), g = x.useRef(null), p = We(sr(t), g), y = x.useRef(null); x.useEffect(() => { !l || !g.current || (m.current = !n); }, [n, l]), x.useEffect(() => { @@ -12807,37 +12807,37 @@ function Fr(e) { return; cn(T) === g.current && k.shiftKey && (c.current = !0, d.current && d.current.focus()); }, E = () => { - var G, F; + var G, z; const k = g.current; if (k === null) return; - const D = cn(T); + const L = cn(T); if (!T.hasFocus() || !a() || c.current) { c.current = !1; return; } - if (xa(k, D) || r && D !== u.current && D !== d.current) + if (xa(k, L) || r && L !== u.current && L !== d.current) return; - if (D !== v.current) + if (L !== v.current) v.current = null; else if (v.current !== null) return; if (!m.current) return; let H = []; - if ((D === u.current || D === d.current) && (H = i(g.current)), H.length > 0) { - const f = !!((G = y.current) != null && G.shiftKey && ((F = y.current) == null ? void 0 : F.key) === "Tab"), A = H[0], I = H[H.length - 1]; - typeof A != "string" && typeof I != "string" && (f ? I.focus() : A.focus()); + if ((L === u.current || L === d.current) && (H = i(g.current)), H.length > 0) { + const f = !!((G = y.current) != null && G.shiftKey && ((z = y.current) == null ? void 0 : z.key) === "Tab"), I = H[0], A = H[H.length - 1]; + typeof I != "string" && typeof A != "string" && (f ? A.focus() : I.focus()); } else k.focus(); }; T.addEventListener("focusin", E), T.addEventListener("keydown", b, !0); - const C = setInterval(() => { + const w = setInterval(() => { const k = cn(T); k && k.tagName === "BODY" && E(); }, 50); return () => { - clearInterval(C), T.removeEventListener("focusin", E), T.removeEventListener("keydown", b, !0); + clearInterval(w), T.removeEventListener("focusin", E), T.removeEventListener("keydown", b, !0); }; }, [n, r, s, a, l, i]); const S = (T) => { @@ -12864,7 +12864,7 @@ function Fr(e) { })] }); } -process.env.NODE_ENV !== "production" && (Fr.propTypes = { +process.env.NODE_ENV !== "production" && (Ur.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -12872,7 +12872,7 @@ process.env.NODE_ENV !== "production" && (Fr.propTypes = { /** * A single child content element. */ - children: ir, + children: ar, /** * If `true`, the focus trap will not automatically shift focus to itself when it opens, and * replace it to the last focused element when it closes. @@ -12918,7 +12918,7 @@ process.env.NODE_ENV !== "production" && (Fr.propTypes = { */ open: o.bool.isRequired }); -process.env.NODE_ENV !== "production" && (Fr.propTypes = Ul(Fr.propTypes)); +process.env.NODE_ENV !== "production" && (Ur.propTypes = Ul(Ur.propTypes)); function Sg(e) { return typeof e == "function" ? e() : e; } @@ -12926,7 +12926,7 @@ function Tg(e) { return e ? e.props.hasOwnProperty("in") : !1; } const Ia = () => { -}, mr = new fg(); +}, hr = new fg(); function xg(e) { const { container: t, @@ -12943,37 +12943,37 @@ function xg(e) { let R = !0; (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1); const T = () => nt(v.current), b = () => (h.current.modalRef = m.current, h.current.mount = v.current, h.current), E = () => { - mr.mount(b(), { + hr.mount(b(), { disableScrollLock: r }), m.current && (m.current.scrollTop = 0); - }, C = Wt(() => { - const L = Sg(t) || T().body; - mr.add(b(), L), m.current && E(); - }), k = () => mr.isTopModal(b()), D = Wt((L) => { - v.current = L, L && (u && k() ? E() : m.current && Mn(m.current, R)); + }, w = Wt(() => { + const j = Sg(t) || T().body; + hr.add(b(), j), m.current && E(); + }), k = () => hr.isTopModal(b()), L = Wt((j) => { + v.current = j, j && (u && k() ? E() : m.current && Mn(m.current, R)); }), H = x.useCallback(() => { - mr.remove(b(), R); + hr.remove(b(), R); }, [R]); x.useEffect(() => () => { H(); }, [H]), x.useEffect(() => { - u ? C() : (!S || !s) && H(); - }, [u, H, S, s, C]); - const G = (L) => (M) => { + u ? w() : (!S || !s) && H(); + }, [u, H, S, s, w]); + const G = (j) => ($) => { var Y; - (Y = L.onKeyDown) == null || Y.call(L, M), !(M.key !== "Escape" || M.which === 229 || // Wait until IME is settled. - !k()) && (n || (M.stopPropagation(), c && c(M, "escapeKeyDown"))); - }, F = (L) => (M) => { + (Y = j.onKeyDown) == null || Y.call(j, $), !($.key !== "Escape" || $.which === 229 || // Wait until IME is settled. + !k()) && (n || ($.stopPropagation(), c && c($, "escapeKeyDown"))); + }, z = (j) => ($) => { var Y; - (Y = L.onClick) == null || Y.call(L, M), M.target === M.currentTarget && c && c(M, "backdropClick"); + (Y = j.onClick) == null || Y.call(j, $), $.target === $.currentTarget && c && c($, "backdropClick"); }; return { - getRootProps: (L = {}) => { - const M = ic(e); - delete M.onTransitionEnter, delete M.onTransitionExited; + getRootProps: (j = {}) => { + const $ = ic(e); + delete $.onTransitionEnter, delete $.onTransitionExited; const Y = { - ...M, - ...L + ...$, + ...j }; return { /* @@ -12988,28 +12988,28 @@ function xg(e) { ref: g }; }, - getBackdropProps: (L = {}) => { - const M = L; + getBackdropProps: (j = {}) => { + const $ = j; return { "aria-hidden": !0, - ...M, - onClick: F(M), + ...$, + onClick: z($), open: u }; }, getTransitionProps: () => { - const L = () => { + const j = () => { y(!1), i && i(); - }, M = () => { + }, $ = () => { y(!0), a && a(), s && H(); }; return { - onEnter: ma(L, (l == null ? void 0 : l.props.onEnter) ?? Ia), - onExited: ma(M, (l == null ? void 0 : l.props.onExited) ?? Ia) + onEnter: ma(j, (l == null ? void 0 : l.props.onEnter) ?? Ia), + onExited: ma($, (l == null ? void 0 : l.props.onExited) ?? Ia) }; }, rootRef: g, - portalRef: D, + portalRef: L, isTopModal: k, exited: p, hasTransition: S @@ -13029,7 +13029,7 @@ const Rg = (e) => { root: ["root", !t && n && "hidden"], backdrop: ["backdrop"] }, Og, r); -}, Cg = ee("div", { +}, wg = ee("div", { name: "MuiModal", slot: "Root", overridesResolver: (e, t) => { @@ -13055,17 +13055,17 @@ const Rg = (e) => { visibility: "hidden" } }] -}))), wg = ee(Ks, { +}))), Cg = ee(Xs, { name: "MuiModal", slot: "Backdrop" })({ zIndex: -1 -}), Xs = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), Js = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ name: "MuiModal", props: t }), { - BackdropComponent: s = wg, + BackdropComponent: s = Cg, BackdropProps: i, classes: a, className: l, @@ -13083,16 +13083,16 @@ const Rg = (e) => { disableScrollLock: T = !1, hideBackdrop: b = !1, keepMounted: E = !1, - onClose: C, + onClose: w, onTransitionEnter: k, - onTransitionExited: D, + onTransitionExited: L, open: H, slotProps: G = {}, - slots: F = {}, + slots: z = {}, // eslint-disable-next-line react/prop-types theme: f, - ...A - } = r, I = { + ...I + } = r, A = { ...r, closeAfterTransition: c, disableAutoFocus: g, @@ -13104,72 +13104,72 @@ const Rg = (e) => { hideBackdrop: b, keepMounted: E }, { - getRootProps: L, - getBackdropProps: M, + getRootProps: j, + getBackdropProps: $, getTransitionProps: Y, - portalRef: Q, + portalRef: Z, isTopModal: X, exited: O, - hasTransition: P + hasTransition: _ } = xg({ - ...I, + ...A, rootRef: n }), q = { - ...I, + ...A, exited: O - }, B = Rg(q), J = {}; - if (u.props.tabIndex === void 0 && (J.tabIndex = "-1"), P) { + }, F = Rg(q), J = {}; + if (u.props.tabIndex === void 0 && (J.tabIndex = "-1"), _) { const { - onEnter: z, - onExited: Z + onEnter: D, + onExited: Q } = Y(); - J.onEnter = z, J.onExited = Z; + J.onEnter = D, J.onExited = Q; } - const $ = { + const W = { slots: { root: v.Root, backdrop: v.Backdrop, - ...F + ...z }, slotProps: { ...m, ...G } - }, [V, W] = Ce("root", { + }, [B, V] = we("root", { ref: n, - elementType: Cg, + elementType: wg, externalForwardedProps: { - ...$, - ...A, + ...W, + ...I, component: h }, - getSlotProps: L, + getSlotProps: j, ownerState: q, - className: ie(l, B == null ? void 0 : B.root, !q.open && q.exited && (B == null ? void 0 : B.hidden)) - }), [U, K] = Ce("backdrop", { + className: ie(l, F == null ? void 0 : F.root, !q.open && q.exited && (F == null ? void 0 : F.hidden)) + }), [U, K] = we("backdrop", { ref: i == null ? void 0 : i.ref, elementType: s, - externalForwardedProps: $, + externalForwardedProps: W, shouldForwardComponentProp: !0, additionalProps: i, - getSlotProps: (z) => M({ - ...z, - onClick: (Z) => { - z != null && z.onClick && z.onClick(Z); + getSlotProps: (D) => $({ + ...D, + onClick: (Q) => { + D != null && D.onClick && D.onClick(Q); } }), - className: ie(i == null ? void 0 : i.className, B == null ? void 0 : B.backdrop), + className: ie(i == null ? void 0 : i.className, F == null ? void 0 : F.backdrop), ownerState: q }); - return !E && !H && (!P || O) ? null : /* @__PURE__ */ N.jsx(jr, { - ref: Q, + return !E && !H && (!_ || O) ? null : /* @__PURE__ */ N.jsx(Lr, { + ref: Z, container: d, disablePortal: S, - children: /* @__PURE__ */ N.jsxs(V, { - ...W, + children: /* @__PURE__ */ N.jsxs(B, { + ...V, children: [!b && s ? /* @__PURE__ */ N.jsx(U, { ...K - }) : null, /* @__PURE__ */ N.jsx(Fr, { + }) : null, /* @__PURE__ */ N.jsx(Ur, { disableEnforceFocus: p, disableAutoFocus: g, disableRestoreFocus: R, @@ -13180,7 +13180,7 @@ const Rg = (e) => { }) }); }); -process.env.NODE_ENV !== "production" && (Xs.propTypes = { +process.env.NODE_ENV !== "production" && (Js.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -13205,7 +13205,7 @@ process.env.NODE_ENV !== "production" && (Xs.propTypes = { /** * A single child content element. */ - children: ir.isRequired, + children: ar.isRequired, /** * Override or extend the styles applied to the component. */ @@ -13257,7 +13257,7 @@ process.env.NODE_ENV !== "production" && (Xs.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: o.oneOfType([Vn, o.func]), + container: o.oneOfType([zn, o.func]), /** * If `true`, the modal will not automatically shift focus to itself when it opens, and * replace it to the last focused element when it closes. @@ -13354,9 +13354,9 @@ process.env.NODE_ENV !== "production" && (Xs.propTypes = { function Pg(e) { return le("MuiDialog", e); } -const Wo = ue("MuiDialog", ["root", "backdrop", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Js = /* @__PURE__ */ x.createContext({}); -process.env.NODE_ENV !== "production" && (Js.displayName = "DialogContext"); -const _g = ee(Ks, { +const Ho = ue("MuiDialog", ["root", "backdrop", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Qs = /* @__PURE__ */ x.createContext({}); +process.env.NODE_ENV !== "production" && (Qs.displayName = "DialogContext"); +const _g = ee(Xs, { name: "MuiDialog", slot: "Backdrop" })({ @@ -13376,7 +13376,7 @@ const _g = ee(Ks, { paper: ["paper", `paperScroll${re(n)}`, `paperWidth${re(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"] }; return de(a, Pg, t); -}, Ig = ee(Xs, { +}, Ig = ee(Js, { name: "MuiDialog", slot: "Root" })({ @@ -13476,7 +13476,7 @@ const _g = ee(Ks, { }, style: { maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`, - [`&.${Wo.paperScrollBody}`]: { + [`&.${Ho.paperScrollBody}`]: { [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: { maxWidth: "calc(100% - 64px)" } @@ -13488,7 +13488,7 @@ const _g = ee(Ks, { }, style: { maxWidth: `${e.breakpoints.values[t]}${e.breakpoints.unit}`, - [`&.${Wo.paperScrollBody}`]: { + [`&.${Ho.paperScrollBody}`]: { [e.breakpoints.down(e.breakpoints.values[t] + 32 * 2)]: { maxWidth: "calc(100% - 64px)" } @@ -13512,7 +13512,7 @@ const _g = ee(Ks, { height: "100%", maxHeight: "none", borderRadius: 0, - [`&.${Wo.paperScrollBody}`]: { + [`&.${Ho.paperScrollBody}`]: { margin: 0, maxWidth: "100%" } @@ -13542,109 +13542,109 @@ const _g = ee(Ks, { open: T, PaperComponent: b = fo, PaperProps: E = {}, - role: C = "dialog", + role: w = "dialog", scroll: k = "paper", - slots: D = {}, + slots: L = {}, slotProps: H = {}, - TransitionComponent: G = Br, - transitionDuration: F = i, + TransitionComponent: G = Fr, + transitionDuration: z = i, TransitionProps: f, - ...A - } = r, I = { + ...I + } = r, A = { ...r, disableEscapeKeyDown: m, fullScreen: g, fullWidth: p, maxWidth: y, scroll: k - }, L = Ag(I), M = x.useRef(), Y = (ne) => { - M.current = ne.target === ne.currentTarget; - }, Q = (ne) => { - S && S(ne), M.current && (M.current = null, R && R(ne, "backdropClick")); - }, X = tr(l), O = x.useMemo(() => ({ + }, j = Ag(A), $ = x.useRef(), Y = (ne) => { + $.current = ne.target === ne.currentTarget; + }, Z = (ne) => { + S && S(ne), $.current && ($.current = null, R && R(ne, "backdropClick")); + }, X = nr(l), O = x.useMemo(() => ({ titleId: X - }), [X]), P = { + }), [X]), _ = { transition: G, - ...D + ...L }, q = { transition: f, paper: E, backdrop: d, ...H - }, B = { - slots: P, + }, F = { + slots: _, slotProps: q - }, [J, $] = Ce("root", { + }, [J, W] = we("root", { elementType: Ig, shouldForwardComponentProp: !0, - externalForwardedProps: B, - ownerState: I, - className: ie(L.root, v), + externalForwardedProps: F, + ownerState: A, + className: ie(j.root, v), ref: n - }), [V, W] = Ce("backdrop", { + }), [B, V] = we("backdrop", { elementType: _g, shouldForwardComponentProp: !0, - externalForwardedProps: B, - ownerState: I, - className: L.backdrop - }), [U, K] = Ce("paper", { + externalForwardedProps: F, + ownerState: A, + className: j.backdrop + }), [U, K] = we("paper", { elementType: kg, shouldForwardComponentProp: !0, - externalForwardedProps: B, - ownerState: I, - className: L.paper, + externalForwardedProps: F, + ownerState: A, + className: j.paper, additionalProps: { elevation: 24, - role: C, + role: w, "aria-describedby": a, "aria-labelledby": X, "aria-modal": c, tabIndex: -1, - [vs]: "" + [Es]: "" } - }), [z, Z] = Ce("container", { + }), [D, Q] = we("container", { elementType: Ng, - externalForwardedProps: B, - ownerState: I, - className: L.container - }), [_, ae] = Ce("transition", { - elementType: Br, - externalForwardedProps: B, - ownerState: I, + externalForwardedProps: F, + ownerState: A, + className: j.container + }), [P, ae] = we("transition", { + elementType: Fr, + externalForwardedProps: F, + ownerState: A, additionalProps: { appear: !0, in: T, - timeout: F, + timeout: z, role: "presentation" } }); return /* @__PURE__ */ N.jsx(J, { closeAfterTransition: !0, slots: { - backdrop: V + backdrop: B }, slotProps: { backdrop: { - transitionDuration: F, + transitionDuration: z, as: u, - ...W + ...V } }, disableEscapeKeyDown: m, onClose: R, open: T, - onClick: Q, - ...$, - ...A, - children: /* @__PURE__ */ N.jsx(_, { + onClick: Z, + ...W, + ...I, + children: /* @__PURE__ */ N.jsx(P, { ...ae, - children: /* @__PURE__ */ N.jsx(z, { + children: /* @__PURE__ */ N.jsx(D, { onMouseDown: Y, - ...Z, + ...Q, children: /* @__PURE__ */ N.jsx(U, { as: b, ...K, - children: /* @__PURE__ */ N.jsx(Js.Provider, { + children: /* @__PURE__ */ N.jsx(Qs.Provider, { value: O, children: h }) @@ -14008,7 +14008,7 @@ const Vg = (e) => { })({ padding: "16px 24px", flex: "0 0 auto" -}), Cc = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), wc = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiDialogTitle" @@ -14018,7 +14018,7 @@ const Vg = (e) => { ...a } = r, l = r, c = Vg(l), { titleId: u = i - } = x.useContext(Js); + } = x.useContext(Qs); return /* @__PURE__ */ N.jsx(zg, { component: "h2", className: ie(c.root, s), @@ -14029,7 +14029,7 @@ const Vg = (e) => { ...a }); }); -process.env.NODE_ENV !== "production" && (Cc.propTypes = { +process.env.NODE_ENV !== "production" && (wc.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -14598,7 +14598,7 @@ const Yg = (e) => { width: "100%" } }] -}), wc = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), Cc = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiFormControl" @@ -14630,38 +14630,38 @@ const Yg = (e) => { size: p, variant: y }, T = Yg(R), [b, E] = x.useState(() => { - let M = !1; + let $ = !1; return s && x.Children.forEach(s, (Y) => { - if (!Fo(Y, ["Input", "Select"])) + if (!Uo(Y, ["Input", "Select"])) return; - const Q = Fo(Y, ["Select"]) ? Y.props.input : Y; - Q && Iy(Q.props) && (M = !0); - }), M; - }), [C, k] = x.useState(() => { - let M = !1; + const Z = Uo(Y, ["Select"]) ? Y.props.input : Y; + Z && Iy(Z.props) && ($ = !0); + }), $; + }), [w, k] = x.useState(() => { + let $ = !1; return s && x.Children.forEach(s, (Y) => { - Fo(Y, ["Input", "Select"]) && (Lr(Y.props, !0) || Lr(Y.props.inputProps, !0)) && (M = !0); - }), M; - }), [D, H] = x.useState(!1); - c && D && H(!1); - const G = d !== void 0 && !c ? d : D; - let F; + Uo(Y, ["Input", "Select"]) && (Dr(Y.props, !0) || Dr(Y.props.inputProps, !0)) && ($ = !0); + }), $; + }), [L, H] = x.useState(!1); + c && L && H(!1); + const G = d !== void 0 && !c ? d : L; + let z; const f = x.useRef(!1); - process.env.NODE_ENV !== "production" && (F = () => (f.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(` + process.env.NODE_ENV !== "production" && (z = () => (f.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(` `)), f.current = !0, () => { f.current = !1; })); - const A = x.useCallback(() => { + const I = x.useCallback(() => { k(!0); - }, []), I = x.useCallback(() => { + }, []), A = x.useCallback(() => { k(!1); - }, []), L = x.useMemo(() => ({ + }, []), j = x.useMemo(() => ({ adornedStart: b, setAdornedStart: E, color: a, disabled: c, error: u, - filled: C, + filled: w, focused: G, fullWidth: h, hiddenLabel: v, @@ -14672,14 +14672,14 @@ const Yg = (e) => { onFocus: () => { H(!0); }, - onEmpty: I, - onFilled: A, - registerEffect: F, + onEmpty: A, + onFilled: I, + registerEffect: z, required: g, variant: y - }), [b, a, c, u, C, G, h, v, F, I, A, g, p, y]); - return /* @__PURE__ */ N.jsx(sr.Provider, { - value: L, + }), [b, a, c, u, w, G, h, v, z, A, I, g, p, y]); + return /* @__PURE__ */ N.jsx(ir.Provider, { + value: j, children: /* @__PURE__ */ N.jsx(Kg, { as: l, ownerState: R, @@ -14690,7 +14690,7 @@ const Yg = (e) => { }) }); }); -process.env.NODE_ENV !== "production" && (wc.propTypes = { +process.env.NODE_ENV !== "production" && (Cc.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -15121,7 +15121,7 @@ const rb = { opacity: 0, transform: Ln(0.75), visibility: "hidden" -}, Ur = /* @__PURE__ */ x.forwardRef(function(t, n) { +}, Vr = /* @__PURE__ */ x.forwardRef(function(t, n) { const { addEndListener: r, appear: s = !0, @@ -15137,34 +15137,34 @@ const rb = { style: g, timeout: p = "auto", ...y - } = t, S = tc(), R = x.useRef(), T = po(), b = x.useRef(null), E = We(b, or(i), n), C = tt(b, d), k = tt(b, (A, I) => { - nc(A); + } = t, S = tc(), R = x.useRef(), T = po(), b = x.useRef(null), E = We(b, sr(i), n), w = tt(b, d), k = tt(b, (I, A) => { + nc(I); const { - duration: L, - delay: M, + duration: j, + delay: $, easing: Y - } = kr({ + } = $r({ style: g, timeout: p, easing: a }, { mode: "enter" }); - let Q; - p === "auto" ? (Q = T.transitions.getAutoHeightDuration(A.clientHeight), R.current = Q) : Q = L, A.style.transition = [T.transitions.create("opacity", { - duration: Q, - delay: M + let Z; + p === "auto" ? (Z = T.transitions.getAutoHeightDuration(I.clientHeight), R.current = Z) : Z = j, I.style.transition = [T.transitions.create("opacity", { + duration: Z, + delay: $ }), T.transitions.create("transform", { - duration: Q * 0.666, - delay: M, + duration: Z * 0.666, + delay: $, easing: Y - })].join(","), c && c(A, I); - }), D = tt(b, u), H = tt(b, m), G = tt(b, (A) => { + })].join(","), c && c(I, A); + }), L = tt(b, u), H = tt(b, m), G = tt(b, (I) => { const { - duration: I, - delay: L, - easing: M - } = kr({ + duration: A, + delay: j, + easing: $ + } = $r({ style: g, timeout: p, easing: a @@ -15172,46 +15172,46 @@ const rb = { mode: "exit" }); let Y; - p === "auto" ? (Y = T.transitions.getAutoHeightDuration(A.clientHeight), R.current = Y) : Y = I, A.style.transition = [T.transitions.create("opacity", { + p === "auto" ? (Y = T.transitions.getAutoHeightDuration(I.clientHeight), R.current = Y) : Y = A, I.style.transition = [T.transitions.create("opacity", { duration: Y, - delay: L + delay: j }), T.transitions.create("transform", { duration: Y * 0.666, - delay: L || Y * 0.333, - easing: M - })].join(","), A.style.opacity = 0, A.style.transform = Ln(0.75), h && h(A); - }), F = tt(b, (A) => { - A.style.transition = "", v && v(A); - }), f = (A) => { - p === "auto" && S.start(R.current || 0, A), r && r(b.current, A); + delay: j || Y * 0.333, + easing: $ + })].join(","), I.style.opacity = 0, I.style.transform = Ln(0.75), h && h(I); + }), z = tt(b, (I) => { + I.style.transition = "", v && v(I); + }), f = (I) => { + p === "auto" && S.start(R.current || 0, I), r && r(b.current, I); }; return /* @__PURE__ */ N.jsx(gt, { appear: s, in: l, nodeRef: b, onEnter: k, - onEntered: D, - onEntering: C, + onEntered: L, + onEntering: w, onExit: G, - onExited: F, + onExited: z, onExiting: H, addEndListener: f, timeout: p === "auto" ? null : p, ...y, - children: (A, { - ownerState: I, - ...L + children: (I, { + ownerState: A, + ...j }) => { - const M = rc(A, l, rb, ob, g, i.props.style); + const $ = rc(I, l, rb, ob, g, i.props.style); return /* @__PURE__ */ x.cloneElement(i, { - style: M, + style: $, ref: E, - ...L + ...j }); } }); }); -process.env.NODE_ENV !== "production" && (Ur.propTypes = { +process.env.NODE_ENV !== "production" && (Vr.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -15231,7 +15231,7 @@ process.env.NODE_ENV !== "production" && (Ur.propTypes = { /** * A single child content element. */ - children: ir.isRequired, + children: ar.isRequired, /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. @@ -15285,7 +15285,7 @@ process.env.NODE_ENV !== "production" && (Ur.propTypes = { exit: o.number })]) }); -Ur && (Ur.muiSupportAuto = !0); +Vr && (Vr.muiSupportAuto = !0); const sb = (e) => { const { classes: t, @@ -15343,12 +15343,12 @@ const sb = (e) => { pointerEvents: "none" // Transparent to the hover style. }, - [`&.${Cn.focused}:after`]: { + [`&.${wn.focused}:after`]: { // translateX(0) is a workaround for Safari transform scale bug // See https://github.com/mui/material-ui/issues/31766 transform: "scaleX(1) translateX(0)" }, - [`&.${Cn.error}`]: { + [`&.${wn.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } @@ -15366,14 +15366,14 @@ const sb = (e) => { pointerEvents: "none" // Transparent to the hover style. }, - [`&:hover:not(.${Cn.disabled}, .${Cn.error}):before`]: { + [`&:hover:not(.${wn.disabled}, .${wn.error}):before`]: { borderBottom: `2px solid ${(e.vars || e).palette.text.primary}`, // Reset on touch devices, it doesn't add specificity "@media (hover: none)": { borderBottom: `1px solid ${n}` } }, - [`&.${Cn.disabled}:before`]: { + [`&.${wn.disabled}:before`]: { borderBottomStyle: "dotted" } } @@ -15705,7 +15705,7 @@ const cb = (e, t) => { position: u, variant: m }, p = ub(g); - return /* @__PURE__ */ N.jsx(sr.Provider, { + return /* @__PURE__ */ N.jsx(ir.Provider, { value: null, children: /* @__PURE__ */ N.jsx(db, { as: a, @@ -16037,8 +16037,8 @@ process.env.NODE_ENV !== "production" && (Ic.propTypes = { */ variant: o.oneOf(["filled", "outlined", "standard"]) }); -const zn = /* @__PURE__ */ x.createContext({}); -process.env.NODE_ENV !== "production" && (zn.displayName = "ListContext"); +const Wn = /* @__PURE__ */ x.createContext({}); +process.env.NODE_ENV !== "production" && (Wn.displayName = "ListContext"); function hb(e) { return le("MuiList", e); } @@ -16083,7 +16083,7 @@ const yb = (e) => { paddingTop: 0 } }] -}), Qs = /* @__PURE__ */ x.forwardRef(function(t, n) { +}), Zs = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiList" @@ -16103,7 +16103,7 @@ const yb = (e) => { dense: l, disablePadding: c }, m = yb(v); - return /* @__PURE__ */ N.jsx(zn.Provider, { + return /* @__PURE__ */ N.jsx(Wn.Provider, { value: h, children: /* @__PURE__ */ N.jsxs(gb, { as: a, @@ -16115,7 +16115,7 @@ const yb = (e) => { }) }); }); -process.env.NODE_ENV !== "production" && (Qs.propTypes = { +process.env.NODE_ENV !== "production" && (Zs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -16161,7 +16161,7 @@ process.env.NODE_ENV !== "production" && (Qs.propTypes = { function bb(e) { return le("MuiListItemButton", e); } -const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), vb = (e, t) => { +const Cn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), vb = (e, t) => { const { ownerState: n } = e; @@ -16182,7 +16182,7 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems ...n, ...u }; -}, Sb = ee(rr, { +}, Sb = ee(or, { shouldForwardProp: (e) => Ye(e) || e === "classes", name: "MuiListItemButton", slot: "Root", @@ -16212,23 +16212,23 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems backgroundColor: "transparent" } }, - [`&.${wn.selected}`]: { + [`&.${Cn.selected}`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity), - [`&.${wn.focusVisible}`]: { + [`&.${Cn.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }, - [`&.${wn.selected}:hover`]: { + [`&.${Cn.selected}:hover`]: { backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`), // Reset on touch devices, it doesn't add specificity "@media (hover: none)": { backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity) } }, - [`&.${wn.focusVisible}`]: { + [`&.${Cn.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus }, - [`&.${wn.disabled}`]: { + [`&.${Cn.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity }, variants: [{ @@ -16263,7 +16263,7 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems paddingBottom: 4 } }] -}))), Es = /* @__PURE__ */ x.forwardRef(function(t, n) { +}))), Ss = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiListItemButton" @@ -16279,7 +16279,7 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems selected: v = !1, className: m, ...g - } = r, p = x.useContext(zn), y = x.useMemo(() => ({ + } = r, p = x.useContext(Wn), y = x.useMemo(() => ({ dense: c || p.dense || !1, alignItems: s, disableGutters: u @@ -16297,11 +16297,11 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems }, T = Eb(R), { root: b, ...E - } = T, C = We(S, n); - return /* @__PURE__ */ N.jsx(zn.Provider, { + } = T, w = We(S, n); + return /* @__PURE__ */ N.jsx(Wn.Provider, { value: y, children: /* @__PURE__ */ N.jsx(Sb, { - ref: C, + ref: w, href: g.href || g.to, component: (g.href || g.to) && a === "div" ? "button" : a, focusVisibleClassName: ie(T.focusVisible, h), @@ -16313,7 +16313,7 @@ const wn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems }) }); }); -process.env.NODE_ENV !== "production" && (Es.propTypes = { +process.env.NODE_ENV !== "production" && (Ss.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -16394,7 +16394,7 @@ process.env.NODE_ENV !== "production" && (Es.propTypes = { function Tb(e) { return le("MuiListItemText", e); } -const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), xb = (e) => { +const yr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), xb = (e) => { const { classes: t, inset: n, @@ -16415,9 +16415,9 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar ownerState: n } = e; return [{ - [`& .${hr.primary}`]: t.primary + [`& .${yr.primary}`]: t.primary }, { - [`& .${hr.secondary}`]: t.secondary + [`& .${yr.secondary}`]: t.secondary }, t.root, n.inset && t.inset, n.primary && n.secondary && t.multiline, n.dense && t.dense]; } })({ @@ -16426,10 +16426,10 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar marginTop: 4, marginBottom: 4, // Combine this and the below selector once https://github.com/emotion-js/emotion/issues/3366 is solved - [`.${Sa.root}:where(& .${hr.primary})`]: { + [`.${Sa.root}:where(& .${yr.primary})`]: { display: "block" }, - [`.${Sa.root}:where(& .${hr.secondary})`]: { + [`.${Sa.root}:where(& .${yr.secondary})`]: { display: "block" }, variants: [{ @@ -16466,7 +16466,7 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar ...g } = r, { dense: p - } = x.useContext(zn); + } = x.useContext(Wn); let y = c ?? s, S = d; const R = { ...r, @@ -16482,7 +16482,7 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar secondary: h, ...m } - }, [E, C] = Ce("root", { + }, [E, w] = we("root", { className: ie(T.root, i), elementType: Ob, externalForwardedProps: { @@ -16491,12 +16491,12 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar }, ownerState: R, ref: n - }), [k, D] = Ce("primary", { + }), [k, L] = we("primary", { className: T.primary, elementType: Tt, externalForwardedProps: b, ownerState: R - }), [H, G] = Ce("secondary", { + }), [H, G] = we("secondary", { className: T.secondary, elementType: Tt, externalForwardedProps: b, @@ -16504,8 +16504,8 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar }); return y != null && y.type !== Tt && !a && (y = /* @__PURE__ */ N.jsx(k, { variant: p ? "body2" : "body1", - component: D != null && D.variant ? void 0 : "span", - ...D, + component: L != null && L.variant ? void 0 : "span", + ...L, children: y })), S != null && S.type !== Tt && !a && (S = /* @__PURE__ */ N.jsx(H, { variant: "body2", @@ -16513,7 +16513,7 @@ const hr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar ...G, children: S })), /* @__PURE__ */ N.jsxs(E, { - ...C, + ...w, children: [y, S] }); }); @@ -16591,7 +16591,7 @@ process.env.NODE_ENV !== "production" && (Nc.propTypes = { */ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]) }); -function Ho(e, t, n) { +function qo(e, t, n) { return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : e.firstChild; } function ja(e, t, n) { @@ -16647,8 +16647,8 @@ const $c = /* @__PURE__ */ x.forwardRef(function(t, n) { }) => { const E = !m.current.style.width; if (T.clientHeight < m.current.clientHeight && E) { - const C = `${Tc(Ct(T))}px`; - m.current.style[b === "rtl" ? "paddingLeft" : "paddingRight"] = C, m.current.style.width = `calc(100% + ${C})`; + const w = `${Tc(wt(T))}px`; + m.current.style[b === "rtl" ? "paddingLeft" : "paddingRight"] = w, m.current.style.width = `calc(100% + ${w})`; } return m.current; } @@ -16661,18 +16661,18 @@ const $c = /* @__PURE__ */ x.forwardRef(function(t, n) { } const k = cn(nt(b)); if (E === "ArrowDown") - T.preventDefault(), Pn(b, k, u, c, Ho); + T.preventDefault(), Pn(b, k, u, c, qo); else if (E === "ArrowUp") T.preventDefault(), Pn(b, k, u, c, ja); else if (E === "Home") - T.preventDefault(), Pn(b, null, u, c, Ho); + T.preventDefault(), Pn(b, null, u, c, qo); else if (E === "End") T.preventDefault(), Pn(b, null, u, c, ja); else if (E.length === 1) { - const D = g.current, H = E.toLowerCase(), G = performance.now(); - D.keys.length > 0 && (G - D.lastTime > 500 ? (D.keys = [], D.repeating = !0, D.previousKeyMatched = !0) : D.repeating && H !== D.keys[0] && (D.repeating = !1)), D.lastTime = G, D.keys.push(H); - const F = k && !D.repeating && kc(k, D); - D.previousKeyMatched && (F || Pn(b, k, !1, c, Ho, D)) ? T.preventDefault() : D.previousKeyMatched = !1; + const L = g.current, H = E.toLowerCase(), G = performance.now(); + L.keys.length > 0 && (G - L.lastTime > 500 ? (L.keys = [], L.repeating = !0, L.previousKeyMatched = !0) : L.repeating && H !== L.keys[0] && (L.repeating = !1)), L.lastTime = G, L.keys.push(H); + const z = k && !L.repeating && kc(k, L); + L.previousKeyMatched && (z || Pn(b, k, !1, c, qo, L)) ? T.preventDefault() : L.previousKeyMatched = !1; } d && d(T); }, y = We(m, n); @@ -16692,7 +16692,7 @@ const $c = /* @__PURE__ */ x.forwardRef(function(t, n) { } return T; }); - return /* @__PURE__ */ N.jsx(Qs, { + return /* @__PURE__ */ N.jsx(Zs, { role: "menu", ref: y, className: l, @@ -16765,7 +16765,7 @@ function Ba(e) { function kn(e) { return typeof e == "function" ? e() : e; } -const Cb = (e) => { +const wb = (e) => { const { classes: t } = e; @@ -16773,7 +16773,7 @@ const Cb = (e) => { root: ["root"], paper: ["paper"] }, Rb, t); -}, wb = ee(Xs, { +}, Cb = ee(Js, { name: "MuiPopover", slot: "Root" })({}), Mc = ee(fo, { @@ -16823,9 +16823,9 @@ const Cb = (e) => { transitionDuration: b = "auto", TransitionProps: E = {}, // TODO: remove in v7 - disableScrollLock: C = !1, + disableScrollLock: w = !1, ...k - } = r, D = x.useRef(), H = { + } = r, L = x.useRef(), H = { ...r, anchorOrigin: a, anchorReference: c, @@ -16835,85 +16835,85 @@ const Cb = (e) => { TransitionComponent: T, transitionDuration: b, TransitionProps: E - }, G = Cb(H), F = x.useCallback(() => { + }, G = wb(H), z = x.useCallback(() => { if (c === "anchorPosition") return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using .')), l; - const z = kn(i), Z = z && z.nodeType === 1 ? z : nt(D.current).body, _ = Z.getBoundingClientRect(); + const D = kn(i), Q = D && D.nodeType === 1 ? D : nt(L.current).body, P = Q.getBoundingClientRect(); if (process.env.NODE_ENV !== "production") { - const ae = Z.getBoundingClientRect(); + const ae = Q.getBoundingClientRect(); mc() && ae.top === 0 && ae.left === 0 && ae.right === 0 && ae.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } return { - top: _.top + La(_, a.vertical), - left: _.left + Da(_, a.horizontal) + top: P.top + La(P, a.vertical), + left: P.left + Da(P, a.horizontal) }; - }, [i, a.horizontal, a.vertical, l, c]), f = x.useCallback((z) => ({ - vertical: La(z, R.vertical), - horizontal: Da(z, R.horizontal) - }), [R.horizontal, R.vertical]), A = x.useCallback((z) => { - const Z = { - width: z.offsetWidth, - height: z.offsetHeight - }, _ = f(Z); + }, [i, a.horizontal, a.vertical, l, c]), f = x.useCallback((D) => ({ + vertical: La(D, R.vertical), + horizontal: Da(D, R.horizontal) + }), [R.horizontal, R.vertical]), I = x.useCallback((D) => { + const Q = { + width: D.offsetWidth, + height: D.offsetHeight + }, P = f(Q); if (c === "none") return { top: null, left: null, - transformOrigin: Ba(_) + transformOrigin: Ba(P) }; - const ae = F(); - let ne = ae.top - _.vertical, he = ae.left - _.horizontal; - const Le = ne + Z.height, Ne = he + Z.width, ke = Ct(kn(i)), Ke = ke.innerHeight - m, ot = ke.innerWidth - m; + const ae = z(); + let ne = ae.top - P.vertical, he = ae.left - P.horizontal; + const Le = ne + Q.height, Ne = he + Q.width, ke = wt(kn(i)), Ke = ke.innerHeight - m, ot = ke.innerWidth - m; if (m !== null && ne < m) { const _e = ne - m; - ne -= _e, _.vertical += _e; + ne -= _e, P.vertical += _e; } else if (m !== null && Le > Ke) { const _e = Le - Ke; - ne -= _e, _.vertical += _e; + ne -= _e, P.vertical += _e; } - if (process.env.NODE_ENV !== "production" && Z.height > Ke && Z.height && Ke && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${Z.height - Ke}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(` + if (process.env.NODE_ENV !== "production" && Q.height > Ke && Q.height && Ke && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${Q.height - Ke}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(` `)), m !== null && he < m) { const _e = he - m; - he -= _e, _.horizontal += _e; + he -= _e, P.horizontal += _e; } else if (Ne > ot) { const _e = Ne - ot; - he -= _e, _.horizontal += _e; + he -= _e, P.horizontal += _e; } return { top: `${Math.round(ne)}px`, left: `${Math.round(he)}px`, - transformOrigin: Ba(_) + transformOrigin: Ba(P) }; - }, [i, c, F, f, m]), [I, L] = x.useState(g), M = x.useCallback(() => { - const z = D.current; - if (!z) + }, [i, c, z, f, m]), [A, j] = x.useState(g), $ = x.useCallback(() => { + const D = L.current; + if (!D) return; - const Z = A(z); - Z.top !== null && z.style.setProperty("top", Z.top), Z.left !== null && (z.style.left = Z.left), z.style.transformOrigin = Z.transformOrigin, L(!0); - }, [A]); - x.useEffect(() => (C && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [i, C, M]); + const Q = I(D); + Q.top !== null && D.style.setProperty("top", Q.top), Q.left !== null && (D.style.left = Q.left), D.style.transformOrigin = Q.transformOrigin, j(!0); + }, [I]); + x.useEffect(() => (w && window.addEventListener("scroll", $), () => window.removeEventListener("scroll", $)), [i, w, $]); const Y = () => { - M(); - }, Q = () => { - L(!1); + $(); + }, Z = () => { + j(!1); }; x.useEffect(() => { - g && M(); + g && $(); }), x.useImperativeHandle(s, () => g ? { updatePosition: () => { - M(); + $(); } - } : null, [g, M]), x.useEffect(() => { + } : null, [g, $]), x.useEffect(() => { if (!g) return; - const z = Xl(() => { - M(); - }), Z = Ct(kn(i)); - return Z.addEventListener("resize", z), () => { - z.clear(), Z.removeEventListener("resize", z); + const D = Xl(() => { + $(); + }), Q = wt(kn(i)); + return Q.addEventListener("resize", D), () => { + D.clear(), Q.removeEventListener("resize", D); }; - }, [i, g, M]); + }, [i, g, $]); let X = b; const O = { slots: { @@ -16925,19 +16925,19 @@ const Cb = (e) => { paper: p, ...S } - }, [P, q] = Ce("transition", { - elementType: Ur, + }, [_, q] = we("transition", { + elementType: Vr, externalForwardedProps: O, ownerState: H, - getSlotProps: (z) => ({ - ...z, - onEntering: (Z, _) => { + getSlotProps: (D) => ({ + ...D, + onEntering: (Q, P) => { var ae; - (ae = z.onEntering) == null || ae.call(z, Z, _), Y(); + (ae = D.onEntering) == null || ae.call(D, Q, P), Y(); }, - onExited: (Z) => { - var _; - (_ = z.onExited) == null || _.call(z, Z), Q(); + onExited: (Q) => { + var P; + (P = D.onExited) == null || P.call(D, Q), Z(); } }), additionalProps: { @@ -16945,14 +16945,14 @@ const Cb = (e) => { in: g } }); - b === "auto" && !P.muiSupportAuto && (X = void 0); - const B = h || (i ? nt(kn(i)).body : void 0), [J, { - slots: $, - slotProps: V, - ...W - }] = Ce("root", { + b === "auto" && !_.muiSupportAuto && (X = void 0); + const F = h || (i ? nt(kn(i)).body : void 0), [J, { + slots: W, + slotProps: B, + ...V + }] = we("root", { ref: n, - elementType: wb, + elementType: Cb, externalForwardedProps: { ...O, ...k @@ -16967,33 +16967,33 @@ const Cb = (e) => { invisible: !0 }) }, - container: B, + container: F, open: g }, ownerState: H, className: ie(G.root, d) - }), [U, K] = Ce("paper", { - ref: D, + }), [U, K] = we("paper", { + ref: L, className: G.paper, elementType: Mc, externalForwardedProps: O, shouldForwardComponentProp: !0, additionalProps: { elevation: v, - style: I ? void 0 : { + style: A ? void 0 : { opacity: 0 } }, ownerState: H }); return /* @__PURE__ */ N.jsx(J, { - ...W, - ...!$r(J) && { - slots: $, - slotProps: V, - disableScrollLock: C + ...V, + ...!Mr(J) && { + slots: W, + slotProps: B, + disableScrollLock: w }, - children: /* @__PURE__ */ N.jsx(P, { + children: /* @__PURE__ */ N.jsx(_, { ...q, timeout: X, children: /* @__PURE__ */ N.jsx(U, { @@ -17018,7 +17018,7 @@ process.env.NODE_ENV !== "production" && (jc.propTypes = { * or a function that returns either. * It's used to set the position of the popover. */ - anchorEl: Xt(o.oneOfType([Vn, o.func]), (e) => { + anchorEl: Xt(o.oneOfType([zn, o.func]), (e) => { if (e.open && (!e.anchorReference || e.anchorReference === "anchorEl")) { const t = kn(e.anchorEl); if (t && t.nodeType === 1) { @@ -17101,7 +17101,7 @@ process.env.NODE_ENV !== "production" && (jc.propTypes = { * By default, it uses the body of the anchorEl's top-level document object, * so it's simply `document.body` most of the time. */ - container: o.oneOfType([Vn, o.func]), + container: o.oneOfType([zn, o.func]), /** * Disable the scroll lock behavior. * @default false @@ -17136,7 +17136,7 @@ process.env.NODE_ENV !== "production" && (jc.propTypes = { * @default {} */ PaperProps: o.shape({ - component: Gs + component: Ys }), /** * The props used for each slot inside. @@ -17274,17 +17274,17 @@ const _b = { transitionDuration: m, TransitionProps: p, variant: y - }, C = Ib(E), k = s && !l && d, D = x.useRef(null), H = (X, O) => { - D.current && D.current.adjustStyleForScrollbar(X, { + }, w = Ib(E), k = s && !l && d, L = x.useRef(null), H = (X, O) => { + L.current && L.current.adjustStyleForScrollbar(X, { direction: b ? "rtl" : "ltr" }), g && g(X, O); }, G = (X) => { X.key === "Tab" && (X.preventDefault(), u && u(X, "tabKeyDown")); }; - let F = -1; + let z = -1; x.Children.map(i, (X, O) => { /* @__PURE__ */ x.isValidElement(X) && (process.env.NODE_ENV !== "production" && qt.isFragment(X) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(` -`)), X.props.disabled || (y === "selectedMenu" && X.props.selected || F === -1) && (F = O)); +`)), X.props.disabled || (y === "selectedMenu" && X.props.selected || z === -1) && (z = O)); }); const f = { slots: S, @@ -17294,31 +17294,31 @@ const _b = { paper: h, ...R } - }, A = wy({ + }, I = Cy({ elementType: S.root, externalSlotProps: R.root, ownerState: E, - className: [C.root, a] - }), [I, L] = Ce("paper", { - className: C.paper, + className: [w.root, a] + }), [A, j] = we("paper", { + className: w.paper, elementType: kb, externalForwardedProps: f, shouldForwardComponentProp: !0, ownerState: E - }), [M, Y] = Ce("list", { - className: ie(C.list, c.className), + }), [$, Y] = we("list", { + className: ie(w.list, c.className), elementType: $b, shouldForwardComponentProp: !0, externalForwardedProps: f, getSlotProps: (X) => ({ ...X, onKeyDown: (O) => { - var P; - G(O), (P = X.onKeyDown) == null || P.call(X, O); + var _; + G(O), (_ = X.onKeyDown) == null || _.call(X, O); } }), ownerState: E - }), Q = typeof f.slotProps.transition == "function" ? f.slotProps.transition(E) : f.slotProps.transition; + }), Z = typeof f.slotProps.transition == "function" ? f.slotProps.transition(E) : f.slotProps.transition; return /* @__PURE__ */ N.jsx(Nb, { onClose: u, anchorOrigin: { @@ -17328,7 +17328,7 @@ const _b = { transformOrigin: b ? _b : Ab, slots: { root: S.root, - paper: I, + paper: A, backdrop: S.backdrop, ...S.transition && { // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover @@ -17336,14 +17336,14 @@ const _b = { } }, slotProps: { - root: A, - paper: L, + root: I, + paper: j, backdrop: typeof R.backdrop == "function" ? R.backdrop(E) : R.backdrop, transition: { - ...Q, + ...Z, onEntering: (...X) => { var O; - H(...X), (O = Q == null ? void 0 : Q.onEntering) == null || O.call(Q, ...X); + H(...X), (O = Z == null ? void 0 : Z.onEntering) == null || O.call(Z, ...X); } } }, @@ -17353,9 +17353,9 @@ const _b = { ownerState: E, ...T, classes: v, - children: /* @__PURE__ */ N.jsx(M, { - actions: D, - autoFocus: s && (F === -1 || l), + children: /* @__PURE__ */ N.jsx($, { + actions: L, + autoFocus: s && (z === -1 || l), autoFocusItem: k, variant: y, ...Y, @@ -17372,7 +17372,7 @@ process.env.NODE_ENV !== "production" && (Lc.propTypes = { * An HTML element, or a function that returns one. * It's used to set the position of the menu. */ - anchorEl: o.oneOfType([Vn, o.func]), + anchorEl: o.oneOfType([zn, o.func]), /** * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled * children are not focusable. If you set this prop to `false` focus will be placed @@ -17477,7 +17477,7 @@ process.env.NODE_ENV !== "production" && (Lc.propTypes = { function Mb(e) { return le("MuiNativeSelect", e); } -const Zs = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), jb = (e) => { +const ei = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), jb = (e) => { const { classes: t, variant: n, @@ -17509,7 +17509,7 @@ const Zs = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli // Reset Chrome style borderRadius: 0 }, - [`&.${Zs.disabled}`]: { + [`&.${ei.disabled}`]: { cursor: "default" }, "&[multiple]": { @@ -17563,7 +17563,7 @@ const Zs = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli ownerState: n } = e; return [t.select, t[n.variant], n.error && t.error, { - [`&.${Zs.multiple}`]: t.multiple + [`&.${ei.multiple}`]: t.multiple }]; } })({}), Bc = ee("svg", { @@ -17580,7 +17580,7 @@ const Zs = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli // Don't block pointer events on the select under the icon. pointerEvents: "none", color: (e.vars || e).palette.action.active, - [`&.${Zs.disabled}`]: { + [`&.${ei.disabled}`]: { color: (e.vars || e).palette.action.disabled }, variants: [{ @@ -17785,7 +17785,7 @@ const Vb = ee(Dc, { }; return de(l, Uc, t); }, zc = /* @__PURE__ */ x.forwardRef(function(t, n) { - var ri, oi, si, ii; + var oi, si, ii, ai; const { "aria-describedby": r, "aria-label": s, @@ -17806,65 +17806,65 @@ const Vb = ee(Dc, { name: T, onBlur: b, onChange: E, - onClose: C, + onClose: w, onFocus: k, // eslint-disable-next-line react/prop-types - onKeyDown: D, + onKeyDown: L, // eslint-disable-next-line react/prop-types onMouseDown: H, onOpen: G, - open: F, + open: z, readOnly: f, - renderValue: A, - required: I, - SelectDisplayProps: L = {}, - tabIndex: M, + renderValue: I, + required: A, + SelectDisplayProps: j = {}, + tabIndex: $, // catching `type` from Input which makes no sense for SelectInput type: Y, - value: Q, + value: Z, variant: X = "standard", ...O - } = t, [P, q] = us({ - controlled: Q, + } = t, [_, q] = ds({ + controlled: Z, default: d, name: "Select" - }), [B, J] = us({ - controlled: F, + }), [F, J] = ds({ + controlled: z, default: u, name: "Select" - }), $ = x.useRef(null), V = x.useRef(null), [W, U] = x.useState(null), { + }), W = x.useRef(null), B = x.useRef(null), [V, U] = x.useState(null), { current: K - } = x.useRef(F != null), [z, Z] = x.useState(), [_, ae] = x.useState(null), ne = We(n, p), he = x.useCallback((oe) => { - V.current = oe, oe && U(oe); - }, []), Le = W == null ? void 0 : W.parentNode; + } = x.useRef(z != null), [D, Q] = x.useState(), [P, ae] = x.useState(null), ne = We(n, p), he = x.useCallback((oe) => { + B.current = oe, oe && U(oe); + }, []), Le = V == null ? void 0 : V.parentNode; x.useImperativeHandle(ne, () => ({ focus: () => { - V.current.focus(); + B.current.focus(); }, - node: $.current, - value: P - }), [P]); - const Ne = W !== null && B; + node: W.current, + value: _ + }), [_]); + const Ne = V !== null && F; x.useEffect(() => { if (!Ne || !Le || a || typeof ResizeObserver > "u") return; const oe = new ResizeObserver(() => { - Z(Le.clientWidth); + Q(Le.clientWidth); }); return oe.observe(Le), () => { oe.disconnect(); }; }, [Ne, Le, a]), x.useEffect(() => { - u && B && W && !K && (Z(a ? null : Le.clientWidth), V.current.focus()); - }, [W, a]), x.useEffect(() => { - i && V.current.focus(); + u && F && V && !K && (Q(a ? null : Le.clientWidth), B.current.focus()); + }, [V, a]), x.useEffect(() => { + i && B.current.focus(); }, [i]), x.useEffect(() => { if (!y) return; - const oe = nt(V.current).getElementById(y); + const oe = nt(B.current).getElementById(y); if (oe) { const ce = () => { - getSelection().isCollapsed && V.current.focus(); + getSelection().isCollapsed && B.current.focus(); }; return oe.addEventListener("click", ce), () => { oe.removeEventListener("click", ce); @@ -17872,9 +17872,9 @@ const Vb = ee(Dc, { } }, [y]); const ke = (oe, ce) => { - oe ? (ae(Bb(ce)), G && G(ce)) : (ae(null), C && C(ce)), K || (Z(a ? null : Le.clientWidth), J(oe)); + oe ? (ae(Bb(ce)), G && G(ce)) : (ae(null), w && w(ce)), K || (Q(a ? null : Le.clientWidth), J(oe)); }, Ke = (oe) => { - H == null || H(oe), oe.button === 0 && (oe.preventDefault(), V.current.focus(), ke(!0, oe)); + H == null || H(oe), oe.button === 0 && (oe.preventDefault(), B.current.focus(), ke(!0, oe)); }, ot = (oe) => { ke(!1, oe); }, _e = x.Children.toArray(l), se = (oe) => { @@ -17884,20 +17884,20 @@ const Vb = ee(Dc, { let De; if (ce.currentTarget.hasAttribute("tabindex")) { if (R) { - De = Array.isArray(P) ? P.slice() : []; - const Zt = P.indexOf(oe.props.value); + De = Array.isArray(_) ? _.slice() : []; + const Zt = _.indexOf(oe.props.value); Zt === -1 ? De.push(oe.props.value) : De.splice(Zt, 1); } else De = oe.props.value; - if (oe.props.onClick && oe.props.onClick(ce), P !== De && (q(De), E)) { - const Zt = ce.nativeEvent || ce, ai = new Zt.constructor(Zt.type, Zt); - Object.defineProperty(ai, "target", { + if (oe.props.onClick && oe.props.onClick(ce), _ !== De && (q(De), E)) { + const Zt = ce.nativeEvent || ce, li = new Zt.constructor(Zt.type, Zt); + Object.defineProperty(li, "target", { writable: !0, value: { value: De, name: T } - }), E(ai, oe); + }), E(li, oe); } R || ke(!1, ce); } @@ -17909,12 +17909,12 @@ const Vb = ee(Dc, { // The native select doesn't respond to enter on macOS, but it's recommended by // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/ "Enter" - ].includes(oe.key) && (oe.preventDefault(), ke(!0, oe)), D == null || D(oe)); + ].includes(oe.key) && (oe.preventDefault(), ke(!0, oe)), L == null || L(oe)); }, To = (oe) => { !Ne && b && (Object.defineProperty(oe, "target", { writable: !0, value: { - value: P, + value: _, name: T } }), b(oe)); @@ -17922,10 +17922,10 @@ const Vb = ee(Dc, { delete O["aria-invalid"]; let ut, vn; const kt = []; - let wt = !1, Jt = !1; - (Lr({ - value: P - }) || v) && (A ? ut = A(P) : wt = !0); + let Ct = !1, Jt = !1; + (Dr({ + value: _ + }) || v) && (I ? ut = I(_) : Ct = !0); const ye = _e.map((oe) => { if (!/* @__PURE__ */ x.isValidElement(oe)) return null; @@ -17933,11 +17933,11 @@ const Vb = ee(Dc, { `)); let ce; if (R) { - if (!Array.isArray(P)) + if (!Array.isArray(_)) throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : xt(2)); - ce = P.some((De) => Fa(De, oe.props.value)), ce && wt && kt.push(oe.props.children); + ce = _.some((De) => Fa(De, oe.props.value)), ce && Ct && kt.push(oe.props.children); } else - ce = Fa(P, oe.props.value), ce && wt && (vn = oe.props.children); + ce = Fa(_, oe.props.value), ce && Ct && (vn = oe.props.children); return ce && (Jt = !0), /* @__PURE__ */ x.cloneElement(oe, { "aria-selected": ce ? "true" : "false", onClick: Nt(oe), @@ -17953,52 +17953,52 @@ const Vb = ee(Dc, { }); }); process.env.NODE_ENV !== "production" && x.useEffect(() => { - if (!Jt && !R && P !== "") { + if (!Jt && !R && _ !== "") { const oe = _e.map((ce) => ce.props.value); - console.warn([`MUI: You have provided an out-of-range value \`${P}\` for the select ${T ? `(name="${T}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${oe.filter((ce) => ce != null).map((ce) => `\`${ce}\``).join(", ") || '""'}.`].join(` + console.warn([`MUI: You have provided an out-of-range value \`${_}\` for the select ${T ? `(name="${T}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${oe.filter((ce) => ce != null).map((ce) => `\`${ce}\``).join(", ") || '""'}.`].join(` `)); } - }, [Jt, _e, R, T, P]), wt && (R ? kt.length === 0 ? ut = null : ut = kt.reduce((oe, ce, De) => (oe.push(ce), De < kt.length - 1 && oe.push(", "), oe), []) : ut = vn); - let vt = z; - !a && K && W && (vt = Le.clientWidth); + }, [Jt, _e, R, T, _]), Ct && (R ? kt.length === 0 ? ut = null : ut = kt.reduce((oe, ce, De) => (oe.push(ce), De < kt.length - 1 && oe.push(", "), oe), []) : ut = vn); + let vt = D; + !a && K && V && (vt = Le.clientWidth); let st; - typeof M < "u" ? st = M : st = h ? null : 0; - const ar = L.id || (T ? `mui-component-select-${T}` : void 0), Qt = { + typeof $ < "u" ? st = $ : st = h ? null : 0; + const lr = j.id || (T ? `mui-component-select-${T}` : void 0), Qt = { ...t, variant: X, - value: P, + value: _, open: Ne, error: m }, xo = Hb(Qt), Oo = { ...S.PaperProps, - ...typeof ((ri = S.slotProps) == null ? void 0 : ri.paper) == "function" ? S.slotProps.paper(Qt) : (oi = S.slotProps) == null ? void 0 : oi.paper + ...typeof ((oi = S.slotProps) == null ? void 0 : oi.paper) == "function" ? S.slotProps.paper(Qt) : (si = S.slotProps) == null ? void 0 : si.paper }, Gc = { ...S.MenuListProps, - ...typeof ((si = S.slotProps) == null ? void 0 : si.list) == "function" ? S.slotProps.list(Qt) : (ii = S.slotProps) == null ? void 0 : ii.list - }, ni = tr(); + ...typeof ((ii = S.slotProps) == null ? void 0 : ii.list) == "function" ? S.slotProps.list(Qt) : (ai = S.slotProps) == null ? void 0 : ai.list + }, ri = nr(); return /* @__PURE__ */ N.jsxs(x.Fragment, { children: [/* @__PURE__ */ N.jsx(Vb, { as: "div", ref: he, tabIndex: st, role: "combobox", - "aria-controls": Ne ? ni : void 0, + "aria-controls": Ne ? ri : void 0, "aria-disabled": h ? "true" : void 0, "aria-expanded": Ne ? "true" : "false", "aria-haspopup": "listbox", "aria-label": s, - "aria-labelledby": [y, ar].filter(Boolean).join(" ") || void 0, + "aria-labelledby": [y, lr].filter(Boolean).join(" ") || void 0, "aria-describedby": r, - "aria-required": I ? "true" : void 0, + "aria-required": A ? "true" : void 0, "aria-invalid": m ? "true" : void 0, onKeyDown: He, onMouseDown: h || f ? null : Ke, onBlur: To, onFocus: k, - ...L, + ...j, ownerState: Qt, - className: ie(L.className, xo.select, c), - id: ar, + className: ie(j.className, xo.select, c), + id: lr, children: Fb(ut) ? ( // notranslate needed while Google Translate will not fix zero-width space issue Ua || (Ua = /* @__PURE__ */ N.jsx("span", { @@ -18009,16 +18009,16 @@ const Vb = ee(Dc, { ) : ut }), /* @__PURE__ */ N.jsx(Wb, { "aria-invalid": m, - value: Array.isArray(P) ? P.join(",") : P, + value: Array.isArray(_) ? _.join(",") : _, name: T, - ref: $, + ref: W, "aria-hidden": !0, onChange: se, tabIndex: -1, disabled: h, className: xo.nativeInput, autoFocus: i, - required: I, + required: A, ...O, ownerState: Qt }), /* @__PURE__ */ N.jsx(zb, { @@ -18026,7 +18026,7 @@ const Vb = ee(Dc, { className: xo.icon, ownerState: Qt }), /* @__PURE__ */ N.jsx(Ub, { - value: _, + value: P, children: /* @__PURE__ */ N.jsx(Lc, { id: `menu-${T || ""}`, anchorEl: Le, @@ -18048,7 +18048,7 @@ const Vb = ee(Dc, { role: "listbox", "aria-multiselectable": R ? "true" : void 0, disableListWrap: !0, - id: ni, + id: ri, ...Gc }, paper: { @@ -18541,7 +18541,7 @@ const Yb = (e) => { multiline: c, size: y.size, type: v - }, R = d.root ?? s.Root ?? Kb, T = d.input ?? s.Input ?? Jb, [b, E] = Ce("notchedOutline", { + }, R = d.root ?? s.Root ?? Kb, T = d.input ?? s.Input ?? Jb, [b, E] = we("notchedOutline", { elementType: Xb, className: g.notchedOutline, shouldForwardComponentProp: !0, @@ -18562,9 +18562,9 @@ const Yb = (e) => { input: T }, slotProps: h, - renderSuffix: (C) => /* @__PURE__ */ N.jsx(b, { + renderSuffix: (w) => /* @__PURE__ */ N.jsx(b, { ...E, - notched: typeof u < "u" ? u : !!(C.startAdornment || C.filled || C.focused) + notched: typeof u < "u" ? u : !!(w.startAdornment || w.filled || w.focused) }), fullWidth: i, inputComponent: a, @@ -18761,11 +18761,11 @@ const Qb = (e) => { ...t, ...r }; -}, ei = { +}, ti = { name: "MuiSelect", slot: "Root", shouldForwardProp: (e) => Ye(e) && e !== "variant" -}, Zb = ee(Eo, ei)(""), ev = ee(So, ei)(""), tv = ee(vo, ei)(""), ti = /* @__PURE__ */ x.forwardRef(function(t, n) { +}, Zb = ee(Eo, ti)(""), ev = ee(So, ti)(""), tv = ee(vo, ti)(""), ni = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ name: "MuiSelect", props: t @@ -18788,35 +18788,35 @@ const Qb = (e) => { onClose: T, onOpen: b, open: E, - renderValue: C, + renderValue: w, SelectDisplayProps: k, - variant: D = "outlined", + variant: L = "outlined", ...H - } = r, G = R ? Fc : zc, F = It(), f = bn({ + } = r, G = R ? Fc : zc, z = It(), f = bn({ props: r, - muiFormControl: F, + muiFormControl: z, states: ["variant", "error"] - }), A = f.variant || D, I = { + }), I = f.variant || L, A = { ...r, - variant: A, + variant: I, classes: a - }, L = Qb(I), { - root: M, + }, j = Qb(A), { + root: $, ...Y - } = L, Q = v || { + } = j, Z = v || { standard: /* @__PURE__ */ N.jsx(Zb, { - ownerState: I + ownerState: A }), outlined: /* @__PURE__ */ N.jsx(ev, { label: g, - ownerState: I + ownerState: A }), filled: /* @__PURE__ */ N.jsx(tv, { - ownerState: I + ownerState: A }) - }[A], X = We(n, or(Q)); + }[I], X = We(n, sr(Z)); return /* @__PURE__ */ N.jsx(x.Fragment, { - children: /* @__PURE__ */ x.cloneElement(Q, { + children: /* @__PURE__ */ x.cloneElement(Z, { // Most of the logic is implemented in `SelectInput`. // The `Select` component is a simple API wrapper to expose something better to play with. inputComponent: G, @@ -18824,7 +18824,7 @@ const Qb = (e) => { children: i, error: f.error, IconComponent: d, - variant: A, + variant: I, type: void 0, // We render a select. We can ignore the type provided by the `Input`. multiple: S, @@ -18839,7 +18839,7 @@ const Qb = (e) => { onClose: T, onOpen: b, open: E, - renderValue: C, + renderValue: w, SelectDisplayProps: { id: h, ...k @@ -18849,20 +18849,20 @@ const Qb = (e) => { classes: m ? Ve(Y, m.classes) : Y, ...v ? v.props.inputProps : {} }, - ...(S && R || u) && A === "outlined" ? { + ...(S && R || u) && I === "outlined" ? { notched: !0 } : {}, ref: X, - className: ie(Q.props.className, l, L.root), + className: ie(Z.props.className, l, j.root), // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894. ...!v && { - variant: A + variant: I }, ...H }) }); }); -process.env.NODE_ENV !== "production" && (ti.propTypes = { +process.env.NODE_ENV !== "production" && (ni.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -19009,7 +19009,7 @@ process.env.NODE_ENV !== "production" && (ti.propTypes = { */ variant: o.oneOf(["filled", "outlined", "standard"]) }); -ti.muiName = "Select"; +ni.muiName = "Select"; function nv(e) { return le("MuiTextField", e); } @@ -19025,10 +19025,10 @@ const rv = { return de({ root: ["root"] }, nv, t); -}, sv = ee(wc, { +}, sv = ee(Cc, { name: "MuiTextField", slot: "Root" -})({}), Ss = /* @__PURE__ */ x.forwardRef(function(t, n) { +})({}), Ts = /* @__PURE__ */ x.forwardRef(function(t, n) { const r = me({ props: t, name: "MuiTextField" @@ -19051,24 +19051,24 @@ const rv = { inputRef: T, label: b, maxRows: E, - minRows: C, + minRows: w, multiline: k = !1, - name: D, + name: L, onBlur: H, onChange: G, - onFocus: F, + onFocus: z, placeholder: f, - required: A = !1, - rows: I, - select: L = !1, - SelectProps: M, + required: I = !1, + rows: A, + select: j = !1, + SelectProps: $, slots: Y = {}, - slotProps: Q = {}, + slotProps: Z = {}, type: X, value: O, - variant: P = "outlined", + variant: _ = "outlined", ...q - } = r, B = { + } = r, F = { ...r, autoFocus: i, color: c, @@ -19076,80 +19076,80 @@ const rv = { error: h, fullWidth: m, multiline: k, - required: A, - select: L, - variant: P - }, J = ov(B); - process.env.NODE_ENV !== "production" && L && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`."); - const $ = tr(p), V = g && $ ? `${$}-helper-text` : void 0, W = b && $ ? `${$}-label` : void 0, U = rv[P], K = { + required: I, + select: j, + variant: _ + }, J = ov(F); + process.env.NODE_ENV !== "production" && j && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`."); + const W = nr(p), B = g && W ? `${W}-helper-text` : void 0, V = b && W ? `${W}-label` : void 0, U = rv[_], K = { slots: Y, slotProps: { input: R, inputLabel: y, htmlInput: S, formHelperText: v, - select: M, - ...Q + select: $, + ...Z } - }, z = {}, Z = K.slotProps.inputLabel; - P === "outlined" && (Z && typeof Z.shrink < "u" && (z.notched = Z.shrink), z.label = b), L && ((!M || !M.native) && (z.id = void 0), z["aria-describedby"] = void 0); - const [_, ae] = Ce("root", { + }, D = {}, Q = K.slotProps.inputLabel; + _ === "outlined" && (Q && typeof Q.shrink < "u" && (D.notched = Q.shrink), D.label = b), j && ((!$ || !$.native) && (D.id = void 0), D["aria-describedby"] = void 0); + const [P, ae] = we("root", { elementType: sv, shouldForwardComponentProp: !0, externalForwardedProps: { ...K, ...q }, - ownerState: B, + ownerState: F, className: ie(J.root, l), ref: n, additionalProps: { disabled: d, error: h, fullWidth: m, - required: A, + required: I, color: c, - variant: P + variant: _ } - }), [ne, he] = Ce("input", { + }), [ne, he] = we("input", { elementType: U, externalForwardedProps: K, - additionalProps: z, - ownerState: B - }), [Le, Ne] = Ce("inputLabel", { + additionalProps: D, + ownerState: F + }), [Le, Ne] = we("inputLabel", { elementType: Ic, externalForwardedProps: K, - ownerState: B - }), [ke, Ke] = Ce("htmlInput", { + ownerState: F + }), [ke, Ke] = we("htmlInput", { elementType: "input", externalForwardedProps: K, - ownerState: B - }), [ot, _e] = Ce("formHelperText", { + ownerState: F + }), [ot, _e] = we("formHelperText", { elementType: Pc, externalForwardedProps: K, - ownerState: B - }), [se, Nt] = Ce("select", { - elementType: ti, + ownerState: F + }), [se, Nt] = we("select", { + elementType: ni, externalForwardedProps: K, - ownerState: B + ownerState: F }), He = /* @__PURE__ */ N.jsx(ne, { - "aria-describedby": V, + "aria-describedby": B, autoComplete: s, autoFocus: i, defaultValue: u, fullWidth: m, multiline: k, - name: D, - rows: I, + name: L, + rows: A, maxRows: E, - minRows: C, + minRows: w, type: X, value: O, - id: $, + id: W, inputRef: T, onBlur: H, onChange: G, - onFocus: F, + onFocus: z, placeholder: f, inputProps: Ke, slots: { @@ -19157,29 +19157,29 @@ const rv = { }, ...he }); - return /* @__PURE__ */ N.jsxs(_, { + return /* @__PURE__ */ N.jsxs(P, { ...ae, children: [b != null && b !== "" && /* @__PURE__ */ N.jsx(Le, { - htmlFor: $, - id: W, + htmlFor: W, + id: V, ...Ne, children: b - }), L ? /* @__PURE__ */ N.jsx(se, { - "aria-describedby": V, - id: $, - labelId: W, + }), j ? /* @__PURE__ */ N.jsx(se, { + "aria-describedby": B, + id: W, + labelId: V, value: O, input: He, ...Nt, children: a }) : He, g && /* @__PURE__ */ N.jsx(ot, { - id: V, + id: B, ..._e, children: g })] }); }); -process.env.NODE_ENV !== "production" && (Ss.propTypes = { +process.env.NODE_ENV !== "production" && (Ts.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -19381,10 +19381,10 @@ process.env.NODE_ENV !== "production" && (Ss.propTypes = { */ variant: o.oneOf(["filled", "outlined", "standard"]) }); -const iv = nr(/* @__PURE__ */ N.jsx("path", { +const iv = rr(/* @__PURE__ */ N.jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Clear"); -class Vr { +class Dn { constructor() { this.filters = [], this.paging = { start: 0, length: 25 }, this.orders = {}, this.joins = []; } @@ -19430,7 +19430,7 @@ class Vr { return this.joins.push({ name: t, column_results: n }), this; } clone() { - const t = new Vr(); + const t = new Dn(); return t.filters = JSON.parse(JSON.stringify(this.filters)), t.paging = { ...this.paging }, t.orders = { ...this.orders }, t.joins = JSON.parse(JSON.stringify(this.joins)), t; } build() { @@ -19477,53 +19477,53 @@ function Nv({ multiple: p, customSxTextField: y = {} }) { - const S = av(), [R, T] = $t(!1), [b, E] = $t(""), [C, k] = $t([]), [D, H] = $t(null), [G, F] = $t(!1), [f, A] = $t(0), [I, L] = $t(0), M = ($, V = 400) => { - let W; - return (...U) => { - clearTimeout(W), W = setTimeout(() => { - $(...U); + const S = av(), [R, T] = $t(!1), [b, E] = $t(""), [w, k] = $t([]), [L, H] = $t(null), [G, z] = $t(!1), [f, I] = $t(0), [A, j] = $t(0), $ = (B, V = 400) => { + let U; + return (...K) => { + clearTimeout(U), U = setTimeout(() => { + B(...K); }, V); }; - }, Y = Zc(async ($ = "", V = 0, W = !1) => { - F(!0); - const U = new Vr().setPaging(V, s).setOrder([n], !0); - $ && U.like(n, $), m && m.length > 0 && m.forEach((K) => U.where(K.logic_operator || "=", K.name, K.value, K.operator || "AND", K.value1 || null, K.table_name || null)); + }, Y = Zc(async (B = "", V = 0, U = !1) => { + z(!0); + const K = new Dn().setPaging(V, s).setOrder([n], !0); + B && K.like(n, B), m && m.length > 0 && m.forEach((D) => K.where(D.logic_operator || "=", D.name, D.value, D.operator || "AND", D.value1 || null, D.table_name || null)), m.some((D) => D.name === "company_id") && K.addJoin("company", ["name"]); try { - const K = await xi.search( + const D = await Ao.search( r, - U.build(), + K.build(), { headers: S }, g - ), z = K.data || []; - k((Z) => W ? [...Z, ...z] : z), L(K.totalRecord || 0), A(V); - } catch (K) { - console.error("Fetch Error:", K); + ), Q = D.data || []; + k((P) => U ? [...P, ...Q] : Q), j(D.totalRecord || 0), I(V); + } catch (D) { + console.error("Fetch Error:", D); } finally { - F(!1); + z(!1); } - }, [r, n, s, m]), Q = ($) => { - const { scrollTop: V, scrollHeight: W, clientHeight: U } = $.currentTarget; - if (W - V <= U + 20 && !G && C.length < I) { - const z = f + s; - Y(b, z, !0); + }, [r, n, s, m]), Z = (B) => { + const { scrollTop: V, scrollHeight: U, clientHeight: K } = B.currentTarget; + if (U - V <= K + 20 && !G && w.length < A) { + const Q = f + s; + Y(b, Q, !0); } }, X = eu( - () => M(($) => { - A(0), Y($, 0, !1); + () => $((B) => { + I(0), Y(B, 0, !1); }, 400), [Y] ); - li(() => { - R && (A(0), Y(b, 0, !1)); + ci(() => { + R && (I(0), Y(b, 0, !1)); }, [R]); - const O = async ($) => { - F(!0); - const V = new Vr().setPaging(0, s); - p ? V.in("id", $) : V.equal("id", $); + const O = async (B) => { + z(!0); + const V = new Dn().setPaging(0, s); + p ? V.in("id", B) : V.equal("id", B); try { - const U = (await xi.search( + const K = (await Ao.search( r, V.build(), { @@ -19531,51 +19531,77 @@ function Nv({ }, g )).data || []; - H(p ? U : U[0] || null); - } catch (W) { - console.error(W); + H(p ? K : K[0] || null); + } catch (U) { + console.error(U); } finally { - F(!1); + z(!1); } }; - li(() => { + ci(() => { if (a != null) { - if (typeof a == "object") { - if (p) { - if (Array.isArray(a) && a.length && typeof a[0] == "object") { - H(a); - return; - } - } else if (!Array.isArray(a)) { + if (p) { + if (Array.isArray(a) && a.length === 0) { + H([]); + return; + } + if (Array.isArray(a) && typeof a[0] == "object") { H(a); return; } + } else if (typeof a == "object" && !Array.isArray(a)) { + H(a); + return; } O(a); } }, [a, p]); - const P = ($) => { + const _ = (B) => { if (!p) { - H($), T(!1), E(""), i == null || i($); + H(B), T(!1), E(""), i == null || i(B); return; } H((V) => { - const W = Array.isArray(V) ? V : [], K = W.some((z) => z.id === $.id) ? W.filter((z) => z.id !== $.id) : [...W, $]; - return i == null || i(K), K; + const U = Array.isArray(V) ? V : [], D = U.some((Q) => Q.id === B.id) ? U.filter((Q) => Q.id !== B.id) : [...U, B]; + return i == null || i(D), D; }); }, q = () => { H(p ? [] : null), E(""), k([]), i == null || i(p ? [] : null); - }, B = p ? (D || []).map(($) => { - var V; - return (V = $[n]) == null ? void 0 : V.trim(); - }).filter(Boolean).join(", ") : (D == null ? void 0 : D[n]) || "", J = ($) => p ? (D || []).some((V) => V.id === $.id) : (D == null ? void 0 : D.id) === $.id; + }, F = p ? `${(L == null ? void 0 : L.length) || 0} ${t} selected` : (L == null ? void 0 : L[n]) || "", J = (B) => p ? (L || []).some((V) => V.id === B.id) : (L == null ? void 0 : L.id) === B.id, W = async () => { + z(!0); + const B = 1e3, V = []; + for (let D = 0; D < A; D += B) { + const Q = new Dn().setPaging(D, B).setOrder([n], !0); + b && Q.like(n, b), m != null && m.length && m.forEach( + (P) => Q.where( + P.logic_operator || "=", + P.name, + P.value, + P.operator || "AND", + P.value1 || null, + P.table_name || null + ) + ), V.push( + Ao.search( + r, + Q.build(), + { + headers: S + }, + g + ) + ); + } + const K = (await Promise.all(V)).flatMap((D) => D.data || []); + H(K), i == null || i(K), z(!1); + }; return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [ /* @__PURE__ */ N.jsx( - Ss, + Ts, { id: e, label: t, - value: B, + value: F, fullWidth: !0, required: c, disabled: u, @@ -19591,12 +19617,12 @@ function Nv({ }, slotProps: { input: { - endAdornment: D && /* @__PURE__ */ N.jsx(Ac, { position: "end", children: /* @__PURE__ */ N.jsx( + endAdornment: L && /* @__PURE__ */ N.jsx(Ac, { position: "end", children: /* @__PURE__ */ N.jsx( fc, { size: "small", - onClick: ($) => { - $.stopPropagation(), q(); + onClick: (B) => { + B.stopPropagation(), q(); }, children: /* @__PURE__ */ N.jsx(iv, { sx: { fontSize: 16 } }) } @@ -19611,14 +19637,14 @@ function Nv({ } ), /* @__PURE__ */ N.jsxs(xc, { open: R, onClose: () => T(!1), maxWidth: "sm", fullWidth: !0, children: [ - /* @__PURE__ */ N.jsxs(Cc, { sx: { fontSize: 14 }, children: [ + /* @__PURE__ */ N.jsxs(wc, { sx: { fontSize: 14 }, children: [ "Search ", t ] }), /* @__PURE__ */ N.jsxs( Rc, { - onScroll: Q, + onScroll: Z, sx: { "& .MuiTypography-root": { fontSize: 14 @@ -19635,48 +19661,51 @@ function Nv({ }, children: [ /* @__PURE__ */ N.jsx( - Ss, + Ts, { fullWidth: !0, autoFocus: !0, placeholder: `Search ${t}`, size: "small", sx: { my: 2, position: "sticky", top: 0, zIndex: 10, bgcolor: "background.paper" }, - onChange: ($) => { - const V = $.target.value; + onChange: (B) => { + const V = B.target.value; E(V), X(V); } } ), - /* @__PURE__ */ N.jsx(Qs, { disablePadding: !0, children: /* @__PURE__ */ N.jsxs(N.Fragment, { children: [ + /* @__PURE__ */ N.jsx(Zs, { disablePadding: !0, children: /* @__PURE__ */ N.jsxs(N.Fragment, { children: [ p && /* @__PURE__ */ N.jsx( - Es, + Ss, { - onClick: () => console.log(""), + onClick: W, sx: { fontSize: 14 }, children: "Select All" } ), - C.map(($, V) => /* @__PURE__ */ N.jsxs( - Es, - { - onClick: () => P($), - children: [ - p && /* @__PURE__ */ N.jsx(Sc, { checked: J($) }), - /* @__PURE__ */ N.jsx(Nc, { primary: $[n] }) - ] - }, - `${$.id}-${V}` - )), + w.map((B, V) => { + var U; + return /* @__PURE__ */ N.jsxs( + Ss, + { + onClick: () => _(B), + children: [ + p && /* @__PURE__ */ N.jsx(Sc, { checked: J(B) }), + /* @__PURE__ */ N.jsx(Nc, { primary: B[n], secondary: (U = B.join) == null ? void 0 : U.company_name }) + ] + }, + `${B.id}-${V}` + ); + }), G && /* @__PURE__ */ N.jsx(Tt, { variant: "caption", sx: { display: "block", textAlign: "center", p: 1 }, children: "Loading more..." }) ] }) }), - !G && C.length === 0 && /* @__PURE__ */ N.jsx(Tt, { sx: { textAlign: "center", fontSize: 12, color: "text.secondary", py: 3 }, children: "No Data" }) + !G && w.length === 0 && /* @__PURE__ */ N.jsx(Tt, { sx: { textAlign: "center", fontSize: 12, color: "text.secondary", py: 3 }, children: "No Data" }) ] } ), /* @__PURE__ */ N.jsxs(Oc, { children: [ - /* @__PURE__ */ N.jsx(bs, { onClick: q, size: "small", children: "Clear" }), - /* @__PURE__ */ N.jsx(bs, { onClick: () => T(!1), size: "small", children: "Cancel" }) + /* @__PURE__ */ N.jsx(vs, { onClick: q, size: "small", children: "Clear" }), + /* @__PURE__ */ N.jsx(vs, { onClick: () => T(!1), size: "small", children: "Cancel" }) ] }) ] }) ] }); @@ -19686,7 +19715,7 @@ export { Iv as ApiProvider, Nv as ListVirtual, Kd as addRequest, - xi as apiRequest, + Ao as apiRequest, ep as customRequest, Qd as deleteRequest, Jd as editRequest, diff --git a/src/App.jsx b/src/App.jsx index d33360a..c031963 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,7 +5,7 @@ import { useState } from "react"; const Testing = () => { const token = API_TOKEN; - const [selectedVehicle, setSelectedVehicle] = useState(null); + const [selectedVehicle, setSelectedVehicle] = useState([]); return (
@@ -19,8 +19,9 @@ const Testing = () => { label="Company" name="name" url="/company" - defaultValue={442} + defaultValue={[442,722]} size="small" + multiple /> { url="/vehicle" defaultValue={selectedVehicle} getData={(data) => { - if (data) { - setSelectedVehicle(data.id); - } + const ids = data.map(item => item.id); + setSelectedVehicle(ids); }} size="small" filter={[ - {name:"company_id",value: "442","logic_operator":"=","operator":"AND"} + {name:"company_id",value: "442,722","logic_operator":"IN","operator":"AND"} ]} + multiple />
diff --git a/src/components/ListVirtual.jsx b/src/components/ListVirtual.jsx index ca7b142..3e2976f 100644 --- a/src/components/ListVirtual.jsx +++ b/src/components/ListVirtual.jsx @@ -72,6 +72,10 @@ export default function ListVirtual({ filter.forEach(f => payload.where(f.logic_operator || "=", f.name, f.value, f.operator || "AND", f.value1 || null, f.table_name || null)); } + if (filter.some(f => f.name === "company_id")) { + payload.addJoin("company", ["name"]); + } + try { const res = await apiRequest.search( url, @@ -155,18 +159,23 @@ export default function ListVirtual({ useEffect(() => { if (defaultValue == null) return; - // Already object(s) - if (typeof defaultValue === "object") { - if (multiple) { - if ( - Array.isArray(defaultValue) && - defaultValue.length && - typeof defaultValue[0] === "object" - ) { - setSelected(defaultValue); - return; - } - } else if (!Array.isArray(defaultValue)) { + if (multiple) { + // kosong, jangan request + if (Array.isArray(defaultValue) && defaultValue.length === 0) { + setSelected([]); + return; + } + + // object + if ( + Array.isArray(defaultValue) && + typeof defaultValue[0] === "object" + ) { + setSelected(defaultValue); + return; + } + } else { + if (typeof defaultValue === "object" && !Array.isArray(defaultValue)) { setSelected(defaultValue); return; } @@ -208,10 +217,7 @@ export default function ListVirtual({ }; const displayValue = multiple - ? (selected || []) - .map((x) => x[name]?.trim()) - .filter(Boolean) - .join(", ") + ? `${selected?.length || 0} ${label} selected` : selected?.[name] || ""; const isSelected = (row) => { @@ -222,6 +228,56 @@ export default function ListVirtual({ return (selected || []).some((x) => x.id === row.id); }; + const handleSelectAll = async () => { + setLoading(true); + + const pageSize = 1000; + const requests = []; + + for (let offset = 0; offset < totalRecord; offset += pageSize) { + const payload = new FilterTableBuilder() + .setPaging(offset, pageSize) + .setOrder([name], true); + + if (search) { + payload.like(name, search); + } + + if (filter?.length) { + filter.forEach(f => + payload.where( + f.logic_operator || "=", + f.name, + f.value, + f.operator || "AND", + f.value1 || null, + f.table_name || null + ) + ); + } + + requests.push( + apiRequest.search( + url, + payload.build(), + { + headers: headersRequest, + }, + isApiGo + ) + ); + } + + const responses = await Promise.all(requests); + + const allRows = responses.flatMap(res => res.data || []); + + setSelected(allRows); + getData?.(allRows); + + setLoading(false); + }; + return ( <> {multiple && ( console.log("")} + onClick={handleSelectAll} sx={{ fontSize: 14 }} > Select All @@ -316,7 +372,7 @@ export default function ListVirtual({ )} - + ))}