diff --git a/dist/index.js b/dist/index.js index 05c9038..a0d6921 100644 --- a/dist/index.js +++ b/dist/index.js @@ -260,7 +260,7 @@ 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]), C = { +}))(`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]), P = { isArray: yn, isArrayBuffer: qa, isBuffer: Hn, @@ -321,7 +321,7 @@ const Bu = (e) => { setImmediate: Ja, asap: Vu, isIterable: zu -}, Wu = C.toObjectSet([ +}, Wu = P.toObjectSet([ "age", "authorization", "content-length", @@ -365,12 +365,12 @@ function qu(e) { } const Gu = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Yu = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g"); function xs(e, t) { - return C.isArray(e) ? e.map((n) => xs(n, t)) : qu(String(e).replace(t, "")); + return P.isArray(e) ? e.map((n) => xs(n, t)) : qu(String(e).replace(t, "")); } const Ku = (e) => xs(e, Gu), Xu = (e) => xs(e, Yu); function Qa(e) { const t = /* @__PURE__ */ Object.create(null); - return C.forEach(e.toJSON(), (n, r) => { + return P.forEach(e.toJSON(), (n, r) => { t[r] = Xu(n); }), t; } @@ -379,7 +379,7 @@ function Sn(e) { return e && String(e).trim().toLowerCase(); } function Er(e) { - return e === !1 || e == null ? e : C.isArray(e) ? e.map(Er) : Ku(String(e)); + return e === !1 || e == null ? e : P.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 (C.isFunction(r)) + if (P.isFunction(r)) return r.call(this, t, n); - if (s && (t = n), !!C.isString(t)) { - if (C.isString(r)) + if (s && (t = n), !!P.isString(t)) { + if (P.isString(r)) return t.indexOf(r) !== -1; - if (C.isRegExp(r)) + if (P.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 = C.toCamelCase(" " + t); + const n = P.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 = C.findKey(s, d); + const h = P.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) => C.forEach(l, (u, d) => i(u, d, c)); - if (C.isPlainObject(t) || t instanceof this.constructor) + const a = (l, c) => P.forEach(l, (u, d) => i(u, d, c)); + if (P.isPlainObject(t) || t instanceof this.constructor) a(t, n); - else if (C.isString(t) && (t = t.trim()) && !Qu(t)) + else if (P.isString(t) && (t = t.trim()) && !Qu(t)) a(Hu(t), n); - else if (C.isObject(t) && C.isIterable(t)) { + else if (P.isObject(t) && P.isIterable(t)) { let l = {}, c, u; for (const d of t) { - if (!C.isArray(d)) + if (!P.isArray(d)) throw TypeError("Object iterator must return a key-value pair"); - l[u = d[0]] = (c = l[u]) ? C.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1]; + l[u = d[0]] = (c = l[u]) ? P.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 = C.findKey(this, t); + const r = P.findKey(this, t); if (r) { const s = this[r]; if (!n) return s; if (n === !0) return Ju(s); - if (C.isFunction(n)) + if (P.isFunction(n)) return n.call(this, s, r); - if (C.isRegExp(n)) + if (P.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 = C.findKey(this, t); + const r = P.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 = C.findKey(r, a); + const l = P.findKey(r, a); l && (!n || Ro(r, r[l], l, n)) && (delete r[l], s = !0); } } - return C.isArray(t) ? t.forEach(i) : i(t), s; + return P.isArray(t) ? t.forEach(i) : i(t), s; } clear(t) { const n = Object.keys(this); @@ -492,8 +492,8 @@ let ze = class { } normalize(t) { const n = this, r = {}; - return C.forEach(this, (s, i) => { - const a = C.findKey(r, i); + return P.forEach(this, (s, i) => { + const a = P.findKey(r, i); if (a) { n[a] = Er(s), delete n[i]; return; @@ -507,8 +507,8 @@ let ze = class { } toJSON(t) { const n = /* @__PURE__ */ Object.create(null); - return C.forEach(this, (r, s) => { - r != null && r !== !1 && (n[s] = t && C.isArray(r) ? r.join(", ") : r); + return P.forEach(this, (r, s) => { + r != null && r !== !1 && (n[s] = t && P.isArray(r) ? r.join(", ") : r); }), n; } [Symbol.iterator]() { @@ -539,7 +539,7 @@ let ze = class { const l = Sn(a); r[l] || (ed(s, a), r[l] = !0); } - return C.isArray(t) ? t.forEach(i) : i(t), this; + return P.isArray(t) ? t.forEach(i) : i(t), this; } }; ze.accessor([ @@ -550,7 +550,7 @@ ze.accessor([ "User-Agent", "Authorization" ]); -C.reduceDescriptors(ze.prototype, ({ value: e }, t) => { +P.reduceDescriptors(ze.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, @@ -559,14 +559,14 @@ C.reduceDescriptors(ze.prototype, ({ value: e }, t) => { } }; }); -C.freezeMethods(ze); +P.freezeMethods(ze); const td = "[REDACTED ****]"; function nd(e) { - if (C.hasOwnProp(e, "toJSON")) + if (P.hasOwnProp(e, "toJSON")) return !0; let t = Object.getPrototypeOf(e); for (; t && t !== Object.prototype; ) { - if (C.hasOwnProp(t, "toJSON")) + if (P.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" || C.isBuffer(i)) return i; + if (i === null || typeof i != "object" || P.isBuffer(i)) return i; if (r.indexOf(i) !== -1) return; i instanceof ze && (i = i.toJSON()), r.push(i); let a; - if (C.isArray(i)) + if (P.isArray(i)) a = [], i.forEach((l, c) => { const u = s(l); - C.isUndefined(u) || (a[c] = u); + P.isUndefined(u) || (a[c] = u); }); else { - if (!C.isPlainObject(i) && nd(i)) + if (!P.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); - C.isUndefined(u) || (a[l] = u); + P.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 && C.hasOwnProp(t, "redact") ? t.redact : void 0, r = C.isArray(n) && n.length > 0 ? rd(t, n) : C.toJSONObject(t); + const t = this.config, n = t && P.hasOwnProp(t, "redact") ? t.redact : void 0, r = P.isArray(n) && n.length > 0 ? rd(t, n) : P.toJSONObject(t); return { // Standard message: this.message, @@ -660,10 +660,10 @@ te.ERR_INVALID_URL = "ERR_INVALID_URL"; te.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED"; const od = null; function Xo(e) { - return C.isPlainObject(e) || C.isArray(e); + return P.isPlainObject(e) || P.isArray(e); } function el(e) { - return C.endsWith(e, "[]") ? e.slice(0, -2) : e; + return P.endsWith(e, "[]") ? e.slice(0, -2) : e; } function wo(e, t, n) { return e ? e.concat(t).map(function(s, i) { @@ -671,15 +671,15 @@ function wo(e, t, n) { }).join(n ? "." : "") : t; } function sd(e) { - return C.isArray(e) && !e.some(Xo); + return P.isArray(e) && !e.some(Xo); } -const id = C.toFlatObject(C, {}, null, function(t) { +const id = P.toFlatObject(P, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function Gr(e, t, n) { - if (!C.isObject(e)) + if (!P.isObject(e)) throw new TypeError("target must be an object"); - t = t || new FormData(), n = C.toFlatObject( + t = t || new FormData(), n = P.toFlatObject( n, { metaTokens: !0, @@ -688,32 +688,32 @@ function Gr(e, t, n) { }, !1, function(y, S) { - return !C.isUndefined(S[y]); + return !P.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 && C.isSpecCompliantForm(t); - if (!C.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 && P.isSpecCompliantForm(t); + if (!P.isFunction(s)) throw new TypeError("visitor must be a function"); function d(p) { if (p === null) return ""; - if (C.isDate(p)) + if (P.isDate(p)) return p.toISOString(); - if (C.isBoolean(p)) + if (P.isBoolean(p)) return p.toString(); - if (!u && C.isBlob(p)) + if (!u && P.isBlob(p)) throw new te("Blob is not supported. Use a Buffer instead."); - return C.isArrayBuffer(p) || C.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; + return P.isArrayBuffer(p) || P.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p; } function h(p, y, S) { let R = p; - if (C.isReactNative(t) && C.isReactNativeBlob(p)) + if (P.isReactNative(t) && P.isReactNativeBlob(p)) return t.append(wo(S, y, i), d(p)), !1; if (p && !S && typeof p == "object") { - if (C.endsWith(y, "{}")) + if (P.endsWith(y, "{}")) y = r ? y : y.slice(0, -2), p = JSON.stringify(p); - else if (C.isArray(p) && sd(p) || (C.isFileList(p) || C.endsWith(y, "[]")) && (R = C.toArray(p))) + else if (P.isArray(p) && sd(p) || (P.isFileList(p) || P.endsWith(y, "[]")) && (R = P.toArray(p))) return y = el(y), R.forEach(function(b, E) { - !(C.isUndefined(b) || b === null) && t.append( + !(P.isUndefined(b) || b === null) && t.append( // eslint-disable-next-line no-nested-ternary a === !0 ? wo([y], E, i) : a === null ? y : y + "[]", d(b) @@ -728,7 +728,7 @@ function Gr(e, t, n) { isVisitable: Xo }); function g(p, y, S = 0) { - if (!C.isUndefined(p)) { + if (!P.isUndefined(p)) { if (S > c) throw new te( "Object is too deeply nested (" + S + " levels). Max depth: " + c, @@ -736,12 +736,12 @@ function Gr(e, t, n) { ); if (v.indexOf(p) !== -1) throw Error("Circular reference detected in " + y.join(".")); - 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.push(p), P.forEach(p, function(T, b) { + (!(P.isUndefined(T) || T === null) && s.call(t, T, P.isString(b) ? b.trim() : b, y, m)) === !0 && g(T, y ? y.concat(b) : [b], S + 1); }), v.pop(); } } - if (!C.isObject(e)) + if (!P.isObject(e)) throw new TypeError("data must be an object"); return g(e), t; } @@ -779,11 +779,11 @@ function ad(e) { function nl(e, t, n) { if (!t) return e; - const r = n && n.encode || ad, s = C.isFunction(n) ? { + const r = n && n.encode || ad, s = P.isFunction(n) ? { serialize: n } : n, i = s && s.serialize; let a; - if (i ? a = i(t, s) : a = C.isURLSearchParams(t) ? t.toString() : new Os(t, s).toString(r), a) { + if (i ? a = i(t, s) : a = P.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; } @@ -839,7 +839,7 @@ class mi { * @returns {void} */ forEach(t) { - C.forEach(this.handlers, function(r) { + P.forEach(this.handlers, function(r) { r !== null && t(r); }); } @@ -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 && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); + return Ue.isNode && P.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); }, ...t }); } function gd(e) { - return C.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); + return P.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } function bd(e) { const t = {}, n = Object.keys(e); @@ -894,21 +894,21 @@ function rl(e) { let a = n[i++]; if (a === "__proto__") return !0; const l = Number.isFinite(+a), c = i >= n.length; - 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); + return a = !a && P.isArray(s) ? s.length : a, c ? (P.hasOwnProp(s, a) ? s[a] = P.isArray(s[a]) ? s[a].concat(r) : [s[a], r] : s[a] = r, !l) : ((!P.hasOwnProp(s, a) || !P.isObject(s[a])) && (s[a] = []), t(n, r, s[a], i) && P.isArray(s[a]) && (s[a] = bd(s[a])), !l); } - if (C.isFormData(e) && C.isFunction(e.entries)) { + if (P.isFormData(e) && P.isFunction(e.entries)) { const n = {}; - return C.forEachEntry(e, (r, s) => { + return P.forEachEntry(e, (r, s) => { t(gd(r), s, n, 0); }), n; } return null; } -const en = (e, t) => e != null && C.hasOwnProp(e, t) ? e[t] : void 0; +const en = (e, t) => e != null && P.hasOwnProp(e, t) ? e[t] : void 0; function vd(e, t, n) { - if (C.isString(e)) + if (P.isString(e)) try { - return (t || JSON.parse)(e), C.trim(e); + return (t || JSON.parse)(e), P.trim(e); } catch (r) { if (r.name !== "SyntaxError") throw r; @@ -920,21 +920,21 @@ const Yn = { adapter: ["xhr", "http", "fetch"], transformRequest: [ function(t, n) { - 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)) + const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = P.isObject(t); + if (i && P.isHTMLForm(t) && (t = new FormData(t)), P.isFormData(t)) return s ? JSON.stringify(rl(t)) : t; - if (C.isArrayBuffer(t) || C.isBuffer(t) || C.isStream(t) || C.isFile(t) || C.isBlob(t) || C.isReadableStream(t)) + if (P.isArrayBuffer(t) || P.isBuffer(t) || P.isStream(t) || P.isFile(t) || P.isBlob(t) || P.isReadableStream(t)) return t; - if (C.isArrayBufferView(t)) + if (P.isArrayBufferView(t)) return t.buffer; - if (C.isURLSearchParams(t)) + if (P.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 = C.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { + if ((l = P.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const u = en(this, "env"), d = u && u.FormData; return Gr( l ? { "files[]": t } : t, @@ -949,9 +949,9 @@ const Yn = { transformResponse: [ function(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)) + if (P.isResponse(t) || P.isReadableStream(t)) return t; - if (t && C.isString(t) && (r && !s || i)) { + if (t && P.isString(t) && (r && !s || i)) { const l = !(n && n.silentJSONParsing) && i; try { return JSON.parse(t, en(this, "parseReviver")); @@ -986,13 +986,13 @@ const Yn = { } } }; -C.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => { +P.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => { Yn.headers[e] = {}; }); function Co(e, t) { const n = this || Yn, r = t || n, s = ze.from(r.headers); let i = r.data; - return C.forEach(e, function(l) { + return P.forEach(e, function(l) { i = l.call(n, i, s.normalize(), t ? t.status : void 0); }), s.normalize(), i; } @@ -1086,7 +1086,7 @@ const wr = (e, t, n = 3) => { }), t[1] ]; -}, 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)))( +}, yi = (e) => (...t) => P.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 wr = (e, t, n = 3) => { write(e, t, n, r, s, i, a) { if (typeof document > "u") return; const l = [`${e}=${encodeURIComponent(t)}`]; - 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("; "); + P.isNumber(n) && l.push(`expires=${new Date(n).toUTCString()}`), P.isString(r) && l.push(`path=${r}`), P.isString(s) && l.push(`domain=${s}`), i === !0 && l.push("secure"), P.isString(a) && l.push(`SameSite=${a}`), document.cookie = l.join("; "); }, read(e) { if (typeof document > "u") return null; @@ -1147,28 +1147,28 @@ function Ht(e, t) { configurable: !0 }); function r(u, d, h, v) { - 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; + return P.isPlainObject(u) && P.isPlainObject(d) ? P.merge.call({ caseless: v }, u, d) : P.isPlainObject(d) ? P.merge({}, d) : P.isArray(d) ? d.slice() : d; } function s(u, d, h, v) { - if (C.isUndefined(d)) { - if (!C.isUndefined(u)) + if (P.isUndefined(d)) { + if (!P.isUndefined(u)) return r(void 0, u, h, v); } else return r(u, d, h, v); } function i(u, d) { - if (!C.isUndefined(d)) + if (!P.isUndefined(d)) return r(void 0, d); } function a(u, d) { - if (C.isUndefined(d)) { - if (!C.isUndefined(u)) + if (P.isUndefined(d)) { + if (!P.isUndefined(u)) return r(void 0, u); } else return r(void 0, d); } function l(u, d, h) { - if (C.hasOwnProp(t, h)) + if (P.hasOwnProp(t, h)) return r(u, d); - if (C.hasOwnProp(e, h)) + if (P.hasOwnProp(e, h)) return r(void 0, u); } const c = { @@ -1203,10 +1203,10 @@ function Ht(e, t) { validateStatus: l, headers: (u, d, h) => s(gi(u), gi(d), h, !0) }; - return C.forEach(Object.keys({ ...e, ...t }), function(d) { + return P.forEach(Object.keys({ ...e, ...t }), function(d) { if (d === "__proto__" || d === "constructor" || d === "prototype") return; - 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); + const h = P.hasOwnProp(c, d) ? c[d] : s, v = P.hasOwnProp(e, d) ? e[d] : void 0, m = P.hasOwnProp(t, d) ? t[d] : void 0, g = h(v, m, d); + P.isUndefined(g) && h !== l || (n[d] = g); }), n; } const Cd = ["content-type", "content-length"]; @@ -1223,7 +1223,7 @@ 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) => C.hasOwnProp(t, v) ? t[v] : void 0, r = n("data"); + const t = Ht({}, e), n = (v) => P.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) : "")) - ), 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))) { + ), P.isFormData(r) && (Ue.hasStandardBrowserEnv || Ue.hasStandardBrowserWebWorkerEnv ? l.setContentType(void 0) : P.isFunction(r.getHeaders) && Pd(l, r.getHeaders(), n("formDataHeaderPolicy"))), Ue.hasStandardBrowserEnv && (P.isFunction(s) && (s = s(t)), s === !0 || s == null && xd(t.url))) { const m = i && a && Od.read(a); m && l.set(i, m); } @@ -1292,9 +1292,9 @@ const _d = (e) => encodeURIComponent(e).replace( y ) ), p(), y = null; - }, i === void 0 && a.setContentType(null), "setRequestHeader" in y && C.forEach(Qa(a), function(b, E) { + }, i === void 0 && a.setContentType(null), "setRequestHeader" in y && P.forEach(Qa(a), function(b, E) { y.setRequestHeader(E, b); - }), 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) => { + }), P.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); @@ -1334,7 +1334,7 @@ const _d = (e) => encodeURIComponent(e).replace( }; e.forEach((c) => c.addEventListener("abort", s)); const { signal: l } = n; - return l.unsubscribe = () => C.asap(a), l; + return l.unsubscribe = () => P.asap(a), l; }, kd = function* (e, t) { let n = e.byteLength; if (n < t) { @@ -1434,15 +1434,15 @@ function jd(e) { } return i; } -const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { +const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = P, Ei = (e, ...t) => { try { return !!e(...t); } catch { return !1; } }, Ld = (e) => { - const t = C.global !== void 0 && C.global !== null ? C.global : globalThis, { ReadableStream: n, TextEncoder: r } = t; - e = C.merge.call( + const t = P.global !== void 0 && P.global !== null ? P.global : globalThis, { ReadableStream: n, TextEncoder: r } = t; + e = P.merge.call( { skipUndefined: !0 }, @@ -1465,7 +1465,7 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { } }), T = R.headers.has("Content-Type"); return R.body != null && R.body.cancel(), S && !T; - }), m = u && d && Ei(() => C.isReadableStream(new a("").body)), g = { + }), m = u && d && Ei(() => P.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", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { const p = async (S) => { if (S == null) return 0; - if (C.isBlob(S)) + if (P.isBlob(S)) return S.size; - if (C.isSpecCompliantForm(S)) + if (P.isSpecCompliantForm(S)) return (await new i(Ue.origin, { method: "POST", body: S }).arrayBuffer()).byteLength; - if (C.isArrayBufferView(S) || C.isArrayBuffer(S)) + if (P.isArrayBufferView(S) || P.isArrayBuffer(S)) return S.byteLength; - if (C.isURLSearchParams(S) && (S = S + ""), C.isString(S)) + if (P.isURLSearchParams(S) && (S = S + ""), P.isString(S)) return (await h(S)).byteLength; }, y = async (S, R) => { - const T = C.toFiniteNumber(S.getContentLength()); + const T = P.toFiniteNumber(S.getContentLength()); return T ?? p(R); }; return async (S) => { @@ -1506,18 +1506,18 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { signal: E, cancelToken: w, timeout: k, - onDownloadProgress: L, - onUploadProgress: H, - responseType: G, - headers: z, + onDownloadProgress: F, + onUploadProgress: W, + responseType: H, + headers: V, withCredentials: f = "same-origin", fetchOptions: I, maxContentLength: A, maxBodyLength: j } = al(S); - const $ = C.isNumber(A) && A > -1, Y = C.isNumber(j) && j > -1; + const $ = P.isNumber(A) && A > -1, K = P.isNumber(j) && j > -1; let Z = s || fetch; - G = G ? (G + "").toLowerCase() : "text"; + H = H ? (H + "").toLowerCase() : "text"; let X = Nd( [E, w && w.toAbortSignal()], k @@ -1534,9 +1534,9 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { S, O ); - if (Y && T !== "get" && T !== "head") { - const U = await y(z, b); - if (typeof U == "number" && isFinite(U) && U > j) + if (K && T !== "get" && T !== "head") { + const D = await y(V, b); + if (typeof D == "number" && isFinite(D) && D > j) throw new te( "Request body larger than maxBodyLength limit", te.ERR_BAD_REQUEST, @@ -1544,41 +1544,41 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { O ); } - if (H && v && T !== "get" && T !== "head" && (q = await y(z, b)) !== 0) { - let U = new i(R, { + if (W && v && T !== "get" && T !== "head" && (q = await y(V, b)) !== 0) { + let D = new i(R, { method: "POST", body: b, duplex: "half" - }), K; - if (C.isFormData(b) && (K = U.headers.get("content-type")) && z.setContentType(K), U.body) { - const [D, Q] = hi( + }), G; + if (P.isFormData(b) && (G = D.headers.get("content-type")) && V.setContentType(G), D.body) { + const [U, Y] = hi( q, - wr(yi(H)) + wr(yi(W)) ); - b = bi(U.body, vi, D, Q); + b = bi(D.body, vi, U, Y); } } - 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"); + P.isString(f) || (f = f ? "include" : "omit"); + const B = c && "credentials" in i.prototype; + if (P.isFormData(b)) { + const D = V.getContentType(); + D && /^multipart\/form-data/i.test(D) && !/boundary=/i.test(D) && V.delete("content-type"); } - z.set("User-Agent", "axios/" + Cs, !1); + V.set("User-Agent", "axios/" + Cs, !1); const J = { ...I, signal: X, method: T.toUpperCase(), - headers: Qa(z.normalize()), + headers: Qa(V.normalize()), body: b, duplex: "half", - credentials: F ? f : void 0 + credentials: B ? f : void 0 }; O = c && new i(R, J); - let W = await (c ? Z(O, I) : Z(R, J)); + let z = await (c ? Z(O, I) : Z(R, J)); if ($) { - const U = C.toFiniteNumber(W.headers.get("content-length")); - if (U != null && U > A) + const D = P.toFiniteNumber(z.headers.get("content-length")); + if (D != null && D > A) throw new te( "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, @@ -1586,42 +1586,42 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { O ); } - const B = m && (G === "stream" || G === "response"); - if (m && W.body && (L || $ || B && _)) { - const U = {}; + const Q = m && (H === "stream" || H === "response"); + if (m && z.body && (F || $ || Q && _)) { + const D = {}; ["status", "statusText", "headers"].forEach((ne) => { - U[ne] = W[ne]; + D[ne] = z[ne]; }); - const K = C.toFiniteNumber(W.headers.get("content-length")), [D, Q] = L && hi( - K, - wr(yi(L), !0) + const G = P.toFiniteNumber(z.headers.get("content-length")), [U, Y] = F && hi( + G, + wr(yi(F), !0) ) || []; - let P = 0; - const ae = (ne) => { - if ($ && (P = ne, P > A)) + let C = 0; + const se = (ne) => { + if ($ && (C = ne, C > A)) throw new te( "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, S, O ); - D && D(ne); + U && U(ne); }; - W = new a( - bi(W.body, vi, ae, () => { - Q && Q(), _ && _(); + z = new a( + bi(z.body, vi, se, () => { + Y && Y(), _ && _(); }), - U + D ); } - G = G || "text"; - let V = await g[C.findKey(g, G) || "text"]( - W, + H = H || "text"; + let L = await g[P.findKey(g, H) || "text"]( + z, S ); - if ($ && !m && !B) { - let U; - 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) + if ($ && !m && !Q) { + let D; + if (L != null && (typeof L.byteLength == "number" ? D = L.byteLength : typeof L.size == "number" ? D = L.size : typeof L == "string" && (D = typeof r == "function" ? new r().encode(L).byteLength : L.length)), typeof D == "number" && D > A) throw new te( "maxContentLength size of " + A + " exceeded", te.ERR_BAD_RESPONSE, @@ -1629,33 +1629,33 @@ const Cs = "1.16.1", vi = 64 * 1024, { isFunction: ur } = C, Ei = (e, ...t) => { O ); } - return !B && _ && _(), await new Promise((U, K) => { - sl(U, K, { - data: V, - headers: ze.from(W.headers), - status: W.status, - statusText: W.statusText, + return !Q && _ && _(), await new Promise((D, G) => { + sl(D, G, { + data: L, + headers: ze.from(z.headers), + status: z.status, + statusText: z.statusText, config: S, request: O }); }); - } catch (F) { + } catch (B) { if (_ && _(), X && X.aborted && X.reason instanceof te) { const J = X.reason; - throw J.config = S, O && (J.request = O), F !== J && (J.cause = F), J; + throw J.config = S, O && (J.request = O), B !== J && (J.cause = B), J; } - throw F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign( + throw B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign( new te( "Network Error", te.ERR_NETWORK, S, O, - F && F.response + B && B.response ), { - cause: F.cause || F + cause: B.cause || B } - ) : te.from(F, F && F.code, S, O, F && F.response); + ) : te.from(B, B && B.code, S, O, B && B.response); } }; }, Dd = /* @__PURE__ */ new Map(), ll = (e) => { @@ -1674,7 +1674,7 @@ const Ps = { get: ll } }; -C.forEach(Ps, (e, t) => { +P.forEach(Ps, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { __proto__: null, value: t }); @@ -1683,9 +1683,9 @@ C.forEach(Ps, (e, t) => { Object.defineProperty(e, "adapterName", { __proto__: null, value: t }); } }); -const Si = (e) => `- ${e}`, Bd = (e) => C.isFunction(e) || e === null || e === !1; +const Si = (e) => `- ${e}`, Bd = (e) => P.isFunction(e) || e === null || e === !1; function Fd(e, t) { - e = C.isArray(e) ? e : [e]; + e = P.isArray(e) ? e : [e]; const { length: n } = e; let r, s; const i = {}; @@ -1694,7 +1694,7 @@ function Fd(e, t) { let l; if (s = r, !Bd(r) && (s = Ps[(l = String(r)).toLowerCase()], s === void 0)) throw new te(`Unknown adapter '${l}'`); - if (s && (C.isFunction(s) || (s = s.get(t)))) + if (s && (P.isFunction(s) || (s = s.get(t)))) break; i[l || "#" + a] = s; } @@ -1866,7 +1866,7 @@ let zt = class { legacyInterceptorReqResOrdering: Qe.transitional(Qe.boolean) }, !1 - ), s != null && (C.isFunction(s) ? n.paramsSerializer = { + ), s != null && (P.isFunction(s) ? n.paramsSerializer = { serialize: s } : Sr.assertOptions( s, @@ -1883,8 +1883,8 @@ let zt = class { }, !0 ), n.method = (n.method || this.defaults.method || "get").toLowerCase(); - let a = i && C.merge(i.common, i[n.method]); - i && C.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => { + let a = i && P.merge(i.common, i[n.method]); + i && P.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => { delete i[g]; }), n.headers = ze.concat(a, i); const l = []; @@ -1933,7 +1933,7 @@ let zt = class { return nl(n, t.params, t.paramsSerializer); } }; -C.forEach(["delete", "get", "head", "options"], function(t) { +P.forEach(["delete", "get", "head", "options"], function(t) { zt.prototype[t] = function(n, r) { return this.request( Ht(r || {}, { @@ -1944,7 +1944,7 @@ C.forEach(["delete", "get", "head", "options"], function(t) { ); }; }); -C.forEach(["post", "put", "patch", "query"], function(t) { +P.forEach(["post", "put", "patch", "query"], function(t) { function n(r) { return function(i, a, l) { return this.request( @@ -2040,7 +2040,7 @@ function zd(e) { }; } function Wd(e) { - return C.isObject(e) && e.isAxiosError === !0; + return P.isObject(e) && e.isAxiosError === !0; } const Qo = { Continue: 100, @@ -2118,7 +2118,7 @@ Object.entries(Qo).forEach(([e, t]) => { }); function dl(e) { const t = new zt(e), n = Wa(zt.prototype.request, t); - return C.extend(n, zt.prototype, t, { allOwnKeys: !0 }), C.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { + return P.extend(n, zt.prototype, t, { allOwnKeys: !0 }), P.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) { return dl(Ht(e, s)); }, n; } @@ -2138,7 +2138,7 @@ $e.spread = zd; $e.isAxiosError = Wd; $e.mergeConfig = Ht; $e.AxiosHeaders = ze; -$e.formToJSON = (e) => rl(C.isHTMLForm(e) ? new FormData(e) : e); +$e.formToJSON = (e) => rl(P.isHTMLForm(e) ? new FormData(e) : e); $e.getAdapter = cl.getAdapter; $e.HttpStatusCode = Qo; $e.default = $e; @@ -2345,7 +2345,7 @@ function rp() { function e(O) { if (O == null) return null; if (typeof O == "function") - return O.$$typeof === G ? null : O.displayName || O.name || null; + return O.$$typeof === H ? null : O.displayName || O.name || null; if (typeof O == "string") return O; switch (O) { case p: @@ -2358,7 +2358,7 @@ function rp() { return "Suspense"; case w: return "SuspenseList"; - case H: + case W: return "Activity"; } if (typeof O == "object") @@ -2376,7 +2376,7 @@ function rp() { return O = O.displayName, O || (O = _.displayName || _.name || "", O = O !== "" ? "ForwardRef(" + O + ")" : "ForwardRef"), O; case k: return _ = O.displayName || null, _ !== null ? _ : e(O.type) || "Memo"; - case L: + case F: _ = O._payload, O = O._init; try { return e(O(_)); @@ -2397,17 +2397,17 @@ function rp() { } if (_) { _ = console; - var q = _.error, F = typeof Symbol == "function" && Symbol.toStringTag && O[Symbol.toStringTag] || O.constructor.name || "Object"; + var q = _.error, B = typeof Symbol == "function" && Symbol.toStringTag && O[Symbol.toStringTag] || O.constructor.name || "Object"; return q.call( _, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", - F + B ), t(O); } } function r(O) { if (O === p) return "<>"; - if (typeof O == "object" && O !== null && O.$$typeof === L) + if (typeof O == "object" && O !== null && O.$$typeof === F) return "<...>"; try { var _ = e(O); @@ -2417,7 +2417,7 @@ function rp() { } } function s() { - var O = z.A; + var O = V.A; return O === null ? null : O.getOwner(); } function i() { @@ -2448,12 +2448,12 @@ function rp() { "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, _, q, F, J, W, B, V) { - return q = W.ref, O = { + function u(O, _, q, B, J, z, Q, L) { + return q = z.ref, O = { $$typeof: m, type: O, key: _, - props: W, + props: z, _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: B + value: Q }), Object.defineProperty(O, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, - value: V + value: L }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O; } - function d(O, _, q, F, J, W, B, V) { - var U = _.children; - if (U !== void 0) - if (F) - if (I(U)) { - for (F = 0; F < U.length; F++) - h(U[F]); - Object.freeze && Object.freeze(U); + function d(O, _, q, B, J, z, Q, L) { + var D = _.children; + if (D !== void 0) + if (B) + if (I(D)) { + for (B = 0; B < D.length; B++) + h(D[B]); + Object.freeze && Object.freeze(D); } 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); + else h(D); if (f.call(_, "key")) { - U = e(O); - var K = Object.keys(_).filter(function(Q) { - return Q !== "key"; + D = e(O); + var G = Object.keys(_).filter(function(Y) { + return Y !== "key"; }); - F = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", X[U + F] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error( + B = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", X[D + B] || (G = 0 < G.length ? "{" + G.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} />`, - F, - U, - K, - U - ), X[U + F] = !0); + B, + D, + G, + D + ), X[D + B] = !0); } - if (U = null, q !== void 0 && (n(q), U = "" + q), a(_) && (n(_.key), U = "" + _.key), "key" in _) { + if (D = null, q !== void 0 && (n(q), D = "" + q), a(_) && (n(_.key), D = "" + _.key), "key" in _) { q = {}; - for (var D in _) - D !== "key" && (q[D] = _[D]); + for (var U in _) + U !== "key" && (q[U] = _[U]); } else q = _; - return U && l( + return D && l( q, typeof O == "function" ? O.displayName || O.name || "Unknown" : O ), u( O, - U, - W, + D, + z, J, s(), q, - B, - V + Q, + L ); } 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"), 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() { + 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"), F = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), V = 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,33 +2541,33 @@ React keys must be passed directly to JSX without using spread: return O(); } }; - var j, $ = {}, Y = v["react-stack-bottom-frame"].bind( + var j, $ = {}, K = v["react-stack-bottom-frame"].bind( v, i )(), Z = A(r(i)), X = {}; - xn.Fragment = p, xn.jsx = function(O, _, q, F, J) { - var W = 1e4 > z.recentlyCreatedOwnerStacks++; + xn.Fragment = p, xn.jsx = function(O, _, q, B, J) { + var z = 1e4 > V.recentlyCreatedOwnerStacks++; return d( O, _, q, !1, - F, + B, J, - W ? Error("react-stack-top-frame") : Y, - W ? A(r(O)) : Z + z ? Error("react-stack-top-frame") : K, + z ? A(r(O)) : Z ); - }, xn.jsxs = function(O, _, q, F, J) { - var W = 1e4 > z.recentlyCreatedOwnerStacks++; + }, xn.jsxs = function(O, _, q, B, J) { + var z = 1e4 > V.recentlyCreatedOwnerStacks++; return d( O, _, q, !0, - F, + B, J, - W ? Error("react-stack-top-frame") : Y, - W ? A(r(O)) : Z + z ? Error("react-stack-top-frame") : K, + z ? A(r(O)) : Z ); }; }()), xn; @@ -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(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 T(C) { + return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + C === r || C === u || C === i || C === s || C === h || C === v || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === m || C.$$typeof === a || C.$$typeof === l || C.$$typeof === d || C.$$typeof === y || C.$$typeof === S || C.$$typeof === R || C.$$typeof === p); } - function b(P) { - if (typeof P == "object" && P !== null) { - var ae = P.$$typeof; - switch (ae) { + function b(C) { + if (typeof C == "object" && C !== null) { + var se = C.$$typeof; + switch (se) { case t: - var ne = P.type; + var ne = C.type; switch (ne) { case c: case u: @@ -3318,55 +3318,55 @@ function Mp() { case a: return he; default: - return ae; + return se; } } case n: - return ae; + return se; } } } - 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; + var E = c, w = u, k = l, F = a, W = t, H = d, V = r, f = g, I = m, A = n, j = i, $ = s, K = h, Z = !1; + function X(C) { + 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(C) || b(C) === c; } - function O(P) { - return b(P) === u; + function O(C) { + return b(C) === u; } - function _(P) { - return b(P) === l; + function _(C) { + return b(C) === l; } - function q(P) { - return b(P) === a; + function q(C) { + return b(C) === a; } - function F(P) { - return typeof P == "object" && P !== null && P.$$typeof === t; + function B(C) { + return typeof C == "object" && C !== null && C.$$typeof === t; } - function J(P) { - return b(P) === d; + function J(C) { + return b(C) === d; } - function W(P) { - return b(P) === r; + function z(C) { + return b(C) === r; } - function B(P) { - return b(P) === g; + function Q(C) { + return b(C) === g; } - function V(P) { - return b(P) === m; + function L(C) { + return b(C) === m; } - function U(P) { - return b(P) === n; + function D(C) { + return b(C) === n; } - function K(P) { - return b(P) === i; + function G(C) { + return b(C) === i; } - function D(P) { - return b(P) === s; + function U(C) { + return b(C) === s; } - function Q(P) { - return b(P) === h; + function Y(C) { + return b(C) === h; } - 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.AsyncMode = E, be.ConcurrentMode = w, be.ContextConsumer = k, be.ContextProvider = F, be.Element = W, be.ForwardRef = H, be.Fragment = V, be.Lazy = f, be.Memo = I, be.Portal = A, be.Profiler = j, be.StrictMode = $, be.Suspense = K, be.isAsyncMode = X, be.isConcurrentMode = O, be.isContextConsumer = _, be.isContextProvider = q, be.isElement = B, be.isForwardRef = J, be.isFragment = z, be.isLazy = Q, be.isMemo = L, be.isPortal = D, be.isProfiler = G, be.isStrictMode = U, be.isSuspense = Y, be.isValidElementType = T, be.typeOf = b; }()), be; } process.env.NODE_ENV === "production" ? ns.exports = $p() : ns.exports = Mp(); @@ -3755,16 +3755,16 @@ var Jp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def w.theme = x.useContext(Qr); } typeof y.className == "string" ? b = Tl(S.registered, E, y.className) : y.className != null && (b = y.className + " "); - 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 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, { + var F = Jn(h.concat(E), S.registered, w); + b += S.key + "-" + F.name, a !== void 0 && (b += " " + a); + var W = u && l === void 0 ? ji(T) : c, H = {}; + for (var V in y) + u && V === "as" || W(V) && (H[V] = y[V]); + return H.className = b, R && (H.ref = R), /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(tf, { cache: S, - serialized: L, + serialized: F, isStringTag: typeof T == "string" - }), /* @__PURE__ */ x.createElement(T, G)); + }), /* @__PURE__ */ x.createElement(T, H)); }); return p.displayName = i !== void 0 ? i : "Styled(" + (typeof s == "string" ? s : s.displayName || s.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = s, p.__emotion_styles = h, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", { value: function() { @@ -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(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 T(C) { + return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + C === r || C === u || C === i || C === s || C === h || C === v || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === m || C.$$typeof === a || C.$$typeof === l || C.$$typeof === d || C.$$typeof === y || C.$$typeof === S || C.$$typeof === R || C.$$typeof === p); } - function b(P) { - if (typeof P == "object" && P !== null) { - var ae = P.$$typeof; - switch (ae) { + function b(C) { + if (typeof C == "object" && C !== null) { + var se = C.$$typeof; + switch (se) { case t: - var ne = P.type; + var ne = C.type; switch (ne) { case c: case u: @@ -4033,55 +4033,55 @@ function sf() { case a: return he; default: - return ae; + return se; } } case n: - return ae; + return se; } } } - 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; + var E = c, w = u, k = l, F = a, W = t, H = d, V = r, f = g, I = m, A = n, j = i, $ = s, K = h, Z = !1; + function X(C) { + 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(C) || b(C) === c; } - function O(P) { - return b(P) === u; + function O(C) { + return b(C) === u; } - function _(P) { - return b(P) === l; + function _(C) { + return b(C) === l; } - function q(P) { - return b(P) === a; + function q(C) { + return b(C) === a; } - function F(P) { - return typeof P == "object" && P !== null && P.$$typeof === t; + function B(C) { + return typeof C == "object" && C !== null && C.$$typeof === t; } - function J(P) { - return b(P) === d; + function J(C) { + return b(C) === d; } - function W(P) { - return b(P) === r; + function z(C) { + return b(C) === r; } - function B(P) { - return b(P) === g; + function Q(C) { + return b(C) === g; } - function V(P) { - return b(P) === m; + function L(C) { + return b(C) === m; } - function U(P) { - return b(P) === n; + function D(C) { + return b(C) === n; } - function K(P) { - return b(P) === i; + function G(C) { + return b(C) === i; } - function D(P) { - return b(P) === s; + function U(C) { + return b(C) === s; } - function Q(P) { - return b(P) === h; + function Y(C) { + return b(C) === h; } - 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.AsyncMode = E, Ee.ConcurrentMode = w, Ee.ContextConsumer = k, Ee.ContextProvider = F, Ee.Element = W, Ee.ForwardRef = H, Ee.Fragment = V, Ee.Lazy = f, Ee.Memo = I, Ee.Portal = A, Ee.Profiler = j, Ee.StrictMode = $, Ee.Suspense = K, Ee.isAsyncMode = X, Ee.isConcurrentMode = O, Ee.isContextConsumer = _, Ee.isContextProvider = q, Ee.isElement = B, Ee.isForwardRef = J, Ee.isFragment = z, Ee.isLazy = Q, Ee.isMemo = L, Ee.isPortal = D, Ee.isProfiler = G, Ee.isStrictMode = U, Ee.isSuspense = Y, Ee.isValidElementType = T, Ee.typeOf = b; }()), Ee; } var Fi; @@ -4237,10 +4237,10 @@ function cf() { element: b(), elementType: E(), instanceOf: w, - node: G(), - objectOf: L, + node: H(), + objectOf: F, oneOf: k, - oneOfType: H, + oneOfType: W, shape: f, exact: I }; @@ -4254,33 +4254,33 @@ function cf() { function y(O) { if (process.env.NODE_ENV !== "production") var _ = {}, q = 0; - function F(W, B, V, U, K, D, Q) { - if (U = U || v, D = D || V, Q !== n) { + function B(z, Q, L, D, G, U, Y) { + if (D = D || v, U = U || L, Y !== n) { if (c) { - var P = new Error( + var C = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); - throw P.name = "Invariant Violation", P; + throw C.name = "Invariant Violation", C; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var ae = U + ":" + V; - !_[ae] && // Avoid spamming the console because they are often not actionable except for lib authors + var se = D + ":" + L; + !_[se] && // 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 `" + 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++); + "You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + D + "`. 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." + ), _[se] = !0, q++); } } - 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); + return Q[L] == null ? z ? Q[L] === null ? new p("The " + G + " `" + U + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new p("The " + G + " `" + U + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : O(Q, L, D, G, U); } - var J = F.bind(null, !1); - return J.isRequired = F.bind(null, !0), J; + var J = B.bind(null, !1); + return J.isRequired = B.bind(null, !0), J; } function S(O) { - function _(q, F, J, W, B, V) { - var U = q[F], K = $(U); - if (K !== O) { - var D = Y(U); + function _(q, B, J, z, Q, L) { + var D = q[B], G = $(D); + if (G !== O) { + var U = K(D); return new p( - "Invalid " + W + " `" + B + "` of type " + ("`" + D + "` supplied to `" + J + "`, expected ") + ("`" + O + "`."), + "Invalid " + z + " `" + Q + "` of type " + ("`" + U + "` supplied to `" + J + "`, expected ") + ("`" + O + "`."), { expectedType: O } ); } @@ -4292,50 +4292,50 @@ function cf() { return y(a); } function T(O) { - function _(q, F, J, W, B) { + function _(q, B, J, z, Q) { if (typeof O != "function") - 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.")); + return new p("Property `" + Q + "` of component `" + J + "` has invalid PropType notation inside arrayOf."); + var L = q[B]; + if (!Array.isArray(L)) { + var D = $(L); + return new p("Invalid " + z + " `" + Q + "` of type " + ("`" + D + "` supplied to `" + J + "`, expected an array.")); } - for (var K = 0; K < V.length; K++) { - var D = O(V, K, J, W, B + "[" + K + "]", n); - if (D instanceof Error) - return D; + for (var G = 0; G < L.length; G++) { + var U = O(L, G, J, z, Q + "[" + G + "]", n); + if (U instanceof Error) + return U; } return null; } return y(_); } function b() { - 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.")); + function O(_, q, B, J, z) { + var Q = _[q]; + if (!l(Q)) { + var L = $(Q); + return new p("Invalid " + J + " `" + z + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement.")); } return null; } return y(O); } function E() { - 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.")); + function O(_, q, B, J, z) { + var Q = _[q]; + if (!e.isValidElementType(Q)) { + var L = $(Q); + return new p("Invalid " + J + " `" + z + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement type.")); } return null; } return y(O); } 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 + "`.")); + function _(q, B, J, z, Q) { + if (!(q[B] instanceof O)) { + var L = O.name || v, D = X(q[B]); + return new p("Invalid " + z + " `" + Q + "` of type " + ("`" + D + "` supplied to `" + J + "`, expected ") + ("instance of `" + L + "`.")); } return null; } @@ -4346,36 +4346,36 @@ function cf() { 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 _(q, F, J, W, B) { - for (var V = q[F], U = 0; U < O.length; U++) - if (g(V, O[U])) + function _(q, B, J, z, Q) { + for (var L = q[B], D = 0; D < O.length; D++) + if (g(L, O[D])) return null; - var K = JSON.stringify(O, function(Q, P) { - var ae = Y(P); - return ae === "symbol" ? String(P) : P; + var G = JSON.stringify(O, function(Y, C) { + var se = K(C); + return se === "symbol" ? String(C) : C; }); - return new p("Invalid " + W + " `" + B + "` of value `" + String(V) + "` " + ("supplied to `" + J + "`, expected one of " + K + ".")); + return new p("Invalid " + z + " `" + Q + "` of value `" + String(L) + "` " + ("supplied to `" + J + "`, expected one of " + G + ".")); } return y(_); } - function L(O) { - function _(q, F, J, W, B) { + function F(O) { + function _(q, B, J, z, Q) { if (typeof O != "function") - 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 " + 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 new p("Property `" + Q + "` of component `" + J + "` has invalid PropType notation inside objectOf."); + var L = q[B], D = $(L); + if (D !== "object") + return new p("Invalid " + z + " `" + Q + "` of type " + ("`" + D + "` supplied to `" + J + "`, expected an object.")); + for (var G in L) + if (r(L, G)) { + var U = O(L, G, J, z, Q + "." + G, n); + if (U instanceof Error) + return U; } return null; } return y(_); } - function H(O) { + function W(O) { if (!Array.isArray(O)) return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a; for (var _ = 0; _ < O.length; _++) { @@ -4385,64 +4385,64 @@ function cf() { "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(q) + " at index " + _ + "." ), a; } - 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) + function B(J, z, Q, L, D) { + for (var G = [], U = 0; U < O.length; U++) { + var Y = O[U], C = Y(J, z, Q, L, D, n); + if (C == null) return null; - P.data && r(P.data, "expectedType") && K.push(P.data.expectedType); + C.data && r(C.data, "expectedType") && G.push(C.data.expectedType); } - var ae = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : ""; - return new p("Invalid " + V + " `" + U + "` supplied to " + ("`" + B + "`" + ae + ".")); + var se = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : ""; + return new p("Invalid " + L + " `" + D + "` supplied to " + ("`" + Q + "`" + se + ".")); } - return y(F); + return y(B); } - function G() { - function O(_, q, F, J, W) { - return A(_[q]) ? null : new p("Invalid " + J + " `" + W + "` supplied to " + ("`" + F + "`, expected a ReactNode.")); + function H() { + function O(_, q, B, J, z) { + return A(_[q]) ? null : new p("Invalid " + J + " `" + z + "` supplied to " + ("`" + B + "`, expected a ReactNode.")); } return y(O); } - function z(O, _, q, F, J) { + function V(O, _, q, B, J) { return new p( - (O || "React class") + ": " + _ + " type `" + q + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`." + (O || "React class") + ": " + _ + " type `" + q + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`." ); } function f(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`.")); - for (var K in O) { - 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; + function _(q, B, J, z, Q) { + var L = q[B], D = $(L); + if (D !== "object") + return new p("Invalid " + z + " `" + Q + "` of type `" + D + "` " + ("supplied to `" + J + "`, expected `object`.")); + for (var G in O) { + var U = O[G]; + if (typeof U != "function") + return V(J, z, Q, G, K(U)); + var Y = U(L, G, J, z, Q + "." + G, n); + if (Y) + return Y; } return null; } 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) + function _(q, B, J, z, Q) { + var L = q[B], D = $(L); + if (D !== "object") + return new p("Invalid " + z + " `" + Q + "` of type `" + D + "` " + ("supplied to `" + J + "`, expected `object`.")); + var G = t({}, q[B], O); + for (var U in G) { + var Y = O[U]; + if (r(O, U) && typeof Y != "function") + return V(J, z, Q, U, K(Y)); + if (!Y) return new p( - "Invalid " + W + " `" + B + "` key `" + D + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(q[F], null, " ") + ` + "Invalid " + z + " `" + Q + "` key `" + U + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(q[B], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") ); - var P = Q(V, D, J, W, B + "." + D, n); - if (P) - return P; + var C = Y(L, U, J, z, Q + "." + U, n); + if (C) + return C; } return null; } @@ -4463,14 +4463,14 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") return !0; var _ = h(O); if (_) { - var q = _.call(O), F; + var q = _.call(O), B; if (_ !== O.entries) { - for (; !(F = q.next()).done; ) - if (!A(F.value)) + for (; !(B = q.next()).done; ) + if (!A(B.value)) return !1; } else - for (; !(F = q.next()).done; ) { - var J = F.value; + for (; !(B = q.next()).done; ) { + var J = B.value; if (J && !A(J[1])) return !1; } @@ -4488,7 +4488,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") var _ = typeof O; return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : j(_, O) ? "symbol" : _; } - function Y(O) { + function K(O) { if (typeof O > "u" || O === null) return "" + O; var _ = $(O); @@ -4501,7 +4501,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ") return _; } function Z(O) { - var _ = Y(O); + var _ = K(O); switch (_) { case "array": case "object": @@ -5765,7 +5765,7 @@ function Ml(e) { } else for (n in e) e[n] && (r && (r += " "), r += n); return r; } -function ie() { +function ae() { for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (t = Ml(e)) && (r && (r += " "), r += t); return r; } @@ -5922,38 +5922,38 @@ function wm(e = {}) { if (w.__emotion_real === w) return w; if (typeof w == "function") - return function(L) { - return Rr(L, w, L.theme.modularCssLayers ? p : void 0); + return function(F) { + return Rr(F, w, F.theme.modularCssLayers ? p : void 0); }; if (ht(w)) { const k = Ll(w); - return function(H) { - return k.variants ? Rr(H, k, H.theme.modularCssLayers ? p : void 0) : H.theme.modularCssLayers ? Ut(k.style, p) : k.style; + return function(W) { + return k.variants ? Rr(W, k, W.theme.modularCssLayers ? p : void 0) : W.theme.modularCssLayers ? Ut(k.style, p) : k.style; }; } 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; + const k = [], F = w.map(b), W = []; + if (k.push(i), u && m && W.push(function(I) { + var K, Z; + const j = (Z = (K = I.theme.components) == null ? void 0 : K[u]) == null ? void 0 : Z.styleOverrides; if (!j) return null; 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; + }), u && !y && W.push(function(I) { + var $, K; + const A = I.theme, j = (K = ($ = A == null ? void 0 : A.components) == null ? void 0 : $[u]) == null ? void 0 : K.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(""); + }), S || W.push(mn), Array.isArray(F[0])) { + const f = F.shift(), I = new Array(k.length).fill(""), A = new Array(W.length).fill(""); let j; j = [...I, ...f, ...A], j.raw = [...I, ...f.raw, ...A], k.unshift(j); } - 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; + const H = [...k, ...F, ...W], V = T(...H); + return l.muiName && (V.muiName = l.muiName), process.env.NODE_ENV !== "production" && (V.displayName = Cm(u, d, l)), V; }; return T.withConfig && (E.withConfig = T.withConfig), E; }; @@ -6007,7 +6007,7 @@ function Ar(e, t, n = !1) { 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 = { + } else i === "className" && n && t.className ? r.className = ae(e == null ? void 0 : e.className, t == null ? void 0 : t.className) : i === "style" && n && t.style ? r.style = { ...e == null ? void 0 : e.style, ...t == null ? void 0 : t.style } : r[i] === void 0 && (r[i] = e[i]); @@ -6278,9 +6278,9 @@ function Gm(e, t = {}) { const { vars: w, css: k, - varsWithDefaults: L + varsWithDefaults: F } = Fo(E, t); - m = Ve(m, L), g[b] = { + m = Ve(m, F), g[b] = { css: k, vars: w }; @@ -6296,12 +6296,12 @@ function Gm(e, t = {}) { }; } function S(b, E) { - var k, L; + var k, F; 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: ${((L = (k = a[b]) == null ? void 0 : k.palette) == null ? void 0 : L.mode) || b})`]: { + [`@media (prefers-color-scheme: ${((F = (k = a[b]) == null ? void 0 : k.palette) == null ? void 0 : F.mode) || b})`]: { ":root": E } }; @@ -6323,46 +6323,46 @@ function Gm(e, t = {}) { }), b; }, generateStyleSheets: () => { - var H, G; + var W, H; const b = [], E = e.defaultColorScheme || "light"; - function w(z, f) { - Object.keys(f).length && b.push(typeof z == "string" ? { - [z]: { + function w(V, f) { + Object.keys(f).length && b.push(typeof V == "string" ? { + [V]: { ...f } - } : z); + } : V); } w(n(void 0, { ...h }), h); const { [E]: k, - ...L + ...F } = g; if (k) { const { - css: z - } = k, f = (G = (H = a[E]) == null ? void 0 : H.palette) == null ? void 0 : G.mode, I = !r && f ? { + css: V + } = k, f = (H = (W = a[E]) == null ? void 0 : W.palette) == null ? void 0 : H.mode, I = !r && f ? { colorScheme: f, - ...z + ...V } : { - ...z + ...V }; w(n(E, { ...I }), I); } - return Object.entries(L).forEach(([z, { + return Object.entries(F).forEach(([V, { css: f }]) => { var j, $; - const I = ($ = (j = a[z]) == null ? void 0 : j.palette) == null ? void 0 : $.mode, A = !r && I ? { + const I = ($ = (j = a[V]) == null ? void 0 : j.palette) == null ? void 0 : $.mode, A = !r && I ? { colorScheme: I, ...f } : { ...f }; - w(n(z, { + w(n(V, { ...A }), A); }), i && b.push({ @@ -7143,18 +7143,18 @@ function wh(e = {}, ...t) { }, spacing: Oh(d.spacing) }; - 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]); + Object.keys(w.colorSchemes).forEach((V) => { + const f = w.colorSchemes[V].palette, I = (j) => { + const $ = j.split("-"), K = $[1], Z = $[2]; + return m(j, f[K][Z]); }; 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) { + function A(j, $, K) { if (b) { 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 j === Mt && (Z = `transparent ${((1 - K) * 100).toFixed(0)}%`), j === Se && (Z = `#000 ${(K * 100).toFixed(0)}%`), j === Te && (Z = `#fff ${(K * 100).toFixed(0)}%`), `color-mix(in ${b}, ${$}, ${Z})`; } - return j($, Y); + return j($, K); } if (xh(f, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), f.mode === "light") { 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)); @@ -7170,7 +7170,7 @@ function wh(e = {}, ...t) { 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"))); }); - }), w = t.reduce((z, f) => Ve(z, f), w); + }), w = t.reduce((V, f) => Ve(V, f), w); const k = { prefix: i, disableCssColorScheme: s, @@ -7178,13 +7178,13 @@ function wh(e = {}, ...t) { getSelector: Th(w), enableContrastVars: a }, { - vars: L, - generateThemeVars: H, - generateStyleSheets: G + vars: F, + generateThemeVars: W, + generateStyleSheets: H } = 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 w.vars = F, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([V, f]) => { + w[V] = f; + }), w.generateThemeVars = W, w.generateStyleSheets = H, w.generateSpacing = function() { return Nl(d.spacing, Bs(this)); }, w.getColorSchemeSelector = Ym(c), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = { ...tr, @@ -7450,7 +7450,7 @@ const Ih = (e) => { const S = Ih(p); return /* @__PURE__ */ N.jsxs(Nh, { as: l, - className: ie(S.root, i), + className: ae(S.root, i), focusable: "false", color: u, "aria-hidden": h ? void 0 : !0, @@ -7649,7 +7649,7 @@ function Jl(e, t) { const l = typeof t == "function" ? t(a) : t, c = typeof e == "function" ? e({ ...a, ...l - }) : e, u = ie(a == null ? void 0 : a.className, l == null ? void 0 : l.className, c == null ? void 0 : c.className), d = n(c, l); + }) : e, u = ae(a == null ? void 0 : a.className, l == null ? void 0 : l.className, c == null ? void 0 : c.className), d = n(c, l); return { ...l, ...c, @@ -7668,7 +7668,7 @@ function Jl(e, t) { } }; }; - const r = t, s = n(e, r), i = ie(r == null ? void 0 : r.className, e == null ? void 0 : e.className); + const r = t, s = n(e, r), i = ae(r == null ? void 0 : r.className, e == null ? void 0 : e.className); return { ...t, ...e, @@ -8350,7 +8350,7 @@ function ac(e) { className: i } = e; if (!t) { - const m = ie(n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), g = { + const m = ae(n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), g = { ...n == null ? void 0 : n.style, ...s == null ? void 0 : s.style, ...r == null ? void 0 : r.style @@ -8367,7 +8367,7 @@ function ac(e) { const a = ic({ ...s, ...r - }), l = ba(r), c = ba(s), u = t(a), d = ie(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), h = { + }), l = ba(r), c = ba(s), u = t(a), d = ae(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), h = { ...u == null ? void 0 : u.style, ...n == null ? void 0 : n.style, ...s == null ? void 0 : s.style, @@ -8529,7 +8529,7 @@ const Yh = (e) => { `)), /* @__PURE__ */ N.jsx(Kh, { as: a, ownerState: h, - className: ie(v.root, i), + className: ae(v.root, i), ref: n, ...d, style: { @@ -8674,12 +8674,12 @@ function dc(e) { in: l, onExited: c, timeout: u - } = e, [d, h] = x.useState(!1), v = ie(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), m = { + } = e, [d, h] = x.useState(!1), v = ae(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), m = { width: a, height: a, top: -(a / 2) + i, left: -(a / 2) + s - }, g = ie(n.child, d && n.childLeaving, r && n.childPulsate); + }, g = ae(n.child, d && n.childLeaving, r && n.childPulsate); return !l && !d && h(!0), x.useEffect(() => { if (!l && c != null) { const p = setTimeout(c, u); @@ -8845,30 +8845,30 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa pulsate: E, rippleX: w, rippleY: k, - rippleSize: L, - cb: H + rippleSize: F, + cb: W } = b; - u((G) => [...G, /* @__PURE__ */ N.jsx(ry, { + u((H) => [...H, /* @__PURE__ */ N.jsx(ry, { classes: { - ripple: ie(i.ripple, Ze.ripple), - rippleVisible: ie(i.rippleVisible, Ze.rippleVisible), - ripplePulsate: ie(i.ripplePulsate, Ze.ripplePulsate), - child: ie(i.child, Ze.child), - childLeaving: ie(i.childLeaving, Ze.childLeaving), - childPulsate: ie(i.childPulsate, Ze.childPulsate) + ripple: ae(i.ripple, Ze.ripple), + rippleVisible: ae(i.rippleVisible, Ze.rippleVisible), + ripplePulsate: ae(i.ripplePulsate, Ze.ripplePulsate), + child: ae(i.child, Ze.child), + childLeaving: ae(i.childLeaving, Ze.childLeaving), + childPulsate: ae(i.childPulsate, Ze.childPulsate) }, timeout: hs, pulsate: E, rippleX: w, rippleY: k, - rippleSize: L - }, d.current)]), d.current += 1, h.current = H; + rippleSize: F + }, d.current)]), d.current += 1, h.current = W; }, [i]), S = x.useCallback((b = {}, E = {}, w = () => { }) => { const { pulsate: k = !1, - center: L = s || E.pulsate, - fakeElement: H = !1 + center: F = s || E.pulsate, + fakeElement: W = !1 // For test purposes } = E; if ((b == null ? void 0 : b.type) === "mousedown" && v.current) { @@ -8876,26 +8876,26 @@ 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, z = G ? G.getBoundingClientRect() : { + const H = W ? null : p.current, V = H ? H.getBoundingClientRect() : { width: 0, height: 0, left: 0, top: 0 }; 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); + if (F || b === void 0 || b.clientX === 0 && b.clientY === 0 || !b.clientX && !b.touches) + f = Math.round(V.width / 2), I = Math.round(V.height / 2); else { const { clientX: j, clientY: $ } = b.touches && b.touches.length > 0 ? b.touches[0] : b; - f = Math.round(j - z.left), I = Math.round($ - z.top); + f = Math.round(j - V.left), I = Math.round($ - V.top); } - if (L) - A = Math.sqrt((2 * z.width ** 2 + z.height ** 2) / 3), A % 2 === 0 && (A += 1); + if (F) + A = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), A % 2 === 0 && (A += 1); else { - 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; + const j = Math.max(Math.abs((H ? H.clientWidth : 0) - f), f) * 2 + 2, $ = Math.max(Math.abs((H ? H.clientHeight : 0) - I), I) * 2 + 2; A = Math.sqrt(j ** 2 + $ ** 2); } b != null && b.touches ? g.current === null && (g.current = () => { @@ -8933,7 +8933,7 @@ const Ze = ue("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa start: S, stop: T }), [R, S, T]), /* @__PURE__ */ N.jsx(ny, { - className: ie(Ze.root, i.root, a), + className: ae(Ze.root, i.root, a), ref: p, ...l, children: /* @__PURE__ */ N.jsx(qs, { @@ -9038,52 +9038,52 @@ const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) = onKeyDown: E, onKeyUp: w, onMouseDown: k, - onMouseLeave: L, - onMouseUp: H, - onTouchEnd: G, - onTouchMove: z, + onMouseLeave: F, + onMouseUp: W, + onTouchEnd: H, + onTouchMove: V, onTouchStart: f, tabIndex: I = 0, TouchRippleProps: A, touchRippleRef: j, type: $, - ...Y + ...K } = 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), Z.current.focus(); } }), []); - const F = X.shouldMount && !d && !u; + const B = X.shouldMount && !d && !u; x.useEffect(() => { _ && 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) => { - Z.current || (Z.current = se.currentTarget), va(se.target) && (q(!0), b && b(se)), T && T(se); + const J = St(X, "start", k, h), z = St(X, "stop", S, h), Q = St(X, "stop", R, h), L = St(X, "stop", W, h), D = St(X, "stop", (ie) => { + _ && ie.preventDefault(), F && F(ie); + }, h), G = St(X, "start", f, h), U = St(X, "stop", H, h), Y = St(X, "stop", V, h), C = St(X, "stop", (ie) => { + va(ie.target) || q(!1), p && p(ie); + }, !1), se = Wt((ie) => { + Z.current || (Z.current = ie.currentTarget), va(ie.target) && (q(!0), b && b(ie)), T && T(ie); }), ne = () => { - const se = Z.current; - return se ? se.tagName === "BUTTON" ? !1 : !(se.tagName === "A" && se.href) : c && c !== "button"; - }, he = Wt((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 === " " && _ && !se.defaultPrevented && X.stop(se, () => { - X.pulsate(se); - }), w && w(se), y && se.target === se.currentTarget && ne() && se.key === " " && !se.defaultPrevented && !u && y(se); + const ie = Z.current; + return ie ? ie.tagName === "BUTTON" ? !1 : !(ie.tagName === "A" && ie.href) : c && c !== "button"; + }, he = Wt((ie) => { + v && !ie.repeat && _ && ie.key === " " && X.stop(ie, () => { + X.start(ie); + }), ie.target === ie.currentTarget && ne() && ie.key === " " && ie.preventDefault(), E && E(ie), ie.target === ie.currentTarget && ne() && ie.key === "Enter" && !u && (ie.preventDefault(), y && y(ie)); + }), Le = Wt((ie) => { + v && ie.key === " " && _ && !ie.defaultPrevented && X.stop(ie, () => { + X.pulsate(ie); + }), w && w(ie), y && ie.target === ie.currentTarget && ne() && ie.key === " " && !ie.defaultPrevented && !u && y(ie); }); let Ne = c; - Ne === "button" && (Y.href || Y.to) && (Ne = g); + Ne === "button" && (K.href || K.to) && (Ne = g); const ke = {}; if (Ne === "button") { - const se = !!Y.formAction; - ke.type = $ === void 0 && !se ? "button" : $, ke.disabled = u; + const ie = !!K.formAction; + ke.type = $ === void 0 && !ie ? "button" : $, ke.disabled = u; } else - !Y.href && !Y.to && (ke.role = "button"), u && (ke["aria-disabled"] = u); + !K.href && !K.to && (ke.role = "button"), u && (ke["aria-disabled"] = u); const Ke = We(n, Z), ot = { ...r, centerRipple: i, @@ -9097,27 +9097,27 @@ const sy = ue("MuiButtonBase", ["root", "disabled", "focusVisible"]), iy = (e) = }, _e = iy(ot); return /* @__PURE__ */ N.jsxs(ay, { as: Ne, - className: ie(_e.root, l), + className: ae(_e.root, l), ownerState: ot, - onBlur: P, + onBlur: C, onClick: y, - onContextMenu: W, - onFocus: ae, + onContextMenu: z, + onFocus: se, onKeyDown: he, onKeyUp: Le, onMouseDown: J, - onMouseLeave: U, - onMouseUp: V, - onDragLeave: B, - onTouchEnd: D, - onTouchMove: Q, - onTouchStart: K, + onMouseLeave: D, + onMouseUp: L, + onDragLeave: Q, + onTouchEnd: U, + onTouchMove: Y, + onTouchStart: G, ref: Ke, tabIndex: u ? -1 : I, type: $, ...ke, - ...Y, - children: [a, F ? /* @__PURE__ */ N.jsx(pc, { + ...K, + children: [a, B ? /* @__PURE__ */ N.jsx(pc, { ref: O, center: i, ...A @@ -9465,7 +9465,7 @@ const it = 44, ys = Qn` y.strokeDasharray = T.toFixed(3), R["aria-valuenow"] = Math.round(h), y.strokeDashoffset = `${((100 - h) / 100 * T).toFixed(3)}px`, S.transform = "rotate(-90deg)"; } return /* @__PURE__ */ N.jsx(my, { - className: ie(p.root, s), + className: ae(p.root, s), style: { width: c, height: c, @@ -9750,7 +9750,7 @@ const Ea = ue("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar }, R = vy(S); return /* @__PURE__ */ N.jsxs(Ey, { id: v ? p : h, - className: ie(R.root, a), + className: ae(R.root, a), centerRipple: !0, focusRipple: !u, disabled: c || v, @@ -10000,7 +10000,7 @@ const Sa = ue("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub return /* @__PURE__ */ N.jsx(wy, { as: S, ref: n, - className: ie(R.root, c), + className: ae(R.root, c), ...p, ownerState: y, style: { @@ -10251,12 +10251,12 @@ const hc = /* @__PURE__ */ x.forwardRef(function(t, n) { }; b.style.width = w.width, b.value = T.value || t.placeholder || "x", b.value.slice(-1) === ` ` && (b.value += " "); - const k = w.boxSizing, L = mr(w.paddingBottom) + mr(w.paddingTop), H = mr(w.borderBottomWidth) + mr(w.borderTopWidth), G = b.scrollHeight; + const k = w.boxSizing, F = mr(w.paddingBottom) + mr(w.paddingTop), W = mr(w.borderBottomWidth) + mr(w.borderTopWidth), H = b.scrollHeight; b.value = "x"; - const z = b.scrollHeight; - let f = G; - 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; + const V = b.scrollHeight; + let f = H; + i && (f = Math.max(Number(i) * V, f)), s && (f = Math.min(Number(s) * V, f)), f = Math.max(f, V); + const I = f + (k === "border-box" ? F + W : 0), A = Math.abs(f - H) <= 1; return { outerHeightStyle: I, overflowing: A @@ -10616,31 +10616,31 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { margin: E, maxRows: w, minRows: k, - multiline: L = !1, - name: H, - onBlur: G, - onChange: z, + multiline: F = !1, + name: W, + onBlur: H, + onChange: V, onClick: f, onFocus: I, onKeyDown: A, onKeyUp: j, placeholder: $, - readOnly: Y, + readOnly: K, renderSuffix: Z, rows: X, size: O, slotProps: _ = {}, slots: q = {}, - startAdornment: F, + startAdornment: B, type: J = "text", - value: W, - ...B - } = r, V = T.value != null ? T.value : W, { - current: U - } = x.useRef(V != null), K = x.useRef(), D = x.useCallback((ye) => { + value: z, + ...Q + } = r, L = T.value != null ? T.value : z, { + current: D + } = x.useRef(L != null), G = x.useRef(), U = 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(` `)); - }, []), Q = We(K, b, T.ref, D), [P, ae] = x.useState(!1), ne = It(); + }, []), Y = We(G, b, T.ref, U), [C, se] = x.useState(!1), ne = It(); process.env.NODE_ENV !== "production" && x.useEffect(() => { if (ne) return ne.registerEffect(); @@ -10650,48 +10650,48 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { muiFormControl: ne, states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"] }); - he.focused = ne ? ne.focused : P, x.useEffect(() => { - !ne && v && P && (ae(!1), G && G()); - }, [ne, v, P, G]); + he.focused = ne ? ne.focused : C, x.useEffect(() => { + !ne && v && C && (se(!1), H && H()); + }, [ne, v, C, H]); const Le = ne && ne.onFilled, Ne = ne && ne.onEmpty, ke = x.useCallback((ye) => { Dr(ye) ? Le && Le() : Ne && Ne(); }, [Le, Ne]); Rt(() => { - U && ke({ - value: V + D && ke({ + value: L }); - }, [V, ke, U]), Rt(() => { + }, [L, ke, D]), Rt(() => { if (!a) return; - const ye = K.current; + const ye = G.current; if (!ye) return; 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(); + ye === st ? ne && ne.onFocus ? ne.onFocus() : se(!0) : lr && ye.focus(); }, [a]); const Ke = (ye) => { - I && I(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) : se(!0); }, ot = (ye) => { - G && G(ye), T.onBlur && T.onBlur(ye), ne && ne.onBlur ? ne.onBlur(ye) : ae(!1); + H && H(ye), T.onBlur && T.onBlur(ye), ne && ne.onBlur ? ne.onBlur(ye) : se(!1); }, _e = (ye, ...vt) => { - if (!U) { - const st = ye.target || K.current; + if (!D) { + const st = ye.target || G.current; if (st == null) throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : xt(1)); ke({ value: st.value }); } - T.onChange && T.onChange(ye, ...vt), z && z(ye, ...vt); + T.onChange && T.onChange(ye, ...vt), V && V(ye, ...vt); }; x.useEffect(() => { - ke(K.current); + ke(G.current); }, []); - const se = (ye) => { - K.current && ye.currentTarget === ye.target && K.current.focus(), f && f(ye); + const ie = (ye) => { + G.current && ye.currentTarget === ye.target && G.current.focus(), f && f(ye); }; let Nt = R, He = T; - 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 = { + F && 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, @@ -10703,13 +10703,13 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { ...He }, Nt = hc); const To = (ye) => { - ke(ye.animationName === Br ? K.current : { + ke(ye.animationName === Br ? G.current : { value: "x" }); }; x.useEffect(() => { - ne && ne.setAdornedStart(!!F); - }, [ne, F]); + ne && ne.setAdornedStart(!!B); + }, [ne, B]); const ut = { ...r, color: he.color || "primary", @@ -10720,9 +10720,9 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { formControl: ne, fullWidth: y, hiddenLabel: he.hiddenLabel, - multiline: L, + multiline: F, size: he.size, - startAdornment: F, + startAdornment: B, type: J }, vn = ky(ut), kt = q.root || u.Root || yo, Ct = _.root || d.root || {}, Jt = q.input || u.Input || go; return He = { @@ -10734,16 +10734,16 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { (wa || (wa = /* @__PURE__ */ N.jsx(Ca, {}))), /* @__PURE__ */ N.jsxs(kt, { ...Ct, ref: n, - onClick: se, - ...B, + onClick: ie, + ...Q, ...!Mr(kt) && { ownerState: { ...ut, ...Ct.ownerState } }, - className: ie(vn.root, Ct.className, l, Y && "MuiInputBase-readOnly"), - children: [F, /* @__PURE__ */ N.jsx(ir.Provider, { + className: ae(vn.root, Ct.className, l, K && "MuiInputBase-readOnly"), + children: [B, /* @__PURE__ */ N.jsx(ir.Provider, { value: null, children: /* @__PURE__ */ N.jsx(Jt, { "aria-invalid": he.error, @@ -10754,12 +10754,12 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { disabled: he.disabled, id: S, onAnimationStart: To, - name: H, + name: W, placeholder: $, - readOnly: Y, + readOnly: K, required: he.required, rows: X, - value: V, + value: L, onKeyDown: A, onKeyUp: j, type: J, @@ -10771,15 +10771,15 @@ const bs = "mui-auto-fill", Br = "mui-auto-fill-cancel", mo = (e, t) => { ...He.ownerState } }, - ref: Q, - className: ie(vn.input, He.className, Y && "MuiInputBase-readOnly"), + ref: Y, + className: ae(vn.input, He.className, K && "MuiInputBase-readOnly"), onBlur: ot, onChange: _e, onFocus: Ke }) }), g, Z ? Z({ ...he, - startAdornment: F + startAdornment: B }) : null] })] }); @@ -11100,7 +11100,7 @@ const By = { mode: "enter" }); f.style.transition = r.transitions.create("opacity", A), d && d(f, I); - }), k = tt(T, h), L = tt(T, p), H = tt(T, (f) => { + }), k = tt(T, h), F = tt(T, p), W = tt(T, (f) => { const I = $r({ style: y, timeout: S, @@ -11109,9 +11109,9 @@ const By = { mode: "exit" }); f.style.transition = r.transitions.create("opacity", I), m && m(f); - }), G = tt(T, (f) => { + }), H = tt(T, (f) => { f.style.transition = "", g && g(f); - }), z = (f) => { + }), V = (f) => { i && i(T.current, f); }; return /* @__PURE__ */ N.jsx(gt, { @@ -11121,10 +11121,10 @@ const By = { onEnter: w, onEntered: k, onEntering: E, - onExit: H, - onExited: G, - onExiting: L, - addEndListener: z, + onExit: W, + onExited: H, + onExiting: F, + addEndListener: V, timeout: S, ...R, children: (f, { @@ -11290,9 +11290,9 @@ const Vy = (e) => { }, [E, w] = we("root", { elementType: zy, externalForwardedProps: b, - className: ie(S.root, i), + className: ae(S.root, i), ownerState: y - }), [k, L] = we("transition", { + }), [k, F] = we("transition", { elementType: Fr, externalForwardedProps: b, ownerState: y @@ -11301,7 +11301,7 @@ const Vy = (e) => { in: c, timeout: g, ...p, - ...L, + ...F, children: /* @__PURE__ */ N.jsx(E, { "aria-hidden": !0, ...w, @@ -11880,10 +11880,10 @@ const Hy = (e) => { size: E = "medium", startIcon: w, type: k, - variant: L = "text", - ...H - } = a, G = nr(S), z = T ?? /* @__PURE__ */ N.jsx(Ks, { - "aria-labelledby": G, + variant: F = "text", + ...W + } = a, H = nr(S), V = T ?? /* @__PURE__ */ N.jsx(Ks, { + "aria-labelledby": H, color: "inherit", size: 16 }), f = { @@ -11895,11 +11895,11 @@ const Hy = (e) => { disableFocusRipple: m, fullWidth: y, loading: R, - loadingIndicator: z, + loadingIndicator: V, loadingPosition: b, size: E, type: k, - variant: L + variant: F }, I = Hy(f), A = (w || R && b === "start") && /* @__PURE__ */ N.jsx(Gy, { className: I.startIcon, ownerState: f, @@ -11914,7 +11914,7 @@ const Hy = (e) => { className: I.loadingIconPlaceholder, ownerState: f }) - }), $ = s || "", Y = typeof R == "boolean" ? ( + }), $ = s || "", K = typeof R == "boolean" ? ( // use plain HTML span to minimize the runtime overhead /* @__PURE__ */ N.jsx("span", { className: I.loadingWrapper, @@ -11924,7 +11924,7 @@ const Hy = (e) => { children: R && /* @__PURE__ */ N.jsx(Ky, { className: I.loadingIndicator, ownerState: f, - children: z + children: V }) }) ) : null, { @@ -11933,17 +11933,17 @@ const Hy = (e) => { } = I; return /* @__PURE__ */ N.jsxs(qy, { ownerState: f, - className: ie(r.className, I.root, d, $), + className: ae(r.className, I.root, d, $), component: u, disabled: h || R, focusRipple: !m, - focusVisibleClassName: ie(I.focusVisible, p), + focusVisibleClassName: ae(I.focusVisible, p), ref: n, type: k, - id: R ? G : S, - ...H, + id: R ? H : S, + ...W, classes: X, - children: [A, b !== "end" && Y, l, b === "end" && Y, j] + children: [A, b !== "end" && K, l, b === "end" && K, j] }); }); process.env.NODE_ENV !== "production" && (vs.propTypes = { @@ -12152,28 +12152,28 @@ const Jy = (e) => { type: E, value: w, slots: k = {}, - slotProps: L = {}, - ...H - } = t, [G, z] = ds({ + slotProps: F = {}, + ...W + } = t, [H, V] = ds({ controlled: s, default: !!a, name: "SwitchBase", state: "checked" - }), 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) + }), f = It(), I = (z) => { + S && S(z), f && f.onFocus && f.onFocus(z); + }, A = (z) => { + p && p(z), f && f.onBlur && f.onBlur(z); + }, j = (z) => { + if (z.nativeEvent.defaultPrevented || R) return; - const B = W.target.checked; - z(B), y && y(W, B); + const Q = z.target.checked; + V(Q), y && y(z, Q); }; let $ = l; f && typeof $ > "u" && ($ = f.disabled); - const Y = E === "checkbox" || E === "radio", Z = { + const K = E === "checkbox" || E === "radio", Z = { ...t, - checked: G, + checked: H, disabled: $, disableFocusRipple: c, edge: u @@ -12181,7 +12181,7 @@ const Jy = (e) => { slots: k, slotProps: { input: v, - ...L + ...F } }, [_, q] = we("root", { ref: n, @@ -12191,17 +12191,17 @@ const Jy = (e) => { externalForwardedProps: { ...O, component: "span", - ...H + ...W }, - getSlotProps: (W) => ({ - ...W, - onFocus: (B) => { - var V; - (V = W.onFocus) == null || V.call(W, B), I(B); + getSlotProps: (z) => ({ + ...z, + onFocus: (Q) => { + var L; + (L = z.onFocus) == null || L.call(z, Q), I(Q); }, - onBlur: (B) => { - var V; - (V = W.onBlur) == null || V.call(W, B), A(B); + onBlur: (Q) => { + var L; + (L = z.onBlur) == null || L.call(z, Q), A(Q); } }), ownerState: Z, @@ -12211,16 +12211,16 @@ const Jy = (e) => { role: void 0, tabIndex: null } - }), [F, J] = we("input", { + }), [B, J] = we("input", { ref: m, elementType: Zy, className: X.input, externalForwardedProps: O, - getSlotProps: (W) => ({ - ...W, - onChange: (B) => { - var V; - (V = W.onChange) == null || V.call(W, B), j(B); + getSlotProps: (z) => ({ + ...z, + onChange: (Q) => { + var L; + (L = z.onChange) == null || L.call(z, Q), j(Q); } }), ownerState: Z, @@ -12229,7 +12229,7 @@ const Jy = (e) => { checked: s, defaultChecked: a, disabled: $, - id: Y ? h : void 0, + id: K ? h : void 0, name: g, readOnly: R, required: T, @@ -12242,9 +12242,9 @@ const Jy = (e) => { }); return /* @__PURE__ */ N.jsxs(_, { ...q, - children: [/* @__PURE__ */ N.jsx(F, { + children: [/* @__PURE__ */ N.jsx(B, { ...J - }), G ? i : d] + }), H ? i : d] }); }); process.env.NODE_ENV !== "production" && (Ec.propTypes = { @@ -12476,7 +12476,7 @@ const zo = ue("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c }, T = og(R), b = g.input ?? u, [E, w] = we("root", { ref: n, elementType: sg, - className: ie(T.root, v), + className: ae(T.root, v), shouldForwardComponentProp: !0, externalForwardedProps: { slots: m, @@ -12807,26 +12807,26 @@ function Ur(e) { return; cn(T) === g.current && k.shiftKey && (c.current = !0, d.current && d.current.focus()); }, E = () => { - var G, z; + var H, V; const k = g.current; if (k === null) return; - const L = cn(T); + const F = cn(T); if (!T.hasFocus() || !a() || c.current) { c.current = !1; return; } - if (xa(k, L) || r && L !== u.current && L !== d.current) + if (xa(k, F) || r && F !== u.current && F !== d.current) return; - if (L !== v.current) + if (F !== v.current) v.current = null; else if (v.current !== null) return; if (!m.current) return; - let H = []; - 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]; + let W = []; + if ((F === u.current || F === d.current) && (W = i(g.current)), W.length > 0) { + const f = !!((H = y.current) != null && H.shiftKey && ((V = y.current) == null ? void 0 : V.key) === "Tab"), I = W[0], A = W[W.length - 1]; typeof I != "string" && typeof A != "string" && (f ? A.focus() : I.focus()); } else k.focus(); @@ -12949,29 +12949,29 @@ function xg(e) { }, w = Wt(() => { const j = Sg(t) || T().body; hr.add(b(), j), m.current && E(); - }), k = () => hr.isTopModal(b()), L = Wt((j) => { + }), k = () => hr.isTopModal(b()), F = Wt((j) => { v.current = j, j && (u && k() ? E() : m.current && Mn(m.current, R)); - }), H = x.useCallback(() => { + }), W = x.useCallback(() => { hr.remove(b(), R); }, [R]); x.useEffect(() => () => { - H(); - }, [H]), x.useEffect(() => { - u ? w() : (!S || !s) && H(); - }, [u, H, S, s, w]); - const G = (j) => ($) => { - var Y; - (Y = j.onKeyDown) == null || Y.call(j, $), !($.key !== "Escape" || $.which === 229 || // Wait until IME is settled. + W(); + }, [W]), x.useEffect(() => { + u ? w() : (!S || !s) && W(); + }, [u, W, S, s, w]); + const H = (j) => ($) => { + var K; + (K = j.onKeyDown) == null || K.call(j, $), !($.key !== "Escape" || $.which === 229 || // Wait until IME is settled. !k()) && (n || ($.stopPropagation(), c && c($, "escapeKeyDown"))); - }, z = (j) => ($) => { - var Y; - (Y = j.onClick) == null || Y.call(j, $), $.target === $.currentTarget && c && c($, "backdropClick"); + }, V = (j) => ($) => { + var K; + (K = j.onClick) == null || K.call(j, $), $.target === $.currentTarget && c && c($, "backdropClick"); }; return { getRootProps: (j = {}) => { const $ = ic(e); delete $.onTransitionEnter, delete $.onTransitionExited; - const Y = { + const K = { ...$, ...j }; @@ -12983,8 +12983,8 @@ function xg(e) { * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md */ role: "presentation", - ...Y, - onKeyDown: G(Y), + ...K, + onKeyDown: H(K), ref: g }; }, @@ -12993,7 +12993,7 @@ function xg(e) { return { "aria-hidden": !0, ...$, - onClick: z($), + onClick: V($), open: u }; }, @@ -13001,7 +13001,7 @@ function xg(e) { const j = () => { y(!1), i && i(); }, $ = () => { - y(!0), a && a(), s && H(); + y(!0), a && a(), s && W(); }; return { onEnter: ma(j, (l == null ? void 0 : l.props.onEnter) ?? Ia), @@ -13009,7 +13009,7 @@ function xg(e) { }; }, rootRef: g, - portalRef: L, + portalRef: F, isTopModal: k, exited: p, hasTransition: S @@ -13085,10 +13085,10 @@ const Rg = (e) => { keepMounted: E = !1, onClose: w, onTransitionEnter: k, - onTransitionExited: L, - open: H, - slotProps: G = {}, - slots: z = {}, + onTransitionExited: F, + open: W, + slotProps: H = {}, + slots: V = {}, // eslint-disable-next-line react/prop-types theme: f, ...I @@ -13106,7 +13106,7 @@ const Rg = (e) => { }, { getRootProps: j, getBackdropProps: $, - getTransitionProps: Y, + getTransitionProps: K, portalRef: Z, isTopModal: X, exited: O, @@ -13117,64 +13117,64 @@ const Rg = (e) => { }), q = { ...A, exited: O - }, F = Rg(q), J = {}; + }, B = Rg(q), J = {}; if (u.props.tabIndex === void 0 && (J.tabIndex = "-1"), _) { const { - onEnter: D, - onExited: Q - } = Y(); - J.onEnter = D, J.onExited = Q; + onEnter: U, + onExited: Y + } = K(); + J.onEnter = U, J.onExited = Y; } - const W = { + const z = { slots: { root: v.Root, backdrop: v.Backdrop, - ...z + ...V }, slotProps: { ...m, - ...G + ...H } - }, [B, V] = we("root", { + }, [Q, L] = we("root", { ref: n, elementType: wg, externalForwardedProps: { - ...W, + ...z, ...I, component: h }, getSlotProps: j, ownerState: q, - className: ie(l, F == null ? void 0 : F.root, !q.open && q.exited && (F == null ? void 0 : F.hidden)) - }), [U, K] = we("backdrop", { + className: ae(l, B == null ? void 0 : B.root, !q.open && q.exited && (B == null ? void 0 : B.hidden)) + }), [D, G] = we("backdrop", { ref: i == null ? void 0 : i.ref, elementType: s, - externalForwardedProps: W, + externalForwardedProps: z, shouldForwardComponentProp: !0, additionalProps: i, - getSlotProps: (D) => $({ - ...D, - onClick: (Q) => { - D != null && D.onClick && D.onClick(Q); + getSlotProps: (U) => $({ + ...U, + onClick: (Y) => { + U != null && U.onClick && U.onClick(Y); } }), - className: ie(i == null ? void 0 : i.className, F == null ? void 0 : F.backdrop), + className: ae(i == null ? void 0 : i.className, B == null ? void 0 : B.backdrop), ownerState: q }); - return !E && !H && (!_ || O) ? null : /* @__PURE__ */ N.jsx(Lr, { + return !E && !W && (!_ || O) ? null : /* @__PURE__ */ N.jsx(Lr, { ref: Z, container: d, disablePortal: S, - children: /* @__PURE__ */ N.jsxs(B, { - ...V, - children: [!b && s ? /* @__PURE__ */ N.jsx(U, { - ...K + children: /* @__PURE__ */ N.jsxs(Q, { + ...L, + children: [!b && s ? /* @__PURE__ */ N.jsx(D, { + ...G }) : null, /* @__PURE__ */ N.jsx(Ur, { disableEnforceFocus: p, disableAutoFocus: g, disableRestoreFocus: R, isEnabled: X, - open: H, + open: W, children: /* @__PURE__ */ x.cloneElement(u, J) })] }) @@ -13544,10 +13544,10 @@ const _g = ee(Xs, { PaperProps: E = {}, role: w = "dialog", scroll: k = "paper", - slots: L = {}, - slotProps: H = {}, - TransitionComponent: G = Fr, - transitionDuration: z = i, + slots: F = {}, + slotProps: W = {}, + TransitionComponent: H = Fr, + transitionDuration: V = i, TransitionProps: f, ...I } = r, A = { @@ -13557,40 +13557,40 @@ const _g = ee(Xs, { fullWidth: p, maxWidth: y, scroll: k - }, j = Ag(A), $ = x.useRef(), Y = (ne) => { + }, j = Ag(A), $ = x.useRef(), K = (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]), _ = { - transition: G, - ...L + transition: H, + ...F }, q = { transition: f, paper: E, backdrop: d, - ...H - }, F = { + ...W + }, B = { slots: _, slotProps: q - }, [J, W] = we("root", { + }, [J, z] = we("root", { elementType: Ig, shouldForwardComponentProp: !0, - externalForwardedProps: F, + externalForwardedProps: B, ownerState: A, - className: ie(j.root, v), + className: ae(j.root, v), ref: n - }), [B, V] = we("backdrop", { + }), [Q, L] = we("backdrop", { elementType: _g, shouldForwardComponentProp: !0, - externalForwardedProps: F, + externalForwardedProps: B, ownerState: A, className: j.backdrop - }), [U, K] = we("paper", { + }), [D, G] = we("paper", { elementType: kg, shouldForwardComponentProp: !0, - externalForwardedProps: F, + externalForwardedProps: B, ownerState: A, className: j.paper, additionalProps: { @@ -13602,48 +13602,48 @@ const _g = ee(Xs, { tabIndex: -1, [Es]: "" } - }), [D, Q] = we("container", { + }), [U, Y] = we("container", { elementType: Ng, - externalForwardedProps: F, + externalForwardedProps: B, ownerState: A, className: j.container - }), [P, ae] = we("transition", { + }), [C, se] = we("transition", { elementType: Fr, - externalForwardedProps: F, + externalForwardedProps: B, ownerState: A, additionalProps: { appear: !0, in: T, - timeout: z, + timeout: V, role: "presentation" } }); return /* @__PURE__ */ N.jsx(J, { closeAfterTransition: !0, slots: { - backdrop: B + backdrop: Q }, slotProps: { backdrop: { - transitionDuration: z, + transitionDuration: V, as: u, - ...V + ...L } }, disableEscapeKeyDown: m, onClose: R, open: T, onClick: Z, - ...W, + ...z, ...I, - children: /* @__PURE__ */ N.jsx(P, { - ...ae, - children: /* @__PURE__ */ N.jsx(D, { - onMouseDown: Y, - ...Q, - children: /* @__PURE__ */ N.jsx(U, { + children: /* @__PURE__ */ N.jsx(C, { + ...se, + children: /* @__PURE__ */ N.jsx(U, { + onMouseDown: K, + ...Y, + children: /* @__PURE__ */ N.jsx(D, { as: b, - ...K, + ...G, children: /* @__PURE__ */ N.jsx(Qs.Provider, { value: O, children: h @@ -13865,7 +13865,7 @@ const Mg = (e) => { disableSpacing: i }, c = Mg(l); return /* @__PURE__ */ N.jsx(jg, { - className: ie(c.root, s), + className: ae(c.root, s), ownerState: l, ref: n, ...a @@ -13962,7 +13962,7 @@ const Bg = ue("MuiDialogTitle", ["root"]), Fg = (e) => { dividers: i }, c = Fg(l); return /* @__PURE__ */ N.jsx(Ug, { - className: ie(c.root, s), + className: ae(c.root, s), ownerState: l, ref: n, ...a @@ -14021,7 +14021,7 @@ const Vg = (e) => { } = x.useContext(Qs); return /* @__PURE__ */ N.jsx(zg, { component: "h2", - className: ie(c.root, s), + className: ae(c.root, s), ownerState: l, ref: n, variant: "h6", @@ -14631,23 +14631,23 @@ const Yg = (e) => { variant: y }, T = Yg(R), [b, E] = x.useState(() => { let $ = !1; - return s && x.Children.forEach(s, (Y) => { - if (!Uo(Y, ["Input", "Select"])) + return s && x.Children.forEach(s, (K) => { + if (!Uo(K, ["Input", "Select"])) return; - const Z = Uo(Y, ["Select"]) ? Y.props.input : Y; + const Z = Uo(K, ["Select"]) ? K.props.input : K; Z && Iy(Z.props) && ($ = !0); }), $; }), [w, k] = x.useState(() => { let $ = !1; - return s && x.Children.forEach(s, (Y) => { - Uo(Y, ["Input", "Select"]) && (Dr(Y.props, !0) || Dr(Y.props.inputProps, !0)) && ($ = !0); + return s && x.Children.forEach(s, (K) => { + Uo(K, ["Input", "Select"]) && (Dr(K.props, !0) || Dr(K.props.inputProps, !0)) && ($ = !0); }), $; - }), [L, H] = x.useState(!1); - c && L && H(!1); - const G = d !== void 0 && !c ? d : L; - let z; + }), [F, W] = x.useState(!1); + c && F && W(!1); + const H = d !== void 0 && !c ? d : F; + let V; const f = x.useRef(!1); - 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(` + process.env.NODE_ENV !== "production" && (V = () => (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; })); @@ -14662,28 +14662,28 @@ const Yg = (e) => { disabled: c, error: u, filled: w, - focused: G, + focused: H, fullWidth: h, hiddenLabel: v, size: p, onBlur: () => { - H(!1); + W(!1); }, onFocus: () => { - H(!0); + W(!0); }, onEmpty: A, onFilled: I, - registerEffect: z, + registerEffect: V, required: g, variant: y - }), [b, a, c, u, w, G, h, v, z, A, I, g, p, y]); + }), [b, a, c, u, w, H, h, v, V, A, I, g, p, y]); return /* @__PURE__ */ N.jsx(ir.Provider, { value: j, children: /* @__PURE__ */ N.jsx(Kg, { as: l, ownerState: R, - className: ie(T.root, i), + className: ae(T.root, i), ref: n, ...S, children: s @@ -14866,7 +14866,7 @@ const Jg = (e) => { const R = Jg(S); return /* @__PURE__ */ N.jsx(Qg, { as: a, - className: ie(R.root, i), + className: ae(R.root, i), ref: n, ...g, ownerState: S, @@ -15033,7 +15033,7 @@ const jn = ue("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", return /* @__PURE__ */ N.jsxs(tb, { as: l, ownerState: y, - className: ie(S.root, i), + className: ae(S.root, i), ref: n, ...m, children: [s, p.required && /* @__PURE__ */ N.jsxs(nb, { @@ -15142,7 +15142,7 @@ const rb = { const { duration: j, delay: $, - easing: Y + easing: K } = $r({ style: g, timeout: p, @@ -15157,9 +15157,9 @@ const rb = { }), T.transitions.create("transform", { duration: Z * 0.666, delay: $, - easing: Y + easing: K })].join(","), c && c(I, A); - }), L = tt(b, u), H = tt(b, m), G = tt(b, (I) => { + }), F = tt(b, u), W = tt(b, m), H = tt(b, (I) => { const { duration: A, delay: j, @@ -15171,16 +15171,16 @@ const rb = { }, { mode: "exit" }); - let Y; - p === "auto" ? (Y = T.transitions.getAutoHeightDuration(I.clientHeight), R.current = Y) : Y = A, I.style.transition = [T.transitions.create("opacity", { - duration: Y, + let K; + p === "auto" ? (K = T.transitions.getAutoHeightDuration(I.clientHeight), R.current = K) : K = A, I.style.transition = [T.transitions.create("opacity", { + duration: K, delay: j }), T.transitions.create("transform", { - duration: Y * 0.666, - delay: j || Y * 0.333, + duration: K * 0.666, + delay: j || K * 0.333, easing: $ })].join(","), I.style.opacity = 0, I.style.transform = Ln(0.75), h && h(I); - }), z = tt(b, (I) => { + }), V = tt(b, (I) => { I.style.transition = "", v && v(I); }), f = (I) => { p === "auto" && S.start(R.current || 0, I), r && r(b.current, I); @@ -15190,11 +15190,11 @@ const rb = { in: l, nodeRef: b, onEnter: k, - onEntered: L, + onEntered: F, onEntering: w, - onExit: G, - onExited: z, - onExiting: H, + onExit: H, + onExited: V, + onExiting: W, addEndListener: f, timeout: p === "auto" ? null : p, ...y, @@ -15710,7 +15710,7 @@ const cb = (e, t) => { children: /* @__PURE__ */ N.jsx(db, { as: a, ownerState: g, - className: ie(p.root, i), + className: ae(p.root, i), ref: n, ...h, children: typeof s == "string" && !c ? /* @__PURE__ */ N.jsx(Tt, { @@ -15964,7 +15964,7 @@ const fb = (e) => { return /* @__PURE__ */ N.jsx(mb, { "data-shrink": h, ref: n, - className: ie(g.root, c), + className: ae(g.root, c), ...u, ownerState: m, classes: g @@ -16107,7 +16107,7 @@ const yb = (e) => { value: h, children: /* @__PURE__ */ N.jsxs(gb, { as: a, - className: ie(m.root, i), + className: ae(m.root, i), ref: n, ownerState: v, ...d, @@ -16304,9 +16304,9 @@ const Cn = ue("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems ref: w, href: g.href || g.to, component: (g.href || g.to) && a === "div" ? "button" : a, - focusVisibleClassName: ie(T.focusVisible, h), + focusVisibleClassName: ae(T.focusVisible, h), ownerState: R, - className: ie(T.root, m), + className: ae(T.root, m), ...g, classes: E, children: l @@ -16483,7 +16483,7 @@ const yr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar ...m } }, [E, w] = we("root", { - className: ie(T.root, i), + className: ae(T.root, i), elementType: Ob, externalForwardedProps: { ...b, @@ -16491,12 +16491,12 @@ const yr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar }, ownerState: R, ref: n - }), [k, L] = we("primary", { + }), [k, F] = we("primary", { className: T.primary, elementType: Tt, externalForwardedProps: b, ownerState: R - }), [H, G] = we("secondary", { + }), [W, H] = we("secondary", { className: T.secondary, elementType: Tt, externalForwardedProps: b, @@ -16504,13 +16504,13 @@ const yr = ue("MuiListItemText", ["root", "multiline", "dense", "inset", "primar }); return y != null && y.type !== Tt && !a && (y = /* @__PURE__ */ N.jsx(k, { variant: p ? "body2" : "body1", - component: L != null && L.variant ? void 0 : "span", - ...L, + component: F != null && F.variant ? void 0 : "span", + ...F, children: y - })), S != null && S.type !== Tt && !a && (S = /* @__PURE__ */ N.jsx(H, { + })), S != null && S.type !== Tt && !a && (S = /* @__PURE__ */ N.jsx(W, { variant: "body2", color: "textSecondary", - ...G, + ...H, children: S })), /* @__PURE__ */ N.jsxs(E, { ...w, @@ -16669,10 +16669,10 @@ const $c = /* @__PURE__ */ x.forwardRef(function(t, n) { else if (E === "End") T.preventDefault(), Pn(b, null, u, c, ja); else if (E.length === 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; + const F = g.current, W = E.toLowerCase(), H = performance.now(); + F.keys.length > 0 && (H - F.lastTime > 500 ? (F.keys = [], F.repeating = !0, F.previousKeyMatched = !0) : F.repeating && W !== F.keys[0] && (F.repeating = !1)), F.lastTime = H, F.keys.push(W); + const V = k && !F.repeating && kc(k, F); + F.previousKeyMatched && (V || Pn(b, k, !1, c, qo, F)) ? T.preventDefault() : F.previousKeyMatched = !1; } d && d(T); }, y = We(m, n); @@ -16825,7 +16825,7 @@ const wb = (e) => { // TODO: remove in v7 disableScrollLock: w = !1, ...k - } = r, L = x.useRef(), H = { + } = r, F = x.useRef(), W = { ...r, anchorOrigin: a, anchorReference: c, @@ -16835,65 +16835,65 @@ const wb = (e) => { TransitionComponent: T, transitionDuration: b, TransitionProps: E - }, G = wb(H), z = x.useCallback(() => { + }, H = wb(W), V = 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 D = kn(i), Q = D && D.nodeType === 1 ? D : nt(L.current).body, P = Q.getBoundingClientRect(); + const U = kn(i), Y = U && U.nodeType === 1 ? U : nt(F.current).body, C = Y.getBoundingClientRect(); if (process.env.NODE_ENV !== "production") { - 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(` + const se = Y.getBoundingClientRect(); + mc() && se.top === 0 && se.left === 0 && se.right === 0 && se.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: P.top + La(P, a.vertical), - left: P.left + Da(P, a.horizontal) + top: C.top + La(C, a.vertical), + left: C.left + Da(C, a.horizontal) }; - }, [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); + }, [i, a.horizontal, a.vertical, l, c]), f = x.useCallback((U) => ({ + vertical: La(U, R.vertical), + horizontal: Da(U, R.horizontal) + }), [R.horizontal, R.vertical]), I = x.useCallback((U) => { + const Y = { + width: U.offsetWidth, + height: U.offsetHeight + }, C = f(Y); if (c === "none") return { top: null, left: null, - transformOrigin: Ba(P) + transformOrigin: Ba(C) }; - 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; + const se = V(); + let ne = se.top - C.vertical, he = se.left - C.horizontal; + const Le = ne + Y.height, Ne = he + Y.width, ke = wt(kn(i)), Ke = ke.innerHeight - m, ot = ke.innerWidth - m; if (m !== null && ne < m) { const _e = ne - m; - ne -= _e, P.vertical += _e; + ne -= _e, C.vertical += _e; } else if (m !== null && Le > Ke) { const _e = Le - Ke; - ne -= _e, P.vertical += _e; + ne -= _e, C.vertical += _e; } - 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(` + if (process.env.NODE_ENV !== "production" && Y.height > Ke && Y.height && Ke && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${Y.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, P.horizontal += _e; + he -= _e, C.horizontal += _e; } else if (Ne > ot) { const _e = Ne - ot; - he -= _e, P.horizontal += _e; + he -= _e, C.horizontal += _e; } return { top: `${Math.round(ne)}px`, left: `${Math.round(he)}px`, - transformOrigin: Ba(P) + transformOrigin: Ba(C) }; - }, [i, c, z, f, m]), [A, j] = x.useState(g), $ = x.useCallback(() => { - const D = L.current; - if (!D) + }, [i, c, V, f, m]), [A, j] = x.useState(g), $ = x.useCallback(() => { + const U = F.current; + if (!U) return; - 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); + const Y = I(U); + Y.top !== null && U.style.setProperty("top", Y.top), Y.left !== null && (U.style.left = Y.left), U.style.transformOrigin = Y.transformOrigin, j(!0); }, [I]); x.useEffect(() => (w && window.addEventListener("scroll", $), () => window.removeEventListener("scroll", $)), [i, w, $]); - const Y = () => { + const K = () => { $(); }, Z = () => { j(!1); @@ -16907,11 +16907,11 @@ const wb = (e) => { } : null, [g, $]), x.useEffect(() => { if (!g) return; - const D = Xl(() => { + const U = Xl(() => { $(); - }), Q = wt(kn(i)); - return Q.addEventListener("resize", D), () => { - D.clear(), Q.removeEventListener("resize", D); + }), Y = wt(kn(i)); + return Y.addEventListener("resize", U), () => { + U.clear(), Y.removeEventListener("resize", U); }; }, [i, g, $]); let X = b; @@ -16928,16 +16928,16 @@ const wb = (e) => { }, [_, q] = we("transition", { elementType: Vr, externalForwardedProps: O, - ownerState: H, - getSlotProps: (D) => ({ - ...D, - onEntering: (Q, P) => { - var ae; - (ae = D.onEntering) == null || ae.call(D, Q, P), Y(); + ownerState: W, + getSlotProps: (U) => ({ + ...U, + onEntering: (Y, C) => { + var se; + (se = U.onEntering) == null || se.call(U, Y, C), K(); }, - onExited: (Q) => { - var P; - (P = D.onExited) == null || P.call(D, Q), Z(); + onExited: (Y) => { + var C; + (C = U.onExited) == null || C.call(U, Y), Z(); } }), additionalProps: { @@ -16946,10 +16946,10 @@ const wb = (e) => { } }); b === "auto" && !_.muiSupportAuto && (X = void 0); - const F = h || (i ? nt(kn(i)).body : void 0), [J, { - slots: W, - slotProps: B, - ...V + const B = h || (i ? nt(kn(i)).body : void 0), [J, { + slots: z, + slotProps: Q, + ...L }] = we("root", { ref: n, elementType: Cb, @@ -16963,18 +16963,18 @@ const wb = (e) => { backdrop: y.backdrop }, slotProps: { - backdrop: Jl(typeof S.backdrop == "function" ? S.backdrop(H) : S.backdrop, { + backdrop: Jl(typeof S.backdrop == "function" ? S.backdrop(W) : S.backdrop, { invisible: !0 }) }, - container: F, + container: B, open: g }, - ownerState: H, - className: ie(G.root, d) - }), [U, K] = we("paper", { - ref: L, - className: G.paper, + ownerState: W, + className: ae(H.root, d) + }), [D, G] = we("paper", { + ref: F, + className: H.paper, elementType: Mc, externalForwardedProps: O, shouldForwardComponentProp: !0, @@ -16984,20 +16984,20 @@ const wb = (e) => { opacity: 0 } }, - ownerState: H + ownerState: W }); return /* @__PURE__ */ N.jsx(J, { - ...V, + ...L, ...!Mr(J) && { - slots: W, - slotProps: B, + slots: z, + slotProps: Q, disableScrollLock: w }, children: /* @__PURE__ */ N.jsx(_, { ...q, timeout: X, - children: /* @__PURE__ */ N.jsx(U, { - ...K, + children: /* @__PURE__ */ N.jsx(D, { + ...G, children: u }) }) @@ -17274,17 +17274,17 @@ const _b = { transitionDuration: m, TransitionProps: p, variant: y - }, w = Ib(E), k = s && !l && d, L = x.useRef(null), H = (X, O) => { - L.current && L.current.adjustStyleForScrollbar(X, { + }, w = Ib(E), k = s && !l && d, F = x.useRef(null), W = (X, O) => { + F.current && F.current.adjustStyleForScrollbar(X, { direction: b ? "rtl" : "ltr" }), g && g(X, O); - }, G = (X) => { + }, H = (X) => { X.key === "Tab" && (X.preventDefault(), u && u(X, "tabKeyDown")); }; - let z = -1; + let V = -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 || z === -1) && (z = O)); +`)), X.props.disabled || (y === "selectedMenu" && X.props.selected || V === -1) && (V = O)); }); const f = { slots: S, @@ -17305,8 +17305,8 @@ const _b = { externalForwardedProps: f, shouldForwardComponentProp: !0, ownerState: E - }), [$, Y] = we("list", { - className: ie(w.list, c.className), + }), [$, K] = we("list", { + className: ae(w.list, c.className), elementType: $b, shouldForwardComponentProp: !0, externalForwardedProps: f, @@ -17314,7 +17314,7 @@ const _b = { ...X, onKeyDown: (O) => { var _; - G(O), (_ = X.onKeyDown) == null || _.call(X, O); + H(O), (_ = X.onKeyDown) == null || _.call(X, O); } }), ownerState: E @@ -17343,7 +17343,7 @@ const _b = { ...Z, onEntering: (...X) => { var O; - H(...X), (O = Z == null ? void 0 : Z.onEntering) == null || O.call(Z, ...X); + W(...X), (O = Z == null ? void 0 : Z.onEntering) == null || O.call(Z, ...X); } } }, @@ -17354,11 +17354,11 @@ const _b = { ...T, classes: v, children: /* @__PURE__ */ N.jsx($, { - actions: L, - autoFocus: s && (z === -1 || l), + actions: F, + autoFocus: s && (V === -1 || l), autoFocusItem: k, variant: y, - ...Y, + ...K, children: i }) }); @@ -17632,7 +17632,7 @@ const ei = ue("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli return /* @__PURE__ */ N.jsxs(x.Fragment, { children: [/* @__PURE__ */ N.jsx(Lb, { ownerState: d, - className: ie(h.select, r), + className: ae(h.select, r), disabled: s, ref: l || n, ...u @@ -17809,18 +17809,18 @@ const Vb = ee(Dc, { onClose: w, onFocus: k, // eslint-disable-next-line react/prop-types - onKeyDown: L, + onKeyDown: F, // eslint-disable-next-line react/prop-types - onMouseDown: H, - onOpen: G, - open: z, + onMouseDown: W, + onOpen: H, + open: V, readOnly: f, renderValue: I, required: A, SelectDisplayProps: j = {}, tabIndex: $, // catching `type` from Input which makes no sense for SelectInput - type: Y, + type: K, value: Z, variant: X = "standard", ...O @@ -17828,43 +17828,43 @@ const Vb = ee(Dc, { controlled: Z, default: d, name: "Select" - }), [F, J] = ds({ - controlled: z, + }), [B, J] = ds({ + controlled: V, default: u, name: "Select" - }), W = x.useRef(null), B = x.useRef(null), [V, U] = x.useState(null), { - current: K - } = 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; + }), z = x.useRef(null), Q = x.useRef(null), [L, D] = x.useState(null), { + current: G + } = x.useRef(V != null), [U, Y] = x.useState(), [C, se] = x.useState(null), ne = We(n, p), he = x.useCallback((oe) => { + Q.current = oe, oe && D(oe); + }, []), Le = L == null ? void 0 : L.parentNode; x.useImperativeHandle(ne, () => ({ focus: () => { - B.current.focus(); + Q.current.focus(); }, - node: W.current, + node: z.current, value: _ }), [_]); - const Ne = V !== null && F; + const Ne = L !== null && B; x.useEffect(() => { if (!Ne || !Le || a || typeof ResizeObserver > "u") return; const oe = new ResizeObserver(() => { - Q(Le.clientWidth); + Y(Le.clientWidth); }); return oe.observe(Le), () => { oe.disconnect(); }; }, [Ne, Le, a]), x.useEffect(() => { - u && F && V && !K && (Q(a ? null : Le.clientWidth), B.current.focus()); - }, [V, a]), x.useEffect(() => { - i && B.current.focus(); + u && B && L && !G && (Y(a ? null : Le.clientWidth), Q.current.focus()); + }, [L, a]), x.useEffect(() => { + i && Q.current.focus(); }, [i]), x.useEffect(() => { if (!y) return; - const oe = nt(B.current).getElementById(y); + const oe = nt(Q.current).getElementById(y); if (oe) { const ce = () => { - getSelection().isCollapsed && B.current.focus(); + getSelection().isCollapsed && Q.current.focus(); }; return oe.addEventListener("click", ce), () => { oe.removeEventListener("click", ce); @@ -17872,12 +17872,12 @@ const Vb = ee(Dc, { } }, [y]); const ke = (oe, ce) => { - oe ? (ae(Bb(ce)), G && G(ce)) : (ae(null), w && w(ce)), K || (Q(a ? null : Le.clientWidth), J(oe)); + oe ? (se(Bb(ce)), H && H(ce)) : (se(null), w && w(ce)), G || (Y(a ? null : Le.clientWidth), J(oe)); }, Ke = (oe) => { - H == null || H(oe), oe.button === 0 && (oe.preventDefault(), B.current.focus(), ke(!0, oe)); + W == null || W(oe), oe.button === 0 && (oe.preventDefault(), Q.current.focus(), ke(!0, oe)); }, ot = (oe) => { ke(!1, oe); - }, _e = x.Children.toArray(l), se = (oe) => { + }, _e = x.Children.toArray(l), ie = (oe) => { const ce = _e.find((De) => De.props.value === oe.target.value); ce !== void 0 && (q(ce.props.value), E && E(oe, ce)); }, Nt = (oe) => (ce) => { @@ -17909,7 +17909,7 @@ 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)), L == null || L(oe)); + ].includes(oe.key) && (oe.preventDefault(), ke(!0, oe)), F == null || F(oe)); }, To = (oe) => { !Ne && b && (Object.defineProperty(oe, "target", { writable: !0, @@ -17959,8 +17959,8 @@ const Vb = ee(Dc, { `)); } }, [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 vt = U; + !a && G && L && (vt = Le.clientWidth); let st; typeof $ < "u" ? st = $ : st = h ? null : 0; const lr = j.id || (T ? `mui-component-select-${T}` : void 0), Qt = { @@ -17997,7 +17997,7 @@ const Vb = ee(Dc, { onFocus: k, ...j, ownerState: Qt, - className: ie(j.className, xo.select, c), + className: ae(j.className, xo.select, c), id: lr, children: Fb(ut) ? ( // notranslate needed while Google Translate will not fix zero-width space issue @@ -18011,9 +18011,9 @@ const Vb = ee(Dc, { "aria-invalid": m, value: Array.isArray(_) ? _.join(",") : _, name: T, - ref: W, + ref: z, "aria-hidden": !0, - onChange: se, + onChange: ie, tabIndex: -1, disabled: h, className: xo.nativeInput, @@ -18026,7 +18026,7 @@ const Vb = ee(Dc, { className: xo.icon, ownerState: Qt }), /* @__PURE__ */ N.jsx(Ub, { - value: P, + value: C, children: /* @__PURE__ */ N.jsx(Lc, { id: `menu-${T || ""}`, anchorEl: Le, @@ -18790,19 +18790,19 @@ const Qb = (e) => { open: E, renderValue: w, SelectDisplayProps: k, - variant: L = "outlined", - ...H - } = r, G = R ? Fc : zc, z = It(), f = bn({ + variant: F = "outlined", + ...W + } = r, H = R ? Fc : zc, V = It(), f = bn({ props: r, - muiFormControl: z, + muiFormControl: V, states: ["variant", "error"] - }), I = f.variant || L, A = { + }), I = f.variant || F, A = { ...r, variant: I, classes: a }, j = Qb(A), { root: $, - ...Y + ...K } = j, Z = v || { standard: /* @__PURE__ */ N.jsx(Zb, { ownerState: A @@ -18819,7 +18819,7 @@ const Qb = (e) => { 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, + inputComponent: H, inputProps: { children: i, error: f.error, @@ -18846,19 +18846,19 @@ const Qb = (e) => { } }, ...m, - classes: m ? Ve(Y, m.classes) : Y, + classes: m ? Ve(K, m.classes) : K, ...v ? v.props.inputProps : {} }, ...(S && R || u) && I === "outlined" ? { notched: !0 } : {}, ref: X, - className: ie(Z.props.className, l, j.root), + className: ae(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: I }, - ...H + ...W }) }); }); @@ -19053,22 +19053,22 @@ const rv = { maxRows: E, minRows: w, multiline: k = !1, - name: L, - onBlur: H, - onChange: G, - onFocus: z, + name: F, + onBlur: W, + onChange: H, + onFocus: V, placeholder: f, required: I = !1, rows: A, select: j = !1, SelectProps: $, - slots: Y = {}, + slots: K = {}, slotProps: Z = {}, type: X, value: O, variant: _ = "outlined", ...q - } = r, F = { + } = r, B = { ...r, autoFocus: i, color: c, @@ -19079,10 +19079,10 @@ const rv = { required: I, select: j, variant: _ - }, J = ov(F); + }, J = ov(B); 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, + const z = nr(p), Q = g && z ? `${z}-helper-text` : void 0, L = b && z ? `${z}-label` : void 0, D = rv[_], G = { + slots: K, slotProps: { input: R, inputLabel: y, @@ -19091,17 +19091,17 @@ const rv = { select: $, ...Z } - }, 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", { + }, U = {}, Y = G.slotProps.inputLabel; + _ === "outlined" && (Y && typeof Y.shrink < "u" && (U.notched = Y.shrink), U.label = b), j && ((!$ || !$.native) && (U.id = void 0), U["aria-describedby"] = void 0); + const [C, se] = we("root", { elementType: sv, shouldForwardComponentProp: !0, externalForwardedProps: { - ...K, + ...G, ...q }, - ownerState: F, - className: ie(J.root, l), + ownerState: B, + className: ae(J.root, l), ref: n, additionalProps: { disabled: d, @@ -19112,68 +19112,68 @@ const rv = { variant: _ } }), [ne, he] = we("input", { - elementType: U, - externalForwardedProps: K, - additionalProps: D, - ownerState: F + elementType: D, + externalForwardedProps: G, + additionalProps: U, + ownerState: B }), [Le, Ne] = we("inputLabel", { elementType: Ic, - externalForwardedProps: K, - ownerState: F + externalForwardedProps: G, + ownerState: B }), [ke, Ke] = we("htmlInput", { elementType: "input", - externalForwardedProps: K, - ownerState: F + externalForwardedProps: G, + ownerState: B }), [ot, _e] = we("formHelperText", { elementType: Pc, - externalForwardedProps: K, - ownerState: F - }), [se, Nt] = we("select", { + externalForwardedProps: G, + ownerState: B + }), [ie, Nt] = we("select", { elementType: ni, - externalForwardedProps: K, - ownerState: F + externalForwardedProps: G, + ownerState: B }), He = /* @__PURE__ */ N.jsx(ne, { - "aria-describedby": B, + "aria-describedby": Q, autoComplete: s, autoFocus: i, defaultValue: u, fullWidth: m, multiline: k, - name: L, + name: F, rows: A, maxRows: E, minRows: w, type: X, value: O, - id: W, + id: z, inputRef: T, - onBlur: H, - onChange: G, - onFocus: z, + onBlur: W, + onChange: H, + onFocus: V, placeholder: f, inputProps: Ke, slots: { - input: Y.htmlInput ? ke : void 0 + input: K.htmlInput ? ke : void 0 }, ...he }); - return /* @__PURE__ */ N.jsxs(P, { - ...ae, + return /* @__PURE__ */ N.jsxs(C, { + ...se, children: [b != null && b !== "" && /* @__PURE__ */ N.jsx(Le, { - htmlFor: W, - id: V, + htmlFor: z, + id: L, ...Ne, children: b - }), j ? /* @__PURE__ */ N.jsx(se, { - "aria-describedby": B, - id: W, - labelId: V, + }), j ? /* @__PURE__ */ N.jsx(ie, { + "aria-describedby": Q, + id: z, + labelId: L, value: O, input: He, ...Nt, children: a }) : He, g && /* @__PURE__ */ N.jsx(ot, { - id: B, + id: Q, ..._e, children: g })] @@ -19475,67 +19475,70 @@ function Nv({ filter: m, isApiGo: g = !1, multiple: p, - customSxTextField: y = {} + customSxTextField: y = {}, + joins: S = [] }) { - 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); + const R = av(), [T, b] = $t(!1), [E, w] = $t(""), [k, F] = $t([]), [W, H] = $t(null), [V, f] = $t(!1), [I, A] = $t(0), [j, $] = $t(0), K = (L, D = 400) => { + let G; + return (...U) => { + clearTimeout(G), G = setTimeout(() => { + L(...U); + }, D); }; - }, 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)), Array.isArray(m) && m.some((D) => D.name === "company_id") && K.addJoin("company", ["name"]); + }, Z = Zc(async (L = "", D = 0, G = !1) => { + f(!0); + const U = new Dn().setPaging(D, s).setOrder([n], !0); + L && U.like(n, L), m && m.length > 0 && m.forEach((Y) => U.where(Y.logic_operator || "=", Y.name, Y.value, Y.operator || "AND", Y.value1 || null, Y.table_name || null)), Array.isArray(m) && m.some((Y) => Y.name === "company_id") && U.addJoin("company", ["name"]), S.forEach((Y) => { + U.addJoin(Y.table, Y.columns); + }); try { - const D = await Ao.search( + const Y = await Ao.search( r, - K.build(), + U.build(), { - headers: S + headers: R }, g - ), Q = D.data || []; - k((P) => U ? [...P, ...Q] : Q), j(D.totalRecord || 0), I(V); - } catch (D) { - console.error("Fetch Error:", D); + ), C = Y.data || []; + F((se) => G ? [...se, ...C] : C), $(Y.totalRecord || 0), A(D); + } catch (Y) { + console.error("Fetch Error:", Y); } finally { - z(!1); + f(!1); } - }, [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); + }, [r, n, s, m]), X = (L) => { + const { scrollTop: D, scrollHeight: G, clientHeight: U } = L.currentTarget; + if (G - D <= U + 20 && !V && k.length < j) { + const C = I + s; + Z(E, C, !0); } - }, X = eu( - () => $((B) => { - I(0), Y(B, 0, !1); + }, O = eu( + () => K((L) => { + A(0), Z(L, 0, !1); }, 400), - [Y] + [Z] ); ci(() => { - R && (I(0), Y(b, 0, !1)); - }, [R]); - const O = async (B) => { - z(!0); - const V = new Dn().setPaging(0, s); - p ? V.in("id", B) : V.equal("id", B); + T && (A(0), Z(E, 0, !1)); + }, [T]); + const _ = async (L) => { + f(!0); + const D = new Dn().setPaging(0, s); + p ? D.in("id", L) : D.equal("id", L); try { - const K = (await Ao.search( + const U = (await Ao.search( r, - V.build(), + D.build(), { - headers: S + headers: R }, g )).data || []; - H(p ? K : K[0] || null); - } catch (U) { - console.error(U); + H(p ? U : U[0] || null); + } catch (G) { + console.error(G); } finally { - z(!1); + f(!1); } }; ci(() => { @@ -19553,47 +19556,49 @@ function Nv({ H(a); return; } - O(a); + _(a); } }, [a, p]); - const _ = (B) => { + const q = (L) => { if (!p) { - H(B), T(!1), E(""), i == null || i(B); + H(L), b(!1), w(""), i == null || i(L); return; } - H((V) => { - 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; + H((D) => { + const G = Array.isArray(D) ? D : [], Y = G.some((C) => C.id === L.id) ? G.filter((C) => C.id !== L.id) : [...G, L]; + return i == null || i(Y), Y; }); - }, q = () => { - H(p ? [] : null), E(""), k([]), i == null || i(p ? [] : null); - }, 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 + }, B = () => { + H(p ? [] : null), w(""), F([]), i == null || i(p ? [] : null); + }, J = p ? (W == null ? void 0 : W.length) > 0 ? `${W.length} ${t} selected` : "" : (W == null ? void 0 : W[n]) || "", z = (L) => p ? (W || []).some((D) => D.id === L.id) : (W == null ? void 0 : W.id) === L.id, Q = async () => { + f(!0); + const L = 1e3, D = []; + for (let Y = 0; Y < j; Y += L) { + const C = new Dn().setPaging(Y, L).setOrder([n], !0); + E && C.like(n, E), m != null && m.length && m.forEach( + (se) => C.where( + se.logic_operator || "=", + se.name, + se.value, + se.operator || "AND", + se.value1 || null, + se.table_name || null ) - ), V.push( + ), S.forEach((se) => { + C.addJoin(se.table, se.columns); + }), D.push( Ao.search( r, - Q.build(), + C.build(), { - headers: S + headers: R }, g ) ); } - const K = (await Promise.all(V)).flatMap((D) => D.data || []); - H(K), i == null || i(K), z(!1); + const U = (await Promise.all(D)).flatMap((Y) => Y.data || []); + H(U), i == null || i(U), f(!1); }; return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [ /* @__PURE__ */ N.jsx( @@ -19601,14 +19606,14 @@ function Nv({ { id: e, label: t, - value: F, + value: J, fullWidth: !0, required: c, disabled: u, size: h, helperText: v, error: !!d, - onClick: () => !u && T(!0), + onClick: () => !u && b(!0), sx: { ...y, "& .MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline": { @@ -19617,12 +19622,12 @@ function Nv({ }, slotProps: { input: { - endAdornment: L && /* @__PURE__ */ N.jsx(Ac, { position: "end", children: /* @__PURE__ */ N.jsx( + endAdornment: W && /* @__PURE__ */ N.jsx(Ac, { position: "end", children: /* @__PURE__ */ N.jsx( fc, { size: "small", - onClick: (B) => { - B.stopPropagation(), q(); + onClick: (L) => { + L.stopPropagation(), B(); }, children: /* @__PURE__ */ N.jsx(iv, { sx: { fontSize: 16 } }) } @@ -19636,7 +19641,7 @@ function Nv({ } } ), - /* @__PURE__ */ N.jsxs(xc, { open: R, onClose: () => T(!1), maxWidth: "sm", fullWidth: !0, children: [ + /* @__PURE__ */ N.jsxs(xc, { open: T, onClose: () => b(!1), maxWidth: "sm", fullWidth: !0, children: [ /* @__PURE__ */ N.jsxs(wc, { sx: { fontSize: 14 }, children: [ "Search ", t @@ -19644,7 +19649,7 @@ function Nv({ /* @__PURE__ */ N.jsxs( Rc, { - onScroll: Z, + onScroll: X, sx: { "& .MuiTypography-root": { fontSize: 14 @@ -19668,9 +19673,9 @@ function Nv({ placeholder: `Search ${t}`, size: "small", sx: { my: 2, position: "sticky", top: 0, zIndex: 10, bgcolor: "background.paper" }, - onChange: (B) => { - const V = B.target.value; - E(V), X(V); + onChange: (L) => { + const D = L.target.value; + w(D), O(D); } } ), @@ -19678,34 +19683,34 @@ function Nv({ p && /* @__PURE__ */ N.jsx( Ss, { - onClick: W, + onClick: Q, sx: { fontSize: 14 }, children: "Select All" } ), - w.map((B, V) => { - var U; + k.map((L, D) => { + var G; return /* @__PURE__ */ N.jsxs( Ss, { - onClick: () => _(B), + onClick: () => q(L), 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 }) + p && /* @__PURE__ */ N.jsx(Sc, { checked: z(L) }), + /* @__PURE__ */ N.jsx(Nc, { primary: L[n], secondary: (G = L.join) == null ? void 0 : G.company_name }) ] }, - `${B.id}-${V}` + `${L.id}-${D}` ); }), - G && /* @__PURE__ */ N.jsx(Tt, { variant: "caption", sx: { display: "block", textAlign: "center", p: 1 }, children: "Loading more..." }) + V && /* @__PURE__ */ N.jsx(Tt, { variant: "caption", sx: { display: "block", textAlign: "center", p: 1 }, children: "Loading more..." }) ] }) }), - !G && w.length === 0 && /* @__PURE__ */ N.jsx(Tt, { sx: { textAlign: "center", fontSize: 12, color: "text.secondary", py: 3 }, children: "No Data" }) + !V && k.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(vs, { onClick: q, size: "small", children: "Clear" }), - /* @__PURE__ */ N.jsx(vs, { onClick: () => T(!1), size: "small", children: "Cancel" }) + /* @__PURE__ */ N.jsx(vs, { onClick: B, size: "small", children: "Clear" }), + /* @__PURE__ */ N.jsx(vs, { onClick: () => b(!1), size: "small", children: "Cancel" }) ] }) ] }) ] }); diff --git a/src/App.jsx b/src/App.jsx index c031963..5ef6082 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -36,6 +36,12 @@ const Testing = () => { filter={[ {name:"company_id",value: "442,722","logic_operator":"IN","operator":"AND"} ]} + joins={[ + { + table: "vehicle_type", + columns: ["min_speed", "max_speed"], + }, + ]} multiple /> diff --git a/src/components/ListVirtual.jsx b/src/components/ListVirtual.jsx index 2436ebc..65d7823 100644 --- a/src/components/ListVirtual.jsx +++ b/src/components/ListVirtual.jsx @@ -36,7 +36,8 @@ export default function ListVirtual({ filter, isApiGo = false, multiple, - customSxTextField = {} + customSxTextField = {}, + joins = [], }) { const headersRequest = useApiHeaders(); const [open, setOpen] = useState(false); @@ -76,6 +77,10 @@ export default function ListVirtual({ payload.addJoin("company", ["name"]); } + joins.forEach(join => { + payload.addJoin(join.table, join.columns); + }); + try { const res = await apiRequest.search( url, @@ -217,7 +222,9 @@ export default function ListVirtual({ }; const displayValue = multiple - ? `${selected?.length || 0} ${label} selected` + ? (selected?.length > 0 + ? `${selected.length} ${label} selected` + : "") : selected?.[name] || ""; const isSelected = (row) => { @@ -256,6 +263,10 @@ export default function ListVirtual({ ); } + joins.forEach(join => { + payload.addJoin(join.table, join.columns); + }); + requests.push( apiRequest.search( url,