backflow-ui-renderer 0.1.63 → 0.1.65
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 +26 -26
- package/dist/index.js +644 -630
- package/dist/renderer/components.d.ts.map +1 -1
- package/dist/renderer/index.d.ts.map +1 -1
- package/dist/renderer/ui-overlays.d.ts.map +1 -1
- package/dist/vite.cjs +9 -9
- package/dist/vite.d.ts +3 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +138 -95
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8672,24 +8672,24 @@ function jz(e, t, n) {
|
|
|
8672
8672
|
) : null
|
|
8673
8673
|
),
|
|
8674
8674
|
!u && m.length > 0 && (() => {
|
|
8675
|
-
var $t, Tt, ut,
|
|
8675
|
+
var $t, Tt, ut, ft, Nt;
|
|
8676
8676
|
const N = ($t = t.groupBy) == null ? void 0 : $t.field, z = (nt) => {
|
|
8677
8677
|
const St = nt == null ? void 0 : nt[N];
|
|
8678
8678
|
if (St && typeof St == "object" && St._seconds)
|
|
8679
8679
|
return St._seconds * 1e3;
|
|
8680
|
-
const
|
|
8681
|
-
return isNaN(
|
|
8680
|
+
const dt = Date.parse(St);
|
|
8681
|
+
return isNaN(dt) ? 0 : dt;
|
|
8682
8682
|
}, D = (nt) => {
|
|
8683
8683
|
if (!nt) return "Earlier";
|
|
8684
|
-
const St = new Date(nt),
|
|
8685
|
-
if (Jt(St) === Jt(
|
|
8686
|
-
const
|
|
8687
|
-
return
|
|
8684
|
+
const St = new Date(nt), dt = /* @__PURE__ */ new Date(), Jt = (Ce) => `${Ce.getFullYear()}-${Ce.getMonth()}-${Ce.getDate()}`;
|
|
8685
|
+
if (Jt(St) === Jt(dt)) return "Today";
|
|
8686
|
+
const de = new Date(dt);
|
|
8687
|
+
return de.setDate(dt.getDate() - 1), Jt(St) === Jt(de) ? "Yesterday" : St.toLocaleDateString();
|
|
8688
8688
|
}, U = ((Tt = t.sort) == null ? void 0 : Tt.field) || N ? [...m].sort((nt, St) => {
|
|
8689
8689
|
var Jt;
|
|
8690
|
-
const
|
|
8691
|
-
return ((Jt = t.sort) == null ? void 0 : Jt.direction) === "asc" ? -
|
|
8692
|
-
}) : m, W = ((ut = t.clientFilter) == null ? void 0 : ut.searchKey) || "recordingSearchApplied", F = String(e.sceneData[W] || "").trim().toLowerCase(), q = Array.isArray((
|
|
8690
|
+
const dt = z(St) - z(nt);
|
|
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((ft = t.clientFilter) == null ? void 0 : ft.searchFields) ? t.clientFilter.searchFields : ["url", "title", "prompt"], [G, et] = String(
|
|
8693
8693
|
e.sceneData.recordingDateFilterApplied || ""
|
|
8694
8694
|
).split("|"), st = G ? Date.parse(`${G}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;
|
|
@@ -8698,32 +8698,32 @@ function jz(e, t, n) {
|
|
|
8698
8698
|
return St ? { field: nt.field, eq: St } : null;
|
|
8699
8699
|
}
|
|
8700
8700
|
if (nt.band !== void 0) {
|
|
8701
|
-
const
|
|
8702
|
-
return
|
|
8701
|
+
const dt = e.interpolateText(String(nt.band ?? "")).match(/^(-?\d*\.?\d*)\s*-\s*(-?\d*\.?\d*)$/);
|
|
8702
|
+
return dt ? {
|
|
8703
8703
|
field: nt.field,
|
|
8704
|
-
min:
|
|
8705
|
-
max:
|
|
8704
|
+
min: dt[1] === "" ? Number.NEGATIVE_INFINITY : Number(dt[1]),
|
|
8705
|
+
max: dt[2] === "" ? Number.POSITIVE_INFINITY : Number(dt[2])
|
|
8706
8706
|
} : null;
|
|
8707
8707
|
}
|
|
8708
8708
|
return null;
|
|
8709
8709
|
}).filter(Boolean), mt = (ot.length ? U.filter(
|
|
8710
8710
|
(nt) => ot.every((St) => {
|
|
8711
|
-
const
|
|
8712
|
-
if (St.eq !== void 0) return String(
|
|
8713
|
-
const Jt = Number(
|
|
8711
|
+
const dt = nt == null ? void 0 : nt[St.field];
|
|
8712
|
+
if (St.eq !== void 0) return String(dt) === St.eq;
|
|
8713
|
+
const Jt = Number(dt);
|
|
8714
8714
|
return Number.isFinite(Jt) && Jt >= (St.min ?? Number.NEGATIVE_INFINITY) && Jt <= (St.max ?? Number.POSITIVE_INFINITY);
|
|
8715
8715
|
})
|
|
8716
8716
|
) : U).filter((nt) => {
|
|
8717
8717
|
const St = !F || q.some(
|
|
8718
8718
|
(Jt) => String((nt == null ? void 0 : nt[Jt]) ?? "").toLowerCase().includes(F)
|
|
8719
|
-
),
|
|
8720
|
-
return St &&
|
|
8719
|
+
), dt = z(nt);
|
|
8720
|
+
return St && dt >= st && dt <= H;
|
|
8721
8721
|
}), vt = {};
|
|
8722
8722
|
if (N)
|
|
8723
8723
|
for (const nt of mt)
|
|
8724
8724
|
(vt[Nt = D(z(nt))] || (vt[Nt] = [])).push(nt);
|
|
8725
8725
|
const yt = (nt, St) => {
|
|
8726
|
-
var
|
|
8726
|
+
var dt, Jt, de, Ce, ae, sn, We, Sn;
|
|
8727
8727
|
if (t.renderItem) {
|
|
8728
8728
|
const Xe = JSON.parse(JSON.stringify(t.renderItem)), Je = { ...nt };
|
|
8729
8729
|
if (t.labelField && t.labelMap) {
|
|
@@ -8741,20 +8741,20 @@ function jz(e, t, n) {
|
|
|
8741
8741
|
if (Zt.content) {
|
|
8742
8742
|
const te = Zt.content.match(/^\{\{(\w+)\}\}$/);
|
|
8743
8743
|
if (te) {
|
|
8744
|
-
const ze = te[1],
|
|
8745
|
-
Array.isArray(
|
|
8744
|
+
const ze = te[1], ge = nt[ze];
|
|
8745
|
+
Array.isArray(ge) && (dr[ze] = ge);
|
|
8746
8746
|
}
|
|
8747
8747
|
}
|
|
8748
8748
|
}
|
|
8749
8749
|
const rr = JSON.stringify(Xe).replace(
|
|
8750
8750
|
/\{\{([\w.]+)(?:\|(date|time|datetime|timeago|money|currency|names|join))?\s*(?:\|\|\s*(.+?))?\}\}/g,
|
|
8751
|
-
(Zt, te, ze,
|
|
8751
|
+
(Zt, te, ze, ge) => {
|
|
8752
8752
|
const oe = te.split(".").reduce(
|
|
8753
8753
|
(Ee, be) => Ee == null ? void 0 : Ee[be],
|
|
8754
8754
|
Je
|
|
8755
8755
|
);
|
|
8756
8756
|
if (oe == null)
|
|
8757
|
-
return
|
|
8757
|
+
return ge !== void 0 ? ge.replace(/^["']|["']$/g, "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t") : "";
|
|
8758
8758
|
if (ze === "names" || ze === "join")
|
|
8759
8759
|
return Array.isArray(oe) ? oe.map((Ee) => Ee && typeof Ee == "object" ? Ee.name : Ee).filter(Boolean).join(", ") : oe == null ? "" : String(oe);
|
|
8760
8760
|
if (Array.isArray(oe)) return Zt;
|
|
@@ -8791,8 +8791,8 @@ function jz(e, t, n) {
|
|
|
8791
8791
|
}
|
|
8792
8792
|
};
|
|
8793
8793
|
if (Or(Ve), Ve.children && (Ve.children = Ve.children.map((Zt) => {
|
|
8794
|
-
var
|
|
8795
|
-
const te = Zt.fieldType || "text", ze = (
|
|
8794
|
+
var ge;
|
|
8795
|
+
const te = Zt.fieldType || "text", ze = (ge = Zt.content) == null ? void 0 : ge.match(/^\{\{(\w+)\}\}$/);
|
|
8796
8796
|
if (ze) {
|
|
8797
8797
|
const oe = ze[1], Ee = dr[oe];
|
|
8798
8798
|
if (Ee)
|
|
@@ -8872,10 +8872,10 @@ function jz(e, t, n) {
|
|
|
8872
8872
|
className: Zt.className || "w-full h-32 rounded-lg object-cover"
|
|
8873
8873
|
} : Zt;
|
|
8874
8874
|
})), t.selectable && e.sceneData._selectMode) {
|
|
8875
|
-
const Zt = String(nt.id || St), te = Array.isArray(e.sceneData._selIds) && e.sceneData._selIds.map(String).includes(Zt), ze = (
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
...
|
|
8875
|
+
const Zt = String(nt.id || St), te = Array.isArray(e.sceneData._selIds) && e.sceneData._selIds.map(String).includes(Zt), ze = (ge) => ge ? [
|
|
8876
|
+
ge.text,
|
|
8877
|
+
ge.content,
|
|
8878
|
+
...ge.children ? ge.children.flatMap(ze) : []
|
|
8879
8879
|
].filter(
|
|
8880
8880
|
(oe) => typeof oe == "string" && oe.trim() && !oe.includes("{{")
|
|
8881
8881
|
) : [];
|
|
@@ -8883,13 +8883,13 @@ function jz(e, t, n) {
|
|
|
8883
8883
|
"div",
|
|
8884
8884
|
{
|
|
8885
8885
|
key: `${n}-item-${St}`,
|
|
8886
|
-
className: (
|
|
8886
|
+
className: (dt = t.selectionStyle) == null ? void 0 : dt.className,
|
|
8887
8887
|
style: {
|
|
8888
8888
|
position: "relative",
|
|
8889
8889
|
width: "100%",
|
|
8890
8890
|
textAlign: "left",
|
|
8891
8891
|
padding: "1rem 2rem",
|
|
8892
|
-
border: `1px solid ${te ? ((Jt = t.selectionStyle) == null ? void 0 : Jt.selectedBorderColor) || e.cfg.colors.accent || "#fff" : ((
|
|
8892
|
+
border: `1px solid ${te ? ((Jt = t.selectionStyle) == null ? void 0 : Jt.selectedBorderColor) || e.cfg.colors.accent || "#fff" : ((de = t.selectionStyle) == null ? void 0 : de.borderColor) || e.cfg.colors.border}`,
|
|
8893
8893
|
borderRadius: ((Ce = t.selectionStyle) == null ? void 0 : Ce.borderRadius) || e.cfg.components.inputRadius || "8px",
|
|
8894
8894
|
marginBottom: "0.5rem",
|
|
8895
8895
|
backgroundColor: te ? ((ae = t.selectionStyle) == null ? void 0 : ae.selectedBackgroundColor) || e.cfg.colors.surface : "transparent",
|
|
@@ -8918,10 +8918,10 @@ function jz(e, t, n) {
|
|
|
8918
8918
|
type: "button",
|
|
8919
8919
|
"aria-label": te ? "Deselect item" : "Select item",
|
|
8920
8920
|
onClick: () => {
|
|
8921
|
-
e.setSceneData((
|
|
8922
|
-
const oe = Array.isArray(
|
|
8921
|
+
e.setSceneData((ge) => {
|
|
8922
|
+
const oe = Array.isArray(ge._selIds) ? ge._selIds.map(String) : [];
|
|
8923
8923
|
return {
|
|
8924
|
-
...
|
|
8924
|
+
...ge,
|
|
8925
8925
|
_selIds: oe.includes(Zt) ? oe.filter((Ee) => Ee !== Zt) : [...oe, Zt]
|
|
8926
8926
|
};
|
|
8927
8927
|
});
|
|
@@ -8965,10 +8965,10 @@ function jz(e, t, n) {
|
|
|
8965
8965
|
return null;
|
|
8966
8966
|
};
|
|
8967
8967
|
return N ? Object.entries(vt).map(
|
|
8968
|
-
([nt, St],
|
|
8968
|
+
([nt, St], dt) => V(
|
|
8969
8969
|
"div",
|
|
8970
8970
|
{
|
|
8971
|
-
key: `${n}-group-${
|
|
8971
|
+
key: `${n}-group-${dt}`,
|
|
8972
8972
|
style: {
|
|
8973
8973
|
display: "flex",
|
|
8974
8974
|
flexDirection: "column",
|
|
@@ -8978,7 +8978,7 @@ function jz(e, t, n) {
|
|
|
8978
8978
|
V(
|
|
8979
8979
|
"div",
|
|
8980
8980
|
{
|
|
8981
|
-
key: `${n}-group-hdr-${
|
|
8981
|
+
key: `${n}-group-hdr-${dt}`,
|
|
8982
8982
|
style: {
|
|
8983
8983
|
fontSize: "11px",
|
|
8984
8984
|
fontWeight: 600,
|
|
@@ -16250,7 +16250,7 @@ function LO(e) {
|
|
|
16250
16250
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
16251
16251
|
return r;
|
|
16252
16252
|
}
|
|
16253
|
-
function
|
|
16253
|
+
function me() {
|
|
16254
16254
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = LO(e)) && (r && (r += " "), r += t);
|
|
16255
16255
|
return r;
|
|
16256
16256
|
}
|
|
@@ -16665,28 +16665,28 @@ function F6() {
|
|
|
16665
16665
|
return J1 || (J1 = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16666
16666
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), x = !1, m = !1, v = !1, _ = !1, S = !1, A;
|
|
16667
16667
|
A = Symbol.for("react.module.reference");
|
|
16668
|
-
function T(
|
|
16669
|
-
return !!(typeof
|
|
16668
|
+
function T(dt) {
|
|
16669
|
+
return !!(typeof dt == "string" || typeof dt == "function" || dt === n || dt === i || S || dt === r || dt === h || dt === u || _ || dt === g || x || m || v || typeof dt == "object" && dt !== null && (dt.$$typeof === p || dt.$$typeof === f || dt.$$typeof === o || dt.$$typeof === s || dt.$$typeof === c || // This needs to include all possible module reference object
|
|
16670
16670
|
// types supported by any Flight configuration anywhere since
|
|
16671
16671
|
// we don't know which Flight build this will end up being used
|
|
16672
16672
|
// with.
|
|
16673
|
-
|
|
16673
|
+
dt.$$typeof === A || dt.getModuleId !== void 0));
|
|
16674
16674
|
}
|
|
16675
|
-
function w(
|
|
16676
|
-
if (typeof
|
|
16677
|
-
var Jt =
|
|
16675
|
+
function w(dt) {
|
|
16676
|
+
if (typeof dt == "object" && dt !== null) {
|
|
16677
|
+
var Jt = dt.$$typeof;
|
|
16678
16678
|
switch (Jt) {
|
|
16679
16679
|
case e:
|
|
16680
|
-
var
|
|
16681
|
-
switch (
|
|
16680
|
+
var de = dt.type;
|
|
16681
|
+
switch (de) {
|
|
16682
16682
|
case n:
|
|
16683
16683
|
case i:
|
|
16684
16684
|
case r:
|
|
16685
16685
|
case h:
|
|
16686
16686
|
case u:
|
|
16687
|
-
return
|
|
16687
|
+
return de;
|
|
16688
16688
|
default:
|
|
16689
|
-
var Ce =
|
|
16689
|
+
var Ce = de && de.$$typeof;
|
|
16690
16690
|
switch (Ce) {
|
|
16691
16691
|
case a:
|
|
16692
16692
|
case s:
|
|
@@ -16705,49 +16705,49 @@ function F6() {
|
|
|
16705
16705
|
}
|
|
16706
16706
|
}
|
|
16707
16707
|
var E = s, k = o, I = e, N = c, z = n, D = p, R = f, U = t, W = i, F = r, q = h, G = u, et = !1, st = !1;
|
|
16708
|
-
function H(
|
|
16708
|
+
function H(dt) {
|
|
16709
16709
|
return et || (et = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
16710
16710
|
}
|
|
16711
|
-
function J(
|
|
16711
|
+
function J(dt) {
|
|
16712
16712
|
return st || (st = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
16713
16713
|
}
|
|
16714
|
-
function ot(
|
|
16715
|
-
return w(
|
|
16714
|
+
function ot(dt) {
|
|
16715
|
+
return w(dt) === s;
|
|
16716
16716
|
}
|
|
16717
|
-
function ct(
|
|
16718
|
-
return w(
|
|
16717
|
+
function ct(dt) {
|
|
16718
|
+
return w(dt) === o;
|
|
16719
16719
|
}
|
|
16720
|
-
function mt(
|
|
16721
|
-
return typeof
|
|
16720
|
+
function mt(dt) {
|
|
16721
|
+
return typeof dt == "object" && dt !== null && dt.$$typeof === e;
|
|
16722
16722
|
}
|
|
16723
|
-
function vt(
|
|
16724
|
-
return w(
|
|
16723
|
+
function vt(dt) {
|
|
16724
|
+
return w(dt) === c;
|
|
16725
16725
|
}
|
|
16726
|
-
function yt(
|
|
16727
|
-
return w(
|
|
16726
|
+
function yt(dt) {
|
|
16727
|
+
return w(dt) === n;
|
|
16728
16728
|
}
|
|
16729
|
-
function $t(
|
|
16730
|
-
return w(
|
|
16729
|
+
function $t(dt) {
|
|
16730
|
+
return w(dt) === p;
|
|
16731
16731
|
}
|
|
16732
|
-
function Tt(
|
|
16733
|
-
return w(
|
|
16732
|
+
function Tt(dt) {
|
|
16733
|
+
return w(dt) === f;
|
|
16734
16734
|
}
|
|
16735
|
-
function ut(
|
|
16736
|
-
return w(
|
|
16735
|
+
function ut(dt) {
|
|
16736
|
+
return w(dt) === t;
|
|
16737
16737
|
}
|
|
16738
|
-
function
|
|
16739
|
-
return w(
|
|
16738
|
+
function ft(dt) {
|
|
16739
|
+
return w(dt) === i;
|
|
16740
16740
|
}
|
|
16741
|
-
function Nt(
|
|
16742
|
-
return w(
|
|
16741
|
+
function Nt(dt) {
|
|
16742
|
+
return w(dt) === r;
|
|
16743
16743
|
}
|
|
16744
|
-
function nt(
|
|
16745
|
-
return w(
|
|
16744
|
+
function nt(dt) {
|
|
16745
|
+
return w(dt) === h;
|
|
16746
16746
|
}
|
|
16747
|
-
function St(
|
|
16748
|
-
return w(
|
|
16747
|
+
function St(dt) {
|
|
16748
|
+
return w(dt) === u;
|
|
16749
16749
|
}
|
|
16750
|
-
Le.ContextConsumer = E, Le.ContextProvider = k, Le.Element = I, Le.ForwardRef = N, Le.Fragment = z, Le.Lazy = D, Le.Memo = R, Le.Portal = U, Le.Profiler = W, Le.StrictMode = F, Le.Suspense = q, Le.SuspenseList = G, Le.isAsyncMode = H, Le.isConcurrentMode = J, Le.isContextConsumer = ot, Le.isContextProvider = ct, Le.isElement = mt, Le.isForwardRef = vt, Le.isFragment = yt, Le.isLazy = $t, Le.isMemo = Tt, Le.isPortal = ut, Le.isProfiler =
|
|
16750
|
+
Le.ContextConsumer = E, Le.ContextProvider = k, Le.Element = I, Le.ForwardRef = N, Le.Fragment = z, Le.Lazy = D, Le.Memo = R, Le.Portal = U, Le.Profiler = W, Le.StrictMode = F, Le.Suspense = q, Le.SuspenseList = G, Le.isAsyncMode = H, Le.isConcurrentMode = J, Le.isContextConsumer = ot, Le.isContextProvider = ct, Le.isElement = mt, Le.isForwardRef = vt, Le.isFragment = yt, Le.isLazy = $t, Le.isMemo = Tt, Le.isPortal = ut, Le.isProfiler = ft, Le.isStrictMode = Nt, Le.isSuspense = nt, Le.isSuspenseList = St, Le.isValidElementType = T, Le.typeOf = w;
|
|
16751
16751
|
}()), Le;
|
|
16752
16752
|
}
|
|
16753
16753
|
process.env.NODE_ENV === "production" ? vv.exports = z6() : vv.exports = F6();
|
|
@@ -17354,7 +17354,7 @@ function Sv(e) {
|
|
|
17354
17354
|
height: r,
|
|
17355
17355
|
x: 0,
|
|
17356
17356
|
y: 0
|
|
17357
|
-
}, f =
|
|
17357
|
+
}, f = me("recharts-surface", o);
|
|
17358
17358
|
return /* @__PURE__ */ b.createElement("svg", _v({}, Gt(h, !0, "svg"), {
|
|
17359
17359
|
className: f,
|
|
17360
17360
|
width: n,
|
|
@@ -17395,7 +17395,7 @@ function b8(e, t) {
|
|
|
17395
17395
|
return n;
|
|
17396
17396
|
}
|
|
17397
17397
|
var Pe = /* @__PURE__ */ b.forwardRef(function(e, t) {
|
|
17398
|
-
var n = e.children, r = e.className, i = v8(e, y8), o =
|
|
17398
|
+
var n = e.children, r = e.className, i = v8(e, y8), o = me("recharts-layer", r);
|
|
17399
17399
|
return /* @__PURE__ */ b.createElement("g", Pv({
|
|
17400
17400
|
className: o
|
|
17401
17401
|
}, Gt(i, !0), {
|
|
@@ -18260,7 +18260,7 @@ var mM = {
|
|
|
18260
18260
|
return _();
|
|
18261
18261
|
}, f = h.className, p = h.cx, g = h.cy, x = Gt(h, !0);
|
|
18262
18262
|
return p === +p && g === +g && o === +o ? /* @__PURE__ */ b.createElement("path", kv({}, x, {
|
|
18263
|
-
className:
|
|
18263
|
+
className: me("recharts-symbols", f),
|
|
18264
18264
|
transform: "translate(".concat(p, ", ").concat(g, ")"),
|
|
18265
18265
|
d: u()
|
|
18266
18266
|
})) : null;
|
|
@@ -18454,7 +18454,7 @@ var pi = 32, mx = /* @__PURE__ */ function(e) {
|
|
|
18454
18454
|
marginRight: 4
|
|
18455
18455
|
};
|
|
18456
18456
|
return o.map(function(g, x) {
|
|
18457
|
-
var m = g.formatter || c, v =
|
|
18457
|
+
var m = g.formatter || c, v = me(Th(Th({
|
|
18458
18458
|
"recharts-legend-item": !0
|
|
18459
18459
|
}, "legend-item-".concat(x), !0), "inactive", g.inactive));
|
|
18460
18460
|
if (g.type === "none")
|
|
@@ -19602,7 +19602,7 @@ var AY = function(t) {
|
|
|
19602
19602
|
whiteSpace: "nowrap"
|
|
19603
19603
|
}, o), w = my({
|
|
19604
19604
|
margin: 0
|
|
19605
|
-
}, h), E = !ie(m), k = E ? m : "", I =
|
|
19605
|
+
}, h), E = !ie(m), k = E ? m : "", I = me("recharts-default-tooltip", g), N = me("recharts-tooltip-label", x);
|
|
19606
19606
|
E && v && u !== void 0 && u !== null && (k = v(m, u));
|
|
19607
19607
|
var z = S ? {
|
|
19608
19608
|
role: "status",
|
|
@@ -19646,7 +19646,7 @@ var Lu = "recharts-tooltip-wrapper", CY = {
|
|
|
19646
19646
|
};
|
|
19647
19647
|
function OY(e) {
|
|
19648
19648
|
var t = e.coordinate, n = e.translateX, r = e.translateY;
|
|
19649
|
-
return
|
|
19649
|
+
return me(Lu, md(md(md(md({}, "".concat(Lu, "-right"), At(n) && t && At(t.x) && n >= t.x), "".concat(Lu, "-left"), At(n) && t && At(t.x) && n < t.x), "".concat(Lu, "-bottom"), At(r) && t && At(t.y) && r >= t.y), "".concat(Lu, "-top"), At(r) && t && At(t.y) && r < t.y));
|
|
19650
19650
|
}
|
|
19651
19651
|
function HS(e) {
|
|
19652
19652
|
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offsetTopLeft, o = e.position, s = e.reverseDirection, a = e.tooltipDimension, c = e.viewBox, h = e.viewBoxDimension;
|
|
@@ -20321,7 +20321,7 @@ var Bm = /* @__PURE__ */ nl(function(e, t) {
|
|
|
20321
20321
|
}, [n, g, c, p, f, u, N, s]);
|
|
20322
20322
|
return /* @__PURE__ */ b.createElement("div", {
|
|
20323
20323
|
id: v ? "".concat(v) : void 0,
|
|
20324
|
-
className:
|
|
20324
|
+
className: me("recharts-responsive-container", _),
|
|
20325
20325
|
style: gd(gd({}, T), {}, {
|
|
20326
20326
|
width: s,
|
|
20327
20327
|
height: c,
|
|
@@ -20798,7 +20798,7 @@ var XM = /[ \f\n\r\t\v\u2028\u2029]+/, JM = function(t) {
|
|
|
20798
20798
|
return E && U.push("rotate(".concat(E, ", ").concat(z, ", ").concat(D, ")")), U.length && (N.transform = U.join(" ")), /* @__PURE__ */ b.createElement("text", Hv({}, Gt(N, !0), {
|
|
20799
20799
|
x: z,
|
|
20800
20800
|
y: D,
|
|
20801
|
-
className:
|
|
20801
|
+
className: me("recharts-text", k),
|
|
20802
20802
|
textAnchor: g,
|
|
20803
20803
|
fill: _.includes("url") ? dP : _
|
|
20804
20804
|
}), A.map(function(q, G) {
|
|
@@ -22347,65 +22347,65 @@ function kJ(e) {
|
|
|
22347
22347
|
"%": ZJ
|
|
22348
22348
|
};
|
|
22349
22349
|
A.x = E(n, A), A.X = E(r, A), A.c = E(t, A), T.x = E(n, T), T.X = E(r, T), T.c = E(t, T);
|
|
22350
|
-
function E(ut,
|
|
22350
|
+
function E(ut, ft) {
|
|
22351
22351
|
return function(Nt) {
|
|
22352
|
-
var nt = [], St = -1,
|
|
22352
|
+
var nt = [], St = -1, dt = 0, Jt = ut.length, de, Ce, ae;
|
|
22353
22353
|
for (Nt instanceof Date || (Nt = /* @__PURE__ */ new Date(+Nt)); ++St < Jt; )
|
|
22354
|
-
ut.charCodeAt(St) === 37 && (nt.push(ut.slice(
|
|
22355
|
-
return nt.push(ut.slice(
|
|
22354
|
+
ut.charCodeAt(St) === 37 && (nt.push(ut.slice(dt, St)), (Ce = FP[de = ut.charAt(++St)]) != null ? de = ut.charAt(++St) : Ce = de === "e" ? " " : "0", (ae = ft[de]) && (de = ae(Nt, Ce)), nt.push(de), dt = St + 1);
|
|
22355
|
+
return nt.push(ut.slice(dt, St)), nt.join("");
|
|
22356
22356
|
};
|
|
22357
22357
|
}
|
|
22358
|
-
function k(ut,
|
|
22358
|
+
function k(ut, ft) {
|
|
22359
22359
|
return function(Nt) {
|
|
22360
|
-
var nt = Du(1900, void 0, 1), St = I(nt, ut, Nt += "", 0),
|
|
22360
|
+
var nt = Du(1900, void 0, 1), St = I(nt, ut, Nt += "", 0), dt, Jt;
|
|
22361
22361
|
if (St != Nt.length) return null;
|
|
22362
22362
|
if ("Q" in nt) return new Date(nt.Q);
|
|
22363
22363
|
if ("s" in nt) return new Date(nt.s * 1e3 + ("L" in nt ? nt.L : 0));
|
|
22364
|
-
if (
|
|
22364
|
+
if (ft && !("Z" in nt) && (nt.Z = 0), "p" in nt && (nt.H = nt.H % 12 + nt.p * 12), nt.m === void 0 && (nt.m = "q" in nt ? nt.q : 0), "V" in nt) {
|
|
22365
22365
|
if (nt.V < 1 || nt.V > 53) return null;
|
|
22366
|
-
"w" in nt || (nt.w = 1), "Z" in nt ? (
|
|
22366
|
+
"w" in nt || (nt.w = 1), "Z" in nt ? (dt = Py(Du(nt.y, 0, 1)), Jt = dt.getUTCDay(), dt = Jt > 4 || Jt === 0 ? Sp.ceil(dt) : Sp(dt), dt = Fm.offset(dt, (nt.V - 1) * 7), nt.y = dt.getUTCFullYear(), nt.m = dt.getUTCMonth(), nt.d = dt.getUTCDate() + (nt.w + 6) % 7) : (dt = Sy(Du(nt.y, 0, 1)), Jt = dt.getDay(), dt = Jt > 4 || Jt === 0 ? _p.ceil(dt) : _p(dt), dt = _f.offset(dt, (nt.V - 1) * 7), nt.y = dt.getFullYear(), nt.m = dt.getMonth(), nt.d = dt.getDate() + (nt.w + 6) % 7);
|
|
22367
22367
|
} else ("W" in nt || "U" in nt) && ("w" in nt || (nt.w = "u" in nt ? nt.u % 7 : "W" in nt ? 1 : 0), Jt = "Z" in nt ? Py(Du(nt.y, 0, 1)).getUTCDay() : Sy(Du(nt.y, 0, 1)).getDay(), nt.m = 0, nt.d = "W" in nt ? (nt.w + 6) % 7 + nt.W * 7 - (Jt + 5) % 7 : nt.w + nt.U * 7 - (Jt + 6) % 7);
|
|
22368
22368
|
return "Z" in nt ? (nt.H += nt.Z / 100 | 0, nt.M += nt.Z % 100, Py(nt)) : Sy(nt);
|
|
22369
22369
|
};
|
|
22370
22370
|
}
|
|
22371
|
-
function I(ut,
|
|
22372
|
-
for (var St = 0,
|
|
22371
|
+
function I(ut, ft, Nt, nt) {
|
|
22372
|
+
for (var St = 0, dt = ft.length, Jt = Nt.length, de, Ce; St < dt; ) {
|
|
22373
22373
|
if (nt >= Jt) return -1;
|
|
22374
|
-
if (
|
|
22375
|
-
if (
|
|
22376
|
-
} else if (
|
|
22374
|
+
if (de = ft.charCodeAt(St++), de === 37) {
|
|
22375
|
+
if (de = ft.charAt(St++), Ce = w[de in FP ? ft.charAt(St++) : de], !Ce || (nt = Ce(ut, Nt, nt)) < 0) return -1;
|
|
22376
|
+
} else if (de != Nt.charCodeAt(nt++))
|
|
22377
22377
|
return -1;
|
|
22378
22378
|
}
|
|
22379
22379
|
return nt;
|
|
22380
22380
|
}
|
|
22381
|
-
function N(ut,
|
|
22382
|
-
var nt = h.exec(
|
|
22381
|
+
function N(ut, ft, Nt) {
|
|
22382
|
+
var nt = h.exec(ft.slice(Nt));
|
|
22383
22383
|
return nt ? (ut.p = u.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22384
22384
|
}
|
|
22385
|
-
function z(ut,
|
|
22386
|
-
var nt = g.exec(
|
|
22385
|
+
function z(ut, ft, Nt) {
|
|
22386
|
+
var nt = g.exec(ft.slice(Nt));
|
|
22387
22387
|
return nt ? (ut.w = x.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22388
22388
|
}
|
|
22389
|
-
function D(ut,
|
|
22390
|
-
var nt = f.exec(
|
|
22389
|
+
function D(ut, ft, Nt) {
|
|
22390
|
+
var nt = f.exec(ft.slice(Nt));
|
|
22391
22391
|
return nt ? (ut.w = p.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22392
22392
|
}
|
|
22393
|
-
function R(ut,
|
|
22394
|
-
var nt = _.exec(
|
|
22393
|
+
function R(ut, ft, Nt) {
|
|
22394
|
+
var nt = _.exec(ft.slice(Nt));
|
|
22395
22395
|
return nt ? (ut.m = S.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22396
22396
|
}
|
|
22397
|
-
function U(ut,
|
|
22398
|
-
var nt = m.exec(
|
|
22397
|
+
function U(ut, ft, Nt) {
|
|
22398
|
+
var nt = m.exec(ft.slice(Nt));
|
|
22399
22399
|
return nt ? (ut.m = v.get(nt[0].toLowerCase()), Nt + nt[0].length) : -1;
|
|
22400
22400
|
}
|
|
22401
|
-
function W(ut,
|
|
22402
|
-
return I(ut, t,
|
|
22401
|
+
function W(ut, ft, Nt) {
|
|
22402
|
+
return I(ut, t, ft, Nt);
|
|
22403
22403
|
}
|
|
22404
|
-
function F(ut,
|
|
22405
|
-
return I(ut, n,
|
|
22404
|
+
function F(ut, ft, Nt) {
|
|
22405
|
+
return I(ut, n, ft, Nt);
|
|
22406
22406
|
}
|
|
22407
|
-
function q(ut,
|
|
22408
|
-
return I(ut, r,
|
|
22407
|
+
function q(ut, ft, Nt) {
|
|
22408
|
+
return I(ut, r, ft, Nt);
|
|
22409
22409
|
}
|
|
22410
22410
|
function G(ut) {
|
|
22411
22411
|
return s[ut.getDay()];
|
|
@@ -22445,28 +22445,28 @@ function kJ(e) {
|
|
|
22445
22445
|
}
|
|
22446
22446
|
return {
|
|
22447
22447
|
format: function(ut) {
|
|
22448
|
-
var
|
|
22449
|
-
return
|
|
22448
|
+
var ft = E(ut += "", A);
|
|
22449
|
+
return ft.toString = function() {
|
|
22450
22450
|
return ut;
|
|
22451
|
-
},
|
|
22451
|
+
}, ft;
|
|
22452
22452
|
},
|
|
22453
22453
|
parse: function(ut) {
|
|
22454
|
-
var
|
|
22455
|
-
return
|
|
22454
|
+
var ft = k(ut += "", !1);
|
|
22455
|
+
return ft.toString = function() {
|
|
22456
22456
|
return ut;
|
|
22457
|
-
},
|
|
22457
|
+
}, ft;
|
|
22458
22458
|
},
|
|
22459
22459
|
utcFormat: function(ut) {
|
|
22460
|
-
var
|
|
22461
|
-
return
|
|
22460
|
+
var ft = E(ut += "", T);
|
|
22461
|
+
return ft.toString = function() {
|
|
22462
22462
|
return ut;
|
|
22463
|
-
},
|
|
22463
|
+
}, ft;
|
|
22464
22464
|
},
|
|
22465
22465
|
utcParse: function(ut) {
|
|
22466
|
-
var
|
|
22467
|
-
return
|
|
22466
|
+
var ft = k(ut += "", !0);
|
|
22467
|
+
return ft.toString = function() {
|
|
22468
22468
|
return ut;
|
|
22469
|
-
},
|
|
22469
|
+
}, ft;
|
|
22470
22470
|
}
|
|
22471
22471
|
};
|
|
22472
22472
|
}
|
|
@@ -22984,12 +22984,12 @@ var hu = 1e9, ftt = {
|
|
|
22984
22984
|
// The natural logarithm of 10.
|
|
22985
22985
|
// 115 digits
|
|
22986
22986
|
LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
|
|
22987
|
-
}, Gx, fn = !0, wi = "[DecimalError] ", Va = wi + "Invalid argument: ", qx = wi + "Exponent out of range: ", fu = Math.floor, Oa = Math.pow, dtt = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Jr, qn = 1e7, cn = 7, Ik = 9007199254740991, Pp = fu(Ik / cn),
|
|
22988
|
-
|
|
22987
|
+
}, Gx, fn = !0, wi = "[DecimalError] ", Va = wi + "Invalid argument: ", qx = wi + "Exponent out of range: ", fu = Math.floor, Oa = Math.pow, dtt = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Jr, qn = 1e7, cn = 7, Ik = 9007199254740991, Pp = fu(Ik / cn), Wt = {};
|
|
22988
|
+
Wt.absoluteValue = Wt.abs = function() {
|
|
22989
22989
|
var e = new this.constructor(this);
|
|
22990
22990
|
return e.s && (e.s = 1), e;
|
|
22991
22991
|
};
|
|
22992
|
-
|
|
22992
|
+
Wt.comparedTo = Wt.cmp = function(e) {
|
|
22993
22993
|
var t, n, r, i, o = this;
|
|
22994
22994
|
if (e = new o.constructor(e), o.s !== e.s) return o.s || -e.s;
|
|
22995
22995
|
if (o.e !== e.e) return o.e > e.e ^ o.s < 0 ? 1 : -1;
|
|
@@ -22997,49 +22997,49 @@ Ft.comparedTo = Ft.cmp = function(e) {
|
|
|
22997
22997
|
if (o.d[t] !== e.d[t]) return o.d[t] > e.d[t] ^ o.s < 0 ? 1 : -1;
|
|
22998
22998
|
return r === i ? 0 : r > i ^ o.s < 0 ? 1 : -1;
|
|
22999
22999
|
};
|
|
23000
|
-
|
|
23000
|
+
Wt.decimalPlaces = Wt.dp = function() {
|
|
23001
23001
|
var e = this, t = e.d.length - 1, n = (t - e.e) * cn;
|
|
23002
23002
|
if (t = e.d[t], t) for (; t % 10 == 0; t /= 10) n--;
|
|
23003
23003
|
return n < 0 ? 0 : n;
|
|
23004
23004
|
};
|
|
23005
|
-
|
|
23005
|
+
Wt.dividedBy = Wt.div = function(e) {
|
|
23006
23006
|
return Fo(this, new this.constructor(e));
|
|
23007
23007
|
};
|
|
23008
|
-
|
|
23008
|
+
Wt.dividedToIntegerBy = Wt.idiv = function(e) {
|
|
23009
23009
|
var t = this, n = t.constructor;
|
|
23010
23010
|
return Ke(Fo(t, new n(e), 0, 1), n.precision);
|
|
23011
23011
|
};
|
|
23012
|
-
|
|
23012
|
+
Wt.equals = Wt.eq = function(e) {
|
|
23013
23013
|
return !this.cmp(e);
|
|
23014
23014
|
};
|
|
23015
|
-
|
|
23015
|
+
Wt.exponent = function() {
|
|
23016
23016
|
return On(this);
|
|
23017
23017
|
};
|
|
23018
|
-
|
|
23018
|
+
Wt.greaterThan = Wt.gt = function(e) {
|
|
23019
23019
|
return this.cmp(e) > 0;
|
|
23020
23020
|
};
|
|
23021
|
-
|
|
23021
|
+
Wt.greaterThanOrEqualTo = Wt.gte = function(e) {
|
|
23022
23022
|
return this.cmp(e) >= 0;
|
|
23023
23023
|
};
|
|
23024
|
-
|
|
23024
|
+
Wt.isInteger = Wt.isint = function() {
|
|
23025
23025
|
return this.e > this.d.length - 2;
|
|
23026
23026
|
};
|
|
23027
|
-
|
|
23027
|
+
Wt.isNegative = Wt.isneg = function() {
|
|
23028
23028
|
return this.s < 0;
|
|
23029
23029
|
};
|
|
23030
|
-
|
|
23030
|
+
Wt.isPositive = Wt.ispos = function() {
|
|
23031
23031
|
return this.s > 0;
|
|
23032
23032
|
};
|
|
23033
|
-
|
|
23033
|
+
Wt.isZero = function() {
|
|
23034
23034
|
return this.s === 0;
|
|
23035
23035
|
};
|
|
23036
|
-
|
|
23036
|
+
Wt.lessThan = Wt.lt = function(e) {
|
|
23037
23037
|
return this.cmp(e) < 0;
|
|
23038
23038
|
};
|
|
23039
|
-
|
|
23039
|
+
Wt.lessThanOrEqualTo = Wt.lte = function(e) {
|
|
23040
23040
|
return this.cmp(e) < 1;
|
|
23041
23041
|
};
|
|
23042
|
-
|
|
23042
|
+
Wt.logarithm = Wt.log = function(e) {
|
|
23043
23043
|
var t, n = this, r = n.constructor, i = r.precision, o = i + 5;
|
|
23044
23044
|
if (e === void 0)
|
|
23045
23045
|
e = new r(10);
|
|
@@ -23047,30 +23047,30 @@ Ft.logarithm = Ft.log = function(e) {
|
|
|
23047
23047
|
if (n.s < 1) throw Error(wi + (n.s ? "NaN" : "-Infinity"));
|
|
23048
23048
|
return n.eq(Jr) ? new r(0) : (fn = !1, t = Fo(jh(n, o), jh(e, o), o), fn = !0, Ke(t, i));
|
|
23049
23049
|
};
|
|
23050
|
-
|
|
23050
|
+
Wt.minus = Wt.sub = function(e) {
|
|
23051
23051
|
var t = this;
|
|
23052
23052
|
return e = new t.constructor(e), t.s == e.s ? Rk(t, e) : Nk(t, (e.s = -e.s, e));
|
|
23053
23053
|
};
|
|
23054
|
-
|
|
23054
|
+
Wt.modulo = Wt.mod = function(e) {
|
|
23055
23055
|
var t, n = this, r = n.constructor, i = r.precision;
|
|
23056
23056
|
if (e = new r(e), !e.s) throw Error(wi + "NaN");
|
|
23057
23057
|
return n.s ? (fn = !1, t = Fo(n, e, 0, 1).times(e), fn = !0, n.minus(t)) : Ke(new r(n), i);
|
|
23058
23058
|
};
|
|
23059
|
-
|
|
23059
|
+
Wt.naturalExponential = Wt.exp = function() {
|
|
23060
23060
|
return Lk(this);
|
|
23061
23061
|
};
|
|
23062
|
-
|
|
23062
|
+
Wt.naturalLogarithm = Wt.ln = function() {
|
|
23063
23063
|
return jh(this);
|
|
23064
23064
|
};
|
|
23065
|
-
|
|
23065
|
+
Wt.negated = Wt.neg = function() {
|
|
23066
23066
|
var e = new this.constructor(this);
|
|
23067
23067
|
return e.s = -e.s || 0, e;
|
|
23068
23068
|
};
|
|
23069
|
-
|
|
23069
|
+
Wt.plus = Wt.add = function(e) {
|
|
23070
23070
|
var t = this;
|
|
23071
23071
|
return e = new t.constructor(e), t.s == e.s ? Nk(t, e) : Rk(t, (e.s = -e.s, e));
|
|
23072
23072
|
};
|
|
23073
|
-
|
|
23073
|
+
Wt.precision = Wt.sd = function(e) {
|
|
23074
23074
|
var t, n, r, i = this;
|
|
23075
23075
|
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(Va + e);
|
|
23076
23076
|
if (t = On(i) + 1, r = i.d.length - 1, n = r * cn + 1, r = i.d[r], r) {
|
|
@@ -23079,7 +23079,7 @@ Ft.precision = Ft.sd = function(e) {
|
|
|
23079
23079
|
}
|
|
23080
23080
|
return e && t > n ? t : n;
|
|
23081
23081
|
};
|
|
23082
|
-
|
|
23082
|
+
Wt.squareRoot = Wt.sqrt = function() {
|
|
23083
23083
|
var e, t, n, r, i, o, s, a = this, c = a.constructor;
|
|
23084
23084
|
if (a.s < 1) {
|
|
23085
23085
|
if (!a.s) return new c(0);
|
|
@@ -23098,7 +23098,7 @@ Ft.squareRoot = Ft.sqrt = function() {
|
|
|
23098
23098
|
}
|
|
23099
23099
|
return fn = !0, Ke(r, n);
|
|
23100
23100
|
};
|
|
23101
|
-
|
|
23101
|
+
Wt.times = Wt.mul = function(e) {
|
|
23102
23102
|
var t, n, r, i, o, s, a, c, h, u = this, f = u.constructor, p = u.d, g = (e = new f(e)).d;
|
|
23103
23103
|
if (!u.s || !e.s) return new f(0);
|
|
23104
23104
|
for (e.s *= u.s, n = u.e + e.e, c = p.length, h = g.length, c < h && (o = p, p = g, g = o, s = c, c = h, h = s), o = [], s = c + h, r = s; r--; ) o.push(0);
|
|
@@ -23110,26 +23110,26 @@ Ft.times = Ft.mul = function(e) {
|
|
|
23110
23110
|
for (; !o[--s]; ) o.pop();
|
|
23111
23111
|
return t ? ++n : o.shift(), e.d = o, e.e = n, fn ? Ke(e, f.precision) : e;
|
|
23112
23112
|
};
|
|
23113
|
-
|
|
23113
|
+
Wt.toDecimalPlaces = Wt.todp = function(e, t) {
|
|
23114
23114
|
var n = this, r = n.constructor;
|
|
23115
23115
|
return n = new r(n), e === void 0 ? n : (uo(e, 0, hu), t === void 0 ? t = r.rounding : uo(t, 0, 8), Ke(n, e + On(n) + 1, t));
|
|
23116
23116
|
};
|
|
23117
|
-
|
|
23117
|
+
Wt.toExponential = function(e, t) {
|
|
23118
23118
|
var n, r = this, i = r.constructor;
|
|
23119
23119
|
return e === void 0 ? n = tl(r, !0) : (uo(e, 0, hu), t === void 0 ? t = i.rounding : uo(t, 0, 8), r = Ke(new i(r), e + 1, t), n = tl(r, !0, e + 1)), n;
|
|
23120
23120
|
};
|
|
23121
|
-
|
|
23121
|
+
Wt.toFixed = function(e, t) {
|
|
23122
23122
|
var n, r, i = this, o = i.constructor;
|
|
23123
23123
|
return e === void 0 ? tl(i) : (uo(e, 0, hu), t === void 0 ? t = o.rounding : uo(t, 0, 8), r = Ke(new o(i), e + On(i) + 1, t), n = tl(r.abs(), !1, e + On(r) + 1), i.isneg() && !i.isZero() ? "-" + n : n);
|
|
23124
23124
|
};
|
|
23125
|
-
|
|
23125
|
+
Wt.toInteger = Wt.toint = function() {
|
|
23126
23126
|
var e = this, t = e.constructor;
|
|
23127
23127
|
return Ke(new t(e), On(e) + 1, t.rounding);
|
|
23128
23128
|
};
|
|
23129
|
-
|
|
23129
|
+
Wt.toNumber = function() {
|
|
23130
23130
|
return +this;
|
|
23131
23131
|
};
|
|
23132
|
-
|
|
23132
|
+
Wt.toPower = Wt.pow = function(e) {
|
|
23133
23133
|
var t, n, r, i, o, s, a = this, c = a.constructor, h = 12, u = +(e = new c(e));
|
|
23134
23134
|
if (!e.s) return new c(Jr);
|
|
23135
23135
|
if (a = new c(a), !a.s) {
|
|
@@ -23147,15 +23147,15 @@ Ft.toPower = Ft.pow = function(e) {
|
|
|
23147
23147
|
} else if (o < 0) throw Error(wi + "NaN");
|
|
23148
23148
|
return o = o < 0 && e.d[Math.max(t, n)] & 1 ? -1 : 1, a.s = 1, fn = !1, i = e.times(jh(a, r + h)), fn = !0, i = Lk(i), i.s = o, i;
|
|
23149
23149
|
};
|
|
23150
|
-
|
|
23150
|
+
Wt.toPrecision = function(e, t) {
|
|
23151
23151
|
var n, r, i = this, o = i.constructor;
|
|
23152
23152
|
return e === void 0 ? (n = On(i), r = tl(i, n <= o.toExpNeg || n >= o.toExpPos)) : (uo(e, 1, hu), t === void 0 ? t = o.rounding : uo(t, 0, 8), i = Ke(new o(i), e, t), n = On(i), r = tl(i, e <= n || n <= o.toExpNeg, e)), r;
|
|
23153
23153
|
};
|
|
23154
|
-
|
|
23154
|
+
Wt.toSignificantDigits = Wt.tosd = function(e, t) {
|
|
23155
23155
|
var n = this, r = n.constructor;
|
|
23156
23156
|
return e === void 0 ? (e = r.precision, t = r.rounding) : (uo(e, 1, hu), t === void 0 ? t = r.rounding : uo(t, 0, 8)), Ke(new r(n), e, t);
|
|
23157
23157
|
};
|
|
23158
|
-
|
|
23158
|
+
Wt.toString = Wt.valueOf = Wt.val = Wt.toJSON = Wt[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
23159
23159
|
var e = this, t = On(e), n = e.constructor;
|
|
23160
23160
|
return tl(e, t <= n.toExpNeg || t >= n.toExpPos);
|
|
23161
23161
|
};
|
|
@@ -23383,7 +23383,7 @@ function Dk(e) {
|
|
|
23383
23383
|
if (o.charCodeAt(0) === 45 ? (o = o.slice(1), s.s = -1) : s.s = 1, dtt.test(o)) JP(s, o);
|
|
23384
23384
|
else throw Error(Va + o);
|
|
23385
23385
|
}
|
|
23386
|
-
if (i.prototype =
|
|
23386
|
+
if (i.prototype = Wt, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = Dk, i.config = i.set = ptt, e === void 0 && (e = {}), e)
|
|
23387
23387
|
for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < r.length; ) e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]);
|
|
23388
23388
|
return i.config(e), i;
|
|
23389
23389
|
}
|
|
@@ -24857,7 +24857,7 @@ var tnt = function(t) {
|
|
|
24857
24857
|
`).concat(E.x, ",").concat(E.y), I = ie(t.id) ? ll("recharts-radial-line-") : t.id;
|
|
24858
24858
|
return /* @__PURE__ */ b.createElement("text", Uh({}, r, {
|
|
24859
24859
|
dominantBaseline: "central",
|
|
24860
|
-
className:
|
|
24860
|
+
className: me("recharts-radial-bar-label", a)
|
|
24861
24861
|
}), /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("path", {
|
|
24862
24862
|
id: I,
|
|
24863
24863
|
d: k
|
|
@@ -25030,7 +25030,7 @@ function Zn(e) {
|
|
|
25030
25030
|
return nnt(i, g, m);
|
|
25031
25031
|
var v = x ? rnt(i) : int(i);
|
|
25032
25032
|
return /* @__PURE__ */ b.createElement(Ja, Uh({
|
|
25033
|
-
className:
|
|
25033
|
+
className: me("recharts-label", f)
|
|
25034
25034
|
}, m, v, {
|
|
25035
25035
|
breakAll: p
|
|
25036
25036
|
}), g);
|
|
@@ -25436,7 +25436,7 @@ var Cnt = function(t, n) {
|
|
|
25436
25436
|
var n = vA(vA({}, Mnt), t), r = n.cx, i = n.cy, o = n.innerRadius, s = n.outerRadius, a = n.cornerRadius, c = n.forceCornerRadius, h = n.cornerIsExternal, u = n.startAngle, f = n.endAngle, p = n.className;
|
|
25437
25437
|
if (s < o || u === f)
|
|
25438
25438
|
return null;
|
|
25439
|
-
var g =
|
|
25439
|
+
var g = me("recharts-sector", p), x = s - o, m = Pr(a, x, 0, !0), v;
|
|
25440
25440
|
return m > 0 && Math.abs(u - f) < 360 ? v = Ont({
|
|
25441
25441
|
cx: r,
|
|
25442
25442
|
cy: i,
|
|
@@ -25566,7 +25566,7 @@ var wA = {
|
|
|
25566
25566
|
return null;
|
|
25567
25567
|
var s = r && r.length ? Lnt(t) : i;
|
|
25568
25568
|
return /* @__PURE__ */ Er.createElement("path", ub({}, Gt(t, !1), Qd(t), {
|
|
25569
|
-
className:
|
|
25569
|
+
className: me("recharts-curve", n),
|
|
25570
25570
|
d: s,
|
|
25571
25571
|
ref: o
|
|
25572
25572
|
}));
|
|
@@ -25667,17 +25667,17 @@ function Dnt() {
|
|
|
25667
25667
|
var St = nt.$$typeof;
|
|
25668
25668
|
switch (St) {
|
|
25669
25669
|
case t:
|
|
25670
|
-
var
|
|
25671
|
-
switch (
|
|
25670
|
+
var dt = nt.type;
|
|
25671
|
+
switch (dt) {
|
|
25672
25672
|
case c:
|
|
25673
25673
|
case h:
|
|
25674
25674
|
case r:
|
|
25675
25675
|
case o:
|
|
25676
25676
|
case i:
|
|
25677
25677
|
case f:
|
|
25678
|
-
return
|
|
25678
|
+
return dt;
|
|
25679
25679
|
default:
|
|
25680
|
-
var Jt =
|
|
25680
|
+
var Jt = dt && dt.$$typeof;
|
|
25681
25681
|
switch (Jt) {
|
|
25682
25682
|
case a:
|
|
25683
25683
|
case u:
|
|
@@ -25728,13 +25728,13 @@ function Dnt() {
|
|
|
25728
25728
|
function ut(nt) {
|
|
25729
25729
|
return T(nt) === o;
|
|
25730
25730
|
}
|
|
25731
|
-
function
|
|
25731
|
+
function ft(nt) {
|
|
25732
25732
|
return T(nt) === i;
|
|
25733
25733
|
}
|
|
25734
25734
|
function Nt(nt) {
|
|
25735
25735
|
return T(nt) === f;
|
|
25736
25736
|
}
|
|
25737
|
-
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = k, De.ContextProvider = I, De.Element = N, De.ForwardRef = z, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense = G, 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 =
|
|
25737
|
+
De.AsyncMode = w, De.ConcurrentMode = E, De.ContextConsumer = k, De.ContextProvider = I, De.Element = N, De.ForwardRef = z, De.Fragment = D, De.Lazy = R, De.Memo = U, De.Portal = W, De.Profiler = F, De.StrictMode = q, De.Suspense = G, 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 = ft, De.isSuspense = Nt, De.isValidElementType = A, De.typeOf = T;
|
|
25738
25738
|
}()), De;
|
|
25739
25739
|
}
|
|
25740
25740
|
var PA;
|
|
@@ -25907,8 +25907,8 @@ function znt() {
|
|
|
25907
25907
|
function v(H) {
|
|
25908
25908
|
if (process.env.NODE_ENV !== "production")
|
|
25909
25909
|
var J = {}, ot = 0;
|
|
25910
|
-
function ct(vt, yt, $t, Tt, ut,
|
|
25911
|
-
if (Tt = Tt || p,
|
|
25910
|
+
function ct(vt, yt, $t, Tt, ut, ft, Nt) {
|
|
25911
|
+
if (Tt = Tt || p, ft = ft || $t, Nt !== n) {
|
|
25912
25912
|
if (c) {
|
|
25913
25913
|
var nt = new Error(
|
|
25914
25914
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -25918,11 +25918,11 @@ function znt() {
|
|
|
25918
25918
|
var St = Tt + ":" + $t;
|
|
25919
25919
|
!J[St] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
25920
25920
|
ot < 3 && (o(
|
|
25921
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
25921
|
+
"You are manually calling a React.PropTypes validation function for the `" + ft + "` prop on `" + Tt + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
25922
25922
|
), J[St] = !0, ot++);
|
|
25923
25923
|
}
|
|
25924
25924
|
}
|
|
25925
|
-
return yt[$t] == null ? vt ? yt[$t] === null ? new m("The " + ut + " `" +
|
|
25925
|
+
return yt[$t] == null ? vt ? yt[$t] === null ? new m("The " + ut + " `" + ft + "` is marked as required " + ("in `" + Tt + "`, but its value is `null`.")) : new m("The " + ut + " `" + ft + "` is marked as required in " + ("`" + Tt + "`, but its value is `undefined`.")) : null : H(yt, $t, Tt, ut, ft);
|
|
25926
25926
|
}
|
|
25927
25927
|
var mt = ct.bind(null, !1);
|
|
25928
25928
|
return mt.isRequired = ct.bind(null, !0), mt;
|
|
@@ -25931,9 +25931,9 @@ function znt() {
|
|
|
25931
25931
|
function J(ot, ct, mt, vt, yt, $t) {
|
|
25932
25932
|
var Tt = ot[ct], ut = q(Tt);
|
|
25933
25933
|
if (ut !== H) {
|
|
25934
|
-
var
|
|
25934
|
+
var ft = G(Tt);
|
|
25935
25935
|
return new m(
|
|
25936
|
-
"Invalid " + vt + " `" + yt + "` of type " + ("`" +
|
|
25936
|
+
"Invalid " + vt + " `" + yt + "` of type " + ("`" + ft + "` supplied to `" + mt + "`, expected ") + ("`" + H + "`."),
|
|
25937
25937
|
{ expectedType: H }
|
|
25938
25938
|
);
|
|
25939
25939
|
}
|
|
@@ -25954,9 +25954,9 @@ function znt() {
|
|
|
25954
25954
|
return new m("Invalid " + vt + " `" + yt + "` of type " + ("`" + Tt + "` supplied to `" + mt + "`, expected an array."));
|
|
25955
25955
|
}
|
|
25956
25956
|
for (var ut = 0; ut < $t.length; ut++) {
|
|
25957
|
-
var
|
|
25958
|
-
if (
|
|
25959
|
-
return
|
|
25957
|
+
var ft = H($t, ut, mt, vt, yt + "[" + ut + "]", n);
|
|
25958
|
+
if (ft instanceof Error)
|
|
25959
|
+
return ft;
|
|
25960
25960
|
}
|
|
25961
25961
|
return null;
|
|
25962
25962
|
}
|
|
@@ -26020,9 +26020,9 @@ function znt() {
|
|
|
26020
26020
|
return new m("Invalid " + vt + " `" + yt + "` of type " + ("`" + Tt + "` supplied to `" + mt + "`, expected an object."));
|
|
26021
26021
|
for (var ut in $t)
|
|
26022
26022
|
if (r($t, ut)) {
|
|
26023
|
-
var
|
|
26024
|
-
if (
|
|
26025
|
-
return
|
|
26023
|
+
var ft = H($t, ut, mt, vt, yt + "." + ut, n);
|
|
26024
|
+
if (ft instanceof Error)
|
|
26025
|
+
return ft;
|
|
26026
26026
|
}
|
|
26027
26027
|
return null;
|
|
26028
26028
|
}
|
|
@@ -26039,8 +26039,8 @@ function znt() {
|
|
|
26039
26039
|
), s;
|
|
26040
26040
|
}
|
|
26041
26041
|
function ct(mt, vt, yt, $t, Tt) {
|
|
26042
|
-
for (var ut = [],
|
|
26043
|
-
var Nt = H[
|
|
26042
|
+
for (var ut = [], ft = 0; ft < H.length; ft++) {
|
|
26043
|
+
var Nt = H[ft], nt = Nt(mt, vt, yt, $t, Tt, n);
|
|
26044
26044
|
if (nt == null)
|
|
26045
26045
|
return null;
|
|
26046
26046
|
nt.data && r(nt.data, "expectedType") && ut.push(nt.data.expectedType);
|
|
@@ -26067,10 +26067,10 @@ function znt() {
|
|
|
26067
26067
|
if (Tt !== "object")
|
|
26068
26068
|
return new m("Invalid " + vt + " `" + yt + "` of type `" + Tt + "` " + ("supplied to `" + mt + "`, expected `object`."));
|
|
26069
26069
|
for (var ut in H) {
|
|
26070
|
-
var
|
|
26071
|
-
if (typeof
|
|
26072
|
-
return D(mt, vt, yt, ut, G(
|
|
26073
|
-
var Nt =
|
|
26070
|
+
var ft = H[ut];
|
|
26071
|
+
if (typeof ft != "function")
|
|
26072
|
+
return D(mt, vt, yt, ut, G(ft));
|
|
26073
|
+
var Nt = ft($t, ut, mt, vt, yt + "." + ut, n);
|
|
26074
26074
|
if (Nt)
|
|
26075
26075
|
return Nt;
|
|
26076
26076
|
}
|
|
@@ -26084,16 +26084,16 @@ function znt() {
|
|
|
26084
26084
|
if (Tt !== "object")
|
|
26085
26085
|
return new m("Invalid " + vt + " `" + yt + "` of type `" + Tt + "` " + ("supplied to `" + mt + "`, expected `object`."));
|
|
26086
26086
|
var ut = t({}, ot[ct], H);
|
|
26087
|
-
for (var
|
|
26088
|
-
var Nt = H[
|
|
26089
|
-
if (r(H,
|
|
26090
|
-
return D(mt, vt, yt,
|
|
26087
|
+
for (var ft in ut) {
|
|
26088
|
+
var Nt = H[ft];
|
|
26089
|
+
if (r(H, ft) && typeof Nt != "function")
|
|
26090
|
+
return D(mt, vt, yt, ft, G(Nt));
|
|
26091
26091
|
if (!Nt)
|
|
26092
26092
|
return new m(
|
|
26093
|
-
"Invalid " + vt + " `" + yt + "` key `" +
|
|
26093
|
+
"Invalid " + vt + " `" + yt + "` key `" + ft + "` supplied to `" + mt + "`.\nBad object: " + JSON.stringify(ot[ct], null, " ") + `
|
|
26094
26094
|
Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
26095
26095
|
);
|
|
26096
|
-
var nt = Nt($t,
|
|
26096
|
+
var nt = Nt($t, ft, mt, vt, yt + "." + ft, n);
|
|
26097
26097
|
if (nt)
|
|
26098
26098
|
return nt;
|
|
26099
26099
|
}
|
|
@@ -27538,7 +27538,7 @@ var JA = function(t, n, r, i, o) {
|
|
|
27538
27538
|
var c = n.x, h = n.y, u = n.width, f = n.height, p = n.radius, g = n.className, x = n.animationEasing, m = n.animationDuration, v = n.animationBegin, _ = n.isAnimationActive, S = n.isUpdateAnimationActive;
|
|
27539
27539
|
if (c !== +c || h !== +h || u !== +u || f !== +f || u === 0 || f === 0)
|
|
27540
27540
|
return null;
|
|
27541
|
-
var A =
|
|
27541
|
+
var A = me("recharts-rectangle", g);
|
|
27542
27542
|
return S ? /* @__PURE__ */ b.createElement(ji, {
|
|
27543
27543
|
canBegin: s > 0,
|
|
27544
27544
|
from: {
|
|
@@ -27658,7 +27658,7 @@ var tE = function(t) {
|
|
|
27658
27658
|
var n = t.points, r = t.className, i = t.baseLinePoints, o = t.connectNulls, s = Rit(t, Lit);
|
|
27659
27659
|
if (!n || !n.length)
|
|
27660
27660
|
return null;
|
|
27661
|
-
var a =
|
|
27661
|
+
var a = me("recharts-polygon", r);
|
|
27662
27662
|
if (i && i.length) {
|
|
27663
27663
|
var c = s.stroke && s.stroke !== "none", h = Vit(n, i, o);
|
|
27664
27664
|
return /* @__PURE__ */ b.createElement("g", {
|
|
@@ -27693,7 +27693,7 @@ function _b() {
|
|
|
27693
27693
|
}, _b.apply(this, arguments);
|
|
27694
27694
|
}
|
|
27695
27695
|
var Km = function(t) {
|
|
27696
|
-
var n = t.cx, r = t.cy, i = t.r, o = t.className, s =
|
|
27696
|
+
var n = t.cx, r = t.cy, i = t.r, o = t.className, s = me("recharts-dot", o);
|
|
27697
27697
|
return n === +n && r === +r && i === +i ? /* @__PURE__ */ Er.createElement("circle", _b({}, Gt(t, !1), Qd(t), {
|
|
27698
27698
|
className: s,
|
|
27699
27699
|
cx: n,
|
|
@@ -27790,7 +27790,7 @@ var Jit = function(t, n, r, i, o, s) {
|
|
|
27790
27790
|
height: g
|
|
27791
27791
|
}, m);
|
|
27792
27792
|
return !At(r) || !At(o) || !At(f) || !At(g) || !At(a) || !At(h) ? null : /* @__PURE__ */ b.createElement("path", Sb({}, Gt(v, !0), {
|
|
27793
|
-
className:
|
|
27793
|
+
className: me("recharts-cross", x),
|
|
27794
27794
|
d: Jit(r, o, f, g, a, h)
|
|
27795
27795
|
}));
|
|
27796
27796
|
}, tot = qm, eot = kk, not = fo;
|
|
@@ -28019,7 +28019,7 @@ var Jm = /* @__PURE__ */ function(e) {
|
|
|
28019
28019
|
payload: m
|
|
28020
28020
|
});
|
|
28021
28021
|
return /* @__PURE__ */ b.createElement(Pe, ph({
|
|
28022
|
-
className:
|
|
28022
|
+
className: me("recharts-polar-radius-axis-tick", s$(s)),
|
|
28023
28023
|
key: "tick-".concat(m.coordinate)
|
|
28024
28024
|
}, Fs(r.props, m, v)), t.renderTickItem(s, S, c ? c(m.value, v) : m.value));
|
|
28025
28025
|
});
|
|
@@ -28032,7 +28032,7 @@ var Jm = /* @__PURE__ */ function(e) {
|
|
|
28032
28032
|
value: function() {
|
|
28033
28033
|
var r = this.props, i = r.ticks, o = r.axisLine, s = r.tick;
|
|
28034
28034
|
return !i || !i.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
28035
|
-
className:
|
|
28035
|
+
className: me("recharts-polar-radius-axis", this.props.className)
|
|
28036
28036
|
}, o && this.renderAxisLine(), s && this.renderTicks(), Zn.renderCallByParent(this.props, this.getViewBox()));
|
|
28037
28037
|
}
|
|
28038
28038
|
}], [{
|
|
@@ -28247,7 +28247,7 @@ var Oot = Math.PI / 180, aE = 1e-5, tg = /* @__PURE__ */ function(e) {
|
|
|
28247
28247
|
y: v.y2
|
|
28248
28248
|
});
|
|
28249
28249
|
return /* @__PURE__ */ b.createElement(Pe, ka({
|
|
28250
|
-
className:
|
|
28250
|
+
className: me("recharts-polar-angle-axis-tick", s$(s)),
|
|
28251
28251
|
key: "tick-".concat(x.coordinate)
|
|
28252
28252
|
}, Fs(r.props, x, m)), a && /* @__PURE__ */ b.createElement("line", ka({
|
|
28253
28253
|
className: "recharts-polar-angle-axis-tick-line"
|
|
@@ -28262,7 +28262,7 @@ var Oot = Math.PI / 180, aE = 1e-5, tg = /* @__PURE__ */ function(e) {
|
|
|
28262
28262
|
value: function() {
|
|
28263
28263
|
var r = this.props, i = r.ticks, o = r.radius, s = r.axisLine;
|
|
28264
28264
|
return o <= 0 || !i || !i.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
28265
|
-
className:
|
|
28265
|
+
className: me("recharts-polar-angle-axis", this.props.className)
|
|
28266
28266
|
}, s && this.renderAxisLine(), this.renderTicks());
|
|
28267
28267
|
}
|
|
28268
28268
|
}], [{
|
|
@@ -28432,7 +28432,7 @@ var hE = function(t, n, r, i, o) {
|
|
|
28432
28432
|
var c = n.x, h = n.y, u = n.upperWidth, f = n.lowerWidth, p = n.height, g = n.className, x = n.animationEasing, m = n.animationDuration, v = n.animationBegin, _ = n.isUpdateAnimationActive;
|
|
28433
28433
|
if (c !== +c || h !== +h || u !== +u || f !== +f || p !== +p || u === 0 && f === 0 || p === 0)
|
|
28434
28434
|
return null;
|
|
28435
|
-
var S =
|
|
28435
|
+
var S = me("recharts-trapezoid", g);
|
|
28436
28436
|
return _ ? /* @__PURE__ */ b.createElement(ji, {
|
|
28437
28437
|
canBegin: s > 0,
|
|
28438
28438
|
from: {
|
|
@@ -28918,7 +28918,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28918
28918
|
var r = this, i = this.props, o = i.hide, s = i.sectors, a = i.className, c = i.label, h = i.cx, u = i.cy, f = i.innerRadius, p = i.outerRadius, g = i.isAnimationActive, x = this.state.isAnimationFinished;
|
|
28919
28919
|
if (o || !s || !s.length || !At(h) || !At(u) || !At(f) || !At(p))
|
|
28920
28920
|
return null;
|
|
28921
|
-
var m =
|
|
28921
|
+
var m = me("recharts-pie", a);
|
|
28922
28922
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
28923
28923
|
tabIndex: this.props.rootTabIndex,
|
|
28924
28924
|
className: m,
|
|
@@ -28958,7 +28958,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28958
28958
|
return /* @__PURE__ */ b.cloneElement(r, i);
|
|
28959
28959
|
if (re(r))
|
|
28960
28960
|
return r(i);
|
|
28961
|
-
var s =
|
|
28961
|
+
var s = me("recharts-pie-label-line", typeof r != "boolean" ? r.className : "");
|
|
28962
28962
|
return /* @__PURE__ */ b.createElement(Ua, nc({}, i, {
|
|
28963
28963
|
key: o,
|
|
28964
28964
|
type: "linear",
|
|
@@ -28973,7 +28973,7 @@ var Qo = /* @__PURE__ */ function(e) {
|
|
|
28973
28973
|
var s = o;
|
|
28974
28974
|
if (re(r) && (s = r(i), /* @__PURE__ */ b.isValidElement(s)))
|
|
28975
28975
|
return s;
|
|
28976
|
-
var a =
|
|
28976
|
+
var a = me("recharts-pie-label-text", typeof r != "boolean" && !re(r) ? r.className : "");
|
|
28977
28977
|
return /* @__PURE__ */ b.createElement(Ja, nc({}, i, {
|
|
28978
28978
|
alignmentBaseline: "middle",
|
|
28979
28979
|
className: a
|
|
@@ -29525,7 +29525,7 @@ var tat = function(t) {
|
|
|
29525
29525
|
var r = this.props, i = r.data, o = r.className, s = r.children, a = r.x, c = r.y, h = r.width, u = r.height, f = r.alwaysShowText, p = this.state, g = p.startX, x = p.endX, m = p.isTextActive, v = p.isSlideMoving, _ = p.isTravellerMoving, S = p.isTravellerFocused;
|
|
29526
29526
|
if (!i || !i.length || !At(a) || !At(c) || !At(h) || !At(u) || h <= 0 || u <= 0)
|
|
29527
29527
|
return null;
|
|
29528
|
-
var A =
|
|
29528
|
+
var A = me("recharts-brush", o), T = b.Children.count(s) === 1, w = qst("userSelect", "none");
|
|
29529
29529
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
29530
29530
|
className: A,
|
|
29531
29531
|
onMouseLeave: this.handleLeaveWrapper,
|
|
@@ -30077,7 +30077,7 @@ var fl = /* @__PURE__ */ function(e) {
|
|
|
30077
30077
|
var r = this.props, i = r.hide, o = r.data, s = r.className, a = r.xAxis, c = r.yAxis, h = r.left, u = r.top, f = r.width, p = r.height, g = r.isAnimationActive, x = r.background, m = r.id;
|
|
30078
30078
|
if (i || !o || !o.length)
|
|
30079
30079
|
return null;
|
|
30080
|
-
var v = this.state.isAnimationFinished, _ =
|
|
30080
|
+
var v = this.state.isAnimationFinished, _ = me("recharts-bar", s), S = a && a.allowDataOverflow, A = c && c.allowDataOverflow, T = S || A, w = ie(m) ? this.id : m;
|
|
30081
30081
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30082
30082
|
className: _
|
|
30083
30083
|
}, S || A ? /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("clipPath", {
|
|
@@ -30724,7 +30724,7 @@ function Wlt(e) {
|
|
|
30724
30724
|
y2: I
|
|
30725
30725
|
});
|
|
30726
30726
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30727
|
-
className:
|
|
30727
|
+
className: me("recharts-reference-line", a)
|
|
30728
30728
|
}, zlt(s, z), Zn.renderCallByParent(e, Qat({
|
|
30729
30729
|
x1: T,
|
|
30730
30730
|
y1: w,
|
|
@@ -30895,7 +30895,7 @@ var Xlt = function(t) {
|
|
|
30895
30895
|
cy: g
|
|
30896
30896
|
});
|
|
30897
30897
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
30898
|
-
className:
|
|
30898
|
+
className: me("recharts-reference-dot", v)
|
|
30899
30899
|
}, t.renderDot(m, S), Zn.renderCallByParent(this.props, {
|
|
30900
30900
|
x: p - s,
|
|
30901
30901
|
y: g - s,
|
|
@@ -31073,7 +31073,7 @@ var sct = function(t, n, r, i, o) {
|
|
|
31073
31073
|
return null;
|
|
31074
31074
|
var _ = co(this.props, "hidden") ? "url(#".concat(u, ")") : void 0;
|
|
31075
31075
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
31076
|
-
className:
|
|
31076
|
+
className: me("recharts-reference-area", c)
|
|
31077
31077
|
}, t.renderRect(m, RE(RE({
|
|
31078
31078
|
clipPath: _
|
|
31079
31079
|
}, Gt(this.props, !0)), v)), Zn.renderCallByParent(this.props, v));
|
|
@@ -31529,7 +31529,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31529
31529
|
});
|
|
31530
31530
|
}
|
|
31531
31531
|
return /* @__PURE__ */ b.createElement("line", rc({}, f, {
|
|
31532
|
-
className:
|
|
31532
|
+
className: me("recharts-cartesian-axis-line", ti(u, "className"))
|
|
31533
31533
|
}));
|
|
31534
31534
|
}
|
|
31535
31535
|
}, {
|
|
@@ -31564,7 +31564,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31564
31564
|
className: "recharts-cartesian-axis-tick",
|
|
31565
31565
|
key: "tick-".concat(T.value, "-").concat(T.coordinate, "-").concat(T.tickCoord)
|
|
31566
31566
|
}, Fs(s.props, T, w)), c && /* @__PURE__ */ b.createElement("line", rc({}, S, k, {
|
|
31567
|
-
className:
|
|
31567
|
+
className: me("recharts-cartesian-axis-tick-line", ti(c, "className"))
|
|
31568
31568
|
})), u && t.renderTickItem(u, N, "".concat(re(f) ? f(T.value, w) : T.value).concat(p || "")));
|
|
31569
31569
|
});
|
|
31570
31570
|
return /* @__PURE__ */ b.createElement("g", {
|
|
@@ -31580,7 +31580,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31580
31580
|
return null;
|
|
31581
31581
|
var f = this.props, p = f.ticks, g = Dy(f, vct), x = p;
|
|
31582
31582
|
return re(c) && (x = p && p.length > 0 ? c(this.props) : c(g)), s <= 0 || a <= 0 || !x || !x.length ? null : /* @__PURE__ */ b.createElement(Pe, {
|
|
31583
|
-
className:
|
|
31583
|
+
className: me("recharts-cartesian-axis", h),
|
|
31584
31584
|
ref: function(v) {
|
|
31585
31585
|
r.layerReference = v;
|
|
31586
31586
|
}
|
|
@@ -31589,7 +31589,7 @@ var du = /* @__PURE__ */ function(e) {
|
|
|
31589
31589
|
}], [{
|
|
31590
31590
|
key: "renderTickItem",
|
|
31591
31591
|
value: function(r, i, o) {
|
|
31592
|
-
var s, a =
|
|
31592
|
+
var s, a = me(i.className, "recharts-cartesian-axis-tick-value");
|
|
31593
31593
|
return /* @__PURE__ */ b.isValidElement(r) ? s = /* @__PURE__ */ b.cloneElement(r, Nn(Nn({}, i), {}, {
|
|
31594
31594
|
className: a
|
|
31595
31595
|
})) : re(r) ? s = r(Nn(Nn({}, i), {}, {
|
|
@@ -32254,7 +32254,7 @@ var Ks = /* @__PURE__ */ function(e) {
|
|
|
32254
32254
|
var r, i = this.props, o = i.hide, s = i.dot, a = i.points, c = i.className, h = i.top, u = i.left, f = i.xAxis, p = i.yAxis, g = i.width, x = i.height, m = i.isAnimationActive, v = i.id;
|
|
32255
32255
|
if (o || !a || !a.length)
|
|
32256
32256
|
return null;
|
|
32257
|
-
var _ = this.state.isAnimationFinished, S = a.length === 1, A =
|
|
32257
|
+
var _ = this.state.isAnimationFinished, S = a.length === 1, A = me("recharts-area", c), T = f && f.allowDataOverflow, w = p && p.allowDataOverflow, E = T || w, k = ie(v) ? this.id : v, I = (r = Gt(s, !1)) !== null && r !== void 0 ? r : {
|
|
32258
32258
|
r: 3,
|
|
32259
32259
|
strokeWidth: 2
|
|
32260
32260
|
}, N = I.r, z = N === void 0 ? 3 : N, D = I.strokeWidth, R = D === void 0 ? 2 : D, U = u8(s) ? s : {}, W = U.clipDot, F = W === void 0 ? !0 : W, q = z * 2 + R;
|
|
@@ -32375,7 +32375,7 @@ ro(Ks, "renderDotItem", function(e, t) {
|
|
|
32375
32375
|
else if (re(e))
|
|
32376
32376
|
n = e(t);
|
|
32377
32377
|
else {
|
|
32378
|
-
var r =
|
|
32378
|
+
var r = me("recharts-area-dot", typeof e != "boolean" ? e.className : ""), i = t.key, o = n2(t, Fct);
|
|
32379
32379
|
n = /* @__PURE__ */ b.createElement(Km, ja({}, o, {
|
|
32380
32380
|
key: i,
|
|
32381
32381
|
className: r
|
|
@@ -32780,7 +32780,7 @@ var Af = /* @__PURE__ */ function(e) {
|
|
|
32780
32780
|
var r = this.props, i = r.hide, o = r.points, s = r.line, a = r.className, c = r.xAxis, h = r.yAxis, u = r.left, f = r.top, p = r.width, g = r.height, x = r.id, m = r.isAnimationActive;
|
|
32781
32781
|
if (i || !o || !o.length)
|
|
32782
32782
|
return null;
|
|
32783
|
-
var v = this.state.isAnimationFinished, _ =
|
|
32783
|
+
var v = this.state.isAnimationFinished, _ = me("recharts-scatter", a), S = c && c.allowDataOverflow, A = h && h.allowDataOverflow, T = S || A, w = ie(x) ? this.id : x;
|
|
32784
32784
|
return /* @__PURE__ */ b.createElement(Pe, {
|
|
32785
32785
|
className: _,
|
|
32786
32786
|
clipPath: T ? "url(#clipPath-".concat(w, ")") : null
|
|
@@ -32985,7 +32985,7 @@ function Sut(e) {
|
|
|
32985
32985
|
return i == null ? null : (
|
|
32986
32986
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
32987
32987
|
/* @__PURE__ */ Er.createElement(du, Fb({}, i, {
|
|
32988
|
-
className:
|
|
32988
|
+
className: me("recharts-".concat(i.axisType, " ").concat(i.axisType), i.className),
|
|
32989
32989
|
viewBox: {
|
|
32990
32990
|
x: 0,
|
|
32991
32991
|
y: 0,
|
|
@@ -33122,7 +33122,7 @@ var $ut = function(t) {
|
|
|
33122
33122
|
return o == null ? null : (
|
|
33123
33123
|
// @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting.
|
|
33124
33124
|
/* @__PURE__ */ Er.createElement(du, Vb({}, o, {
|
|
33125
|
-
className:
|
|
33125
|
+
className: me("recharts-".concat(o.axisType, " ").concat(o.axisType), o.className),
|
|
33126
33126
|
viewBox: {
|
|
33127
33127
|
x: 0,
|
|
33128
33128
|
y: 0,
|
|
@@ -33536,7 +33536,7 @@ function Kut(e) {
|
|
|
33536
33536
|
}, c), x), Gt(g, !1)), {}, {
|
|
33537
33537
|
payload: a,
|
|
33538
33538
|
payloadIndex: h,
|
|
33539
|
-
className:
|
|
33539
|
+
className: me("recharts-tooltip-cursor", g.className)
|
|
33540
33540
|
});
|
|
33541
33541
|
return /* @__PURE__ */ xi(g) ? /* @__PURE__ */ Dn(g, E) : /* @__PURE__ */ e0(m, E);
|
|
33542
33542
|
}
|
|
@@ -33696,7 +33696,7 @@ function KE(e, t) {
|
|
|
33696
33696
|
}
|
|
33697
33697
|
return n;
|
|
33698
33698
|
}
|
|
33699
|
-
function
|
|
33699
|
+
function pt(e) {
|
|
33700
33700
|
for (var t = 1; t < arguments.length; t++) {
|
|
33701
33701
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
33702
33702
|
t % 2 ? KE(Object(n), !0).forEach(function(r) {
|
|
@@ -33756,13 +33756,13 @@ var ght = function(t, n) {
|
|
|
33756
33756
|
};
|
|
33757
33757
|
if (t === "centric") {
|
|
33758
33758
|
var s = o.coordinate, a = i.radius;
|
|
33759
|
-
return
|
|
33759
|
+
return pt(pt(pt({}, i), on(i.cx, i.cy, a, s)), {}, {
|
|
33760
33760
|
angle: s,
|
|
33761
33761
|
radius: a
|
|
33762
33762
|
});
|
|
33763
33763
|
}
|
|
33764
33764
|
var c = o.coordinate, h = i.angle;
|
|
33765
|
-
return
|
|
33765
|
+
return pt(pt(pt({}, i), on(i.cx, i.cy, c, h)), {}, {
|
|
33766
33766
|
angle: h,
|
|
33767
33767
|
radius: c
|
|
33768
33768
|
});
|
|
@@ -33811,7 +33811,7 @@ var Zb = function(t, n, r, i) {
|
|
|
33811
33811
|
}, vht = function(t, n) {
|
|
33812
33812
|
var r = n.axes, i = n.graphicalItems, o = n.axisType, s = n.axisIdKey, a = n.stackGroups, c = n.dataStartIndex, h = n.dataEndIndex, u = t.layout, f = t.children, p = t.stackOffset, g = Xk(u, o);
|
|
33813
33813
|
return r.reduce(function(x, m) {
|
|
33814
|
-
var v, _ = m.type.defaultProps !== void 0 ?
|
|
33814
|
+
var v, _ = m.type.defaultProps !== void 0 ? pt(pt({}, m.type.defaultProps), m.props) : m.props, S = _.type, A = _.dataKey, T = _.allowDataOverflow, w = _.allowDuplicatedCategory, E = _.scale, k = _.ticks, I = _.includeHidden, N = _[s];
|
|
33815
33815
|
if (x[N])
|
|
33816
33816
|
return x;
|
|
33817
33817
|
var z = cg(t.data, {
|
|
@@ -33859,7 +33859,7 @@ var Zb = function(t, n, r, i) {
|
|
|
33859
33859
|
J && (R = H);
|
|
33860
33860
|
}
|
|
33861
33861
|
}
|
|
33862
|
-
return
|
|
33862
|
+
return pt(pt({}, x), {}, ee({}, N, pt(pt({}, _), {}, {
|
|
33863
33863
|
axisType: o,
|
|
33864
33864
|
domain: R,
|
|
33865
33865
|
categoricalDomain: W,
|
|
@@ -33876,14 +33876,14 @@ var Zb = function(t, n, r, i) {
|
|
|
33876
33876
|
dataEndIndex: h
|
|
33877
33877
|
}), g = p.length, x = Xk(u, o), m = -1;
|
|
33878
33878
|
return r.reduce(function(v, _) {
|
|
33879
|
-
var S = _.type.defaultProps !== void 0 ?
|
|
33879
|
+
var S = _.type.defaultProps !== void 0 ? pt(pt({}, _.type.defaultProps), _.props) : _.props, A = S[s], T = S2("number");
|
|
33880
33880
|
if (!v[A]) {
|
|
33881
33881
|
m++;
|
|
33882
33882
|
var w;
|
|
33883
33883
|
return x ? w = Vp(0, g) : a && a[A] && a[A].hasStack ? (w = n$(a[A].stackGroups, c, h), w = Hb(f, w, A, o)) : (w = sb(T, Kk(p, r.filter(function(E) {
|
|
33884
33884
|
var k, I, N = s in E.props ? E.props[s] : (k = E.type.defaultProps) === null || k === void 0 ? void 0 : k[s], z = "hide" in E.props ? E.props.hide : (I = E.type.defaultProps) === null || I === void 0 ? void 0 : I.hide;
|
|
33885
33885
|
return N === A && !z;
|
|
33886
|
-
}), "number", u), i.defaultProps.allowDataOverflow), w = Hb(f, w, A, o)),
|
|
33886
|
+
}), "number", u), i.defaultProps.allowDataOverflow), w = Hb(f, w, A, o)), pt(pt({}, v), {}, ee({}, A, pt(pt({
|
|
33887
33887
|
axisType: o
|
|
33888
33888
|
}, i.defaultProps), {}, {
|
|
33889
33889
|
hide: !0,
|
|
@@ -33959,20 +33959,20 @@ var Zb = function(t, n, r, i) {
|
|
|
33959
33959
|
}, Sht = function(t, n) {
|
|
33960
33960
|
var r = t.props, i = t.graphicalItems, o = t.xAxisMap, s = o === void 0 ? {} : o, a = t.yAxisMap, c = a === void 0 ? {} : a, h = r.width, u = r.height, f = r.children, p = r.margin || {}, g = Kr(f, Ic), x = Kr(f, Fa), m = Object.keys(c).reduce(function(w, E) {
|
|
33961
33961
|
var k = c[E], I = k.orientation;
|
|
33962
|
-
return !k.mirror && !k.hide ?
|
|
33962
|
+
return !k.mirror && !k.hide ? pt(pt({}, w), {}, ee({}, I, w[I] + k.width)) : w;
|
|
33963
33963
|
}, {
|
|
33964
33964
|
left: p.left || 0,
|
|
33965
33965
|
right: p.right || 0
|
|
33966
33966
|
}), v = Object.keys(s).reduce(function(w, E) {
|
|
33967
33967
|
var k = s[E], I = k.orientation;
|
|
33968
|
-
return !k.mirror && !k.hide ?
|
|
33968
|
+
return !k.mirror && !k.hide ? pt(pt({}, w), {}, ee({}, I, ti(w, "".concat(I)) + k.height)) : w;
|
|
33969
33969
|
}, {
|
|
33970
33970
|
top: p.top || 0,
|
|
33971
33971
|
bottom: p.bottom || 0
|
|
33972
|
-
}), _ =
|
|
33972
|
+
}), _ = pt(pt({}, v), m), S = _.bottom;
|
|
33973
33973
|
g && (_.bottom += g.props.height || Ic.defaultProps.height), x && n && (_ = get(_, i, r, n));
|
|
33974
33974
|
var A = h - _.left - _.right, T = u - _.top - _.bottom;
|
|
33975
|
-
return
|
|
33975
|
+
return pt(pt({
|
|
33976
33976
|
brushBottom: S
|
|
33977
33977
|
}, _), {}, {
|
|
33978
33978
|
// never return negative values for height and width
|
|
@@ -33992,30 +33992,30 @@ var Zb = function(t, n, r, i) {
|
|
|
33992
33992
|
graphicalItems: [st],
|
|
33993
33993
|
dataStartIndex: k,
|
|
33994
33994
|
dataEndIndex: I
|
|
33995
|
-
}), ot = st.type.defaultProps !== void 0 ?
|
|
33995
|
+
}), ot = st.type.defaultProps !== void 0 ? pt(pt({}, st.type.defaultProps), st.props) : st.props, ct = ot.dataKey, mt = ot.maxBarSize, vt = ot["".concat(F, "Id")], yt = ot["".concat(q, "Id")], $t = {}, Tt = c.reduce(function(Sn, Xe) {
|
|
33996
33996
|
var Je, dr, pr = S["".concat(Xe.axisType, "Map")], rr = ot["".concat(Xe.axisType, "Id")];
|
|
33997
33997
|
pr && pr[rr] || Xe.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? Rr(!1, "Specifying a(n) ".concat(Xe.axisType, "Id requires a corresponding ").concat(
|
|
33998
33998
|
Xe.axisType,
|
|
33999
33999
|
"Id on the targeted graphical component "
|
|
34000
34000
|
).concat((Je = st == null || (dr = st.type) === null || dr === void 0 ? void 0 : dr.displayName) !== null && Je !== void 0 ? Je : "")) : Rr());
|
|
34001
34001
|
var Ve = pr[rr];
|
|
34002
|
-
return
|
|
34003
|
-
}, $t), ut = Tt[q],
|
|
34002
|
+
return pt(pt({}, Sn), {}, ee(ee({}, Xe.axisType, Ve), "".concat(Xe.axisType, "Ticks"), jo(Ve)));
|
|
34003
|
+
}, $t), ut = Tt[q], ft = Tt["".concat(q, "Ticks")], Nt = T && T[vt] && T[vt].hasStack && Cet(st, T[vt].stackGroups), nt = zo(st.type).indexOf("Bar") >= 0, St = Cp(ut, ft), dt = [], Jt = G && pet({
|
|
34004
34004
|
barSize: N,
|
|
34005
34005
|
stackGroups: T,
|
|
34006
34006
|
totalSize: Pht(Tt, q)
|
|
34007
34007
|
});
|
|
34008
34008
|
if (nt) {
|
|
34009
|
-
var
|
|
34010
|
-
|
|
34009
|
+
var de, Ce, ae = ie(mt) ? U : mt, sn = (de = (Ce = Cp(ut, ft, !0)) !== null && Ce !== void 0 ? Ce : ae) !== null && de !== void 0 ? de : 0;
|
|
34010
|
+
dt = met({
|
|
34011
34011
|
barGap: D,
|
|
34012
34012
|
barCategoryGap: R,
|
|
34013
34013
|
bandSize: sn !== St ? sn : St,
|
|
34014
34014
|
sizeList: Jt[yt],
|
|
34015
34015
|
maxBarSize: ae
|
|
34016
|
-
}), sn !== St && (
|
|
34017
|
-
return
|
|
34018
|
-
position:
|
|
34016
|
+
}), sn !== St && (dt = dt.map(function(Sn) {
|
|
34017
|
+
return pt(pt({}, Sn), {}, {
|
|
34018
|
+
position: pt(pt({}, Sn.position), {}, {
|
|
34019
34019
|
offset: Sn.position.offset - sn / 2
|
|
34020
34020
|
})
|
|
34021
34021
|
});
|
|
@@ -34023,13 +34023,13 @@ var Zb = function(t, n, r, i) {
|
|
|
34023
34023
|
}
|
|
34024
34024
|
var We = st && st.type && st.type.getComposedData;
|
|
34025
34025
|
We && et.push({
|
|
34026
|
-
props:
|
|
34026
|
+
props: pt(pt({}, We(pt(pt({}, Tt), {}, {
|
|
34027
34027
|
displayedData: J,
|
|
34028
34028
|
props: _,
|
|
34029
34029
|
dataKey: ct,
|
|
34030
34030
|
item: st,
|
|
34031
34031
|
bandSize: St,
|
|
34032
|
-
barPosition:
|
|
34032
|
+
barPosition: dt,
|
|
34033
34033
|
offset: w,
|
|
34034
34034
|
stackedData: Nt,
|
|
34035
34035
|
layout: z,
|
|
@@ -34050,20 +34050,20 @@ var Zb = function(t, n, r, i) {
|
|
|
34050
34050
|
return null;
|
|
34051
34051
|
var k = A.children, I = A.layout, N = A.stackOffset, z = A.data, D = A.reverseStackOrder, R = QE(I), U = R.numericAxisName, W = R.cateAxisName, F = jr(k, r), q = Eet(z, F, "".concat(U, "Id"), "".concat(W, "Id"), N, D), G = c.reduce(function(ot, ct) {
|
|
34052
34052
|
var mt = "".concat(ct.axisType, "Map");
|
|
34053
|
-
return
|
|
34053
|
+
return pt(pt({}, ot), {}, ee({}, mt, xht(A, pt(pt({}, ct), {}, {
|
|
34054
34054
|
graphicalItems: F,
|
|
34055
34055
|
stackGroups: ct.axisType === U && q,
|
|
34056
34056
|
dataStartIndex: T,
|
|
34057
34057
|
dataEndIndex: w
|
|
34058
34058
|
}))));
|
|
34059
|
-
}, {}), et = Sht(
|
|
34059
|
+
}, {}), et = Sht(pt(pt({}, G), {}, {
|
|
34060
34060
|
props: A,
|
|
34061
34061
|
graphicalItems: F
|
|
34062
34062
|
}), S == null ? void 0 : S.legendBBox);
|
|
34063
34063
|
Object.keys(G).forEach(function(ot) {
|
|
34064
34064
|
G[ot] = u(A, G[ot], et, ot.replace("Map", ""), n);
|
|
34065
34065
|
});
|
|
34066
|
-
var st = G["".concat(W, "Map")], H = wht(st), J = p(A,
|
|
34066
|
+
var st = G["".concat(W, "Map")], H = wht(st), J = p(A, pt(pt({}, G), {}, {
|
|
34067
34067
|
dataStartIndex: T,
|
|
34068
34068
|
dataEndIndex: w,
|
|
34069
34069
|
updateId: E,
|
|
@@ -34071,7 +34071,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34071
34071
|
stackGroups: q,
|
|
34072
34072
|
offset: et
|
|
34073
34073
|
}));
|
|
34074
|
-
return
|
|
34074
|
+
return pt(pt({
|
|
34075
34075
|
formattedGraphicalItems: J,
|
|
34076
34076
|
graphicalItems: F,
|
|
34077
34077
|
offset: et,
|
|
@@ -34083,14 +34083,14 @@ var Zb = function(t, n, r, i) {
|
|
|
34083
34083
|
return rht(this, _), w = sht(this, _, [S]), ee(w, "eventEmitterSymbol", Symbol("rechartsEventEmitter")), ee(w, "accessibilityManager", new Vut()), ee(w, "handleLegendBBoxUpdate", function(E) {
|
|
34084
34084
|
if (E) {
|
|
34085
34085
|
var k = w.state, I = k.dataStartIndex, N = k.dataEndIndex, z = k.updateId;
|
|
34086
|
-
w.setState(
|
|
34086
|
+
w.setState(pt({
|
|
34087
34087
|
legendBBox: E
|
|
34088
34088
|
}, g({
|
|
34089
34089
|
props: w.props,
|
|
34090
34090
|
dataStartIndex: I,
|
|
34091
34091
|
dataEndIndex: N,
|
|
34092
34092
|
updateId: z
|
|
34093
|
-
},
|
|
34093
|
+
}, pt(pt({}, w.state), {}, {
|
|
34094
34094
|
legendBBox: E
|
|
34095
34095
|
}))));
|
|
34096
34096
|
}
|
|
@@ -34105,7 +34105,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34105
34105
|
if (k !== w.state.dataStartIndex || I !== w.state.dataEndIndex) {
|
|
34106
34106
|
var N = w.state.updateId;
|
|
34107
34107
|
w.setState(function() {
|
|
34108
|
-
return
|
|
34108
|
+
return pt({
|
|
34109
34109
|
dataStartIndex: k,
|
|
34110
34110
|
dataEndIndex: I
|
|
34111
34111
|
}, g({
|
|
@@ -34122,7 +34122,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34122
34122
|
}), ee(w, "handleMouseEnter", function(E) {
|
|
34123
34123
|
var k = w.getMouseInfo(E);
|
|
34124
34124
|
if (k) {
|
|
34125
|
-
var I =
|
|
34125
|
+
var I = pt(pt({}, k), {}, {
|
|
34126
34126
|
isTooltipActive: !0
|
|
34127
34127
|
});
|
|
34128
34128
|
w.setState(I), w.triggerSyncEvent(I);
|
|
@@ -34130,7 +34130,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34130
34130
|
re(N) && N(I, E);
|
|
34131
34131
|
}
|
|
34132
34132
|
}), ee(w, "triggeredAfterMouseMove", function(E) {
|
|
34133
|
-
var k = w.getMouseInfo(E), I = k ?
|
|
34133
|
+
var k = w.getMouseInfo(E), I = k ? pt(pt({}, k), {}, {
|
|
34134
34134
|
isTooltipActive: !0
|
|
34135
34135
|
}) : {
|
|
34136
34136
|
isTooltipActive: !1
|
|
@@ -34175,7 +34175,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34175
34175
|
}), ee(w, "handleClick", function(E) {
|
|
34176
34176
|
var k = w.getMouseInfo(E);
|
|
34177
34177
|
if (k) {
|
|
34178
|
-
var I =
|
|
34178
|
+
var I = pt(pt({}, k), {}, {
|
|
34179
34179
|
isTooltipActive: !0
|
|
34180
34180
|
});
|
|
34181
34181
|
w.setState(I), w.triggerSyncEvent(I);
|
|
@@ -34217,7 +34217,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34217
34217
|
}), ee(w, "applySyncEvent", function(E) {
|
|
34218
34218
|
var k = w.props, I = k.layout, N = k.syncMethod, z = w.state.updateId, D = E.dataStartIndex, R = E.dataEndIndex;
|
|
34219
34219
|
if (E.dataStartIndex !== void 0 || E.dataEndIndex !== void 0)
|
|
34220
|
-
w.setState(
|
|
34220
|
+
w.setState(pt({
|
|
34221
34221
|
dataStartIndex: D,
|
|
34222
34222
|
dataEndIndex: R
|
|
34223
34223
|
}, g({
|
|
@@ -34240,14 +34240,14 @@ var Zb = function(t, n, r, i) {
|
|
|
34240
34240
|
break;
|
|
34241
34241
|
}
|
|
34242
34242
|
}
|
|
34243
|
-
var H =
|
|
34243
|
+
var H = pt(pt({}, G), {}, {
|
|
34244
34244
|
x: G.left,
|
|
34245
34245
|
y: G.top
|
|
34246
34246
|
}), J = Math.min(U, H.x + H.width), ot = Math.min(W, H.y + H.height), ct = et[F] && et[F].value, mt = Zb(w.state, w.props.data, F), vt = et[F] ? {
|
|
34247
34247
|
x: I === "horizontal" ? et[F].coordinate : J,
|
|
34248
34248
|
y: I === "horizontal" ? ot : et[F].coordinate
|
|
34249
34249
|
} : _2;
|
|
34250
|
-
w.setState(
|
|
34250
|
+
w.setState(pt(pt({}, E), {}, {
|
|
34251
34251
|
activeLabel: ct,
|
|
34252
34252
|
activeCoordinate: vt,
|
|
34253
34253
|
activePayload: mt,
|
|
@@ -34271,9 +34271,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34271
34271
|
tooltipEventType: F
|
|
34272
34272
|
});
|
|
34273
34273
|
}), ee(w, "renderPolarAxis", function(E, k, I) {
|
|
34274
|
-
var N = ti(E, "type.axisType"), z = ti(w.state, "".concat(N, "Map")), D = E.type.defaultProps, R = D !== void 0 ?
|
|
34275
|
-
return /* @__PURE__ */ Dn(E,
|
|
34276
|
-
className:
|
|
34274
|
+
var N = ti(E, "type.axisType"), z = ti(w.state, "".concat(N, "Map")), D = E.type.defaultProps, R = D !== void 0 ? pt(pt({}, D), E.props) : E.props, U = z && z[R["".concat(N, "Id")]];
|
|
34275
|
+
return /* @__PURE__ */ Dn(E, pt(pt({}, U), {}, {
|
|
34276
|
+
className: me(N, U.className),
|
|
34277
34277
|
key: E.key || "".concat(k, "-").concat(I),
|
|
34278
34278
|
ticks: jo(U, !0)
|
|
34279
34279
|
}));
|
|
@@ -34303,7 +34303,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34303
34303
|
if (!U)
|
|
34304
34304
|
return null;
|
|
34305
34305
|
var W = U.item, F = YE(U, Xut);
|
|
34306
|
-
return /* @__PURE__ */ Dn(W,
|
|
34306
|
+
return /* @__PURE__ */ Dn(W, pt(pt({}, F), {}, {
|
|
34307
34307
|
chartWidth: N,
|
|
34308
34308
|
chartHeight: z,
|
|
34309
34309
|
margin: D,
|
|
@@ -34315,7 +34315,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34315
34315
|
return null;
|
|
34316
34316
|
var D = w.state, R = D.isTooltipActive, U = D.activeCoordinate, W = D.activePayload, F = D.activeLabel, q = D.offset, G = (E = z.props.active) !== null && E !== void 0 ? E : R;
|
|
34317
34317
|
return /* @__PURE__ */ Dn(z, {
|
|
34318
|
-
viewBox:
|
|
34318
|
+
viewBox: pt(pt({}, q), {}, {
|
|
34319
34319
|
x: q.left,
|
|
34320
34320
|
y: q.top
|
|
34321
34321
|
}),
|
|
@@ -34355,7 +34355,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34355
34355
|
clipPathId: z
|
|
34356
34356
|
});
|
|
34357
34357
|
}), ee(w, "renderActivePoints", function(E) {
|
|
34358
|
-
var k = E.item, I = E.activePoint, N = E.basePoint, z = E.childIndex, D = E.isRange, R = [], U = k.props.key, W = k.item.type.defaultProps !== void 0 ?
|
|
34358
|
+
var k = E.item, I = E.activePoint, N = E.basePoint, z = E.childIndex, D = E.isRange, R = [], U = k.props.key, W = k.item.type.defaultProps !== void 0 ? pt(pt({}, k.item.type.defaultProps), k.item.props) : k.item.props, F = W.activeDot, q = W.dataKey, G = pt(pt({
|
|
34359
34359
|
index: z,
|
|
34360
34360
|
dataKey: q,
|
|
34361
34361
|
cx: I.x,
|
|
@@ -34367,7 +34367,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34367
34367
|
payload: I.payload,
|
|
34368
34368
|
value: I.value
|
|
34369
34369
|
}, Gt(F, !1)), Qd(F));
|
|
34370
|
-
return R.push(_.renderActiveDot(F, G, "".concat(U, "-activePoint-").concat(z))), N ? R.push(_.renderActiveDot(F,
|
|
34370
|
+
return R.push(_.renderActiveDot(F, G, "".concat(U, "-activePoint-").concat(z))), N ? R.push(_.renderActiveDot(F, pt(pt({}, G), {}, {
|
|
34371
34371
|
cx: N.x,
|
|
34372
34372
|
cy: N.y
|
|
34373
34373
|
}), "".concat(U, "-basePoint-").concat(z))) : D && R.push(null), R;
|
|
@@ -34375,29 +34375,29 @@ var Zb = function(t, n, r, i) {
|
|
|
34375
34375
|
var N = w.filterFormatItem(E, k, I);
|
|
34376
34376
|
if (!N)
|
|
34377
34377
|
return null;
|
|
34378
|
-
var z = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children, G = Kr(q, Xr), et = N.props, st = et.points, H = et.isRange, J = et.baseLine, ot = N.item.type.defaultProps !== void 0 ?
|
|
34378
|
+
var z = w.getTooltipEventType(), D = w.state, R = D.isTooltipActive, U = D.tooltipAxis, W = D.activeTooltipIndex, F = D.activeLabel, q = w.props.children, G = 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 && G && (ct || vt || yt)), Tt = {};
|
|
34379
34379
|
z !== "axis" && G && G.props.trigger === "click" ? Tt = {
|
|
34380
34380
|
onClick: wd(w.handleItemMouseEnter, E.props.onClick)
|
|
34381
34381
|
} : z !== "axis" && (Tt = {
|
|
34382
34382
|
onMouseLeave: wd(w.handleItemMouseLeave, E.props.onMouseLeave),
|
|
34383
34383
|
onMouseEnter: wd(w.handleItemMouseEnter, E.props.onMouseEnter)
|
|
34384
34384
|
});
|
|
34385
|
-
var ut = /* @__PURE__ */ Dn(E,
|
|
34386
|
-
function
|
|
34385
|
+
var ut = /* @__PURE__ */ Dn(E, pt(pt({}, N.props), Tt));
|
|
34386
|
+
function ft(Xe) {
|
|
34387
34387
|
return typeof U.dataKey == "function" ? U.dataKey(Xe.payload) : null;
|
|
34388
34388
|
}
|
|
34389
34389
|
if ($t)
|
|
34390
34390
|
if (W >= 0) {
|
|
34391
34391
|
var Nt, nt;
|
|
34392
34392
|
if (U.dataKey && !U.allowDuplicatedCategory) {
|
|
34393
|
-
var St = typeof U.dataKey == "function" ?
|
|
34393
|
+
var St = typeof U.dataKey == "function" ? ft : "payload.".concat(U.dataKey.toString());
|
|
34394
34394
|
Nt = Jd(st, St, F), nt = H && J && Jd(J, St, F);
|
|
34395
34395
|
} else
|
|
34396
34396
|
Nt = st == null ? void 0 : st[W], nt = H && J && J[W];
|
|
34397
34397
|
if (yt || vt) {
|
|
34398
|
-
var
|
|
34399
|
-
return [/* @__PURE__ */ Dn(E,
|
|
34400
|
-
activeIndex:
|
|
34398
|
+
var dt = E.props.activeIndex !== void 0 ? E.props.activeIndex : W;
|
|
34399
|
+
return [/* @__PURE__ */ Dn(E, pt(pt(pt({}, N.props), Tt), {}, {
|
|
34400
|
+
activeIndex: dt
|
|
34401
34401
|
})), null, null];
|
|
34402
34402
|
}
|
|
34403
34403
|
if (!ie(Nt))
|
|
@@ -34409,16 +34409,16 @@ var Zb = function(t, n, r, i) {
|
|
|
34409
34409
|
isRange: H
|
|
34410
34410
|
})));
|
|
34411
34411
|
} else {
|
|
34412
|
-
var Jt,
|
|
34412
|
+
var Jt, de = (Jt = w.getItemByXY(w.state.activeCoordinate)) !== null && Jt !== void 0 ? Jt : {
|
|
34413
34413
|
graphicalItem: ut
|
|
34414
|
-
}, Ce =
|
|
34414
|
+
}, Ce = de.graphicalItem, ae = Ce.item, sn = ae === void 0 ? E : ae, We = Ce.childIndex, Sn = pt(pt(pt({}, N.props), Tt), {}, {
|
|
34415
34415
|
activeIndex: We
|
|
34416
34416
|
});
|
|
34417
34417
|
return [/* @__PURE__ */ Dn(sn, Sn), null, null];
|
|
34418
34418
|
}
|
|
34419
34419
|
return H ? [ut, null, null] : [ut, null];
|
|
34420
34420
|
}), ee(w, "renderCustomized", function(E, k, I) {
|
|
34421
|
-
return /* @__PURE__ */ Dn(E,
|
|
34421
|
+
return /* @__PURE__ */ Dn(E, pt(pt({
|
|
34422
34422
|
key: "recharts-customized-".concat(I)
|
|
34423
34423
|
}, w.props), w.state));
|
|
34424
34424
|
}), ee(w, "renderMap", {
|
|
@@ -34520,7 +34520,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34520
34520
|
var st = et.item;
|
|
34521
34521
|
return st.type.name === "Scatter";
|
|
34522
34522
|
});
|
|
34523
|
-
q && (F =
|
|
34523
|
+
q && (F = pt(pt({}, F), q.props.points[N].tooltipPosition), D = q.props.points[N].tooltipPayload);
|
|
34524
34524
|
var G = {
|
|
34525
34525
|
activeTooltipIndex: N,
|
|
34526
34526
|
isTooltipActive: !0,
|
|
@@ -34591,12 +34591,12 @@ var Zb = function(t, n, r, i) {
|
|
|
34591
34591
|
var z = this.state, D = z.xAxisMap, R = z.yAxisMap, U = this.getTooltipEventType(), W = XE(this.state, this.props.data, this.props.layout, N);
|
|
34592
34592
|
if (U !== "axis" && D && R) {
|
|
34593
34593
|
var F = Ts(D).scale, q = Ts(R).scale, G = F && F.invert ? F.invert(k.chartX) : null, et = q && q.invert ? q.invert(k.chartY) : null;
|
|
34594
|
-
return
|
|
34594
|
+
return pt(pt({}, k), {}, {
|
|
34595
34595
|
xValue: G,
|
|
34596
34596
|
yValue: et
|
|
34597
34597
|
}, W);
|
|
34598
34598
|
}
|
|
34599
|
-
return W ?
|
|
34599
|
+
return W ? pt(pt({}, k), W) : null;
|
|
34600
34600
|
}
|
|
34601
34601
|
}, {
|
|
34602
34602
|
key: "inRange",
|
|
@@ -34636,7 +34636,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34636
34636
|
onContextMenu: this.handleContextMenu
|
|
34637
34637
|
});
|
|
34638
34638
|
var k = Qd(this.props, this.handleOuterEvent);
|
|
34639
|
-
return
|
|
34639
|
+
return pt(pt({}, k), E);
|
|
34640
34640
|
}
|
|
34641
34641
|
}, {
|
|
34642
34642
|
key: "addListener",
|
|
@@ -34677,7 +34677,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34677
34677
|
var A = this.state.xAxisMap;
|
|
34678
34678
|
return A ? Object.entries(A).reduce(function(T, w) {
|
|
34679
34679
|
var E = ZE(w, 2), k = E[0], I = E[1];
|
|
34680
|
-
return
|
|
34680
|
+
return pt(pt({}, T), {}, ee({}, k, I.scale));
|
|
34681
34681
|
}, {}) : null;
|
|
34682
34682
|
}
|
|
34683
34683
|
}, {
|
|
@@ -34686,7 +34686,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34686
34686
|
var A = this.state.yAxisMap;
|
|
34687
34687
|
return A ? Object.entries(A).reduce(function(T, w) {
|
|
34688
34688
|
var E = ZE(w, 2), k = E[0], I = E[1];
|
|
34689
|
-
return
|
|
34689
|
+
return pt(pt({}, T), {}, ee({}, k, I.scale));
|
|
34690
34690
|
}, {}) : null;
|
|
34691
34691
|
}
|
|
34692
34692
|
}, {
|
|
@@ -34707,7 +34707,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34707
34707
|
var T = this.state, w = T.formattedGraphicalItems, E = T.activeItem;
|
|
34708
34708
|
if (w && w.length)
|
|
34709
34709
|
for (var k = 0, I = w.length; k < I; k++) {
|
|
34710
|
-
var N = w[k], z = N.props, D = N.item, R = D.type.defaultProps !== void 0 ?
|
|
34710
|
+
var N = w[k], z = N.props, D = N.item, R = D.type.defaultProps !== void 0 ? pt(pt({}, D.type.defaultProps), D.props) : D.props, U = zo(D.type);
|
|
34711
34711
|
if (U === "Bar") {
|
|
34712
34712
|
var W = (z.data || []).find(function(et) {
|
|
34713
34713
|
return Iit(A, et);
|
|
@@ -34733,7 +34733,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34733
34733
|
itemData: R.data
|
|
34734
34734
|
}), G = R.activeIndex === void 0 ? q : R.activeIndex;
|
|
34735
34735
|
return {
|
|
34736
|
-
graphicalItem:
|
|
34736
|
+
graphicalItem: pt(pt({}, N), {}, {
|
|
34737
34737
|
childIndex: G
|
|
34738
34738
|
}),
|
|
34739
34739
|
payload: tf(N, E) ? R.data[q] : N.props.data[q]
|
|
@@ -34776,8 +34776,8 @@ var Zb = function(t, n, r, i) {
|
|
|
34776
34776
|
height: this.props.height,
|
|
34777
34777
|
clipPathId: this.clipPathId
|
|
34778
34778
|
}, /* @__PURE__ */ b.createElement("div", ic({
|
|
34779
|
-
className:
|
|
34780
|
-
style:
|
|
34779
|
+
className: me("recharts-wrapper", E),
|
|
34780
|
+
style: pt({
|
|
34781
34781
|
position: "relative",
|
|
34782
34782
|
cursor: "default",
|
|
34783
34783
|
width: k,
|
|
@@ -34797,7 +34797,7 @@ var Zb = function(t, n, r, i) {
|
|
|
34797
34797
|
}
|
|
34798
34798
|
}]);
|
|
34799
34799
|
}(n0);
|
|
34800
|
-
ee(x, "displayName", n), ee(x, "defaultProps",
|
|
34800
|
+
ee(x, "displayName", n), ee(x, "defaultProps", pt({
|
|
34801
34801
|
layout: "horizontal",
|
|
34802
34802
|
stackOffset: "none",
|
|
34803
34803
|
barCategoryGap: "10%",
|
|
@@ -34814,9 +34814,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34814
34814
|
var S = v.dataKey, A = v.data, T = v.children, w = v.width, E = v.height, k = v.layout, I = v.stackOffset, N = v.margin, z = _.dataStartIndex, D = _.dataEndIndex;
|
|
34815
34815
|
if (_.updateId === void 0) {
|
|
34816
34816
|
var R = JE(v);
|
|
34817
|
-
return
|
|
34817
|
+
return pt(pt(pt({}, R), {}, {
|
|
34818
34818
|
updateId: 0
|
|
34819
|
-
}, g(
|
|
34819
|
+
}, g(pt(pt({
|
|
34820
34820
|
props: v
|
|
34821
34821
|
}, R), {}, {
|
|
34822
34822
|
updateId: 0
|
|
@@ -34840,10 +34840,10 @@ var Zb = function(t, n, r, i) {
|
|
|
34840
34840
|
// The tooltip should stay active when it was active in the previous render. If this is not
|
|
34841
34841
|
// the case, the tooltip disappears and immediately re-appears, causing a flickering effect
|
|
34842
34842
|
isTooltipActive: _.isTooltipActive
|
|
34843
|
-
}, F =
|
|
34843
|
+
}, F = pt(pt({}, XE(_, A, k)), {}, {
|
|
34844
34844
|
updateId: _.updateId + 1
|
|
34845
|
-
}), q =
|
|
34846
|
-
return
|
|
34845
|
+
}), q = pt(pt(pt({}, U), W), F);
|
|
34846
|
+
return pt(pt(pt({}, q), g(pt({
|
|
34847
34847
|
props: v
|
|
34848
34848
|
}, q), _)), {}, {
|
|
34849
34849
|
prevDataKey: S,
|
|
@@ -34858,9 +34858,9 @@ var Zb = function(t, n, r, i) {
|
|
|
34858
34858
|
}
|
|
34859
34859
|
if (!wv(T, _.prevChildren)) {
|
|
34860
34860
|
var G, et, st, H, J = Kr(T, Ic), ot = J && (G = (et = J.props) === null || et === void 0 ? void 0 : et.startIndex) !== null && G !== void 0 ? G : z, ct = J && (st = (H = J.props) === null || H === void 0 ? void 0 : H.endIndex) !== null && st !== void 0 ? st : D, mt = ot !== z || ct !== D, vt = !ie(A), yt = vt && !mt ? _.updateId : _.updateId + 1;
|
|
34861
|
-
return
|
|
34861
|
+
return pt(pt({
|
|
34862
34862
|
updateId: yt
|
|
34863
|
-
}, g(
|
|
34863
|
+
}, g(pt(pt({
|
|
34864
34864
|
props: v
|
|
34865
34865
|
}, _), {}, {
|
|
34866
34866
|
updateId: yt,
|
|
@@ -40718,6 +40718,9 @@ function Ift(e, t, n) {
|
|
|
40718
40718
|
`), r = r.replace(
|
|
40719
40719
|
/(^|[\s(])(https?:\/\/[^\s)]+\.(?:png|jpe?g|gif|webp|avif))(?=$|[\s)])/gim,
|
|
40720
40720
|
"$1"
|
|
40721
|
+
), r = r.replace(
|
|
40722
|
+
/(^|[\s(])(\/assets\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[^\s)]+)(?=$|[\s)])/gim,
|
|
40723
|
+
"$1"
|
|
40721
40724
|
);
|
|
40722
40725
|
const i = (v) => {
|
|
40723
40726
|
const _ = [], S = /(\*\*(.+?)\*\*)|(\*(.+?)\*)|(`(.+?)`)|(\[(.+?)\]\((.+?)\))|(~~(.+?)~~)/g;
|
|
@@ -42397,7 +42400,7 @@ var Kb = { exports: {} };
|
|
|
42397
42400
|
var y = Math.PI / 180, P = l.lat * y, O = d.lat * y, j = Math.sin((d.lat - l.lat) * y / 2), tt = Math.sin((d.lng - l.lng) * y / 2), rt = j * j + Math.cos(P) * Math.cos(O) * tt * tt, at = 2 * Math.atan2(Math.sqrt(rt), Math.sqrt(1 - rt));
|
|
42398
42401
|
return this.R * at;
|
|
42399
42402
|
}
|
|
42400
|
-
}), ut = 6378137,
|
|
42403
|
+
}), ut = 6378137, ft = {
|
|
42401
42404
|
R: ut,
|
|
42402
42405
|
MAX_LATITUDE: 85.0511287798,
|
|
42403
42406
|
project: function(l) {
|
|
@@ -42452,18 +42455,18 @@ var Kb = { exports: {} };
|
|
|
42452
42455
|
}
|
|
42453
42456
|
var St = i({}, Tt, {
|
|
42454
42457
|
code: "EPSG:3857",
|
|
42455
|
-
projection:
|
|
42458
|
+
projection: ft,
|
|
42456
42459
|
transformation: function() {
|
|
42457
|
-
var l = 0.5 / (Math.PI *
|
|
42460
|
+
var l = 0.5 / (Math.PI * ft.R);
|
|
42458
42461
|
return nt(l, 0.5, -l, 0.5);
|
|
42459
42462
|
}()
|
|
42460
|
-
}),
|
|
42463
|
+
}), dt = i({}, St, {
|
|
42461
42464
|
code: "EPSG:900913"
|
|
42462
42465
|
});
|
|
42463
42466
|
function Jt(l) {
|
|
42464
42467
|
return document.createElementNS("http://www.w3.org/2000/svg", l);
|
|
42465
42468
|
}
|
|
42466
|
-
function
|
|
42469
|
+
function de(l, d) {
|
|
42467
42470
|
var y = "", P, O, j, tt, rt, at;
|
|
42468
42471
|
for (P = 0, j = l.length; P < j; P++) {
|
|
42469
42472
|
for (rt = l[P], O = 0, tt = rt.length; O < tt; O++)
|
|
@@ -42472,7 +42475,7 @@ var Kb = { exports: {} };
|
|
|
42472
42475
|
}
|
|
42473
42476
|
return y || "M0 0";
|
|
42474
42477
|
}
|
|
42475
|
-
var Ce = document.documentElement.style, ae = "ActiveXObject" in window, sn = ae && !document.addEventListener, We = "msLaunchUri" in navigator && !("documentMode" in document), Sn = vn("webkit"), Xe = vn("android"), Je = vn("android 2") || vn("android 3"), dr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), pr = Xe && vn("Google") && dr < 537 && !("AudioNode" in window), rr = !!window.opera, Ve = !We && vn("chrome"), Or = vn("gecko") && !Sn && !rr && !ae, Zt = !Ve && vn("safari"), te = vn("phantom"), ze = "OTransition" in Ce,
|
|
42478
|
+
var Ce = document.documentElement.style, ae = "ActiveXObject" in window, sn = ae && !document.addEventListener, We = "msLaunchUri" in navigator && !("documentMode" in document), Sn = vn("webkit"), Xe = vn("android"), Je = vn("android 2") || vn("android 3"), dr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), pr = Xe && vn("Google") && dr < 537 && !("AudioNode" in window), rr = !!window.opera, Ve = !We && vn("chrome"), Or = vn("gecko") && !Sn && !rr && !ae, Zt = !Ve && vn("safari"), te = vn("phantom"), ze = "OTransition" in Ce, ge = navigator.platform.indexOf("Win") === 0, oe = ae && "transition" in Ce, Ee = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Je, be = "MozPerspective" in Ce, mr = !window.L_DISABLE_3D && (oe || Ee || be) && !ze && !te, gr = typeof orientation < "u" || vn("mobile"), Ot = gr && Sn, ir = gr && Ee, an = !window.PointerEvent && window.MSPointerEvent, ts = !!(window.PointerEvent || an), po = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (po || ts), xe = gr && rr, he = gr && Or, Pn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, es = function() {
|
|
42476
42479
|
var l = !1;
|
|
42477
42480
|
try {
|
|
42478
42481
|
var d = Object.defineProperty({}, "passive", {
|
|
@@ -42516,7 +42519,7 @@ var Kb = { exports: {} };
|
|
|
42516
42519
|
safari: Zt,
|
|
42517
42520
|
phantom: te,
|
|
42518
42521
|
opera12: ze,
|
|
42519
|
-
win:
|
|
42522
|
+
win: ge,
|
|
42520
42523
|
ie3d: oe,
|
|
42521
42524
|
webkit3d: Ee,
|
|
42522
42525
|
gecko3d: be,
|
|
@@ -42637,7 +42640,7 @@ var Kb = { exports: {} };
|
|
|
42637
42640
|
var P = document.createElement(l);
|
|
42638
42641
|
return P.className = d || "", y && y.appendChild(P), P;
|
|
42639
42642
|
}
|
|
42640
|
-
function
|
|
42643
|
+
function pe(l) {
|
|
42641
42644
|
var d = l.parentNode;
|
|
42642
42645
|
d && d.removeChild(l);
|
|
42643
42646
|
}
|
|
@@ -42659,7 +42662,7 @@ var Kb = { exports: {} };
|
|
|
42659
42662
|
var y = gl(l);
|
|
42660
42663
|
return y.length > 0 && new RegExp("(^|\\s)" + d + "(\\s|$)").test(y);
|
|
42661
42664
|
}
|
|
42662
|
-
function
|
|
42665
|
+
function Vt(l, d) {
|
|
42663
42666
|
if (l.classList !== void 0)
|
|
42664
42667
|
for (var y = x(d), P = 0, O = y.length; P < O; P++)
|
|
42665
42668
|
l.classList.add(y[P]);
|
|
@@ -42763,12 +42766,12 @@ var Kb = { exports: {} };
|
|
|
42763
42766
|
get: hs,
|
|
42764
42767
|
getStyle: Wi,
|
|
42765
42768
|
create: zt,
|
|
42766
|
-
remove:
|
|
42769
|
+
remove: pe,
|
|
42767
42770
|
empty: wo,
|
|
42768
42771
|
toFront: ni,
|
|
42769
42772
|
toBack: Ct,
|
|
42770
42773
|
hasClass: Ge,
|
|
42771
|
-
addClass:
|
|
42774
|
+
addClass: Vt,
|
|
42772
42775
|
removeClass: le,
|
|
42773
42776
|
setClass: fs,
|
|
42774
42777
|
getClass: gl,
|
|
@@ -43128,7 +43131,7 @@ var Kb = { exports: {} };
|
|
|
43128
43131
|
step: this._onPanTransitionStep,
|
|
43129
43132
|
end: this._onPanTransitionEnd
|
|
43130
43133
|
}, this)), d.noMoveStart || this.fire("movestart"), d.animate !== !1) {
|
|
43131
|
-
|
|
43134
|
+
Vt(this._mapPane, "leaflet-pan-anim");
|
|
43132
43135
|
var y = this._getMapPanePos().subtract(l).round();
|
|
43133
43136
|
this._panAnim.run(this._mapPane, y, d.duration || 0.25, d.easeLinearity);
|
|
43134
43137
|
} else
|
|
@@ -43145,7 +43148,7 @@ var Kb = { exports: {} };
|
|
|
43145
43148
|
var P = this.project(this.getCenter()), O = this.project(l), j = this.getSize(), tt = this._zoom;
|
|
43146
43149
|
l = yt(l), d = d === void 0 ? tt : d;
|
|
43147
43150
|
var rt = Math.max(j.x, j.y), at = rt * this.getZoomScale(tt, d), bt = O.distanceTo(P) || 1, Rt = 1.42, Xt = Rt * Rt;
|
|
43148
|
-
function
|
|
43151
|
+
function ye(K) {
|
|
43149
43152
|
var Y = K ? -1 : 1, Q = K ? at : rt, X = at * at - rt * rt + Y * Xt * Xt * bt * bt, lt = 2 * Q * Xt * bt, it = X / lt, gt = Math.sqrt(it * it + 1) - it, Mt = gt < 1e-9 ? -18 : Math.log(gt);
|
|
43150
43153
|
return Mt;
|
|
43151
43154
|
}
|
|
@@ -43158,7 +43161,7 @@ var Kb = { exports: {} };
|
|
|
43158
43161
|
function xr(K) {
|
|
43159
43162
|
return Un(K) / xn(K);
|
|
43160
43163
|
}
|
|
43161
|
-
var Jn =
|
|
43164
|
+
var Jn = ye(0);
|
|
43162
43165
|
function Mo(K) {
|
|
43163
43166
|
return rt * (xn(Jn) / xn(Jn + Rt * K));
|
|
43164
43167
|
}
|
|
@@ -43168,7 +43171,7 @@ var Kb = { exports: {} };
|
|
|
43168
43171
|
function C(K) {
|
|
43169
43172
|
return 1 - Math.pow(1 - K, 1.5);
|
|
43170
43173
|
}
|
|
43171
|
-
var M = Date.now(), $ = (
|
|
43174
|
+
var M = Date.now(), $ = (ye(1) - Jn) / Rt, Z = y.duration ? 1e3 * y.duration : 1e3 * $ * 0.8;
|
|
43172
43175
|
function B() {
|
|
43173
43176
|
var K = (Date.now() - M) / Z, Y = C(K) * $;
|
|
43174
43177
|
K <= 1 ? (this._flyToFrame = D(B, this), this._move(
|
|
@@ -43336,12 +43339,12 @@ var Kb = { exports: {} };
|
|
|
43336
43339
|
} catch {
|
|
43337
43340
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
43338
43341
|
}
|
|
43339
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(),
|
|
43342
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), pe(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (R(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
43340
43343
|
var l;
|
|
43341
43344
|
for (l in this._layers)
|
|
43342
43345
|
this._layers[l].remove();
|
|
43343
43346
|
for (l in this._panes)
|
|
43344
|
-
|
|
43347
|
+
pe(this._panes[l]);
|
|
43345
43348
|
return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
|
|
43346
43349
|
},
|
|
43347
43350
|
// @section Other Methods
|
|
@@ -43387,7 +43390,7 @@ var Kb = { exports: {} };
|
|
|
43387
43390
|
// the given bounds in its entirety.
|
|
43388
43391
|
getBoundsZoom: function(l, d, y) {
|
|
43389
43392
|
l = mt(l), y = H(y || [0, 0]);
|
|
43390
|
-
var P = this.getZoom() || 0, O = this.getMinZoom(), j = this.getMaxZoom(), tt = l.getNorthWest(), rt = l.getSouthEast(), at = this.getSize().subtract(y), bt = ot(this.project(rt, P), this.project(tt, P)).getSize(), Rt = Bt.any3d ? this.options.zoomSnap : 1, Xt = at.x / bt.x,
|
|
43393
|
+
var P = this.getZoom() || 0, O = this.getMinZoom(), j = this.getMaxZoom(), tt = l.getNorthWest(), rt = l.getSouthEast(), at = this.getSize().subtract(y), bt = ot(this.project(rt, P), this.project(tt, P)).getSize(), Rt = Bt.any3d ? this.options.zoomSnap : 1, Xt = at.x / bt.x, ye = at.y / bt.y, Un = d ? Math.max(Xt, ye) : Math.min(Xt, ye);
|
|
43391
43394
|
return P = this.getScaleZoom(Un, P), Rt && (P = Math.round(P / (Rt / 100)) * (Rt / 100), P = d ? Math.ceil(P / Rt) * Rt : Math.floor(P / Rt) * Rt), Math.max(O, Math.min(j, P));
|
|
43392
43395
|
},
|
|
43393
43396
|
// @method getSize(): Point
|
|
@@ -43560,13 +43563,13 @@ var Kb = { exports: {} };
|
|
|
43560
43563
|
},
|
|
43561
43564
|
_initLayout: function() {
|
|
43562
43565
|
var l = this._container;
|
|
43563
|
-
this._fadeAnimated = this.options.fadeAnimation && Bt.any3d,
|
|
43566
|
+
this._fadeAnimated = this.options.fadeAnimation && Bt.any3d, Vt(l, "leaflet-container" + (Bt.touch ? " leaflet-touch" : "") + (Bt.retina ? " leaflet-retina" : "") + (Bt.ielt9 ? " leaflet-oldie" : "") + (Bt.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
43564
43567
|
var d = Wi(l, "position");
|
|
43565
43568
|
d !== "absolute" && d !== "relative" && d !== "fixed" && d !== "sticky" && (l.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
43566
43569
|
},
|
|
43567
43570
|
_initPanes: function() {
|
|
43568
43571
|
var l = this._panes = {};
|
|
43569
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Qe(this._mapPane, new et(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (
|
|
43572
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Qe(this._mapPane, new et(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (Vt(l.markerPane, "leaflet-zoom-hide"), Vt(l.shadowPane, "leaflet-zoom-hide"));
|
|
43570
43573
|
},
|
|
43571
43574
|
// private methods that modify map state
|
|
43572
43575
|
// @section Map state change events
|
|
@@ -43777,7 +43780,7 @@ var Kb = { exports: {} };
|
|
|
43777
43780
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
43778
43781
|
},
|
|
43779
43782
|
_destroyAnimProxy: function() {
|
|
43780
|
-
|
|
43783
|
+
pe(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
|
|
43781
43784
|
},
|
|
43782
43785
|
_animMoveEnd: function() {
|
|
43783
43786
|
var l = this.getCenter(), d = this.getZoom();
|
|
@@ -43800,7 +43803,7 @@ var Kb = { exports: {} };
|
|
|
43800
43803
|
}, this), !0);
|
|
43801
43804
|
},
|
|
43802
43805
|
_animateZoom: function(l, d, y, P) {
|
|
43803
|
-
this._mapPane && (y && (this._animatingZoom = !0, this._animateToCenter = l, this._animateToZoom = d,
|
|
43806
|
+
this._mapPane && (y && (this._animatingZoom = !0, this._animateToCenter = l, this._animateToZoom = d, Vt(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
|
|
43804
43807
|
center: l,
|
|
43805
43808
|
zoom: d,
|
|
43806
43809
|
noUpdate: P
|
|
@@ -43850,12 +43853,12 @@ var Kb = { exports: {} };
|
|
|
43850
43853
|
addTo: function(l) {
|
|
43851
43854
|
this.remove(), this._map = l;
|
|
43852
43855
|
var d = this._container = this.onAdd(l), y = this.getPosition(), P = l._controlCorners[y];
|
|
43853
|
-
return
|
|
43856
|
+
return Vt(d, "leaflet-control"), y.indexOf("bottom") !== -1 ? P.insertBefore(d, P.firstChild) : P.appendChild(d), this._map.on("unload", this.remove, this), this;
|
|
43854
43857
|
},
|
|
43855
43858
|
// @method remove: this
|
|
43856
43859
|
// Removes the control from the map it is currently active on.
|
|
43857
43860
|
remove: function() {
|
|
43858
|
-
return this._map ? (
|
|
43861
|
+
return this._map ? (pe(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
|
|
43859
43862
|
},
|
|
43860
43863
|
_refocusOnMap: function(l) {
|
|
43861
43864
|
this._map && l && l.screenX > 0 && l.screenY > 0 && this._map.getContainer().focus();
|
|
@@ -43884,8 +43887,8 @@ var Kb = { exports: {} };
|
|
|
43884
43887
|
},
|
|
43885
43888
|
_clearControlPos: function() {
|
|
43886
43889
|
for (var l in this._controlCorners)
|
|
43887
|
-
|
|
43888
|
-
|
|
43890
|
+
pe(this._controlCorners[l]);
|
|
43891
|
+
pe(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
43889
43892
|
}
|
|
43890
43893
|
});
|
|
43891
43894
|
var Of = qr.extend({
|
|
@@ -43957,9 +43960,9 @@ var Kb = { exports: {} };
|
|
|
43957
43960
|
// @method expand(): this
|
|
43958
43961
|
// Expand the control container if collapsed.
|
|
43959
43962
|
expand: function() {
|
|
43960
|
-
|
|
43963
|
+
Vt(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
|
|
43961
43964
|
var l = this._map.getSize().y - (this._container.offsetTop + 50);
|
|
43962
|
-
return l < this._section.clientHeight ? (
|
|
43965
|
+
return l < this._section.clientHeight ? (Vt(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = l + "px") : le(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
|
|
43963
43966
|
},
|
|
43964
43967
|
// @method collapse(): this
|
|
43965
43968
|
// Collapse the control container if expanded.
|
|
@@ -44113,7 +44116,7 @@ var Kb = { exports: {} };
|
|
|
44113
44116
|
},
|
|
44114
44117
|
_updateDisabled: function() {
|
|
44115
44118
|
var l = this._map, d = "leaflet-disabled";
|
|
44116
|
-
le(this._zoomInButton, d), le(this._zoomOutButton, d), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || l._zoom === l.getMinZoom()) && (
|
|
44119
|
+
le(this._zoomInButton, d), le(this._zoomOutButton, d), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || l._zoom === l.getMinZoom()) && (Vt(this._zoomOutButton, d), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || l._zoom === l.getMaxZoom()) && (Vt(this._zoomInButton, d), this._zoomInButton.setAttribute("aria-disabled", "true"));
|
|
44117
44120
|
}
|
|
44118
44121
|
});
|
|
44119
44122
|
Lt.mergeOptions({
|
|
@@ -44312,7 +44315,7 @@ var Kb = { exports: {} };
|
|
|
44312
44315
|
return;
|
|
44313
44316
|
}
|
|
44314
44317
|
var d = l.touches && l.touches.length === 1 ? l.touches[0] : l, y = new et(d.clientX, d.clientY)._subtract(this._startPoint);
|
|
44315
|
-
!y.x && !y.y || Math.abs(y.x) + Math.abs(y.y) < this.options.clickTolerance || (y.x /= this._parentScale.x, y.y /= this._parentScale.y, we(l), this._moved || (this.fire("dragstart"), this._moved = !0,
|
|
44318
|
+
!y.x && !y.y || Math.abs(y.x) + Math.abs(y.y) < this.options.clickTolerance || (y.x /= this._parentScale.x, y.y /= this._parentScale.y, we(l), this._moved || (this.fire("dragstart"), this._moved = !0, Vt(document.body, "leaflet-dragging"), this._lastTarget = l.target || l.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), Vt(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(y), this._moving = !0, this._lastEvent = l, this._updatePosition());
|
|
44316
44319
|
}
|
|
44317
44320
|
},
|
|
44318
44321
|
_updatePosition: function() {
|
|
@@ -44332,12 +44335,12 @@ var Kb = { exports: {} };
|
|
|
44332
44335
|
}
|
|
44333
44336
|
});
|
|
44334
44337
|
function wl(l, d, y) {
|
|
44335
|
-
var P, O = [1, 4, 2, 8], j, tt, rt, at, bt, Rt, Xt,
|
|
44338
|
+
var P, O = [1, 4, 2, 8], j, tt, rt, at, bt, Rt, Xt, ye;
|
|
44336
44339
|
for (j = 0, Rt = l.length; j < Rt; j++)
|
|
44337
44340
|
l[j]._code = li(l[j], d);
|
|
44338
44341
|
for (rt = 0; rt < 4; rt++) {
|
|
44339
44342
|
for (Xt = O[rt], P = [], j = 0, Rt = l.length, tt = Rt - 1; j < Rt; tt = j++)
|
|
44340
|
-
at = l[j], bt = l[tt], at._code & Xt ? bt._code & Xt || (
|
|
44343
|
+
at = l[j], bt = l[tt], at._code & Xt ? bt._code & Xt || (ye = sa(bt, at, Xt, d, y), ye._code = li(ye, d), P.push(ye)) : (bt._code & Xt && (ye = sa(bt, at, Xt, d, y), ye._code = li(ye, d), P.push(ye)), P.push(at));
|
|
44341
44344
|
l = P;
|
|
44342
44345
|
}
|
|
44343
44346
|
return l;
|
|
@@ -44347,7 +44350,7 @@ var Kb = { exports: {} };
|
|
|
44347
44350
|
if (!l || l.length === 0)
|
|
44348
44351
|
throw new Error("latlngs not passed");
|
|
44349
44352
|
Mr(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
|
|
44350
|
-
var Xt = yt([0, 0]),
|
|
44353
|
+
var Xt = yt([0, 0]), ye = mt(l), Un = ye.getNorthWest().distanceTo(ye.getSouthWest()) * ye.getNorthEast().distanceTo(ye.getNorthWest());
|
|
44351
44354
|
Un < 1700 && (Xt = _l(l));
|
|
44352
44355
|
var xn = l.length, xr = [];
|
|
44353
44356
|
for (y = 0; y < xn; y++) {
|
|
@@ -44442,8 +44445,8 @@ var Kb = { exports: {} };
|
|
|
44442
44445
|
if (!l || l.length === 0)
|
|
44443
44446
|
throw new Error("latlngs not passed");
|
|
44444
44447
|
Mr(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
|
|
44445
|
-
var Rt = yt([0, 0]), Xt = mt(l),
|
|
44446
|
-
|
|
44448
|
+
var Rt = yt([0, 0]), Xt = mt(l), ye = Xt.getNorthWest().distanceTo(Xt.getSouthWest()) * Xt.getNorthEast().distanceTo(Xt.getNorthWest());
|
|
44449
|
+
ye < 1700 && (Rt = _l(l));
|
|
44447
44450
|
var Un = l.length, xn = [];
|
|
44448
44451
|
for (y = 0; y < Un; y++) {
|
|
44449
44452
|
var xr = yt(l[y]);
|
|
@@ -44502,7 +44505,7 @@ var Kb = { exports: {} };
|
|
|
44502
44505
|
__proto__: null,
|
|
44503
44506
|
LonLat: Su,
|
|
44504
44507
|
Mercator: Gi,
|
|
44505
|
-
SphericalMercator:
|
|
44508
|
+
SphericalMercator: ft
|
|
44506
44509
|
}, Ci = i({}, Tt, {
|
|
44507
44510
|
code: "EPSG:3395",
|
|
44508
44511
|
projection: Gi,
|
|
@@ -44529,7 +44532,7 @@ var Kb = { exports: {} };
|
|
|
44529
44532
|
},
|
|
44530
44533
|
infinite: !0
|
|
44531
44534
|
});
|
|
44532
|
-
$t.Earth = Tt, $t.EPSG3395 = Ci, $t.EPSG3857 = St, $t.EPSG900913 =
|
|
44535
|
+
$t.Earth = Tt, $t.EPSG3395 = Ci, $t.EPSG3857 = St, $t.EPSG900913 = dt, $t.EPSG4326 = Al, $t.Simple = Pu;
|
|
44533
44536
|
var Ae = G.extend({
|
|
44534
44537
|
// Classes extending `L.Layer` will inherit the following options:
|
|
44535
44538
|
options: {
|
|
@@ -44897,7 +44900,7 @@ var Kb = { exports: {} };
|
|
|
44897
44900
|
predrag: this._onPreDrag,
|
|
44898
44901
|
drag: this._onDrag,
|
|
44899
44902
|
dragend: this._onDragEnd
|
|
44900
|
-
}, this).enable(),
|
|
44903
|
+
}, this).enable(), Vt(l, "leaflet-marker-draggable");
|
|
44901
44904
|
},
|
|
44902
44905
|
removeHooks: function() {
|
|
44903
44906
|
this._draggable.off({
|
|
@@ -45057,21 +45060,21 @@ var Kb = { exports: {} };
|
|
|
45057
45060
|
},
|
|
45058
45061
|
_initIcon: function() {
|
|
45059
45062
|
var l = this.options, d = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), y = l.icon.createIcon(this._icon), P = !1;
|
|
45060
|
-
y !== this._icon && (this._icon && this._removeIcon(), P = !0, l.title && (y.title = l.title), y.tagName === "IMG" && (y.alt = l.alt || "")),
|
|
45063
|
+
y !== this._icon && (this._icon && this._removeIcon(), P = !0, l.title && (y.title = l.title), y.tagName === "IMG" && (y.alt = l.alt || "")), Vt(y, d), l.keyboard && (y.tabIndex = "0", y.setAttribute("role", "button")), this._icon = y, l.riseOnHover && this.on({
|
|
45061
45064
|
mouseover: this._bringToFront,
|
|
45062
45065
|
mouseout: this._resetZIndex
|
|
45063
45066
|
}), this.options.autoPanOnFocus && ue(y, "focus", this._panOnFocus, this);
|
|
45064
45067
|
var O = l.icon.createShadow(this._shadow), j = !1;
|
|
45065
|
-
O !== this._shadow && (this._removeShadow(), j = !0), O && (
|
|
45068
|
+
O !== this._shadow && (this._removeShadow(), j = !0), O && (Vt(O, d), O.alt = ""), this._shadow = O, l.opacity < 1 && this._updateOpacity(), P && this.getPane().appendChild(this._icon), this._initInteraction(), O && j && this.getPane(l.shadowPane).appendChild(this._shadow);
|
|
45066
45069
|
},
|
|
45067
45070
|
_removeIcon: function() {
|
|
45068
45071
|
this.options.riseOnHover && this.off({
|
|
45069
45072
|
mouseover: this._bringToFront,
|
|
45070
45073
|
mouseout: this._resetZIndex
|
|
45071
|
-
}), this.options.autoPanOnFocus && Ie(this._icon, "focus", this._panOnFocus, this),
|
|
45074
|
+
}), this.options.autoPanOnFocus && Ie(this._icon, "focus", this._panOnFocus, this), pe(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
|
45072
45075
|
},
|
|
45073
45076
|
_removeShadow: function() {
|
|
45074
|
-
this._shadow &&
|
|
45077
|
+
this._shadow && pe(this._shadow), this._shadow = null;
|
|
45075
45078
|
},
|
|
45076
45079
|
_setPos: function(l) {
|
|
45077
45080
|
this._icon && Qe(this._icon, l), this._shadow && Qe(this._shadow, l), this._zIndex = l.y + this.options.zIndexOffset, this._resetZIndex();
|
|
@@ -45084,7 +45087,7 @@ var Kb = { exports: {} };
|
|
|
45084
45087
|
this._setPos(d);
|
|
45085
45088
|
},
|
|
45086
45089
|
_initInteraction: function() {
|
|
45087
|
-
if (this.options.interactive && (
|
|
45090
|
+
if (this.options.interactive && (Vt(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), El)) {
|
|
45088
45091
|
var l = this.options.draggable;
|
|
45089
45092
|
this.dragging && (l = this.dragging.enabled(), this.dragging.disable()), this.dragging = new El(this), l && this.dragging.enable();
|
|
45090
45093
|
}
|
|
@@ -45613,8 +45616,8 @@ var Kb = { exports: {} };
|
|
|
45613
45616
|
return new kr(O);
|
|
45614
45617
|
case "FeatureCollection":
|
|
45615
45618
|
for (bt = 0, Rt = y.features.length; bt < Rt; bt++) {
|
|
45616
|
-
var
|
|
45617
|
-
|
|
45619
|
+
var ye = Ol(y.features[bt], d);
|
|
45620
|
+
ye && O.push(ye);
|
|
45618
45621
|
}
|
|
45619
45622
|
return new kr(O);
|
|
45620
45623
|
default:
|
|
@@ -45746,10 +45749,10 @@ var Kb = { exports: {} };
|
|
|
45746
45749
|
this._url = l, this._bounds = mt(d), m(this, y);
|
|
45747
45750
|
},
|
|
45748
45751
|
onAdd: function() {
|
|
45749
|
-
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (
|
|
45752
|
+
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (Vt(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
45750
45753
|
},
|
|
45751
45754
|
onRemove: function() {
|
|
45752
|
-
|
|
45755
|
+
pe(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
|
|
45753
45756
|
},
|
|
45754
45757
|
// @method setOpacity(opacity: Number): this
|
|
45755
45758
|
// Sets the opacity of the overlay.
|
|
@@ -45804,7 +45807,7 @@ var Kb = { exports: {} };
|
|
|
45804
45807
|
},
|
|
45805
45808
|
_initImage: function() {
|
|
45806
45809
|
var l = this._url.tagName === "IMG", d = this._image = l ? this._url : zt("img");
|
|
45807
|
-
if (
|
|
45810
|
+
if (Vt(d, "leaflet-image-layer"), this._zoomAnimated && Vt(d, "leaflet-zoom-animated"), this.options.className && Vt(d, this.options.className), d.onselectstart = f, d.onmousemove = f, d.onload = s(this.fire, this, "load"), d.onerror = s(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (d.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), l) {
|
|
45808
45811
|
this._url = d.src;
|
|
45809
45812
|
return;
|
|
45810
45813
|
}
|
|
@@ -45863,7 +45866,7 @@ var Kb = { exports: {} };
|
|
|
45863
45866
|
},
|
|
45864
45867
|
_initImage: function() {
|
|
45865
45868
|
var l = this._url.tagName === "VIDEO", d = this._image = l ? this._url : zt("video");
|
|
45866
|
-
if (
|
|
45869
|
+
if (Vt(d, "leaflet-image-layer"), this._zoomAnimated && Vt(d, "leaflet-zoom-animated"), this.options.className && Vt(d, this.options.className), d.onselectstart = f, d.onmousemove = f, d.onloadeddata = s(this.fire, this, "load"), l) {
|
|
45867
45870
|
for (var y = d.getElementsByTagName("source"), P = [], O = 0; O < y.length; O++)
|
|
45868
45871
|
P.push(y[O].src);
|
|
45869
45872
|
this._url = y.length > 0 ? P : [d.src];
|
|
@@ -45885,7 +45888,7 @@ var Kb = { exports: {} };
|
|
|
45885
45888
|
var Oo = da.extend({
|
|
45886
45889
|
_initImage: function() {
|
|
45887
45890
|
var l = this._image = this._url;
|
|
45888
|
-
|
|
45891
|
+
Vt(l, "leaflet-image-layer"), this._zoomAnimated && Vt(l, "leaflet-zoom-animated"), this.options.className && Vt(l, this.options.className), l.onselectstart = f, l.onmousemove = f;
|
|
45889
45892
|
}
|
|
45890
45893
|
// @method getElement(): SVGElement
|
|
45891
45894
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
@@ -45939,10 +45942,10 @@ var Kb = { exports: {} };
|
|
|
45939
45942
|
return this._map ? this.close() : (arguments.length ? this._source = l : l = this._source, this._prepareOpen(), this.openOn(l._map)), this;
|
|
45940
45943
|
},
|
|
45941
45944
|
onAdd: function(l) {
|
|
45942
|
-
this._zoomAnimated = l._zoomAnimated, this._container || this._initLayout(), l._fadeAnimated && sr(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), l._fadeAnimated && sr(this._container, 1), this.bringToFront(), this.options.interactive && (
|
|
45945
|
+
this._zoomAnimated = l._zoomAnimated, this._container || this._initLayout(), l._fadeAnimated && sr(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), l._fadeAnimated && sr(this._container, 1), this.bringToFront(), this.options.interactive && (Vt(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
45943
45946
|
},
|
|
45944
45947
|
onRemove: function(l) {
|
|
45945
|
-
l._fadeAnimated ? (sr(this._container, 0), this._removeTimeout = setTimeout(s(
|
|
45948
|
+
l._fadeAnimated ? (sr(this._container, 0), this._removeTimeout = setTimeout(s(pe, void 0, this._container), 200)) : pe(this._container), this.options.interactive && (le(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
45946
45949
|
},
|
|
45947
45950
|
// @namespace DivOverlay
|
|
45948
45951
|
// @method getLatLng: LatLng
|
|
@@ -46156,7 +46159,7 @@ var Kb = { exports: {} };
|
|
|
46156
46159
|
var y = l.offsetWidth;
|
|
46157
46160
|
y = Math.min(y, this.options.maxWidth), y = Math.max(y, this.options.minWidth), d.width = y + 1 + "px", d.whiteSpace = "", d.height = "";
|
|
46158
46161
|
var P = l.offsetHeight, O = this.options.maxHeight, j = "leaflet-popup-scrolled";
|
|
46159
|
-
O && P > O ? (d.height = O + "px",
|
|
46162
|
+
O && P > O ? (d.height = O + "px", Vt(l, j)) : le(l, j), this._containerWidth = this._container.offsetWidth;
|
|
46160
46163
|
},
|
|
46161
46164
|
_animateZoom: function(l) {
|
|
46162
46165
|
var d = this._map._latLngToNewLayerPoint(this._latlng, l.zoom, l.center), y = this._getAnchor();
|
|
@@ -46313,7 +46316,7 @@ var Kb = { exports: {} };
|
|
|
46313
46316
|
},
|
|
46314
46317
|
_setPosition: function(l) {
|
|
46315
46318
|
var d, y, P = this._map, O = this._container, j = P.latLngToContainerPoint(P.getCenter()), tt = P.layerPointToContainerPoint(l), rt = this.options.direction, at = O.offsetWidth, bt = O.offsetHeight, Rt = H(this.options.offset), Xt = this._getAnchor();
|
|
46316
|
-
rt === "top" ? (d = at / 2, y = bt) : rt === "bottom" ? (d = at / 2, y = 0) : rt === "center" ? (d = at / 2, y = bt / 2) : rt === "right" ? (d = 0, y = bt / 2) : rt === "left" ? (d = at, y = bt / 2) : tt.x < j.x ? (rt = "right", d = 0, y = bt / 2) : (rt = "left", d = at + (Rt.x + Xt.x) * 2, y = bt / 2), l = l.subtract(H(d, y, !0)).add(Rt).add(Xt), le(O, "leaflet-tooltip-right"), le(O, "leaflet-tooltip-left"), le(O, "leaflet-tooltip-top"), le(O, "leaflet-tooltip-bottom"),
|
|
46319
|
+
rt === "top" ? (d = at / 2, y = bt) : rt === "bottom" ? (d = at / 2, y = 0) : rt === "center" ? (d = at / 2, y = bt / 2) : rt === "right" ? (d = 0, y = bt / 2) : rt === "left" ? (d = at, y = bt / 2) : tt.x < j.x ? (rt = "right", d = 0, y = bt / 2) : (rt = "left", d = at + (Rt.x + Xt.x) * 2, y = bt / 2), l = l.subtract(H(d, y, !0)).add(Rt).add(Xt), le(O, "leaflet-tooltip-right"), le(O, "leaflet-tooltip-left"), le(O, "leaflet-tooltip-top"), le(O, "leaflet-tooltip-bottom"), Vt(O, "leaflet-tooltip-" + rt), Qe(O, l);
|
|
46317
46320
|
},
|
|
46318
46321
|
_updatePosition: function() {
|
|
46319
46322
|
var l = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -46534,7 +46537,7 @@ var Kb = { exports: {} };
|
|
|
46534
46537
|
l._addZoomLimit(this);
|
|
46535
46538
|
},
|
|
46536
46539
|
onRemove: function(l) {
|
|
46537
|
-
this._removeAllTiles(),
|
|
46540
|
+
this._removeAllTiles(), pe(this._container), l._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
|
|
46538
46541
|
},
|
|
46539
46542
|
// @method bringToFront: this
|
|
46540
46543
|
// Brings the tile layer to the top of all tile layers.
|
|
@@ -46631,7 +46634,7 @@ var Kb = { exports: {} };
|
|
|
46631
46634
|
var l = this._tileZoom, d = this.options.maxZoom;
|
|
46632
46635
|
if (l !== void 0) {
|
|
46633
46636
|
for (var y in this._levels)
|
|
46634
|
-
y = Number(y), this._levels[y].el.children.length || y === l ? (this._levels[y].el.style.zIndex = d - Math.abs(l - y), this._onUpdateLevel(y)) : (
|
|
46637
|
+
y = Number(y), this._levels[y].el.children.length || y === l ? (this._levels[y].el.style.zIndex = d - Math.abs(l - y), this._onUpdateLevel(y)) : (pe(this._levels[y].el), this._removeTilesAtZoom(y), this._onRemoveLevel(y), delete this._levels[y]);
|
|
46635
46638
|
var P = this._levels[l], O = this._map;
|
|
46636
46639
|
return P || (P = this._levels[l] = {}, P.el = zt("div", "leaflet-tile-container leaflet-zoom-animated", this._container), P.el.style.zIndex = d, P.origin = O.project(O.unproject(O.getPixelOrigin()), l).round(), P.zoom = l, this._setZoomTransform(P, O.getCenter(), O.getZoom()), f(P.el.offsetWidth), this._onCreateLevel(P)), this._level = P, P;
|
|
46637
46640
|
}
|
|
@@ -46667,7 +46670,7 @@ var Kb = { exports: {} };
|
|
|
46667
46670
|
},
|
|
46668
46671
|
_invalidateAll: function() {
|
|
46669
46672
|
for (var l in this._levels)
|
|
46670
|
-
|
|
46673
|
+
pe(this._levels[l].el), this._onRemoveLevel(Number(l)), delete this._levels[l];
|
|
46671
46674
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
46672
46675
|
},
|
|
46673
46676
|
_retainParent: function(l, d, y, P) {
|
|
@@ -46752,8 +46755,8 @@ var Kb = { exports: {} };
|
|
|
46752
46755
|
return;
|
|
46753
46756
|
}
|
|
46754
46757
|
for (var Xt = O.min.y; Xt <= O.max.y; Xt++)
|
|
46755
|
-
for (var
|
|
46756
|
-
var Un = new et(
|
|
46758
|
+
for (var ye = O.min.x; ye <= O.max.x; ye++) {
|
|
46759
|
+
var Un = new et(ye, Xt);
|
|
46757
46760
|
if (Un.z = this._tileZoom, !!this._isValidTile(Un)) {
|
|
46758
46761
|
var xn = this._tiles[this._tileCoordsToKey(Un)];
|
|
46759
46762
|
xn ? xn.current = !0 : tt.push(Un);
|
|
@@ -46764,8 +46767,8 @@ var Kb = { exports: {} };
|
|
|
46764
46767
|
}), tt.length !== 0) {
|
|
46765
46768
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
46766
46769
|
var xr = document.createDocumentFragment();
|
|
46767
|
-
for (
|
|
46768
|
-
this._addTile(tt[
|
|
46770
|
+
for (ye = 0; ye < tt.length; ye++)
|
|
46771
|
+
this._addTile(tt[ye], xr);
|
|
46769
46772
|
this._level.el.appendChild(xr);
|
|
46770
46773
|
}
|
|
46771
46774
|
}
|
|
@@ -46806,13 +46809,13 @@ var Kb = { exports: {} };
|
|
|
46806
46809
|
},
|
|
46807
46810
|
_removeTile: function(l) {
|
|
46808
46811
|
var d = this._tiles[l];
|
|
46809
|
-
d && (
|
|
46812
|
+
d && (pe(d.el), delete this._tiles[l], this.fire("tileunload", {
|
|
46810
46813
|
tile: d.el,
|
|
46811
46814
|
coords: this._keyToTileCoords(l)
|
|
46812
46815
|
}));
|
|
46813
46816
|
},
|
|
46814
46817
|
_initTile: function(l) {
|
|
46815
|
-
|
|
46818
|
+
Vt(l, "leaflet-tile");
|
|
46816
46819
|
var d = this.getTileSize();
|
|
46817
46820
|
l.style.width = d.x + "px", l.style.height = d.y + "px", l.onselectstart = f, l.onmousemove = f, Bt.ielt9 && this.options.opacity < 1 && sr(l, this.options.opacity);
|
|
46818
46821
|
},
|
|
@@ -46834,7 +46837,7 @@ var Kb = { exports: {} };
|
|
|
46834
46837
|
coords: l
|
|
46835
46838
|
});
|
|
46836
46839
|
var P = this._tileCoordsToKey(l);
|
|
46837
|
-
y = this._tiles[P], y && (y.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (sr(y.el, 0), R(this._fadeFrame), this._fadeFrame = D(this._updateOpacity, this)) : (y.active = !0, this._pruneTiles()), d || (
|
|
46840
|
+
y = this._tiles[P], y && (y.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (sr(y.el, 0), R(this._fadeFrame), this._fadeFrame = D(this._updateOpacity, this)) : (y.active = !0, this._pruneTiles()), d || (Vt(y.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
46838
46841
|
tile: y.el,
|
|
46839
46842
|
coords: l
|
|
46840
46843
|
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), Bt.ielt9 || !this._map._fadeAnimated ? D(this._pruneTiles, this) : setTimeout(s(this._pruneTiles, this), 250)));
|
|
@@ -46970,7 +46973,7 @@ var Kb = { exports: {} };
|
|
|
46970
46973
|
if (this._tiles[l].coords.z !== this._tileZoom && (d = this._tiles[l].el, d.onload = f, d.onerror = f, !d.complete)) {
|
|
46971
46974
|
d.src = w;
|
|
46972
46975
|
var y = this._tiles[l].coords;
|
|
46973
|
-
|
|
46976
|
+
pe(d), delete this._tiles[l], this.fire("tileabort", {
|
|
46974
46977
|
tile: d,
|
|
46975
46978
|
coords: y
|
|
46976
46979
|
});
|
|
@@ -47064,7 +47067,7 @@ var Kb = { exports: {} };
|
|
|
47064
47067
|
m(this, l), c(this), this._layers = this._layers || {};
|
|
47065
47068
|
},
|
|
47066
47069
|
onAdd: function() {
|
|
47067
|
-
this._container || (this._initContainer(),
|
|
47070
|
+
this._container || (this._initContainer(), Vt(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
47068
47071
|
},
|
|
47069
47072
|
onRemove: function() {
|
|
47070
47073
|
this.off("update", this._updatePaths, this), this._destroyContainer();
|
|
@@ -47128,7 +47131,7 @@ var Kb = { exports: {} };
|
|
|
47128
47131
|
ue(l, "mousemove", this._onMouseMove, this), ue(l, "click dblclick mousedown mouseup contextmenu", this._onClick, this), ue(l, "mouseout", this._handleMouseOut, this), l._leaflet_disable_events = !0, this._ctx = l.getContext("2d");
|
|
47129
47132
|
},
|
|
47130
47133
|
_destroyContainer: function() {
|
|
47131
|
-
R(this._redrawRequest), delete this._ctx,
|
|
47134
|
+
R(this._redrawRequest), delete this._ctx, pe(this._container), Ie(this._container), delete this._container;
|
|
47132
47135
|
},
|
|
47133
47136
|
_updatePaths: function() {
|
|
47134
47137
|
if (!this._postponeUpdatePaths) {
|
|
@@ -47258,7 +47261,7 @@ var Kb = { exports: {} };
|
|
|
47258
47261
|
if (!this._mouseHoverThrottled) {
|
|
47259
47262
|
for (var y, P, O = this._drawFirst; O; O = O.next)
|
|
47260
47263
|
y = O.layer, y.options.interactive && y._containsPoint(d) && (P = y);
|
|
47261
|
-
P !== this._hoveredLayer && (this._handleMouseOut(l), P && (
|
|
47264
|
+
P !== this._hoveredLayer && (this._handleMouseOut(l), P && (Vt(this._container, "leaflet-interactive"), this._fireEvent([P], l, "mouseover"), this._hoveredLayer = P)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, l), this._mouseHoverThrottled = !0, setTimeout(s(function() {
|
|
47262
47265
|
this._mouseHoverThrottled = !1;
|
|
47263
47266
|
}, this), 32);
|
|
47264
47267
|
}
|
|
@@ -47311,7 +47314,7 @@ var Kb = { exports: {} };
|
|
|
47311
47314
|
},
|
|
47312
47315
|
_initPath: function(l) {
|
|
47313
47316
|
var d = l._container = ya("shape");
|
|
47314
|
-
|
|
47317
|
+
Vt(d, "leaflet-vml-shape " + (this.options.className || "")), d.coordsize = "1 1", l._path = ya("path"), d.appendChild(l._path), this._updateStyle(l), this._layers[c(l)] = l;
|
|
47315
47318
|
},
|
|
47316
47319
|
_addPath: function(l) {
|
|
47317
47320
|
var d = l._container;
|
|
@@ -47319,7 +47322,7 @@ var Kb = { exports: {} };
|
|
|
47319
47322
|
},
|
|
47320
47323
|
_removePath: function(l) {
|
|
47321
47324
|
var d = l._container;
|
|
47322
|
-
|
|
47325
|
+
pe(d), l.removeInteractiveTarget(d), delete this._layers[c(l)];
|
|
47323
47326
|
},
|
|
47324
47327
|
_updateStyle: function(l) {
|
|
47325
47328
|
var d = l._stroke, y = l._fill, P = l.options, O = l._container;
|
|
@@ -47343,7 +47346,7 @@ var Kb = { exports: {} };
|
|
|
47343
47346
|
this._container = Ll("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Ll("g"), this._container.appendChild(this._rootGroup);
|
|
47344
47347
|
},
|
|
47345
47348
|
_destroyContainer: function() {
|
|
47346
|
-
|
|
47349
|
+
pe(this._container), Ie(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
47347
47350
|
},
|
|
47348
47351
|
_update: function() {
|
|
47349
47352
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
@@ -47355,13 +47358,13 @@ var Kb = { exports: {} };
|
|
|
47355
47358
|
// methods below are called by vector layers implementations
|
|
47356
47359
|
_initPath: function(l) {
|
|
47357
47360
|
var d = l._path = Ll("path");
|
|
47358
|
-
l.options.className &&
|
|
47361
|
+
l.options.className && Vt(d, l.options.className), l.options.interactive && Vt(d, "leaflet-interactive"), this._updateStyle(l), this._layers[c(l)] = l;
|
|
47359
47362
|
},
|
|
47360
47363
|
_addPath: function(l) {
|
|
47361
47364
|
this._rootGroup || this._initContainer(), this._rootGroup.appendChild(l._path), l.addInteractiveTarget(l._path);
|
|
47362
47365
|
},
|
|
47363
47366
|
_removePath: function(l) {
|
|
47364
|
-
|
|
47367
|
+
pe(l._path), l.removeInteractiveTarget(l._path), delete this._layers[c(l)];
|
|
47365
47368
|
},
|
|
47366
47369
|
_updatePath: function(l) {
|
|
47367
47370
|
l._project(), l._update();
|
|
@@ -47371,7 +47374,7 @@ var Kb = { exports: {} };
|
|
|
47371
47374
|
d && (y.stroke ? (d.setAttribute("stroke", y.color), d.setAttribute("stroke-opacity", y.opacity), d.setAttribute("stroke-width", y.weight), d.setAttribute("stroke-linecap", y.lineCap), d.setAttribute("stroke-linejoin", y.lineJoin), y.dashArray ? d.setAttribute("stroke-dasharray", y.dashArray) : d.removeAttribute("stroke-dasharray"), y.dashOffset ? d.setAttribute("stroke-dashoffset", y.dashOffset) : d.removeAttribute("stroke-dashoffset")) : d.setAttribute("stroke", "none"), y.fill ? (d.setAttribute("fill", y.fillColor || y.color), d.setAttribute("fill-opacity", y.fillOpacity), d.setAttribute("fill-rule", y.fillRule || "evenodd")) : d.setAttribute("fill", "none"));
|
|
47372
47375
|
},
|
|
47373
47376
|
_updatePoly: function(l, d) {
|
|
47374
|
-
this._setPath(l,
|
|
47377
|
+
this._setPath(l, de(l._parts, d));
|
|
47375
47378
|
},
|
|
47376
47379
|
_updateCircle: function(l) {
|
|
47377
47380
|
var d = l._point, y = Math.max(Math.round(l._radius), 1), P = Math.max(Math.round(l._radiusY), 1) || y, O = "a" + y + "," + P + " 0 1,0 ", j = l._empty() ? "M0 0" : "M" + (d.x - y) + "," + d.y + O + y * 2 + ",0 " + O + -y * 2 + ",0 ";
|
|
@@ -47432,7 +47435,7 @@ var Kb = { exports: {} };
|
|
|
47432
47435
|
function va(l, d) {
|
|
47433
47436
|
return new Cu(l, d);
|
|
47434
47437
|
}
|
|
47435
|
-
In.create = Ll, In.pointsToPath =
|
|
47438
|
+
In.create = Ll, In.pointsToPath = de, ci.geometryToLayer = Ol, ci.coordsToLatLng = $n, ci.coordsToLatLngs = ha, ci.latLngToCoords = Ml, ci.latLngsToCoords = Mi, ci.getFeature = Yi, ci.asFeature = vs, Lt.mergeOptions({
|
|
47436
47439
|
// @option boxZoom: Boolean = true
|
|
47437
47440
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
47438
47441
|
// dragging the mouse while pressing the shift key.
|
|
@@ -47452,7 +47455,7 @@ var Kb = { exports: {} };
|
|
|
47452
47455
|
return this._moved;
|
|
47453
47456
|
},
|
|
47454
47457
|
_destroy: function() {
|
|
47455
|
-
|
|
47458
|
+
pe(this._pane), delete this._pane;
|
|
47456
47459
|
},
|
|
47457
47460
|
_resetState: function() {
|
|
47458
47461
|
this._resetStateTimeout = 0, this._moved = !1;
|
|
@@ -47471,12 +47474,12 @@ var Kb = { exports: {} };
|
|
|
47471
47474
|
}, this);
|
|
47472
47475
|
},
|
|
47473
47476
|
_onMouseMove: function(l) {
|
|
47474
|
-
this._moved || (this._moved = !0, this._box = zt("div", "leaflet-zoom-box", this._container),
|
|
47477
|
+
this._moved || (this._moved = !0, this._box = zt("div", "leaflet-zoom-box", this._container), Vt(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(l);
|
|
47475
47478
|
var d = new J(this._point, this._startPoint), y = d.getSize();
|
|
47476
47479
|
Qe(this._box, d.min), this._box.style.width = y.x + "px", this._box.style.height = y.y + "px";
|
|
47477
47480
|
},
|
|
47478
47481
|
_finish: function() {
|
|
47479
|
-
this._moved && (
|
|
47482
|
+
this._moved && (pe(this._box), le(this._container, "leaflet-crosshair")), ii(), ds(), Ie(document, {
|
|
47480
47483
|
contextmenu: Ao,
|
|
47481
47484
|
mousemove: this._onMouseMove,
|
|
47482
47485
|
mouseup: this._onMouseUp,
|
|
@@ -47562,7 +47565,7 @@ var Kb = { exports: {} };
|
|
|
47562
47565
|
dragend: this._onDragEnd
|
|
47563
47566
|
}, this), this._draggable.on("predrag", this._onPreDragLimit, this), l.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), l.on("zoomend", this._onZoomEnd, this), l.whenReady(this._onZoomEnd, this));
|
|
47564
47567
|
}
|
|
47565
|
-
|
|
47568
|
+
Vt(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
|
|
47566
47569
|
},
|
|
47567
47570
|
removeHooks: function() {
|
|
47568
47571
|
le(this._map._container, "leaflet-grab"), le(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
|
|
@@ -47619,9 +47622,9 @@ var Kb = { exports: {} };
|
|
|
47619
47622
|
d.fire("moveend");
|
|
47620
47623
|
else {
|
|
47621
47624
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
47622
|
-
var O = this._lastPos.subtract(this._positions[0]), j = (this._lastTime - this._times[0]) / 1e3, tt = y.easeLinearity, rt = O.multiplyBy(tt / j), at = rt.distanceTo([0, 0]), bt = Math.min(y.inertiaMaxSpeed, at), Rt = rt.multiplyBy(bt / at), Xt = bt / (y.inertiaDeceleration * tt),
|
|
47623
|
-
!
|
|
47624
|
-
d.panBy(
|
|
47625
|
+
var O = this._lastPos.subtract(this._positions[0]), j = (this._lastTime - this._times[0]) / 1e3, tt = y.easeLinearity, rt = O.multiplyBy(tt / j), at = rt.distanceTo([0, 0]), bt = Math.min(y.inertiaMaxSpeed, at), Rt = rt.multiplyBy(bt / at), Xt = bt / (y.inertiaDeceleration * tt), ye = Rt.multiplyBy(-Xt / 2).round();
|
|
47626
|
+
!ye.x && !ye.y ? d.fire("moveend") : (ye = d._limitOffset(ye, d.options.maxBounds), D(function() {
|
|
47627
|
+
d.panBy(ye, {
|
|
47625
47628
|
duration: Xt,
|
|
47626
47629
|
easeLinearity: tt,
|
|
47627
47630
|
noMoveStart: !0,
|
|
@@ -47836,7 +47839,7 @@ var Kb = { exports: {} };
|
|
|
47836
47839
|
});
|
|
47837
47840
|
var qf = Fn.extend({
|
|
47838
47841
|
addHooks: function() {
|
|
47839
|
-
|
|
47842
|
+
Vt(this._map._container, "leaflet-touch-zoom"), ue(this._map._container, "touchstart", this._onTouchStart, this);
|
|
47840
47843
|
},
|
|
47841
47844
|
removeHooks: function() {
|
|
47842
47845
|
le(this._map._container, "leaflet-touch-zoom"), Ie(this._map._container, "touchstart", this._onTouchStart, this);
|
|
@@ -50596,9 +50599,9 @@ function jdt(e, t, n = !0) {
|
|
|
50596
50599
|
u.top = ut[1];
|
|
50597
50600
|
continue;
|
|
50598
50601
|
}
|
|
50599
|
-
const
|
|
50600
|
-
if (
|
|
50601
|
-
u.right =
|
|
50602
|
+
const ft = m.match(/^right-\[([^\]]+)\]$/);
|
|
50603
|
+
if (ft) {
|
|
50604
|
+
u.right = ft[1];
|
|
50602
50605
|
continue;
|
|
50603
50606
|
}
|
|
50604
50607
|
const Nt = m.match(/^bottom-\[([^\]]+)\]$/);
|
|
@@ -50616,9 +50619,9 @@ function jdt(e, t, n = !0) {
|
|
|
50616
50619
|
u.inset = St[1];
|
|
50617
50620
|
continue;
|
|
50618
50621
|
}
|
|
50619
|
-
const
|
|
50620
|
-
if (
|
|
50621
|
-
u.zIndex = parseInt(
|
|
50622
|
+
const dt = m.match(/^z-\[([^\]]+)\]$/);
|
|
50623
|
+
if (dt) {
|
|
50624
|
+
u.zIndex = parseInt(dt[1]) || dt[1];
|
|
50622
50625
|
continue;
|
|
50623
50626
|
}
|
|
50624
50627
|
const Jt = m.match(/^opacity-\[([^\]]+)\]$/);
|
|
@@ -50626,9 +50629,9 @@ function jdt(e, t, n = !0) {
|
|
|
50626
50629
|
u.opacity = parseFloat(Jt[1]);
|
|
50627
50630
|
continue;
|
|
50628
50631
|
}
|
|
50629
|
-
const
|
|
50630
|
-
if (
|
|
50631
|
-
u.lineHeight =
|
|
50632
|
+
const de = m.match(/^leading-\[([^\]]+)\]$/);
|
|
50633
|
+
if (de) {
|
|
50634
|
+
u.lineHeight = de[1];
|
|
50632
50635
|
continue;
|
|
50633
50636
|
}
|
|
50634
50637
|
if (m === "flex") {
|
|
@@ -51333,9 +51336,9 @@ function jdt(e, t, n = !0) {
|
|
|
51333
51336
|
u.bottom = Se[ze[1]] || `${parseFloat(ze[1]) * 0.25}rem`;
|
|
51334
51337
|
continue;
|
|
51335
51338
|
}
|
|
51336
|
-
const
|
|
51337
|
-
if (
|
|
51338
|
-
const Ct = Se[
|
|
51339
|
+
const ge = m.match(/^-bottom-(\d+(?:\.\d+)?)$/);
|
|
51340
|
+
if (ge) {
|
|
51341
|
+
const Ct = Se[ge[1]] || `${parseFloat(ge[1]) * 0.25}rem`;
|
|
51339
51342
|
u.bottom = `-${Ct}`;
|
|
51340
51343
|
continue;
|
|
51341
51344
|
}
|
|
@@ -51529,20 +51532,20 @@ function jdt(e, t, n = !0) {
|
|
|
51529
51532
|
}
|
|
51530
51533
|
const ir = m.match(/^from-([\w-]+)(?:\/([\d]+))?$/);
|
|
51531
51534
|
if (ir) {
|
|
51532
|
-
const Ct = ir[1], Ge = ir[2],
|
|
51533
|
-
|
|
51535
|
+
const Ct = ir[1], Ge = ir[2], Vt = c[Ct];
|
|
51536
|
+
Vt && (p = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51534
51537
|
continue;
|
|
51535
51538
|
}
|
|
51536
51539
|
const an = m.match(/^via-([\w-]+)(?:\/([\d]+))?$/);
|
|
51537
51540
|
if (an) {
|
|
51538
|
-
const Ct = an[1], Ge = an[2],
|
|
51539
|
-
|
|
51541
|
+
const Ct = an[1], Ge = an[2], Vt = c[Ct];
|
|
51542
|
+
Vt && (g = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51540
51543
|
continue;
|
|
51541
51544
|
}
|
|
51542
51545
|
const ts = m.match(/^to-([\w-]+)(?:\/([\d]+))?$/);
|
|
51543
51546
|
if (ts) {
|
|
51544
|
-
const Ct = ts[1], Ge = ts[2],
|
|
51545
|
-
|
|
51547
|
+
const Ct = ts[1], Ge = ts[2], Vt = c[Ct];
|
|
51548
|
+
Vt && (x = Ge ? Pa(Vt, parseInt(Ge) / 100) : Vt);
|
|
51546
51549
|
continue;
|
|
51547
51550
|
}
|
|
51548
51551
|
const po = m.match(/^p-(\d+(?:\.\d+)?)$/);
|
|
@@ -51812,10 +51815,10 @@ function jdt(e, t, n = !0) {
|
|
|
51812
51815
|
}
|
|
51813
51816
|
const Fi = m.match(/^ring-([\w-]+)(?:\/([\d]+))?$/);
|
|
51814
51817
|
if (Fi && !m.match(/^ring-\d$/)) {
|
|
51815
|
-
const Ct = Fi[1], Ge = Fi[2],
|
|
51816
|
-
if (
|
|
51818
|
+
const Ct = Fi[1], Ge = Fi[2], Vt = c[Ct];
|
|
51819
|
+
if (Vt) {
|
|
51817
51820
|
const le = Ge ? parseInt(Ge) / 100 : 1;
|
|
51818
|
-
u.boxShadow && u.boxShadow.includes("0 0 0") && (u.boxShadow = u.boxShadow.replace(/rgba\([^)]+\)/, Pa(
|
|
51821
|
+
u.boxShadow && u.boxShadow.includes("0 0 0") && (u.boxShadow = u.boxShadow.replace(/rgba\([^)]+\)/, Pa(Vt, le)));
|
|
51819
51822
|
}
|
|
51820
51823
|
continue;
|
|
51821
51824
|
}
|
|
@@ -52027,9 +52030,9 @@ function jdt(e, t, n = !0) {
|
|
|
52027
52030
|
u.width = zt[1];
|
|
52028
52031
|
continue;
|
|
52029
52032
|
}
|
|
52030
|
-
const
|
|
52031
|
-
if (
|
|
52032
|
-
u.height =
|
|
52033
|
+
const pe = m.match(/^h-\[(.+)\]$/);
|
|
52034
|
+
if (pe) {
|
|
52035
|
+
u.height = pe[1];
|
|
52033
52036
|
continue;
|
|
52034
52037
|
}
|
|
52035
52038
|
const wo = m.match(/^min-h-\[(.+)\]$/);
|
|
@@ -52453,12 +52456,12 @@ function fT(e, t, n, r, i, o, s) {
|
|
|
52453
52456
|
yt
|
|
52454
52457
|
);
|
|
52455
52458
|
if (!$t) return !1;
|
|
52456
|
-
const [Tt, ut,
|
|
52459
|
+
const [Tt, ut, ft] = [
|
|
52457
52460
|
parseInt($t[1], 16),
|
|
52458
52461
|
parseInt($t[2], 16),
|
|
52459
52462
|
parseInt($t[3], 16)
|
|
52460
52463
|
];
|
|
52461
|
-
return (Tt * 299 + ut * 587 +
|
|
52464
|
+
return (Tt * 299 + ut * 587 + ft * 114) / 1e3 > 150;
|
|
52462
52465
|
})(t.colors.primary) ? "#000000" : "#ffffff", mt = {
|
|
52463
52466
|
primary: {
|
|
52464
52467
|
background: t.colors.primary,
|
|
@@ -52512,7 +52515,14 @@ function fT(e, t, n, r, i, o, s) {
|
|
|
52512
52515
|
}
|
|
52513
52516
|
)
|
|
52514
52517
|
) : null,
|
|
52515
|
-
u.skeleton && !v &&
|
|
52518
|
+
u.skeleton && !v && // Scope to the modal's OWN loading keys ({scene}|modal-*) so background
|
|
52519
|
+
// scene list refetches never mask an already-rendered modal body.
|
|
52520
|
+
(n.loading && Object.entries(n.loading).some(
|
|
52521
|
+
([H, J]) => {
|
|
52522
|
+
var ot;
|
|
52523
|
+
return J && ((ot = H.split("|")[1]) == null ? void 0 : ot.startsWith("modal"));
|
|
52524
|
+
}
|
|
52525
|
+
)) ? b.createElement(
|
|
52516
52526
|
"div",
|
|
52517
52527
|
{
|
|
52518
52528
|
key: "bf-modal-skeleton",
|
|
@@ -52607,7 +52617,7 @@ function Vdt({
|
|
|
52607
52617
|
remoteSessionId: U,
|
|
52608
52618
|
devDiagnostics: W
|
|
52609
52619
|
}) {
|
|
52610
|
-
var y, P, O, j, tt, rt, at, bt, Rt, Xt,
|
|
52620
|
+
var y, P, O, j, tt, rt, at, bt, Rt, Xt, ye, Un, xn, xr, Jn, Mo, Gf;
|
|
52611
52621
|
b.useEffect(() => {
|
|
52612
52622
|
if (typeof document > "u") return;
|
|
52613
52623
|
const C = (e == null ? void 0 : e.title) || a;
|
|
@@ -52652,7 +52662,7 @@ function Vdt({
|
|
|
52652
52662
|
colorMode: Lt.colorMode
|
|
52653
52663
|
},
|
|
52654
52664
|
vt
|
|
52655
|
-
), $t = I || "legacy", Tt = A || (S ? "hash" : "memory"), ut = Tt !== "memory", [
|
|
52665
|
+
), $t = I || "legacy", Tt = A || (S ? "hash" : "memory"), ut = Tt !== "memory", [ft, Nt] = b.useState(F), [nt, St] = b.useState(!1), [dt, Jt] = b.useState(!1), [de, Ce] = b.useState("idle"), { sceneToRoute: ae, routeToScene: sn } = b.useMemo(
|
|
52656
52666
|
() => Cdt(J),
|
|
52657
52667
|
[J]
|
|
52658
52668
|
), We = b.useMemo(() => {
|
|
@@ -52669,14 +52679,14 @@ function Vdt({
|
|
|
52669
52679
|
return We;
|
|
52670
52680
|
}, [We, ut, Tt, sn, ae]), [Xe, Je] = b.useState([]), [dr, pr] = b.useState(Sn), rr = b.useRef(null), Ve = Lz(rr), Or = b.useRef(!1);
|
|
52671
52681
|
b.useRef(null);
|
|
52672
|
-
const Zt = b.useRef(!1), te = b.useRef(!1), ze = b.useRef(0),
|
|
52682
|
+
const Zt = b.useRef(!1), te = b.useRef(!1), ze = b.useRef(0), ge = b.useRef(null), oe = b.useRef(!1), Ee = b.useRef(!1), be = b.useRef(
|
|
52673
52683
|
null
|
|
52674
52684
|
), mr = (C) => {
|
|
52675
52685
|
var M, $;
|
|
52676
52686
|
return (C == null ? void 0 : C.requiresAuth) === !0 || ((M = C == null ? void 0 : C.config) == null ? void 0 : M.requireAuth) === !0 || (($ = C == null ? void 0 : C.config) == null ? void 0 : $.requiresAuth) === !0;
|
|
52677
52687
|
}, gr = () => {
|
|
52678
52688
|
var Z;
|
|
52679
|
-
const C =
|
|
52689
|
+
const C = ge.current, $ = (C && H.some((B) => B.id === C) ? C : null) || ((Z = H.find(
|
|
52680
52690
|
(B) => B.type === "render_scene" && mr(B)
|
|
52681
52691
|
)) == null ? void 0 : Z.id);
|
|
52682
52692
|
$ && ut && (Tt === "hash" ? Vl($, ae, !0) : Ul($, ae, !0)), (!$ || !ut) && localStorage.setItem("backflow_post_auth_redirect", "1"), window.location.reload();
|
|
@@ -52726,26 +52736,26 @@ function Vdt({
|
|
|
52726
52736
|
}, [Ot, J]);
|
|
52727
52737
|
const an = (e == null ? void 0 : e.modals) || {};
|
|
52728
52738
|
b.useEffect(() => {
|
|
52729
|
-
if (!
|
|
52739
|
+
if (!ft) return;
|
|
52730
52740
|
const C = Lt.startupModal;
|
|
52731
|
-
!C || !an[C] || localStorage.getItem(`backflow_startup_modal_${C}`) ||
|
|
52732
|
-
}, [
|
|
52741
|
+
!C || !an[C] || localStorage.getItem(`backflow_startup_modal_${C}`) || pe({ id: C, definition: an[C] });
|
|
52742
|
+
}, [ft]);
|
|
52733
52743
|
const ts = b.useRef(
|
|
52734
52744
|
typeof window > "u" ? null : new URLSearchParams(window.location.search).get(
|
|
52735
52745
|
"customer_session_token"
|
|
52736
52746
|
)
|
|
52737
52747
|
);
|
|
52738
52748
|
b.useEffect(() => {
|
|
52739
|
-
if (!
|
|
52749
|
+
if (!ft || !ts.current || !an["payment-success"]) return;
|
|
52740
52750
|
window.history.replaceState({}, "", window.location.pathname);
|
|
52741
52751
|
const M = setTimeout(() => {
|
|
52742
|
-
an["payment-success"] &&
|
|
52752
|
+
an["payment-success"] && pe({
|
|
52743
52753
|
id: "payment-success",
|
|
52744
52754
|
definition: an["payment-success"]
|
|
52745
52755
|
});
|
|
52746
52756
|
}, 400);
|
|
52747
52757
|
return () => clearTimeout(M);
|
|
52748
|
-
}, [
|
|
52758
|
+
}, [ft, an["payment-success"]]), b.useEffect(() => {
|
|
52749
52759
|
q === !0 && (!Ot || J.some((C) => C.id === Ot) || We && ir(We));
|
|
52750
52760
|
}, [q, J, Ot, We]), b.useEffect(() => {
|
|
52751
52761
|
if (ut) {
|
|
@@ -52820,7 +52830,7 @@ function Vdt({
|
|
|
52820
52830
|
}));
|
|
52821
52831
|
} catch {
|
|
52822
52832
|
}
|
|
52823
|
-
}, [r,
|
|
52833
|
+
}, [r, ft, Ot]), b.useEffect(() => {
|
|
52824
52834
|
if (!ut || typeof window > "u") return;
|
|
52825
52835
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, M = qu(C, sn, ae);
|
|
52826
52836
|
if (!M || M.sceneId !== Ot) return;
|
|
@@ -52873,7 +52883,7 @@ function Vdt({
|
|
|
52873
52883
|
const C = Tt === "hash" ? window.location.hash.slice(1) || "/" : window.location.pathname, M = qu(C, sn, ae);
|
|
52874
52884
|
if (!(!M || M.sceneId === We))
|
|
52875
52885
|
return Ee.current = !0, be.current = setTimeout(() => {
|
|
52876
|
-
oe.current || (
|
|
52886
|
+
oe.current || (ft ? (pr(We), Je([]), v == null || v(We), Tt === "hash" ? Vl(We, ae, !0) : Ul(We, ae, !0)) : (te.current = !0, St(!0)));
|
|
52877
52887
|
}, 4e3), () => {
|
|
52878
52888
|
be.current && (clearTimeout(be.current), be.current = null);
|
|
52879
52889
|
};
|
|
@@ -52883,17 +52893,17 @@ function Vdt({
|
|
|
52883
52893
|
sn,
|
|
52884
52894
|
ae,
|
|
52885
52895
|
We,
|
|
52886
|
-
|
|
52896
|
+
ft,
|
|
52887
52897
|
v
|
|
52888
52898
|
]), b.useEffect(() => {
|
|
52889
52899
|
const C = () => {
|
|
52890
52900
|
const $ = localStorage.getItem("token");
|
|
52891
|
-
!(!!$ && !Hl($)) &&
|
|
52901
|
+
!(!!$ && !Hl($)) && ft && (te.current = !0, Ot && (ge.current = Ot), Nt(!1), St(!0));
|
|
52892
52902
|
}, M = setInterval(C, 15e3);
|
|
52893
52903
|
return window.addEventListener("storage", C), () => {
|
|
52894
52904
|
clearInterval(M), window.removeEventListener("storage", C);
|
|
52895
52905
|
};
|
|
52896
|
-
}, [
|
|
52906
|
+
}, [ft, Ot]), b.useEffect(() => {
|
|
52897
52907
|
U && he(
|
|
52898
52908
|
(C) => C.remoteSessionId === U ? C : { ...C, remoteSessionId: U }
|
|
52899
52909
|
);
|
|
@@ -52908,7 +52918,7 @@ function Vdt({
|
|
|
52908
52918
|
[Ot, ns]
|
|
52909
52919
|
), [go, rs] = b.useState({}), zi = b.useRef({}), Pi = b.useCallback(
|
|
52910
52920
|
async (C, M = !1) => {
|
|
52911
|
-
if (!
|
|
52921
|
+
if (!ft || !C.appId) return;
|
|
52912
52922
|
const $ = N || (t == null ? void 0 : t.endpoint) || window.location.origin, Z = !N && typeof $ == "string" && $.startsWith("/") ? $.replace(/\/+$/, "") : "", B = /^https?:\/\//.test($) ? $ : window.location.origin, K = `${Z}/mobile/apps/${encodeURIComponent(C.appId)}/workflow`, Y = await fetch(new URL(K, B).toString(), {
|
|
52913
52923
|
cache: M ? "no-cache" : "default",
|
|
52914
52924
|
headers: {
|
|
@@ -52921,7 +52931,7 @@ function Vdt({
|
|
|
52921
52931
|
throw new Error(`Workflow reference ${C.id} is invalid`);
|
|
52922
52932
|
rs((lt) => ({ ...lt, [C.id]: X }));
|
|
52923
52933
|
},
|
|
52924
|
-
[N, r,
|
|
52934
|
+
[N, r, ft, t]
|
|
52925
52935
|
);
|
|
52926
52936
|
b.useEffect(() => {
|
|
52927
52937
|
let C = !1;
|
|
@@ -53001,7 +53011,7 @@ function Vdt({
|
|
|
53001
53011
|
b.useEffect(() => {
|
|
53002
53012
|
ls.current.clear(), cs.current.clear(), ea([]);
|
|
53003
53013
|
}, [Ot]);
|
|
53004
|
-
const zn = b.useRef(/* @__PURE__ */ new Map()), vr = b.useRef(/* @__PURE__ */ new Map()), xo = b.useRef(/* @__PURE__ */ new Set()), [hs, Wi] = b.useState(!1), [zt,
|
|
53014
|
+
const zn = b.useRef(/* @__PURE__ */ new Map()), vr = b.useRef(/* @__PURE__ */ new Map()), xo = b.useRef(/* @__PURE__ */ new Set()), [hs, Wi] = b.useState(!1), [zt, pe] = b.useState(null), [wo, ni] = b.useState(
|
|
53005
53015
|
null
|
|
53006
53016
|
), Ct = b.useRef(zt);
|
|
53007
53017
|
Ct.current = zt;
|
|
@@ -53017,22 +53027,22 @@ function Vdt({
|
|
|
53017
53027
|
window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C);
|
|
53018
53028
|
};
|
|
53019
53029
|
}, [zt == null ? void 0 : zt.id, (rt = zt == null ? void 0 : zt.definition) == null ? void 0 : rt.popover]);
|
|
53020
|
-
const
|
|
53021
|
-
|
|
53030
|
+
const Vt = b.useCallback(() => {
|
|
53031
|
+
pe((C) => C ? { ...C, closing: !0 } : null), setTimeout(() => pe(null), 250);
|
|
53022
53032
|
}, []);
|
|
53023
53033
|
b.useEffect(() => {
|
|
53024
53034
|
var $;
|
|
53025
53035
|
const C = ($ = zt == null ? void 0 : zt.definition) == null ? void 0 : $.autoClose;
|
|
53026
53036
|
if (!C || C <= 0 || zt != null && zt.closing) return;
|
|
53027
|
-
const M = setTimeout(() =>
|
|
53037
|
+
const M = setTimeout(() => Vt(), C);
|
|
53028
53038
|
return () => clearTimeout(M);
|
|
53029
53039
|
}, [zt == null ? void 0 : zt.id]);
|
|
53030
53040
|
const [le, fs] = b.useState(null), gl = b.useCallback(() => {
|
|
53031
53041
|
fs((C) => C ? { ...C, closing: !0 } : null), setTimeout(() => fs(null), 250);
|
|
53032
53042
|
}, []), sr = Ve > 0 && Ve < Sh.md;
|
|
53033
53043
|
b.useEffect(() => {
|
|
53034
|
-
e && typeof e == "object" && (e.auth = { signedIn:
|
|
53035
|
-
}, [e,
|
|
53044
|
+
e && typeof e == "object" && (e.auth = { signedIn: ft });
|
|
53045
|
+
}, [e, ft]), b.useEffect(() => {
|
|
53036
53046
|
const C = e;
|
|
53037
53047
|
if (!C) return;
|
|
53038
53048
|
C.config || (C.config = {});
|
|
@@ -53111,7 +53121,7 @@ function Vdt({
|
|
|
53111
53121
|
te.current = !0, Nt(!1);
|
|
53112
53122
|
return;
|
|
53113
53123
|
}
|
|
53114
|
-
if (!
|
|
53124
|
+
if (!ft && (nt || te.current || !!ge.current)) {
|
|
53115
53125
|
gr();
|
|
53116
53126
|
return;
|
|
53117
53127
|
}
|
|
@@ -53164,7 +53174,7 @@ function Vdt({
|
|
|
53164
53174
|
), !te.current) {
|
|
53165
53175
|
te.current = !0, localStorage.removeItem("token"), Nt(!1);
|
|
53166
53176
|
const B = J.find((Y) => Y.id === Ot), K = (($ = B == null ? void 0 : B.config) == null ? void 0 : $.requireAuth) === !0 || (B == null ? void 0 : B.requiresAuth) === !0;
|
|
53167
|
-
(M || K || Ot && Ot !== We) && (St(!0), Ot && (
|
|
53177
|
+
(M || K || Ot && Ot !== We) && (St(!0), Ot && (ge.current = Ot));
|
|
53168
53178
|
}
|
|
53169
53179
|
return !0;
|
|
53170
53180
|
}
|
|
@@ -53239,7 +53249,7 @@ function Vdt({
|
|
|
53239
53249
|
const Z = Pn.current;
|
|
53240
53250
|
try {
|
|
53241
53251
|
if (M.startsWith("execute_workflow:")) {
|
|
53242
|
-
if (!
|
|
53252
|
+
if (!ft) return;
|
|
53243
53253
|
const { method: X, path: lt } = Mf(
|
|
53244
53254
|
M.replace("execute_workflow:", "")
|
|
53245
53255
|
), it = lt.replace(/:(\w+)/g, (Pt, Yt) => {
|
|
@@ -53267,8 +53277,8 @@ function Vdt({
|
|
|
53267
53277
|
Ae(C.onSuccess.value, "success");
|
|
53268
53278
|
else if (((K = C.onSuccess) == null ? void 0 : K.type) === "navigate" && C.onSuccess.value) {
|
|
53269
53279
|
const Pt = C.onSuccess.value;
|
|
53270
|
-
if (ot(Pt) && !
|
|
53271
|
-
|
|
53280
|
+
if (ot(Pt) && !ft) {
|
|
53281
|
+
ge.current = Pt, St(!0);
|
|
53272
53282
|
return;
|
|
53273
53283
|
}
|
|
53274
53284
|
Je((It) => [...It, Ot]), ir(Pt);
|
|
@@ -53281,15 +53291,15 @@ function Vdt({
|
|
|
53281
53291
|
}, he((Pt) => ({ ...Pt }));
|
|
53282
53292
|
} else if (M.startsWith("navigate:")) {
|
|
53283
53293
|
const X = M.replace("navigate:", "");
|
|
53284
|
-
if (ot(X) && !
|
|
53285
|
-
|
|
53294
|
+
if (ot(X) && !ft) {
|
|
53295
|
+
ge.current = X, St(!0);
|
|
53286
53296
|
return;
|
|
53287
53297
|
}
|
|
53288
53298
|
Je((it) => [...it, Ot]), ir(X);
|
|
53289
53299
|
} else if (M.startsWith("go_to_step:")) {
|
|
53290
53300
|
const X = M.replace("go_to_step:", "").split("?")[0].trim();
|
|
53291
|
-
if (ot(X) && !
|
|
53292
|
-
|
|
53301
|
+
if (ot(X) && !ft) {
|
|
53302
|
+
ge.current = X, St(!0);
|
|
53293
53303
|
return;
|
|
53294
53304
|
}
|
|
53295
53305
|
Je((it) => [...it, Ot]), ir(X);
|
|
@@ -53308,13 +53318,13 @@ function Vdt({
|
|
|
53308
53318
|
for (const Pt of Object.keys(Mt))
|
|
53309
53319
|
Pt.startsWith("__acc_") && (delete Mt[Pt], wt = !0);
|
|
53310
53320
|
return wt ? Mt : gt;
|
|
53311
|
-
}),
|
|
53321
|
+
}), pe({
|
|
53312
53322
|
id: X,
|
|
53313
53323
|
definition: lt
|
|
53314
|
-
});
|
|
53324
|
+
}), lt.preload && await la(String(lt.preload));
|
|
53315
53325
|
} else {
|
|
53316
53326
|
const lt = X.split("|");
|
|
53317
|
-
|
|
53327
|
+
pe({
|
|
53318
53328
|
id: "__legacy",
|
|
53319
53329
|
definition: {
|
|
53320
53330
|
title: lt[0] || "Notice",
|
|
@@ -53340,7 +53350,7 @@ function Vdt({
|
|
|
53340
53350
|
(Q = C.onError) != null && Q.message && Ae(C.onError.message, "error");
|
|
53341
53351
|
}
|
|
53342
53352
|
},
|
|
53343
|
-
[Ot, J,
|
|
53353
|
+
[Ot, J, ft]
|
|
53344
53354
|
), kf = b.useRef(null), xl = b.useRef(null);
|
|
53345
53355
|
b.useEffect(() => {
|
|
53346
53356
|
const C = xl.current;
|
|
@@ -53375,41 +53385,41 @@ function Vdt({
|
|
|
53375
53385
|
[]
|
|
53376
53386
|
), Fn = b.useRef({}), $f = b.useRef({}), xu = b.useRef({}), Ti = b.useRef(/* @__PURE__ */ new Map()), wl = b.useRef(/* @__PURE__ */ new Map()), oa = b.useRef(/* @__PURE__ */ new Set()), _l = b.useRef(/* @__PURE__ */ new Set()), qi = b.useRef(null), Sl = b.useRef([]), gs = b.useRef({}), Wn = b.useCallback(
|
|
53377
53387
|
async (C, M, $ = 0, Z = 10, B, K, Y, Q = !1, X = !1) => {
|
|
53378
|
-
var Yt, It,
|
|
53379
|
-
if (!C || te.current || !
|
|
53388
|
+
var Yt, It, Ft, fe, jt;
|
|
53389
|
+
if (!C || te.current || !ft) return;
|
|
53380
53390
|
const lt = `${M}|${C}|${$}|${Q}`, it = Ti.current.get(lt) || 0, gt = Fn.current[M] === C, Mt = $f.current[M] === lt;
|
|
53381
53391
|
if (!X && gt && Mt && Date.now() - it < 1e3) return;
|
|
53382
|
-
$f.current[M] = lt, Ti.current.set(lt, Date.now()), Fn.current[M] = C, $ === 0 && !Q && (fa.current[M] = 1), yo((
|
|
53392
|
+
$f.current[M] = lt, Ti.current.set(lt, Date.now()), Fn.current[M] = C, $ === 0 && !Q && (fa.current[M] = 1), yo((ht) => ({ ...ht, [M]: "" }));
|
|
53383
53393
|
const Pt = C.match(
|
|
53384
53394
|
/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/
|
|
53385
53395
|
);
|
|
53386
53396
|
if (Pt) {
|
|
53387
|
-
const
|
|
53397
|
+
const ht = kn(
|
|
53388
53398
|
`${Pt[1]}${Pt[2] ? "." + Pt[2] : ""}`
|
|
53389
53399
|
);
|
|
53390
|
-
if (Array.isArray(
|
|
53391
|
-
return Bt((xt) => ({ ...xt, [M]:
|
|
53400
|
+
if (Array.isArray(ht))
|
|
53401
|
+
return Bt((xt) => ({ ...xt, [M]: ht })), An.current[M] = ht, An.current[C] = ht, as((xt) => ({
|
|
53392
53402
|
...xt,
|
|
53393
53403
|
[M]: {
|
|
53394
53404
|
page: $,
|
|
53395
53405
|
limit: Z,
|
|
53396
|
-
total:
|
|
53397
|
-
hasMore: ($ + 1) * Z <
|
|
53406
|
+
total: ht.length,
|
|
53407
|
+
hasMore: ($ + 1) * Z < ht.length
|
|
53398
53408
|
}
|
|
53399
|
-
})),
|
|
53409
|
+
})), ht;
|
|
53400
53410
|
}
|
|
53401
53411
|
vo.current.has(M) || Ur.current[M] || (Ur.current[M] = setTimeout(() => {
|
|
53402
|
-
delete Ur.current[M], ss((
|
|
53412
|
+
delete Ur.current[M], ss((ht) => ({ ...ht, [M]: !0 }));
|
|
53403
53413
|
}, 180));
|
|
53404
53414
|
try {
|
|
53405
|
-
let
|
|
53415
|
+
let ht = [], xt = 0, _t;
|
|
53406
53416
|
const Kt = Pn.current;
|
|
53407
53417
|
if (na(C, M), Dd(C) && t) {
|
|
53408
53418
|
const Ut = If(C, {
|
|
53409
53419
|
limit: Z,
|
|
53410
53420
|
page: $
|
|
53411
53421
|
}), Me = B ? Mr(Ut, B, K) : Ut, Ht = Td(Me), se = await Wy(t, Ht, Kt);
|
|
53412
|
-
_t = se,
|
|
53422
|
+
_t = se, ht = (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 = ((Yt = se == null ? void 0 : se.pagination) == null ? void 0 : Yt.total) ?? (se == null ? void 0 : se.count) ?? ht.length;
|
|
53413
53423
|
} else if (!Dd(C)) {
|
|
53414
53424
|
const Ut = t == null ? void 0 : t.endpoint, Me = N || (Ut && /^https?:\/\//.test(Ut) ? Ut : window.location.origin);
|
|
53415
53425
|
let Ht = C;
|
|
@@ -53461,29 +53471,29 @@ function Vdt({
|
|
|
53461
53471
|
}
|
|
53462
53472
|
if (oe.current = !0, _t = _e, Zt.current) return;
|
|
53463
53473
|
const ws = Hn != null && Hn.responseKey ? _e == null ? void 0 : _e[Hn.responseKey] : _e;
|
|
53464
|
-
if (
|
|
53465
|
-
const Ki = Array.isArray(_e.results) ? _e.results[0] : null, Ze = (It = Ki == null ? void 0 : Ki.result) == null ? void 0 : It.steps, ve = Array.isArray(Ze) ? (
|
|
53466
|
-
Array.isArray(ve) ?
|
|
53474
|
+
if (ht = Array.isArray(ws) ? ws : Array.isArray(_e.data) ? _e.data : Array.isArray(_e.items) ? _e.items : Array.isArray(_e.roles) ? _e.roles : Array.isArray(_e.groups) ? _e.groups : [], ht.length === 0 && _e && typeof _e == "object") {
|
|
53475
|
+
const Ki = Array.isArray(_e.results) ? _e.results[0] : null, Ze = (It = Ki == null ? void 0 : Ki.result) == null ? void 0 : It.steps, ve = Array.isArray(Ze) ? (Ft = Ze[Ze.length - 1]) == null ? void 0 : Ft.output : null;
|
|
53476
|
+
Array.isArray(ve) ? ht = ve : Array.isArray(ve == null ? void 0 : ve.data) && (ht = ve.data);
|
|
53467
53477
|
}
|
|
53468
|
-
xt = ((
|
|
53478
|
+
xt = ((fe = _e.pagination) == null ? void 0 : fe.total) ?? _e.count ?? _e.total ?? ht.length;
|
|
53469
53479
|
}
|
|
53470
53480
|
if (Bt((Ut) => {
|
|
53471
53481
|
if (Q && Array.isArray(Ut[M])) {
|
|
53472
53482
|
const Me = new Set(Ut[M].map((se) => se == null ? void 0 : se.id)), Ht = [
|
|
53473
53483
|
...Ut[M],
|
|
53474
|
-
...
|
|
53484
|
+
...ht.filter((se) => !Me.has(se == null ? void 0 : se.id))
|
|
53475
53485
|
];
|
|
53476
53486
|
return { ...Ut, [M]: Ht };
|
|
53477
53487
|
}
|
|
53478
|
-
return { ...Ut, [M]:
|
|
53488
|
+
return { ...Ut, [M]: ht };
|
|
53479
53489
|
}), Ct.current && !Ct.current.closing) {
|
|
53480
|
-
const Ut = (jt = Pn.current) == null ? void 0 : jt.id, Me = Ut ?
|
|
53490
|
+
const Ut = (jt = Pn.current) == null ? void 0 : jt.id, Me = Ut ? ht.find((Ht) => (Ht == null ? void 0 : Ht.id) === Ut) : null;
|
|
53481
53491
|
Me && he((Ht) => Object.keys(Me).some(
|
|
53482
53492
|
(Hn) => JSON.stringify(Ht[Hn]) !== JSON.stringify(Me[Hn])
|
|
53483
53493
|
) ? { ...Ht, ...Me } : Ht);
|
|
53484
53494
|
}
|
|
53485
|
-
if (vo.current.add(M), An.current[M] =
|
|
53486
|
-
items:
|
|
53495
|
+
if (vo.current.add(M), An.current[M] = ht, C && (An.current[C] = ht), Y && (An.current[Y] = {
|
|
53496
|
+
items: ht,
|
|
53487
53497
|
response: _t
|
|
53488
53498
|
}, C)) {
|
|
53489
53499
|
const Ut = gs.current[Y];
|
|
@@ -53507,18 +53517,18 @@ function Vdt({
|
|
|
53507
53517
|
hasMore: typeof ((se = _t == null ? void 0 : _t.pagination) == null ? void 0 : se.hasMore) == "boolean" ? _t.pagination.hasMore : ($ + 1) * Z < xt
|
|
53508
53518
|
}
|
|
53509
53519
|
};
|
|
53510
|
-
}),
|
|
53511
|
-
} catch (
|
|
53512
|
-
if (
|
|
53513
|
-
yo((xt) => ({ ...xt, [M]:
|
|
53520
|
+
}), ht;
|
|
53521
|
+
} catch (ht) {
|
|
53522
|
+
if (ht instanceof Gi && Pu(ht)) return;
|
|
53523
|
+
yo((xt) => ({ ...xt, [M]: ht instanceof Error ? ht.message : "Could not load items." })), Bt((xt) => {
|
|
53514
53524
|
const _t = xt[M];
|
|
53515
53525
|
return Array.isArray(_t) && _t.length > 0 ? xt : { ...xt, [M]: [] };
|
|
53516
53526
|
});
|
|
53517
53527
|
} finally {
|
|
53518
|
-
Ur.current[M] && (clearTimeout(Ur.current[M]), delete Ur.current[M]), ss((
|
|
53528
|
+
Ur.current[M] && (clearTimeout(Ur.current[M]), delete Ur.current[M]), ss((ht) => ({ ...ht, [M]: !1 }));
|
|
53519
53529
|
}
|
|
53520
53530
|
},
|
|
53521
|
-
[t,
|
|
53531
|
+
[t, ft, na]
|
|
53522
53532
|
), br = () => {
|
|
53523
53533
|
const C = N || (t == null ? void 0 : t.endpoint);
|
|
53524
53534
|
return C && /^https?:\/\//.test(C) ? C : C != null && C.startsWith("/") ? `${window.location.origin}${C}` : window.location.origin;
|
|
@@ -53529,7 +53539,7 @@ function Vdt({
|
|
|
53529
53539
|
return N && /^https?:\/\//.test(N) ? new URL($, N).toString() : M && /^https?:\/\//.test(M) ? new URL($, M).toString() : !N && typeof M == "string" && M.startsWith("/") ? `${window.location.origin}${M.replace(/\/+$/, "")}${$}` : `${window.location.origin}${$}`;
|
|
53530
53540
|
};
|
|
53531
53541
|
b.useEffect(() => {
|
|
53532
|
-
if (
|
|
53542
|
+
if (ft) return;
|
|
53533
53543
|
let C = !0;
|
|
53534
53544
|
yl(!1), Ai(!1), Ui(!1);
|
|
53535
53545
|
const M = w ? `?tenant_id=${encodeURIComponent(w)}` : "", $ = {}, Z = ["localhost", "127.0.0.1", "[::1]"].includes(
|
|
@@ -53548,11 +53558,11 @@ function Vdt({
|
|
|
53548
53558
|
}), () => {
|
|
53549
53559
|
C = !1;
|
|
53550
53560
|
};
|
|
53551
|
-
}, [
|
|
53561
|
+
}, [ft, w, E]);
|
|
53552
53562
|
const wu = b.useRef(null);
|
|
53553
53563
|
b.useEffect(() => {
|
|
53554
53564
|
var B;
|
|
53555
|
-
if (!
|
|
53565
|
+
if (!ft) return;
|
|
53556
53566
|
const C = r || localStorage.getItem("token");
|
|
53557
53567
|
if (!C) {
|
|
53558
53568
|
G(!0);
|
|
@@ -53576,14 +53586,14 @@ function Vdt({
|
|
|
53576
53586
|
typeof ((K = Q == null ? void 0 : Q.user) == null ? void 0 : K.emailVerified) == "boolean" ? Q.user.emailVerified : null
|
|
53577
53587
|
);
|
|
53578
53588
|
} else
|
|
53579
|
-
Ot && (
|
|
53589
|
+
Ot && (ge.current = Ot), wu.current = null, G(!0), Nt(!1), st(null);
|
|
53580
53590
|
} catch {
|
|
53581
|
-
Z || (Ot && (
|
|
53591
|
+
Z || (Ot && (ge.current = Ot), G(!0));
|
|
53582
53592
|
}
|
|
53583
53593
|
})(), () => {
|
|
53584
53594
|
Z = !0;
|
|
53585
53595
|
};
|
|
53586
|
-
}, [
|
|
53596
|
+
}, [ft, Ot, e == null ? void 0 : e.steps]);
|
|
53587
53597
|
const _u = b.useCallback(
|
|
53588
53598
|
(C, M, $) => {
|
|
53589
53599
|
!C || M.length === 0 || Bt((Z) => {
|
|
@@ -53940,13 +53950,13 @@ function Vdt({
|
|
|
53940
53950
|
}
|
|
53941
53951
|
}
|
|
53942
53952
|
const la = async (C, M) => {
|
|
53943
|
-
var Pt, Yt, It,
|
|
53944
|
-
if (te.current || !
|
|
53953
|
+
var Pt, Yt, It, Ft, fe;
|
|
53954
|
+
if (te.current || !ft && nt) return;
|
|
53945
53955
|
const { method: $, path: Z } = Mf(C), B = vg(Z), K = $ !== "GET" && $ !== "DELETE", Y = br();
|
|
53946
53956
|
let Q = M == null ? void 0 : M.payload;
|
|
53947
53957
|
if (Q && typeof Q == "object" && typeof Q.$condiments == "string") {
|
|
53948
|
-
const jt = Q.$condiments,
|
|
53949
|
-
(Kt) => Kt.startsWith(jt) &&
|
|
53958
|
+
const jt = Q.$condiments, ht = Pn.current || {}, xt = Object.keys(ht).filter(
|
|
53959
|
+
(Kt) => Kt.startsWith(jt) && ht[Kt] !== !1 && ht[Kt] !== void 0 && ht[Kt] !== null && ht[Kt] !== ""
|
|
53950
53960
|
).map((Kt) => ({ id: Kt.slice(jt.length), qty: 1 })), _t = Array.isArray(Q.items) ? Q.items : null;
|
|
53951
53961
|
Q = _t && _t.length ? {
|
|
53952
53962
|
...Q,
|
|
@@ -53954,7 +53964,7 @@ function Vdt({
|
|
|
53954
53964
|
} : { ...Q, condiments: xt }, delete Q.$condiments, M = { ...M, payload: Q };
|
|
53955
53965
|
}
|
|
53956
53966
|
if (Q && typeof Q == "object" && Q.$adjustQty && Q.$append) {
|
|
53957
|
-
const jt = Q.$adjustQty || {},
|
|
53967
|
+
const jt = Q.$adjustQty || {}, ht = kn(String(Q.$append)), xt = (Array.isArray(ht) ? ht : []).map((Ut) => ({
|
|
53958
53968
|
menu_id: Ut == null ? void 0 : Ut.menu_id,
|
|
53959
53969
|
qty: Number(Ut == null ? void 0 : Ut.qty) || 1,
|
|
53960
53970
|
...Array.isArray(Ut == null ? void 0 : Ut.condiments) && Ut.condiments.length ? { condiments: Ut.condiments } : {}
|
|
@@ -53965,36 +53975,36 @@ function Vdt({
|
|
|
53965
53975
|
}, delete Q.$adjustQty, delete Q.$append, M = { ...M, payload: Q };
|
|
53966
53976
|
}
|
|
53967
53977
|
if (Q && typeof Q == "object" && Q.$append) {
|
|
53968
|
-
const jt = kn(String(Q.$append)),
|
|
53978
|
+
const jt = kn(String(Q.$append)), ht = (Array.isArray(jt) ? jt : []).map((_t) => ({
|
|
53969
53979
|
menu_id: _t == null ? void 0 : _t.menu_id,
|
|
53970
53980
|
qty: Number(_t == null ? void 0 : _t.qty) || 1,
|
|
53971
53981
|
...Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length ? { condiments: _t.condiments } : {}
|
|
53972
53982
|
})).filter((_t) => _t.menu_id), xt = Array.isArray(Q.items) ? Q.items : [];
|
|
53973
53983
|
for (const _t of xt) {
|
|
53974
|
-
const Kt =
|
|
53975
|
-
Kt && (_t != null && _t.menu_id) ? (Kt.qty = Number(Kt.qty || 0) + (Number(_t == null ? void 0 : _t.qty) || 1), Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length && (Kt.condiments = _t.condiments)) :
|
|
53984
|
+
const Kt = ht.find((Ut) => Ut.menu_id === (_t == null ? void 0 : _t.menu_id));
|
|
53985
|
+
Kt && (_t != null && _t.menu_id) ? (Kt.qty = Number(Kt.qty || 0) + (Number(_t == null ? void 0 : _t.qty) || 1), Array.isArray(_t == null ? void 0 : _t.condiments) && _t.condiments.length && (Kt.condiments = _t.condiments)) : ht.push(_t);
|
|
53976
53986
|
}
|
|
53977
|
-
Q = { ...Q, items:
|
|
53987
|
+
Q = { ...Q, items: ht }, delete Q.$append, M = { ...M, payload: Q };
|
|
53978
53988
|
}
|
|
53979
53989
|
let X;
|
|
53980
53990
|
if (M != null && M.payload && typeof M.payload == "object") {
|
|
53981
|
-
const jt = (
|
|
53982
|
-
if (typeof
|
|
53983
|
-
const xt =
|
|
53991
|
+
const jt = (ht) => {
|
|
53992
|
+
if (typeof ht == "string") {
|
|
53993
|
+
const xt = ht.match(/^\{\{\s*([\w.]+)\s*\}\}$/);
|
|
53984
53994
|
if (xt) {
|
|
53985
53995
|
const _t = kn(xt[1]);
|
|
53986
53996
|
if (_t !== void 0)
|
|
53987
53997
|
return _t === "true" ? !0 : _t === "false" ? !1 : _t;
|
|
53988
53998
|
}
|
|
53989
|
-
return
|
|
53999
|
+
return ht.includes("{{") ? Tl(ht) : ht;
|
|
53990
54000
|
}
|
|
53991
|
-
if (Array.isArray(
|
|
53992
|
-
if (
|
|
54001
|
+
if (Array.isArray(ht)) return ht.map(jt);
|
|
54002
|
+
if (ht && typeof ht == "object") {
|
|
53993
54003
|
const xt = {};
|
|
53994
|
-
for (const [_t, Kt] of Object.entries(
|
|
54004
|
+
for (const [_t, Kt] of Object.entries(ht)) xt[_t] = jt(Kt);
|
|
53995
54005
|
return xt;
|
|
53996
54006
|
}
|
|
53997
|
-
return
|
|
54007
|
+
return ht;
|
|
53998
54008
|
};
|
|
53999
54009
|
X = jt(M.payload);
|
|
54000
54010
|
} else
|
|
@@ -54029,16 +54039,16 @@ function Vdt({
|
|
|
54029
54039
|
if (!lt.ok || it.success === !1) {
|
|
54030
54040
|
Gr(B, M == null ? void 0 : M.refetchScope);
|
|
54031
54041
|
let jt = ["Something went wrong"];
|
|
54032
|
-
const
|
|
54033
|
-
if (
|
|
54034
|
-
const xt =
|
|
54042
|
+
const ht = typeof it.error == "string" ? it.error : (Pt = it.error) == null ? void 0 : Pt.message;
|
|
54043
|
+
if (ht) {
|
|
54044
|
+
const xt = ht.replace(/^Validation failed:\s*/i, "");
|
|
54035
54045
|
jt = Su(xt) || [xt];
|
|
54036
54046
|
} else it.message && (jt = [it.message]);
|
|
54037
54047
|
throw new Gi(jt, it);
|
|
54038
54048
|
}
|
|
54039
54049
|
it.token && localStorage.setItem("token", it.token), M != null && M.openUrl && (it != null && it.url) && String(it.url).startsWith("http") && window.open(String(it.url), "_blank", "noopener,noreferrer"), it && typeof it == "object" && !Array.isArray(it) && he((jt) => ({ ...jt, feedback: it })), it.data && (M == null ? void 0 : M.mergeResponse) !== !1 && he((jt) => ({ ...jt, ...it.data })), it.user && typeof it.user == "object" ? he((jt) => ({ ...jt, user: it.user })) : he((jt) => ({ ...jt })), An.current[B.replace(/^\//, "")] = { response: it };
|
|
54040
|
-
for (const [jt,
|
|
54041
|
-
if (
|
|
54050
|
+
for (const [jt, ht] of Object.entries(gs.current))
|
|
54051
|
+
if (ht === B || ht.endsWith(B)) {
|
|
54042
54052
|
const xt = An.current[jt];
|
|
54043
54053
|
An.current[jt] = {
|
|
54044
54054
|
items: Array.isArray(xt) ? xt : Array.isArray(xt == null ? void 0 : xt.items) ? xt.items : [],
|
|
@@ -54047,7 +54057,7 @@ function Vdt({
|
|
|
54047
54057
|
}
|
|
54048
54058
|
const gt = (It = (Yt = it.subscribe) == null ? void 0 : Yt.websocket) == null ? void 0 : It.workflowChannel;
|
|
54049
54059
|
gt && (M == null ? void 0 : M.mergeResponse) !== !1 && he((jt) => {
|
|
54050
|
-
var
|
|
54060
|
+
var ht, xt, _t, Kt;
|
|
54051
54061
|
return {
|
|
54052
54062
|
...jt,
|
|
54053
54063
|
liveCastChannel: gt,
|
|
@@ -54056,7 +54066,7 @@ function Vdt({
|
|
|
54056
54066
|
status: "running",
|
|
54057
54067
|
test_session: {
|
|
54058
54068
|
...jt.test_session || {},
|
|
54059
|
-
id: it.sessionId || ((
|
|
54069
|
+
id: it.sessionId || ((ht = jt.test_session) == null ? void 0 : ht.id),
|
|
54060
54070
|
execution_id: it.draftId || ((xt = jt.test_session) == null ? void 0 : xt.execution_id),
|
|
54061
54071
|
status: "running",
|
|
54062
54072
|
liveCastChannel: gt,
|
|
@@ -54066,10 +54076,10 @@ function Vdt({
|
|
|
54066
54076
|
};
|
|
54067
54077
|
}), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54068
54078
|
const Mt = M == null ? void 0 : M.feedback, wt = typeof Mt == "string" ? Mt : Mt == null ? void 0 : Mt.transport;
|
|
54069
|
-
if (wt && it.jobId && (it.token || (
|
|
54070
|
-
let jt = (
|
|
54079
|
+
if (wt && it.jobId && (it.token || (Ft = it.subscribe) != null && Ft.sse || typeof Mt == "object")) {
|
|
54080
|
+
let jt = (fe = it.subscribe) != null && fe.sse ? /^https?:\/\//.test(it.subscribe.sse) ? it.subscribe.sse : Y + it.subscribe.sse : void 0;
|
|
54071
54081
|
if (typeof Mt == "object" && Mt.subscribeUrl) {
|
|
54072
|
-
const
|
|
54082
|
+
const ht = String(Mt.subscribeUrl).trim(), xt = ht.startsWith("{{") && ht.endsWith("}}") ? ht.slice(2, -2).trim() : ht, _t = xt.match(/^\[(.+?)\](?:\.(.*))?$/), Kt = _t ? kn(
|
|
54073
54083
|
`${_t[1]}${_t[2] ? "." + _t[2] : ""}`
|
|
54074
54084
|
) : xt.split(".").reduce(
|
|
54075
54085
|
(Ut, Me) => Ut == null ? void 0 : Ut[Me],
|
|
@@ -54080,13 +54090,13 @@ function Vdt({
|
|
|
54080
54090
|
if (jt) {
|
|
54081
54091
|
li(wt, it.jobId, it.token, {
|
|
54082
54092
|
sseUrl: jt,
|
|
54083
|
-
onProgress: (
|
|
54084
|
-
s == null || s(
|
|
54093
|
+
onProgress: (ht) => {
|
|
54094
|
+
s == null || s(ht);
|
|
54085
54095
|
const xt = Date.now();
|
|
54086
54096
|
xt - ze.current >= 2e3 && (ze.current = xt, Gr(B, M == null ? void 0 : M.refetchScope));
|
|
54087
54097
|
},
|
|
54088
|
-
onComplete: (
|
|
54089
|
-
const xt = (
|
|
54098
|
+
onComplete: (ht) => {
|
|
54099
|
+
const xt = (ht == null ? void 0 : ht.result) ?? ht;
|
|
54090
54100
|
if (xt && typeof xt == "object") {
|
|
54091
54101
|
const _t = B.replace(/^\//, "");
|
|
54092
54102
|
An.current[_t] = {
|
|
@@ -54095,35 +54105,35 @@ function Vdt({
|
|
|
54095
54105
|
}
|
|
54096
54106
|
Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54097
54107
|
},
|
|
54098
|
-
onFailed: (
|
|
54099
|
-
Gr(B, M == null ? void 0 : M.refetchScope, !0),
|
|
54108
|
+
onFailed: (ht) => {
|
|
54109
|
+
Gr(B, M == null ? void 0 : M.refetchScope, !0), ht.kind !== "transport" && Ae(ht.message || "Job failed", "error");
|
|
54100
54110
|
}
|
|
54101
54111
|
});
|
|
54102
54112
|
return;
|
|
54103
54113
|
}
|
|
54104
54114
|
li(wt, it.jobId, it.token, {
|
|
54105
|
-
onComplete: (
|
|
54106
|
-
const xt =
|
|
54115
|
+
onComplete: (ht) => {
|
|
54116
|
+
const xt = ht || {}, _t = xt.total, Kt = xt.successful;
|
|
54107
54117
|
_t !== void 0 && Ae(
|
|
54108
54118
|
Kt >= _t ? `${Kt} completed` : `${Kt} of ${_t} completed`,
|
|
54109
54119
|
"success"
|
|
54110
54120
|
), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54111
54121
|
},
|
|
54112
|
-
onFailed: (
|
|
54113
|
-
if (
|
|
54122
|
+
onFailed: (ht) => {
|
|
54123
|
+
if (ht.kind === "transport") {
|
|
54114
54124
|
Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54115
54125
|
return;
|
|
54116
54126
|
}
|
|
54117
|
-
Ae(
|
|
54127
|
+
Ae(ht.message || "Job failed", "error"), Gr(B, M == null ? void 0 : M.refetchScope, !0);
|
|
54118
54128
|
}
|
|
54119
54129
|
});
|
|
54120
54130
|
}
|
|
54121
54131
|
}, Ci = (C) => {
|
|
54122
54132
|
var Z, B;
|
|
54123
|
-
|
|
54133
|
+
pe(null);
|
|
54124
54134
|
const M = C === "/" && (((Z = J.find((K) => K.route === "/")) == null ? void 0 : Z.id) || ((B = J.find((K) => K.type === "render_scene")) == null ? void 0 : B.id)) || C;
|
|
54125
|
-
if (ot(M) && !
|
|
54126
|
-
|
|
54135
|
+
if (ot(M) && !ft) {
|
|
54136
|
+
ge.current = M, St(!0);
|
|
54127
54137
|
return;
|
|
54128
54138
|
}
|
|
54129
54139
|
Je((K) => [...K, Ot]), ir(M);
|
|
@@ -54139,13 +54149,13 @@ ${C.message}` : C.message;
|
|
|
54139
54149
|
return;
|
|
54140
54150
|
}
|
|
54141
54151
|
if (C.modalId && an[C.modalId]) {
|
|
54142
|
-
|
|
54152
|
+
pe({
|
|
54143
54153
|
id: C.modalId,
|
|
54144
54154
|
definition: an[C.modalId]
|
|
54145
54155
|
});
|
|
54146
54156
|
return;
|
|
54147
54157
|
}
|
|
54148
|
-
|
|
54158
|
+
pe({
|
|
54149
54159
|
id: "__legacy",
|
|
54150
54160
|
definition: {
|
|
54151
54161
|
title: C.uiTitle || "Usage Notice",
|
|
@@ -54173,12 +54183,12 @@ ${C.message}` : C.message;
|
|
|
54173
54183
|
};
|
|
54174
54184
|
b.useEffect(() => {
|
|
54175
54185
|
var K;
|
|
54176
|
-
if (!
|
|
54177
|
-
const C =
|
|
54186
|
+
if (!ft || q) return;
|
|
54187
|
+
const C = ge.current, M = C && J.some((Y) => Y.id === C), Z = localStorage.getItem("backflow_post_auth_redirect") === "1" ? (K = J.find(
|
|
54178
54188
|
(Y) => Y.type === "render_scene" && mr(Y)
|
|
54179
54189
|
)) == null ? void 0 : K.id : null, B = M ? C : Z;
|
|
54180
|
-
B && (localStorage.removeItem("backflow_post_auth_redirect"),
|
|
54181
|
-
}, [
|
|
54190
|
+
B && (localStorage.removeItem("backflow_post_auth_redirect"), ge.current = null, Ci(B));
|
|
54191
|
+
}, [ft, q, J]);
|
|
54182
54192
|
const Ae = (C, M = "success", $) => {
|
|
54183
54193
|
const Z = Array.isArray(C) ? C.join(`
|
|
54184
54194
|
`) : C, B = M === "success", K = B ? "#10B981" : "#EF4444", Y = Lt.toast || {}, Q = $ ?? Y.duration ?? 3e3, X = Y.position || "bottom-right", lt = {
|
|
@@ -54267,7 +54277,7 @@ ${C.message}` : C.message;
|
|
|
54267
54277
|
K && (window.location.href = K);
|
|
54268
54278
|
break;
|
|
54269
54279
|
case "modal":
|
|
54270
|
-
K && an[K] ?
|
|
54280
|
+
K && an[K] ? pe({ id: K, definition: an[K] }) : pe({
|
|
54271
54281
|
id: "__legacy",
|
|
54272
54282
|
definition: {
|
|
54273
54283
|
title: Y || "Success",
|
|
@@ -54301,7 +54311,7 @@ ${C.message}` : C.message;
|
|
|
54301
54311
|
const Tn = ((Ji = kt.data) == null ? void 0 : Ji.refreshToken) || kt.refreshToken, wr = ri !== "login" || Dt;
|
|
54302
54312
|
Tn && wr && localStorage.setItem("backflow_refresh_token", Tn);
|
|
54303
54313
|
const _r = ((hw = (uw = kt.data) == null ? void 0 : uw.user) == null ? void 0 : hw.id) || ((fw = kt.user) == null ? void 0 : fw.id) || ((dw = kt.data) == null ? void 0 : dw.userId);
|
|
54304
|
-
if (_r && wr && localStorage.setItem("backflow_refresh_user_id", _r), !
|
|
54314
|
+
if (_r && wr && localStorage.setItem("backflow_refresh_user_id", _r), !ft && (nt || te.current || !!ge.current)) {
|
|
54305
54315
|
gr();
|
|
54306
54316
|
return;
|
|
54307
54317
|
}
|
|
@@ -54420,10 +54430,10 @@ ${C.message}` : C.message;
|
|
|
54420
54430
|
}
|
|
54421
54431
|
}, Y = (kt) => {
|
|
54422
54432
|
Vi(kt), Mn(null), kt !== "reset" && (So(""), Hr("")), ra(""), ia({}), Ui(!1);
|
|
54423
|
-
}, Q = ((Hn = e == null ? void 0 : e.config) == null ? void 0 : Hn.auth) || {}, X = Q.style === "page" ? "page" : "modal", lt = Q.containerStyle || {}, it = lt.backgroundColor || "#000000", gt = Cd(it) === "dark", Mt = gt ? "#f3f4f6" : "#111827", wt = gt ? "#9ca3af" : "#6b7280", Pt = gt ? "#374151" : "#f3f4f6", Yt = gt ? "#4b5563" : "#d1d5db", It = ((ar = Lt.colors) == null ? void 0 : ar.primary) || (gt ? "#ffffff" : "#000000"),
|
|
54433
|
+
}, Q = ((Hn = e == null ? void 0 : e.config) == null ? void 0 : Hn.auth) || {}, X = Q.style === "page" ? "page" : "modal", lt = Q.containerStyle || {}, it = lt.backgroundColor || "#000000", gt = Cd(it) === "dark", Mt = gt ? "#f3f4f6" : "#111827", wt = gt ? "#9ca3af" : "#6b7280", Pt = gt ? "#374151" : "#f3f4f6", Yt = gt ? "#4b5563" : "#d1d5db", It = ((ar = Lt.colors) == null ? void 0 : ar.primary) || (gt ? "#ffffff" : "#000000"), Ft = (() => {
|
|
54424
54434
|
const kt = String(It).replace("#", ""), Dt = kt.length === 3 ? kt.split("").map((_r) => _r + _r).join("") : kt, ce = parseInt(Dt.slice(0, 2), 16), Tn = parseInt(Dt.slice(2, 4), 16), wr = parseInt(Dt.slice(4, 6), 16);
|
|
54425
54435
|
return [ce, Tn, wr].some((_r) => Number.isNaN(_r)) ? 0 : (0.299 * ce + 0.587 * Tn + 0.114 * wr) / 255;
|
|
54426
|
-
})(),
|
|
54436
|
+
})(), fe = It, jt = Ft > 0.62 ? "#111827" : "#ffffff", ht = "#ef4444", xt = (kt = "12px") => ({
|
|
54427
54437
|
width: "100%",
|
|
54428
54438
|
padding: "12px 16px",
|
|
54429
54439
|
border: `1px solid ${Yt}`,
|
|
@@ -54505,7 +54515,7 @@ ${C.message}` : C.message;
|
|
|
54505
54515
|
// Tailwind preflight sets appearance:none — restore native paint so the check is visible
|
|
54506
54516
|
appearance: "auto",
|
|
54507
54517
|
WebkitAppearance: "auto",
|
|
54508
|
-
accentColor:
|
|
54518
|
+
accentColor: fe,
|
|
54509
54519
|
colorScheme: gt ? "dark" : "light",
|
|
54510
54520
|
outline: `1px solid ${Yt}`,
|
|
54511
54521
|
outlineOffset: "-1px",
|
|
@@ -54544,7 +54554,7 @@ ${C.message}` : C.message;
|
|
|
54544
54554
|
padding: "10px",
|
|
54545
54555
|
borderRadius: "8px",
|
|
54546
54556
|
border: "none",
|
|
54547
|
-
backgroundColor:
|
|
54557
|
+
backgroundColor: fe,
|
|
54548
54558
|
color: jt,
|
|
54549
54559
|
fontWeight: 600,
|
|
54550
54560
|
cursor: "pointer"
|
|
@@ -54572,7 +54582,7 @@ ${C.message}` : C.message;
|
|
|
54572
54582
|
style: {
|
|
54573
54583
|
...xt("0px"),
|
|
54574
54584
|
paddingRight: "40px",
|
|
54575
|
-
borderColor: _r ?
|
|
54585
|
+
borderColor: _r ? ht : Yt
|
|
54576
54586
|
}
|
|
54577
54587
|
}),
|
|
54578
54588
|
b.createElement(
|
|
@@ -54609,7 +54619,7 @@ ${C.message}` : C.message;
|
|
|
54609
54619
|
role: "button",
|
|
54610
54620
|
"aria-label": "Go back home",
|
|
54611
54621
|
onClick: () => {
|
|
54612
|
-
Ci("/"), St(!1), te.current = !1,
|
|
54622
|
+
Ci("/"), St(!1), te.current = !1, ge.current = null;
|
|
54613
54623
|
},
|
|
54614
54624
|
style: {
|
|
54615
54625
|
display: "flex",
|
|
@@ -54751,7 +54761,7 @@ ${C.message}` : C.message;
|
|
|
54751
54761
|
},
|
|
54752
54762
|
style: {
|
|
54753
54763
|
...xt(),
|
|
54754
|
-
borderColor: we.email && $e ?
|
|
54764
|
+
borderColor: we.email && $e ? ht : Yt
|
|
54755
54765
|
}
|
|
54756
54766
|
})
|
|
54757
54767
|
), we.email && $e && Ht.push(
|
|
@@ -54760,7 +54770,7 @@ ${C.message}` : C.message;
|
|
|
54760
54770
|
{
|
|
54761
54771
|
key: "email-err",
|
|
54762
54772
|
style: {
|
|
54763
|
-
color:
|
|
54773
|
+
color: ht,
|
|
54764
54774
|
fontSize: "12px",
|
|
54765
54775
|
marginTop: "-8px",
|
|
54766
54776
|
marginBottom: "8px"
|
|
@@ -54780,14 +54790,14 @@ ${C.message}` : C.message;
|
|
|
54780
54790
|
tenantId: w,
|
|
54781
54791
|
appId: Dt ? void 0 : E,
|
|
54782
54792
|
inputStyle: xt(),
|
|
54783
|
-
errorColor:
|
|
54793
|
+
errorColor: ht,
|
|
54784
54794
|
buttonStyle: {
|
|
54785
54795
|
width: "100%",
|
|
54786
54796
|
padding: "12px",
|
|
54787
54797
|
borderRadius: "8px",
|
|
54788
54798
|
fontSize: "15px",
|
|
54789
54799
|
fontWeight: 600,
|
|
54790
|
-
backgroundColor:
|
|
54800
|
+
backgroundColor: fe,
|
|
54791
54801
|
color: jt,
|
|
54792
54802
|
border: "none",
|
|
54793
54803
|
marginBottom: "8px",
|
|
@@ -54815,7 +54825,7 @@ ${C.message}` : C.message;
|
|
|
54815
54825
|
{
|
|
54816
54826
|
key: "pass-err",
|
|
54817
54827
|
style: {
|
|
54818
|
-
color:
|
|
54828
|
+
color: ht,
|
|
54819
54829
|
fontSize: "12px",
|
|
54820
54830
|
marginTop: "-12px",
|
|
54821
54831
|
marginBottom: "12px"
|
|
@@ -54829,7 +54839,7 @@ ${C.message}` : C.message;
|
|
|
54829
54839
|
{
|
|
54830
54840
|
key: "err",
|
|
54831
54841
|
style: {
|
|
54832
|
-
color:
|
|
54842
|
+
color: ht,
|
|
54833
54843
|
fontSize: "13px",
|
|
54834
54844
|
marginBottom: "12px",
|
|
54835
54845
|
textAlign: "center"
|
|
@@ -54850,7 +54860,7 @@ ${C.message}` : C.message;
|
|
|
54850
54860
|
borderRadius: "8px",
|
|
54851
54861
|
fontSize: "15px",
|
|
54852
54862
|
fontWeight: 600,
|
|
54853
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
54863
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
54854
54864
|
color: jt,
|
|
54855
54865
|
border: "none",
|
|
54856
54866
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -54932,7 +54942,7 @@ ${C.message}` : C.message;
|
|
|
54932
54942
|
},
|
|
54933
54943
|
style: {
|
|
54934
54944
|
...xt(),
|
|
54935
|
-
borderColor: we.email && $e ?
|
|
54945
|
+
borderColor: we.email && $e ? ht : Yt
|
|
54936
54946
|
}
|
|
54937
54947
|
})
|
|
54938
54948
|
), we.email && $e && Ht.push(
|
|
@@ -54941,7 +54951,7 @@ ${C.message}` : C.message;
|
|
|
54941
54951
|
{
|
|
54942
54952
|
key: "email-err",
|
|
54943
54953
|
style: {
|
|
54944
|
-
color:
|
|
54954
|
+
color: ht,
|
|
54945
54955
|
fontSize: "12px",
|
|
54946
54956
|
marginTop: "-8px",
|
|
54947
54957
|
marginBottom: "8px"
|
|
@@ -54966,7 +54976,7 @@ ${C.message}` : C.message;
|
|
|
54966
54976
|
{
|
|
54967
54977
|
key: "pass-err",
|
|
54968
54978
|
style: {
|
|
54969
|
-
color:
|
|
54979
|
+
color: ht,
|
|
54970
54980
|
fontSize: "12px",
|
|
54971
54981
|
marginTop: "-12px",
|
|
54972
54982
|
marginBottom: "12px"
|
|
@@ -54991,7 +55001,7 @@ ${C.message}` : C.message;
|
|
|
54991
55001
|
{
|
|
54992
55002
|
key: "confirm-err",
|
|
54993
55003
|
style: {
|
|
54994
|
-
color:
|
|
55004
|
+
color: ht,
|
|
54995
55005
|
fontSize: "12px",
|
|
54996
55006
|
marginTop: "-12px",
|
|
54997
55007
|
marginBottom: "12px"
|
|
@@ -55005,7 +55015,7 @@ ${C.message}` : C.message;
|
|
|
55005
55015
|
{
|
|
55006
55016
|
key: "err",
|
|
55007
55017
|
style: {
|
|
55008
|
-
color:
|
|
55018
|
+
color: ht,
|
|
55009
55019
|
fontSize: "13px",
|
|
55010
55020
|
marginBottom: "12px",
|
|
55011
55021
|
textAlign: "center"
|
|
@@ -55026,7 +55036,7 @@ ${C.message}` : C.message;
|
|
|
55026
55036
|
borderRadius: "8px",
|
|
55027
55037
|
fontSize: "15px",
|
|
55028
55038
|
fontWeight: 600,
|
|
55029
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55039
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55030
55040
|
color: jt,
|
|
55031
55041
|
border: "none",
|
|
55032
55042
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55093,7 +55103,7 @@ ${C.message}` : C.message;
|
|
|
55093
55103
|
},
|
|
55094
55104
|
style: {
|
|
55095
55105
|
...xt("16px"),
|
|
55096
|
-
borderColor: we.email && $e ?
|
|
55106
|
+
borderColor: we.email && $e ? ht : Yt
|
|
55097
55107
|
}
|
|
55098
55108
|
})
|
|
55099
55109
|
), we.email && $e && Ht.push(
|
|
@@ -55102,7 +55112,7 @@ ${C.message}` : C.message;
|
|
|
55102
55112
|
{
|
|
55103
55113
|
key: "email-err",
|
|
55104
55114
|
style: {
|
|
55105
|
-
color:
|
|
55115
|
+
color: ht,
|
|
55106
55116
|
fontSize: "12px",
|
|
55107
55117
|
marginTop: "-8px",
|
|
55108
55118
|
marginBottom: "8px"
|
|
@@ -55116,7 +55126,7 @@ ${C.message}` : C.message;
|
|
|
55116
55126
|
{
|
|
55117
55127
|
key: "err",
|
|
55118
55128
|
style: {
|
|
55119
|
-
color:
|
|
55129
|
+
color: ht,
|
|
55120
55130
|
fontSize: "13px",
|
|
55121
55131
|
marginBottom: "12px",
|
|
55122
55132
|
textAlign: "center"
|
|
@@ -55137,7 +55147,7 @@ ${C.message}` : C.message;
|
|
|
55137
55147
|
borderRadius: "8px",
|
|
55138
55148
|
fontSize: "15px",
|
|
55139
55149
|
fontWeight: 600,
|
|
55140
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55150
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55141
55151
|
color: jt,
|
|
55142
55152
|
border: "none",
|
|
55143
55153
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55216,7 +55226,7 @@ ${C.message}` : C.message;
|
|
|
55216
55226
|
{
|
|
55217
55227
|
key: "pass-err",
|
|
55218
55228
|
style: {
|
|
55219
|
-
color:
|
|
55229
|
+
color: ht,
|
|
55220
55230
|
fontSize: "12px",
|
|
55221
55231
|
marginTop: "-12px",
|
|
55222
55232
|
marginBottom: "12px"
|
|
@@ -55230,7 +55240,7 @@ ${C.message}` : C.message;
|
|
|
55230
55240
|
{
|
|
55231
55241
|
key: "err",
|
|
55232
55242
|
style: {
|
|
55233
|
-
color:
|
|
55243
|
+
color: ht,
|
|
55234
55244
|
fontSize: "13px",
|
|
55235
55245
|
marginBottom: "12px",
|
|
55236
55246
|
textAlign: "center"
|
|
@@ -55251,7 +55261,7 @@ ${C.message}` : C.message;
|
|
|
55251
55261
|
borderRadius: "8px",
|
|
55252
55262
|
fontSize: "15px",
|
|
55253
55263
|
fontWeight: 600,
|
|
55254
|
-
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" :
|
|
55264
|
+
backgroundColor: bn ? gt ? "#4b5563" : "#9ca3af" : fe,
|
|
55255
55265
|
color: jt,
|
|
55256
55266
|
border: "none",
|
|
55257
55267
|
cursor: bn ? "not-allowed" : "pointer",
|
|
@@ -55385,7 +55395,7 @@ ${C.message}` : C.message;
|
|
|
55385
55395
|
key: "auth-close",
|
|
55386
55396
|
"aria-label": "Close sign in",
|
|
55387
55397
|
onClick: () => {
|
|
55388
|
-
St(!1), te.current = !1,
|
|
55398
|
+
St(!1), te.current = !1, ge.current = null;
|
|
55389
55399
|
},
|
|
55390
55400
|
style: {
|
|
55391
55401
|
position: "absolute",
|
|
@@ -55419,10 +55429,14 @@ ${C.message}` : C.message;
|
|
|
55419
55429
|
Q && (Y = Cl(Q[1]) ? Q[2] : Q[3]);
|
|
55420
55430
|
const X = Y.split(";").map((It) => It.trim()).filter(Boolean);
|
|
55421
55431
|
if (X.length > 1) {
|
|
55422
|
-
|
|
55432
|
+
const It = (ht) => /^show_modal:/.test(ht), Ft = (ht) => /^(go_to_step|navigate|go_back|close_modal)/.test(ht), fe = X.some(Ft) || !X.some(It) ? X : [
|
|
55433
|
+
...X.filter(It),
|
|
55434
|
+
...X.filter((ht) => !It(ht))
|
|
55435
|
+
], jt = X[X.length - 1];
|
|
55436
|
+
for (const ht of fe)
|
|
55423
55437
|
await kr(
|
|
55424
|
-
|
|
55425
|
-
|
|
55438
|
+
ht,
|
|
55439
|
+
ht === jt ? M : void 0,
|
|
55426
55440
|
$
|
|
55427
55441
|
);
|
|
55428
55442
|
return;
|
|
@@ -55438,39 +55452,39 @@ ${C.message}` : C.message;
|
|
|
55438
55452
|
return;
|
|
55439
55453
|
}
|
|
55440
55454
|
if (Y === "close_modal") {
|
|
55441
|
-
|
|
55455
|
+
Vt();
|
|
55442
55456
|
return;
|
|
55443
55457
|
}
|
|
55444
55458
|
const lt = Y.match(/^geolocate(?::(.+))?$/);
|
|
55445
55459
|
if (lt) {
|
|
55446
|
-
const It = (Z = lt[1]) == null ? void 0 : Z.trim(),
|
|
55447
|
-
(
|
|
55460
|
+
const It = (Z = lt[1]) == null ? void 0 : Z.trim(), Ft = await new Promise(
|
|
55461
|
+
(fe, jt) => {
|
|
55448
55462
|
if (typeof navigator > "u" || !navigator.geolocation) {
|
|
55449
55463
|
jt(new Error("Location is not available on this device"));
|
|
55450
55464
|
return;
|
|
55451
55465
|
}
|
|
55452
55466
|
navigator.geolocation.getCurrentPosition(
|
|
55453
|
-
(
|
|
55454
|
-
lat:
|
|
55455
|
-
lng:
|
|
55467
|
+
(ht) => fe({
|
|
55468
|
+
lat: ht.coords.latitude,
|
|
55469
|
+
lng: ht.coords.longitude
|
|
55456
55470
|
}),
|
|
55457
|
-
(
|
|
55458
|
-
new Error((
|
|
55471
|
+
(ht) => jt(
|
|
55472
|
+
new Error((ht == null ? void 0 : ht.message) || "Location permission is required")
|
|
55459
55473
|
),
|
|
55460
55474
|
{ enableHighAccuracy: !0, timeout: 8e3, maximumAge: 0 }
|
|
55461
55475
|
);
|
|
55462
55476
|
}
|
|
55463
55477
|
);
|
|
55464
|
-
he((
|
|
55465
|
-
...
|
|
55466
|
-
latitude:
|
|
55467
|
-
longitude:
|
|
55478
|
+
he((fe) => ({
|
|
55479
|
+
...fe,
|
|
55480
|
+
latitude: Ft.lat,
|
|
55481
|
+
longitude: Ft.lng
|
|
55468
55482
|
})), It && await kr(It, M, {
|
|
55469
55483
|
...$ || {},
|
|
55470
55484
|
payload: {
|
|
55471
55485
|
...($ == null ? void 0 : $.payload) || {},
|
|
55472
|
-
latitude:
|
|
55473
|
-
longitude:
|
|
55486
|
+
latitude: Ft.lat,
|
|
55487
|
+
longitude: Ft.lng
|
|
55474
55488
|
}
|
|
55475
55489
|
});
|
|
55476
55490
|
return;
|
|
@@ -55489,8 +55503,8 @@ ${C.message}` : C.message;
|
|
|
55489
55503
|
const Mt = Y.match(/^set_data:([\w.-]+)=(.*)$/);
|
|
55490
55504
|
if (Mt) {
|
|
55491
55505
|
let It = Mt[2];
|
|
55492
|
-
(It === "$uuid" || It === "{{$uuid}}") && (It = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`), he((
|
|
55493
|
-
...
|
|
55506
|
+
(It === "$uuid" || It === "{{$uuid}}") && (It = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`), he((Ft) => ({
|
|
55507
|
+
...Ft,
|
|
55494
55508
|
[Mt[1]]: It
|
|
55495
55509
|
}));
|
|
55496
55510
|
return;
|
|
@@ -55501,12 +55515,12 @@ ${C.message}` : C.message;
|
|
|
55501
55515
|
Ae("Native app required", "error");
|
|
55502
55516
|
return;
|
|
55503
55517
|
}
|
|
55504
|
-
const It = wt[1],
|
|
55505
|
-
if (
|
|
55506
|
-
const
|
|
55518
|
+
const It = wt[1], Ft = await i(It, xe);
|
|
55519
|
+
if (Ft && typeof Ft == "object" && !Array.isArray(Ft)) {
|
|
55520
|
+
const fe = It.replace(/[^\w]/g, "_");
|
|
55507
55521
|
he((jt) => ({
|
|
55508
55522
|
...jt,
|
|
55509
|
-
native: { ...jt.native || {}, [
|
|
55523
|
+
native: { ...jt.native || {}, [fe]: Ft }
|
|
55510
55524
|
}));
|
|
55511
55525
|
}
|
|
55512
55526
|
return;
|
|
@@ -55517,8 +55531,8 @@ ${C.message}` : C.message;
|
|
|
55517
55531
|
try {
|
|
55518
55532
|
await navigator.clipboard.writeText(It);
|
|
55519
55533
|
} catch {
|
|
55520
|
-
const
|
|
55521
|
-
|
|
55534
|
+
const Ft = document.createElement("textarea");
|
|
55535
|
+
Ft.value = It, Ft.style.position = "fixed", Ft.style.opacity = "0", document.body.appendChild(Ft), Ft.select(), document.execCommand("copy"), Ft.remove();
|
|
55522
55536
|
}
|
|
55523
55537
|
Ae("Copied to clipboard", "success");
|
|
55524
55538
|
return;
|
|
@@ -55528,25 +55542,25 @@ ${C.message}` : C.message;
|
|
|
55528
55542
|
);
|
|
55529
55543
|
if (Yt) {
|
|
55530
55544
|
if (Yt[1] === "logout") {
|
|
55531
|
-
if (!
|
|
55532
|
-
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1,
|
|
55545
|
+
if (!ft) return;
|
|
55546
|
+
localStorage.removeItem("token"), localStorage.removeItem("backflow_refresh_token"), localStorage.removeItem("backflow_refresh_user_id"), te.current = !1, ge.current = null, Nt(!1), St(!1), st(null), G(!1), Ci("/");
|
|
55533
55547
|
return;
|
|
55534
55548
|
}
|
|
55535
|
-
if (
|
|
55549
|
+
if (ft) return;
|
|
55536
55550
|
Mn(null), Vi(Yt[1]), St(!0);
|
|
55537
55551
|
return;
|
|
55538
55552
|
}
|
|
55539
55553
|
if (Y === "accept_startup_modal") {
|
|
55540
55554
|
const It = Lt.startupModal;
|
|
55541
|
-
It && localStorage.setItem(`backflow_startup_modal_${It}`, "1"),
|
|
55542
|
-
const
|
|
55543
|
-
|
|
55555
|
+
It && localStorage.setItem(`backflow_startup_modal_${It}`, "1"), Vt();
|
|
55556
|
+
const Ft = J.find((fe) => fe.route === "/");
|
|
55557
|
+
Ft && (Je((fe) => [...fe, Ot]), ir(Ft.id));
|
|
55544
55558
|
return;
|
|
55545
55559
|
}
|
|
55546
55560
|
if (Y === "decline_startup_modal") {
|
|
55547
|
-
|
|
55548
|
-
const It = J.find((
|
|
55549
|
-
It && (Je((
|
|
55561
|
+
Vt();
|
|
55562
|
+
const It = J.find((Ft) => Ft.route === "/");
|
|
55563
|
+
It && (Je((Ft) => [...Ft, Ot]), ir(It.id));
|
|
55550
55564
|
return;
|
|
55551
55565
|
}
|
|
55552
55566
|
if (Y === "toggle_select") {
|
|
@@ -55562,46 +55576,46 @@ ${C.message}` : C.message;
|
|
|
55562
55576
|
else if (Y.startsWith("navigate:"))
|
|
55563
55577
|
Ci(Y.replace("navigate:", "")), Zr(M, !0);
|
|
55564
55578
|
else if (Dd(Y) && t) {
|
|
55565
|
-
const It = Td(Y),
|
|
55566
|
-
|
|
55579
|
+
const It = Td(Y), Ft = await Wy(t, It, xe);
|
|
55580
|
+
Ft != null && Ft.data ? he((fe) => ({ ...fe, ...Ft.data })) : Ft && typeof Ft == "object" && !Array.isArray(Ft) && he((fe) => ({ ...fe, ...Ft })), Ft != null && Ft.url && String(Ft.url).startsWith("http") && window.open(String(Ft.url), "_blank", "noopener,noreferrer"), Zr(M, !0);
|
|
55567
55581
|
} else if (Y.startsWith("show_modal:")) {
|
|
55568
55582
|
const It = Y.replace("show_modal:", "");
|
|
55569
55583
|
if (an[It]) {
|
|
55570
|
-
const
|
|
55584
|
+
const Ft = an[It];
|
|
55571
55585
|
if (ni(
|
|
55572
|
-
|
|
55573
|
-
), Ge.current =
|
|
55574
|
-
const
|
|
55586
|
+
Ft.popover && ($ != null && $.anchorElement) ? $.anchorElement.getBoundingClientRect() : null
|
|
55587
|
+
), Ge.current = Ft.popover && ($ == null ? void 0 : $.anchorElement) || null, qi.current && typeof qi.current == "object") {
|
|
55588
|
+
const ht = Object.keys(qi.current);
|
|
55575
55589
|
he((xt) => {
|
|
55576
55590
|
const _t = { ...xt };
|
|
55577
55591
|
for (const Kt of Sl.current)
|
|
55578
|
-
|
|
55592
|
+
ht.includes(Kt) || delete _t[Kt];
|
|
55579
55593
|
return { ..._t, ...qi.current };
|
|
55580
|
-
}), Sl.current =
|
|
55594
|
+
}), Sl.current = ht;
|
|
55581
55595
|
}
|
|
55582
|
-
const
|
|
55583
|
-
Array.isArray(
|
|
55584
|
-
const xt = { ...
|
|
55585
|
-
for (const _t of
|
|
55596
|
+
const fe = Ft.clearFormKeys;
|
|
55597
|
+
Array.isArray(fe) && fe.length > 0 && he((ht) => {
|
|
55598
|
+
const xt = { ...ht };
|
|
55599
|
+
for (const _t of fe) delete xt[_t];
|
|
55586
55600
|
return xt;
|
|
55587
55601
|
});
|
|
55588
|
-
const jt =
|
|
55589
|
-
jt && typeof jt == "object" && he((
|
|
55590
|
-
const xt = { ...
|
|
55602
|
+
const jt = Ft.defaults;
|
|
55603
|
+
jt && typeof jt == "object" && he((ht) => {
|
|
55604
|
+
const xt = { ...ht };
|
|
55591
55605
|
for (const [_t, Kt] of Object.entries(jt))
|
|
55592
55606
|
xt[_t] === void 0 && (xt[_t] = Kt);
|
|
55593
55607
|
return xt;
|
|
55594
|
-
}),
|
|
55608
|
+
}), (zt == null ? void 0 : zt.id) === It || (le == null ? void 0 : le.id) === It || (fs(null), pe({ id: It, definition: Ft })), Ft.preload && await la(String(Ft.preload));
|
|
55595
55609
|
} else {
|
|
55596
|
-
const
|
|
55597
|
-
|
|
55610
|
+
const Ft = It.split("|");
|
|
55611
|
+
pe({
|
|
55598
55612
|
id: "__legacy",
|
|
55599
55613
|
definition: {
|
|
55600
|
-
title:
|
|
55601
|
-
components:
|
|
55614
|
+
title: Ft[0] || "Notice",
|
|
55615
|
+
components: Ft[1] ? [
|
|
55602
55616
|
{
|
|
55603
55617
|
type: "text",
|
|
55604
|
-
text:
|
|
55618
|
+
text: Ft[1],
|
|
55605
55619
|
color: "rgba(255,255,255,0.7)",
|
|
55606
55620
|
fontSize: 14
|
|
55607
55621
|
}
|
|
@@ -55806,7 +55820,7 @@ ${C.message}` : C.message;
|
|
|
55806
55820
|
var Q;
|
|
55807
55821
|
if (K === "auth") {
|
|
55808
55822
|
const X = (Q = e == null ? void 0 : e.auth) == null ? void 0 : Q.signedIn;
|
|
55809
|
-
return X === void 0 ?
|
|
55823
|
+
return X === void 0 ? ft : X;
|
|
55810
55824
|
}
|
|
55811
55825
|
if (K.startsWith("[") && K.includes("]")) {
|
|
55812
55826
|
const X = K.indexOf("]"), lt = An.current[K.slice(1, X)], it = K.slice(X + 1).replace(/^\./, "");
|
|
@@ -55991,7 +56005,7 @@ ${C.message}` : C.message;
|
|
|
55991
56005
|
containerWidth: Ve,
|
|
55992
56006
|
interactionDisabled: p,
|
|
55993
56007
|
previewMode: R,
|
|
55994
|
-
isAuthenticated:
|
|
56008
|
+
isAuthenticated: ft,
|
|
55995
56009
|
styleOverrides: f,
|
|
55996
56010
|
selectedComponentKey: h,
|
|
55997
56011
|
selectedComponentClass: u,
|
|
@@ -56006,8 +56020,8 @@ ${C.message}` : C.message;
|
|
|
56006
56020
|
evaluateExpression: ua,
|
|
56007
56021
|
evaluateCondition: Cl,
|
|
56008
56022
|
showToast: Ae,
|
|
56009
|
-
setActiveModal:
|
|
56010
|
-
dismissModal:
|
|
56023
|
+
setActiveModal: pe,
|
|
56024
|
+
dismissModal: Vt,
|
|
56011
56025
|
setOverlayModal: fs,
|
|
56012
56026
|
dismissOverlayModal: gl,
|
|
56013
56027
|
fetchListData: Wn,
|
|
@@ -56063,7 +56077,7 @@ ${C.message}` : C.message;
|
|
|
56063
56077
|
Df.current = yr;
|
|
56064
56078
|
const $l = b.useRef({}), Au = b.useRef(/* @__PURE__ */ new Set()), Oo = b.useRef(null), jf = b.useRef(!1);
|
|
56065
56079
|
b.useEffect(() => {
|
|
56066
|
-
if (!Ue || !
|
|
56080
|
+
if (!Ue || !ft) {
|
|
56067
56081
|
zn.current.forEach(($) => $()), zn.current.clear(), vr.current.clear();
|
|
56068
56082
|
return;
|
|
56069
56083
|
}
|
|
@@ -56154,13 +56168,13 @@ ${C.message}` : C.message;
|
|
|
56154
56168
|
if ((X.type === "list" || X.type === "table") && X.dataSource) {
|
|
56155
56169
|
const Pt = `${Ot}|${it}`;
|
|
56156
56170
|
M.add(Pt), X.key && M.add(X.key), Rf.current[Pt] = X.sort || {}, xu.current[Pt] = { responseKey: X.responseKey, paginationMode: X.paginationMode };
|
|
56157
|
-
const Yt = String(X.dataSource), It = Yt.trim().match(/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/),
|
|
56171
|
+
const Yt = String(X.dataSource), It = Yt.trim().match(/^\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*\}\}$/), Ft = !!It, fe = Ft ? Yt : C(X.dataSource), jt = Ft ? `${Yt}#${It ? JSON.stringify(
|
|
56158
56172
|
kn(
|
|
56159
56173
|
`${It[1]}${It[2] ? "." + It[2] : ""}`
|
|
56160
56174
|
)
|
|
56161
|
-
) : "u"}` :
|
|
56162
|
-
|
|
56163
|
-
|
|
56175
|
+
) : "u"}` : fe, ht = Mi.current[Pt] !== jt;
|
|
56176
|
+
ht && (Mi.current[Pt] = jt, fa.current[Pt] = 1, Wn(
|
|
56177
|
+
fe,
|
|
56164
56178
|
Pt,
|
|
56165
56179
|
0,
|
|
56166
56180
|
X.pageSize || 10,
|
|
@@ -56169,7 +56183,7 @@ ${C.message}` : C.message;
|
|
|
56169
56183
|
X.key
|
|
56170
56184
|
));
|
|
56171
56185
|
const xt = X.realtime, _t = xt ? C(xt.channel || "") : "", Kt = xt ? C(xt.url || "") : "", Ut = xt ? C(xt.event || "") : "", Me = xt ? `${Kt}|${_t}|${Ut}` : "", Ht = vr.current.get(Pt) !== Me;
|
|
56172
|
-
if (xt && (
|
|
56186
|
+
if (xt && (ht || Ht)) {
|
|
56173
56187
|
vr.current.set(Pt, Me);
|
|
56174
56188
|
const se = zn.current.get(Pt);
|
|
56175
56189
|
se && se();
|
|
@@ -56230,7 +56244,7 @@ ${C.message}` : C.message;
|
|
|
56230
56244
|
switch (xt.mode) {
|
|
56231
56245
|
case "poll": {
|
|
56232
56246
|
const Ze = xt.interval || 5e3, ve = window.setInterval(() => {
|
|
56233
|
-
xt.while && !Co(xt.while, Pn.current) || Wn(
|
|
56247
|
+
xt.while && !Co(xt.while, Pn.current) || Wn(fe, Pt, 0, Hn);
|
|
56234
56248
|
}, Ze);
|
|
56235
56249
|
ar = () => clearInterval(ve);
|
|
56236
56250
|
break;
|
|
@@ -56242,7 +56256,7 @@ ${C.message}` : C.message;
|
|
|
56242
56256
|
break;
|
|
56243
56257
|
}
|
|
56244
56258
|
const Ze = r || localStorage.getItem("token") || "", ve = Kt || `/events?channel=${_t}`, En = Ze && !ve.includes("token=") ? `${ve}${ve.includes("?") ? "&" : "?"}token=${encodeURIComponent(Ze)}` : ve, kt = new EventSource(En), Dt = (ce) => {
|
|
56245
|
-
ws(ce.data) && (_e(ce.data), Wn(
|
|
56259
|
+
ws(ce.data) && (_e(ce.data), Wn(fe, Pt, 0, Hn));
|
|
56246
56260
|
};
|
|
56247
56261
|
Ut ? kt.addEventListener(Ut, Dt) : kt.onmessage = Dt, kt.onerror = () => kt.close(), ar = () => kt.close();
|
|
56248
56262
|
break;
|
|
@@ -56266,9 +56280,9 @@ ${C.message}` : C.message;
|
|
|
56266
56280
|
Dt = new WebSocket(Tn);
|
|
56267
56281
|
}
|
|
56268
56282
|
typeof Dt.addEventListener == "function" && Dt.addEventListener("open", () => {
|
|
56269
|
-
Wn(
|
|
56283
|
+
Wn(fe, Pt, 0, Hn);
|
|
56270
56284
|
}), Dt.onmessage = (Tn) => {
|
|
56271
|
-
ws(Tn.data) && (_e(Tn.data), Wn(
|
|
56285
|
+
ws(Tn.data) && (_e(Tn.data), Wn(fe, Pt, 0, Hn).then(
|
|
56272
56286
|
(wr) => {
|
|
56273
56287
|
const _r = Array.isArray(wr) ? wr : vn[Pt];
|
|
56274
56288
|
xt.onEvent && Ki(Tn.data, _r);
|
|
@@ -56299,13 +56313,13 @@ ${C.message}` : C.message;
|
|
|
56299
56313
|
const Pt = `${it}-sel`, Yt = C(X.dataSource);
|
|
56300
56314
|
Mi.current[Pt] !== Yt && (Mi.current[Pt] = Yt, (async () => {
|
|
56301
56315
|
try {
|
|
56302
|
-
const It = X.dataSource,
|
|
56316
|
+
const It = X.dataSource, Ft = C(It), fe = await fetch(Ft, {
|
|
56303
56317
|
headers: {
|
|
56304
56318
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
56305
56319
|
}
|
|
56306
56320
|
});
|
|
56307
|
-
if (!
|
|
56308
|
-
const jt = await
|
|
56321
|
+
if (!fe.ok) return;
|
|
56322
|
+
const jt = await fe.json(), ht = X.dataField || "configs", xt = X.optionLabel || "label", _t = X.optionValue || "value", Kt = jt[ht] || jt.data || jt, Ut = Array.isArray(Kt) ? Kt.map((Me) => ({
|
|
56309
56323
|
label: Me[xt] || Me.name || Me.label,
|
|
56310
56324
|
value: Me[_t] || Me.id || Me.name || Me.label
|
|
56311
56325
|
})) : [];
|
|
@@ -56333,7 +56347,7 @@ ${C.message}` : C.message;
|
|
|
56333
56347
|
Pt && Array.isArray(Pt.components) && $(Pt.components, `${it}-${Mt.widgetId}`);
|
|
56334
56348
|
}
|
|
56335
56349
|
});
|
|
56336
|
-
}, Z = `${Ot}|${ha}|${Ml}|${
|
|
56350
|
+
}, Z = `${Ot}|${ha}|${Ml}|${ft}`;
|
|
56337
56351
|
vs.current !== Z && (vs.current = Z, $($n), _l.current = M);
|
|
56338
56352
|
const B = zt || le;
|
|
56339
56353
|
if (kl.current !== ((B == null ? void 0 : B.id) || "")) {
|
|
@@ -56355,7 +56369,7 @@ ${C.message}` : C.message;
|
|
|
56355
56369
|
Ml,
|
|
56356
56370
|
zt == null ? void 0 : zt.id,
|
|
56357
56371
|
le == null ? void 0 : le.id,
|
|
56358
|
-
|
|
56372
|
+
ft
|
|
56359
56373
|
]), b.useEffect(() => () => {
|
|
56360
56374
|
zn.current.forEach((C) => C()), zn.current.clear(), vr.current.clear(), vs.current = "";
|
|
56361
56375
|
}, [Ot]);
|
|
@@ -56379,7 +56393,7 @@ ${C.message}` : C.message;
|
|
|
56379
56393
|
pa.current = Al;
|
|
56380
56394
|
const bs = Lt.realtime, ma = bs == null ? void 0 : bs.mode, Il = bs == null ? void 0 : bs.url;
|
|
56381
56395
|
if (b.useEffect(() => {
|
|
56382
|
-
if (!
|
|
56396
|
+
if (!ft || ma !== "sse" || !Il) return;
|
|
56383
56397
|
const C = r || localStorage.getItem("token");
|
|
56384
56398
|
if (!C) return;
|
|
56385
56399
|
let M = null, $ = !1;
|
|
@@ -56405,7 +56419,7 @@ ${C.message}` : C.message;
|
|
|
56405
56419
|
})(), () => {
|
|
56406
56420
|
$ = !0, M == null || M.close();
|
|
56407
56421
|
};
|
|
56408
|
-
}, [
|
|
56422
|
+
}, [ft, N, r, ma, Il]), !Ue)
|
|
56409
56423
|
return b.createElement(
|
|
56410
56424
|
b.Fragment,
|
|
56411
56425
|
null,
|
|
@@ -56436,7 +56450,7 @@ ${C.message}` : C.message;
|
|
|
56436
56450
|
...ki ? { minHeight: ki } : {},
|
|
56437
56451
|
backgroundColor: ga || Lt.colors.background,
|
|
56438
56452
|
color: xs
|
|
56439
|
-
}, Eu = Array.isArray(Te.components) ? Te.components : [], _g = Bdt(Vn), ui = (Ue == null ? void 0 : Ue.requireAuth) === !0 || (Te == null ? void 0 : Te.requiresAuth) === !0 || (ai == null ? void 0 : ai.requiresAuth) === !0 || ((bt = ai == null ? void 0 : ai.config) == null ? void 0 : bt.requiresAuth) === !0, zf = (ui || nt) && !
|
|
56453
|
+
}, Eu = Array.isArray(Te.components) ? Te.components : [], _g = Bdt(Vn), ui = (Ue == null ? void 0 : Ue.requireAuth) === !0 || (Te == null ? void 0 : Te.requiresAuth) === !0 || (ai == null ? void 0 : ai.requiresAuth) === !0 || ((bt = ai == null ? void 0 : ai.config) == null ? void 0 : bt.requiresAuth) === !0, zf = (ui || nt) && !ft ? bg() : null, ya = ft && ui && et === !1 && !dt, Pg = async () => {
|
|
56440
56454
|
Ce("sending");
|
|
56441
56455
|
try {
|
|
56442
56456
|
const C = r || localStorage.getItem("token"), M = await fetch(`${br()}/auth/resend-verification`, {
|
|
@@ -56478,7 +56492,7 @@ ${C.message}` : C.message;
|
|
|
56478
56492
|
{
|
|
56479
56493
|
key: "resend",
|
|
56480
56494
|
onClick: Pg,
|
|
56481
|
-
disabled:
|
|
56495
|
+
disabled: de !== "idle",
|
|
56482
56496
|
style: {
|
|
56483
56497
|
background: "none",
|
|
56484
56498
|
border: "none",
|
|
@@ -56487,11 +56501,11 @@ ${C.message}` : C.message;
|
|
|
56487
56501
|
font: "inherit",
|
|
56488
56502
|
fontWeight: 700,
|
|
56489
56503
|
textDecoration: "underline",
|
|
56490
|
-
cursor:
|
|
56491
|
-
opacity:
|
|
56504
|
+
cursor: de === "idle" ? "pointer" : "default",
|
|
56505
|
+
opacity: de === "idle" ? 1 : 0.7
|
|
56492
56506
|
}
|
|
56493
56507
|
},
|
|
56494
|
-
|
|
56508
|
+
de === "sent" ? "Sent" : de === "sending" ? "Sending…" : "Resend"
|
|
56495
56509
|
),
|
|
56496
56510
|
b.createElement(
|
|
56497
56511
|
"button",
|
|
@@ -56531,7 +56545,7 @@ ${C.message}` : C.message;
|
|
|
56531
56545
|
const M = go[C.id], $ = C.sourceSceneId ? (Z = M == null ? void 0 : M.steps) == null ? void 0 : Z.find((Y) => Y.id === C.sourceSceneId) : (B = M == null ? void 0 : M.steps) == null ? void 0 : B.find((Y) => Y.type === "render_scene");
|
|
56532
56546
|
return (K = $ == null ? void 0 : $.config) != null && K.components ? { ...C, components: $.config.components } : null;
|
|
56533
56547
|
}).filter(Boolean);
|
|
56534
|
-
$n = [...Eu], (Xt = (Rt = In.layout) == null ? void 0 : Rt.header) != null && Xt.length ? $n.splice(0, 0, ...In.layout.header) : (Un = (
|
|
56548
|
+
$n = [...Eu], (Xt = (Rt = In.layout) == null ? void 0 : Rt.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);
|
|
56535
56549
|
for (const C of Ff || []) {
|
|
56536
56550
|
const M = C.components || [];
|
|
56537
56551
|
if (!M.length) continue;
|
|
@@ -56697,14 +56711,14 @@ ${C.message}` : C.message;
|
|
|
56697
56711
|
sceneId: Ot,
|
|
56698
56712
|
sceneData: xe,
|
|
56699
56713
|
registry: An.current,
|
|
56700
|
-
isAuthenticated:
|
|
56714
|
+
isAuthenticated: ft,
|
|
56701
56715
|
colorMode: Lt.colorMode,
|
|
56702
56716
|
runtimeIssues: Fi,
|
|
56703
56717
|
enabled: W,
|
|
56704
56718
|
navigateToScene: Ci,
|
|
56705
56719
|
openModal: (C) => {
|
|
56706
56720
|
const M = an[C];
|
|
56707
|
-
M &&
|
|
56721
|
+
M && pe({ id: C, definition: M });
|
|
56708
56722
|
},
|
|
56709
56723
|
submitReport: async (C) => {
|
|
56710
56724
|
const M = await fetch(
|