fastapi-rtk 0.0.87 → 0.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fastapi-rtk.es.js +254 -255
- package/dist/fastapi-rtk.umd.js +18 -18
- package/package.json +1 -1
package/dist/fastapi-rtk.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Hu = Object.defineProperty;
|
|
2
2
|
var Gu = (e, t, r) => t in e ? Hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Si = (e, t, r) => Gu(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import * as
|
|
4
|
+
import * as Ke from "react";
|
|
5
5
|
import Ge, { useState as ne, useRef as Yu, useCallback as ve, useEffect as xe, useMemo as te, useReducer as qu, createContext as xl, useContext as oo, forwardRef as jt, createElement as Mo, memo as so, isValidElement as Ku, cloneElement as on, Fragment as _l } from "react";
|
|
6
6
|
import { createSearchParams as Ju, useNavigate as Xu } from "react-router-dom";
|
|
7
7
|
import { useDidUpdate as _r, useSetState as Zu, useHover as Qu, randomId as Pn, useInViewport as ef, useDebouncedValue as Ds, useDisclosure as tf, upperFirst as rf, useElementSize as wi } from "@mantine/hooks";
|
|
@@ -78,10 +78,10 @@ function zf() {
|
|
|
78
78
|
de.unshift("Warning: " + j), Function.prototype.apply.call(console[g], console, de);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
var C = !1, _ = !1, $ = !1, N = !1,
|
|
81
|
+
var C = !1, _ = !1, $ = !1, N = !1, W = !1, K;
|
|
82
82
|
K = Symbol.for("react.module.reference");
|
|
83
83
|
function m(g) {
|
|
84
|
-
return !!(typeof g == "string" || typeof g == "function" || g === n || g === s ||
|
|
84
|
+
return !!(typeof g == "string" || typeof g == "function" || g === n || g === s || W || g === o || g === u || g === d || N || g === h || C || _ || $ || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === f || g.$$typeof === i || g.$$typeof === a || g.$$typeof === l || // This needs to include all possible module reference object
|
|
85
85
|
// types supported by any Flight configuration anywhere since
|
|
86
86
|
// we don't know which Flight build this will end up being used
|
|
87
87
|
// with.
|
|
@@ -97,7 +97,7 @@ function zf() {
|
|
|
97
97
|
function L(g) {
|
|
98
98
|
return g.displayName || "Context";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function G(g) {
|
|
101
101
|
if (g == null)
|
|
102
102
|
return null;
|
|
103
103
|
if (typeof g.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
@@ -130,11 +130,11 @@ function zf() {
|
|
|
130
130
|
return P(g, g.render, "ForwardRef");
|
|
131
131
|
case f:
|
|
132
132
|
var J = g.displayName || null;
|
|
133
|
-
return J !== null ? J :
|
|
133
|
+
return J !== null ? J : G(g.type) || "Memo";
|
|
134
134
|
case p: {
|
|
135
135
|
var ce = g, de = ce._payload, ae = ce._init;
|
|
136
136
|
try {
|
|
137
|
-
return
|
|
137
|
+
return G(ae(de));
|
|
138
138
|
} catch {
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
@@ -142,14 +142,14 @@ function zf() {
|
|
|
142
142
|
}
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
var Z = Object.assign, le = 0, fe,
|
|
145
|
+
var Z = Object.assign, le = 0, fe, V, X, oe, w, R, H;
|
|
146
146
|
function z() {
|
|
147
147
|
}
|
|
148
148
|
z.__reactDisabledLog = !0;
|
|
149
149
|
function Y() {
|
|
150
150
|
{
|
|
151
151
|
if (le === 0) {
|
|
152
|
-
fe = console.log,
|
|
152
|
+
fe = console.log, V = console.info, X = console.warn, oe = console.error, w = console.group, R = console.groupCollapsed, H = console.groupEnd;
|
|
153
153
|
var g = {
|
|
154
154
|
configurable: !0,
|
|
155
155
|
enumerable: !0,
|
|
@@ -182,7 +182,7 @@ function zf() {
|
|
|
182
182
|
value: fe
|
|
183
183
|
}),
|
|
184
184
|
info: Z({}, g, {
|
|
185
|
-
value:
|
|
185
|
+
value: V
|
|
186
186
|
}),
|
|
187
187
|
warn: Z({}, g, {
|
|
188
188
|
value: X
|
|
@@ -197,7 +197,7 @@ function zf() {
|
|
|
197
197
|
value: R
|
|
198
198
|
}),
|
|
199
199
|
groupEnd: Z({}, g, {
|
|
200
|
-
value:
|
|
200
|
+
value: H
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -330,7 +330,7 @@ function zf() {
|
|
|
330
330
|
}
|
|
331
331
|
return "";
|
|
332
332
|
}
|
|
333
|
-
var
|
|
333
|
+
var Ze = Object.prototype.hasOwnProperty, it = {}, Vt = T.ReactDebugCurrentFrame;
|
|
334
334
|
function xt(g) {
|
|
335
335
|
if (g) {
|
|
336
336
|
var j = g._owner, M = Ye(g.type, g._source, j ? j.type : null);
|
|
@@ -340,7 +340,7 @@ function zf() {
|
|
|
340
340
|
}
|
|
341
341
|
function _n(g, j, M, J, ce) {
|
|
342
342
|
{
|
|
343
|
-
var de = Function.call.bind(
|
|
343
|
+
var de = Function.call.bind(Ze);
|
|
344
344
|
for (var ae in g)
|
|
345
345
|
if (de(g, ae)) {
|
|
346
346
|
var k = void 0;
|
|
@@ -389,7 +389,7 @@ function zf() {
|
|
|
389
389
|
}, Fr, nr, or;
|
|
390
390
|
or = {};
|
|
391
391
|
function sr(g) {
|
|
392
|
-
if (
|
|
392
|
+
if (Ze.call(g, "ref")) {
|
|
393
393
|
var j = Object.getOwnPropertyDescriptor(g, "ref").get;
|
|
394
394
|
if (j && j.isReactWarning)
|
|
395
395
|
return !1;
|
|
@@ -397,7 +397,7 @@ function zf() {
|
|
|
397
397
|
return g.ref !== void 0;
|
|
398
398
|
}
|
|
399
399
|
function ir(g) {
|
|
400
|
-
if (
|
|
400
|
+
if (Ze.call(g, "key")) {
|
|
401
401
|
var j = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
402
402
|
if (j && j.isReactWarning)
|
|
403
403
|
return !1;
|
|
@@ -406,8 +406,8 @@ function zf() {
|
|
|
406
406
|
}
|
|
407
407
|
function ft(g, j) {
|
|
408
408
|
if (typeof g.ref == "string" && Rt.current && j && Rt.current.stateNode !== j) {
|
|
409
|
-
var M =
|
|
410
|
-
or[M] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
409
|
+
var M = G(Rt.current.type);
|
|
410
|
+
or[M] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Rt.current.type), g.ref), or[M] = !0);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function kt(g, j) {
|
|
@@ -466,7 +466,7 @@ function zf() {
|
|
|
466
466
|
var de, ae = {}, k = null, v = null;
|
|
467
467
|
M !== void 0 && (Tt(M), k = "" + M), ir(j) && (Tt(j.key), k = "" + j.key), sr(j) && (v = j.ref, ft(j, ce));
|
|
468
468
|
for (de in j)
|
|
469
|
-
|
|
469
|
+
Ze.call(j, de) && !Sn.hasOwnProperty(de) && (ae[de] = j[de]);
|
|
470
470
|
if (g && g.defaultProps) {
|
|
471
471
|
var O = g.defaultProps;
|
|
472
472
|
for (de in O)
|
|
@@ -495,7 +495,7 @@ function zf() {
|
|
|
495
495
|
function wn() {
|
|
496
496
|
{
|
|
497
497
|
if (It.current) {
|
|
498
|
-
var g =
|
|
498
|
+
var g = G(It.current.type);
|
|
499
499
|
if (g)
|
|
500
500
|
return `
|
|
501
501
|
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
530
530
|
return;
|
|
531
531
|
wt[M] = !0;
|
|
532
532
|
var J = "";
|
|
533
|
-
g && g._owner && g._owner !== It.current && (J = " It was passed a child from " +
|
|
533
|
+
g && g._owner && g._owner !== It.current && (J = " It was passed a child from " + G(g._owner.type) + "."), Dt(g), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, J), Dt(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function ar(g, j) {
|
|
@@ -567,11 +567,11 @@ Check the top-level render call using <` + M + ">.");
|
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
569
|
if (M) {
|
|
570
|
-
var J =
|
|
570
|
+
var J = G(j);
|
|
571
571
|
_n(M, g.props, "prop", J, g);
|
|
572
572
|
} else if (j.PropTypes !== void 0 && !St) {
|
|
573
573
|
St = !0;
|
|
574
|
-
var ce =
|
|
574
|
+
var ce = G(j);
|
|
575
575
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ce || "Unknown");
|
|
576
576
|
}
|
|
577
577
|
typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
var An = {};
|
|
593
|
-
function
|
|
593
|
+
function tt(g, j, M, J, ce, de) {
|
|
594
594
|
{
|
|
595
595
|
var ae = m(g);
|
|
596
596
|
if (!ae) {
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
599
599
|
var v = Re();
|
|
600
600
|
v ? k += v : k += wn();
|
|
601
601
|
var O;
|
|
602
|
-
g === null ? O = "null" : Dr(g) ? O = "array" : g !== void 0 && g.$$typeof === t ? (O = "<" + (
|
|
602
|
+
g === null ? O = "null" : Dr(g) ? O = "array" : g !== void 0 && g.$$typeof === t ? (O = "<" + (G(g.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : O = typeof g, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, k);
|
|
603
603
|
}
|
|
604
604
|
var I = Io(g, j, M, ce, de);
|
|
605
605
|
if (I == null)
|
|
@@ -617,28 +617,28 @@ Check the top-level render call using <` + M + ">.");
|
|
|
617
617
|
else
|
|
618
618
|
ar(se, g);
|
|
619
619
|
}
|
|
620
|
-
if (
|
|
621
|
-
var we =
|
|
620
|
+
if (Ze.call(j, "key")) {
|
|
621
|
+
var we = G(g), be = Object.keys(j).filter(function(Be) {
|
|
622
622
|
return Be !== "key";
|
|
623
|
-
}),
|
|
624
|
-
if (!An[we +
|
|
623
|
+
}), Qe = be.length > 0 ? "{key: someKey, " + be.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
|
+
if (!An[we + Qe]) {
|
|
625
625
|
var Gt = be.length > 0 ? "{" + be.join(": ..., ") + ": ...}" : "{}";
|
|
626
626
|
E(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
630
630
|
let props = %s;
|
|
631
|
-
<%s key={someKey} {...props} />`,
|
|
631
|
+
<%s key={someKey} {...props} />`, Qe, we, Gt, we), An[we + Qe] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
return g === n ? Cn(I) : En(I), I;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
function lr(g, j, M) {
|
|
638
|
-
return
|
|
638
|
+
return tt(g, j, M, !0);
|
|
639
639
|
}
|
|
640
640
|
function On(g, j, M) {
|
|
641
|
-
return
|
|
641
|
+
return tt(g, j, M, !1);
|
|
642
642
|
}
|
|
643
643
|
var $n = On, jn = lr;
|
|
644
644
|
Vr.Fragment = n, Vr.jsx = $n, Vr.jsxs = jn;
|
|
@@ -646,7 +646,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
646
646
|
}
|
|
647
647
|
process.env.NODE_ENV === "production" ? cs.exports = Lf() : cs.exports = zf();
|
|
648
648
|
var c = cs.exports;
|
|
649
|
-
function
|
|
649
|
+
function Je({ path: e, method: t, body: r = void 0, queryParams: n = void 0 }) {
|
|
650
650
|
const o = Object.entries(n || {}).reduce((a, [l, u]) => ((Array.isArray(u) || typeof u == "object") && (u = JSON.stringify(u)), a[l] = u, a), {}), s = new Ju(o);
|
|
651
651
|
e = e + "?" + s;
|
|
652
652
|
const i = {
|
|
@@ -705,14 +705,14 @@ function Ls(e, { autoInvoke: t = !0, initialLoading: r = !1, clearDataOnRefetch:
|
|
|
705
705
|
}
|
|
706
706
|
function Uf({ path: e, autoInvoke: t = !0, initialLoading: r = !0 }) {
|
|
707
707
|
const { fetchPath: n, options: o } = te(
|
|
708
|
-
() =>
|
|
708
|
+
() => Je({ path: ke(e, "auth/user"), method: "GET" }),
|
|
709
709
|
[e]
|
|
710
710
|
), { data: s, loading: i, refetch: a, error: l } = Ls(n, { autoInvoke: t, initialLoading: r, ...o });
|
|
711
711
|
return { user: s, loading: i, refetch: a, error: l };
|
|
712
712
|
}
|
|
713
713
|
function Vf({ path: e, queryParams: t, autoInvoke: r = !0, clearDataOnRefetch: n = !1 }) {
|
|
714
714
|
const { fetchPath: o, options: s } = te(
|
|
715
|
-
() =>
|
|
715
|
+
() => Je({
|
|
716
716
|
path: ke(e, "/"),
|
|
717
717
|
method: "GET",
|
|
718
718
|
queryParams: t
|
|
@@ -729,7 +729,7 @@ function Vf({ path: e, queryParams: t, autoInvoke: r = !0, clearDataOnRefetch: n
|
|
|
729
729
|
}, [i]), loading: a, refetch: l, error: u };
|
|
730
730
|
}
|
|
731
731
|
const Wf = async (e, t) => {
|
|
732
|
-
const { fetchPath: r, options: n } =
|
|
732
|
+
const { fetchPath: r, options: n } = Je({
|
|
733
733
|
path: ke(e, "/"),
|
|
734
734
|
method: "POST",
|
|
735
735
|
body: t
|
|
@@ -740,21 +740,21 @@ const Wf = async (e, t) => {
|
|
|
740
740
|
throw typeof s == "object" ? new Error(typeof s.detail == "string" ? s.detail : JSON.stringify(s, null, 2)) : new Error(s);
|
|
741
741
|
return s;
|
|
742
742
|
}, Hf = async (e, t) => {
|
|
743
|
-
const { fetchPath: r, options: n } =
|
|
743
|
+
const { fetchPath: r, options: n } = Je({ path: ke(e, t.toString()), method: "DELETE" }), o = await fetch(r, n);
|
|
744
744
|
let s = null;
|
|
745
745
|
const i = o.headers.get("content-type");
|
|
746
746
|
if (i && i.includes("application/json") ? s = await o.json() : s = await o.text(), !o.ok)
|
|
747
747
|
throw typeof s == "object" ? new Error(typeof s.detail == "string" ? s.detail : JSON.stringify(s, null, 2)) : new Error(s);
|
|
748
748
|
return s;
|
|
749
749
|
}, Gf = async (e, t) => {
|
|
750
|
-
const { fetchPath: r, options: n } =
|
|
750
|
+
const { fetchPath: r, options: n } = Je({ path: ke(e, t.toString()), method: "GET" }), o = await fetch(r, n);
|
|
751
751
|
let s = null;
|
|
752
752
|
const i = o.headers.get("content-type");
|
|
753
753
|
if (i && i.includes("application/json") ? s = await o.json() : s = await o.text(), !o.ok)
|
|
754
754
|
throw typeof s == "object" ? new Error(typeof s.detail == "string" ? s.detail : JSON.stringify(s, null, 2)) : new Error(s);
|
|
755
755
|
return s;
|
|
756
756
|
}, Yf = async (e, t, r) => {
|
|
757
|
-
const { fetchPath: n, options: o } =
|
|
757
|
+
const { fetchPath: n, options: o } = Je({ path: ke(e, t.toString()), method: "PUT", body: r }), s = await fetch(n, o);
|
|
758
758
|
let i = null;
|
|
759
759
|
const a = s.headers.get("content-type");
|
|
760
760
|
if (a && a.includes("application/json") ? i = await s.json() : i = await s.text(), !s.ok)
|
|
@@ -1016,7 +1016,7 @@ let yt = {
|
|
|
1016
1016
|
const o = n != null && n !== r ? ` (cast from the value \`${vt(n, !0)}\`).` : ".";
|
|
1017
1017
|
return t !== "mixed" ? `${e} must be a \`${t}\` type, but the final value was: \`${vt(r, !0)}\`` + o : `${e} must match the configured type. The validated value was: \`${vt(r, !0)}\`` + o;
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, et = {
|
|
1020
1020
|
length: "${path} must be exactly ${length} characters",
|
|
1021
1021
|
min: "${path} must be at least ${min} characters",
|
|
1022
1022
|
max: "${path} must be at most ${max} characters",
|
|
@@ -1065,7 +1065,7 @@ let yt = {
|
|
|
1065
1065
|
};
|
|
1066
1066
|
var ql = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1067
1067
|
mixed: yt,
|
|
1068
|
-
string:
|
|
1068
|
+
string: et,
|
|
1069
1069
|
number: Mt,
|
|
1070
1070
|
date: fs,
|
|
1071
1071
|
object: ps,
|
|
@@ -1184,8 +1184,8 @@ function fr(e) {
|
|
|
1184
1184
|
disableStackTrace: P.disableStackTrace || T
|
|
1185
1185
|
}, f, P.params);
|
|
1186
1186
|
for (const Z of Object.keys(L)) L[Z] = E(L[Z]);
|
|
1187
|
-
const
|
|
1188
|
-
return
|
|
1187
|
+
const G = new We(We.formatError(P.message || p, L), r, L.path, P.type || u, L.disableStackTrace);
|
|
1188
|
+
return G.params = L, G;
|
|
1189
1189
|
}
|
|
1190
1190
|
const C = b ? a : l;
|
|
1191
1191
|
let _ = {
|
|
@@ -1882,7 +1882,7 @@ class Ys extends He {
|
|
|
1882
1882
|
notRequired() {
|
|
1883
1883
|
return super.notRequired().withMutation((t) => (t.tests = t.tests.filter((r) => r.OPTIONS.name !== "required"), t));
|
|
1884
1884
|
}
|
|
1885
|
-
length(t, r =
|
|
1885
|
+
length(t, r = et.length) {
|
|
1886
1886
|
return this.test({
|
|
1887
1887
|
message: r,
|
|
1888
1888
|
name: "length",
|
|
@@ -1896,7 +1896,7 @@ class Ys extends He {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
|
-
min(t, r =
|
|
1899
|
+
min(t, r = et.min) {
|
|
1900
1900
|
return this.test({
|
|
1901
1901
|
message: r,
|
|
1902
1902
|
name: "min",
|
|
@@ -1910,7 +1910,7 @@ class Ys extends He {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
});
|
|
1912
1912
|
}
|
|
1913
|
-
max(t, r =
|
|
1913
|
+
max(t, r = et.max) {
|
|
1914
1914
|
return this.test({
|
|
1915
1915
|
name: "max",
|
|
1916
1916
|
exclusive: !0,
|
|
@@ -1932,7 +1932,7 @@ class Ys extends He {
|
|
|
1932
1932
|
name: s
|
|
1933
1933
|
} = r : o = r), this.test({
|
|
1934
1934
|
name: s || "matches",
|
|
1935
|
-
message: o ||
|
|
1935
|
+
message: o || et.matches,
|
|
1936
1936
|
params: {
|
|
1937
1937
|
regex: t
|
|
1938
1938
|
},
|
|
@@ -1940,21 +1940,21 @@ class Ys extends He {
|
|
|
1940
1940
|
test: (i) => i === "" && n || i.search(t) !== -1
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
|
-
email(t =
|
|
1943
|
+
email(t = et.email) {
|
|
1944
1944
|
return this.matches(Cd, {
|
|
1945
1945
|
name: "email",
|
|
1946
1946
|
message: t,
|
|
1947
1947
|
excludeEmptyString: !0
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
|
-
url(t =
|
|
1950
|
+
url(t = et.url) {
|
|
1951
1951
|
return this.matches(Ad, {
|
|
1952
1952
|
name: "url",
|
|
1953
1953
|
message: t,
|
|
1954
1954
|
excludeEmptyString: !0
|
|
1955
1955
|
});
|
|
1956
1956
|
}
|
|
1957
|
-
uuid(t =
|
|
1957
|
+
uuid(t = et.uuid) {
|
|
1958
1958
|
return this.matches(Od, {
|
|
1959
1959
|
name: "uuid",
|
|
1960
1960
|
message: t,
|
|
@@ -1969,11 +1969,11 @@ class Ys extends He {
|
|
|
1969
1969
|
precision: o = void 0
|
|
1970
1970
|
} = t : r = t), this.matches(Rd, {
|
|
1971
1971
|
name: "datetime",
|
|
1972
|
-
message: r ||
|
|
1972
|
+
message: r || et.datetime,
|
|
1973
1973
|
excludeEmptyString: !0
|
|
1974
1974
|
}).test({
|
|
1975
1975
|
name: "datetime_offset",
|
|
1976
|
-
message: r ||
|
|
1976
|
+
message: r || et.datetime_offset,
|
|
1977
1977
|
params: {
|
|
1978
1978
|
allowOffset: n
|
|
1979
1979
|
},
|
|
@@ -1985,7 +1985,7 @@ class Ys extends He {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}).test({
|
|
1987
1987
|
name: "datetime_precision",
|
|
1988
|
-
message: r ||
|
|
1988
|
+
message: r || et.datetime_precision,
|
|
1989
1989
|
params: {
|
|
1990
1990
|
precision: o
|
|
1991
1991
|
},
|
|
@@ -2001,14 +2001,14 @@ class Ys extends He {
|
|
|
2001
2001
|
ensure() {
|
|
2002
2002
|
return this.default("").transform((t) => t === null ? "" : t);
|
|
2003
2003
|
}
|
|
2004
|
-
trim(t =
|
|
2004
|
+
trim(t = et.trim) {
|
|
2005
2005
|
return this.transform((r) => r != null ? r.trim() : r).test({
|
|
2006
2006
|
message: t,
|
|
2007
2007
|
name: "trim",
|
|
2008
2008
|
test: kd
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
|
-
lowercase(t =
|
|
2011
|
+
lowercase(t = et.lowercase) {
|
|
2012
2012
|
return this.transform((r) => ht(r) ? r : r.toLowerCase()).test({
|
|
2013
2013
|
message: t,
|
|
2014
2014
|
name: "string_case",
|
|
@@ -2017,7 +2017,7 @@ class Ys extends He {
|
|
|
2017
2017
|
test: (r) => ht(r) || r === r.toLowerCase()
|
|
2018
2018
|
});
|
|
2019
2019
|
}
|
|
2020
|
-
uppercase(t =
|
|
2020
|
+
uppercase(t = et.uppercase) {
|
|
2021
2021
|
return this.transform((r) => ht(r) ? r : r.toUpperCase()).test({
|
|
2022
2022
|
message: t,
|
|
2023
2023
|
name: "string_case",
|
|
@@ -2828,7 +2828,7 @@ const zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2828
2828
|
}, ec = (e) => !e && typeof e != "boolean" && typeof e != "number" ? null : typeof e == "boolean" ? e.toString() : Array.isArray(e) ? e.map((t) => t.name_ || JSON.stringify(t, null, 2)).join(", ") : typeof e == "object" ? e.name_ || JSON.stringify(e) : e;
|
|
2829
2829
|
function Wd({ path: e, autoInvoke: t = !0, clearDataOnRefetch: r = !1 }) {
|
|
2830
2830
|
const { fetchPath: n, options: o } = te(
|
|
2831
|
-
() =>
|
|
2831
|
+
() => Je({ path: ke(e, "_info"), method: "GET" }),
|
|
2832
2832
|
[e]
|
|
2833
2833
|
), { data: s, loading: i, refetch: a, error: l } = Ls(n, { autoInvoke: t, clearDataOnRefetch: r, ...o });
|
|
2834
2834
|
return { info: te(
|
|
@@ -2878,7 +2878,7 @@ function Gd(e) {
|
|
|
2878
2878
|
try {
|
|
2879
2879
|
const h = new FormData();
|
|
2880
2880
|
h.append("username", f), h.append("password", p);
|
|
2881
|
-
const { fetchPath: y, options: x } =
|
|
2881
|
+
const { fetchPath: y, options: x } = Je({
|
|
2882
2882
|
path: ke(e, "auth/login"),
|
|
2883
2883
|
method: "POST"
|
|
2884
2884
|
}), b = await fetch(y, {
|
|
@@ -2897,7 +2897,7 @@ function Gd(e) {
|
|
|
2897
2897
|
), a = ve(async () => {
|
|
2898
2898
|
r({ type: "initCall" });
|
|
2899
2899
|
try {
|
|
2900
|
-
const { fetchPath: f, options: p } =
|
|
2900
|
+
const { fetchPath: f, options: p } = Je({ path: ke(e, "auth/logout"), method: "POST" });
|
|
2901
2901
|
(await fetch(f, p)).ok || r({ type: "setError", payload: "Couldn't sign out user" }), r({ type: "setUser", payload: null });
|
|
2902
2902
|
} catch (f) {
|
|
2903
2903
|
console.error("signout error", f), r({ type: "setError", payload: "Failed to fetch" });
|
|
@@ -2908,7 +2908,7 @@ function Gd(e) {
|
|
|
2908
2908
|
async (f) => {
|
|
2909
2909
|
r({ type: "initCall" });
|
|
2910
2910
|
try {
|
|
2911
|
-
const { fetchPath: p, options: h } =
|
|
2911
|
+
const { fetchPath: p, options: h } = Je({
|
|
2912
2912
|
path: ke(e, "auth/user"),
|
|
2913
2913
|
method: "PUT",
|
|
2914
2914
|
body: f
|
|
@@ -2924,7 +2924,7 @@ function Gd(e) {
|
|
|
2924
2924
|
if (!n.email)
|
|
2925
2925
|
return r({ type: "setError", payload: "No email found" });
|
|
2926
2926
|
try {
|
|
2927
|
-
const { fetchPath: p, options: h } =
|
|
2927
|
+
const { fetchPath: p, options: h } = Je({
|
|
2928
2928
|
path: ke(e, "auth/forgot-password"),
|
|
2929
2929
|
method: "POST",
|
|
2930
2930
|
body: { email: n.email }
|
|
@@ -2933,7 +2933,7 @@ function Gd(e) {
|
|
|
2933
2933
|
r({ type: "setError", payload: "Couldn't request token to reset password" });
|
|
2934
2934
|
return;
|
|
2935
2935
|
}
|
|
2936
|
-
const x = await y.json(), { token: b } = x, { fetchPath: T, options: E } =
|
|
2936
|
+
const x = await y.json(), { token: b } = x, { fetchPath: T, options: E } = Je({
|
|
2937
2937
|
path: ke(e, "auth/reset-password"),
|
|
2938
2938
|
method: "POST",
|
|
2939
2939
|
body: { token: b, password: f }
|
|
@@ -2985,7 +2985,7 @@ function Yd(e, t) {
|
|
|
2985
2985
|
const u = async (d) => {
|
|
2986
2986
|
i(!0);
|
|
2987
2987
|
try {
|
|
2988
|
-
const { fetchPath: f, options: p } =
|
|
2988
|
+
const { fetchPath: f, options: p } = Je({ path: ke(d, "info/"), method: "GET" }), h = await fetch(f, p);
|
|
2989
2989
|
if (h.ok) {
|
|
2990
2990
|
const y = await h.json();
|
|
2991
2991
|
o(y);
|
|
@@ -3040,7 +3040,7 @@ function QO(e) {
|
|
|
3040
3040
|
return /* @__PURE__ */ c.jsx(ti.Provider, { value: { auth: o, info: s }, children: n });
|
|
3041
3041
|
}
|
|
3042
3042
|
const Jd = async (e, t, r) => {
|
|
3043
|
-
const { fetchPath: n, options: o } =
|
|
3043
|
+
const { fetchPath: n, options: o } = Je({ path: ke(t, "/download"), method: "POST" }), s = await fetch(n, { ...o, body: JSON.stringify(r) });
|
|
3044
3044
|
let i = null;
|
|
3045
3045
|
const a = s.headers.get("content-type");
|
|
3046
3046
|
if (a && a.includes("application/json") ? i = await s.json() : i = await s.blob(), !s.ok)
|
|
@@ -3070,16 +3070,15 @@ function Xd({
|
|
|
3070
3070
|
} : l,
|
|
3071
3071
|
[r, l]
|
|
3072
3072
|
), f = ve(
|
|
3073
|
-
(
|
|
3074
|
-
if (!X)
|
|
3075
|
-
return In(null,
|
|
3076
|
-
const oe = In({ ...X },
|
|
3077
|
-
if (a) {
|
|
3078
|
-
if (
|
|
3073
|
+
(V) => u((X) => {
|
|
3074
|
+
if (typeof V == "function" && (V = V(X)), !X)
|
|
3075
|
+
return In(null, V);
|
|
3076
|
+
const oe = In({ ...X }, V);
|
|
3077
|
+
if ((V.filters || V.order_column || V.order_direction) && !V.page && (oe.page = 0), a) {
|
|
3078
|
+
if (V.page && V.page !== X.page && !V.streaming)
|
|
3079
3079
|
throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");
|
|
3080
|
-
if (
|
|
3080
|
+
if (V.page_size && V.page_size !== X.page_size)
|
|
3081
3081
|
throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead");
|
|
3082
|
-
(G.filters || G.order_column || G.order_direction) && (oe.page = 0);
|
|
3083
3082
|
}
|
|
3084
3083
|
return oe;
|
|
3085
3084
|
}),
|
|
@@ -3113,27 +3112,27 @@ function Xd({
|
|
|
3113
3112
|
}
|
|
3114
3113
|
x();
|
|
3115
3114
|
}, [A, N, x]);
|
|
3116
|
-
const
|
|
3115
|
+
const W = te(() => T || _, [T, _]);
|
|
3117
3116
|
_r(() => {
|
|
3118
3117
|
if (!i)
|
|
3119
3118
|
return;
|
|
3120
|
-
const
|
|
3121
|
-
l != null && l.page_size && (
|
|
3119
|
+
const V = In(null, t);
|
|
3120
|
+
l != null && l.page_size && (V.page_size = l.page_size), f(V);
|
|
3122
3121
|
}, [e]);
|
|
3123
3122
|
const K = ve(
|
|
3124
|
-
async (
|
|
3123
|
+
async (V) => {
|
|
3125
3124
|
try {
|
|
3126
|
-
const X = await Gf(e, nt(
|
|
3125
|
+
const X = await Gf(e, nt(V));
|
|
3127
3126
|
return x(), X;
|
|
3128
3127
|
} catch (X) {
|
|
3129
|
-
h({ message: `Couldn't fetch item with id ${
|
|
3128
|
+
h({ message: `Couldn't fetch item with id ${V}`, originalError: X });
|
|
3130
3129
|
}
|
|
3131
3130
|
},
|
|
3132
3131
|
[e, x]
|
|
3133
3132
|
), m = ve(
|
|
3134
|
-
async (
|
|
3133
|
+
async (V, X) => {
|
|
3135
3134
|
try {
|
|
3136
|
-
const oe = await Wf(e,
|
|
3135
|
+
const oe = await Wf(e, V);
|
|
3137
3136
|
return X || (E(), $()), x(), oe;
|
|
3138
3137
|
} catch (oe) {
|
|
3139
3138
|
h({ message: "Couldn't add item", originalError: oe });
|
|
@@ -3141,29 +3140,29 @@ function Xd({
|
|
|
3141
3140
|
},
|
|
3142
3141
|
[$, E, e, x]
|
|
3143
3142
|
), P = ve(
|
|
3144
|
-
async (
|
|
3143
|
+
async (V, X, oe) => {
|
|
3145
3144
|
try {
|
|
3146
|
-
const w = await Yf(e, nt(
|
|
3145
|
+
const w = await Yf(e, nt(V), X);
|
|
3147
3146
|
return oe || (E(), $()), x(), w;
|
|
3148
3147
|
} catch (w) {
|
|
3149
|
-
h({ message: `Couldn't update item with id ${
|
|
3148
|
+
h({ message: `Couldn't update item with id ${V}`, originalError: w });
|
|
3150
3149
|
}
|
|
3151
3150
|
},
|
|
3152
3151
|
[$, E, e, x]
|
|
3153
3152
|
), L = ve(
|
|
3154
|
-
async (
|
|
3153
|
+
async (V, X) => {
|
|
3155
3154
|
try {
|
|
3156
|
-
const oe = await Hf(e, nt(
|
|
3155
|
+
const oe = await Hf(e, nt(V));
|
|
3157
3156
|
return X || (E(), $()), x(), oe;
|
|
3158
3157
|
} catch (oe) {
|
|
3159
|
-
h({ message: `Couldn't delete item with id ${
|
|
3158
|
+
h({ message: `Couldn't delete item with id ${V}`, originalError: oe });
|
|
3160
3159
|
}
|
|
3161
3160
|
},
|
|
3162
3161
|
[$, E, e, x]
|
|
3163
|
-
),
|
|
3164
|
-
async (
|
|
3162
|
+
), G = ve(
|
|
3163
|
+
async (V) => {
|
|
3165
3164
|
try {
|
|
3166
|
-
await Jd(
|
|
3165
|
+
await Jd(V, e, d);
|
|
3167
3166
|
} catch (X) {
|
|
3168
3167
|
h({ message: "Couldn't download", originalError: X });
|
|
3169
3168
|
}
|
|
@@ -3181,27 +3180,27 @@ function Xd({
|
|
|
3181
3180
|
fetch: () => f({ page: 0, streaming: !0 })
|
|
3182
3181
|
});
|
|
3183
3182
|
}, [f, le, a]), xe(() => {
|
|
3184
|
-
a && C && le((
|
|
3185
|
-
let X = Object.keys(
|
|
3183
|
+
a && C && le((V) => {
|
|
3184
|
+
let X = Object.keys(V.data).length;
|
|
3186
3185
|
const oe = { isEnd: !1 };
|
|
3187
|
-
return d.page < X ? (X = d.page, oe.data = { [d.page]: C.result }) : oe.data = { ...
|
|
3186
|
+
return d.page < X ? (X = d.page, oe.data = { [d.page]: C.result }) : oe.data = { ...V.data, [d.page]: C.result }, C.result.length < d.page_size ? (oe.isEnd = !0, oe.fetch = () => null) : oe.fetch = () => f({ page: X + 1, streaming: !0 }), oe;
|
|
3188
3187
|
});
|
|
3189
3188
|
}, [C, f, le, a]);
|
|
3190
3189
|
const fe = te(() => {
|
|
3191
|
-
const
|
|
3190
|
+
const V = {
|
|
3192
3191
|
all: "all",
|
|
3193
3192
|
actions: "actions"
|
|
3194
3193
|
};
|
|
3195
3194
|
return C == null || C.list_columns.forEach((X) => {
|
|
3196
|
-
|
|
3197
|
-
}),
|
|
3195
|
+
V[X] && (V[X] = `_${X}`);
|
|
3196
|
+
}), V;
|
|
3198
3197
|
}, [C == null ? void 0 : C.list_columns]);
|
|
3199
3198
|
return {
|
|
3200
3199
|
path: e,
|
|
3201
3200
|
data: C,
|
|
3202
3201
|
info: b,
|
|
3203
3202
|
queryParams: d,
|
|
3204
|
-
loading:
|
|
3203
|
+
loading: W,
|
|
3205
3204
|
error: y,
|
|
3206
3205
|
streaming: Z,
|
|
3207
3206
|
specialKey: fe,
|
|
@@ -3212,11 +3211,11 @@ function Xd({
|
|
|
3212
3211
|
addEntry: m,
|
|
3213
3212
|
updateEntry: P,
|
|
3214
3213
|
deleteEntry: L,
|
|
3215
|
-
download:
|
|
3214
|
+
download: G
|
|
3216
3215
|
};
|
|
3217
3216
|
}
|
|
3218
3217
|
const Zd = async (e, t, r) => {
|
|
3219
|
-
const { fetchPath: n, options: o } =
|
|
3218
|
+
const { fetchPath: n, options: o } = Je({
|
|
3220
3219
|
path: ke(e, "/bulk", t),
|
|
3221
3220
|
method: "POST",
|
|
3222
3221
|
body: r
|
|
@@ -4054,7 +4053,7 @@ function Ap(...e) {
|
|
|
4054
4053
|
)
|
|
4055
4054
|
] });
|
|
4056
4055
|
}
|
|
4057
|
-
/*! @license DOMPurify 3.2.
|
|
4056
|
+
/*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */
|
|
4058
4057
|
const {
|
|
4059
4058
|
entries: cc,
|
|
4060
4059
|
setPrototypeOf: Gi,
|
|
@@ -4063,14 +4062,14 @@ const {
|
|
|
4063
4062
|
getOwnPropertyDescriptor: jp
|
|
4064
4063
|
} = Object;
|
|
4065
4064
|
let {
|
|
4066
|
-
freeze:
|
|
4065
|
+
freeze: Xe,
|
|
4067
4066
|
seal: ct,
|
|
4068
4067
|
create: uc
|
|
4069
4068
|
} = Object, {
|
|
4070
4069
|
apply: bs,
|
|
4071
4070
|
construct: vs
|
|
4072
4071
|
} = typeof Reflect < "u" && Reflect;
|
|
4073
|
-
|
|
4072
|
+
Xe || (Xe = function(t) {
|
|
4074
4073
|
return t;
|
|
4075
4074
|
});
|
|
4076
4075
|
ct || (ct = function(t) {
|
|
@@ -4138,7 +4137,7 @@ function Yr(e, t) {
|
|
|
4138
4137
|
}
|
|
4139
4138
|
return r;
|
|
4140
4139
|
}
|
|
4141
|
-
const Ki =
|
|
4140
|
+
const Ki = Xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zo = Xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Bo = Xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Dp = Xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Uo = Xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Mp = Xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ji = Xe(["#text"]), Xi = Xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Vo = Xe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Zi = Xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Fn = Xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fp = ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Np = ct(/<%[\w\W]*|[\w\W]*%>/gm), Lp = ct(/\${[\w\W]*}/gm), zp = ct(/^data-[\-\w.\u00B7-\uFFFF]/), Bp = ct(/^aria-[\-\w]+$/), fc = ct(
|
|
4142
4141
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4143
4142
|
// eslint-disable-line no-useless-escape
|
|
4144
4143
|
), Up = ct(/^(?:\w+script|data):/i), Vp = ct(
|
|
@@ -4199,7 +4198,7 @@ const qr = {
|
|
|
4199
4198
|
function pc() {
|
|
4200
4199
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Hp();
|
|
4201
4200
|
const t = (k) => pc(k);
|
|
4202
|
-
if (t.version = "3.2.
|
|
4201
|
+
if (t.version = "3.2.1", t.removed = [], !e || !e.document || e.document.nodeType !== qr.document)
|
|
4203
4202
|
return t.isSupported = !1, t;
|
|
4204
4203
|
let {
|
|
4205
4204
|
document: r
|
|
@@ -4223,7 +4222,7 @@ function pc() {
|
|
|
4223
4222
|
const {
|
|
4224
4223
|
implementation: $,
|
|
4225
4224
|
createNodeIterator: N,
|
|
4226
|
-
createDocumentFragment:
|
|
4225
|
+
createDocumentFragment: W,
|
|
4227
4226
|
getElementsByTagName: K
|
|
4228
4227
|
} = r, {
|
|
4229
4228
|
importNode: m
|
|
@@ -4232,18 +4231,18 @@ function pc() {
|
|
|
4232
4231
|
t.isSupported = typeof cc == "function" && typeof A == "function" && $ && $.createHTMLDocument !== void 0;
|
|
4233
4232
|
const {
|
|
4234
4233
|
MUSTACHE_EXPR: L,
|
|
4235
|
-
ERB_EXPR:
|
|
4234
|
+
ERB_EXPR: G,
|
|
4236
4235
|
TMPLIT_EXPR: Z,
|
|
4237
4236
|
DATA_ATTR: le,
|
|
4238
4237
|
ARIA_ATTR: fe,
|
|
4239
|
-
IS_SCRIPT_OR_DATA:
|
|
4238
|
+
IS_SCRIPT_OR_DATA: V,
|
|
4240
4239
|
ATTR_WHITESPACE: X,
|
|
4241
4240
|
CUSTOM_ELEMENT: oe
|
|
4242
4241
|
} = Qi;
|
|
4243
4242
|
let {
|
|
4244
4243
|
IS_ALLOWED_URI: w
|
|
4245
4244
|
} = Qi, R = null;
|
|
4246
|
-
const
|
|
4245
|
+
const H = ie({}, [...Ki, ...zo, ...Bo, ...Uo, ...Ji]);
|
|
4247
4246
|
let z = null;
|
|
4248
4247
|
const Y = ie({}, [...Xi, ...Vo, ...Zi, ...Fn]);
|
|
4249
4248
|
let U = Object.seal(uc(null, {
|
|
@@ -4265,7 +4264,7 @@ function pc() {
|
|
|
4265
4264
|
enumerable: !0,
|
|
4266
4265
|
value: !1
|
|
4267
4266
|
}
|
|
4268
|
-
})), q = null, F = null, Q = !0, re = !0, ee = !1, je = !0, D = !1, Ne = !0, B = !1, Ye = !1,
|
|
4267
|
+
})), q = null, F = null, Q = !0, re = !0, ee = !1, je = !0, D = !1, Ne = !0, B = !1, Ye = !1, Ze = !1, it = !1, Vt = !1, xt = !1, _n = !0, Tn = !1;
|
|
4269
4268
|
const Dr = "user-content-";
|
|
4270
4269
|
let Mr = !0, Wt = !1, _t = {}, Tt = null;
|
|
4271
4270
|
const Rt = ie({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -4286,7 +4285,7 @@ function pc() {
|
|
|
4286
4285
|
let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4287
4286
|
if (!(wt && wt === v)) {
|
|
4288
4287
|
if ((!v || typeof v != "object") && (v = {}), v = Yt(v), St = // eslint-disable-next-line unicorn/prefer-includes
|
|
4289
|
-
zr.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? wn : v.PARSER_MEDIA_TYPE, Re = St === "application/xhtml+xml" ? Lo : Wn, R = dt(v, "ALLOWED_TAGS") ? ie({}, v.ALLOWED_TAGS, Re) :
|
|
4288
|
+
zr.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? wn : v.PARSER_MEDIA_TYPE, Re = St === "application/xhtml+xml" ? Lo : Wn, R = dt(v, "ALLOWED_TAGS") ? ie({}, v.ALLOWED_TAGS, Re) : H, z = dt(v, "ALLOWED_ATTR") ? ie({}, v.ALLOWED_ATTR, Re) : Y, Lr = dt(v, "ALLOWED_NAMESPACES") ? ie({}, v.ALLOWED_NAMESPACES, Lo) : Io, nr = dt(v, "ADD_URI_SAFE_ATTR") ? ie(Yt(or), v.ADD_URI_SAFE_ATTR, Re) : or, Sn = dt(v, "ADD_DATA_URI_TAGS") ? ie(Yt(Fr), v.ADD_DATA_URI_TAGS, Re) : Fr, Tt = dt(v, "FORBID_CONTENTS") ? ie({}, v.FORBID_CONTENTS, Re) : Rt, q = dt(v, "FORBID_TAGS") ? ie({}, v.FORBID_TAGS, Re) : {}, F = dt(v, "FORBID_ATTR") ? ie({}, v.FORBID_ATTR, Re) : {}, _t = dt(v, "USE_PROFILES") ? v.USE_PROFILES : !1, Q = v.ALLOW_ARIA_ATTR !== !1, re = v.ALLOW_DATA_ATTR !== !1, ee = v.ALLOW_UNKNOWN_PROTOCOLS || !1, je = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, D = v.SAFE_FOR_TEMPLATES || !1, Ne = v.SAFE_FOR_XML !== !1, B = v.WHOLE_DOCUMENT || !1, it = v.RETURN_DOM || !1, Vt = v.RETURN_DOM_FRAGMENT || !1, xt = v.RETURN_TRUSTED_TYPE || !1, Ze = v.FORCE_BODY || !1, _n = v.SANITIZE_DOM !== !1, Tn = v.SANITIZE_NAMED_PROPS || !1, Mr = v.KEEP_CONTENT !== !1, Wt = v.IN_PLACE || !1, w = v.ALLOWED_URI_REGEXP || fc, kt = v.NAMESPACE || ft, It = v.MATHML_TEXT_INTEGRATION_POINTS || It, Ht = v.HTML_INTEGRATION_POINTS || Ht, U = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Br(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Br(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), D && (re = !1), Vt && (it = !0), _t && (R = ie({}, Ji), z = [], _t.html === !0 && (ie(R, Ki), ie(z, Xi)), _t.svg === !0 && (ie(R, zo), ie(z, Vo), ie(z, Fn)), _t.svgFilters === !0 && (ie(R, Bo), ie(z, Vo), ie(z, Fn)), _t.mathMl === !0 && (ie(R, Uo), ie(z, Zi), ie(z, Fn))), v.ADD_TAGS && (R === H && (R = Yt(R)), ie(R, v.ADD_TAGS, Re)), v.ADD_ATTR && (z === Y && (z = Yt(z)), ie(z, v.ADD_ATTR, Re)), v.ADD_URI_SAFE_ATTR && ie(nr, v.ADD_URI_SAFE_ATTR, Re), v.FORBID_CONTENTS && (Tt === Rt && (Tt = Yt(Tt)), ie(Tt, v.FORBID_CONTENTS, Re)), Mr && (R["#text"] = !0), B && ie(R, ["html", "head", "body"]), R.table && (ie(R, ["tbody"]), delete q.tbody), v.TRUSTED_TYPES_POLICY) {
|
|
4290
4289
|
if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4291
4290
|
throw Gr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4292
4291
|
if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4294,7 +4293,7 @@ function pc() {
|
|
|
4294
4293
|
C = v.TRUSTED_TYPES_POLICY, _ = C.createHTML("");
|
|
4295
4294
|
} else
|
|
4296
4295
|
C === void 0 && (C = Gp(h, o)), C !== null && typeof _ == "string" && (_ = C.createHTML(""));
|
|
4297
|
-
|
|
4296
|
+
Xe && Xe(v), wt = v;
|
|
4298
4297
|
}
|
|
4299
4298
|
}, En = ie({}, [...zo, ...Bo, ...Dp]), Cn = ie({}, [...Uo, ...Mp]), An = function(v) {
|
|
4300
4299
|
let O = A(v);
|
|
@@ -4304,7 +4303,7 @@ function pc() {
|
|
|
4304
4303
|
});
|
|
4305
4304
|
const I = Wn(v.tagName), se = Wn(O.tagName);
|
|
4306
4305
|
return Lr[v.namespaceURI] ? v.namespaceURI === ir ? O.namespaceURI === ft ? I === "svg" : O.namespaceURI === sr ? I === "svg" && (se === "annotation-xml" || It[se]) : !!En[I] : v.namespaceURI === sr ? O.namespaceURI === ft ? I === "math" : O.namespaceURI === ir ? I === "math" && Ht[se] : !!Cn[I] : v.namespaceURI === ft ? O.namespaceURI === ir && !Ht[se] || O.namespaceURI === sr && !It[se] ? !1 : !Cn[I] && (Dt[I] || !En[I]) : !!(St === "application/xhtml+xml" && Lr[v.namespaceURI]) : !1;
|
|
4307
|
-
},
|
|
4306
|
+
}, tt = function(v) {
|
|
4308
4307
|
Wr(t.removed, {
|
|
4309
4308
|
element: v
|
|
4310
4309
|
});
|
|
@@ -4328,7 +4327,7 @@ function pc() {
|
|
|
4328
4327
|
if (O.removeAttribute(v), v === "is" && !z[v])
|
|
4329
4328
|
if (it || Vt)
|
|
4330
4329
|
try {
|
|
4331
|
-
|
|
4330
|
+
tt(O);
|
|
4332
4331
|
} catch {
|
|
4333
4332
|
}
|
|
4334
4333
|
else
|
|
@@ -4338,7 +4337,7 @@ function pc() {
|
|
|
4338
4337
|
}
|
|
4339
4338
|
}, On = function(v) {
|
|
4340
4339
|
let O = null, I = null;
|
|
4341
|
-
if (
|
|
4340
|
+
if (Ze)
|
|
4342
4341
|
v = "<remove></remove>" + v;
|
|
4343
4342
|
else {
|
|
4344
4343
|
const we = qi(v, /^[\r\n\t ]+/);
|
|
@@ -4381,13 +4380,13 @@ function pc() {
|
|
|
4381
4380
|
const M = function(v) {
|
|
4382
4381
|
let O = null;
|
|
4383
4382
|
if (j("beforeSanitizeElements", v, null), jn(v))
|
|
4384
|
-
return
|
|
4383
|
+
return tt(v), !0;
|
|
4385
4384
|
const I = Re(v.nodeName);
|
|
4386
4385
|
if (j("uponSanitizeElement", v, {
|
|
4387
4386
|
tagName: I,
|
|
4388
4387
|
allowedTags: R
|
|
4389
4388
|
}), v.hasChildNodes() && !g(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === qr.progressingInstruction || Ne && v.nodeType === qr.comment && qe(/<[/\w]/g, v.data))
|
|
4390
|
-
return
|
|
4389
|
+
return tt(v), !0;
|
|
4391
4390
|
if (!R[I] || q[I]) {
|
|
4392
4391
|
if (!q[I] && ce(I) && (U.tagNameCheck instanceof RegExp && qe(U.tagNameCheck, I) || U.tagNameCheck instanceof Function && U.tagNameCheck(I)))
|
|
4393
4392
|
return !1;
|
|
@@ -4396,14 +4395,14 @@ function pc() {
|
|
|
4396
4395
|
if (Ae && se) {
|
|
4397
4396
|
const we = Ae.length;
|
|
4398
4397
|
for (let be = we - 1; be >= 0; --be) {
|
|
4399
|
-
const
|
|
4400
|
-
|
|
4398
|
+
const Qe = x(Ae[be], !0);
|
|
4399
|
+
Qe.__removalCount = (v.__removalCount || 0) + 1, se.insertBefore(Qe, T(v));
|
|
4401
4400
|
}
|
|
4402
4401
|
}
|
|
4403
4402
|
}
|
|
4404
|
-
return
|
|
4403
|
+
return tt(v), !0;
|
|
4405
4404
|
}
|
|
4406
|
-
return v instanceof l && !An(v) || (I === "noscript" || I === "noembed" || I === "noframes") && qe(/<\/no(script|embed|frames)/i, v.innerHTML) ? (
|
|
4405
|
+
return v instanceof l && !An(v) || (I === "noscript" || I === "noembed" || I === "noframes") && qe(/<\/no(script|embed|frames)/i, v.innerHTML) ? (tt(v), !0) : (D && v.nodeType === qr.text && (O = v.textContent, Mn([L, G, Z], (se) => {
|
|
4407
4406
|
O = Hr(O, se, " ");
|
|
4408
4407
|
}), v.textContent !== O && (Wr(t.removed, {
|
|
4409
4408
|
element: v.cloneNode()
|
|
@@ -4425,7 +4424,7 @@ function pc() {
|
|
|
4425
4424
|
} else if (!nr[O]) {
|
|
4426
4425
|
if (!qe(w, Hr(I, X, ""))) {
|
|
4427
4426
|
if (!((O === "src" || O === "xlink:href" || O === "href") && v !== "script" && Pp(I, "data:") === 0 && Sn[v])) {
|
|
4428
|
-
if (!(ee && !qe(
|
|
4427
|
+
if (!(ee && !qe(V, Hr(I, X, "")))) {
|
|
4429
4428
|
if (I)
|
|
4430
4429
|
return !1;
|
|
4431
4430
|
}
|
|
@@ -4456,9 +4455,9 @@ function pc() {
|
|
|
4456
4455
|
const Ae = O[se], {
|
|
4457
4456
|
name: we,
|
|
4458
4457
|
namespaceURI: be,
|
|
4459
|
-
value:
|
|
4458
|
+
value: Qe
|
|
4460
4459
|
} = Ae, Gt = Re(we);
|
|
4461
|
-
let Be = we === "value" ?
|
|
4460
|
+
let Be = we === "value" ? Qe : Rp(Qe);
|
|
4462
4461
|
if (I.attrName = Gt, I.attrValue = Be, I.keepAttr = !0, I.forceKeepAttr = void 0, j("uponSanitizeAttribute", v, I), Be = I.attrValue, Tn && (Gt === "id" || Gt === "name") && (lr(we, v), Be = Dr + Be), Ne && qe(/((--!?|])>)|<\/(style|title)/i, Be)) {
|
|
4463
4462
|
lr(we, v);
|
|
4464
4463
|
continue;
|
|
@@ -4469,7 +4468,7 @@ function pc() {
|
|
|
4469
4468
|
lr(we, v);
|
|
4470
4469
|
continue;
|
|
4471
4470
|
}
|
|
4472
|
-
D && Mn([L,
|
|
4471
|
+
D && Mn([L, G, Z], (Ti) => {
|
|
4473
4472
|
Be = Hr(Be, Ti, " ");
|
|
4474
4473
|
});
|
|
4475
4474
|
const _i = Re(v.nodeName);
|
|
@@ -4486,7 +4485,7 @@ function pc() {
|
|
|
4486
4485
|
}
|
|
4487
4486
|
}
|
|
4488
4487
|
try {
|
|
4489
|
-
be ? v.setAttributeNS(be, we, Be) : v.setAttribute(we, Be), jn(v) ?
|
|
4488
|
+
be ? v.setAttributeNS(be, we, Be) : v.setAttribute(we, Be), jn(v) ? tt(v) : Yi(t.removed);
|
|
4490
4489
|
} catch {
|
|
4491
4490
|
}
|
|
4492
4491
|
}
|
|
@@ -4511,8 +4510,8 @@ function pc() {
|
|
|
4511
4510
|
return k;
|
|
4512
4511
|
if (Ye || ar(v), t.removed = [], typeof k == "string" && (Wt = !1), Wt) {
|
|
4513
4512
|
if (k.nodeName) {
|
|
4514
|
-
const
|
|
4515
|
-
if (!R[
|
|
4513
|
+
const Qe = Re(k.nodeName);
|
|
4514
|
+
if (!R[Qe] || q[Qe])
|
|
4516
4515
|
throw Gr("root node is forbidden and cannot be sanitized in-place");
|
|
4517
4516
|
}
|
|
4518
4517
|
} else if (k instanceof a)
|
|
@@ -4524,7 +4523,7 @@ function pc() {
|
|
|
4524
4523
|
if (O = On(k), !O)
|
|
4525
4524
|
return it ? null : xt ? _ : "";
|
|
4526
4525
|
}
|
|
4527
|
-
O &&
|
|
4526
|
+
O && Ze && tt(O.firstChild);
|
|
4528
4527
|
const we = $n(Wt ? k : O);
|
|
4529
4528
|
for (; se = we.nextNode(); )
|
|
4530
4529
|
M(se) || (se.content instanceof s && ae(se.content), de(se));
|
|
@@ -4532,7 +4531,7 @@ function pc() {
|
|
|
4532
4531
|
return k;
|
|
4533
4532
|
if (it) {
|
|
4534
4533
|
if (Vt)
|
|
4535
|
-
for (Ae =
|
|
4534
|
+
for (Ae = W.call(O.ownerDocument); O.firstChild; )
|
|
4536
4535
|
Ae.appendChild(O.firstChild);
|
|
4537
4536
|
else
|
|
4538
4537
|
Ae = O;
|
|
@@ -4540,8 +4539,8 @@ function pc() {
|
|
|
4540
4539
|
}
|
|
4541
4540
|
let be = B ? O.outerHTML : O.innerHTML;
|
|
4542
4541
|
return B && R["!doctype"] && O.ownerDocument && O.ownerDocument.doctype && O.ownerDocument.doctype.name && qe(dc, O.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + O.ownerDocument.doctype.name + `>
|
|
4543
|
-
` + be), D && Mn([L,
|
|
4544
|
-
be = Hr(be,
|
|
4542
|
+
` + be), D && Mn([L, G, Z], (Qe) => {
|
|
4543
|
+
be = Hr(be, Qe, " ");
|
|
4545
4544
|
}), C && xt ? C.createHTML(be) : be;
|
|
4546
4545
|
}, t.setConfig = function() {
|
|
4547
4546
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -4803,9 +4802,9 @@ function ah({
|
|
|
4803
4802
|
horizontalSpacing: "md",
|
|
4804
4803
|
verticalSpacing: "sm"
|
|
4805
4804
|
}), h = _e("DatagridTable", p, d), { data: y, info: x } = ye(), [b, T] = ne([]), [E, A] = ne(!1), C = ($) => {
|
|
4806
|
-
T((N) => N.includes($) ? N.filter((
|
|
4805
|
+
T((N) => N.includes($) ? N.filter((W) => W !== $) : [...N, $]);
|
|
4807
4806
|
}, _ = () => {
|
|
4808
|
-
T(($) => $.length === y.ids.length ? [] : y.ids.map((N,
|
|
4807
|
+
T(($) => $.length === y.ids.length ? [] : y.ids.map((N, W) => N));
|
|
4809
4808
|
};
|
|
4810
4809
|
return xe(() => {
|
|
4811
4810
|
A(b.length === y.result.length && b.length > 0), n && n(b), e == null || e.setSelectedIds(b.map(($) => $));
|
|
@@ -5190,7 +5189,7 @@ const xc = jt((e, t) => {
|
|
|
5190
5189
|
bodyCustomizer: _ = {},
|
|
5191
5190
|
toolbarCustomizer: $ = {},
|
|
5192
5191
|
counter: N = !1,
|
|
5193
|
-
bodySeparator:
|
|
5192
|
+
bodySeparator: W
|
|
5194
5193
|
// Add more props here
|
|
5195
5194
|
} = e;
|
|
5196
5195
|
if (xe(() => {
|
|
@@ -5226,7 +5225,7 @@ const xc = jt((e, t) => {
|
|
|
5226
5225
|
hideDownload: y,
|
|
5227
5226
|
headerCustomizer: C,
|
|
5228
5227
|
bodyCustomizer: _,
|
|
5229
|
-
bodySeparator:
|
|
5228
|
+
bodySeparator: W
|
|
5230
5229
|
}
|
|
5231
5230
|
) : null,
|
|
5232
5231
|
!p && n ? /* @__PURE__ */ c.jsx(mc, { counter: N }) : null,
|
|
@@ -5494,19 +5493,19 @@ function Fy(e, t, r) {
|
|
|
5494
5493
|
throw new TypeError(Iy);
|
|
5495
5494
|
t = ba(t) || 0, ky(r) && (d = !!r.leading, f = "maxWait" in r, s = f ? Dy(ba(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
|
|
5496
5495
|
function h($) {
|
|
5497
|
-
var N = n,
|
|
5498
|
-
return n = o = void 0, u = $, i = e.apply(
|
|
5496
|
+
var N = n, W = o;
|
|
5497
|
+
return n = o = void 0, u = $, i = e.apply(W, N), i;
|
|
5499
5498
|
}
|
|
5500
5499
|
function y($) {
|
|
5501
5500
|
return u = $, a = setTimeout(T, t), d ? h($) : i;
|
|
5502
5501
|
}
|
|
5503
5502
|
function x($) {
|
|
5504
|
-
var N = $ - l,
|
|
5505
|
-
return f ? My(K, s -
|
|
5503
|
+
var N = $ - l, W = $ - u, K = t - N;
|
|
5504
|
+
return f ? My(K, s - W) : K;
|
|
5506
5505
|
}
|
|
5507
5506
|
function b($) {
|
|
5508
|
-
var N = $ - l,
|
|
5509
|
-
return l === void 0 || N >= t || N < 0 || f &&
|
|
5507
|
+
var N = $ - l, W = $ - u;
|
|
5508
|
+
return l === void 0 || N >= t || N < 0 || f && W >= s;
|
|
5510
5509
|
}
|
|
5511
5510
|
function T() {
|
|
5512
5511
|
var $ = Go();
|
|
@@ -6607,7 +6606,7 @@ function At(e) {
|
|
|
6607
6606
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
6608
6607
|
}
|
|
6609
6608
|
function bu(e) {
|
|
6610
|
-
if (!At(e))
|
|
6609
|
+
if (/* @__PURE__ */ Ke.isValidElement(e) || !At(e))
|
|
6611
6610
|
return e;
|
|
6612
6611
|
const t = {};
|
|
6613
6612
|
return Object.keys(e).forEach((r) => {
|
|
@@ -6621,7 +6620,7 @@ function ot(e, t, r = {
|
|
|
6621
6620
|
...e
|
|
6622
6621
|
} : e;
|
|
6623
6622
|
return At(e) && At(t) && Object.keys(t).forEach((o) => {
|
|
6624
|
-
At(t[o]) && // Avoid prototype pollution
|
|
6623
|
+
/* @__PURE__ */ Ke.isValidElement(t[o]) ? n[o] = t[o] : At(t[o]) && // Avoid prototype pollution
|
|
6625
6624
|
Object.prototype.hasOwnProperty.call(e, o) && At(e[o]) ? n[o] = ot(e[o], t[o], r) : r.clone ? n[o] = At(t[o]) ? bu(t[o]) : t[o] : n[o] = t[o];
|
|
6626
6625
|
}), n;
|
|
6627
6626
|
}
|
|
@@ -6749,7 +6748,7 @@ function xw() {
|
|
|
6749
6748
|
}
|
|
6750
6749
|
}
|
|
6751
6750
|
}
|
|
6752
|
-
var _ = l, $ = u, N = a,
|
|
6751
|
+
var _ = l, $ = u, N = a, W = i, K = t, m = d, P = n, L = y, G = h, Z = r, le = s, fe = o, V = f, X = !1;
|
|
6753
6752
|
function oe(D) {
|
|
6754
6753
|
return X || (X = !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.")), w(D) || C(D) === l;
|
|
6755
6754
|
}
|
|
@@ -6759,7 +6758,7 @@ function xw() {
|
|
|
6759
6758
|
function R(D) {
|
|
6760
6759
|
return C(D) === a;
|
|
6761
6760
|
}
|
|
6762
|
-
function
|
|
6761
|
+
function H(D) {
|
|
6763
6762
|
return C(D) === i;
|
|
6764
6763
|
}
|
|
6765
6764
|
function z(D) {
|
|
@@ -6789,7 +6788,7 @@ function xw() {
|
|
|
6789
6788
|
function je(D) {
|
|
6790
6789
|
return C(D) === f;
|
|
6791
6790
|
}
|
|
6792
|
-
he.AsyncMode = _, he.ConcurrentMode = $, he.ContextConsumer = N, he.ContextProvider =
|
|
6791
|
+
he.AsyncMode = _, he.ConcurrentMode = $, he.ContextConsumer = N, he.ContextProvider = W, he.Element = K, he.ForwardRef = m, he.Fragment = P, he.Lazy = L, he.Memo = G, he.Portal = Z, he.Profiler = le, he.StrictMode = fe, he.Suspense = V, he.isAsyncMode = oe, he.isConcurrentMode = w, he.isContextConsumer = R, he.isContextProvider = H, he.isElement = z, he.isForwardRef = Y, he.isFragment = U, he.isLazy = q, he.isMemo = F, he.isPortal = Q, he.isProfiler = re, he.isStrictMode = ee, he.isSuspense = je, he.isValidElementType = A, he.typeOf = C;
|
|
6793
6792
|
}()), he;
|
|
6794
6793
|
}
|
|
6795
6794
|
var Ua;
|
|
@@ -6946,11 +6945,11 @@ function Sw() {
|
|
|
6946
6945
|
elementType: _(),
|
|
6947
6946
|
instanceOf: $,
|
|
6948
6947
|
node: m(),
|
|
6949
|
-
objectOf:
|
|
6948
|
+
objectOf: W,
|
|
6950
6949
|
oneOf: N,
|
|
6951
6950
|
oneOfType: K,
|
|
6952
6951
|
shape: L,
|
|
6953
|
-
exact:
|
|
6952
|
+
exact: G
|
|
6954
6953
|
};
|
|
6955
6954
|
function y(w, R) {
|
|
6956
6955
|
return w === R ? w !== 0 || 1 / w === 1 / R : w !== w && R !== R;
|
|
@@ -6961,7 +6960,7 @@ function Sw() {
|
|
|
6961
6960
|
x.prototype = Error.prototype;
|
|
6962
6961
|
function b(w) {
|
|
6963
6962
|
if (process.env.NODE_ENV !== "production")
|
|
6964
|
-
var R = {},
|
|
6963
|
+
var R = {}, H = 0;
|
|
6965
6964
|
function z(U, q, F, Q, re, ee, je) {
|
|
6966
6965
|
if (Q = Q || p, ee = ee || F, je !== r) {
|
|
6967
6966
|
if (l) {
|
|
@@ -6972,9 +6971,9 @@ function Sw() {
|
|
|
6972
6971
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6973
6972
|
var Ne = Q + ":" + F;
|
|
6974
6973
|
!R[Ne] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
6975
|
-
|
|
6974
|
+
H < 3 && (s(
|
|
6976
6975
|
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + Q + "`. 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."
|
|
6977
|
-
), R[Ne] = !0,
|
|
6976
|
+
), R[Ne] = !0, H++);
|
|
6978
6977
|
}
|
|
6979
6978
|
}
|
|
6980
6979
|
return q[F] == null ? U ? q[F] === null ? new x("The " + re + " `" + ee + "` is marked as required " + ("in `" + Q + "`, but its value is `null`.")) : new x("The " + re + " `" + ee + "` is marked as required in " + ("`" + Q + "`, but its value is `undefined`.")) : null : w(q, F, Q, re, ee);
|
|
@@ -6983,10 +6982,10 @@ function Sw() {
|
|
|
6983
6982
|
return Y.isRequired = z.bind(null, !0), Y;
|
|
6984
6983
|
}
|
|
6985
6984
|
function T(w) {
|
|
6986
|
-
function R(
|
|
6987
|
-
var Q =
|
|
6985
|
+
function R(H, z, Y, U, q, F) {
|
|
6986
|
+
var Q = H[z], re = fe(Q);
|
|
6988
6987
|
if (re !== w) {
|
|
6989
|
-
var ee =
|
|
6988
|
+
var ee = V(Q);
|
|
6990
6989
|
return new x(
|
|
6991
6990
|
"Invalid " + U + " `" + q + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected ") + ("`" + w + "`."),
|
|
6992
6991
|
{ expectedType: w }
|
|
@@ -7000,10 +6999,10 @@ function Sw() {
|
|
|
7000
6999
|
return b(i);
|
|
7001
7000
|
}
|
|
7002
7001
|
function A(w) {
|
|
7003
|
-
function R(
|
|
7002
|
+
function R(H, z, Y, U, q) {
|
|
7004
7003
|
if (typeof w != "function")
|
|
7005
7004
|
return new x("Property `" + q + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
7006
|
-
var F =
|
|
7005
|
+
var F = H[z];
|
|
7007
7006
|
if (!Array.isArray(F)) {
|
|
7008
7007
|
var Q = fe(F);
|
|
7009
7008
|
return new x("Invalid " + U + " `" + q + "` of type " + ("`" + Q + "` supplied to `" + Y + "`, expected an array."));
|
|
@@ -7018,8 +7017,8 @@ function Sw() {
|
|
|
7018
7017
|
return b(R);
|
|
7019
7018
|
}
|
|
7020
7019
|
function C() {
|
|
7021
|
-
function w(R,
|
|
7022
|
-
var q = R[
|
|
7020
|
+
function w(R, H, z, Y, U) {
|
|
7021
|
+
var q = R[H];
|
|
7023
7022
|
if (!a(q)) {
|
|
7024
7023
|
var F = fe(q);
|
|
7025
7024
|
return new x("Invalid " + Y + " `" + U + "` of type " + ("`" + F + "` supplied to `" + z + "`, expected a single ReactElement."));
|
|
@@ -7029,8 +7028,8 @@ function Sw() {
|
|
|
7029
7028
|
return b(w);
|
|
7030
7029
|
}
|
|
7031
7030
|
function _() {
|
|
7032
|
-
function w(R,
|
|
7033
|
-
var q = R[
|
|
7031
|
+
function w(R, H, z, Y, U) {
|
|
7032
|
+
var q = R[H];
|
|
7034
7033
|
if (!e.isValidElementType(q)) {
|
|
7035
7034
|
var F = fe(q);
|
|
7036
7035
|
return new x("Invalid " + Y + " `" + U + "` of type " + ("`" + F + "` supplied to `" + z + "`, expected a single ReactElement type."));
|
|
@@ -7040,9 +7039,9 @@ function Sw() {
|
|
|
7040
7039
|
return b(w);
|
|
7041
7040
|
}
|
|
7042
7041
|
function $(w) {
|
|
7043
|
-
function R(
|
|
7044
|
-
if (!(
|
|
7045
|
-
var F = w.name || p, Q = oe(
|
|
7042
|
+
function R(H, z, Y, U, q) {
|
|
7043
|
+
if (!(H[z] instanceof w)) {
|
|
7044
|
+
var F = w.name || p, Q = oe(H[z]);
|
|
7046
7045
|
return new x("Invalid " + U + " `" + q + "` of type " + ("`" + Q + "` supplied to `" + Y + "`, expected ") + ("instance of `" + F + "`."));
|
|
7047
7046
|
}
|
|
7048
7047
|
return null;
|
|
@@ -7054,23 +7053,23 @@ function Sw() {
|
|
|
7054
7053
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
7055
7054
|
"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])."
|
|
7056
7055
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
7057
|
-
function R(
|
|
7058
|
-
for (var F =
|
|
7056
|
+
function R(H, z, Y, U, q) {
|
|
7057
|
+
for (var F = H[z], Q = 0; Q < w.length; Q++)
|
|
7059
7058
|
if (y(F, w[Q]))
|
|
7060
7059
|
return null;
|
|
7061
7060
|
var re = JSON.stringify(w, function(je, D) {
|
|
7062
|
-
var Ne =
|
|
7061
|
+
var Ne = V(D);
|
|
7063
7062
|
return Ne === "symbol" ? String(D) : D;
|
|
7064
7063
|
});
|
|
7065
7064
|
return new x("Invalid " + U + " `" + q + "` of value `" + String(F) + "` " + ("supplied to `" + Y + "`, expected one of " + re + "."));
|
|
7066
7065
|
}
|
|
7067
7066
|
return b(R);
|
|
7068
7067
|
}
|
|
7069
|
-
function
|
|
7070
|
-
function R(
|
|
7068
|
+
function W(w) {
|
|
7069
|
+
function R(H, z, Y, U, q) {
|
|
7071
7070
|
if (typeof w != "function")
|
|
7072
7071
|
return new x("Property `" + q + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
7073
|
-
var F =
|
|
7072
|
+
var F = H[z], Q = fe(F);
|
|
7074
7073
|
if (Q !== "object")
|
|
7075
7074
|
return new x("Invalid " + U + " `" + q + "` of type " + ("`" + Q + "` supplied to `" + Y + "`, expected an object."));
|
|
7076
7075
|
for (var re in F)
|
|
@@ -7087,10 +7086,10 @@ function Sw() {
|
|
|
7087
7086
|
if (!Array.isArray(w))
|
|
7088
7087
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
7089
7088
|
for (var R = 0; R < w.length; R++) {
|
|
7090
|
-
var
|
|
7091
|
-
if (typeof
|
|
7089
|
+
var H = w[R];
|
|
7090
|
+
if (typeof H != "function")
|
|
7092
7091
|
return s(
|
|
7093
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(
|
|
7092
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(H) + " at index " + R + "."
|
|
7094
7093
|
), i;
|
|
7095
7094
|
}
|
|
7096
7095
|
function z(Y, U, q, F, Q) {
|
|
@@ -7106,25 +7105,25 @@ function Sw() {
|
|
|
7106
7105
|
return b(z);
|
|
7107
7106
|
}
|
|
7108
7107
|
function m() {
|
|
7109
|
-
function w(R,
|
|
7110
|
-
return Z(R[
|
|
7108
|
+
function w(R, H, z, Y, U) {
|
|
7109
|
+
return Z(R[H]) ? null : new x("Invalid " + Y + " `" + U + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
|
|
7111
7110
|
}
|
|
7112
7111
|
return b(w);
|
|
7113
7112
|
}
|
|
7114
|
-
function P(w, R,
|
|
7113
|
+
function P(w, R, H, z, Y) {
|
|
7115
7114
|
return new x(
|
|
7116
|
-
(w || "React class") + ": " + R + " type `" +
|
|
7115
|
+
(w || "React class") + ": " + R + " type `" + H + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
7117
7116
|
);
|
|
7118
7117
|
}
|
|
7119
7118
|
function L(w) {
|
|
7120
|
-
function R(
|
|
7121
|
-
var F =
|
|
7119
|
+
function R(H, z, Y, U, q) {
|
|
7120
|
+
var F = H[z], Q = fe(F);
|
|
7122
7121
|
if (Q !== "object")
|
|
7123
7122
|
return new x("Invalid " + U + " `" + q + "` of type `" + Q + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
7124
7123
|
for (var re in w) {
|
|
7125
7124
|
var ee = w[re];
|
|
7126
7125
|
if (typeof ee != "function")
|
|
7127
|
-
return P(Y, U, q, re,
|
|
7126
|
+
return P(Y, U, q, re, V(ee));
|
|
7128
7127
|
var je = ee(F, re, Y, U, q + "." + re, r);
|
|
7129
7128
|
if (je)
|
|
7130
7129
|
return je;
|
|
@@ -7133,19 +7132,19 @@ function Sw() {
|
|
|
7133
7132
|
}
|
|
7134
7133
|
return b(R);
|
|
7135
7134
|
}
|
|
7136
|
-
function
|
|
7137
|
-
function R(
|
|
7138
|
-
var F =
|
|
7135
|
+
function G(w) {
|
|
7136
|
+
function R(H, z, Y, U, q) {
|
|
7137
|
+
var F = H[z], Q = fe(F);
|
|
7139
7138
|
if (Q !== "object")
|
|
7140
7139
|
return new x("Invalid " + U + " `" + q + "` of type `" + Q + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
7141
|
-
var re = t({},
|
|
7140
|
+
var re = t({}, H[z], w);
|
|
7142
7141
|
for (var ee in re) {
|
|
7143
7142
|
var je = w[ee];
|
|
7144
7143
|
if (n(w, ee) && typeof je != "function")
|
|
7145
|
-
return P(Y, U, q, ee,
|
|
7144
|
+
return P(Y, U, q, ee, V(je));
|
|
7146
7145
|
if (!je)
|
|
7147
7146
|
return new x(
|
|
7148
|
-
"Invalid " + U + " `" + q + "` key `" + ee + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(
|
|
7147
|
+
"Invalid " + U + " `" + q + "` key `" + ee + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(H[z], null, " ") + `
|
|
7149
7148
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
7150
7149
|
);
|
|
7151
7150
|
var D = je(F, ee, Y, U, q + "." + ee, r);
|
|
@@ -7171,13 +7170,13 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
7171
7170
|
return !0;
|
|
7172
7171
|
var R = f(w);
|
|
7173
7172
|
if (R) {
|
|
7174
|
-
var
|
|
7173
|
+
var H = R.call(w), z;
|
|
7175
7174
|
if (R !== w.entries) {
|
|
7176
|
-
for (; !(z =
|
|
7175
|
+
for (; !(z = H.next()).done; )
|
|
7177
7176
|
if (!Z(z.value))
|
|
7178
7177
|
return !1;
|
|
7179
7178
|
} else
|
|
7180
|
-
for (; !(z =
|
|
7179
|
+
for (; !(z = H.next()).done; ) {
|
|
7181
7180
|
var Y = z.value;
|
|
7182
7181
|
if (Y && !Z(Y[1]))
|
|
7183
7182
|
return !1;
|
|
@@ -7196,7 +7195,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
7196
7195
|
var R = typeof w;
|
|
7197
7196
|
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : le(R, w) ? "symbol" : R;
|
|
7198
7197
|
}
|
|
7199
|
-
function
|
|
7198
|
+
function V(w) {
|
|
7200
7199
|
if (typeof w > "u" || w === null)
|
|
7201
7200
|
return "" + w;
|
|
7202
7201
|
var R = fe(w);
|
|
@@ -7209,7 +7208,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
7209
7208
|
return R;
|
|
7210
7209
|
}
|
|
7211
7210
|
function X(w) {
|
|
7212
|
-
var R =
|
|
7211
|
+
var R = V(w);
|
|
7213
7212
|
switch (R) {
|
|
7214
7213
|
case "array":
|
|
7215
7214
|
case "object":
|
|
@@ -7392,16 +7391,16 @@ function $w() {
|
|
|
7392
7391
|
var Ye = B.$$typeof;
|
|
7393
7392
|
switch (Ye) {
|
|
7394
7393
|
case e:
|
|
7395
|
-
var
|
|
7396
|
-
switch (
|
|
7394
|
+
var Ze = B.type;
|
|
7395
|
+
switch (Ze) {
|
|
7397
7396
|
case r:
|
|
7398
7397
|
case o:
|
|
7399
7398
|
case n:
|
|
7400
7399
|
case u:
|
|
7401
7400
|
case d:
|
|
7402
|
-
return
|
|
7401
|
+
return Ze;
|
|
7403
7402
|
default:
|
|
7404
|
-
var it =
|
|
7403
|
+
var it = Ze && Ze.$$typeof;
|
|
7405
7404
|
switch (it) {
|
|
7406
7405
|
case a:
|
|
7407
7406
|
case i:
|
|
@@ -7419,14 +7418,14 @@ function $w() {
|
|
|
7419
7418
|
}
|
|
7420
7419
|
}
|
|
7421
7420
|
}
|
|
7422
|
-
var $ = i, N = s,
|
|
7421
|
+
var $ = i, N = s, W = e, K = l, m = r, P = p, L = f, G = t, Z = o, le = n, fe = u, V = d, X = !1, oe = !1;
|
|
7423
7422
|
function w(B) {
|
|
7424
7423
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
7425
7424
|
}
|
|
7426
7425
|
function R(B) {
|
|
7427
7426
|
return oe || (oe = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
7428
7427
|
}
|
|
7429
|
-
function
|
|
7428
|
+
function H(B) {
|
|
7430
7429
|
return _(B) === i;
|
|
7431
7430
|
}
|
|
7432
7431
|
function z(B) {
|
|
@@ -7462,7 +7461,7 @@ function $w() {
|
|
|
7462
7461
|
function Ne(B) {
|
|
7463
7462
|
return _(B) === d;
|
|
7464
7463
|
}
|
|
7465
|
-
ge.ContextConsumer = $, ge.ContextProvider = N, ge.Element =
|
|
7464
|
+
ge.ContextConsumer = $, ge.ContextProvider = N, ge.Element = W, ge.ForwardRef = K, ge.Fragment = m, ge.Lazy = P, ge.Memo = L, ge.Portal = G, ge.Profiler = Z, ge.StrictMode = le, ge.Suspense = fe, ge.SuspenseList = V, ge.isAsyncMode = w, ge.isConcurrentMode = R, ge.isContextConsumer = H, ge.isContextProvider = z, ge.isElement = Y, ge.isForwardRef = U, ge.isFragment = q, ge.isLazy = F, ge.isMemo = Q, ge.isPortal = re, ge.isProfiler = ee, ge.isStrictMode = je, ge.isSuspense = D, ge.isSuspenseList = Ne, ge.isValidElementType = C, ge.typeOf = _;
|
|
7466
7465
|
}()), ge;
|
|
7467
7466
|
}
|
|
7468
7467
|
process.env.NODE_ENV === "production" ? Os.exports = Ow() : Os.exports = $w();
|
|
@@ -8588,7 +8587,7 @@ function Au(e, t, r) {
|
|
|
8588
8587
|
}
|
|
8589
8588
|
var VE = function(t) {
|
|
8590
8589
|
return t();
|
|
8591
|
-
}, WE =
|
|
8590
|
+
}, WE = Ke.useInsertionEffect ? Ke.useInsertionEffect : !1, HE = WE || VE, GE = RE, YE = function(t) {
|
|
8592
8591
|
return t !== "theme";
|
|
8593
8592
|
}, sl = function(t) {
|
|
8594
8593
|
return typeof t == "string" && // 96 is one less than the char code
|
|
@@ -8628,19 +8627,19 @@ var VE = function(t) {
|
|
|
8628
8627
|
_ = {};
|
|
8629
8628
|
for (var $ in x)
|
|
8630
8629
|
_[$] = x[$];
|
|
8631
|
-
_.theme =
|
|
8630
|
+
_.theme = Ke.useContext(Pf);
|
|
8632
8631
|
}
|
|
8633
8632
|
typeof x.className == "string" ? A = IE(b.registered, C, x.className) : x.className != null && (A = x.className + " ");
|
|
8634
8633
|
var N = Au(f.concat(C), b.registered, _);
|
|
8635
8634
|
A += b.key + "-" + N.name, i !== void 0 && (A += " " + i);
|
|
8636
|
-
var
|
|
8635
|
+
var W = u && a === void 0 ? sl(E) : l, K = {};
|
|
8637
8636
|
for (var m in x)
|
|
8638
|
-
u && m === "as" ||
|
|
8639
|
-
return K.className = A, T && (K.ref = T), /* @__PURE__ */
|
|
8637
|
+
u && m === "as" || W(m) && (K[m] = x[m]);
|
|
8638
|
+
return K.className = A, T && (K.ref = T), /* @__PURE__ */ Ke.createElement(Ke.Fragment, null, /* @__PURE__ */ Ke.createElement(KE, {
|
|
8640
8639
|
cache: b,
|
|
8641
8640
|
serialized: N,
|
|
8642
8641
|
isStringTag: typeof E == "string"
|
|
8643
|
-
}), /* @__PURE__ */
|
|
8642
|
+
}), /* @__PURE__ */ Ke.createElement(E, K));
|
|
8644
8643
|
});
|
|
8645
8644
|
return y.displayName = s !== void 0 ? s : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles = f, y.__emotion_forwardProp = a, Object.defineProperty(y, "toString", {
|
|
8646
8645
|
value: function() {
|
|
@@ -8793,7 +8792,7 @@ XE.forEach(function(e) {
|
|
|
8793
8792
|
Ps[e] = Ps(e);
|
|
8794
8793
|
});
|
|
8795
8794
|
/**
|
|
8796
|
-
* @mui/styled-engine v6.1.
|
|
8795
|
+
* @mui/styled-engine v6.1.9
|
|
8797
8796
|
*
|
|
8798
8797
|
* @license MIT
|
|
8799
8798
|
* This source code is licensed under the MIT license found in the
|
|
@@ -9038,32 +9037,32 @@ function aC(e = {}) {
|
|
|
9038
9037
|
};
|
|
9039
9038
|
if (At(_)) {
|
|
9040
9039
|
const $ = ju(_);
|
|
9041
|
-
return $.variants ? function(
|
|
9042
|
-
return Gn(
|
|
9040
|
+
return $.variants ? function(W) {
|
|
9041
|
+
return Gn(W, $);
|
|
9043
9042
|
} : $.style;
|
|
9044
9043
|
}
|
|
9045
9044
|
return _;
|
|
9046
9045
|
}, C = (..._) => {
|
|
9047
|
-
const $ = [], N = _.map(A),
|
|
9048
|
-
if ($.push(s), u && h &&
|
|
9049
|
-
var fe,
|
|
9050
|
-
const Z = (
|
|
9046
|
+
const $ = [], N = _.map(A), W = [];
|
|
9047
|
+
if ($.push(s), u && h && W.push(function(L) {
|
|
9048
|
+
var fe, V;
|
|
9049
|
+
const Z = (V = (fe = L.theme.components) == null ? void 0 : fe[u]) == null ? void 0 : V.styleOverrides;
|
|
9051
9050
|
if (!Z)
|
|
9052
9051
|
return null;
|
|
9053
9052
|
const le = {};
|
|
9054
9053
|
for (const X in Z)
|
|
9055
9054
|
le[X] = Gn(L, Z[X]);
|
|
9056
9055
|
return h(L, le);
|
|
9057
|
-
}), u && !x &&
|
|
9056
|
+
}), u && !x && W.push(function(L) {
|
|
9058
9057
|
var le, fe;
|
|
9059
|
-
const
|
|
9058
|
+
const G = L.theme, Z = (fe = (le = G == null ? void 0 : G.components) == null ? void 0 : le[u]) == null ? void 0 : fe.variants;
|
|
9060
9059
|
return Z ? Pu(L, Z) : null;
|
|
9061
|
-
}), b ||
|
|
9062
|
-
const P = N.shift(), L = new Array($.length).fill(""),
|
|
9060
|
+
}), b || W.push(wr), Array.isArray(N[0])) {
|
|
9061
|
+
const P = N.shift(), L = new Array($.length).fill(""), G = new Array(W.length).fill("");
|
|
9063
9062
|
let Z;
|
|
9064
|
-
Z = [...L, ...P, ...
|
|
9063
|
+
Z = [...L, ...P, ...G], Z.raw = [...L, ...P.raw, ...G], $.unshift(Z);
|
|
9065
9064
|
}
|
|
9066
|
-
const K = [...$, ...N, ...
|
|
9065
|
+
const K = [...$, ...N, ...W], m = E(...K);
|
|
9067
9066
|
return a.muiName && (m.muiName = a.muiName), process.env.NODE_ENV !== "production" && (m.displayName = lC(u, d, a)), m;
|
|
9068
9067
|
};
|
|
9069
9068
|
return E.withConfig && (C.withConfig = E.withConfig), C;
|
|
@@ -9215,7 +9214,7 @@ function zn(e, t, r) {
|
|
|
9215
9214
|
return e;
|
|
9216
9215
|
}
|
|
9217
9216
|
}
|
|
9218
|
-
const gC = /* @__PURE__ */
|
|
9217
|
+
const gC = /* @__PURE__ */ Ke.createContext(void 0);
|
|
9219
9218
|
process.env.NODE_ENV !== "production" && (ue.node, ue.object);
|
|
9220
9219
|
function yC(e) {
|
|
9221
9220
|
const {
|
|
@@ -9232,7 +9231,7 @@ function bC({
|
|
|
9232
9231
|
props: e,
|
|
9233
9232
|
name: t
|
|
9234
9233
|
}) {
|
|
9235
|
-
const r =
|
|
9234
|
+
const r = Ke.useContext(gC);
|
|
9236
9235
|
return yC({
|
|
9237
9236
|
props: e,
|
|
9238
9237
|
name: t,
|
|
@@ -9365,7 +9364,7 @@ function SC(e, t = {}) {
|
|
|
9365
9364
|
}), A;
|
|
9366
9365
|
},
|
|
9367
9366
|
generateStyleSheets: () => {
|
|
9368
|
-
var
|
|
9367
|
+
var W, K;
|
|
9369
9368
|
const A = [], C = e.defaultColorScheme || "light";
|
|
9370
9369
|
function _(m, P) {
|
|
9371
9370
|
Object.keys(P).length && A.push(typeof m == "string" ? {
|
|
@@ -9384,7 +9383,7 @@ function SC(e, t = {}) {
|
|
|
9384
9383
|
if ($) {
|
|
9385
9384
|
const {
|
|
9386
9385
|
css: m
|
|
9387
|
-
} = $, P = (K = (
|
|
9386
|
+
} = $, P = (K = (W = s[C]) == null ? void 0 : W.palette) == null ? void 0 : K.mode, L = !n && P ? {
|
|
9388
9387
|
colorScheme: P,
|
|
9389
9388
|
...m
|
|
9390
9389
|
} : {
|
|
@@ -9398,15 +9397,15 @@ function SC(e, t = {}) {
|
|
|
9398
9397
|
css: P
|
|
9399
9398
|
}]) => {
|
|
9400
9399
|
var Z, le;
|
|
9401
|
-
const L = (le = (Z = s[m]) == null ? void 0 : Z.palette) == null ? void 0 : le.mode,
|
|
9400
|
+
const L = (le = (Z = s[m]) == null ? void 0 : Z.palette) == null ? void 0 : le.mode, G = !n && L ? {
|
|
9402
9401
|
colorScheme: L,
|
|
9403
9402
|
...P
|
|
9404
9403
|
} : {
|
|
9405
9404
|
...P
|
|
9406
9405
|
};
|
|
9407
9406
|
_(r(m, {
|
|
9408
|
-
...
|
|
9409
|
-
}),
|
|
9407
|
+
...G
|
|
9408
|
+
}), G);
|
|
9410
9409
|
}), A;
|
|
9411
9410
|
}
|
|
9412
9411
|
};
|
|
@@ -10211,7 +10210,7 @@ function rA(e = {}, ...t) {
|
|
|
10211
10210
|
};
|
|
10212
10211
|
Object.keys(C.colorSchemes).forEach((K) => {
|
|
10213
10212
|
const m = C.colorSchemes[K].palette, P = (L) => {
|
|
10214
|
-
const
|
|
10213
|
+
const G = L.split("-"), Z = G[1], le = G[2];
|
|
10215
10214
|
return p(L, m[Z][le]);
|
|
10216
10215
|
};
|
|
10217
10216
|
if (m.mode === "light" && (S(m.common, "background", "#fff"), S(m.common, "onBackground", "#000")), m.mode === "dark" && (S(m.common, "background", "#000"), S(m.common, "onBackground", "#fff")), QC(m, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), m.mode === "light") {
|
|
@@ -10225,8 +10224,8 @@ function rA(e = {}, ...t) {
|
|
|
10225
10224
|
S(m.SnackbarContent, "bg", L), S(m.SnackbarContent, "color", gt(() => m.getContrastText(L))), S(m.SpeedDialAction, "fabHoverBg", zn(m.background.paper, 0.15)), S(m.StepConnector, "border", P("palette-grey-600")), S(m.StepContent, "border", P("palette-grey-600")), S(m.Switch, "defaultColor", P("palette-grey-300")), S(m.Switch, "defaultDisabledColor", P("palette-grey-600")), S(m.Switch, "primaryDisabledColor", Te(m.primary.main, 0.55)), S(m.Switch, "secondaryDisabledColor", Te(m.secondary.main, 0.55)), S(m.Switch, "errorDisabledColor", Te(m.error.main, 0.55)), S(m.Switch, "infoDisabledColor", Te(m.info.main, 0.55)), S(m.Switch, "successDisabledColor", Te(m.success.main, 0.55)), S(m.Switch, "warningDisabledColor", Te(m.warning.main, 0.55)), S(m.TableCell, "border", Te(Ln(m.divider, 1), 0.68)), S(m.Tooltip, "bg", Ln(m.grey[700], 0.92));
|
|
10226
10225
|
}
|
|
10227
10226
|
Ct(m.background, "default"), Ct(m.background, "paper"), Ct(m.common, "background"), Ct(m.common, "onBackground"), Ct(m, "divider"), Object.keys(m).forEach((L) => {
|
|
10228
|
-
const
|
|
10229
|
-
|
|
10227
|
+
const G = m[L];
|
|
10228
|
+
G && typeof G == "object" && (G.main && S(m[L], "mainChannel", en(tn(G.main))), G.light && S(m[L], "lightChannel", en(tn(G.light))), G.dark && S(m[L], "darkChannel", en(tn(G.dark))), G.contrastText && S(m[L], "contrastTextChannel", en(tn(G.contrastText))), L === "text" && (Ct(m[L], "primary"), Ct(m[L], "secondary")), L === "action" && (G.active && Ct(m[L], "active"), G.selected && Ct(m[L], "selected")));
|
|
10230
10229
|
});
|
|
10231
10230
|
}), C = t.reduce((K, m) => ot(K, m), C);
|
|
10232
10231
|
const _ = {
|
|
@@ -10237,11 +10236,11 @@ function rA(e = {}, ...t) {
|
|
|
10237
10236
|
}, {
|
|
10238
10237
|
vars: $,
|
|
10239
10238
|
generateThemeVars: N,
|
|
10240
|
-
generateStyleSheets:
|
|
10239
|
+
generateStyleSheets: W
|
|
10241
10240
|
} = SC(C, _);
|
|
10242
10241
|
return C.vars = $, Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([K, m]) => {
|
|
10243
10242
|
C[K] = m;
|
|
10244
|
-
}), C.generateThemeVars = N, C.generateStyleSheets =
|
|
10243
|
+
}), C.generateThemeVars = N, C.generateStyleSheets = W, C.generateSpacing = function() {
|
|
10245
10244
|
return Ou(u.spacing, pi(this));
|
|
10246
10245
|
}, C.getColorSchemeSelector = wC(a), C.spacing = C.generateSpacing(), C.shouldSkipGeneratingVar = i, C.unstable_sxConfig = {
|
|
10247
10246
|
...Ro,
|
|
@@ -10434,7 +10433,7 @@ const dA = (e) => {
|
|
|
10434
10433
|
}
|
|
10435
10434
|
]
|
|
10436
10435
|
};
|
|
10437
|
-
})), un = /* @__PURE__ */
|
|
10436
|
+
})), un = /* @__PURE__ */ Ke.forwardRef(function(t, r) {
|
|
10438
10437
|
const n = uA({
|
|
10439
10438
|
props: t,
|
|
10440
10439
|
name: "MuiSvgIcon"
|
|
@@ -10449,7 +10448,7 @@ const dA = (e) => {
|
|
|
10449
10448
|
titleAccess: f,
|
|
10450
10449
|
viewBox: p = "0 0 24 24",
|
|
10451
10450
|
...h
|
|
10452
|
-
} = n, y = /* @__PURE__ */
|
|
10451
|
+
} = n, y = /* @__PURE__ */ Ke.isValidElement(o) && o.type === "svg", x = {
|
|
10453
10452
|
...n,
|
|
10454
10453
|
color: i,
|
|
10455
10454
|
component: a,
|
|
@@ -10560,7 +10559,7 @@ function vi(e, t) {
|
|
|
10560
10559
|
children: e
|
|
10561
10560
|
});
|
|
10562
10561
|
}
|
|
10563
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = un.muiName, /* @__PURE__ */
|
|
10562
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${t}Icon`), r.muiName = un.muiName, /* @__PURE__ */ Ke.memo(/* @__PURE__ */ Ke.forwardRef(r));
|
|
10564
10563
|
}
|
|
10565
10564
|
const hA = vi(/* @__PURE__ */ c.jsx("path", {
|
|
10566
10565
|
d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"
|
|
@@ -11319,7 +11318,7 @@ const TO = (e, t) => {
|
|
|
11319
11318
|
}
|
|
11320
11319
|
};
|
|
11321
11320
|
function SO({ headerConfig: e, column: t, table: r }) {
|
|
11322
|
-
var fe,
|
|
11321
|
+
var fe, V, X, oe;
|
|
11323
11322
|
const { info: n, data: o, queryParams: s, setQueryParams: i } = ye(), {
|
|
11324
11323
|
filterComponent: a,
|
|
11325
11324
|
filterProps: l,
|
|
@@ -11330,18 +11329,18 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11330
11329
|
} = e, [h, y] = ne("Basic filters"), [x, { close: b, toggle: T }] = tf(), E = ((fe = r.getState().filterComponent) == null ? void 0 : fe[t.id]) || f, A = te(() => E, [E]), C = mn({ initialValues: { value: "" } }), _ = ve(
|
|
11331
11330
|
(w) => {
|
|
11332
11331
|
r.setState((R) => {
|
|
11333
|
-
const
|
|
11334
|
-
return w ?
|
|
11332
|
+
const H = R.columnTextFilter || {};
|
|
11333
|
+
return w ? H[t.id] = w : delete H[t.id], { ...R, columnTextFilter: H };
|
|
11335
11334
|
});
|
|
11336
11335
|
},
|
|
11337
11336
|
[t.id, r]
|
|
11338
11337
|
), $ = te(() => (n == null ? void 0 : n.filters[t.id]) || {}, [t.id, n == null ? void 0 : n.filters]), N = te(
|
|
11339
11338
|
() => {
|
|
11340
11339
|
var w;
|
|
11341
|
-
return ((w = $ == null ? void 0 : $.filters) == null ? void 0 : w.reduce((R,
|
|
11340
|
+
return ((w = $ == null ? void 0 : $.filters) == null ? void 0 : w.reduce((R, H) => ({ ...R, [H.operator]: H.name }), {})) || {};
|
|
11342
11341
|
},
|
|
11343
11342
|
[$ == null ? void 0 : $.filters]
|
|
11344
|
-
),
|
|
11343
|
+
), W = te(
|
|
11345
11344
|
() => (s == null ? void 0 : s.filters.filter((w) => w.col === t.id && Sr(w.opr)).map((w) => ({ ...w }))) || [],
|
|
11346
11345
|
[s, t.id]
|
|
11347
11346
|
), [K] = Ds(C.getInputProps("value").value, yn);
|
|
@@ -11360,13 +11359,13 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11360
11359
|
return Y;
|
|
11361
11360
|
}).filter(Boolean);
|
|
11362
11361
|
!w && K && R.push({ col: t.id, opr: A, value: K });
|
|
11363
|
-
const
|
|
11364
|
-
|
|
11362
|
+
const H = JSON.stringify(R), z = JSON.stringify(s.filters);
|
|
11363
|
+
H !== z && (_(K), i({ filters: R }));
|
|
11365
11364
|
}, [K]);
|
|
11366
11365
|
const m = te(() => {
|
|
11367
|
-
var
|
|
11366
|
+
var H;
|
|
11368
11367
|
const w = { variant: "transparent" };
|
|
11369
|
-
return !((
|
|
11368
|
+
return !((H = $ == null ? void 0 : $.filters) != null && H.length) && (w.disabled = !0, w.c = "gray"), w;
|
|
11370
11369
|
}, [$ == null ? void 0 : $.filters]), P = ve(
|
|
11371
11370
|
(w) => {
|
|
11372
11371
|
if (h === w)
|
|
@@ -11377,7 +11376,7 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11377
11376
|
);
|
|
11378
11377
|
let L = null;
|
|
11379
11378
|
h === "Basic filters" ? L = /* @__PURE__ */ c.jsx(xO, { filterNameMap: N, col: t.id, opr: A, table: r }) : h === "Advanced filters" && (L = /* @__PURE__ */ c.jsx(vO, { col: t.id, colFilter: $, filterNameMap: N }));
|
|
11380
|
-
const
|
|
11379
|
+
const G = te(() => h === "Basic filters" ? { arrowOffset: "3.25rem" } : h === "Advanced filters" ? {
|
|
11381
11380
|
width: "target"
|
|
11382
11381
|
} : {}, [h]), Z = te(
|
|
11383
11382
|
() => yO(
|
|
@@ -11398,7 +11397,7 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11398
11397
|
shadow: "md",
|
|
11399
11398
|
withArrow: !0,
|
|
11400
11399
|
position: "bottom-end",
|
|
11401
|
-
...
|
|
11400
|
+
...G,
|
|
11402
11401
|
children: [
|
|
11403
11402
|
/* @__PURE__ */ c.jsx(vr.Target, { children: /* @__PURE__ */ c.jsxs(Jt, { w: "100%", gap: "0.25rem", children: [
|
|
11404
11403
|
/* @__PURE__ */ c.jsxs(lt, { gap: "xs", justify: "space-between", wrap: "nowrap", children: [
|
|
@@ -11408,7 +11407,7 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11408
11407
|
component: Z,
|
|
11409
11408
|
selectIcon: /* @__PURE__ */ c.jsx(Is, { label: "Select basic filter", children: /* @__PURE__ */ c.jsx(Ue, { ...m, onClick: () => P("Basic filters"), children: /* @__PURE__ */ c.jsx(ys, {}) }) }),
|
|
11410
11409
|
disabled: !N[A],
|
|
11411
|
-
placeholder: `Filter by ${((
|
|
11410
|
+
placeholder: `Filter by ${((V = o == null ? void 0 : o.label_columns) == null ? void 0 : V[t.id]) || t.id}`,
|
|
11412
11411
|
...C.getInputProps("value"),
|
|
11413
11412
|
style: { fontWeight: "normal" },
|
|
11414
11413
|
w: "100%",
|
|
@@ -11418,12 +11417,12 @@ function SO({ headerConfig: e, column: t, table: r }) {
|
|
|
11418
11417
|
/* @__PURE__ */ c.jsx(
|
|
11419
11418
|
Ft,
|
|
11420
11419
|
{
|
|
11421
|
-
fallback: /* @__PURE__ */ c.jsx(Is, { label: "Advanced Filter", disabled: !((X = $ == null ? void 0 : $.filters) != null && X.length), children: /* @__PURE__ */ c.jsx(Wu, { indicator:
|
|
11420
|
+
fallback: /* @__PURE__ */ c.jsx(Is, { label: "Advanced Filter", disabled: !((X = $ == null ? void 0 : $.filters) != null && X.length), children: /* @__PURE__ */ c.jsx(Wu, { indicator: W.length, children: /* @__PURE__ */ c.jsx(Ue, { ...m, onClick: () => P("Advanced filters"), children: /* @__PURE__ */ c.jsx(ip, {}) }) }) }),
|
|
11422
11421
|
functionProps: [
|
|
11423
11422
|
{
|
|
11424
11423
|
label: "Advanced filters",
|
|
11425
11424
|
disabled: !((oe = $ == null ? void 0 : $.filters) != null && oe.length),
|
|
11426
|
-
indicator:
|
|
11425
|
+
indicator: W.length,
|
|
11427
11426
|
aiProps: m,
|
|
11428
11427
|
onClick: () => P("Advanced filters")
|
|
11429
11428
|
}
|
|
@@ -11781,50 +11780,50 @@ const FO = { enableStickyHeader: !0, enableColumnPinning: !0 }, NO = jt((e, t) =
|
|
|
11781
11780
|
withBorder: _,
|
|
11782
11781
|
columnProps: $,
|
|
11783
11782
|
header: N,
|
|
11784
|
-
body:
|
|
11783
|
+
body: W,
|
|
11785
11784
|
textFilterSeparator: K = ";",
|
|
11786
11785
|
bodySeparator: m,
|
|
11787
11786
|
bodyTruncate: P,
|
|
11788
11787
|
...L
|
|
11789
11788
|
} = e;
|
|
11790
|
-
m && (console.warn("bodySeparator is deprecated, please use body.[col].separator instead"), Object.keys(
|
|
11791
|
-
|
|
11792
|
-
})), P && (console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"), Object.keys(
|
|
11793
|
-
|
|
11789
|
+
m && (console.warn("bodySeparator is deprecated, please use body.[col].separator instead"), Object.keys(W).forEach((F) => {
|
|
11790
|
+
W[F] = W[F] || {}, W[F].separator = W[F].separator || m;
|
|
11791
|
+
})), P && (console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"), Object.keys(W).forEach((F) => {
|
|
11792
|
+
W[F] = W[F] || {}, W[F].truncate = W[F].truncate || P;
|
|
11794
11793
|
})), i && (console.warn("headerCustomizer is deprecated, please use header.[col].component instead"), Object.keys(i).forEach((F) => {
|
|
11795
11794
|
N[F] = N[F] || {}, N[F].component = i[F].component || i[F];
|
|
11796
11795
|
})), a && (console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"), Object.keys(a).forEach((F) => {
|
|
11797
|
-
|
|
11796
|
+
W[F] = W[F] || {}, W[F].component = a[F].component || a[F];
|
|
11798
11797
|
}));
|
|
11799
|
-
const
|
|
11798
|
+
const G = CO(), Z = PO(), le = $O(y), fe = EO($, N, W, K), V = jO(_), X = hO(h, (q = nn(W, o.actions)) == null ? void 0 : q.component), oe = OO(), w = MO(), R = DO(C, l, u, d, f, p), H = AO(T), z = mO(b, E), Y = te(
|
|
11800
11799
|
() => xi(
|
|
11801
11800
|
FO,
|
|
11802
11801
|
{ mantinePaperProps: { ref: t } },
|
|
11803
11802
|
fe,
|
|
11804
|
-
|
|
11803
|
+
G,
|
|
11805
11804
|
Z,
|
|
11806
11805
|
le,
|
|
11807
|
-
|
|
11806
|
+
V,
|
|
11808
11807
|
X,
|
|
11809
11808
|
oe,
|
|
11810
11809
|
w,
|
|
11811
11810
|
R,
|
|
11812
|
-
|
|
11811
|
+
H,
|
|
11813
11812
|
z,
|
|
11814
11813
|
A
|
|
11815
11814
|
),
|
|
11816
11815
|
[
|
|
11817
11816
|
t,
|
|
11818
11817
|
fe,
|
|
11819
|
-
|
|
11818
|
+
G,
|
|
11820
11819
|
Z,
|
|
11821
11820
|
le,
|
|
11822
|
-
|
|
11821
|
+
V,
|
|
11823
11822
|
X,
|
|
11824
11823
|
oe,
|
|
11825
11824
|
w,
|
|
11826
11825
|
R,
|
|
11827
|
-
|
|
11826
|
+
H,
|
|
11828
11827
|
z,
|
|
11829
11828
|
A
|
|
11830
11829
|
]
|