react-luminus-components 1.3.137 → 1.3.139
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/.vite/manifest.json +67 -67
- package/dist/{FullScreenContainer-QZL25nwN.cjs → FullScreenContainer-CVKbJze4.cjs} +1 -1
- package/dist/{FullScreenContainer-Cc46PVe2.js → FullScreenContainer-fopp-NKw.js} +1 -1
- package/dist/{Loading-CA7u4kBy.js → Loading-D-8onCUM.js} +1 -1
- package/dist/{Loading-CMt3VG4t.cjs → Loading-sjvHc7Sa.cjs} +1 -1
- package/dist/{SimpleTooltip--ds7sp_S.cjs → SimpleTooltip-BZjQ0AEv.cjs} +1 -1
- package/dist/{SimpleTooltip-Bs5BLZ5t.js → SimpleTooltip-C2_3k1tX.js} +1 -1
- package/dist/components/Flexmonster/Flexmonster.d.ts +2 -1
- package/dist/components/Flexmonster/ReportPage.d.ts +2 -1
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +1 -1
- package/dist/components/Form/TextInput/TextInput.d.ts +1 -1
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +1 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +5 -5
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +5 -5
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +1400 -1399
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -0
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -0
- package/dist/{nivo-bar.es-DBTZjPsB.cjs → nivo-bar.es-COxBgUgA.cjs} +15 -15
- package/dist/{nivo-bar.es-Dum3I77T.js → nivo-bar.es-s7vl_gHE.js} +949 -949
- package/dist/{searchUtils-B5DzQW59.js → searchUtils-C9nt8MAB.js} +1 -1
- package/dist/{searchUtils-NVr-jBP1.cjs → searchUtils-CWdC2-w5.cjs} +1 -1
- package/dist/{useClipboard-BotlCgQ1.js → useClipboard-CGx1yhm_.js} +1 -1
- package/dist/{useClipboard-CMfba8aV.cjs → useClipboard-x3q2qkcm.cjs} +1 -1
- package/dist/{useGetApiData-DzpRmCDp.js → useGetApiData-HIvldLKx.js} +1 -1
- package/dist/{useGetApiData-DP6fnE--.cjs → useGetApiData-RRfvB5LW.cjs} +1 -1
- package/dist/{usePermissions-DLkjF3C2.js → usePermissions-C--KXiM9.js} +1 -1
- package/dist/{usePermissions-DAmFUO7q.cjs → usePermissions-CymKuv5R.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as oe from "react";
|
|
2
|
-
import ft, { useRef as we, useState as Ue, useCallback as
|
|
2
|
+
import ft, { useRef as we, useState as Ue, useCallback as z, useContext as le, useMemo as ae, useEffect as ke, useLayoutEffect as $f, useReducer as Uv, createContext as rn, cloneElement as Yo, forwardRef as $a, useImperativeHandle as G_, memo as Ct, createElement as mn, Fragment as dd, isValidElement as Z_ } from "react";
|
|
3
3
|
import { InteractionRequiredAuthError as K_, InteractionStatus as X_ } from "@azure/msal-browser";
|
|
4
4
|
import { Link as Lc } from "react-router-dom";
|
|
5
5
|
import { useMsal as J_, useIsAuthenticated as Q_ } from "@azure/msal-react";
|
|
@@ -54,17 +54,17 @@ function rw() {
|
|
|
54
54
|
var K = m && O[m] || O[p];
|
|
55
55
|
return typeof K == "function" ? K : null;
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
58
|
function _(O) {
|
|
59
59
|
{
|
|
60
60
|
for (var K = arguments.length, H = new Array(K > 1 ? K - 1 : 0), X = 1; X < K; X++)
|
|
61
61
|
H[X - 1] = arguments[X];
|
|
62
|
-
|
|
62
|
+
b("error", O, H);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function b(O, K, H) {
|
|
66
66
|
{
|
|
67
|
-
var X =
|
|
67
|
+
var X = y.ReactDebugCurrentFrame, pe = X.getStackAddendum();
|
|
68
68
|
pe !== "" && (K += "%s", H = H.concat([pe]));
|
|
69
69
|
var be = H.map(function(fe) {
|
|
70
70
|
return String(fe);
|
|
@@ -81,14 +81,14 @@ function rw() {
|
|
|
81
81
|
// with.
|
|
82
82
|
O.$$typeof === P || O.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function k(O, K, H) {
|
|
85
85
|
var X = O.displayName;
|
|
86
86
|
if (X)
|
|
87
87
|
return X;
|
|
88
88
|
var pe = K.displayName || K.name || "";
|
|
89
89
|
return pe !== "" ? H + "(" + pe + ")" : H;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function D(O) {
|
|
92
92
|
return O.displayName || "Context";
|
|
93
93
|
}
|
|
94
94
|
function C(O) {
|
|
@@ -116,12 +116,12 @@ function rw() {
|
|
|
116
116
|
switch (O.$$typeof) {
|
|
117
117
|
case s:
|
|
118
118
|
var K = O;
|
|
119
|
-
return
|
|
119
|
+
return D(K) + ".Consumer";
|
|
120
120
|
case o:
|
|
121
121
|
var H = O;
|
|
122
|
-
return
|
|
122
|
+
return D(H._context) + ".Provider";
|
|
123
123
|
case u:
|
|
124
|
-
return
|
|
124
|
+
return k(O, O.render, "ForwardRef");
|
|
125
125
|
case d:
|
|
126
126
|
var X = O.displayName || null;
|
|
127
127
|
return X !== null ? X : C(O.type) || "Memo";
|
|
@@ -136,14 +136,14 @@ function rw() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var A = Object.assign, I = 0, L,
|
|
139
|
+
var A = Object.assign, I = 0, L, W, q, N, j, B, Z;
|
|
140
140
|
function ne() {
|
|
141
141
|
}
|
|
142
142
|
ne.__reactDisabledLog = !0;
|
|
143
143
|
function Y() {
|
|
144
144
|
{
|
|
145
145
|
if (I === 0) {
|
|
146
|
-
L = console.log,
|
|
146
|
+
L = console.log, W = console.info, q = console.warn, N = console.error, j = console.group, B = console.groupCollapsed, Z = console.groupEnd;
|
|
147
147
|
var O = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -176,13 +176,13 @@ function rw() {
|
|
|
176
176
|
value: L
|
|
177
177
|
}),
|
|
178
178
|
info: A({}, O, {
|
|
179
|
-
value:
|
|
179
|
+
value: W
|
|
180
180
|
}),
|
|
181
181
|
warn: A({}, O, {
|
|
182
182
|
value: q
|
|
183
183
|
}),
|
|
184
184
|
error: A({}, O, {
|
|
185
|
-
value:
|
|
185
|
+
value: N
|
|
186
186
|
}),
|
|
187
187
|
group: A({}, O, {
|
|
188
188
|
value: j
|
|
@@ -198,7 +198,7 @@ function rw() {
|
|
|
198
198
|
I < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var G =
|
|
201
|
+
var G = y.ReactCurrentDispatcher, J;
|
|
202
202
|
function re(O, K, H) {
|
|
203
203
|
{
|
|
204
204
|
if (J === void 0)
|
|
@@ -324,7 +324,7 @@ function rw() {
|
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var De = Object.prototype.hasOwnProperty, Fe = {}, yt =
|
|
327
|
+
var De = Object.prototype.hasOwnProperty, Fe = {}, yt = y.ReactDebugCurrentFrame;
|
|
328
328
|
function wt(O) {
|
|
329
329
|
if (O) {
|
|
330
330
|
var K = O._owner, H = he(O.type, O._source, K ? K.type : null);
|
|
@@ -375,7 +375,7 @@ function rw() {
|
|
|
375
375
|
if (kt(O))
|
|
376
376
|
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(O)), ut(O);
|
|
377
377
|
}
|
|
378
|
-
var nt =
|
|
378
|
+
var nt = y.ReactCurrentOwner, At = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
@@ -473,7 +473,7 @@ function rw() {
|
|
|
473
473
|
return on(O, me, Ce, pe, X, nt.current, fe);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var Ne =
|
|
476
|
+
var Ne = y.ReactCurrentOwner, He = y.ReactDebugCurrentFrame;
|
|
477
477
|
function xt(O) {
|
|
478
478
|
if (O) {
|
|
479
479
|
var K = O._owner, H = he(O.type, O._source, K ? K.type : null);
|
|
@@ -1839,28 +1839,28 @@ function u4(e, t, n) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
const l4 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, d4 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, f4 = /^'([^]*?)'?$/, h4 = /''/g, p4 = /[a-zA-Z]/;
|
|
1841
1841
|
function Gv(e, t, n) {
|
|
1842
|
-
var l, d, f, h, m, p, g,
|
|
1843
|
-
const r = Uc(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Kw, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
1842
|
+
var l, d, f, h, m, p, g, y;
|
|
1843
|
+
const r = Uc(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Kw, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((y = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : y.weekStartsOn) ?? 0, s = Dn(e);
|
|
1844
1844
|
if (!gw(s))
|
|
1845
1845
|
throw new RangeError("Invalid time value");
|
|
1846
1846
|
let u = t.match(d4).map((_) => {
|
|
1847
|
-
const
|
|
1848
|
-
if (
|
|
1849
|
-
const w = n4[
|
|
1847
|
+
const b = _[0];
|
|
1848
|
+
if (b === "p" || b === "P") {
|
|
1849
|
+
const w = n4[b];
|
|
1850
1850
|
return w(_, a.formatLong);
|
|
1851
1851
|
}
|
|
1852
1852
|
return _;
|
|
1853
1853
|
}).join("").match(l4).map((_) => {
|
|
1854
1854
|
if (_ === "''")
|
|
1855
1855
|
return { isToken: !1, value: "'" };
|
|
1856
|
-
const
|
|
1857
|
-
if (
|
|
1856
|
+
const b = _[0];
|
|
1857
|
+
if (b === "'")
|
|
1858
1858
|
return { isToken: !1, value: m4(_) };
|
|
1859
|
-
if (Yp[
|
|
1859
|
+
if (Yp[b])
|
|
1860
1860
|
return { isToken: !0, value: _ };
|
|
1861
|
-
if (
|
|
1861
|
+
if (b.match(p4))
|
|
1862
1862
|
throw new RangeError(
|
|
1863
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1863
|
+
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1864
1864
|
);
|
|
1865
1865
|
return { isToken: !1, value: _ };
|
|
1866
1866
|
});
|
|
@@ -1872,10 +1872,10 @@ function Gv(e, t, n) {
|
|
|
1872
1872
|
};
|
|
1873
1873
|
return u.map((_) => {
|
|
1874
1874
|
if (!_.isToken) return _.value;
|
|
1875
|
-
const
|
|
1876
|
-
(!(n != null && n.useAdditionalWeekYearTokens) && s4(
|
|
1877
|
-
const w = Yp[
|
|
1878
|
-
return w(s,
|
|
1875
|
+
const b = _.value;
|
|
1876
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && s4(b) || !(n != null && n.useAdditionalDayOfYearTokens) && o4(b)) && c4(b, t, String(e));
|
|
1877
|
+
const w = Yp[b[0]];
|
|
1878
|
+
return w(s, b, a.localize, c);
|
|
1879
1879
|
}).join("");
|
|
1880
1880
|
}
|
|
1881
1881
|
function m4(e) {
|
|
@@ -2057,7 +2057,7 @@ function P4(e, t) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
function Xv(e, t, n) {
|
|
2059
2059
|
var r = we(e !== void 0), a = Ue(t), i = a[0], o = a[1], s = e !== void 0, u = r.current;
|
|
2060
|
-
return r.current = s, !s && u && i !== t && o(t), [s ? e : i,
|
|
2060
|
+
return r.current = s, !s && u && i !== t && o(t), [s ? e : i, z(function(c) {
|
|
2061
2061
|
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++)
|
|
2062
2062
|
d[f - 1] = arguments[f];
|
|
2063
2063
|
n && n.apply(void 0, [c].concat(d)), o(c);
|
|
@@ -2150,8 +2150,8 @@ var Qp;
|
|
|
2150
2150
|
function G4() {
|
|
2151
2151
|
if (Qp) return Ze;
|
|
2152
2152
|
Qp = 1;
|
|
2153
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117,
|
|
2154
|
-
function
|
|
2153
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
2154
|
+
function b(x) {
|
|
2155
2155
|
if (typeof x == "object" && x !== null) {
|
|
2156
2156
|
var T = x.$$typeof;
|
|
2157
2157
|
switch (T) {
|
|
@@ -2182,35 +2182,35 @@ function G4() {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
function w(x) {
|
|
2185
|
-
return
|
|
2185
|
+
return b(x) === c;
|
|
2186
2186
|
}
|
|
2187
2187
|
return Ze.AsyncMode = u, Ze.ConcurrentMode = c, Ze.ContextConsumer = s, Ze.ContextProvider = o, Ze.Element = t, Ze.ForwardRef = l, Ze.Fragment = r, Ze.Lazy = m, Ze.Memo = h, Ze.Portal = n, Ze.Profiler = i, Ze.StrictMode = a, Ze.Suspense = d, Ze.isAsyncMode = function(x) {
|
|
2188
|
-
return w(x) ||
|
|
2188
|
+
return w(x) || b(x) === u;
|
|
2189
2189
|
}, Ze.isConcurrentMode = w, Ze.isContextConsumer = function(x) {
|
|
2190
|
-
return
|
|
2190
|
+
return b(x) === s;
|
|
2191
2191
|
}, Ze.isContextProvider = function(x) {
|
|
2192
|
-
return
|
|
2192
|
+
return b(x) === o;
|
|
2193
2193
|
}, Ze.isElement = function(x) {
|
|
2194
2194
|
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
2195
2195
|
}, Ze.isForwardRef = function(x) {
|
|
2196
|
-
return
|
|
2196
|
+
return b(x) === l;
|
|
2197
2197
|
}, Ze.isFragment = function(x) {
|
|
2198
|
-
return
|
|
2198
|
+
return b(x) === r;
|
|
2199
2199
|
}, Ze.isLazy = function(x) {
|
|
2200
|
-
return
|
|
2200
|
+
return b(x) === m;
|
|
2201
2201
|
}, Ze.isMemo = function(x) {
|
|
2202
|
-
return
|
|
2202
|
+
return b(x) === h;
|
|
2203
2203
|
}, Ze.isPortal = function(x) {
|
|
2204
|
-
return
|
|
2204
|
+
return b(x) === n;
|
|
2205
2205
|
}, Ze.isProfiler = function(x) {
|
|
2206
|
-
return
|
|
2206
|
+
return b(x) === i;
|
|
2207
2207
|
}, Ze.isStrictMode = function(x) {
|
|
2208
|
-
return
|
|
2208
|
+
return b(x) === a;
|
|
2209
2209
|
}, Ze.isSuspense = function(x) {
|
|
2210
|
-
return
|
|
2210
|
+
return b(x) === d;
|
|
2211
2211
|
}, Ze.isValidElementType = function(x) {
|
|
2212
|
-
return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === f || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === h || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof ===
|
|
2213
|
-
}, Ze.typeOf =
|
|
2212
|
+
return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === f || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === h || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof === y || x.$$typeof === _ || x.$$typeof === p);
|
|
2213
|
+
}, Ze.typeOf = b, Ze;
|
|
2214
2214
|
}
|
|
2215
2215
|
var Ke = {};
|
|
2216
2216
|
/** @license React v16.13.1
|
|
@@ -2224,10 +2224,10 @@ var Ke = {};
|
|
|
2224
2224
|
var em;
|
|
2225
2225
|
function Z4() {
|
|
2226
2226
|
return em || (em = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2227
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117,
|
|
2228
|
-
function
|
|
2227
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
2228
|
+
function b(S) {
|
|
2229
2229
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2230
|
-
S === r || S === c || S === i || S === a || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === h || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof ===
|
|
2230
|
+
S === r || S === c || S === i || S === a || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === h || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof === y || S.$$typeof === _ || S.$$typeof === p);
|
|
2231
2231
|
}
|
|
2232
2232
|
function w(S) {
|
|
2233
2233
|
if (typeof S == "object" && S !== null) {
|
|
@@ -2261,8 +2261,8 @@ function Z4() {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
|
-
var x = u, T = c, E = s, M = o, P = t, R = l,
|
|
2265
|
-
function
|
|
2264
|
+
var x = u, T = c, E = s, M = o, P = t, R = l, k = r, D = m, C = h, A = n, I = i, L = a, W = d, q = !1;
|
|
2265
|
+
function N(S) {
|
|
2266
2266
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), j(S) || w(S) === u;
|
|
2267
2267
|
}
|
|
2268
2268
|
function j(S) {
|
|
@@ -2301,7 +2301,7 @@ function Z4() {
|
|
|
2301
2301
|
function ie(S) {
|
|
2302
2302
|
return w(S) === d;
|
|
2303
2303
|
}
|
|
2304
|
-
Ke.AsyncMode = x, Ke.ConcurrentMode = T, Ke.ContextConsumer = E, Ke.ContextProvider = M, Ke.Element = P, Ke.ForwardRef = R, Ke.Fragment =
|
|
2304
|
+
Ke.AsyncMode = x, Ke.ConcurrentMode = T, Ke.ContextConsumer = E, Ke.ContextProvider = M, Ke.Element = P, Ke.ForwardRef = R, Ke.Fragment = k, Ke.Lazy = D, Ke.Memo = C, Ke.Portal = A, Ke.Profiler = I, Ke.StrictMode = L, Ke.Suspense = W, Ke.isAsyncMode = N, Ke.isConcurrentMode = j, Ke.isContextConsumer = B, Ke.isContextProvider = Z, Ke.isElement = ne, Ke.isForwardRef = Y, Ke.isFragment = Q, Ke.isLazy = G, Ke.isMemo = J, Ke.isPortal = re, Ke.isProfiler = F, Ke.isStrictMode = V, Ke.isSuspense = ie, Ke.isValidElementType = b, Ke.typeOf = w;
|
|
2305
2305
|
}()), Ke;
|
|
2306
2306
|
}
|
|
2307
2307
|
var tm;
|
|
@@ -2444,16 +2444,16 @@ function J4() {
|
|
|
2444
2444
|
return B;
|
|
2445
2445
|
}
|
|
2446
2446
|
var f = "<<anonymous>>", h = {
|
|
2447
|
-
array:
|
|
2448
|
-
bigint:
|
|
2449
|
-
bool:
|
|
2450
|
-
func:
|
|
2451
|
-
number:
|
|
2452
|
-
object:
|
|
2453
|
-
string:
|
|
2454
|
-
symbol:
|
|
2447
|
+
array: y("array"),
|
|
2448
|
+
bigint: y("bigint"),
|
|
2449
|
+
bool: y("boolean"),
|
|
2450
|
+
func: y("function"),
|
|
2451
|
+
number: y("number"),
|
|
2452
|
+
object: y("object"),
|
|
2453
|
+
string: y("string"),
|
|
2454
|
+
symbol: y("symbol"),
|
|
2455
2455
|
any: _(),
|
|
2456
|
-
arrayOf:
|
|
2456
|
+
arrayOf: b,
|
|
2457
2457
|
element: w(),
|
|
2458
2458
|
elementType: x(),
|
|
2459
2459
|
instanceOf: T,
|
|
@@ -2461,7 +2461,7 @@ function J4() {
|
|
|
2461
2461
|
objectOf: M,
|
|
2462
2462
|
oneOf: E,
|
|
2463
2463
|
oneOfType: P,
|
|
2464
|
-
shape:
|
|
2464
|
+
shape: D,
|
|
2465
2465
|
exact: C
|
|
2466
2466
|
};
|
|
2467
2467
|
function m(j, B) {
|
|
@@ -2494,11 +2494,11 @@ function J4() {
|
|
|
2494
2494
|
var Y = ne.bind(null, !1);
|
|
2495
2495
|
return Y.isRequired = ne.bind(null, !0), Y;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function y(j) {
|
|
2498
2498
|
function B(Z, ne, Y, Q, G, J) {
|
|
2499
2499
|
var re = Z[ne], F = L(re);
|
|
2500
2500
|
if (F !== j) {
|
|
2501
|
-
var V =
|
|
2501
|
+
var V = W(re);
|
|
2502
2502
|
return new p(
|
|
2503
2503
|
"Invalid " + Q + " `" + G + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + j + "`."),
|
|
2504
2504
|
{ expectedType: j }
|
|
@@ -2511,7 +2511,7 @@ function J4() {
|
|
|
2511
2511
|
function _() {
|
|
2512
2512
|
return g(o);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function b(j) {
|
|
2515
2515
|
function B(Z, ne, Y, Q, G) {
|
|
2516
2516
|
if (typeof j != "function")
|
|
2517
2517
|
return new p("Property `" + G + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -2554,7 +2554,7 @@ function J4() {
|
|
|
2554
2554
|
function T(j) {
|
|
2555
2555
|
function B(Z, ne, Y, Q, G) {
|
|
2556
2556
|
if (!(Z[ne] instanceof j)) {
|
|
2557
|
-
var J = j.name || f, re =
|
|
2557
|
+
var J = j.name || f, re = N(Z[ne]);
|
|
2558
2558
|
return new p("Invalid " + Q + " `" + G + "` of type " + ("`" + re + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`."));
|
|
2559
2559
|
}
|
|
2560
2560
|
return null;
|
|
@@ -2571,7 +2571,7 @@ function J4() {
|
|
|
2571
2571
|
if (m(J, j[re]))
|
|
2572
2572
|
return null;
|
|
2573
2573
|
var F = JSON.stringify(j, function(ie, S) {
|
|
2574
|
-
var ye =
|
|
2574
|
+
var ye = W(S);
|
|
2575
2575
|
return ye === "symbol" ? String(S) : S;
|
|
2576
2576
|
});
|
|
2577
2577
|
return new p("Invalid " + Q + " `" + G + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + F + "."));
|
|
@@ -2623,12 +2623,12 @@ function J4() {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
return g(j);
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function k(j, B, Z, ne, Y) {
|
|
2627
2627
|
return new p(
|
|
2628
2628
|
(j || "React class") + ": " + B + " type `" + Z + "." + ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
2629
2629
|
);
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function D(j) {
|
|
2632
2632
|
function B(Z, ne, Y, Q, G) {
|
|
2633
2633
|
var J = Z[ne], re = L(J);
|
|
2634
2634
|
if (re !== "object")
|
|
@@ -2636,7 +2636,7 @@ function J4() {
|
|
|
2636
2636
|
for (var F in j) {
|
|
2637
2637
|
var V = j[F];
|
|
2638
2638
|
if (typeof V != "function")
|
|
2639
|
-
return
|
|
2639
|
+
return k(Y, Q, G, F, W(V));
|
|
2640
2640
|
var ie = V(J, F, Y, Q, G + "." + F, n);
|
|
2641
2641
|
if (ie)
|
|
2642
2642
|
return ie;
|
|
@@ -2654,7 +2654,7 @@ function J4() {
|
|
|
2654
2654
|
for (var V in F) {
|
|
2655
2655
|
var ie = j[V];
|
|
2656
2656
|
if (r(j, V) && typeof ie != "function")
|
|
2657
|
-
return
|
|
2657
|
+
return k(Y, Q, G, V, W(ie));
|
|
2658
2658
|
if (!ie)
|
|
2659
2659
|
return new p(
|
|
2660
2660
|
"Invalid " + Q + " `" + G + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(Z[ne], null, " ") + `
|
|
@@ -2708,7 +2708,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
2708
2708
|
var B = typeof j;
|
|
2709
2709
|
return Array.isArray(j) ? "array" : j instanceof RegExp ? "object" : I(B, j) ? "symbol" : B;
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function W(j) {
|
|
2712
2712
|
if (typeof j > "u" || j === null)
|
|
2713
2713
|
return "" + j;
|
|
2714
2714
|
var B = L(j);
|
|
@@ -2721,7 +2721,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
2721
2721
|
return B;
|
|
2722
2722
|
}
|
|
2723
2723
|
function q(j) {
|
|
2724
|
-
var B =
|
|
2724
|
+
var B = W(j);
|
|
2725
2725
|
switch (B) {
|
|
2726
2726
|
case "array":
|
|
2727
2727
|
case "object":
|
|
@@ -2734,7 +2734,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
2734
2734
|
return B;
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2737
|
+
function N(j) {
|
|
2738
2738
|
return !j.constructor || !j.constructor.name ? f : j.constructor.name;
|
|
2739
2739
|
}
|
|
2740
2740
|
return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -2794,25 +2794,25 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2794
2794
|
} else
|
|
2795
2795
|
gd.exports = Q4()();
|
|
2796
2796
|
var n3 = gd.exports;
|
|
2797
|
-
const
|
|
2797
|
+
const $ = /* @__PURE__ */ Ft(n3), cm = {
|
|
2798
2798
|
disabled: !1
|
|
2799
2799
|
};
|
|
2800
|
-
var r3 = process.env.NODE_ENV !== "production" ?
|
|
2801
|
-
enter:
|
|
2802
|
-
exit:
|
|
2803
|
-
appear:
|
|
2800
|
+
var r3 = process.env.NODE_ENV !== "production" ? $.oneOfType([$.number, $.shape({
|
|
2801
|
+
enter: $.number,
|
|
2802
|
+
exit: $.number,
|
|
2803
|
+
appear: $.number
|
|
2804
2804
|
}).isRequired]) : null;
|
|
2805
|
-
process.env.NODE_ENV !== "production" &&
|
|
2806
|
-
enter:
|
|
2807
|
-
exit:
|
|
2808
|
-
active:
|
|
2809
|
-
}),
|
|
2810
|
-
enter:
|
|
2811
|
-
enterDone:
|
|
2812
|
-
enterActive:
|
|
2813
|
-
exit:
|
|
2814
|
-
exitDone:
|
|
2815
|
-
exitActive:
|
|
2805
|
+
process.env.NODE_ENV !== "production" && $.oneOfType([$.string, $.shape({
|
|
2806
|
+
enter: $.string,
|
|
2807
|
+
exit: $.string,
|
|
2808
|
+
active: $.string
|
|
2809
|
+
}), $.shape({
|
|
2810
|
+
enter: $.string,
|
|
2811
|
+
enterDone: $.string,
|
|
2812
|
+
enterActive: $.string,
|
|
2813
|
+
exit: $.string,
|
|
2814
|
+
exitDone: $.string,
|
|
2815
|
+
exitActive: $.string
|
|
2816
2816
|
})]);
|
|
2817
2817
|
const ey = ft.createContext(null);
|
|
2818
2818
|
var a3 = function(t) {
|
|
@@ -2958,10 +2958,10 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2958
2958
|
* (see
|
|
2959
2959
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
2960
2960
|
*/
|
|
2961
|
-
nodeRef:
|
|
2962
|
-
current: typeof Element > "u" ?
|
|
2961
|
+
nodeRef: $.shape({
|
|
2962
|
+
current: typeof Element > "u" ? $.any : function(e, t, n, r, a, i) {
|
|
2963
2963
|
var o = e[t];
|
|
2964
|
-
return
|
|
2964
|
+
return $.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(e, t, n, r, a, i);
|
|
2965
2965
|
}
|
|
2966
2966
|
}),
|
|
2967
2967
|
/**
|
|
@@ -2978,23 +2978,23 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
2978
2978
|
* </Transition>
|
|
2979
2979
|
* ```
|
|
2980
2980
|
*/
|
|
2981
|
-
children:
|
|
2981
|
+
children: $.oneOfType([$.func.isRequired, $.element.isRequired]).isRequired,
|
|
2982
2982
|
/**
|
|
2983
2983
|
* Show the component; triggers the enter or exit states
|
|
2984
2984
|
*/
|
|
2985
|
-
in:
|
|
2985
|
+
in: $.bool,
|
|
2986
2986
|
/**
|
|
2987
2987
|
* By default the child component is mounted immediately along with
|
|
2988
2988
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
2989
2989
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
2990
2990
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
2991
2991
|
*/
|
|
2992
|
-
mountOnEnter:
|
|
2992
|
+
mountOnEnter: $.bool,
|
|
2993
2993
|
/**
|
|
2994
2994
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
2995
2995
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
2996
2996
|
*/
|
|
2997
|
-
unmountOnExit:
|
|
2997
|
+
unmountOnExit: $.bool,
|
|
2998
2998
|
/**
|
|
2999
2999
|
* By default the child component does not perform the enter transition when
|
|
3000
3000
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -3006,15 +3006,15 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3006
3006
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
3007
3007
|
* > differently.
|
|
3008
3008
|
*/
|
|
3009
|
-
appear:
|
|
3009
|
+
appear: $.bool,
|
|
3010
3010
|
/**
|
|
3011
3011
|
* Enable or disable enter transitions.
|
|
3012
3012
|
*/
|
|
3013
|
-
enter:
|
|
3013
|
+
enter: $.bool,
|
|
3014
3014
|
/**
|
|
3015
3015
|
* Enable or disable exit transitions.
|
|
3016
3016
|
*/
|
|
3017
|
-
exit:
|
|
3017
|
+
exit: $.bool,
|
|
3018
3018
|
/**
|
|
3019
3019
|
* The duration of the transition, in milliseconds.
|
|
3020
3020
|
* Required unless `addEndListener` is provided.
|
|
@@ -3062,7 +3062,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3062
3062
|
* }}
|
|
3063
3063
|
* ```
|
|
3064
3064
|
*/
|
|
3065
|
-
addEndListener:
|
|
3065
|
+
addEndListener: $.func,
|
|
3066
3066
|
/**
|
|
3067
3067
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
3068
3068
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -3071,7 +3071,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3071
3071
|
*
|
|
3072
3072
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
3073
3073
|
*/
|
|
3074
|
-
onEnter:
|
|
3074
|
+
onEnter: $.func,
|
|
3075
3075
|
/**
|
|
3076
3076
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
3077
3077
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -3080,7 +3080,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3080
3080
|
*
|
|
3081
3081
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
3082
3082
|
*/
|
|
3083
|
-
onEntering:
|
|
3083
|
+
onEntering: $.func,
|
|
3084
3084
|
/**
|
|
3085
3085
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
3086
3086
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -3089,7 +3089,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3089
3089
|
*
|
|
3090
3090
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
3091
3091
|
*/
|
|
3092
|
-
onEntered:
|
|
3092
|
+
onEntered: $.func,
|
|
3093
3093
|
/**
|
|
3094
3094
|
* Callback fired before the "exiting" status is applied.
|
|
3095
3095
|
*
|
|
@@ -3097,7 +3097,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3097
3097
|
*
|
|
3098
3098
|
* @type Function(node: HtmlElement) -> void
|
|
3099
3099
|
*/
|
|
3100
|
-
onExit:
|
|
3100
|
+
onExit: $.func,
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Callback fired after the "exiting" status is applied.
|
|
3103
3103
|
*
|
|
@@ -3105,7 +3105,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3105
3105
|
*
|
|
3106
3106
|
* @type Function(node: HtmlElement) -> void
|
|
3107
3107
|
*/
|
|
3108
|
-
onExiting:
|
|
3108
|
+
onExiting: $.func,
|
|
3109
3109
|
/**
|
|
3110
3110
|
* Callback fired after the "exited" status is applied.
|
|
3111
3111
|
*
|
|
@@ -3113,7 +3113,7 @@ _r.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3113
3113
|
*
|
|
3114
3114
|
* @type Function(node: HtmlElement) -> void
|
|
3115
3115
|
*/
|
|
3116
|
-
onExited:
|
|
3116
|
+
onExited: $.func
|
|
3117
3117
|
} : {};
|
|
3118
3118
|
function Na() {
|
|
3119
3119
|
}
|
|
@@ -3241,16 +3241,16 @@ const d3 = /* @__PURE__ */ ft.forwardRef(({
|
|
|
3241
3241
|
f(Gs(T));
|
|
3242
3242
|
}, m = (T) => (E) => {
|
|
3243
3243
|
T && d.current && T(d.current, E);
|
|
3244
|
-
}, p =
|
|
3244
|
+
}, p = z(m(e), [e]), g = z(m(t), [t]), y = z(m(n), [n]), _ = z(m(r), [r]), b = z(m(a), [a]), w = z(m(i), [i]), x = z(m(o), [o]);
|
|
3245
3245
|
return /* @__PURE__ */ v.jsx(_r, {
|
|
3246
3246
|
ref: l,
|
|
3247
3247
|
...c,
|
|
3248
3248
|
onEnter: p,
|
|
3249
|
-
onEntered:
|
|
3249
|
+
onEntered: y,
|
|
3250
3250
|
onEntering: g,
|
|
3251
3251
|
onExit: _,
|
|
3252
3252
|
onExited: w,
|
|
3253
|
-
onExiting:
|
|
3253
|
+
onExiting: b,
|
|
3254
3254
|
addEndListener: x,
|
|
3255
3255
|
nodeRef: d,
|
|
3256
3256
|
children: typeof s == "function" ? (T, E) => (
|
|
@@ -3272,7 +3272,7 @@ function f3(e) {
|
|
|
3272
3272
|
}
|
|
3273
3273
|
function Et(e) {
|
|
3274
3274
|
const t = f3(e);
|
|
3275
|
-
return
|
|
3275
|
+
return z(function(...n) {
|
|
3276
3276
|
return t.current && t.current(...n);
|
|
3277
3277
|
}, [t]);
|
|
3278
3278
|
}
|
|
@@ -3438,7 +3438,7 @@ const T3 = {
|
|
|
3438
3438
|
unmountOnExit: !1,
|
|
3439
3439
|
appear: !1,
|
|
3440
3440
|
...a
|
|
3441
|
-
}, s =
|
|
3441
|
+
}, s = z((l, d) => {
|
|
3442
3442
|
u3(l), r == null || r(l, d);
|
|
3443
3443
|
}, [r]), {
|
|
3444
3444
|
major: u
|
|
@@ -3458,15 +3458,15 @@ const T3 = {
|
|
|
3458
3458
|
co.displayName = "Fade";
|
|
3459
3459
|
const S3 = {
|
|
3460
3460
|
/** An accessible label indicating the relevant information about the Close Button. */
|
|
3461
|
-
"aria-label":
|
|
3461
|
+
"aria-label": $.string,
|
|
3462
3462
|
/** A callback fired after the Close Button is clicked. */
|
|
3463
|
-
onClick:
|
|
3463
|
+
onClick: $.func,
|
|
3464
3464
|
/**
|
|
3465
3465
|
* Render different color variant for the button.
|
|
3466
3466
|
*
|
|
3467
3467
|
* Omitting this will render the default dark color.
|
|
3468
3468
|
*/
|
|
3469
|
-
variant:
|
|
3469
|
+
variant: $.oneOf(["white"])
|
|
3470
3470
|
}, Nf = /* @__PURE__ */ oe.forwardRef(({
|
|
3471
3471
|
className: e,
|
|
3472
3472
|
variant: t,
|
|
@@ -3590,7 +3590,7 @@ function Cr(e, t) {
|
|
|
3590
3590
|
}
|
|
3591
3591
|
function M3(e, t, n) {
|
|
3592
3592
|
const r = we(e !== void 0), [a, i] = Ue(t), o = e !== void 0, s = r.current;
|
|
3593
|
-
return r.current = o, !o && s && a !== t && i(t), [o ? e : a,
|
|
3593
|
+
return r.current = o, !o && s && a !== t && i(t), [o ? e : a, z((...u) => {
|
|
3594
3594
|
const [c, ...l] = u;
|
|
3595
3595
|
let d = n == null ? void 0 : n(c, ...l);
|
|
3596
3596
|
return i(c), d;
|
|
@@ -3655,7 +3655,7 @@ function eo(e, t) {
|
|
|
3655
3655
|
}
|
|
3656
3656
|
function R3(e) {
|
|
3657
3657
|
const t = If();
|
|
3658
|
-
return [e[0],
|
|
3658
|
+
return [e[0], z((n) => {
|
|
3659
3659
|
if (t())
|
|
3660
3660
|
return e[1](n);
|
|
3661
3661
|
}, [t, e[1]])];
|
|
@@ -3826,7 +3826,7 @@ var G3 = function(t, n) {
|
|
|
3826
3826
|
function Z3(e) {
|
|
3827
3827
|
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, s = Jn(n.placement), u = Bf(s), c = [fn, In].indexOf(s) >= 0, l = c ? "height" : "width";
|
|
3828
3828
|
if (!(!i || !o)) {
|
|
3829
|
-
var d = G3(a.padding, n), f = Wf(i), h = u === "y" ? dn : fn, m = u === "y" ? Pn : In, p = n.rects.reference[l] + n.rects.reference[u] - o[u] - n.rects.popper[l], g = o[u] - n.rects.reference[u],
|
|
3829
|
+
var d = G3(a.padding, n), f = Wf(i), h = u === "y" ? dn : fn, m = u === "y" ? Pn : In, p = n.rects.reference[l] + n.rects.reference[u] - o[u] - n.rects.popper[l], g = o[u] - n.rects.reference[u], y = Zo(i), _ = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, b = p / 2 - g / 2, w = d[h], x = _ - f[l] - d[m], T = _ / 2 - f[l] / 2 + b, E = to(w, T, x), M = u;
|
|
3830
3830
|
n.modifiersData[r] = (t = {}, t[M] = E, t.centerOffset = E - T, t);
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
@@ -3868,7 +3868,7 @@ function mm(e) {
|
|
|
3868
3868
|
y: p
|
|
3869
3869
|
};
|
|
3870
3870
|
h = g.x, p = g.y;
|
|
3871
|
-
var
|
|
3871
|
+
var y = o.hasOwnProperty("x"), _ = o.hasOwnProperty("y"), b = fn, w = dn, x = window;
|
|
3872
3872
|
if (c) {
|
|
3873
3873
|
var T = Zo(n), E = "clientHeight", M = "clientWidth";
|
|
3874
3874
|
if (T === kn(n) && (T = qr(n), mr(T).position !== "static" && s === "absolute" && (E = "scrollHeight", M = "scrollWidth")), T = T, a === dn || (a === fn || a === In) && i === uo) {
|
|
@@ -3880,7 +3880,7 @@ function mm(e) {
|
|
|
3880
3880
|
p -= P - r.height, p *= u ? 1 : -1;
|
|
3881
3881
|
}
|
|
3882
3882
|
if (a === fn || (a === dn || a === Pn) && i === uo) {
|
|
3883
|
-
|
|
3883
|
+
b = In;
|
|
3884
3884
|
var R = d && T === x && x.visualViewport ? x.visualViewport.width : (
|
|
3885
3885
|
// $FlowFixMe[prop-missing]
|
|
3886
3886
|
T[M]
|
|
@@ -3888,20 +3888,20 @@ function mm(e) {
|
|
|
3888
3888
|
h -= R - r.width, h *= u ? 1 : -1;
|
|
3889
3889
|
}
|
|
3890
3890
|
}
|
|
3891
|
-
var
|
|
3891
|
+
var k = Object.assign({
|
|
3892
3892
|
position: s
|
|
3893
|
-
}, c && J3),
|
|
3893
|
+
}, c && J3), D = l === !0 ? Q3({
|
|
3894
3894
|
x: h,
|
|
3895
3895
|
y: p
|
|
3896
3896
|
}, kn(n)) : {
|
|
3897
3897
|
x: h,
|
|
3898
3898
|
y: p
|
|
3899
3899
|
};
|
|
3900
|
-
if (h =
|
|
3900
|
+
if (h = D.x, p = D.y, u) {
|
|
3901
3901
|
var C;
|
|
3902
|
-
return Object.assign({},
|
|
3902
|
+
return Object.assign({}, k, (C = {}, C[w] = _ ? "0" : "", C[b] = y ? "0" : "", C.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", C));
|
|
3903
3903
|
}
|
|
3904
|
-
return Object.assign({},
|
|
3904
|
+
return Object.assign({}, k, (t = {}, t[w] = _ ? p + "px" : "", t[b] = y ? h + "px" : "", t.transform = "", t));
|
|
3905
3905
|
}
|
|
3906
3906
|
function eT(e) {
|
|
3907
3907
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, i = n.adaptive, o = i === void 0 ? !0 : i, s = n.roundOffsets, u = s === void 0 ? !0 : s, c = {
|
|
@@ -4101,22 +4101,22 @@ function yy(e) {
|
|
|
4101
4101
|
}
|
|
4102
4102
|
function lo(e, t) {
|
|
4103
4103
|
t === void 0 && (t = {});
|
|
4104
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.strategy, o = i === void 0 ? e.strategy : i, s = n.boundary, u = s === void 0 ? j3 : s, c = n.rootBoundary, l = c === void 0 ? ly : c, d = n.elementContext, f = d === void 0 ? Ii : d, h = n.altBoundary, m = h === void 0 ? !1 : h, p = n.padding, g = p === void 0 ? 0 : p,
|
|
4104
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.strategy, o = i === void 0 ? e.strategy : i, s = n.boundary, u = s === void 0 ? j3 : s, c = n.rootBoundary, l = c === void 0 ? ly : c, d = n.elementContext, f = d === void 0 ? Ii : d, h = n.altBoundary, m = h === void 0 ? !1 : h, p = n.padding, g = p === void 0 ? 0 : p, y = my(typeof g != "number" ? g : gy(g, Go)), _ = f === Ii ? P3 : Ii, b = e.rects.popper, w = e.elements[m ? _ : f], x = lT(va(w) ? w : w.contextElement || qr(e.elements.popper), u, l, o), T = ti(e.elements.reference), E = yy({
|
|
4105
4105
|
reference: T,
|
|
4106
|
-
element:
|
|
4106
|
+
element: b,
|
|
4107
4107
|
strategy: "absolute",
|
|
4108
4108
|
placement: a
|
|
4109
|
-
}), M = Td(Object.assign({},
|
|
4110
|
-
top: x.top - P.top +
|
|
4111
|
-
bottom: P.bottom - x.bottom +
|
|
4112
|
-
left: x.left - P.left +
|
|
4113
|
-
right: P.right - x.right +
|
|
4114
|
-
},
|
|
4115
|
-
if (f === Ii &&
|
|
4116
|
-
var
|
|
4109
|
+
}), M = Td(Object.assign({}, b, E)), P = f === Ii ? M : T, R = {
|
|
4110
|
+
top: x.top - P.top + y.top,
|
|
4111
|
+
bottom: P.bottom - x.bottom + y.bottom,
|
|
4112
|
+
left: x.left - P.left + y.left,
|
|
4113
|
+
right: P.right - x.right + y.right
|
|
4114
|
+
}, k = e.modifiersData.offset;
|
|
4115
|
+
if (f === Ii && k) {
|
|
4116
|
+
var D = k[a];
|
|
4117
4117
|
Object.keys(R).forEach(function(C) {
|
|
4118
4118
|
var A = [In, Pn].indexOf(C) >= 0 ? 1 : -1, I = [dn, Pn].indexOf(C) >= 0 ? "y" : "x";
|
|
4119
|
-
R[C] +=
|
|
4119
|
+
R[C] += D[I] * A;
|
|
4120
4120
|
});
|
|
4121
4121
|
}
|
|
4122
4122
|
return R;
|
|
@@ -4150,7 +4150,7 @@ function fT(e) {
|
|
|
4150
4150
|
function hT(e) {
|
|
4151
4151
|
var t = e.state, n = e.options, r = e.name;
|
|
4152
4152
|
if (!t.modifiersData[r]._skip) {
|
|
4153
|
-
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, s = o === void 0 ? !0 : o, u = n.fallbackPlacements, c = n.padding, l = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, g = t.options.placement,
|
|
4153
|
+
for (var a = n.mainAxis, i = a === void 0 ? !0 : a, o = n.altAxis, s = o === void 0 ? !0 : o, u = n.fallbackPlacements, c = n.padding, l = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, g = t.options.placement, y = Jn(g), _ = y === g, b = u || (_ || !m ? [Ps(g)] : fT(g)), w = [g].concat(b).reduce(function(Y, Q) {
|
|
4154
4154
|
return Y.concat(Jn(Q) === Lf ? dT(t, {
|
|
4155
4155
|
placement: Q,
|
|
4156
4156
|
boundary: l,
|
|
@@ -4160,22 +4160,22 @@ function hT(e) {
|
|
|
4160
4160
|
allowedAutoPlacements: p
|
|
4161
4161
|
}) : Q);
|
|
4162
4162
|
}, []), x = t.rects.reference, T = t.rects.popper, E = /* @__PURE__ */ new Map(), M = !0, P = w[0], R = 0; R < w.length; R++) {
|
|
4163
|
-
var
|
|
4164
|
-
placement:
|
|
4163
|
+
var k = w[R], D = Jn(k), C = ni(k) === Qa, A = [dn, Pn].indexOf(D) >= 0, I = A ? "width" : "height", L = lo(t, {
|
|
4164
|
+
placement: k,
|
|
4165
4165
|
boundary: l,
|
|
4166
4166
|
rootBoundary: d,
|
|
4167
4167
|
altBoundary: f,
|
|
4168
4168
|
padding: c
|
|
4169
|
-
}),
|
|
4170
|
-
x[I] > T[I] && (
|
|
4171
|
-
var q = Ps(
|
|
4172
|
-
if (i &&
|
|
4169
|
+
}), W = A ? C ? In : fn : C ? Pn : dn;
|
|
4170
|
+
x[I] > T[I] && (W = Ps(W));
|
|
4171
|
+
var q = Ps(W), N = [];
|
|
4172
|
+
if (i && N.push(L[D] <= 0), s && N.push(L[W] <= 0, L[q] <= 0), N.every(function(Y) {
|
|
4173
4173
|
return Y;
|
|
4174
4174
|
})) {
|
|
4175
|
-
P =
|
|
4175
|
+
P = k, M = !1;
|
|
4176
4176
|
break;
|
|
4177
4177
|
}
|
|
4178
|
-
E.set(
|
|
4178
|
+
E.set(k, N);
|
|
4179
4179
|
}
|
|
4180
4180
|
if (M)
|
|
4181
4181
|
for (var j = m ? 3 : 1, B = function(Q) {
|
|
@@ -4294,7 +4294,7 @@ function TT(e) {
|
|
|
4294
4294
|
rootBoundary: c,
|
|
4295
4295
|
padding: d,
|
|
4296
4296
|
altBoundary: l
|
|
4297
|
-
}),
|
|
4297
|
+
}), y = Jn(t.placement), _ = ni(t.placement), b = !_, w = Bf(y), x = wT(w), T = t.modifiersData.popperOffsets, E = t.rects.reference, M = t.rects.popper, P = typeof p == "function" ? p(Object.assign({}, t.rects, {
|
|
4298
4298
|
placement: t.placement
|
|
4299
4299
|
})) : p, R = typeof P == "number" ? {
|
|
4300
4300
|
mainAxis: P,
|
|
@@ -4302,23 +4302,23 @@ function TT(e) {
|
|
|
4302
4302
|
} : Object.assign({
|
|
4303
4303
|
mainAxis: 0,
|
|
4304
4304
|
altAxis: 0
|
|
4305
|
-
}, P),
|
|
4305
|
+
}, P), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
|
|
4306
4306
|
x: 0,
|
|
4307
4307
|
y: 0
|
|
4308
4308
|
};
|
|
4309
4309
|
if (T) {
|
|
4310
4310
|
if (i) {
|
|
4311
|
-
var C, A = w === "y" ? dn : fn, I = w === "y" ? Pn : In, L = w === "y" ? "height" : "width",
|
|
4311
|
+
var C, A = w === "y" ? dn : fn, I = w === "y" ? Pn : In, L = w === "y" ? "height" : "width", W = T[w], q = W + g[A], N = W - g[I], j = h ? -M[L] / 2 : 0, B = _ === Qa ? E[L] : M[L], Z = _ === Qa ? -M[L] : -E[L], ne = t.elements.arrow, Y = h && ne ? Wf(ne) : {
|
|
4312
4312
|
width: 0,
|
|
4313
4313
|
height: 0
|
|
4314
|
-
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : py(), G = Q[A], J = Q[I], re = to(0, E[L], Y[L]), F =
|
|
4315
|
-
T[w] = De,
|
|
4314
|
+
}, Q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : py(), G = Q[A], J = Q[I], re = to(0, E[L], Y[L]), F = b ? E[L] / 2 - j - re - G - R.mainAxis : B - re - G - R.mainAxis, V = b ? -E[L] / 2 + j + re + J + R.mainAxis : Z + re + J + R.mainAxis, ie = t.elements.arrow && Zo(t.elements.arrow), S = ie ? w === "y" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, ye = (C = k == null ? void 0 : k[w]) != null ? C : 0, ge = W + F - ye - S, he = W + V - ye, De = to(h ? Xs(q, ge) : q, W, h ? la(N, he) : N);
|
|
4315
|
+
T[w] = De, D[w] = De - W;
|
|
4316
4316
|
}
|
|
4317
4317
|
if (s) {
|
|
4318
|
-
var Fe, yt = w === "x" ? dn : fn, wt = w === "x" ? Pn : In, Ye = T[x], ct = x === "y" ? "height" : "width", Qe = Ye + g[yt], Ot = Ye - g[wt], kt = [dn, fn].indexOf(
|
|
4319
|
-
T[x] = At,
|
|
4318
|
+
var Fe, yt = w === "x" ? dn : fn, wt = w === "x" ? Pn : In, Ye = T[x], ct = x === "y" ? "height" : "width", Qe = Ye + g[yt], Ot = Ye - g[wt], kt = [dn, fn].indexOf(y) !== -1, ut = (Fe = k == null ? void 0 : k[x]) != null ? Fe : 0, Te = kt ? Qe : Ye - E[ct] - M[ct] - ut + R.altAxis, nt = kt ? Ye + E[ct] + M[ct] - ut - R.altAxis : Ot, At = h && kt ? Y3(Te, Ye, nt) : to(h ? Te : Qe, Ye, h ? nt : Ot);
|
|
4319
|
+
T[x] = At, D[x] = At - Ye;
|
|
4320
4320
|
}
|
|
4321
|
-
t.modifiersData[r] =
|
|
4321
|
+
t.modifiersData[r] = D;
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
4324
|
const ST = {
|
|
@@ -4437,14 +4437,14 @@ function jT(e) {
|
|
|
4437
4437
|
styles: {}
|
|
4438
4438
|
}, d = [], f = !1, h = {
|
|
4439
4439
|
state: l,
|
|
4440
|
-
setOptions: function(
|
|
4441
|
-
var _ = typeof
|
|
4440
|
+
setOptions: function(y) {
|
|
4441
|
+
var _ = typeof y == "function" ? y(l.options) : y;
|
|
4442
4442
|
p(), l.options = Object.assign({}, i, l.options, _), l.scrollParents = {
|
|
4443
4443
|
reference: va(s) ? no(s) : s.contextElement ? no(s.contextElement) : [],
|
|
4444
4444
|
popper: no(u)
|
|
4445
4445
|
};
|
|
4446
|
-
var
|
|
4447
|
-
return l.orderedModifiers =
|
|
4446
|
+
var b = MT(RT([].concat(r, l.options.modifiers)));
|
|
4447
|
+
return l.orderedModifiers = b.filter(function(w) {
|
|
4448
4448
|
return w.enabled;
|
|
4449
4449
|
}), m(), h.update();
|
|
4450
4450
|
},
|
|
@@ -4455,11 +4455,11 @@ function jT(e) {
|
|
|
4455
4455
|
// prefer the async Popper#update method
|
|
4456
4456
|
forceUpdate: function() {
|
|
4457
4457
|
if (!f) {
|
|
4458
|
-
var
|
|
4459
|
-
if (_m(_,
|
|
4458
|
+
var y = l.elements, _ = y.reference, b = y.popper;
|
|
4459
|
+
if (_m(_, b)) {
|
|
4460
4460
|
l.rects = {
|
|
4461
|
-
reference: ET(_, Zo(
|
|
4462
|
-
popper: Wf(
|
|
4461
|
+
reference: ET(_, Zo(b), l.options.strategy === "fixed"),
|
|
4462
|
+
popper: Wf(b)
|
|
4463
4463
|
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(R) {
|
|
4464
4464
|
return l.modifiersData[R.name] = Object.assign({}, R.data);
|
|
4465
4465
|
});
|
|
@@ -4497,13 +4497,13 @@ function jT(e) {
|
|
|
4497
4497
|
});
|
|
4498
4498
|
function m() {
|
|
4499
4499
|
l.orderedModifiers.forEach(function(g) {
|
|
4500
|
-
var
|
|
4500
|
+
var y = g.name, _ = g.options, b = _ === void 0 ? {} : _, w = g.effect;
|
|
4501
4501
|
if (typeof w == "function") {
|
|
4502
4502
|
var x = w({
|
|
4503
4503
|
state: l,
|
|
4504
|
-
name:
|
|
4504
|
+
name: y,
|
|
4505
4505
|
instance: h,
|
|
4506
|
-
options:
|
|
4506
|
+
options: b
|
|
4507
4507
|
}), T = function() {
|
|
4508
4508
|
};
|
|
4509
4509
|
d.push(x || T);
|
|
@@ -4575,10 +4575,10 @@ function by(e, t, n = {}) {
|
|
|
4575
4575
|
strategy: i = "absolute",
|
|
4576
4576
|
modifiers: o = LT
|
|
4577
4577
|
} = n, s = DT(n, IT);
|
|
4578
|
-
const u = we(o), c = we(), l =
|
|
4578
|
+
const u = we(o), c = we(), l = z(() => {
|
|
4579
4579
|
var g;
|
|
4580
4580
|
(g = c.current) == null || g.update();
|
|
4581
|
-
}, []), d =
|
|
4581
|
+
}, []), d = z(() => {
|
|
4582
4582
|
var g;
|
|
4583
4583
|
(g = c.current) == null || g.forceUpdate();
|
|
4584
4584
|
}, []), [f, h] = R3(Ue({
|
|
@@ -4598,12 +4598,12 @@ function by(e, t, n = {}) {
|
|
|
4598
4598
|
fn: ({
|
|
4599
4599
|
state: g
|
|
4600
4600
|
}) => {
|
|
4601
|
-
const
|
|
4602
|
-
Object.keys(g.elements).forEach((
|
|
4603
|
-
b
|
|
4601
|
+
const y = {}, _ = {};
|
|
4602
|
+
Object.keys(g.elements).forEach((b) => {
|
|
4603
|
+
y[b] = g.styles[b], _[b] = g.attributes[b];
|
|
4604
4604
|
}), h({
|
|
4605
4605
|
state: g,
|
|
4606
|
-
styles:
|
|
4606
|
+
styles: y,
|
|
4607
4607
|
attributes: _,
|
|
4608
4608
|
update: l,
|
|
4609
4609
|
forceUpdate: d,
|
|
@@ -4684,7 +4684,7 @@ function _y(e, t = wm, {
|
|
|
4684
4684
|
disabled: n,
|
|
4685
4685
|
clickTrigger: r = "click"
|
|
4686
4686
|
} = {}) {
|
|
4687
|
-
const a = we(!1), i = we(!1), o =
|
|
4687
|
+
const a = we(!1), i = we(!1), o = z((c) => {
|
|
4688
4688
|
const l = Is(e);
|
|
4689
4689
|
Ko(!!l, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), a.current = !l || HT(c) || !zT(c) || !!fo(l, c.target) || i.current, i.current = !1;
|
|
4690
4690
|
}, [e]), s = Et((c) => {
|
|
@@ -4706,9 +4706,9 @@ function _y(e, t = wm, {
|
|
|
4706
4706
|
}
|
|
4707
4707
|
u(_);
|
|
4708
4708
|
});
|
|
4709
|
-
let
|
|
4710
|
-
return "ontouchstart" in d.documentElement && (
|
|
4711
|
-
m == null || m(), p(), g(),
|
|
4709
|
+
let y = [];
|
|
4710
|
+
return "ontouchstart" in d.documentElement && (y = [].slice.call(d.body.children).map((_) => fr(_, "mousemove", wm))), () => {
|
|
4711
|
+
m == null || m(), p(), g(), y.forEach((_) => _());
|
|
4712
4712
|
};
|
|
4713
4713
|
}, [e, n, r, o, s, u]);
|
|
4714
4714
|
}
|
|
@@ -4794,9 +4794,9 @@ function Ty(e = {}) {
|
|
|
4794
4794
|
}, {
|
|
4795
4795
|
placement: p,
|
|
4796
4796
|
setMenu: g,
|
|
4797
|
-
menuElement:
|
|
4797
|
+
menuElement: y,
|
|
4798
4798
|
toggleElement: _
|
|
4799
|
-
} = t || {},
|
|
4799
|
+
} = t || {}, b = by(_, y, wy({
|
|
4800
4800
|
placement: c || p || "bottom-start",
|
|
4801
4801
|
enabled: f,
|
|
4802
4802
|
enableEvents: d ?? h,
|
|
@@ -4808,21 +4808,21 @@ function Ty(e = {}) {
|
|
|
4808
4808
|
})), w = Object.assign({
|
|
4809
4809
|
ref: g || ZT,
|
|
4810
4810
|
"aria-labelledby": _ == null ? void 0 : _.id
|
|
4811
|
-
},
|
|
4812
|
-
style:
|
|
4811
|
+
}, b.attributes.popper, {
|
|
4812
|
+
style: b.styles.popper
|
|
4813
4813
|
}), x = {
|
|
4814
4814
|
show: h,
|
|
4815
4815
|
placement: p,
|
|
4816
4816
|
hasShown: a.current,
|
|
4817
4817
|
toggle: t == null ? void 0 : t.toggle,
|
|
4818
|
-
popper: f ?
|
|
4818
|
+
popper: f ? b : null,
|
|
4819
4819
|
arrowProps: f ? Object.assign({
|
|
4820
4820
|
ref: r
|
|
4821
|
-
},
|
|
4822
|
-
style:
|
|
4821
|
+
}, b.attributes.arrow, {
|
|
4822
|
+
style: b.styles.arrow
|
|
4823
4823
|
}) : {}
|
|
4824
4824
|
};
|
|
4825
|
-
return _y(
|
|
4825
|
+
return _y(y, m, {
|
|
4826
4826
|
clickTrigger: s,
|
|
4827
4827
|
disabled: !h
|
|
4828
4828
|
}), [w, x];
|
|
@@ -4896,7 +4896,7 @@ function $y() {
|
|
|
4896
4896
|
toggle: n = Sm,
|
|
4897
4897
|
setToggle: r,
|
|
4898
4898
|
menuElement: a
|
|
4899
|
-
} = le(zc) || {}, i =
|
|
4899
|
+
} = le(zc) || {}, i = z((s) => {
|
|
4900
4900
|
n(!t, s);
|
|
4901
4901
|
}, [t, n]), o = {
|
|
4902
4902
|
id: e,
|
|
@@ -4984,7 +4984,7 @@ function Vc() {
|
|
|
4984
4984
|
return le(Ry);
|
|
4985
4985
|
}
|
|
4986
4986
|
function km() {
|
|
4987
|
-
const e = A3(), t = we(null), n =
|
|
4987
|
+
const e = A3(), t = we(null), n = z((r) => {
|
|
4988
4988
|
t.current = r, e();
|
|
4989
4989
|
}, [e]);
|
|
4990
4990
|
return [t, n];
|
|
@@ -4999,13 +4999,13 @@ function Xo({
|
|
|
4999
4999
|
placement: o = "bottom-start",
|
|
5000
5000
|
children: s
|
|
5001
5001
|
}) {
|
|
5002
|
-
const u = Vc(), [c, l] = M3(t, e, r), [d, f] = km(), h = d.current, [m, p] = km(), g = m.current,
|
|
5003
|
-
l(
|
|
5004
|
-
originalEvent:
|
|
5002
|
+
const u = Vc(), [c, l] = M3(t, e, r), [d, f] = km(), h = d.current, [m, p] = km(), g = m.current, y = ny(c), _ = we(null), b = we(!1), w = le(Sd), x = z((k, D, C = D == null ? void 0 : D.type) => {
|
|
5003
|
+
l(k, {
|
|
5004
|
+
originalEvent: D,
|
|
5005
5005
|
source: C
|
|
5006
5006
|
});
|
|
5007
|
-
}, [l]), T = Et((
|
|
5008
|
-
n == null || n(
|
|
5007
|
+
}, [l]), T = Et((k, D) => {
|
|
5008
|
+
n == null || n(k, D), x(!1, D, "select"), D.isPropagationStopped() || w == null || w(k, D);
|
|
5009
5009
|
}), E = ae(() => ({
|
|
5010
5010
|
toggle: x,
|
|
5011
5011
|
placement: o,
|
|
@@ -5015,49 +5015,49 @@ function Xo({
|
|
|
5015
5015
|
setMenu: f,
|
|
5016
5016
|
setToggle: p
|
|
5017
5017
|
}), [x, o, c, h, g, f, p]);
|
|
5018
|
-
h &&
|
|
5018
|
+
h && y && !c && (b.current = h.contains(h.ownerDocument.activeElement));
|
|
5019
5019
|
const M = Et(() => {
|
|
5020
5020
|
g && g.focus && g.focus();
|
|
5021
5021
|
}), P = Et(() => {
|
|
5022
|
-
const
|
|
5023
|
-
let
|
|
5024
|
-
if (
|
|
5022
|
+
const k = _.current;
|
|
5023
|
+
let D = i;
|
|
5024
|
+
if (D == null && (D = d.current && ky(d.current) ? "keyboard" : !1), D === !1 || D === "keyboard" && !/^key.+$/.test(k))
|
|
5025
5025
|
return;
|
|
5026
5026
|
const C = Cr(d.current, a)[0];
|
|
5027
5027
|
C && C.focus && C.focus();
|
|
5028
5028
|
});
|
|
5029
5029
|
ke(() => {
|
|
5030
|
-
c ? P() :
|
|
5031
|
-
}, [c,
|
|
5030
|
+
c ? P() : b.current && (b.current = !1, M());
|
|
5031
|
+
}, [c, b, M, P]), ke(() => {
|
|
5032
5032
|
_.current = null;
|
|
5033
5033
|
});
|
|
5034
|
-
const R = (
|
|
5034
|
+
const R = (k, D) => {
|
|
5035
5035
|
if (!d.current) return null;
|
|
5036
5036
|
const C = Cr(d.current, a);
|
|
5037
|
-
let A = C.indexOf(
|
|
5037
|
+
let A = C.indexOf(k) + D;
|
|
5038
5038
|
return A = Math.max(0, Math.min(A, C.length)), C[A];
|
|
5039
5039
|
};
|
|
5040
|
-
return p3(
|
|
5041
|
-
var
|
|
5040
|
+
return p3(z(() => u.document, [u]), "keydown", (k) => {
|
|
5041
|
+
var D, C;
|
|
5042
5042
|
const {
|
|
5043
5043
|
key: A
|
|
5044
|
-
} =
|
|
5045
|
-
if (/input|textarea/i.test(I.tagName) && (A === " " || A !== "Escape" && L || A === "Escape" && I.type === "search") || !L && !
|
|
5044
|
+
} = k, I = k.target, L = (D = d.current) == null ? void 0 : D.contains(I), W = (C = m.current) == null ? void 0 : C.contains(I);
|
|
5045
|
+
if (/input|textarea/i.test(I.tagName) && (A === " " || A !== "Escape" && L || A === "Escape" && I.type === "search") || !L && !W || A === "Tab" && (!d.current || !c))
|
|
5046
5046
|
return;
|
|
5047
|
-
_.current =
|
|
5048
|
-
const
|
|
5049
|
-
originalEvent:
|
|
5050
|
-
source:
|
|
5047
|
+
_.current = k.type;
|
|
5048
|
+
const N = {
|
|
5049
|
+
originalEvent: k,
|
|
5050
|
+
source: k.type
|
|
5051
5051
|
};
|
|
5052
5052
|
switch (A) {
|
|
5053
5053
|
case "ArrowUp": {
|
|
5054
5054
|
const j = R(I, -1);
|
|
5055
|
-
j && j.focus && j.focus(),
|
|
5055
|
+
j && j.focus && j.focus(), k.preventDefault();
|
|
5056
5056
|
return;
|
|
5057
5057
|
}
|
|
5058
5058
|
case "ArrowDown":
|
|
5059
|
-
if (
|
|
5060
|
-
l(!0,
|
|
5059
|
+
if (k.preventDefault(), !c)
|
|
5060
|
+
l(!0, N);
|
|
5061
5061
|
else {
|
|
5062
5062
|
const j = R(I, 1);
|
|
5063
5063
|
j && j.focus && j.focus();
|
|
@@ -5066,13 +5066,13 @@ function Xo({
|
|
|
5066
5066
|
case "Tab":
|
|
5067
5067
|
Pf(I.ownerDocument, "keyup", (j) => {
|
|
5068
5068
|
var B;
|
|
5069
|
-
(j.key === "Tab" && !j.target || !((B = d.current) != null && B.contains(j.target))) && l(!1,
|
|
5069
|
+
(j.key === "Tab" && !j.target || !((B = d.current) != null && B.contains(j.target))) && l(!1, N);
|
|
5070
5070
|
}, {
|
|
5071
5071
|
once: !0
|
|
5072
5072
|
});
|
|
5073
5073
|
break;
|
|
5074
5074
|
case "Escape":
|
|
5075
|
-
A === "Escape" && (
|
|
5075
|
+
A === "Escape" && (k.preventDefault(), k.stopPropagation()), l(!1, N);
|
|
5076
5076
|
break;
|
|
5077
5077
|
}
|
|
5078
5078
|
}), /* @__PURE__ */ v.jsx(Sd.Provider, {
|
|
@@ -5157,7 +5157,7 @@ const Ny = /* @__PURE__ */ oe.createContext(null);
|
|
|
5157
5157
|
Ny.displayName = "NavbarContext";
|
|
5158
5158
|
function Fy(e, t) {
|
|
5159
5159
|
if (process.env.NODE_ENV === "production") return e;
|
|
5160
|
-
const n =
|
|
5160
|
+
const n = z((r) => {
|
|
5161
5161
|
r == null || !r.isReactComponent || (process.env.NODE_ENV !== "production" ? Xp(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : Xp(!1));
|
|
5162
5162
|
}, [t]);
|
|
5163
5163
|
return qn(n, e);
|
|
@@ -5185,19 +5185,19 @@ const Uy = /* @__PURE__ */ oe.forwardRef(({
|
|
|
5185
5185
|
const h = le(Ny), m = Ve(e, "dropdown-menu"), {
|
|
5186
5186
|
align: p,
|
|
5187
5187
|
drop: g,
|
|
5188
|
-
isRTL:
|
|
5188
|
+
isRTL: y
|
|
5189
5189
|
} = le(Yf);
|
|
5190
5190
|
n = n || p;
|
|
5191
|
-
const _ = le(Gf),
|
|
5191
|
+
const _ = le(Gf), b = [];
|
|
5192
5192
|
if (n)
|
|
5193
5193
|
if (typeof n == "object") {
|
|
5194
|
-
const
|
|
5195
|
-
if (process.env.NODE_ENV !== "production" && Ko(
|
|
5196
|
-
const
|
|
5197
|
-
f = C === "start",
|
|
5194
|
+
const k = Object.keys(n);
|
|
5195
|
+
if (process.env.NODE_ENV !== "production" && Ko(k.length === 1, "There should only be 1 breakpoint when passing an object to `align`"), k.length) {
|
|
5196
|
+
const D = k[0], C = n[D];
|
|
5197
|
+
f = C === "start", b.push(`${m}-${D}-${C}`);
|
|
5198
5198
|
}
|
|
5199
5199
|
} else n === "end" && (f = !0);
|
|
5200
|
-
const w = Ly(f, g,
|
|
5200
|
+
const w = Ly(f, g, y), [x, {
|
|
5201
5201
|
hasShown: T,
|
|
5202
5202
|
popper: E,
|
|
5203
5203
|
show: M,
|
|
@@ -5206,7 +5206,7 @@ const Uy = /* @__PURE__ */ oe.forwardRef(({
|
|
|
5206
5206
|
flip: a,
|
|
5207
5207
|
rootCloseEvent: r,
|
|
5208
5208
|
show: i,
|
|
5209
|
-
usePopper: !h &&
|
|
5209
|
+
usePopper: !h && b.length === 0,
|
|
5210
5210
|
offset: [0, 2],
|
|
5211
5211
|
popperConfig: u,
|
|
5212
5212
|
placement: w
|
|
@@ -5223,10 +5223,10 @@ const Uy = /* @__PURE__ */ oe.forwardRef(({
|
|
|
5223
5223
|
...l,
|
|
5224
5224
|
...x,
|
|
5225
5225
|
style: R,
|
|
5226
|
-
...(
|
|
5226
|
+
...(b.length || h) && {
|
|
5227
5227
|
"data-bs-popper": "static"
|
|
5228
5228
|
},
|
|
5229
|
-
className: se(t, m, M && "show", f && `${m}-end`, c && `${m}-${c}`, ...
|
|
5229
|
+
className: se(t, m, M && "show", f && `${m}-end`, c && `${m}-${c}`, ...b)
|
|
5230
5230
|
});
|
|
5231
5231
|
});
|
|
5232
5232
|
Uy.displayName = "DropdownMenu";
|
|
@@ -5266,9 +5266,9 @@ const By = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
5266
5266
|
...h
|
|
5267
5267
|
} = I4(e, {
|
|
5268
5268
|
show: "onToggle"
|
|
5269
|
-
}), m = le(Gf), p = Ve(n, "dropdown"), g = Bc(),
|
|
5269
|
+
}), m = le(Gf), p = Ve(n, "dropdown"), g = Bc(), y = (E) => f === !1 ? E === "click" : f === "inside" ? E !== "rootClose" : f === "outside" ? E !== "select" : !0, _ = Et((E, M) => {
|
|
5270
5270
|
var P;
|
|
5271
|
-
!((P = M.originalEvent) == null || (P = P.target) == null) && P.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"),
|
|
5271
|
+
!((P = M.originalEvent) == null || (P = P.target) == null) && P.classList.contains("dropdown-toggle") && M.source === "mousedown" || (M.originalEvent.currentTarget === document && (M.source !== "keydown" || M.originalEvent.key === "Escape") && (M.source = "rootClose"), y(M.source) && (u == null || u(E, M)));
|
|
5272
5272
|
}), w = Ly(o === "end", r, g), x = ae(() => ({
|
|
5273
5273
|
align: o,
|
|
5274
5274
|
drop: r,
|
|
@@ -5312,10 +5312,10 @@ const Qs = Object.assign(By, {
|
|
|
5312
5312
|
*
|
|
5313
5313
|
* @type {('valid'|'invalid')}
|
|
5314
5314
|
*/
|
|
5315
|
-
type:
|
|
5315
|
+
type: $.string,
|
|
5316
5316
|
/** Display feedback as a tooltip. */
|
|
5317
|
-
tooltip:
|
|
5318
|
-
as:
|
|
5317
|
+
tooltip: $.bool,
|
|
5318
|
+
as: $.elementType
|
|
5319
5319
|
}, qc = /* @__PURE__ */ oe.forwardRef(
|
|
5320
5320
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5321
5321
|
({
|
|
@@ -5391,9 +5391,9 @@ const zy = /* @__PURE__ */ oe.forwardRef(({
|
|
|
5391
5391
|
label: p,
|
|
5392
5392
|
children: g,
|
|
5393
5393
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5394
|
-
as:
|
|
5394
|
+
as: y = "input",
|
|
5395
5395
|
..._
|
|
5396
|
-
},
|
|
5396
|
+
}, b) => {
|
|
5397
5397
|
t = Ve(t, "form-check"), n = Ve(n, "form-switch");
|
|
5398
5398
|
const {
|
|
5399
5399
|
controlId: w
|
|
@@ -5402,11 +5402,11 @@ const zy = /* @__PURE__ */ oe.forwardRef(({
|
|
|
5402
5402
|
}), [w, e]), T = !g && p != null && p !== !1 || $3(g, ec), E = /* @__PURE__ */ v.jsx(Zf, {
|
|
5403
5403
|
..._,
|
|
5404
5404
|
type: m === "switch" ? "checkbox" : m,
|
|
5405
|
-
ref:
|
|
5405
|
+
ref: b,
|
|
5406
5406
|
isValid: o,
|
|
5407
5407
|
isInvalid: s,
|
|
5408
5408
|
disabled: i,
|
|
5409
|
-
as:
|
|
5409
|
+
as: y
|
|
5410
5410
|
});
|
|
5411
5411
|
return /* @__PURE__ */ v.jsx(gr.Provider, {
|
|
5412
5412
|
value: x,
|
|
@@ -5615,13 +5615,13 @@ const h5 = {
|
|
|
5615
5615
|
* @type {ReactRef}
|
|
5616
5616
|
* @alias ref
|
|
5617
5617
|
*/
|
|
5618
|
-
_ref:
|
|
5618
|
+
_ref: $.any,
|
|
5619
5619
|
/**
|
|
5620
5620
|
* Mark a form as having been validated. Setting it to `true` will
|
|
5621
5621
|
* toggle any validation styles on the forms elements.
|
|
5622
5622
|
*/
|
|
5623
|
-
validated:
|
|
5624
|
-
as:
|
|
5623
|
+
validated: $.bool,
|
|
5624
|
+
as: $.elementType
|
|
5625
5625
|
}, Jf = /* @__PURE__ */ oe.forwardRef(({
|
|
5626
5626
|
className: e,
|
|
5627
5627
|
validated: t,
|
|
@@ -5772,7 +5772,7 @@ function y5(e) {
|
|
|
5772
5772
|
major: l
|
|
5773
5773
|
} = oy(), d = l >= 19 ? u.props.ref : u.ref, f = we(null), h = qn(f, typeof u == "function" ? null : d), m = (T) => (E) => {
|
|
5774
5774
|
T && f.current && T(f.current, E);
|
|
5775
|
-
}, p =
|
|
5775
|
+
}, p = z(m(t), [t]), g = z(m(n), [n]), y = z(m(r), [r]), _ = z(m(a), [a]), b = z(m(i), [i]), w = z(m(o), [o]), x = z(m(s), [s]);
|
|
5776
5776
|
return Object.assign({}, c, {
|
|
5777
5777
|
nodeRef: f
|
|
5778
5778
|
}, t && {
|
|
@@ -5780,11 +5780,11 @@ function y5(e) {
|
|
|
5780
5780
|
}, n && {
|
|
5781
5781
|
onEntering: g
|
|
5782
5782
|
}, r && {
|
|
5783
|
-
onEntered:
|
|
5783
|
+
onEntered: y
|
|
5784
5784
|
}, a && {
|
|
5785
5785
|
onExit: _
|
|
5786
5786
|
}, i && {
|
|
5787
|
-
onExiting:
|
|
5787
|
+
onExiting: b
|
|
5788
5788
|
}, o && {
|
|
5789
5789
|
onExited: w
|
|
5790
5790
|
}, s && {
|
|
@@ -5896,10 +5896,10 @@ function $5(e) {
|
|
|
5896
5896
|
add: () => n.add(r.current),
|
|
5897
5897
|
remove: () => n.remove(r.current),
|
|
5898
5898
|
isTopModal: () => n.isTopModal(r.current),
|
|
5899
|
-
setDialogRef:
|
|
5899
|
+
setDialogRef: z((a) => {
|
|
5900
5900
|
r.current.dialog = a;
|
|
5901
5901
|
}, []),
|
|
5902
|
-
setBackdropRef:
|
|
5902
|
+
setBackdropRef: z((a) => {
|
|
5903
5903
|
r.current.backdrop = a;
|
|
5904
5904
|
}, [])
|
|
5905
5905
|
});
|
|
@@ -5921,9 +5921,9 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5921
5921
|
runBackdropTransition: m,
|
|
5922
5922
|
autoFocus: p = !0,
|
|
5923
5923
|
enforceFocus: g = !0,
|
|
5924
|
-
restoreFocus:
|
|
5924
|
+
restoreFocus: y = !0,
|
|
5925
5925
|
restoreFocusOptions: _,
|
|
5926
|
-
renderDialog:
|
|
5926
|
+
renderDialog: b,
|
|
5927
5927
|
renderBackdrop: w = (he) => /* @__PURE__ */ v.jsx("div", Object.assign({}, he)),
|
|
5928
5928
|
manager: x,
|
|
5929
5929
|
container: T,
|
|
@@ -5932,12 +5932,12 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5932
5932
|
},
|
|
5933
5933
|
onExit: P,
|
|
5934
5934
|
onExited: R,
|
|
5935
|
-
onExiting:
|
|
5936
|
-
onEnter:
|
|
5935
|
+
onExiting: k,
|
|
5936
|
+
onEnter: D,
|
|
5937
5937
|
onEntering: C,
|
|
5938
5938
|
onEntered: A
|
|
5939
5939
|
} = e, I = O5(e, S5);
|
|
5940
|
-
const L = Vc(),
|
|
5940
|
+
const L = Vc(), W = Od(T), q = $5(x), N = If(), j = ny(n), [B, Z] = Ue(!n), ne = we(null);
|
|
5941
5941
|
G_(t, () => q, [q]), hi && !j && n && (ne.current = Sl(L == null ? void 0 : L.document)), n && B && Z(!1);
|
|
5942
5942
|
const Y = Et(() => {
|
|
5943
5943
|
if (q.add(), V.current = fr(document, "keydown", re), F.current = fr(
|
|
@@ -5953,16 +5953,16 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5953
5953
|
q.dialog && Fe && !fo(q.dialog, Fe) && (ne.current = Fe, q.dialog.focus());
|
|
5954
5954
|
}
|
|
5955
5955
|
}), Q = Et(() => {
|
|
5956
|
-
if (q.remove(), V.current == null || V.current(), F.current == null || F.current(),
|
|
5956
|
+
if (q.remove(), V.current == null || V.current(), F.current == null || F.current(), y) {
|
|
5957
5957
|
var he;
|
|
5958
5958
|
(he = ne.current) == null || he.focus == null || he.focus(_), ne.current = null;
|
|
5959
5959
|
}
|
|
5960
5960
|
});
|
|
5961
5961
|
ke(() => {
|
|
5962
|
-
!n || !
|
|
5962
|
+
!n || !W || Y();
|
|
5963
5963
|
}, [
|
|
5964
5964
|
n,
|
|
5965
|
-
|
|
5965
|
+
W,
|
|
5966
5966
|
/* should never change: */
|
|
5967
5967
|
Y
|
|
5968
5968
|
]), ke(() => {
|
|
@@ -5971,7 +5971,7 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5971
5971
|
Q();
|
|
5972
5972
|
});
|
|
5973
5973
|
const G = Et(() => {
|
|
5974
|
-
if (!g || !
|
|
5974
|
+
if (!g || !N() || !q.isTopModal())
|
|
5975
5975
|
return;
|
|
5976
5976
|
const he = Sl(L == null ? void 0 : L.document);
|
|
5977
5977
|
q.dialog && he && !fo(q.dialog, he) && q.dialog.focus();
|
|
@@ -5982,7 +5982,7 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5982
5982
|
}), F = we(), V = we(), ie = (...he) => {
|
|
5983
5983
|
Z(!0), R == null || R(...he);
|
|
5984
5984
|
};
|
|
5985
|
-
if (!
|
|
5985
|
+
if (!W)
|
|
5986
5986
|
return null;
|
|
5987
5987
|
const S = Object.assign({
|
|
5988
5988
|
role: r,
|
|
@@ -5994,7 +5994,7 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
5994
5994
|
className: a,
|
|
5995
5995
|
tabIndex: -1
|
|
5996
5996
|
});
|
|
5997
|
-
let ye =
|
|
5997
|
+
let ye = b ? b(S) : /* @__PURE__ */ v.jsx("div", Object.assign({}, S, {
|
|
5998
5998
|
children: /* @__PURE__ */ oe.cloneElement(o, {
|
|
5999
5999
|
role: "document"
|
|
6000
6000
|
})
|
|
@@ -6005,9 +6005,9 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
6005
6005
|
appear: !0,
|
|
6006
6006
|
in: !!n,
|
|
6007
6007
|
onExit: P,
|
|
6008
|
-
onExiting:
|
|
6008
|
+
onExiting: k,
|
|
6009
6009
|
onExited: ie,
|
|
6010
|
-
onEnter:
|
|
6010
|
+
onEnter: D,
|
|
6011
6011
|
onEntering: C,
|
|
6012
6012
|
onEntered: A,
|
|
6013
6013
|
children: ye
|
|
@@ -6025,7 +6025,7 @@ const Xy = /* @__PURE__ */ $a((e, t) => {
|
|
|
6025
6025
|
})), /* @__PURE__ */ v.jsx(v.Fragment, {
|
|
6026
6026
|
children: /* @__PURE__ */ na.createPortal(/* @__PURE__ */ v.jsxs(v.Fragment, {
|
|
6027
6027
|
children: [ge, ye]
|
|
6028
|
-
}),
|
|
6028
|
+
}), W)
|
|
6029
6029
|
});
|
|
6030
6030
|
});
|
|
6031
6031
|
Xy.displayName = "Modal";
|
|
@@ -6207,9 +6207,9 @@ const rb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6207
6207
|
keyboard: m = !0,
|
|
6208
6208
|
onEscapeKeyDown: p,
|
|
6209
6209
|
onShow: g,
|
|
6210
|
-
onHide:
|
|
6210
|
+
onHide: y,
|
|
6211
6211
|
container: _,
|
|
6212
|
-
autoFocus:
|
|
6212
|
+
autoFocus: b = !0,
|
|
6213
6213
|
enforceFocus: w = !0,
|
|
6214
6214
|
restoreFocus: x = !0,
|
|
6215
6215
|
restoreFocusOptions: T,
|
|
@@ -6217,13 +6217,13 @@ const rb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6217
6217
|
onExit: M,
|
|
6218
6218
|
onExiting: P,
|
|
6219
6219
|
onEnter: R,
|
|
6220
|
-
onEntering:
|
|
6221
|
-
onExited:
|
|
6220
|
+
onEntering: k,
|
|
6221
|
+
onExited: D,
|
|
6222
6222
|
backdropClassName: C,
|
|
6223
6223
|
manager: A,
|
|
6224
6224
|
...I
|
|
6225
6225
|
}, L) => {
|
|
6226
|
-
const [
|
|
6226
|
+
const [W, q] = Ue({}), [N, j] = Ue(!1), B = we(!1), Z = we(!1), ne = we(null), [Y, Q] = Zs(), G = qn(L, Q), J = Et(y), re = Bc();
|
|
6227
6227
|
e = Ve(e, "modal");
|
|
6228
6228
|
const F = ae(() => ({
|
|
6229
6229
|
onHide: J
|
|
@@ -6266,7 +6266,7 @@ const rb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6266
6266
|
Z.current = !1;
|
|
6267
6267
|
return;
|
|
6268
6268
|
}
|
|
6269
|
-
|
|
6269
|
+
y == null || y();
|
|
6270
6270
|
}, yt = (Te) => {
|
|
6271
6271
|
m ? p == null || p(Te) : (Te.preventDefault(), h === "static" && he());
|
|
6272
6272
|
}, wt = (Te, nt) => {
|
|
@@ -6274,22 +6274,22 @@ const rb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6274
6274
|
}, Ye = (Te) => {
|
|
6275
6275
|
ne.current == null || ne.current(), M == null || M(Te);
|
|
6276
6276
|
}, ct = (Te, nt) => {
|
|
6277
|
-
|
|
6277
|
+
k == null || k(Te, nt), Pf(window, "resize", S);
|
|
6278
6278
|
}, Qe = (Te) => {
|
|
6279
|
-
Te && (Te.style.display = ""),
|
|
6280
|
-
}, Ot =
|
|
6279
|
+
Te && (Te.style.display = ""), D == null || D(Te), xd(window, "resize", S);
|
|
6280
|
+
}, Ot = z((Te) => /* @__PURE__ */ v.jsx("div", {
|
|
6281
6281
|
...Te,
|
|
6282
6282
|
className: se(`${e}-backdrop`, C, !f && "show")
|
|
6283
6283
|
}), [f, C, e]), kt = {
|
|
6284
6284
|
...n,
|
|
6285
|
-
...
|
|
6285
|
+
...W
|
|
6286
6286
|
};
|
|
6287
6287
|
kt.display = "block";
|
|
6288
6288
|
const ut = (Te) => /* @__PURE__ */ v.jsx("div", {
|
|
6289
6289
|
role: "dialog",
|
|
6290
6290
|
...Te,
|
|
6291
6291
|
style: kt,
|
|
6292
|
-
className: se(t, e,
|
|
6292
|
+
className: se(t, e, N && `${e}-static`, !f && "show"),
|
|
6293
6293
|
onClick: h ? Fe : void 0,
|
|
6294
6294
|
onMouseUp: ge,
|
|
6295
6295
|
"data-bs-theme": s,
|
|
@@ -6312,13 +6312,13 @@ const rb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6312
6312
|
backdrop: h,
|
|
6313
6313
|
container: _,
|
|
6314
6314
|
keyboard: !0,
|
|
6315
|
-
autoFocus:
|
|
6315
|
+
autoFocus: b,
|
|
6316
6316
|
enforceFocus: w,
|
|
6317
6317
|
restoreFocus: x,
|
|
6318
6318
|
restoreFocusOptions: T,
|
|
6319
6319
|
onEscapeKeyDown: yt,
|
|
6320
6320
|
onShow: g,
|
|
6321
|
-
onHide:
|
|
6321
|
+
onHide: y,
|
|
6322
6322
|
onEnter: wt,
|
|
6323
6323
|
onEntering: ct,
|
|
6324
6324
|
onEntered: E,
|
|
@@ -6381,7 +6381,7 @@ const ab = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
6381
6381
|
popperConfig: o = {},
|
|
6382
6382
|
transition: s,
|
|
6383
6383
|
runTransition: u
|
|
6384
|
-
} = e, [c, l] = Zs(), [d, f] = Zs(), h = qn(l, t), m = Od(e.container), p = Od(e.target), [g,
|
|
6384
|
+
} = e, [c, l] = Zs(), [d, f] = Zs(), h = qn(l, t), m = Od(e.container), p = Od(e.target), [g, y] = Ue(!e.show), _ = by(p, c, wy({
|
|
6385
6385
|
placement: a,
|
|
6386
6386
|
enableEvents: !!e.show,
|
|
6387
6387
|
containerPadding: i || 5,
|
|
@@ -6390,9 +6390,9 @@ const ab = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
6390
6390
|
arrowElement: d,
|
|
6391
6391
|
popperConfig: o
|
|
6392
6392
|
}));
|
|
6393
|
-
e.show && g &&
|
|
6394
|
-
const
|
|
6395
|
-
|
|
6393
|
+
e.show && g && y(!1);
|
|
6394
|
+
const b = (...k) => {
|
|
6395
|
+
y(!0), e.onExited && e.onExited(...k);
|
|
6396
6396
|
}, w = e.show || !g;
|
|
6397
6397
|
if (F5(c, e.onHide, {
|
|
6398
6398
|
disabled: !e.rootClose || e.rootCloseDisabled,
|
|
@@ -6426,7 +6426,7 @@ const ab = /* @__PURE__ */ oe.forwardRef((e, t) => {
|
|
|
6426
6426
|
children: R,
|
|
6427
6427
|
onExit: x,
|
|
6428
6428
|
onExiting: T,
|
|
6429
|
-
onExited:
|
|
6429
|
+
onExited: b,
|
|
6430
6430
|
onEnter: E,
|
|
6431
6431
|
onEntering: M,
|
|
6432
6432
|
onEntered: P
|
|
@@ -6602,12 +6602,12 @@ const lb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6602
6602
|
placement: a,
|
|
6603
6603
|
show: i,
|
|
6604
6604
|
children: (g, {
|
|
6605
|
-
arrowProps:
|
|
6605
|
+
arrowProps: y,
|
|
6606
6606
|
popper: _,
|
|
6607
|
-
show:
|
|
6607
|
+
show: b
|
|
6608
6608
|
}) => {
|
|
6609
6609
|
var w;
|
|
6610
|
-
B5(g,
|
|
6610
|
+
B5(g, y);
|
|
6611
6611
|
const x = _ == null ? void 0 : _.placement, T = Object.assign(u.current, {
|
|
6612
6612
|
state: _ == null ? void 0 : _.state,
|
|
6613
6613
|
scheduleUpdate: _ == null ? void 0 : _.update,
|
|
@@ -6618,20 +6618,20 @@ const lb = /* @__PURE__ */ oe.forwardRef(({
|
|
|
6618
6618
|
return typeof e == "function" ? e({
|
|
6619
6619
|
...g,
|
|
6620
6620
|
placement: x,
|
|
6621
|
-
show:
|
|
6622
|
-
...!t &&
|
|
6621
|
+
show: b,
|
|
6622
|
+
...!t && b && {
|
|
6623
6623
|
className: "show"
|
|
6624
6624
|
},
|
|
6625
6625
|
popper: T,
|
|
6626
|
-
arrowProps:
|
|
6626
|
+
arrowProps: y,
|
|
6627
6627
|
hasDoneInitialMeasure: E
|
|
6628
6628
|
}) : /* @__PURE__ */ oe.cloneElement(e, {
|
|
6629
6629
|
...g,
|
|
6630
6630
|
placement: x,
|
|
6631
|
-
arrowProps:
|
|
6631
|
+
arrowProps: y,
|
|
6632
6632
|
popper: T,
|
|
6633
6633
|
hasDoneInitialMeasure: E,
|
|
6634
|
-
className: se(e.props.className, !t &&
|
|
6634
|
+
className: se(e.props.className, !t && b && "show"),
|
|
6635
6635
|
style: {
|
|
6636
6636
|
...e.props.style,
|
|
6637
6637
|
...g.style
|
|
@@ -6651,7 +6651,7 @@ function Mm(e, t, n) {
|
|
|
6651
6651
|
const [r] = t, a = r.currentTarget, i = r.relatedTarget || r.nativeEvent[n];
|
|
6652
6652
|
(!i || i !== a) && !fo(a, i) && e(...t);
|
|
6653
6653
|
}
|
|
6654
|
-
|
|
6654
|
+
$.oneOf(["click", "hover", "focus"]);
|
|
6655
6655
|
const H5 = ({
|
|
6656
6656
|
trigger: e = ["hover", "focus"],
|
|
6657
6657
|
overlay: t,
|
|
@@ -6665,42 +6665,42 @@ const H5 = ({
|
|
|
6665
6665
|
flip: c = u && u.indexOf("auto") !== -1,
|
|
6666
6666
|
...l
|
|
6667
6667
|
}) => {
|
|
6668
|
-
const d = we(null), f = qn(d, n.ref), h = k3(), m = we(""), [p, g] = Xv(a, i, o),
|
|
6668
|
+
const d = we(null), f = qn(d, n.ref), h = k3(), m = we(""), [p, g] = Xv(a, i, o), y = z5(s), {
|
|
6669
6669
|
onFocus: _,
|
|
6670
|
-
onBlur:
|
|
6670
|
+
onBlur: b,
|
|
6671
6671
|
onClick: w
|
|
6672
6672
|
} = typeof n != "function" ? oe.Children.only(n).props : {}, x = (I) => {
|
|
6673
6673
|
f(Gs(I));
|
|
6674
|
-
}, T =
|
|
6675
|
-
if (h.clear(), m.current = "show", !
|
|
6674
|
+
}, T = z(() => {
|
|
6675
|
+
if (h.clear(), m.current = "show", !y.show) {
|
|
6676
6676
|
g(!0);
|
|
6677
6677
|
return;
|
|
6678
6678
|
}
|
|
6679
6679
|
h.set(() => {
|
|
6680
6680
|
m.current === "show" && g(!0);
|
|
6681
|
-
},
|
|
6682
|
-
}, [
|
|
6683
|
-
if (h.clear(), m.current = "hide", !
|
|
6681
|
+
}, y.show);
|
|
6682
|
+
}, [y.show, g, h]), E = z(() => {
|
|
6683
|
+
if (h.clear(), m.current = "hide", !y.hide) {
|
|
6684
6684
|
g(!1);
|
|
6685
6685
|
return;
|
|
6686
6686
|
}
|
|
6687
6687
|
h.set(() => {
|
|
6688
6688
|
m.current === "hide" && g(!1);
|
|
6689
|
-
},
|
|
6690
|
-
}, [
|
|
6689
|
+
}, y.hide);
|
|
6690
|
+
}, [y.hide, g, h]), M = z((...I) => {
|
|
6691
6691
|
T(), _ == null || _(...I);
|
|
6692
|
-
}, [T, _]), P =
|
|
6693
|
-
E(),
|
|
6694
|
-
}, [E,
|
|
6692
|
+
}, [T, _]), P = z((...I) => {
|
|
6693
|
+
E(), b == null || b(...I);
|
|
6694
|
+
}, [E, b]), R = z((...I) => {
|
|
6695
6695
|
g(!p), w == null || w(...I);
|
|
6696
|
-
}, [w, g, p]),
|
|
6696
|
+
}, [w, g, p]), k = z((...I) => {
|
|
6697
6697
|
Mm(T, I, "fromElement");
|
|
6698
|
-
}, [T]),
|
|
6698
|
+
}, [T]), D = z((...I) => {
|
|
6699
6699
|
Mm(E, I, "toElement");
|
|
6700
6700
|
}, [E]), C = e == null ? [] : [].concat(e), A = {
|
|
6701
6701
|
ref: x
|
|
6702
6702
|
};
|
|
6703
|
-
return C.indexOf("click") !== -1 && (A.onClick = R), C.indexOf("focus") !== -1 && (A.onFocus = M, A.onBlur = P), C.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && Ko(C.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), A.onMouseOver =
|
|
6703
|
+
return C.indexOf("click") !== -1 && (A.onClick = R), C.indexOf("focus") !== -1 && (A.onFocus = M, A.onBlur = P), C.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && Ko(C.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), A.onMouseOver = k, A.onMouseOut = D), /* @__PURE__ */ v.jsxs(v.Fragment, {
|
|
6704
6704
|
children: [typeof n == "function" ? n(A) : /* @__PURE__ */ Yo(n, A), /* @__PURE__ */ v.jsx(lb, {
|
|
6705
6705
|
...l,
|
|
6706
6706
|
show: p,
|
|
@@ -6937,9 +6937,9 @@ const Nn = rn({
|
|
|
6937
6937
|
setOptions: () => {
|
|
6938
6938
|
}
|
|
6939
6939
|
}), s6 = () => {
|
|
6940
|
-
const { isShown: e, text: t, showPrompt: n, hidePrompt: r, resolveRef: a, setOptions: i } = le(o6), o =
|
|
6940
|
+
const { isShown: e, text: t, showPrompt: n, hidePrompt: r, resolveRef: a, setOptions: i } = le(o6), o = z((u) => {
|
|
6941
6941
|
r(), a.current(u);
|
|
6942
|
-
}, [r, a]), s =
|
|
6942
|
+
}, [r, a]), s = z(async (u, c) => (i((l) => ({ ...l, ...c })), n(u), new Promise((l) => {
|
|
6943
6943
|
a.current = l;
|
|
6944
6944
|
})), [a, i, n]);
|
|
6945
6945
|
return { isShown: e, text: t, prompt: s, onFinish: o };
|
|
@@ -7104,9 +7104,9 @@ var T6 = (e, t) => {
|
|
|
7104
7104
|
o.forEach((s) => s && clearTimeout(s));
|
|
7105
7105
|
};
|
|
7106
7106
|
}, [t, n]);
|
|
7107
|
-
let r =
|
|
7107
|
+
let r = z(() => {
|
|
7108
7108
|
n && Ea({ type: 6, time: Date.now() });
|
|
7109
|
-
}, [n]), a =
|
|
7109
|
+
}, [n]), a = z((i, o) => {
|
|
7110
7110
|
let { reverseOrder: s = !1, gutter: u = 8, defaultPosition: c } = o || {}, l = t.filter((h) => (h.position || c) === (i.position || c) && h.height), d = l.findIndex((h) => h.id === i.id), f = l.filter((h, m) => m < d && h.visible).length;
|
|
7111
7111
|
return l.filter((h) => h.visible).slice(...s ? [f + 1] : [0, f]).reduce((h, m) => h + (m.height || 0) + u, 0);
|
|
7112
7112
|
}, [t]);
|
|
@@ -7663,16 +7663,16 @@ function Xc(e, t, n) {
|
|
|
7663
7663
|
return U.isArrayBuffer(m) || U.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
7664
7664
|
}
|
|
7665
7665
|
function l(m, p, g) {
|
|
7666
|
-
let
|
|
7666
|
+
let y = m;
|
|
7667
7667
|
if (m && !g && typeof m == "object") {
|
|
7668
7668
|
if (U.endsWith(p, "{}"))
|
|
7669
7669
|
p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
|
|
7670
|
-
else if (U.isArray(m) && FS(m) || (U.isFileList(m) || U.endsWith(p, "[]")) && (
|
|
7671
|
-
return p = kb(p),
|
|
7672
|
-
!(U.isUndefined(
|
|
7670
|
+
else if (U.isArray(m) && FS(m) || (U.isFileList(m) || U.endsWith(p, "[]")) && (y = U.toArray(m)))
|
|
7671
|
+
return p = kb(p), y.forEach(function(b, w) {
|
|
7672
|
+
!(U.isUndefined(b) || b === null) && t.append(
|
|
7673
7673
|
// eslint-disable-next-line no-nested-ternary
|
|
7674
7674
|
o === !0 ? Nm([p], w, i) : o === null ? p : p + "[]",
|
|
7675
|
-
c(
|
|
7675
|
+
c(b)
|
|
7676
7676
|
);
|
|
7677
7677
|
}), !1;
|
|
7678
7678
|
}
|
|
@@ -7687,14 +7687,14 @@ function Xc(e, t, n) {
|
|
|
7687
7687
|
if (!U.isUndefined(m)) {
|
|
7688
7688
|
if (d.indexOf(m) !== -1)
|
|
7689
7689
|
throw Error("Circular reference detected in " + p.join("."));
|
|
7690
|
-
d.push(m), U.forEach(m, function(
|
|
7691
|
-
(!(U.isUndefined(
|
|
7690
|
+
d.push(m), U.forEach(m, function(y, _) {
|
|
7691
|
+
(!(U.isUndefined(y) || y === null) && a.call(
|
|
7692
7692
|
t,
|
|
7693
|
-
|
|
7693
|
+
y,
|
|
7694
7694
|
U.isString(_) ? _.trim() : _,
|
|
7695
7695
|
p,
|
|
7696
7696
|
f
|
|
7697
|
-
)) === !0 && h(
|
|
7697
|
+
)) === !0 && h(y, p ? p.concat(_) : [_]);
|
|
7698
7698
|
}), d.pop();
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
@@ -8377,16 +8377,16 @@ const Pb = (e) => {
|
|
|
8377
8377
|
}
|
|
8378
8378
|
let g = new XMLHttpRequest();
|
|
8379
8379
|
g.open(a.method.toUpperCase(), a.url, !0), g.timeout = a.timeout;
|
|
8380
|
-
function
|
|
8380
|
+
function y() {
|
|
8381
8381
|
if (!g)
|
|
8382
8382
|
return;
|
|
8383
|
-
const
|
|
8383
|
+
const b = pn.from(
|
|
8384
8384
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
8385
8385
|
), x = {
|
|
8386
8386
|
data: !s || s === "text" || s === "json" ? g.responseText : g.response,
|
|
8387
8387
|
status: g.status,
|
|
8388
8388
|
statusText: g.statusText,
|
|
8389
|
-
headers:
|
|
8389
|
+
headers: b,
|
|
8390
8390
|
config: e,
|
|
8391
8391
|
request: g
|
|
8392
8392
|
};
|
|
@@ -8396,8 +8396,8 @@ const Pb = (e) => {
|
|
|
8396
8396
|
r(E), p();
|
|
8397
8397
|
}, x), g = null;
|
|
8398
8398
|
}
|
|
8399
|
-
"onloadend" in g ? g.onloadend =
|
|
8400
|
-
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
8399
|
+
"onloadend" in g ? g.onloadend = y : g.onreadystatechange = function() {
|
|
8400
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
8401
8401
|
}, g.onabort = function() {
|
|
8402
8402
|
g && (r(new Ae("Request aborted", Ae.ECONNABORTED, e, g)), g = null);
|
|
8403
8403
|
}, g.onerror = function() {
|
|
@@ -8413,8 +8413,8 @@ const Pb = (e) => {
|
|
|
8413
8413
|
)), g = null;
|
|
8414
8414
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in g && U.forEach(o.toJSON(), function(w, x) {
|
|
8415
8415
|
g.setRequestHeader(x, w);
|
|
8416
|
-
}), U.isUndefined(a.withCredentials) || (g.withCredentials = !!a.withCredentials), s && s !== "json" && (g.responseType = a.responseType), c && ([f, m] = ic(c, !0), g.addEventListener("progress", f)), u && g.upload && ([d, h] = ic(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (a.cancelToken || a.signal) && (l = (
|
|
8417
|
-
g && (r(!
|
|
8416
|
+
}), U.isUndefined(a.withCredentials) || (g.withCredentials = !!a.withCredentials), s && s !== "json" && (g.responseType = a.responseType), c && ([f, m] = ic(c, !0), g.addEventListener("progress", f)), u && g.upload && ([d, h] = ic(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (a.cancelToken || a.signal) && (l = (b) => {
|
|
8417
|
+
g && (r(!b || b.type ? new gi(null, e, g) : b), g.abort(), g = null);
|
|
8418
8418
|
}, a.cancelToken && a.cancelToken.subscribe(l), a.signal && (a.signal.aborted ? l() : a.signal.addEventListener("abort", l)));
|
|
8419
8419
|
const _ = iO(a.url);
|
|
8420
8420
|
if (_ && hn.protocols.indexOf(_) === -1) {
|
|
@@ -8583,7 +8583,7 @@ const xO = async (e) => {
|
|
|
8583
8583
|
}
|
|
8584
8584
|
}
|
|
8585
8585
|
U.isString(d) || (d = d ? "include" : "omit");
|
|
8586
|
-
const
|
|
8586
|
+
const y = "credentials" in Request.prototype;
|
|
8587
8587
|
m = new Request(t, {
|
|
8588
8588
|
...f,
|
|
8589
8589
|
signal: h,
|
|
@@ -8591,11 +8591,11 @@ const xO = async (e) => {
|
|
|
8591
8591
|
headers: l.normalize().toJSON(),
|
|
8592
8592
|
body: r,
|
|
8593
8593
|
duplex: "half",
|
|
8594
|
-
credentials:
|
|
8594
|
+
credentials: y ? d : void 0
|
|
8595
8595
|
});
|
|
8596
8596
|
let _ = await fetch(m);
|
|
8597
|
-
const
|
|
8598
|
-
if (Id && (s ||
|
|
8597
|
+
const b = Id && (c === "stream" || c === "response");
|
|
8598
|
+
if (Id && (s || b && p)) {
|
|
8599
8599
|
const x = {};
|
|
8600
8600
|
["status", "statusText", "headers"].forEach((P) => {
|
|
8601
8601
|
x[P] = _[P];
|
|
@@ -8613,7 +8613,7 @@ const xO = async (e) => {
|
|
|
8613
8613
|
}
|
|
8614
8614
|
c = c || "text";
|
|
8615
8615
|
let w = await oc[U.findKey(oc, c) || "text"](_, e);
|
|
8616
|
-
return !
|
|
8616
|
+
return !b && p && p(), await new Promise((x, T) => {
|
|
8617
8617
|
Rb(x, T, {
|
|
8618
8618
|
data: w,
|
|
8619
8619
|
headers: pn.from(_.headers),
|
|
@@ -8623,13 +8623,13 @@ const xO = async (e) => {
|
|
|
8623
8623
|
request: m
|
|
8624
8624
|
});
|
|
8625
8625
|
});
|
|
8626
|
-
} catch (
|
|
8627
|
-
throw p && p(),
|
|
8626
|
+
} catch (y) {
|
|
8627
|
+
throw p && p(), y && y.name === "TypeError" && /fetch/i.test(y.message) ? Object.assign(
|
|
8628
8628
|
new Ae("Network Error", Ae.ERR_NETWORK, e, m),
|
|
8629
8629
|
{
|
|
8630
|
-
cause:
|
|
8630
|
+
cause: y.cause || y
|
|
8631
8631
|
}
|
|
8632
|
-
) : Ae.from(
|
|
8632
|
+
) : Ae.from(y, y && y.code, e, m);
|
|
8633
8633
|
}
|
|
8634
8634
|
}), Dd = {
|
|
8635
8635
|
http: NS,
|
|
@@ -10095,21 +10095,21 @@ function DO() {
|
|
|
10095
10095
|
throw new TypeError("argument str must be a string");
|
|
10096
10096
|
var p = {}, g = h.length;
|
|
10097
10097
|
if (g < 2) return p;
|
|
10098
|
-
var
|
|
10098
|
+
var y = m && m.decode || l, _ = 0, b = 0, w = 0;
|
|
10099
10099
|
do {
|
|
10100
|
-
if (
|
|
10100
|
+
if (b = h.indexOf("=", _), b === -1) break;
|
|
10101
10101
|
if (w = h.indexOf(";", _), w === -1)
|
|
10102
10102
|
w = g;
|
|
10103
|
-
else if (
|
|
10104
|
-
_ = h.lastIndexOf(";",
|
|
10103
|
+
else if (b > w) {
|
|
10104
|
+
_ = h.lastIndexOf(";", b - 1) + 1;
|
|
10105
10105
|
continue;
|
|
10106
10106
|
}
|
|
10107
|
-
var x = s(h, _,
|
|
10107
|
+
var x = s(h, _, b), T = u(h, b, x), E = h.slice(x, T);
|
|
10108
10108
|
if (!t.call(p, E)) {
|
|
10109
|
-
var M = s(h,
|
|
10109
|
+
var M = s(h, b + 1, w), P = u(h, w, M);
|
|
10110
10110
|
h.charCodeAt(M) === 34 && h.charCodeAt(P - 1) === 34 && (M++, P--);
|
|
10111
10111
|
var R = h.slice(M, P);
|
|
10112
|
-
p[E] = f(R,
|
|
10112
|
+
p[E] = f(R, y);
|
|
10113
10113
|
}
|
|
10114
10114
|
_ = w + 1;
|
|
10115
10115
|
} while (_ < g);
|
|
@@ -10135,16 +10135,16 @@ function DO() {
|
|
|
10135
10135
|
throw new TypeError("option encode is invalid");
|
|
10136
10136
|
if (!n.test(h))
|
|
10137
10137
|
throw new TypeError("argument name is invalid");
|
|
10138
|
-
var
|
|
10139
|
-
if (!r.test(
|
|
10138
|
+
var y = g(m);
|
|
10139
|
+
if (!r.test(y))
|
|
10140
10140
|
throw new TypeError("argument val is invalid");
|
|
10141
|
-
var _ = h + "=" +
|
|
10141
|
+
var _ = h + "=" + y;
|
|
10142
10142
|
if (!p) return _;
|
|
10143
10143
|
if (p.maxAge != null) {
|
|
10144
|
-
var
|
|
10145
|
-
if (!isFinite(
|
|
10144
|
+
var b = Math.floor(p.maxAge);
|
|
10145
|
+
if (!isFinite(b))
|
|
10146
10146
|
throw new TypeError("option maxAge is invalid");
|
|
10147
|
-
_ += "; Max-Age=" +
|
|
10147
|
+
_ += "; Max-Age=" + b;
|
|
10148
10148
|
}
|
|
10149
10149
|
if (p.domain) {
|
|
10150
10150
|
if (!a.test(p.domain))
|
|
@@ -10304,8 +10304,8 @@ var Xm;
|
|
|
10304
10304
|
function BO() {
|
|
10305
10305
|
if (Xm) return Xe;
|
|
10306
10306
|
Xm = 1;
|
|
10307
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117,
|
|
10308
|
-
function
|
|
10307
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
10308
|
+
function b(x) {
|
|
10309
10309
|
if (typeof x == "object" && x !== null) {
|
|
10310
10310
|
var T = x.$$typeof;
|
|
10311
10311
|
switch (T) {
|
|
@@ -10336,35 +10336,35 @@ function BO() {
|
|
|
10336
10336
|
}
|
|
10337
10337
|
}
|
|
10338
10338
|
function w(x) {
|
|
10339
|
-
return
|
|
10339
|
+
return b(x) === c;
|
|
10340
10340
|
}
|
|
10341
10341
|
return Xe.AsyncMode = u, Xe.ConcurrentMode = c, Xe.ContextConsumer = s, Xe.ContextProvider = o, Xe.Element = t, Xe.ForwardRef = l, Xe.Fragment = r, Xe.Lazy = m, Xe.Memo = h, Xe.Portal = n, Xe.Profiler = i, Xe.StrictMode = a, Xe.Suspense = d, Xe.isAsyncMode = function(x) {
|
|
10342
|
-
return w(x) ||
|
|
10342
|
+
return w(x) || b(x) === u;
|
|
10343
10343
|
}, Xe.isConcurrentMode = w, Xe.isContextConsumer = function(x) {
|
|
10344
|
-
return
|
|
10344
|
+
return b(x) === s;
|
|
10345
10345
|
}, Xe.isContextProvider = function(x) {
|
|
10346
|
-
return
|
|
10346
|
+
return b(x) === o;
|
|
10347
10347
|
}, Xe.isElement = function(x) {
|
|
10348
10348
|
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
10349
10349
|
}, Xe.isForwardRef = function(x) {
|
|
10350
|
-
return
|
|
10350
|
+
return b(x) === l;
|
|
10351
10351
|
}, Xe.isFragment = function(x) {
|
|
10352
|
-
return
|
|
10352
|
+
return b(x) === r;
|
|
10353
10353
|
}, Xe.isLazy = function(x) {
|
|
10354
|
-
return
|
|
10354
|
+
return b(x) === m;
|
|
10355
10355
|
}, Xe.isMemo = function(x) {
|
|
10356
|
-
return
|
|
10356
|
+
return b(x) === h;
|
|
10357
10357
|
}, Xe.isPortal = function(x) {
|
|
10358
|
-
return
|
|
10358
|
+
return b(x) === n;
|
|
10359
10359
|
}, Xe.isProfiler = function(x) {
|
|
10360
|
-
return
|
|
10360
|
+
return b(x) === i;
|
|
10361
10361
|
}, Xe.isStrictMode = function(x) {
|
|
10362
|
-
return
|
|
10362
|
+
return b(x) === a;
|
|
10363
10363
|
}, Xe.isSuspense = function(x) {
|
|
10364
|
-
return
|
|
10364
|
+
return b(x) === d;
|
|
10365
10365
|
}, Xe.isValidElementType = function(x) {
|
|
10366
|
-
return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === f || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === h || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof ===
|
|
10367
|
-
}, Xe.typeOf =
|
|
10366
|
+
return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === f || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === h || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof === y || x.$$typeof === _ || x.$$typeof === p);
|
|
10367
|
+
}, Xe.typeOf = b, Xe;
|
|
10368
10368
|
}
|
|
10369
10369
|
var Je = {};
|
|
10370
10370
|
/** @license React v16.13.1
|
|
@@ -10378,10 +10378,10 @@ var Je = {};
|
|
|
10378
10378
|
var Jm;
|
|
10379
10379
|
function zO() {
|
|
10380
10380
|
return Jm || (Jm = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10381
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117,
|
|
10382
|
-
function
|
|
10381
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
10382
|
+
function b(S) {
|
|
10383
10383
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10384
|
-
S === r || S === c || S === i || S === a || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === h || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof ===
|
|
10384
|
+
S === r || S === c || S === i || S === a || S === d || S === f || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === h || S.$$typeof === o || S.$$typeof === s || S.$$typeof === l || S.$$typeof === g || S.$$typeof === y || S.$$typeof === _ || S.$$typeof === p);
|
|
10385
10385
|
}
|
|
10386
10386
|
function w(S) {
|
|
10387
10387
|
if (typeof S == "object" && S !== null) {
|
|
@@ -10415,8 +10415,8 @@ function zO() {
|
|
|
10415
10415
|
}
|
|
10416
10416
|
}
|
|
10417
10417
|
}
|
|
10418
|
-
var x = u, T = c, E = s, M = o, P = t, R = l,
|
|
10419
|
-
function
|
|
10418
|
+
var x = u, T = c, E = s, M = o, P = t, R = l, k = r, D = m, C = h, A = n, I = i, L = a, W = d, q = !1;
|
|
10419
|
+
function N(S) {
|
|
10420
10420
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), j(S) || w(S) === u;
|
|
10421
10421
|
}
|
|
10422
10422
|
function j(S) {
|
|
@@ -10455,7 +10455,7 @@ function zO() {
|
|
|
10455
10455
|
function ie(S) {
|
|
10456
10456
|
return w(S) === d;
|
|
10457
10457
|
}
|
|
10458
|
-
Je.AsyncMode = x, Je.ConcurrentMode = T, Je.ContextConsumer = E, Je.ContextProvider = M, Je.Element = P, Je.ForwardRef = R, Je.Fragment =
|
|
10458
|
+
Je.AsyncMode = x, Je.ConcurrentMode = T, Je.ContextConsumer = E, Je.ContextProvider = M, Je.Element = P, Je.ForwardRef = R, Je.Fragment = k, Je.Lazy = D, Je.Memo = C, Je.Portal = A, Je.Profiler = I, Je.StrictMode = L, Je.Suspense = W, Je.isAsyncMode = N, Je.isConcurrentMode = j, Je.isContextConsumer = B, Je.isContextProvider = Z, Je.isElement = ne, Je.isForwardRef = Y, Je.isFragment = Q, Je.isLazy = G, Je.isMemo = J, Je.isPortal = re, Je.isProfiler = F, Je.isStrictMode = V, Je.isSuspense = ie, Je.isValidElementType = b, Je.typeOf = w;
|
|
10459
10459
|
}()), Je;
|
|
10460
10460
|
}
|
|
10461
10461
|
var Qm;
|
|
@@ -10508,14 +10508,14 @@ function VO() {
|
|
|
10508
10508
|
function h(m, p, g) {
|
|
10509
10509
|
if (typeof p != "string") {
|
|
10510
10510
|
if (f) {
|
|
10511
|
-
var
|
|
10512
|
-
|
|
10511
|
+
var y = d(p);
|
|
10512
|
+
y && y !== f && h(m, y, g);
|
|
10513
10513
|
}
|
|
10514
10514
|
var _ = u(p);
|
|
10515
10515
|
c && (_ = _.concat(c(p)));
|
|
10516
|
-
for (var
|
|
10516
|
+
for (var b = o(m), w = o(p), x = 0; x < _.length; ++x) {
|
|
10517
10517
|
var T = _[x];
|
|
10518
|
-
if (!n[T] && !(g && g[T]) && !(w && w[T]) && !(
|
|
10518
|
+
if (!n[T] && !(g && g[T]) && !(w && w[T]) && !(b && b[T])) {
|
|
10519
10519
|
var E = l(p, T);
|
|
10520
10520
|
try {
|
|
10521
10521
|
s(m, T, E);
|
|
@@ -10558,21 +10558,21 @@ function YO(e, t, n) {
|
|
|
10558
10558
|
return !1;
|
|
10559
10559
|
}
|
|
10560
10560
|
const GO = () => {
|
|
10561
|
-
const { axiosOptions: e, cookieDomain: t } = le(Nn), [, n, r] = Bb(["Authorization"]), a = vt.create(e), i =
|
|
10561
|
+
const { axiosOptions: e, cookieDomain: t } = le(Nn), [, n, r] = Bb(["Authorization"]), a = vt.create(e), i = z(() => localStorage.getItem("token") ?? null, []), o = z(() => {
|
|
10562
10562
|
const c = i();
|
|
10563
10563
|
return c !== null && c.length > 0;
|
|
10564
|
-
}, [i]), s =
|
|
10564
|
+
}, [i]), s = z(async (c, l) => a.post("/user/login", { kid: c, password: l }).then((d) => (localStorage.setItem("token", d.data), n("Authorization", d.data, {
|
|
10565
10565
|
path: "/",
|
|
10566
10566
|
secure: !0,
|
|
10567
10567
|
sameSite: "none",
|
|
10568
10568
|
domain: t,
|
|
10569
10569
|
expires: dw(new Date(Date.now()), 24)
|
|
10570
|
-
}), d.data)).catch((d) => (console.log(d), null)), [a, n, t]), u =
|
|
10570
|
+
}), d.data)).catch((d) => (console.log(d), null)), [a, n, t]), u = z(() => {
|
|
10571
10571
|
localStorage.removeItem("token"), localStorage.removeItem("user"), r("Authorization");
|
|
10572
10572
|
}, [r]);
|
|
10573
10573
|
return { isAuthenticated: o, login: s, logout: u, getToken: i };
|
|
10574
10574
|
}, ZO = () => {
|
|
10575
|
-
const [, , e] = Bb(["Authorization"]), { msalScopes: t } = le(e1), { instance: n, inProgress: r } = J_(), a = Q_(), i =
|
|
10575
|
+
const [, , e] = Bb(["Authorization"]), { msalScopes: t } = le(e1), { instance: n, inProgress: r } = J_(), a = Q_(), i = z(async () => {
|
|
10576
10576
|
var f;
|
|
10577
10577
|
const l = n.getActiveAccount(), d = l ?? ((f = n.getAllAccounts()) == null ? void 0 : f.at(0)) ?? void 0;
|
|
10578
10578
|
return d ? (l || n.setActiveAccount(d), n.acquireTokenSilent({
|
|
@@ -10583,9 +10583,9 @@ const GO = () => {
|
|
|
10583
10583
|
return console.log("Silent token acquisition failed. Acquiring token using redirect"), n.acquireTokenRedirect({ scopes: t }), null;
|
|
10584
10584
|
throw h;
|
|
10585
10585
|
})) : null;
|
|
10586
|
-
}, [n, t]), o =
|
|
10586
|
+
}, [n, t]), o = z(() => a, [a]), s = z(() => !o() && r !== X_.None, [o, r]), u = z(async () => n.loginRedirect({
|
|
10587
10587
|
scopes: t
|
|
10588
|
-
}).then(() => "").catch(() => null), [n, t]), c =
|
|
10588
|
+
}).then(() => "").catch(() => null), [n, t]), c = z(() => {
|
|
10589
10589
|
n.logout(), localStorage.removeItem("user"), e("Authorization");
|
|
10590
10590
|
}, [e, n]);
|
|
10591
10591
|
return {
|
|
@@ -10621,7 +10621,7 @@ const GO = () => {
|
|
|
10621
10621
|
default:
|
|
10622
10622
|
return 5e3;
|
|
10623
10623
|
}
|
|
10624
|
-
}, zb = () => ({ addNotification:
|
|
10624
|
+
}, zb = () => ({ addNotification: z((t, n) => {
|
|
10625
10625
|
const r = MO(t), a = JO(n), i = /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
10626
10626
|
r,
|
|
10627
10627
|
/* @__PURE__ */ v.jsx(r6, { onClick: () => La.dismiss(r), type: "button", style: {
|
|
@@ -10684,28 +10684,28 @@ const GO = () => {
|
|
|
10684
10684
|
}
|
|
10685
10685
|
}
|
|
10686
10686
|
}, []) }), RX = vt.CancelToken, dh = (e) => {
|
|
10687
|
-
const { authenticated: t = !0, differentBaseUrl: n, silent: r = !1, customToken: a, ignoreDelegation: i, noToastOnStatus: o } = { ...e }, { language: s, axiosOptions: u, texts: { axios: c } } = le(Nn), { delegation: l } = le(r$), d = ae(() => (l == null ? void 0 : l.id) ?? null, [l == null ? void 0 : l.id]), { addNotification: f } = zb(), { getToken: h } = KO(), m = ae(() => vt.create(u), [u]), p =
|
|
10688
|
-
var _,
|
|
10689
|
-
if (t && !
|
|
10687
|
+
const { authenticated: t = !0, differentBaseUrl: n, silent: r = !1, customToken: a, ignoreDelegation: i, noToastOnStatus: o } = { ...e }, { language: s, axiosOptions: u, texts: { axios: c } } = le(Nn), { delegation: l } = le(r$), d = ae(() => (l == null ? void 0 : l.id) ?? null, [l == null ? void 0 : l.id]), { addNotification: f } = zb(), { getToken: h } = KO(), m = ae(() => vt.create(u), [u]), p = z(async (y) => {
|
|
10688
|
+
var _, b, w;
|
|
10689
|
+
if (t && !y.headers.Authorization) {
|
|
10690
10690
|
const x = a ?? await h();
|
|
10691
10691
|
if (!x)
|
|
10692
10692
|
return Promise.reject(new Error("No bearer token"));
|
|
10693
|
-
|
|
10693
|
+
y.headers.Authorization = `Bearer ${x}`;
|
|
10694
10694
|
}
|
|
10695
|
-
return d !== null && !i && (
|
|
10696
|
-
}, [t, h, s, a, d, i]), g =
|
|
10695
|
+
return d !== null && !i && (y.headers.DelegationId = d.toString()), (_ = y.url) != null && _.includes("culture=") ? y.url = (b = y.url) == null ? void 0 : b.replace(/culture=[a-z]{2}/, `culture=${s}`) : y.url = `${y.url}${(w = y.url) != null && w.includes("?") ? "&" : "?"}culture=${s}`, y;
|
|
10696
|
+
}, [t, h, s, a, d, i]), g = z(
|
|
10697
10697
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10698
|
-
(
|
|
10698
|
+
(y) => {
|
|
10699
10699
|
var w, x;
|
|
10700
|
-
if (console.log(
|
|
10701
|
-
return Promise.reject(
|
|
10702
|
-
const _ = Ub(
|
|
10700
|
+
if (console.log(y), vt.isCancel(y))
|
|
10701
|
+
return Promise.reject(y);
|
|
10702
|
+
const _ = Ub(y);
|
|
10703
10703
|
if (_.length > 0) {
|
|
10704
10704
|
const T = _.find((E) => E.name.toLowerCase() === "others");
|
|
10705
|
-
return T ? (!r && f(T.errors, "danger"), Promise.reject(
|
|
10705
|
+
return T ? (!r && f(T.errors, "danger"), Promise.reject(y)) : (!r && f(c.validationError, "warning"), Promise.reject(y));
|
|
10706
10706
|
}
|
|
10707
|
-
const
|
|
10708
|
-
return
|
|
10707
|
+
const b = CO(y);
|
|
10708
|
+
return b !== null ? (!r && f(`${c.permissionError}: ${sc(", ", ...b)}`, "danger"), Promise.reject(y)) : (o ?? []).includes((w = y.response) == null ? void 0 : w.status) ? Promise.reject(y) : ((x = y.response) == null ? void 0 : x.status) === 403 ? (!r && f(c.forbiddenError, "danger"), Promise.reject(y)) : y.message && y.message === "Network Error" ? (!r && f(c.networkError, "danger"), Promise.reject(y)) : (vt.isCancel(y) || !r && f(c.unexpectedError, "danger"), Promise.reject(y));
|
|
10709
10709
|
},
|
|
10710
10710
|
[
|
|
10711
10711
|
f,
|
|
@@ -10720,9 +10720,9 @@ const GO = () => {
|
|
|
10720
10720
|
);
|
|
10721
10721
|
return ke(() => {
|
|
10722
10722
|
n && (m.defaults.baseURL = n), m.interceptors.request.clear(), m.interceptors.response.clear();
|
|
10723
|
-
const
|
|
10723
|
+
const y = m.interceptors.request.use(p, (b) => Promise.reject(b)), _ = m.interceptors.response.use((b) => b, g);
|
|
10724
10724
|
return () => {
|
|
10725
|
-
m.interceptors.request.eject(
|
|
10725
|
+
m.interceptors.request.eject(y), m.interceptors.response.eject(_);
|
|
10726
10726
|
};
|
|
10727
10727
|
}, [
|
|
10728
10728
|
m.defaults,
|
|
@@ -13613,48 +13613,48 @@ var Vt = /* @__PURE__ */ Object.freeze({
|
|
|
13613
13613
|
ZodError: On
|
|
13614
13614
|
});
|
|
13615
13615
|
const hh = () => {
|
|
13616
|
-
const { texts: { formValidation: e } } = le(Nn), t =
|
|
13616
|
+
const { texts: { formValidation: e } } = le(Nn), t = z((p) => {
|
|
13617
13617
|
let g = (p != null && p.useCoerce ? Vt.coerce : Vt).string({
|
|
13618
13618
|
invalid_type_error: e.required,
|
|
13619
13619
|
required_error: e.required
|
|
13620
13620
|
});
|
|
13621
|
-
return p != null && p.email && (g = g.email(e.invalidEmail)), p != null && p.length && (g = g.min(p.length, e.length(p.length))), p != null && p.minLength && (g = g.min(p.minLength, e.minLength(p.minLength))), p != null && p.maxLength && (g = g.max(p.maxLength, e.maxLength(p.maxLength))), p != null && p.numeric && (g = g.regex(/^\d+$/, e.noCharactersOtherThanNumbers)), g.transform((
|
|
13622
|
-
}, [e]), n =
|
|
13623
|
-
const g = (p == null ? void 0 : p.min) ?? Number.MIN_SAFE_INTEGER,
|
|
13621
|
+
return p != null && p.email && (g = g.email(e.invalidEmail)), p != null && p.length && (g = g.min(p.length, e.length(p.length))), p != null && p.minLength && (g = g.min(p.minLength, e.minLength(p.minLength))), p != null && p.maxLength && (g = g.max(p.maxLength, e.maxLength(p.maxLength))), p != null && p.numeric && (g = g.regex(/^\d+$/, e.noCharactersOtherThanNumbers)), g.transform((y) => y ?? null);
|
|
13622
|
+
}, [e]), n = z((p) => t(p).nullable().optional().transform((g) => g ?? null), [t]), r = z((p) => {
|
|
13623
|
+
const g = (p == null ? void 0 : p.min) ?? Number.MIN_SAFE_INTEGER, y = (p == null ? void 0 : p.max) ?? Number.MAX_SAFE_INTEGER, _ = (p != null && p.useCoerce ? Vt.coerce : Vt).number({
|
|
13624
13624
|
invalid_type_error: e.required,
|
|
13625
13625
|
required_error: e.required
|
|
13626
|
-
}).min(g, e.lessThanMin(g)).max(
|
|
13627
|
-
return _.transform((
|
|
13628
|
-
}, [e]), a =
|
|
13626
|
+
}).min(g, e.lessThanMin(g)).max(y, e.moreThanMax(y));
|
|
13627
|
+
return _.transform((b) => b ?? null), _;
|
|
13628
|
+
}, [e]), a = z((p) => r(p).nullable().optional().transform((g) => g ?? null), [r]), i = z((p) => (p != null && p.useCoerce ? Vt.coerce : Vt).boolean({
|
|
13629
13629
|
invalid_type_error: e.required,
|
|
13630
13630
|
required_error: e.required
|
|
13631
|
-
}).transform((g) => g ?? null), [e.required]), o =
|
|
13631
|
+
}).transform((g) => g ?? null), [e.required]), o = z((p) => (p != null && p.useCoerce ? Vt.coerce : Vt).string({
|
|
13632
13632
|
invalid_type_error: e.required,
|
|
13633
13633
|
required_error: e.required
|
|
13634
|
-
}).refine(RO, { message: e.invalidDate }).transform((
|
|
13634
|
+
}).refine(RO, { message: e.invalidDate }).transform((y) => y ?? null), [e.invalidDate, e.required]), s = z((p) => o(p).nullable().transform((g) => g ?? null), [o]), u = z(
|
|
13635
13635
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13636
13636
|
(p, g) => Vt.enum(p, {
|
|
13637
13637
|
invalid_type_error: e.required,
|
|
13638
13638
|
required_error: e.required
|
|
13639
13639
|
}).transform((_) => _ ?? null),
|
|
13640
13640
|
[e.required]
|
|
13641
|
-
), c =
|
|
13641
|
+
), c = z((p, g) => u(p, g).nullable().transform((y) => y ?? null), [u]), l = z(
|
|
13642
13642
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13643
|
-
(p) => Vt.object({ id: a({ useCoerce: !0 }) }).nullable().transform((
|
|
13643
|
+
(p) => Vt.object({ id: a({ useCoerce: !0 }) }).nullable().transform((y) => y ?? null),
|
|
13644
13644
|
[a]
|
|
13645
|
-
), d =
|
|
13645
|
+
), d = z(
|
|
13646
13646
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13647
|
-
(p) => Vt.object({ id: r() }).transform((
|
|
13647
|
+
(p) => Vt.object({ id: r() }).transform((y) => y ?? null),
|
|
13648
13648
|
[r]
|
|
13649
|
-
), f =
|
|
13649
|
+
), f = z(
|
|
13650
13650
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13651
|
-
(p) => Vt.object({ id: n({ useCoerce: !0 }) }).nullable().transform((
|
|
13651
|
+
(p) => Vt.object({ id: n({ useCoerce: !0 }) }).nullable().transform((y) => y ?? null),
|
|
13652
13652
|
[n]
|
|
13653
|
-
), h =
|
|
13653
|
+
), h = z(
|
|
13654
13654
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13655
|
-
(p) => Vt.object({ id: t() }).transform((
|
|
13655
|
+
(p) => Vt.object({ id: t() }).transform((y) => y ?? null),
|
|
13656
13656
|
[t]
|
|
13657
|
-
), m =
|
|
13657
|
+
), m = z(({ required: p, multiple: g, maxFileSize: y }) => Vt.any().transform((b) => Array.from(b ?? [])).refine((b) => !p || (b == null ? void 0 : b.length) > 0, "File is required.").refine((b) => g || (b == null ? void 0 : b.length) <= 1, "Multiple files not allowed.").refine((b) => b.every((w) => w.size <= y), `Maximum file size is ${uh(y)}.`).transform((b) => (g ? b : b == null ? void 0 : b[0]) ?? null), []);
|
|
13658
13658
|
return {
|
|
13659
13659
|
zString: n,
|
|
13660
13660
|
zStringRequired: t,
|
|
@@ -13833,100 +13833,100 @@ function F$(e) {
|
|
|
13833
13833
|
return We({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z" }, child: [] }] })(e);
|
|
13834
13834
|
}
|
|
13835
13835
|
const gh = ({ InputContainer: e = eu, formField: t, label: n, resetsFields: r, options: a, isNumber: i, size: o, showClearIcon: s, clearValue: u, noSortOptions: c, required: l, hidden: d, disabled: f, withoutLabel: h, className: m }) => {
|
|
13836
|
-
const { register: p, formState: g, getValues:
|
|
13837
|
-
const
|
|
13838
|
-
i ? _(t,
|
|
13836
|
+
const { register: p, formState: g, getValues: y, setValue: _, watch: b } = Ef(), [w, x] = Ue(void 0), [T, E] = Ue(!1), M = ae(() => a.sort((k, D) => c ? 0 : (k.name ?? "").localeCompare(D.name ?? "")), [a, c]), P = z(() => {
|
|
13837
|
+
const k = u ?? null;
|
|
13838
|
+
i ? _(t, k === null ? null : Number(k), {
|
|
13839
13839
|
shouldDirty: !0,
|
|
13840
13840
|
shouldValidate: T
|
|
13841
|
-
}) : _(t, (
|
|
13841
|
+
}) : _(t, (k == null ? void 0 : k.toString()) ?? "", { shouldDirty: !0, shouldValidate: T });
|
|
13842
13842
|
}, [u, i, _, t, T]);
|
|
13843
13843
|
ke(() => {
|
|
13844
|
-
const
|
|
13845
|
-
let
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
}), x(
|
|
13844
|
+
const k = t.split(".");
|
|
13845
|
+
let D = g.errors;
|
|
13846
|
+
k.forEach((C) => {
|
|
13847
|
+
D !== void 0 && (D = D[C]);
|
|
13848
|
+
}), x(D);
|
|
13849
13849
|
}, [g, t]), ke(() => {
|
|
13850
|
-
_(t,
|
|
13851
|
-
}, [M, t,
|
|
13850
|
+
_(t, y(t));
|
|
13851
|
+
}, [M, t, y, _]), ke(() => {
|
|
13852
13852
|
g.isSubmitted && E(!0);
|
|
13853
13853
|
}, [g]);
|
|
13854
13854
|
const R = w !== void 0;
|
|
13855
13855
|
return /* @__PURE__ */ v.jsx(v.Fragment, { children: /* @__PURE__ */ v.jsxs(e, { label: `${n}${l ? " *" : ""}`, hidden: d, withoutLabel: h, isInvalid: R, className: m, children: [
|
|
13856
13856
|
/* @__PURE__ */ v.jsxs(pi.Select, { size: o, ...p(t, {
|
|
13857
|
-
setValueAs: (
|
|
13857
|
+
setValueAs: (k) => i ? k == null || k === "" ? null : parseInt(k, 10) : k == null || k === "" ? null : k,
|
|
13858
13858
|
onChange: () => {
|
|
13859
|
-
r && r.forEach((
|
|
13859
|
+
r && r.forEach((k) => _(k, null, { shouldDirty: !0, shouldValidate: T }));
|
|
13860
13860
|
}
|
|
13861
13861
|
}), isInvalid: R, hidden: d, disabled: f, className: "w-100", children: [
|
|
13862
13862
|
/* @__PURE__ */ v.jsx("option", { value: "" }),
|
|
13863
|
-
M.map((
|
|
13863
|
+
M.map((k) => /* @__PURE__ */ v.jsx("option", { value: k.id ?? "", children: k.name }, k.id))
|
|
13864
13864
|
] }),
|
|
13865
|
-
s &&
|
|
13865
|
+
s && b(t) && /* @__PURE__ */ v.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ v.jsx(mh, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ v.jsx(nh, {}) }) }),
|
|
13866
13866
|
w && /* @__PURE__ */ v.jsx(wh, { message: w.message })
|
|
13867
13867
|
] }) });
|
|
13868
|
-
}, n1 = ({ InputContainer: e = eu, formField: t, label: n, resetsFields: r, size: a, showClearIcon: i, clearValue: o, required: s, hidden: u, disabled: c, rows: l, withoutLabel: d, customFormControlProps: f,
|
|
13869
|
-
const { register:
|
|
13870
|
-
const
|
|
13871
|
-
|
|
13872
|
-
}, [o,
|
|
13873
|
-
const
|
|
13874
|
-
let
|
|
13875
|
-
|
|
13876
|
-
|
|
13877
|
-
}),
|
|
13878
|
-
}, [
|
|
13868
|
+
}, n1 = ({ InputContainer: e = eu, formField: t, label: n, resetsFields: r, size: a, showClearIcon: i, clearValue: o, required: s, hidden: u, disabled: c, rows: l, withoutLabel: d, customFormControlProps: f, minLength: h, maxLength: m, className: p }) => {
|
|
13869
|
+
const { register: g, formState: y, setValue: _, watch: b } = Ef(), [w, x] = Ue(void 0), [T, E] = Ue(!1), M = z(() => {
|
|
13870
|
+
const k = o ?? null;
|
|
13871
|
+
_(t, (k == null ? void 0 : k.toString()) ?? "", { shouldDirty: !0, shouldValidate: T });
|
|
13872
|
+
}, [o, _, t, T]), P = z(() => {
|
|
13873
|
+
const k = t.split(".");
|
|
13874
|
+
let D = y.errors;
|
|
13875
|
+
k.forEach((C) => {
|
|
13876
|
+
D !== void 0 && (D = D[C]);
|
|
13877
|
+
}), x(D);
|
|
13878
|
+
}, [y, t]);
|
|
13879
13879
|
ke(() => {
|
|
13880
|
-
|
|
13881
|
-
}, [
|
|
13882
|
-
|
|
13883
|
-
}, [
|
|
13884
|
-
const
|
|
13885
|
-
return /* @__PURE__ */ v.jsxs(e, { label: `${n}${s ? " *" : ""}`, hidden: u, withoutLabel: d, isInvalid:
|
|
13886
|
-
/* @__PURE__ */ v.jsx(pi.Control, { as: "textarea", size: a, ...
|
|
13887
|
-
setValueAs: (
|
|
13880
|
+
P();
|
|
13881
|
+
}, [P]), ke(() => {
|
|
13882
|
+
y.isSubmitted && E(!0);
|
|
13883
|
+
}, [y]);
|
|
13884
|
+
const R = w !== void 0;
|
|
13885
|
+
return /* @__PURE__ */ v.jsxs(e, { label: `${n}${s ? " *" : ""}`, hidden: u, withoutLabel: d, isInvalid: R, className: p, isForTextAreaInput: !0, children: [
|
|
13886
|
+
/* @__PURE__ */ v.jsx(pi.Control, { as: "textarea", size: a, ...g(t, {
|
|
13887
|
+
setValueAs: (k) => k == null || k === "" ? null : k,
|
|
13888
13888
|
onChange: () => {
|
|
13889
|
-
r && r.forEach((
|
|
13889
|
+
r && r.forEach((k) => _(k, null, { shouldDirty: !0, shouldValidate: T }));
|
|
13890
13890
|
}
|
|
13891
|
-
}), isInvalid:
|
|
13892
|
-
i && b(t) && /* @__PURE__ */ v.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ v.jsx(mh, { color: "secondary", size: "sm", onClick:
|
|
13893
|
-
|
|
13891
|
+
}), isInvalid: R, hidden: u, disabled: c, rows: l ?? 2, className: "w-100", minLength: h, maxLength: m, ...f }),
|
|
13892
|
+
i && b(t) && /* @__PURE__ */ v.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ v.jsx(mh, { color: "secondary", size: "sm", onClick: M, children: /* @__PURE__ */ v.jsx(nh, {}) }) }),
|
|
13893
|
+
w && /* @__PURE__ */ v.jsx(wh, { message: w.message })
|
|
13894
13894
|
] });
|
|
13895
|
-
}, mc = ({ InputContainer: e = eu, type: t, formField: n, label: r, placeholder: a, size: i, resetsFields: o, showClearIcon: s, clearValue: u, required: c, hidden: l, disabled: d, withoutLabel: f, list: h, step: m, CustomOnChangeComponent: p, noSelectOnFocus: g, className: b }) => {
|
|
13896
|
-
const { register:
|
|
13897
|
-
const
|
|
13898
|
-
t === "number" ?
|
|
13895
|
+
}, mc = ({ InputContainer: e = eu, type: t, formField: n, label: r, placeholder: a, size: i, resetsFields: o, showClearIcon: s, clearValue: u, required: c, hidden: l, disabled: d, withoutLabel: f, list: h, step: m, CustomOnChangeComponent: p, noSelectOnFocus: g, minLength: y, maxLength: _, className: b }) => {
|
|
13896
|
+
const { register: w, formState: x, setValue: T, watch: E } = Ef(), [M, P] = Ue(void 0), [R, k] = Ue(!1), D = z(() => {
|
|
13897
|
+
const N = u ?? null;
|
|
13898
|
+
t === "number" ? T(n, N !== null ? Number(N) : null, {
|
|
13899
13899
|
shouldDirty: !0,
|
|
13900
|
-
shouldValidate:
|
|
13901
|
-
}) :
|
|
13902
|
-
}, [u, t,
|
|
13903
|
-
const
|
|
13904
|
-
let
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
}),
|
|
13908
|
-
}, [
|
|
13900
|
+
shouldValidate: R
|
|
13901
|
+
}) : T(n, (N == null ? void 0 : N.toString()) ?? "", { shouldDirty: !0, shouldValidate: R });
|
|
13902
|
+
}, [u, t, T, n, R]), C = z(() => {
|
|
13903
|
+
const N = n.split(".");
|
|
13904
|
+
let j = x.errors;
|
|
13905
|
+
N.forEach((B) => {
|
|
13906
|
+
j !== void 0 && (j = j[B]);
|
|
13907
|
+
}), P(j);
|
|
13908
|
+
}, [x, n]);
|
|
13909
13909
|
ke(() => {
|
|
13910
|
-
|
|
13911
|
-
}, [
|
|
13912
|
-
|
|
13913
|
-
}, [
|
|
13914
|
-
const
|
|
13915
|
-
return /* @__PURE__ */ v.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: f, isInvalid:
|
|
13910
|
+
C();
|
|
13911
|
+
}, [C]), ke(() => {
|
|
13912
|
+
x.isSubmitted && k(!0);
|
|
13913
|
+
}, [x]);
|
|
13914
|
+
const A = M !== void 0, [I, L] = Ue(!1), W = E(n), q = n$(t, W ?? null, I);
|
|
13915
|
+
return /* @__PURE__ */ v.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: f, isInvalid: A, className: b, children: [
|
|
13916
13916
|
/* @__PURE__ */ v.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
13917
|
-
/* @__PURE__ */ v.jsx(pi.Control, { type:
|
|
13918
|
-
|
|
13919
|
-
}, ...
|
|
13920
|
-
setValueAs: (
|
|
13917
|
+
/* @__PURE__ */ v.jsx(pi.Control, { type: q, placeholder: a ?? r, size: i, onFocus: (N) => {
|
|
13918
|
+
L(!0), !g && N.target.select();
|
|
13919
|
+
}, ...w(n, {
|
|
13920
|
+
setValueAs: (N) => t === "number" ? N == null || N === "" ? null : Number(N) : N == null || N === "" ? null : N,
|
|
13921
13921
|
onChange: () => {
|
|
13922
|
-
o && o.forEach((
|
|
13922
|
+
o && o.forEach((N) => T(N, null, { shouldDirty: !0, shouldValidate: R }));
|
|
13923
13923
|
},
|
|
13924
|
-
onBlur: () =>
|
|
13925
|
-
}), isInvalid:
|
|
13924
|
+
onBlur: () => L(!1)
|
|
13925
|
+
}), isInvalid: A, hidden: l, disabled: d, list: h, className: "w-100", step: m, minLength: y, maxLength: _ }),
|
|
13926
13926
|
p && /* @__PURE__ */ v.jsx("div", { className: "custom-picker-button", children: p })
|
|
13927
13927
|
] }),
|
|
13928
|
-
s &&
|
|
13929
|
-
|
|
13928
|
+
s && E(n) && /* @__PURE__ */ v.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ v.jsx(mh, { color: "secondary", size: "sm", onClick: D, children: /* @__PURE__ */ v.jsx(nh, {}) }) }),
|
|
13929
|
+
M && /* @__PURE__ */ v.jsx(wh, { message: M.message })
|
|
13930
13930
|
] });
|
|
13931
13931
|
}, L$ = "_item_1dy8x_1", U$ = {
|
|
13932
13932
|
item: L$
|
|
@@ -13983,7 +13983,7 @@ const gh = ({ InputContainer: e = eu, formField: t, label: n, resetsFields: r, o
|
|
|
13983
13983
|
" "
|
|
13984
13984
|
] });
|
|
13985
13985
|
}, nE = ({ customText: e }) => {
|
|
13986
|
-
const { reducer: [t, n] } = le(Xt), r =
|
|
13986
|
+
const { reducer: [t, n] } = le(Xt), r = z(() => {
|
|
13987
13987
|
n({ type: "select-folder", folderId: "root" });
|
|
13988
13988
|
}, [n]);
|
|
13989
13989
|
return /* @__PURE__ */ v.jsx("li", { children: /* @__PURE__ */ v.jsx("button", { onClick: r, type: "button", className: se("border-0 bg-transparent"), children: /* @__PURE__ */ v.jsx(r1, { folderName: e ?? "root", isActive: t.activeFolder === "root", isDefault: !0 }) }) });
|
|
@@ -13993,7 +13993,7 @@ function rE(e) {
|
|
|
13993
13993
|
throw new Error('Not in "openned-modal" state!');
|
|
13994
13994
|
}
|
|
13995
13995
|
const a1 = () => {
|
|
13996
|
-
const e = dh(), { startLoading: t, stopLoading: n } = le(rh), { reducer: [, r] } = le(Xt), a =
|
|
13996
|
+
const e = dh(), { startLoading: t, stopLoading: n } = le(rh), { reducer: [, r] } = le(Xt), a = z(async (o, s) => {
|
|
13997
13997
|
t("documents-renameFolder");
|
|
13998
13998
|
try {
|
|
13999
13999
|
await e.put("/documents/folder/rename", { folderId: o, name: s }), r({
|
|
@@ -14004,7 +14004,7 @@ const a1 = () => {
|
|
|
14004
14004
|
} finally {
|
|
14005
14005
|
n("documents-renameFolder");
|
|
14006
14006
|
}
|
|
14007
|
-
}, [e, r, t, n]), i =
|
|
14007
|
+
}, [e, r, t, n]), i = z(async (o) => {
|
|
14008
14008
|
t("documentsFolderCreate");
|
|
14009
14009
|
try {
|
|
14010
14010
|
const s = await e.post("/documents/folder", o);
|
|
@@ -14083,7 +14083,7 @@ var oE = function(e, t) {
|
|
|
14083
14083
|
};
|
|
14084
14084
|
};
|
|
14085
14085
|
const sE = () => {
|
|
14086
|
-
const { reducer: [e], entityId: t, entityType: n } = le(Xt), { zNumberRequired: r, zStringRequired: a } = hh(), { createFolder: i } = a1(), o = Vt.object({ name: a(), documentTypeId: r() }), s = Cf({ resolver: vh(o) }), u =
|
|
14086
|
+
const { reducer: [e], entityId: t, entityType: n } = le(Xt), { zNumberRequired: r, zStringRequired: a } = hh(), { createFolder: i } = a1(), o = Vt.object({ name: a(), documentTypeId: r() }), s = Cf({ resolver: vh(o) }), u = z(async (c) => {
|
|
14087
14087
|
const l = {
|
|
14088
14088
|
...c,
|
|
14089
14089
|
dbObjectId: t.toString(),
|
|
@@ -14119,7 +14119,7 @@ const sE = () => {
|
|
|
14119
14119
|
}), d = Cf({
|
|
14120
14120
|
resolver: vh(l),
|
|
14121
14121
|
defaultValues: { ...e, validToDate: lh(e.validToDate) }
|
|
14122
|
-
}), f =
|
|
14122
|
+
}), f = z(async (h) => {
|
|
14123
14123
|
r("documents-updateProperties");
|
|
14124
14124
|
try {
|
|
14125
14125
|
await n.put(`/documents/${e.id}/update-info`, h), await i(), t();
|
|
@@ -14152,7 +14152,7 @@ const sE = () => {
|
|
|
14152
14152
|
}, [t.constantFiles, t.markedFiles]);
|
|
14153
14153
|
return n === void 0 ? (e(), /* @__PURE__ */ v.jsx(v.Fragment, {})) : /* @__PURE__ */ v.jsx(lE, { file: n, handleClose: e });
|
|
14154
14154
|
}, fE = () => {
|
|
14155
|
-
const { reducer: [e, t] } = le(Xt), n =
|
|
14155
|
+
const { reducer: [e, t] } = le(Xt), n = z(() => {
|
|
14156
14156
|
t({ type: "close-modal" });
|
|
14157
14157
|
}, [t]), r = ae(() => {
|
|
14158
14158
|
if (e.state !== "openned-modal")
|
|
@@ -14174,7 +14174,7 @@ const sE = () => {
|
|
|
14174
14174
|
const t = document.createElement("div");
|
|
14175
14175
|
return t.id = sg, t.style.position = "absolute", t.style.top = `${-window.outerHeight}px`, t.style.left = `${-window.outerWidth}px`, t.style.width = "50px", t.style.height = "50px", t.style.backgroundColor = "rgba(0, 0, 0, 0.5)", t.style.color = "white", t.style.display = "flex", t.style.alignItems = "center", t.style.justifyContent = "center", t.style.fontSize = "16px", t.style.borderRadius = "5px", document.body.appendChild(t), t;
|
|
14176
14176
|
}, yh = () => {
|
|
14177
|
-
const { apiActions: { moveDocuments: e }, reducer: [t] } = le(Xt), n =
|
|
14177
|
+
const { apiActions: { moveDocuments: e }, reducer: [t] } = le(Xt), n = z((c) => {
|
|
14178
14178
|
var l;
|
|
14179
14179
|
if (t.markedFiles.length > 0) {
|
|
14180
14180
|
const d = hE();
|
|
@@ -14183,11 +14183,11 @@ const sE = () => {
|
|
|
14183
14183
|
c.dataTransfer.setData("application/json", JSON.stringify([
|
|
14184
14184
|
parseInt(((l = c.currentTarget.attributes.getNamedItem(ug)) == null ? void 0 : l.nodeValue) ?? "", 10)
|
|
14185
14185
|
])), c.dataTransfer.dropEffect = "none", c.dataTransfer.effectAllowed = "move";
|
|
14186
|
-
}, [t.markedFiles]), r =
|
|
14186
|
+
}, [t.markedFiles]), r = z((c) => ({
|
|
14187
14187
|
[ug]: c,
|
|
14188
14188
|
draggable: t.markedFiles.length === 0 || t.markedFiles.includes(c),
|
|
14189
14189
|
onDragStart: n
|
|
14190
|
-
}), [n, t.markedFiles]), a =
|
|
14190
|
+
}), [n, t.markedFiles]), a = z((c) => (l) => {
|
|
14191
14191
|
var h;
|
|
14192
14192
|
l.preventDefault(), l.stopPropagation(), l.currentTarget.classList.remove(ws);
|
|
14193
14193
|
const d = l.dataTransfer.files;
|
|
@@ -14200,13 +14200,13 @@ const sE = () => {
|
|
|
14200
14200
|
const m = JSON.parse(f), p = parseInt(((h = l.currentTarget.attributes.getNamedItem(cg)) == null ? void 0 : h.value) ?? "", 10);
|
|
14201
14201
|
e(p, m);
|
|
14202
14202
|
}
|
|
14203
|
-
}, [e]), i =
|
|
14203
|
+
}, [e]), i = z(() => (c) => {
|
|
14204
14204
|
c.preventDefault(), c.stopPropagation();
|
|
14205
|
-
}, []), o =
|
|
14205
|
+
}, []), o = z((c) => (l) => {
|
|
14206
14206
|
l.preventDefault(), l.stopPropagation(), l.dataTransfer.types.includes("Files") ? (l.dataTransfer.dropEffect = "copy", l.currentTarget.classList.add(ws)) : !c && l.dataTransfer.types.includes("application/json") ? (l.dataTransfer.dropEffect = "move", l.currentTarget.classList.add(ws)) : l.dataTransfer.dropEffect = "none";
|
|
14207
|
-
}, []), s =
|
|
14207
|
+
}, []), s = z((c) => {
|
|
14208
14208
|
c.preventDefault(), c.stopPropagation(), c.target === c.currentTarget && (c.dataTransfer.dropEffect = "none", c.currentTarget.classList.remove(ws));
|
|
14209
|
-
}, []), u =
|
|
14209
|
+
}, []), u = z((c, l) => ({
|
|
14210
14210
|
onDrop: a(l == null ? void 0 : l.onFilesDrop),
|
|
14211
14211
|
onDragOver: i(),
|
|
14212
14212
|
onDragEnter: o(l == null ? void 0 : l.ignoreInner),
|
|
@@ -14250,7 +14250,7 @@ const mE = () => {
|
|
|
14250
14250
|
return h.name === ((m = a.foldersMap.get(s)) == null ? void 0 : m.defaultDocType);
|
|
14251
14251
|
})) == null ? void 0 : f.id
|
|
14252
14252
|
}
|
|
14253
|
-
}), d =
|
|
14253
|
+
}), d = z(async (h) => {
|
|
14254
14254
|
s !== "root" && (await i(t, {
|
|
14255
14255
|
folderId: s,
|
|
14256
14256
|
...h
|
|
@@ -14294,9 +14294,9 @@ const mE = () => {
|
|
|
14294
14294
|
if (m === void 0)
|
|
14295
14295
|
throw new Error(`tried to get dir with id ${e}`);
|
|
14296
14296
|
return m;
|
|
14297
|
-
}, [e, n.foldersMap]), l =
|
|
14297
|
+
}, [e, n.foldersMap]), l = z(() => {
|
|
14298
14298
|
n.activeFolder !== "root" && s1(c, n.activeFolder, n.foldersMap) && r({ type: "select-folder", folderId: e }), u(!0);
|
|
14299
|
-
}, [e, c, r, n.activeFolder, n.foldersMap]), d = ae(() => c.childrenIds.length > 0, [c.childrenIds.length]), f =
|
|
14299
|
+
}, [e, c, r, n.activeFolder, n.foldersMap]), d = ae(() => c.childrenIds.length > 0, [c.childrenIds.length]), f = z(() => {
|
|
14300
14300
|
r({ type: "select-folder", folderId: e });
|
|
14301
14301
|
}, [e, r]), h = ae(() => n.filteredFiles.filter((m) => m.folderId === e && m.archive === !1).length, [e, n.filteredFiles]);
|
|
14302
14302
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
@@ -14455,7 +14455,7 @@ const CE = "_excel_18ggp_1", ME = "_word_18ggp_5", AE = "_pdf_18ggp_9", RE = "_i
|
|
|
14455
14455
|
a
|
|
14456
14456
|
]) };
|
|
14457
14457
|
}, IE = ({ BnfTableComponent: e, tableIdentifier: t }) => {
|
|
14458
|
-
const { reducer: [n, r] } = le(Xt), { columns: a } = PE(), i =
|
|
14458
|
+
const { reducer: [n, r] } = le(Xt), { columns: a } = PE(), i = z((f) => {
|
|
14459
14459
|
r({ type: "mark-files-by-action", setStateAction: f });
|
|
14460
14460
|
}, [r]), o = ae(() => n.activeFolder === "root", [n.activeFolder]), s = ae(() => {
|
|
14461
14461
|
var f;
|
|
@@ -14465,7 +14465,7 @@ const CE = "_excel_18ggp_1", ME = "_word_18ggp_5", AE = "_pdf_18ggp_9", RE = "_i
|
|
|
14465
14465
|
idField: "id",
|
|
14466
14466
|
selectedRows: n.markedFiles,
|
|
14467
14467
|
setSelectedRows: i
|
|
14468
|
-
}), [o, i, n.markedFiles]), c = ae(() => n.activeFolder === "root" ? n.filteredFiles : n.filteredFiles.filter((f) => f.folderId === n.activeFolder), [n.activeFolder, n.filteredFiles]), { getDraggableProps: l } = yh(), d =
|
|
14468
|
+
}), [o, i, n.markedFiles]), c = ae(() => n.activeFolder === "root" ? n.filteredFiles : n.filteredFiles.filter((f) => f.folderId === n.activeFolder), [n.activeFolder, n.filteredFiles]), { getDraggableProps: l } = yh(), d = z((f) => s ? {} : l(f.id), [l, s]);
|
|
14469
14469
|
return /* @__PURE__ */ v.jsx("div", { className: se(u1.wrapper), children: /* @__PURE__ */ v.jsx(e, { data: c, columnsDef: a, rowSelection: u, useScrollableContainer: !0, getRowProps: d, defaultConfig: {
|
|
14470
14470
|
defaultFilters: [{ id: "archive", value: "false" }]
|
|
14471
14471
|
}, tableId: t, searchStatePrefix: "docs", useSearchState: !0, hideBottomBar: !0 }, n.activeFolder) });
|
|
@@ -14479,7 +14479,7 @@ const CE = "_excel_18ggp_1", ME = "_word_18ggp_5", AE = "_pdf_18ggp_9", RE = "_i
|
|
|
14479
14479
|
const a = we(null), [i, o] = Ue(null), { reducer: [s] } = le(Xt), u = (f) => {
|
|
14480
14480
|
var h;
|
|
14481
14481
|
(((h = f.target.files) == null ? void 0 : h.length) ?? 0) > 0 && o(f.target.files);
|
|
14482
|
-
}, c =
|
|
14482
|
+
}, c = z(() => {
|
|
14483
14483
|
o(null), a.current && (a.current.value = "");
|
|
14484
14484
|
}, []), l = ae(() => `documents-upload-${t}-${e}`, [e, t]), d = ae(() => r || s.activeFolder === "root", [r, s.activeFolder]);
|
|
14485
14485
|
return /* @__PURE__ */ v.jsxs("div", { className: lg.wrapper, children: [
|
|
@@ -14489,29 +14489,29 @@ const CE = "_excel_18ggp_1", ME = "_word_18ggp_5", AE = "_pdf_18ggp_9", RE = "_i
|
|
|
14489
14489
|
] });
|
|
14490
14490
|
}, Zn = ({ children: e, onClick: t, className: n, disabled: r = !1 }) => /* @__PURE__ */ v.jsx(ph, { onClick: t, className: n, disabled: r, children: e }), WE = ({ className: e, entityId: t, entityType: n }) => {
|
|
14491
14491
|
var E, M;
|
|
14492
|
-
const { texts: { documents: r } } = le(Nn), { prompt: a } = s6(), { confirm: i } = QO(), { apiActions: o, reducer: [s, u] } = le(Xt), { deleteFiles: c, renameFiles: l, downloadAsZip: d, archivateFiles: f, deleteDirectory: h } = o, { renameFolder: m } = a1(), p = ae(() => s.markedFiles.length === 0, [s.markedFiles.length]), g = ae(() => s.markedFiles.length === 1, [s.markedFiles.length]),
|
|
14492
|
+
const { texts: { documents: r } } = le(Nn), { prompt: a } = s6(), { confirm: i } = QO(), { apiActions: o, reducer: [s, u] } = le(Xt), { deleteFiles: c, renameFiles: l, downloadAsZip: d, archivateFiles: f, deleteDirectory: h } = o, { renameFolder: m } = a1(), p = ae(() => s.markedFiles.length === 0, [s.markedFiles.length]), g = ae(() => s.markedFiles.length === 1, [s.markedFiles.length]), y = z(async () => {
|
|
14493
14493
|
if (s.activeFolder === "root")
|
|
14494
14494
|
return;
|
|
14495
14495
|
const P = await a(r.enterNewFolderName, {
|
|
14496
14496
|
input: "input"
|
|
14497
14497
|
});
|
|
14498
14498
|
P !== null && m(s.activeFolder, P);
|
|
14499
|
-
}, [r.enterNewFolderName, a, m, s.activeFolder]), _ =
|
|
14499
|
+
}, [r.enterNewFolderName, a, m, s.activeFolder]), _ = z(async () => {
|
|
14500
14500
|
if (s.activeFolder === "root")
|
|
14501
14501
|
return;
|
|
14502
14502
|
const P = await a(r.enterNewFileName, {
|
|
14503
14503
|
input: "input"
|
|
14504
14504
|
});
|
|
14505
14505
|
P !== null && l(P);
|
|
14506
|
-
}, [r.enterNewFileName, a, l, s.activeFolder]),
|
|
14506
|
+
}, [r.enterNewFileName, a, l, s.activeFolder]), b = ae(() => s.activeFolder === "root", [s.activeFolder]), w = ae(() => {
|
|
14507
14507
|
var P;
|
|
14508
14508
|
return s.activeFolder === "root" ? !1 : ((P = s.foldersMap.get(s.activeFolder)) == null ? void 0 : P.onlyRead) ?? !1;
|
|
14509
14509
|
}, [s.activeFolder, s.foldersMap]), x = ae(() => s.markedFiles.every((P) => {
|
|
14510
14510
|
var R;
|
|
14511
|
-
return ((R = s.constantFiles.find((
|
|
14511
|
+
return ((R = s.constantFiles.find((k) => k.id === P)) == null ? void 0 : R.archive) === !1;
|
|
14512
14512
|
}), [s.constantFiles, s.markedFiles]), T = ae(() => s.markedFiles.every((P) => {
|
|
14513
14513
|
var R;
|
|
14514
|
-
return ((R = s.constantFiles.find((
|
|
14514
|
+
return ((R = s.constantFiles.find((k) => k.id === P)) == null ? void 0 : R.archive) === !0;
|
|
14515
14515
|
}), [s.constantFiles, s.markedFiles]);
|
|
14516
14516
|
return /* @__PURE__ */ v.jsx("div", { className: se(e, Nl.wrapper, s.state === "folder-choosing" ? "ignore-dim" : void 0, "d-flex justify-content-between"), children: s.state !== "folder-choosing" ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
14517
14517
|
/* @__PURE__ */ v.jsxs("div", { className: Nl.divButtons, children: [
|
|
@@ -14527,9 +14527,9 @@ const CE = "_excel_18ggp_1", ME = "_word_18ggp_5", AE = "_pdf_18ggp_9", RE = "_i
|
|
|
14527
14527
|
var R;
|
|
14528
14528
|
await i(`${r.deleteFolder} ${(R = s.foldersMap.get(s.activeFolder)) == null ? void 0 : R.name}?`) && h(s.activeFolder);
|
|
14529
14529
|
}, children: r.deleteFolder }),
|
|
14530
|
-
/* @__PURE__ */ v.jsx(Zn, { disabled: s.activeFolder === "root" || ((M = s.foldersMap.get(s.activeFolder)) == null ? void 0 : M.isDefault), onClick:
|
|
14530
|
+
/* @__PURE__ */ v.jsx(Zn, { disabled: s.activeFolder === "root" || ((M = s.foldersMap.get(s.activeFolder)) == null ? void 0 : M.isDefault), onClick: y, children: r.renameFolder })
|
|
14531
14531
|
] }),
|
|
14532
|
-
!
|
|
14532
|
+
!b && !w ? /* @__PURE__ */ v.jsxs("div", { className: Nl.divButtons, children: [
|
|
14533
14533
|
/* @__PURE__ */ v.jsx(Zn, { onClick: () => {
|
|
14534
14534
|
u({
|
|
14535
14535
|
type: "open-modal",
|
|
@@ -14585,7 +14585,7 @@ function HE(e, t) {
|
|
|
14585
14585
|
});
|
|
14586
14586
|
}
|
|
14587
14587
|
const VE = ([e, t], n, r) => {
|
|
14588
|
-
const { texts: { documents: a } } = le(Nn), { startLoading: i, stopLoading: o } = le(rh), { addNotification: s } = zb(), u = dh(), c =
|
|
14588
|
+
const { texts: { documents: a } } = le(Nn), { startLoading: i, stopLoading: o } = le(rh), { addNotification: s } = zb(), u = dh(), c = z(async (b) => {
|
|
14589
14589
|
i("documentList");
|
|
14590
14590
|
try {
|
|
14591
14591
|
const x = (await u.get(`/documents/${n}/${r}`)).data, { dirsMap: T, rootIds: E } = zE(x.folders), M = HE(x.documents, T);
|
|
@@ -14594,7 +14594,7 @@ const VE = ([e, t], n, r) => {
|
|
|
14594
14594
|
files: M,
|
|
14595
14595
|
foldersMap: T,
|
|
14596
14596
|
rootFolderIds: E,
|
|
14597
|
-
setActiveFolder:
|
|
14597
|
+
setActiveFolder: b
|
|
14598
14598
|
});
|
|
14599
14599
|
} finally {
|
|
14600
14600
|
o("documentList");
|
|
@@ -14603,15 +14603,15 @@ const VE = ([e, t], n, r) => {
|
|
|
14603
14603
|
ke(() => {
|
|
14604
14604
|
c(!0);
|
|
14605
14605
|
}, [c]);
|
|
14606
|
-
const l =
|
|
14606
|
+
const l = z(async () => {
|
|
14607
14607
|
i("documents-types");
|
|
14608
14608
|
try {
|
|
14609
|
-
const
|
|
14610
|
-
if (
|
|
14611
|
-
throw new Error(`Unexpected status code: ${
|
|
14609
|
+
const b = await u.get(`/documents/types/${n}`);
|
|
14610
|
+
if (b.status !== 200)
|
|
14611
|
+
throw new Error(`Unexpected status code: ${b.status}`);
|
|
14612
14612
|
t({
|
|
14613
14613
|
type: "load-document-types",
|
|
14614
|
-
documentTypes:
|
|
14614
|
+
documentTypes: b.data
|
|
14615
14615
|
});
|
|
14616
14616
|
} finally {
|
|
14617
14617
|
o("documents-types");
|
|
@@ -14620,15 +14620,15 @@ const VE = ([e, t], n, r) => {
|
|
|
14620
14620
|
ke(() => {
|
|
14621
14621
|
l();
|
|
14622
14622
|
}, [l]);
|
|
14623
|
-
const d =
|
|
14623
|
+
const d = z(async (b, w) => {
|
|
14624
14624
|
const x = w ?? e.markedFiles;
|
|
14625
14625
|
i("documentsMove");
|
|
14626
14626
|
try {
|
|
14627
|
-
await u.put(`/documents/move-to-folder?folderId=${
|
|
14627
|
+
await u.put(`/documents/move-to-folder?folderId=${b}`, x), t({
|
|
14628
14628
|
type: "update-files",
|
|
14629
14629
|
fileIds: x,
|
|
14630
|
-
newProperties: { folderId:
|
|
14631
|
-
}), s(a.fileMoveSuccessful(x.length, e.foldersMap.get(
|
|
14630
|
+
newProperties: { folderId: b }
|
|
14631
|
+
}), s(a.fileMoveSuccessful(x.length, e.foldersMap.get(b).name), "success");
|
|
14632
14632
|
} finally {
|
|
14633
14633
|
o("documentsMove");
|
|
14634
14634
|
}
|
|
@@ -14641,8 +14641,8 @@ const VE = ([e, t], n, r) => {
|
|
|
14641
14641
|
s,
|
|
14642
14642
|
a,
|
|
14643
14643
|
o
|
|
14644
|
-
]), f =
|
|
14645
|
-
const w =
|
|
14644
|
+
]), f = z(async (b) => {
|
|
14645
|
+
const w = b ?? e.markedFiles;
|
|
14646
14646
|
i("documentsFilesDelete");
|
|
14647
14647
|
try {
|
|
14648
14648
|
const x = await u.delete(`/documents/delete?${Zm(w, "documentIds")}`);
|
|
@@ -14652,25 +14652,25 @@ const VE = ([e, t], n, r) => {
|
|
|
14652
14652
|
} finally {
|
|
14653
14653
|
o("documentsFilesDelete");
|
|
14654
14654
|
}
|
|
14655
|
-
}, [e.markedFiles, i, u, t, s, a, o]), h =
|
|
14655
|
+
}, [e.markedFiles, i, u, t, s, a, o]), h = z(async (b) => {
|
|
14656
14656
|
var w;
|
|
14657
|
-
if (!(
|
|
14657
|
+
if (!(b === "root" || (w = e.foldersMap.get(b)) != null && w.isDefault)) {
|
|
14658
14658
|
i("documentsFolderDelete");
|
|
14659
14659
|
try {
|
|
14660
|
-
const x = await u.delete(`/documents/folder/${
|
|
14660
|
+
const x = await u.delete(`/documents/folder/${b}`);
|
|
14661
14661
|
if (x.status !== 200)
|
|
14662
14662
|
throw new Error(`Unexpected status code: ${x.status}`);
|
|
14663
|
-
t({ type: "delete-folder", folderId:
|
|
14663
|
+
t({ type: "delete-folder", folderId: b }), s(a.folderDeleteSuccessful(e.foldersMap.get(b).name), "success");
|
|
14664
14664
|
} finally {
|
|
14665
14665
|
o("documentsFolderDelete");
|
|
14666
14666
|
}
|
|
14667
14667
|
}
|
|
14668
|
-
}, [e.foldersMap, i, u, t, s, a, o]), m =
|
|
14668
|
+
}, [e.foldersMap, i, u, t, s, a, o]), m = z(async (b) => {
|
|
14669
14669
|
i("documentsRename");
|
|
14670
14670
|
try {
|
|
14671
14671
|
const w = await u.put("/documents/update-name", {
|
|
14672
14672
|
documentIds: e.markedFiles,
|
|
14673
|
-
name:
|
|
14673
|
+
name: b
|
|
14674
14674
|
});
|
|
14675
14675
|
if (w.status !== 200)
|
|
14676
14676
|
throw new Error(`Unexpected status code: ${w.status}`);
|
|
@@ -14678,17 +14678,17 @@ const VE = ([e, t], n, r) => {
|
|
|
14678
14678
|
} finally {
|
|
14679
14679
|
o("documentsRename");
|
|
14680
14680
|
}
|
|
14681
|
-
}, [i, u, e.markedFiles, c, o]), p =
|
|
14681
|
+
}, [i, u, e.markedFiles, c, o]), p = z(async (b) => {
|
|
14682
14682
|
i("documents-archivate");
|
|
14683
14683
|
try {
|
|
14684
|
-
const w = await u.put(`/documents/${
|
|
14684
|
+
const w = await u.put(`/documents/${b ? "dearchive" : "archive"}`, e.markedFiles);
|
|
14685
14685
|
if (w.status !== 200)
|
|
14686
14686
|
throw new Error(`Unexpected status code: ${w.status}`);
|
|
14687
14687
|
t({
|
|
14688
14688
|
type: "update-files",
|
|
14689
14689
|
fileIds: e.markedFiles,
|
|
14690
|
-
newProperties: { archive: !
|
|
14691
|
-
}), s((
|
|
14690
|
+
newProperties: { archive: !b }
|
|
14691
|
+
}), s((b ? a.dearchivateSuccessful : a.archivateSuccessful)(e.markedFiles.length), "success");
|
|
14692
14692
|
} finally {
|
|
14693
14693
|
o("documents-archivate");
|
|
14694
14694
|
}
|
|
@@ -14701,12 +14701,12 @@ const VE = ([e, t], n, r) => {
|
|
|
14701
14701
|
a.archivateSuccessful,
|
|
14702
14702
|
a.dearchivateSuccessful,
|
|
14703
14703
|
o
|
|
14704
|
-
]), g =
|
|
14704
|
+
]), g = z(async () => {
|
|
14705
14705
|
var w;
|
|
14706
14706
|
if (e.activeFolder === "root")
|
|
14707
14707
|
return;
|
|
14708
|
-
const
|
|
14709
|
-
s(a.downloadAsZip(
|
|
14708
|
+
const b = e.markedFiles.length;
|
|
14709
|
+
s(a.downloadAsZip(b), "info"), i("documents-ZIP_download");
|
|
14710
14710
|
try {
|
|
14711
14711
|
const x = await u.get(`/documents/download-zip?${Zm(e.markedFiles, "documentIds")}`, { responseType: "blob" });
|
|
14712
14712
|
Ud(x.data, (((w = e.foldersMap.get(e.activeFolder)) == null ? void 0 : w.name) ?? "") + "_files");
|
|
@@ -14722,12 +14722,12 @@ const VE = ([e, t], n, r) => {
|
|
|
14722
14722
|
i,
|
|
14723
14723
|
u,
|
|
14724
14724
|
o
|
|
14725
|
-
]),
|
|
14725
|
+
]), y = z(async (b, w) => {
|
|
14726
14726
|
s(a.downloadingFile, "info"), i("documents-downloading_file");
|
|
14727
14727
|
try {
|
|
14728
|
-
const x = await u.get(`/documents/${
|
|
14728
|
+
const x = await u.get(`/documents/${b}?isSmall=true`, {
|
|
14729
14729
|
responseType: "blob"
|
|
14730
|
-
}), T = e.constantFiles.find((M) => M.id ===
|
|
14730
|
+
}), T = e.constantFiles.find((M) => M.id === b), E = `${(T == null ? void 0 : T.name) ?? b.toString()}.${T != null && T.fileExtension ? T == null ? void 0 : T.fileExtension.toLowerCase() : "unknown"}`;
|
|
14731
14731
|
Ud(x.data, E, w);
|
|
14732
14732
|
} finally {
|
|
14733
14733
|
o("documents-downloading_file");
|
|
@@ -14739,11 +14739,11 @@ const VE = ([e, t], n, r) => {
|
|
|
14739
14739
|
u,
|
|
14740
14740
|
e.constantFiles,
|
|
14741
14741
|
o
|
|
14742
|
-
]), _ =
|
|
14742
|
+
]), _ = z(async (b, w) => {
|
|
14743
14743
|
i("documents-upload"), s(a.uploadingDocuments, "info");
|
|
14744
14744
|
try {
|
|
14745
14745
|
await u.postForm("/documents/upload", {
|
|
14746
|
-
files:
|
|
14746
|
+
files: b,
|
|
14747
14747
|
...w
|
|
14748
14748
|
}), await c();
|
|
14749
14749
|
} finally {
|
|
@@ -14765,7 +14765,7 @@ const VE = ([e, t], n, r) => {
|
|
|
14765
14765
|
renameFiles: m,
|
|
14766
14766
|
archivateFiles: p,
|
|
14767
14767
|
downloadAsZip: g,
|
|
14768
|
-
downloadFile:
|
|
14768
|
+
downloadFile: y,
|
|
14769
14769
|
uploadFiles: _
|
|
14770
14770
|
};
|
|
14771
14771
|
}, qE = (e, t) => {
|
|
@@ -14954,17 +14954,17 @@ const VE = ([e, t], n, r) => {
|
|
|
14954
14954
|
loadDocuments: h,
|
|
14955
14955
|
reducer: [c, l]
|
|
14956
14956
|
}), [t, e, m, h, c, l]), { getDropProps: g } = yh();
|
|
14957
|
-
return /* @__PURE__ */ v.jsx("div", { ...o, className: se(Zr.wrapper, n), onDragOver: (
|
|
14958
|
-
|
|
14959
|
-
}, onDragEnter: (
|
|
14960
|
-
|
|
14957
|
+
return /* @__PURE__ */ v.jsx("div", { ...o, className: se(Zr.wrapper, n), onDragOver: (y) => {
|
|
14958
|
+
y.dataTransfer.dropEffect = "none", y.stopPropagation(), y.preventDefault();
|
|
14959
|
+
}, onDragEnter: (y) => {
|
|
14960
|
+
y.dataTransfer.dropEffect = "none", y.stopPropagation(), y.preventDefault();
|
|
14961
14961
|
}, children: /* @__PURE__ */ v.jsxs(Xt.Provider, { value: p, children: [
|
|
14962
14962
|
/* @__PURE__ */ v.jsx("div", { className: se(c.state === "folder-choosing" ? "dim-others" : void 0, Zr.explorerWindow), children: /* @__PURE__ */ v.jsxs("ul", { className: Zr.folderList, children: [
|
|
14963
14963
|
/* @__PURE__ */ v.jsx(nE, { customText: i ?? e }),
|
|
14964
|
-
c.rootFolderIds.map((
|
|
14964
|
+
c.rootFolderIds.map((y) => /* @__PURE__ */ v.jsx(c1, { dirId: y }, y))
|
|
14965
14965
|
] }) }),
|
|
14966
14966
|
/* @__PURE__ */ v.jsxs("div", { className: se(Zr.explorerWindow, Zr.fileList), ...pE(c) ? g(c.activeFolder, {
|
|
14967
|
-
onFilesDrop: (
|
|
14967
|
+
onFilesDrop: (y) => f(y),
|
|
14968
14968
|
ignoreInner: !0
|
|
14969
14969
|
}) : {}, children: [
|
|
14970
14970
|
/* @__PURE__ */ v.jsxs("div", { className: Zr.dndText, children: [
|
|
@@ -15159,37 +15159,37 @@ function m8(e, t) {
|
|
|
15159
15159
|
}
|
|
15160
15160
|
return !0;
|
|
15161
15161
|
}
|
|
15162
|
-
const en =
|
|
15163
|
-
all:
|
|
15164
|
-
grid:
|
|
15165
|
-
aural:
|
|
15166
|
-
braille:
|
|
15167
|
-
handheld:
|
|
15168
|
-
print:
|
|
15169
|
-
projection:
|
|
15170
|
-
screen:
|
|
15171
|
-
tty:
|
|
15172
|
-
tv:
|
|
15173
|
-
embossed:
|
|
15162
|
+
const en = $.oneOfType([$.string, $.number]), _h = {
|
|
15163
|
+
all: $.bool,
|
|
15164
|
+
grid: $.bool,
|
|
15165
|
+
aural: $.bool,
|
|
15166
|
+
braille: $.bool,
|
|
15167
|
+
handheld: $.bool,
|
|
15168
|
+
print: $.bool,
|
|
15169
|
+
projection: $.bool,
|
|
15170
|
+
screen: $.bool,
|
|
15171
|
+
tty: $.bool,
|
|
15172
|
+
tv: $.bool,
|
|
15173
|
+
embossed: $.bool
|
|
15174
15174
|
}, h1 = {
|
|
15175
|
-
orientation:
|
|
15176
|
-
scan:
|
|
15177
|
-
aspectRatio:
|
|
15178
|
-
deviceAspectRatio:
|
|
15175
|
+
orientation: $.oneOf(["portrait", "landscape"]),
|
|
15176
|
+
scan: $.oneOf(["progressive", "interlace"]),
|
|
15177
|
+
aspectRatio: $.string,
|
|
15178
|
+
deviceAspectRatio: $.string,
|
|
15179
15179
|
height: en,
|
|
15180
15180
|
deviceHeight: en,
|
|
15181
15181
|
width: en,
|
|
15182
15182
|
deviceWidth: en,
|
|
15183
|
-
color:
|
|
15184
|
-
colorIndex:
|
|
15185
|
-
monochrome:
|
|
15183
|
+
color: $.bool,
|
|
15184
|
+
colorIndex: $.bool,
|
|
15185
|
+
monochrome: $.bool,
|
|
15186
15186
|
resolution: en,
|
|
15187
15187
|
type: Object.keys(_h)
|
|
15188
15188
|
}, { type: LX, ...g8 } = h1, p1 = {
|
|
15189
|
-
minAspectRatio:
|
|
15190
|
-
maxAspectRatio:
|
|
15191
|
-
minDeviceAspectRatio:
|
|
15192
|
-
maxDeviceAspectRatio:
|
|
15189
|
+
minAspectRatio: $.string,
|
|
15190
|
+
maxAspectRatio: $.string,
|
|
15191
|
+
minDeviceAspectRatio: $.string,
|
|
15192
|
+
maxDeviceAspectRatio: $.string,
|
|
15193
15193
|
minHeight: en,
|
|
15194
15194
|
maxHeight: en,
|
|
15195
15195
|
minDeviceHeight: en,
|
|
@@ -15198,12 +15198,12 @@ const en = k.oneOfType([k.string, k.number]), _h = {
|
|
|
15198
15198
|
maxWidth: en,
|
|
15199
15199
|
minDeviceWidth: en,
|
|
15200
15200
|
maxDeviceWidth: en,
|
|
15201
|
-
minColor:
|
|
15202
|
-
maxColor:
|
|
15203
|
-
minColorIndex:
|
|
15204
|
-
maxColorIndex:
|
|
15205
|
-
minMonochrome:
|
|
15206
|
-
maxMonochrome:
|
|
15201
|
+
minColor: $.number,
|
|
15202
|
+
maxColor: $.number,
|
|
15203
|
+
minColorIndex: $.number,
|
|
15204
|
+
maxColorIndex: $.number,
|
|
15205
|
+
minMonochrome: $.number,
|
|
15206
|
+
maxMonochrome: $.number,
|
|
15207
15207
|
minResolution: en,
|
|
15208
15208
|
maxResolution: en,
|
|
15209
15209
|
...g8
|
|
@@ -16097,7 +16097,7 @@ var $g = (e, t) => {
|
|
|
16097
16097
|
);
|
|
16098
16098
|
return $a((r, a) => {
|
|
16099
16099
|
const i = we(null), o = n && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
16100
|
-
|
|
16100
|
+
z(
|
|
16101
16101
|
(m) => {
|
|
16102
16102
|
i.current = bC(a, m);
|
|
16103
16103
|
},
|
|
@@ -16339,29 +16339,29 @@ function U1(e, t, n, r) {
|
|
|
16339
16339
|
n.asyncId = a, n.asyncTo = e;
|
|
16340
16340
|
const c = cu(
|
|
16341
16341
|
t,
|
|
16342
|
-
(g,
|
|
16342
|
+
(g, y) => (
|
|
16343
16343
|
// The `onRest` prop is only called when the `runAsync` promise is resolved.
|
|
16344
|
-
|
|
16344
|
+
y === "onRest" ? void 0 : g
|
|
16345
16345
|
)
|
|
16346
16346
|
);
|
|
16347
16347
|
let l, d;
|
|
16348
16348
|
const f = new Promise(
|
|
16349
|
-
(g,
|
|
16349
|
+
(g, y) => (l = g, d = y)
|
|
16350
16350
|
), h = (g) => {
|
|
16351
|
-
const
|
|
16351
|
+
const y = (
|
|
16352
16352
|
// The `cancel` prop or `stop` method was used.
|
|
16353
16353
|
a <= (n.cancelId || 0) && Ka(r) || // The async `to` prop was replaced.
|
|
16354
16354
|
a !== n.asyncId && Fn(r, !1)
|
|
16355
16355
|
);
|
|
16356
|
-
if (
|
|
16357
|
-
throw g.result =
|
|
16358
|
-
}, m = (g,
|
|
16359
|
-
const _ = new Rg(),
|
|
16356
|
+
if (y)
|
|
16357
|
+
throw g.result = y, d(g), g;
|
|
16358
|
+
}, m = (g, y) => {
|
|
16359
|
+
const _ = new Rg(), b = new jg();
|
|
16360
16360
|
return (async () => {
|
|
16361
16361
|
if (Vn.skipAnimation)
|
|
16362
|
-
throw Io(n),
|
|
16362
|
+
throw Io(n), b.result = Fn(r, !1), d(b), b;
|
|
16363
16363
|
h(_);
|
|
16364
|
-
const w = ee.obj(g) ? { ...g } : { ...
|
|
16364
|
+
const w = ee.obj(g) ? { ...g } : { ...y, to: g };
|
|
16365
16365
|
w.parentId = a, ar(c, (T, E) => {
|
|
16366
16366
|
ee.und(w[E]) && (w[E] = T);
|
|
16367
16367
|
});
|
|
@@ -16376,8 +16376,8 @@ function U1(e, t, n, r) {
|
|
|
16376
16376
|
return Io(n), Fn(r, !1);
|
|
16377
16377
|
try {
|
|
16378
16378
|
let g;
|
|
16379
|
-
ee.arr(e) ? g = (async (
|
|
16380
|
-
for (const _ of
|
|
16379
|
+
ee.arr(e) ? g = (async (y) => {
|
|
16380
|
+
for (const _ of y)
|
|
16381
16381
|
await m(_);
|
|
16382
16382
|
})(e) : g = Promise.resolve(e(m, r.stop.bind(r))), await Promise.all([g.then(l), f]), p = Fn(r.get(), !0, !1);
|
|
16383
16383
|
} catch (g) {
|
|
@@ -16534,28 +16534,28 @@ var Rg = class extends Error {
|
|
|
16534
16534
|
}
|
|
16535
16535
|
let m = c.elapsedTime += e;
|
|
16536
16536
|
const p = r.fromValues[l], g = c.v0 != null ? c.v0 : c.v0 = ee.arr(i.velocity) ? i.velocity[l] : i.velocity;
|
|
16537
|
-
let
|
|
16537
|
+
let y;
|
|
16538
16538
|
const _ = i.precision || (p == d ? 5e-3 : Math.min(1, Math.abs(d - p) * 1e-3));
|
|
16539
16539
|
if (ee.und(i.duration))
|
|
16540
16540
|
if (i.decay) {
|
|
16541
|
-
const
|
|
16542
|
-
h = p + g / (1 -
|
|
16541
|
+
const b = i.decay === !0 ? 0.998 : i.decay, w = Math.exp(-(1 - b) * m);
|
|
16542
|
+
h = p + g / (1 - b) * (1 - w), f = Math.abs(c.lastPosition - h) <= _, y = g * w;
|
|
16543
16543
|
} else {
|
|
16544
|
-
|
|
16545
|
-
const
|
|
16544
|
+
y = c.lastVelocity == null ? g : c.lastVelocity;
|
|
16545
|
+
const b = i.restVelocity || _ / 10, w = i.clamp ? 0 : i.bounce, x = !ee.und(w), T = p == d ? c.v0 > 0 : p < d;
|
|
16546
16546
|
let E, M = !1;
|
|
16547
16547
|
const P = 1, R = Math.ceil(e / P);
|
|
16548
|
-
for (let
|
|
16549
|
-
x && (M = h == d || h > d == T, M && (
|
|
16550
|
-
const
|
|
16551
|
-
|
|
16548
|
+
for (let k = 0; k < R && (E = Math.abs(y) > b, !(!E && (f = Math.abs(d - h) <= _, f))); ++k) {
|
|
16549
|
+
x && (M = h == d || h > d == T, M && (y = -y * w, h = d));
|
|
16550
|
+
const D = -i.tension * 1e-6 * (h - d), C = -i.friction * 1e-3 * y, A = (D + C) / i.mass;
|
|
16551
|
+
y = y + A * P, h = h + y * P;
|
|
16552
16552
|
}
|
|
16553
16553
|
}
|
|
16554
16554
|
else {
|
|
16555
|
-
let
|
|
16556
|
-
i.duration > 0 && (this._memoizedDuration !== i.duration && (this._memoizedDuration = i.duration, c.durationProgress > 0 && (c.elapsedTime = i.duration * c.durationProgress, m = c.elapsedTime += e)),
|
|
16555
|
+
let b = 1;
|
|
16556
|
+
i.duration > 0 && (this._memoizedDuration !== i.duration && (this._memoizedDuration = i.duration, c.durationProgress > 0 && (c.elapsedTime = i.duration * c.durationProgress, m = c.elapsedTime += e)), b = (i.progress || 0) + m / this._memoizedDuration, b = b > 1 ? 1 : b < 0 ? 0 : b, c.durationProgress = b), h = p + i.easing(b) * (d - p), y = (h - c.lastPosition) / e, f = b == 1;
|
|
16557
16557
|
}
|
|
16558
|
-
c.lastVelocity =
|
|
16558
|
+
c.lastVelocity = y, Number.isNaN(h) && (console.warn("Got NaN while animating:", this), f = !0);
|
|
16559
16559
|
}
|
|
16560
16560
|
o && !o[l].done && (f = !1), f ? c.done = !0 : t = !1, c.setValue(h, i.round) && (n = !0);
|
|
16561
16561
|
});
|
|
@@ -16698,7 +16698,7 @@ var Rg = class extends Error {
|
|
|
16698
16698
|
f && (s.from = d), d = un(d);
|
|
16699
16699
|
const h = !dr(l, u);
|
|
16700
16700
|
h && this._focus(l);
|
|
16701
|
-
const m = Kd(t.to), { config: p } = s, { decay: g, velocity:
|
|
16701
|
+
const m = Kd(t.to), { config: p } = s, { decay: g, velocity: y } = p;
|
|
16702
16702
|
(r || a) && (p.velocity = 0), t.config && !m && kC(
|
|
16703
16703
|
p,
|
|
16704
16704
|
ln(t.config, i),
|
|
@@ -16708,38 +16708,38 @@ var Rg = class extends Error {
|
|
|
16708
16708
|
let _ = Xn(this);
|
|
16709
16709
|
if (!_ || ee.und(l))
|
|
16710
16710
|
return n(Fn(this, !0));
|
|
16711
|
-
const
|
|
16711
|
+
const b = (
|
|
16712
16712
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
16713
16713
|
// except for declarative updates. When `reset` is defined, there
|
|
16714
16714
|
// must exist a value to animate from.
|
|
16715
16715
|
ee.und(t.reset) ? a && !t.default : !ee.und(d) && io(t.reset, i)
|
|
16716
|
-
), w =
|
|
16716
|
+
), w = b ? d : this.get(), x = Po(l), T = ee.num(x) || ee.arr(x) || iu(x), E = !m && (!T || io(o.immediate || t.immediate, i));
|
|
16717
16717
|
if (h) {
|
|
16718
|
-
const
|
|
16719
|
-
if (
|
|
16718
|
+
const k = Zd(l);
|
|
16719
|
+
if (k !== _.constructor)
|
|
16720
16720
|
if (E)
|
|
16721
16721
|
_ = this._set(x);
|
|
16722
16722
|
else
|
|
16723
16723
|
throw Error(
|
|
16724
|
-
`Cannot animate between ${_.constructor.name} and ${
|
|
16724
|
+
`Cannot animate between ${_.constructor.name} and ${k.name}, as the "to" prop suggests`
|
|
16725
16725
|
);
|
|
16726
16726
|
}
|
|
16727
16727
|
const M = _.constructor;
|
|
16728
16728
|
let P = Cn(l), R = !1;
|
|
16729
16729
|
if (!P) {
|
|
16730
|
-
const
|
|
16731
|
-
(h ||
|
|
16730
|
+
const k = b || !zl(this) && f;
|
|
16731
|
+
(h || k) && (R = dr(Po(w), x), P = !R), (!dr(s.immediate, E) && !E || !dr(p.decay, g) || !dr(p.velocity, y)) && (P = !0);
|
|
16732
16732
|
}
|
|
16733
|
-
if (R && $r(this) && (s.changed && !
|
|
16734
|
-
const { onRest:
|
|
16733
|
+
if (R && $r(this) && (s.changed && !b ? P = !0 : P || this._stop(u)), !m && ((P || Cn(u)) && (s.values = _.getPayload(), s.toValues = Cn(l) ? null : M == jo ? [1] : tn(x)), s.immediate != E && (s.immediate = E, !E && !b && this._set(u)), P)) {
|
|
16734
|
+
const { onRest: k } = s;
|
|
16735
16735
|
Ee(AC, (C) => Ng(this, t, C));
|
|
16736
|
-
const
|
|
16737
|
-
Ji(this._pendingCalls,
|
|
16736
|
+
const D = Fn(this, Ui(this, u));
|
|
16737
|
+
Ji(this._pendingCalls, D), this._pendingCalls.add(n), s.changed && Me.batchedUpdates(() => {
|
|
16738
16738
|
var C;
|
|
16739
|
-
s.changed = !
|
|
16739
|
+
s.changed = !b, k == null || k(D, this), b ? ln(o.onRest, D) : (C = s.onStart) == null || C.call(s, D, this);
|
|
16740
16740
|
});
|
|
16741
16741
|
}
|
|
16742
|
-
|
|
16742
|
+
b && this._set(w), m ? n(U1(t.to, t, this._state, this)) : P ? this._start() : $r(this) && !h ? this._pendingCalls.add(n) : n(L1(w));
|
|
16743
16743
|
}
|
|
16744
16744
|
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
16745
16745
|
_focus(e) {
|
|
@@ -16989,13 +16989,13 @@ async function H1(e, t, n) {
|
|
|
16989
16989
|
l ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Ee(RC, (p) => {
|
|
16990
16990
|
const g = t[p];
|
|
16991
16991
|
if (ee.fun(g)) {
|
|
16992
|
-
const
|
|
16993
|
-
t[p] = ({ finished: _, cancelled:
|
|
16994
|
-
const w =
|
|
16995
|
-
w ? (_ || (w.finished = !1),
|
|
16992
|
+
const y = e._events[p];
|
|
16993
|
+
t[p] = ({ finished: _, cancelled: b }) => {
|
|
16994
|
+
const w = y.get(g);
|
|
16995
|
+
w ? (_ || (w.finished = !1), b && (w.cancelled = !0)) : y.set(g, {
|
|
16996
16996
|
value: null,
|
|
16997
16997
|
finished: _ || !1,
|
|
16998
|
-
cancelled:
|
|
16998
|
+
cancelled: b || !1
|
|
16999
16999
|
});
|
|
17000
17000
|
}, c && (c[p] = t[p]);
|
|
17001
17001
|
}
|
|
@@ -17131,11 +17131,11 @@ function IC(e, t, n) {
|
|
|
17131
17131
|
() => ({
|
|
17132
17132
|
ctrls: [],
|
|
17133
17133
|
queue: [],
|
|
17134
|
-
flush(
|
|
17135
|
-
const
|
|
17136
|
-
return i.current > 0 && !s.queue.length && !Object.keys(
|
|
17137
|
-
V1(
|
|
17138
|
-
x(nf(
|
|
17134
|
+
flush(y, _) {
|
|
17135
|
+
const b = rf(y, _);
|
|
17136
|
+
return i.current > 0 && !s.queue.length && !Object.keys(b).some((x) => !y.springs[x]) ? nf(y, _) : new Promise((x) => {
|
|
17137
|
+
V1(y, b), s.queue.push(() => {
|
|
17138
|
+
x(nf(y, _));
|
|
17139
17139
|
}), o();
|
|
17140
17140
|
});
|
|
17141
17141
|
}
|
|
@@ -17143,31 +17143,31 @@ function IC(e, t, n) {
|
|
|
17143
17143
|
[]
|
|
17144
17144
|
), u = we([...s.ctrls]), c = [], l = Gd(e) || 0;
|
|
17145
17145
|
ae(() => {
|
|
17146
|
-
Ee(u.current.slice(e, l), (
|
|
17147
|
-
Xd(
|
|
17146
|
+
Ee(u.current.slice(e, l), (y) => {
|
|
17147
|
+
Xd(y, a), y.stop(!0);
|
|
17148
17148
|
}), u.current.length = e, d(l, e);
|
|
17149
17149
|
}, [e]), ae(() => {
|
|
17150
17150
|
d(0, Math.min(l, e));
|
|
17151
17151
|
}, n);
|
|
17152
|
-
function d(
|
|
17153
|
-
for (let
|
|
17154
|
-
const w = u.current[
|
|
17155
|
-
x && (c[
|
|
17152
|
+
function d(y, _) {
|
|
17153
|
+
for (let b = y; b < _; b++) {
|
|
17154
|
+
const w = u.current[b] || (u.current[b] = new z1(null, s.flush)), x = r ? r(b, w) : t[b];
|
|
17155
|
+
x && (c[b] = MC(x));
|
|
17156
17156
|
}
|
|
17157
17157
|
}
|
|
17158
|
-
const f = u.current.map((
|
|
17158
|
+
const f = u.current.map((y, _) => rf(y, c[_])), h = le(is), m = Gd(h), p = h !== m && D1(h);
|
|
17159
17159
|
aa(() => {
|
|
17160
17160
|
i.current++, s.ctrls = u.current;
|
|
17161
|
-
const { queue:
|
|
17162
|
-
|
|
17161
|
+
const { queue: y } = s;
|
|
17162
|
+
y.length && (s.queue = [], Ee(y, (_) => _())), Ee(u.current, (_, b) => {
|
|
17163
17163
|
a == null || a.add(_), p && _.start({ default: h });
|
|
17164
|
-
const w = c[
|
|
17164
|
+
const w = c[b];
|
|
17165
17165
|
w && (N1(_, w.ref), _.ref ? _.queue.push(w) : _.start(w));
|
|
17166
17166
|
});
|
|
17167
17167
|
}), jh(() => () => {
|
|
17168
|
-
Ee(s.ctrls, (
|
|
17168
|
+
Ee(s.ctrls, (y) => y.stop(!0));
|
|
17169
17169
|
});
|
|
17170
|
-
const g = f.map((
|
|
17170
|
+
const g = f.map((y) => ({ ...y }));
|
|
17171
17171
|
return a ? [g, a] : g;
|
|
17172
17172
|
}
|
|
17173
17173
|
function wr(e, t) {
|
|
@@ -17201,27 +17201,27 @@ function Ca(e, t, n) {
|
|
|
17201
17201
|
A.expired && clearTimeout(A.expirationId), Xd(A.ctrl, f), A.ctrl.stop(!0);
|
|
17202
17202
|
});
|
|
17203
17203
|
}));
|
|
17204
|
-
const
|
|
17204
|
+
const y = NC(h, r ? r() : t, g), _ = a && p.current || [];
|
|
17205
17205
|
aa(
|
|
17206
17206
|
() => Ee(_, ({ ctrl: A, item: I, key: L }) => {
|
|
17207
17207
|
Xd(A, f), ln(c, I, L);
|
|
17208
17208
|
})
|
|
17209
17209
|
);
|
|
17210
|
-
const
|
|
17210
|
+
const b = [];
|
|
17211
17211
|
if (g && Ee(g, (A, I) => {
|
|
17212
|
-
A.expired ? (clearTimeout(A.expirationId), _.push(A)) : (I =
|
|
17212
|
+
A.expired ? (clearTimeout(A.expirationId), _.push(A)) : (I = b[I] = y.indexOf(A.key), ~I && (m[I] = A));
|
|
17213
17213
|
}), Ee(h, (A, I) => {
|
|
17214
17214
|
m[I] || (m[I] = {
|
|
17215
|
-
key:
|
|
17215
|
+
key: y[I],
|
|
17216
17216
|
item: A,
|
|
17217
17217
|
phase: "mount",
|
|
17218
17218
|
ctrl: new z1()
|
|
17219
17219
|
}, m[I].ctrl.item = A);
|
|
17220
|
-
}),
|
|
17220
|
+
}), b.length) {
|
|
17221
17221
|
let A = -1;
|
|
17222
17222
|
const { leave: I } = r ? r() : t;
|
|
17223
|
-
Ee(
|
|
17224
|
-
const q = g[
|
|
17223
|
+
Ee(b, (L, W) => {
|
|
17224
|
+
const q = g[W];
|
|
17225
17225
|
~L ? (A = m.indexOf(q), m[A] = { ...q, item: h[L] }) : I && m.splice(++A, 0, q);
|
|
17226
17226
|
});
|
|
17227
17227
|
}
|
|
@@ -17229,28 +17229,28 @@ function Ca(e, t, n) {
|
|
|
17229
17229
|
let w = -o;
|
|
17230
17230
|
const x = Rh(), T = cu(t), E = /* @__PURE__ */ new Map(), M = we(/* @__PURE__ */ new Map()), P = we(!1);
|
|
17231
17231
|
Ee(m, (A, I) => {
|
|
17232
|
-
const L = A.key,
|
|
17233
|
-
let
|
|
17232
|
+
const L = A.key, W = A.phase, q = r ? r() : t;
|
|
17233
|
+
let N, j;
|
|
17234
17234
|
const B = ln(q.delay || 0, L);
|
|
17235
|
-
if (
|
|
17236
|
-
|
|
17235
|
+
if (W == "mount")
|
|
17236
|
+
N = q.enter, j = "enter";
|
|
17237
17237
|
else {
|
|
17238
|
-
const Q =
|
|
17239
|
-
if (
|
|
17238
|
+
const Q = y.indexOf(L) < 0;
|
|
17239
|
+
if (W != "leave")
|
|
17240
17240
|
if (Q)
|
|
17241
|
-
|
|
17242
|
-
else if (
|
|
17241
|
+
N = q.leave, j = "leave";
|
|
17242
|
+
else if (N = q.update)
|
|
17243
17243
|
j = "update";
|
|
17244
17244
|
else
|
|
17245
17245
|
return;
|
|
17246
17246
|
else if (!Q)
|
|
17247
|
-
|
|
17247
|
+
N = q.enter, j = "enter";
|
|
17248
17248
|
else
|
|
17249
17249
|
return;
|
|
17250
17250
|
}
|
|
17251
|
-
if (
|
|
17251
|
+
if (N = ln(N, A.item, I), N = ee.obj(N) ? Ih(N) : { to: N }, !N.config) {
|
|
17252
17252
|
const Q = d || T.config;
|
|
17253
|
-
|
|
17253
|
+
N.config = ln(Q, A.item, I, j);
|
|
17254
17254
|
}
|
|
17255
17255
|
w += o;
|
|
17256
17256
|
const Z = {
|
|
@@ -17262,7 +17262,7 @@ function Ca(e, t, n) {
|
|
|
17262
17262
|
// This prevents implied resets.
|
|
17263
17263
|
reset: !1,
|
|
17264
17264
|
// Merge any phase-specific props.
|
|
17265
|
-
...
|
|
17265
|
+
...N
|
|
17266
17266
|
};
|
|
17267
17267
|
if (j == "enter" && ee.und(Z.from)) {
|
|
17268
17268
|
const Q = r ? r() : t, G = ee.und(Q.initial) || g ? Q.from : Q.initial;
|
|
@@ -17290,14 +17290,14 @@ function Ca(e, t, n) {
|
|
|
17290
17290
|
const Y = rf(A.ctrl, Z);
|
|
17291
17291
|
j === "leave" && u ? M.current.set(A, { phase: j, springs: Y, payload: Z }) : E.set(A, { phase: j, springs: Y, payload: Z });
|
|
17292
17292
|
});
|
|
17293
|
-
const R = le(is),
|
|
17293
|
+
const R = le(is), k = Gd(R), D = R !== k && D1(R);
|
|
17294
17294
|
aa(() => {
|
|
17295
|
-
|
|
17295
|
+
D && Ee(m, (A) => {
|
|
17296
17296
|
A.ctrl.start({ default: R });
|
|
17297
17297
|
});
|
|
17298
17298
|
}, [R]), Ee(E, (A, I) => {
|
|
17299
17299
|
if (M.current.size) {
|
|
17300
|
-
const L = m.findIndex((
|
|
17300
|
+
const L = m.findIndex((W) => W.key === I.key);
|
|
17301
17301
|
m.splice(L, 1);
|
|
17302
17302
|
}
|
|
17303
17303
|
}), aa(
|
|
@@ -17305,15 +17305,15 @@ function Ca(e, t, n) {
|
|
|
17305
17305
|
Ee(
|
|
17306
17306
|
M.current.size ? M.current : E,
|
|
17307
17307
|
({ phase: A, payload: I }, L) => {
|
|
17308
|
-
const { ctrl:
|
|
17309
|
-
L.phase = A, f == null || f.add(
|
|
17308
|
+
const { ctrl: W } = L;
|
|
17309
|
+
L.phase = A, f == null || f.add(W), D && A == "enter" && W.start({ default: R }), I && (N1(W, I.ref), (W.ref || f) && !P.current ? W.update(I) : (W.start(I), P.current && (P.current = !1)));
|
|
17310
17310
|
}
|
|
17311
17311
|
);
|
|
17312
17312
|
},
|
|
17313
17313
|
a ? void 0 : n
|
|
17314
17314
|
);
|
|
17315
17315
|
const C = (A) => /* @__PURE__ */ oe.createElement(oe.Fragment, null, m.map((I, L) => {
|
|
17316
|
-
const { springs:
|
|
17316
|
+
const { springs: W } = E.get(I) || I.ctrl, q = A({ ...W }, I.item, I, L);
|
|
17317
17317
|
return q && q.type ? /* @__PURE__ */ oe.createElement(
|
|
17318
17318
|
q.type,
|
|
17319
17319
|
{
|
|
@@ -17699,10 +17699,10 @@ function wa() {
|
|
|
17699
17699
|
var KC = { pointerEvents: "none", position: "absolute", zIndex: 10, top: 0, left: 0 }, Ug = function(e, t) {
|
|
17700
17700
|
return "translate(" + e + "px, " + t + "px)";
|
|
17701
17701
|
}, J1 = Ct(function(e) {
|
|
17702
|
-
var t, n = e.position, r = e.anchor, a = e.children, i = gt(), o = vn(), s = o.animate, u = o.config, c = t_(), l = c[0], d = c[1], f = we(!1), h = void 0, m = !1, p = d.width > 0 && d.height > 0, g = Math.round(n[0]),
|
|
17703
|
-
p && (r === "top" ? (g -= d.width / 2,
|
|
17704
|
-
var _ = wr({ to: h, config: u, immediate: !s || m }),
|
|
17705
|
-
return v.jsx(at.div, { ref: l, style:
|
|
17702
|
+
var t, n = e.position, r = e.anchor, a = e.children, i = gt(), o = vn(), s = o.animate, u = o.config, c = t_(), l = c[0], d = c[1], f = we(!1), h = void 0, m = !1, p = d.width > 0 && d.height > 0, g = Math.round(n[0]), y = Math.round(n[1]);
|
|
17703
|
+
p && (r === "top" ? (g -= d.width / 2, y -= d.height + 14) : r === "right" ? (g += 14, y -= d.height / 2) : r === "bottom" ? (g -= d.width / 2, y += 14) : r === "left" ? (g -= d.width + 14, y -= d.height / 2) : r === "center" && (g -= d.width / 2, y -= d.height / 2), h = { transform: Ug(g, y) }, f.current || (m = !0), f.current = [g, y]);
|
|
17704
|
+
var _ = wr({ to: h, config: u, immediate: !s || m }), b = wa({}, KC, i.tooltip.wrapper, { transform: (t = _.transform) != null ? t : Ug(g, y), opacity: _.transform ? 1 : 0 });
|
|
17705
|
+
return v.jsx(at.div, { ref: l, style: b, children: a });
|
|
17706
17706
|
});
|
|
17707
17707
|
J1.displayName = "TooltipWrapper";
|
|
17708
17708
|
var XC = Ct(function(e) {
|
|
@@ -17741,14 +17741,14 @@ var ex = rn({ showTooltipAt: function() {
|
|
|
17741
17741
|
}, showTooltipFromEvent: function() {
|
|
17742
17742
|
}, hideTooltip: function() {
|
|
17743
17743
|
} }), of = { isVisible: !1, position: [null, null], content: null, anchor: null }, tx = rn(of), t7 = function(e) {
|
|
17744
|
-
var t = Ue(of), n = t[0], r = t[1], a =
|
|
17744
|
+
var t = Ue(of), n = t[0], r = t[1], a = z(function(s, u, c) {
|
|
17745
17745
|
var l = u[0], d = u[1];
|
|
17746
17746
|
c === void 0 && (c = "top"), r({ isVisible: !0, position: [l, d], anchor: c, content: s });
|
|
17747
|
-
}, [r]), i =
|
|
17747
|
+
}, [r]), i = z(function(s, u, c) {
|
|
17748
17748
|
c === void 0 && (c = "top");
|
|
17749
|
-
var l = e.current.getBoundingClientRect(), d = e.current.offsetWidth, f = d === l.width ? 1 : d / l.width, h = "touches" in u ? u.touches[0] : u, m = h.clientX, p = h.clientY, g = (m - l.left) * f,
|
|
17750
|
-
c !== "left" && c !== "right" || (c = g < l.width / 2 ? "right" : "left"), r({ isVisible: !0, position: [g,
|
|
17751
|
-
}, [e, r]), o =
|
|
17749
|
+
var l = e.current.getBoundingClientRect(), d = e.current.offsetWidth, f = d === l.width ? 1 : d / l.width, h = "touches" in u ? u.touches[0] : u, m = h.clientX, p = h.clientY, g = (m - l.left) * f, y = (p - l.top) * f;
|
|
17750
|
+
c !== "left" && c !== "right" || (c = g < l.width / 2 ? "right" : "left"), r({ isVisible: !0, position: [g, y], anchor: c, content: s });
|
|
17751
|
+
}, [e, r]), o = z(function() {
|
|
17752
17752
|
r(of);
|
|
17753
17753
|
}, [r]);
|
|
17754
17754
|
return { actions: ae(function() {
|
|
@@ -19090,8 +19090,8 @@ function op() {
|
|
|
19090
19090
|
function d() {
|
|
19091
19091
|
var f = t().length, h = a < r, m = h ? a : r, p = h ? r : a;
|
|
19092
19092
|
i = (p - m) / Math.max(1, f - u + c * 2), s && (i = Math.floor(i)), m += (p - m - i * (f - u)) * l, o = i * (1 - u), s && (m = Math.round(m), o = Math.round(o));
|
|
19093
|
-
var g = pD(f).map(function(
|
|
19094
|
-
return m + i *
|
|
19093
|
+
var g = pD(f).map(function(y) {
|
|
19094
|
+
return m + i * y;
|
|
19095
19095
|
});
|
|
19096
19096
|
return n(h ? g.reverse() : g);
|
|
19097
19097
|
}
|
|
@@ -19323,42 +19323,42 @@ function $D(e) {
|
|
|
19323
19323
|
var t = e.grouping === void 0 || e.thousands === void 0 ? $0 : wD(E0.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", a = e.decimal === void 0 ? "." : e.decimal + "", i = e.numerals === void 0 ? $0 : TD(E0.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "-" : e.minus + "", u = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
19324
19324
|
function c(d) {
|
|
19325
19325
|
d = Uo(d);
|
|
19326
|
-
var f = d.fill, h = d.align, m = d.sign, p = d.symbol, g = d.zero,
|
|
19327
|
-
x === "n" ? (_ = !0, x = "g") : k0[x] || (
|
|
19326
|
+
var f = d.fill, h = d.align, m = d.sign, p = d.symbol, g = d.zero, y = d.width, _ = d.comma, b = d.precision, w = d.trim, x = d.type;
|
|
19327
|
+
x === "n" ? (_ = !0, x = "g") : k0[x] || (b === void 0 && (b = 12), w = !0, x = "g"), (g || f === "0" && h === "=") && (g = !0, f = "0", h = "=");
|
|
19328
19328
|
var T = p === "$" ? n : p === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", E = p === "$" ? r : /[%p]/.test(x) ? o : "", M = k0[x], P = /[defgprs%]/.test(x);
|
|
19329
|
-
|
|
19330
|
-
function R(
|
|
19331
|
-
var
|
|
19329
|
+
b = b === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
|
|
19330
|
+
function R(k) {
|
|
19331
|
+
var D = T, C = E, A, I, L;
|
|
19332
19332
|
if (x === "c")
|
|
19333
|
-
C = M(
|
|
19333
|
+
C = M(k) + C, k = "";
|
|
19334
19334
|
else {
|
|
19335
|
-
|
|
19336
|
-
var
|
|
19337
|
-
if (
|
|
19338
|
-
for (A = -1, I =
|
|
19339
|
-
if (L =
|
|
19340
|
-
C = (L === 46 ? a +
|
|
19335
|
+
k = +k;
|
|
19336
|
+
var W = k < 0 || 1 / k < 0;
|
|
19337
|
+
if (k = isNaN(k) ? u : M(Math.abs(k), b), w && (k = OD(k)), W && +k == 0 && m !== "+" && (W = !1), D = (W ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + D, C = (x === "s" ? C0[8 + Nx / 3] : "") + C + (W && m === "(" ? ")" : ""), P) {
|
|
19338
|
+
for (A = -1, I = k.length; ++A < I; )
|
|
19339
|
+
if (L = k.charCodeAt(A), 48 > L || L > 57) {
|
|
19340
|
+
C = (L === 46 ? a + k.slice(A + 1) : k.slice(A)) + C, k = k.slice(0, A);
|
|
19341
19341
|
break;
|
|
19342
19342
|
}
|
|
19343
19343
|
}
|
|
19344
19344
|
}
|
|
19345
|
-
_ && !g && (
|
|
19346
|
-
var q =
|
|
19347
|
-
switch (_ && g && (
|
|
19345
|
+
_ && !g && (k = t(k, 1 / 0));
|
|
19346
|
+
var q = D.length + k.length + C.length, N = q < y ? new Array(y - q + 1).join(f) : "";
|
|
19347
|
+
switch (_ && g && (k = t(N + k, N.length ? y - C.length : 1 / 0), N = ""), h) {
|
|
19348
19348
|
case "<":
|
|
19349
|
-
|
|
19349
|
+
k = D + k + C + N;
|
|
19350
19350
|
break;
|
|
19351
19351
|
case "=":
|
|
19352
|
-
|
|
19352
|
+
k = D + N + k + C;
|
|
19353
19353
|
break;
|
|
19354
19354
|
case "^":
|
|
19355
|
-
|
|
19355
|
+
k = N.slice(0, q = N.length >> 1) + D + k + C + N.slice(q);
|
|
19356
19356
|
break;
|
|
19357
19357
|
default:
|
|
19358
|
-
|
|
19358
|
+
k = N + D + k + C;
|
|
19359
19359
|
break;
|
|
19360
19360
|
}
|
|
19361
|
-
return i(
|
|
19361
|
+
return i(k);
|
|
19362
19362
|
}
|
|
19363
19363
|
return R.toString = function() {
|
|
19364
19364
|
return d + "";
|
|
@@ -19366,8 +19366,8 @@ function $D(e) {
|
|
|
19366
19366
|
}
|
|
19367
19367
|
function l(d, f) {
|
|
19368
19368
|
var h = c((d = Uo(d), d.type = "f", d)), m = Math.max(-8, Math.min(8, Math.floor(li(f) / 3))) * 3, p = Math.pow(10, -m), g = C0[8 + m / 3];
|
|
19369
|
-
return function(
|
|
19370
|
-
return h(p *
|
|
19369
|
+
return function(y) {
|
|
19370
|
+
return h(p * y) + g;
|
|
19371
19371
|
};
|
|
19372
19372
|
}
|
|
19373
19373
|
return {
|
|
@@ -19495,25 +19495,25 @@ function FD(e) {
|
|
|
19495
19495
|
d && ([c, l] = [l, c]);
|
|
19496
19496
|
let f = a(c), h = a(l), m, p;
|
|
19497
19497
|
const g = s == null ? 10 : +s;
|
|
19498
|
-
let
|
|
19498
|
+
let y = [];
|
|
19499
19499
|
if (!(r % 1) && h - f < g) {
|
|
19500
19500
|
if (f = Math.floor(f), h = Math.ceil(h), c > 0) {
|
|
19501
19501
|
for (; f <= h; ++f)
|
|
19502
19502
|
for (m = 1; m < r; ++m)
|
|
19503
19503
|
if (p = f < 0 ? m / i(-f) : m * i(f), !(p < c)) {
|
|
19504
19504
|
if (p > l) break;
|
|
19505
|
-
|
|
19505
|
+
y.push(p);
|
|
19506
19506
|
}
|
|
19507
19507
|
} else for (; f <= h; ++f)
|
|
19508
19508
|
for (m = r - 1; m >= 1; --m)
|
|
19509
19509
|
if (p = f > 0 ? m / i(-f) : m * i(f), !(p < c)) {
|
|
19510
19510
|
if (p > l) break;
|
|
19511
|
-
|
|
19511
|
+
y.push(p);
|
|
19512
19512
|
}
|
|
19513
|
-
|
|
19513
|
+
y.length * 2 < g && (y = cf(c, l, g));
|
|
19514
19514
|
} else
|
|
19515
|
-
|
|
19516
|
-
return d ?
|
|
19515
|
+
y = cf(f, h, Math.min(h - f, g)).map(i);
|
|
19516
|
+
return d ? y.reverse() : y;
|
|
19517
19517
|
}, t.tickFormat = (s, u) => {
|
|
19518
19518
|
if (s == null && (s = 10), u == null && (u = r === 10 ? "s" : ","), typeof u != "function" && (!(r % 1) && (u = Uo(u)).precision == null && (u.trim = !0), u = ls(u)), s === 1 / 0) return u;
|
|
19519
19519
|
const c = Math.max(1, r * s / t.ticks().length);
|
|
@@ -19975,10 +19975,10 @@ function zi(e, t, n) {
|
|
|
19975
19975
|
return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 };
|
|
19976
19976
|
}
|
|
19977
19977
|
function nN(e) {
|
|
19978
|
-
var t = e.dateTime, n = e.date, r = e.time, a = e.periods, i = e.days, o = e.shortDays, s = e.months, u = e.shortMonths, c = Hi(a), l = Vi(a), d = Hi(i), f = Vi(i), h = Hi(o), m = Vi(o), p = Hi(s), g = Vi(s),
|
|
19979
|
-
a:
|
|
19978
|
+
var t = e.dateTime, n = e.date, r = e.time, a = e.periods, i = e.days, o = e.shortDays, s = e.months, u = e.shortMonths, c = Hi(a), l = Vi(a), d = Hi(i), f = Vi(i), h = Hi(o), m = Vi(o), p = Hi(s), g = Vi(s), y = Hi(u), _ = Vi(u), b = {
|
|
19979
|
+
a: W,
|
|
19980
19980
|
A: q,
|
|
19981
|
-
b:
|
|
19981
|
+
b: N,
|
|
19982
19982
|
B: j,
|
|
19983
19983
|
c: null,
|
|
19984
19984
|
d: W0,
|
|
@@ -20043,8 +20043,8 @@ function nN(e) {
|
|
|
20043
20043
|
"%": z0
|
|
20044
20044
|
}, x = {
|
|
20045
20045
|
a: R,
|
|
20046
|
-
A:
|
|
20047
|
-
b:
|
|
20046
|
+
A: k,
|
|
20047
|
+
b: D,
|
|
20048
20048
|
B: C,
|
|
20049
20049
|
c: A,
|
|
20050
20050
|
d: L0,
|
|
@@ -20075,7 +20075,7 @@ function nN(e) {
|
|
|
20075
20075
|
Z: dN,
|
|
20076
20076
|
"%": bN
|
|
20077
20077
|
};
|
|
20078
|
-
|
|
20078
|
+
b.x = T(n, b), b.X = T(r, b), b.c = T(t, b), w.x = T(n, w), w.X = T(r, w), w.c = T(t, w);
|
|
20079
20079
|
function T(F, V) {
|
|
20080
20080
|
return function(ie) {
|
|
20081
20081
|
var S = [], ye = -1, ge = 0, he = F.length, De, Fe, yt;
|
|
@@ -20115,12 +20115,12 @@ function nN(e) {
|
|
|
20115
20115
|
var S = h.exec(V.slice(ie));
|
|
20116
20116
|
return S ? (F.w = m.get(S[0].toLowerCase()), ie + S[0].length) : -1;
|
|
20117
20117
|
}
|
|
20118
|
-
function
|
|
20118
|
+
function k(F, V, ie) {
|
|
20119
20119
|
var S = d.exec(V.slice(ie));
|
|
20120
20120
|
return S ? (F.w = f.get(S[0].toLowerCase()), ie + S[0].length) : -1;
|
|
20121
20121
|
}
|
|
20122
|
-
function
|
|
20123
|
-
var S =
|
|
20122
|
+
function D(F, V, ie) {
|
|
20123
|
+
var S = y.exec(V.slice(ie));
|
|
20124
20124
|
return S ? (F.m = _.get(S[0].toLowerCase()), ie + S[0].length) : -1;
|
|
20125
20125
|
}
|
|
20126
20126
|
function C(F, V, ie) {
|
|
@@ -20136,13 +20136,13 @@ function nN(e) {
|
|
|
20136
20136
|
function L(F, V, ie) {
|
|
20137
20137
|
return M(F, r, V, ie);
|
|
20138
20138
|
}
|
|
20139
|
-
function
|
|
20139
|
+
function W(F) {
|
|
20140
20140
|
return o[F.getDay()];
|
|
20141
20141
|
}
|
|
20142
20142
|
function q(F) {
|
|
20143
20143
|
return i[F.getDay()];
|
|
20144
20144
|
}
|
|
20145
|
-
function
|
|
20145
|
+
function N(F) {
|
|
20146
20146
|
return u[F.getMonth()];
|
|
20147
20147
|
}
|
|
20148
20148
|
function j(F) {
|
|
@@ -20174,7 +20174,7 @@ function nN(e) {
|
|
|
20174
20174
|
}
|
|
20175
20175
|
return {
|
|
20176
20176
|
format: function(F) {
|
|
20177
|
-
var V = T(F += "",
|
|
20177
|
+
var V = T(F += "", b);
|
|
20178
20178
|
return V.toString = function() {
|
|
20179
20179
|
return F;
|
|
20180
20180
|
}, V;
|
|
@@ -20450,9 +20450,9 @@ function aF(e) {
|
|
|
20450
20450
|
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
|
|
20451
20451
|
}
|
|
20452
20452
|
function _p(e, t, n, r, a, i, o, s, u, c) {
|
|
20453
|
-
var l = Dx(), d = l.invert, f = l.domain, h = c(".%L"), m = c(":%S"), p = c("%I:%M"), g = c("%I %p"),
|
|
20453
|
+
var l = Dx(), d = l.invert, f = l.domain, h = c(".%L"), m = c(":%S"), p = c("%I:%M"), g = c("%I %p"), y = c("%a %d"), _ = c("%b %d"), b = c("%B"), w = c("%Y");
|
|
20454
20454
|
function x(T) {
|
|
20455
|
-
return (u(T) < T ? h : s(T) < T ? m : o(T) < T ? p : i(T) < T ? g : r(T) < T ? a(T) < T ?
|
|
20455
|
+
return (u(T) < T ? h : s(T) < T ? m : o(T) < T ? p : i(T) < T ? g : r(T) < T ? a(T) < T ? y : _ : n(T) < T ? b : w)(T);
|
|
20456
20456
|
}
|
|
20457
20457
|
return l.invert = function(T) {
|
|
20458
20458
|
return new Date(d(T));
|
|
@@ -20927,7 +20927,7 @@ class IL {
|
|
|
20927
20927
|
else if (f > Qr) if (!(Math.abs(d * u - c * l) > Qr) || !i)
|
|
20928
20928
|
this._append`L${this._x1 = t},${this._y1 = n}`;
|
|
20929
20929
|
else {
|
|
20930
|
-
let h = r - o, m = a - s, p = u * u + c * c, g = h * h + m * m,
|
|
20930
|
+
let h = r - o, m = a - s, p = u * u + c * c, g = h * h + m * m, y = Math.sqrt(p), _ = Math.sqrt(f), b = i * Math.tan((hf - Math.acos((p + f - g) / (2 * y * _))) / 2), w = b / _, x = b / y;
|
|
20931
20931
|
Math.abs(w - 1) > Qr && this._append`L${t + w * l},${n + w * d}`, this._append`A${i},${i},0,0,${+(d * h > l * m)},${this._x1 = t + x * u},${this._y1 = n + x * c}`;
|
|
20932
20932
|
}
|
|
20933
20933
|
}
|
|
@@ -20978,8 +20978,8 @@ function WL(e, t, n, r, a, i, o, s) {
|
|
|
20978
20978
|
return f = (l * (t - i) - d * (e - a)) / f, [e + f * u, t + f * c];
|
|
20979
20979
|
}
|
|
20980
20980
|
function Rs(e, t, n, r, a, i, o) {
|
|
20981
|
-
var s = e - n, u = t - r, c = (o ? i : -i) / Ya(s * s + u * u), l = c * u, d = -c * s, f = e + l, h = t + d, m = n + l, p = r + d, g = (f + m) / 2,
|
|
20982
|
-
return
|
|
20981
|
+
var s = e - n, u = t - r, c = (o ? i : -i) / Ya(s * s + u * u), l = c * u, d = -c * s, f = e + l, h = t + d, m = n + l, p = r + d, g = (f + m) / 2, y = (h + p) / 2, _ = m - f, b = p - h, w = _ * _ + b * b, x = a - i, T = f * p - m * h, E = (b < 0 ? -1 : 1) * Ya(AL(0, x * x * w - T * T)), M = (T * b - _ * E) / w, P = (-T * _ - b * E) / w, R = (T * b + _ * E) / w, k = (-T * _ + b * E) / w, D = M - g, C = P - y, A = R - g, I = k - y;
|
|
20982
|
+
return D * D + C * C > A * A + I * I && (M = R, P = k), {
|
|
20983
20983
|
cx: M,
|
|
20984
20984
|
cy: P,
|
|
20985
20985
|
x01: -l,
|
|
@@ -20991,27 +20991,27 @@ function Rs(e, t, n, r, a, i, o) {
|
|
|
20991
20991
|
function BL() {
|
|
20992
20992
|
var e = DL, t = NL, n = mt(0), r = null, a = FL, i = LL, o = UL, s = null, u = E2(c);
|
|
20993
20993
|
function c() {
|
|
20994
|
-
var l, d, f = +e.apply(this, arguments), h = +t.apply(this, arguments), m = a.apply(this, arguments) - Pc, p = i.apply(this, arguments) - Pc, g = q0(p - m),
|
|
20994
|
+
var l, d, f = +e.apply(this, arguments), h = +t.apply(this, arguments), m = a.apply(this, arguments) - Pc, p = i.apply(this, arguments) - Pc, g = q0(p - m), y = p > m;
|
|
20995
20995
|
if (s || (s = l = u()), h < f && (d = h, h = f, f = d), !(h > Gt)) s.moveTo(0, 0);
|
|
20996
20996
|
else if (g > Vs - Gt)
|
|
20997
|
-
s.moveTo(h * Kr(m), h * Kn(m)), s.arc(0, 0, h, m, p, !
|
|
20997
|
+
s.moveTo(h * Kr(m), h * Kn(m)), s.arc(0, 0, h, m, p, !y), f > Gt && (s.moveTo(f * Kr(p), f * Kn(p)), s.arc(0, 0, f, p, m, y));
|
|
20998
20998
|
else {
|
|
20999
|
-
var _ = m,
|
|
20999
|
+
var _ = m, b = p, w = m, x = p, T = g, E = g, M = o.apply(this, arguments) / 2, P = M > Gt && (r ? +r.apply(this, arguments) : Ya(f * f + h * h)), R = nd(q0(h - f) / 2, +n.apply(this, arguments)), k = R, D = R, C, A;
|
|
21000
21000
|
if (P > Gt) {
|
|
21001
21001
|
var I = Y0(P / f * Kn(M)), L = Y0(P / h * Kn(M));
|
|
21002
|
-
(T -= I * 2) > Gt ? (I *=
|
|
21002
|
+
(T -= I * 2) > Gt ? (I *= y ? 1 : -1, w += I, x -= I) : (T = 0, w = x = (m + p) / 2), (E -= L * 2) > Gt ? (L *= y ? 1 : -1, _ += L, b -= L) : (E = 0, _ = b = (m + p) / 2);
|
|
21003
21003
|
}
|
|
21004
|
-
var
|
|
21004
|
+
var W = h * Kr(_), q = h * Kn(_), N = f * Kr(x), j = f * Kn(x);
|
|
21005
21005
|
if (R > Gt) {
|
|
21006
|
-
var B = h * Kr(
|
|
21006
|
+
var B = h * Kr(b), Z = h * Kn(b), ne = f * Kr(w), Y = f * Kn(w), Q;
|
|
21007
21007
|
if (g < Ho)
|
|
21008
|
-
if (Q = WL(
|
|
21009
|
-
var G =
|
|
21010
|
-
|
|
21008
|
+
if (Q = WL(W, q, ne, Y, B, Z, N, j)) {
|
|
21009
|
+
var G = W - Q[0], J = q - Q[1], re = B - Q[0], F = Z - Q[1], V = 1 / Kn(RL((G * re + J * F) / (Ya(G * G + J * J) * Ya(re * re + F * F))) / 2), ie = Ya(Q[0] * Q[0] + Q[1] * Q[1]);
|
|
21010
|
+
k = nd(R, (f - ie) / (V - 1)), D = nd(R, (h - ie) / (V + 1));
|
|
21011
21011
|
} else
|
|
21012
|
-
|
|
21012
|
+
k = D = 0;
|
|
21013
21013
|
}
|
|
21014
|
-
E > Gt ?
|
|
21014
|
+
E > Gt ? D > Gt ? (C = Rs(ne, Y, W, q, h, D, y), A = Rs(B, Z, N, j, h, D, y), s.moveTo(C.cx + C.x01, C.cy + C.y01), D < R ? s.arc(C.cx, C.cy, D, Yt(C.y01, C.x01), Yt(A.y01, A.x01), !y) : (s.arc(C.cx, C.cy, D, Yt(C.y01, C.x01), Yt(C.y11, C.x11), !y), s.arc(0, 0, h, Yt(C.cy + C.y11, C.cx + C.x11), Yt(A.cy + A.y11, A.cx + A.x11), !y), s.arc(A.cx, A.cy, D, Yt(A.y11, A.x11), Yt(A.y01, A.x01), !y))) : (s.moveTo(W, q), s.arc(0, 0, h, _, b, !y)) : s.moveTo(W, q), !(f > Gt) || !(T > Gt) ? s.lineTo(N, j) : k > Gt ? (C = Rs(N, j, B, Z, f, -k, y), A = Rs(W, q, ne, Y, f, -k, y), s.lineTo(C.cx + C.x01, C.cy + C.y01), k < R ? s.arc(C.cx, C.cy, k, Yt(C.y01, C.x01), Yt(A.y01, A.x01), !y) : (s.arc(C.cx, C.cy, k, Yt(C.y01, C.x01), Yt(C.y11, C.x11), !y), s.arc(0, 0, f, Yt(C.cy + C.y11, C.cx + C.x11), Yt(A.cy + A.y11, A.cx + A.x11), y), s.arc(A.cx, A.cy, k, Yt(A.y11, A.x11), Yt(A.y01, A.x01), !y))) : s.arc(0, 0, f, x, w, y);
|
|
21015
21015
|
}
|
|
21016
21016
|
if (s.closePath(), l) return s = null, l + "" || null;
|
|
21017
21017
|
}
|
|
@@ -21107,20 +21107,20 @@ function YL(e) {
|
|
|
21107
21107
|
function GL() {
|
|
21108
21108
|
var e = YL, t = qL, n = null, r = mt(0), a = mt(Vs), i = mt(0);
|
|
21109
21109
|
function o(s) {
|
|
21110
|
-
var u, c = (s = Op(s)).length, l, d, f = 0, h = new Array(c), m = new Array(c), p = +r.apply(this, arguments), g = Math.min(Vs, Math.max(-Vs, a.apply(this, arguments) - p)),
|
|
21110
|
+
var u, c = (s = Op(s)).length, l, d, f = 0, h = new Array(c), m = new Array(c), p = +r.apply(this, arguments), g = Math.min(Vs, Math.max(-Vs, a.apply(this, arguments) - p)), y, _ = Math.min(Math.abs(g) / c, i.apply(this, arguments)), b = _ * (g < 0 ? -1 : 1), w;
|
|
21111
21111
|
for (u = 0; u < c; ++u)
|
|
21112
21112
|
(w = m[h[u] = u] = +e(s[u], u, s)) > 0 && (f += w);
|
|
21113
21113
|
for (t != null ? h.sort(function(x, T) {
|
|
21114
21114
|
return t(m[x], m[T]);
|
|
21115
21115
|
}) : n != null && h.sort(function(x, T) {
|
|
21116
21116
|
return n(s[x], s[T]);
|
|
21117
|
-
}), u = 0, d = f ? (g - c *
|
|
21118
|
-
l = h[u], w = m[l],
|
|
21117
|
+
}), u = 0, d = f ? (g - c * b) / f : 0; u < c; ++u, p = y)
|
|
21118
|
+
l = h[u], w = m[l], y = p + (w > 0 ? w * d : 0) + b, m[l] = {
|
|
21119
21119
|
data: s[l],
|
|
21120
21120
|
index: u,
|
|
21121
21121
|
value: w,
|
|
21122
21122
|
startAngle: p,
|
|
21123
|
-
endAngle:
|
|
21123
|
+
endAngle: y,
|
|
21124
21124
|
padAngle: _
|
|
21125
21125
|
};
|
|
21126
21126
|
return m;
|
|
@@ -21958,8 +21958,8 @@ function lW(e, t, n, r, a, i) {
|
|
|
21958
21958
|
break;
|
|
21959
21959
|
}
|
|
21960
21960
|
if (h) {
|
|
21961
|
-
if (!oW(t, function(
|
|
21962
|
-
if (!sW(h, _) && (m ===
|
|
21961
|
+
if (!oW(t, function(y, _) {
|
|
21962
|
+
if (!sW(h, _) && (m === y || a(m, y, n, r, i)))
|
|
21963
21963
|
return h.push(_);
|
|
21964
21964
|
})) {
|
|
21965
21965
|
f = !1;
|
|
@@ -22077,10 +22077,10 @@ function uB(e, t, n, r, a, i) {
|
|
|
22077
22077
|
i.set(e, t), i.set(t, e);
|
|
22078
22078
|
for (var g = o; ++d < u; ) {
|
|
22079
22079
|
f = s[d];
|
|
22080
|
-
var
|
|
22080
|
+
var y = e[f], _ = t[f];
|
|
22081
22081
|
if (r)
|
|
22082
|
-
var
|
|
22083
|
-
if (!(
|
|
22082
|
+
var b = o ? r(_, y, f, t, e, i) : r(y, _, f, e, t, i);
|
|
22083
|
+
if (!(b === void 0 ? y === _ || a(y, _, n, r, i) : b)) {
|
|
22084
22084
|
p = !1;
|
|
22085
22085
|
break;
|
|
22086
22086
|
}
|
|
@@ -22170,8 +22170,8 @@ var qB = ["axis.ticks.text", "axis.legend.text", "legends.title.text", "legends.
|
|
|
22170
22170
|
return { animate: r, config: s };
|
|
22171
22171
|
}, [r, i]);
|
|
22172
22172
|
return v.jsx(Q2.Provider, { value: o, children: t });
|
|
22173
|
-
}, bv = { animate:
|
|
22174
|
-
e_.propTypes = { children:
|
|
22173
|
+
}, bv = { animate: $.bool, motionConfig: $.oneOfType([$.oneOf(Object.keys(Dh)), $.shape({ mass: $.number, tension: $.number, friction: $.number, clamp: $.bool, precision: $.number, velocity: $.number, duration: $.number, easing: $.func })]) };
|
|
22174
|
+
e_.propTypes = { children: $.node.isRequired, animate: bv.animate, config: bv.motionConfig };
|
|
22175
22175
|
var vn = function() {
|
|
22176
22176
|
return le(Q2);
|
|
22177
22177
|
}, ZB = function(e) {
|
|
@@ -22186,16 +22186,16 @@ var vn = function() {
|
|
|
22186
22186
|
return Wr(o, i);
|
|
22187
22187
|
}, KB = { nivo: ["#d76445", "#f47560", "#e8c1a0", "#97e3d5", "#61cdbb", "#00b0a7"], BrBG: xe(Cu), PRGn: xe(Mu), PiYG: xe(Au), PuOr: xe(Ru), RdBu: xe(ju), RdGy: xe(Pu), RdYlBu: xe(Iu), RdYlGn: xe(Du), spectral: xe(Nu), blues: xe(Ku), greens: xe(Xu), greys: xe(Ju), oranges: xe(tl), purples: xe(Qu), reds: xe(el), BuGn: xe(Fu), BuPu: xe(Lu), GnBu: xe(Uu), OrRd: xe(Wu), PuBuGn: xe(Bu), PuBu: xe(zu), PuRd: xe(Hu), RdPu: xe(Vu), YlGnBu: xe(qu), YlGn: xe(Yu), YlOrBr: xe(Gu), YlOrRd: xe(Zu) }, XB = Object.keys(KB);
|
|
22188
22188
|
xe(Cu), xe(Mu), xe(Au), xe(Ru), xe(ju), xe(Pu), xe(Iu), xe(Du), xe(Nu), xe(Ku), xe(Xu), xe(Ju), xe(tl), xe(Qu), xe(el), xe(Fu), xe(Lu), xe(Uu), xe(Wu), xe(Bu), xe(zu), xe(Hu), xe(Vu), xe(qu), xe(Yu), xe(Gu), xe(Zu);
|
|
22189
|
-
|
|
22189
|
+
$.oneOfType([$.oneOf(XB), $.func, $.arrayOf($.string)]);
|
|
22190
22190
|
var JB = { basis: ZL, basisClosed: KL, basisOpen: XL, bundle: JL, cardinal: QL, cardinalClosed: eU, cardinalOpen: tU, catmullRom: nU, catmullRomClosed: rU, catmullRomOpen: aU, linear: M2, linearClosed: iU, monotoneX: oU, monotoneY: sU, natural: cU, step: uU, stepAfter: dU, stepBefore: lU }, Ip = Object.keys(JB);
|
|
22191
22191
|
Ip.filter(function(e) {
|
|
22192
22192
|
return e.endsWith("Closed");
|
|
22193
22193
|
});
|
|
22194
22194
|
k2(Ip, "bundle", "basisClosed", "basisOpen", "cardinalClosed", "cardinalOpen", "catmullRomClosed", "catmullRomOpen", "linearClosed");
|
|
22195
22195
|
k2(Ip, "bundle", "basisClosed", "basisOpen", "cardinalClosed", "cardinalOpen", "catmullRomClosed", "catmullRomOpen", "linearClosed");
|
|
22196
|
-
|
|
22196
|
+
$.shape({ top: $.number, right: $.number, bottom: $.number, left: $.number }).isRequired;
|
|
22197
22197
|
var QB = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
|
|
22198
|
-
|
|
22198
|
+
$.oneOf(QB);
|
|
22199
22199
|
oa(wp);
|
|
22200
22200
|
var ez = { top: 0, right: 0, bottom: 0, left: 0 }, Dp = function(e, t, n) {
|
|
22201
22201
|
return n === void 0 && (n = {}), ae(function() {
|
|
@@ -22230,7 +22230,7 @@ var ez = { top: 0, right: 0, bottom: 0, left: 0 }, Dp = function(e, t, n) {
|
|
|
22230
22230
|
var t = e.theme, n = t === void 0 ? rz : t, r = e.children, a = tz(n);
|
|
22231
22231
|
return v.jsx(n_.Provider, { value: a, children: r });
|
|
22232
22232
|
};
|
|
22233
|
-
r_.propTypes = { children:
|
|
22233
|
+
r_.propTypes = { children: $.node.isRequired, theme: $.object };
|
|
22234
22234
|
var gt = function() {
|
|
22235
22235
|
return le(n_);
|
|
22236
22236
|
}, az = ["outlineWidth", "outlineColor", "outlineOpacity"], Np = function(e) {
|
|
@@ -22239,18 +22239,18 @@ var gt = function() {
|
|
|
22239
22239
|
var t = e.children, n = e.condition, r = e.wrapper;
|
|
22240
22240
|
return n ? Yo(r, {}, t) : t;
|
|
22241
22241
|
};
|
|
22242
|
-
a_.propTypes = { children:
|
|
22242
|
+
a_.propTypes = { children: $.node.isRequired, condition: $.bool.isRequired, wrapper: $.element.isRequired };
|
|
22243
22243
|
var iz = { position: "relative" }, sl = function(e) {
|
|
22244
22244
|
var t = e.children, n = e.theme, r = e.renderWrapper, a = r === void 0 || r, i = e.isInteractive, o = i === void 0 || i, s = e.animate, u = e.motionConfig, c = we(null);
|
|
22245
22245
|
return v.jsx(r_, { theme: n, children: v.jsx(e_, { animate: s, config: u, children: v.jsx(i7, { container: c, children: v.jsxs(a_, { condition: a, wrapper: v.jsx("div", { style: iz, ref: c }), children: [t, o && v.jsx(a7, {})] }) }) }) });
|
|
22246
22246
|
};
|
|
22247
|
-
sl.propTypes = { children:
|
|
22248
|
-
|
|
22247
|
+
sl.propTypes = { children: $.element.isRequired, isInteractive: $.bool, renderWrapper: $.bool, theme: $.object, animate: $.bool, motionConfig: $.string };
|
|
22248
|
+
$.func.isRequired, $.bool, $.bool, $.object.isRequired, $.bool.isRequired, $.string;
|
|
22249
22249
|
var cl = function(e) {
|
|
22250
22250
|
var t = e.children, n = t_(), r = n[0], a = n[1], i = a.width > 0 && a.height > 0;
|
|
22251
22251
|
return v.jsx("div", { ref: r, style: { width: "100%", height: "100%" }, children: i && t({ width: a.width, height: a.height }) });
|
|
22252
22252
|
};
|
|
22253
|
-
cl.propTypes = { children:
|
|
22253
|
+
cl.propTypes = { children: $.func.isRequired };
|
|
22254
22254
|
var oz = ["id", "colors"], i_ = function(e) {
|
|
22255
22255
|
var t = e.id, n = e.colors, r = Pp(e, oz);
|
|
22256
22256
|
return v.jsx("linearGradient", zn({ id: t, x1: 0, x2: 0, y1: 0, y2: 1 }, r, { children: n.map(function(a) {
|
|
@@ -22258,12 +22258,12 @@ var oz = ["id", "colors"], i_ = function(e) {
|
|
|
22258
22258
|
return v.jsx("stop", { offset: i + "%", stopColor: o, stopOpacity: s !== void 0 ? s : 1 }, i);
|
|
22259
22259
|
}) }));
|
|
22260
22260
|
};
|
|
22261
|
-
i_.propTypes = { id:
|
|
22261
|
+
i_.propTypes = { id: $.string.isRequired, colors: $.arrayOf($.shape({ offset: $.number.isRequired, color: $.string.isRequired, opacity: $.number })).isRequired, gradientTransform: $.string };
|
|
22262
22262
|
var o_ = { linearGradient: i_ }, qi = { color: "#000000", background: "#ffffff", size: 4, padding: 4, stagger: !1 }, xf = Ct(function(e) {
|
|
22263
22263
|
var t = e.id, n = e.background, r = n === void 0 ? qi.background : n, a = e.color, i = a === void 0 ? qi.color : a, o = e.size, s = o === void 0 ? qi.size : o, u = e.padding, c = u === void 0 ? qi.padding : u, l = e.stagger, d = l === void 0 ? qi.stagger : l, f = s + c, h = s / 2, m = c / 2;
|
|
22264
22264
|
return d === !0 && (f = 2 * s + 2 * c), v.jsxs("pattern", { id: t, width: f, height: f, patternUnits: "userSpaceOnUse", children: [v.jsx("rect", { width: f, height: f, fill: r }), v.jsx("circle", { cx: m + h, cy: m + h, r: h, fill: i }), d && v.jsx("circle", { cx: 1.5 * c + s + h, cy: 1.5 * c + s + h, r: h, fill: i })] });
|
|
22265
22265
|
});
|
|
22266
|
-
xf.displayName = "PatternDots", xf.propTypes = { id:
|
|
22266
|
+
xf.displayName = "PatternDots", xf.propTypes = { id: $.string.isRequired, color: $.string.isRequired, background: $.string.isRequired, size: $.number.isRequired, padding: $.number.isRequired, stagger: $.bool.isRequired };
|
|
22267
22267
|
var Rn = function(e) {
|
|
22268
22268
|
return e * Math.PI / 180;
|
|
22269
22269
|
}, ul = function(e) {
|
|
@@ -22295,12 +22295,12 @@ var Rn = function(e) {
|
|
|
22295
22295
|
M 0 ` + 2 * g + " L " + 2 * p + ` 0
|
|
22296
22296
|
`), v.jsxs("pattern", { id: t, width: p, height: g, patternUnits: "userSpaceOnUse", children: [v.jsx("rect", { width: p, height: g, fill: s, stroke: "rgba(255, 0, 0, 0.1)", strokeWidth: 0 }), v.jsx("path", { d: m, strokeWidth: d, stroke: c, strokeLinecap: "square" })] });
|
|
22297
22297
|
});
|
|
22298
|
-
_f.displayName = "PatternLines", _f.propTypes = { id:
|
|
22298
|
+
_f.displayName = "PatternLines", _f.propTypes = { id: $.string.isRequired, spacing: $.number.isRequired, rotation: $.number.isRequired, background: $.string.isRequired, color: $.string.isRequired, lineWidth: $.number.isRequired };
|
|
22299
22299
|
var Gi = { color: "#000000", background: "#ffffff", size: 4, padding: 4, stagger: !1 }, wf = Ct(function(e) {
|
|
22300
22300
|
var t = e.id, n = e.color, r = n === void 0 ? Gi.color : n, a = e.background, i = a === void 0 ? Gi.background : a, o = e.size, s = o === void 0 ? Gi.size : o, u = e.padding, c = u === void 0 ? Gi.padding : u, l = e.stagger, d = l === void 0 ? Gi.stagger : l, f = s + c, h = c / 2;
|
|
22301
22301
|
return d === !0 && (f = 2 * s + 2 * c), v.jsxs("pattern", { id: t, width: f, height: f, patternUnits: "userSpaceOnUse", children: [v.jsx("rect", { width: f, height: f, fill: i }), v.jsx("rect", { x: h, y: h, width: s, height: s, fill: r }), d && v.jsx("rect", { x: 1.5 * c + s, y: 1.5 * c + s, width: s, height: s, fill: r })] });
|
|
22302
22302
|
});
|
|
22303
|
-
wf.displayName = "PatternSquares", wf.propTypes = { id:
|
|
22303
|
+
wf.displayName = "PatternSquares", wf.propTypes = { id: $.string.isRequired, color: $.string.isRequired, background: $.string.isRequired, size: $.number.isRequired, padding: $.number.isRequired, stagger: $.bool.isRequired };
|
|
22304
22304
|
var s_ = { patternDots: xf, patternLines: _f, patternSquares: wf }, lz = ["type"], Tf = zn({}, o_, s_), c_ = function(e) {
|
|
22305
22305
|
var t = e.defs;
|
|
22306
22306
|
return !t || t.length < 1 ? null : v.jsx("defs", { "aria-hidden": !0, children: t.map(function(n) {
|
|
@@ -22308,94 +22308,94 @@ var s_ = { patternDots: xf, patternLines: _f, patternSquares: wf }, lz = ["type"
|
|
|
22308
22308
|
return Tf[r] ? mn(Tf[r], zn({ key: a.id }, a)) : null;
|
|
22309
22309
|
}) });
|
|
22310
22310
|
};
|
|
22311
|
-
c_.propTypes = { defs:
|
|
22311
|
+
c_.propTypes = { defs: $.arrayOf($.shape({ type: $.oneOf(Object.keys(Tf)).isRequired, id: $.string.isRequired })) };
|
|
22312
22312
|
var dz = Ct(c_), Fp = function(e) {
|
|
22313
22313
|
var t = e.width, n = e.height, r = e.margin, a = e.defs, i = e.children, o = e.role, s = e.ariaLabel, u = e.ariaLabelledBy, c = e.ariaDescribedBy, l = e.isFocusable, d = gt();
|
|
22314
22314
|
return v.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: n, role: o, "aria-label": s, "aria-labelledby": u, "aria-describedby": c, focusable: l, tabIndex: l ? 0 : void 0, children: [v.jsx(dz, { defs: a }), v.jsx("rect", { width: t, height: n, fill: d.background }), v.jsx("g", { transform: "translate(" + r.left + "," + r.top + ")", children: i })] });
|
|
22315
22315
|
};
|
|
22316
|
-
Fp.propTypes = { width:
|
|
22316
|
+
Fp.propTypes = { width: $.number.isRequired, height: $.number.isRequired, margin: $.shape({ top: $.number.isRequired, left: $.number.isRequired }).isRequired, defs: $.array, children: $.oneOfType([$.arrayOf($.node), $.node]).isRequired, role: $.string, isFocusable: $.bool, ariaLabel: $.string, ariaLabelledBy: $.string, ariaDescribedBy: $.string };
|
|
22317
22317
|
var u_ = function(e) {
|
|
22318
22318
|
var t = e.size, n = e.color, r = e.borderWidth, a = e.borderColor;
|
|
22319
22319
|
return v.jsx("circle", { r: t / 2, fill: n, stroke: a, strokeWidth: r, style: { pointerEvents: "none" } });
|
|
22320
22320
|
};
|
|
22321
|
-
u_.propTypes = { size:
|
|
22321
|
+
u_.propTypes = { size: $.number.isRequired, color: $.string.isRequired, borderWidth: $.number.isRequired, borderColor: $.string.isRequired };
|
|
22322
22322
|
var fz = Ct(u_), l_ = function(e) {
|
|
22323
|
-
var t = e.x, n = e.y, r = e.symbol, a = r === void 0 ? fz : r, i = e.size, o = e.datum, s = e.color, u = e.borderWidth, c = e.borderColor, l = e.label, d = e.labelTextAnchor, f = d === void 0 ? "middle" : d, h = e.labelYOffset, m = h === void 0 ? -12 : h, p = gt(), g = vn(),
|
|
22324
|
-
return v.jsxs(at.g, { transform:
|
|
22323
|
+
var t = e.x, n = e.y, r = e.symbol, a = r === void 0 ? fz : r, i = e.size, o = e.datum, s = e.color, u = e.borderWidth, c = e.borderColor, l = e.label, d = e.labelTextAnchor, f = d === void 0 ? "middle" : d, h = e.labelYOffset, m = h === void 0 ? -12 : h, p = gt(), g = vn(), y = g.animate, _ = g.config, b = wr({ transform: "translate(" + t + ", " + n + ")", config: _, immediate: !y });
|
|
22324
|
+
return v.jsxs(at.g, { transform: b.transform, style: { pointerEvents: "none" }, children: [mn(a, { size: i, color: s, datum: o, borderWidth: u, borderColor: c }), l && v.jsx("text", { textAnchor: f, y: m, style: Np(p.dots.text), children: l })] });
|
|
22325
22325
|
};
|
|
22326
|
-
l_.propTypes = { x:
|
|
22326
|
+
l_.propTypes = { x: $.number.isRequired, y: $.number.isRequired, datum: $.object.isRequired, size: $.number.isRequired, color: $.string.isRequired, borderWidth: $.number.isRequired, borderColor: $.string.isRequired, symbol: $.oneOfType([$.func, $.object]), label: $.oneOfType([$.string, $.number]), labelTextAnchor: $.oneOf(["start", "middle", "end"]), labelYOffset: $.number };
|
|
22327
22327
|
Ct(l_);
|
|
22328
22328
|
var d_ = function(e) {
|
|
22329
|
-
var t = e.width, n = e.height, r = e.axis, a = e.scale, i = e.value, o = e.lineStyle, s = e.textStyle, u = e.legend, c = e.legendPosition, l = c === void 0 ? "top-right" : c, d = e.legendOffsetX, f = d === void 0 ? 14 : d, h = e.legendOffsetY, m = h === void 0 ? 14 : h, p = e.legendOrientation, g = p === void 0 ? "horizontal" : p,
|
|
22330
|
-
r === "y" ? (w = a(i),
|
|
22329
|
+
var t = e.width, n = e.height, r = e.axis, a = e.scale, i = e.value, o = e.lineStyle, s = e.textStyle, u = e.legend, c = e.legendPosition, l = c === void 0 ? "top-right" : c, d = e.legendOffsetX, f = d === void 0 ? 14 : d, h = e.legendOffsetY, m = h === void 0 ? 14 : h, p = e.legendOrientation, g = p === void 0 ? "horizontal" : p, y = gt(), _ = 0, b = 0, w = 0, x = 0;
|
|
22330
|
+
r === "y" ? (w = a(i), b = t) : (_ = a(i), x = n);
|
|
22331
22331
|
var T = null;
|
|
22332
22332
|
if (u) {
|
|
22333
22333
|
var E = function(M) {
|
|
22334
|
-
var P = M.axis, R = M.width,
|
|
22335
|
-
if (P === "x") switch (
|
|
22334
|
+
var P = M.axis, R = M.width, k = M.height, D = M.position, C = M.offsetX, A = M.offsetY, I = M.orientation, L = 0, W = 0, q = I === "vertical" ? -90 : 0, N = "start";
|
|
22335
|
+
if (P === "x") switch (D) {
|
|
22336
22336
|
case "top-left":
|
|
22337
|
-
L = -C,
|
|
22337
|
+
L = -C, W = A, N = "end";
|
|
22338
22338
|
break;
|
|
22339
22339
|
case "top":
|
|
22340
|
-
|
|
22340
|
+
W = -A, N = I === "horizontal" ? "middle" : "start";
|
|
22341
22341
|
break;
|
|
22342
22342
|
case "top-right":
|
|
22343
|
-
L = C,
|
|
22343
|
+
L = C, W = A, N = I === "horizontal" ? "start" : "end";
|
|
22344
22344
|
break;
|
|
22345
22345
|
case "right":
|
|
22346
|
-
L = C,
|
|
22346
|
+
L = C, W = k / 2, N = I === "horizontal" ? "start" : "middle";
|
|
22347
22347
|
break;
|
|
22348
22348
|
case "bottom-right":
|
|
22349
|
-
L = C,
|
|
22349
|
+
L = C, W = k - A, N = "start";
|
|
22350
22350
|
break;
|
|
22351
22351
|
case "bottom":
|
|
22352
|
-
|
|
22352
|
+
W = k + A, N = I === "horizontal" ? "middle" : "end";
|
|
22353
22353
|
break;
|
|
22354
22354
|
case "bottom-left":
|
|
22355
|
-
|
|
22355
|
+
W = k - A, L = -C, N = I === "horizontal" ? "end" : "start";
|
|
22356
22356
|
break;
|
|
22357
22357
|
case "left":
|
|
22358
|
-
L = -C,
|
|
22358
|
+
L = -C, W = k / 2, N = I === "horizontal" ? "end" : "middle";
|
|
22359
22359
|
}
|
|
22360
|
-
else switch (
|
|
22360
|
+
else switch (D) {
|
|
22361
22361
|
case "top-left":
|
|
22362
|
-
L = C,
|
|
22362
|
+
L = C, W = -A, N = "start";
|
|
22363
22363
|
break;
|
|
22364
22364
|
case "top":
|
|
22365
|
-
L = R / 2,
|
|
22365
|
+
L = R / 2, W = -A, N = I === "horizontal" ? "middle" : "start";
|
|
22366
22366
|
break;
|
|
22367
22367
|
case "top-right":
|
|
22368
|
-
L = R - C,
|
|
22368
|
+
L = R - C, W = -A, N = I === "horizontal" ? "end" : "start";
|
|
22369
22369
|
break;
|
|
22370
22370
|
case "right":
|
|
22371
|
-
L = R + C,
|
|
22371
|
+
L = R + C, N = I === "horizontal" ? "start" : "middle";
|
|
22372
22372
|
break;
|
|
22373
22373
|
case "bottom-right":
|
|
22374
|
-
L = R - C,
|
|
22374
|
+
L = R - C, W = A, N = "end";
|
|
22375
22375
|
break;
|
|
22376
22376
|
case "bottom":
|
|
22377
|
-
L = R / 2,
|
|
22377
|
+
L = R / 2, W = A, N = I === "horizontal" ? "middle" : "end";
|
|
22378
22378
|
break;
|
|
22379
22379
|
case "bottom-left":
|
|
22380
|
-
L = C,
|
|
22380
|
+
L = C, W = A, N = I === "horizontal" ? "start" : "end";
|
|
22381
22381
|
break;
|
|
22382
22382
|
case "left":
|
|
22383
|
-
L = -C,
|
|
22383
|
+
L = -C, N = I === "horizontal" ? "end" : "middle";
|
|
22384
22384
|
}
|
|
22385
|
-
return { x: L, y:
|
|
22385
|
+
return { x: L, y: W, rotation: q, textAnchor: N };
|
|
22386
22386
|
}({ axis: r, width: t, height: n, position: l, offsetX: f, offsetY: m, orientation: g });
|
|
22387
22387
|
T = v.jsx("text", { transform: "translate(" + E.x + ", " + E.y + ") rotate(" + E.rotation + ")", textAnchor: E.textAnchor, dominantBaseline: "central", style: s, children: u });
|
|
22388
22388
|
}
|
|
22389
|
-
return v.jsxs("g", { transform: "translate(" + _ + ", " + w + ")", children: [v.jsx("line", { x1: 0, x2:
|
|
22389
|
+
return v.jsxs("g", { transform: "translate(" + _ + ", " + w + ")", children: [v.jsx("line", { x1: 0, x2: b, y1: 0, y2: x, stroke: y.markers.lineColor, strokeWidth: y.markers.lineStrokeWidth, style: o }), T] });
|
|
22390
22390
|
};
|
|
22391
|
-
d_.propTypes = { width:
|
|
22391
|
+
d_.propTypes = { width: $.number.isRequired, height: $.number.isRequired, axis: $.oneOf(["x", "y"]).isRequired, scale: $.func.isRequired, value: $.oneOfType([$.number, $.string, $.instanceOf(Date)]).isRequired, lineStyle: $.object, textStyle: $.object, legend: $.string, legendPosition: $.oneOf(["top-left", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left"]), legendOffsetX: $.number.isRequired, legendOffsetY: $.number.isRequired, legendOrientation: $.oneOf(["horizontal", "vertical"]).isRequired };
|
|
22392
22392
|
var hz = Ct(d_), f_ = function(e) {
|
|
22393
22393
|
var t = e.markers, n = e.width, r = e.height, a = e.xScale, i = e.yScale;
|
|
22394
22394
|
return t && t.length !== 0 ? t.map(function(o, s) {
|
|
22395
22395
|
return v.jsx(hz, zn({}, o, { width: n, height: r, scale: o.axis === "y" ? i : a }), s);
|
|
22396
22396
|
}) : null;
|
|
22397
22397
|
};
|
|
22398
|
-
f_.propTypes = { width:
|
|
22398
|
+
f_.propTypes = { width: $.number.isRequired, height: $.number.isRequired, xScale: $.func.isRequired, yScale: $.func.isRequired, markers: $.arrayOf($.shape({ axis: $.oneOf(["x", "y"]).isRequired, value: $.oneOfType([$.number, $.string, $.instanceOf(Date)]).isRequired, lineStyle: $.object, textStyle: $.object })) };
|
|
22399
22399
|
var pz = Ct(f_), h_ = function(e) {
|
|
22400
22400
|
return ax(e) ? e : function(t) {
|
|
22401
22401
|
return br(t, e);
|
|
@@ -22421,22 +22421,22 @@ var pz = Ct(f_), h_ = function(e) {
|
|
|
22421
22421
|
var a = r === void 0 ? {} : r, i = a.dataKey, o = a.colorKey, s = o === void 0 ? "color" : o, u = a.targetKey, c = u === void 0 ? "fill" : u, l = [], d = {};
|
|
22422
22422
|
return e.length && t.length && (l = [].concat(e), t.forEach(function(f) {
|
|
22423
22423
|
for (var h = function() {
|
|
22424
|
-
var p = n[m], g = p.id,
|
|
22425
|
-
if (yz(
|
|
22424
|
+
var p = n[m], g = p.id, y = p.match;
|
|
22425
|
+
if (yz(y, f, i)) {
|
|
22426
22426
|
var _ = e.find(function(R) {
|
|
22427
22427
|
return R.id === g;
|
|
22428
22428
|
});
|
|
22429
22429
|
if (_) {
|
|
22430
22430
|
if (vz.includes(_.type)) if (_.background === "inherit" || _.color === "inherit") {
|
|
22431
|
-
var
|
|
22432
|
-
_.background === "inherit" && (T = T + ".bg." +
|
|
22431
|
+
var b = br(f, s), w = _.background, x = _.color, T = g;
|
|
22432
|
+
_.background === "inherit" && (T = T + ".bg." + b, w = b), _.color === "inherit" && (T = T + ".fg." + b, x = b), Qi(f, c, "url(#" + T + ")"), d[T] || (l.push(zn({}, _, { id: T, background: w, color: x })), d[T] = 1);
|
|
22433
22433
|
} else Qi(f, c, "url(#" + g + ")");
|
|
22434
22434
|
else if (gz.includes(_.type))
|
|
22435
22435
|
if (_.colors.map(function(R) {
|
|
22436
22436
|
return R.color;
|
|
22437
22437
|
}).includes("inherit")) {
|
|
22438
|
-
var E = br(f, s), M = g, P = zn({}, _, { colors: _.colors.map(function(R,
|
|
22439
|
-
return R.color !== "inherit" ? R : (M = M + "." +
|
|
22438
|
+
var E = br(f, s), M = g, P = zn({}, _, { colors: _.colors.map(function(R, k) {
|
|
22439
|
+
return R.color !== "inherit" ? R : (M = M + "." + k + "." + E, zn({}, R, { color: R.color === "inherit" ? E : R.color }));
|
|
22440
22440
|
}) });
|
|
22441
22441
|
P.id = M, Qi(f, c, "url(#" + M + ")"), d[M] || (l.push(P), d[M] = 1);
|
|
22442
22442
|
} else Qi(f, c, "url(#" + g + ")");
|
|
@@ -22541,7 +22541,7 @@ var Cz = function(e, t) {
|
|
|
22541
22541
|
return Cz(e, t);
|
|
22542
22542
|
}, [e, t]);
|
|
22543
22543
|
};
|
|
22544
|
-
|
|
22544
|
+
$.oneOfType([$.string, $.func, $.shape({ theme: $.string.isRequired }), $.shape({ from: $.string.isRequired, modifiers: $.arrayOf($.array) })]);
|
|
22545
22545
|
var Mz = function(e, t) {
|
|
22546
22546
|
if (typeof e == "function") return e;
|
|
22547
22547
|
var n = typeof t == "function" ? t : function(d) {
|
|
@@ -22696,9 +22696,9 @@ var Az = { pointerEvents: "none" }, Rz = function(e) {
|
|
|
22696
22696
|
return n.filter(function(_) {
|
|
22697
22697
|
return Math.abs(ul(_.arc.endAngle - _.arc.startAngle)) >= o;
|
|
22698
22698
|
});
|
|
22699
|
-
}, [n, o]), m = Nz(h, i, r), p = m.transition, g = m.interpolate,
|
|
22700
|
-
return v.jsx("g", { transform: "translate(" + t[0] + "," + t[1] + ")", children: p(function(_,
|
|
22701
|
-
return mn(
|
|
22699
|
+
}, [n, o]), m = Nz(h, i, r), p = m.transition, g = m.interpolate, y = c;
|
|
22700
|
+
return v.jsx("g", { transform: "translate(" + t[0] + "," + t[1] + ")", children: p(function(_, b) {
|
|
22701
|
+
return mn(y, { key: b.id, datum: b, label: l(b), style: dt({}, _, { transform: g(_.startAngle, _.endAngle, _.innerRadius, _.outerRadius), textColor: f(b) }) });
|
|
22702
22702
|
}) });
|
|
22703
22703
|
}, Lz = function(e) {
|
|
22704
22704
|
var t = e.label, n = e.style, r = gt();
|
|
@@ -22724,16 +22724,16 @@ var Az = { pointerEvents: "none" }, Rz = function(e) {
|
|
|
22724
22724
|
});
|
|
22725
22725
|
}, Hz = function(e, t, n, r, a, i, o, s) {
|
|
22726
22726
|
return Wr([e, t, n, r, a, i, o, s], function(u, c, l, d, f, h, m, p) {
|
|
22727
|
-
var g = __({ startAngle: u, endAngle: c, innerRadius: l, outerRadius: d }, f, h, m),
|
|
22728
|
-
return _ === "before" ?
|
|
22727
|
+
var g = __({ startAngle: u, endAngle: c, innerRadius: l, outerRadius: d }, f, h, m), y = g.points, _ = g.side, b = y[2];
|
|
22728
|
+
return _ === "before" ? b.x -= p : b.x += p, "translate(" + b.x + "," + b.y + ")";
|
|
22729
22729
|
});
|
|
22730
22730
|
}, Vz = function(e) {
|
|
22731
|
-
var t = e.data, n = e.offset, r = n === void 0 ? 0 : n, a = e.diagonalLength, i = e.straightLength, o = e.skipAngle, s = o === void 0 ? 0 : o, u = e.textOffset, c = e.linkColor, l = e.textColor, d = vn(), f = d.animate, h = d.config, m = gt(), p = di(c, m), g = di(l, m),
|
|
22731
|
+
var t = e.data, n = e.offset, r = n === void 0 ? 0 : n, a = e.diagonalLength, i = e.straightLength, o = e.skipAngle, s = o === void 0 ? 0 : o, u = e.textOffset, c = e.linkColor, l = e.textColor, d = vn(), f = d.animate, h = d.config, m = gt(), p = di(c, m), g = di(l, m), y = function(b, w) {
|
|
22732
22732
|
return ae(function() {
|
|
22733
|
-
return jz(
|
|
22734
|
-
}, [
|
|
22735
|
-
}(t, s), _ = function(
|
|
22736
|
-
var w =
|
|
22733
|
+
return jz(b, w);
|
|
22734
|
+
}, [b, w]);
|
|
22735
|
+
}(t, s), _ = function(b) {
|
|
22736
|
+
var w = b.offset, x = b.diagonalLength, T = b.straightLength, E = b.textOffset, M = b.getLinkColor, P = b.getTextColor;
|
|
22737
22737
|
return ae(function() {
|
|
22738
22738
|
return { enter: function(R) {
|
|
22739
22739
|
return { startAngle: R.arc.startAngle, endAngle: R.arc.endAngle, innerRadius: R.arc.innerRadius, outerRadius: R.arc.outerRadius, offset: w, diagonalLength: 0, straightLength: 0, textOffset: E, linkColor: M(R), textColor: P(R), opacity: 0 };
|
|
@@ -22744,22 +22744,22 @@ var Az = { pointerEvents: "none" }, Rz = function(e) {
|
|
|
22744
22744
|
} };
|
|
22745
22745
|
}, [x, T, E, M, P, w]);
|
|
22746
22746
|
}({ offset: r, diagonalLength: a, straightLength: i, textOffset: u, getLinkColor: p, getTextColor: g });
|
|
22747
|
-
return { transition: Ca(
|
|
22748
|
-
return
|
|
22747
|
+
return { transition: Ca(y, { keys: function(b) {
|
|
22748
|
+
return b.id;
|
|
22749
22749
|
}, initial: _.update, from: _.enter, enter: _.update, update: _.update, leave: _.leave, config: h, immediate: !f }), interpolateLink: Bz, interpolateTextAnchor: zz, interpolateTextPosition: Hz };
|
|
22750
22750
|
}, qz = function(e) {
|
|
22751
|
-
var t = e.center, n = e.data, r = e.label, a = e.skipAngle, i = e.offset, o = e.diagonalLength, s = e.straightLength, u = e.strokeWidth, c = e.textOffset, l = e.textColor, d = e.linkColor, f = e.component, h = f === void 0 ? Lz : f, m = ga(r), p = Vz({ data: n, skipAngle: a, offset: i, diagonalLength: o, straightLength: s, textOffset: c, linkColor: d, textColor: l }), g = p.transition,
|
|
22751
|
+
var t = e.center, n = e.data, r = e.label, a = e.skipAngle, i = e.offset, o = e.diagonalLength, s = e.straightLength, u = e.strokeWidth, c = e.textOffset, l = e.textColor, d = e.linkColor, f = e.component, h = f === void 0 ? Lz : f, m = ga(r), p = Vz({ data: n, skipAngle: a, offset: i, diagonalLength: o, straightLength: s, textOffset: c, linkColor: d, textColor: l }), g = p.transition, y = p.interpolateLink, _ = p.interpolateTextAnchor, b = p.interpolateTextPosition, w = h;
|
|
22752
22752
|
return v.jsx("g", { transform: "translate(" + t[0] + "," + t[1] + ")", children: g(function(x, T) {
|
|
22753
|
-
return mn(w, { key: T.id, datum: T, label: m(T), style: dt({}, x, { thickness: u, path:
|
|
22753
|
+
return mn(w, { key: T.id, datum: T, label: m(T), style: dt({}, x, { thickness: u, path: y(x.startAngle, x.endAngle, x.innerRadius, x.outerRadius, x.offset, x.diagonalLength, x.straightLength), textAnchor: _(x.startAngle, x.endAngle, x.innerRadius, x.outerRadius), textPosition: b(x.startAngle, x.endAngle, x.innerRadius, x.outerRadius, x.offset, x.diagonalLength, x.straightLength, x.textOffset) }) });
|
|
22754
22754
|
}) });
|
|
22755
22755
|
}, Yz = function(e) {
|
|
22756
|
-
var t = e.datum, n = e.style, r = e.onClick, a = e.onMouseEnter, i = e.onMouseMove, o = e.onMouseLeave, s =
|
|
22756
|
+
var t = e.datum, n = e.style, r = e.onClick, a = e.onMouseEnter, i = e.onMouseMove, o = e.onMouseLeave, s = z(function(d) {
|
|
22757
22757
|
return r == null ? void 0 : r(t, d);
|
|
22758
|
-
}, [r, t]), u =
|
|
22758
|
+
}, [r, t]), u = z(function(d) {
|
|
22759
22759
|
return a == null ? void 0 : a(t, d);
|
|
22760
|
-
}, [a, t]), c =
|
|
22760
|
+
}, [a, t]), c = z(function(d) {
|
|
22761
22761
|
return i == null ? void 0 : i(t, d);
|
|
22762
|
-
}, [i, t]), l =
|
|
22762
|
+
}, [i, t]), l = z(function(d) {
|
|
22763
22763
|
return o == null ? void 0 : o(t, d);
|
|
22764
22764
|
}, [o, t]);
|
|
22765
22765
|
return v.jsx(at.path, { d: n.path, opacity: n.opacity, fill: t.fill || n.color, stroke: n.borderColor, strokeWidth: n.borderWidth, onClick: r ? s : void 0, onMouseEnter: a ? u : void 0, onMouseMove: i ? c : void 0, onMouseLeave: o ? l : void 0 });
|
|
@@ -22774,15 +22774,15 @@ var Az = { pointerEvents: "none" }, Rz = function(e) {
|
|
|
22774
22774
|
return s.id;
|
|
22775
22775
|
}, initial: o.update, from: o.enter, enter: o.update, update: o.update, leave: o.leave, config: i, immediate: !a }), interpolate: Gz };
|
|
22776
22776
|
}, Kz = function(e) {
|
|
22777
|
-
var t = e.center, n = e.data, r = e.arcGenerator, a = e.borderWidth, i = e.borderColor, o = e.onClick, s = e.onMouseEnter, u = e.onMouseMove, c = e.onMouseLeave, l = e.transitionMode, d = e.component, f = d === void 0 ? Yz : d, h = gt(), m = di(i, h), p = Zz(n, l, { enter: function(
|
|
22778
|
-
return { opacity: 0, color:
|
|
22779
|
-
}, update: function(
|
|
22780
|
-
return { opacity: 1, color:
|
|
22781
|
-
}, leave: function(
|
|
22782
|
-
return { opacity: 0, color:
|
|
22783
|
-
} }), g = p.transition,
|
|
22784
|
-
return v.jsx("g", { transform: "translate(" + t[0] + "," + t[1] + ")", children: g(function(
|
|
22785
|
-
return mn(_, { key: w.id, datum: w, style: dt({},
|
|
22777
|
+
var t = e.center, n = e.data, r = e.arcGenerator, a = e.borderWidth, i = e.borderColor, o = e.onClick, s = e.onMouseEnter, u = e.onMouseMove, c = e.onMouseLeave, l = e.transitionMode, d = e.component, f = d === void 0 ? Yz : d, h = gt(), m = di(i, h), p = Zz(n, l, { enter: function(b) {
|
|
22778
|
+
return { opacity: 0, color: b.color, borderColor: m(b) };
|
|
22779
|
+
}, update: function(b) {
|
|
22780
|
+
return { opacity: 1, color: b.color, borderColor: m(b) };
|
|
22781
|
+
}, leave: function(b) {
|
|
22782
|
+
return { opacity: 0, color: b.color, borderColor: m(b) };
|
|
22783
|
+
} }), g = p.transition, y = p.interpolate, _ = f;
|
|
22784
|
+
return v.jsx("g", { transform: "translate(" + t[0] + "," + t[1] + ")", children: g(function(b, w) {
|
|
22785
|
+
return mn(_, { key: w.id, datum: w, style: dt({}, b, { borderWidth: a, path: y(b.startAngle, b.endAngle, b.innerRadius, b.outerRadius, r) }), onClick: o, onMouseEnter: s, onMouseMove: u, onMouseLeave: c });
|
|
22786
22786
|
}) });
|
|
22787
22787
|
}, Xz = function(e, t, n, r, a, i) {
|
|
22788
22788
|
i === void 0 && (i = !0);
|
|
@@ -22795,8 +22795,8 @@ var Az = { pointerEvents: "none" }, Rz = function(e) {
|
|
|
22795
22795
|
o.push([l.x, l.y]);
|
|
22796
22796
|
}
|
|
22797
22797
|
o = o.map(function(g) {
|
|
22798
|
-
var
|
|
22799
|
-
return [e +
|
|
22798
|
+
var y = g[0], _ = g[1];
|
|
22799
|
+
return [e + y, t + _];
|
|
22800
22800
|
}), i && o.push([e, t]);
|
|
22801
22801
|
var d = o.map(function(g) {
|
|
22802
22802
|
return g[0];
|
|
@@ -22896,7 +22896,7 @@ var rH = { top: 0, right: 0, bottom: 0, left: 0 }, Lp = function(e) {
|
|
|
22896
22896
|
}
|
|
22897
22897
|
return { symbolX: t, symbolY: n, labelX: r, labelY: a, labelAnchor: i, labelAlignment: o };
|
|
22898
22898
|
}, aH = { circle: Qz, diamond: eH, square: tH, triangle: nH }, iH = function(e) {
|
|
22899
|
-
var t, n, r, a, i, o, s, u, c, l, d, f = e.x, h = e.y, m = e.width, p = e.height, g = e.data,
|
|
22899
|
+
var t, n, r, a, i, o, s, u, c, l, d, f = e.x, h = e.y, m = e.width, p = e.height, g = e.data, y = e.direction, _ = y === void 0 ? "left-to-right" : y, b = e.justify, w = b !== void 0 && b, x = e.textColor, T = e.background, E = T === void 0 ? "transparent" : T, M = e.opacity, P = M === void 0 ? 1 : M, R = e.symbolShape, k = R === void 0 ? "square" : R, D = e.symbolSize, C = D === void 0 ? 16 : D, A = e.symbolSpacing, I = A === void 0 ? 8 : A, L = e.symbolBorderWidth, W = L === void 0 ? 0 : L, q = e.symbolBorderColor, N = q === void 0 ? "transparent" : q, j = e.onClick, B = e.onMouseEnter, Z = e.onMouseLeave, ne = e.toggleSerie, Y = e.effects, Q = Ue({}), G = Q[0], J = Q[1], re = gt(), F = z(function(Ye) {
|
|
22900
22900
|
if (Y) {
|
|
22901
22901
|
var ct = Y.filter(function(Qe) {
|
|
22902
22902
|
return Qe.on === "hover";
|
|
@@ -22906,7 +22906,7 @@ var rH = { top: 0, right: 0, bottom: 0, left: 0 }, Lp = function(e) {
|
|
|
22906
22906
|
J(ct);
|
|
22907
22907
|
}
|
|
22908
22908
|
B == null || B(g, Ye);
|
|
22909
|
-
}, [B, g, Y]), V =
|
|
22909
|
+
}, [B, g, Y]), V = z(function(Ye) {
|
|
22910
22910
|
if (Y) {
|
|
22911
22911
|
var ct = Y.filter(function(Qe) {
|
|
22912
22912
|
return Qe.on !== "hover";
|
|
@@ -22918,22 +22918,22 @@ var rH = { top: 0, right: 0, bottom: 0, left: 0 }, Lp = function(e) {
|
|
|
22918
22918
|
Z == null || Z(g, Ye);
|
|
22919
22919
|
}, [Z, g, Y]), ie = T_({ direction: _, justify: w, symbolSize: (t = G.symbolSize) != null ? t : C, symbolSpacing: I, width: m, height: p }), S = ie.symbolX, ye = ie.symbolY, ge = ie.labelX, he = ie.labelY, De = ie.labelAnchor, Fe = ie.labelAlignment, yt = [j, B, Z, ne].some(function(Ye) {
|
|
22920
22920
|
return Ye !== void 0;
|
|
22921
|
-
}), wt = typeof
|
|
22921
|
+
}), wt = typeof k == "function" ? k : aH[k];
|
|
22922
22922
|
return v.jsxs("g", { transform: "translate(" + f + "," + h + ")", style: { opacity: (n = G.itemOpacity) != null ? n : P }, children: [v.jsx("rect", { width: m, height: p, fill: (r = G.itemBackground) != null ? r : E, style: { cursor: yt ? "pointer" : "auto" }, onClick: function(Ye) {
|
|
22923
22923
|
j == null || j(g, Ye), ne == null || ne(g.id);
|
|
22924
|
-
}, onMouseEnter: F, onMouseLeave: V }), oe.createElement(wt, ca({ id: g.id, x: S, y: ye, size: (a = G.symbolSize) != null ? a : C, fill: (i = (o = g.fill) != null ? o : g.color) != null ? i : "black", borderWidth: (s = G.symbolBorderWidth) != null ? s :
|
|
22924
|
+
}, onMouseEnter: F, onMouseLeave: V }), oe.createElement(wt, ca({ id: g.id, x: S, y: ye, size: (a = G.symbolSize) != null ? a : C, fill: (i = (o = g.fill) != null ? o : g.color) != null ? i : "black", borderWidth: (s = G.symbolBorderWidth) != null ? s : W, borderColor: (u = G.symbolBorderColor) != null ? u : N }, g.hidden ? re.legends.hidden.symbol : void 0)), v.jsx("text", { textAnchor: De, style: ca({}, Np(re.legends.text), { fill: (c = (l = (d = G.itemTextColor) != null ? d : x) != null ? l : re.legends.text.fill) != null ? c : "black", dominantBaseline: Fe, pointerEvents: "none", userSelect: "none" }, g.hidden ? re.legends.hidden.text : void 0), x: ge, y: he, children: g.label })] });
|
|
22925
22925
|
}, oH = function(e) {
|
|
22926
|
-
var t = e.data, n = e.x, r = e.y, a = e.direction, i = e.padding, o = i === void 0 ? 0 : i, s = e.justify, u = e.effects, c = e.itemWidth, l = e.itemHeight, d = e.itemDirection, f = d === void 0 ? "left-to-right" : d, h = e.itemsSpacing, m = h === void 0 ? 0 : h, p = e.itemTextColor, g = e.itemBackground,
|
|
22927
|
-
return v.jsx("g", { transform: "translate(" + n + "," + r + ")", children: t.map(function(L,
|
|
22928
|
-
return v.jsx(iH, { data: L, x:
|
|
22926
|
+
var t = e.data, n = e.x, r = e.y, a = e.direction, i = e.padding, o = i === void 0 ? 0 : i, s = e.justify, u = e.effects, c = e.itemWidth, l = e.itemHeight, d = e.itemDirection, f = d === void 0 ? "left-to-right" : d, h = e.itemsSpacing, m = h === void 0 ? 0 : h, p = e.itemTextColor, g = e.itemBackground, y = g === void 0 ? "transparent" : g, _ = e.itemOpacity, b = _ === void 0 ? 1 : _, w = e.symbolShape, x = e.symbolSize, T = e.symbolSpacing, E = e.symbolBorderWidth, M = e.symbolBorderColor, P = e.onClick, R = e.onMouseEnter, k = e.onMouseLeave, D = e.toggleSerie, C = Lp({ itemCount: t.length, itemWidth: c, itemHeight: l, itemsSpacing: m, direction: a, padding: o }).padding, A = a === "row" ? c + m : 0, I = a === "column" ? l + m : 0;
|
|
22927
|
+
return v.jsx("g", { transform: "translate(" + n + "," + r + ")", children: t.map(function(L, W) {
|
|
22928
|
+
return v.jsx(iH, { data: L, x: W * A + C.left, y: W * I + C.top, width: c, height: l, direction: f, justify: s, effects: u, textColor: p, background: y, opacity: b, symbolShape: w, symbolSize: x, symbolSpacing: T, symbolBorderWidth: E, symbolBorderColor: M, onClick: P, onMouseEnter: R, onMouseLeave: k, toggleSerie: D }, W);
|
|
22929
22929
|
}) });
|
|
22930
22930
|
}, S_ = function(e) {
|
|
22931
|
-
var t = e.data, n = e.containerWidth, r = e.containerHeight, a = e.translateX, i = a === void 0 ? 0 : a, o = e.translateY, s = o === void 0 ? 0 : o, u = e.anchor, c = e.direction, l = e.padding, d = l === void 0 ? 0 : l, f = e.justify, h = e.itemsSpacing, m = h === void 0 ? 0 : h, p = e.itemWidth, g = e.itemHeight,
|
|
22932
|
-
return v.jsx(oH, { data: t, x:
|
|
22931
|
+
var t = e.data, n = e.containerWidth, r = e.containerHeight, a = e.translateX, i = a === void 0 ? 0 : a, o = e.translateY, s = o === void 0 ? 0 : o, u = e.anchor, c = e.direction, l = e.padding, d = l === void 0 ? 0 : l, f = e.justify, h = e.itemsSpacing, m = h === void 0 ? 0 : h, p = e.itemWidth, g = e.itemHeight, y = e.itemDirection, _ = e.itemTextColor, b = e.itemBackground, w = e.itemOpacity, x = e.symbolShape, T = e.symbolSize, E = e.symbolSpacing, M = e.symbolBorderWidth, P = e.symbolBorderColor, R = e.onClick, k = e.onMouseEnter, D = e.onMouseLeave, C = e.toggleSerie, A = e.effects, I = Lp({ itemCount: t.length, itemsSpacing: m, itemWidth: p, itemHeight: g, direction: c, padding: d }), L = I.width, W = I.height, q = w_({ anchor: u, translateX: i, translateY: s, containerWidth: n, containerHeight: r, width: L, height: W }), N = q.x, j = q.y;
|
|
22932
|
+
return v.jsx(oH, { data: t, x: N, y: j, direction: c, padding: d, justify: f, effects: A, itemsSpacing: m, itemWidth: p, itemHeight: g, itemDirection: y, itemTextColor: _, itemBackground: b, itemOpacity: w, symbolShape: x, symbolSize: T, symbolSpacing: E, symbolBorderWidth: M, symbolBorderColor: P, onClick: R, onMouseEnter: k, onMouseLeave: D, toggleSerie: typeof C == "boolean" ? void 0 : C });
|
|
22933
22933
|
}, sH = { start: "left", middle: "center", end: "right" }, cH = function(e, t) {
|
|
22934
|
-
var n = t.data, r = t.containerWidth, a = t.containerHeight, i = t.translateX, o = i === void 0 ? 0 : i, s = t.translateY, u = s === void 0 ? 0 : s, c = t.anchor, l = t.direction, d = t.padding, f = d === void 0 ? 0 : d, h = t.justify, m = h !== void 0 && h, p = t.itemsSpacing, g = p === void 0 ? 0 : p,
|
|
22935
|
-
e.save(), e.translate(L,
|
|
22936
|
-
var Z, ne, Y = B * q + A.left, Q = B *
|
|
22934
|
+
var n = t.data, r = t.containerWidth, a = t.containerHeight, i = t.translateX, o = i === void 0 ? 0 : i, s = t.translateY, u = s === void 0 ? 0 : s, c = t.anchor, l = t.direction, d = t.padding, f = d === void 0 ? 0 : d, h = t.justify, m = h !== void 0 && h, p = t.itemsSpacing, g = p === void 0 ? 0 : p, y = t.itemWidth, _ = t.itemHeight, b = t.itemDirection, w = b === void 0 ? "left-to-right" : b, x = t.itemTextColor, T = t.symbolSize, E = T === void 0 ? 16 : T, M = t.symbolSpacing, P = M === void 0 ? 8 : M, R = t.theme, k = Lp({ itemCount: n.length, itemWidth: y, itemHeight: _, itemsSpacing: g, direction: l, padding: f }), D = k.width, C = k.height, A = k.padding, I = w_({ anchor: c, translateX: o, translateY: u, containerWidth: r, containerHeight: a, width: D, height: C }), L = I.x, W = I.y, q = l === "row" ? y + g : 0, N = l === "column" ? _ + g : 0;
|
|
22935
|
+
e.save(), e.translate(L, W), e.font = R.legends.text.fontSize + "px " + (R.legends.text.fontFamily || "sans-serif"), n.forEach(function(j, B) {
|
|
22936
|
+
var Z, ne, Y = B * q + A.left, Q = B * N + A.top, G = T_({ direction: w, justify: m, symbolSize: E, symbolSpacing: P, width: y, height: _ }), J = G.symbolX, re = G.symbolY, F = G.labelX, V = G.labelY, ie = G.labelAnchor, S = G.labelAlignment;
|
|
22937
22937
|
e.fillStyle = (Z = j.color) != null ? Z : "black", e.fillRect(Y + J, Q + re, E, E), e.textAlign = sH[ie], S === "central" && (e.textBaseline = "middle"), e.fillStyle = (ne = x ?? R.legends.text.fill) != null ? ne : "black", e.fillText(String(j.label), Y + F, Q + V);
|
|
22938
22938
|
}), e.restore();
|
|
22939
22939
|
};
|
|
@@ -22965,23 +22965,23 @@ var _v, uH = function(e) {
|
|
|
22965
22965
|
var t = e.data, n = e.id, r = n === void 0 ? _e.id : n, a = e.value, i = a === void 0 ? _e.value : a, o = e.valueFormat, s = e.colors, u = s === void 0 ? _e.colors : s, c = ga(r), l = ga(i), d = ol(o), f = y_(u, "id");
|
|
22966
22966
|
return ae(function() {
|
|
22967
22967
|
return t.map(function(h) {
|
|
22968
|
-
var m, p = c(h), g = l(h),
|
|
22969
|
-
return Vr({},
|
|
22968
|
+
var m, p = c(h), g = l(h), y = { id: p, label: (m = h.label) != null ? m : p, hidden: !1, value: g, formattedValue: d(g), data: h };
|
|
22969
|
+
return Vr({}, y, { color: f(y) });
|
|
22970
22970
|
});
|
|
22971
22971
|
}, [t, c, l, d, f]);
|
|
22972
22972
|
}, fH = function(e) {
|
|
22973
22973
|
var t = e.data, n = e.startAngle, r = e.endAngle, a = e.innerRadius, i = e.outerRadius, o = e.padAngle, s = e.sortByValue, u = e.activeId, c = e.activeInnerRadiusOffset, l = e.activeOuterRadiusOffset, d = e.hiddenIds, f = e.forwardLegendData, h = ae(function() {
|
|
22974
|
-
var
|
|
22974
|
+
var y = GL().value(function(_) {
|
|
22975
22975
|
return _.value;
|
|
22976
22976
|
}).startAngle(Rn(n)).endAngle(Rn(r)).padAngle(Rn(o));
|
|
22977
|
-
return s ||
|
|
22977
|
+
return s || y.sortValues(null), y;
|
|
22978
22978
|
}, [n, r, o, s]), m = ae(function() {
|
|
22979
|
-
var
|
|
22979
|
+
var y = t.filter(function(_) {
|
|
22980
22980
|
return !d.includes(_.id);
|
|
22981
22981
|
});
|
|
22982
|
-
return { dataWithArc: h(
|
|
22983
|
-
var
|
|
22984
|
-
return Vr({}, _.data, { arc: { index: _.index, startAngle: _.startAngle, endAngle: _.endAngle, innerRadius: u === _.data.id ? a - c : a, outerRadius: u === _.data.id ? i + l : i, thickness: i - a, padAngle: _.padAngle, angle:
|
|
22982
|
+
return { dataWithArc: h(y).map(function(_) {
|
|
22983
|
+
var b = Math.abs(_.endAngle - _.startAngle);
|
|
22984
|
+
return Vr({}, _.data, { arc: { index: _.index, startAngle: _.startAngle, endAngle: _.endAngle, innerRadius: u === _.data.id ? a - c : a, outerRadius: u === _.data.id ? i + l : i, thickness: i - a, padAngle: _.padAngle, angle: b, angleDeg: ul(b) } });
|
|
22985
22985
|
}), legendData: t.map(function(_) {
|
|
22986
22986
|
return { id: _.id, label: _.label, color: _.color, hidden: d.includes(_.id), data: _ };
|
|
22987
22987
|
}) };
|
|
@@ -22991,32 +22991,32 @@ var _v, uH = function(e) {
|
|
|
22991
22991
|
}, [g, p]), m;
|
|
22992
22992
|
}, hH = function(e) {
|
|
22993
22993
|
var t = e.activeId, n = e.onActiveIdChange, r = e.defaultActiveId, a = t !== void 0, i = Ue(a || r === void 0 ? null : r), o = i[0], s = i[1];
|
|
22994
|
-
return { activeId: a ? t : o, setActiveId:
|
|
22994
|
+
return { activeId: a ? t : o, setActiveId: z(function(u) {
|
|
22995
22995
|
n && n(u), a || s(u);
|
|
22996
22996
|
}, [a, n, s]) };
|
|
22997
22997
|
}, pH = function(e) {
|
|
22998
|
-
var t = e.data, n = e.width, r = e.height, a = e.innerRadius, i = a === void 0 ? _e.innerRadius : a, o = e.startAngle, s = o === void 0 ? _e.startAngle : o, u = e.endAngle, c = u === void 0 ? _e.endAngle : u, l = e.padAngle, d = l === void 0 ? _e.padAngle : l, f = e.sortByValue, h = f === void 0 ? _e.sortByValue : f, m = e.cornerRadius, p = m === void 0 ? _e.cornerRadius : m, g = e.fit,
|
|
22999
|
-
var
|
|
23000
|
-
if (
|
|
22998
|
+
var t = e.data, n = e.width, r = e.height, a = e.innerRadius, i = a === void 0 ? _e.innerRadius : a, o = e.startAngle, s = o === void 0 ? _e.startAngle : o, u = e.endAngle, c = u === void 0 ? _e.endAngle : u, l = e.padAngle, d = l === void 0 ? _e.padAngle : l, f = e.sortByValue, h = f === void 0 ? _e.sortByValue : f, m = e.cornerRadius, p = m === void 0 ? _e.cornerRadius : m, g = e.fit, y = g === void 0 ? _e.fit : g, _ = e.activeInnerRadiusOffset, b = _ === void 0 ? _e.activeInnerRadiusOffset : _, w = e.activeOuterRadiusOffset, x = w === void 0 ? _e.activeOuterRadiusOffset : w, T = e.activeId, E = e.onActiveIdChange, M = e.defaultActiveId, P = e.forwardLegendData, R = hH({ activeId: T, onActiveIdChange: E, defaultActiveId: M }), k = R.activeId, D = R.setActiveId, C = Ue([]), A = C[0], I = C[1], L = ae(function() {
|
|
22999
|
+
var N, j = Math.min(n, r) / 2, B = j * Math.min(i, 1), Z = n / 2, ne = r / 2;
|
|
23000
|
+
if (y) {
|
|
23001
23001
|
var Y = Xz(Z, ne, j, s - 90, c - 90), Q = Y.points, G = O_(Y, lH), J = Math.min(n / G.width, r / G.height), re = { width: G.width * J, height: G.height * J };
|
|
23002
|
-
re.x = (n - re.width) / 2, re.y = (r - re.height) / 2, Z = (Z - G.x) / G.width * G.width * J + re.x, ne = (ne - G.y) / G.height * G.height * J + re.y,
|
|
23002
|
+
re.x = (n - re.width) / 2, re.y = (r - re.height) / 2, Z = (Z - G.x) / G.width * G.width * J + re.x, ne = (ne - G.y) / G.height * G.height * J + re.y, N = { box: G, ratio: J, points: Q }, j *= J, B *= J;
|
|
23003
23003
|
}
|
|
23004
|
-
return { centerX: Z, centerY: ne, radius: j, innerRadius: B, debug:
|
|
23005
|
-
}, [n, r, i, s, c,
|
|
23004
|
+
return { centerX: Z, centerY: ne, radius: j, innerRadius: B, debug: N };
|
|
23005
|
+
}, [n, r, i, s, c, y]), W = fH({ data: t, startAngle: s, endAngle: c, innerRadius: L.innerRadius, outerRadius: L.radius, padAngle: d, sortByValue: h, activeId: k, activeInnerRadiusOffset: b, activeOuterRadiusOffset: x, hiddenIds: A, forwardLegendData: P }), q = z(function(N) {
|
|
23006
23006
|
I(function(j) {
|
|
23007
|
-
return j.indexOf(
|
|
23008
|
-
return B !==
|
|
23009
|
-
}) : [].concat(j, [
|
|
23007
|
+
return j.indexOf(N) > -1 ? j.filter(function(B) {
|
|
23008
|
+
return B !== N;
|
|
23009
|
+
}) : [].concat(j, [N]);
|
|
23010
23010
|
});
|
|
23011
23011
|
}, []);
|
|
23012
|
-
return Vr({ arcGenerator: Jz({ cornerRadius: p, padAngle: Rn(d) }), activeId:
|
|
23012
|
+
return Vr({ arcGenerator: Jz({ cornerRadius: p, padAngle: Rn(d) }), activeId: k, setActiveId: D, toggleSerie: q }, W, L);
|
|
23013
23013
|
}, mH = function(e) {
|
|
23014
23014
|
var t = e.dataWithArc, n = e.arcGenerator, r = e.centerX, a = e.centerY, i = e.radius, o = e.innerRadius;
|
|
23015
23015
|
return ae(function() {
|
|
23016
23016
|
return { dataWithArc: t, arcGenerator: n, centerX: r, centerY: a, radius: i, innerRadius: o };
|
|
23017
23017
|
}, [t, n, r, a, i, o]);
|
|
23018
23018
|
}, gH = function(e) {
|
|
23019
|
-
var t = e.center, n = e.data, r = e.arcGenerator, a = e.borderWidth, i = e.borderColor, o = e.isInteractive, s = e.onClick, u = e.onMouseEnter, c = e.onMouseMove, l = e.onMouseLeave, d = e.setActiveId, f = e.tooltip, h = e.transitionMode, m = Lh(), p = m.showTooltipFromEvent, g = m.hideTooltip,
|
|
23019
|
+
var t = e.center, n = e.data, r = e.arcGenerator, a = e.borderWidth, i = e.borderColor, o = e.isInteractive, s = e.onClick, u = e.onMouseEnter, c = e.onMouseMove, l = e.onMouseLeave, d = e.setActiveId, f = e.tooltip, h = e.transitionMode, m = Lh(), p = m.showTooltipFromEvent, g = m.hideTooltip, y = ae(function() {
|
|
23020
23020
|
if (o) return function(x, T) {
|
|
23021
23021
|
s == null || s(x, T);
|
|
23022
23022
|
};
|
|
@@ -23024,7 +23024,7 @@ var _v, uH = function(e) {
|
|
|
23024
23024
|
if (o) return function(x, T) {
|
|
23025
23025
|
p(mn(f, { datum: x }), T), d(x.id), u == null || u(x, T);
|
|
23026
23026
|
};
|
|
23027
|
-
}, [o, p, d, u, f]),
|
|
23027
|
+
}, [o, p, d, u, f]), b = ae(function() {
|
|
23028
23028
|
if (o) return function(x, T) {
|
|
23029
23029
|
p(mn(f, { datum: x }), T), c == null || c(x, T);
|
|
23030
23030
|
};
|
|
@@ -23033,10 +23033,10 @@ var _v, uH = function(e) {
|
|
|
23033
23033
|
g(), d(null), l == null || l(x, T);
|
|
23034
23034
|
};
|
|
23035
23035
|
}, [o, g, d, l]);
|
|
23036
|
-
return v.jsx(Kz, { center: t, data: n, arcGenerator: r, borderWidth: a, borderColor: i, transitionMode: h, onClick:
|
|
23036
|
+
return v.jsx(Kz, { center: t, data: n, arcGenerator: r, borderWidth: a, borderColor: i, transitionMode: h, onClick: y, onMouseEnter: _, onMouseMove: b, onMouseLeave: w });
|
|
23037
23037
|
}, vH = ["isInteractive", "animate", "motionConfig", "theme", "renderWrapper"], yH = function(e) {
|
|
23038
|
-
var t = e.data, n = e.id, r = n === void 0 ? _e.id : n, a = e.value, i = a === void 0 ? _e.value : a, o = e.valueFormat, s = e.sortByValue, u = s === void 0 ? _e.sortByValue : s, c = e.layers, l = c === void 0 ? _e.layers : c, d = e.startAngle, f = d === void 0 ? _e.startAngle : d, h = e.endAngle, m = h === void 0 ? _e.endAngle : h, p = e.padAngle, g = p === void 0 ? _e.padAngle : p,
|
|
23039
|
-
l.includes("arcs") && (ce.arcs = v.jsx(gH, { center: [me, Ce], data: pe, arcGenerator: fe, borderWidth:
|
|
23038
|
+
var t = e.data, n = e.id, r = n === void 0 ? _e.id : n, a = e.value, i = a === void 0 ? _e.value : a, o = e.valueFormat, s = e.sortByValue, u = s === void 0 ? _e.sortByValue : s, c = e.layers, l = c === void 0 ? _e.layers : c, d = e.startAngle, f = d === void 0 ? _e.startAngle : d, h = e.endAngle, m = h === void 0 ? _e.endAngle : h, p = e.padAngle, g = p === void 0 ? _e.padAngle : p, y = e.fit, _ = y === void 0 ? _e.fit : y, b = e.innerRadius, w = b === void 0 ? _e.innerRadius : b, x = e.cornerRadius, T = x === void 0 ? _e.cornerRadius : x, E = e.activeInnerRadiusOffset, M = E === void 0 ? _e.activeInnerRadiusOffset : E, P = e.activeOuterRadiusOffset, R = P === void 0 ? _e.activeOuterRadiusOffset : P, k = e.width, D = e.height, C = e.margin, A = e.colors, I = A === void 0 ? _e.colors : A, L = e.borderWidth, W = L === void 0 ? _e.borderWidth : L, q = e.borderColor, N = q === void 0 ? _e.borderColor : q, j = e.enableArcLabels, B = j === void 0 ? _e.enableArcLabels : j, Z = e.arcLabel, ne = Z === void 0 ? _e.arcLabel : Z, Y = e.arcLabelsSkipAngle, Q = Y === void 0 ? _e.arcLabelsSkipAngle : Y, G = e.arcLabelsTextColor, J = G === void 0 ? _e.arcLabelsTextColor : G, re = e.arcLabelsRadiusOffset, F = re === void 0 ? _e.arcLabelsRadiusOffset : re, V = e.arcLabelsComponent, ie = e.enableArcLinkLabels, S = ie === void 0 ? _e.enableArcLinkLabels : ie, ye = e.arcLinkLabel, ge = ye === void 0 ? _e.arcLinkLabel : ye, he = e.arcLinkLabelsSkipAngle, De = he === void 0 ? _e.arcLinkLabelsSkipAngle : he, Fe = e.arcLinkLabelsOffset, yt = Fe === void 0 ? _e.arcLinkLabelsOffset : Fe, wt = e.arcLinkLabelsDiagonalLength, Ye = wt === void 0 ? _e.arcLinkLabelsDiagonalLength : wt, ct = e.arcLinkLabelsStraightLength, Qe = ct === void 0 ? _e.arcLinkLabelsStraightLength : ct, Ot = e.arcLinkLabelsThickness, kt = Ot === void 0 ? _e.arcLinkLabelsThickness : Ot, ut = e.arcLinkLabelsTextOffset, Te = ut === void 0 ? _e.arcLinkLabelsTextOffset : ut, nt = e.arcLinkLabelsTextColor, At = nt === void 0 ? _e.arcLinkLabelsTextColor : nt, an = e.arcLinkLabelsColor, Rt = an === void 0 ? _e.arcLinkLabelsColor : an, bt = e.arcLinkLabelComponent, $t = e.defs, yn = $t === void 0 ? _e.defs : $t, Tt = e.fill, Ut = Tt === void 0 ? _e.fill : Tt, jt = e.isInteractive, on = jt === void 0 ? _e.isInteractive : jt, Le = e.onClick, Ne = e.onMouseEnter, He = e.onMouseMove, xt = e.onMouseLeave, Pt = e.tooltip, It = Pt === void 0 ? _e.tooltip : Pt, $n = e.activeId, sn = e.onActiveIdChange, qt = e.defaultActiveId, bn = e.transitionMode, zt = bn === void 0 ? _e.transitionMode : bn, Jt = e.legends, En = Jt === void 0 ? _e.legends : Jt, cn = e.forwardLegendData, Ge = e.role, Be = Ge === void 0 ? _e.role : Ge, Pe = Dp(k, D, C), it = Pe.outerWidth, Qt = Pe.outerHeight, Wt = Pe.margin, O = Pe.innerWidth, K = Pe.innerHeight, H = dH({ data: t, id: r, value: i, valueFormat: o, colors: I }), X = pH({ data: H, width: O, height: K, fit: _, innerRadius: w, startAngle: f, endAngle: m, padAngle: g, sortByValue: u, cornerRadius: T, activeInnerRadiusOffset: M, activeOuterRadiusOffset: R, activeId: $n, onActiveIdChange: sn, defaultActiveId: qt, forwardLegendData: cn }), pe = X.dataWithArc, be = X.legendData, fe = X.arcGenerator, me = X.centerX, Ce = X.centerY, $e = X.radius, rt = X.innerRadius, Dt = X.setActiveId, St = X.toggleSerie, xn = p_(yn, pe, Ut), ce = { arcs: null, arcLinkLabels: null, arcLabels: null, legends: null };
|
|
23039
|
+
l.includes("arcs") && (ce.arcs = v.jsx(gH, { center: [me, Ce], data: pe, arcGenerator: fe, borderWidth: W, borderColor: N, isInteractive: on, onClick: Le, onMouseEnter: Ne, onMouseMove: He, onMouseLeave: xt, setActiveId: Dt, tooltip: It, transitionMode: zt }, "arcs")), S && l.includes("arcLinkLabels") && (ce.arcLinkLabels = v.jsx(qz, { center: [me, Ce], data: pe, label: ge, skipAngle: De, offset: yt, diagonalLength: Ye, straightLength: Qe, strokeWidth: kt, textOffset: Te, textColor: At, linkColor: Rt, component: bt }, "arcLinkLabels")), B && l.includes("arcLabels") && (ce.arcLabels = v.jsx(Fz, { center: [me, Ce], data: pe, label: ne, radiusOffset: F, skipAngle: Q, textColor: J, transitionMode: zt, component: V }, "arcLabels")), En.length > 0 && l.includes("legends") && (ce.legends = v.jsx(uH, { width: O, height: K, data: be, legends: En, toggleSerie: St }, "legends"));
|
|
23040
23040
|
var _n = mH({ dataWithArc: pe, arcGenerator: fe, centerX: me, centerY: Ce, radius: $e, innerRadius: rt });
|
|
23041
23041
|
return v.jsx(Fp, { width: it, height: Qt, margin: Wt, defs: xn, role: Be, children: l.map(function(Nt, fl) {
|
|
23042
23042
|
return ce[Nt] !== void 0 ? ce[Nt] : typeof Nt == "function" ? v.jsx(dd, { children: mn(Nt, _n) }, fl) : null;
|
|
@@ -23271,10 +23271,10 @@ var za = [function(e) {
|
|
|
23271
23271
|
return s(c(u));
|
|
23272
23272
|
};
|
|
23273
23273
|
}, mq = function(e, t, n, r) {
|
|
23274
|
-
var a, i, o, s, u = e.min, c = u === void 0 ? 0 : u, l = e.max, d = l === void 0 ? "auto" : l, f = e.stacked, h = f !== void 0 && f, m = e.reverse, p = m !== void 0 && m, g = e.clamp,
|
|
23274
|
+
var a, i, o, s, u = e.min, c = u === void 0 ? 0 : u, l = e.max, d = l === void 0 ? "auto" : l, f = e.stacked, h = f !== void 0 && f, m = e.reverse, p = m !== void 0 && m, g = e.clamp, y = g !== void 0 && g, _ = e.nice, b = _ !== void 0 && _;
|
|
23275
23275
|
c === "auto" ? a = h === !0 ? (i = t.minStacked) != null ? i : 0 : t.min : a = c, d === "auto" ? o = h === !0 ? (s = t.maxStacked) != null ? s : 0 : t.max : o = d;
|
|
23276
|
-
var w = Ux().rangeRound(r === "x" ? [0, n] : [n, 0]).domain(p ? [o, a] : [a, o]).clamp(
|
|
23277
|
-
return
|
|
23276
|
+
var w = Ux().rangeRound(r === "x" ? [0, n] : [n, 0]).domain(p ? [o, a] : [a, o]).clamp(y);
|
|
23277
|
+
return b === !0 ? w.nice() : typeof b == "number" && w.nice(b), gq(w, h);
|
|
23278
23278
|
}, gq = function(e, t) {
|
|
23279
23279
|
t === void 0 && (t = !1);
|
|
23280
23280
|
var n = e;
|
|
@@ -23289,12 +23289,12 @@ var za = [function(e) {
|
|
|
23289
23289
|
var t = e;
|
|
23290
23290
|
return t.type = "band", t;
|
|
23291
23291
|
}, xq = function(e, t, n) {
|
|
23292
|
-
var r, a, i = e.format, o = i === void 0 ? "native" : i, s = e.precision, u = s === void 0 ? "millisecond" : s, c = e.min, l = c === void 0 ? "auto" : c, d = e.max, f = d === void 0 ? "auto" : d, h = e.useUTC, m = h === void 0 || h, p = e.nice, g = p !== void 0 && p,
|
|
23293
|
-
r = l === "auto" ?
|
|
23292
|
+
var r, a, i = e.format, o = i === void 0 ? "native" : i, s = e.precision, u = s === void 0 ? "millisecond" : s, c = e.min, l = c === void 0 ? "auto" : c, d = e.max, f = d === void 0 ? "auto" : d, h = e.useUTC, m = h === void 0 || h, p = e.nice, g = p !== void 0 && p, y = pq({ format: o, precision: u, useUTC: m });
|
|
23293
|
+
r = l === "auto" ? y(t.min) : o !== "native" ? y(l) : l, a = f === "auto" ? y(t.max) : o !== "native" ? y(f) : f;
|
|
23294
23294
|
var _ = m ? oF() : iF();
|
|
23295
23295
|
_.range([0, n]), r && a && _.domain([r, a]), g === !0 ? _.nice() : typeof g != "object" && typeof g != "number" || _.nice(g);
|
|
23296
|
-
var
|
|
23297
|
-
return
|
|
23296
|
+
var b = _;
|
|
23297
|
+
return b.type = "time", b.useUTC = m, b;
|
|
23298
23298
|
}, _q = function(e, t, n, r) {
|
|
23299
23299
|
var a, i = e.base, o = i === void 0 ? 10 : i, s = e.min, u = s === void 0 ? "auto" : s, c = e.max, l = c === void 0 ? "auto" : c;
|
|
23300
23300
|
if (t.all.some(function(p) {
|
|
@@ -23392,11 +23392,11 @@ function jn() {
|
|
|
23392
23392
|
}, jn.apply(this, arguments);
|
|
23393
23393
|
}
|
|
23394
23394
|
var R_ = function(e) {
|
|
23395
|
-
var t, n = e.axis, r = e.scale, a = e.ticksPosition, i = e.tickValues, o = e.tickSize, s = e.tickPadding, u = e.tickRotation, c = e.truncateTickAt, l = e.engine, d = l === void 0 ? "svg" : l, f = A_(r, i), h = uz[d], m = "bandwidth" in r ? C_(r) : r, p = { lineX: 0, lineY: 0 }, g = { textX: 0, textY: 0 },
|
|
23395
|
+
var t, n = e.axis, r = e.scale, a = e.ticksPosition, i = e.tickValues, o = e.tickSize, s = e.tickPadding, u = e.tickRotation, c = e.truncateTickAt, l = e.engine, d = l === void 0 ? "svg" : l, f = A_(r, i), h = uz[d], m = "bandwidth" in r ? C_(r) : r, p = { lineX: 0, lineY: 0 }, g = { textX: 0, textY: 0 }, y = typeof document == "object" && document.dir === "rtl", _ = h.align.center, b = h.baseline.center;
|
|
23396
23396
|
return n === "x" ? (t = function(w) {
|
|
23397
23397
|
var x;
|
|
23398
23398
|
return { x: (x = m(w)) != null ? x : 0, y: 0 };
|
|
23399
|
-
}, p.lineY = o * (a === "after" ? 1 : -1), g.textY = (o + s) * (a === "after" ? 1 : -1),
|
|
23399
|
+
}, p.lineY = o * (a === "after" ? 1 : -1), g.textY = (o + s) * (a === "after" ? 1 : -1), b = a === "after" ? h.baseline.top : h.baseline.bottom, u === 0 ? _ = h.align.center : a === "after" && u < 0 || a === "before" && u > 0 ? (_ = h.align[y ? "left" : "right"], b = h.baseline.center) : (a === "after" && u > 0 || a === "before" && u < 0) && (_ = h.align[y ? "right" : "left"], b = h.baseline.center)) : (t = function(w) {
|
|
23400
23400
|
var x;
|
|
23401
23401
|
return { x: 0, y: (x = m(w)) != null ? x : 0 };
|
|
23402
23402
|
}, p.lineX = o * (a === "after" ? 1 : -1), g.textX = (o + s) * (a === "after" ? 1 : -1), _ = a === "after" ? h.align.left : h.align.right), { ticks: f.map(function(w) {
|
|
@@ -23405,7 +23405,7 @@ var R_ = function(e) {
|
|
|
23405
23405
|
return c && c > 0 && E > c ? "" + String(T).slice(0, c).concat("...") : "" + T;
|
|
23406
23406
|
}(w) : w;
|
|
23407
23407
|
return jn({ key: w instanceof Date ? "" + w.valueOf() : "" + w, value: x }, t(w), p, g);
|
|
23408
|
-
}), textAlign: _, textBaseline:
|
|
23408
|
+
}), textAlign: _, textBaseline: b };
|
|
23409
23409
|
}, j_ = function(e, t) {
|
|
23410
23410
|
if (e === void 0 || typeof e == "function") return e;
|
|
23411
23411
|
if (t.type === "time") {
|
|
@@ -23433,23 +23433,23 @@ var R_ = function(e) {
|
|
|
23433
23433
|
}, [c.opacity, o, h]);
|
|
23434
23434
|
return v.jsxs(at.g, jn({ transform: c.transform }, m, { children: [v.jsx("line", { x1: 0, x2: a, y1: 0, y2: i, style: d }), f.outlineWidth > 0 && v.jsx(at.text, { dominantBaseline: s, textAnchor: u, transform: c.textTransform, style: f, strokeWidth: 2 * f.outlineWidth, stroke: f.outlineColor, strokeLinejoin: "round", children: "" + h }), v.jsx(at.text, { dominantBaseline: s, textAnchor: u, transform: c.textTransform, style: Np(f), children: "" + h })] }));
|
|
23435
23435
|
}), kq = function(e) {
|
|
23436
|
-
var t = e.axis, n = e.scale, r = e.x, a = r === void 0 ? 0 : r, i = e.y, o = i === void 0 ? 0 : i, s = e.length, u = e.ticksPosition, c = e.tickValues, l = e.tickSize, d = l === void 0 ? 5 : l, f = e.tickPadding, h = f === void 0 ? 5 : f, m = e.tickRotation, p = m === void 0 ? 0 : m, g = e.format,
|
|
23436
|
+
var t = e.axis, n = e.scale, r = e.x, a = r === void 0 ? 0 : r, i = e.y, o = i === void 0 ? 0 : i, s = e.length, u = e.ticksPosition, c = e.tickValues, l = e.tickSize, d = l === void 0 ? 5 : l, f = e.tickPadding, h = f === void 0 ? 5 : f, m = e.tickRotation, p = m === void 0 ? 0 : m, g = e.format, y = e.renderTick, _ = y === void 0 ? Oq : y, b = e.truncateTickAt, w = e.legend, x = e.legendPosition, T = x === void 0 ? "end" : x, E = e.legendOffset, M = E === void 0 ? 0 : E, P = e.onClick, R = e.ariaHidden, k = gt(), D = k.axis.legend.text, C = ae(function() {
|
|
23437
23437
|
return j_(g, n);
|
|
23438
|
-
}, [g, n]), A = R_({ axis: t, scale: n, ticksPosition: u, tickValues: c, tickSize: d, tickPadding: h, tickRotation: p, truncateTickAt:
|
|
23438
|
+
}, [g, n]), A = R_({ axis: t, scale: n, ticksPosition: u, tickValues: c, tickSize: d, tickPadding: h, tickRotation: p, truncateTickAt: b }), I = A.ticks, L = A.textAlign, W = A.textBaseline, q = null;
|
|
23439
23439
|
if (w !== void 0) {
|
|
23440
|
-
var
|
|
23441
|
-
t === "y" ? (Z = -90, j = M, T === "start" ? (
|
|
23440
|
+
var N, j = 0, B = 0, Z = 0;
|
|
23441
|
+
t === "y" ? (Z = -90, j = M, T === "start" ? (N = "start", B = s) : T === "middle" ? (N = "middle", B = s / 2) : T === "end" && (N = "end")) : (B = M, T === "start" ? N = "start" : T === "middle" ? (N = "middle", j = s / 2) : T === "end" && (N = "end", j = s)), q = v.jsxs(v.Fragment, { children: [D.outlineWidth > 0 && v.jsx("text", { transform: "translate(" + j + ", " + B + ") rotate(" + Z + ")", textAnchor: N, style: jn({ dominantBaseline: "central" }, D), strokeWidth: 2 * D.outlineWidth, stroke: D.outlineColor, strokeLinejoin: "round", children: w }), v.jsx("text", { transform: "translate(" + j + ", " + B + ") rotate(" + Z + ")", textAnchor: N, style: jn({ dominantBaseline: "central" }, D), children: w })] });
|
|
23442
23442
|
}
|
|
23443
|
-
var ne = vn(), Y = ne.animate, Q = ne.config, G = wr({ transform: "translate(" + a + "," + o + ")", lineX2: t === "x" ? s : 0, lineY2: t === "x" ? 0 : s, config: Q, immediate: !Y }), J =
|
|
23443
|
+
var ne = vn(), Y = ne.animate, Q = ne.config, G = wr({ transform: "translate(" + a + "," + o + ")", lineX2: t === "x" ? s : 0, lineY2: t === "x" ? 0 : s, config: Q, immediate: !Y }), J = z(function(V) {
|
|
23444
23444
|
return { opacity: 1, transform: "translate(" + V.x + "," + V.y + ")", textTransform: "translate(" + V.textX + "," + V.textY + ") rotate(" + p + ")" };
|
|
23445
|
-
}, [p]), re =
|
|
23445
|
+
}, [p]), re = z(function(V) {
|
|
23446
23446
|
return { opacity: 0, transform: "translate(" + V.x + "," + V.y + ")", textTransform: "translate(" + V.textX + "," + V.textY + ") rotate(" + p + ")" };
|
|
23447
23447
|
}, [p]), F = Ca(I, { keys: function(V) {
|
|
23448
23448
|
return V.key;
|
|
23449
23449
|
}, initial: J, from: re, enter: J, update: J, leave: { opacity: 0 }, config: Q, immediate: !Y });
|
|
23450
23450
|
return v.jsxs(at.g, { transform: G.transform, "aria-hidden": R, children: [F(function(V, ie, S, ye) {
|
|
23451
|
-
return oe.createElement(_, jn({ tickIndex: ye, format: C, rotate: p, textBaseline:
|
|
23452
|
-
}), v.jsx(at.line, { style:
|
|
23451
|
+
return oe.createElement(_, jn({ tickIndex: ye, format: C, rotate: p, textBaseline: W, textAnchor: L, truncateTickAt: b, animatedProps: V }, ie, P ? { onClick: P } : {}));
|
|
23452
|
+
}), v.jsx(at.line, { style: k.axis.domain.line, x1: 0, x2: G.lineX2, y1: 0, y2: G.lineY2 }), q] });
|
|
23453
23453
|
}, $q = Ct(kq), P_ = ["top", "right", "bottom", "left"], Eq = Ct(function(e) {
|
|
23454
23454
|
var t = e.xScale, n = e.yScale, r = e.width, a = e.height, i = { top: e.top, right: e.right, bottom: e.bottom, left: e.left };
|
|
23455
23455
|
return v.jsx(v.Fragment, { children: P_.map(function(o) {
|
|
@@ -23484,21 +23484,21 @@ var R_ = function(e) {
|
|
|
23484
23484
|
}, [n, t, a, o]);
|
|
23485
23485
|
return v.jsxs(v.Fragment, { children: [s && v.jsx(kv, { lines: s }), u && v.jsx(kv, { lines: u })] });
|
|
23486
23486
|
}), Aq = function(e, t) {
|
|
23487
|
-
var n, r = t.axis, a = t.scale, i = t.x, o = i === void 0 ? 0 : i, s = t.y, u = s === void 0 ? 0 : s, c = t.length, l = t.ticksPosition, d = t.tickValues, f = t.tickSize, h = f === void 0 ? 5 : f, m = t.tickPadding, p = m === void 0 ? 5 : m, g = t.tickRotation,
|
|
23488
|
-
e.save(), e.translate(o, u), e.textAlign =
|
|
23487
|
+
var n, r = t.axis, a = t.scale, i = t.x, o = i === void 0 ? 0 : i, s = t.y, u = s === void 0 ? 0 : s, c = t.length, l = t.ticksPosition, d = t.tickValues, f = t.tickSize, h = f === void 0 ? 5 : f, m = t.tickPadding, p = m === void 0 ? 5 : m, g = t.tickRotation, y = g === void 0 ? 0 : g, _ = t.format, b = t.legend, w = t.legendPosition, x = w === void 0 ? "end" : w, T = t.legendOffset, E = T === void 0 ? 0 : T, M = t.theme, P = R_({ axis: r, scale: a, ticksPosition: l, tickValues: d, tickSize: h, tickPadding: p, tickRotation: y, engine: "canvas" }), R = P.ticks, k = P.textAlign, D = P.textBaseline;
|
|
23488
|
+
e.save(), e.translate(o, u), e.textAlign = k, e.textBaseline = D;
|
|
23489
23489
|
var C = M.axis.ticks.text;
|
|
23490
23490
|
e.font = (C.fontWeight ? C.fontWeight + " " : "") + C.fontSize + "px " + C.fontFamily, ((n = M.axis.domain.line.strokeWidth) != null ? n : 0) > 0 && (e.lineWidth = Number(M.axis.domain.line.strokeWidth), e.lineCap = "square", M.axis.domain.line.stroke && (e.strokeStyle = M.axis.domain.line.stroke), e.beginPath(), e.moveTo(0, 0), e.lineTo(r === "x" ? c : 0, r === "x" ? 0 : c), e.stroke());
|
|
23491
|
-
var A = typeof _ == "function" ? _ : function(
|
|
23492
|
-
return "" +
|
|
23491
|
+
var A = typeof _ == "function" ? _ : function(N) {
|
|
23492
|
+
return "" + N;
|
|
23493
23493
|
};
|
|
23494
|
-
if (R.forEach(function(
|
|
23494
|
+
if (R.forEach(function(N) {
|
|
23495
23495
|
var j;
|
|
23496
|
-
((j = M.axis.ticks.line.strokeWidth) != null ? j : 0) > 0 && (e.lineWidth = Number(M.axis.ticks.line.strokeWidth), e.lineCap = "square", M.axis.ticks.line.stroke && (e.strokeStyle = M.axis.ticks.line.stroke), e.beginPath(), e.moveTo(
|
|
23497
|
-
var B = A(
|
|
23498
|
-
e.save(), e.translate(
|
|
23499
|
-
}),
|
|
23500
|
-
var I = 0, L = 0,
|
|
23501
|
-
r === "y" ? (
|
|
23496
|
+
((j = M.axis.ticks.line.strokeWidth) != null ? j : 0) > 0 && (e.lineWidth = Number(M.axis.ticks.line.strokeWidth), e.lineCap = "square", M.axis.ticks.line.stroke && (e.strokeStyle = M.axis.ticks.line.stroke), e.beginPath(), e.moveTo(N.x, N.y), e.lineTo(N.x + N.lineX, N.y + N.lineY), e.stroke());
|
|
23497
|
+
var B = A(N.value);
|
|
23498
|
+
e.save(), e.translate(N.x + N.textX, N.y + N.textY), e.rotate(Rn(y)), C.outlineWidth > 0 && (e.strokeStyle = C.outlineColor, e.lineWidth = 2 * C.outlineWidth, e.lineJoin = "round", e.strokeText("" + B, 0, 0)), M.axis.ticks.text.fill && (e.fillStyle = C.fill), e.fillText("" + B, 0, 0), e.restore();
|
|
23499
|
+
}), b !== void 0) {
|
|
23500
|
+
var I = 0, L = 0, W = 0, q = "center";
|
|
23501
|
+
r === "y" ? (W = -90, I = E, x === "start" ? (q = "start", L = c) : x === "middle" ? (q = "center", L = c / 2) : x === "end" && (q = "end")) : (L = E, x === "start" ? q = "start" : x === "middle" ? (q = "center", I = c / 2) : x === "end" && (q = "end", I = c)), e.translate(I, L), e.rotate(Rn(W)), e.font = (M.axis.legend.text.fontWeight ? M.axis.legend.text.fontWeight + " " : "") + M.axis.legend.text.fontSize + "px " + M.axis.legend.text.fontFamily, M.axis.legend.text.fill && (e.fillStyle = M.axis.legend.text.fill), e.textAlign = q, e.textBaseline = "middle", e.fillText(b, 0, 0);
|
|
23502
23502
|
}
|
|
23503
23503
|
e.restore();
|
|
23504
23504
|
}, Rq = function(e, t) {
|
|
@@ -23506,8 +23506,8 @@ var R_ = function(e) {
|
|
|
23506
23506
|
P_.forEach(function(f) {
|
|
23507
23507
|
var h = d[f];
|
|
23508
23508
|
if (!h) return null;
|
|
23509
|
-
var m = f === "top" || f === "bottom", p = f === "top" || f === "left" ? "before" : "after", g = m ? n : r,
|
|
23510
|
-
Aq(e, jn({}, h, { axis: m ? "x" : "y", x: f === "right" ? a : 0, y: f === "bottom" ? i : 0, scale: g, format:
|
|
23509
|
+
var m = f === "top" || f === "bottom", p = f === "top" || f === "left" ? "before" : "after", g = m ? n : r, y = j_(h.format, g);
|
|
23510
|
+
Aq(e, jn({}, h, { axis: m ? "x" : "y", x: f === "right" ? a : 0, y: f === "bottom" ? i : 0, scale: g, format: y, length: m ? a : i, ticksPosition: p, theme: l }));
|
|
23511
23511
|
});
|
|
23512
23512
|
}, $v = function(e, t) {
|
|
23513
23513
|
var n = t.width, r = t.height, a = t.scale, i = t.axis, o = t.values;
|
|
@@ -23656,12 +23656,12 @@ function qs(e, t, n, r, a, i) {
|
|
|
23656
23656
|
return h;
|
|
23657
23657
|
i.set(e, o), zG(e) ? e.forEach(function(g) {
|
|
23658
23658
|
o.add(qs(g, t, n, g, e, i));
|
|
23659
|
-
}) : WG(e) && e.forEach(function(g,
|
|
23660
|
-
o.set(
|
|
23659
|
+
}) : WG(e) && e.forEach(function(g, y) {
|
|
23660
|
+
o.set(y, qs(g, t, n, y, e, i));
|
|
23661
23661
|
});
|
|
23662
23662
|
var m = c ? u ? PG : jG : u ? VG : HG, p = l ? void 0 : m(e);
|
|
23663
|
-
return OG(p || e, function(g,
|
|
23664
|
-
p && (
|
|
23663
|
+
return OG(p || e, function(g, y) {
|
|
23664
|
+
p && (y = g, g = e[y]), kG(o, y, qs(g, t, n, y, e, i));
|
|
23665
23665
|
}), o;
|
|
23666
23666
|
}
|
|
23667
23667
|
var yZ = qs;
|
|
@@ -23751,8 +23751,8 @@ var Of = { dotSize: 4, noteWidth: 120, noteTextOffset: 8, animate: !0 }, YZ = fu
|
|
|
23751
23751
|
var p = Math.round((h + 90) / 45) % 8;
|
|
23752
23752
|
p === 0 && (f -= e.height / 2), p === 1 && (d += e.width / 2, f -= e.height / 2), p === 2 && (d += e.width / 2), p === 3 && (d += e.width / 2, f += e.height / 2), p === 4 && (f += e.height / 2), p === 5 && (d -= e.width / 2, f += e.height / 2), p === 6 && (d -= e.width / 2), p === 7 && (d -= e.width / 2, f -= e.height / 2);
|
|
23753
23753
|
}
|
|
23754
|
-
var g = t,
|
|
23755
|
-
return (h + 90) % 360 > 180 ? (g -= u,
|
|
23754
|
+
var g = t, y = t;
|
|
23755
|
+
return (h + 90) % 360 > 180 ? (g -= u, y -= u) : y += u, { points: [[d, f], [t, n], [y, n]], text: [g, n - l], angle: h + 90 };
|
|
23756
23756
|
}, B_ = function(e) {
|
|
23757
23757
|
var t = e.data, n = e.annotations, r = e.getPosition, a = e.getDimensions;
|
|
23758
23758
|
return ae(function() {
|
|
@@ -23839,28 +23839,28 @@ var Fv, iK = function(e) {
|
|
|
23839
23839
|
return v.jsx(S_, tt({}, u, { containerWidth: t, containerHeight: n, data: (s = u.data) != null ? s : c, toggleSerie: u.toggleSerie && u.dataFrom === "keys" ? a : void 0 }), o);
|
|
23840
23840
|
}) });
|
|
23841
23841
|
}, sK = ["data"], cK = function(e) {
|
|
23842
|
-
var t, n = e.bar, r = n.data, a = Ci(n, sK), i = e.style, o = i.borderColor, s = i.color, u = i.height, c = i.labelColor, l = i.labelOpacity, d = i.labelX, f = i.labelY, h = i.transform, m = i.width, p = e.borderRadius, g = e.borderWidth,
|
|
23842
|
+
var t, n = e.bar, r = n.data, a = Ci(n, sK), i = e.style, o = i.borderColor, s = i.color, u = i.height, c = i.labelColor, l = i.labelOpacity, d = i.labelX, f = i.labelY, h = i.transform, m = i.width, p = e.borderRadius, g = e.borderWidth, y = e.label, _ = e.shouldRenderLabel, b = e.isInteractive, w = e.onClick, x = e.onMouseEnter, T = e.onMouseLeave, E = e.tooltip, M = e.isFocusable, P = e.ariaLabel, R = e.ariaLabelledBy, k = e.ariaDescribedBy, D = gt(), C = Lh(), A = C.showTooltipFromEvent, I = C.showTooltipAt, L = C.hideTooltip, W = ae(function() {
|
|
23843
23843
|
return function() {
|
|
23844
23844
|
return mn(E, tt({}, a, r));
|
|
23845
23845
|
};
|
|
23846
|
-
}, [E, a, r]), q =
|
|
23846
|
+
}, [E, a, r]), q = z(function(Y) {
|
|
23847
23847
|
w == null || w(tt({ color: a.color }, r), Y);
|
|
23848
|
-
}, [a, r, w]),
|
|
23849
|
-
return A(
|
|
23850
|
-
}, [A,
|
|
23851
|
-
x == null || x(r, Y), A(
|
|
23852
|
-
}, [r, x, A,
|
|
23848
|
+
}, [a, r, w]), N = z(function(Y) {
|
|
23849
|
+
return A(W(), Y);
|
|
23850
|
+
}, [A, W]), j = z(function(Y) {
|
|
23851
|
+
x == null || x(r, Y), A(W(), Y);
|
|
23852
|
+
}, [r, x, A, W]), B = z(function(Y) {
|
|
23853
23853
|
T == null || T(r, Y), L();
|
|
23854
|
-
}, [r, L, T]), Z =
|
|
23855
|
-
I(
|
|
23856
|
-
}, [I,
|
|
23854
|
+
}, [r, L, T]), Z = z(function() {
|
|
23855
|
+
I(W(), [a.absX + a.width / 2, a.absY]);
|
|
23856
|
+
}, [I, W, a]), ne = z(function() {
|
|
23857
23857
|
L();
|
|
23858
23858
|
}, [L]);
|
|
23859
23859
|
return v.jsxs(at.g, { transform: h, children: [v.jsx(at.rect, { width: Wr(m, function(Y) {
|
|
23860
23860
|
return Math.max(Y, 0);
|
|
23861
23861
|
}), height: Wr(u, function(Y) {
|
|
23862
23862
|
return Math.max(Y, 0);
|
|
23863
|
-
}), rx: p, ry: p, fill: (t = r.fill) != null ? t : s, strokeWidth: g, stroke: o, focusable: M, tabIndex: M ? 0 : void 0, "aria-label": P ? P(r) : void 0, "aria-labelledby": R ? R(r) : void 0, "aria-describedby":
|
|
23863
|
+
}), rx: p, ry: p, fill: (t = r.fill) != null ? t : s, strokeWidth: g, stroke: o, focusable: M, tabIndex: M ? 0 : void 0, "aria-label": P ? P(r) : void 0, "aria-labelledby": R ? R(r) : void 0, "aria-describedby": k ? k(r) : void 0, onMouseEnter: b ? j : void 0, onMouseMove: b ? N : void 0, onMouseLeave: b ? B : void 0, onClick: b ? q : void 0, onFocus: b && M ? Z : void 0, onBlur: b && M ? ne : void 0 }), _ && v.jsx(at.text, { x: d, y: f, textAnchor: "middle", dominantBaseline: "central", fillOpacity: l, style: tt({}, D.labels.text, { pointerEvents: "none", fill: c }), children: y })] });
|
|
23864
23864
|
}, uK = ["color", "label"], lK = function(e) {
|
|
23865
23865
|
var t = e.color, n = e.label, r = Ci(e, uK);
|
|
23866
23866
|
return v.jsx(Q1, { id: n, value: r.formattedValue, enableChip: !0, color: t });
|
|
@@ -23891,38 +23891,38 @@ var Fv, iK = function(e) {
|
|
|
23891
23891
|
}, fK = function(e) {
|
|
23892
23892
|
return Bp(e, 0) ? 0 : e;
|
|
23893
23893
|
}, hK = function(e, t, n, r) {
|
|
23894
|
-
var a = e.data, i = e.formatValue, o = e.getColor, s = e.getIndex, u = e.getTooltipLabel, c = e.innerPadding, l = c === void 0 ? 0 : c, d = e.keys, f = e.xScale, h = e.yScale, m = e.margin, p = n ? V_ : Bp, g = a.map(ll),
|
|
23895
|
-
return d.forEach(function(_,
|
|
23894
|
+
var a = e.data, i = e.formatValue, o = e.getColor, s = e.getIndex, u = e.getTooltipLabel, c = e.innerPadding, l = c === void 0 ? 0 : c, d = e.keys, f = e.xScale, h = e.yScale, m = e.margin, p = n ? V_ : Bp, g = a.map(ll), y = [];
|
|
23895
|
+
return d.forEach(function(_, b) {
|
|
23896
23896
|
return q_(0, f.domain().length).forEach(function(w) {
|
|
23897
|
-
var x, T, E, M = dl(a[w][_]), P = M[0], R = M[1],
|
|
23897
|
+
var x, T, E, M = dl(a[w][_]), P = M[0], R = M[1], k = s(a[w]), D = ((x = f(k)) != null ? x : 0) + t * b + l * b, C = p(T = R, 0) ? (E = h(T)) != null ? E : 0 : r, A = function(L, W) {
|
|
23898
23898
|
var q;
|
|
23899
|
-
return p(L, 0) ? r -
|
|
23900
|
-
}(R, C), I = { id: _, value: P === null ? P : R, formattedValue: i(R), hidden: !1, index: w, indexValue:
|
|
23901
|
-
|
|
23899
|
+
return p(L, 0) ? r - W : ((q = h(L)) != null ? q : 0) - r;
|
|
23900
|
+
}(R, C), I = { id: _, value: P === null ? P : R, formattedValue: i(R), hidden: !1, index: w, indexValue: k, data: g[w] };
|
|
23901
|
+
y.push({ key: _ + "." + I.indexValue, index: y.length, data: I, x: D, y: C, absX: m.left + D, absY: m.top + C, width: t, height: A, color: o(I), label: u(I) });
|
|
23902
23902
|
});
|
|
23903
|
-
}),
|
|
23903
|
+
}), y;
|
|
23904
23904
|
}, pK = function(e, t, n, r) {
|
|
23905
|
-
var a = e.data, i = e.formatValue, o = e.getIndex, s = e.getColor, u = e.getTooltipLabel, c = e.keys, l = e.innerPadding, d = l === void 0 ? 0 : l, f = e.xScale, h = e.yScale, m = e.margin, p = n ? V_ : Bp, g = a.map(ll),
|
|
23906
|
-
return c.forEach(function(_,
|
|
23905
|
+
var a = e.data, i = e.formatValue, o = e.getIndex, s = e.getColor, u = e.getTooltipLabel, c = e.keys, l = e.innerPadding, d = l === void 0 ? 0 : l, f = e.xScale, h = e.yScale, m = e.margin, p = n ? V_ : Bp, g = a.map(ll), y = [];
|
|
23906
|
+
return c.forEach(function(_, b) {
|
|
23907
23907
|
return q_(0, h.domain().length).forEach(function(w) {
|
|
23908
|
-
var x, T, E, M = dl(a[w][_]), P = M[0], R = M[1],
|
|
23908
|
+
var x, T, E, M = dl(a[w][_]), P = M[0], R = M[1], k = o(a[w]), D = p(T = R, 0) ? r : (E = f(T)) != null ? E : 0, C = ((x = h(k)) != null ? x : 0) + t * b + d * b, A = function(L, W) {
|
|
23909
23909
|
var q;
|
|
23910
|
-
return p(L, 0) ? ((q = f(L)) != null ? q : 0) - r : r -
|
|
23911
|
-
}(R,
|
|
23912
|
-
|
|
23910
|
+
return p(L, 0) ? ((q = f(L)) != null ? q : 0) - r : r - W;
|
|
23911
|
+
}(R, D), I = { id: _, value: P === null ? P : R, formattedValue: i(R), hidden: !1, index: w, indexValue: k, data: g[w] };
|
|
23912
|
+
y.push({ key: _ + "." + I.indexValue, index: y.length, data: I, x: D, y: C, absX: m.left + D, absY: m.top + C, width: A, height: t, color: s(I), label: u(I) });
|
|
23913
23913
|
});
|
|
23914
|
-
}),
|
|
23914
|
+
}), y;
|
|
23915
23915
|
}, mK = function(e) {
|
|
23916
|
-
var t, n, r = e.layout, a = e.minValue, i = e.maxValue, o = e.reverse, s = e.width, u = e.height, c = e.padding, l = c === void 0 ? 0 : c, d = e.innerPadding, f = d === void 0 ? 0 : d, h = e.valueScale, m = e.indexScale, p = e.hiddenIds, g = p === void 0 ? [] : p,
|
|
23916
|
+
var t, n, r = e.layout, a = e.minValue, i = e.maxValue, o = e.reverse, s = e.width, u = e.height, c = e.padding, l = c === void 0 ? 0 : c, d = e.innerPadding, f = d === void 0 ? 0 : d, h = e.valueScale, m = e.indexScale, p = e.hiddenIds, g = p === void 0 ? [] : p, y = Ci(e, dK), _ = y.keys.filter(function(j) {
|
|
23917
23917
|
return !g.includes(j);
|
|
23918
|
-
}),
|
|
23918
|
+
}), b = H_(y.data, _), w = r === "vertical" ? ["y", "x", s] : ["x", "y", u], x = w[0], T = w[1], E = w[2], M = z_(b, y.getIndex, l, m, E, T), P = tt({ max: i, min: a, reverse: o }, h), R = P.min === "auto" ? fK : function(j) {
|
|
23919
23919
|
return j;
|
|
23920
|
-
},
|
|
23920
|
+
}, k = b.reduce(function(j, B) {
|
|
23921
23921
|
return [].concat(j, _.map(function(Z) {
|
|
23922
23922
|
return B[Z];
|
|
23923
23923
|
}));
|
|
23924
|
-
}, []).filter(Boolean),
|
|
23925
|
-
return { xScale: L, yScale:
|
|
23924
|
+
}, []).filter(Boolean), D = R(Math.min.apply(Math, k)), C = (n = Math.max.apply(Math, k), isFinite(n) ? n : 0), A = Wp(P, { all: k, min: D, max: C }, x === "x" ? s : u, x), I = r === "vertical" ? [M, A] : [A, M], L = I[0], W = I[1], q = (M.bandwidth() - f * (_.length - 1)) / _.length, N = [tt({}, y, { data: b, keys: _, innerPadding: f, xScale: L, yScale: W }), q, P.reverse, (t = A(0)) != null ? t : 0];
|
|
23925
|
+
return { xScale: L, yScale: W, bars: q > 0 ? r === "vertical" ? hK.apply(void 0, N) : pK.apply(void 0, N) : [] };
|
|
23926
23926
|
}, gK = ["data", "layout", "minValue", "maxValue", "reverse", "width", "height", "padding", "valueScale", "indexScale", "hiddenIds"], vK = function e(t) {
|
|
23927
23927
|
var n;
|
|
23928
23928
|
return t.some(Array.isArray) ? e((n = []).concat.apply(n, t)) : t;
|
|
@@ -23930,35 +23930,35 @@ var Fv, iK = function(e) {
|
|
|
23930
23930
|
var r = e.formatValue, a = e.getColor, i = e.getIndex, o = e.getTooltipLabel, s = e.innerPadding, u = e.stackedData, c = e.xScale, l = e.yScale, d = e.margin, f = [];
|
|
23931
23931
|
return u.forEach(function(h) {
|
|
23932
23932
|
return c.domain().forEach(function(m, p) {
|
|
23933
|
-
var g,
|
|
23933
|
+
var g, y, _ = h[p], b = (g = c(i(_.data))) != null ? g : 0, w = ((y = function(R) {
|
|
23934
23934
|
return l(R[n ? 0 : 1]);
|
|
23935
|
-
}(_)) != null ?
|
|
23936
|
-
var
|
|
23937
|
-
return ((
|
|
23935
|
+
}(_)) != null ? y : 0) + 0.5 * s, x = function(R, k) {
|
|
23936
|
+
var D;
|
|
23937
|
+
return ((D = l(R[n ? 1 : 0])) != null ? D : 0) - k;
|
|
23938
23938
|
}(_, w) - s, T = dl(_.data[h.key]), E = T[0], M = T[1], P = { id: h.key, value: E === null ? E : M, formattedValue: r(M), hidden: !1, index: p, indexValue: m, data: ll(_.data) };
|
|
23939
|
-
f.push({ key: h.key + "." + m, index: f.length, data: P, x:
|
|
23939
|
+
f.push({ key: h.key + "." + m, index: f.length, data: P, x: b, y: w, absX: d.left + b, absY: d.top + w, width: t, height: x, color: a(P), label: o(P) });
|
|
23940
23940
|
});
|
|
23941
23941
|
}), f;
|
|
23942
23942
|
}, bK = function(e, t, n) {
|
|
23943
23943
|
var r = e.formatValue, a = e.getColor, i = e.getIndex, o = e.getTooltipLabel, s = e.innerPadding, u = e.stackedData, c = e.xScale, l = e.yScale, d = e.margin, f = [];
|
|
23944
23944
|
return u.forEach(function(h) {
|
|
23945
23945
|
return l.domain().forEach(function(m, p) {
|
|
23946
|
-
var g,
|
|
23946
|
+
var g, y, _ = h[p], b = (g = l(i(_.data))) != null ? g : 0, w = ((y = function(R) {
|
|
23947
23947
|
return c(R[n ? 1 : 0]);
|
|
23948
|
-
}(_)) != null ?
|
|
23949
|
-
var
|
|
23950
|
-
return ((
|
|
23948
|
+
}(_)) != null ? y : 0) + 0.5 * s, x = function(R, k) {
|
|
23949
|
+
var D;
|
|
23950
|
+
return ((D = c(R[n ? 0 : 1])) != null ? D : 0) - k;
|
|
23951
23951
|
}(_, w) - s, T = dl(_.data[h.key]), E = T[0], M = T[1], P = { id: h.key, value: E === null ? E : M, formattedValue: r(M), hidden: !1, index: p, indexValue: m, data: ll(_.data) };
|
|
23952
|
-
f.push({ key: h.key + "." + m, index: f.length, data: P, x: w, y, absX: d.left + w, absY: d.top +
|
|
23952
|
+
f.push({ key: h.key + "." + m, index: f.length, data: P, x: w, y: b, absX: d.left + w, absY: d.top + b, width: x, height: t, color: a(P), label: o(P) });
|
|
23953
23953
|
});
|
|
23954
23954
|
}), f;
|
|
23955
23955
|
}, xK = function(e) {
|
|
23956
23956
|
var t, n = e.data, r = e.layout, a = e.minValue, i = e.maxValue, o = e.reverse, s = e.width, u = e.height, c = e.padding, l = c === void 0 ? 0 : c, d = e.valueScale, f = e.indexScale, h = e.hiddenIds, m = h === void 0 ? [] : h, p = Ci(e, gK), g = p.keys.filter(function(q) {
|
|
23957
23957
|
return !m.includes(q);
|
|
23958
|
-
}),
|
|
23958
|
+
}), y = pU().keys(g).offset(mU)(H_(n, g)), _ = r === "vertical" ? ["y", "x", s] : ["x", "y", u], b = _[0], w = _[1], x = _[2], T = z_(n, p.getIndex, l, f, x, w), E = tt({ max: i, min: a, reverse: o }, d), M = (t = vK(y), d.type === "log" ? t.filter(function(q) {
|
|
23959
23959
|
return q !== 0;
|
|
23960
|
-
}) : t), P = Math.min.apply(Math, M), R = Math.max.apply(Math, M),
|
|
23961
|
-
return { xScale: C, yScale: A, bars: L > 0 ? r === "vertical" ? yK.apply(void 0,
|
|
23960
|
+
}) : t), P = Math.min.apply(Math, M), R = Math.max.apply(Math, M), k = Wp(E, { all: M, min: P, max: R }, b === "x" ? s : u, b), D = r === "vertical" ? [T, k] : [k, T], C = D[0], A = D[1], I = p.innerPadding > 0 ? p.innerPadding : 0, L = T.bandwidth(), W = [tt({}, p, { innerPadding: I, stackedData: y, xScale: C, yScale: A }), L, E.reverse];
|
|
23961
|
+
return { xScale: C, yScale: A, bars: L > 0 ? r === "vertical" ? yK.apply(void 0, W) : bK.apply(void 0, W) : [] };
|
|
23962
23962
|
}, _K = function(e) {
|
|
23963
23963
|
var t = e.bars, n = e.direction, r = e.from, a = e.groupMode, i = e.layout, o = e.legendLabel, s = e.reverse, u = h_(o ?? (r === "indexes" ? "indexValue" : "id"));
|
|
23964
23964
|
return r === "indexes" ? function(c, l, d) {
|
|
@@ -23971,8 +23971,8 @@ var Fv, iK = function(e) {
|
|
|
23971
23971
|
return l === "horizontal" && f.reverse(), f;
|
|
23972
23972
|
}(t, i, u) : function(c, l, d, f, h, m) {
|
|
23973
23973
|
var p = wv(c.map(function(g) {
|
|
23974
|
-
var
|
|
23975
|
-
return { id: g.data.id, label: m(g.data), hidden: g.data.hidden, color: (
|
|
23974
|
+
var y;
|
|
23975
|
+
return { id: g.data.id, label: m(g.data), hidden: g.data.hidden, color: (y = g.color) != null ? y : "#000" };
|
|
23976
23976
|
}), function(g) {
|
|
23977
23977
|
return g.id;
|
|
23978
23978
|
});
|
|
@@ -23991,19 +23991,19 @@ var Fv, iK = function(e) {
|
|
|
23991
23991
|
var n = e.get(t) || 0;
|
|
23992
23992
|
e.set(t, n + 1);
|
|
23993
23993
|
}, Y_ = function(e) {
|
|
23994
|
-
var t = e.indexBy, n = t === void 0 ? ot.indexBy : t, r = e.keys, a = r === void 0 ? ot.keys : r, i = e.label, o = i === void 0 ? ot.label : i, s = e.tooltipLabel, u = s === void 0 ? ot.tooltipLabel : s, c = e.valueFormat, l = e.colors, d = l === void 0 ? ot.colors : l, f = e.colorBy, h = f === void 0 ? ot.colorBy : f, m = e.borderColor, p = m === void 0 ? ot.borderColor : m, g = e.labelTextColor,
|
|
23994
|
+
var t = e.indexBy, n = t === void 0 ? ot.indexBy : t, r = e.keys, a = r === void 0 ? ot.keys : r, i = e.label, o = i === void 0 ? ot.label : i, s = e.tooltipLabel, u = s === void 0 ? ot.tooltipLabel : s, c = e.valueFormat, l = e.colors, d = l === void 0 ? ot.colors : l, f = e.colorBy, h = f === void 0 ? ot.colorBy : f, m = e.borderColor, p = m === void 0 ? ot.borderColor : m, g = e.labelTextColor, y = g === void 0 ? ot.labelTextColor : g, _ = e.groupMode, b = _ === void 0 ? ot.groupMode : _, w = e.layout, x = w === void 0 ? ot.layout : w, T = e.reverse, E = T === void 0 ? ot.reverse : T, M = e.data, P = e.minValue, R = P === void 0 ? ot.minValue : P, k = e.maxValue, D = k === void 0 ? ot.maxValue : k, C = e.margin, A = e.width, I = e.height, L = e.padding, W = L === void 0 ? ot.padding : L, q = e.innerPadding, N = q === void 0 ? ot.innerPadding : q, j = e.valueScale, B = j === void 0 ? ot.valueScale : j, Z = e.indexScale, ne = Z === void 0 ? ot.indexScale : Z, Y = e.initialHiddenIds, Q = Y === void 0 ? ot.initialHiddenIds : Y, G = e.enableLabel, J = G === void 0 ? ot.enableLabel : G, re = e.labelSkipWidth, F = re === void 0 ? ot.labelSkipWidth : re, V = e.labelSkipHeight, ie = V === void 0 ? ot.labelSkipHeight : V, S = e.legends, ye = S === void 0 ? ot.legends : S, ge = e.legendLabel, he = e.totalsOffset, De = he === void 0 ? ot.totalsOffset : he, Fe = Ue(Q ?? []), yt = Fe[0], wt = Fe[1], Ye = z(function(Le) {
|
|
23995
23995
|
wt(function(Ne) {
|
|
23996
23996
|
return Ne.indexOf(Le) > -1 ? Ne.filter(function(He) {
|
|
23997
23997
|
return He !== Le;
|
|
23998
23998
|
}) : [].concat(Ne, [Le]);
|
|
23999
23999
|
});
|
|
24000
|
-
}, []), ct = ga(n), Qe = ga(o), Ot = ga(u), kt = ol(c), ut = gt(), Te = y_(d, h), nt = di(p, ut), At = di(
|
|
24000
|
+
}, []), ct = ga(n), Qe = ga(o), Ot = ga(u), kt = ol(c), ut = gt(), Te = y_(d, h), nt = di(p, ut), At = di(y, ut), an = (b === "grouped" ? mK : xK)({ layout: x, reverse: E, data: M, getIndex: ct, keys: a, minValue: R, maxValue: D, width: A, height: I, getColor: Te, padding: W, innerPadding: N, valueScale: B, indexScale: ne, hiddenIds: yt, formatValue: kt, getTooltipLabel: Ot, margin: C }), Rt = an.bars, bt = an.xScale, $t = an.yScale, yn = ae(function() {
|
|
24001
24001
|
return Rt.filter(function(Le) {
|
|
24002
24002
|
return Le.data.value !== null;
|
|
24003
24003
|
}).map(function(Le, Ne) {
|
|
24004
24004
|
return tt({}, Le, { index: Ne });
|
|
24005
24005
|
});
|
|
24006
|
-
}, [Rt]), Tt =
|
|
24006
|
+
}, [Rt]), Tt = z(function(Le) {
|
|
24007
24007
|
var Ne = Le.width, He = Le.height;
|
|
24008
24008
|
return !!J && !(F > 0 && Ne < F) && !(ie > 0 && He < ie);
|
|
24009
24009
|
}, [J, F, ie]), Ut = ae(function() {
|
|
@@ -24015,9 +24015,9 @@ var Fv, iK = function(e) {
|
|
|
24015
24015
|
});
|
|
24016
24016
|
}, [yt, a, Rt]), jt = ae(function() {
|
|
24017
24017
|
return ye.map(function(Le) {
|
|
24018
|
-
return [Le, _K({ bars: Le.dataFrom === "keys" ? Ut : Rt, direction: Le.direction, from: Le.dataFrom, groupMode:
|
|
24018
|
+
return [Le, _K({ bars: Le.dataFrom === "keys" ? Ut : Rt, direction: Le.direction, from: Le.dataFrom, groupMode: b, layout: x, legendLabel: ge, reverse: E })];
|
|
24019
24019
|
});
|
|
24020
|
-
}, [ye, Ut, Rt,
|
|
24020
|
+
}, [ye, Ut, Rt, b, x, ge, E]), on = ae(function() {
|
|
24021
24021
|
return function(Le, Ne, He, xt, Pt, It, $n) {
|
|
24022
24022
|
xt === void 0 && (xt = ot.layout), Pt === void 0 && (Pt = ot.groupMode);
|
|
24023
24023
|
var sn = [];
|
|
@@ -24043,8 +24043,8 @@ var Fv, iK = function(e) {
|
|
|
24043
24043
|
});
|
|
24044
24044
|
}
|
|
24045
24045
|
return sn;
|
|
24046
|
-
}(Rt, bt, $t, x,
|
|
24047
|
-
}, [Rt, bt, $t, x,
|
|
24046
|
+
}(Rt, bt, $t, x, b, De, kt);
|
|
24047
|
+
}, [Rt, bt, $t, x, b, De, kt]);
|
|
24048
24048
|
return { bars: Rt, barsWithValue: yn, xScale: bt, yScale: $t, getIndex: ct, getLabel: Qe, getTooltipLabel: Ot, formatValue: kt, getColor: Te, getBorderColor: nt, getLabelColor: At, shouldRenderBarLabel: Tt, hiddenIds: yt, toggleSerie: Ye, legendsWithData: jt, barTotals: on };
|
|
24049
24049
|
}, OK = function(e) {
|
|
24050
24050
|
var t = e.data, n = e.springConfig, r = e.animate, a = e.layout, i = a === void 0 ? ht.layout : a, o = gt();
|
|
@@ -24062,7 +24062,7 @@ var Fv, iK = function(e) {
|
|
|
24062
24062
|
return v.jsx(at.text, { x: s.x, y: s.y, fillOpacity: s.labelOpacity, style: tt({}, o.labels.text, { pointerEvents: "none", fill: o.text.fill }), fontWeight: "bold", fontSize: o.labels.text.fontSize, fontFamily: o.labels.text.fontFamily, textAnchor: i === "vertical" ? "middle" : "start", alignmentBaseline: i === "vertical" ? "alphabetic" : "middle", children: u.formattedValue }, u.key);
|
|
24063
24063
|
});
|
|
24064
24064
|
}, kK = ["isInteractive", "animate", "motionConfig", "theme", "renderWrapper"], $K = function(e) {
|
|
24065
|
-
var t = e.data, n = e.indexBy, r = e.keys, a = e.margin, i = e.width, o = e.height, s = e.groupMode, u = e.layout, c = e.reverse, l = e.minValue, d = e.maxValue, f = e.valueScale, h = e.indexScale, m = e.padding, p = e.innerPadding, g = e.axisTop,
|
|
24065
|
+
var t = e.data, n = e.indexBy, r = e.keys, a = e.margin, i = e.width, o = e.height, s = e.groupMode, u = e.layout, c = e.reverse, l = e.minValue, d = e.maxValue, f = e.valueScale, h = e.indexScale, m = e.padding, p = e.innerPadding, g = e.axisTop, y = e.axisRight, _ = e.axisBottom, b = _ === void 0 ? ht.axisBottom : _, w = e.axisLeft, x = w === void 0 ? ht.axisLeft : w, T = e.enableGridX, E = T === void 0 ? ht.enableGridX : T, M = e.enableGridY, P = M === void 0 ? ht.enableGridY : M, R = e.gridXValues, k = e.gridYValues, D = e.layers, C = D === void 0 ? ht.layers : D, A = e.barComponent, I = A === void 0 ? ht.barComponent : A, L = e.enableLabel, W = L === void 0 ? ht.enableLabel : L, q = e.label, N = e.labelSkipWidth, j = N === void 0 ? ht.labelSkipWidth : N, B = e.labelSkipHeight, Z = B === void 0 ? ht.labelSkipHeight : B, ne = e.labelTextColor, Y = e.markers, Q = Y === void 0 ? ht.markers : Y, G = e.colorBy, J = e.colors, re = e.defs, F = re === void 0 ? ht.defs : re, V = e.fill, ie = V === void 0 ? ht.fill : V, S = e.borderRadius, ye = S === void 0 ? ht.borderRadius : S, ge = e.borderWidth, he = ge === void 0 ? ht.borderWidth : ge, De = e.borderColor, Fe = e.annotations, yt = Fe === void 0 ? ht.annotations : Fe, wt = e.legendLabel, Ye = e.tooltipLabel, ct = e.valueFormat, Qe = e.isInteractive, Ot = Qe === void 0 ? ht.isInteractive : Qe, kt = e.tooltip, ut = kt === void 0 ? ht.tooltip : kt, Te = e.onClick, nt = e.onMouseEnter, At = e.onMouseLeave, an = e.legends, Rt = e.role, bt = Rt === void 0 ? ht.role : Rt, $t = e.ariaLabel, yn = e.ariaLabelledBy, Tt = e.ariaDescribedBy, Ut = e.isFocusable, jt = Ut === void 0 ? ht.isFocusable : Ut, on = e.barAriaLabel, Le = e.barAriaLabelledBy, Ne = e.barAriaDescribedBy, He = e.initialHiddenIds, xt = e.enableTotals, Pt = xt === void 0 ? ht.enableTotals : xt, It = e.totalsOffset, $n = It === void 0 ? ht.totalsOffset : It, sn = vn(), qt = sn.animate, bn = sn.config, zt = Dp(i, o, a), Jt = zt.outerWidth, En = zt.outerHeight, cn = zt.margin, Ge = zt.innerWidth, Be = zt.innerHeight, Pe = Y_({ indexBy: n, label: q, tooltipLabel: Ye, valueFormat: ct, colors: J, colorBy: G, borderColor: De, labelTextColor: ne, groupMode: s, layout: u, reverse: c, data: t, keys: r, minValue: l, maxValue: d, margin: cn, width: Ge, height: Be, padding: m, innerPadding: p, valueScale: f, indexScale: h, enableLabel: W, labelSkipWidth: j, labelSkipHeight: Z, legends: an, legendLabel: wt, initialHiddenIds: He, totalsOffset: $n }), it = Pe.bars, Qt = Pe.barsWithValue, Wt = Pe.xScale, O = Pe.yScale, K = Pe.getLabel, H = Pe.getTooltipLabel, X = Pe.getBorderColor, pe = Pe.getLabelColor, be = Pe.shouldRenderBarLabel, fe = Pe.toggleSerie, me = Pe.legendsWithData, Ce = Pe.barTotals, $e = Ca(Qt, { keys: function(ce) {
|
|
24066
24066
|
return ce.key;
|
|
24067
24067
|
}, from: function(ce) {
|
|
24068
24068
|
return tt({ borderColor: X(ce), color: ce.color, height: 0, labelColor: pe(ce), labelOpacity: 0, labelX: ce.width / 2, labelY: ce.height / 2, transform: "translate(" + ce.x + ", " + (ce.y + ce.height) + ")", width: ce.width }, u === "vertical" ? {} : { height: ce.height, transform: "translate(" + ce.x + ", " + ce.y + ")", width: 0 });
|
|
@@ -24073,14 +24073,14 @@ var Fv, iK = function(e) {
|
|
|
24073
24073
|
}, leave: function(ce) {
|
|
24074
24074
|
return tt({ borderColor: X(ce), color: ce.color, height: 0, labelColor: pe(ce), labelOpacity: 0, labelX: ce.width / 2, labelY: 0, transform: "translate(" + ce.x + ", " + (ce.y + ce.height) + ")", width: ce.width }, u === "vertical" ? {} : { labelX: 0, labelY: ce.height / 2, height: ce.height, transform: "translate(" + ce.x + ", " + ce.y + ")", width: 0 });
|
|
24075
24075
|
}, config: bn, immediate: !qt, initial: qt ? void 0 : null }), rt = ae(function() {
|
|
24076
|
-
return { borderRadius: ye, borderWidth: he, enableLabel:
|
|
24077
|
-
}, [ye, he,
|
|
24078
|
-
C.includes("annotations") && (St.annotations = v.jsx(iK, { bars: it, annotations: yt }, "annotations")), C.includes("axes") && (St.axes = v.jsx(Eq, { xScale: Wt, yScale: O, width: Ge, height: Be, top: g, right:
|
|
24076
|
+
return { borderRadius: ye, borderWidth: he, enableLabel: W, isInteractive: Ot, labelSkipWidth: j, labelSkipHeight: Z, onClick: Te, onMouseEnter: nt, onMouseLeave: At, getTooltipLabel: H, tooltip: ut, isFocusable: jt, ariaLabel: on, ariaLabelledBy: Le, ariaDescribedBy: Ne };
|
|
24077
|
+
}, [ye, he, W, H, Ot, Z, j, Te, nt, At, ut, jt, on, Le, Ne]), Dt = p_(F, it, ie, { dataKey: "data", targetKey: "data.fill" }), St = { annotations: null, axes: null, bars: null, grid: null, legends: null, markers: null, totals: null };
|
|
24078
|
+
C.includes("annotations") && (St.annotations = v.jsx(iK, { bars: it, annotations: yt }, "annotations")), C.includes("axes") && (St.axes = v.jsx(Eq, { xScale: Wt, yScale: O, width: Ge, height: Be, top: g, right: y, bottom: b, left: x }, "axes")), C.includes("bars") && (St.bars = v.jsx(dd, { children: $e(function(ce, _n) {
|
|
24079
24079
|
return mn(I, tt({}, rt, { bar: _n, style: ce, shouldRenderLabel: be(_n), label: K(_n.data) }));
|
|
24080
|
-
}) }, "bars")), C.includes("grid") && (St.grid = v.jsx(Mq, { width: Ge, height: Be, xScale: E ? Wt : null, yScale: P ? O : null, xValues: R, yValues:
|
|
24080
|
+
}) }, "bars")), C.includes("grid") && (St.grid = v.jsx(Mq, { width: Ge, height: Be, xScale: E ? Wt : null, yScale: P ? O : null, xValues: R, yValues: k }, "grid")), C.includes("legends") && (St.legends = v.jsx(oK, { width: Ge, height: Be, legends: me, toggleSerie: fe }, "legends")), C.includes("markers") && (St.markers = v.jsx(pz, { markers: Q, width: Ge, height: Be, xScale: Wt, yScale: O }, "markers")), C.includes("totals") && Pt && (St.totals = v.jsx(OK, { data: Ce, springConfig: bn, animate: qt, layout: u }, "totals"));
|
|
24081
24081
|
var xn = ae(function() {
|
|
24082
|
-
return tt({}, rt, { margin: cn, width: i, height: o, innerWidth: Ge, innerHeight: Be, bars: it, legendData: me, enableLabel:
|
|
24083
|
-
}, [rt, cn, i, o, Ge, Be, it, me,
|
|
24082
|
+
return tt({}, rt, { margin: cn, width: i, height: o, innerWidth: Ge, innerHeight: Be, bars: it, legendData: me, enableLabel: W, xScale: Wt, yScale: O, tooltip: ut, getTooltipLabel: H, onClick: Te, onMouseEnter: nt, onMouseLeave: At });
|
|
24083
|
+
}, [rt, cn, i, o, Ge, Be, it, me, W, Wt, O, ut, H, Te, nt, At]);
|
|
24084
24084
|
return v.jsx(Fp, { width: Jt, height: En, margin: cn, defs: Dt, role: bt, ariaLabel: $t, ariaLabelledBy: yn, ariaDescribedBy: Tt, isFocusable: jt, children: C.map(function(ce, _n) {
|
|
24085
24085
|
var Nt;
|
|
24086
24086
|
return typeof ce == "function" ? v.jsx(dd, { children: mn(ce, xn) }, _n) : (Nt = St == null ? void 0 : St[ce]) != null ? Nt : null;
|
|
@@ -24093,25 +24093,25 @@ var Fv, iK = function(e) {
|
|
|
24093
24093
|
return mz(a.x + t.left, a.y + t.top, a.width, a.height, n, r);
|
|
24094
24094
|
});
|
|
24095
24095
|
}, MK = function(e) {
|
|
24096
|
-
var t = e.data, n = e.indexBy, r = e.keys, a = e.margin, i = e.width, o = e.height, s = e.groupMode, u = e.layout, c = e.reverse, l = e.minValue, d = e.maxValue, f = e.valueScale, h = e.indexScale, m = e.padding, p = e.innerPadding, g = e.axisTop,
|
|
24096
|
+
var t = e.data, n = e.indexBy, r = e.keys, a = e.margin, i = e.width, o = e.height, s = e.groupMode, u = e.layout, c = e.reverse, l = e.minValue, d = e.maxValue, f = e.valueScale, h = e.indexScale, m = e.padding, p = e.innerPadding, g = e.axisTop, y = e.axisRight, _ = e.axisBottom, b = _ === void 0 ? Ht.axisBottom : _, w = e.axisLeft, x = w === void 0 ? Ht.axisLeft : w, T = e.enableGridX, E = T === void 0 ? Ht.enableGridX : T, M = e.enableGridY, P = M === void 0 ? Ht.enableGridY : M, R = e.gridXValues, k = e.gridYValues, D = e.layers, C = D === void 0 ? Ht.layers : D, A = e.renderBar, I = A === void 0 ? function(H, X) {
|
|
24097
24097
|
var pe = X.bar, be = pe.color, fe = pe.height, me = pe.width, Ce = pe.x, $e = pe.y, rt = X.borderColor, Dt = X.borderRadius, St = X.borderWidth, xn = X.label, ce = X.labelColor, _n = X.shouldRenderLabel;
|
|
24098
24098
|
if (H.fillStyle = be, St > 0 && (H.strokeStyle = rt, H.lineWidth = St), H.beginPath(), Dt > 0) {
|
|
24099
24099
|
var Nt = Math.min(Dt, fe);
|
|
24100
24100
|
H.moveTo(Ce + Nt, $e), H.lineTo(Ce + me - Nt, $e), H.quadraticCurveTo(Ce + me, $e, Ce + me, $e + Nt), H.lineTo(Ce + me, $e + fe - Nt), H.quadraticCurveTo(Ce + me, $e + fe, Ce + me - Nt, $e + fe), H.lineTo(Ce + Nt, $e + fe), H.quadraticCurveTo(Ce, $e + fe, Ce, $e + fe - Nt), H.lineTo(Ce, $e + Nt), H.quadraticCurveTo(Ce, $e, Ce + Nt, $e), H.closePath();
|
|
24101
24101
|
} else H.rect(Ce, $e, me, fe);
|
|
24102
24102
|
H.fill(), St > 0 && H.stroke(), _n && (H.textBaseline = "middle", H.textAlign = "center", H.fillStyle = ce, H.fillText(xn, Ce + me / 2, $e + fe / 2));
|
|
24103
|
-
} : A, L = e.enableLabel,
|
|
24103
|
+
} : A, L = e.enableLabel, W = L === void 0 ? Ht.enableLabel : L, q = e.label, N = e.labelSkipWidth, j = N === void 0 ? Ht.labelSkipWidth : N, B = e.labelSkipHeight, Z = B === void 0 ? Ht.labelSkipHeight : B, ne = e.labelTextColor, Y = e.colorBy, Q = e.colors, G = e.borderRadius, J = G === void 0 ? Ht.borderRadius : G, re = e.borderWidth, F = re === void 0 ? Ht.borderWidth : re, V = e.borderColor, ie = e.annotations, S = ie === void 0 ? Ht.annotations : ie, ye = e.legendLabel, ge = e.tooltipLabel, he = e.valueFormat, De = e.isInteractive, Fe = De === void 0 ? Ht.isInteractive : De, yt = e.tooltip, wt = yt === void 0 ? Ht.tooltip : yt, Ye = e.onClick, ct = e.onMouseEnter, Qe = e.onMouseLeave, Ot = e.legends, kt = e.pixelRatio, ut = kt === void 0 ? Ht.pixelRatio : kt, Te = e.canvasRef, nt = e.enableTotals, At = nt === void 0 ? Ht.enableTotals : nt, an = e.totalsOffset, Rt = an === void 0 ? Ht.totalsOffset : an, bt = we(null), $t = gt(), yn = Dp(i, o, a), Tt = yn.margin, Ut = yn.innerWidth, jt = yn.innerHeight, on = yn.outerWidth, Le = yn.outerHeight, Ne = Y_({ indexBy: n, label: q, tooltipLabel: ge, valueFormat: he, colors: Q, colorBy: Y, borderColor: V, labelTextColor: ne, groupMode: s, layout: u, reverse: c, data: t, keys: r, minValue: l, maxValue: d, margin: Tt, width: Ut, height: jt, padding: m, innerPadding: p, valueScale: f, indexScale: h, enableLabel: W, labelSkipWidth: j, labelSkipHeight: Z, legends: Ot, legendLabel: ye, totalsOffset: Rt }), He = Ne.bars, xt = Ne.barsWithValue, Pt = Ne.xScale, It = Ne.yScale, $n = Ne.getLabel, sn = Ne.getTooltipLabel, qt = Ne.getBorderColor, bn = Ne.getLabelColor, zt = Ne.shouldRenderBarLabel, Jt = Ne.legendsWithData, En = Ne.barTotals, cn = Lh(), Ge = cn.showTooltipFromEvent, Be = cn.hideTooltip, Pe = XZ({ annotations: B_({ data: He, annotations: S, getPosition: function(H) {
|
|
24104
24104
|
return { x: H.x, y: H.y };
|
|
24105
24105
|
}, getDimensions: function(H) {
|
|
24106
24106
|
var X = H.width, pe = H.height;
|
|
24107
24107
|
return { width: X, height: pe, size: Math.max(X, pe) };
|
|
24108
24108
|
} }) }), it = ae(function() {
|
|
24109
|
-
return { borderRadius: J, borderWidth: F, isInteractive: Fe, isFocusable: !1, labelSkipWidth: j, labelSkipHeight: Z, margin: Tt, width: i, height: o, innerWidth: Ut, innerHeight: jt, bars: He, legendData: Jt, enableLabel:
|
|
24110
|
-
}, [J, F, Fe, j, Z, Tt, i, o, Ut, jt, He, Jt,
|
|
24109
|
+
return { borderRadius: J, borderWidth: F, isInteractive: Fe, isFocusable: !1, labelSkipWidth: j, labelSkipHeight: Z, margin: Tt, width: i, height: o, innerWidth: Ut, innerHeight: jt, bars: He, legendData: Jt, enableLabel: W, xScale: Pt, yScale: It, tooltip: wt, getTooltipLabel: sn, onClick: Ye, onMouseEnter: ct, onMouseLeave: Qe };
|
|
24110
|
+
}, [J, F, Fe, j, Z, Tt, i, o, Ut, jt, He, Jt, W, Pt, It, wt, sn, Ye, ct, Qe]), Qt = ol(he);
|
|
24111
24111
|
ke(function() {
|
|
24112
24112
|
var H, X = (H = bt.current) == null ? void 0 : H.getContext("2d");
|
|
24113
24113
|
bt.current && X && (bt.current.width = on * ut, bt.current.height = Le * ut, X.scale(ut, ut), X.fillStyle = $t.background, X.fillRect(0, 0, on, Le), X.translate(Tt.left, Tt.top), C.forEach(function(pe) {
|
|
24114
|
-
pe === "grid" ? typeof $t.grid.line.strokeWidth == "number" && $t.grid.line.strokeWidth > 0 && (X.lineWidth = $t.grid.line.strokeWidth, X.strokeStyle = $t.grid.line.stroke, E && $v(X, { width: Ut, height: jt, scale: Pt, axis: "x", values: R }), P && $v(X, { width: Ut, height: jt, scale: It, axis: "y", values:
|
|
24114
|
+
pe === "grid" ? typeof $t.grid.line.strokeWidth == "number" && $t.grid.line.strokeWidth > 0 && (X.lineWidth = $t.grid.line.strokeWidth, X.strokeStyle = $t.grid.line.stroke, E && $v(X, { width: Ut, height: jt, scale: Pt, axis: "x", values: R }), P && $v(X, { width: Ut, height: jt, scale: It, axis: "y", values: k })) : pe === "axes" ? Rq(X, { xScale: Pt, yScale: It, width: Ut, height: jt, top: g, right: y, bottom: b, left: x, theme: $t }) : pe === "bars" ? xt.forEach(function(be) {
|
|
24115
24115
|
I(X, { bar: be, borderColor: qt(be), borderRadius: J, borderWidth: F, label: $n(be.data), labelColor: bn(be), shouldRenderLabel: zt(be) });
|
|
24116
24116
|
}) : pe === "legends" ? Jt.forEach(function(be) {
|
|
24117
24117
|
var fe = be[0], me = be[1];
|
|
@@ -24122,19 +24122,19 @@ var Fv, iK = function(e) {
|
|
|
24122
24122
|
});
|
|
24123
24123
|
}(X, En, $t, u) : typeof pe == "function" && pe(X, it);
|
|
24124
24124
|
}), X.save());
|
|
24125
|
-
}, [
|
|
24126
|
-
var Wt =
|
|
24125
|
+
}, [b, x, y, g, xt, J, F, Pe, E, P, qt, $n, bn, R, k, s, o, jt, Ut, it, C, u, Jt, Tt.left, Tt.top, Le, on, ut, I, Pt, It, c, zt, $t, i, En, At, Qt]);
|
|
24126
|
+
var Wt = z(function(H) {
|
|
24127
24127
|
if (He && bt.current) {
|
|
24128
24128
|
var X = od(bt.current, H), pe = X[0], be = X[1], fe = ld(He, Tt, pe, be);
|
|
24129
24129
|
fe !== void 0 ? (Ge(mn(wt, tt({}, fe.data, { color: fe.color, label: fe.label, value: Number(fe.data.value) })), H), H.type === "mouseenter" && (ct == null || ct(fe.data, H))) : Be();
|
|
24130
24130
|
}
|
|
24131
|
-
}, [Be, Tt, ct, He, Ge, wt]), O =
|
|
24131
|
+
}, [Be, Tt, ct, He, Ge, wt]), O = z(function(H) {
|
|
24132
24132
|
if (He && bt.current) {
|
|
24133
24133
|
Be();
|
|
24134
24134
|
var X = od(bt.current, H), pe = X[0], be = X[1], fe = ld(He, Tt, pe, be);
|
|
24135
24135
|
fe && (Qe == null || Qe(fe.data, H));
|
|
24136
24136
|
}
|
|
24137
|
-
}, [Be, Tt, Qe, He]), K =
|
|
24137
|
+
}, [Be, Tt, Qe, He]), K = z(function(H) {
|
|
24138
24138
|
if (He && bt.current) {
|
|
24139
24139
|
var X = od(bt.current, H), pe = X[0], be = X[1], fe = ld(He, Tt, pe, be);
|
|
24140
24140
|
fe !== void 0 && (Ye == null || Ye(tt({}, fe.data, { color: fe.color }), H));
|
|
@@ -24211,7 +24211,7 @@ export {
|
|
|
24211
24211
|
QK as aJ,
|
|
24212
24212
|
ZK as aK,
|
|
24213
24213
|
IX as aL,
|
|
24214
|
-
|
|
24214
|
+
$ as aM,
|
|
24215
24215
|
aX as aN,
|
|
24216
24216
|
uX as aO,
|
|
24217
24217
|
oX as aP,
|