@cdc/markup-include 4.23.7 → 4.23.9
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/cdcmarkupinclude.js +521 -506
- package/package.json +2 -2
package/dist/cdcmarkupinclude.js
CHANGED
|
@@ -25,17 +25,17 @@ function es() {
|
|
|
25
25
|
return kt;
|
|
26
26
|
to = 1;
|
|
27
27
|
var e = Ve, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
28
|
-
function
|
|
28
|
+
function s(i, l, c) {
|
|
29
29
|
var d, u = {}, p = null, b = null;
|
|
30
|
-
c !== void 0 && (p = "" + c),
|
|
31
|
-
for (d in
|
|
32
|
-
n.call(
|
|
30
|
+
c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (b = l.ref);
|
|
31
|
+
for (d in l)
|
|
32
|
+
n.call(l, d) && !a.hasOwnProperty(d) && (u[d] = l[d]);
|
|
33
33
|
if (i && i.defaultProps)
|
|
34
|
-
for (d in
|
|
35
|
-
u[d] === void 0 && (u[d] =
|
|
34
|
+
for (d in l = i.defaultProps, l)
|
|
35
|
+
u[d] === void 0 && (u[d] = l[d]);
|
|
36
36
|
return { $$typeof: t, type: i, key: p, ref: b, props: u, _owner: o.current };
|
|
37
37
|
}
|
|
38
|
-
return kt.Fragment = r, kt.jsx =
|
|
38
|
+
return kt.Fragment = r, kt.jsx = s, kt.jsxs = s, kt;
|
|
39
39
|
}
|
|
40
40
|
var It = {};
|
|
41
41
|
/**
|
|
@@ -50,14 +50,14 @@ var It = {};
|
|
|
50
50
|
var ro;
|
|
51
51
|
function ts() {
|
|
52
52
|
return ro || (ro = 1, process.env.NODE_ENV !== "production" && function() {
|
|
53
|
-
var e = Ve, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"),
|
|
53
|
+
var e = Ve, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), v = Symbol.iterator, h = "@@iterator";
|
|
54
54
|
function x(f) {
|
|
55
55
|
if (f === null || typeof f != "object")
|
|
56
56
|
return null;
|
|
57
57
|
var S = v && f[v] || f[h];
|
|
58
58
|
return typeof S == "function" ? S : null;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
61
61
|
function C(f) {
|
|
62
62
|
{
|
|
63
63
|
for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), X = 1; X < S; X++)
|
|
@@ -67,7 +67,7 @@ function ts() {
|
|
|
67
67
|
}
|
|
68
68
|
function _(f, S, k) {
|
|
69
69
|
{
|
|
70
|
-
var X =
|
|
70
|
+
var X = w.ReactDebugCurrentFrame, pe = X.getStackAddendum();
|
|
71
71
|
pe !== "" && (S += "%s", k = k.concat([pe]));
|
|
72
72
|
var be = k.map(function(fe) {
|
|
73
73
|
return String(fe);
|
|
@@ -75,10 +75,10 @@ function ts() {
|
|
|
75
75
|
be.unshift("Warning: " + S), Function.prototype.apply.call(console[f], console, be);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var y = !1,
|
|
78
|
+
var y = !1, E = !1, Y = !1, j = !1, H = !1, $;
|
|
79
79
|
$ = Symbol.for("react.module.reference");
|
|
80
80
|
function Z(f) {
|
|
81
|
-
return !!(typeof f == "string" || typeof f == "function" || f === n || f === a || H || f === o || f === c || f === d || j || f === b || y ||
|
|
81
|
+
return !!(typeof f == "string" || typeof f == "function" || f === n || f === a || H || f === o || f === c || f === d || j || f === b || y || E || Y || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === u || f.$$typeof === s || f.$$typeof === i || f.$$typeof === l || // This needs to include all possible module reference object
|
|
82
82
|
// types supported by any Flight configuration anywhere since
|
|
83
83
|
// we don't know which Flight build this will end up being used
|
|
84
84
|
// with.
|
|
@@ -120,10 +120,10 @@ function ts() {
|
|
|
120
120
|
case i:
|
|
121
121
|
var S = f;
|
|
122
122
|
return M(S) + ".Consumer";
|
|
123
|
-
case
|
|
123
|
+
case s:
|
|
124
124
|
var k = f;
|
|
125
125
|
return M(k._context) + ".Provider";
|
|
126
|
-
case
|
|
126
|
+
case l:
|
|
127
127
|
return L(f, f.render, "ForwardRef");
|
|
128
128
|
case u:
|
|
129
129
|
var X = f.displayName || null;
|
|
@@ -201,7 +201,7 @@ function ts() {
|
|
|
201
201
|
oe < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var q =
|
|
204
|
+
var q = w.ReactCurrentDispatcher, W;
|
|
205
205
|
function Q(f, S, k) {
|
|
206
206
|
{
|
|
207
207
|
if (W === void 0)
|
|
@@ -313,7 +313,7 @@ function ts() {
|
|
|
313
313
|
}
|
|
314
314
|
if (typeof f == "object")
|
|
315
315
|
switch (f.$$typeof) {
|
|
316
|
-
case
|
|
316
|
+
case l:
|
|
317
317
|
return G(f.render);
|
|
318
318
|
case u:
|
|
319
319
|
return ne(f.type, S, k);
|
|
@@ -327,7 +327,7 @@ function ts() {
|
|
|
327
327
|
}
|
|
328
328
|
return "";
|
|
329
329
|
}
|
|
330
|
-
var ae = Object.prototype.hasOwnProperty, de = {}, ye =
|
|
330
|
+
var ae = Object.prototype.hasOwnProperty, de = {}, ye = w.ReactDebugCurrentFrame;
|
|
331
331
|
function Oe(f) {
|
|
332
332
|
if (f) {
|
|
333
333
|
var S = f._owner, k = ne(f.type, f._source, S ? S.type : null);
|
|
@@ -378,7 +378,7 @@ function ts() {
|
|
|
378
378
|
if (Se(f))
|
|
379
379
|
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", O(f)), I(f);
|
|
380
380
|
}
|
|
381
|
-
var ce =
|
|
381
|
+
var ce = w.ReactCurrentOwner, Re = {
|
|
382
382
|
key: !0,
|
|
383
383
|
ref: !0,
|
|
384
384
|
__self: !0,
|
|
@@ -476,7 +476,7 @@ function ts() {
|
|
|
476
476
|
return Pt(f, ue, $e, pe, X, ce.current, fe);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
var Rr =
|
|
479
|
+
var Rr = w.ReactCurrentOwner, Zn = w.ReactDebugCurrentFrame;
|
|
480
480
|
function Tt(f) {
|
|
481
481
|
if (f) {
|
|
482
482
|
var S = f._owner, k = ne(f.type, f._source, S ? S.type : null);
|
|
@@ -565,7 +565,7 @@ Check the top-level render call using <` + k + ">.");
|
|
|
565
565
|
var k;
|
|
566
566
|
if (typeof S == "function")
|
|
567
567
|
k = S.propTypes;
|
|
568
|
-
else if (typeof S == "object" && (S.$$typeof ===
|
|
568
|
+
else if (typeof S == "object" && (S.$$typeof === l || // Note: Memo only checks outer props here.
|
|
569
569
|
// Inner props are checked in the reconciler.
|
|
570
570
|
S.$$typeof === u))
|
|
571
571
|
k = S.propTypes;
|
|
@@ -765,15 +765,15 @@ var Ta = function(t, r, n) {
|
|
|
765
765
|
o = r.toString();
|
|
766
766
|
else {
|
|
767
767
|
var a = [];
|
|
768
|
-
St.forEach(r, function(
|
|
769
|
-
|
|
768
|
+
St.forEach(r, function(l, c) {
|
|
769
|
+
l === null || typeof l > "u" || (St.isArray(l) ? c = c + "[]" : l = [l], St.forEach(l, function(u) {
|
|
770
770
|
St.isDate(u) ? u = u.toISOString() : St.isObject(u) && (u = JSON.stringify(u)), a.push(no(c) + "=" + no(u));
|
|
771
771
|
}));
|
|
772
772
|
}), o = a.join("&");
|
|
773
773
|
}
|
|
774
774
|
if (o) {
|
|
775
|
-
var
|
|
776
|
-
|
|
775
|
+
var s = t.indexOf("#");
|
|
776
|
+
s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
777
777
|
}
|
|
778
778
|
return t;
|
|
779
779
|
}, ys = He;
|
|
@@ -830,9 +830,9 @@ function _a() {
|
|
|
830
830
|
return Ir;
|
|
831
831
|
oo = 1;
|
|
832
832
|
var e = La;
|
|
833
|
-
return Ir = function(r, n, o, a,
|
|
833
|
+
return Ir = function(r, n, o, a, s) {
|
|
834
834
|
var i = new Error(r);
|
|
835
|
-
return e(i, n, o, a,
|
|
835
|
+
return e(i, n, o, a, s);
|
|
836
836
|
}, Ir;
|
|
837
837
|
}
|
|
838
838
|
var Nr, ao;
|
|
@@ -862,9 +862,9 @@ function xs() {
|
|
|
862
862
|
// Standard browser envs support document.cookie
|
|
863
863
|
function() {
|
|
864
864
|
return {
|
|
865
|
-
write: function(n, o, a,
|
|
865
|
+
write: function(n, o, a, s, i, l) {
|
|
866
866
|
var c = [];
|
|
867
|
-
c.push(n + "=" + encodeURIComponent(o)), e.isNumber(a) && c.push("expires=" + new Date(a).toGMTString()), e.isString(
|
|
867
|
+
c.push(n + "=" + encodeURIComponent(o)), e.isNumber(a) && c.push("expires=" + new Date(a).toGMTString()), e.isString(s) && c.push("path=" + s), e.isString(i) && c.push("domain=" + i), l === !0 && c.push("secure"), document.cookie = c.join("; ");
|
|
868
868
|
},
|
|
869
869
|
read: function(n) {
|
|
870
870
|
var o = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
@@ -937,13 +937,13 @@ function Ss() {
|
|
|
937
937
|
"user-agent"
|
|
938
938
|
];
|
|
939
939
|
return Fr = function(n) {
|
|
940
|
-
var o = {}, a,
|
|
940
|
+
var o = {}, a, s, i;
|
|
941
941
|
return n && e.forEach(n.split(`
|
|
942
942
|
`), function(c) {
|
|
943
|
-
if (i = c.indexOf(":"), a = e.trim(c.substr(0, i)).toLowerCase(),
|
|
943
|
+
if (i = c.indexOf(":"), a = e.trim(c.substr(0, i)).toLowerCase(), s = e.trim(c.substr(i + 1)), a) {
|
|
944
944
|
if (o[a] && t.indexOf(a) >= 0)
|
|
945
945
|
return;
|
|
946
|
-
a === "set-cookie" ? o[a] = (o[a] ? o[a] : []).concat([
|
|
946
|
+
a === "set-cookie" ? o[a] = (o[a] ? o[a] : []).concat([s]) : o[a] = o[a] ? o[a] + ", " + s : s;
|
|
947
947
|
}
|
|
948
948
|
}), o;
|
|
949
949
|
}, Fr;
|
|
@@ -959,8 +959,8 @@ function _s() {
|
|
|
959
959
|
// whether the request URL is of the same origin as current location.
|
|
960
960
|
function() {
|
|
961
961
|
var r = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a"), o;
|
|
962
|
-
function a(
|
|
963
|
-
var i =
|
|
962
|
+
function a(s) {
|
|
963
|
+
var i = s;
|
|
964
964
|
return r && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
965
965
|
href: n.href,
|
|
966
966
|
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
@@ -973,8 +973,8 @@ function _s() {
|
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
975
|
return o = a(window.location.href), function(i) {
|
|
976
|
-
var
|
|
977
|
-
return
|
|
976
|
+
var l = e.isString(i) ? a(i) : i;
|
|
977
|
+
return l.protocol === o.protocol && l.host === o.host;
|
|
978
978
|
};
|
|
979
979
|
}()
|
|
980
980
|
) : (
|
|
@@ -1003,24 +1003,24 @@ function vo() {
|
|
|
1003
1003
|
if (ho)
|
|
1004
1004
|
return Ur;
|
|
1005
1005
|
ho = 1;
|
|
1006
|
-
var e = He, t = Es(), r = xs(), n = Ta, o = Ls(), a = Ss(),
|
|
1006
|
+
var e = He, t = Es(), r = xs(), n = Ta, o = Ls(), a = Ss(), s = _s(), i = _a(), l = Sa, c = fr();
|
|
1007
1007
|
return Ur = function(u) {
|
|
1008
1008
|
return new Promise(function(b, v) {
|
|
1009
|
-
var h = u.data, x = u.headers,
|
|
1009
|
+
var h = u.data, x = u.headers, w = u.responseType, C;
|
|
1010
1010
|
function _() {
|
|
1011
1011
|
u.cancelToken && u.cancelToken.unsubscribe(C), u.signal && u.signal.removeEventListener("abort", C);
|
|
1012
1012
|
}
|
|
1013
1013
|
e.isFormData(h) && delete x["Content-Type"];
|
|
1014
1014
|
var y = new XMLHttpRequest();
|
|
1015
1015
|
if (u.auth) {
|
|
1016
|
-
var
|
|
1017
|
-
x.Authorization = "Basic " + btoa(
|
|
1016
|
+
var E = u.auth.username || "", Y = u.auth.password ? unescape(encodeURIComponent(u.auth.password)) : "";
|
|
1017
|
+
x.Authorization = "Basic " + btoa(E + ":" + Y);
|
|
1018
1018
|
}
|
|
1019
1019
|
var j = o(u.baseURL, u.url);
|
|
1020
1020
|
y.open(u.method.toUpperCase(), n(j, u.params, u.paramsSerializer), !0), y.timeout = u.timeout;
|
|
1021
1021
|
function H() {
|
|
1022
1022
|
if (y) {
|
|
1023
|
-
var Z = "getAllResponseHeaders" in y ? a(y.getAllResponseHeaders()) : null, L = !
|
|
1023
|
+
var Z = "getAllResponseHeaders" in y ? a(y.getAllResponseHeaders()) : null, L = !w || w === "text" || w === "json" ? y.responseText : y.response, M = {
|
|
1024
1024
|
data: L,
|
|
1025
1025
|
status: y.status,
|
|
1026
1026
|
statusText: y.statusText,
|
|
@@ -1042,7 +1042,7 @@ function vo() {
|
|
|
1042
1042
|
}, y.onerror = function() {
|
|
1043
1043
|
v(i("Network Error", u, null, y)), y = null;
|
|
1044
1044
|
}, y.ontimeout = function() {
|
|
1045
|
-
var L = u.timeout ? "timeout of " + u.timeout + "ms exceeded" : "timeout exceeded", M = u.transitional ||
|
|
1045
|
+
var L = u.timeout ? "timeout of " + u.timeout + "ms exceeded" : "timeout exceeded", M = u.transitional || l;
|
|
1046
1046
|
u.timeoutErrorMessage && (L = u.timeoutErrorMessage), v(i(
|
|
1047
1047
|
L,
|
|
1048
1048
|
u,
|
|
@@ -1050,12 +1050,12 @@ function vo() {
|
|
|
1050
1050
|
y
|
|
1051
1051
|
)), y = null;
|
|
1052
1052
|
}, e.isStandardBrowserEnv()) {
|
|
1053
|
-
var $ = (u.withCredentials ||
|
|
1053
|
+
var $ = (u.withCredentials || s(j)) && u.xsrfCookieName ? r.read(u.xsrfCookieName) : void 0;
|
|
1054
1054
|
$ && (x[u.xsrfHeaderName] = $);
|
|
1055
1055
|
}
|
|
1056
1056
|
"setRequestHeader" in y && e.forEach(x, function(L, M) {
|
|
1057
1057
|
typeof h > "u" && M.toLowerCase() === "content-type" ? delete x[M] : y.setRequestHeader(M, L);
|
|
1058
|
-
}), e.isUndefined(u.withCredentials) || (y.withCredentials = !!u.withCredentials),
|
|
1058
|
+
}), e.isUndefined(u.withCredentials) || (y.withCredentials = !!u.withCredentials), w && w !== "json" && (y.responseType = u.responseType), typeof u.onDownloadProgress == "function" && y.addEventListener("progress", u.onDownloadProgress), typeof u.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", u.onUploadProgress), (u.cancelToken || u.signal) && (C = function(Z) {
|
|
1059
1059
|
y && (v(!Z || Z && Z.type ? new c("canceled") : Z), y.abort(), y = null);
|
|
1060
1060
|
}, u.cancelToken && u.cancelToken.subscribe(C), u.signal && (u.signal.aborted ? C() : u.signal.addEventListener("abort", C))), h || (h = null), y.send(h);
|
|
1061
1061
|
});
|
|
@@ -1092,9 +1092,9 @@ var dr = {
|
|
|
1092
1092
|
if (a || o && De.isString(t) && t.length)
|
|
1093
1093
|
try {
|
|
1094
1094
|
return JSON.parse(t);
|
|
1095
|
-
} catch (
|
|
1095
|
+
} catch (s) {
|
|
1096
1096
|
if (a)
|
|
1097
|
-
throw
|
|
1097
|
+
throw s.name === "SyntaxError" ? As(s, this, "E_JSON_PARSE") : s;
|
|
1098
1098
|
}
|
|
1099
1099
|
return t;
|
|
1100
1100
|
}],
|
|
@@ -1124,8 +1124,8 @@ De.forEach(["post", "put", "patch"], function(t) {
|
|
|
1124
1124
|
});
|
|
1125
1125
|
var Pn = dr, Is = He, Ns = Pn, Ds = function(t, r, n) {
|
|
1126
1126
|
var o = this || Ns;
|
|
1127
|
-
return Is.forEach(n, function(
|
|
1128
|
-
t =
|
|
1127
|
+
return Is.forEach(n, function(s) {
|
|
1128
|
+
t = s.call(o, t, r);
|
|
1129
1129
|
}), t;
|
|
1130
1130
|
}, zr, go;
|
|
1131
1131
|
function Aa() {
|
|
@@ -1183,7 +1183,7 @@ var Fs = function(t) {
|
|
|
1183
1183
|
} else
|
|
1184
1184
|
return o(t[d], r[d]);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function s(d) {
|
|
1187
1187
|
if (!qe.isUndefined(r[d]))
|
|
1188
1188
|
return o(void 0, r[d]);
|
|
1189
1189
|
}
|
|
@@ -1194,16 +1194,16 @@ var Fs = function(t) {
|
|
|
1194
1194
|
} else
|
|
1195
1195
|
return o(void 0, r[d]);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function l(d) {
|
|
1198
1198
|
if (d in r)
|
|
1199
1199
|
return o(t[d], r[d]);
|
|
1200
1200
|
if (d in t)
|
|
1201
1201
|
return o(void 0, t[d]);
|
|
1202
1202
|
}
|
|
1203
1203
|
var c = {
|
|
1204
|
-
url:
|
|
1205
|
-
method:
|
|
1206
|
-
data:
|
|
1204
|
+
url: s,
|
|
1205
|
+
method: s,
|
|
1206
|
+
data: s,
|
|
1207
1207
|
baseURL: i,
|
|
1208
1208
|
transformRequest: i,
|
|
1209
1209
|
transformResponse: i,
|
|
@@ -1226,11 +1226,11 @@ var Fs = function(t) {
|
|
|
1226
1226
|
cancelToken: i,
|
|
1227
1227
|
socketPath: i,
|
|
1228
1228
|
responseEncoding: i,
|
|
1229
|
-
validateStatus:
|
|
1229
|
+
validateStatus: l
|
|
1230
1230
|
};
|
|
1231
1231
|
return qe.forEach(Object.keys(t).concat(Object.keys(r)), function(u) {
|
|
1232
1232
|
var p = c[u] || a, b = p(u);
|
|
1233
|
-
qe.isUndefined(b) && p !==
|
|
1233
|
+
qe.isUndefined(b) && p !== l || (n[u] = b);
|
|
1234
1234
|
}), n;
|
|
1235
1235
|
}, Wr, wo;
|
|
1236
1236
|
function Ra() {
|
|
@@ -1246,29 +1246,29 @@ var Bs = Ra().version, kn = {};
|
|
|
1246
1246
|
});
|
|
1247
1247
|
var Eo = {};
|
|
1248
1248
|
kn.transitional = function(t, r, n) {
|
|
1249
|
-
function o(a,
|
|
1250
|
-
return "[Axios v" + Bs + "] Transitional option '" + a + "'" +
|
|
1249
|
+
function o(a, s) {
|
|
1250
|
+
return "[Axios v" + Bs + "] Transitional option '" + a + "'" + s + (n ? ". " + n : "");
|
|
1251
1251
|
}
|
|
1252
|
-
return function(a,
|
|
1252
|
+
return function(a, s, i) {
|
|
1253
1253
|
if (t === !1)
|
|
1254
|
-
throw new Error(o(
|
|
1255
|
-
return r && !Eo[
|
|
1254
|
+
throw new Error(o(s, " has been removed" + (r ? " in " + r : "")));
|
|
1255
|
+
return r && !Eo[s] && (Eo[s] = !0, console.warn(
|
|
1256
1256
|
o(
|
|
1257
|
-
|
|
1257
|
+
s,
|
|
1258
1258
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1259
1259
|
)
|
|
1260
|
-
)), t ? t(a,
|
|
1260
|
+
)), t ? t(a, s, i) : !0;
|
|
1261
1261
|
};
|
|
1262
1262
|
};
|
|
1263
1263
|
function Hs(e, t, r) {
|
|
1264
1264
|
if (typeof e != "object")
|
|
1265
1265
|
throw new TypeError("options must be an object");
|
|
1266
1266
|
for (var n = Object.keys(e), o = n.length; o-- > 0; ) {
|
|
1267
|
-
var a = n[o],
|
|
1268
|
-
if (
|
|
1269
|
-
var i = e[a],
|
|
1270
|
-
if (
|
|
1271
|
-
throw new TypeError("option " + a + " must be " +
|
|
1267
|
+
var a = n[o], s = t[a];
|
|
1268
|
+
if (s) {
|
|
1269
|
+
var i = e[a], l = i === void 0 || s(i, a, e);
|
|
1270
|
+
if (l !== !0)
|
|
1271
|
+
throw new TypeError("option " + a + " must be " + l);
|
|
1272
1272
|
continue;
|
|
1273
1273
|
}
|
|
1274
1274
|
if (r !== !0)
|
|
@@ -1297,15 +1297,15 @@ qt.prototype.request = function(t, r) {
|
|
|
1297
1297
|
this.interceptors.request.forEach(function(b) {
|
|
1298
1298
|
typeof b.runWhen == "function" && b.runWhen(r) === !1 || (a = a && b.synchronous, o.unshift(b.fulfilled, b.rejected));
|
|
1299
1299
|
});
|
|
1300
|
-
var
|
|
1300
|
+
var s = [];
|
|
1301
1301
|
this.interceptors.response.forEach(function(b) {
|
|
1302
|
-
|
|
1302
|
+
s.push(b.fulfilled, b.rejected);
|
|
1303
1303
|
});
|
|
1304
1304
|
var i;
|
|
1305
1305
|
if (!a) {
|
|
1306
|
-
var
|
|
1307
|
-
for (Array.prototype.unshift.apply(
|
|
1308
|
-
i = i.then(
|
|
1306
|
+
var l = [Co, void 0];
|
|
1307
|
+
for (Array.prototype.unshift.apply(l, o), l = l.concat(s), i = Promise.resolve(r); l.length; )
|
|
1308
|
+
i = i.then(l.shift(), l.shift());
|
|
1309
1309
|
return i;
|
|
1310
1310
|
}
|
|
1311
1311
|
for (var c = r; o.length; ) {
|
|
@@ -1322,8 +1322,8 @@ qt.prototype.request = function(t, r) {
|
|
|
1322
1322
|
} catch (p) {
|
|
1323
1323
|
return Promise.reject(p);
|
|
1324
1324
|
}
|
|
1325
|
-
for (;
|
|
1326
|
-
i = i.then(
|
|
1325
|
+
for (; s.length; )
|
|
1326
|
+
i = i.then(s.shift(), s.shift());
|
|
1327
1327
|
return i;
|
|
1328
1328
|
};
|
|
1329
1329
|
qt.prototype.getUri = function(t) {
|
|
@@ -1357,26 +1357,26 @@ function Vs() {
|
|
|
1357
1357
|
if (typeof r != "function")
|
|
1358
1358
|
throw new TypeError("executor must be a function.");
|
|
1359
1359
|
var n;
|
|
1360
|
-
this.promise = new Promise(function(
|
|
1361
|
-
n =
|
|
1360
|
+
this.promise = new Promise(function(s) {
|
|
1361
|
+
n = s;
|
|
1362
1362
|
});
|
|
1363
1363
|
var o = this;
|
|
1364
1364
|
this.promise.then(function(a) {
|
|
1365
1365
|
if (o._listeners) {
|
|
1366
|
-
var
|
|
1367
|
-
for (
|
|
1368
|
-
o._listeners[
|
|
1366
|
+
var s, i = o._listeners.length;
|
|
1367
|
+
for (s = 0; s < i; s++)
|
|
1368
|
+
o._listeners[s](a);
|
|
1369
1369
|
o._listeners = null;
|
|
1370
1370
|
}
|
|
1371
1371
|
}), this.promise.then = function(a) {
|
|
1372
|
-
var
|
|
1373
|
-
o.subscribe(
|
|
1372
|
+
var s, i = new Promise(function(l) {
|
|
1373
|
+
o.subscribe(l), s = l;
|
|
1374
1374
|
}).then(a);
|
|
1375
1375
|
return i.cancel = function() {
|
|
1376
|
-
o.unsubscribe(
|
|
1376
|
+
o.unsubscribe(s);
|
|
1377
1377
|
}, i;
|
|
1378
|
-
}, r(function(
|
|
1379
|
-
o.reason || (o.reason = new e(
|
|
1378
|
+
}, r(function(s) {
|
|
1379
|
+
o.reason || (o.reason = new e(s), n(o.reason));
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
return t.prototype.throwIfRequested = function() {
|
|
@@ -1394,8 +1394,8 @@ function Vs() {
|
|
|
1394
1394
|
o !== -1 && this._listeners.splice(o, 1);
|
|
1395
1395
|
}
|
|
1396
1396
|
}, t.source = function() {
|
|
1397
|
-
var n, o = new t(function(
|
|
1398
|
-
n =
|
|
1397
|
+
var n, o = new t(function(s) {
|
|
1398
|
+
n = s;
|
|
1399
1399
|
});
|
|
1400
1400
|
return {
|
|
1401
1401
|
token: o,
|
|
@@ -1699,8 +1699,8 @@ var Fa = (
|
|
|
1699
1699
|
pt(t, e);
|
|
1700
1700
|
function t(r, n, o, a) {
|
|
1701
1701
|
o === void 0 && (o = []), a === void 0 && (a = r === "script" ? Be.ElementType.Script : r === "style" ? Be.ElementType.Style : Be.ElementType.Tag);
|
|
1702
|
-
var
|
|
1703
|
-
return
|
|
1702
|
+
var s = e.call(this, o) || this;
|
|
1703
|
+
return s.name = r, s.attribs = n, s.type = a, s;
|
|
1704
1704
|
}
|
|
1705
1705
|
return Object.defineProperty(t.prototype, "nodeType", {
|
|
1706
1706
|
get: function() {
|
|
@@ -1778,8 +1778,8 @@ function Mn(e, t) {
|
|
|
1778
1778
|
r = new Da(e.data);
|
|
1779
1779
|
else if (Ba(e)) {
|
|
1780
1780
|
var n = t ? Xr(e.children) : [], o = new Fa(e.name, Mt({}, e.attribs), n);
|
|
1781
|
-
n.forEach(function(
|
|
1782
|
-
return
|
|
1781
|
+
n.forEach(function(l) {
|
|
1782
|
+
return l.parent = o;
|
|
1783
1783
|
}), e.namespace != null && (o.namespace = e.namespace), e["x-attribsNamespace"] && (o["x-attribsNamespace"] = Mt({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (o["x-attribsPrefix"] = Mt({}, e["x-attribsPrefix"])), r = o;
|
|
1784
1784
|
} else if (Ha(e)) {
|
|
1785
1785
|
var n = t ? Xr(e.children) : [], a = new ja(n);
|
|
@@ -1787,10 +1787,10 @@ function Mn(e, t) {
|
|
|
1787
1787
|
return c.parent = a;
|
|
1788
1788
|
}), r = a;
|
|
1789
1789
|
} else if (Va(e)) {
|
|
1790
|
-
var n = t ? Xr(e.children) : [],
|
|
1790
|
+
var n = t ? Xr(e.children) : [], s = new $a(n);
|
|
1791
1791
|
n.forEach(function(c) {
|
|
1792
|
-
return c.parent =
|
|
1793
|
-
}), e["x-mode"] && (
|
|
1792
|
+
return c.parent = s;
|
|
1793
|
+
}), e["x-mode"] && (s["x-mode"] = e["x-mode"]), r = s;
|
|
1794
1794
|
} else if (qa(e)) {
|
|
1795
1795
|
var i = new Ma(e.name, e.data);
|
|
1796
1796
|
e["x-name"] != null && (i["x-name"] = e["x-name"], i["x-publicId"] = e["x-publicId"], i["x-systemId"] = e["x-systemId"]), r = i;
|
|
@@ -1807,17 +1807,17 @@ function Xr(e) {
|
|
|
1807
1807
|
return t;
|
|
1808
1808
|
}
|
|
1809
1809
|
(function(e) {
|
|
1810
|
-
var t = Je && Je.__createBinding || (Object.create ? function(i,
|
|
1810
|
+
var t = Je && Je.__createBinding || (Object.create ? function(i, l, c, d) {
|
|
1811
1811
|
d === void 0 && (d = c);
|
|
1812
|
-
var u = Object.getOwnPropertyDescriptor(
|
|
1813
|
-
(!u || ("get" in u ? !
|
|
1814
|
-
return
|
|
1812
|
+
var u = Object.getOwnPropertyDescriptor(l, c);
|
|
1813
|
+
(!u || ("get" in u ? !l.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
1814
|
+
return l[c];
|
|
1815
1815
|
} }), Object.defineProperty(i, d, u);
|
|
1816
|
-
} : function(i,
|
|
1817
|
-
d === void 0 && (d = c), i[d] =
|
|
1818
|
-
}), r = Je && Je.__exportStar || function(i,
|
|
1816
|
+
} : function(i, l, c, d) {
|
|
1817
|
+
d === void 0 && (d = c), i[d] = l[c];
|
|
1818
|
+
}), r = Je && Je.__exportStar || function(i, l) {
|
|
1819
1819
|
for (var c in i)
|
|
1820
|
-
c !== "default" && !Object.prototype.hasOwnProperty.call(
|
|
1820
|
+
c !== "default" && !Object.prototype.hasOwnProperty.call(l, c) && t(l, i, c);
|
|
1821
1821
|
};
|
|
1822
1822
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
|
|
1823
1823
|
var n = Nn, o = le;
|
|
@@ -1826,64 +1826,64 @@ function Xr(e) {
|
|
|
1826
1826
|
withStartIndices: !1,
|
|
1827
1827
|
withEndIndices: !1,
|
|
1828
1828
|
xmlMode: !1
|
|
1829
|
-
},
|
|
1829
|
+
}, s = (
|
|
1830
1830
|
/** @class */
|
|
1831
1831
|
function() {
|
|
1832
|
-
function i(
|
|
1833
|
-
this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof c == "function" && (d = c, c = a), typeof
|
|
1832
|
+
function i(l, c, d) {
|
|
1833
|
+
this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof c == "function" && (d = c, c = a), typeof l == "object" && (c = l, l = void 0), this.callback = l ?? null, this.options = c ?? a, this.elementCB = d ?? null;
|
|
1834
1834
|
}
|
|
1835
|
-
return i.prototype.onparserinit = function(
|
|
1836
|
-
this.parser =
|
|
1835
|
+
return i.prototype.onparserinit = function(l) {
|
|
1836
|
+
this.parser = l;
|
|
1837
1837
|
}, i.prototype.onreset = function() {
|
|
1838
1838
|
this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
|
|
1839
1839
|
}, i.prototype.onend = function() {
|
|
1840
1840
|
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
|
|
1841
|
-
}, i.prototype.onerror = function(
|
|
1842
|
-
this.handleCallback(
|
|
1841
|
+
}, i.prototype.onerror = function(l) {
|
|
1842
|
+
this.handleCallback(l);
|
|
1843
1843
|
}, i.prototype.onclosetag = function() {
|
|
1844
1844
|
this.lastNode = null;
|
|
1845
|
-
var
|
|
1846
|
-
this.options.withEndIndices && (
|
|
1847
|
-
}, i.prototype.onopentag = function(
|
|
1848
|
-
var d = this.options.xmlMode ? n.ElementType.Tag : void 0, u = new o.Element(
|
|
1845
|
+
var l = this.tagStack.pop();
|
|
1846
|
+
this.options.withEndIndices && (l.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(l);
|
|
1847
|
+
}, i.prototype.onopentag = function(l, c) {
|
|
1848
|
+
var d = this.options.xmlMode ? n.ElementType.Tag : void 0, u = new o.Element(l, c, void 0, d);
|
|
1849
1849
|
this.addNode(u), this.tagStack.push(u);
|
|
1850
|
-
}, i.prototype.ontext = function(
|
|
1850
|
+
}, i.prototype.ontext = function(l) {
|
|
1851
1851
|
var c = this.lastNode;
|
|
1852
1852
|
if (c && c.type === n.ElementType.Text)
|
|
1853
|
-
c.data +=
|
|
1853
|
+
c.data += l, this.options.withEndIndices && (c.endIndex = this.parser.endIndex);
|
|
1854
1854
|
else {
|
|
1855
|
-
var d = new o.Text(
|
|
1855
|
+
var d = new o.Text(l);
|
|
1856
1856
|
this.addNode(d), this.lastNode = d;
|
|
1857
1857
|
}
|
|
1858
|
-
}, i.prototype.oncomment = function(
|
|
1858
|
+
}, i.prototype.oncomment = function(l) {
|
|
1859
1859
|
if (this.lastNode && this.lastNode.type === n.ElementType.Comment) {
|
|
1860
|
-
this.lastNode.data +=
|
|
1860
|
+
this.lastNode.data += l;
|
|
1861
1861
|
return;
|
|
1862
1862
|
}
|
|
1863
|
-
var c = new o.Comment(
|
|
1863
|
+
var c = new o.Comment(l);
|
|
1864
1864
|
this.addNode(c), this.lastNode = c;
|
|
1865
1865
|
}, i.prototype.oncommentend = function() {
|
|
1866
1866
|
this.lastNode = null;
|
|
1867
1867
|
}, i.prototype.oncdatastart = function() {
|
|
1868
|
-
var
|
|
1869
|
-
this.addNode(c),
|
|
1868
|
+
var l = new o.Text(""), c = new o.CDATA([l]);
|
|
1869
|
+
this.addNode(c), l.parent = c, this.lastNode = l;
|
|
1870
1870
|
}, i.prototype.oncdataend = function() {
|
|
1871
1871
|
this.lastNode = null;
|
|
1872
|
-
}, i.prototype.onprocessinginstruction = function(
|
|
1873
|
-
var d = new o.ProcessingInstruction(
|
|
1872
|
+
}, i.prototype.onprocessinginstruction = function(l, c) {
|
|
1873
|
+
var d = new o.ProcessingInstruction(l, c);
|
|
1874
1874
|
this.addNode(d);
|
|
1875
|
-
}, i.prototype.handleCallback = function(
|
|
1875
|
+
}, i.prototype.handleCallback = function(l) {
|
|
1876
1876
|
if (typeof this.callback == "function")
|
|
1877
|
-
this.callback(
|
|
1878
|
-
else if (
|
|
1879
|
-
throw
|
|
1880
|
-
}, i.prototype.addNode = function(
|
|
1877
|
+
this.callback(l, this.dom);
|
|
1878
|
+
else if (l)
|
|
1879
|
+
throw l;
|
|
1880
|
+
}, i.prototype.addNode = function(l) {
|
|
1881
1881
|
var c = this.tagStack[this.tagStack.length - 1], d = c.children[c.children.length - 1];
|
|
1882
|
-
this.options.withStartIndices && (
|
|
1882
|
+
this.options.withStartIndices && (l.startIndex = this.parser.startIndex), this.options.withEndIndices && (l.endIndex = this.parser.endIndex), c.children.push(l), d && (l.prev = d, d.next = l), l.parent = c, this.lastNode = null;
|
|
1883
1883
|
}, i;
|
|
1884
1884
|
}()
|
|
1885
1885
|
);
|
|
1886
|
-
e.DomHandler =
|
|
1886
|
+
e.DomHandler = s, e.default = s;
|
|
1887
1887
|
})(In);
|
|
1888
1888
|
var Ao = "html", Oo = "head", Yt = "body", tl = /<([a-zA-Z]+[0-9]?)/, Ro = /<head[^]*>/i, Po = /<body[^]*>/i, rr = function() {
|
|
1889
1889
|
throw new Error(
|
|
@@ -1980,32 +1980,32 @@ function pl(e) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
function Ga(e, t, r) {
|
|
1982
1982
|
t = t || null;
|
|
1983
|
-
for (var n = [], o, a = 0,
|
|
1984
|
-
var i = e[a],
|
|
1983
|
+
for (var n = [], o, a = 0, s = e.length; a < s; a++) {
|
|
1984
|
+
var i = e[a], l;
|
|
1985
1985
|
switch (i.nodeType) {
|
|
1986
1986
|
case 1:
|
|
1987
|
-
o = pl(i.nodeName),
|
|
1987
|
+
o = pl(i.nodeName), l = new ll(o, Za(i.attributes)), l.children = Ga(
|
|
1988
1988
|
// template children are on content
|
|
1989
1989
|
o === "template" ? i.content.childNodes : i.childNodes,
|
|
1990
|
-
|
|
1990
|
+
l
|
|
1991
1991
|
);
|
|
1992
1992
|
break;
|
|
1993
1993
|
case 3:
|
|
1994
|
-
|
|
1994
|
+
l = new ul(i.nodeValue);
|
|
1995
1995
|
break;
|
|
1996
1996
|
case 8:
|
|
1997
|
-
|
|
1997
|
+
l = new sl(i.nodeValue);
|
|
1998
1998
|
break;
|
|
1999
1999
|
default:
|
|
2000
2000
|
continue;
|
|
2001
2001
|
}
|
|
2002
2002
|
var c = n[a - 1] || null;
|
|
2003
|
-
c && (c.next =
|
|
2003
|
+
c && (c.next = l), l.parent = t, l.prev = c, l.next = null, n.push(l);
|
|
2004
2004
|
}
|
|
2005
|
-
return r && (
|
|
2005
|
+
return r && (l = new cl(
|
|
2006
2006
|
r.substring(0, r.indexOf(" ")).toLowerCase(),
|
|
2007
2007
|
r
|
|
2008
|
-
),
|
|
2008
|
+
), l.next = n[0] || null, l.parent = t, n.unshift(l), n[1] && (n[1].prev = n[0])), n;
|
|
2009
2009
|
}
|
|
2010
2010
|
jn.formatAttributes = Za;
|
|
2011
2011
|
jn.formatDOM = Ga;
|
|
@@ -2518,12 +2518,12 @@ function Cl(e) {
|
|
|
2518
2518
|
function Tl(e, t) {
|
|
2519
2519
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2520
2520
|
if (r != null) {
|
|
2521
|
-
var n = [], o = !0, a = !1,
|
|
2521
|
+
var n = [], o = !0, a = !1, s, i;
|
|
2522
2522
|
try {
|
|
2523
|
-
for (r = r.call(e); !(o = (
|
|
2523
|
+
for (r = r.call(e); !(o = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); o = !0)
|
|
2524
2524
|
;
|
|
2525
|
-
} catch (
|
|
2526
|
-
a = !0, i =
|
|
2525
|
+
} catch (l) {
|
|
2526
|
+
a = !0, i = l;
|
|
2527
2527
|
} finally {
|
|
2528
2528
|
try {
|
|
2529
2529
|
!o && r.return != null && r.return();
|
|
@@ -2560,8 +2560,8 @@ var Xa = 0, ht = 1, gr = 2, br = 3, $n = 4, Ja = 5, Ka = 6;
|
|
|
2560
2560
|
function _l(e) {
|
|
2561
2561
|
return Me.hasOwnProperty(e) ? Me[e] : null;
|
|
2562
2562
|
}
|
|
2563
|
-
function Fe(e, t, r, n, o, a,
|
|
2564
|
-
this.acceptsBooleans = t === gr || t === br || t === $n, this.attributeName = n, this.attributeNamespace = o, this.mustUseProperty = r, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString =
|
|
2563
|
+
function Fe(e, t, r, n, o, a, s) {
|
|
2564
|
+
this.acceptsBooleans = t === gr || t === br || t === $n, this.attributeName = n, this.attributeNamespace = o, this.mustUseProperty = r, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString = s;
|
|
2565
2565
|
}
|
|
2566
2566
|
var Me = {}, Al = [
|
|
2567
2567
|
"children",
|
|
@@ -2979,13 +2979,13 @@ var Qa = {}, Un = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ml =
|
|
|
2979
2979
|
function a() {
|
|
2980
2980
|
var v = { line: r, column: n };
|
|
2981
2981
|
return function(h) {
|
|
2982
|
-
return h.position = new
|
|
2982
|
+
return h.position = new s(v), c(), h;
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
function
|
|
2985
|
+
function s(v) {
|
|
2986
2986
|
this.start = v, this.end = { line: r, column: n }, this.source = t.source;
|
|
2987
2987
|
}
|
|
2988
|
-
|
|
2988
|
+
s.prototype.content = e;
|
|
2989
2989
|
function i(v) {
|
|
2990
2990
|
var h = new Error(
|
|
2991
2991
|
t.source + ":" + r + ":" + n + ": " + v
|
|
@@ -2993,7 +2993,7 @@ var Qa = {}, Un = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ml =
|
|
|
2993
2993
|
if (h.reason = v, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
|
|
2994
2994
|
throw h;
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function l(v) {
|
|
2997
2997
|
var h = v.exec(e);
|
|
2998
2998
|
if (h) {
|
|
2999
2999
|
var x = h[0];
|
|
@@ -3001,7 +3001,7 @@ var Qa = {}, Un = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ml =
|
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
function c() {
|
|
3004
|
-
|
|
3004
|
+
l(jl);
|
|
3005
3005
|
}
|
|
3006
3006
|
function d(v) {
|
|
3007
3007
|
var h;
|
|
@@ -3024,16 +3024,16 @@ var Qa = {}, Un = { exports: {} }, Mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ml =
|
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
function p() {
|
|
3027
|
-
var v = a(), h =
|
|
3027
|
+
var v = a(), h = l($l);
|
|
3028
3028
|
if (h) {
|
|
3029
|
-
if (u(), !
|
|
3029
|
+
if (u(), !l(Fl))
|
|
3030
3030
|
return i("property missing ':'");
|
|
3031
|
-
var x =
|
|
3031
|
+
var x = l(Bl), w = v({
|
|
3032
3032
|
type: Vl,
|
|
3033
3033
|
property: Fo(h[0].replace(Mo, wt)),
|
|
3034
3034
|
value: x ? Fo(x[0].replace(Mo, wt)) : wt
|
|
3035
3035
|
});
|
|
3036
|
-
return
|
|
3036
|
+
return l(Hl), w;
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
3039
|
function b() {
|
|
@@ -3053,8 +3053,8 @@ function ei(e, t) {
|
|
|
3053
3053
|
var r = null;
|
|
3054
3054
|
if (!e || typeof e != "string")
|
|
3055
3055
|
return r;
|
|
3056
|
-
for (var n, o = Yl(e), a = typeof t == "function",
|
|
3057
|
-
n = o[
|
|
3056
|
+
for (var n, o = Yl(e), a = typeof t == "function", s, i, l = 0, c = o.length; l < c; l++)
|
|
3057
|
+
n = o[l], s = n.property, i = n.value, a ? t(s, i, n) : i && (r || (r = {}), r[s] = i);
|
|
3058
3058
|
return r;
|
|
3059
3059
|
}
|
|
3060
3060
|
Un.exports = ei;
|
|
@@ -3078,10 +3078,10 @@ wr.camelCase = rc;
|
|
|
3078
3078
|
};
|
|
3079
3079
|
e.__esModule = !0;
|
|
3080
3080
|
var r = t(Zl), n = wr;
|
|
3081
|
-
function o(a,
|
|
3081
|
+
function o(a, s) {
|
|
3082
3082
|
var i = {};
|
|
3083
|
-
return !a || typeof a != "string" || (0, r.default)(a, function(
|
|
3084
|
-
|
|
3083
|
+
return !a || typeof a != "string" || (0, r.default)(a, function(l, c) {
|
|
3084
|
+
l && c && (i[(0, n.camelCase)(l, s)] = c);
|
|
3085
3085
|
}), i;
|
|
3086
3086
|
}
|
|
3087
3087
|
e.default = o;
|
|
@@ -3090,15 +3090,15 @@ var nc = Ve, oc = Qa.default;
|
|
|
3090
3090
|
function ac(e, t) {
|
|
3091
3091
|
if (!e || typeof e != "object")
|
|
3092
3092
|
throw new TypeError("First argument must be an object");
|
|
3093
|
-
var r, n, o = typeof t == "function", a = {},
|
|
3093
|
+
var r, n, o = typeof t == "function", a = {}, s = {};
|
|
3094
3094
|
for (r in e) {
|
|
3095
3095
|
if (n = e[r], o && (a = t(r, n), a && a.length === 2)) {
|
|
3096
|
-
|
|
3096
|
+
s[a[0]] = a[1];
|
|
3097
3097
|
continue;
|
|
3098
3098
|
}
|
|
3099
|
-
typeof n == "string" && (
|
|
3099
|
+
typeof n == "string" && (s[n] = r);
|
|
3100
3100
|
}
|
|
3101
|
-
return
|
|
3101
|
+
return s;
|
|
3102
3102
|
}
|
|
3103
3103
|
function ic(e, t) {
|
|
3104
3104
|
if (e.indexOf("-") === -1)
|
|
@@ -3152,26 +3152,26 @@ var ri = {
|
|
|
3152
3152
|
submit: !0
|
|
3153
3153
|
}, ni = function(t, r) {
|
|
3154
3154
|
t = t || {};
|
|
3155
|
-
var n, o, a,
|
|
3155
|
+
var n, o, a, s, i, l = {}, c = t.type && pc[t.type];
|
|
3156
3156
|
for (n in t) {
|
|
3157
3157
|
if (a = t[n], Nt.isCustomAttribute(n)) {
|
|
3158
|
-
|
|
3158
|
+
l[n] = a;
|
|
3159
3159
|
continue;
|
|
3160
3160
|
}
|
|
3161
|
-
if (o = n.toLowerCase(),
|
|
3162
|
-
switch (i = Nt.getPropertyInfo(
|
|
3161
|
+
if (o = n.toLowerCase(), s = Uo(o), s) {
|
|
3162
|
+
switch (i = Nt.getPropertyInfo(s), fc.indexOf(s) !== -1 && dc.indexOf(r) !== -1 && !c && (s = Uo("default" + o)), l[s] = a, i && i.type) {
|
|
3163
3163
|
case Nt.BOOLEAN:
|
|
3164
|
-
s
|
|
3164
|
+
l[s] = !0;
|
|
3165
3165
|
break;
|
|
3166
3166
|
case Nt.OVERLOADED_BOOLEAN:
|
|
3167
|
-
a === "" && (s
|
|
3167
|
+
a === "" && (l[s] = !0);
|
|
3168
3168
|
break;
|
|
3169
3169
|
}
|
|
3170
3170
|
continue;
|
|
3171
3171
|
}
|
|
3172
|
-
Ho.PRESERVE_CUSTOM_ATTRIBUTES && (
|
|
3172
|
+
Ho.PRESERVE_CUSTOM_ATTRIBUTES && (l[n] = a);
|
|
3173
3173
|
}
|
|
3174
|
-
return Ho.setStyleProp(t.style,
|
|
3174
|
+
return Ho.setStyleProp(t.style, l), l;
|
|
3175
3175
|
};
|
|
3176
3176
|
function Uo(e) {
|
|
3177
3177
|
return Nt.possibleStandardNames[e];
|
|
@@ -3179,17 +3179,17 @@ function Uo(e) {
|
|
|
3179
3179
|
var hc = Ve, vc = ni, nr = ri, mc = nr.setStyleProp, yc = nr.canTextBeChildOfNode;
|
|
3180
3180
|
function oi(e, t) {
|
|
3181
3181
|
t = t || {};
|
|
3182
|
-
for (var r = t.library || hc, n = r.cloneElement, o = r.createElement, a = r.isValidElement,
|
|
3182
|
+
for (var r = t.library || hc, n = r.cloneElement, o = r.createElement, a = r.isValidElement, s = [], i, l, c = typeof t.replace == "function", d, u, p, b = t.trim, v = 0, h = e.length; v < h; v++) {
|
|
3183
3183
|
if (i = e[v], c && (d = t.replace(i), a(d))) {
|
|
3184
3184
|
h > 1 && (d = n(d, {
|
|
3185
3185
|
key: d.key || v
|
|
3186
|
-
})),
|
|
3186
|
+
})), s.push(d);
|
|
3187
3187
|
continue;
|
|
3188
3188
|
}
|
|
3189
3189
|
if (i.type === "text") {
|
|
3190
|
-
if (
|
|
3190
|
+
if (l = !i.data.trim().length, l && i.parent && !yc(i.parent) || b && l)
|
|
3191
3191
|
continue;
|
|
3192
|
-
|
|
3192
|
+
s.push(i.data);
|
|
3193
3193
|
continue;
|
|
3194
3194
|
}
|
|
3195
3195
|
switch (u = i.attribs, gc(i) ? mc(u.style, u) : u && (u = vc(u, i.name)), p = null, i.type) {
|
|
@@ -3205,9 +3205,9 @@ function oi(e, t) {
|
|
|
3205
3205
|
default:
|
|
3206
3206
|
continue;
|
|
3207
3207
|
}
|
|
3208
|
-
h > 1 && (u.key = v),
|
|
3208
|
+
h > 1 && (u.key = v), s.push(o(i.name, u, p));
|
|
3209
3209
|
}
|
|
3210
|
-
return
|
|
3210
|
+
return s.length === 1 ? s[0] : s;
|
|
3211
3211
|
}
|
|
3212
3212
|
function gc(e) {
|
|
3213
3213
|
return nr.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && nr.isCustomComponent(e.name, e.attribs);
|
|
@@ -3524,7 +3524,7 @@ function Rc(e) {
|
|
|
3524
3524
|
var t = "" + e, r = Ac.exec(t);
|
|
3525
3525
|
if (!r)
|
|
3526
3526
|
return t;
|
|
3527
|
-
var n, o = "", a = 0,
|
|
3527
|
+
var n, o = "", a = 0, s = 0;
|
|
3528
3528
|
for (a = r.index; a < t.length; a++) {
|
|
3529
3529
|
switch (t.charCodeAt(a)) {
|
|
3530
3530
|
case 34:
|
|
@@ -3545,9 +3545,9 @@ function Rc(e) {
|
|
|
3545
3545
|
default:
|
|
3546
3546
|
continue;
|
|
3547
3547
|
}
|
|
3548
|
-
|
|
3548
|
+
s !== a && (o += t.substring(s, a)), s = a + 1, o += n;
|
|
3549
3549
|
}
|
|
3550
|
-
return
|
|
3550
|
+
return s !== a ? o + t.substring(s, a) : o;
|
|
3551
3551
|
}
|
|
3552
3552
|
const Pc = /* @__PURE__ */ cr(Oc);
|
|
3553
3553
|
function at(e, t, r) {
|
|
@@ -3594,33 +3594,33 @@ class Fc {
|
|
|
3594
3594
|
const n = {}, {
|
|
3595
3595
|
props: o
|
|
3596
3596
|
} = this;
|
|
3597
|
-
let a = t,
|
|
3598
|
-
return this.matchers.forEach((
|
|
3599
|
-
const c =
|
|
3600
|
-
if (o[
|
|
3597
|
+
let a = t, s = 0, i = null;
|
|
3598
|
+
return this.matchers.forEach((l) => {
|
|
3599
|
+
const c = l.asTag().toLowerCase(), d = this.getTagConfig(c);
|
|
3600
|
+
if (o[l.inverseName] || !this.isTagAllowed(c) || !this.canRenderChild(r, d))
|
|
3601
3601
|
return;
|
|
3602
3602
|
let u = "";
|
|
3603
|
-
for (; a && (i =
|
|
3603
|
+
for (; a && (i = l.match(a)); ) {
|
|
3604
3604
|
const {
|
|
3605
3605
|
index: p,
|
|
3606
3606
|
length: b,
|
|
3607
3607
|
match: v,
|
|
3608
3608
|
valid: h,
|
|
3609
3609
|
void: x,
|
|
3610
|
-
...
|
|
3611
|
-
} = i, C =
|
|
3612
|
-
p > 0 && (u += a.slice(0, p)), h ? (u += x ? `{{{${C}/}}}` : `{{{${C}}}}${v}{{{/${C}}}}`, this.keyIndex += 1,
|
|
3610
|
+
...w
|
|
3611
|
+
} = i, C = l.propName + String(s);
|
|
3612
|
+
p > 0 && (u += a.slice(0, p)), h ? (u += x ? `{{{${C}/}}}` : `{{{${C}}}}${v}{{{/${C}}}}`, this.keyIndex += 1, s += 1, n[C] = {
|
|
3613
3613
|
children: v,
|
|
3614
|
-
matcher:
|
|
3614
|
+
matcher: l,
|
|
3615
3615
|
props: {
|
|
3616
3616
|
...o,
|
|
3617
|
-
...
|
|
3617
|
+
...w,
|
|
3618
3618
|
key: this.keyIndex
|
|
3619
3619
|
}
|
|
3620
|
-
}) : u += v,
|
|
3620
|
+
}) : u += v, l.greedy ? (a = u + a.slice(p + b), u = "") : a = a.slice(p + (b || v.length));
|
|
3621
3621
|
}
|
|
3622
|
-
|
|
3623
|
-
}),
|
|
3622
|
+
l.greedy || (a = u + a);
|
|
3623
|
+
}), s === 0 ? t : this.replaceTokens(a, n);
|
|
3624
3624
|
}
|
|
3625
3625
|
/**
|
|
3626
3626
|
* Determine whether the child can be rendered within the parent.
|
|
@@ -3657,13 +3657,13 @@ class Fc {
|
|
|
3657
3657
|
const o = (typeof global < "u" && global.INTERWEAVE_SSR_POLYFILL || $c)();
|
|
3658
3658
|
if (!o)
|
|
3659
3659
|
return;
|
|
3660
|
-
const a = (r = this.props.containerTagName) !== null && r !== void 0 ? r : "body",
|
|
3660
|
+
const a = (r = this.props.containerTagName) !== null && r !== void 0 ? r : "body", s = a === "body" || a === "fragment" ? o.body : o.createElement(a);
|
|
3661
3661
|
if (t.match(Dc)) {
|
|
3662
3662
|
if (process.env.NODE_ENV !== "production")
|
|
3663
3663
|
throw new Error("HTML documents as Interweave content are not supported.");
|
|
3664
3664
|
} else
|
|
3665
|
-
|
|
3666
|
-
return
|
|
3665
|
+
s.innerHTML = this.convertLineBreaks(this.props.escapeHtml ? Pc(t) : t);
|
|
3666
|
+
return s;
|
|
3667
3667
|
}
|
|
3668
3668
|
/**
|
|
3669
3669
|
* Convert an elements attribute map to an object map.
|
|
@@ -3676,13 +3676,13 @@ class Fc {
|
|
|
3676
3676
|
let o = 0;
|
|
3677
3677
|
return t.nodeType !== qo || !t.attributes || ([...t.attributes].forEach((a) => {
|
|
3678
3678
|
const {
|
|
3679
|
-
name:
|
|
3679
|
+
name: s,
|
|
3680
3680
|
value: i
|
|
3681
|
-
} = a,
|
|
3682
|
-
if (!this.isSafe(t) || !
|
|
3681
|
+
} = a, l = s.toLowerCase(), c = zo[l] || zo[s];
|
|
3682
|
+
if (!this.isSafe(t) || !l.match(Mc) && (!r && (!c || c === Lc) || l.startsWith("on") || i.replace(/(\s|\0|�([9AD]);)/, "").match(/(javascript|vbscript|livescript|xss):/i)))
|
|
3683
3683
|
return;
|
|
3684
|
-
let d =
|
|
3685
|
-
c === At ? d = !0 : c === Dt ? d = Number.parseFloat(String(d)) : c !== li && (d = String(d)), n[Sc[
|
|
3684
|
+
let d = l === "style" ? this.extractStyleAttribute(t) : i;
|
|
3685
|
+
c === At ? d = !0 : c === Dt ? d = Number.parseFloat(String(d)) : c !== li && (d = String(d)), n[Sc[l] || l] = this.applyAttributeFilters(l, d), o += 1;
|
|
3686
3686
|
}), o === 0) ? null : n;
|
|
3687
3687
|
}
|
|
3688
3688
|
/**
|
|
@@ -3692,7 +3692,7 @@ class Fc {
|
|
|
3692
3692
|
const r = {};
|
|
3693
3693
|
return Array.from(t.style).forEach((n) => {
|
|
3694
3694
|
const o = t.style[n];
|
|
3695
|
-
(typeof o == "string" || typeof o == "number") && (r[n.replace(/-([a-z])/g, (a,
|
|
3695
|
+
(typeof o == "string" || typeof o == "number") && (r[n.replace(/-([a-z])/g, (a, s) => String(s).toUpperCase())] = o);
|
|
3696
3696
|
}), r;
|
|
3697
3697
|
}
|
|
3698
3698
|
/**
|
|
@@ -3751,27 +3751,27 @@ class Fc {
|
|
|
3751
3751
|
noHtml: n,
|
|
3752
3752
|
noHtmlExceptMatchers: o,
|
|
3753
3753
|
allowElements: a,
|
|
3754
|
-
transform:
|
|
3754
|
+
transform: s,
|
|
3755
3755
|
transformOnlyAllowList: i
|
|
3756
3756
|
} = this.props;
|
|
3757
|
-
let
|
|
3757
|
+
let l = [], c = "";
|
|
3758
3758
|
return [...t.childNodes].forEach((d) => {
|
|
3759
3759
|
if (d.nodeType === qo) {
|
|
3760
3760
|
const p = d.nodeName.toLowerCase(), b = this.getTagConfig(p);
|
|
3761
|
-
c && (
|
|
3761
|
+
c && (l.push(c), c = "");
|
|
3762
3762
|
const v = this.applyNodeFilters(p, d);
|
|
3763
3763
|
if (!v)
|
|
3764
3764
|
return;
|
|
3765
3765
|
let h;
|
|
3766
|
-
if (
|
|
3766
|
+
if (s && !(i && !this.isTagAllowed(p))) {
|
|
3767
3767
|
this.keyIndex += 1;
|
|
3768
3768
|
const x = this.keyIndex;
|
|
3769
3769
|
h = this.parseNode(v, b);
|
|
3770
|
-
const
|
|
3771
|
-
if (
|
|
3770
|
+
const w = s(v, h, b);
|
|
3771
|
+
if (w === null)
|
|
3772
3772
|
return;
|
|
3773
|
-
if (typeof
|
|
3774
|
-
|
|
3773
|
+
if (typeof w < "u") {
|
|
3774
|
+
l.push(/* @__PURE__ */ Ve.cloneElement(w, {
|
|
3775
3775
|
key: x
|
|
3776
3776
|
}));
|
|
3777
3777
|
return;
|
|
@@ -3783,23 +3783,23 @@ class Fc {
|
|
|
3783
3783
|
if (!(n || o && p !== "br") && this.isTagAllowed(p) && (a || this.canRenderChild(r, b))) {
|
|
3784
3784
|
var u;
|
|
3785
3785
|
this.keyIndex += 1;
|
|
3786
|
-
const x = this.extractAttributes(v),
|
|
3786
|
+
const x = this.extractAttributes(v), w = {
|
|
3787
3787
|
tagName: p
|
|
3788
3788
|
};
|
|
3789
|
-
x && (
|
|
3790
|
-
...
|
|
3789
|
+
x && (w.attributes = x), b.void && (w.selfClose = b.void), l.push(/* @__PURE__ */ Ve.createElement(ci, {
|
|
3790
|
+
...w,
|
|
3791
3791
|
key: this.keyIndex
|
|
3792
3792
|
}, (u = h) !== null && u !== void 0 ? u : this.parseNode(v, b)));
|
|
3793
3793
|
} else
|
|
3794
|
-
|
|
3794
|
+
l = [...l, ...this.parseNode(v, b.tagName ? b : r)];
|
|
3795
3795
|
} else if (d.nodeType === Nc) {
|
|
3796
3796
|
const p = n && !o ? d.textContent : (
|
|
3797
3797
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
3798
3798
|
this.applyMatchers(d.textContent || "", r)
|
|
3799
3799
|
);
|
|
3800
|
-
Array.isArray(p) ?
|
|
3800
|
+
Array.isArray(p) ? l = [...l, ...p] : c += p;
|
|
3801
3801
|
}
|
|
3802
|
-
}), c &&
|
|
3802
|
+
}), c && l.push(c), l;
|
|
3803
3803
|
}
|
|
3804
3804
|
/**
|
|
3805
3805
|
* Deconstruct the string into an array, by replacing custom tokens with React elements,
|
|
@@ -3811,10 +3811,10 @@ class Fc {
|
|
|
3811
3811
|
const n = [];
|
|
3812
3812
|
let o = t, a = null;
|
|
3813
3813
|
for (; a = o.match(jc); ) {
|
|
3814
|
-
const [
|
|
3814
|
+
const [s, i] = a, l = a.index, c = s.includes("/");
|
|
3815
3815
|
if (process.env.NODE_ENV !== "production" && !r[i])
|
|
3816
3816
|
throw new Error(`Token "${i}" found but no matching element to replace with.`);
|
|
3817
|
-
|
|
3817
|
+
l > 0 && (n.push(o.slice(0, l)), o = o.slice(l));
|
|
3818
3818
|
const {
|
|
3819
3819
|
children: d,
|
|
3820
3820
|
matcher: u,
|
|
@@ -3822,12 +3822,12 @@ class Fc {
|
|
|
3822
3822
|
} = r[i];
|
|
3823
3823
|
let b;
|
|
3824
3824
|
if (c)
|
|
3825
|
-
b =
|
|
3825
|
+
b = s.length, n.push(u.createElement(d, p));
|
|
3826
3826
|
else {
|
|
3827
3827
|
const v = o.match(new RegExp(`{{{/${i}}}}`));
|
|
3828
3828
|
if (process.env.NODE_ENV !== "production" && !v)
|
|
3829
3829
|
throw new Error(`Closing token missing for interpolated element "${i}".`);
|
|
3830
|
-
b = v.index + v[0].length, n.push(u.createElement(this.replaceTokens(o.slice(
|
|
3830
|
+
b = v.index + v[0].length, n.push(u.createElement(this.replaceTokens(o.slice(s.length, v.index), r), p));
|
|
3831
3831
|
}
|
|
3832
3832
|
o = o.slice(b);
|
|
3833
3833
|
}
|
|
@@ -3841,11 +3841,11 @@ function Bc(e) {
|
|
|
3841
3841
|
className: n,
|
|
3842
3842
|
containerTagName: o,
|
|
3843
3843
|
content: a,
|
|
3844
|
-
emptyContent:
|
|
3844
|
+
emptyContent: s,
|
|
3845
3845
|
parsedContent: i,
|
|
3846
|
-
tagName:
|
|
3846
|
+
tagName: l,
|
|
3847
3847
|
noWrap: c
|
|
3848
|
-
} = e, d = (t = o ??
|
|
3848
|
+
} = e, d = (t = o ?? l) !== null && t !== void 0 ? t : "span", u = d === "fragment" ? !0 : c;
|
|
3849
3849
|
let p;
|
|
3850
3850
|
if (i)
|
|
3851
3851
|
p = i;
|
|
@@ -3853,7 +3853,7 @@ function Bc(e) {
|
|
|
3853
3853
|
const b = new Fc(a ?? "", e).parse();
|
|
3854
3854
|
b.length > 0 && (p = b);
|
|
3855
3855
|
}
|
|
3856
|
-
return p || (p =
|
|
3856
|
+
return p || (p = s), u ? /* @__PURE__ */ Ve.createElement(Ve.Fragment, null, p) : /* @__PURE__ */ Ve.createElement(ci, {
|
|
3857
3857
|
attributes: r,
|
|
3858
3858
|
className: n,
|
|
3859
3859
|
tagName: d
|
|
@@ -4041,12 +4041,12 @@ function Gc(e) {
|
|
|
4041
4041
|
function Xc(e, t) {
|
|
4042
4042
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4043
4043
|
if (r != null) {
|
|
4044
|
-
var n = [], o = !0, a = !1,
|
|
4044
|
+
var n = [], o = !0, a = !1, s, i;
|
|
4045
4045
|
try {
|
|
4046
|
-
for (r = r.call(e); !(o = (
|
|
4046
|
+
for (r = r.call(e); !(o = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); o = !0)
|
|
4047
4047
|
;
|
|
4048
|
-
} catch (
|
|
4049
|
-
a = !0, i =
|
|
4048
|
+
} catch (l) {
|
|
4049
|
+
a = !0, i = l;
|
|
4050
4050
|
} finally {
|
|
4051
4051
|
try {
|
|
4052
4052
|
!o && r.return != null && r.return();
|
|
@@ -4084,7 +4084,7 @@ function Kc() {
|
|
|
4084
4084
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4085
4085
|
}
|
|
4086
4086
|
var Qc = /* @__PURE__ */ Cr(function e(t) {
|
|
4087
|
-
var r = this, n = t.expanded, o = n === void 0 ? [] : n, a = t.allowMultipleExpanded,
|
|
4087
|
+
var r = this, n = t.expanded, o = n === void 0 ? [] : n, a = t.allowMultipleExpanded, s = a === void 0 ? !1 : a, i = t.allowZeroExpanded, l = i === void 0 ? !1 : i;
|
|
4088
4088
|
xr(this, e), xe(this, "expanded", void 0), xe(this, "allowMultipleExpanded", void 0), xe(this, "allowZeroExpanded", void 0), xe(this, "toggleExpanded", function(c) {
|
|
4089
4089
|
if (r.isItemDisabled(c))
|
|
4090
4090
|
return r;
|
|
@@ -4134,22 +4134,22 @@ var Qc = /* @__PURE__ */ Cr(function e(t) {
|
|
|
4134
4134
|
allowMultipleExpanded: r.allowMultipleExpanded,
|
|
4135
4135
|
allowZeroExpanded: r.allowZeroExpanded
|
|
4136
4136
|
}, c));
|
|
4137
|
-
}), this.expanded = o, this.allowMultipleExpanded =
|
|
4137
|
+
}), this.expanded = o, this.allowMultipleExpanded = s, this.allowZeroExpanded = l;
|
|
4138
4138
|
}), pi = /* @__PURE__ */ lr(null), hi = /* @__PURE__ */ function(e) {
|
|
4139
4139
|
zn(r, e);
|
|
4140
4140
|
var t = qn(r);
|
|
4141
4141
|
function r() {
|
|
4142
4142
|
var n;
|
|
4143
4143
|
xr(this, r);
|
|
4144
|
-
for (var o = arguments.length, a = new Array(o),
|
|
4145
|
-
a[
|
|
4144
|
+
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
4145
|
+
a[s] = arguments[s];
|
|
4146
4146
|
return n = t.call.apply(t, [this].concat(a)), xe(Xe(n), "state", new Qc({
|
|
4147
4147
|
expanded: n.props.preExpanded,
|
|
4148
4148
|
allowMultipleExpanded: n.props.allowMultipleExpanded,
|
|
4149
4149
|
allowZeroExpanded: n.props.allowZeroExpanded
|
|
4150
4150
|
})), xe(Xe(n), "toggleExpanded", function(i) {
|
|
4151
|
-
n.setState(function(
|
|
4152
|
-
return
|
|
4151
|
+
n.setState(function(l) {
|
|
4152
|
+
return l.toggleExpanded(i);
|
|
4153
4153
|
}, function() {
|
|
4154
4154
|
n.props.onChange && n.props.onChange(n.state.expanded);
|
|
4155
4155
|
});
|
|
@@ -4157,21 +4157,21 @@ var Qc = /* @__PURE__ */ Cr(function e(t) {
|
|
|
4157
4157
|
return n.state.isItemDisabled(i);
|
|
4158
4158
|
}), xe(Xe(n), "isItemExpanded", function(i) {
|
|
4159
4159
|
return n.state.isItemExpanded(i);
|
|
4160
|
-
}), xe(Xe(n), "getPanelAttributes", function(i,
|
|
4161
|
-
return n.state.getPanelAttributes(i,
|
|
4160
|
+
}), xe(Xe(n), "getPanelAttributes", function(i, l) {
|
|
4161
|
+
return n.state.getPanelAttributes(i, l);
|
|
4162
4162
|
}), xe(Xe(n), "getHeadingAttributes", function() {
|
|
4163
4163
|
return n.state.getHeadingAttributes();
|
|
4164
|
-
}), xe(Xe(n), "getButtonAttributes", function(i,
|
|
4165
|
-
return n.state.getButtonAttributes(i,
|
|
4164
|
+
}), xe(Xe(n), "getButtonAttributes", function(i, l) {
|
|
4165
|
+
return n.state.getButtonAttributes(i, l);
|
|
4166
4166
|
}), n;
|
|
4167
4167
|
}
|
|
4168
4168
|
return Cr(r, [{
|
|
4169
4169
|
key: "render",
|
|
4170
4170
|
value: function() {
|
|
4171
|
-
var o = this.state, a = o.allowZeroExpanded,
|
|
4171
|
+
var o = this.state, a = o.allowZeroExpanded, s = o.allowMultipleExpanded;
|
|
4172
4172
|
return /* @__PURE__ */ ke(pi.Provider, {
|
|
4173
4173
|
value: {
|
|
4174
|
-
allowMultipleExpanded:
|
|
4174
|
+
allowMultipleExpanded: s,
|
|
4175
4175
|
allowZeroExpanded: a,
|
|
4176
4176
|
toggleExpanded: this.toggleExpanded,
|
|
4177
4177
|
isItemDisabled: this.isItemDisabled,
|
|
@@ -4194,8 +4194,8 @@ var vi = /* @__PURE__ */ function(e) {
|
|
|
4194
4194
|
function r() {
|
|
4195
4195
|
var n;
|
|
4196
4196
|
xr(this, r);
|
|
4197
|
-
for (var o = arguments.length, a = new Array(o),
|
|
4198
|
-
a[
|
|
4197
|
+
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
4198
|
+
a[s] = arguments[s];
|
|
4199
4199
|
return n = t.call.apply(t, [this].concat(a)), xe(Xe(n), "renderChildren", function(i) {
|
|
4200
4200
|
return i ? n.props.children(i) : null;
|
|
4201
4201
|
}), n;
|
|
@@ -4207,16 +4207,16 @@ var vi = /* @__PURE__ */ function(e) {
|
|
|
4207
4207
|
}
|
|
4208
4208
|
}]), r;
|
|
4209
4209
|
}(Sn), eu = ["className", "allowMultipleExpanded", "allowZeroExpanded", "onChange", "preExpanded"], tu = function(t) {
|
|
4210
|
-
var r = t.className, n = r === void 0 ? "accordion" : r, o = t.allowMultipleExpanded, a = t.allowZeroExpanded,
|
|
4210
|
+
var r = t.className, n = r === void 0 ? "accordion" : r, o = t.allowMultipleExpanded, a = t.allowZeroExpanded, s = t.onChange, i = t.preExpanded, l = Tr(t, eu);
|
|
4211
4211
|
return /* @__PURE__ */ ke(hi, {
|
|
4212
4212
|
preExpanded: i,
|
|
4213
4213
|
allowMultipleExpanded: o,
|
|
4214
4214
|
allowZeroExpanded: a,
|
|
4215
|
-
onChange:
|
|
4215
|
+
onChange: s
|
|
4216
4216
|
}, /* @__PURE__ */ ke("div", rt({
|
|
4217
4217
|
"data-accordion-component": "Accordion",
|
|
4218
4218
|
className: n
|
|
4219
|
-
},
|
|
4219
|
+
}, l)));
|
|
4220
4220
|
}, xn;
|
|
4221
4221
|
(function(e) {
|
|
4222
4222
|
e.Accordion = "Accordion", e.AccordionItem = "AccordionItem", e.AccordionItemButton = "AccordionItemButton", e.AccordionItemHeading = "AccordionItemHeading", e.AccordionItemPanel = "AccordionItemPanel";
|
|
@@ -4231,7 +4231,7 @@ function Ht(e) {
|
|
|
4231
4231
|
return e === "" || ou.test(e) ? (console.error('uuid must be a valid HTML5 id but was given "'.concat(e, '", ASCII whitespaces are forbidden')), !1) : !0;
|
|
4232
4232
|
}
|
|
4233
4233
|
var yi = /* @__PURE__ */ lr(null), au = function(t) {
|
|
4234
|
-
var r = t.children, n = t.uuid, o = t.accordionContext, a = t.dangerouslySetExpanded,
|
|
4234
|
+
var r = t.children, n = t.uuid, o = t.accordionContext, a = t.dangerouslySetExpanded, s = function() {
|
|
4235
4235
|
o.toggleExpanded(n);
|
|
4236
4236
|
}, i = function(c) {
|
|
4237
4237
|
var d = a ?? c.isItemExpanded(n), u = c.isItemDisabled(n), p = c.getPanelAttributes(n, a), b = c.getHeadingAttributes(n), v = c.getButtonAttributes(n, a);
|
|
@@ -4240,7 +4240,7 @@ var yi = /* @__PURE__ */ lr(null), au = function(t) {
|
|
|
4240
4240
|
uuid: n,
|
|
4241
4241
|
expanded: d,
|
|
4242
4242
|
disabled: u,
|
|
4243
|
-
toggleExpanded:
|
|
4243
|
+
toggleExpanded: s,
|
|
4244
4244
|
panelAttributes: p,
|
|
4245
4245
|
headingAttributes: b,
|
|
4246
4246
|
buttonAttributes: v
|
|
@@ -4260,8 +4260,8 @@ var yi = /* @__PURE__ */ lr(null), au = function(t) {
|
|
|
4260
4260
|
};
|
|
4261
4261
|
return /* @__PURE__ */ ke(yi.Consumer, null, n);
|
|
4262
4262
|
}, su = ["uuid", "dangerouslySetExpanded", "className", "activeClassName"], gi = function(t) {
|
|
4263
|
-
var r = t.uuid, n = t.dangerouslySetExpanded, o = t.className, a = o === void 0 ? "accordion__item" : o,
|
|
4264
|
-
var h = v.expanded, x = h &&
|
|
4263
|
+
var r = t.uuid, n = t.dangerouslySetExpanded, o = t.className, a = o === void 0 ? "accordion__item" : o, s = t.activeClassName, i = Tr(t, su), l = ge(nu()), c = Vc(l, 1), d = c[0], u = r ?? d, p = function(v) {
|
|
4264
|
+
var h = v.expanded, x = h && s ? s : a;
|
|
4265
4265
|
return /* @__PURE__ */ ke("div", rt({
|
|
4266
4266
|
"data-accordion-component": "AccordionItem",
|
|
4267
4267
|
className: x
|
|
@@ -4313,26 +4313,26 @@ var it = {
|
|
|
4313
4313
|
LEFT: "ArrowLeft",
|
|
4314
4314
|
RIGHT: "ArrowRight"
|
|
4315
4315
|
}, du = ["toggleExpanded", "className"], pu = function(t) {
|
|
4316
|
-
var r = t.toggleExpanded, n = t.className, o = n === void 0 ? "accordion__button" : n, a = Tr(t, du),
|
|
4317
|
-
var c =
|
|
4318
|
-
if ((c === it.ENTER || c === it.SPACE || c === it.SPACE_DEPRECATED) && (
|
|
4316
|
+
var r = t.toggleExpanded, n = t.className, o = n === void 0 ? "accordion__button" : n, a = Tr(t, du), s = function(l) {
|
|
4317
|
+
var c = l.key;
|
|
4318
|
+
if ((c === it.ENTER || c === it.SPACE || c === it.SPACE_DEPRECATED) && (l.preventDefault(), r()), l.target instanceof HTMLElement)
|
|
4319
4319
|
switch (c) {
|
|
4320
4320
|
case it.HOME: {
|
|
4321
|
-
|
|
4321
|
+
l.preventDefault(), lu(l.target);
|
|
4322
4322
|
break;
|
|
4323
4323
|
}
|
|
4324
4324
|
case it.END: {
|
|
4325
|
-
|
|
4325
|
+
l.preventDefault(), cu(l.target);
|
|
4326
4326
|
break;
|
|
4327
4327
|
}
|
|
4328
4328
|
case it.LEFT:
|
|
4329
4329
|
case it.UP: {
|
|
4330
|
-
|
|
4330
|
+
l.preventDefault(), fu(l.target);
|
|
4331
4331
|
break;
|
|
4332
4332
|
}
|
|
4333
4333
|
case it.RIGHT:
|
|
4334
4334
|
case it.DOWN: {
|
|
4335
|
-
|
|
4335
|
+
l.preventDefault(), uu(l.target);
|
|
4336
4336
|
break;
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
@@ -4343,7 +4343,7 @@ var it = {
|
|
|
4343
4343
|
role: "button",
|
|
4344
4344
|
tabIndex: 0,
|
|
4345
4345
|
onClick: r,
|
|
4346
|
-
onKeyDown:
|
|
4346
|
+
onKeyDown: s,
|
|
4347
4347
|
"data-accordion-component": "AccordionItemButton"
|
|
4348
4348
|
}));
|
|
4349
4349
|
}, hu = function(t) {
|
|
@@ -4368,8 +4368,8 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
|
|
4368
4368
|
function r() {
|
|
4369
4369
|
var n;
|
|
4370
4370
|
xr(this, r);
|
|
4371
|
-
for (var o = arguments.length, a = new Array(o),
|
|
4372
|
-
a[
|
|
4371
|
+
for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
4372
|
+
a[s] = arguments[s];
|
|
4373
4373
|
return n = t.call.apply(t, [this].concat(a)), xe(Xe(n), "ref", void 0), xe(Xe(n), "setRef", function(i) {
|
|
4374
4374
|
n.ref = i;
|
|
4375
4375
|
}), n;
|
|
@@ -4412,7 +4412,7 @@ var Ei = function(t) {
|
|
|
4412
4412
|
};
|
|
4413
4413
|
Ei.displayName = mi.AccordionItemHeading;
|
|
4414
4414
|
var yu = ["className", "region", "id"], gu = function(t) {
|
|
4415
|
-
var r = t.className, n = r === void 0 ? "accordion__panel" : r, o = t.region, a = t.id,
|
|
4415
|
+
var r = t.className, n = r === void 0 ? "accordion__panel" : r, o = t.region, a = t.id, s = Tr(t, yu), i = function(c) {
|
|
4416
4416
|
var d = c.panelAttributes;
|
|
4417
4417
|
a && Ht(a);
|
|
4418
4418
|
var u = bn(bn({}, d), {}, {
|
|
@@ -4421,7 +4421,7 @@ var yu = ["className", "region", "id"], gu = function(t) {
|
|
|
4421
4421
|
return /* @__PURE__ */ ke("div", rt({
|
|
4422
4422
|
"data-accordion-component": "AccordionItemPanel",
|
|
4423
4423
|
className: n
|
|
4424
|
-
},
|
|
4424
|
+
}, s, u, {
|
|
4425
4425
|
role: o ? "region" : void 0
|
|
4426
4426
|
}));
|
|
4427
4427
|
};
|
|
@@ -4440,28 +4440,28 @@ function bu() {
|
|
|
4440
4440
|
if (Yo)
|
|
4441
4441
|
return he;
|
|
4442
4442
|
Yo = 1;
|
|
4443
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114,
|
|
4444
|
-
function _(
|
|
4445
|
-
if (typeof
|
|
4446
|
-
var Y =
|
|
4443
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
4444
|
+
function _(E) {
|
|
4445
|
+
if (typeof E == "object" && E !== null) {
|
|
4446
|
+
var Y = E.$$typeof;
|
|
4447
4447
|
switch (Y) {
|
|
4448
4448
|
case t:
|
|
4449
|
-
switch (
|
|
4450
|
-
case
|
|
4449
|
+
switch (E = E.type, E) {
|
|
4450
|
+
case l:
|
|
4451
4451
|
case c:
|
|
4452
4452
|
case n:
|
|
4453
4453
|
case a:
|
|
4454
4454
|
case o:
|
|
4455
4455
|
case u:
|
|
4456
|
-
return
|
|
4456
|
+
return E;
|
|
4457
4457
|
default:
|
|
4458
|
-
switch (
|
|
4458
|
+
switch (E = E && E.$$typeof, E) {
|
|
4459
4459
|
case i:
|
|
4460
4460
|
case d:
|
|
4461
4461
|
case v:
|
|
4462
4462
|
case b:
|
|
4463
|
-
case
|
|
4464
|
-
return
|
|
4463
|
+
case s:
|
|
4464
|
+
return E;
|
|
4465
4465
|
default:
|
|
4466
4466
|
return Y;
|
|
4467
4467
|
}
|
|
@@ -4471,35 +4471,35 @@ function bu() {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
}
|
|
4474
|
-
function y(
|
|
4475
|
-
return _(
|
|
4474
|
+
function y(E) {
|
|
4475
|
+
return _(E) === c;
|
|
4476
4476
|
}
|
|
4477
|
-
return he.AsyncMode =
|
|
4478
|
-
return y(
|
|
4479
|
-
}, he.isConcurrentMode = y, he.isContextConsumer = function(
|
|
4480
|
-
return _(
|
|
4481
|
-
}, he.isContextProvider = function(
|
|
4482
|
-
return _(
|
|
4483
|
-
}, he.isElement = function(
|
|
4484
|
-
return typeof
|
|
4485
|
-
}, he.isForwardRef = function(
|
|
4486
|
-
return _(
|
|
4487
|
-
}, he.isFragment = function(
|
|
4488
|
-
return _(
|
|
4489
|
-
}, he.isLazy = function(
|
|
4490
|
-
return _(
|
|
4491
|
-
}, he.isMemo = function(
|
|
4492
|
-
return _(
|
|
4493
|
-
}, he.isPortal = function(
|
|
4494
|
-
return _(
|
|
4495
|
-
}, he.isProfiler = function(
|
|
4496
|
-
return _(
|
|
4497
|
-
}, he.isStrictMode = function(
|
|
4498
|
-
return _(
|
|
4499
|
-
}, he.isSuspense = function(
|
|
4500
|
-
return _(
|
|
4501
|
-
}, he.isValidElementType = function(
|
|
4502
|
-
return typeof
|
|
4477
|
+
return he.AsyncMode = l, he.ConcurrentMode = c, he.ContextConsumer = i, he.ContextProvider = s, he.Element = t, he.ForwardRef = d, he.Fragment = n, he.Lazy = v, he.Memo = b, he.Portal = r, he.Profiler = a, he.StrictMode = o, he.Suspense = u, he.isAsyncMode = function(E) {
|
|
4478
|
+
return y(E) || _(E) === l;
|
|
4479
|
+
}, he.isConcurrentMode = y, he.isContextConsumer = function(E) {
|
|
4480
|
+
return _(E) === i;
|
|
4481
|
+
}, he.isContextProvider = function(E) {
|
|
4482
|
+
return _(E) === s;
|
|
4483
|
+
}, he.isElement = function(E) {
|
|
4484
|
+
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
4485
|
+
}, he.isForwardRef = function(E) {
|
|
4486
|
+
return _(E) === d;
|
|
4487
|
+
}, he.isFragment = function(E) {
|
|
4488
|
+
return _(E) === n;
|
|
4489
|
+
}, he.isLazy = function(E) {
|
|
4490
|
+
return _(E) === v;
|
|
4491
|
+
}, he.isMemo = function(E) {
|
|
4492
|
+
return _(E) === b;
|
|
4493
|
+
}, he.isPortal = function(E) {
|
|
4494
|
+
return _(E) === r;
|
|
4495
|
+
}, he.isProfiler = function(E) {
|
|
4496
|
+
return _(E) === a;
|
|
4497
|
+
}, he.isStrictMode = function(E) {
|
|
4498
|
+
return _(E) === o;
|
|
4499
|
+
}, he.isSuspense = function(E) {
|
|
4500
|
+
return _(E) === u;
|
|
4501
|
+
}, he.isValidElementType = function(E) {
|
|
4502
|
+
return typeof E == "string" || typeof E == "function" || E === n || E === c || E === a || E === o || E === u || E === p || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === b || E.$$typeof === s || E.$$typeof === i || E.$$typeof === d || E.$$typeof === x || E.$$typeof === w || E.$$typeof === C || E.$$typeof === h);
|
|
4503
4503
|
}, he.typeOf = _, he;
|
|
4504
4504
|
}
|
|
4505
4505
|
var ve = {};
|
|
@@ -4514,10 +4514,10 @@ var ve = {};
|
|
|
4514
4514
|
var Zo;
|
|
4515
4515
|
function wu() {
|
|
4516
4516
|
return Zo || (Zo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4517
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114,
|
|
4517
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
4518
4518
|
function _(g) {
|
|
4519
4519
|
return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4520
|
-
g === n || g === c || g === a || g === o || g === u || g === p || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === b || g.$$typeof ===
|
|
4520
|
+
g === n || g === c || g === a || g === o || g === u || g === p || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === b || g.$$typeof === s || g.$$typeof === i || g.$$typeof === d || g.$$typeof === x || g.$$typeof === w || g.$$typeof === C || g.$$typeof === h);
|
|
4521
4521
|
}
|
|
4522
4522
|
function y(g) {
|
|
4523
4523
|
if (typeof g == "object" && g !== null) {
|
|
@@ -4526,7 +4526,7 @@ function wu() {
|
|
|
4526
4526
|
case t:
|
|
4527
4527
|
var re = g.type;
|
|
4528
4528
|
switch (re) {
|
|
4529
|
-
case
|
|
4529
|
+
case l:
|
|
4530
4530
|
case c:
|
|
4531
4531
|
case n:
|
|
4532
4532
|
case a:
|
|
@@ -4540,7 +4540,7 @@ function wu() {
|
|
|
4540
4540
|
case d:
|
|
4541
4541
|
case v:
|
|
4542
4542
|
case b:
|
|
4543
|
-
case
|
|
4543
|
+
case s:
|
|
4544
4544
|
return ne;
|
|
4545
4545
|
default:
|
|
4546
4546
|
return G;
|
|
@@ -4551,9 +4551,9 @@ function wu() {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
}
|
|
4553
4553
|
}
|
|
4554
|
-
var
|
|
4554
|
+
var E = l, Y = c, j = i, H = s, $ = t, Z = d, L = n, M = v, U = b, J = r, oe = a, K = o, we = u, Ae = !1;
|
|
4555
4555
|
function je(g) {
|
|
4556
|
-
return Ae || (Ae = !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.")), T(g) || y(g) ===
|
|
4556
|
+
return Ae || (Ae = !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.")), T(g) || y(g) === l;
|
|
4557
4557
|
}
|
|
4558
4558
|
function T(g) {
|
|
4559
4559
|
return y(g) === c;
|
|
@@ -4562,7 +4562,7 @@ function wu() {
|
|
|
4562
4562
|
return y(g) === i;
|
|
4563
4563
|
}
|
|
4564
4564
|
function V(g) {
|
|
4565
|
-
return y(g) ===
|
|
4565
|
+
return y(g) === s;
|
|
4566
4566
|
}
|
|
4567
4567
|
function z(g) {
|
|
4568
4568
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
@@ -4591,7 +4591,7 @@ function wu() {
|
|
|
4591
4591
|
function N(g) {
|
|
4592
4592
|
return y(g) === u;
|
|
4593
4593
|
}
|
|
4594
|
-
ve.AsyncMode =
|
|
4594
|
+
ve.AsyncMode = E, ve.ConcurrentMode = Y, ve.ContextConsumer = j, ve.ContextProvider = H, ve.Element = $, ve.ForwardRef = Z, ve.Fragment = L, ve.Lazy = M, ve.Memo = U, ve.Portal = J, ve.Profiler = oe, ve.StrictMode = K, ve.Suspense = we, ve.isAsyncMode = je, ve.isConcurrentMode = T, ve.isContextConsumer = A, ve.isContextProvider = V, ve.isElement = z, ve.isForwardRef = B, ve.isFragment = ee, ve.isLazy = q, ve.isMemo = W, ve.isPortal = Q, ve.isProfiler = te, ve.isStrictMode = m, ve.isSuspense = N, ve.isValidElementType = _, ve.typeOf = y;
|
|
4595
4595
|
}()), ve;
|
|
4596
4596
|
}
|
|
4597
4597
|
var Go;
|
|
@@ -4621,12 +4621,12 @@ function Eu() {
|
|
|
4621
4621
|
var a = new String("abc");
|
|
4622
4622
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
4623
4623
|
return !1;
|
|
4624
|
-
for (var
|
|
4625
|
-
|
|
4626
|
-
var
|
|
4627
|
-
return
|
|
4624
|
+
for (var s = {}, i = 0; i < 10; i++)
|
|
4625
|
+
s["_" + String.fromCharCode(i)] = i;
|
|
4626
|
+
var l = Object.getOwnPropertyNames(s).map(function(d) {
|
|
4627
|
+
return s[d];
|
|
4628
4628
|
});
|
|
4629
|
-
if (
|
|
4629
|
+
if (l.join("") !== "0123456789")
|
|
4630
4630
|
return !1;
|
|
4631
4631
|
var c = {};
|
|
4632
4632
|
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
@@ -4636,18 +4636,18 @@ function Eu() {
|
|
|
4636
4636
|
return !1;
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
return tn = o() ? Object.assign : function(a,
|
|
4640
|
-
for (var i,
|
|
4639
|
+
return tn = o() ? Object.assign : function(a, s) {
|
|
4640
|
+
for (var i, l = n(a), c, d = 1; d < arguments.length; d++) {
|
|
4641
4641
|
i = Object(arguments[d]);
|
|
4642
4642
|
for (var u in i)
|
|
4643
|
-
t.call(i, u) && (
|
|
4643
|
+
t.call(i, u) && (l[u] = i[u]);
|
|
4644
4644
|
if (e) {
|
|
4645
4645
|
c = e(i);
|
|
4646
4646
|
for (var p = 0; p < c.length; p++)
|
|
4647
|
-
r.call(i, c[p]) && (
|
|
4647
|
+
r.call(i, c[p]) && (l[c[p]] = i[c[p]]);
|
|
4648
4648
|
}
|
|
4649
4649
|
}
|
|
4650
|
-
return
|
|
4650
|
+
return l;
|
|
4651
4651
|
}, tn;
|
|
4652
4652
|
}
|
|
4653
4653
|
var rn, Jo;
|
|
@@ -4672,15 +4672,15 @@ function xu() {
|
|
|
4672
4672
|
if (process.env.NODE_ENV !== "production") {
|
|
4673
4673
|
var t = Vn(), r = {}, n = Ci();
|
|
4674
4674
|
e = function(a) {
|
|
4675
|
-
var
|
|
4676
|
-
typeof console < "u" && console.error(
|
|
4675
|
+
var s = "Warning: " + a;
|
|
4676
|
+
typeof console < "u" && console.error(s);
|
|
4677
4677
|
try {
|
|
4678
|
-
throw new Error(
|
|
4678
|
+
throw new Error(s);
|
|
4679
4679
|
} catch {
|
|
4680
4680
|
}
|
|
4681
4681
|
};
|
|
4682
4682
|
}
|
|
4683
|
-
function o(a,
|
|
4683
|
+
function o(a, s, i, l, c) {
|
|
4684
4684
|
if (process.env.NODE_ENV !== "production") {
|
|
4685
4685
|
for (var d in a)
|
|
4686
4686
|
if (n(a, d)) {
|
|
@@ -4688,16 +4688,16 @@ function xu() {
|
|
|
4688
4688
|
try {
|
|
4689
4689
|
if (typeof a[d] != "function") {
|
|
4690
4690
|
var p = Error(
|
|
4691
|
-
(
|
|
4691
|
+
(l || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
4692
4692
|
);
|
|
4693
4693
|
throw p.name = "Invariant Violation", p;
|
|
4694
4694
|
}
|
|
4695
|
-
u = a[d](
|
|
4695
|
+
u = a[d](s, d, l, i, null, t);
|
|
4696
4696
|
} catch (v) {
|
|
4697
4697
|
u = v;
|
|
4698
4698
|
}
|
|
4699
4699
|
if (u && !(u instanceof Error) && e(
|
|
4700
|
-
(
|
|
4700
|
+
(l || "React class") + ": type specification of " + i + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
4701
4701
|
), u instanceof Error && !(u.message in r)) {
|
|
4702
4702
|
r[u.message] = !0;
|
|
4703
4703
|
var b = c ? c() : "";
|
|
@@ -4720,17 +4720,17 @@ function Cu() {
|
|
|
4720
4720
|
var e = xi(), t = Eu(), r = Vn(), n = Ci(), o = xu(), a = function() {
|
|
4721
4721
|
};
|
|
4722
4722
|
process.env.NODE_ENV !== "production" && (a = function(i) {
|
|
4723
|
-
var
|
|
4724
|
-
typeof console < "u" && console.error(
|
|
4723
|
+
var l = "Warning: " + i;
|
|
4724
|
+
typeof console < "u" && console.error(l);
|
|
4725
4725
|
try {
|
|
4726
|
-
throw new Error(
|
|
4726
|
+
throw new Error(l);
|
|
4727
4727
|
} catch {
|
|
4728
4728
|
}
|
|
4729
4729
|
});
|
|
4730
|
-
function
|
|
4730
|
+
function s() {
|
|
4731
4731
|
return null;
|
|
4732
4732
|
}
|
|
4733
|
-
return an = function(i,
|
|
4733
|
+
return an = function(i, l) {
|
|
4734
4734
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
4735
4735
|
function u(T) {
|
|
4736
4736
|
var A = T && (c && T[c] || T[d]);
|
|
@@ -4738,18 +4738,18 @@ function Cu() {
|
|
|
4738
4738
|
return A;
|
|
4739
4739
|
}
|
|
4740
4740
|
var p = "<<anonymous>>", b = {
|
|
4741
|
-
array:
|
|
4742
|
-
bigint:
|
|
4743
|
-
bool:
|
|
4744
|
-
func:
|
|
4745
|
-
number:
|
|
4746
|
-
object:
|
|
4747
|
-
string:
|
|
4748
|
-
symbol:
|
|
4741
|
+
array: w("array"),
|
|
4742
|
+
bigint: w("bigint"),
|
|
4743
|
+
bool: w("boolean"),
|
|
4744
|
+
func: w("function"),
|
|
4745
|
+
number: w("number"),
|
|
4746
|
+
object: w("object"),
|
|
4747
|
+
string: w("string"),
|
|
4748
|
+
symbol: w("symbol"),
|
|
4749
4749
|
any: C(),
|
|
4750
4750
|
arrayOf: _,
|
|
4751
4751
|
element: y(),
|
|
4752
|
-
elementType:
|
|
4752
|
+
elementType: E(),
|
|
4753
4753
|
instanceOf: Y,
|
|
4754
4754
|
node: Z(),
|
|
4755
4755
|
objectOf: H,
|
|
@@ -4770,7 +4770,7 @@ function Cu() {
|
|
|
4770
4770
|
var A = {}, V = 0;
|
|
4771
4771
|
function z(ee, q, W, Q, te, m, N) {
|
|
4772
4772
|
if (Q = Q || p, m = m || W, N !== r) {
|
|
4773
|
-
if (
|
|
4773
|
+
if (l) {
|
|
4774
4774
|
var g = new Error(
|
|
4775
4775
|
"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"
|
|
4776
4776
|
);
|
|
@@ -4788,7 +4788,7 @@ function Cu() {
|
|
|
4788
4788
|
var B = z.bind(null, !1);
|
|
4789
4789
|
return B.isRequired = z.bind(null, !0), B;
|
|
4790
4790
|
}
|
|
4791
|
-
function
|
|
4791
|
+
function w(T) {
|
|
4792
4792
|
function A(V, z, B, ee, q, W) {
|
|
4793
4793
|
var Q = V[z], te = K(Q);
|
|
4794
4794
|
if (te !== T) {
|
|
@@ -4803,7 +4803,7 @@ function Cu() {
|
|
|
4803
4803
|
return x(A);
|
|
4804
4804
|
}
|
|
4805
4805
|
function C() {
|
|
4806
|
-
return x(
|
|
4806
|
+
return x(s);
|
|
4807
4807
|
}
|
|
4808
4808
|
function _(T) {
|
|
4809
4809
|
function A(V, z, B, ee, q) {
|
|
@@ -4834,7 +4834,7 @@ function Cu() {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
return x(T);
|
|
4836
4836
|
}
|
|
4837
|
-
function
|
|
4837
|
+
function E() {
|
|
4838
4838
|
function T(A, V, z, B, ee) {
|
|
4839
4839
|
var q = A[V];
|
|
4840
4840
|
if (!e.isValidElementType(q)) {
|
|
@@ -4859,7 +4859,7 @@ function Cu() {
|
|
|
4859
4859
|
if (!Array.isArray(T))
|
|
4860
4860
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
4861
4861
|
"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])."
|
|
4862
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")),
|
|
4862
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
4863
4863
|
function A(V, z, B, ee, q) {
|
|
4864
4864
|
for (var W = V[z], Q = 0; Q < T.length; Q++)
|
|
4865
4865
|
if (v(W, T[Q]))
|
|
@@ -4891,13 +4891,13 @@ function Cu() {
|
|
|
4891
4891
|
}
|
|
4892
4892
|
function $(T) {
|
|
4893
4893
|
if (!Array.isArray(T))
|
|
4894
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
4894
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
4895
4895
|
for (var A = 0; A < T.length; A++) {
|
|
4896
4896
|
var V = T[A];
|
|
4897
4897
|
if (typeof V != "function")
|
|
4898
4898
|
return a(
|
|
4899
4899
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ae(V) + " at index " + A + "."
|
|
4900
|
-
),
|
|
4900
|
+
), s;
|
|
4901
4901
|
}
|
|
4902
4902
|
function z(B, ee, q, W, Q) {
|
|
4903
4903
|
for (var te = [], m = 0; m < T.length; m++) {
|
|
@@ -5045,7 +5045,7 @@ function Tu() {
|
|
|
5045
5045
|
function r() {
|
|
5046
5046
|
}
|
|
5047
5047
|
return r.resetWarningCache = t, sn = function() {
|
|
5048
|
-
function n(
|
|
5048
|
+
function n(s, i, l, c, d, u) {
|
|
5049
5049
|
if (u !== e) {
|
|
5050
5050
|
var p = new Error(
|
|
5051
5051
|
"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"
|
|
@@ -5125,16 +5125,16 @@ const Ti = {
|
|
|
5125
5125
|
minus: nf,
|
|
5126
5126
|
"filtered-text": ef,
|
|
5127
5127
|
"filter-dropdowns": tf
|
|
5128
|
-
}, Li = ({ display: e = null, base: t, alt: r = "", size: n, color: o, style: a, ...
|
|
5129
|
-
const i = Ti[e] || null,
|
|
5130
|
-
delete
|
|
5128
|
+
}, Li = ({ display: e = null, base: t, alt: r = "", size: n, color: o, style: a, ...s }) => {
|
|
5129
|
+
const i = Ti[e] || null, l = { ...s };
|
|
5130
|
+
delete l.className;
|
|
5131
5131
|
const c = {
|
|
5132
5132
|
...a,
|
|
5133
5133
|
color: o || null,
|
|
5134
5134
|
width: n ? n + "px" : null,
|
|
5135
5135
|
cursor: e === "move" ? "move" : "default"
|
|
5136
5136
|
};
|
|
5137
|
-
return /* @__PURE__ */ D(ba, { children: t ? /* @__PURE__ */ D(i, { title: r }) : /* @__PURE__ */ D("span", { className: `cove-icon${
|
|
5137
|
+
return /* @__PURE__ */ D(ba, { children: t ? /* @__PURE__ */ D(i, { title: r }) : /* @__PURE__ */ D("span", { className: `cove-icon${s.className ? " " + s.className : ""}`, style: c, ...l, children: /* @__PURE__ */ D(i, { title: r }) }) });
|
|
5138
5138
|
};
|
|
5139
5139
|
Li.propTypes = {
|
|
5140
5140
|
/* Define the icon to display */
|
|
@@ -5162,7 +5162,7 @@ function Wt(e) {
|
|
|
5162
5162
|
}
|
|
5163
5163
|
function ra(e, t, r) {
|
|
5164
5164
|
let { reference: n, floating: o } = e;
|
|
5165
|
-
const a = n.x + n.width / 2 - o.width / 2,
|
|
5165
|
+
const a = n.x + n.width / 2 - o.width / 2, s = n.y + n.height / 2 - o.height / 2, i = Wt(t), l = Wn(i), c = n[l] / 2 - o[l] / 2, d = i === "x";
|
|
5166
5166
|
let u;
|
|
5167
5167
|
switch (Et(t)) {
|
|
5168
5168
|
case "top":
|
|
@@ -5172,10 +5172,10 @@ function ra(e, t, r) {
|
|
|
5172
5172
|
u = { x: a, y: n.y + n.height };
|
|
5173
5173
|
break;
|
|
5174
5174
|
case "right":
|
|
5175
|
-
u = { x: n.x + n.width, y:
|
|
5175
|
+
u = { x: n.x + n.width, y: s };
|
|
5176
5176
|
break;
|
|
5177
5177
|
case "left":
|
|
5178
|
-
u = { x: n.x - o.width, y:
|
|
5178
|
+
u = { x: n.x - o.width, y: s };
|
|
5179
5179
|
break;
|
|
5180
5180
|
default:
|
|
5181
5181
|
u = { x: n.x, y: n.y };
|
|
@@ -5200,7 +5200,7 @@ function jt(e) {
|
|
|
5200
5200
|
async function _i(e, t) {
|
|
5201
5201
|
var r;
|
|
5202
5202
|
t === void 0 && (t = {});
|
|
5203
|
-
const { x: n, y: o, platform: a, rects:
|
|
5203
|
+
const { x: n, y: o, platform: a, rects: s, elements: i, strategy: l } = e, { boundary: c = "clippingAncestors", rootBoundary: d = "viewport", elementContext: u = "floating", altBoundary: p = !1, padding: b = 0 } = t, v = Si(b), h = i[p ? u === "floating" ? "reference" : "floating" : u], x = jt(await a.getClippingRect({ element: (r = await (a.isElement == null ? void 0 : a.isElement(h))) == null || r ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)), boundary: c, rootBoundary: d, strategy: l })), w = u === "floating" ? { ...s.floating, x: n, y: o } : s.reference, C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), _ = await (a.isElement == null ? void 0 : a.isElement(C)) && await (a.getScale == null ? void 0 : a.getScale(C)) || { x: 1, y: 1 }, y = jt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: w, offsetParent: C, strategy: l }) : w);
|
|
5204
5204
|
return { top: (x.top - y.top + v.top) / _.y, bottom: (y.bottom - x.bottom + v.bottom) / _.y, left: (x.left - y.left + v.left) / _.x, right: (y.right - x.right + v.right) / _.x };
|
|
5205
5205
|
}
|
|
5206
5206
|
const of = Math.min, af = Math.max;
|
|
@@ -5215,8 +5215,8 @@ function ir(e) {
|
|
|
5215
5215
|
function lf(e, t, r) {
|
|
5216
5216
|
r === void 0 && (r = !1);
|
|
5217
5217
|
const n = Vt(e), o = Wt(e), a = Wn(o);
|
|
5218
|
-
let
|
|
5219
|
-
return t.reference[a] > t.floating[a] && (
|
|
5218
|
+
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
5219
|
+
return t.reference[a] > t.floating[a] && (s = ir(s)), { main: s, cross: ir(s) };
|
|
5220
5220
|
}
|
|
5221
5221
|
const cf = { start: "end", end: "start" };
|
|
5222
5222
|
function ln(e) {
|
|
@@ -5225,10 +5225,10 @@ function ln(e) {
|
|
|
5225
5225
|
const uf = function(e) {
|
|
5226
5226
|
return e === void 0 && (e = {}), { name: "flip", options: e, async fn(t) {
|
|
5227
5227
|
var r;
|
|
5228
|
-
const { placement: n, middlewareData: o, rects: a, initialPlacement:
|
|
5228
|
+
const { placement: n, middlewareData: o, rects: a, initialPlacement: s, platform: i, elements: l } = t, { mainAxis: c = !0, crossAxis: d = !0, fallbackPlacements: u, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: b = "none", flipAlignment: v = !0, ...h } = e, x = Et(n), w = Et(s) === s, C = await (i.isRTL == null ? void 0 : i.isRTL(l.floating)), _ = u || (w || !v ? [ir(s)] : function(L) {
|
|
5229
5229
|
const M = ir(L);
|
|
5230
5230
|
return [ln(L), M, ln(M)];
|
|
5231
|
-
}(
|
|
5231
|
+
}(s));
|
|
5232
5232
|
u || b === "none" || _.push(...function(L, M, U, J) {
|
|
5233
5233
|
const oe = Vt(L);
|
|
5234
5234
|
let K = function(we, Ae, je) {
|
|
@@ -5245,12 +5245,12 @@ const uf = function(e) {
|
|
|
5245
5245
|
}
|
|
5246
5246
|
}(Et(L), U === "start", J);
|
|
5247
5247
|
return oe && (K = K.map((we) => we + "-" + oe), M && (K = K.concat(K.map(ln)))), K;
|
|
5248
|
-
}(
|
|
5249
|
-
const y = [
|
|
5248
|
+
}(s, v, b, C));
|
|
5249
|
+
const y = [s, ..._], E = await _i(t, h), Y = [];
|
|
5250
5250
|
let j = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
5251
|
-
if (c && Y.push(
|
|
5251
|
+
if (c && Y.push(E[x]), d) {
|
|
5252
5252
|
const { main: L, cross: M } = lf(n, a, C);
|
|
5253
|
-
Y.push(
|
|
5253
|
+
Y.push(E[L], E[M]);
|
|
5254
5254
|
}
|
|
5255
5255
|
if (j = [...j, { placement: n, overflows: Y }], !Y.every((L) => L <= 0)) {
|
|
5256
5256
|
var H, $;
|
|
@@ -5267,7 +5267,7 @@ const uf = function(e) {
|
|
|
5267
5267
|
break;
|
|
5268
5268
|
}
|
|
5269
5269
|
case "initialPlacement":
|
|
5270
|
-
U =
|
|
5270
|
+
U = s;
|
|
5271
5271
|
}
|
|
5272
5272
|
if (n !== U)
|
|
5273
5273
|
return { reset: { placement: U } };
|
|
@@ -5276,25 +5276,25 @@ const uf = function(e) {
|
|
|
5276
5276
|
} };
|
|
5277
5277
|
}, ff = function(e) {
|
|
5278
5278
|
return e === void 0 && (e = 0), { name: "offset", options: e, async fn(t) {
|
|
5279
|
-
const { x: r, y: n } = t, o = await async function(a,
|
|
5280
|
-
const { placement: i, platform:
|
|
5281
|
-
let { mainAxis:
|
|
5282
|
-
return p && typeof _ == "number" && (C = p === "end" ? -1 * _ : _), b ? { x: C * h, y:
|
|
5279
|
+
const { x: r, y: n } = t, o = await async function(a, s) {
|
|
5280
|
+
const { placement: i, platform: l, elements: c } = a, d = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), u = Et(i), p = Vt(i), b = Wt(i) === "x", v = ["left", "top"].includes(u) ? -1 : 1, h = d && b ? -1 : 1, x = typeof s == "function" ? s(a) : s;
|
|
5281
|
+
let { mainAxis: w, crossAxis: C, alignmentAxis: _ } = typeof x == "number" ? { mainAxis: x, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...x };
|
|
5282
|
+
return p && typeof _ == "number" && (C = p === "end" ? -1 * _ : _), b ? { x: C * h, y: w * v } : { x: w * v, y: C * h };
|
|
5283
5283
|
}(t, e);
|
|
5284
5284
|
return { x: r + o.x, y: n + o.y, data: o };
|
|
5285
5285
|
} };
|
|
5286
5286
|
}, df = function(e) {
|
|
5287
5287
|
return e === void 0 && (e = {}), { name: "shift", options: e, async fn(t) {
|
|
5288
|
-
const { x: r, y: n, placement: o } = t, { mainAxis: a = !0, crossAxis:
|
|
5289
|
-
let { x:
|
|
5290
|
-
return { x:
|
|
5291
|
-
} }, ...
|
|
5288
|
+
const { x: r, y: n, placement: o } = t, { mainAxis: a = !0, crossAxis: s = !1, limiter: i = { fn: (x) => {
|
|
5289
|
+
let { x: w, y: C } = x;
|
|
5290
|
+
return { x: w, y: C };
|
|
5291
|
+
} }, ...l } = e, c = { x: r, y: n }, d = await _i(t, l), u = Wt(Et(o)), p = u === "x" ? "y" : "x";
|
|
5292
5292
|
let b = c[u], v = c[p];
|
|
5293
5293
|
if (a) {
|
|
5294
5294
|
const x = u === "y" ? "bottom" : "right";
|
|
5295
5295
|
b = Tn(b + d[u === "y" ? "top" : "left"], b, b - d[x]);
|
|
5296
5296
|
}
|
|
5297
|
-
if (
|
|
5297
|
+
if (s) {
|
|
5298
5298
|
const x = p === "y" ? "bottom" : "right";
|
|
5299
5299
|
v = Tn(v + d[p === "y" ? "top" : "left"], v, v - d[x]);
|
|
5300
5300
|
}
|
|
@@ -5313,8 +5313,8 @@ const na = Math.min, $t = Math.max, sr = Math.round;
|
|
|
5313
5313
|
function Ai(e) {
|
|
5314
5314
|
const t = Qe(e);
|
|
5315
5315
|
let r = parseFloat(t.width), n = parseFloat(t.height);
|
|
5316
|
-
const o = e.offsetWidth, a = e.offsetHeight,
|
|
5317
|
-
return
|
|
5316
|
+
const o = e.offsetWidth, a = e.offsetHeight, s = sr(r) !== o || sr(n) !== a;
|
|
5317
|
+
return s && (r = o, n = a), { width: r, height: n, fallback: s };
|
|
5318
5318
|
}
|
|
5319
5319
|
function ft(e) {
|
|
5320
5320
|
return Ri(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
@@ -5367,23 +5367,23 @@ function Rt(e) {
|
|
|
5367
5367
|
if (!et(t))
|
|
5368
5368
|
return Ii;
|
|
5369
5369
|
const r = t.getBoundingClientRect(), { width: n, height: o, fallback: a } = Ai(t);
|
|
5370
|
-
let
|
|
5371
|
-
return
|
|
5370
|
+
let s = (a ? sr(r.width) : r.width) / n, i = (a ? sr(r.height) : r.height) / o;
|
|
5371
|
+
return s && Number.isFinite(s) || (s = 1), i && Number.isFinite(i) || (i = 1), { x: s, y: i };
|
|
5372
5372
|
}
|
|
5373
5373
|
function Ut(e, t, r, n) {
|
|
5374
5374
|
var o, a;
|
|
5375
5375
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
5376
|
-
const
|
|
5377
|
-
let
|
|
5378
|
-
t && (n ? ct(n) && (
|
|
5376
|
+
const s = e.getBoundingClientRect(), i = ki(e);
|
|
5377
|
+
let l = Ii;
|
|
5378
|
+
t && (n ? ct(n) && (l = Rt(n)) : l = Rt(e));
|
|
5379
5379
|
const c = i ? Ze(i) : window, d = !Pi() && r;
|
|
5380
|
-
let u = (
|
|
5380
|
+
let u = (s.left + (d && ((o = c.visualViewport) == null ? void 0 : o.offsetLeft) || 0)) / l.x, p = (s.top + (d && ((a = c.visualViewport) == null ? void 0 : a.offsetTop) || 0)) / l.y, b = s.width / l.x, v = s.height / l.y;
|
|
5381
5381
|
if (i) {
|
|
5382
5382
|
const h = Ze(i), x = n && ct(n) ? Ze(n) : n;
|
|
5383
|
-
let
|
|
5384
|
-
for (;
|
|
5385
|
-
const C = Rt(
|
|
5386
|
-
_.x += (
|
|
5383
|
+
let w = h.frameElement;
|
|
5384
|
+
for (; w && n && x !== h; ) {
|
|
5385
|
+
const C = Rt(w), _ = w.getBoundingClientRect(), y = getComputedStyle(w);
|
|
5386
|
+
_.x += (w.clientLeft + parseFloat(y.paddingLeft)) * C.x, _.y += (w.clientTop + parseFloat(y.paddingTop)) * C.y, u *= C.x, p *= C.y, b *= C.x, v *= C.y, u += _.x, p += _.y, w = Ze(w).frameElement;
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
5389
|
return { width: b, height: v, top: p, right: u + b, bottom: p + v, left: u, x: u, y: p };
|
|
@@ -5415,22 +5415,22 @@ function Mi(e, t) {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
function aa(e, t, r) {
|
|
5417
5417
|
return t === "viewport" ? jt(function(n, o) {
|
|
5418
|
-
const a = Ze(n),
|
|
5419
|
-
let
|
|
5418
|
+
const a = Ze(n), s = ut(n), i = a.visualViewport;
|
|
5419
|
+
let l = s.clientWidth, c = s.clientHeight, d = 0, u = 0;
|
|
5420
5420
|
if (i) {
|
|
5421
|
-
|
|
5421
|
+
l = i.width, c = i.height;
|
|
5422
5422
|
const p = Pi();
|
|
5423
5423
|
(p || !p && o === "fixed") && (d = i.offsetLeft, u = i.offsetTop);
|
|
5424
5424
|
}
|
|
5425
|
-
return { width:
|
|
5425
|
+
return { width: l, height: c, x: d, y: u };
|
|
5426
5426
|
}(e, r)) : ct(t) ? jt(function(n, o) {
|
|
5427
|
-
const a = Ut(n, !0, o === "fixed"),
|
|
5428
|
-
return { width: n.clientWidth *
|
|
5427
|
+
const a = Ut(n, !0, o === "fixed"), s = a.top + n.clientTop, i = a.left + n.clientLeft, l = et(n) ? Rt(n) : { x: 1, y: 1 };
|
|
5428
|
+
return { width: n.clientWidth * l.x, height: n.clientHeight * l.y, x: i * l.x, y: s * l.y };
|
|
5429
5429
|
}(t, r)) : jt(function(n) {
|
|
5430
|
-
const o = ut(n), a = Ar(n),
|
|
5430
|
+
const o = ut(n), a = Ar(n), s = n.ownerDocument.body, i = $t(o.scrollWidth, o.clientWidth, s.scrollWidth, s.clientWidth), l = $t(o.scrollHeight, o.clientHeight, s.scrollHeight, s.clientHeight);
|
|
5431
5431
|
let c = -a.scrollLeft + Ni(n);
|
|
5432
5432
|
const d = -a.scrollTop;
|
|
5433
|
-
return Qe(
|
|
5433
|
+
return Qe(s).direction === "rtl" && (c += $t(o.clientWidth, s.clientWidth) - i), { width: i, height: l, x: c, y: d };
|
|
5434
5434
|
}(ut(e)));
|
|
5435
5435
|
}
|
|
5436
5436
|
function ia(e) {
|
|
@@ -5453,15 +5453,15 @@ function sa(e) {
|
|
|
5453
5453
|
}
|
|
5454
5454
|
function hf(e, t, r) {
|
|
5455
5455
|
const n = et(t), o = ut(t), a = Ut(e, !0, r === "fixed", t);
|
|
5456
|
-
let
|
|
5456
|
+
let s = { scrollLeft: 0, scrollTop: 0 };
|
|
5457
5457
|
const i = { x: 0, y: 0 };
|
|
5458
5458
|
if (n || !n && r !== "fixed")
|
|
5459
|
-
if ((ft(t) !== "body" || _r(o)) && (
|
|
5460
|
-
const
|
|
5461
|
-
i.x =
|
|
5459
|
+
if ((ft(t) !== "body" || _r(o)) && (s = Ar(t)), et(t)) {
|
|
5460
|
+
const l = Ut(t, !0);
|
|
5461
|
+
i.x = l.x + t.clientLeft, i.y = l.y + t.clientTop;
|
|
5462
5462
|
} else
|
|
5463
5463
|
o && (i.x = Ni(o));
|
|
5464
|
-
return { x: a.left +
|
|
5464
|
+
return { x: a.left + s.scrollLeft - i.x, y: a.top + s.scrollTop - i.y, width: a.width, height: a.height };
|
|
5465
5465
|
}
|
|
5466
5466
|
const vf = { getClippingRect: function(e) {
|
|
5467
5467
|
let { element: t, boundary: r, rootBoundary: n, strategy: o } = e;
|
|
@@ -5473,27 +5473,27 @@ const vf = { getClippingRect: function(e) {
|
|
|
5473
5473
|
const v = Qe(c).position === "fixed";
|
|
5474
5474
|
let h = v ? zt(c) : c;
|
|
5475
5475
|
for (; ct(h) && !Yn(h); ) {
|
|
5476
|
-
const x = Qe(h),
|
|
5477
|
-
(v ?
|
|
5476
|
+
const x = Qe(h), w = Ln(h);
|
|
5477
|
+
(v ? w || b : w || x.position !== "static" || !b || !["absolute", "fixed"].includes(b.position)) ? b = x : p = p.filter((C) => C !== h), h = zt(h);
|
|
5478
5478
|
}
|
|
5479
5479
|
return d.set(c, p), p;
|
|
5480
|
-
}(t, this._c) : [].concat(r),
|
|
5480
|
+
}(t, this._c) : [].concat(r), s = [...a, n], i = s[0], l = s.reduce((c, d) => {
|
|
5481
5481
|
const u = aa(t, d, o);
|
|
5482
5482
|
return c.top = $t(u.top, c.top), c.right = na(u.right, c.right), c.bottom = na(u.bottom, c.bottom), c.left = $t(u.left, c.left), c;
|
|
5483
5483
|
}, aa(t, i, o));
|
|
5484
|
-
return { width:
|
|
5484
|
+
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
5485
5485
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
5486
5486
|
let { rect: t, offsetParent: r, strategy: n } = e;
|
|
5487
5487
|
const o = et(r), a = ut(r);
|
|
5488
5488
|
if (r === a)
|
|
5489
5489
|
return t;
|
|
5490
|
-
let
|
|
5491
|
-
const
|
|
5492
|
-
if ((o || !o && n !== "fixed") && ((ft(r) !== "body" || _r(a)) && (
|
|
5490
|
+
let s = { scrollLeft: 0, scrollTop: 0 }, i = { x: 1, y: 1 };
|
|
5491
|
+
const l = { x: 0, y: 0 };
|
|
5492
|
+
if ((o || !o && n !== "fixed") && ((ft(r) !== "body" || _r(a)) && (s = Ar(r)), et(r))) {
|
|
5493
5493
|
const c = Ut(r);
|
|
5494
|
-
i = Rt(r),
|
|
5494
|
+
i = Rt(r), l.x = c.x + r.clientLeft, l.y = c.y + r.clientTop;
|
|
5495
5495
|
}
|
|
5496
|
-
return { width: t.width * i.x, height: t.height * i.y, x: t.x * i.x -
|
|
5496
|
+
return { width: t.width * i.x, height: t.height * i.y, x: t.x * i.x - s.scrollLeft * i.x + l.x, y: t.y * i.y - s.scrollTop * i.y + l.y };
|
|
5497
5497
|
}, isElement: ct, getDimensions: function(e) {
|
|
5498
5498
|
return et(e) ? Ai(e) : e.getBoundingClientRect();
|
|
5499
5499
|
}, getOffsetParent: sa, getDocumentElement: ut, getScale: Rt, async getElementRects(e) {
|
|
@@ -5502,20 +5502,20 @@ const vf = { getClippingRect: function(e) {
|
|
|
5502
5502
|
return { reference: hf(t, await o(r), n), floating: { x: 0, y: 0, ...await a(r) } };
|
|
5503
5503
|
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => Qe(e).direction === "rtl" }, la = (e, t, r) => {
|
|
5504
5504
|
const n = /* @__PURE__ */ new Map(), o = { platform: vf, ...r }, a = { ...o.platform, _c: n };
|
|
5505
|
-
return (async (
|
|
5506
|
-
const { placement: c = "bottom", strategy: d = "absolute", middleware: u = [], platform: p } =
|
|
5507
|
-
if (p == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), b.filter((
|
|
5508
|
-
let { name: Y } =
|
|
5505
|
+
return (async (s, i, l) => {
|
|
5506
|
+
const { placement: c = "bottom", strategy: d = "absolute", middleware: u = [], platform: p } = l, b = u.filter(Boolean), v = await (p.isRTL == null ? void 0 : p.isRTL(i));
|
|
5507
|
+
if (p == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), b.filter((E) => {
|
|
5508
|
+
let { name: Y } = E;
|
|
5509
5509
|
return Y === "autoPlacement" || Y === "flip";
|
|
5510
5510
|
}).length > 1)
|
|
5511
5511
|
throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware", "detected. This will lead to an infinite loop. Ensure only one of", "either has been passed to the `middleware` array."].join(" "));
|
|
5512
|
-
|
|
5513
|
-
let h = await p.getElementRects({ reference:
|
|
5514
|
-
for (let
|
|
5515
|
-
const { name: Y, fn: j } = b[
|
|
5516
|
-
x = H ?? x,
|
|
5512
|
+
s && i || console.error(["Floating UI: The reference and/or floating element was not defined", "when `computePosition()` was called. Ensure that both elements have", "been created and can be measured."].join(" "));
|
|
5513
|
+
let h = await p.getElementRects({ reference: s, floating: i, strategy: d }), { x, y: w } = ra(h, c, v), C = c, _ = {}, y = 0;
|
|
5514
|
+
for (let E = 0; E < b.length; E++) {
|
|
5515
|
+
const { name: Y, fn: j } = b[E], { x: H, y: $, data: Z, reset: L } = await j({ x, y: w, initialPlacement: c, placement: C, strategy: d, middlewareData: _, rects: h, platform: p, elements: { reference: s, floating: i } });
|
|
5516
|
+
x = H ?? x, w = $ ?? w, _ = { ..._, [Y]: { ..._[Y], ...Z } }, y > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), L && y <= 50 && (y++, typeof L == "object" && (L.placement && (C = L.placement), L.rects && (h = L.rects === !0 ? await p.getElementRects({ reference: s, floating: i, strategy: d }) : L.rects), { x, y: w } = ra(h, C, v)), E = -1);
|
|
5517
5517
|
}
|
|
5518
|
-
return { x, y:
|
|
5518
|
+
return { x, y: w, placement: C, strategy: d, middlewareData: _ };
|
|
5519
5519
|
})(e, t, { ...o, platform: a });
|
|
5520
5520
|
};
|
|
5521
5521
|
var st, xt = { exports: {} }, ca = {};
|
|
@@ -5530,18 +5530,18 @@ var st, xt = { exports: {} }, ca = {};
|
|
|
5530
5530
|
st = ca, function() {
|
|
5531
5531
|
var e = Ve, t = 60103, r = 60106;
|
|
5532
5532
|
st.Fragment = 60107;
|
|
5533
|
-
var n = 60108, o = 60114, a = 60109,
|
|
5533
|
+
var n = 60108, o = 60114, a = 60109, s = 60110, i = 60112, l = 60113, c = 60120, d = 60115, u = 60116, p = 60121, b = 60122, v = 60117, h = 60129, x = 60131;
|
|
5534
5534
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
5535
|
-
var
|
|
5536
|
-
t =
|
|
5535
|
+
var w = Symbol.for;
|
|
5536
|
+
t = w("react.element"), r = w("react.portal"), st.Fragment = w("react.fragment"), n = w("react.strict_mode"), o = w("react.profiler"), a = w("react.provider"), s = w("react.context"), i = w("react.forward_ref"), l = w("react.suspense"), c = w("react.suspense_list"), d = w("react.memo"), u = w("react.lazy"), p = w("react.block"), b = w("react.server.block"), v = w("react.fundamental"), w("react.scope"), w("react.opaque.id"), h = w("react.debug_trace_mode"), w("react.offscreen"), x = w("react.legacy_hidden");
|
|
5537
5537
|
}
|
|
5538
5538
|
var C = typeof Symbol == "function" && Symbol.iterator, _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
5539
5539
|
function y(m) {
|
|
5540
5540
|
for (var N = arguments.length, g = new Array(N > 1 ? N - 1 : 0), G = 1; G < N; G++)
|
|
5541
5541
|
g[G - 1] = arguments[G];
|
|
5542
|
-
|
|
5542
|
+
E("error", m, g);
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function E(m, N, g) {
|
|
5545
5545
|
var G = _.ReactDebugCurrentFrame, re = "";
|
|
5546
5546
|
if ($) {
|
|
5547
5547
|
var ne = j($.type), ae = $._owner;
|
|
@@ -5586,14 +5586,14 @@ st = ca, function() {
|
|
|
5586
5586
|
return "Profiler";
|
|
5587
5587
|
case n:
|
|
5588
5588
|
return "StrictMode";
|
|
5589
|
-
case
|
|
5589
|
+
case l:
|
|
5590
5590
|
return "Suspense";
|
|
5591
5591
|
case c:
|
|
5592
5592
|
return "SuspenseList";
|
|
5593
5593
|
}
|
|
5594
5594
|
if (typeof m == "object")
|
|
5595
5595
|
switch (m.$$typeof) {
|
|
5596
|
-
case
|
|
5596
|
+
case s:
|
|
5597
5597
|
return "Context.Consumer";
|
|
5598
5598
|
case a:
|
|
5599
5599
|
return "Context.Provider";
|
|
@@ -5763,7 +5763,7 @@ Check the top-level render call using <` + ae + ">.");
|
|
|
5763
5763
|
}
|
|
5764
5764
|
function W(m, N, g, G, re, ne) {
|
|
5765
5765
|
var ae = function(O) {
|
|
5766
|
-
return typeof O == "string" || typeof O == "function" || O === st.Fragment || O === o || O === h || O === n || O ===
|
|
5766
|
+
return typeof O == "string" || typeof O == "function" || O === st.Fragment || O === o || O === h || O === n || O === l || O === c || O === x || typeof O == "object" && O !== null && (O.$$typeof === u || O.$$typeof === d || O.$$typeof === a || O.$$typeof === s || O.$$typeof === i || O.$$typeof === v || O.$$typeof === p || O[0] === b);
|
|
5767
5767
|
}(m);
|
|
5768
5768
|
if (!ae) {
|
|
5769
5769
|
var de = "";
|
|
@@ -5826,8 +5826,8 @@ cn = ji, function() {
|
|
|
5826
5826
|
r.push(o);
|
|
5827
5827
|
else if (Array.isArray(o)) {
|
|
5828
5828
|
if (o.length) {
|
|
5829
|
-
var
|
|
5830
|
-
|
|
5829
|
+
var s = t.apply(null, o);
|
|
5830
|
+
s && r.push(s);
|
|
5831
5831
|
}
|
|
5832
5832
|
} else if (a === "object") {
|
|
5833
5833
|
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
@@ -5858,30 +5858,30 @@ const fa = (e, t, r) => {
|
|
|
5858
5858
|
function $i(e = "DEFAULT_TOOLTIP_ID") {
|
|
5859
5859
|
return ga(gf).getTooltipData(e);
|
|
5860
5860
|
}
|
|
5861
|
-
const da = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: r = null, place: n = "top", offset: o = 10, strategy: a = "absolute", middlewares:
|
|
5861
|
+
const da = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: r = null, place: n = "top", offset: o = 10, strategy: a = "absolute", middlewares: s = [ff(Number(o)), uf(), df({ padding: 5 })] }) => {
|
|
5862
5862
|
if (!e)
|
|
5863
5863
|
return { tooltipStyles: {}, tooltipArrowStyles: {} };
|
|
5864
5864
|
if (t === null)
|
|
5865
5865
|
return { tooltipStyles: {}, tooltipArrowStyles: {} };
|
|
5866
|
-
const i =
|
|
5867
|
-
return r ? (i.push({ name: "arrow", options:
|
|
5868
|
-
const { element: d, padding: u = 0 } =
|
|
5866
|
+
const i = s;
|
|
5867
|
+
return r ? (i.push({ name: "arrow", options: l = { element: r, padding: 5 }, async fn(c) {
|
|
5868
|
+
const { element: d, padding: u = 0 } = l || {}, { x: p, y: b, placement: v, rects: h, platform: x } = c;
|
|
5869
5869
|
if (d == null)
|
|
5870
5870
|
return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
|
|
5871
|
-
const
|
|
5871
|
+
const w = Si(u), C = { x: p, y: b }, _ = Wt(v), y = Wn(_), E = await x.getDimensions(d), Y = _ === "y" ? "top" : "left", j = _ === "y" ? "bottom" : "right", H = h.reference[y] + h.reference[_] - C[_] - h.floating[y], $ = C[_] - h.reference[_], Z = await (x.getOffsetParent == null ? void 0 : x.getOffsetParent(d));
|
|
5872
5872
|
let L = Z ? _ === "y" ? Z.clientHeight || 0 : Z.clientWidth || 0 : 0;
|
|
5873
5873
|
L === 0 && (L = h.floating[y]);
|
|
5874
|
-
const M = H / 2 - $ / 2, U =
|
|
5874
|
+
const M = H / 2 - $ / 2, U = w[Y], J = L - E[y] - w[j], oe = L / 2 - E[y] / 2 + M, K = Tn(U, oe, J), we = Vt(v) != null && oe != K && h.reference[y] / 2 - (oe < U ? w[Y] : w[j]) - E[y] / 2 < 0;
|
|
5875
5875
|
return { [_]: C[_] - (we ? oe < U ? U - oe : J - oe : 0), data: { [_]: K, centerOffset: oe - K } };
|
|
5876
5876
|
} }), la(e, t, { placement: n, strategy: a, middleware: i }).then(({ x: c, y: d, placement: u, middlewareData: p }) => {
|
|
5877
5877
|
var b, v;
|
|
5878
|
-
const h = { left: `${c}px`, top: `${d}px` }, { x, y:
|
|
5879
|
-
return { tooltipStyles: h, tooltipArrowStyles: { left: x != null ? `${x}px` : "", top:
|
|
5878
|
+
const h = { left: `${c}px`, top: `${d}px` }, { x, y: w } = (b = p.arrow) !== null && b !== void 0 ? b : { x: 0, y: 0 };
|
|
5879
|
+
return { tooltipStyles: h, tooltipArrowStyles: { left: x != null ? `${x}px` : "", top: w != null ? `${w}px` : "", right: "", bottom: "", [(v = { top: "bottom", right: "left", bottom: "top", left: "right" }[u.split("-")[0]]) !== null && v !== void 0 ? v : "bottom"]: "-4px" } };
|
|
5880
5880
|
})) : la(e, t, { placement: "bottom", strategy: a, middleware: i }).then(({ x: c, y: d }) => ({ tooltipStyles: { left: `${c}px`, top: `${d}px` }, tooltipArrowStyles: {} }));
|
|
5881
|
-
var
|
|
5881
|
+
var l;
|
|
5882
5882
|
};
|
|
5883
5883
|
var bt = { tooltip: "styles-module_tooltip__mnnfp", fixed: "styles-module_fixed__7ciUi", arrow: "styles-module_arrow__K0L3T", "no-arrow": "styles-module_no-arrow__KcFZN", clickable: "styles-module_clickable__Bv9o7", show: "styles-module_show__2NboJ", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
5884
|
-
const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", anchorId: o, anchorSelect: a, place:
|
|
5884
|
+
const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", anchorId: o, anchorSelect: a, place: s = "top", offset: i = 10, events: l = ["hover"], positionStrategy: c = "absolute", middlewares: d, wrapper: u, children: p = null, delayShow: b = 0, delayHide: v = 0, float: h = !1, noArrow: x = !1, clickable: w = !1, closeOnEsc: C = !1, style: _, position: y, afterShow: E, afterHide: Y, content: j, html: H, isOpen: $, setIsOpen: Z, activeAnchor: L, setActiveAnchor: M }) => {
|
|
5885
5885
|
const U = Ne(null), J = Ne(null), oe = Ne(null), K = Ne(null), [we, Ae] = ge({}), [je, T] = ge({}), [A, V] = ge(!1), [z, B] = ge(!1), ee = Ne(!1), q = Ne(null), { anchorRefs: W, setActiveAnchor: Q } = $i(e), te = Ne(!1), [m, N] = ge([]), g = Ne(!1);
|
|
5886
5886
|
Ji(() => (g.current = !0, () => {
|
|
5887
5887
|
g.current = !1;
|
|
@@ -5912,7 +5912,7 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
5912
5912
|
clearTimeout(I);
|
|
5913
5913
|
};
|
|
5914
5914
|
}, [$]), Ce(() => {
|
|
5915
|
-
A !== ee.current && (ee.current = A, A ?
|
|
5915
|
+
A !== ee.current && (ee.current = A, A ? E == null || E() : Y == null || Y());
|
|
5916
5916
|
}, [A]);
|
|
5917
5917
|
const re = (I = v) => {
|
|
5918
5918
|
K.current && clearTimeout(K.current), K.current = setTimeout(() => {
|
|
@@ -5928,9 +5928,9 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
5928
5928
|
const ce = (se = I.currentTarget) !== null && se !== void 0 ? se : I.target;
|
|
5929
5929
|
M(ce), Q({ current: ce }), K.current && clearTimeout(K.current);
|
|
5930
5930
|
}, ae = () => {
|
|
5931
|
-
|
|
5931
|
+
w ? re(v || 100) : v ? re() : G(!1), oe.current && clearTimeout(oe.current);
|
|
5932
5932
|
}, de = ({ x: I, y: se }) => {
|
|
5933
|
-
da({ place:
|
|
5933
|
+
da({ place: s, offset: i, elementReference: { getBoundingClientRect: () => ({ x: I, y: se, width: 0, height: 0, top: se, left: I, right: I, bottom: se }) }, tooltipReference: U.current, tooltipArrowReference: J.current, strategy: c, middlewares: d }).then((ce) => {
|
|
5934
5934
|
Object.keys(ce.tooltipStyles).length && Ae(ce.tooltipStyles), Object.keys(ce.tooltipArrowStyles).length && T(ce.tooltipArrowStyles);
|
|
5935
5935
|
});
|
|
5936
5936
|
}, ye = (I) => {
|
|
@@ -5955,27 +5955,27 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
5955
5955
|
const Re = document.querySelector(`[id='${o}']`);
|
|
5956
5956
|
Re && ce.add({ current: Re }), C && window.addEventListener("keydown", F);
|
|
5957
5957
|
const Te = [];
|
|
5958
|
-
|
|
5958
|
+
l.find((ze) => ze === "click") && (window.addEventListener("click", ie), Te.push({ event: "click", listener: Oe })), l.find((ze) => ze === "hover") && (Te.push({ event: "mouseenter", listener: P }, { event: "mouseleave", listener: O }, { event: "focus", listener: P }, { event: "blur", listener: O }), h && Te.push({ event: "mousemove", listener: ye }));
|
|
5959
5959
|
const Ue = () => {
|
|
5960
5960
|
te.current = !0;
|
|
5961
5961
|
}, We = () => {
|
|
5962
5962
|
te.current = !1, ae();
|
|
5963
5963
|
};
|
|
5964
|
-
return
|
|
5964
|
+
return w && ((I = U.current) === null || I === void 0 || I.addEventListener("mouseenter", Ue), (se = U.current) === null || se === void 0 || se.addEventListener("mouseleave", We)), Te.forEach(({ event: ze, listener: mt }) => {
|
|
5965
5965
|
ce.forEach((yt) => {
|
|
5966
5966
|
var gt;
|
|
5967
5967
|
(gt = yt.current) === null || gt === void 0 || gt.addEventListener(ze, mt);
|
|
5968
5968
|
});
|
|
5969
5969
|
}), () => {
|
|
5970
5970
|
var ze, mt;
|
|
5971
|
-
|
|
5971
|
+
l.find((yt) => yt === "click") && window.removeEventListener("click", ie), C && window.removeEventListener("keydown", F), w && ((ze = U.current) === null || ze === void 0 || ze.removeEventListener("mouseenter", Ue), (mt = U.current) === null || mt === void 0 || mt.removeEventListener("mouseleave", We)), Te.forEach(({ event: yt, listener: gt }) => {
|
|
5972
5972
|
ce.forEach((Or) => {
|
|
5973
5973
|
var Pt;
|
|
5974
5974
|
(Pt = Or.current) === null || Pt === void 0 || Pt.removeEventListener(yt, gt);
|
|
5975
5975
|
});
|
|
5976
5976
|
});
|
|
5977
5977
|
};
|
|
5978
|
-
}, [z, W, m, C,
|
|
5978
|
+
}, [z, W, m, C, l]), Ce(() => {
|
|
5979
5979
|
let I = a ?? "";
|
|
5980
5980
|
!I && e && (I = `[data-tooltip-id='${e}']`);
|
|
5981
5981
|
const se = new MutationObserver((ce) => {
|
|
@@ -5993,10 +5993,10 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
5993
5993
|
se.disconnect();
|
|
5994
5994
|
};
|
|
5995
5995
|
}, [e, a, L]), Ce(() => {
|
|
5996
|
-
y ? de(y) : h ? q.current && de(q.current) : da({ place:
|
|
5996
|
+
y ? de(y) : h ? q.current && de(q.current) : da({ place: s, offset: i, elementReference: L, tooltipReference: U.current, tooltipArrowReference: J.current, strategy: c, middlewares: d }).then((I) => {
|
|
5997
5997
|
g.current && (Object.keys(I.tooltipStyles).length && Ae(I.tooltipStyles), Object.keys(I.tooltipArrowStyles).length && T(I.tooltipArrowStyles));
|
|
5998
5998
|
});
|
|
5999
|
-
}, [A, L, j, H,
|
|
5999
|
+
}, [A, L, j, H, s, i, c, y]), Ce(() => {
|
|
6000
6000
|
var I;
|
|
6001
6001
|
const se = document.querySelector(`[id='${o}']`), ce = [...m, se];
|
|
6002
6002
|
L && ce.includes(L) || M((I = m[0]) !== null && I !== void 0 ? I : se);
|
|
@@ -6013,15 +6013,15 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
6013
6013
|
}
|
|
6014
6014
|
}, [e, a]);
|
|
6015
6015
|
const Se = !!(H || j || p) && A && Object.keys(we).length > 0;
|
|
6016
|
-
return z ? xt.exports.jsxs(u, { id: e, role: "tooltip", className: ua("react-tooltip", bt.tooltip, bt[n], t, { [bt.show]: Se, [bt.fixed]: c === "fixed", [bt.clickable]:
|
|
6017
|
-
}, bf = ({ id: e, anchorId: t, anchorSelect: r, content: n, html: o, className: a, classNameArrow:
|
|
6018
|
-
const [L, M] = ge(n), [U, J] = ge(o), [oe, K] = ge(
|
|
6016
|
+
return z ? xt.exports.jsxs(u, { id: e, role: "tooltip", className: ua("react-tooltip", bt.tooltip, bt[n], t, { [bt.show]: Se, [bt.fixed]: c === "fixed", [bt.clickable]: w }), style: { ..._, ...we }, ref: U, children: [H && xt.exports.jsx(mf, { content: H }) || j || p, xt.exports.jsx(u, { className: ua("react-tooltip-arrow", bt.arrow, r, { [bt["no-arrow"]]: x }), style: je, ref: J })] }) : null;
|
|
6017
|
+
}, bf = ({ id: e, anchorId: t, anchorSelect: r, content: n, html: o, className: a, classNameArrow: s, variant: i = "dark", place: l = "top", offset: c = 10, wrapper: d = "div", children: u = null, events: p = ["hover"], positionStrategy: b = "absolute", middlewares: v, delayShow: h = 0, delayHide: x = 0, float: w = !1, noArrow: C = !1, clickable: _ = !1, closeOnEsc: y = !1, style: E, position: Y, isOpen: j, setIsOpen: H, afterShow: $, afterHide: Z }) => {
|
|
6018
|
+
const [L, M] = ge(n), [U, J] = ge(o), [oe, K] = ge(l), [we, Ae] = ge(i), [je, T] = ge(c), [A, V] = ge(h), [z, B] = ge(x), [ee, q] = ge(w), [W, Q] = ge(d), [te, m] = ge(p), [N, g] = ge(b), [G, re] = ge(null), { anchorRefs: ne, activeAnchor: ae } = $i(e), de = (ie) => ie == null ? void 0 : ie.getAttributeNames().reduce((F, P) => {
|
|
6019
6019
|
var O;
|
|
6020
6020
|
return P.startsWith("data-tooltip-") && (F[P.replace(/^data-tooltip-/, "")] = (O = ie == null ? void 0 : ie.getAttribute(P)) !== null && O !== void 0 ? O : null), F;
|
|
6021
6021
|
}, {}), ye = (ie) => {
|
|
6022
6022
|
const F = { place: (P) => {
|
|
6023
6023
|
var O;
|
|
6024
|
-
K((O = P) !== null && O !== void 0 ? O :
|
|
6024
|
+
K((O = P) !== null && O !== void 0 ? O : l);
|
|
6025
6025
|
}, content: (P) => {
|
|
6026
6026
|
M(P ?? n);
|
|
6027
6027
|
}, html: (P) => {
|
|
@@ -6045,7 +6045,7 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
6045
6045
|
}, "delay-hide": (P) => {
|
|
6046
6046
|
B(P === null ? x : Number(P));
|
|
6047
6047
|
}, float: (P) => {
|
|
6048
|
-
q(P === null ?
|
|
6048
|
+
q(P === null ? w : !!P);
|
|
6049
6049
|
} };
|
|
6050
6050
|
Object.values(F).forEach((P) => P(null)), Object.entries(ie).forEach(([P, O]) => {
|
|
6051
6051
|
var Se;
|
|
@@ -6057,8 +6057,8 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
6057
6057
|
}, [n]), Ce(() => {
|
|
6058
6058
|
J(o);
|
|
6059
6059
|
}, [o]), Ce(() => {
|
|
6060
|
-
K(
|
|
6061
|
-
}, [
|
|
6060
|
+
K(l);
|
|
6061
|
+
}, [l]), Ce(() => {
|
|
6062
6062
|
var ie;
|
|
6063
6063
|
const F = new Set(ne);
|
|
6064
6064
|
let P = r;
|
|
@@ -6090,17 +6090,17 @@ const pa = ({ id: e, className: t, classNameArrow: r, variant: n = "dark", ancho
|
|
|
6090
6090
|
I.disconnect();
|
|
6091
6091
|
};
|
|
6092
6092
|
}, [ne, ae, G, t, r]);
|
|
6093
|
-
const Oe = { id: e, anchorId: t, anchorSelect: r, className: a, classNameArrow:
|
|
6093
|
+
const Oe = { id: e, anchorId: t, anchorSelect: r, className: a, classNameArrow: s, content: L, html: U, place: oe, variant: we, offset: je, wrapper: W, events: te, positionStrategy: N, middlewares: v, delayShow: A, delayHide: z, float: ee, noArrow: C, clickable: _, closeOnEsc: y, style: E, position: Y, isOpen: j, setIsOpen: H, afterShow: $, afterHide: Z, activeAnchor: G, setActiveAnchor: (ie) => re(ie) };
|
|
6094
6094
|
return u ? xt.exports.jsx(pa, { ...Oe, children: u }) : xt.exports.jsx(pa, { ...Oe });
|
|
6095
6095
|
};
|
|
6096
|
-
const Fi = () => null, Bi = () => null, Ft = ({ place: e = "top", trigger: t = "hover", float: r = !1, shadow: n = !0, border: o = !1, children: a, style:
|
|
6097
|
-
const
|
|
6098
|
-
return /* @__PURE__ */ Le("span", { className: "cove-tooltip", style:
|
|
6096
|
+
const Fi = () => null, Bi = () => null, Ft = ({ place: e = "top", trigger: t = "hover", float: r = !1, shadow: n = !0, border: o = !1, children: a, style: s, ...i }) => {
|
|
6097
|
+
const l = a.find((p) => p.type === Fi), c = a.find((p) => p.type === Bi), d = "tooltip-" + ya();
|
|
6098
|
+
return /* @__PURE__ */ Le("span", { className: "cove-tooltip", style: s, ...i, children: [
|
|
6099
6099
|
/* @__PURE__ */ D("a", { id: d, className: "cove-tooltip--target", "data-tooltip-float": r, "data-tooltip-place": e, "data-tooltip-events": ((p) => ({
|
|
6100
6100
|
hover: null,
|
|
6101
6101
|
focus: "focus",
|
|
6102
6102
|
click: "click focus"
|
|
6103
|
-
})[p])(), children:
|
|
6103
|
+
})[p])(), children: l ? l.props.children : null }),
|
|
6104
6104
|
/* @__PURE__ */ D(
|
|
6105
6105
|
bf,
|
|
6106
6106
|
{
|
|
@@ -6139,7 +6139,7 @@ Bt.Section.propTypes = {
|
|
|
6139
6139
|
tooltipText: lt.object
|
|
6140
6140
|
};
|
|
6141
6141
|
function wf(e, t, r) {
|
|
6142
|
-
var n = this, o = Ne(null), a = Ne(0),
|
|
6142
|
+
var n = this, o = Ne(null), a = Ne(0), s = Ne(null), i = Ne([]), l = Ne(), c = Ne(), d = Ne(e), u = Ne(!0);
|
|
6143
6143
|
d.current = e;
|
|
6144
6144
|
var p = !t && t !== 0 && typeof window < "u";
|
|
6145
6145
|
if (typeof e != "function")
|
|
@@ -6151,23 +6151,23 @@ function wf(e, t, r) {
|
|
|
6151
6151
|
u.current = !1;
|
|
6152
6152
|
};
|
|
6153
6153
|
}, []);
|
|
6154
|
-
var
|
|
6154
|
+
var w = Qi(function() {
|
|
6155
6155
|
var C = function(H) {
|
|
6156
|
-
var $ = i.current, Z =
|
|
6157
|
-
return i.current =
|
|
6156
|
+
var $ = i.current, Z = l.current;
|
|
6157
|
+
return i.current = l.current = null, a.current = H, c.current = d.current.apply(Z, $);
|
|
6158
6158
|
}, _ = function(H, $) {
|
|
6159
|
-
p && cancelAnimationFrame(
|
|
6159
|
+
p && cancelAnimationFrame(s.current), s.current = p ? requestAnimationFrame(H) : setTimeout(H, $);
|
|
6160
6160
|
}, y = function(H) {
|
|
6161
6161
|
if (!u.current)
|
|
6162
6162
|
return !1;
|
|
6163
6163
|
var $ = H - o.current, Z = H - a.current;
|
|
6164
6164
|
return !o.current || $ >= t || $ < 0 || h && Z >= x;
|
|
6165
|
-
},
|
|
6166
|
-
return
|
|
6165
|
+
}, E = function(H) {
|
|
6166
|
+
return s.current = null, v && i.current ? C(H) : (i.current = l.current = null, c.current);
|
|
6167
6167
|
}, Y = function() {
|
|
6168
6168
|
var H = Date.now();
|
|
6169
6169
|
if (y(H))
|
|
6170
|
-
return
|
|
6170
|
+
return E(H);
|
|
6171
6171
|
if (u.current) {
|
|
6172
6172
|
var $ = H - o.current, Z = H - a.current, L = t - $, M = h ? Math.min(L, x - Z) : L;
|
|
6173
6173
|
_(Y, M);
|
|
@@ -6176,23 +6176,23 @@ function wf(e, t, r) {
|
|
|
6176
6176
|
for (var H = [], $ = 0; $ < arguments.length; $++)
|
|
6177
6177
|
H[$] = arguments[$];
|
|
6178
6178
|
var Z = Date.now(), L = y(Z);
|
|
6179
|
-
if (i.current = H,
|
|
6180
|
-
if (!
|
|
6179
|
+
if (i.current = H, l.current = n, o.current = Z, L) {
|
|
6180
|
+
if (!s.current && u.current)
|
|
6181
6181
|
return a.current = o.current, _(Y, t), b ? C(o.current) : c.current;
|
|
6182
6182
|
if (h)
|
|
6183
6183
|
return _(Y, t), C(o.current);
|
|
6184
6184
|
}
|
|
6185
|
-
return
|
|
6185
|
+
return s.current || _(Y, t), c.current;
|
|
6186
6186
|
};
|
|
6187
6187
|
return j.cancel = function() {
|
|
6188
|
-
|
|
6188
|
+
s.current && (p ? cancelAnimationFrame(s.current) : clearTimeout(s.current)), a.current = 0, i.current = o.current = l.current = s.current = null;
|
|
6189
6189
|
}, j.isPending = function() {
|
|
6190
|
-
return !!
|
|
6190
|
+
return !!s.current;
|
|
6191
6191
|
}, j.flush = function() {
|
|
6192
|
-
return
|
|
6192
|
+
return s.current ? E(Date.now()) : c.current;
|
|
6193
6193
|
}, j;
|
|
6194
6194
|
}, [b, h, t, x, v, p]);
|
|
6195
|
-
return
|
|
6195
|
+
return w;
|
|
6196
6196
|
}
|
|
6197
6197
|
function Ef(e, t) {
|
|
6198
6198
|
return e === t;
|
|
@@ -6209,31 +6209,31 @@ function xf(e) {
|
|
|
6209
6209
|
return [r, o];
|
|
6210
6210
|
}
|
|
6211
6211
|
function Cf(e, t, r) {
|
|
6212
|
-
var n = r && r.equalityFn || Ef, o = xf(e), a = o[0],
|
|
6213
|
-
return
|
|
6214
|
-
}, [
|
|
6212
|
+
var n = r && r.equalityFn || Ef, o = xf(e), a = o[0], s = o[1], i = wf(tr(function(c) {
|
|
6213
|
+
return s(c);
|
|
6214
|
+
}, [s]), t, r), l = Ne(e);
|
|
6215
6215
|
return Ce(function() {
|
|
6216
|
-
n(
|
|
6216
|
+
n(l.current, e) || (i(e), l.current = e);
|
|
6217
6217
|
}, [e, i, n]), [a, { cancel: i.cancel, isPending: i.isPending, flush: i.flush }];
|
|
6218
6218
|
}
|
|
6219
|
-
const va = un(({ label: e, section: t = null, subsection: r = null, fieldName: n, updateField: o, value: a, type:
|
|
6219
|
+
const va = un(({ label: e, section: t = null, subsection: r = null, fieldName: n, updateField: o, value: a, type: s = "input", tooltip: i, placeholder: l, i: c = null, min: d = null, max: u = null, className: p, ...b }) => {
|
|
6220
6220
|
const [v, h] = ge(a), [x] = Cf(v, 500);
|
|
6221
6221
|
Ce(() => {
|
|
6222
6222
|
typeof x == "string" && a !== x && o && o(t, r, n, x, c);
|
|
6223
6223
|
}, [x, t, r, n, c, a, o]);
|
|
6224
|
-
let
|
|
6225
|
-
const C = (
|
|
6226
|
-
|
|
6224
|
+
let w = r ? `${t}-${r}-${n}` : `${t}-${r}-${n}`;
|
|
6225
|
+
const C = (E) => {
|
|
6226
|
+
s !== "number" || d === null || !E.target.value || parseFloat(d) <= parseFloat(E.target.value) & parseFloat(u) >= parseFloat(E.target.value) ? h(E.target.value) : h(d.toString());
|
|
6227
6227
|
};
|
|
6228
6228
|
let _ = {
|
|
6229
6229
|
className: `cove-input${p ? " " + p : ""}`,
|
|
6230
|
-
type:
|
|
6231
|
-
name:
|
|
6232
|
-
placeholder:
|
|
6230
|
+
type: s,
|
|
6231
|
+
name: w,
|
|
6232
|
+
placeholder: l,
|
|
6233
6233
|
onChange: C,
|
|
6234
6234
|
value: v,
|
|
6235
6235
|
...b
|
|
6236
|
-
}, y =
|
|
6236
|
+
}, y = s === "textarea" ? /* @__PURE__ */ D("textarea", { ..._ }) : /* @__PURE__ */ D("input", { ..._ });
|
|
6237
6237
|
return /* @__PURE__ */ Le(ba, { children: [
|
|
6238
6238
|
e && /* @__PURE__ */ D("label", { className: "cove-input__label", children: e }),
|
|
6239
6239
|
i,
|
|
@@ -6241,15 +6241,15 @@ const va = un(({ label: e, section: t = null, subsection: r = null, fieldName: n
|
|
|
6241
6241
|
] });
|
|
6242
6242
|
});
|
|
6243
6243
|
const Tf = ["theme-blue", "theme-purple", "theme-brown", "theme-teal", "theme-pink", "theme-orange", "theme-slate", "theme-indigo", "theme-cyan", "theme-green", "theme-amber"], Lf = un((e) => {
|
|
6244
|
-
const { config: t, updateConfig: r, loading: n, data: o, setParentConfig: a, isDashboard:
|
|
6244
|
+
const { config: t, updateConfig: r, loading: n, data: o, setParentConfig: a, isDashboard: s } = ga(fi), [i, l] = ge(!0), [c, d] = ge(!1), u = (C, _, y, E) => {
|
|
6245
6245
|
if (C === null && _ === null) {
|
|
6246
|
-
let $ = { ...t, [y]:
|
|
6246
|
+
let $ = { ...t, [y]: E };
|
|
6247
6247
|
y === "filterColumn" && ($.filterValue = ""), r($);
|
|
6248
6248
|
return;
|
|
6249
6249
|
}
|
|
6250
6250
|
const Y = Array.isArray(t[C]);
|
|
6251
|
-
let j = Y ? [...t[C],
|
|
6252
|
-
_ !== null && (Y ? (j = [...t[C]], j[_] = { ...j[_], [y]:
|
|
6251
|
+
let j = Y ? [...t[C], E] : { ...t[C], [y]: E };
|
|
6252
|
+
_ !== null && (Y ? (j = [...t[C]], j[_] = { ...j[_], [y]: E }) : typeof E == "string" ? j[_] = E : j = { ...t[C], [_]: { ...t[C][_], [y]: E } });
|
|
6253
6253
|
let H = { ...t, [C]: j };
|
|
6254
6254
|
r(H);
|
|
6255
6255
|
};
|
|
@@ -6265,7 +6265,7 @@ const Tf = ["theme-blue", "theme-purple", "theme-brown", "theme-teal", "theme-pi
|
|
|
6265
6265
|
}
|
|
6266
6266
|
}, []);
|
|
6267
6267
|
const p = () => {
|
|
6268
|
-
|
|
6268
|
+
l(!i);
|
|
6269
6269
|
}, b = () => /* @__PURE__ */ D("section", { className: "waiting", children: /* @__PURE__ */ Le("section", { className: "waiting-container", children: [
|
|
6270
6270
|
/* @__PURE__ */ D("h3", { children: "Error With Configuration" }),
|
|
6271
6271
|
/* @__PURE__ */ D("p", { children: t.runtime.editorErrorMessage })
|
|
@@ -6280,7 +6280,7 @@ const Tf = ["theme-blue", "theme-purple", "theme-brown", "theme-teal", "theme-pi
|
|
|
6280
6280
|
] }) }), h = () => {
|
|
6281
6281
|
let C = JSON.parse(JSON.stringify(t));
|
|
6282
6282
|
return delete C.newViz, delete C.runtime, C;
|
|
6283
|
-
}, x = un(({ label: C, value: _, fieldName: y, section:
|
|
6283
|
+
}, x = un(({ label: C, value: _, fieldName: y, section: E = null, subsection: Y = null, tooltip: j, updateField: H, ...$ }) => /* @__PURE__ */ Le("label", { className: "checkbox", children: [
|
|
6284
6284
|
/* @__PURE__ */ D(
|
|
6285
6285
|
"input",
|
|
6286
6286
|
{
|
|
@@ -6288,14 +6288,14 @@ const Tf = ["theme-blue", "theme-purple", "theme-brown", "theme-teal", "theme-pi
|
|
|
6288
6288
|
name: y,
|
|
6289
6289
|
checked: _,
|
|
6290
6290
|
onChange: () => {
|
|
6291
|
-
H(
|
|
6291
|
+
H(E, Y, y, !_);
|
|
6292
6292
|
},
|
|
6293
6293
|
...$
|
|
6294
6294
|
}
|
|
6295
6295
|
),
|
|
6296
6296
|
/* @__PURE__ */ D("span", { className: "edit-label column-heading", children: C }),
|
|
6297
6297
|
/* @__PURE__ */ D("span", { className: "cove-icon", children: j })
|
|
6298
|
-
] })),
|
|
6298
|
+
] })), w = /* @__PURE__ */ Le(Bt, { children: [
|
|
6299
6299
|
/* @__PURE__ */ Le(Bt.Section, { title: "General", children: [
|
|
6300
6300
|
/* @__PURE__ */ D(va, { value: t.title || "", fieldName: "title", label: "Title", placeholder: "Markup Include Title", updateField: u }),
|
|
6301
6301
|
/* @__PURE__ */ D(va, { value: t.srcUrl || "", fieldName: "srcUrl", label: "Source URL", placeholder: "https://www.example.com/file.html", updateField: u })
|
|
@@ -6330,7 +6330,7 @@ const Tf = ["theme-blue", "theme-purple", "theme-brown", "theme-teal", "theme-pi
|
|
|
6330
6330
|
/* @__PURE__ */ D("button", { className: "cove-editor--toggle" + (i ? "" : " collapsed"), title: i ? "Collapse Editor" : "Expand Editor", onClick: p }),
|
|
6331
6331
|
/* @__PURE__ */ D("section", { className: "cove-editor__panel" + (i ? "" : " hidden"), children: /* @__PURE__ */ Le("div", { className: "cove-editor__panel-container", children: [
|
|
6332
6332
|
/* @__PURE__ */ D("h2", { className: "cove-editor__heading", children: "Configure Markup Include" }),
|
|
6333
|
-
/* @__PURE__ */ D("section", { className: "cove-editor__content", children:
|
|
6333
|
+
/* @__PURE__ */ D("section", { className: "cove-editor__content", children: w })
|
|
6334
6334
|
] }) }),
|
|
6335
6335
|
/* @__PURE__ */ D("div", { className: "cove-editor__content", children: /* @__PURE__ */ D("div", { className: "cove-editor__content-wrap", children: e.children }) })
|
|
6336
6336
|
] }) });
|
|
@@ -6352,15 +6352,30 @@ function ma(e, t) {
|
|
|
6352
6352
|
const r = new CustomEvent(e, { detail: t });
|
|
6353
6353
|
document.dispatchEvent(r);
|
|
6354
6354
|
}
|
|
6355
|
-
function Sf(e) {
|
|
6356
|
-
var
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6355
|
+
function Sf(e, t = null) {
|
|
6356
|
+
var p, b, v, h, x, w, C;
|
|
6357
|
+
const { legend: r } = e;
|
|
6358
|
+
let n = "", o = "";
|
|
6359
|
+
e.lineDatapointStyle === "hover" && (n = " chart-line--hover"), e.lineDatapointStyle === "always show" && (n = " chart-line--always"), e.barHasBorder === "false" && (o = " chart-bar--no-border");
|
|
6360
|
+
let a = ["cove-component__inner"], s = ["cove-component__content"];
|
|
6361
|
+
e.title && a.push("component--has-title"), e.subtext && a.push("component--has-subtext"), e.biteStyle && a.push(`bite__style--${e.biteStyle}`), (p = e.general) != null && p.isCompactStyle && a.push("component--isCompactStyle"), !((b = e.visual) != null && b.border) && s.push("no-borders"), e.visualizationType === "Spark Line" && s.push("sparkline"), (v = e.visual) != null && v.borderColorTheme && s.push("component--has-borderColorTheme"), (h = e.visual) != null && h.accent && s.push("component--has-accent"), (x = e.visual) != null && x.background && s.push("component--has-background"), (w = e.visual) != null && w.hideBackgroundColor && s.push("component--hideBackgroundColor"), e.shadow && a.push("shadow"), (C = e == null ? void 0 : e.visual) != null && C.roundedBorders && a.push("bite--has-rounded-borders");
|
|
6362
|
+
let i = {
|
|
6361
6363
|
width: "100%",
|
|
6362
6364
|
height: "100px"
|
|
6363
|
-
}
|
|
6365
|
+
};
|
|
6366
|
+
const l = () => (r == null ? void 0 : r.position) === "side" && (r != null && r.singleColumn) ? "legend-container__ul--single-column" : (r == null ? void 0 : r.position) === "bottom" && (r != null && r.singleRow) ? "single-row" : r != null && r.verticalSorted && !(r != null && r.singleRow) ? "vertical-sorted" : "", c = () => {
|
|
6367
|
+
const _ = ["legend-container__ul"];
|
|
6368
|
+
return _.push(l()), _;
|
|
6369
|
+
}, u = {
|
|
6370
|
+
aside: [`${r == null ? void 0 : r.position}`, `${l()}`, "cdcdataviz-sr-focusable", `${t}`],
|
|
6371
|
+
section: ["legend-container"],
|
|
6372
|
+
ul: c(),
|
|
6373
|
+
li: ["single-legend-item", "legend-container__li"],
|
|
6374
|
+
title: ["legend-container__title"],
|
|
6375
|
+
resetButton: ["legend-container__reset-button", "btn", "clear"],
|
|
6376
|
+
description: ["legend-container__description"]
|
|
6377
|
+
};
|
|
6378
|
+
return { innerContainerClasses: a, contentClasses: s, barBorderClass: o, lineDatapointClass: n, sparkLineStyles: i, legendClasses: u };
|
|
6364
6379
|
}
|
|
6365
6380
|
const _f = async (e) => {
|
|
6366
6381
|
let r = { ...e };
|
|
@@ -6369,17 +6384,17 @@ const _f = async (e) => {
|
|
|
6369
6384
|
let t = e;
|
|
6370
6385
|
return t = await _f(t), t;
|
|
6371
6386
|
}, Rf = ({ configUrl: e, config: t, isDashboard: r = !1, isEditor: n = !1, setConfig: o }) => {
|
|
6372
|
-
const [a,
|
|
6387
|
+
const [a, s] = ge({ ...Kt }), [i, l] = ge(!0), [c, d] = ge(""), [u, p] = ge(null), [b, v] = ge(null), [h, x] = ge(!1), w = Ne(), { innerContainerClasses: C, contentClasses: _ } = Sf(a);
|
|
6373
6388
|
let { title: y } = a;
|
|
6374
|
-
const
|
|
6389
|
+
const E = (L) => {
|
|
6375
6390
|
Object.keys(Kt).forEach((M) => {
|
|
6376
6391
|
L[M] && typeof L[M] == "object" && !Array.isArray(L[M]) && (L[M] = { ...Kt[M], ...L[M] });
|
|
6377
|
-
}), L.runtime = {}, L.runtime.uniqueId = Date.now(), L.runtime.editorErrorMessage = "",
|
|
6392
|
+
}), L.runtime = {}, L.runtime.uniqueId = Date.now(), L.runtime.editorErrorMessage = "", s(L);
|
|
6378
6393
|
}, Y = tr(async () => {
|
|
6379
6394
|
let L = t || await (await fetch(e)).json(), M = L.data ?? {};
|
|
6380
6395
|
L.dataUrl && (M = await (await fetch(L.dataUrl)).json()), L.data = M;
|
|
6381
6396
|
const U = { ...await Af(L) };
|
|
6382
|
-
|
|
6397
|
+
E({ ...Kt, ...U }), l(!1);
|
|
6383
6398
|
}, []);
|
|
6384
6399
|
Ce(() => {
|
|
6385
6400
|
if (u) {
|
|
@@ -6415,15 +6430,15 @@ const _f = async (e) => {
|
|
|
6415
6430
|
Ce(() => {
|
|
6416
6431
|
Y().catch((L) => console.log(L)), ma("cove_loaded", { loadConfigHasRun: !0 });
|
|
6417
6432
|
}, []), Ce(() => {
|
|
6418
|
-
a && !h &&
|
|
6419
|
-
}, [a,
|
|
6433
|
+
a && !h && w && (ma("cove_loaded", { config: a }), x(!0));
|
|
6434
|
+
}, [a, w]), Ce(() => {
|
|
6420
6435
|
Y().catch((L) => console.log(L));
|
|
6421
6436
|
}, [t == null ? void 0 : t.data]), Ce(() => {
|
|
6422
6437
|
j().catch((L) => console.log(L));
|
|
6423
6438
|
}, [j]);
|
|
6424
6439
|
let $ = /* @__PURE__ */ D(Hc, {}), Z = ["markup-include"];
|
|
6425
6440
|
if (i === !1) {
|
|
6426
|
-
let L = /* @__PURE__ */ Le("div", { className: Z.join(" "), ref:
|
|
6441
|
+
let L = /* @__PURE__ */ Le("div", { className: Z.join(" "), ref: w, children: [
|
|
6427
6442
|
y && /* @__PURE__ */ Le("header", { className: `cove-component__header ${a.theme}`, "aria-hidden": "true", children: [
|
|
6428
6443
|
vt(y),
|
|
6429
6444
|
" ",
|
|
@@ -6439,7 +6454,7 @@ const _f = async (e) => {
|
|
|
6439
6454
|
!n && L
|
|
6440
6455
|
] });
|
|
6441
6456
|
}
|
|
6442
|
-
return /* @__PURE__ */ D(ui, { component: "CdcMarkupInclude", children: /* @__PURE__ */ D(fi.Provider, { value: { config: a, updateConfig:
|
|
6457
|
+
return /* @__PURE__ */ D(ui, { component: "CdcMarkupInclude", children: /* @__PURE__ */ D(fi.Provider, { value: { config: a, updateConfig: E, loading: i, data: a.data, setParentConfig: o, isDashboard: r }, children: $ }) });
|
|
6443
6458
|
};
|
|
6444
6459
|
export {
|
|
6445
6460
|
Rf as default
|