backflow-ui-renderer 0.1.68 → 0.1.70
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/index.cjs +20 -20
- package/dist/index.js +768 -764
- package/dist/renderer/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@ var RI = Object.defineProperty;
|
|
|
2
2
|
var LI = (e, t, n) => t in e ? RI(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Gg = (e, t, n) => LI(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as Er from "react";
|
|
5
|
-
import x, { createContext as Fr, useRef as Zn, useId as
|
|
5
|
+
import x, { createContext as Fr, useRef as Zn, useId as Mb, useContext as rn, useInsertionEffect as YT, useCallback as mf, useMemo as Uo, useEffect as Cr, Children as Ds, isValidElement as wi, useLayoutEffect as DI, useState as Bs, forwardRef as sl, Fragment as ZT, createElement as Ob, Component as kb, PureComponent as Si, useImperativeHandle as gf, cloneElement as Dn } from "react";
|
|
6
6
|
import { FaPlay as jI } from "react-icons/fa";
|
|
7
7
|
import { FiX as KT, FiUserX as BI, FiUser as zI, FiUpload as FI, FiTrash2 as WI, FiMoon as VI, FiSun as UI, FiShare2 as HI, FiSend as qI, FiSearch as GI, FiSave as YI, FiRotateCw as ZI, FiRefreshCw as XT, FiPlus as KI, FiPlay as XI, FiPhone as JI, FiPaperclip as QI, FiOctagon as tN, FiMinimize2 as eN, FiMessageSquare as nN, FiMaximize2 as rN, FiMail as iN, FiLogOut as oN, FiWifi as sN, FiInfo as aN, FiImage as lN, FiHeart as cN, FiFilm as uN, FiEyeOff as hN, FiEye as fN, FiCpu as dN, FiCornerUpLeft as pN, FiCopy as mN, FiClock as gN, FiChevronDown as yN, FiCheckSquare as vN, FiCheckCircle as bN, FiCheck as xN, FiCalendar as wN, FiArrowRight as _N, FiArrowLeft as SN, FiArchive as PN, FiAlertTriangle as AN, FiActivity as EN, FiMenu as TN } from "react-icons/fi";
|
|
8
8
|
import { LuWine as CN, LuUtensils as MN, LuTent as ON, LuTable as kN, LuSprout as $N, LuSofa as IN, LuShieldCheck as NN, LuRuler as RN, LuPartyPopper as LN, LuPinOff as DN, LuPin as jN, LuMapPin as BN, LuLeaf as zN, LuGift as FN, LuDroplets as WN, LuCookingPot as VN, LuCalculator as UN, LuArmchair as HN, LuArrowUpRight as qN, LuArrowDown as GN, LuSparkles as YN } from "react-icons/lu";
|
|
9
9
|
import { jsx as Be, Fragment as ZN, jsxs as La } from "react/jsx-runtime";
|
|
10
10
|
import { createFlowDiagram as KN, FlowDiagram as XN } from "@squeed/flow-sdk";
|
|
11
11
|
import { createPortal as al } from "react-dom";
|
|
12
|
-
var vi = "INUMBER", eu = "IOP1", nu = "IOP2", ru = "IOP3", Ho = "IVAR", Za = "IVARNAME", pc = "IFUNCALL", Sm = "IFUNDEF", Br = "IEXPR", $
|
|
12
|
+
var vi = "INUMBER", eu = "IOP1", nu = "IOP2", ru = "IOP3", Ho = "IVAR", Za = "IVARNAME", pc = "IFUNCALL", Sm = "IFUNDEF", Br = "IEXPR", $b = "IEXPREVAL", ll = "IMEMBER", Pm = "IENDSTATEMENT", mc = "IARRAY";
|
|
13
13
|
function Me(e, t) {
|
|
14
14
|
this.type = e, this.value = t ?? 0;
|
|
15
15
|
}
|
|
@@ -89,7 +89,7 @@ function QT(e, t, n) {
|
|
|
89
89
|
}
|
|
90
90
|
function Na(e, t, n) {
|
|
91
91
|
var r = [], i, o, s, a, l, h;
|
|
92
|
-
if (
|
|
92
|
+
if (Ib(e))
|
|
93
93
|
return Io(e, n);
|
|
94
94
|
for (var u = e.length, f = 0; f < u; f++) {
|
|
95
95
|
var p = e[f], g = p.type;
|
|
@@ -136,7 +136,7 @@ function Na(e, t, n) {
|
|
|
136
136
|
}());
|
|
137
137
|
else if (g === Br)
|
|
138
138
|
r.push(JN(p, t));
|
|
139
|
-
else if (g === $
|
|
139
|
+
else if (g === $b)
|
|
140
140
|
r.push(p);
|
|
141
141
|
else if (g === ll)
|
|
142
142
|
i = r.pop(), r.push(i[p.value]);
|
|
@@ -154,20 +154,20 @@ function Na(e, t, n) {
|
|
|
154
154
|
return r[0] === 0 ? 0 : Io(r[0], n);
|
|
155
155
|
}
|
|
156
156
|
function JN(e, t, n) {
|
|
157
|
-
return
|
|
158
|
-
type: $
|
|
157
|
+
return Ib(e) ? e : {
|
|
158
|
+
type: $b,
|
|
159
159
|
value: function(r) {
|
|
160
160
|
return Na(e.value, t, r);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return e && e.type === $
|
|
164
|
+
function Ib(e) {
|
|
165
|
+
return e && e.type === $b;
|
|
166
166
|
}
|
|
167
167
|
function Io(e, t) {
|
|
168
|
-
return
|
|
168
|
+
return Ib(e) ? e.value(t) : e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Nb(e, t) {
|
|
171
171
|
for (var n = [], r, i, o, s, a, l, h = 0; h < e.length; h++) {
|
|
172
172
|
var u = e[h], f = u.type;
|
|
173
173
|
if (f === vi)
|
|
@@ -198,7 +198,7 @@ function N0(e, t) {
|
|
|
198
198
|
a.unshift(n.pop());
|
|
199
199
|
n.push("[" + a.join(", ") + "]");
|
|
200
200
|
} else if (f === Br)
|
|
201
|
-
n.push("(" +
|
|
201
|
+
n.push("(" + Nb(u.value, t) + ")");
|
|
202
202
|
else if (f !== Pm) throw new Error("invalid Expression");
|
|
203
203
|
}
|
|
204
204
|
return n.length > 1 && (t ? n = [n.join(",")] : n = [n.join(";")]), String(n[0]);
|
|
@@ -212,11 +212,11 @@ function Zl(e, t) {
|
|
|
212
212
|
return !0;
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Rb(e, t, n) {
|
|
216
216
|
n = n || {};
|
|
217
217
|
for (var r = !!n.withMembers, i = null, o = 0; o < e.length; o++) {
|
|
218
218
|
var s = e[o];
|
|
219
|
-
s.type === Ho || s.type === Za ? !r && !Zl(t, s.value) ? t.push(s.value) : (i !== null && (Zl(t, i) || t.push(i)), i = s.value) : s.type === ll && r && i !== null ? i += "." + s.value : s.type === Br ?
|
|
219
|
+
s.type === Ho || s.type === Za ? !r && !Zl(t, s.value) ? t.push(s.value) : (i !== null && (Zl(t, i) || t.push(i)), i = s.value) : s.type === ll && r && i !== null ? i += "." + s.value : s.type === Br ? Rb(s.value, t, n) : i !== null && (Zl(t, i) || t.push(i), i = null);
|
|
220
220
|
}
|
|
221
221
|
i !== null && !Zl(t, i) && t.push(i);
|
|
222
222
|
}
|
|
@@ -233,29 +233,29 @@ Di.prototype.evaluate = function(e) {
|
|
|
233
233
|
return e = e || {}, Na(this.tokens, this, e);
|
|
234
234
|
};
|
|
235
235
|
Di.prototype.toString = function() {
|
|
236
|
-
return
|
|
236
|
+
return Nb(this.tokens, !1);
|
|
237
237
|
};
|
|
238
238
|
Di.prototype.symbols = function(e) {
|
|
239
239
|
e = e || {};
|
|
240
240
|
var t = [];
|
|
241
|
-
return
|
|
241
|
+
return Rb(this.tokens, t, e), t;
|
|
242
242
|
};
|
|
243
243
|
Di.prototype.variables = function(e) {
|
|
244
244
|
e = e || {};
|
|
245
245
|
var t = [];
|
|
246
|
-
|
|
246
|
+
Rb(this.tokens, t, e);
|
|
247
247
|
var n = this.functions;
|
|
248
248
|
return t.filter(function(r) {
|
|
249
249
|
return !(r in n);
|
|
250
250
|
});
|
|
251
251
|
};
|
|
252
252
|
Di.prototype.toJSFunction = function(e, t) {
|
|
253
|
-
var n = this, r = new Function(e, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " +
|
|
253
|
+
var n = this, r = new Function(e, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Nb(this.simplify(t).tokens, !0) + "; }");
|
|
254
254
|
return function() {
|
|
255
255
|
return r.apply(n, arguments);
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
-
var Ph = "TEOF", nn = "TOP", Em = "TNUMBER", tC = "TSTRING", qo = "TPAREN", gc = "TBRACKET", Tm = "TCOMMA",
|
|
258
|
+
var Ph = "TEOF", nn = "TOP", Em = "TNUMBER", tC = "TSTRING", qo = "TPAREN", gc = "TBRACKET", Tm = "TCOMMA", Lb = "TNAME", Db = "TSEMICOLON";
|
|
259
259
|
function eC(e, t, n) {
|
|
260
260
|
this.type = e, this.value = t, this.index = n;
|
|
261
261
|
}
|
|
@@ -310,7 +310,7 @@ yn.prototype.isComma = function() {
|
|
|
310
310
|
};
|
|
311
311
|
yn.prototype.isSemicolon = function() {
|
|
312
312
|
var e = this.expression.charAt(this.pos);
|
|
313
|
-
return e === ";" ? (this.current = this.newToken(
|
|
313
|
+
return e === ";" ? (this.current = this.newToken(Db, ";"), this.pos++, !0) : !1;
|
|
314
314
|
};
|
|
315
315
|
yn.prototype.isConst = function() {
|
|
316
316
|
for (var e = this.pos, t = e; t < this.expression.length; t++) {
|
|
@@ -352,7 +352,7 @@ yn.prototype.isName = function() {
|
|
|
352
352
|
}
|
|
353
353
|
if (n) {
|
|
354
354
|
var i = this.expression.substring(e, t);
|
|
355
|
-
return this.current = this.newToken(
|
|
355
|
+
return this.current = this.newToken(Lb, i), this.pos += i.length, !0;
|
|
356
356
|
}
|
|
357
357
|
return !1;
|
|
358
358
|
};
|
|
@@ -524,7 +524,7 @@ hn.prototype.parseAtom = function(e) {
|
|
|
524
524
|
function n(i) {
|
|
525
525
|
return i.value in t;
|
|
526
526
|
}
|
|
527
|
-
if (this.accept(
|
|
527
|
+
if (this.accept(Lb) || this.accept(nn, n))
|
|
528
528
|
e.push(new Me(Ho, this.current.value));
|
|
529
529
|
else if (this.accept(Em))
|
|
530
530
|
e.push(new Me(vi, this.current.value));
|
|
@@ -551,7 +551,7 @@ hn.prototype.pushExpression = function(e, t) {
|
|
|
551
551
|
e.push(t[n]);
|
|
552
552
|
};
|
|
553
553
|
hn.prototype.parseUntilEndStatement = function(e, t) {
|
|
554
|
-
return this.accept(
|
|
554
|
+
return this.accept(Db) ? (this.nextToken && this.nextToken.type !== Ph && !(this.nextToken.type === qo && this.nextToken.value === ")") && t.push(new Me(Pm)), this.nextToken.type !== Ph && this.parseExpression(t), e.push(new Me(Br, t)), !0) : !1;
|
|
555
555
|
};
|
|
556
556
|
hn.prototype.parseArrayList = function(e) {
|
|
557
557
|
for (var t = 0; !this.accept(gc, "]"); )
|
|
@@ -626,7 +626,7 @@ hn.prototype.parseFactor = function(e) {
|
|
|
626
626
|
if (this.nextToken.type === qo && this.nextToken.value === "(") {
|
|
627
627
|
this.restore(), this.parseExponential(e);
|
|
628
628
|
return;
|
|
629
|
-
} else if (this.nextToken.type ===
|
|
629
|
+
} else if (this.nextToken.type === Db || this.nextToken.type === Tm || this.nextToken.type === Ph || this.nextToken.type === qo && this.nextToken.value === ")") {
|
|
630
630
|
this.restore(), this.parseAtom(e);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
@@ -673,7 +673,7 @@ hn.prototype.parseMemberExpression = function(e) {
|
|
|
673
673
|
if (t.value === ".") {
|
|
674
674
|
if (!this.allowMemberAccess)
|
|
675
675
|
throw new Error('unexpected ".", member access is not permitted');
|
|
676
|
-
this.expect(
|
|
676
|
+
this.expect(Lb), e.push(new Me(ll, this.current.value));
|
|
677
677
|
} else if (t.value === "[") {
|
|
678
678
|
if (!this.tokens.isOperatorEnabled("["))
|
|
679
679
|
throw new Error('unexpected "[]", arrays are disabled');
|
|
@@ -761,7 +761,7 @@ function TR(e) {
|
|
|
761
761
|
return Math.random() * (e || 1);
|
|
762
762
|
}
|
|
763
763
|
function Kw(e) {
|
|
764
|
-
return
|
|
764
|
+
return jb(e + 1);
|
|
765
765
|
}
|
|
766
766
|
function CR(e) {
|
|
767
767
|
return isFinite(e) && e === Math.round(e);
|
|
@@ -783,7 +783,7 @@ var MR = 4.7421875, Yg = [
|
|
|
783
783
|
-26190838401581408e-21,
|
|
784
784
|
36899182659531625e-22
|
|
785
785
|
];
|
|
786
|
-
function
|
|
786
|
+
function jb(e) {
|
|
787
787
|
var t, n;
|
|
788
788
|
if (CR(e)) {
|
|
789
789
|
if (e <= 0)
|
|
@@ -795,7 +795,7 @@ function j0(e) {
|
|
|
795
795
|
return i === 0 && (i = 1), i;
|
|
796
796
|
}
|
|
797
797
|
if (e < 0.5)
|
|
798
|
-
return Math.PI / (Math.sin(Math.PI * e) *
|
|
798
|
+
return Math.PI / (Math.sin(Math.PI * e) * jb(1 - e));
|
|
799
799
|
if (e >= 171.35)
|
|
800
800
|
return 1 / 0;
|
|
801
801
|
if (e > 85) {
|
|
@@ -955,7 +955,7 @@ function cl(e) {
|
|
|
955
955
|
pow: Math.pow,
|
|
956
956
|
atan2: Math.atan2,
|
|
957
957
|
if: Jw,
|
|
958
|
-
gamma:
|
|
958
|
+
gamma: jb,
|
|
959
959
|
roundTo: kR,
|
|
960
960
|
map: LR,
|
|
961
961
|
fold: DR,
|
|
@@ -1045,12 +1045,12 @@ function YR(e, t) {
|
|
|
1045
1045
|
(r) => t.exact ? r === n : r.includes(n)
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Bb(e, t = document) {
|
|
1049
1049
|
const n = e.role ? GR[e.role] || e.role : "*";
|
|
1050
1050
|
return Array.from(t.querySelectorAll(n)).filter((r) => e.name && r.getAttribute("name") !== e.name ? !1 : YR(r, e));
|
|
1051
1051
|
}
|
|
1052
1052
|
function Ka(e, t = document) {
|
|
1053
|
-
return
|
|
1053
|
+
return Bb(e, t)[e.index ?? 0] || null;
|
|
1054
1054
|
}
|
|
1055
1055
|
let Hs = !1, yf = !1;
|
|
1056
1056
|
function ZR(e) {
|
|
@@ -1312,7 +1312,7 @@ function nL() {
|
|
|
1312
1312
|
if (window.WebSocket = new Proxy(r, {
|
|
1313
1313
|
construct(i, o) {
|
|
1314
1314
|
const s = new i(...o);
|
|
1315
|
-
if (!
|
|
1315
|
+
if (!zb(s) || typeof s.send != "function") return s;
|
|
1316
1316
|
const a = String(o[0]);
|
|
1317
1317
|
s.addEventListener(
|
|
1318
1318
|
"open",
|
|
@@ -1393,7 +1393,7 @@ async function rL(e) {
|
|
|
1393
1393
|
return r ? e.submit ? (t = r.sendReport) == null ? void 0 : t.call(r) : (n = r.getReport) == null ? void 0 : n.call(r) : { error: "UI diagnostics unavailable" };
|
|
1394
1394
|
}
|
|
1395
1395
|
case "find":
|
|
1396
|
-
return
|
|
1396
|
+
return Bb(e.matcher || {}).map((r) => ({
|
|
1397
1397
|
tag: r.tagName.toLowerCase(),
|
|
1398
1398
|
text: yv(r.textContent)
|
|
1399
1399
|
}));
|
|
@@ -1405,7 +1405,7 @@ async function rL(e) {
|
|
|
1405
1405
|
return { error: `Unknown command: ${e.command}` };
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function zb(e) {
|
|
1409
1409
|
return !!e && typeof e.addEventListener == "function";
|
|
1410
1410
|
}
|
|
1411
1411
|
function iL(e, t, n) {
|
|
@@ -1417,7 +1417,7 @@ function iL(e, t, n) {
|
|
|
1417
1417
|
eo = null;
|
|
1418
1418
|
return;
|
|
1419
1419
|
}
|
|
1420
|
-
if (!
|
|
1420
|
+
if (!zb(r) || typeof r.send != "function") {
|
|
1421
1421
|
eo = null;
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
@@ -1479,7 +1479,7 @@ function oL() {
|
|
|
1479
1479
|
drag: oC,
|
|
1480
1480
|
getDom: sC,
|
|
1481
1481
|
evaluate: aC,
|
|
1482
|
-
find:
|
|
1482
|
+
find: Bb,
|
|
1483
1483
|
getLog: lC,
|
|
1484
1484
|
clearLog: cC,
|
|
1485
1485
|
isEnabled: XR
|
|
@@ -2263,9 +2263,9 @@ function LL(e) {
|
|
|
2263
2263
|
m(N[2].trim(), E, O, I), m(N[3].trim(), E, O, I);
|
|
2264
2264
|
return;
|
|
2265
2265
|
}
|
|
2266
|
-
const B = w.split(";").map((
|
|
2266
|
+
const B = w.split(";").map((Y) => Y.trim()).filter(Boolean);
|
|
2267
2267
|
if (B.length > 1) {
|
|
2268
|
-
for (const
|
|
2268
|
+
for (const Y of B) m(Y, E, O, I);
|
|
2269
2269
|
return;
|
|
2270
2270
|
}
|
|
2271
2271
|
const D = B[0] ?? "";
|
|
@@ -2296,13 +2296,13 @@ function LL(e) {
|
|
|
2296
2296
|
I
|
|
2297
2297
|
);
|
|
2298
2298
|
if (R === "go_to_step") {
|
|
2299
|
-
const
|
|
2300
|
-
if (
|
|
2301
|
-
!i.has(
|
|
2299
|
+
const Y = U.split("?")[0].trim();
|
|
2300
|
+
if (Y === "/" || Y.includes("{{")) return;
|
|
2301
|
+
!i.has(Y) && !o.has(Y) && n(
|
|
2302
2302
|
"error",
|
|
2303
2303
|
"SCENE_MISSING",
|
|
2304
2304
|
E,
|
|
2305
|
-
`go_to_step:${
|
|
2305
|
+
`go_to_step:${Y} has no step or route`,
|
|
2306
2306
|
I
|
|
2307
2307
|
);
|
|
2308
2308
|
return;
|
|
@@ -2517,15 +2517,15 @@ function jL({
|
|
|
2517
2517
|
}
|
|
2518
2518
|
const q = F.where.match(/^widget:(.+)$/);
|
|
2519
2519
|
if (!q) return null;
|
|
2520
|
-
const
|
|
2520
|
+
const Y = typeof CSS < "u" && CSS.escape ? CSS.escape(`-${q[1]}-`) : `-${q[1]}-`.replace(/(["\\])/g, "\\$1");
|
|
2521
2521
|
return document.querySelector(
|
|
2522
|
-
`[data-component-key*="${
|
|
2522
|
+
`[data-component-key*="${Y}"]`
|
|
2523
2523
|
);
|
|
2524
2524
|
}, P = (F, q) => {
|
|
2525
2525
|
F.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2526
|
-
const
|
|
2526
|
+
const Y = F.style.outline, et = F.style.outlineOffset;
|
|
2527
2527
|
F.style.outline = `3px solid ${Du[q]}`, F.style.outlineOffset = "3px", window.setTimeout(() => {
|
|
2528
|
-
F.style.outline =
|
|
2528
|
+
F.style.outline = Y, F.style.outlineOffset = et;
|
|
2529
2529
|
}, 1800);
|
|
2530
2530
|
}, T = (F) => {
|
|
2531
2531
|
var st, H;
|
|
@@ -2534,16 +2534,16 @@ function jL({
|
|
|
2534
2534
|
P(q, F.level);
|
|
2535
2535
|
return;
|
|
2536
2536
|
}
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2537
|
+
const Y = F.where.match(/^modal:([^\s]+)/);
|
|
2538
|
+
Y && ((st = t.openModal) == null || st.call(t, Y[1])), F.where && !F.where.includes(":") && F.where !== "workflow" && F.where !== t.sceneId && ((H = t.navigateToScene) == null || H.call(t, F.where)), window.setTimeout(() => {
|
|
2539
2539
|
const J = S(F);
|
|
2540
2540
|
J && P(J, F.level);
|
|
2541
2541
|
}, 80);
|
|
2542
2542
|
}, w = x.useCallback(() => {
|
|
2543
2543
|
const F = h.sources.map((q) => {
|
|
2544
|
-
var
|
|
2544
|
+
var Y;
|
|
2545
2545
|
for (const et of q.lookup || [])
|
|
2546
|
-
if (((
|
|
2546
|
+
if (((Y = t.registry) == null ? void 0 : Y[et]) !== void 0)
|
|
2547
2547
|
return {
|
|
2548
2548
|
...q,
|
|
2549
2549
|
loaded: !0,
|
|
@@ -2644,8 +2644,8 @@ function jL({
|
|
|
2644
2644
|
const O = s === "all" ? l : l.filter((F) => F.level === s), I = () => {
|
|
2645
2645
|
const F = w(), q = new Blob([JSON.stringify(F, null, 2)], {
|
|
2646
2646
|
type: "application/json"
|
|
2647
|
-
}),
|
|
2648
|
-
et.href =
|
|
2647
|
+
}), Y = URL.createObjectURL(q), et = document.createElement("a");
|
|
2648
|
+
et.href = Y, et.download = "diagnostics.json", et.click(), URL.revokeObjectURL(Y);
|
|
2649
2649
|
}, N = (F, q) => x.createElement(
|
|
2650
2650
|
"button",
|
|
2651
2651
|
{
|
|
@@ -2869,12 +2869,12 @@ function BL(e, t) {
|
|
|
2869
2869
|
ctx: t
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
|
-
const
|
|
2873
|
-
function
|
|
2872
|
+
const Fb = Fr({});
|
|
2873
|
+
function Wb(e) {
|
|
2874
2874
|
const t = Zn(null);
|
|
2875
2875
|
return t.current === null && (t.current = e()), t.current;
|
|
2876
2876
|
}
|
|
2877
|
-
const Cm = Fr(null),
|
|
2877
|
+
const Cm = Fr(null), Vb = Fr({
|
|
2878
2878
|
transformPagePoint: (e) => e,
|
|
2879
2879
|
isStatic: !1,
|
|
2880
2880
|
reducedMotion: "never"
|
|
@@ -2898,12 +2898,12 @@ class zL extends Er.Component {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
}
|
|
2900
2900
|
function FL({ children: e, isPresent: t }) {
|
|
2901
|
-
const n =
|
|
2901
|
+
const n = Mb(), r = Zn(null), i = Zn({
|
|
2902
2902
|
width: 0,
|
|
2903
2903
|
height: 0,
|
|
2904
2904
|
top: 0,
|
|
2905
2905
|
left: 0
|
|
2906
|
-
}), { nonce: o } = rn(
|
|
2906
|
+
}), { nonce: o } = rn(Vb);
|
|
2907
2907
|
return YT(() => {
|
|
2908
2908
|
const { width: s, height: a, top: l, left: h } = i.current;
|
|
2909
2909
|
if (t || !r.current || !s || !a)
|
|
@@ -2924,7 +2924,7 @@ function FL({ children: e, isPresent: t }) {
|
|
|
2924
2924
|
}, [t]), Be(zL, { isPresent: t, childRef: r, sizeRef: i, children: Er.cloneElement(e, { ref: r }) });
|
|
2925
2925
|
}
|
|
2926
2926
|
const WL = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: s }) => {
|
|
2927
|
-
const a =
|
|
2927
|
+
const a = Wb(VL), l = Mb(), h = mf((f) => {
|
|
2928
2928
|
a.set(f, !0);
|
|
2929
2929
|
for (const p of a.values())
|
|
2930
2930
|
if (!p)
|
|
@@ -2959,7 +2959,7 @@ function fC(e = !0) {
|
|
|
2959
2959
|
const t = rn(Cm);
|
|
2960
2960
|
if (t === null)
|
|
2961
2961
|
return [!0, null];
|
|
2962
|
-
const { isPresent: n, onExitComplete: r, register: i } = t, o =
|
|
2962
|
+
const { isPresent: n, onExitComplete: r, register: i } = t, o = Mb();
|
|
2963
2963
|
Cr(() => {
|
|
2964
2964
|
e && i(o);
|
|
2965
2965
|
}, [e]);
|
|
@@ -2973,8 +2973,8 @@ function s_(e) {
|
|
|
2973
2973
|
wi(n) && t.push(n);
|
|
2974
2974
|
}), t;
|
|
2975
2975
|
}
|
|
2976
|
-
const
|
|
2977
|
-
const [a, l] = fC(s), h = Uo(() => s_(e), [e]), u = s && !a ? [] : h.map(id), f = Zn(!0), p = Zn(h), g =
|
|
2976
|
+
const Ub = typeof window < "u", dC = Ub ? DI : Cr, UL = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1 }) => {
|
|
2977
|
+
const [a, l] = fC(s), h = Uo(() => s_(e), [e]), u = s && !a ? [] : h.map(id), f = Zn(!0), p = Zn(h), g = Wb(() => /* @__PURE__ */ new Map()), [b, m] = Bs(h), [v, _] = Bs(h);
|
|
2978
2978
|
dC(() => {
|
|
2979
2979
|
f.current = !1, p.current = h;
|
|
2980
2980
|
for (let T = 0; T < v.length; T++) {
|
|
@@ -2993,7 +2993,7 @@ const U0 = typeof window < "u", dC = U0 ? DI : Cr, UL = ({ children: e, custom:
|
|
|
2993
2993
|
return;
|
|
2994
2994
|
}
|
|
2995
2995
|
process.env.NODE_ENV !== "production" && o === "wait" && v.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
2996
|
-
const { forceRender: P } = rn(
|
|
2996
|
+
const { forceRender: P } = rn(Fb);
|
|
2997
2997
|
return Be(ZN, { children: v.map((T) => {
|
|
2998
2998
|
const w = id(T), E = s && !a ? !1 : h === v || u.includes(w), O = () => {
|
|
2999
2999
|
if (g.has(w))
|
|
@@ -3016,7 +3016,7 @@ process.env.NODE_ENV !== "production" && (iu = (e, t) => {
|
|
|
3016
3016
|
throw new Error(t);
|
|
3017
3017
|
});
|
|
3018
3018
|
// @__NO_SIDE_EFFECTS__
|
|
3019
|
-
function
|
|
3019
|
+
function Hb(e) {
|
|
3020
3020
|
let t;
|
|
3021
3021
|
return () => (t === void 0 && (t = e()), t);
|
|
3022
3022
|
}
|
|
@@ -3203,7 +3203,7 @@ function Ah(e) {
|
|
|
3203
3203
|
function km(e) {
|
|
3204
3204
|
return e !== null && typeof e == "object" && typeof e.start == "function";
|
|
3205
3205
|
}
|
|
3206
|
-
const
|
|
3206
|
+
const qb = [
|
|
3207
3207
|
"animate",
|
|
3208
3208
|
"whileInView",
|
|
3209
3209
|
"whileFocus",
|
|
@@ -3211,9 +3211,9 @@ const q0 = [
|
|
|
3211
3211
|
"whileTap",
|
|
3212
3212
|
"whileDrag",
|
|
3213
3213
|
"exit"
|
|
3214
|
-
],
|
|
3214
|
+
], Gb = ["initial", ...qb];
|
|
3215
3215
|
function $m(e) {
|
|
3216
|
-
return km(e.animate) ||
|
|
3216
|
+
return km(e.animate) || Gb.some((t) => Ah(e[t]));
|
|
3217
3217
|
}
|
|
3218
3218
|
function yC(e) {
|
|
3219
3219
|
return !!($m(e) || e.variants);
|
|
@@ -3252,10 +3252,10 @@ function nD(e, t, n) {
|
|
|
3252
3252
|
[t]
|
|
3253
3253
|
);
|
|
3254
3254
|
}
|
|
3255
|
-
const
|
|
3255
|
+
const Yb = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), rD = "framerAppearId", vC = "data-" + Yb(rD), { schedule: Zb } = pC(queueMicrotask, !1), bC = Fr({});
|
|
3256
3256
|
function iD(e, t, n, r, i) {
|
|
3257
3257
|
var o, s;
|
|
3258
|
-
const { visualElement: a } = rn(Om), l = rn(mC), h = rn(Cm), u = rn(
|
|
3258
|
+
const { visualElement: a } = rn(Om), l = rn(mC), h = rn(Cm), u = rn(Vb).reducedMotion, f = Zn(null);
|
|
3259
3259
|
r = r || l.renderer, !f.current && r && (f.current = r(e, {
|
|
3260
3260
|
visualState: t,
|
|
3261
3261
|
parent: a,
|
|
@@ -3272,7 +3272,7 @@ function iD(e, t, n, r, i) {
|
|
|
3272
3272
|
});
|
|
3273
3273
|
const m = n[vC], v = Zn(!!m && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, m)) && ((s = window.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(window, m)));
|
|
3274
3274
|
return dC(() => {
|
|
3275
|
-
p && (b.current = !0, window.MotionIsMounted = !0, p.updateFeatures(),
|
|
3275
|
+
p && (b.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), Zb.render(p.render), v.current && p.animationState && p.animationState.animateChanges());
|
|
3276
3276
|
}), Cr(() => {
|
|
3277
3277
|
p && (!v.current && p.animationState && p.animationState.animateChanges(), v.current && (queueMicrotask(() => {
|
|
3278
3278
|
var _;
|
|
@@ -3310,11 +3310,11 @@ function sD({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
3310
3310
|
function a(h, u) {
|
|
3311
3311
|
let f;
|
|
3312
3312
|
const p = {
|
|
3313
|
-
...rn(
|
|
3313
|
+
...rn(Vb),
|
|
3314
3314
|
...h,
|
|
3315
3315
|
layoutId: aD(h)
|
|
3316
3316
|
}, { isStatic: g } = p, b = tD(h), m = r(h, g);
|
|
3317
|
-
if (!g &&
|
|
3317
|
+
if (!g && Ub) {
|
|
3318
3318
|
lD(p, e);
|
|
3319
3319
|
const v = cD(p);
|
|
3320
3320
|
f = v.MeasureLayout, b.visualElement = iD(i, m, p, t, v.ProjectionNode);
|
|
@@ -3326,7 +3326,7 @@ function sD({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
3326
3326
|
return l[eD] = i, l;
|
|
3327
3327
|
}
|
|
3328
3328
|
function aD({ layoutId: e }) {
|
|
3329
|
-
const t = rn(
|
|
3329
|
+
const t = rn(Fb).id;
|
|
3330
3330
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
3331
3331
|
}
|
|
3332
3332
|
function lD(e, t) {
|
|
@@ -3373,7 +3373,7 @@ const uD = [
|
|
|
3373
3373
|
"use",
|
|
3374
3374
|
"view"
|
|
3375
3375
|
];
|
|
3376
|
-
function
|
|
3376
|
+
function Kb(e) {
|
|
3377
3377
|
return (
|
|
3378
3378
|
/**
|
|
3379
3379
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -3399,7 +3399,7 @@ function u_(e) {
|
|
|
3399
3399
|
t[0][r] = n.get(), t[1][r] = n.getVelocity();
|
|
3400
3400
|
}), t;
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3402
|
+
function Xb(e, t, n, r) {
|
|
3403
3403
|
if (typeof t == "function") {
|
|
3404
3404
|
const [i, o] = u_(r);
|
|
3405
3405
|
t = t(n !== void 0 ? n : e.custom, i, o);
|
|
@@ -3424,7 +3424,7 @@ function dD({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n
|
|
|
3424
3424
|
}
|
|
3425
3425
|
const wC = (e) => (t, n) => {
|
|
3426
3426
|
const r = rn(Om), i = rn(Cm), o = () => dD(e, t, r, i);
|
|
3427
|
-
return n ? o() :
|
|
3427
|
+
return n ? o() : Wb(o);
|
|
3428
3428
|
};
|
|
3429
3429
|
function pD(e, t, n, r) {
|
|
3430
3430
|
const i = {}, o = r(e, {});
|
|
@@ -3439,7 +3439,7 @@ function pD(e, t, n, r) {
|
|
|
3439
3439
|
if (f && typeof f != "boolean" && !km(f)) {
|
|
3440
3440
|
const p = Array.isArray(f) ? f : [f];
|
|
3441
3441
|
for (let g = 0; g < p.length; g++) {
|
|
3442
|
-
const b =
|
|
3442
|
+
const b = Xb(e, p[g]);
|
|
3443
3443
|
if (b) {
|
|
3444
3444
|
const { transitionEnd: m, transition: v, ..._ } = b;
|
|
3445
3445
|
for (const S in _) {
|
|
@@ -3475,7 +3475,7 @@ const ou = [
|
|
|
3475
3475
|
"skew",
|
|
3476
3476
|
"skewX",
|
|
3477
3477
|
"skewY"
|
|
3478
|
-
], ul = new Set(ou), _C = (e) => (t) => typeof t == "string" && t.startsWith(e), SC = /* @__PURE__ */ _C("--"), mD = /* @__PURE__ */ _C("var(--"),
|
|
3478
|
+
], ul = new Set(ou), _C = (e) => (t) => typeof t == "string" && t.startsWith(e), SC = /* @__PURE__ */ _C("--"), mD = /* @__PURE__ */ _C("var(--"), Jb = (e) => mD(e) ? gD.test(e.split("/*")[0].trim()) : !1, gD = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, PC = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Go = (e, t, n) => n > t ? t : n < e ? e : n, su = {
|
|
3479
3479
|
test: (e) => typeof e == "number",
|
|
3480
3480
|
parse: parseFloat,
|
|
3481
3481
|
transform: (e) => e
|
|
@@ -3557,7 +3557,7 @@ const ou = [
|
|
|
3557
3557
|
}, f_ = {
|
|
3558
3558
|
...su,
|
|
3559
3559
|
transform: Math.round
|
|
3560
|
-
},
|
|
3560
|
+
}, Qb = {
|
|
3561
3561
|
...bD,
|
|
3562
3562
|
...xD,
|
|
3563
3563
|
zIndex: f_,
|
|
@@ -3580,7 +3580,7 @@ function SD(e, t, n) {
|
|
|
3580
3580
|
continue;
|
|
3581
3581
|
let l = !0;
|
|
3582
3582
|
if (typeof a == "number" ? l = a === (s.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
|
|
3583
|
-
const h = PC(a,
|
|
3583
|
+
const h = PC(a, Qb[s]);
|
|
3584
3584
|
if (!l) {
|
|
3585
3585
|
i = !1;
|
|
3586
3586
|
const u = wD[s] || s;
|
|
@@ -3603,7 +3603,7 @@ function tx(e, t, n) {
|
|
|
3603
3603
|
i[l] = h;
|
|
3604
3604
|
continue;
|
|
3605
3605
|
} else {
|
|
3606
|
-
const u = PC(h,
|
|
3606
|
+
const u = PC(h, Qb[l]);
|
|
3607
3607
|
l.startsWith("origin") ? (a = !0, o[l] = u) : r[l] = u;
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
@@ -3695,7 +3695,7 @@ const TC = /* @__PURE__ */ new Set([
|
|
|
3695
3695
|
function CC(e, t, n, r) {
|
|
3696
3696
|
EC(e, t, void 0, r);
|
|
3697
3697
|
for (const i in t.attrs)
|
|
3698
|
-
e.setAttribute(TC.has(i) ? i :
|
|
3698
|
+
e.setAttribute(TC.has(i) ? i : Yb(i), t.attrs[i]);
|
|
3699
3699
|
}
|
|
3700
3700
|
const Qd = {};
|
|
3701
3701
|
function CD(e) {
|
|
@@ -3802,8 +3802,8 @@ function RD(e, t, n, r) {
|
|
|
3802
3802
|
}
|
|
3803
3803
|
function LD(e = !1) {
|
|
3804
3804
|
return (n, r, i, { latestValues: o }, s) => {
|
|
3805
|
-
const l = (
|
|
3806
|
-
return
|
|
3805
|
+
const l = (Kb(n) ? RD : ND)(r, o, s, n), h = XL(r, typeof n == "string", e), u = n !== ZT ? { ...h, ...l, ref: i } : {}, { children: f } = r, p = Uo(() => fr(f) ? f.get() : f, [f]);
|
|
3806
|
+
return Ob(n, {
|
|
3807
3807
|
...u,
|
|
3808
3808
|
children: p
|
|
3809
3809
|
});
|
|
@@ -3812,7 +3812,7 @@ function LD(e = !1) {
|
|
|
3812
3812
|
function DD(e, t) {
|
|
3813
3813
|
return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
|
|
3814
3814
|
const s = {
|
|
3815
|
-
...
|
|
3815
|
+
...Kb(r) ? OD : kD,
|
|
3816
3816
|
preloadedFeatures: e,
|
|
3817
3817
|
useRender: LD(i),
|
|
3818
3818
|
createVisualElement: t,
|
|
@@ -3834,9 +3834,9 @@ function $C(e, t) {
|
|
|
3834
3834
|
}
|
|
3835
3835
|
function Im(e, t, n) {
|
|
3836
3836
|
const r = e.getProps();
|
|
3837
|
-
return
|
|
3837
|
+
return Xb(r, t, n !== void 0 ? n : r.custom, e);
|
|
3838
3838
|
}
|
|
3839
|
-
const jD = /* @__PURE__ */
|
|
3839
|
+
const jD = /* @__PURE__ */ Hb(() => window.ScrollTimeline !== void 0);
|
|
3840
3840
|
class BD {
|
|
3841
3841
|
constructor(t) {
|
|
3842
3842
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
@@ -3934,7 +3934,7 @@ const ax = (e) => Array.isArray(e) && typeof e[0] == "number", FD = {
|
|
|
3934
3934
|
linearEasing: void 0
|
|
3935
3935
|
};
|
|
3936
3936
|
function WD(e, t) {
|
|
3937
|
-
const n = /* @__PURE__ */
|
|
3937
|
+
const n = /* @__PURE__ */ Hb(e);
|
|
3938
3938
|
return () => {
|
|
3939
3939
|
var r;
|
|
3940
3940
|
return (r = FD[t]) !== null && r !== void 0 ? r : n();
|
|
@@ -4476,7 +4476,7 @@ const bj = /\b([a-z-]*)\(.*?\)/gu, Av = {
|
|
|
4476
4476
|
return t ? t.map(vj).join(" ") : e;
|
|
4477
4477
|
}
|
|
4478
4478
|
}, xj = {
|
|
4479
|
-
...
|
|
4479
|
+
...Qb,
|
|
4480
4480
|
// Color props
|
|
4481
4481
|
color: cr,
|
|
4482
4482
|
backgroundColor: cr,
|
|
@@ -4631,7 +4631,7 @@ function aM(e, t, n = 1) {
|
|
|
4631
4631
|
const s = o.trim();
|
|
4632
4632
|
return sM(s) ? parseFloat(s) : s;
|
|
4633
4633
|
}
|
|
4634
|
-
return
|
|
4634
|
+
return Jb(i) ? aM(i, t, n + 1) : i;
|
|
4635
4635
|
}
|
|
4636
4636
|
const lM = (e) => (t) => t.test(e), Oj = {
|
|
4637
4637
|
test: (e) => e === "auto",
|
|
@@ -4648,7 +4648,7 @@ class uM extends yx {
|
|
|
4648
4648
|
super.readKeyframes();
|
|
4649
4649
|
for (let l = 0; l < t.length; l++) {
|
|
4650
4650
|
let h = t[l];
|
|
4651
|
-
if (typeof h == "string" && (h = h.trim(),
|
|
4651
|
+
if (typeof h == "string" && (h = h.trim(), Jb(h))) {
|
|
4652
4652
|
const u = aM(h, n.current);
|
|
4653
4653
|
u !== void 0 && (t[l] = u), l === t.length - 1 && (this.finalKeyframe = h);
|
|
4654
4654
|
}
|
|
@@ -4840,7 +4840,7 @@ function zj(e, t) {
|
|
|
4840
4840
|
return (n) => pn(e, t, n);
|
|
4841
4841
|
}
|
|
4842
4842
|
function vx(e) {
|
|
4843
|
-
return typeof e == "number" ? zj : typeof e == "string" ?
|
|
4843
|
+
return typeof e == "number" ? zj : typeof e == "string" ? Jb(e) ? ep : cr.test(e) ? T_ : Vj : Array.isArray(e) ? fM : typeof e == "object" ? cr.test(e) ? T_ : Fj : ep;
|
|
4844
4844
|
}
|
|
4845
4845
|
function fM(e, t) {
|
|
4846
4846
|
const n = [...e], r = n.length, i = e.map((o, s) => vx(o)(o, t[s]));
|
|
@@ -5316,7 +5316,7 @@ function uB(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatTyp
|
|
|
5316
5316
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
5317
5317
|
});
|
|
5318
5318
|
}
|
|
5319
|
-
const hB = /* @__PURE__ */
|
|
5319
|
+
const hB = /* @__PURE__ */ Hb(() => Object.hasOwnProperty.call(Element.prototype, "animate")), rp = 10, fB = 2e4;
|
|
5320
5320
|
function dB(e) {
|
|
5321
5321
|
return sx(e.type) || e.type === "spring" || !RC(e.ease);
|
|
5322
5322
|
}
|
|
@@ -5634,7 +5634,7 @@ function AB(e, t, n = {}) {
|
|
|
5634
5634
|
e.notify("AnimationComplete", t);
|
|
5635
5635
|
});
|
|
5636
5636
|
}
|
|
5637
|
-
const EB =
|
|
5637
|
+
const EB = Gb.length;
|
|
5638
5638
|
function bM(e) {
|
|
5639
5639
|
if (!e)
|
|
5640
5640
|
return;
|
|
@@ -5644,12 +5644,12 @@ function bM(e) {
|
|
|
5644
5644
|
}
|
|
5645
5645
|
const t = {};
|
|
5646
5646
|
for (let n = 0; n < EB; n++) {
|
|
5647
|
-
const r =
|
|
5647
|
+
const r = Gb[n], i = e.props[r];
|
|
5648
5648
|
(Ah(i) || i === !1) && (t[r] = i);
|
|
5649
5649
|
}
|
|
5650
5650
|
return t;
|
|
5651
5651
|
}
|
|
5652
|
-
const TB = [...
|
|
5652
|
+
const TB = [...qb].reverse(), CB = qb.length;
|
|
5653
5653
|
function MB(e) {
|
|
5654
5654
|
return (t) => Promise.all(t.map(({ animation: n, options: r }) => AB(e, n, r)));
|
|
5655
5655
|
}
|
|
@@ -5689,20 +5689,20 @@ function OB(e) {
|
|
|
5689
5689
|
const { prevResolvedValues: R = {} } = S, U = {
|
|
5690
5690
|
...R,
|
|
5691
5691
|
...D
|
|
5692
|
-
}, W = (
|
|
5693
|
-
I = !0, p.has(
|
|
5694
|
-
const et = e.getValue(
|
|
5692
|
+
}, W = (Y) => {
|
|
5693
|
+
I = !0, p.has(Y) && (N = !0, p.delete(Y)), S.needsAnimating[Y] = !0;
|
|
5694
|
+
const et = e.getValue(Y);
|
|
5695
5695
|
et && (et.liveStyle = !1);
|
|
5696
5696
|
};
|
|
5697
|
-
for (const
|
|
5698
|
-
const et = D[
|
|
5699
|
-
if (g.hasOwnProperty(
|
|
5697
|
+
for (const Y in U) {
|
|
5698
|
+
const et = D[Y], st = R[Y];
|
|
5699
|
+
if (g.hasOwnProperty(Y))
|
|
5700
5700
|
continue;
|
|
5701
5701
|
let H = !1;
|
|
5702
|
-
xv(et) && xv(st) ? H = !$C(et, st) : H = et !== st, H ? et != null ? W(
|
|
5702
|
+
xv(et) && xv(st) ? H = !$C(et, st) : H = et !== st, H ? et != null ? W(Y) : p.add(Y) : et !== void 0 && p.has(Y) ? W(Y) : S.protectedKeys[Y] = !0;
|
|
5703
5703
|
}
|
|
5704
|
-
S.prevProp = P, S.prevResolvedValues = D, S.isActive && (g = { ...g, ...D }), r && e.blockInitialAnimation && (I = !1), I && (!(E && O) || N) && f.push(...B.map((
|
|
5705
|
-
animation:
|
|
5704
|
+
S.prevProp = P, S.prevResolvedValues = D, S.isActive && (g = { ...g, ...D }), r && e.blockInitialAnimation && (I = !1), I && (!(E && O) || N) && f.push(...B.map((Y) => ({
|
|
5705
|
+
animation: Y,
|
|
5706
5706
|
options: { type: _ }
|
|
5707
5707
|
})));
|
|
5708
5708
|
}
|
|
@@ -6408,7 +6408,7 @@ const ju = {
|
|
|
6408
6408
|
return typeof i[2 + s] == "number" && (i[2 + s] /= h), typeof i[3 + s] == "number" && (i[3 + s] /= h), o(i);
|
|
6409
6409
|
}
|
|
6410
6410
|
};
|
|
6411
|
-
class l5 extends
|
|
6411
|
+
class l5 extends kb {
|
|
6412
6412
|
/**
|
|
6413
6413
|
* This only mounts projection nodes for components that
|
|
6414
6414
|
* need measuring, we might want to do it for all components
|
|
@@ -6432,7 +6432,7 @@ class l5 extends k0 {
|
|
|
6432
6432
|
}
|
|
6433
6433
|
componentDidUpdate() {
|
|
6434
6434
|
const { projection: t } = this.props.visualElement;
|
|
6435
|
-
t && (t.root.didUpdate(),
|
|
6435
|
+
t && (t.root.didUpdate(), Zb.postRender(() => {
|
|
6436
6436
|
!t.currentAnimation && t.isLead() && this.safeToRemove();
|
|
6437
6437
|
}));
|
|
6438
6438
|
}
|
|
@@ -6449,7 +6449,7 @@ class l5 extends k0 {
|
|
|
6449
6449
|
}
|
|
6450
6450
|
}
|
|
6451
6451
|
function MM(e) {
|
|
6452
|
-
const [t, n] = fC(), r = rn(
|
|
6452
|
+
const [t, n] = fC(), r = rn(Fb);
|
|
6453
6453
|
return Be(l5, { ...e, layoutGroup: r, switchLayoutGroup: rn(bC), isPresent: t, safeToRemove: n });
|
|
6454
6454
|
}
|
|
6455
6455
|
const c5 = {
|
|
@@ -6769,7 +6769,7 @@ function RM({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6769
6769
|
er.delta = Go(0, 1e3 / 60, a - er.timestamp), er.timestamp = a, er.isProcessing = !0, Zg.update.process(er), Zg.preRender.process(er), Zg.render.process(er), er.isProcessing = !1;
|
|
6770
6770
|
}
|
|
6771
6771
|
didUpdate() {
|
|
6772
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
6772
|
+
this.updateScheduled || (this.updateScheduled = !0, Zb.read(this.scheduleUpdate));
|
|
6773
6773
|
}
|
|
6774
6774
|
clearAllSnapshots() {
|
|
6775
6775
|
this.nodes.forEach(k5), this.sharedNodes.forEach(D5);
|
|
@@ -7374,7 +7374,7 @@ const ez = {
|
|
|
7374
7374
|
}
|
|
7375
7375
|
}, Rv = { current: null }, jM = { current: !1 };
|
|
7376
7376
|
function rz() {
|
|
7377
|
-
if (jM.current = !0, !!
|
|
7377
|
+
if (jM.current = !0, !!Ub)
|
|
7378
7378
|
if (window.matchMedia) {
|
|
7379
7379
|
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Rv.current = e.matches;
|
|
7380
7380
|
e.addListener(t), t();
|
|
@@ -7589,7 +7589,7 @@ class az {
|
|
|
7589
7589
|
const { initial: r } = this.props;
|
|
7590
7590
|
let i;
|
|
7591
7591
|
if (typeof r == "string" || typeof r == "object") {
|
|
7592
|
-
const s =
|
|
7592
|
+
const s = Xb(this.props, r, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
|
|
7593
7593
|
s && (i = s[t]);
|
|
7594
7594
|
}
|
|
7595
7595
|
if (r && i !== void 0)
|
|
@@ -7663,7 +7663,7 @@ class uz extends BM {
|
|
|
7663
7663
|
const r = gx(n);
|
|
7664
7664
|
return r && r.default || 0;
|
|
7665
7665
|
}
|
|
7666
|
-
return n = TC.has(n) ? n :
|
|
7666
|
+
return n = TC.has(n) ? n : Yb(n), t.getAttribute(n);
|
|
7667
7667
|
}
|
|
7668
7668
|
scrapeMotionValuesFromProps(t, n, r) {
|
|
7669
7669
|
return OC(t, n, r);
|
|
@@ -7678,7 +7678,7 @@ class uz extends BM {
|
|
|
7678
7678
|
this.isSVGTag = rx(t.tagName), super.mount(t);
|
|
7679
7679
|
}
|
|
7680
7680
|
}
|
|
7681
|
-
const hz = (e, t) =>
|
|
7681
|
+
const hz = (e, t) => Kb(e) ? new uz(t) : new cz(t, {
|
|
7682
7682
|
allowProjection: e !== ZT
|
|
7683
7683
|
}), fz = /* @__PURE__ */ DD({
|
|
7684
7684
|
...RB,
|
|
@@ -7817,23 +7817,23 @@ function mz(e) {
|
|
|
7817
7817
|
body: JSON.stringify(W),
|
|
7818
7818
|
cache: "no-store"
|
|
7819
7819
|
}
|
|
7820
|
-
),
|
|
7820
|
+
), Y = await q.json();
|
|
7821
7821
|
if (!_.current) return;
|
|
7822
|
-
if (!q.ok ||
|
|
7823
|
-
throw q.status === 429 && b(Date.now() + 6e4), new Error(
|
|
7822
|
+
if (!q.ok || Y.success === !1)
|
|
7823
|
+
throw q.status === 429 && b(Date.now() + 6e4), new Error(Y.message || Y.error || "Sign-in failed");
|
|
7824
7824
|
if (R) {
|
|
7825
|
-
if (!
|
|
7825
|
+
if (!Y.challengeId)
|
|
7826
7826
|
throw new Error("Could not request a sign-in code");
|
|
7827
|
-
n(
|
|
7827
|
+
n(Y.challengeId), b(Date.now() + 6e4), i(""), p(Y.message || "Code requested"), (N = e.onChallenge) == null || N.call(e, !0);
|
|
7828
7828
|
return;
|
|
7829
7829
|
}
|
|
7830
|
-
if (
|
|
7831
|
-
if (!((B =
|
|
7832
|
-
s(
|
|
7830
|
+
if (Y.mfaRequired) {
|
|
7831
|
+
if (!((B = Y.data) != null && B.mfaSession)) throw new Error("MFA session unavailable");
|
|
7832
|
+
s(Y.data.mfaSession), i(""), p("");
|
|
7833
7833
|
return;
|
|
7834
7834
|
}
|
|
7835
|
-
if (!((D =
|
|
7836
|
-
e.onAuthenticated(
|
|
7835
|
+
if (!((D = Y.data) != null && D.token)) throw new Error("Sign-in did not return a token");
|
|
7836
|
+
e.onAuthenticated(Y, !1);
|
|
7837
7837
|
} catch (R) {
|
|
7838
7838
|
_.current && u(R instanceof Error ? R.message : "Sign-in failed");
|
|
7839
7839
|
} finally {
|
|
@@ -8689,9 +8689,9 @@ function Nz(e, t, n) {
|
|
|
8689
8689
|
var Jt;
|
|
8690
8690
|
const dt = B(St) - B(nt);
|
|
8691
8691
|
return ((Jt = t.sort) == null ? void 0 : Jt.direction) === "asc" ? -dt : dt;
|
|
8692
|
-
}) : m, W = ((ut = t.clientFilter) == null ? void 0 : ut.searchKey) || "recordingSearchApplied", F = String(e.sceneData[W] || "").trim().toLowerCase(), q = Array.isArray((ht = t.clientFilter) == null ? void 0 : ht.searchFields) ? t.clientFilter.searchFields : ["url", "title", "prompt"], [
|
|
8692
|
+
}) : m, W = ((ut = t.clientFilter) == null ? void 0 : ut.searchKey) || "recordingSearchApplied", F = String(e.sceneData[W] || "").trim().toLowerCase(), q = Array.isArray((ht = t.clientFilter) == null ? void 0 : ht.searchFields) ? t.clientFilter.searchFields : ["url", "title", "prompt"], [Y, et] = String(
|
|
8693
8693
|
e.sceneData.recordingDateFilterApplied || ""
|
|
8694
|
-
).split("|"), st =
|
|
8694
|
+
).split("|"), st = Y ? Date.parse(`${Y}T00:00:00`) : 0, H = et ? Date.parse(`${et}T23:59:59.999`) : Number.POSITIVE_INFINITY, ot = (Array.isArray(t.itemsFilter) ? t.itemsFilter : t.itemsFilter ? [t.itemsFilter] : []).map((nt) => {
|
|
8695
8695
|
if (!(nt != null && nt.field)) return null;
|
|
8696
8696
|
if (nt.eq !== void 0) {
|
|
8697
8697
|
const St = e.interpolateText(String(nt.eq ?? ""));
|
|
@@ -9077,8 +9077,8 @@ function Rz({
|
|
|
9077
9077
|
if (!b || g !== "client") return u;
|
|
9078
9078
|
const W = b.dir === "asc" ? 1 : -1;
|
|
9079
9079
|
return [...u].sort((F, q) => {
|
|
9080
|
-
const
|
|
9081
|
-
return
|
|
9080
|
+
const Y = F[b.key], et = q[b.key];
|
|
9081
|
+
return Y === et ? 0 : Y == null ? 1 : et == null ? -1 : String(Y).localeCompare(String(et), void 0, { numeric: !0 }) * W;
|
|
9082
9082
|
});
|
|
9083
9083
|
}, [u, b, g]), P = (W) => {
|
|
9084
9084
|
if (!p && !W.sortable) return;
|
|
@@ -9094,8 +9094,8 @@ function Rz({
|
|
|
9094
9094
|
);
|
|
9095
9095
|
}, T = (W, F) => W.replace(
|
|
9096
9096
|
/\{\{([\w.]+)(?:\s*\|\|\s*([^}]+))?\}\}/g,
|
|
9097
|
-
(q,
|
|
9098
|
-
const st =
|
|
9097
|
+
(q, Y, et) => {
|
|
9098
|
+
const st = Y.split(".").reduce(
|
|
9099
9099
|
(H, J) => H == null ? void 0 : H[J],
|
|
9100
9100
|
F
|
|
9101
9101
|
);
|
|
@@ -9103,10 +9103,10 @@ function Rz({
|
|
|
9103
9103
|
}
|
|
9104
9104
|
), w = async (W, F) => {
|
|
9105
9105
|
var et;
|
|
9106
|
-
const q = v[W.id ?? ""] || {},
|
|
9106
|
+
const q = v[W.id ?? ""] || {}, Y = F.filter(
|
|
9107
9107
|
(st) => st.editable && q[st.field || st.key] !== void 0
|
|
9108
9108
|
);
|
|
9109
|
-
for (const st of
|
|
9109
|
+
for (const st of Y) {
|
|
9110
9110
|
const H = st.field || st.key, J = st.onCellChange || t.onSave;
|
|
9111
9111
|
if (!J) continue;
|
|
9112
9112
|
const ot = J.replace(
|
|
@@ -9124,7 +9124,7 @@ function Rz({
|
|
|
9124
9124
|
});
|
|
9125
9125
|
}
|
|
9126
9126
|
}
|
|
9127
|
-
|
|
9127
|
+
Y.length && ((et = e.showToast) == null || et.call(e, (Y.length === 1, "Saved"), "success"), _((st) => {
|
|
9128
9128
|
const H = { ...st };
|
|
9129
9129
|
return delete H[W.id ?? ""], H;
|
|
9130
9130
|
}), e.fetchListData(
|
|
@@ -9134,13 +9134,13 @@ function Rz({
|
|
|
9134
9134
|
(r == null ? void 0 : r.limit) || t.pageSize || 10
|
|
9135
9135
|
));
|
|
9136
9136
|
}, E = (W, F, q) => {
|
|
9137
|
-
const
|
|
9137
|
+
const Y = F.field || F.key, et = W.id ?? "";
|
|
9138
9138
|
_((st) => ({
|
|
9139
9139
|
...st,
|
|
9140
|
-
[et]: { ...st[et] || {}, [
|
|
9140
|
+
[et]: { ...st[et] || {}, [Y]: q }
|
|
9141
9141
|
}));
|
|
9142
9142
|
}, O = (W, F) => {
|
|
9143
|
-
const q = W.field || W.key,
|
|
9143
|
+
const q = W.field || W.key, Y = F.id ?? "", et = v[Y] || {}, st = et[q] !== void 0 ? et[q] : F[q], H = W.fieldType || "text", J = {
|
|
9144
9144
|
style: {
|
|
9145
9145
|
width: "100%",
|
|
9146
9146
|
background: "transparent",
|
|
@@ -9250,8 +9250,8 @@ function Rz({
|
|
|
9250
9250
|
const F = v[W.id ?? ""];
|
|
9251
9251
|
return !!F && Object.keys(F).some(
|
|
9252
9252
|
(q) => {
|
|
9253
|
-
var
|
|
9254
|
-
return (
|
|
9253
|
+
var Y;
|
|
9254
|
+
return (Y = t.columns) == null ? void 0 : Y.some(
|
|
9255
9255
|
(et) => et.editable && (et.field || et.key) === q
|
|
9256
9256
|
);
|
|
9257
9257
|
}
|
|
@@ -9344,20 +9344,20 @@ function Rz({
|
|
|
9344
9344
|
className: "hover:bg-gray-700/30 transition-colors"
|
|
9345
9345
|
},
|
|
9346
9346
|
(q = t.columns) == null ? void 0 : q.map(
|
|
9347
|
-
(
|
|
9347
|
+
(Y) => x.createElement(
|
|
9348
9348
|
"td",
|
|
9349
|
-
{ key:
|
|
9350
|
-
|
|
9351
|
-
const st = (
|
|
9349
|
+
{ key: Y.key, className: "px-4 py-3 text-sm text-white" },
|
|
9350
|
+
Y.editable ? O(Y, W) : Y.template ? T(Y.template, W) : (() => {
|
|
9351
|
+
const st = (Y.field || Y.key).split(".").reduce(
|
|
9352
9352
|
(H, J) => H == null ? void 0 : H[J],
|
|
9353
9353
|
W
|
|
9354
9354
|
);
|
|
9355
|
-
if (
|
|
9355
|
+
if (Y.format === "datetime") {
|
|
9356
9356
|
if (st == null || st === "") return "Unavailable";
|
|
9357
9357
|
const H = new Date(st);
|
|
9358
9358
|
return Number.isNaN(H.getTime()) ? "Unavailable" : H.toLocaleString();
|
|
9359
9359
|
}
|
|
9360
|
-
return
|
|
9360
|
+
return Y.valueLabels ? Y.valueLabels[String(st)] ?? "Unavailable" : st == null || st === "" ? "" : String(st);
|
|
9361
9361
|
})()
|
|
9362
9362
|
)
|
|
9363
9363
|
),
|
|
@@ -10019,9 +10019,9 @@ class I1 {
|
|
|
10019
10019
|
const { context: o, bitmapSize: s, mediaSize: a, horizontalPixelRatio: l, verticalPixelRatio: h } = t, u = this.qt.pi || !this.qt.Pi ? n.C : 0, f = this.qt.ki ? n.S : 0, p = n.A + this.ei.Ti, g = n.I + this.ei.Ri, b = n.V, m = n.B, v = this.qt.ri, _ = n.P, S = r.Di(o, v), P = Math.ceil(r.Ii(o, v)), T = _ + p + g, w = n.S + b + m + P + u, E = Math.max(1, Math.floor(h));
|
|
10020
10020
|
let O = Math.round(T * h);
|
|
10021
10021
|
O % 2 != E % 2 && (O += 1);
|
|
10022
|
-
const I = f > 0 ? Math.max(1, Math.floor(f * l)) : 0, N = Math.round(w * l), B = Math.round(u * l), D = this.ei.Vi ?? this.ei.Bi ?? this.ei.Ei, R = Math.round(D * h) - Math.floor(0.5 * h), U = Math.floor(R + E / 2 - O / 2), W = U + O, F = i === "right", q = F ? a.width - f : f,
|
|
10022
|
+
const I = f > 0 ? Math.max(1, Math.floor(f * l)) : 0, N = Math.round(w * l), B = Math.round(u * l), D = this.ei.Vi ?? this.ei.Bi ?? this.ei.Ei, R = Math.round(D * h) - Math.floor(0.5 * h), U = Math.floor(R + E / 2 - O / 2), W = U + O, F = i === "right", q = F ? a.width - f : f, Y = F ? s.width - I : I;
|
|
10023
10023
|
let et, st, H;
|
|
10024
|
-
return F ? (et =
|
|
10024
|
+
return F ? (et = Y - N, st = Y - B, H = q - u - b - f) : (et = Y + N, st = Y + B, H = q + u + b), { li: F, ai: { _i: U, mi: R, Si: W, ui: N, ci: O, ft: 2 * l, di: I, oi: et, fi: Y, wi: st, Mi: E, bi: s.width }, xi: { _i: U / h, Si: W / h, Ci: H, yi: S } };
|
|
10025
10025
|
}
|
|
10026
10026
|
}
|
|
10027
10027
|
class Lm {
|
|
@@ -18153,7 +18153,7 @@ function PV() {
|
|
|
18153
18153
|
}
|
|
18154
18154
|
}
|
|
18155
18155
|
}
|
|
18156
|
-
var E = s, O = o, I = e, N = l, B = n, D = p, R = f, U = t, W = i, F = r, q = h,
|
|
18156
|
+
var E = s, O = o, I = e, N = l, B = n, D = p, R = f, U = t, W = i, F = r, q = h, Y = u, et = !1, st = !1;
|
|
18157
18157
|
function H(dt) {
|
|
18158
18158
|
return et || (et = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
18159
18159
|
}
|
|
@@ -18196,7 +18196,7 @@ function PV() {
|
|
|
18196
18196
|
function St(dt) {
|
|
18197
18197
|
return w(dt) === u;
|
|
18198
18198
|
}
|
|
18199
|
-
Re.ContextConsumer = E, Re.ContextProvider = O, Re.Element = I, Re.ForwardRef = N, Re.Fragment = B, Re.Lazy = D, Re.Memo = R, Re.Portal = U, Re.Profiler = W, Re.StrictMode = F, Re.Suspense = q, Re.SuspenseList =
|
|
18199
|
+
Re.ContextConsumer = E, Re.ContextProvider = O, Re.Element = I, Re.ForwardRef = N, Re.Fragment = B, Re.Lazy = D, Re.Memo = R, Re.Portal = U, Re.Profiler = W, Re.StrictMode = F, Re.Suspense = q, Re.SuspenseList = Y, Re.isAsyncMode = H, Re.isConcurrentMode = J, Re.isContextConsumer = ot, Re.isContextProvider = ct, Re.isElement = mt, Re.isForwardRef = vt, Re.isFragment = yt, Re.isLazy = $t, Re.isMemo = Tt, Re.isPortal = ut, Re.isProfiler = ht, Re.isStrictMode = It, Re.isSuspense = nt, Re.isSuspenseList = St, Re.isValidElementType = T, Re.typeOf = w;
|
|
18200
18200
|
}()), Re;
|
|
18201
18201
|
}
|
|
18202
18202
|
process.env.NODE_ENV === "production" ? Gv.exports = SV() : Gv.exports = PV();
|
|
@@ -18883,7 +18883,7 @@ var WO = yU;
|
|
|
18883
18883
|
function vU(e) {
|
|
18884
18884
|
return e.split("");
|
|
18885
18885
|
}
|
|
18886
|
-
var bU = vU, VO = "\\ud800-\\udfff", xU = "\\u0300-\\u036f", wU = "\\ufe20-\\ufe2f", _U = "\\u20d0-\\u20ff", SU = xU + wU + _U, PU = "\\ufe0e\\ufe0f", AU = "[" + VO + "]",
|
|
18886
|
+
var bU = vU, VO = "\\ud800-\\udfff", xU = "\\u0300-\\u036f", wU = "\\ufe20-\\ufe2f", _U = "\\u20d0-\\u20ff", SU = xU + wU + _U, PU = "\\ufe0e\\ufe0f", AU = "[" + VO + "]", t0 = "[" + SU + "]", e0 = "\\ud83c[\\udffb-\\udfff]", EU = "(?:" + t0 + "|" + e0 + ")", UO = "[^" + VO + "]", HO = "(?:\\ud83c[\\udde6-\\uddff]){2}", qO = "[\\ud800-\\udbff][\\udc00-\\udfff]", TU = "\\u200d", GO = EU + "?", YO = "[" + PU + "]?", CU = "(?:" + TU + "(?:" + [UO, HO, qO].join("|") + ")" + YO + GO + ")*", MU = YO + GO + CU, OU = "(?:" + [UO + t0 + "?", t0, HO, qO, AU].join("|") + ")", kU = RegExp(e0 + "(?=" + e0 + ")|" + OU + MU, "g");
|
|
18887
18887
|
function $U(e) {
|
|
18888
18888
|
return e.match(kU) || [];
|
|
18889
18889
|
}
|
|
@@ -18906,7 +18906,7 @@ function en(e) {
|
|
|
18906
18906
|
return e;
|
|
18907
18907
|
};
|
|
18908
18908
|
}
|
|
18909
|
-
const ZO = Math.cos, mp = Math.sin, zi = Math.sqrt, gp = Math.PI, Xm = 2 * gp,
|
|
18909
|
+
const ZO = Math.cos, mp = Math.sin, zi = Math.sqrt, gp = Math.PI, Xm = 2 * gp, n0 = Math.PI, r0 = 2 * n0, ka = 1e-6, YU = r0 - ka;
|
|
18910
18910
|
function KO(e) {
|
|
18911
18911
|
this._ += e[0];
|
|
18912
18912
|
for (let t = 1, n = e.length; t < n; ++t)
|
|
@@ -18951,14 +18951,14 @@ class KU {
|
|
|
18951
18951
|
else if (p > ka) if (!(Math.abs(f * l - h * u) > ka) || !o)
|
|
18952
18952
|
this._append`L${this._x1 = t},${this._y1 = n}`;
|
|
18953
18953
|
else {
|
|
18954
|
-
let g = r - s, b = i - a, m = l * l + h * h, v = g * g + b * b, _ = Math.sqrt(m), S = Math.sqrt(p), P = o * Math.tan((
|
|
18954
|
+
let g = r - s, b = i - a, m = l * l + h * h, v = g * g + b * b, _ = Math.sqrt(m), S = Math.sqrt(p), P = o * Math.tan((n0 - Math.acos((m + p - v) / (2 * _ * S))) / 2), T = P / S, w = P / _;
|
|
18955
18955
|
Math.abs(T - 1) > ka && this._append`L${t + T * u},${n + T * f}`, this._append`A${o},${o},0,0,${+(f * g > u * b)},${this._x1 = t + w * l},${this._y1 = n + w * h}`;
|
|
18956
18956
|
}
|
|
18957
18957
|
}
|
|
18958
18958
|
arc(t, n, r, i, o, s) {
|
|
18959
18959
|
if (t = +t, n = +n, r = +r, s = !!s, r < 0) throw new Error(`negative radius: ${r}`);
|
|
18960
18960
|
let a = r * Math.cos(i), l = r * Math.sin(i), h = t + a, u = n + l, f = 1 ^ s, p = s ? i - o : o - i;
|
|
18961
|
-
this._x1 === null ? this._append`M${h},${u}` : (Math.abs(this._x1 - h) > ka || Math.abs(this._y1 - u) > ka) && this._append`L${h},${u}`, r && (p < 0 && (p = p %
|
|
18961
|
+
this._x1 === null ? this._append`M${h},${u}` : (Math.abs(this._x1 - h) > ka || Math.abs(this._y1 - u) > ka) && this._append`L${h},${u}`, r && (p < 0 && (p = p % r0 + r0), p > YU ? this._append`A${r},${r},0,1,${f},${t - a},${n - l}A${r},${r},0,1,${f},${this._x1 = h},${this._y1 = u}` : p > ka && this._append`A${r},${r},0,${+(p >= n0)},${f},${this._x1 = t + r * Math.cos(o)},${this._y1 = n + r * Math.sin(o)}`);
|
|
18962
18962
|
}
|
|
18963
18963
|
rect(t, n, r, i) {
|
|
18964
18964
|
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}h${r = +r}v${+i}h${-r}Z`;
|
|
@@ -19163,9 +19163,9 @@ const Yx = {
|
|
|
19163
19163
|
const n = -zi(t / (Iy * 3));
|
|
19164
19164
|
e.moveTo(0, n * 2), e.lineTo(-Iy * n, -n), e.lineTo(Iy * n, -n), e.closePath();
|
|
19165
19165
|
}
|
|
19166
|
-
}, di = -0.5, pi = zi(3) / 2,
|
|
19166
|
+
}, di = -0.5, pi = zi(3) / 2, i0 = 1 / zi(12), lH = (i0 / 2 + 1) * 3, cH = {
|
|
19167
19167
|
draw(e, t) {
|
|
19168
|
-
const n = zi(t / lH), r = n / 2, i = n *
|
|
19168
|
+
const n = zi(t / lH), r = n / 2, i = n * i0, o = r, s = n * i0 + n, a = -o, l = s;
|
|
19169
19169
|
e.moveTo(r, i), e.lineTo(o, s), e.lineTo(a, l), e.lineTo(di * r - pi * i, pi * r + di * i), e.lineTo(di * o - pi * s, pi * o + di * s), e.lineTo(di * a - pi * l, pi * a + di * l), e.lineTo(di * r + pi * i, di * i - pi * r), e.lineTo(di * o + pi * s, di * s - pi * o), e.lineTo(di * a + pi * l, di * l - pi * a), e.closePath();
|
|
19170
19170
|
}
|
|
19171
19171
|
};
|
|
@@ -19523,7 +19523,7 @@ function Ec(e, t) {
|
|
|
19523
19523
|
for (i = o, o = e[t[n]], r = 0; r < a; ++r)
|
|
19524
19524
|
o[r][1] += o[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
|
|
19525
19525
|
}
|
|
19526
|
-
function
|
|
19526
|
+
function o0(e) {
|
|
19527
19527
|
for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t;
|
|
19528
19528
|
return n;
|
|
19529
19529
|
}
|
|
@@ -19535,7 +19535,7 @@ function _H(e) {
|
|
|
19535
19535
|
return t.key = e, t;
|
|
19536
19536
|
}
|
|
19537
19537
|
function SH() {
|
|
19538
|
-
var e = en([]), t =
|
|
19538
|
+
var e = en([]), t = o0, n = Ec, r = wH;
|
|
19539
19539
|
function i(o) {
|
|
19540
19540
|
var s = Array.from(e.apply(this, arguments), _H), a, l = s.length, h = -1, u;
|
|
19541
19541
|
for (const f of o)
|
|
@@ -19550,7 +19550,7 @@ function SH() {
|
|
|
19550
19550
|
}, i.value = function(o) {
|
|
19551
19551
|
return arguments.length ? (r = typeof o == "function" ? o : en(+o), i) : r;
|
|
19552
19552
|
}, i.order = function(o) {
|
|
19553
|
-
return arguments.length ? (t = o == null ?
|
|
19553
|
+
return arguments.length ? (t = o == null ? o0 : typeof o == "function" ? o : en(Array.from(o)), i) : t;
|
|
19554
19554
|
}, i.offset = function(o) {
|
|
19555
19555
|
return arguments.length ? (n = o ?? Ec, i) : n;
|
|
19556
19556
|
}, i;
|
|
@@ -19597,15 +19597,15 @@ function Nh(e) {
|
|
|
19597
19597
|
}, Nh(e);
|
|
19598
19598
|
}
|
|
19599
19599
|
var TH = ["type", "size", "sizeType"];
|
|
19600
|
-
function
|
|
19601
|
-
return
|
|
19600
|
+
function s0() {
|
|
19601
|
+
return s0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
19602
19602
|
for (var t = 1; t < arguments.length; t++) {
|
|
19603
19603
|
var n = arguments[t];
|
|
19604
19604
|
for (var r in n)
|
|
19605
19605
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
19606
19606
|
}
|
|
19607
19607
|
return e;
|
|
19608
|
-
},
|
|
19608
|
+
}, s0.apply(this, arguments);
|
|
19609
19609
|
}
|
|
19610
19610
|
function GS(e, t) {
|
|
19611
19611
|
var n = Object.keys(e);
|
|
@@ -19708,7 +19708,7 @@ var hk = {
|
|
|
19708
19708
|
var v = NH(r), _ = uH().type(v).size(RH(o, a, r));
|
|
19709
19709
|
return _();
|
|
19710
19710
|
}, f = h.className, p = h.cx, g = h.cy, b = Yt(h, !0);
|
|
19711
|
-
return p === +p && g === +g && o === +o ? /* @__PURE__ */ x.createElement("path",
|
|
19711
|
+
return p === +p && g === +g && o === +o ? /* @__PURE__ */ x.createElement("path", s0({}, b, {
|
|
19712
19712
|
className: me("recharts-symbols", f),
|
|
19713
19713
|
transform: "translate(".concat(p, ", ").concat(g, ")"),
|
|
19714
19714
|
d: u()
|
|
@@ -19723,15 +19723,15 @@ function Tc(e) {
|
|
|
19723
19723
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
19724
19724
|
}, Tc(e);
|
|
19725
19725
|
}
|
|
19726
|
-
function
|
|
19727
|
-
return
|
|
19726
|
+
function a0() {
|
|
19727
|
+
return a0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
19728
19728
|
for (var t = 1; t < arguments.length; t++) {
|
|
19729
19729
|
var n = arguments[t];
|
|
19730
19730
|
for (var r in n)
|
|
19731
19731
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
19732
19732
|
}
|
|
19733
19733
|
return e;
|
|
19734
|
-
},
|
|
19734
|
+
}, a0.apply(this, arguments);
|
|
19735
19735
|
}
|
|
19736
19736
|
function ZS(e, t) {
|
|
19737
19737
|
var n = Object.keys(e);
|
|
@@ -19800,12 +19800,12 @@ function xp(e) {
|
|
|
19800
19800
|
function UH(e, t) {
|
|
19801
19801
|
if (typeof t != "function" && t !== null)
|
|
19802
19802
|
throw new TypeError("Super expression must either be null or a function");
|
|
19803
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
19803
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && l0(e, t);
|
|
19804
19804
|
}
|
|
19805
|
-
function
|
|
19806
|
-
return
|
|
19805
|
+
function l0(e, t) {
|
|
19806
|
+
return l0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
19807
19807
|
return r.__proto__ = i, r;
|
|
19808
|
-
},
|
|
19808
|
+
}, l0(e, t);
|
|
19809
19809
|
}
|
|
19810
19810
|
function Rh(e, t, n) {
|
|
19811
19811
|
return t = dk(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -19915,7 +19915,7 @@ var mi = 32, Zx = /* @__PURE__ */ function(e) {
|
|
|
19915
19915
|
// eslint-disable-line max-len
|
|
19916
19916
|
);
|
|
19917
19917
|
var S = g.inactive ? h : g.color;
|
|
19918
|
-
return /* @__PURE__ */ x.createElement("li",
|
|
19918
|
+
return /* @__PURE__ */ x.createElement("li", a0({
|
|
19919
19919
|
className: v,
|
|
19920
19920
|
style: f,
|
|
19921
19921
|
key: "legend-item-".concat(b)
|
|
@@ -20266,8 +20266,8 @@ function Xq(e, t, n, r, i, o) {
|
|
|
20266
20266
|
}
|
|
20267
20267
|
return o.delete(e), o.delete(t), m;
|
|
20268
20268
|
}
|
|
20269
|
-
var Jq = Xq, Qq = hl, tG = po, eG = Qq(tG, "DataView"), nG = eG, rG = hl, iG = po, oG = rG(iG, "Promise"), sG = oG, aG = hl, lG = po, cG = aG(lG, "Set"), Ak = cG, uG = hl, hG = po, fG = uG(hG, "WeakMap"), dG = fG,
|
|
20270
|
-
(
|
|
20269
|
+
var Jq = Xq, Qq = hl, tG = po, eG = Qq(tG, "DataView"), nG = eG, rG = hl, iG = po, oG = rG(iG, "Promise"), sG = oG, aG = hl, lG = po, cG = aG(lG, "Set"), Ak = cG, uG = hl, hG = po, fG = uG(hG, "WeakMap"), dG = fG, c0 = nG, u0 = Bx, h0 = sG, f0 = Ak, d0 = dG, Ek = Jo, mu = NO, iP = "[object Map]", pG = "[object Object]", oP = "[object Promise]", sP = "[object Set]", aP = "[object WeakMap]", lP = "[object DataView]", mG = mu(c0), gG = mu(u0), yG = mu(h0), vG = mu(f0), bG = mu(d0), $a = Ek;
|
|
20270
|
+
(c0 && $a(new c0(new ArrayBuffer(1))) != lP || u0 && $a(new u0()) != iP || h0 && $a(h0.resolve()) != oP || f0 && $a(new f0()) != sP || d0 && $a(new d0()) != aP) && ($a = function(e) {
|
|
20271
20271
|
var t = Ek(e), n = t == pG ? e.constructor : void 0, r = n ? mu(n) : "";
|
|
20272
20272
|
if (r)
|
|
20273
20273
|
switch (r) {
|
|
@@ -20558,12 +20558,12 @@ function Pp(e) {
|
|
|
20558
20558
|
function PZ(e, t) {
|
|
20559
20559
|
if (typeof t != "function" && t !== null)
|
|
20560
20560
|
throw new TypeError("Super expression must either be null or a function");
|
|
20561
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
20561
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && p0(e, t);
|
|
20562
20562
|
}
|
|
20563
|
-
function
|
|
20564
|
-
return
|
|
20563
|
+
function p0(e, t) {
|
|
20564
|
+
return p0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
20565
20565
|
return r.__proto__ = i, r;
|
|
20566
|
-
},
|
|
20566
|
+
}, p0(e, t);
|
|
20567
20567
|
}
|
|
20568
20568
|
function ng(e, t, n) {
|
|
20569
20569
|
return t = Ik(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -20905,15 +20905,15 @@ function Lh(e) {
|
|
|
20905
20905
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
20906
20906
|
}, Lh(e);
|
|
20907
20907
|
}
|
|
20908
|
-
function
|
|
20909
|
-
return
|
|
20908
|
+
function m0() {
|
|
20909
|
+
return m0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
20910
20910
|
for (var t = 1; t < arguments.length; t++) {
|
|
20911
20911
|
var n = arguments[t];
|
|
20912
20912
|
for (var r in n)
|
|
20913
20913
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
20914
20914
|
}
|
|
20915
20915
|
return e;
|
|
20916
|
-
},
|
|
20916
|
+
}, m0.apply(this, arguments);
|
|
20917
20917
|
}
|
|
20918
20918
|
function QK(e, t) {
|
|
20919
20919
|
return rX(e) || nX(e, t) || eX(e, t) || tX();
|
|
@@ -21011,9 +21011,9 @@ var lX = function(t) {
|
|
|
21011
21011
|
paddingTop: 4,
|
|
21012
21012
|
paddingBottom: 4,
|
|
21013
21013
|
color: W.color || "#000"
|
|
21014
|
-
}, a),
|
|
21015
|
-
if (
|
|
21016
|
-
var ot =
|
|
21014
|
+
}, a), Y = W.formatter || f || aX, et = W.value, st = W.name, H = et, J = st;
|
|
21015
|
+
if (Y && H != null && J != null) {
|
|
21016
|
+
var ot = Y(et, st, W, F, u);
|
|
21017
21017
|
if (Array.isArray(ot)) {
|
|
21018
21018
|
var ct = QK(ot, 2);
|
|
21019
21019
|
H = ct[0], J = ct[1];
|
|
@@ -21057,7 +21057,7 @@ var lX = function(t) {
|
|
|
21057
21057
|
role: "status",
|
|
21058
21058
|
"aria-live": "assertive"
|
|
21059
21059
|
} : {};
|
|
21060
|
-
return /* @__PURE__ */ x.createElement("div",
|
|
21060
|
+
return /* @__PURE__ */ x.createElement("div", m0({
|
|
21061
21061
|
className: I,
|
|
21062
21062
|
style: T
|
|
21063
21063
|
}, B), /* @__PURE__ */ x.createElement("p", {
|
|
@@ -21174,7 +21174,7 @@ function OP(e) {
|
|
|
21174
21174
|
for (var t = 1; t < arguments.length; t++) {
|
|
21175
21175
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
21176
21176
|
t % 2 ? MP(Object(n), !0).forEach(function(r) {
|
|
21177
|
-
|
|
21177
|
+
y0(e, r, n[r]);
|
|
21178
21178
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MP(Object(n)).forEach(function(r) {
|
|
21179
21179
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
21180
21180
|
});
|
|
@@ -21227,14 +21227,14 @@ function Ap(e) {
|
|
|
21227
21227
|
function wX(e, t) {
|
|
21228
21228
|
if (typeof t != "function" && t !== null)
|
|
21229
21229
|
throw new TypeError("Super expression must either be null or a function");
|
|
21230
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
21230
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && g0(e, t);
|
|
21231
21231
|
}
|
|
21232
|
-
function
|
|
21233
|
-
return
|
|
21232
|
+
function g0(e, t) {
|
|
21233
|
+
return g0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
21234
21234
|
return r.__proto__ = i, r;
|
|
21235
|
-
},
|
|
21235
|
+
}, g0(e, t);
|
|
21236
21236
|
}
|
|
21237
|
-
function
|
|
21237
|
+
function y0(e, t, n) {
|
|
21238
21238
|
return t = zk(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
21239
21239
|
}
|
|
21240
21240
|
function zk(e) {
|
|
@@ -21257,7 +21257,7 @@ var kP = 1, SX = /* @__PURE__ */ function(e) {
|
|
|
21257
21257
|
mX(this, t);
|
|
21258
21258
|
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
|
|
21259
21259
|
i[o] = arguments[o];
|
|
21260
|
-
return n = vX(this, t, [].concat(i)),
|
|
21260
|
+
return n = vX(this, t, [].concat(i)), y0(n, "state", {
|
|
21261
21261
|
dismissed: !1,
|
|
21262
21262
|
dismissedAtCoordinate: {
|
|
21263
21263
|
x: 0,
|
|
@@ -21267,7 +21267,7 @@ var kP = 1, SX = /* @__PURE__ */ function(e) {
|
|
|
21267
21267
|
width: -1,
|
|
21268
21268
|
height: -1
|
|
21269
21269
|
}
|
|
21270
|
-
}),
|
|
21270
|
+
}), y0(n, "handleKeyDown", function(s) {
|
|
21271
21271
|
if (s.key === "Escape") {
|
|
21272
21272
|
var a, l, h, u;
|
|
21273
21273
|
n.setState({
|
|
@@ -21429,12 +21429,12 @@ function Ep(e) {
|
|
|
21429
21429
|
function kX(e, t) {
|
|
21430
21430
|
if (typeof t != "function" && t !== null)
|
|
21431
21431
|
throw new TypeError("Super expression must either be null or a function");
|
|
21432
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
21432
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && v0(e, t);
|
|
21433
21433
|
}
|
|
21434
|
-
function
|
|
21435
|
-
return
|
|
21434
|
+
function v0(e, t) {
|
|
21435
|
+
return v0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
21436
21436
|
return r.__proto__ = i, r;
|
|
21437
|
-
},
|
|
21437
|
+
}, v0(e, t);
|
|
21438
21438
|
}
|
|
21439
21439
|
function rw(e, t, n) {
|
|
21440
21440
|
return t = Wk(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -21721,10 +21721,10 @@ var ig = /* @__PURE__ */ sl(function(e, t) {
|
|
|
21721
21721
|
containerHeight: i.height
|
|
21722
21722
|
}), I = fJ(O, 2), N = I[0], B = I[1], D = mf(function(U, W) {
|
|
21723
21723
|
B(function(F) {
|
|
21724
|
-
var q = Math.round(U),
|
|
21725
|
-
return F.containerWidth === q && F.containerHeight ===
|
|
21724
|
+
var q = Math.round(U), Y = Math.round(W);
|
|
21725
|
+
return F.containerWidth === q && F.containerHeight === Y ? F : {
|
|
21726
21726
|
containerWidth: q,
|
|
21727
|
-
containerHeight:
|
|
21727
|
+
containerHeight: Y
|
|
21728
21728
|
};
|
|
21729
21729
|
});
|
|
21730
21730
|
}, []);
|
|
@@ -21737,8 +21737,8 @@ var ig = /* @__PURE__ */ sl(function(e, t) {
|
|
|
21737
21737
|
trailing: !0,
|
|
21738
21738
|
leading: !1
|
|
21739
21739
|
}));
|
|
21740
|
-
var W = new ResizeObserver(U), F = w.current.getBoundingClientRect(), q = F.width,
|
|
21741
|
-
return D(q,
|
|
21740
|
+
var W = new ResizeObserver(U), F = w.current.getBoundingClientRect(), q = F.width, Y = F.height;
|
|
21741
|
+
return D(q, Y), W.observe(w.current), function() {
|
|
21742
21742
|
W.disconnect();
|
|
21743
21743
|
};
|
|
21744
21744
|
}, [D, m]);
|
|
@@ -21753,12 +21753,12 @@ var ig = /* @__PURE__ */ sl(function(e, t) {
|
|
|
21753
21753
|
please check the style of container, or the props width(%s) and height(%s),
|
|
21754
21754
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
21755
21755
|
height and width.`, F, q, s, l, u, f, n);
|
|
21756
|
-
var
|
|
21756
|
+
var Y = !Array.isArray(g) && Wo(g.type).endsWith("Chart");
|
|
21757
21757
|
return x.Children.map(g, function(et) {
|
|
21758
21758
|
return /* @__PURE__ */ x.isValidElement(et) ? /* @__PURE__ */ Dn(et, Cd({
|
|
21759
21759
|
width: F,
|
|
21760
21760
|
height: q
|
|
21761
|
-
},
|
|
21761
|
+
}, Y ? {
|
|
21762
21762
|
style: Cd({
|
|
21763
21763
|
height: "100%",
|
|
21764
21764
|
width: "100%",
|
|
@@ -21802,7 +21802,7 @@ function BP(e, t) {
|
|
|
21802
21802
|
}
|
|
21803
21803
|
return n;
|
|
21804
21804
|
}
|
|
21805
|
-
function
|
|
21805
|
+
function b0(e) {
|
|
21806
21806
|
for (var t = 1; t < arguments.length; t++) {
|
|
21807
21807
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
21808
21808
|
t % 2 ? BP(Object(n), !0).forEach(function(r) {
|
|
@@ -21843,7 +21843,7 @@ var Wl = {
|
|
|
21843
21843
|
whiteSpace: "pre"
|
|
21844
21844
|
}, zP = "recharts_measurement_span";
|
|
21845
21845
|
function _J(e) {
|
|
21846
|
-
var t =
|
|
21846
|
+
var t = b0({}, e);
|
|
21847
21847
|
return Object.keys(t).forEach(function(n) {
|
|
21848
21848
|
t[n] || delete t[n];
|
|
21849
21849
|
}), t;
|
|
@@ -21864,7 +21864,7 @@ var gh = function(t) {
|
|
|
21864
21864
|
try {
|
|
21865
21865
|
var o = document.getElementById(zP);
|
|
21866
21866
|
o || (o = document.createElement("span"), o.setAttribute("id", zP), o.setAttribute("aria-hidden", "true"), document.body.appendChild(o));
|
|
21867
|
-
var s =
|
|
21867
|
+
var s = b0(b0({}, wJ), r);
|
|
21868
21868
|
Object.assign(o.style, s), o.textContent = "".concat(t);
|
|
21869
21869
|
var a = o.getBoundingClientRect(), l = {
|
|
21870
21870
|
width: a.width,
|
|
@@ -22057,15 +22057,15 @@ function Fy(e) {
|
|
|
22057
22057
|
return t === rc ? "" : t;
|
|
22058
22058
|
}
|
|
22059
22059
|
var BJ = ["x", "y", "lineHeight", "capHeight", "scaleToFit", "textAnchor", "verticalAnchor", "fill"], zJ = ["dx", "dy", "angle", "className", "breakAll"];
|
|
22060
|
-
function
|
|
22061
|
-
return
|
|
22060
|
+
function x0() {
|
|
22061
|
+
return x0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
22062
22062
|
for (var t = 1; t < arguments.length; t++) {
|
|
22063
22063
|
var n = arguments[t];
|
|
22064
22064
|
for (var r in n)
|
|
22065
22065
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
22066
22066
|
}
|
|
22067
22067
|
return e;
|
|
22068
|
-
},
|
|
22068
|
+
}, x0.apply(this, arguments);
|
|
22069
22069
|
}
|
|
22070
22070
|
function qP(e, t) {
|
|
22071
22071
|
if (e == null) return {};
|
|
@@ -22152,8 +22152,8 @@ var Gk = /[ \f\n\r\t\v\u2028\u2029]+/, Yk = function(t) {
|
|
|
22152
22152
|
}, qJ = function(t, n, r, i, o) {
|
|
22153
22153
|
var s = t.maxLines, a = t.children, l = t.style, h = t.breakAll, u = At(s), f = a, p = function() {
|
|
22154
22154
|
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
22155
|
-
return F.reduce(function(q,
|
|
22156
|
-
var et =
|
|
22155
|
+
return F.reduce(function(q, Y) {
|
|
22156
|
+
var et = Y.word, st = Y.width, H = q[q.length - 1];
|
|
22157
22157
|
if (H && (i == null || o || H.width + st + r < Number(i)))
|
|
22158
22158
|
H.words.push(et), H.width += st + r;
|
|
22159
22159
|
else {
|
|
@@ -22166,18 +22166,18 @@ var Gk = /[ \f\n\r\t\v\u2028\u2029]+/, Yk = function(t) {
|
|
|
22166
22166
|
return q;
|
|
22167
22167
|
}, []);
|
|
22168
22168
|
}, g = p(n), b = function(F) {
|
|
22169
|
-
return F.reduce(function(q,
|
|
22170
|
-
return q.width >
|
|
22169
|
+
return F.reduce(function(q, Y) {
|
|
22170
|
+
return q.width > Y.width ? q : Y;
|
|
22171
22171
|
});
|
|
22172
22172
|
};
|
|
22173
22173
|
if (!u)
|
|
22174
22174
|
return g;
|
|
22175
22175
|
for (var m = "…", v = function(F) {
|
|
22176
|
-
var q = f.slice(0, F),
|
|
22176
|
+
var q = f.slice(0, F), Y = Yk({
|
|
22177
22177
|
breakAll: h,
|
|
22178
22178
|
style: l,
|
|
22179
22179
|
children: q + m
|
|
22180
|
-
}).wordsWithComputedWidth, et = p(
|
|
22180
|
+
}).wordsWithComputedWidth, et = p(Y), st = et.length > s || b(et).width > Number(i);
|
|
22181
22181
|
return [st, et];
|
|
22182
22182
|
}, _ = 0, S = f.length - 1, P = 0, T; _ <= S && P <= f.length - 1; ) {
|
|
22183
22183
|
var w = Math.floor((_ + S) / 2), E = w - 1, O = v(E), I = GP(O, 2), N = I[0], B = I[1], D = v(w), R = GP(D, 1), U = R[0];
|
|
@@ -22244,21 +22244,21 @@ var Gk = /[ \f\n\r\t\v\u2028\u2029]+/, Yk = function(t) {
|
|
|
22244
22244
|
var W = P[0].width, F = S.width;
|
|
22245
22245
|
U.push("scale(".concat((At(F) ? F / W : 1) / W, ")"));
|
|
22246
22246
|
}
|
|
22247
|
-
return E && U.push("rotate(".concat(E, ", ").concat(B, ", ").concat(D, ")")), U.length && (N.transform = U.join(" ")), /* @__PURE__ */ x.createElement("text",
|
|
22247
|
+
return E && U.push("rotate(".concat(E, ", ").concat(B, ", ").concat(D, ")")), U.length && (N.transform = U.join(" ")), /* @__PURE__ */ x.createElement("text", x0({}, Yt(N, !0), {
|
|
22248
22248
|
x: B,
|
|
22249
22249
|
y: D,
|
|
22250
22250
|
className: me("recharts-text", O),
|
|
22251
22251
|
textAnchor: g,
|
|
22252
22252
|
fill: _.includes("url") ? KP : _
|
|
22253
|
-
}), P.map(function(q,
|
|
22253
|
+
}), P.map(function(q, Y) {
|
|
22254
22254
|
var et = q.words.join(I ? "" : " ");
|
|
22255
22255
|
return (
|
|
22256
22256
|
// duplicate words will cause duplicate keys
|
|
22257
22257
|
// eslint-disable-next-line react/no-array-index-key
|
|
22258
22258
|
/* @__PURE__ */ x.createElement("tspan", {
|
|
22259
22259
|
x: B,
|
|
22260
|
-
dy:
|
|
22261
|
-
key: "".concat(et, "-").concat(
|
|
22260
|
+
dy: Y === 0 ? R : a,
|
|
22261
|
+
key: "".concat(et, "-").concat(Y)
|
|
22262
22262
|
}, et)
|
|
22263
22263
|
);
|
|
22264
22264
|
}));
|
|
@@ -22359,7 +22359,7 @@ function Cp(e, t, n) {
|
|
|
22359
22359
|
let a, l, h;
|
|
22360
22360
|
return i < 0 ? (h = Math.pow(10, -i) / s, a = Math.round(e * h), l = Math.round(t * h), a / h < e && ++a, l / h > t && --l, h = -h) : (h = Math.pow(10, i) * s, a = Math.round(e / h), l = Math.round(t / h), a * h < e && ++a, l * h > t && --l), l < a && 0.5 <= n && n < 2 ? Cp(e, t, n * 2) : [a, l, h];
|
|
22361
22361
|
}
|
|
22362
|
-
function
|
|
22362
|
+
function w0(e, t, n) {
|
|
22363
22363
|
if (t = +t, e = +e, n = +n, !(n > 0)) return [];
|
|
22364
22364
|
if (e === t) return [e];
|
|
22365
22365
|
const r = t < e, [i, o, s] = r ? Cp(t, e, n) : Cp(e, t, n);
|
|
@@ -22372,12 +22372,12 @@ function wb(e, t, n) {
|
|
|
22372
22372
|
else for (let h = 0; h < a; ++h) l[h] = (i + h) * s;
|
|
22373
22373
|
return l;
|
|
22374
22374
|
}
|
|
22375
|
-
function
|
|
22375
|
+
function _0(e, t, n) {
|
|
22376
22376
|
return t = +t, e = +e, n = +n, Cp(e, t, n)[2];
|
|
22377
22377
|
}
|
|
22378
|
-
function
|
|
22378
|
+
function S0(e, t, n) {
|
|
22379
22379
|
t = +t, e = +e, n = +n;
|
|
22380
|
-
const r = t < e, i = r ?
|
|
22380
|
+
const r = t < e, i = r ? _0(t, e, n) : _0(e, t, n);
|
|
22381
22381
|
return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
|
|
22382
22382
|
}
|
|
22383
22383
|
function QP(e, t) {
|
|
@@ -22463,13 +22463,13 @@ function ts(e, t) {
|
|
|
22463
22463
|
}
|
|
22464
22464
|
return this;
|
|
22465
22465
|
}
|
|
22466
|
-
const
|
|
22466
|
+
const P0 = Symbol("implicit");
|
|
22467
22467
|
function ow() {
|
|
22468
|
-
var e = new XP(), t = [], n = [], r =
|
|
22468
|
+
var e = new XP(), t = [], n = [], r = P0;
|
|
22469
22469
|
function i(o) {
|
|
22470
22470
|
let s = e.get(o);
|
|
22471
22471
|
if (s === void 0) {
|
|
22472
|
-
if (r !==
|
|
22472
|
+
if (r !== P0) return r;
|
|
22473
22473
|
e.set(o, s = t.push(o) - 1);
|
|
22474
22474
|
}
|
|
22475
22475
|
return n[s % n.length];
|
|
@@ -22732,13 +22732,13 @@ function Od(e, t, n, r) {
|
|
|
22732
22732
|
function yQ(e) {
|
|
22733
22733
|
return e instanceof Of || (e = Uh(e)), e ? (e = e.rgb(), new Rr(e.r, e.g, e.b, e.opacity)) : new Rr();
|
|
22734
22734
|
}
|
|
22735
|
-
function
|
|
22735
|
+
function A0(e, t, n, r) {
|
|
22736
22736
|
return arguments.length === 1 ? yQ(e) : new Rr(e, t, n, r ?? 1);
|
|
22737
22737
|
}
|
|
22738
22738
|
function Rr(e, t, n, r) {
|
|
22739
22739
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
22740
22740
|
}
|
|
22741
|
-
sw(Rr,
|
|
22741
|
+
sw(Rr, A0, Qk(Of, {
|
|
22742
22742
|
brighter(e) {
|
|
22743
22743
|
return e = e == null ? Mp : Math.pow(Mp, e), new Rr(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
22744
22744
|
},
|
|
@@ -22856,7 +22856,7 @@ function e2(e, t) {
|
|
|
22856
22856
|
const cA = function e(t) {
|
|
22857
22857
|
var n = _Q(t);
|
|
22858
22858
|
function r(i, o) {
|
|
22859
|
-
var s = n((i =
|
|
22859
|
+
var s = n((i = A0(i)).r, (o = A0(o)).r), a = n(i.g, o.g), l = n(i.b, o.b), h = e2(i.opacity, o.opacity);
|
|
22860
22860
|
return function(u) {
|
|
22861
22861
|
return i.r = s(u), i.g = a(u), i.b = l(u), i.opacity = h(u), i + "";
|
|
22862
22862
|
};
|
|
@@ -22904,7 +22904,7 @@ function TQ(e, t) {
|
|
|
22904
22904
|
return r;
|
|
22905
22905
|
};
|
|
22906
22906
|
}
|
|
22907
|
-
var
|
|
22907
|
+
var E0 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Vy = new RegExp(E0.source, "g");
|
|
22908
22908
|
function CQ(e) {
|
|
22909
22909
|
return function() {
|
|
22910
22910
|
return e;
|
|
@@ -22916,8 +22916,8 @@ function MQ(e) {
|
|
|
22916
22916
|
};
|
|
22917
22917
|
}
|
|
22918
22918
|
function OQ(e, t) {
|
|
22919
|
-
var n =
|
|
22920
|
-
for (e = e + "", t = t + ""; (r =
|
|
22919
|
+
var n = E0.lastIndex = Vy.lastIndex = 0, r, i, o, s = -1, a = [], l = [];
|
|
22920
|
+
for (e = e + "", t = t + ""; (r = E0.exec(e)) && (i = Vy.exec(t)); )
|
|
22921
22921
|
(o = i.index) > n && (o = t.slice(n, o), a[s] ? a[s] += o : a[++s] = o), (r = r[0]) === (i = i[0]) ? a[s] ? a[s] += i : a[++s] = i : (a[++s] = null, l.push({ i: s, x: kp(r, i) })), n = Vy.lastIndex;
|
|
22922
22922
|
return n < t.length && (o = t.slice(n), a[s] ? a[s] += o : a[++s] = o), a.length < 2 ? l[0] ? MQ(l[0].x) : CQ(t) : (t = l.length, function(h) {
|
|
22923
22923
|
for (var u = 0, f; u < t; ++u) a[(f = l[u]).i] = f.x(h);
|
|
@@ -22953,7 +22953,7 @@ var uA = [0, 1];
|
|
|
22953
22953
|
function Ar(e) {
|
|
22954
22954
|
return e;
|
|
22955
22955
|
}
|
|
22956
|
-
function
|
|
22956
|
+
function T0(e, t) {
|
|
22957
22957
|
return (t -= e = +e) ? function(n) {
|
|
22958
22958
|
return (n - e) / t;
|
|
22959
22959
|
} : $Q(isNaN(t) ? NaN : 0.5);
|
|
@@ -22966,14 +22966,14 @@ function IQ(e, t) {
|
|
|
22966
22966
|
}
|
|
22967
22967
|
function NQ(e, t, n) {
|
|
22968
22968
|
var r = e[0], i = e[1], o = t[0], s = t[1];
|
|
22969
|
-
return i < r ? (r =
|
|
22969
|
+
return i < r ? (r = T0(i, r), o = n(s, o)) : (r = T0(r, i), o = n(o, s)), function(a) {
|
|
22970
22970
|
return o(r(a));
|
|
22971
22971
|
};
|
|
22972
22972
|
}
|
|
22973
22973
|
function RQ(e, t, n) {
|
|
22974
22974
|
var r = Math.min(e.length, t.length) - 1, i = new Array(r), o = new Array(r), s = -1;
|
|
22975
22975
|
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++s < r; )
|
|
22976
|
-
i[s] =
|
|
22976
|
+
i[s] = T0(e[s], e[s + 1]), o[s] = n(t[s], t[s + 1]);
|
|
22977
22977
|
return function(a) {
|
|
22978
22978
|
var l = Mf(e, a, 1, r) - 1;
|
|
22979
22979
|
return o[l](i[l](a));
|
|
@@ -23121,7 +23121,7 @@ function WQ(e) {
|
|
|
23121
23121
|
var O = (p && p.prefix !== void 0 ? p.prefix : "") + (v === "$" ? n : v === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), I = (v === "$" ? r : /[%p]/.test(E) ? s : "") + (p && p.suffix !== void 0 ? p.suffix : ""), N = fA[E], B = /[defgprs%]/.test(E);
|
|
23122
23122
|
T = T === void 0 ? 6 : /[gprs]/.test(E) ? Math.max(1, Math.min(21, T)) : Math.max(0, Math.min(20, T));
|
|
23123
23123
|
function D(R) {
|
|
23124
|
-
var U = O, W = I, F, q,
|
|
23124
|
+
var U = O, W = I, F, q, Y;
|
|
23125
23125
|
if (E === "c")
|
|
23126
23126
|
W = N(R) + W, R = "";
|
|
23127
23127
|
else {
|
|
@@ -23129,8 +23129,8 @@ function WQ(e) {
|
|
|
23129
23129
|
var et = R < 0 || 1 / R < 0;
|
|
23130
23130
|
if (R = isNaN(R) ? l : N(Math.abs(R), T), w && (R = zQ(R)), et && +R == 0 && m !== "+" && (et = !1), U = (et ? m === "(" ? m : a : m === "-" || m === "(" ? "" : m) + U, W = (E === "s" && !isNaN(R) && Np !== void 0 ? mA[8 + Np / 3] : "") + W + (et && m === "(" ? ")" : ""), B) {
|
|
23131
23131
|
for (F = -1, q = R.length; ++F < q; )
|
|
23132
|
-
if (
|
|
23133
|
-
W = (
|
|
23132
|
+
if (Y = R.charCodeAt(F), 48 > Y || Y > 57) {
|
|
23133
|
+
W = (Y === 46 ? i + R.slice(F + 1) : R.slice(F)) + W, R = R.slice(0, F);
|
|
23134
23134
|
break;
|
|
23135
23135
|
}
|
|
23136
23136
|
}
|
|
@@ -23187,7 +23187,7 @@ function qQ(e, t) {
|
|
|
23187
23187
|
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, kc(t) - kc(e)) + 1;
|
|
23188
23188
|
}
|
|
23189
23189
|
function r2(e, t, n, r) {
|
|
23190
|
-
var i =
|
|
23190
|
+
var i = S0(e, t, n), o;
|
|
23191
23191
|
switch (r = Hh(r ?? ",f"), r.type) {
|
|
23192
23192
|
case "s": {
|
|
23193
23193
|
var s = Math.max(Math.abs(e), Math.abs(t));
|
|
@@ -23213,7 +23213,7 @@ function Xs(e) {
|
|
|
23213
23213
|
var t = e.domain;
|
|
23214
23214
|
return e.ticks = function(n) {
|
|
23215
23215
|
var r = t();
|
|
23216
|
-
return
|
|
23216
|
+
return w0(r[0], r[r.length - 1], n ?? 10);
|
|
23217
23217
|
}, e.tickFormat = function(n, r) {
|
|
23218
23218
|
var i = t();
|
|
23219
23219
|
return r2(i[0], i[i.length - 1], n ?? 10, r);
|
|
@@ -23221,7 +23221,7 @@ function Xs(e) {
|
|
|
23221
23221
|
n == null && (n = 10);
|
|
23222
23222
|
var r = t(), i = 0, o = r.length - 1, s = r[i], a = r[o], l, h, u = 10;
|
|
23223
23223
|
for (a < s && (h = s, s = a, a = h, h = i, i = o, o = h); u-- > 0; ) {
|
|
23224
|
-
if (h =
|
|
23224
|
+
if (h = _0(s, a, n), h === l)
|
|
23225
23225
|
return r[i] = s, r[o] = a, t(r);
|
|
23226
23226
|
if (h > 0)
|
|
23227
23227
|
s = Math.floor(s / h) * h, a = Math.ceil(a / h) * h;
|
|
@@ -23314,9 +23314,9 @@ function fw(e) {
|
|
|
23314
23314
|
if (m > u) break;
|
|
23315
23315
|
_.push(m);
|
|
23316
23316
|
}
|
|
23317
|
-
_.length * 2 < v && (_ =
|
|
23317
|
+
_.length * 2 < v && (_ = w0(h, u, v));
|
|
23318
23318
|
} else
|
|
23319
|
-
_ =
|
|
23319
|
+
_ = w0(p, g, Math.min(g - p, v)).map(o);
|
|
23320
23320
|
return f ? _.reverse() : _;
|
|
23321
23321
|
}, t.tickFormat = (a, l) => {
|
|
23322
23322
|
if (a == null && (a = 10), l == null && (l = r === 10 ? "s" : ","), typeof l != "function" && (!(r % 1) && (l = Hh(l)).precision == null && (l.trim = !0), l = hw(l)), a === 1 / 0) return l;
|
|
@@ -23669,8 +23669,8 @@ function d2(e, t, n, r, i, o) {
|
|
|
23669
23669
|
}
|
|
23670
23670
|
function l(h, u, f) {
|
|
23671
23671
|
const p = Math.abs(u - h) / f, g = iw(([, , v]) => v).right(s, p);
|
|
23672
|
-
if (g === s.length) return e.every(
|
|
23673
|
-
if (g === 0) return Lp.every(Math.max(
|
|
23672
|
+
if (g === s.length) return e.every(S0(h / qy, u / qy, f));
|
|
23673
|
+
if (g === 0) return Lp.every(Math.max(S0(h, u, f), 1));
|
|
23674
23674
|
const [b, m] = s[p / s[g - 1][2] < s[g][2] / p ? g - 1 : g];
|
|
23675
23675
|
return b.every(m);
|
|
23676
23676
|
}
|
|
@@ -23696,7 +23696,7 @@ function Uu(e, t, n) {
|
|
|
23696
23696
|
}
|
|
23697
23697
|
function ptt(e) {
|
|
23698
23698
|
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, o = e.days, s = e.shortDays, a = e.months, l = e.shortMonths, h = Hu(i), u = qu(i), f = Hu(o), p = qu(o), g = Hu(s), b = qu(s), m = Hu(a), v = qu(a), _ = Hu(l), S = qu(l), P = {
|
|
23699
|
-
a:
|
|
23699
|
+
a: Y,
|
|
23700
23700
|
A: et,
|
|
23701
23701
|
b: st,
|
|
23702
23702
|
B: H,
|
|
@@ -23856,7 +23856,7 @@ function ptt(e) {
|
|
|
23856
23856
|
function q(ut, ht, It) {
|
|
23857
23857
|
return I(ut, r, ht, It);
|
|
23858
23858
|
}
|
|
23859
|
-
function
|
|
23859
|
+
function Y(ut) {
|
|
23860
23860
|
return s[ut.getDay()];
|
|
23861
23861
|
}
|
|
23862
23862
|
function et(ut) {
|
|
@@ -24330,7 +24330,7 @@ const NA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24330
24330
|
scaleDivergingSqrt: wet,
|
|
24331
24331
|
scaleDivergingSymlog: E2,
|
|
24332
24332
|
scaleIdentity: i2,
|
|
24333
|
-
scaleImplicit:
|
|
24333
|
+
scaleImplicit: P0,
|
|
24334
24334
|
scaleLinear: Rp,
|
|
24335
24335
|
scaleLog: s2,
|
|
24336
24336
|
scaleOrdinal: ow,
|
|
@@ -24874,19 +24874,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24874
24874
|
}
|
|
24875
24875
|
function nnt(e, t) {
|
|
24876
24876
|
if (e) {
|
|
24877
|
-
if (typeof e == "string") return
|
|
24877
|
+
if (typeof e == "string") return C0(e, t);
|
|
24878
24878
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
24879
24879
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
24880
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
24880
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return C0(e, t);
|
|
24881
24881
|
}
|
|
24882
24882
|
}
|
|
24883
24883
|
function rnt(e) {
|
|
24884
24884
|
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
24885
24885
|
}
|
|
24886
24886
|
function int(e) {
|
|
24887
|
-
if (Array.isArray(e)) return
|
|
24887
|
+
if (Array.isArray(e)) return C0(e);
|
|
24888
24888
|
}
|
|
24889
|
-
function
|
|
24889
|
+
function C0(e, t) {
|
|
24890
24890
|
(t == null || t > e.length) && (t = e.length);
|
|
24891
24891
|
for (var n = 0, r = new Array(t); n < t; n++)
|
|
24892
24892
|
r[n] = e[n];
|
|
@@ -24918,7 +24918,7 @@ var ont = function(t) {
|
|
|
24918
24918
|
});
|
|
24919
24919
|
}, dg = function(t) {
|
|
24920
24920
|
return snt(t.length, t);
|
|
24921
|
-
},
|
|
24921
|
+
}, M0 = function(t, n) {
|
|
24922
24922
|
for (var r = [], i = t; i < n; ++i)
|
|
24923
24923
|
r[i - t] = i;
|
|
24924
24924
|
return r;
|
|
@@ -24937,7 +24937,7 @@ var ont = function(t) {
|
|
|
24937
24937
|
return l(a);
|
|
24938
24938
|
}, o.apply(void 0, arguments));
|
|
24939
24939
|
};
|
|
24940
|
-
},
|
|
24940
|
+
}, O0 = function(t) {
|
|
24941
24941
|
return Array.isArray(t) ? t.reverse() : t.split("").reverse.join("");
|
|
24942
24942
|
}, L2 = function(t) {
|
|
24943
24943
|
var n = null, r = null;
|
|
@@ -24975,7 +24975,7 @@ const pg = {
|
|
|
24975
24975
|
uninterpolateNumber: fnt,
|
|
24976
24976
|
uninterpolateTruncation: dnt
|
|
24977
24977
|
};
|
|
24978
|
-
function
|
|
24978
|
+
function k0(e) {
|
|
24979
24979
|
return gnt(e) || mnt(e) || D2(e) || pnt();
|
|
24980
24980
|
}
|
|
24981
24981
|
function pnt() {
|
|
@@ -24986,7 +24986,7 @@ function mnt(e) {
|
|
|
24986
24986
|
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
24987
24987
|
}
|
|
24988
24988
|
function gnt(e) {
|
|
24989
|
-
if (Array.isArray(e)) return $
|
|
24989
|
+
if (Array.isArray(e)) return $0(e);
|
|
24990
24990
|
}
|
|
24991
24991
|
function Gh(e, t) {
|
|
24992
24992
|
return bnt(e) || vnt(e, t) || D2(e, t) || ynt();
|
|
@@ -24997,13 +24997,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24997
24997
|
}
|
|
24998
24998
|
function D2(e, t) {
|
|
24999
24999
|
if (e) {
|
|
25000
|
-
if (typeof e == "string") return $
|
|
25000
|
+
if (typeof e == "string") return $0(e, t);
|
|
25001
25001
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
25002
25002
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
25003
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return $
|
|
25003
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return $0(e, t);
|
|
25004
25004
|
}
|
|
25005
25005
|
}
|
|
25006
|
-
function $
|
|
25006
|
+
function $0(e, t) {
|
|
25007
25007
|
(t == null || t > e.length) && (t = e.length);
|
|
25008
25008
|
for (var n = 0, r = new Array(t); n < t; n++)
|
|
25009
25009
|
r[n] = e[n];
|
|
@@ -25048,7 +25048,7 @@ function xnt(e, t, n) {
|
|
|
25048
25048
|
} else e === 0 ? i = new He(Math.floor((t - 1) / 2)) : n || (i = new He(Math.floor(e)));
|
|
25049
25049
|
var s = Math.floor((t - 1) / 2), a = lnt(ant(function(l) {
|
|
25050
25050
|
return i.add(new He(l - s).mul(r)).toNumber();
|
|
25051
|
-
}),
|
|
25051
|
+
}), M0);
|
|
25052
25052
|
return a(0, t);
|
|
25053
25053
|
}
|
|
25054
25054
|
function z2(e, t, n, r) {
|
|
@@ -25071,17 +25071,17 @@ function z2(e, t, n, r) {
|
|
|
25071
25071
|
function wnt(e) {
|
|
25072
25072
|
var t = Gh(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, s = Math.max(i, 2), a = j2([n, r]), l = Gh(a, 2), h = l[0], u = l[1];
|
|
25073
25073
|
if (h === -1 / 0 || u === 1 / 0) {
|
|
25074
|
-
var f = u === 1 / 0 ? [h].concat(
|
|
25074
|
+
var f = u === 1 / 0 ? [h].concat(k0(M0(0, i - 1).map(function() {
|
|
25075
25075
|
return 1 / 0;
|
|
25076
|
-
}))) : [].concat(
|
|
25076
|
+
}))) : [].concat(k0(M0(0, i - 1).map(function() {
|
|
25077
25077
|
return -1 / 0;
|
|
25078
25078
|
})), [u]);
|
|
25079
|
-
return n > r ?
|
|
25079
|
+
return n > r ? O0(f) : f;
|
|
25080
25080
|
}
|
|
25081
25081
|
if (h === u)
|
|
25082
25082
|
return xnt(h, i, o);
|
|
25083
25083
|
var p = z2(h, u, s, o), g = p.step, b = p.tickMin, m = p.tickMax, v = pg.rangeStep(b, m.add(new He(0.1).mul(g)), g);
|
|
25084
|
-
return n > r ?
|
|
25084
|
+
return n > r ? O0(v) : v;
|
|
25085
25085
|
}
|
|
25086
25086
|
function _nt(e, t) {
|
|
25087
25087
|
var n = Gh(e, 2), r = n[0], i = n[1], o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, s = j2([r, i]), a = Gh(s, 2), l = a[0], h = a[1];
|
|
@@ -25089,8 +25089,8 @@ function _nt(e, t) {
|
|
|
25089
25089
|
return [r, i];
|
|
25090
25090
|
if (l === h)
|
|
25091
25091
|
return [l];
|
|
25092
|
-
var u = Math.max(t, 2), f = B2(new He(h).sub(l).div(u - 1), o, 0), p = [].concat(
|
|
25093
|
-
return r > i ?
|
|
25092
|
+
var u = Math.max(t, 2), f = B2(new He(h).sub(l).div(u - 1), o, 0), p = [].concat(k0(pg.rangeStep(new He(l), new He(h).sub(new He(0.99).mul(f)), f)), [h]);
|
|
25093
|
+
return r > i ? O0(p) : p;
|
|
25094
25094
|
}
|
|
25095
25095
|
var Snt = L2(wnt), Pnt = L2(_nt), Ant = process.env.NODE_ENV === "production", Ky = "Invariant failed";
|
|
25096
25096
|
function Lr(e, t) {
|
|
@@ -25225,12 +25225,12 @@ function Fp(e) {
|
|
|
25225
25225
|
function znt(e, t) {
|
|
25226
25226
|
if (typeof t != "function" && t !== null)
|
|
25227
25227
|
throw new TypeError("Super expression must either be null or a function");
|
|
25228
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
25228
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && I0(e, t);
|
|
25229
25229
|
}
|
|
25230
|
-
function
|
|
25231
|
-
return
|
|
25230
|
+
function I0(e, t) {
|
|
25231
|
+
return I0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
25232
25232
|
return r.__proto__ = i, r;
|
|
25233
|
-
},
|
|
25233
|
+
}, I0(e, t);
|
|
25234
25234
|
}
|
|
25235
25235
|
function W2(e, t, n) {
|
|
25236
25236
|
return t = V2(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -25287,9 +25287,9 @@ var If = /* @__PURE__ */ function(e) {
|
|
|
25287
25287
|
y2: R
|
|
25288
25288
|
});
|
|
25289
25289
|
} else if (o === "horizontal") {
|
|
25290
|
-
var F = f.scale, q = _ + i,
|
|
25290
|
+
var F = f.scale, q = _ + i, Y = q - s, et = q + s, st = F(P - E), H = F(P + O);
|
|
25291
25291
|
w.push({
|
|
25292
|
-
x1:
|
|
25292
|
+
x1: Y,
|
|
25293
25293
|
y1: H,
|
|
25294
25294
|
x2: et,
|
|
25295
25295
|
y2: H
|
|
@@ -25299,7 +25299,7 @@ var If = /* @__PURE__ */ function(e) {
|
|
|
25299
25299
|
x2: q,
|
|
25300
25300
|
y2: H
|
|
25301
25301
|
}), w.push({
|
|
25302
|
-
x1:
|
|
25302
|
+
x1: Y,
|
|
25303
25303
|
y1: st,
|
|
25304
25304
|
x2: et,
|
|
25305
25305
|
y2: st
|
|
@@ -25424,19 +25424,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25424
25424
|
}
|
|
25425
25425
|
function qnt(e, t) {
|
|
25426
25426
|
if (e) {
|
|
25427
|
-
if (typeof e == "string") return
|
|
25427
|
+
if (typeof e == "string") return N0(e, t);
|
|
25428
25428
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
25429
25429
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
25430
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
25430
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return N0(e, t);
|
|
25431
25431
|
}
|
|
25432
25432
|
}
|
|
25433
25433
|
function Gnt(e) {
|
|
25434
25434
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
25435
25435
|
}
|
|
25436
25436
|
function Ynt(e) {
|
|
25437
|
-
if (Array.isArray(e)) return
|
|
25437
|
+
if (Array.isArray(e)) return N0(e);
|
|
25438
25438
|
}
|
|
25439
|
-
function
|
|
25439
|
+
function N0(e, t) {
|
|
25440
25440
|
(t == null || t > e.length) && (t = e.length);
|
|
25441
25441
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
25442
25442
|
return r;
|
|
@@ -25831,7 +25831,7 @@ var Xnt = function(t) {
|
|
|
25831
25831
|
return a.props.dataKey;
|
|
25832
25832
|
}), o = art[r], s = SH().keys(i).value(function(a, l) {
|
|
25833
25833
|
return +mn(a, l, 0);
|
|
25834
|
-
}).order(
|
|
25834
|
+
}).order(o0).offset(o);
|
|
25835
25835
|
return s(t);
|
|
25836
25836
|
}, crt = function(t, n, r, i, o, s) {
|
|
25837
25837
|
if (!t)
|
|
@@ -25946,7 +25946,7 @@ var VA = function(t) {
|
|
|
25946
25946
|
}, [1 / 0, -1 / 0]).map(function(i) {
|
|
25947
25947
|
return i === 1 / 0 || i === -1 / 0 ? 0 : i;
|
|
25948
25948
|
});
|
|
25949
|
-
}, UA = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, HA = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,
|
|
25949
|
+
}, UA = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, HA = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, R0 = function(t, n, r) {
|
|
25950
25950
|
if (re(t))
|
|
25951
25951
|
return t(n, r);
|
|
25952
25952
|
if (!Array.isArray(t))
|
|
@@ -26207,19 +26207,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26207
26207
|
}
|
|
26208
26208
|
function Mrt(e, t) {
|
|
26209
26209
|
if (e) {
|
|
26210
|
-
if (typeof e == "string") return
|
|
26210
|
+
if (typeof e == "string") return L0(e, t);
|
|
26211
26211
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
26212
26212
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
26213
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
26213
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return L0(e, t);
|
|
26214
26214
|
}
|
|
26215
26215
|
}
|
|
26216
26216
|
function Ort(e) {
|
|
26217
26217
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
26218
26218
|
}
|
|
26219
26219
|
function krt(e) {
|
|
26220
|
-
if (Array.isArray(e)) return
|
|
26220
|
+
if (Array.isArray(e)) return L0(e);
|
|
26221
26221
|
}
|
|
26222
|
-
function
|
|
26222
|
+
function L0(e, t) {
|
|
26223
26223
|
(t == null || t > e.length) && (t = e.length);
|
|
26224
26224
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
26225
26225
|
return r;
|
|
@@ -26470,7 +26470,7 @@ function Yn(e) {
|
|
|
26470
26470
|
return /* @__PURE__ */ Dn(h, i);
|
|
26471
26471
|
var g;
|
|
26472
26472
|
if (re(h)) {
|
|
26473
|
-
if (g = /* @__PURE__ */
|
|
26473
|
+
if (g = /* @__PURE__ */ Ob(h, i), /* @__PURE__ */ wi(g))
|
|
26474
26474
|
return g;
|
|
26475
26475
|
} else
|
|
26476
26476
|
g = Drt(i);
|
|
@@ -26585,19 +26585,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26585
26585
|
}
|
|
26586
26586
|
function Jrt(e, t) {
|
|
26587
26587
|
if (e) {
|
|
26588
|
-
if (typeof e == "string") return
|
|
26588
|
+
if (typeof e == "string") return D0(e, t);
|
|
26589
26589
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
26590
26590
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
26591
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
26591
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return D0(e, t);
|
|
26592
26592
|
}
|
|
26593
26593
|
}
|
|
26594
26594
|
function Qrt(e) {
|
|
26595
26595
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
26596
26596
|
}
|
|
26597
26597
|
function tit(e) {
|
|
26598
|
-
if (Array.isArray(e)) return
|
|
26598
|
+
if (Array.isArray(e)) return D0(e);
|
|
26599
26599
|
}
|
|
26600
|
-
function
|
|
26600
|
+
function D0(e, t) {
|
|
26601
26601
|
(t == null || t > e.length) && (t = e.length);
|
|
26602
26602
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
26603
26603
|
return r;
|
|
@@ -26733,15 +26733,15 @@ function tf(e) {
|
|
|
26733
26733
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
26734
26734
|
}, tf(e);
|
|
26735
26735
|
}
|
|
26736
|
-
function
|
|
26737
|
-
return
|
|
26736
|
+
function j0() {
|
|
26737
|
+
return j0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
26738
26738
|
for (var t = 1; t < arguments.length; t++) {
|
|
26739
26739
|
var n = arguments[t];
|
|
26740
26740
|
for (var r in n)
|
|
26741
26741
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
26742
26742
|
}
|
|
26743
26743
|
return e;
|
|
26744
|
-
},
|
|
26744
|
+
}, j0.apply(this, arguments);
|
|
26745
26745
|
}
|
|
26746
26746
|
function tE(e, t) {
|
|
26747
26747
|
var n = Object.keys(e);
|
|
@@ -26903,7 +26903,7 @@ var hit = function(t, n) {
|
|
|
26903
26903
|
outerRadius: s,
|
|
26904
26904
|
startAngle: u,
|
|
26905
26905
|
endAngle: f
|
|
26906
|
-
}), /* @__PURE__ */ x.createElement("path",
|
|
26906
|
+
}), /* @__PURE__ */ x.createElement("path", j0({}, Yt(n, !0), {
|
|
26907
26907
|
className: g,
|
|
26908
26908
|
d: v,
|
|
26909
26909
|
role: "img"
|
|
@@ -26917,15 +26917,15 @@ function ef(e) {
|
|
|
26917
26917
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
26918
26918
|
}, ef(e);
|
|
26919
26919
|
}
|
|
26920
|
-
function
|
|
26921
|
-
return
|
|
26920
|
+
function B0() {
|
|
26921
|
+
return B0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
26922
26922
|
for (var t = 1; t < arguments.length; t++) {
|
|
26923
26923
|
var n = arguments[t];
|
|
26924
26924
|
for (var r in n)
|
|
26925
26925
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
26926
26926
|
}
|
|
26927
26927
|
return e;
|
|
26928
|
-
},
|
|
26928
|
+
}, B0.apply(this, arguments);
|
|
26929
26929
|
}
|
|
26930
26930
|
function nE(e, t) {
|
|
26931
26931
|
var n = Object.keys(e);
|
|
@@ -27014,12 +27014,12 @@ var iE = {
|
|
|
27014
27014
|
if ((!r || !r.length) && !i)
|
|
27015
27015
|
return null;
|
|
27016
27016
|
var s = r && r.length ? vit(t) : i;
|
|
27017
|
-
return /* @__PURE__ */ Er.createElement("path",
|
|
27017
|
+
return /* @__PURE__ */ Er.createElement("path", B0({}, Yt(t, !1), pp(t), {
|
|
27018
27018
|
className: me("recharts-curve", n),
|
|
27019
27019
|
d: s,
|
|
27020
27020
|
ref: o
|
|
27021
27021
|
}));
|
|
27022
|
-
},
|
|
27022
|
+
}, z0 = { exports: {} }, Ld = { exports: {} }, Le = {};
|
|
27023
27023
|
/** @license React v16.13.1
|
|
27024
27024
|
* react-is.production.min.js
|
|
27025
27025
|
*
|
|
@@ -27143,7 +27143,7 @@ function xit() {
|
|
|
27143
27143
|
}
|
|
27144
27144
|
}
|
|
27145
27145
|
}
|
|
27146
|
-
var w = l, E = h, O = a, I = s, N = t, B = u, D = r, R = b, U = g, W = n, F = o, q = i,
|
|
27146
|
+
var w = l, E = h, O = a, I = s, N = t, B = u, D = r, R = b, U = g, W = n, F = o, q = i, Y = f, et = !1;
|
|
27147
27147
|
function st(nt) {
|
|
27148
27148
|
return et || (et = !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.")), H(nt) || T(nt) === l;
|
|
27149
27149
|
}
|
|
@@ -27183,7 +27183,7 @@ function xit() {
|
|
|
27183
27183
|
function It(nt) {
|
|
27184
27184
|
return T(nt) === f;
|
|
27185
27185
|
}
|
|
27186
|
-
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = O, De.ContextProvider = I, De.Element = N, De.ForwardRef = B, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense =
|
|
27186
|
+
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = O, De.ContextProvider = I, De.Element = N, De.ForwardRef = B, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense = Y, De.isAsyncMode = st, De.isConcurrentMode = H, De.isContextConsumer = J, De.isContextProvider = ot, De.isElement = ct, De.isForwardRef = mt, De.isFragment = vt, De.isLazy = yt, De.isMemo = $t, De.isPortal = Tt, De.isProfiler = ut, De.isStrictMode = ht, De.isSuspense = It, De.isValidElementType = P, De.typeOf = T;
|
|
27187
27187
|
}()), De;
|
|
27188
27188
|
}
|
|
27189
27189
|
var aE;
|
|
@@ -27380,7 +27380,7 @@ function Sit() {
|
|
|
27380
27380
|
function J(ot, ct, mt, vt, yt, $t) {
|
|
27381
27381
|
var Tt = ot[ct], ut = q(Tt);
|
|
27382
27382
|
if (ut !== H) {
|
|
27383
|
-
var ht =
|
|
27383
|
+
var ht = Y(Tt);
|
|
27384
27384
|
return new m(
|
|
27385
27385
|
"Invalid " + vt + " `" + yt + "` of type " + ("`" + ht + "` supplied to `" + mt + "`, expected ") + ("`" + H + "`."),
|
|
27386
27386
|
{ expectedType: H }
|
|
@@ -27453,7 +27453,7 @@ function Sit() {
|
|
|
27453
27453
|
if (b($t, H[Tt]))
|
|
27454
27454
|
return null;
|
|
27455
27455
|
var ut = JSON.stringify(H, function(It, nt) {
|
|
27456
|
-
var St =
|
|
27456
|
+
var St = Y(nt);
|
|
27457
27457
|
return St === "symbol" ? String(nt) : nt;
|
|
27458
27458
|
});
|
|
27459
27459
|
return new m("Invalid " + vt + " `" + yt + "` of value `" + String($t) + "` " + ("supplied to `" + mt + "`, expected one of " + ut + "."));
|
|
@@ -27518,7 +27518,7 @@ function Sit() {
|
|
|
27518
27518
|
for (var ut in H) {
|
|
27519
27519
|
var ht = H[ut];
|
|
27520
27520
|
if (typeof ht != "function")
|
|
27521
|
-
return D(mt, vt, yt, ut,
|
|
27521
|
+
return D(mt, vt, yt, ut, Y(ht));
|
|
27522
27522
|
var It = ht($t, ut, mt, vt, yt + "." + ut, n);
|
|
27523
27523
|
if (It)
|
|
27524
27524
|
return It;
|
|
@@ -27536,7 +27536,7 @@ function Sit() {
|
|
|
27536
27536
|
for (var ht in ut) {
|
|
27537
27537
|
var It = H[ht];
|
|
27538
27538
|
if (r(H, ht) && typeof It != "function")
|
|
27539
|
-
return D(mt, vt, yt, ht,
|
|
27539
|
+
return D(mt, vt, yt, ht, Y(It));
|
|
27540
27540
|
if (!It)
|
|
27541
27541
|
return new m(
|
|
27542
27542
|
"Invalid " + vt + " `" + yt + "` key `" + ht + "` supplied to `" + mt + "`.\nBad object: " + JSON.stringify(ot[ct], null, " ") + `
|
|
@@ -27590,7 +27590,7 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
27590
27590
|
var J = typeof H;
|
|
27591
27591
|
return Array.isArray(H) ? "array" : H instanceof RegExp ? "object" : F(J, H) ? "symbol" : J;
|
|
27592
27592
|
}
|
|
27593
|
-
function
|
|
27593
|
+
function Y(H) {
|
|
27594
27594
|
if (typeof H > "u" || H === null)
|
|
27595
27595
|
return "" + H;
|
|
27596
27596
|
var J = q(H);
|
|
@@ -27603,7 +27603,7 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
27603
27603
|
return J;
|
|
27604
27604
|
}
|
|
27605
27605
|
function et(H) {
|
|
27606
|
-
var J =
|
|
27606
|
+
var J = Y(H);
|
|
27607
27607
|
switch (J) {
|
|
27608
27608
|
case "array":
|
|
27609
27609
|
case "object":
|
|
@@ -27672,10 +27672,10 @@ function Pit() {
|
|
|
27672
27672
|
}
|
|
27673
27673
|
if (process.env.NODE_ENV !== "production") {
|
|
27674
27674
|
var Ait = s$(), Eit = !0;
|
|
27675
|
-
|
|
27675
|
+
z0.exports = Sit()(Ait.isElement, Eit);
|
|
27676
27676
|
} else
|
|
27677
|
-
|
|
27678
|
-
var Tit =
|
|
27677
|
+
z0.exports = Pit()();
|
|
27678
|
+
var Tit = z0.exports;
|
|
27679
27679
|
const je = /* @__PURE__ */ qe(Tit), { getOwnPropertyNames: Cit, getOwnPropertySymbols: Mit } = Object, { hasOwnProperty: Oit } = Object.prototype;
|
|
27680
27680
|
function iv(e, t) {
|
|
27681
27681
|
return function(r, i, o) {
|
|
@@ -28004,13 +28004,13 @@ function bE(e) {
|
|
|
28004
28004
|
};
|
|
28005
28005
|
requestAnimationFrame(r);
|
|
28006
28006
|
}
|
|
28007
|
-
function
|
|
28007
|
+
function F0(e) {
|
|
28008
28008
|
"@babel/helpers - typeof";
|
|
28009
|
-
return
|
|
28009
|
+
return F0 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28010
28010
|
return typeof t;
|
|
28011
28011
|
} : function(t) {
|
|
28012
28012
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
28013
|
-
},
|
|
28013
|
+
}, F0(e);
|
|
28014
28014
|
}
|
|
28015
28015
|
function pot(e) {
|
|
28016
28016
|
return vot(e) || yot(e) || got(e) || mot();
|
|
@@ -28054,7 +28054,7 @@ function bot() {
|
|
|
28054
28054
|
i(l), bE(i.bind(null, h));
|
|
28055
28055
|
return;
|
|
28056
28056
|
}
|
|
28057
|
-
|
|
28057
|
+
F0(o) === "object" && (e = o, t(e)), typeof o == "function" && o();
|
|
28058
28058
|
}
|
|
28059
28059
|
};
|
|
28060
28060
|
return {
|
|
@@ -28187,19 +28187,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28187
28187
|
}
|
|
28188
28188
|
function u$(e, t) {
|
|
28189
28189
|
if (e) {
|
|
28190
|
-
if (typeof e == "string") return
|
|
28190
|
+
if (typeof e == "string") return W0(e, t);
|
|
28191
28191
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
28192
28192
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
28193
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
28193
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return W0(e, t);
|
|
28194
28194
|
}
|
|
28195
28195
|
}
|
|
28196
28196
|
function $ot(e) {
|
|
28197
28197
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
28198
28198
|
}
|
|
28199
28199
|
function Iot(e) {
|
|
28200
|
-
if (Array.isArray(e)) return
|
|
28200
|
+
if (Array.isArray(e)) return W0(e);
|
|
28201
28201
|
}
|
|
28202
|
-
function
|
|
28202
|
+
function W0(e, t) {
|
|
28203
28203
|
(t == null || t > e.length) && (t = e.length);
|
|
28204
28204
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
28205
28205
|
return r;
|
|
@@ -28317,7 +28317,7 @@ function jot(e) {
|
|
|
28317
28317
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
28318
28318
|
}
|
|
28319
28319
|
function Bot(e) {
|
|
28320
|
-
if (Array.isArray(e)) return
|
|
28320
|
+
if (Array.isArray(e)) return U0(e);
|
|
28321
28321
|
}
|
|
28322
28322
|
function TE(e, t) {
|
|
28323
28323
|
var n = Object.keys(e);
|
|
@@ -28333,14 +28333,14 @@ function Qn(e) {
|
|
|
28333
28333
|
for (var t = 1; t < arguments.length; t++) {
|
|
28334
28334
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
28335
28335
|
t % 2 ? TE(Object(n), !0).forEach(function(r) {
|
|
28336
|
-
|
|
28336
|
+
V0(e, r, n[r]);
|
|
28337
28337
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TE(Object(n)).forEach(function(r) {
|
|
28338
28338
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
28339
28339
|
});
|
|
28340
28340
|
}
|
|
28341
28341
|
return e;
|
|
28342
28342
|
}
|
|
28343
|
-
function
|
|
28343
|
+
function V0(e, t, n) {
|
|
28344
28344
|
return t = zot(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
28345
28345
|
}
|
|
28346
28346
|
function zot(e) {
|
|
@@ -28366,13 +28366,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28366
28366
|
}
|
|
28367
28367
|
function d$(e, t) {
|
|
28368
28368
|
if (e) {
|
|
28369
|
-
if (typeof e == "string") return
|
|
28369
|
+
if (typeof e == "string") return U0(e, t);
|
|
28370
28370
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
28371
28371
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
28372
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
28372
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return U0(e, t);
|
|
28373
28373
|
}
|
|
28374
28374
|
}
|
|
28375
|
-
function
|
|
28375
|
+
function U0(e, t) {
|
|
28376
28376
|
(t == null || t > e.length) && (t = e.length);
|
|
28377
28377
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
28378
28378
|
return r;
|
|
@@ -28400,12 +28400,12 @@ function Hot(e) {
|
|
|
28400
28400
|
}
|
|
28401
28401
|
var Zp = function(t, n, r) {
|
|
28402
28402
|
return t + (n - t) * r;
|
|
28403
|
-
},
|
|
28403
|
+
}, H0 = function(t) {
|
|
28404
28404
|
var n = t.from, r = t.to;
|
|
28405
28405
|
return n !== r;
|
|
28406
28406
|
}, qot = function e(t, n, r) {
|
|
28407
28407
|
var i = bh(function(o, s) {
|
|
28408
|
-
if (
|
|
28408
|
+
if (H0(s)) {
|
|
28409
28409
|
var a = t(s.from, s.to, s.velocity), l = Wot(a, 2), h = l[0], u = l[1];
|
|
28410
28410
|
return Qn(Qn({}, s), {}, {
|
|
28411
28411
|
from: h,
|
|
@@ -28415,7 +28415,7 @@ var Zp = function(t, n, r) {
|
|
|
28415
28415
|
return s;
|
|
28416
28416
|
}, n);
|
|
28417
28417
|
return r < 1 ? bh(function(o, s) {
|
|
28418
|
-
return
|
|
28418
|
+
return H0(s) ? Qn(Qn({}, s), {}, {
|
|
28419
28419
|
velocity: Zp(s.velocity, i[o].velocity, r),
|
|
28420
28420
|
from: Zp(s.from, i[o].from, r)
|
|
28421
28421
|
}) : s;
|
|
@@ -28423,9 +28423,9 @@ var Zp = function(t, n, r) {
|
|
|
28423
28423
|
};
|
|
28424
28424
|
const Got = function(e, t, n, r, i) {
|
|
28425
28425
|
var o = _ot(e, t), s = o.reduce(function(v, _) {
|
|
28426
|
-
return Qn(Qn({}, v), {},
|
|
28426
|
+
return Qn(Qn({}, v), {}, V0({}, _, [e[_], t[_]]));
|
|
28427
28427
|
}, {}), a = o.reduce(function(v, _) {
|
|
28428
|
-
return Qn(Qn({}, v), {},
|
|
28428
|
+
return Qn(Qn({}, v), {}, V0({}, _, {
|
|
28429
28429
|
from: e[_],
|
|
28430
28430
|
velocity: 0,
|
|
28431
28431
|
to: t[_]
|
|
@@ -28437,7 +28437,7 @@ const Got = function(e, t, n, r, i) {
|
|
|
28437
28437
|
return S.from;
|
|
28438
28438
|
}, a);
|
|
28439
28439
|
}, g = function() {
|
|
28440
|
-
return !Object.values(a).filter(
|
|
28440
|
+
return !Object.values(a).filter(H0).length;
|
|
28441
28441
|
}, b = function(_) {
|
|
28442
28442
|
h || (h = _);
|
|
28443
28443
|
var S = _ - h, P = S / n.dt;
|
|
@@ -28497,19 +28497,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28497
28497
|
}
|
|
28498
28498
|
function Jot(e, t) {
|
|
28499
28499
|
if (e) {
|
|
28500
|
-
if (typeof e == "string") return
|
|
28500
|
+
if (typeof e == "string") return q0(e, t);
|
|
28501
28501
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
28502
28502
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
28503
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
28503
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return q0(e, t);
|
|
28504
28504
|
}
|
|
28505
28505
|
}
|
|
28506
28506
|
function Qot(e) {
|
|
28507
28507
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
28508
28508
|
}
|
|
28509
28509
|
function tst(e) {
|
|
28510
|
-
if (Array.isArray(e)) return
|
|
28510
|
+
if (Array.isArray(e)) return q0(e);
|
|
28511
28511
|
}
|
|
28512
|
-
function
|
|
28512
|
+
function q0(e, t) {
|
|
28513
28513
|
(t == null || t > e.length) && (t = e.length);
|
|
28514
28514
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
28515
28515
|
return r;
|
|
@@ -28568,12 +28568,12 @@ function ist(e, t) {
|
|
|
28568
28568
|
function ost(e, t) {
|
|
28569
28569
|
if (typeof t != "function" && t !== null)
|
|
28570
28570
|
throw new TypeError("Super expression must either be null or a function");
|
|
28571
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
28571
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && G0(e, t);
|
|
28572
28572
|
}
|
|
28573
|
-
function
|
|
28574
|
-
return
|
|
28573
|
+
function G0(e, t) {
|
|
28574
|
+
return G0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
28575
28575
|
return r.__proto__ = i, r;
|
|
28576
|
-
},
|
|
28576
|
+
}, G0(e, t);
|
|
28577
28577
|
}
|
|
28578
28578
|
function sst(e) {
|
|
28579
28579
|
var t = ast();
|
|
@@ -28584,17 +28584,17 @@ function sst(e) {
|
|
|
28584
28584
|
i = Reflect.construct(r, arguments, o);
|
|
28585
28585
|
} else
|
|
28586
28586
|
i = r.apply(this, arguments);
|
|
28587
|
-
return
|
|
28587
|
+
return Y0(this, i);
|
|
28588
28588
|
};
|
|
28589
28589
|
}
|
|
28590
|
-
function
|
|
28590
|
+
function Y0(e, t) {
|
|
28591
28591
|
if (t && (Rc(t) === "object" || typeof t == "function"))
|
|
28592
28592
|
return t;
|
|
28593
28593
|
if (t !== void 0)
|
|
28594
28594
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
28595
|
-
return
|
|
28595
|
+
return Z0(e);
|
|
28596
28596
|
}
|
|
28597
|
-
function
|
|
28597
|
+
function Z0(e) {
|
|
28598
28598
|
if (e === void 0)
|
|
28599
28599
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28600
28600
|
return e;
|
|
@@ -28621,12 +28621,12 @@ var Bi = /* @__PURE__ */ function(e) {
|
|
|
28621
28621
|
var o;
|
|
28622
28622
|
est(this, n), o = t.call(this, r, i);
|
|
28623
28623
|
var s = o.props, a = s.isActive, l = s.attributeName, h = s.from, u = s.to, f = s.steps, p = s.children, g = s.duration;
|
|
28624
|
-
if (o.handleStyleChange = o.handleStyleChange.bind(
|
|
28624
|
+
if (o.handleStyleChange = o.handleStyleChange.bind(Z0(o)), o.changeStyle = o.changeStyle.bind(Z0(o)), !a || g <= 0)
|
|
28625
28625
|
return o.state = {
|
|
28626
28626
|
style: {}
|
|
28627
28627
|
}, typeof p == "function" && (o.state = {
|
|
28628
28628
|
style: u
|
|
28629
|
-
}),
|
|
28629
|
+
}), Y0(o);
|
|
28630
28630
|
if (f && f.length)
|
|
28631
28631
|
o.state = {
|
|
28632
28632
|
style: f[0].style
|
|
@@ -28635,7 +28635,7 @@ var Bi = /* @__PURE__ */ function(e) {
|
|
|
28635
28635
|
if (typeof p == "function")
|
|
28636
28636
|
return o.state = {
|
|
28637
28637
|
style: h
|
|
28638
|
-
},
|
|
28638
|
+
}, Y0(o);
|
|
28639
28639
|
o.state = {
|
|
28640
28640
|
style: l ? oh({}, l, h) : h
|
|
28641
28641
|
};
|
|
@@ -29047,19 +29047,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29047
29047
|
}
|
|
29048
29048
|
function _st(e, t) {
|
|
29049
29049
|
if (e) {
|
|
29050
|
-
if (typeof e == "string") return
|
|
29050
|
+
if (typeof e == "string") return K0(e, t);
|
|
29051
29051
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
29052
29052
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
29053
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
29053
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return K0(e, t);
|
|
29054
29054
|
}
|
|
29055
29055
|
}
|
|
29056
29056
|
function Sst(e) {
|
|
29057
29057
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
29058
29058
|
}
|
|
29059
29059
|
function Pst(e) {
|
|
29060
|
-
if (Array.isArray(e)) return
|
|
29060
|
+
if (Array.isArray(e)) return K0(e);
|
|
29061
29061
|
}
|
|
29062
|
-
function
|
|
29062
|
+
function K0(e, t) {
|
|
29063
29063
|
(t == null || t > e.length) && (t = e.length);
|
|
29064
29064
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
29065
29065
|
return r;
|
|
@@ -29113,19 +29113,19 @@ var NE = function(t) {
|
|
|
29113
29113
|
d: u
|
|
29114
29114
|
}));
|
|
29115
29115
|
};
|
|
29116
|
-
function
|
|
29117
|
-
return
|
|
29116
|
+
function X0() {
|
|
29117
|
+
return X0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
29118
29118
|
for (var t = 1; t < arguments.length; t++) {
|
|
29119
29119
|
var n = arguments[t];
|
|
29120
29120
|
for (var r in n)
|
|
29121
29121
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
29122
29122
|
}
|
|
29123
29123
|
return e;
|
|
29124
|
-
},
|
|
29124
|
+
}, X0.apply(this, arguments);
|
|
29125
29125
|
}
|
|
29126
29126
|
var mg = function(t) {
|
|
29127
29127
|
var n = t.cx, r = t.cy, i = t.r, o = t.className, s = me("recharts-dot", o);
|
|
29128
|
-
return n === +n && r === +r && i === +i ? /* @__PURE__ */ Er.createElement("circle",
|
|
29128
|
+
return n === +n && r === +r && i === +i ? /* @__PURE__ */ Er.createElement("circle", X0({}, Yt(t, !1), pp(t), {
|
|
29129
29129
|
className: s,
|
|
29130
29130
|
cx: n,
|
|
29131
29131
|
cy: r,
|
|
@@ -29141,15 +29141,15 @@ function sf(e) {
|
|
|
29141
29141
|
}, sf(e);
|
|
29142
29142
|
}
|
|
29143
29143
|
var Cst = ["x", "y", "top", "left", "width", "height", "className"];
|
|
29144
|
-
function
|
|
29145
|
-
return
|
|
29144
|
+
function J0() {
|
|
29145
|
+
return J0 = Object.assign ? Object.assign.bind() : function(e) {
|
|
29146
29146
|
for (var t = 1; t < arguments.length; t++) {
|
|
29147
29147
|
var n = arguments[t];
|
|
29148
29148
|
for (var r in n)
|
|
29149
29149
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
29150
29150
|
}
|
|
29151
29151
|
return e;
|
|
29152
|
-
},
|
|
29152
|
+
}, J0.apply(this, arguments);
|
|
29153
29153
|
}
|
|
29154
29154
|
function RE(e, t) {
|
|
29155
29155
|
var n = Object.keys(e);
|
|
@@ -29220,7 +29220,7 @@ var Rst = function(t, n, r, i, o, s) {
|
|
|
29220
29220
|
width: f,
|
|
29221
29221
|
height: g
|
|
29222
29222
|
}, m);
|
|
29223
|
-
return !At(r) || !At(o) || !At(f) || !At(g) || !At(a) || !At(h) ? null : /* @__PURE__ */ x.createElement("path",
|
|
29223
|
+
return !At(r) || !At(o) || !At(f) || !At(g) || !At(a) || !At(h) ? null : /* @__PURE__ */ x.createElement("path", J0({}, Yt(v, !0), {
|
|
29224
29224
|
className: me("recharts-cross", b),
|
|
29225
29225
|
d: Rst(r, o, f, g, a, h)
|
|
29226
29226
|
}));
|
|
@@ -29342,12 +29342,12 @@ function Jp(e) {
|
|
|
29342
29342
|
function rat(e, t) {
|
|
29343
29343
|
if (typeof t != "function" && t !== null)
|
|
29344
29344
|
throw new TypeError("Super expression must either be null or a function");
|
|
29345
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
29345
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Q0(e, t);
|
|
29346
29346
|
}
|
|
29347
|
-
function
|
|
29348
|
-
return
|
|
29347
|
+
function Q0(e, t) {
|
|
29348
|
+
return Q0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
29349
29349
|
return r.__proto__ = i, r;
|
|
29350
|
-
},
|
|
29350
|
+
}, Q0(e, t);
|
|
29351
29351
|
}
|
|
29352
29352
|
function gg(e, t, n) {
|
|
29353
29353
|
return t = g$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -29578,12 +29578,12 @@ function Qp(e) {
|
|
|
29578
29578
|
function uat(e, t) {
|
|
29579
29579
|
if (typeof t != "function" && t !== null)
|
|
29580
29580
|
throw new TypeError("Super expression must either be null or a function");
|
|
29581
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
29581
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && tb(e, t);
|
|
29582
29582
|
}
|
|
29583
|
-
function
|
|
29584
|
-
return
|
|
29583
|
+
function tb(e, t) {
|
|
29584
|
+
return tb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
29585
29585
|
return r.__proto__ = i, r;
|
|
29586
|
-
},
|
|
29586
|
+
}, tb(e, t);
|
|
29587
29587
|
}
|
|
29588
29588
|
function vg(e, t, n) {
|
|
29589
29589
|
return t = v$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -30154,12 +30154,12 @@ function rm(e) {
|
|
|
30154
30154
|
function ult(e, t) {
|
|
30155
30155
|
if (typeof t != "function" && t !== null)
|
|
30156
30156
|
throw new TypeError("Super expression must either be null or a function");
|
|
30157
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
30157
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && eb(e, t);
|
|
30158
30158
|
}
|
|
30159
|
-
function
|
|
30160
|
-
return
|
|
30159
|
+
function eb(e, t) {
|
|
30160
|
+
return eb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
30161
30161
|
return r.__proto__ = i, r;
|
|
30162
|
-
},
|
|
30162
|
+
}, eb(e, t);
|
|
30163
30163
|
}
|
|
30164
30164
|
function bi(e, t, n) {
|
|
30165
30165
|
return t = w$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -30479,7 +30479,7 @@ bi(es, "getComposedData", function(e) {
|
|
|
30479
30479
|
E = i.map(function(I, N) {
|
|
30480
30480
|
var B = mn(I, _, 0), D = mn(I, u, N), R = (At(B) ? B : 0) / w, U;
|
|
30481
30481
|
N ? U = O.endAngle + Sr(m) * l * (B !== 0 ? 1 : 0) : U = s;
|
|
30482
|
-
var W = U + Sr(m) * ((B !== 0 ? g : 0) + R * T), F = (U + W) / 2, q = (b.innerRadius + b.outerRadius) / 2,
|
|
30482
|
+
var W = U + Sr(m) * ((B !== 0 ? g : 0) + R * T), F = (U + W) / 2, q = (b.innerRadius + b.outerRadius) / 2, Y = [{
|
|
30483
30483
|
name: D,
|
|
30484
30484
|
value: B,
|
|
30485
30485
|
payload: I,
|
|
@@ -30490,7 +30490,7 @@ bi(es, "getComposedData", function(e) {
|
|
|
30490
30490
|
percent: R,
|
|
30491
30491
|
cornerRadius: o,
|
|
30492
30492
|
name: D,
|
|
30493
|
-
tooltipPayload:
|
|
30493
|
+
tooltipPayload: Y,
|
|
30494
30494
|
midAngle: F,
|
|
30495
30495
|
middleRadius: q,
|
|
30496
30496
|
tooltipPosition: et
|
|
@@ -30671,12 +30671,12 @@ function sm(e) {
|
|
|
30671
30671
|
function Rlt(e, t) {
|
|
30672
30672
|
if (typeof t != "function" && t !== null)
|
|
30673
30673
|
throw new TypeError("Super expression must either be null or a function");
|
|
30674
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
30674
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && nb(e, t);
|
|
30675
30675
|
}
|
|
30676
|
-
function
|
|
30677
|
-
return
|
|
30676
|
+
function nb(e, t) {
|
|
30677
|
+
return nb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
30678
30678
|
return r.__proto__ = i, r;
|
|
30679
|
-
},
|
|
30679
|
+
}, nb(e, t);
|
|
30680
30680
|
}
|
|
30681
30681
|
function Zr(e, t, n) {
|
|
30682
30682
|
return t = A$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -31128,15 +31128,15 @@ function Fc(e) {
|
|
|
31128
31128
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31129
31129
|
}, Fc(e);
|
|
31130
31130
|
}
|
|
31131
|
-
function
|
|
31132
|
-
return
|
|
31131
|
+
function rb() {
|
|
31132
|
+
return rb = Object.assign ? Object.assign.bind() : function(e) {
|
|
31133
31133
|
for (var t = 1; t < arguments.length; t++) {
|
|
31134
31134
|
var n = arguments[t];
|
|
31135
31135
|
for (var r in n)
|
|
31136
31136
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
31137
31137
|
}
|
|
31138
31138
|
return e;
|
|
31139
|
-
},
|
|
31139
|
+
}, rb.apply(this, arguments);
|
|
31140
31140
|
}
|
|
31141
31141
|
function rT(e, t) {
|
|
31142
31142
|
var n = Object.keys(e);
|
|
@@ -31210,7 +31210,7 @@ function wct(e, t) {
|
|
|
31210
31210
|
});
|
|
31211
31211
|
}
|
|
31212
31212
|
function iT(e) {
|
|
31213
|
-
return /* @__PURE__ */ x.createElement(nm,
|
|
31213
|
+
return /* @__PURE__ */ x.createElement(nm, rb({
|
|
31214
31214
|
shapeType: "rectangle",
|
|
31215
31215
|
propTransformer: wct,
|
|
31216
31216
|
activeClassName: "recharts-active-bar"
|
|
@@ -31329,12 +31329,12 @@ function lm(e) {
|
|
|
31329
31329
|
function kct(e, t) {
|
|
31330
31330
|
if (typeof t != "function" && t !== null)
|
|
31331
31331
|
throw new TypeError("Super expression must either be null or a function");
|
|
31332
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
31332
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ib(e, t);
|
|
31333
31333
|
}
|
|
31334
|
-
function
|
|
31335
|
-
return
|
|
31334
|
+
function ib(e, t) {
|
|
31335
|
+
return ib = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
31336
31336
|
return r.__proto__ = i, r;
|
|
31337
|
-
},
|
|
31337
|
+
}, ib(e, t);
|
|
31338
31338
|
}
|
|
31339
31339
|
function Ns(e, t, n) {
|
|
31340
31340
|
return t = M$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -31561,7 +31561,7 @@ Ns(gl, "getComposedData", function(e) {
|
|
|
31561
31561
|
}), O = jr(S, Cf), I = f.map(function(N, B) {
|
|
31562
31562
|
var D, R, U, W, F, q;
|
|
31563
31563
|
h ? D = irt(h[u + B], w) : (D = mn(N, _), Array.isArray(D) || (D = [E, D]));
|
|
31564
|
-
var
|
|
31564
|
+
var Y = _ct(P, T$.defaultProps.minPointSize)(D[1], B);
|
|
31565
31565
|
if (b === "horizontal") {
|
|
31566
31566
|
var et, st = [s.scale(D[0]), s.scale(D[1])], H = st[0], J = st[1];
|
|
31567
31567
|
R = VA({
|
|
@@ -31578,8 +31578,8 @@ Ns(gl, "getComposedData", function(e) {
|
|
|
31578
31578
|
y: s.y,
|
|
31579
31579
|
width: W,
|
|
31580
31580
|
height: s.height
|
|
31581
|
-
}, Math.abs(
|
|
31582
|
-
var ct = Sr(F ||
|
|
31581
|
+
}, Math.abs(Y) > 0 && Math.abs(F) < Math.abs(Y)) {
|
|
31582
|
+
var ct = Sr(F || Y) * (Math.abs(Y) - Math.abs(F));
|
|
31583
31583
|
U -= ct, F += ct;
|
|
31584
31584
|
}
|
|
31585
31585
|
} else {
|
|
@@ -31596,8 +31596,8 @@ Ns(gl, "getComposedData", function(e) {
|
|
|
31596
31596
|
y: U,
|
|
31597
31597
|
width: o.width,
|
|
31598
31598
|
height: F
|
|
31599
|
-
}, Math.abs(
|
|
31600
|
-
var $t = Sr(W ||
|
|
31599
|
+
}, Math.abs(Y) > 0 && Math.abs(W) < Math.abs(Y)) {
|
|
31600
|
+
var $t = Sr(W || Y) * (Math.abs(Y) - Math.abs(W));
|
|
31601
31601
|
W += $t;
|
|
31602
31602
|
}
|
|
31603
31603
|
}
|
|
@@ -31701,8 +31701,8 @@ var kw = function(t, n, r, i, o) {
|
|
|
31701
31701
|
}), Number.isFinite(U)) {
|
|
31702
31702
|
var F = U / R, q = m.layout === "vertical" ? r.height : r.width;
|
|
31703
31703
|
if (m.padding === "gap" && (O = F * q / 2), m.padding === "no-gap") {
|
|
31704
|
-
var
|
|
31705
|
-
O = et -
|
|
31704
|
+
var Y = Pr(t.barCategoryGap, F * q), et = F * q / 2;
|
|
31705
|
+
O = et - Y - (et - Y) / q * Y;
|
|
31706
31706
|
}
|
|
31707
31707
|
}
|
|
31708
31708
|
}
|
|
@@ -31990,12 +31990,12 @@ function um(e) {
|
|
|
31990
31990
|
function gut(e, t) {
|
|
31991
31991
|
if (typeof t != "function" && t !== null)
|
|
31992
31992
|
throw new TypeError("Super expression must either be null or a function");
|
|
31993
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
31993
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ob(e, t);
|
|
31994
31994
|
}
|
|
31995
|
-
function
|
|
31996
|
-
return
|
|
31995
|
+
function ob(e, t) {
|
|
31996
|
+
return ob = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
31997
31997
|
return r.__proto__ = i, r;
|
|
31998
|
-
},
|
|
31998
|
+
}, ob(e, t);
|
|
31999
31999
|
}
|
|
32000
32000
|
function uT(e, t) {
|
|
32001
32001
|
var n = Object.keys(e);
|
|
@@ -32076,19 +32076,19 @@ function wut(e, t) {
|
|
|
32076
32076
|
function _ut(e) {
|
|
32077
32077
|
if (Array.isArray(e)) return e;
|
|
32078
32078
|
}
|
|
32079
|
-
function
|
|
32080
|
-
return
|
|
32079
|
+
function sb() {
|
|
32080
|
+
return sb = Object.assign ? Object.assign.bind() : function(e) {
|
|
32081
32081
|
for (var t = 1; t < arguments.length; t++) {
|
|
32082
32082
|
var n = arguments[t];
|
|
32083
32083
|
for (var r in n)
|
|
32084
32084
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
32085
32085
|
}
|
|
32086
32086
|
return e;
|
|
32087
|
-
},
|
|
32087
|
+
}, sb.apply(this, arguments);
|
|
32088
32088
|
}
|
|
32089
32089
|
var Sut = function(t, n) {
|
|
32090
32090
|
var r;
|
|
32091
|
-
return /* @__PURE__ */ x.isValidElement(t) ? r = /* @__PURE__ */ x.cloneElement(t, n) : re(t) ? r = t(n) : r = /* @__PURE__ */ x.createElement("line",
|
|
32091
|
+
return /* @__PURE__ */ x.isValidElement(t) ? r = /* @__PURE__ */ x.cloneElement(t, n) : re(t) ? r = t(n) : r = /* @__PURE__ */ x.createElement("line", sb({}, n, {
|
|
32092
32092
|
className: "recharts-reference-line-line"
|
|
32093
32093
|
})), r;
|
|
32094
32094
|
}, Put = function(t, n, r, i, o, s, a, l, h) {
|
|
@@ -32186,15 +32186,15 @@ Dw(jw, "defaultProps", {
|
|
|
32186
32186
|
strokeWidth: 1,
|
|
32187
32187
|
position: "middle"
|
|
32188
32188
|
});
|
|
32189
|
-
function
|
|
32190
|
-
return
|
|
32189
|
+
function ab() {
|
|
32190
|
+
return ab = Object.assign ? Object.assign.bind() : function(e) {
|
|
32191
32191
|
for (var t = 1; t < arguments.length; t++) {
|
|
32192
32192
|
var n = arguments[t];
|
|
32193
32193
|
for (var r in n)
|
|
32194
32194
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
32195
32195
|
}
|
|
32196
32196
|
return e;
|
|
32197
|
-
},
|
|
32197
|
+
}, ab.apply(this, arguments);
|
|
32198
32198
|
}
|
|
32199
32199
|
function Uc(e) {
|
|
32200
32200
|
"@babel/helpers - typeof";
|
|
@@ -32271,12 +32271,12 @@ function hm(e) {
|
|
|
32271
32271
|
function $ut(e, t) {
|
|
32272
32272
|
if (typeof t != "function" && t !== null)
|
|
32273
32273
|
throw new TypeError("Super expression must either be null or a function");
|
|
32274
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
32274
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && lb(e, t);
|
|
32275
32275
|
}
|
|
32276
|
-
function
|
|
32277
|
-
return
|
|
32276
|
+
function lb(e, t) {
|
|
32277
|
+
return lb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
32278
32278
|
return r.__proto__ = i, r;
|
|
32279
|
-
},
|
|
32279
|
+
}, lb(e, t);
|
|
32280
32280
|
}
|
|
32281
32281
|
function Sg(e, t, n) {
|
|
32282
32282
|
return t = U$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -32350,21 +32350,21 @@ Sg(Pg, "defaultProps", {
|
|
|
32350
32350
|
});
|
|
32351
32351
|
Sg(Pg, "renderDot", function(e, t) {
|
|
32352
32352
|
var n;
|
|
32353
|
-
return /* @__PURE__ */ x.isValidElement(e) ? n = /* @__PURE__ */ x.cloneElement(e, t) : re(e) ? n = e(t) : n = /* @__PURE__ */ x.createElement(mg,
|
|
32353
|
+
return /* @__PURE__ */ x.isValidElement(e) ? n = /* @__PURE__ */ x.cloneElement(e, t) : re(e) ? n = e(t) : n = /* @__PURE__ */ x.createElement(mg, ab({}, t, {
|
|
32354
32354
|
cx: t.cx,
|
|
32355
32355
|
cy: t.cy,
|
|
32356
32356
|
className: "recharts-reference-dot-dot"
|
|
32357
32357
|
})), n;
|
|
32358
32358
|
});
|
|
32359
|
-
function
|
|
32360
|
-
return
|
|
32359
|
+
function cb() {
|
|
32360
|
+
return cb = Object.assign ? Object.assign.bind() : function(e) {
|
|
32361
32361
|
for (var t = 1; t < arguments.length; t++) {
|
|
32362
32362
|
var n = arguments[t];
|
|
32363
32363
|
for (var r in n)
|
|
32364
32364
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
32365
32365
|
}
|
|
32366
32366
|
return e;
|
|
32367
|
-
},
|
|
32367
|
+
}, cb.apply(this, arguments);
|
|
32368
32368
|
}
|
|
32369
32369
|
function Hc(e) {
|
|
32370
32370
|
"@babel/helpers - typeof";
|
|
@@ -32441,12 +32441,12 @@ function fm(e) {
|
|
|
32441
32441
|
function Fut(e, t) {
|
|
32442
32442
|
if (typeof t != "function" && t !== null)
|
|
32443
32443
|
throw new TypeError("Super expression must either be null or a function");
|
|
32444
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
32444
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ub(e, t);
|
|
32445
32445
|
}
|
|
32446
|
-
function
|
|
32447
|
-
return
|
|
32446
|
+
function ub(e, t) {
|
|
32447
|
+
return ub = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
32448
32448
|
return r.__proto__ = i, r;
|
|
32449
|
-
},
|
|
32449
|
+
}, ub(e, t);
|
|
32450
32450
|
}
|
|
32451
32451
|
function Ag(e, t, n) {
|
|
32452
32452
|
return t = q$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -32525,7 +32525,7 @@ Ag(Eg, "defaultProps", {
|
|
|
32525
32525
|
});
|
|
32526
32526
|
Ag(Eg, "renderRect", function(e, t) {
|
|
32527
32527
|
var n;
|
|
32528
|
-
return /* @__PURE__ */ x.isValidElement(e) ? n = /* @__PURE__ */ x.cloneElement(e, t) : re(e) ? n = e(t) : n = /* @__PURE__ */ x.createElement(Ow,
|
|
32528
|
+
return /* @__PURE__ */ x.isValidElement(e) ? n = /* @__PURE__ */ x.cloneElement(e, t) : re(e) ? n = e(t) : n = /* @__PURE__ */ x.createElement(Ow, cb({}, t, {
|
|
32529
32529
|
className: "recharts-reference-area-rect"
|
|
32530
32530
|
})), n;
|
|
32531
32531
|
});
|
|
@@ -32814,12 +32814,12 @@ function pm(e) {
|
|
|
32814
32814
|
function lht(e, t) {
|
|
32815
32815
|
if (typeof t != "function" && t !== null)
|
|
32816
32816
|
throw new TypeError("Super expression must either be null or a function");
|
|
32817
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
32817
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && hb(e, t);
|
|
32818
32818
|
}
|
|
32819
|
-
function
|
|
32820
|
-
return
|
|
32819
|
+
function hb(e, t) {
|
|
32820
|
+
return hb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
32821
32821
|
return r.__proto__ = i, r;
|
|
32822
|
-
},
|
|
32822
|
+
}, hb(e, t);
|
|
32823
32823
|
}
|
|
32824
32824
|
function zw(e, t, n) {
|
|
32825
32825
|
return t = Z$(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -33030,7 +33030,7 @@ var xu = /* @__PURE__ */ function(e) {
|
|
|
33030
33030
|
}), o), s;
|
|
33031
33031
|
}
|
|
33032
33032
|
}]);
|
|
33033
|
-
}(
|
|
33033
|
+
}(kb);
|
|
33034
33034
|
zw(xu, "displayName", "CartesianAxis");
|
|
33035
33035
|
zw(xu, "defaultProps", {
|
|
33036
33036
|
x: 0,
|
|
@@ -33475,12 +33475,12 @@ function mm(e) {
|
|
|
33475
33475
|
function kht(e, t) {
|
|
33476
33476
|
if (typeof t != "function" && t !== null)
|
|
33477
33477
|
throw new TypeError("Super expression must either be null or a function");
|
|
33478
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
33478
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && fb(e, t);
|
|
33479
33479
|
}
|
|
33480
|
-
function
|
|
33481
|
-
return
|
|
33480
|
+
function fb(e, t) {
|
|
33481
|
+
return fb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
33482
33482
|
return r.__proto__ = i, r;
|
|
33483
|
-
},
|
|
33483
|
+
}, fb(e, t);
|
|
33484
33484
|
}
|
|
33485
33485
|
function io(e, t, n) {
|
|
33486
33486
|
return t = tI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -33868,12 +33868,12 @@ function gm(e) {
|
|
|
33868
33868
|
function Bht(e, t) {
|
|
33869
33869
|
if (typeof t != "function" && t !== null)
|
|
33870
33870
|
throw new TypeError("Super expression must either be null or a function");
|
|
33871
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
33871
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && db(e, t);
|
|
33872
33872
|
}
|
|
33873
|
-
function
|
|
33874
|
-
return
|
|
33873
|
+
function db(e, t) {
|
|
33874
|
+
return db = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
33875
33875
|
return r.__proto__ = i, r;
|
|
33876
|
-
},
|
|
33876
|
+
}, db(e, t);
|
|
33877
33877
|
}
|
|
33878
33878
|
function nI(e, t, n) {
|
|
33879
33879
|
return t = rI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -34040,12 +34040,12 @@ function ym(e) {
|
|
|
34040
34040
|
function Kht(e, t) {
|
|
34041
34041
|
if (typeof t != "function" && t !== null)
|
|
34042
34042
|
throw new TypeError("Super expression must either be null or a function");
|
|
34043
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
34043
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && pb(e, t);
|
|
34044
34044
|
}
|
|
34045
|
-
function
|
|
34046
|
-
return
|
|
34045
|
+
function pb(e, t) {
|
|
34046
|
+
return pb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
34047
34047
|
return r.__proto__ = i, r;
|
|
34048
|
-
},
|
|
34048
|
+
}, pb(e, t);
|
|
34049
34049
|
}
|
|
34050
34050
|
function Rs(e, t, n) {
|
|
34051
34051
|
return t = oI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -34377,12 +34377,12 @@ function vm(e) {
|
|
|
34377
34377
|
function ift(e, t) {
|
|
34378
34378
|
if (typeof t != "function" && t !== null)
|
|
34379
34379
|
throw new TypeError("Super expression must either be null or a function");
|
|
34380
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
34380
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && mb(e, t);
|
|
34381
34381
|
}
|
|
34382
|
-
function
|
|
34383
|
-
return
|
|
34382
|
+
function mb(e, t) {
|
|
34383
|
+
return mb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
34384
34384
|
return r.__proto__ = i, r;
|
|
34385
|
-
},
|
|
34385
|
+
}, mb(e, t);
|
|
34386
34386
|
}
|
|
34387
34387
|
function aI(e, t, n) {
|
|
34388
34388
|
return t = lI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -34401,21 +34401,21 @@ function oft(e, t) {
|
|
|
34401
34401
|
}
|
|
34402
34402
|
return String(e);
|
|
34403
34403
|
}
|
|
34404
|
-
function
|
|
34405
|
-
return
|
|
34404
|
+
function gb() {
|
|
34405
|
+
return gb = Object.assign ? Object.assign.bind() : function(e) {
|
|
34406
34406
|
for (var t = 1; t < arguments.length; t++) {
|
|
34407
34407
|
var n = arguments[t];
|
|
34408
34408
|
for (var r in n)
|
|
34409
34409
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
34410
34410
|
}
|
|
34411
34411
|
return e;
|
|
34412
|
-
},
|
|
34412
|
+
}, gb.apply(this, arguments);
|
|
34413
34413
|
}
|
|
34414
34414
|
function sft(e) {
|
|
34415
34415
|
var t = e.xAxisId, n = Rw(), r = Lw(), i = B$(t);
|
|
34416
34416
|
return i == null ? null : (
|
|
34417
34417
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
34418
|
-
/* @__PURE__ */ Er.createElement(xu,
|
|
34418
|
+
/* @__PURE__ */ Er.createElement(xu, gb({}, i, {
|
|
34419
34419
|
className: me("recharts-".concat(i.axisType, " ").concat(i.axisType), i.className),
|
|
34420
34420
|
viewBox: {
|
|
34421
34421
|
x: 0,
|
|
@@ -34514,12 +34514,12 @@ function bm(e) {
|
|
|
34514
34514
|
function dft(e, t) {
|
|
34515
34515
|
if (typeof t != "function" && t !== null)
|
|
34516
34516
|
throw new TypeError("Super expression must either be null or a function");
|
|
34517
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
34517
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && yb(e, t);
|
|
34518
34518
|
}
|
|
34519
|
-
function
|
|
34520
|
-
return
|
|
34519
|
+
function yb(e, t) {
|
|
34520
|
+
return yb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
34521
34521
|
return r.__proto__ = i, r;
|
|
34522
|
-
},
|
|
34522
|
+
}, yb(e, t);
|
|
34523
34523
|
}
|
|
34524
34524
|
function uI(e, t, n) {
|
|
34525
34525
|
return t = hI(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -34538,21 +34538,21 @@ function pft(e, t) {
|
|
|
34538
34538
|
}
|
|
34539
34539
|
return String(e);
|
|
34540
34540
|
}
|
|
34541
|
-
function
|
|
34542
|
-
return
|
|
34541
|
+
function vb() {
|
|
34542
|
+
return vb = Object.assign ? Object.assign.bind() : function(e) {
|
|
34543
34543
|
for (var t = 1; t < arguments.length; t++) {
|
|
34544
34544
|
var n = arguments[t];
|
|
34545
34545
|
for (var r in n)
|
|
34546
34546
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
34547
34547
|
}
|
|
34548
34548
|
return e;
|
|
34549
|
-
},
|
|
34549
|
+
}, vb.apply(this, arguments);
|
|
34550
34550
|
}
|
|
34551
34551
|
var mft = function(t) {
|
|
34552
34552
|
var n = t.yAxisId, r = Rw(), i = Lw(), o = z$(n);
|
|
34553
34553
|
return o == null ? null : (
|
|
34554
34554
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
34555
|
-
/* @__PURE__ */ Er.createElement(xu,
|
|
34555
|
+
/* @__PURE__ */ Er.createElement(xu, vb({}, o, {
|
|
34556
34556
|
className: me("recharts-".concat(o.axisType, " ").concat(o.axisType), o.className),
|
|
34557
34557
|
viewBox: {
|
|
34558
34558
|
x: 0,
|
|
@@ -34605,24 +34605,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34605
34605
|
}
|
|
34606
34606
|
function yft(e, t) {
|
|
34607
34607
|
if (e) {
|
|
34608
|
-
if (typeof e == "string") return
|
|
34608
|
+
if (typeof e == "string") return bb(e, t);
|
|
34609
34609
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
34610
34610
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
34611
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
34611
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bb(e, t);
|
|
34612
34612
|
}
|
|
34613
34613
|
}
|
|
34614
34614
|
function vft(e) {
|
|
34615
34615
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
34616
34616
|
}
|
|
34617
34617
|
function bft(e) {
|
|
34618
|
-
if (Array.isArray(e)) return
|
|
34618
|
+
if (Array.isArray(e)) return bb(e);
|
|
34619
34619
|
}
|
|
34620
|
-
function
|
|
34620
|
+
function bb(e, t) {
|
|
34621
34621
|
(t == null || t > e.length) && (t = e.length);
|
|
34622
34622
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
34623
34623
|
return r;
|
|
34624
34624
|
}
|
|
34625
|
-
var
|
|
34625
|
+
var xb = function(t, n, r, i, o) {
|
|
34626
34626
|
var s = jr(t, jw), a = jr(t, Pg), l = [].concat(ET(s), ET(a)), h = jr(t, Eg), u = "".concat(i, "Id"), f = i[0], p = n;
|
|
34627
34627
|
if (l.length && (p = l.reduce(function(m, v) {
|
|
34628
34628
|
if (v.props[u] === r && uo(v.props, "extendDomain") && At(v.props[f])) {
|
|
@@ -34969,7 +34969,7 @@ function Ift(e) {
|
|
|
34969
34969
|
payloadIndex: h,
|
|
34970
34970
|
className: me("recharts-tooltip-cursor", g.className)
|
|
34971
34971
|
});
|
|
34972
|
-
return /* @__PURE__ */ wi(g) ? /* @__PURE__ */ Dn(g, E) : /* @__PURE__ */
|
|
34972
|
+
return /* @__PURE__ */ wi(g) ? /* @__PURE__ */ Dn(g, E) : /* @__PURE__ */ Ob(m, E);
|
|
34973
34973
|
}
|
|
34974
34974
|
var Nft = ["item"], Rft = ["children", "className", "width", "height", "style", "compact", "title", "desc"];
|
|
34975
34975
|
function Jc(e) {
|
|
@@ -35084,12 +35084,12 @@ function xm(e) {
|
|
|
35084
35084
|
function qft(e, t) {
|
|
35085
35085
|
if (typeof t != "function" && t !== null)
|
|
35086
35086
|
throw new TypeError("Super expression must either be null or a function");
|
|
35087
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
35087
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && wb(e, t);
|
|
35088
35088
|
}
|
|
35089
|
-
function
|
|
35090
|
-
return
|
|
35089
|
+
function wb(e, t) {
|
|
35090
|
+
return wb = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
35091
35091
|
return r.__proto__ = i, r;
|
|
35092
|
-
},
|
|
35092
|
+
}, wb(e, t);
|
|
35093
35093
|
}
|
|
35094
35094
|
function Qc(e) {
|
|
35095
35095
|
return Zft(e) || Yft(e) || gI(e) || Gft();
|
|
@@ -35100,19 +35100,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35100
35100
|
}
|
|
35101
35101
|
function gI(e, t) {
|
|
35102
35102
|
if (e) {
|
|
35103
|
-
if (typeof e == "string") return
|
|
35103
|
+
if (typeof e == "string") return _b(e, t);
|
|
35104
35104
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
35105
35105
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
35106
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
35106
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _b(e, t);
|
|
35107
35107
|
}
|
|
35108
35108
|
}
|
|
35109
35109
|
function Yft(e) {
|
|
35110
35110
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
35111
35111
|
}
|
|
35112
35112
|
function Zft(e) {
|
|
35113
|
-
if (Array.isArray(e)) return
|
|
35113
|
+
if (Array.isArray(e)) return _b(e);
|
|
35114
35114
|
}
|
|
35115
|
-
function
|
|
35115
|
+
function _b(e, t) {
|
|
35116
35116
|
(t == null || t > e.length) && (t = e.length);
|
|
35117
35117
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
35118
35118
|
return r;
|
|
@@ -35209,7 +35209,7 @@ var Qft = function(t, n) {
|
|
|
35209
35209
|
function bI(e) {
|
|
35210
35210
|
return e === "number" ? [0, "auto"] : void 0;
|
|
35211
35211
|
}
|
|
35212
|
-
var
|
|
35212
|
+
var Sb = function(t, n, r, i) {
|
|
35213
35213
|
var o = t.graphicalItems, s = t.tooltipAxis, a = Cg(n, t);
|
|
35214
35214
|
return r < 0 || !o || !o.length || r >= a.length ? null : o.reduce(function(l, h) {
|
|
35215
35215
|
var u, f = (u = h.props.data) !== null && u !== void 0 ? u : n;
|
|
@@ -35230,7 +35230,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35230
35230
|
y: t.chartY
|
|
35231
35231
|
}, s = Qft(o, r), a = t.orderedTooltipTicks, l = t.tooltipAxis, h = t.tooltipTicks, u = Xnt(s, a, h, l);
|
|
35232
35232
|
if (u >= 0 && h) {
|
|
35233
|
-
var f = h[u] && h[u].value, p =
|
|
35233
|
+
var f = h[u] && h[u].value, p = Sb(t, n, u, f), g = tdt(r, a, u, o);
|
|
35234
35234
|
return {
|
|
35235
35235
|
activeTooltipIndex: u,
|
|
35236
35236
|
activeLabel: f,
|
|
@@ -35253,20 +35253,20 @@ var S0 = function(t, n, r, i) {
|
|
|
35253
35253
|
dataStartIndex: l,
|
|
35254
35254
|
dataEndIndex: h
|
|
35255
35255
|
}), D = B.length, R, U, W;
|
|
35256
|
-
Tft(_.domain, T, S) && (R =
|
|
35256
|
+
Tft(_.domain, T, S) && (R = R0(_.domain, null, T), g && (S === "number" || E !== "auto") && (W = vh(B, P, "category")));
|
|
35257
35257
|
var F = bI(S);
|
|
35258
35258
|
if (!R || R.length === 0) {
|
|
35259
|
-
var q,
|
|
35259
|
+
var q, Y = (q = _.domain) !== null && q !== void 0 ? q : F;
|
|
35260
35260
|
if (P) {
|
|
35261
35261
|
if (R = vh(B, P, S), S === "category" && g) {
|
|
35262
35262
|
var et = LV(R);
|
|
35263
|
-
w && et ? (U = R, R = im(0, D)) : w || (R = qA(
|
|
35263
|
+
w && et ? (U = R, R = im(0, D)) : w || (R = qA(Y, R, m).reduce(function(ot, ct) {
|
|
35264
35264
|
return ot.indexOf(ct) >= 0 ? ot : [].concat(Qc(ot), [ct]);
|
|
35265
35265
|
}, []));
|
|
35266
35266
|
} else if (S === "category")
|
|
35267
35267
|
w ? R = R.filter(function(ot) {
|
|
35268
35268
|
return ot !== "" && !ie(ot);
|
|
35269
|
-
}) : R = qA(
|
|
35269
|
+
}) : R = qA(Y, R, m).reduce(function(ot, ct) {
|
|
35270
35270
|
return ot.indexOf(ct) >= 0 || ct === "" || ie(ct) ? ot : [].concat(Qc(ot), [ct]);
|
|
35271
35271
|
}, []);
|
|
35272
35272
|
else if (S === "number") {
|
|
@@ -35282,9 +35282,9 @@ var S0 = function(t, n, r, i) {
|
|
|
35282
35282
|
return ct === N && (I || !mt);
|
|
35283
35283
|
}), S, u, !0);
|
|
35284
35284
|
if (S === "number")
|
|
35285
|
-
R =
|
|
35286
|
-
else if (S === "category" &&
|
|
35287
|
-
var H =
|
|
35285
|
+
R = xb(f, R, N, o, O), Y && (R = R0(Y, R, T));
|
|
35286
|
+
else if (S === "category" && Y) {
|
|
35287
|
+
var H = Y, J = R.every(function(ot) {
|
|
35288
35288
|
return H.indexOf(ot) >= 0;
|
|
35289
35289
|
});
|
|
35290
35290
|
J && (R = H);
|
|
@@ -35311,10 +35311,10 @@ var S0 = function(t, n, r, i) {
|
|
|
35311
35311
|
if (!v[P]) {
|
|
35312
35312
|
m++;
|
|
35313
35313
|
var w;
|
|
35314
|
-
return b ? w = im(0, g) : a && a[P] && a[P].hasStack ? (w = J2(a[P].stackGroups, l, h), w =
|
|
35314
|
+
return b ? w = im(0, g) : a && a[P] && a[P].hasStack ? (w = J2(a[P].stackGroups, l, h), w = xb(f, w, P, o)) : (w = R0(T, q2(p, r.filter(function(E) {
|
|
35315
35315
|
var O, I, N = s in E.props ? E.props[s] : (O = E.type.defaultProps) === null || O === void 0 ? void 0 : O[s], B = "hide" in E.props ? E.props.hide : (I = E.type.defaultProps) === null || I === void 0 ? void 0 : I.hide;
|
|
35316
35316
|
return N === P && !B;
|
|
35317
|
-
}), "number", u), i.defaultProps.allowDataOverflow), w =
|
|
35317
|
+
}), "number", u), i.defaultProps.allowDataOverflow), w = xb(f, w, P, o)), pt(pt({}, v), {}, ee({}, P, pt(pt({
|
|
35318
35318
|
axisType: o
|
|
35319
35319
|
}, i.defaultProps), {}, {
|
|
35320
35320
|
hide: !0,
|
|
@@ -35417,7 +35417,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35417
35417
|
return t[n].height;
|
|
35418
35418
|
}, Mg = function(t) {
|
|
35419
35419
|
var n = t.chartName, r = t.GraphicalChild, i = t.defaultTooltipEventType, o = i === void 0 ? "axis" : i, s = t.validateTooltipEventTypes, a = s === void 0 ? ["axis"] : s, l = t.axisComponents, h = t.legendContent, u = t.formatAxisMap, f = t.defaultProps, p = function(_, S) {
|
|
35420
|
-
var P = S.graphicalItems, T = S.stackGroups, w = S.offset, E = S.updateId, O = S.dataStartIndex, I = S.dataEndIndex, N = _.barSize, B = _.layout, D = _.barGap, R = _.barCategoryGap, U = _.maxBarSize, W = IT(B), F = W.numericAxisName, q = W.cateAxisName,
|
|
35420
|
+
var P = S.graphicalItems, T = S.stackGroups, w = S.offset, E = S.updateId, O = S.dataStartIndex, I = S.dataEndIndex, N = _.barSize, B = _.layout, D = _.barGap, R = _.barCategoryGap, U = _.maxBarSize, W = IT(B), F = W.numericAxisName, q = W.cateAxisName, Y = odt(P), et = [];
|
|
35421
35421
|
return P.forEach(function(st, H) {
|
|
35422
35422
|
var J = Cg(_.data, {
|
|
35423
35423
|
graphicalItems: [st],
|
|
@@ -35431,7 +35431,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35431
35431
|
).concat((Je = st == null || (dr = st.type) === null || dr === void 0 ? void 0 : dr.displayName) !== null && Je !== void 0 ? Je : "")) : Lr());
|
|
35432
35432
|
var Ve = pr[rr];
|
|
35433
35433
|
return pt(pt({}, Sn), {}, ee(ee({}, Xe.axisType, Ve), "".concat(Xe.axisType, "Ticks"), zo(Ve)));
|
|
35434
|
-
}, $t), ut = Tt[q], ht = Tt["".concat(q, "Ticks")], It = T && T[vt] && T[vt].hasStack && hrt(st, T[vt].stackGroups), nt = Wo(st.type).indexOf("Bar") >= 0, St = Vp(ut, ht), dt = [], Jt =
|
|
35434
|
+
}, $t), ut = Tt[q], ht = Tt["".concat(q, "Ticks")], It = T && T[vt] && T[vt].hasStack && hrt(st, T[vt].stackGroups), nt = Wo(st.type).indexOf("Bar") >= 0, St = Vp(ut, ht), dt = [], Jt = Y && Jnt({
|
|
35435
35435
|
barSize: N,
|
|
35436
35436
|
stackGroups: T,
|
|
35437
35437
|
totalSize: adt(Tt, q)
|
|
@@ -35479,7 +35479,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35479
35479
|
props: P
|
|
35480
35480
|
}))
|
|
35481
35481
|
return null;
|
|
35482
|
-
var O = P.children, I = P.layout, N = P.stackOffset, B = P.data, D = P.reverseStackOrder, R = IT(I), U = R.numericAxisName, W = R.cateAxisName, F = jr(O, r), q = crt(B, F, "".concat(U, "Id"), "".concat(W, "Id"), N, D),
|
|
35482
|
+
var O = P.children, I = P.layout, N = P.stackOffset, B = P.data, D = P.reverseStackOrder, R = IT(I), U = R.numericAxisName, W = R.cateAxisName, F = jr(O, r), q = crt(B, F, "".concat(U, "Id"), "".concat(W, "Id"), N, D), Y = l.reduce(function(ot, ct) {
|
|
35483
35483
|
var mt = "".concat(ct.axisType, "Map");
|
|
35484
35484
|
return pt(pt({}, ot), {}, ee({}, mt, rdt(P, pt(pt({}, ct), {}, {
|
|
35485
35485
|
graphicalItems: F,
|
|
@@ -35487,14 +35487,14 @@ var S0 = function(t, n, r, i) {
|
|
|
35487
35487
|
dataStartIndex: T,
|
|
35488
35488
|
dataEndIndex: w
|
|
35489
35489
|
}))));
|
|
35490
|
-
}, {}), et = sdt(pt(pt({},
|
|
35490
|
+
}, {}), et = sdt(pt(pt({}, Y), {}, {
|
|
35491
35491
|
props: P,
|
|
35492
35492
|
graphicalItems: F
|
|
35493
35493
|
}), S == null ? void 0 : S.legendBBox);
|
|
35494
|
-
Object.keys(
|
|
35495
|
-
|
|
35494
|
+
Object.keys(Y).forEach(function(ot) {
|
|
35495
|
+
Y[ot] = u(P, Y[ot], et, ot.replace("Map", ""), n);
|
|
35496
35496
|
});
|
|
35497
|
-
var st =
|
|
35497
|
+
var st = Y["".concat(W, "Map")], H = idt(st), J = p(P, pt(pt({}, Y), {}, {
|
|
35498
35498
|
dataStartIndex: T,
|
|
35499
35499
|
dataEndIndex: w,
|
|
35500
35500
|
updateId: E,
|
|
@@ -35507,7 +35507,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35507
35507
|
graphicalItems: F,
|
|
35508
35508
|
offset: et,
|
|
35509
35509
|
stackGroups: q
|
|
35510
|
-
}, H),
|
|
35510
|
+
}, H), Y);
|
|
35511
35511
|
}, b = /* @__PURE__ */ function(v) {
|
|
35512
35512
|
function _(S) {
|
|
35513
35513
|
var P, T, w;
|
|
@@ -35658,8 +35658,8 @@ var S0 = function(t, n, r, i) {
|
|
|
35658
35658
|
updateId: B
|
|
35659
35659
|
}, w.state)));
|
|
35660
35660
|
else if (E.activeTooltipIndex !== void 0) {
|
|
35661
|
-
var U = E.chartX, W = E.chartY, F = E.activeTooltipIndex, q = w.state,
|
|
35662
|
-
if (!
|
|
35661
|
+
var U = E.chartX, W = E.chartY, F = E.activeTooltipIndex, q = w.state, Y = q.offset, et = q.tooltipTicks;
|
|
35662
|
+
if (!Y)
|
|
35663
35663
|
return;
|
|
35664
35664
|
if (typeof N == "function")
|
|
35665
35665
|
F = N(et, E);
|
|
@@ -35671,10 +35671,10 @@ var S0 = function(t, n, r, i) {
|
|
|
35671
35671
|
break;
|
|
35672
35672
|
}
|
|
35673
35673
|
}
|
|
35674
|
-
var H = pt(pt({},
|
|
35675
|
-
x:
|
|
35676
|
-
y:
|
|
35677
|
-
}), J = Math.min(U, H.x + H.width), ot = Math.min(W, H.y + H.height), ct = et[F] && et[F].value, mt =
|
|
35674
|
+
var H = pt(pt({}, Y), {}, {
|
|
35675
|
+
x: Y.left,
|
|
35676
|
+
y: Y.top
|
|
35677
|
+
}), J = Math.min(U, H.x + H.width), ot = Math.min(W, H.y + H.height), ct = et[F] && et[F].value, mt = Sb(w.state, w.props.data, F), vt = et[F] ? {
|
|
35678
35678
|
x: I === "horizontal" ? et[F].coordinate : J,
|
|
35679
35679
|
y: I === "horizontal" ? ot : et[F].coordinate
|
|
35680
35680
|
} : vI;
|
|
@@ -35687,7 +35687,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35687
35687
|
} else
|
|
35688
35688
|
w.setState(E);
|
|
35689
35689
|
}), ee(w, "renderCursor", function(E) {
|
|
35690
|
-
var O, I = w.state, N = I.isTooltipActive, B = I.activeCoordinate, D = I.activePayload, R = I.offset, U = I.activeTooltipIndex, W = I.tooltipAxisBandSize, F = w.getTooltipEventType(), q = (O = E.props.active) !== null && O !== void 0 ? O : N,
|
|
35690
|
+
var O, I = w.state, N = I.isTooltipActive, B = I.activeCoordinate, D = I.activePayload, R = I.offset, U = I.activeTooltipIndex, W = I.tooltipAxisBandSize, F = w.getTooltipEventType(), q = (O = E.props.active) !== null && O !== void 0 ? O : N, Y = w.props.layout, et = E.key || "_recharts-cursor";
|
|
35691
35691
|
return /* @__PURE__ */ x.createElement(Ift, {
|
|
35692
35692
|
key: et,
|
|
35693
35693
|
activeCoordinate: B,
|
|
@@ -35696,7 +35696,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35696
35696
|
chartName: n,
|
|
35697
35697
|
element: E,
|
|
35698
35698
|
isActive: q,
|
|
35699
|
-
layout:
|
|
35699
|
+
layout: Y,
|
|
35700
35700
|
offset: R,
|
|
35701
35701
|
tooltipAxisBandSize: W,
|
|
35702
35702
|
tooltipEventType: F
|
|
@@ -35709,7 +35709,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35709
35709
|
ticks: zo(U, !0)
|
|
35710
35710
|
}));
|
|
35711
35711
|
}), ee(w, "renderPolarGrid", function(E) {
|
|
35712
|
-
var O = E.props, I = O.radialLines, N = O.polarAngles, B = O.polarRadius, D = w.state, R = D.radiusAxisMap, U = D.angleAxisMap, W = Ms(R), F = Ms(U), q = F.cx,
|
|
35712
|
+
var O = E.props, I = O.radialLines, N = O.polarAngles, B = O.polarRadius, D = w.state, R = D.radiusAxisMap, U = D.angleAxisMap, W = Ms(R), F = Ms(U), q = F.cx, Y = F.cy, et = F.innerRadius, st = F.outerRadius;
|
|
35713
35713
|
return /* @__PURE__ */ Dn(E, {
|
|
35714
35714
|
polarAngles: Array.isArray(N) ? N : zo(F, !0).map(function(H) {
|
|
35715
35715
|
return H.coordinate;
|
|
@@ -35718,7 +35718,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35718
35718
|
return H.coordinate;
|
|
35719
35719
|
}),
|
|
35720
35720
|
cx: q,
|
|
35721
|
-
cy:
|
|
35721
|
+
cy: Y,
|
|
35722
35722
|
innerRadius: et,
|
|
35723
35723
|
outerRadius: st,
|
|
35724
35724
|
key: E.key || "polar-grid",
|
|
@@ -35744,15 +35744,15 @@ var S0 = function(t, n, r, i) {
|
|
|
35744
35744
|
var E, O = w.props, I = O.children, N = O.accessibilityLayer, B = Kr(I, Xr);
|
|
35745
35745
|
if (!B)
|
|
35746
35746
|
return null;
|
|
35747
|
-
var D = w.state, R = D.isTooltipActive, U = D.activeCoordinate, W = D.activePayload, F = D.activeLabel, q = D.offset,
|
|
35747
|
+
var D = w.state, R = D.isTooltipActive, U = D.activeCoordinate, W = D.activePayload, F = D.activeLabel, q = D.offset, Y = (E = B.props.active) !== null && E !== void 0 ? E : R;
|
|
35748
35748
|
return /* @__PURE__ */ Dn(B, {
|
|
35749
35749
|
viewBox: pt(pt({}, q), {}, {
|
|
35750
35750
|
x: q.left,
|
|
35751
35751
|
y: q.top
|
|
35752
35752
|
}),
|
|
35753
|
-
active:
|
|
35753
|
+
active: Y,
|
|
35754
35754
|
label: F,
|
|
35755
|
-
payload:
|
|
35755
|
+
payload: Y ? W : [],
|
|
35756
35756
|
coordinate: U,
|
|
35757
35757
|
accessibilityLayer: N
|
|
35758
35758
|
});
|
|
@@ -35772,7 +35772,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35772
35772
|
}), ee(w, "renderReferenceElement", function(E, O, I) {
|
|
35773
35773
|
if (!E)
|
|
35774
35774
|
return null;
|
|
35775
|
-
var N = w, B = N.clipPathId, D = w.state, R = D.xAxisMap, U = D.yAxisMap, W = D.offset, F = E.type.defaultProps || {}, q = E.props,
|
|
35775
|
+
var N = w, B = N.clipPathId, D = w.state, R = D.xAxisMap, U = D.yAxisMap, W = D.offset, F = E.type.defaultProps || {}, q = E.props, Y = q.xAxisId, et = Y === void 0 ? F.xAxisId : Y, st = q.yAxisId, H = st === void 0 ? F.yAxisId : st;
|
|
35776
35776
|
return /* @__PURE__ */ Dn(E, {
|
|
35777
35777
|
key: E.key || "".concat(O, "-").concat(I),
|
|
35778
35778
|
xAxis: R[et],
|
|
@@ -35786,7 +35786,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35786
35786
|
clipPathId: B
|
|
35787
35787
|
});
|
|
35788
35788
|
}), ee(w, "renderActivePoints", function(E) {
|
|
35789
|
-
var O = E.item, I = E.activePoint, N = E.basePoint, B = E.childIndex, D = E.isRange, R = [], U = O.props.key, W = O.item.type.defaultProps !== void 0 ? pt(pt({}, O.item.type.defaultProps), O.item.props) : O.item.props, F = W.activeDot, q = W.dataKey,
|
|
35789
|
+
var O = E.item, I = E.activePoint, N = E.basePoint, B = E.childIndex, D = E.isRange, R = [], U = O.props.key, W = O.item.type.defaultProps !== void 0 ? pt(pt({}, O.item.type.defaultProps), O.item.props) : O.item.props, F = W.activeDot, q = W.dataKey, Y = pt(pt({
|
|
35790
35790
|
index: B,
|
|
35791
35791
|
dataKey: q,
|
|
35792
35792
|
cx: I.x,
|
|
@@ -35798,7 +35798,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35798
35798
|
payload: I.payload,
|
|
35799
35799
|
value: I.value
|
|
35800
35800
|
}, Yt(F, !1)), pp(F));
|
|
35801
|
-
return R.push(_.renderActiveDot(F,
|
|
35801
|
+
return R.push(_.renderActiveDot(F, Y, "".concat(U, "-activePoint-").concat(B))), N ? R.push(_.renderActiveDot(F, pt(pt({}, Y), {}, {
|
|
35802
35802
|
cx: N.x,
|
|
35803
35803
|
cy: N.y
|
|
35804
35804
|
}), "".concat(U, "-basePoint-").concat(B))) : D && R.push(null), R;
|
|
@@ -35806,8 +35806,8 @@ var S0 = function(t, n, r, i) {
|
|
|
35806
35806
|
var N = w.filterFormatItem(E, O, I);
|
|
35807
35807
|
if (!N)
|
|
35808
35808
|
return null;
|
|
35809
|
-
var B = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children,
|
|
35810
|
-
B !== "axis" &&
|
|
35809
|
+
var B = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children, Y = Kr(q, Xr), et = N.props, st = et.points, H = et.isRange, J = et.baseLine, ot = N.item.type.defaultProps !== void 0 ? pt(pt({}, N.item.type.defaultProps), N.item.props) : N.item.props, ct = ot.activeDot, mt = ot.hide, vt = ot.activeBar, yt = ot.activeShape, $t = !!(!mt && R && Y && (ct || vt || yt)), Tt = {};
|
|
35810
|
+
B !== "axis" && Y && Y.props.trigger === "click" ? Tt = {
|
|
35811
35811
|
onClick: Id(w.handleItemMouseEnter, E.props.onClick)
|
|
35812
35812
|
} : B !== "axis" && (Tt = {
|
|
35813
35813
|
onMouseLeave: Id(w.handleItemMouseLeave, E.props.onMouseLeave),
|
|
@@ -35941,7 +35941,7 @@ var S0 = function(t, n, r, i) {
|
|
|
35941
35941
|
if (I) {
|
|
35942
35942
|
var N = I.props.defaultIndex;
|
|
35943
35943
|
if (!(typeof N != "number" || N < 0 || N > this.state.tooltipTicks.length - 1)) {
|
|
35944
|
-
var B = this.state.tooltipTicks[N] && this.state.tooltipTicks[N].value, D =
|
|
35944
|
+
var B = this.state.tooltipTicks[N] && this.state.tooltipTicks[N].value, D = Sb(this.state, w, N, B), R = this.state.tooltipTicks[N].coordinate, U = (this.state.offset.top + E) / 2, W = O === "horizontal", F = W ? {
|
|
35945
35945
|
x: R,
|
|
35946
35946
|
y: U
|
|
35947
35947
|
} : {
|
|
@@ -35952,14 +35952,14 @@ var S0 = function(t, n, r, i) {
|
|
|
35952
35952
|
return st.type.name === "Scatter";
|
|
35953
35953
|
});
|
|
35954
35954
|
q && (F = pt(pt({}, F), q.props.points[N].tooltipPosition), D = q.props.points[N].tooltipPayload);
|
|
35955
|
-
var
|
|
35955
|
+
var Y = {
|
|
35956
35956
|
activeTooltipIndex: N,
|
|
35957
35957
|
isTooltipActive: !0,
|
|
35958
35958
|
activeLabel: B,
|
|
35959
35959
|
activePayload: D,
|
|
35960
35960
|
activeCoordinate: F
|
|
35961
35961
|
};
|
|
35962
|
-
this.setState(
|
|
35962
|
+
this.setState(Y), this.renderCursor(I), this.accessibilityManager.setIndex(N);
|
|
35963
35963
|
}
|
|
35964
35964
|
}
|
|
35965
35965
|
}
|
|
@@ -36021,9 +36021,9 @@ var S0 = function(t, n, r, i) {
|
|
|
36021
36021
|
return null;
|
|
36022
36022
|
var B = this.state, D = B.xAxisMap, R = B.yAxisMap, U = this.getTooltipEventType(), W = kT(this.state, this.props.data, this.props.layout, N);
|
|
36023
36023
|
if (U !== "axis" && D && R) {
|
|
36024
|
-
var F = Ms(D).scale, q = Ms(R).scale,
|
|
36024
|
+
var F = Ms(D).scale, q = Ms(R).scale, Y = F && F.invert ? F.invert(O.chartX) : null, et = q && q.invert ? q.invert(O.chartY) : null;
|
|
36025
36025
|
return pt(pt({}, O), {}, {
|
|
36026
|
-
xValue:
|
|
36026
|
+
xValue: Y,
|
|
36027
36027
|
yValue: et
|
|
36028
36028
|
}, W);
|
|
36029
36029
|
}
|
|
@@ -36162,10 +36162,10 @@ var S0 = function(t, n, r, i) {
|
|
|
36162
36162
|
graphicalItem: N,
|
|
36163
36163
|
activeTooltipItem: E,
|
|
36164
36164
|
itemData: R.data
|
|
36165
|
-
}),
|
|
36165
|
+
}), Y = R.activeIndex === void 0 ? q : R.activeIndex;
|
|
36166
36166
|
return {
|
|
36167
36167
|
graphicalItem: pt(pt({}, N), {}, {
|
|
36168
|
-
childIndex:
|
|
36168
|
+
childIndex: Y
|
|
36169
36169
|
}),
|
|
36170
36170
|
payload: cf(N, E) ? R.data[q] : N.props.data[q]
|
|
36171
36171
|
};
|
|
@@ -36200,7 +36200,7 @@ var S0 = function(t, n, r, i) {
|
|
|
36200
36200
|
P.accessibilityManager.focus();
|
|
36201
36201
|
};
|
|
36202
36202
|
}
|
|
36203
|
-
var
|
|
36203
|
+
var Y = this.parseEventsOfWrapper();
|
|
36204
36204
|
return /* @__PURE__ */ x.createElement(cT, {
|
|
36205
36205
|
state: this.state,
|
|
36206
36206
|
width: this.props.width,
|
|
@@ -36214,7 +36214,7 @@ var S0 = function(t, n, r, i) {
|
|
|
36214
36214
|
width: O,
|
|
36215
36215
|
height: I
|
|
36216
36216
|
}, N)
|
|
36217
|
-
},
|
|
36217
|
+
}, Y, {
|
|
36218
36218
|
ref: function(st) {
|
|
36219
36219
|
P.container = st;
|
|
36220
36220
|
}
|
|
@@ -36227,7 +36227,7 @@ var S0 = function(t, n, r, i) {
|
|
|
36227
36227
|
}), this.renderClipPath(), WS(w, this.renderMap)), this.renderLegend(), this.renderTooltip()));
|
|
36228
36228
|
}
|
|
36229
36229
|
}]);
|
|
36230
|
-
}(
|
|
36230
|
+
}(kb);
|
|
36231
36231
|
ee(b, "displayName", n), ee(b, "defaultProps", pt({
|
|
36232
36232
|
layout: "horizontal",
|
|
36233
36233
|
stackOffset: "none",
|
|
@@ -36288,7 +36288,7 @@ var S0 = function(t, n, r, i) {
|
|
|
36288
36288
|
});
|
|
36289
36289
|
}
|
|
36290
36290
|
if (!Kv(T, _.prevChildren)) {
|
|
36291
|
-
var
|
|
36291
|
+
var Y, et, st, H, J = Kr(T, zc), ot = J && (Y = (et = J.props) === null || et === void 0 ? void 0 : et.startIndex) !== null && Y !== void 0 ? Y : B, ct = J && (st = (H = J.props) === null || H === void 0 ? void 0 : H.endIndex) !== null && st !== void 0 ? st : D, mt = ot !== B || ct !== D, vt = !ie(P), yt = vt && !mt ? _.updateId : _.updateId + 1;
|
|
36292
36292
|
return pt(pt({
|
|
36293
36293
|
updateId: yt
|
|
36294
36294
|
}, g(pt(pt({
|
|
@@ -36456,7 +36456,7 @@ function fdt(e) {
|
|
|
36456
36456
|
if (!n || !t) return;
|
|
36457
36457
|
let D = !1, R = null;
|
|
36458
36458
|
const U = () => {
|
|
36459
|
-
D || (R = o(t),
|
|
36459
|
+
D || (R = o(t), zb(R) && (R.addEventListener("open", async () => {
|
|
36460
36460
|
try {
|
|
36461
36461
|
const F = await fetch(
|
|
36462
36462
|
O("/agent/tools/approvals"),
|
|
@@ -36467,21 +36467,21 @@ function fdt(e) {
|
|
|
36467
36467
|
}
|
|
36468
36468
|
);
|
|
36469
36469
|
if (!F.ok || D) return;
|
|
36470
|
-
const { approvals: q } = await F.json(),
|
|
36470
|
+
const { approvals: q } = await F.json(), Y = (q || []).find(
|
|
36471
36471
|
(st) => {
|
|
36472
36472
|
var H;
|
|
36473
36473
|
return st.status === "pending" && ((H = st.toolInput) == null ? void 0 : H.sections);
|
|
36474
36474
|
}
|
|
36475
36475
|
);
|
|
36476
|
-
|
|
36477
|
-
approvalId:
|
|
36478
|
-
form:
|
|
36479
|
-
expiresAt:
|
|
36476
|
+
Y && (!Y.expiresAt || new Date(Y.expiresAt).getTime() > Date.now()) && (v({}), b({
|
|
36477
|
+
approvalId: Y.id,
|
|
36478
|
+
form: Y.toolInput,
|
|
36479
|
+
expiresAt: Y.expiresAt
|
|
36480
36480
|
}));
|
|
36481
36481
|
} catch {
|
|
36482
36482
|
}
|
|
36483
36483
|
}), R.onmessage = (W) => {
|
|
36484
|
-
var q,
|
|
36484
|
+
var q, Y;
|
|
36485
36485
|
let F = W == null ? void 0 : W.data;
|
|
36486
36486
|
if (typeof F == "string")
|
|
36487
36487
|
try {
|
|
@@ -36489,7 +36489,7 @@ function fdt(e) {
|
|
|
36489
36489
|
} catch {
|
|
36490
36490
|
return;
|
|
36491
36491
|
}
|
|
36492
|
-
(F == null ? void 0 : F.type) === "step_paused" && ((q = F.pauseMetadata) != null && q.form) && ((
|
|
36492
|
+
(F == null ? void 0 : F.type) === "step_paused" && ((q = F.pauseMetadata) != null && q.form) && ((Y = F.pauseMetadata) != null && Y.approvalId) && (v({}), b({
|
|
36493
36493
|
approvalId: F.pauseMetadata.approvalId,
|
|
36494
36494
|
form: F.pauseMetadata.form,
|
|
36495
36495
|
expiresAt: F.pauseMetadata.expiresAt
|
|
@@ -36550,7 +36550,7 @@ function fdt(e) {
|
|
|
36550
36550
|
key: q,
|
|
36551
36551
|
type: "button",
|
|
36552
36552
|
onClick: () => U(
|
|
36553
|
-
W ? F.includes(q) ? F.filter((
|
|
36553
|
+
W ? F.includes(q) ? F.filter((Y) => Y !== q) : [...F, q] : q
|
|
36554
36554
|
),
|
|
36555
36555
|
style: {
|
|
36556
36556
|
padding: "6px 12px",
|
|
@@ -38204,8 +38204,8 @@ function Ldt(e, t, n) {
|
|
|
38204
38204
|
const q = r.current;
|
|
38205
38205
|
if (!(!q || !q.videoWidth || s === "done"))
|
|
38206
38206
|
try {
|
|
38207
|
-
const
|
|
38208
|
-
|
|
38207
|
+
const Y = await F.detect(q);
|
|
38208
|
+
Y != null && Y.length && S(new Blob(), Y[0].rawValue);
|
|
38209
38209
|
} catch {
|
|
38210
38210
|
}
|
|
38211
38211
|
}, 400);
|
|
@@ -39289,18 +39289,18 @@ function Ydt({
|
|
|
39289
39289
|
(R == null ? void 0 : R.epoch) ?? (R == null ? void 0 : R.timestamp) ?? Date.now() / 1e3
|
|
39290
39290
|
), F = Math.floor(W / 60) * 60;
|
|
39291
39291
|
u((q) => {
|
|
39292
|
-
const
|
|
39293
|
-
if ((
|
|
39292
|
+
const Y = q[q.length - 1];
|
|
39293
|
+
if ((Y == null ? void 0 : Y.time) === F)
|
|
39294
39294
|
return [
|
|
39295
39295
|
...q.slice(0, -1),
|
|
39296
39296
|
{
|
|
39297
|
-
...
|
|
39298
|
-
high: Math.max(Number(
|
|
39299
|
-
low: Math.min(Number(
|
|
39297
|
+
...Y,
|
|
39298
|
+
high: Math.max(Number(Y.high), U),
|
|
39299
|
+
low: Math.min(Number(Y.low), U),
|
|
39300
39300
|
close: U
|
|
39301
39301
|
}
|
|
39302
39302
|
];
|
|
39303
|
-
const et = Number((
|
|
39303
|
+
const et = Number((Y == null ? void 0 : Y.close) ?? U);
|
|
39304
39304
|
return [
|
|
39305
39305
|
...q.slice(-99),
|
|
39306
39306
|
{ time: F, open: et, high: U, low: U, close: U }
|
|
@@ -40365,14 +40365,14 @@ function rpt(e, t, n) {
|
|
|
40365
40365
|
if (e.widgetStack && e.widgetStack.includes(r))
|
|
40366
40366
|
return wm(`[renderer] circular widget reference "${r}"`), null;
|
|
40367
40367
|
(l = e.widgetStack) == null || l.push(r);
|
|
40368
|
-
const s = t.props || {}, a =
|
|
40368
|
+
const s = t.props || {}, a = Pb(o.components, s).map(
|
|
40369
40369
|
(u, f) => e.renderComponent(u, f, `${n}-${r}`)
|
|
40370
40370
|
);
|
|
40371
40371
|
return (h = e.widgetStack) == null || h.pop(), x.createElement(x.Fragment, null, ...a);
|
|
40372
40372
|
}
|
|
40373
|
-
function
|
|
40373
|
+
function Pb(e, t) {
|
|
40374
40374
|
if (!t || Object.keys(t).length === 0) return e;
|
|
40375
|
-
if (Array.isArray(e)) return e.map((n) =>
|
|
40375
|
+
if (Array.isArray(e)) return e.map((n) => Pb(n, t));
|
|
40376
40376
|
if (e && typeof e == "object") {
|
|
40377
40377
|
const n = {};
|
|
40378
40378
|
for (const [r, i] of Object.entries(e))
|
|
@@ -40405,7 +40405,7 @@ function P0(e, t) {
|
|
|
40405
40405
|
}
|
|
40406
40406
|
return typeof h == "object" ? JSON.stringify(h) : String(h);
|
|
40407
40407
|
}
|
|
40408
|
-
) : n[r] =
|
|
40408
|
+
) : n[r] = Pb(i, t);
|
|
40409
40409
|
return e.condition && (n.__conditionBase = t), n;
|
|
40410
40410
|
}
|
|
40411
40411
|
return e;
|
|
@@ -40426,11 +40426,11 @@ const wI = x.memo(
|
|
|
40426
40426
|
}, [f, n, t.pageSize, t.limit]);
|
|
40427
40427
|
const p = f ? ((D = e.listData) == null ? void 0 : D[n]) || [] : null, g = x.useMemo(() => {
|
|
40428
40428
|
if (p) {
|
|
40429
|
-
const U = t.optionLabel || "name", W = t.optionValue || "id", F = (q,
|
|
40429
|
+
const U = t.optionLabel || "name", W = t.optionValue || "id", F = (q, Y) => Y.split(".").reduce((et, st) => et == null ? void 0 : et[st], q);
|
|
40430
40430
|
return p.map((q) => {
|
|
40431
40431
|
if (typeof q == "string")
|
|
40432
40432
|
return { label: q.replace(/^tenant_/i, "").replace(/_/g, " ").replace(/\b\w/g, (H) => H.toUpperCase()), value: q };
|
|
40433
|
-
const
|
|
40433
|
+
const Y = F(q, U), et = Y != null && Y !== "" ? Y : (q == null ? void 0 : q.name) ?? (q == null ? void 0 : q.title) ?? (q == null ? void 0 : q.label) ?? (q == null ? void 0 : q.email) ?? F(q, W) ?? "";
|
|
40434
40434
|
return {
|
|
40435
40435
|
label: String(et),
|
|
40436
40436
|
value: String(
|
|
@@ -40469,14 +40469,14 @@ const wI = x.memo(
|
|
|
40469
40469
|
const R = () => {
|
|
40470
40470
|
const U = a.current;
|
|
40471
40471
|
if (!U) return;
|
|
40472
|
-
const W = U.getBoundingClientRect(), F = window.innerHeight || 0, q = 8,
|
|
40472
|
+
const W = U.getBoundingClientRect(), F = window.innerHeight || 0, q = 8, Y = F - W.bottom - q, et = W.top - q, st = Y < 200 && et > Y;
|
|
40473
40473
|
u({
|
|
40474
40474
|
left: W.left,
|
|
40475
40475
|
width: W.width,
|
|
40476
40476
|
...st ? { bottom: Math.round(F - W.top + 4) } : { top: Math.round(W.bottom + 4) },
|
|
40477
40477
|
maxHeight: Math.max(
|
|
40478
40478
|
120,
|
|
40479
|
-
Math.min(260, st ? et :
|
|
40479
|
+
Math.min(260, st ? et : Y)
|
|
40480
40480
|
)
|
|
40481
40481
|
});
|
|
40482
40482
|
};
|
|
@@ -41888,7 +41888,7 @@ function _I(e, t, n, r, i, o, s, a) {
|
|
|
41888
41888
|
...!_ && { backgroundColor: e.cfg.colors.primary },
|
|
41889
41889
|
...!S && { color: "#fff", border: "none" }
|
|
41890
41890
|
}, T = `${n}-submit`, w = !!((b = e.buttonLoading) != null && b[T]), E = () => {
|
|
41891
|
-
var U, W, F, q,
|
|
41891
|
+
var U, W, F, q, Y;
|
|
41892
41892
|
const D = [], R = e.sceneData || {};
|
|
41893
41893
|
for (const et of s) {
|
|
41894
41894
|
const st = et.name || ((U = et.label) == null ? void 0 : U.toLowerCase()), H = R[st], J = et.label || st;
|
|
@@ -41896,7 +41896,7 @@ function _I(e, t, n, r, i, o, s, a) {
|
|
|
41896
41896
|
D.push(`${J} is required`);
|
|
41897
41897
|
continue;
|
|
41898
41898
|
}
|
|
41899
|
-
H == null || String(H).trim() === "" || ((W = et.validation) != null && W.pattern && !new RegExp(et.validation.pattern).test(String(H)) && D.push(`${J} is invalid`), ((F = et.validation) == null ? void 0 : F.min) !== void 0 && Number(H) < Number(et.validation.min) && D.push(`${J} must be at least ${et.validation.min}`), ((q = et.validation) == null ? void 0 : q.max) !== void 0 && Number(H) > Number(et.validation.max) && D.push(`${J} must be at most ${et.validation.max}`), ((
|
|
41899
|
+
H == null || String(H).trim() === "" || ((W = et.validation) != null && W.pattern && !new RegExp(et.validation.pattern).test(String(H)) && D.push(`${J} is invalid`), ((F = et.validation) == null ? void 0 : F.min) !== void 0 && Number(H) < Number(et.validation.min) && D.push(`${J} must be at least ${et.validation.min}`), ((q = et.validation) == null ? void 0 : q.max) !== void 0 && Number(H) > Number(et.validation.max) && D.push(`${J} must be at most ${et.validation.max}`), ((Y = et.validation) == null ? void 0 : Y.minLength) !== void 0 && String(H).length < Number(et.validation.minLength) && D.push(
|
|
41900
41900
|
`${J} must be at least ${et.validation.minLength} characters`
|
|
41901
41901
|
));
|
|
41902
41902
|
}
|
|
@@ -43057,7 +43057,7 @@ function Npt(e, t) {
|
|
|
43057
43057
|
return SI(o.map, r.attribution), Fw(s.current, r.eventHandlers), t(s.current, o, r, i), s;
|
|
43058
43058
|
};
|
|
43059
43059
|
}
|
|
43060
|
-
var
|
|
43060
|
+
var Ab = { exports: {} };
|
|
43061
43061
|
/* @preserve
|
|
43062
43062
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
43063
43063
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
@@ -43398,7 +43398,7 @@ var A0 = { exports: {} };
|
|
|
43398
43398
|
}
|
|
43399
43399
|
};
|
|
43400
43400
|
q.addEventListener = q.on, q.removeEventListener = q.clearAllEventListeners = q.off, q.addOneTimeEventListener = q.once, q.fireEvent = q.fire, q.hasEventListeners = q.listens;
|
|
43401
|
-
var
|
|
43401
|
+
var Y = W.extend(q);
|
|
43402
43402
|
function et(c, d, y) {
|
|
43403
43403
|
this.x = y ? Math.round(c) : c, this.y = y ? Math.round(d) : d;
|
|
43404
43404
|
}
|
|
@@ -44423,7 +44423,7 @@ var A0 = { exports: {} };
|
|
|
44423
44423
|
isExternalTarget: Co,
|
|
44424
44424
|
addListener: ue,
|
|
44425
44425
|
removeListener: Ie
|
|
44426
|
-
}, Df =
|
|
44426
|
+
}, Df = Y.extend({
|
|
44427
44427
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
44428
44428
|
// Run an animation of a given element to a new position, optionally setting
|
|
44429
44429
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
@@ -44454,7 +44454,7 @@ var A0 = { exports: {} };
|
|
|
44454
44454
|
_easeOut: function(c) {
|
|
44455
44455
|
return 1 - Math.pow(1 - c, this._easeOutPower);
|
|
44456
44456
|
}
|
|
44457
|
-
}), Rt =
|
|
44457
|
+
}), Rt = Y.extend({
|
|
44458
44458
|
options: {
|
|
44459
44459
|
// @section Map State Options
|
|
44460
44460
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
@@ -44657,9 +44657,9 @@ var A0 = { exports: {} };
|
|
|
44657
44657
|
function C(K) {
|
|
44658
44658
|
return 1 - Math.pow(1 - K, 1.5);
|
|
44659
44659
|
}
|
|
44660
|
-
var k = Date.now(), $ = (ye(1) - Jn) / Lt,
|
|
44660
|
+
var k = Date.now(), $ = (ye(1) - Jn) / Lt, G = y.duration ? 1e3 * y.duration : 1e3 * $ * 0.8;
|
|
44661
44661
|
function z() {
|
|
44662
|
-
var K = (Date.now() - k) /
|
|
44662
|
+
var K = (Date.now() - k) / G, X = C(K) * $;
|
|
44663
44663
|
K <= 1 ? (this._flyToFrame = D(z, this), this._move(
|
|
44664
44664
|
this.unproject(A.add(M.subtract(A).multiplyBy(rd(X) / bt)), tt),
|
|
44665
44665
|
this.getScaleZoom(rt / $o(X), tt),
|
|
@@ -45755,7 +45755,7 @@ var A0 = { exports: {} };
|
|
|
45755
45755
|
Fn.addTo = function(c, d) {
|
|
45756
45756
|
return c.addHandler(d, this), this;
|
|
45757
45757
|
};
|
|
45758
|
-
var Wf = { Events: q }, Tu = zt.touch ? "touchstart mousedown" : "mousedown", Ci =
|
|
45758
|
+
var Wf = { Events: q }, Tu = zt.touch ? "touchstart mousedown" : "mousedown", Ci = Y.extend({
|
|
45759
45759
|
options: {
|
|
45760
45760
|
// @section
|
|
45761
45761
|
// @aka Draggable options
|
|
@@ -46019,7 +46019,7 @@ var A0 = { exports: {} };
|
|
|
46019
46019
|
infinite: !0
|
|
46020
46020
|
});
|
|
46021
46021
|
$t.Earth = Tt, $t.EPSG3395 = Mi, $t.EPSG3857 = St, $t.EPSG900913 = dt, $t.EPSG4326 = Ml, $t.Simple = ku;
|
|
46022
|
-
var Ae =
|
|
46022
|
+
var Ae = Y.extend({
|
|
46023
46023
|
// Classes extending `L.Layer` will inherit the following options:
|
|
46024
46024
|
options: {
|
|
46025
46025
|
// @option pane: String = 'overlayPane'
|
|
@@ -49362,14 +49362,14 @@ var A0 = { exports: {} };
|
|
|
49362
49362
|
this._zooming = !1, R(this._animRequest), Ie(document, "touchmove", this._onTouchMove, this), Ie(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
49363
49363
|
}
|
|
49364
49364
|
});
|
|
49365
|
-
Rt.addInitHook("addHandler", "touchZoom", nd), Rt.BoxZoom = Xf, Rt.DoubleClickZoom = Jf, Rt.Drag = Qf, Rt.Keyboard = td, Rt.ScrollWheelZoom = ed, Rt.TapHold = Hg, Rt.TouchZoom = nd, n.Bounds = J, n.Browser = zt, n.CRS = $t, n.Canvas = Wg, n.Circle = Oo, n.CircleMarker = pa, n.Class = W, n.Control = qr, n.DivIcon = Te, n.DivOverlay = Ir, n.DomEvent = Sl, n.DomUtil = Lf, n.Draggable = Ci, n.Evented =
|
|
49365
|
+
Rt.addInitHook("addHandler", "touchZoom", nd), Rt.BoxZoom = Xf, Rt.DoubleClickZoom = Jf, Rt.Drag = Qf, Rt.Keyboard = td, Rt.ScrollWheelZoom = ed, Rt.TapHold = Hg, Rt.TouchZoom = nd, n.Bounds = J, n.Browser = zt, n.CRS = $t, n.Canvas = Wg, n.Circle = Oo, n.CircleMarker = pa, n.Class = W, n.Control = qr, n.DivIcon = Te, n.DivOverlay = Ir, n.DomEvent = Sl, n.DomUtil = Lf, n.Draggable = Ci, n.Evented = Y, n.FeatureGroup = kr, n.GeoJSON = ui, n.GridLayer = _s, n.Handler = Fn, n.Icon = $r, n.ImageOverlay = ya, n.LatLng = vt, n.LatLngBounds = ct, n.Layer = Ae, n.LayerGroup = Yr, n.LineUtil = Dg, n.Map = Rt, n.Marker = da, n.Mixin = Wf, n.Path = Zi, n.Point = et, n.PolyUtil = Gi, n.Polygon = bs, n.Polyline = Oi, n.Popup = va, n.PosAnimation = Df, n.Projection = fa, n.Rectangle = Ru, n.Renderer = hi, n.SVG = In, n.SVGOverlay = ko, n.TileLayer = $i, n.Tooltip = ba, n.Transformation = It, n.Util = U, n.VideoOverlay = Ll, n.bind = s, n.bounds = ot, n.canvas = Kf, n.circle = $l, n.circleMarker = kl, n.control = qi, n.divIcon = xa, n.extend = i, n.featureGroup = Uf, n.geoJSON = ga, n.geoJson = qf, n.gridLayer = jl, n.icon = An, n.imageOverlay = Gf, n.latLng = yt, n.latLngBounds = mt, n.layerGroup = jg, n.map = jf, n.marker = Hf, n.point = H, n.polygon = zg, n.polyline = Bg, n.popup = ws, n.rectangle = _a, n.setOptions = m, n.stamp = l, n.svg = Nu, n.svgOverlay = Yf, n.tileLayer = Zf, n.tooltip = Dl, n.transformation = nt, n.version = r, n.videoOverlay = $u;
|
|
49366
49366
|
var qg = window.L;
|
|
49367
49367
|
n.noConflict = function() {
|
|
49368
49368
|
return window.L = qg, this;
|
|
49369
49369
|
}, window.L = n;
|
|
49370
49370
|
});
|
|
49371
|
-
})(
|
|
49372
|
-
var yl =
|
|
49371
|
+
})(Ab, Ab.exports);
|
|
49372
|
+
var yl = Ab.exports;
|
|
49373
49373
|
function wu(e, t, n) {
|
|
49374
49374
|
return Object.freeze({
|
|
49375
49375
|
instance: e,
|
|
@@ -49470,15 +49470,15 @@ const Wpt = Ig(function({ center: t, children: n, ...r }, i) {
|
|
|
49470
49470
|
overlayContainer: o
|
|
49471
49471
|
}));
|
|
49472
49472
|
}, PI);
|
|
49473
|
-
function
|
|
49474
|
-
return
|
|
49473
|
+
function Eb() {
|
|
49474
|
+
return Eb = Object.assign || function(e) {
|
|
49475
49475
|
for (var t = 1; t < arguments.length; t++) {
|
|
49476
49476
|
var n = arguments[t];
|
|
49477
49477
|
for (var r in n)
|
|
49478
49478
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
49479
49479
|
}
|
|
49480
49480
|
return e;
|
|
49481
|
-
},
|
|
49481
|
+
}, Eb.apply(this, arguments);
|
|
49482
49482
|
}
|
|
49483
49483
|
function Vpt({ bounds: e, boundsOptions: t, center: n, children: r, className: i, id: o, placeholder: s, style: a, whenReady: l, zoom: h, ...u }, f) {
|
|
49484
49484
|
const [p] = Bs({
|
|
@@ -49503,7 +49503,7 @@ function Vpt({ bounds: e, boundsOptions: t, center: n, children: r, className: i
|
|
|
49503
49503
|
const v = g ? /* @__PURE__ */ x.createElement(EI, {
|
|
49504
49504
|
value: g
|
|
49505
49505
|
}, r) : s ?? null;
|
|
49506
|
-
return /* @__PURE__ */ x.createElement("div",
|
|
49506
|
+
return /* @__PURE__ */ x.createElement("div", Eb({}, p, {
|
|
49507
49507
|
ref: m
|
|
49508
49508
|
}), v);
|
|
49509
49509
|
}
|
|
@@ -49585,7 +49585,7 @@ function no(e, t) {
|
|
|
49585
49585
|
function Xu(e, t, n) {
|
|
49586
49586
|
return e[t || ""] ?? n.map((r) => e[r]).find(Boolean) ?? "";
|
|
49587
49587
|
}
|
|
49588
|
-
function
|
|
49588
|
+
function Tb(e, t, n, r, i) {
|
|
49589
49589
|
if (e.interactionDisabled) return;
|
|
49590
49590
|
const o = {
|
|
49591
49591
|
...r,
|
|
@@ -49770,7 +49770,7 @@ function Qpt({
|
|
|
49770
49770
|
);
|
|
49771
49771
|
(s.size !== l.size || [...s].some((u) => !l.has(u))) && (e.setSceneData((u) => ({ ...u, [a]: [...s] })), r.forEach((u, f) => {
|
|
49772
49772
|
const p = u.id || String(f), g = s.has(p) && !l.has(p), b = !s.has(p) && l.has(p), m = g ? u.onEnter || t.onGeofenceEnter : b ? u.onExit || t.onGeofenceExit : void 0;
|
|
49773
|
-
m &&
|
|
49773
|
+
m && Tb(e, t, n, { ...u, geofenceId: p }, m);
|
|
49774
49774
|
}));
|
|
49775
49775
|
}, [e, t, i, r, n, o]), null;
|
|
49776
49776
|
}
|
|
@@ -49788,7 +49788,7 @@ function emt({
|
|
|
49788
49788
|
config: t,
|
|
49789
49789
|
componentKey: n
|
|
49790
49790
|
}) {
|
|
49791
|
-
var q,
|
|
49791
|
+
var q, Y, et, st, H;
|
|
49792
49792
|
const r = e.interpolateText(t.dataSource || ""), { fetchListData: i } = e;
|
|
49793
49793
|
x.useEffect(() => {
|
|
49794
49794
|
r && i(r, n, 0, t.pageSize || 50).catch(
|
|
@@ -49805,7 +49805,7 @@ function emt({
|
|
|
49805
49805
|
(J) => J.location !== null
|
|
49806
49806
|
), a = Os(
|
|
49807
49807
|
typeof t.route == "string" ? e.interpolateText(t.route) : t.route
|
|
49808
|
-
).map((J) => no(e, J)).filter((J) => J !== null), l = no(e, t.location), h = no(e, t.center || t) || l || ((
|
|
49808
|
+
).map((J) => no(e, J)).filter((J) => J !== null), l = no(e, t.location), h = no(e, t.center || t) || l || ((Y = s[0]) == null ? void 0 : Y.location) || a[0];
|
|
49809
49809
|
t.marker && h && s.length === 0 && s.push({ source: {}, location: h });
|
|
49810
49810
|
const u = Os(
|
|
49811
49811
|
typeof t.geofences == "string" ? e.interpolateText(t.geofences) : t.geofences
|
|
@@ -49929,7 +49929,7 @@ function emt({
|
|
|
49929
49929
|
{
|
|
49930
49930
|
enabled: U,
|
|
49931
49931
|
drawingEnabled: b,
|
|
49932
|
-
onSelect: (J) =>
|
|
49932
|
+
onSelect: (J) => Tb(
|
|
49933
49933
|
e,
|
|
49934
49934
|
t,
|
|
49935
49935
|
J,
|
|
@@ -50033,7 +50033,7 @@ function emt({
|
|
|
50033
50033
|
weight: 2
|
|
50034
50034
|
},
|
|
50035
50035
|
eventHandlers: {
|
|
50036
|
-
click: () =>
|
|
50036
|
+
click: () => Tb(
|
|
50037
50037
|
e,
|
|
50038
50038
|
t,
|
|
50039
50039
|
ot,
|
|
@@ -51859,7 +51859,7 @@ const xmt = {
|
|
|
51859
51859
|
900: "#881337",
|
|
51860
51860
|
950: "#4c0519"
|
|
51861
51861
|
}
|
|
51862
|
-
},
|
|
51862
|
+
}, Cb = {
|
|
51863
51863
|
transparent: "transparent",
|
|
51864
51864
|
current: "currentColor",
|
|
51865
51865
|
inherit: "inherit",
|
|
@@ -51876,7 +51876,7 @@ const xmt = {
|
|
|
51876
51876
|
};
|
|
51877
51877
|
for (const [e, t] of Object.entries(xmt))
|
|
51878
51878
|
for (const [n, r] of Object.entries(t))
|
|
51879
|
-
|
|
51879
|
+
Cb[`${e}-${n}`] = r;
|
|
51880
51880
|
const Se = {
|
|
51881
51881
|
0: "0px",
|
|
51882
51882
|
"0.5": "0.125rem",
|
|
@@ -51932,7 +51932,7 @@ function _mt(e, t, n = !0) {
|
|
|
51932
51932
|
e = String(e);
|
|
51933
51933
|
const { colorMode: r, ...i } = t || {}, o = r === "light", s = e.match(/(?:^|\s)dark:([^\s]+)/g) || [], a = e.replace(/(?:^|\s)dark:[^\s]+/g, " ").replace(/\s+/g, " ").trim();
|
|
51934
51934
|
!o && s.length ? e = a ? `${a} ${s.map((m) => m.trim().replace(/^dark:/, "")).join(" ")}` : s.map((m) => m.trim().replace(/^dark:/, "")).join(" ") : e = a;
|
|
51935
|
-
const l = i ? { ...
|
|
51935
|
+
const l = i ? { ...Cb, ...Object.fromEntries(Object.entries(i).filter(([, m]) => m)) } : Cb;
|
|
51936
51936
|
o && n && (l.white = "#000000", l.black = "#ffffff", l["gray-300"] = "#4b5563", l["gray-400"] = "#374151", l["gray-500"] = "#374151", l["gray-600"] = "#1f2937", l["gray-700"] = "#111827", l["gray-800"] = "#0f172a", l["slate-300"] = "#475569", l["slate-400"] = "#334155", l["slate-500"] = "#334155", l["slate-600"] = "#1e293b");
|
|
51937
51937
|
const h = e.split(/\s+/).filter(Boolean), u = {};
|
|
51938
51938
|
let f = "", p = "", g = "", b = "";
|
|
@@ -52025,9 +52025,9 @@ function _mt(e, t, n = !0) {
|
|
|
52025
52025
|
u.margin = q[1];
|
|
52026
52026
|
continue;
|
|
52027
52027
|
}
|
|
52028
|
-
const
|
|
52029
|
-
if (
|
|
52030
|
-
u.marginLeft =
|
|
52028
|
+
const Y = m.match(/^mx-\[([^\]]+)\]$/);
|
|
52029
|
+
if (Y) {
|
|
52030
|
+
u.marginLeft = Y[1], u.marginRight = Y[1];
|
|
52031
52031
|
continue;
|
|
52032
52032
|
}
|
|
52033
52033
|
const et = m.match(/^my-\[([^\]]+)\]$/);
|
|
@@ -53801,7 +53801,7 @@ function Amt(e) {
|
|
|
53801
53801
|
);
|
|
53802
53802
|
}
|
|
53803
53803
|
function qT(e, t, n, r, i, o, s) {
|
|
53804
|
-
var O, I, N, B, D, R, U, W, F, q,
|
|
53804
|
+
var O, I, N, B, D, R, U, W, F, q, Y, et, st;
|
|
53805
53805
|
if (!e) return null;
|
|
53806
53806
|
const { definition: a, closing: l } = e, h = a.variant ? (O = a.variants) == null ? void 0 : O[a.variant] : void 0, u = {
|
|
53807
53807
|
...a,
|
|
@@ -53915,7 +53915,7 @@ function qT(e, t, n, r, i, o, s) {
|
|
|
53915
53915
|
{
|
|
53916
53916
|
className: "text-[#1c1917] dark:text-[#ffffff]",
|
|
53917
53917
|
style: {
|
|
53918
|
-
fontFamily: (
|
|
53918
|
+
fontFamily: (Y = t.typography) == null ? void 0 : Y.headingFontFamily,
|
|
53919
53919
|
fontSize: u.icon ? "18px" : "16px",
|
|
53920
53920
|
fontWeight: 600,
|
|
53921
53921
|
marginBottom: "12px",
|
|
@@ -54117,7 +54117,7 @@ function Tmt({
|
|
|
54117
54117
|
const F = (() => {
|
|
54118
54118
|
const C = NI || localStorage.getItem("token");
|
|
54119
54119
|
return !!C && !Yl(C);
|
|
54120
|
-
})(), [q,
|
|
54120
|
+
})(), [q, Y] = x.useState(
|
|
54121
54121
|
!F
|
|
54122
54122
|
), [et, st] = x.useState(null), H = x.useMemo(
|
|
54123
54123
|
() => Array.isArray(e == null ? void 0 : e.steps) ? e.steps : [],
|
|
@@ -54130,14 +54130,14 @@ function Tmt({
|
|
|
54130
54130
|
JSON.stringify(e.steps).slice(0, 500)
|
|
54131
54131
|
), mv("[WorkflowRenderer] Workflow keys:", Object.keys(e))), q !== !0 ? C : C.filter(
|
|
54132
54132
|
(k) => {
|
|
54133
|
-
var $,
|
|
54134
|
-
return !(k.requiresAuth === !0 || (($ = k.config) == null ? void 0 : $.requireAuth) === !0 || ((
|
|
54133
|
+
var $, G;
|
|
54134
|
+
return !(k.requiresAuth === !0 || (($ = k.config) == null ? void 0 : $.requireAuth) === !0 || ((G = k.config) == null ? void 0 : G.requiresAuth) === !0);
|
|
54135
54135
|
}
|
|
54136
54136
|
);
|
|
54137
54137
|
}, [e, q, H]), ot = x.useCallback(
|
|
54138
54138
|
(C) => {
|
|
54139
54139
|
var $;
|
|
54140
|
-
const k = H.find((
|
|
54140
|
+
const k = H.find((G) => G.id === C);
|
|
54141
54141
|
return (($ = k == null ? void 0 : k.config) == null ? void 0 : $.requireAuth) === !0 || (k == null ? void 0 : k.requiresAuth) === !0;
|
|
54142
54142
|
},
|
|
54143
54143
|
[H]
|
|
@@ -54158,10 +54158,10 @@ function Tmt({
|
|
|
54158
54158
|
[J]
|
|
54159
54159
|
), We = x.useMemo(() => {
|
|
54160
54160
|
var k, $;
|
|
54161
|
-
if (D && J.some((
|
|
54161
|
+
if (D && J.some((G) => G.id === D))
|
|
54162
54162
|
return D;
|
|
54163
|
-
const C = J.filter((
|
|
54164
|
-
return ((k = C.find((
|
|
54163
|
+
const C = J.filter((G) => G.type === "render_scene");
|
|
54164
|
+
return ((k = C.find((G) => G.route === "/")) == null ? void 0 : k.id) || (($ = C[0]) == null ? void 0 : $.id) || "";
|
|
54165
54165
|
}, [J, D]), Sn = x.useMemo(() => {
|
|
54166
54166
|
if (ut && typeof window < "u") {
|
|
54167
54167
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, k = Ju(C, sn, ae);
|
|
@@ -54176,10 +54176,10 @@ function Tmt({
|
|
|
54176
54176
|
var k, $;
|
|
54177
54177
|
return (C == null ? void 0 : C.requiresAuth) === !0 || ((k = C == null ? void 0 : C.config) == null ? void 0 : k.requireAuth) === !0 || (($ = C == null ? void 0 : C.config) == null ? void 0 : $.requiresAuth) === !0;
|
|
54178
54178
|
}, gr = () => {
|
|
54179
|
-
var
|
|
54180
|
-
const C = ge.current, $ = (C && H.some((z) => z.id === C) ? C : null) || ((
|
|
54179
|
+
var G;
|
|
54180
|
+
const C = ge.current, $ = (C && H.some((z) => z.id === C) ? C : null) || ((G = H.find(
|
|
54181
54181
|
(z) => z.type === "render_scene" && mr(z)
|
|
54182
|
-
)) == null ? void 0 :
|
|
54182
|
+
)) == null ? void 0 : G.id);
|
|
54183
54183
|
$ && ut && (Tt === "hash" ? ql($, ae, !0) : Gl($, ae, !0)), (!$ || !ut) && localStorage.setItem("backflow_post_auth_redirect", "1"), window.location.reload();
|
|
54184
54184
|
};
|
|
54185
54185
|
x.useEffect(() => (Zt.current = !1, oL(), () => {
|
|
@@ -54195,7 +54195,7 @@ function Tmt({
|
|
|
54195
54195
|
r_();
|
|
54196
54196
|
return;
|
|
54197
54197
|
}
|
|
54198
|
-
const $ = N || (t == null ? void 0 : t.endpoint),
|
|
54198
|
+
const $ = N || (t == null ? void 0 : t.endpoint), G = $ && /^https?:\/\//.test($) ? $ : window.location.origin, z = new URL("/ws", G);
|
|
54199
54199
|
z.protocol = z.protocol === "https:" ? "wss:" : "ws:";
|
|
54200
54200
|
const K = z.toString(), X = `agent:${w || "default"}:${U}`;
|
|
54201
54201
|
return iL(
|
|
@@ -54222,7 +54222,7 @@ function Tmt({
|
|
|
54222
54222
|
);
|
|
54223
54223
|
x.useEffect(() => {
|
|
54224
54224
|
var $;
|
|
54225
|
-
const C = J.find((
|
|
54225
|
+
const C = J.find((G) => G.id === Mt), k = (($ = C == null ? void 0 : C.config) == null ? void 0 : $.requireAuth) === !0 || (C == null ? void 0 : C.requiresAuth) === !0;
|
|
54226
54226
|
Mt && !k && St(!1);
|
|
54227
54227
|
}, [Mt, J]);
|
|
54228
54228
|
const an = (e == null ? void 0 : e.modals) || {};
|
|
@@ -54272,7 +54272,7 @@ function Tmt({
|
|
|
54272
54272
|
const C = (k) => {
|
|
54273
54273
|
var K;
|
|
54274
54274
|
if (go.current) return;
|
|
54275
|
-
const $ = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname,
|
|
54275
|
+
const $ = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, G = Ju($, sn, ae), z = ((K = k.state) == null ? void 0 : K.sceneId) || (G == null ? void 0 : G.sceneId);
|
|
54276
54276
|
z && z !== Mt && (Mr.current = !0, ir(z), Je((X) => X.length > 0 && X[X.length - 1] === z ? X.slice(0, -1) : X));
|
|
54277
54277
|
};
|
|
54278
54278
|
return window.addEventListener("popstate", C), () => window.removeEventListener("popstate", C);
|
|
@@ -54284,10 +54284,10 @@ function Tmt({
|
|
|
54284
54284
|
Mt,
|
|
54285
54285
|
ir
|
|
54286
54286
|
]), x.useEffect(() => {
|
|
54287
|
-
var
|
|
54287
|
+
var G;
|
|
54288
54288
|
if (!ut || typeof window > "u") return;
|
|
54289
54289
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, k = Ju(C, sn, ae), $ = (k == null ? void 0 : k.sceneId) || We;
|
|
54290
|
-
$ && $ !== Mt && (pr($), Je([]), v == null || v($), k && !((
|
|
54290
|
+
$ && $ !== Mt && (pr($), Je([]), v == null || v($), k && !((G = ae.get($)) != null && G.includes(":")) && (Tt === "hash" ? ql($, ae, !0) : Gl($, ae, !0)));
|
|
54291
54291
|
}, [e]), x.useEffect(() => {
|
|
54292
54292
|
m && m !== dr && pr(m);
|
|
54293
54293
|
}, [m]);
|
|
@@ -54308,15 +54308,15 @@ function Tmt({
|
|
|
54308
54308
|
if (C)
|
|
54309
54309
|
try {
|
|
54310
54310
|
const k = JSON.parse(atob(C.split(".")[1])), $ = k.sub || k.uid || k.user_id || k.userId;
|
|
54311
|
-
he((
|
|
54312
|
-
...
|
|
54311
|
+
he((G) => ({
|
|
54312
|
+
...G,
|
|
54313
54313
|
me: { uid: $, email: k.email },
|
|
54314
54314
|
user: {
|
|
54315
54315
|
uid: $,
|
|
54316
54316
|
email: k.email,
|
|
54317
54317
|
displayName: k.name || k.displayName,
|
|
54318
54318
|
role: k.role,
|
|
54319
|
-
...
|
|
54319
|
+
...G.user || {}
|
|
54320
54320
|
}
|
|
54321
54321
|
}));
|
|
54322
54322
|
} catch {
|
|
@@ -54327,14 +54327,14 @@ function Tmt({
|
|
|
54327
54327
|
if (!k || k.sceneId !== Mt) return;
|
|
54328
54328
|
const $ = Object.entries(k.params);
|
|
54329
54329
|
if ($.length === 0) return;
|
|
54330
|
-
const
|
|
54330
|
+
const G = { ...Pn.current };
|
|
54331
54331
|
for (const [z, K] of $)
|
|
54332
|
-
|
|
54333
|
-
Pn.current =
|
|
54332
|
+
G[z] = K, G[`_${z}`] = K;
|
|
54333
|
+
Pn.current = G, he(G);
|
|
54334
54334
|
}, [Mt, ut, Tt, sn, ae]), x.useEffect(() => {
|
|
54335
54335
|
if (!ut || typeof window > "u") return;
|
|
54336
54336
|
const C = ae.get(Mt);
|
|
54337
|
-
!C || !C.includes(":") || Mr.current || (Tt === "hash" ? ql(Mt, ae, !
|
|
54337
|
+
!C || !C.includes(":") || Mr.current || (Tt === "hash" ? ql(Mt, ae, !0, Pn.current) : Gl(Mt, ae, !0, Pn.current));
|
|
54338
54338
|
}, [
|
|
54339
54339
|
xe,
|
|
54340
54340
|
Mt,
|
|
@@ -54345,7 +54345,7 @@ function Tmt({
|
|
|
54345
54345
|
const rs = x.useCallback(
|
|
54346
54346
|
(C) => {
|
|
54347
54347
|
var X;
|
|
54348
|
-
const k = J.find((Q) => Q.id === C), $ = (X = k == null ? void 0 : k.config) == null ? void 0 : X.components,
|
|
54348
|
+
const k = J.find((Q) => Q.id === C), $ = (X = k == null ? void 0 : k.config) == null ? void 0 : X.components, G = (e == null ? void 0 : e.widgets) || [];
|
|
54349
54349
|
let z = !1;
|
|
54350
54350
|
const K = (Q) => {
|
|
54351
54351
|
if (!(z || !Q)) {
|
|
@@ -54356,7 +54356,7 @@ function Tmt({
|
|
|
54356
54356
|
return;
|
|
54357
54357
|
}
|
|
54358
54358
|
if (typeof Q.widgetId == "string") {
|
|
54359
|
-
const Z =
|
|
54359
|
+
const Z = G.find((lt) => lt.id === Q.widgetId);
|
|
54360
54360
|
Z && K(Z.components);
|
|
54361
54361
|
}
|
|
54362
54362
|
Array.isArray(Q.children) && K(Q.children), Q.renderItem && K(Q.renderItem);
|
|
@@ -54410,7 +54410,7 @@ function Tmt({
|
|
|
54410
54410
|
), [vo, os] = x.useState({}), Fi = x.useRef({}), Ai = x.useCallback(
|
|
54411
54411
|
async (C, k = !1) => {
|
|
54412
54412
|
if (!ht || !C.appId) return;
|
|
54413
|
-
const $ = N || (t == null ? void 0 : t.endpoint) || window.location.origin,
|
|
54413
|
+
const $ = N || (t == null ? void 0 : t.endpoint) || window.location.origin, G = !N && typeof $ == "string" && $.startsWith("/") ? $.replace(/\/+$/, "") : "", z = /^https?:\/\//.test($) ? $ : window.location.origin, K = `${G}/mobile/apps/${encodeURIComponent(C.appId)}/workflow`, X = await fetch(new URL(K, z).toString(), {
|
|
54414
54414
|
cache: k ? "no-cache" : "default",
|
|
54415
54415
|
headers: {
|
|
54416
54416
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
@@ -54436,7 +54436,7 @@ function Tmt({
|
|
|
54436
54436
|
C = !0;
|
|
54437
54437
|
};
|
|
54438
54438
|
}, [Vr, Ai]), x.useEffect(() => {
|
|
54439
|
-
var
|
|
54439
|
+
var G;
|
|
54440
54440
|
const C = Vr.filter(
|
|
54441
54441
|
(z) => {
|
|
54442
54442
|
var K;
|
|
@@ -54444,7 +54444,7 @@ function Tmt({
|
|
|
54444
54444
|
}
|
|
54445
54445
|
);
|
|
54446
54446
|
if (C.length === 0 || !w) return;
|
|
54447
|
-
const k = (
|
|
54447
|
+
const k = (G = t == null ? void 0 : t.client) == null ? void 0 : G.createWebSocket;
|
|
54448
54448
|
if (!k) return;
|
|
54449
54449
|
const $ = k(
|
|
54450
54450
|
`tenant:${w}:entities`
|
|
@@ -54468,8 +54468,8 @@ function Tmt({
|
|
|
54468
54468
|
(C, k) => {
|
|
54469
54469
|
if (!(W ?? _m())) return;
|
|
54470
54470
|
const $ = `${C}:${k}`;
|
|
54471
|
-
us.current.has($) || (us.current.add($), oa((
|
|
54472
|
-
...
|
|
54471
|
+
us.current.has($) || (us.current.add($), oa((G) => [
|
|
54472
|
+
...G,
|
|
54473
54473
|
{
|
|
54474
54474
|
level: "warn",
|
|
54475
54475
|
code: C,
|
|
@@ -54482,14 +54482,14 @@ function Tmt({
|
|
|
54482
54482
|
), sa = x.useCallback(
|
|
54483
54483
|
(C, k) => {
|
|
54484
54484
|
if (!(W ?? _m())) return;
|
|
54485
|
-
const $ = Date.now(),
|
|
54485
|
+
const $ = Date.now(), G = (hs.current.get(C) || []).filter((X) => $ - X.at < 2e3), z = G.find(
|
|
54486
54486
|
(X) => X.componentKey !== k && $ - X.at < 500
|
|
54487
54487
|
);
|
|
54488
|
-
|
|
54488
|
+
G.push({ componentKey: k, at: $ }), hs.current.set(C, G), z && fs(
|
|
54489
54489
|
"DATASOURCE_DUPLICATE_RUNTIME",
|
|
54490
54490
|
`"${C}" fetched by ${z.componentKey} and ${k} within 500ms`
|
|
54491
54491
|
);
|
|
54492
|
-
const K =
|
|
54492
|
+
const K = G.filter(
|
|
54493
54493
|
(X) => X.componentKey === k
|
|
54494
54494
|
);
|
|
54495
54495
|
K.length >= 3 && fs(
|
|
@@ -54543,8 +54543,8 @@ function Tmt({
|
|
|
54543
54543
|
appIcon: l,
|
|
54544
54544
|
workflowBaseUrl: B,
|
|
54545
54545
|
configuredLogo: k
|
|
54546
|
-
}).then((
|
|
54547
|
-
$ || C.config.logo !==
|
|
54546
|
+
}).then((G) => {
|
|
54547
|
+
$ || C.config.logo !== G && (C.config.logo = G, he((z) => z && { ...z }));
|
|
54548
54548
|
}), () => {
|
|
54549
54549
|
$ = !0;
|
|
54550
54550
|
};
|
|
@@ -54563,8 +54563,8 @@ function Tmt({
|
|
|
54563
54563
|
if (Sl !== mt.colorMode) {
|
|
54564
54564
|
const C = ah, k = {};
|
|
54565
54565
|
if (mt.colors && Sl === "dark")
|
|
54566
|
-
for (const [$,
|
|
54567
|
-
|
|
54566
|
+
for (const [$, G] of Object.entries(mt.colors))
|
|
54567
|
+
G !== C[$] && (k[$] = G);
|
|
54568
54568
|
Rt = {
|
|
54569
54569
|
...mt,
|
|
54570
54570
|
colorMode: Sl,
|
|
@@ -54596,12 +54596,12 @@ function Tmt({
|
|
|
54596
54596
|
X.searchParams.delete("token"), window.history.replaceState({}, "", X.toString());
|
|
54597
54597
|
}
|
|
54598
54598
|
const k = localStorage.getItem("token"), $ = !!k && !Yl(k);
|
|
54599
|
-
$ ? (te.current = !1,
|
|
54600
|
-
const
|
|
54599
|
+
$ ? (te.current = !1, Y(!1)) : Y(!0), It($);
|
|
54600
|
+
const G = () => {
|
|
54601
54601
|
const X = localStorage.getItem("token"), Q = !!X && !Yl(X);
|
|
54602
|
-
Q ? (te.current = !1,
|
|
54602
|
+
Q ? (te.current = !1, Y(!1)) : Y(!0), It(Q);
|
|
54603
54603
|
};
|
|
54604
|
-
window.addEventListener("storage",
|
|
54604
|
+
window.addEventListener("storage", G);
|
|
54605
54605
|
const z = (X) => {
|
|
54606
54606
|
var Q, Z, lt;
|
|
54607
54607
|
if ((((Q = X.data) == null ? void 0 : Q.type) === "auth" || ((Z = X.data) == null ? void 0 : Z.type) === "auth-token") && ((lt = X.data) != null && lt.token)) {
|
|
@@ -54616,7 +54616,7 @@ function Tmt({
|
|
|
54616
54616
|
gr();
|
|
54617
54617
|
return;
|
|
54618
54618
|
}
|
|
54619
|
-
It(!0), St(!1),
|
|
54619
|
+
It(!0), St(!1), Y(!1), te.current = !1;
|
|
54620
54620
|
}
|
|
54621
54621
|
};
|
|
54622
54622
|
window.addEventListener("message", z);
|
|
@@ -54629,7 +54629,7 @@ function Tmt({
|
|
|
54629
54629
|
}
|
|
54630
54630
|
};
|
|
54631
54631
|
return window.addEventListener("auth:required", K), () => {
|
|
54632
|
-
window.removeEventListener("storage",
|
|
54632
|
+
window.removeEventListener("storage", G), window.removeEventListener("message", z), window.removeEventListener("auth:required", K);
|
|
54633
54633
|
};
|
|
54634
54634
|
}, []);
|
|
54635
54635
|
const qr = async () => {
|
|
@@ -54675,18 +54675,18 @@ function Tmt({
|
|
|
54675
54675
|
if (!Ue) return;
|
|
54676
54676
|
const C = w || "default", k = { TENANT_ID: C, tenantId: C, role: "user" };
|
|
54677
54677
|
he(($) => {
|
|
54678
|
-
const
|
|
54678
|
+
const G = {};
|
|
54679
54679
|
for (const z of Object.keys($))
|
|
54680
|
-
(z.startsWith("_") || z === "me") && (
|
|
54681
|
-
return { ...k, ...Ue.sceneData || {}, ...
|
|
54680
|
+
(z.startsWith("_") || z === "me") && (G[z] = $[z]);
|
|
54681
|
+
return { ...k, ...Ue.sceneData || {}, ...G };
|
|
54682
54682
|
});
|
|
54683
54683
|
}, [Mt, Ue]), x.useEffect(() => {
|
|
54684
54684
|
const C = Rt.persistedKeys;
|
|
54685
54685
|
if (!C || C.length === 0) return;
|
|
54686
54686
|
const k = {};
|
|
54687
54687
|
for (const $ of C) {
|
|
54688
|
-
const
|
|
54689
|
-
|
|
54688
|
+
const G = localStorage.getItem(`bf_persist_${$}`);
|
|
54689
|
+
G && (k[$] = G);
|
|
54690
54690
|
}
|
|
54691
54691
|
Object.keys(k).length > 0 && (Pn.current = { ...Pn.current, ...k }, he(Pn.current));
|
|
54692
54692
|
}, [Mt]), x.useEffect(() => {
|
|
@@ -54694,20 +54694,20 @@ function Tmt({
|
|
|
54694
54694
|
if (!(!C || C.length === 0))
|
|
54695
54695
|
for (const k of C) {
|
|
54696
54696
|
if (!(k in xe)) continue;
|
|
54697
|
-
const $ = xe[k],
|
|
54698
|
-
$ == null || $ === "" ? localStorage.removeItem(
|
|
54697
|
+
const $ = xe[k], G = `bf_persist_${k}`;
|
|
54698
|
+
$ == null || $ === "" ? localStorage.removeItem(G) : localStorage.setItem(G, String($));
|
|
54699
54699
|
}
|
|
54700
54700
|
}), x.useEffect(() => {
|
|
54701
54701
|
if (typeof window > "u") return;
|
|
54702
54702
|
let C = 0;
|
|
54703
|
-
const k = (
|
|
54704
|
-
const z =
|
|
54703
|
+
const k = (G) => {
|
|
54704
|
+
const z = G, K = !!z && z !== document && z !== window && typeof z.scrollTop == "number" && (z.scrollHeight || 0) > (z.clientHeight || 0), X = document.documentElement, Q = K ? z.scrollTop : window.scrollY || X.scrollTop || document.body.scrollTop || 0, Z = K ? z.clientHeight : window.innerHeight || X.clientHeight || 0, lt = K ? z.scrollHeight : Math.max(X.scrollHeight, document.body ? document.body.scrollHeight : 0), it = Q > Math.max(8, Z * 0.5), gt = it && Q + Z >= lt - 16;
|
|
54705
54705
|
he(
|
|
54706
54706
|
(Ot) => Ot._scrolled === it && Ot._atBottom === gt ? Ot : { ...Ot, _scrolled: it, _atBottom: gt }
|
|
54707
54707
|
);
|
|
54708
|
-
}, $ = (
|
|
54708
|
+
}, $ = (G) => {
|
|
54709
54709
|
if (C) return;
|
|
54710
|
-
const z =
|
|
54710
|
+
const z = G.target;
|
|
54711
54711
|
C = requestAnimationFrame(() => {
|
|
54712
54712
|
C = 0, k(z);
|
|
54713
54713
|
});
|
|
@@ -54737,27 +54737,27 @@ function Tmt({
|
|
|
54737
54737
|
const k = String(C.action), $ = C.condition;
|
|
54738
54738
|
if ($ && !$l(String($), Pn.current))
|
|
54739
54739
|
return;
|
|
54740
|
-
const
|
|
54740
|
+
const G = Pn.current;
|
|
54741
54741
|
try {
|
|
54742
54742
|
if (k.startsWith("execute_workflow:")) {
|
|
54743
54743
|
if (!ht) return;
|
|
54744
54744
|
const { method: Z, path: lt } = zf(
|
|
54745
54745
|
k.replace("execute_workflow:", "")
|
|
54746
54746
|
), it = lt.replace(/:(\w+)/g, (Pt, Kt) => {
|
|
54747
|
-
const Nt =
|
|
54747
|
+
const Nt = G[Kt];
|
|
54748
54748
|
return Nt === void 0 ? Pt : encodeURIComponent(String(Nt));
|
|
54749
54749
|
}).replace(/\{\{(\w+)\}\}/g, (Pt, Kt) => {
|
|
54750
|
-
const Nt =
|
|
54750
|
+
const Nt = G[Kt];
|
|
54751
54751
|
return Nt === void 0 ? Pt : encodeURIComponent(String(Nt));
|
|
54752
54752
|
}), gt = Z !== "GET" && Z !== "DELETE";
|
|
54753
|
-
Z !== "GET" && ua(Z, it,
|
|
54753
|
+
Z !== "GET" && ua(Z, it, G, !0);
|
|
54754
54754
|
const Ot = await fetch(Cl(it), {
|
|
54755
54755
|
method: Z,
|
|
54756
54756
|
headers: {
|
|
54757
54757
|
"Content-Type": "application/json",
|
|
54758
54758
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
54759
54759
|
},
|
|
54760
|
-
...gt ? { body: JSON.stringify(Eu(
|
|
54760
|
+
...gt ? { body: JSON.stringify(Eu(G)) } : {}
|
|
54761
54761
|
});
|
|
54762
54762
|
if (Zt.current || await qi(Ot) || Zt.current) return;
|
|
54763
54763
|
if (!Ot.ok)
|
|
@@ -54847,20 +54847,20 @@ function Tmt({
|
|
|
54847
54847
|
const C = Pl.current;
|
|
54848
54848
|
Pl.current = Mt;
|
|
54849
54849
|
const k = Ue == null ? void 0 : Ue.events, $ = Array.isArray(k == null ? void 0 : k.onLoad) ? k.onLoad : k != null && k.onLoad ? [k.onLoad] : [];
|
|
54850
|
-
$.length !== 0 && C !== Mt && $.forEach((
|
|
54850
|
+
$.length !== 0 && C !== Mt && $.forEach((G) => Mo(G));
|
|
54851
54851
|
}, [Mt, Ue == null ? void 0 : Ue.events, Mo]), x.useEffect(() => {
|
|
54852
54852
|
var k, $;
|
|
54853
54853
|
const C = Ff.current;
|
|
54854
54854
|
if (Ff.current = Mt, C && C !== Mt) {
|
|
54855
|
-
const
|
|
54855
|
+
const G = J.find((K) => K.id === C), z = (G == null ? void 0 : G.type) === "render_scene" ? G.config : null;
|
|
54856
54856
|
($ = (k = z == null ? void 0 : z.events) == null ? void 0 : k.onLeave) != null && $.action && Mo(z.events.onLeave);
|
|
54857
54857
|
}
|
|
54858
54858
|
}, [Mt, J, Mo]), x.useEffect(() => {
|
|
54859
54859
|
const C = Ue == null ? void 0 : Ue.events;
|
|
54860
54860
|
if (!(C != null && C.onVisibilityChange)) return;
|
|
54861
54861
|
const k = () => {
|
|
54862
|
-
var $,
|
|
54863
|
-
document.hidden ? (
|
|
54862
|
+
var $, G, z, K;
|
|
54863
|
+
document.hidden ? (G = ($ = C.onVisibilityChange) == null ? void 0 : $.onHidden) != null && G.action && Mo(C.onVisibilityChange.onHidden) : (K = (z = C.onVisibilityChange) == null ? void 0 : z.onVisible) != null && K.action && Mo(C.onVisibilityChange.onVisible);
|
|
54864
54864
|
};
|
|
54865
54865
|
return document.addEventListener("visibilitychange", k), () => document.removeEventListener("visibilitychange", k);
|
|
54866
54866
|
}, [Mt, Ue == null ? void 0 : Ue.events, Mo]);
|
|
@@ -54875,7 +54875,7 @@ function Tmt({
|
|
|
54875
54875
|
},
|
|
54876
54876
|
[]
|
|
54877
54877
|
), Fn = x.useRef({}), Wf = x.useRef({}), Tu = x.useRef({}), Ci = x.useRef(/* @__PURE__ */ new Map()), Al = x.useRef(/* @__PURE__ */ new Map()), ca = x.useRef(/* @__PURE__ */ new Set()), El = x.useRef(/* @__PURE__ */ new Set()), Gi = x.useRef(null), Tl = x.useRef([]), vs = x.useRef({}), Wn = x.useCallback(
|
|
54878
|
-
async (C, k, $ = 0,
|
|
54878
|
+
async (C, k, $ = 0, G = 10, z, K, X, Q = !1, Z = !1) => {
|
|
54879
54879
|
var Kt, Nt, Wt, fe, jt;
|
|
54880
54880
|
if (!C || te.current || !ht) return;
|
|
54881
54881
|
const lt = `${k}|${C}|${$}|${Q}`, it = Ci.current.get(lt) || 0, gt = Fn.current[k] === C, Ot = Wf.current[k] === lt;
|
|
@@ -54893,9 +54893,9 @@ function Tmt({
|
|
|
54893
54893
|
...xt,
|
|
54894
54894
|
[k]: {
|
|
54895
54895
|
page: $,
|
|
54896
|
-
limit:
|
|
54896
|
+
limit: G,
|
|
54897
54897
|
total: ft.length,
|
|
54898
|
-
hasMore: ($ + 1) *
|
|
54898
|
+
hasMore: ($ + 1) * G < ft.length
|
|
54899
54899
|
}
|
|
54900
54900
|
})), ft;
|
|
54901
54901
|
}
|
|
@@ -54907,7 +54907,7 @@ function Tmt({
|
|
|
54907
54907
|
const Bt = Pn.current;
|
|
54908
54908
|
if (sa(C, k), Kd(C) && t) {
|
|
54909
54909
|
const qt = Vf(C, {
|
|
54910
|
-
limit:
|
|
54910
|
+
limit: G,
|
|
54911
54911
|
page: $
|
|
54912
54912
|
}), Oe = z ? Or(qt, z, K) : qt, Gt = zd(Oe), se = await dv(t, Gt, Bt);
|
|
54913
54913
|
_t = se, ft = (se == null ? void 0 : se.emails) || (se == null ? void 0 : se.items) || (se == null ? void 0 : se.data) || (se == null ? void 0 : se.history) || (Array.isArray(se) ? se : []), xt = ((Kt = se == null ? void 0 : se.pagination) == null ? void 0 : Kt.total) ?? (se == null ? void 0 : se.count) ?? ft.length;
|
|
@@ -54922,7 +54922,7 @@ function Tmt({
|
|
|
54922
54922
|
window.location.origin
|
|
54923
54923
|
);
|
|
54924
54924
|
const se = new URL(Gt, Oe), Hn = Tu.current[k];
|
|
54925
|
-
se.searchParams.set("limit", String(
|
|
54925
|
+
se.searchParams.set("limit", String(G)), (Hn == null ? void 0 : Hn.paginationMode) === "page" ? (se.searchParams.delete("offset"), se.searchParams.set("page", String($ + 1))) : se.searchParams.set("offset", String($ * G)), Z && se.searchParams.set("_ts", String(Date.now())), z && (se.searchParams.set("sort", z), se.searchParams.set("dir", K || "asc"));
|
|
54926
54926
|
const ar = await fetch(se.toString(), {
|
|
54927
54927
|
headers: {
|
|
54928
54928
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
@@ -54948,7 +54948,7 @@ function Tmt({
|
|
|
54948
54948
|
C,
|
|
54949
54949
|
k,
|
|
54950
54950
|
$,
|
|
54951
|
-
|
|
54951
|
+
G,
|
|
54952
54952
|
z,
|
|
54953
54953
|
K,
|
|
54954
54954
|
X,
|
|
@@ -55002,10 +55002,10 @@ function Tmt({
|
|
|
55002
55002
|
...qt,
|
|
55003
55003
|
[k]: {
|
|
55004
55004
|
page: $,
|
|
55005
|
-
limit:
|
|
55005
|
+
limit: G,
|
|
55006
55006
|
total: xt,
|
|
55007
55007
|
totalKnown: typeof ((Oe = _t == null ? void 0 : _t.pagination) == null ? void 0 : Oe.hasMore) != "boolean" || typeof ((Gt = _t == null ? void 0 : _t.pagination) == null ? void 0 : Gt.total) == "number",
|
|
55008
|
-
hasMore: typeof ((se = _t == null ? void 0 : _t.pagination) == null ? void 0 : se.hasMore) == "boolean" ? _t.pagination.hasMore : ($ + 1) *
|
|
55008
|
+
hasMore: typeof ((se = _t == null ? void 0 : _t.pagination) == null ? void 0 : se.hasMore) == "boolean" ? _t.pagination.hasMore : ($ + 1) * G < xt
|
|
55009
55009
|
}
|
|
55010
55010
|
};
|
|
55011
55011
|
}), ft;
|
|
@@ -55033,10 +55033,10 @@ function Tmt({
|
|
|
55033
55033
|
if (ht) return;
|
|
55034
55034
|
let C = !0;
|
|
55035
55035
|
wl(!1), Ei(!1), Hi(!1);
|
|
55036
|
-
const k = w ? `?tenant_id=${encodeURIComponent(w)}` : "", $ = {},
|
|
55036
|
+
const k = w ? `?tenant_id=${encodeURIComponent(w)}` : "", $ = {}, G = ["localhost", "127.0.0.1", "[::1]"].includes(
|
|
55037
55037
|
window.location.hostname
|
|
55038
55038
|
);
|
|
55039
|
-
return E && !
|
|
55039
|
+
return E && !G && ($["x-app-id"] = E), fetch(`${br()}/auth/providers${k}`, {
|
|
55040
55040
|
headers: $,
|
|
55041
55041
|
cache: "no-store"
|
|
55042
55042
|
}).then((z) => z.ok ? z.json() : null).then((z) => {
|
|
@@ -55056,42 +55056,42 @@ function Tmt({
|
|
|
55056
55056
|
if (!ht) return;
|
|
55057
55057
|
const C = r || localStorage.getItem("token");
|
|
55058
55058
|
if (!C) {
|
|
55059
|
-
|
|
55059
|
+
Y(!0);
|
|
55060
55060
|
return;
|
|
55061
55061
|
}
|
|
55062
55062
|
const k = ((e == null ? void 0 : e.steps) || []).find(
|
|
55063
55063
|
(K) => K.id === Mt
|
|
55064
55064
|
);
|
|
55065
55065
|
if (!(((z = k == null ? void 0 : k.config) == null ? void 0 : z.requireAuth) === !0 || (k == null ? void 0 : k.requiresAuth) === !0 || nt) || Cu.current === C) return;
|
|
55066
|
-
let
|
|
55066
|
+
let G = !1;
|
|
55067
55067
|
return (async () => {
|
|
55068
55068
|
var K;
|
|
55069
55069
|
try {
|
|
55070
55070
|
const X = await fetch(`${br()}/admin/users/me`, {
|
|
55071
55071
|
headers: { Authorization: `Bearer ${C}` }
|
|
55072
55072
|
});
|
|
55073
|
-
if (
|
|
55073
|
+
if (G) return;
|
|
55074
55074
|
if (X.ok) {
|
|
55075
55075
|
const Q = await X.json().catch(() => null);
|
|
55076
|
-
Cu.current = C,
|
|
55076
|
+
Cu.current = C, Y(!1), st(
|
|
55077
55077
|
typeof ((K = Q == null ? void 0 : Q.user) == null ? void 0 : K.emailVerified) == "boolean" ? Q.user.emailVerified : null
|
|
55078
55078
|
);
|
|
55079
55079
|
} else
|
|
55080
|
-
Mt && (ge.current = Mt), Cu.current = null,
|
|
55080
|
+
Mt && (ge.current = Mt), Cu.current = null, Y(!0), It(!1), st(null);
|
|
55081
55081
|
} catch {
|
|
55082
|
-
|
|
55082
|
+
G || (Mt && (ge.current = Mt), Y(!0));
|
|
55083
55083
|
}
|
|
55084
55084
|
})(), () => {
|
|
55085
|
-
|
|
55085
|
+
G = !0;
|
|
55086
55086
|
};
|
|
55087
55087
|
}, [ht, Mt, e == null ? void 0 : e.steps]);
|
|
55088
55088
|
const Mu = x.useCallback(
|
|
55089
55089
|
(C, k, $) => {
|
|
55090
|
-
!C || k.length === 0 || zt((
|
|
55091
|
-
const z = { ...
|
|
55090
|
+
!C || k.length === 0 || zt((G) => {
|
|
55091
|
+
const z = { ...G };
|
|
55092
55092
|
for (const [K, X] of Object.entries(Fn.current)) {
|
|
55093
|
-
if (X !== C || !
|
|
55094
|
-
const Q =
|
|
55093
|
+
if (X !== C || !G[K]) continue;
|
|
55094
|
+
const Q = G[K];
|
|
55095
55095
|
$ === "remove" && (z[K] = Q.filter((Z) => !k.includes(Z.id)));
|
|
55096
55096
|
}
|
|
55097
55097
|
return z;
|
|
@@ -55101,12 +55101,12 @@ function Tmt({
|
|
|
55101
55101
|
), Gr = x.useCallback(
|
|
55102
55102
|
(C, k, $) => {
|
|
55103
55103
|
var Q, Z;
|
|
55104
|
-
const
|
|
55104
|
+
const G = /* @__PURE__ */ new Map();
|
|
55105
55105
|
for (const [lt, it] of Object.entries(vs.current))
|
|
55106
|
-
|
|
55106
|
+
G.set(it, lt);
|
|
55107
55107
|
const z = /* @__PURE__ */ new Map();
|
|
55108
55108
|
for (const [lt, it] of Object.entries(Fn.current))
|
|
55109
|
-
z.set(lt, { ds: it, dataKey:
|
|
55109
|
+
z.set(lt, { ds: it, dataKey: G.get(it) });
|
|
55110
55110
|
for (const [lt, it] of Object.entries(vs.current))
|
|
55111
55111
|
Object.values(Fn.current).includes(it) || z.set(lt, { ds: it, dataKey: lt });
|
|
55112
55112
|
if (z.size === 0) return;
|
|
@@ -55144,10 +55144,10 @@ function Tmt({
|
|
|
55144
55144
|
},
|
|
55145
55145
|
[Wn, or]
|
|
55146
55146
|
), ua = x.useCallback(
|
|
55147
|
-
(C, k, $,
|
|
55147
|
+
(C, k, $, G) => {
|
|
55148
55148
|
const z = String(C || "").toUpperCase();
|
|
55149
|
-
if (z === "GET" ||
|
|
55150
|
-
const K =
|
|
55149
|
+
if (z === "GET" || G === !1) return;
|
|
55150
|
+
const K = G === "remove" || G === "merge" || G === "add" || G === "refresh" ? G : z === "DELETE" ? "remove" : z === "PUT" || z === "PATCH" ? "merge" : z === "POST" ? "add" : null;
|
|
55151
55151
|
if (!K || K === "refresh") return;
|
|
55152
55152
|
const X = () => {
|
|
55153
55153
|
const Z = String(k).match(/\/([^/]+)\/?$/);
|
|
@@ -55190,7 +55190,7 @@ function Tmt({
|
|
|
55190
55190
|
},
|
|
55191
55191
|
[]
|
|
55192
55192
|
), ci = x.useCallback(
|
|
55193
|
-
(C, k, $,
|
|
55193
|
+
(C, k, $, G) => {
|
|
55194
55194
|
var Z;
|
|
55195
55195
|
const z = br();
|
|
55196
55196
|
let K = !1;
|
|
@@ -55199,30 +55199,30 @@ function Tmt({
|
|
|
55199
55199
|
}, Q = t == null ? void 0 : t.queues;
|
|
55200
55200
|
if (C === "sse" && (Q != null && Q.subscribe))
|
|
55201
55201
|
try {
|
|
55202
|
-
const lt =
|
|
55202
|
+
const lt = G.sseUrl || `${z}/queues/bulk-operations/jobs/${k}/subscribe?token=${encodeURIComponent($)}`, it = ((t == null ? void 0 : t.endpoint) || z).replace(
|
|
55203
55203
|
/\/$/,
|
|
55204
55204
|
""
|
|
55205
55205
|
), gt = lt.startsWith(it) ? lt.slice(it.length) : lt;
|
|
55206
55206
|
Q.subscribe(gt, {
|
|
55207
|
-
onComplete: (Ot) => X(() =>
|
|
55207
|
+
onComplete: (Ot) => X(() => G.onComplete(Ot)),
|
|
55208
55208
|
onFailed: (Ot) => X(
|
|
55209
|
-
() =>
|
|
55209
|
+
() => G.onFailed({
|
|
55210
55210
|
message: Ot || "Subscription failed",
|
|
55211
55211
|
kind: "transport"
|
|
55212
55212
|
})
|
|
55213
55213
|
),
|
|
55214
55214
|
onError: () => X(
|
|
55215
|
-
() =>
|
|
55215
|
+
() => G.onFailed({ message: "Stream error", kind: "transport" })
|
|
55216
55216
|
),
|
|
55217
55217
|
onConnected: () => {
|
|
55218
55218
|
},
|
|
55219
55219
|
onProgress: (Ot) => {
|
|
55220
55220
|
var wt;
|
|
55221
|
-
return (wt =
|
|
55221
|
+
return (wt = G.onProgress) == null ? void 0 : wt.call(G, Ot);
|
|
55222
55222
|
}
|
|
55223
55223
|
}), setTimeout(
|
|
55224
55224
|
() => X(
|
|
55225
|
-
() =>
|
|
55225
|
+
() => G.onFailed({ message: "Timed out", kind: "transport" })
|
|
55226
55226
|
),
|
|
55227
55227
|
3e4
|
|
55228
55228
|
);
|
|
@@ -55235,8 +55235,8 @@ function Tmt({
|
|
|
55235
55235
|
lt.onmessage = (it) => {
|
|
55236
55236
|
try {
|
|
55237
55237
|
const gt = JSON.parse(it.data);
|
|
55238
|
-
(gt == null ? void 0 : gt.type) === "completed" ? X(() =>
|
|
55239
|
-
() =>
|
|
55238
|
+
(gt == null ? void 0 : gt.type) === "completed" ? X(() => G.onComplete(gt.result)) : (gt == null ? void 0 : gt.type) === "failed" && X(
|
|
55239
|
+
() => G.onFailed({
|
|
55240
55240
|
message: gt.error || "Job failed",
|
|
55241
55241
|
kind: "job"
|
|
55242
55242
|
})
|
|
@@ -55244,10 +55244,10 @@ function Tmt({
|
|
|
55244
55244
|
} catch {
|
|
55245
55245
|
}
|
|
55246
55246
|
}, lt.onerror = () => X(
|
|
55247
|
-
() =>
|
|
55247
|
+
() => G.onFailed({ message: "Connection error", kind: "transport" })
|
|
55248
55248
|
), setTimeout(
|
|
55249
55249
|
() => X(
|
|
55250
|
-
() =>
|
|
55250
|
+
() => G.onFailed({ message: "Timed out", kind: "transport" })
|
|
55251
55251
|
),
|
|
55252
55252
|
3e4
|
|
55253
55253
|
);
|
|
@@ -55260,23 +55260,23 @@ function Tmt({
|
|
|
55260
55260
|
try {
|
|
55261
55261
|
const gt = await Q.getJob("bulk-operations", k), Ot = (gt == null ? void 0 : gt.status) || ((it = gt == null ? void 0 : gt.job) == null ? void 0 : it.status), wt = (gt == null ? void 0 : gt.result) || (gt == null ? void 0 : gt.data);
|
|
55262
55262
|
Ot === "failed" || wt != null && wt.final ? (window.clearInterval(lt), X(
|
|
55263
|
-
() => Ot === "failed" ?
|
|
55263
|
+
() => Ot === "failed" ? G.onFailed({
|
|
55264
55264
|
message: (wt == null ? void 0 : wt.error) || "Job failed",
|
|
55265
55265
|
kind: "job"
|
|
55266
|
-
}) :
|
|
55267
|
-
)) : Ot === "completed" && (window.clearInterval(lt), X(() =>
|
|
55266
|
+
}) : G.onComplete(wt)
|
|
55267
|
+
)) : Ot === "completed" && (window.clearInterval(lt), X(() => G.onComplete(wt)));
|
|
55268
55268
|
} catch {
|
|
55269
55269
|
}
|
|
55270
55270
|
}, 600);
|
|
55271
55271
|
setTimeout(() => {
|
|
55272
55272
|
window.clearInterval(lt), X(
|
|
55273
|
-
() =>
|
|
55273
|
+
() => G.onFailed({ message: "Timed out", kind: "transport" })
|
|
55274
55274
|
);
|
|
55275
55275
|
}, 3e4);
|
|
55276
55276
|
return;
|
|
55277
55277
|
}
|
|
55278
55278
|
X(
|
|
55279
|
-
() =>
|
|
55279
|
+
() => G.onFailed({
|
|
55280
55280
|
message: "Feedback transport unavailable",
|
|
55281
55281
|
kind: "transport"
|
|
55282
55282
|
})
|
|
@@ -55286,14 +55286,14 @@ function Tmt({
|
|
|
55286
55286
|
), Lg = x.useCallback(
|
|
55287
55287
|
async (C, k, $) => {
|
|
55288
55288
|
var gt, Ot;
|
|
55289
|
-
const
|
|
55289
|
+
const G = t == null ? void 0 : t.files, z = encodeURIComponent(
|
|
55290
55290
|
r || localStorage.getItem("token") || ""
|
|
55291
55291
|
), K = {
|
|
55292
55292
|
...k || {},
|
|
55293
55293
|
bucket: (k == null ? void 0 : k.bucket) || (k == null ? void 0 : k.entityType) || "media"
|
|
55294
55294
|
};
|
|
55295
|
-
if (
|
|
55296
|
-
const wt = await
|
|
55295
|
+
if (G != null && G.upload) {
|
|
55296
|
+
const wt = await G.upload(C, K, $), Pt = (wt == null ? void 0 : wt.url) || (wt == null ? void 0 : wt.path) || "";
|
|
55297
55297
|
return Pt ? (wt == null ? void 0 : wt.visibility) === "public" ? Pt : `${br()}${Pt}?token=${z}` : "";
|
|
55298
55298
|
}
|
|
55299
55299
|
const X = new FormData();
|
|
@@ -55311,9 +55311,9 @@ function Tmt({
|
|
|
55311
55311
|
},
|
|
55312
55312
|
[]
|
|
55313
55313
|
), ha = x.useCallback(
|
|
55314
|
-
async (C, k, $,
|
|
55314
|
+
async (C, k, $, G) => {
|
|
55315
55315
|
var X;
|
|
55316
|
-
if (!(C != null && C.endpoint) ||
|
|
55316
|
+
if (!(C != null && C.endpoint) || G.length === 0) return;
|
|
55317
55317
|
const z = C.endpoint, K = C.optimistic ?? !0;
|
|
55318
55318
|
try {
|
|
55319
55319
|
const Q = await fetch(br() + z, {
|
|
@@ -55322,7 +55322,7 @@ function Tmt({
|
|
|
55322
55322
|
"Content-Type": "application/json",
|
|
55323
55323
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
55324
55324
|
},
|
|
55325
|
-
body: JSON.stringify({ ids:
|
|
55325
|
+
body: JSON.stringify({ ids: G })
|
|
55326
55326
|
});
|
|
55327
55327
|
let Z = {};
|
|
55328
55328
|
try {
|
|
@@ -55333,7 +55333,7 @@ function Tmt({
|
|
|
55333
55333
|
Ae(((X = Z == null ? void 0 : Z.error) == null ? void 0 : X.message) || "Request failed", "error");
|
|
55334
55334
|
return;
|
|
55335
55335
|
}
|
|
55336
|
-
K !== !1 && (K === "remove" || K === "refresh" ? K : Z.softUpdate || (C.action === "delete" ? "remove" : "refresh")) === "remove" && Mu(k,
|
|
55336
|
+
K !== !1 && (K === "remove" || K === "refresh" ? K : Z.softUpdate || (C.action === "delete" ? "remove" : "refresh")) === "remove" && Mu(k, G, "remove"), he((it) => ({
|
|
55337
55337
|
...it,
|
|
55338
55338
|
_selIds: [],
|
|
55339
55339
|
_selectMode: !1
|
|
@@ -55343,7 +55343,7 @@ function Tmt({
|
|
|
55343
55343
|
if (it)
|
|
55344
55344
|
Ae(Ot || "Bulk operation failed", "error");
|
|
55345
55345
|
else {
|
|
55346
|
-
const Pt = gt || {}, Kt = Pt.total ??
|
|
55346
|
+
const Pt = gt || {}, Kt = Pt.total ?? G.length, Nt = Pt.successful ?? Kt;
|
|
55347
55347
|
Ae(
|
|
55348
55348
|
Nt >= Kt ? `${Nt} ${C.action}d` : `${Nt} of ${Kt} ${C.action}d`,
|
|
55349
55349
|
"success"
|
|
@@ -55378,9 +55378,9 @@ function Tmt({
|
|
|
55378
55378
|
},
|
|
55379
55379
|
[Mu, ci, Wn, or]
|
|
55380
55380
|
), Or = (C, k, $) => {
|
|
55381
|
-
const
|
|
55381
|
+
const G = zd(C), z = G.indexOf("(");
|
|
55382
55382
|
if (z === -1) return C;
|
|
55383
|
-
const K =
|
|
55383
|
+
const K = G.slice(z + 1, -1).trim(), X = `sort: "${k}", dir: ${$ === "desc" ? '"desc"' : '"asc"'}`;
|
|
55384
55384
|
if (!K)
|
|
55385
55385
|
return C.replace(/\(\)$/, `({${X}})`);
|
|
55386
55386
|
const Q = K.lastIndexOf(",");
|
|
@@ -55392,9 +55392,9 @@ function Tmt({
|
|
|
55392
55392
|
`(${K.slice(0, Q)}, {${Z.slice(1, -1)}, ${X}})`
|
|
55393
55393
|
) : C.replace(/\(([^)]*)\)$/, `(${K}, {${X}})`);
|
|
55394
55394
|
}, Vf = (C, k) => {
|
|
55395
|
-
const $ = zd(C),
|
|
55396
|
-
if (
|
|
55397
|
-
const z = $.slice(
|
|
55395
|
+
const $ = zd(C), G = $.indexOf("(");
|
|
55396
|
+
if (G === -1) return C;
|
|
55397
|
+
const z = $.slice(G + 1, -1).trim(), K = `limit: ${k.limit}, page: ${k.page}`;
|
|
55398
55398
|
if (!z)
|
|
55399
55399
|
return C.replace(/\(\)$/, `({${K}})`);
|
|
55400
55400
|
const X = z.lastIndexOf(",");
|
|
@@ -55416,16 +55416,16 @@ function Tmt({
|
|
|
55416
55416
|
() => `bf-preview-${Math.random().toString(36).slice(2, 9)}`,
|
|
55417
55417
|
[]
|
|
55418
55418
|
), Dg = (C) => C.replace(/:(\w+)/g, (k, $) => {
|
|
55419
|
-
const
|
|
55420
|
-
return
|
|
55419
|
+
const G = xe[$];
|
|
55420
|
+
return G === void 0 ? k : String(G);
|
|
55421
55421
|
}), Ou = (C) => {
|
|
55422
55422
|
try {
|
|
55423
55423
|
const k = JSON.parse(C);
|
|
55424
55424
|
if (Array.isArray(k) && k.length > 0)
|
|
55425
55425
|
return k.map(
|
|
55426
55426
|
($) => {
|
|
55427
|
-
var
|
|
55428
|
-
return $.message || `${((
|
|
55427
|
+
var G;
|
|
55428
|
+
return $.message || `${((G = $.path) == null ? void 0 : G.join(".")) || "field"} is invalid`;
|
|
55429
55429
|
}
|
|
55430
55430
|
);
|
|
55431
55431
|
} catch {
|
|
@@ -55433,17 +55433,17 @@ function Tmt({
|
|
|
55433
55433
|
return null;
|
|
55434
55434
|
};
|
|
55435
55435
|
class Yi extends Error {
|
|
55436
|
-
constructor($,
|
|
55436
|
+
constructor($, G) {
|
|
55437
55437
|
super($.join(", "));
|
|
55438
55438
|
Gg(this, "errors");
|
|
55439
55439
|
Gg(this, "body");
|
|
55440
|
-
this.errors = $, this.body =
|
|
55440
|
+
this.errors = $, this.body = G;
|
|
55441
55441
|
}
|
|
55442
55442
|
}
|
|
55443
55443
|
const fa = async (C, k) => {
|
|
55444
55444
|
var Pt, Kt, Nt, Wt, fe;
|
|
55445
55445
|
if (te.current || !ht && nt) return;
|
|
55446
|
-
const { method: $, path:
|
|
55446
|
+
const { method: $, path: G } = zf(C), z = Dg(G), K = $ !== "GET" && $ !== "DELETE", X = br();
|
|
55447
55447
|
let Q = k == null ? void 0 : k.payload;
|
|
55448
55448
|
if (Q && typeof Q == "object" && typeof Q.$condiments == "string") {
|
|
55449
55449
|
const jt = Q.$condiments, ft = Pn.current || {}, xt = Object.keys(ft).filter(
|
|
@@ -55620,9 +55620,9 @@ function Tmt({
|
|
|
55620
55620
|
});
|
|
55621
55621
|
}
|
|
55622
55622
|
}, Mi = (C) => {
|
|
55623
|
-
var
|
|
55623
|
+
var G, z;
|
|
55624
55624
|
pe(null);
|
|
55625
|
-
const k = C === "/" && (((
|
|
55625
|
+
const k = C === "/" && (((G = J.find((K) => K.route === "/")) == null ? void 0 : G.id) || ((z = J.find((K) => K.type === "render_scene")) == null ? void 0 : z.id)) || C;
|
|
55626
55626
|
if (ot(k) && !ht) {
|
|
55627
55627
|
ge.current = k, St(!0);
|
|
55628
55628
|
return;
|
|
@@ -55664,8 +55664,8 @@ ${C.message}` : C.message;
|
|
|
55664
55664
|
}, ku = (C, k) => {
|
|
55665
55665
|
const $ = C.body;
|
|
55666
55666
|
if (!$) return !1;
|
|
55667
|
-
const
|
|
55668
|
-
message:
|
|
55667
|
+
const G = typeof ($ == null ? void 0 : $.message) == "string" && $.message || C.errors[0] || "Request blocked by limits", z = () => Ml({
|
|
55668
|
+
message: G,
|
|
55669
55669
|
uiVariant: $.uiVariant,
|
|
55670
55670
|
uiTitle: typeof ($ == null ? void 0 : $.uiTitle) == "string" ? $.uiTitle : void 0,
|
|
55671
55671
|
modalId: typeof ($ == null ? void 0 : $.modalId) == "string" ? $.modalId : void 0
|
|
@@ -55675,13 +55675,13 @@ ${C.message}` : C.message;
|
|
|
55675
55675
|
x.useEffect(() => {
|
|
55676
55676
|
var K;
|
|
55677
55677
|
if (!ht || q) return;
|
|
55678
|
-
const C = ge.current, k = C && J.some((X) => X.id === C),
|
|
55678
|
+
const C = ge.current, k = C && J.some((X) => X.id === C), G = localStorage.getItem("backflow_post_auth_redirect") === "1" ? (K = J.find(
|
|
55679
55679
|
(X) => X.type === "render_scene" && mr(X)
|
|
55680
|
-
)) == null ? void 0 : K.id : null, z = k ? C :
|
|
55680
|
+
)) == null ? void 0 : K.id : null, z = k ? C : G;
|
|
55681
55681
|
z && (localStorage.removeItem("backflow_post_auth_redirect"), ge.current = null, Mi(z));
|
|
55682
55682
|
}, [ht, q, J]);
|
|
55683
55683
|
const Ae = (C, k = "success", $) => {
|
|
55684
|
-
const
|
|
55684
|
+
const G = Array.isArray(C) ? C.join(`
|
|
55685
55685
|
`) : C, z = k === "success", K = z ? "#10B981" : "#EF4444", X = Rt.toast || {}, Q = $ ?? X.duration ?? 3e3, Z = X.position || "bottom-right", lt = {
|
|
55686
55686
|
"bottom-right": { right: "24px", bottom: "24px" },
|
|
55687
55687
|
"bottom-left": { left: "24px", bottom: "24px" },
|
|
@@ -55708,7 +55708,7 @@ ${C.message}` : C.message;
|
|
|
55708
55708
|
fontWeight: "700"
|
|
55709
55709
|
});
|
|
55710
55710
|
const wt = document.createElement("span");
|
|
55711
|
-
wt.textContent =
|
|
55711
|
+
wt.textContent = G, Object.assign(wt.style, {
|
|
55712
55712
|
color: "rgba(255, 255, 255, 0.92)",
|
|
55713
55713
|
fontSize: "13.5px",
|
|
55714
55714
|
lineHeight: "1.45",
|
|
@@ -55755,8 +55755,8 @@ ${C.message}` : C.message;
|
|
|
55755
55755
|
}, Yr = (C, k = !0) => {
|
|
55756
55756
|
if (k && (C != null && C.onSuccess)) {
|
|
55757
55757
|
const $ = Array.isArray(C.onSuccess) ? C.onSuccess : [C.onSuccess];
|
|
55758
|
-
for (const
|
|
55759
|
-
const { type: z, value: K, title: X, key: Q } =
|
|
55758
|
+
for (const G of $) {
|
|
55759
|
+
const { type: z, value: K, title: X, key: Q } = G;
|
|
55760
55760
|
switch (z) {
|
|
55761
55761
|
case "toast":
|
|
55762
55762
|
Ae(K || "Success!", "success");
|
|
@@ -55806,7 +55806,7 @@ ${C.message}` : C.message;
|
|
|
55806
55806
|
gr();
|
|
55807
55807
|
return;
|
|
55808
55808
|
}
|
|
55809
|
-
te.current = !1, It(!0), St(!1),
|
|
55809
|
+
te.current = !1, It(!0), St(!1), Y(!1), Qe(""), Hr(""), aa(""), la({}), On(null), Hi(!1);
|
|
55810
55810
|
}, k = async (kt) => {
|
|
55811
55811
|
Eo(!0), On(null);
|
|
55812
55812
|
try {
|
|
@@ -55864,7 +55864,7 @@ ${C.message}` : C.message;
|
|
|
55864
55864
|
await k(
|
|
55865
55865
|
localStorage.getItem("backflow_trust_device") === "true"
|
|
55866
55866
|
);
|
|
55867
|
-
},
|
|
55867
|
+
}, G = (kt) => {
|
|
55868
55868
|
localStorage.setItem("backflow_trust_device", String(kt)), ue && localStorage.setItem("backflow_trust_device_asked", "true"), Lf(!1), k(kt);
|
|
55869
55869
|
}, z = async () => {
|
|
55870
55870
|
if (!$e) return;
|
|
@@ -56023,7 +56023,7 @@ ${C.message}` : C.message;
|
|
|
56023
56023
|
x.createElement(
|
|
56024
56024
|
"button",
|
|
56025
56025
|
{
|
|
56026
|
-
onClick: () =>
|
|
56026
|
+
onClick: () => G(!1),
|
|
56027
56027
|
style: {
|
|
56028
56028
|
flex: 1,
|
|
56029
56029
|
padding: "10px",
|
|
@@ -56039,7 +56039,7 @@ ${C.message}` : C.message;
|
|
|
56039
56039
|
x.createElement(
|
|
56040
56040
|
"button",
|
|
56041
56041
|
{
|
|
56042
|
-
onClick: () =>
|
|
56042
|
+
onClick: () => G(!0),
|
|
56043
56043
|
style: {
|
|
56044
56044
|
flex: 1,
|
|
56045
56045
|
padding: "10px",
|
|
@@ -56911,7 +56911,7 @@ ${C.message}` : C.message;
|
|
|
56911
56911
|
_t
|
|
56912
56912
|
);
|
|
56913
56913
|
}, kr = async (C, k, $) => {
|
|
56914
|
-
var
|
|
56914
|
+
var G, z, K;
|
|
56915
56915
|
try {
|
|
56916
56916
|
let X = String(kl(C) ?? "");
|
|
56917
56917
|
const Q = X.match(
|
|
@@ -56948,7 +56948,7 @@ ${C.message}` : C.message;
|
|
|
56948
56948
|
}
|
|
56949
56949
|
const lt = X.match(/^geolocate(?::(.+))?$/);
|
|
56950
56950
|
if (lt) {
|
|
56951
|
-
const Nt = (
|
|
56951
|
+
const Nt = (G = lt[1]) == null ? void 0 : G.trim(), Wt = await new Promise(
|
|
56952
56952
|
(fe, jt) => {
|
|
56953
56953
|
if (typeof navigator > "u" || !navigator.geolocation) {
|
|
56954
56954
|
jt(new Error("Location is not available on this device"));
|
|
@@ -57034,7 +57034,7 @@ ${C.message}` : C.message;
|
|
|
57034
57034
|
if (Kt) {
|
|
57035
57035
|
if (Kt[1] === "logout") {
|
|
57036
57036
|
if (!ht) return;
|
|
57037
|
-
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1, ge.current = null, It(!1), St(!1), st(null),
|
|
57037
|
+
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1, ge.current = null, It(!1), St(!1), st(null), Y(!1), Mi("/");
|
|
57038
57038
|
return;
|
|
57039
57039
|
}
|
|
57040
57040
|
if (ht) return;
|
|
@@ -57139,23 +57139,27 @@ ${C.message}` : C.message;
|
|
|
57139
57139
|
const $ = Math.floor((Date.now() - k.getTime()) / 6e4);
|
|
57140
57140
|
if ($ < 1) return "just now";
|
|
57141
57141
|
if ($ < 60) return `${$}m ago`;
|
|
57142
|
-
const
|
|
57143
|
-
if (
|
|
57144
|
-
const z = Math.floor(
|
|
57142
|
+
const G = Math.floor($ / 60);
|
|
57143
|
+
if (G < 24) return `${G}h ago`;
|
|
57144
|
+
const z = Math.floor(G / 24);
|
|
57145
57145
|
return z < 7 ? `${z}d ago` : k.toLocaleDateString();
|
|
57146
57146
|
}, $r = (C, k) => {
|
|
57147
57147
|
if (k === "money" || k === "currency") {
|
|
57148
|
-
const
|
|
57149
|
-
return Number.isFinite(
|
|
57148
|
+
const G = Number(C);
|
|
57149
|
+
return Number.isFinite(G) ? G.toFixed(2) : String(C ?? "");
|
|
57150
57150
|
}
|
|
57151
57151
|
if (k === "names" || k === "join")
|
|
57152
|
-
return Array.isArray(C) ? C.map((
|
|
57152
|
+
return Array.isArray(C) ? C.map((G) => G && typeof G == "object" ? G.name : G).filter(Boolean).join(", ") : C == null ? "" : String(C);
|
|
57153
|
+
if (k === "ids")
|
|
57154
|
+
return Array.isArray(C) ? C.map(
|
|
57155
|
+
(G) => G && typeof G == "object" ? G.id ?? G.value ?? G.slug : G
|
|
57156
|
+
).filter((G) => G != null && G !== "").join(", ") : C == null ? "" : String(C);
|
|
57153
57157
|
if (k === "timeago") return Uf(C);
|
|
57154
57158
|
if (k === "filesize" || k === "size") {
|
|
57155
|
-
const
|
|
57156
|
-
if (!Number.isFinite(
|
|
57159
|
+
const G = Number(C);
|
|
57160
|
+
if (!Number.isFinite(G)) return String(C ?? "");
|
|
57157
57161
|
const z = ["B", "KB", "MB", "GB", "TB"];
|
|
57158
|
-
let K =
|
|
57162
|
+
let K = G, X = 0;
|
|
57159
57163
|
for (; K >= 1024 && X < z.length - 1; )
|
|
57160
57164
|
K /= 1024, X++;
|
|
57161
57165
|
return `${K.toFixed(K >= 10 || X === 0 ? 0 : 1)} ${z[X]}`;
|
|
@@ -57171,9 +57175,9 @@ ${C.message}` : C.message;
|
|
|
57171
57175
|
const k = C.split(".").filter(Boolean);
|
|
57172
57176
|
if (k.length === 0) return;
|
|
57173
57177
|
let $ = An.current[k[0]] ?? xe[k[0]];
|
|
57174
|
-
for (let
|
|
57178
|
+
for (let G = 1; G < k.length; G++) {
|
|
57175
57179
|
if ($ == null) return;
|
|
57176
|
-
const z = k[
|
|
57180
|
+
const z = k[G];
|
|
57177
57181
|
if (Array.isArray($))
|
|
57178
57182
|
if (z === "first") $ = $[0];
|
|
57179
57183
|
else if (z === "last") $ = $[$.length - 1];
|
|
@@ -57200,7 +57204,7 @@ ${C.message}` : C.message;
|
|
|
57200
57204
|
})
|
|
57201
57205
|
)), Ol.current[C]),
|
|
57202
57206
|
[]
|
|
57203
|
-
), pa = (C, k, $,
|
|
57207
|
+
), pa = (C, k, $, G) => {
|
|
57204
57208
|
if (!C) return "";
|
|
57205
57209
|
if (C.startsWith("sdk:")) {
|
|
57206
57210
|
const X = $ || "", Q = da[X];
|
|
@@ -57210,7 +57214,7 @@ ${C.message}` : C.message;
|
|
|
57210
57214
|
...xe,
|
|
57211
57215
|
$data: An.current
|
|
57212
57216
|
}).then((lt) => {
|
|
57213
|
-
Zt.current || (
|
|
57217
|
+
Zt.current || (G && (An.current[G] = lt), Hf((it) => ({
|
|
57214
57218
|
...it,
|
|
57215
57219
|
[X]: String(lt ?? "")
|
|
57216
57220
|
})));
|
|
@@ -57227,7 +57231,7 @@ ${C.message}` : C.message;
|
|
|
57227
57231
|
const it = lt && (lt[X] || ((gt = lt.default) == null ? void 0 : gt[X]) || ((Ot = lt.exports) == null ? void 0 : Ot[X])) || (typeof lt == "function" ? lt : void 0);
|
|
57228
57232
|
typeof it == "function" && $ && Promise.resolve(it(Q, { data: An.current })).then(
|
|
57229
57233
|
(wt) => {
|
|
57230
|
-
Zt.current || (
|
|
57234
|
+
Zt.current || (G && (An.current[G] = wt), Hf((Pt) => ({
|
|
57231
57235
|
...Pt,
|
|
57232
57236
|
[$]: String(wt ?? "")
|
|
57233
57237
|
})));
|
|
@@ -57248,10 +57252,10 @@ ${C.message}` : C.message;
|
|
|
57248
57252
|
return /^[A-Za-z_][\w.-]*$/.test(K) ? String(kn(K) ?? "") : String(C ?? "");
|
|
57249
57253
|
}, kl = (C) => C ? C.replace(
|
|
57250
57254
|
/\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+(?:\|\w+)?))?\s*(?:\|\|\s*(.+?))?\}\}/g,
|
|
57251
|
-
(k, $,
|
|
57252
|
-
let K, X =
|
|
57253
|
-
if (
|
|
57254
|
-
const Z =
|
|
57255
|
+
(k, $, G, z) => {
|
|
57256
|
+
let K, X = G;
|
|
57257
|
+
if (G != null && G.includes("|")) {
|
|
57258
|
+
const Z = G.split("|");
|
|
57255
57259
|
X = Z[0], K = Z[1];
|
|
57256
57260
|
}
|
|
57257
57261
|
const Q = kn(X ? `${$}.${X}` : $);
|
|
@@ -57262,18 +57266,18 @@ ${C.message}` : C.message;
|
|
|
57262
57266
|
return z !== void 0 ? z.replace(/^["']|["']$/g, "") : "";
|
|
57263
57267
|
}
|
|
57264
57268
|
).replace(
|
|
57265
|
-
/\{\{(\w+(?:\.\w+)*)\s*(?:\|(date|time|datetime|timeago|money|currency|names|join|filesize|size)\s*)?(?:\|\|\s*(.+?))?\}\}/g,
|
|
57266
|
-
(k, $,
|
|
57269
|
+
/\{\{(\w+(?:\.\w+)*)\s*(?:\|(date|time|datetime|timeago|money|currency|names|join|ids|filesize|size)\s*)?(?:\|\|\s*(.+?))?\}\}/g,
|
|
57270
|
+
(k, $, G, z) => {
|
|
57267
57271
|
const K = $.split(".");
|
|
57268
57272
|
let X = xe;
|
|
57269
57273
|
for (const Q of K) X = X == null ? void 0 : X[Q];
|
|
57270
57274
|
if (X !== void 0)
|
|
57271
|
-
return
|
|
57275
|
+
return G ? $r(X, G) : String(X);
|
|
57272
57276
|
if (Gi.current) {
|
|
57273
57277
|
let Q = Gi.current;
|
|
57274
57278
|
for (const Z of K) Q = Q == null ? void 0 : Q[Z];
|
|
57275
57279
|
if (Q !== void 0)
|
|
57276
|
-
return
|
|
57280
|
+
return G ? $r(Q, G) : String(Q);
|
|
57277
57281
|
}
|
|
57278
57282
|
if (K[0] === "config") {
|
|
57279
57283
|
let Q = e == null ? void 0 : e.config;
|
|
@@ -57330,14 +57334,14 @@ ${C.message}` : C.message;
|
|
|
57330
57334
|
Array.isArray(X) && Z === "first" ? X = X[0] : Array.isArray(X) && Z === "last" ? X = X[X.length - 1] : X = X == null ? void 0 : X[Z];
|
|
57331
57335
|
}
|
|
57332
57336
|
return X;
|
|
57333
|
-
},
|
|
57334
|
-
if (
|
|
57335
|
-
return
|
|
57336
|
-
if (
|
|
57337
|
-
return
|
|
57338
|
-
if (
|
|
57339
|
-
return !$(
|
|
57340
|
-
const z =
|
|
57337
|
+
}, G = C.trim();
|
|
57338
|
+
if (G.includes("||"))
|
|
57339
|
+
return G.split("||").some((K) => Oo(K, k));
|
|
57340
|
+
if (G.includes("&&"))
|
|
57341
|
+
return G.split("&&").every((K) => Oo(K, k));
|
|
57342
|
+
if (G.startsWith("!"))
|
|
57343
|
+
return !$(G.slice(1).trim());
|
|
57344
|
+
const z = G.match(
|
|
57341
57345
|
/^(\[[^\]]+\](?:\.\w+)*|[\w-]+(?:\.[\w-]+)*)\s*(==|!=|>|<|>=|<=)\s*(.+)$/
|
|
57342
57346
|
);
|
|
57343
57347
|
if (z) {
|
|
@@ -57362,7 +57366,7 @@ ${C.message}` : C.message;
|
|
|
57362
57366
|
return Number(K) <= Number(Q);
|
|
57363
57367
|
}
|
|
57364
57368
|
}
|
|
57365
|
-
return !!$(
|
|
57369
|
+
return !!$(G);
|
|
57366
57370
|
}, $l = (C, k) => (
|
|
57367
57371
|
// Merge sceneData with the supplied base (e.g. widget props) so widget
|
|
57368
57372
|
// conditions can still reference scene state (e.g. _atBottom, [_list]).
|
|
@@ -57379,10 +57383,10 @@ ${C.message}` : C.message;
|
|
|
57379
57383
|
const $ = { ...C };
|
|
57380
57384
|
return k.scale !== void 0 && k.scale !== 100 && ($.transform = `scale(${k.scale / 100})`, $.transformOrigin = "center center"), k.spacing !== void 0 && k.spacing !== 0 && ($.margin = `${k.spacing}px`), k.alignment && k.alignment !== "center" && ($.textAlign = k.alignment, k.alignment === "left" ? ($.marginLeft = "0", $.marginRight = "auto") : k.alignment === "right" && ($.marginLeft = "auto", $.marginRight = "0")), k.color && ($.color = k.color), k.background && ($.backgroundColor = k.background), k.borderColor && ($.borderColor = k.borderColor), $;
|
|
57381
57385
|
}, bs = (C, k, $) => {
|
|
57382
|
-
const
|
|
57386
|
+
const G = $ == null ? void 0 : $.componentClass, K = h === C || u && G && u === G, X = $ ? Bg(k, $) : k, Q = Oi(
|
|
57383
57387
|
X,
|
|
57384
57388
|
C,
|
|
57385
|
-
|
|
57389
|
+
G
|
|
57386
57390
|
), Z = ($ == null ? void 0 : $.className) || "";
|
|
57387
57391
|
/\bfont-serif\b/.test(Z) && (Q.fontFamily = Rt.typography.headingFontFamily), /\bfont-sans\b/.test(Z) && (Q.fontFamily = Rt.typography.fontFamily), $ != null && $.fieldSpan && $.fieldSpan > 1 && (Q.gridColumn = `span ${$.fieldSpan} / span ${$.fieldSpan}`), $ != null && $.rawStyle && Object.assign(Q, $.rawStyle);
|
|
57388
57392
|
const lt = $t === "css-driven" ? { "data-bf-r": `${Vn}-${C}` } : {};
|
|
@@ -57405,8 +57409,8 @@ ${C.message}` : C.message;
|
|
|
57405
57409
|
}, zg = (C, k) => {
|
|
57406
57410
|
var X;
|
|
57407
57411
|
if (!C) return {};
|
|
57408
|
-
const $ = A1(C),
|
|
57409
|
-
|
|
57412
|
+
const $ = A1(C), G = C.split(/\s+/).filter((Q) => !/^(sm|md|lg|xl|2xl):/.test(Q)).join(" "), z = yt(
|
|
57413
|
+
G || "flex"
|
|
57410
57414
|
);
|
|
57411
57415
|
if (!P1($)) return z;
|
|
57412
57416
|
if ($t === "css-driven") {
|
|
@@ -57463,7 +57467,7 @@ ${C.message}` : C.message;
|
|
|
57463
57467
|
async (C) => {
|
|
57464
57468
|
const k = ui.current.get(C);
|
|
57465
57469
|
if (k) return k;
|
|
57466
|
-
const $ = r || localStorage.getItem("token") || "",
|
|
57470
|
+
const $ = r || localStorage.getItem("token") || "", G = t == null ? void 0 : t.endpoint, z = N || (typeof G == "string" ? G.replace(/\/+$/, "") : "") || "/api", K = `?collection=${encodeURIComponent(C)}`;
|
|
57467
57471
|
for (const X of [
|
|
57468
57472
|
`${z}/tenant/schema${K}`,
|
|
57469
57473
|
`${z}/admin/schema${K}`
|
|
@@ -57579,14 +57583,14 @@ ${C.message}` : C.message;
|
|
|
57579
57583
|
}
|
|
57580
57584
|
const C = ($) => {
|
|
57581
57585
|
var z;
|
|
57582
|
-
const
|
|
57583
|
-
!
|
|
57586
|
+
const G = $.getAttribute("data-bf-scroll-load");
|
|
57587
|
+
!G || $u.current.has(G) || ($u.current.add(G), (z = ko.current) == null || z.observe($));
|
|
57584
57588
|
};
|
|
57585
57589
|
ko.current || (ko.current = new IntersectionObserver(
|
|
57586
57590
|
($) => {
|
|
57587
|
-
for (const
|
|
57588
|
-
if (!
|
|
57589
|
-
const z =
|
|
57591
|
+
for (const G of $) {
|
|
57592
|
+
if (!G.isIntersecting) continue;
|
|
57593
|
+
const z = G.target.getAttribute(
|
|
57590
57594
|
"data-bf-scroll-load"
|
|
57591
57595
|
);
|
|
57592
57596
|
if (!z || !Yf.current || Ll.current[z]) continue;
|
|
@@ -57608,9 +57612,9 @@ ${C.message}` : C.message;
|
|
|
57608
57612
|
!0
|
|
57609
57613
|
).finally(() => {
|
|
57610
57614
|
var lt;
|
|
57611
|
-
if (Ll.current[z] = !1,
|
|
57612
|
-
const it =
|
|
57613
|
-
it.bottom > -160 && it.top < (window.innerHeight || 800) + 160 && ((lt = ko.current) == null || lt.observe(
|
|
57615
|
+
if (Ll.current[z] = !1, G.target.isConnected) {
|
|
57616
|
+
const it = G.target.getBoundingClientRect();
|
|
57617
|
+
it.bottom > -160 && it.top < (window.innerHeight || 800) + 160 && ((lt = ko.current) == null || lt.observe(G.target));
|
|
57614
57618
|
}
|
|
57615
57619
|
});
|
|
57616
57620
|
}
|
|
@@ -57843,8 +57847,8 @@ ${C.message}` : C.message;
|
|
|
57843
57847
|
Pt && Array.isArray(Pt.components) && $(Pt.components, `${it}-${Ot.widgetId}`);
|
|
57844
57848
|
}
|
|
57845
57849
|
});
|
|
57846
|
-
},
|
|
57847
|
-
xs.current !==
|
|
57850
|
+
}, G = `${Mt}|${ma}|${Nl}|${ht}`;
|
|
57851
|
+
xs.current !== G && (xs.current = G, $($n), El.current = k);
|
|
57848
57852
|
const z = Ft || le;
|
|
57849
57853
|
if (Rl.current !== ((z == null ? void 0 : z.id) || "")) {
|
|
57850
57854
|
Rl.current = (z == null ? void 0 : z.id) || "";
|
|
@@ -57871,9 +57875,9 @@ ${C.message}` : C.message;
|
|
|
57871
57875
|
}, [Mt]);
|
|
57872
57876
|
const Ir = x.useMemo(() => {
|
|
57873
57877
|
if (!Ue || $t !== "css-driven") return null;
|
|
57874
|
-
const C = /* @__PURE__ */ new Map(), k = ($,
|
|
57878
|
+
const C = /* @__PURE__ */ new Map(), k = ($, G) => {
|
|
57875
57879
|
$.forEach((z, K) => {
|
|
57876
|
-
const X = `${
|
|
57880
|
+
const X = `${G}-${K}`;
|
|
57877
57881
|
if (z.className) {
|
|
57878
57882
|
const Q = A1(z.className);
|
|
57879
57883
|
if (P1(Q)) {
|
|
@@ -57895,14 +57899,14 @@ ${C.message}` : C.message;
|
|
|
57895
57899
|
let k = null, $ = !1;
|
|
57896
57900
|
return (async () => {
|
|
57897
57901
|
try {
|
|
57898
|
-
const
|
|
57902
|
+
const G = N || (t == null ? void 0 : t.endpoint) || window.location.origin, z = await fetch(`${G}${Dl}/token`, {
|
|
57899
57903
|
headers: { Authorization: `Bearer ${C}` }
|
|
57900
57904
|
});
|
|
57901
57905
|
if (!z.ok) return;
|
|
57902
57906
|
const { token: K } = await z.json();
|
|
57903
57907
|
if (!K || $) return;
|
|
57904
57908
|
k = new EventSource(
|
|
57905
|
-
`${
|
|
57909
|
+
`${G}${Dl}/subscribe?token=${encodeURIComponent(K)}`
|
|
57906
57910
|
), k.onmessage = (X) => {
|
|
57907
57911
|
try {
|
|
57908
57912
|
const Q = JSON.parse(X.data);
|
|
@@ -58037,8 +58041,8 @@ ${C.message}` : C.message;
|
|
|
58037
58041
|
_a(Iu), In != null && In.modals && typeof In.modals == "object" && _a(In.modals);
|
|
58038
58042
|
for (const C of Nu) _a(C.components);
|
|
58039
58043
|
const Xf = Nu.filter((C) => Ru.has(C.id) ? !1 : C.sceneIds === "*" ? !0 : Array.isArray(C.sceneIds) ? C.sceneIds.includes("*") || C.sceneIds.includes(Mt) : !1), Jf = Vr.map((C) => {
|
|
58040
|
-
var
|
|
58041
|
-
const k = vo[C.id], $ = C.sourceSceneId ? (
|
|
58044
|
+
var G, z, K;
|
|
58045
|
+
const k = vo[C.id], $ = C.sourceSceneId ? (G = k == null ? void 0 : k.steps) == null ? void 0 : G.find((X) => X.id === C.sourceSceneId) : (z = k == null ? void 0 : k.steps) == null ? void 0 : z.find((X) => X.type === "render_scene");
|
|
58042
58046
|
return (K = $ == null ? void 0 : $.config) != null && K.components ? { ...C, components: $.config.components } : null;
|
|
58043
58047
|
}).filter(Boolean);
|
|
58044
58048
|
$n = [...Iu], (Xt = (Lt = In.layout) == null ? void 0 : Lt.header) != null && Xt.length ? $n.splice(0, 0, ...In.layout.header) : (Un = (ye = Te == null ? void 0 : Te.layout) == null ? void 0 : ye.header) != null && Un.length && $n.splice(0, 0, ...Te.layout.header);
|
|
@@ -58046,13 +58050,13 @@ ${C.message}` : C.message;
|
|
|
58046
58050
|
const k = C.components || [];
|
|
58047
58051
|
if (!k.length) continue;
|
|
58048
58052
|
if (C.targetKey) {
|
|
58049
|
-
const
|
|
58050
|
-
if (
|
|
58051
|
-
let z = $n, K =
|
|
58052
|
-
for (let Q = 0; Q <
|
|
58053
|
-
const Z = z[
|
|
58053
|
+
const G = C.targetKey.split("-").filter(Boolean).map(Number);
|
|
58054
|
+
if (G.length > 0) {
|
|
58055
|
+
let z = $n, K = G[0];
|
|
58056
|
+
for (let Q = 0; Q < G.length - 1; Q++) {
|
|
58057
|
+
const Z = z[G[Q]];
|
|
58054
58058
|
if (!Z || !Array.isArray(Z.children)) break;
|
|
58055
|
-
z = Z.children, K =
|
|
58059
|
+
z = Z.children, K = G[Q + 1];
|
|
58056
58060
|
}
|
|
58057
58061
|
const X = C.targetPosition || "before";
|
|
58058
58062
|
if (X === "inside") {
|
|
@@ -58068,17 +58072,17 @@ ${C.message}` : C.message;
|
|
|
58068
58072
|
for (const C of Jf) {
|
|
58069
58073
|
if (C.targetKey) {
|
|
58070
58074
|
const k = C.targetKey.split("-").filter(Boolean).map(Number);
|
|
58071
|
-
let $ = $n,
|
|
58075
|
+
let $ = $n, G = k[0];
|
|
58072
58076
|
for (let K = 0; K < k.length - 1; K++) {
|
|
58073
58077
|
const X = $[k[K]];
|
|
58074
58078
|
if (!X || !Array.isArray(X.children)) break;
|
|
58075
|
-
$ = X.children,
|
|
58079
|
+
$ = X.children, G = k[K + 1];
|
|
58076
58080
|
}
|
|
58077
58081
|
const z = C.targetPosition || "before";
|
|
58078
58082
|
if (z === "inside") {
|
|
58079
|
-
const K = $[
|
|
58083
|
+
const K = $[G];
|
|
58080
58084
|
K && (Array.isArray(K.children) || (K.children = []), K.children.unshift(...C.components));
|
|
58081
|
-
} else z === "after" ? $.splice(
|
|
58085
|
+
} else z === "after" ? $.splice(G + 1, 0, ...C.components) : $.splice(G, 0, ...C.components);
|
|
58082
58086
|
continue;
|
|
58083
58087
|
}
|
|
58084
58088
|
$n.splice(C.index ?? $n.length, 0, ...C.components);
|
|
@@ -58370,7 +58374,7 @@ export {
|
|
|
58370
58374
|
zd as extractSDKCall,
|
|
58371
58375
|
rC as fillElement,
|
|
58372
58376
|
Ka as findElement,
|
|
58373
|
-
|
|
58377
|
+
Bb as findElements,
|
|
58374
58378
|
bmt as generateComponentCSS,
|
|
58375
58379
|
Umt as generateStandaloneHTML,
|
|
58376
58380
|
Lmt as getFeatherIcon,
|
|
@@ -58380,7 +58384,7 @@ export {
|
|
|
58380
58384
|
P1 as hasAnyResponsive,
|
|
58381
58385
|
oL as initBackflowAgent,
|
|
58382
58386
|
XR as isAgentEnabled,
|
|
58383
|
-
|
|
58387
|
+
zb as isLiveSocket,
|
|
58384
58388
|
Kd as isSDKCall,
|
|
58385
58389
|
Az as parseAlignItemsResponsive,
|
|
58386
58390
|
A1 as parseAllResponsiveClasses,
|