bi-components-library 1.2.10 → 1.2.12
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.es.js +829 -840
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -562,14 +562,14 @@ const { Option: bc } = Un, Tc = ({
|
|
|
562
562
|
w.current = y;
|
|
563
563
|
const _ = Z(u);
|
|
564
564
|
_.current = u;
|
|
565
|
-
const
|
|
566
|
-
const { sortable: C, render: B, ...$ } =
|
|
565
|
+
const D = Z(!1), A = kt(() => e.map((N) => {
|
|
566
|
+
const { sortable: C, render: B, ...$ } = N;
|
|
567
567
|
return {
|
|
568
568
|
...$,
|
|
569
569
|
sorter: C ? !0 : void 0,
|
|
570
570
|
render: B || ((H) => H)
|
|
571
571
|
};
|
|
572
|
-
}), [e]), x = ue(async (
|
|
572
|
+
}), [e]), x = ue(async (N = {}) => {
|
|
573
573
|
if (t) {
|
|
574
574
|
p(!0);
|
|
575
575
|
try {
|
|
@@ -579,7 +579,7 @@ const { Option: bc } = Un, Tc = ({
|
|
|
579
579
|
sortField: b.field,
|
|
580
580
|
sortOrder: b.order,
|
|
581
581
|
searchParams: { ...m, ..._.current },
|
|
582
|
-
...
|
|
582
|
+
...N
|
|
583
583
|
}, B = await t(C);
|
|
584
584
|
B.success && (f(B.data), h(($) => ({
|
|
585
585
|
...$,
|
|
@@ -592,17 +592,17 @@ const { Option: bc } = Un, Tc = ({
|
|
|
592
592
|
p(!1);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
}, [t, b, m]), S = ue((
|
|
596
|
-
E(
|
|
597
|
-
}, []),
|
|
598
|
-
v.resetFields(), E({}), h((
|
|
595
|
+
}, [t, b, m]), S = ue((N) => {
|
|
596
|
+
E(N), h((C) => ({ ...C, current: 1 }));
|
|
597
|
+
}, []), k = ue(() => {
|
|
598
|
+
v.resetFields(), E({}), h((N) => ({ ...N, current: 1 }));
|
|
599
599
|
}, [v]), O = ue(() => {
|
|
600
600
|
x();
|
|
601
|
-
}, [x]),
|
|
601
|
+
}, [x]), P = ue((N, C, B) => {
|
|
602
602
|
const $ = {
|
|
603
|
-
current:
|
|
604
|
-
pageSize:
|
|
605
|
-
total:
|
|
603
|
+
current: N.current || 1,
|
|
604
|
+
pageSize: N.pageSize || i,
|
|
605
|
+
total: N.total || 0
|
|
606
606
|
}, H = {
|
|
607
607
|
field: B?.field,
|
|
608
608
|
order: B?.order
|
|
@@ -610,8 +610,8 @@ const { Option: bc } = Un, Tc = ({
|
|
|
610
610
|
h($), T(H);
|
|
611
611
|
}, [i]);
|
|
612
612
|
return se(() => {
|
|
613
|
-
const
|
|
614
|
-
(o && !
|
|
613
|
+
const N = Object.keys(u).length > 0;
|
|
614
|
+
(o && !D.current || N) && (x(), D.current = !0);
|
|
615
615
|
}, [o, u, x]), /* @__PURE__ */ fe("div", { children: [
|
|
616
616
|
r && n.length > 0 && /* @__PURE__ */ V(ei, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ fe(
|
|
617
617
|
nr,
|
|
@@ -619,26 +619,26 @@ const { Option: bc } = Un, Tc = ({
|
|
|
619
619
|
form: v,
|
|
620
620
|
layout: "inline",
|
|
621
621
|
onFinish: S,
|
|
622
|
-
initialValues: n.reduce((
|
|
622
|
+
initialValues: n.reduce((N, C) => (C.defaultValue !== void 0 && (N[C.key] = C.defaultValue), N), {}),
|
|
623
623
|
children: [
|
|
624
|
-
n.map((
|
|
624
|
+
n.map((N) => /* @__PURE__ */ V(nr.Item, { name: N.key, label: N.label, children: N.type === "input" ? /* @__PURE__ */ V(
|
|
625
625
|
ni,
|
|
626
626
|
{
|
|
627
|
-
placeholder:
|
|
627
|
+
placeholder: N.placeholder || `请输入${N.label}`,
|
|
628
628
|
style: { width: 200 }
|
|
629
629
|
}
|
|
630
630
|
) : /* @__PURE__ */ V(
|
|
631
631
|
Un,
|
|
632
632
|
{
|
|
633
|
-
placeholder:
|
|
633
|
+
placeholder: N.placeholder || `请选择${N.label}`,
|
|
634
634
|
style: { width: 200 },
|
|
635
635
|
allowClear: !0,
|
|
636
|
-
children:
|
|
636
|
+
children: N.options?.map((C) => /* @__PURE__ */ V(bc, { value: C.value, children: C.label }, C.value))
|
|
637
637
|
}
|
|
638
|
-
) },
|
|
638
|
+
) }, N.key)),
|
|
639
639
|
/* @__PURE__ */ V(nr.Item, { children: /* @__PURE__ */ fe(Wl, { children: [
|
|
640
640
|
/* @__PURE__ */ V(Ft, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ V(rc, {}), children: "查询" }),
|
|
641
|
-
/* @__PURE__ */ V(Ft, { onClick:
|
|
641
|
+
/* @__PURE__ */ V(Ft, { onClick: k, children: "重置" }),
|
|
642
642
|
a && /* @__PURE__ */ V(Ft, { icon: /* @__PURE__ */ V(ac, {}), onClick: O, children: "刷新" })
|
|
643
643
|
] }) })
|
|
644
644
|
]
|
|
@@ -655,10 +655,10 @@ const { Option: bc } = Un, Tc = ({
|
|
|
655
655
|
...y,
|
|
656
656
|
showSizeChanger: !0,
|
|
657
657
|
showQuickJumper: !0,
|
|
658
|
-
showTotal: (
|
|
658
|
+
showTotal: (N, C) => `第 ${C[0]}-${C[1]} 条/共 ${N} 条`,
|
|
659
659
|
pageSizeOptions: s
|
|
660
660
|
},
|
|
661
|
-
onChange:
|
|
661
|
+
onChange: P,
|
|
662
662
|
scroll: { x: "max-content", y: "50vh" }
|
|
663
663
|
}
|
|
664
664
|
)
|
|
@@ -753,7 +753,7 @@ const yc = ({ host: e, onChange: t }) => {
|
|
|
753
753
|
}, [u, o, r]), h = _e.useCallback(() => {
|
|
754
754
|
const m = g.current;
|
|
755
755
|
if (!m) return;
|
|
756
|
-
const E = m.querySelector(".ant-select-selection-item"), b = m.querySelector(".ant-select-selection-placeholder"), T = E || b, v = (T?.textContent || "").trim() || y(), w = m.querySelector(".ant-select-selector"), _ = T || w || m,
|
|
756
|
+
const E = m.querySelector(".ant-select-selection-item"), b = m.querySelector(".ant-select-selection-placeholder"), T = E || b, v = (T?.textContent || "").trim() || y(), w = m.querySelector(".ant-select-selector"), _ = T || w || m, D = window.getComputedStyle(_), A = T ? D.fontSize : "16px", x = D.fontFamily || "sans-serif", S = D.fontWeight || "400", O = `${D.fontStyle || "normal"} ${S} ${A} ${x}`, N = document.createElement("canvas").getContext("2d"), C = N ? Math.ceil((N.font = O, N.measureText(v).width || 0)) : 0;
|
|
757
757
|
let B = 0;
|
|
758
758
|
if (w) {
|
|
759
759
|
const X = window.getComputedStyle(w);
|
|
@@ -879,24 +879,24 @@ const yc = ({ host: e, onChange: t }) => {
|
|
|
879
879
|
}, [o, g]), b = kt(() => {
|
|
880
880
|
const x = c.trim();
|
|
881
881
|
if (!x) return E;
|
|
882
|
-
const S = x.toLowerCase(),
|
|
883
|
-
(
|
|
882
|
+
const S = x.toLowerCase(), k = E.filter(
|
|
883
|
+
(P) => P.label.toLowerCase().includes(S) || P.value.toLowerCase().includes(S)
|
|
884
884
|
);
|
|
885
885
|
return E.some(
|
|
886
|
-
(
|
|
887
|
-
) ?
|
|
886
|
+
(P) => P.label === x || P.value === x
|
|
887
|
+
) ? k : [{ label: x, value: x, isCustom: !0 }, ...k];
|
|
888
888
|
}, [E, c]), T = (x) => {
|
|
889
889
|
if (x == null) return;
|
|
890
|
-
o.some((
|
|
890
|
+
o.some((k) => k.value === x) ? g && p(null) : p(x), l(x), f(""), e.setAttribute("data-value", x), t(n, x);
|
|
891
891
|
}, v = (x) => {
|
|
892
892
|
f(x);
|
|
893
893
|
}, w = (x) => {
|
|
894
894
|
if (x.key === "Enter" && c.trim()) {
|
|
895
895
|
x.preventDefault(), x.stopPropagation();
|
|
896
|
-
const S = c.trim(),
|
|
896
|
+
const S = c.trim(), k = o.find(
|
|
897
897
|
(O) => O.label === S || O.value === S
|
|
898
898
|
);
|
|
899
|
-
|
|
899
|
+
k ? T(k.value) : (p(S), l(S), f(""), e.setAttribute("data-value", S), t(n, S));
|
|
900
900
|
}
|
|
901
901
|
}, _ = () => {
|
|
902
902
|
p(null), l(void 0), f(""), e.setAttribute("data-value", ""), t(n, "");
|
|
@@ -904,7 +904,7 @@ const yc = ({ host: e, onChange: t }) => {
|
|
|
904
904
|
se(() => {
|
|
905
905
|
l(s || void 0);
|
|
906
906
|
}, [s]);
|
|
907
|
-
const
|
|
907
|
+
const D = _e.useCallback(() => {
|
|
908
908
|
if (u != null && u !== "") {
|
|
909
909
|
const x = E.find((S) => String(S.value) === String(u));
|
|
910
910
|
return x ? typeof x.label == "string" ? x.label : String(x.label ?? u) : String(u);
|
|
@@ -913,10 +913,10 @@ const yc = ({ host: e, onChange: t }) => {
|
|
|
913
913
|
}, [u, E, r]), A = _e.useCallback(() => {
|
|
914
914
|
const x = m.current;
|
|
915
915
|
if (!x) return;
|
|
916
|
-
const S = x.querySelector(".ant-select-selection-item"),
|
|
916
|
+
const S = x.querySelector(".ant-select-selection-item"), k = x.querySelector(".ant-select-selection-placeholder"), O = S || k, P = (O?.textContent || "").trim() || D(), N = x.querySelector(".ant-select-selector"), C = O || N || x, B = window.getComputedStyle(C), $ = O ? B.fontSize : "16px", H = B.fontFamily || "sans-serif", q = B.fontWeight || "400", z = `${B.fontStyle || "normal"} ${q} ${$} ${H}`, R = document.createElement("canvas").getContext("2d"), W = R ? Math.ceil((R.font = z, R.measureText(P).width || 0)) : 0;
|
|
917
917
|
let te = 0;
|
|
918
|
-
if (
|
|
919
|
-
const ce = window.getComputedStyle(
|
|
918
|
+
if (N) {
|
|
919
|
+
const ce = window.getComputedStyle(N);
|
|
920
920
|
te = (Number.parseFloat(ce.paddingLeft) || 0) + (Number.parseFloat(ce.paddingRight) || 0);
|
|
921
921
|
}
|
|
922
922
|
const oe = x.querySelector(".ant-select-arrow");
|
|
@@ -928,7 +928,7 @@ const yc = ({ host: e, onChange: t }) => {
|
|
|
928
928
|
}
|
|
929
929
|
const re = Math.min(240, Math.max(80, W + te + 4));
|
|
930
930
|
h((ce) => ce === re ? ce : re);
|
|
931
|
-
}, [
|
|
931
|
+
}, [D]);
|
|
932
932
|
return Ze(() => {
|
|
933
933
|
const x = window.requestAnimationFrame(() => {
|
|
934
934
|
A();
|
|
@@ -1083,7 +1083,7 @@ const wc = ({ host: e, onChange: t }) => {
|
|
|
1083
1083
|
if (!v) return;
|
|
1084
1084
|
const w = v.querySelector("textarea");
|
|
1085
1085
|
if (!w) return;
|
|
1086
|
-
const _ = window.getComputedStyle(w),
|
|
1086
|
+
const _ = window.getComputedStyle(w), D = _.fontStyle || "normal", A = _.fontWeight || "400", x = _.fontSize || "16px", S = _.fontFamily || "sans-serif", k = `${D} ${A} ${x} ${S}`, O = Number.parseFloat(_.paddingLeft) || 0, P = Number.parseFloat(_.paddingRight) || 0, N = (o && o.length > 0 ? o : r) || " ", C = vc(N, k, _.letterSpacing || "0", O, P), $ = Math.max(24, Math.min(600, C + 2));
|
|
1087
1087
|
g((H) => H === $ ? H : $);
|
|
1088
1088
|
}, [r, o]);
|
|
1089
1089
|
se(() => {
|
|
@@ -1407,15 +1407,15 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1407
1407
|
), m && typeof m.maxCount == "number" && typeof m.minCount == "number") {
|
|
1408
1408
|
const v = m.maxCount, w = typeof a == "number" ? a : 0;
|
|
1409
1409
|
u((_) => {
|
|
1410
|
-
const
|
|
1410
|
+
const D = { ..._ };
|
|
1411
1411
|
let A = Math.min(Math.max(w, 0), v - 1);
|
|
1412
1412
|
for (const x of b) {
|
|
1413
|
-
for (; A < v &&
|
|
1413
|
+
for (; A < v && D[`${h}-${A}`] != null; )
|
|
1414
1414
|
A += 1;
|
|
1415
1415
|
if (A >= v) break;
|
|
1416
|
-
|
|
1416
|
+
D[`${h}-${A}`] = x, A += 1;
|
|
1417
1417
|
}
|
|
1418
|
-
return
|
|
1418
|
+
return D;
|
|
1419
1419
|
});
|
|
1420
1420
|
}
|
|
1421
1421
|
} else if (r && f.target.files[0]) {
|
|
@@ -1715,32 +1715,32 @@ const Uc = (e) => {
|
|
|
1715
1715
|
}, [u]), se(() => {
|
|
1716
1716
|
b.current = c;
|
|
1717
1717
|
}, [c]), se(() => {
|
|
1718
|
-
const _ = T(v.current),
|
|
1719
|
-
if (_ && _ !==
|
|
1718
|
+
const _ = T(v.current), D = T(e);
|
|
1719
|
+
if (_ && _ !== D && t.current) {
|
|
1720
1720
|
const A = {};
|
|
1721
|
-
t.current.querySelectorAll('[data-type="variable"]').forEach((
|
|
1722
|
-
const
|
|
1723
|
-
if (
|
|
1724
|
-
const C =
|
|
1725
|
-
C && (A[
|
|
1721
|
+
t.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
|
|
1722
|
+
const N = P.dataset.key;
|
|
1723
|
+
if (N) {
|
|
1724
|
+
const C = P.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
1725
|
+
C && (A[N] = C);
|
|
1726
1726
|
}
|
|
1727
|
-
}), t.current.querySelectorAll('[data-type="select"]').forEach((
|
|
1728
|
-
const
|
|
1729
|
-
if (
|
|
1730
|
-
const C = (
|
|
1731
|
-
C && (A[
|
|
1727
|
+
}), t.current.querySelectorAll('[data-type="select"]').forEach((P) => {
|
|
1728
|
+
const N = P.dataset.key;
|
|
1729
|
+
if (N) {
|
|
1730
|
+
const C = (P.getAttribute("data-value") || "").trim();
|
|
1731
|
+
C && (A[N] = C);
|
|
1732
1732
|
}
|
|
1733
|
-
}), t.current.querySelectorAll('[data-type="searchable-select"]').forEach((
|
|
1734
|
-
const
|
|
1735
|
-
if (
|
|
1736
|
-
const C = (
|
|
1737
|
-
C && (A[
|
|
1733
|
+
}), t.current.querySelectorAll('[data-type="searchable-select"]').forEach((P) => {
|
|
1734
|
+
const N = P.dataset.key;
|
|
1735
|
+
if (N) {
|
|
1736
|
+
const C = (P.getAttribute("data-value") || "").trim();
|
|
1737
|
+
C && (A[N] = C);
|
|
1738
1738
|
}
|
|
1739
|
-
}), t.current.querySelectorAll('[data-type="textarea"]').forEach((
|
|
1740
|
-
const
|
|
1741
|
-
if (
|
|
1742
|
-
const C =
|
|
1743
|
-
C && (A[
|
|
1739
|
+
}), t.current.querySelectorAll('[data-type="textarea"]').forEach((P) => {
|
|
1740
|
+
const N = P.dataset.key;
|
|
1741
|
+
if (N) {
|
|
1742
|
+
const C = P.value.replace(/[\u200B]/g, "").trim();
|
|
1743
|
+
C && (A[N] = C);
|
|
1744
1744
|
}
|
|
1745
1745
|
}), p.current[_] = {
|
|
1746
1746
|
variableValues: A,
|
|
@@ -1751,10 +1751,10 @@ const Uc = (e) => {
|
|
|
1751
1751
|
markdownNameAnalyzeState: { ...b.current }
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
|
-
if (
|
|
1755
|
-
const A = p.current[
|
|
1754
|
+
if (D && p.current[D]) {
|
|
1755
|
+
const A = p.current[D];
|
|
1756
1756
|
w.current = A, r(A.files), i(A.multiVariableCounts), o(A.reportAnalyzeState), l(A.markdownAnalyzeState), f(A.markdownNameAnalyzeState);
|
|
1757
|
-
} else if (
|
|
1757
|
+
} else if (D) {
|
|
1758
1758
|
w.current = null;
|
|
1759
1759
|
const A = {};
|
|
1760
1760
|
e.forEach((x) => {
|
|
@@ -1850,8 +1850,8 @@ const Uc = (e) => {
|
|
|
1850
1850
|
markdownNameAnalyzeStateRef: y
|
|
1851
1851
|
}) => {
|
|
1852
1852
|
const h = ue(() => Vc(l), [l]), m = ue(
|
|
1853
|
-
(_,
|
|
1854
|
-
const A = (
|
|
1853
|
+
(_, D) => {
|
|
1854
|
+
const A = (D || "").trim();
|
|
1855
1855
|
if (!_) return;
|
|
1856
1856
|
if (!A) {
|
|
1857
1857
|
a((O) => ({
|
|
@@ -1881,25 +1881,25 @@ const Uc = (e) => {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
]
|
|
1883
1883
|
})))(S).then((O) => {
|
|
1884
|
-
const
|
|
1884
|
+
const P = qc(O);
|
|
1885
1885
|
if (l.current) {
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
}), l.current.__tempVariableValues =
|
|
1886
|
+
const N = h();
|
|
1887
|
+
P.forEach((C, B) => {
|
|
1888
|
+
N[`${_}__module_${B}`] = C.content;
|
|
1889
|
+
}), l.current.__tempVariableValues = N;
|
|
1890
1890
|
}
|
|
1891
|
-
a((
|
|
1892
|
-
...
|
|
1893
|
-
[_]: { status: "success", error: void 0, lastParsedUrl: A, modules:
|
|
1891
|
+
a((N) => ({
|
|
1892
|
+
...N,
|
|
1893
|
+
[_]: { status: "success", error: void 0, lastParsedUrl: A, modules: P }
|
|
1894
1894
|
}));
|
|
1895
1895
|
}).catch((O) => {
|
|
1896
|
-
const
|
|
1897
|
-
a((
|
|
1898
|
-
...
|
|
1896
|
+
const P = O instanceof Error ? O.message : String(O);
|
|
1897
|
+
a((N) => ({
|
|
1898
|
+
...N,
|
|
1899
1899
|
[_]: {
|
|
1900
|
-
...
|
|
1900
|
+
...N[_] || { modules: [] },
|
|
1901
1901
|
status: "error",
|
|
1902
|
-
error:
|
|
1902
|
+
error: P || "解析失败",
|
|
1903
1903
|
lastParsedUrl: A,
|
|
1904
1904
|
modules: []
|
|
1905
1905
|
}
|
|
@@ -1908,12 +1908,12 @@ const Uc = (e) => {
|
|
|
1908
1908
|
},
|
|
1909
1909
|
[h, l, e, r, a]
|
|
1910
1910
|
), E = ue(
|
|
1911
|
-
(_,
|
|
1912
|
-
const A = (
|
|
1911
|
+
(_, D) => {
|
|
1912
|
+
const A = (D || "").trim();
|
|
1913
1913
|
if (!_) return;
|
|
1914
1914
|
if (!A) {
|
|
1915
|
-
s((
|
|
1916
|
-
...
|
|
1915
|
+
s((N) => ({
|
|
1916
|
+
...N,
|
|
1917
1917
|
[_]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
|
|
1918
1918
|
}));
|
|
1919
1919
|
return;
|
|
@@ -1922,8 +1922,8 @@ const Uc = (e) => {
|
|
|
1922
1922
|
if (x?.lastParsedText && x.lastParsedText === A && x.status === "success")
|
|
1923
1923
|
return;
|
|
1924
1924
|
if (!t) {
|
|
1925
|
-
const
|
|
1926
|
-
modules: [{ title: "内容", content: _o(
|
|
1925
|
+
const N = So(A), C = Qr({
|
|
1926
|
+
modules: [{ title: "内容", content: _o(N), markdown: N }]
|
|
1927
1927
|
});
|
|
1928
1928
|
if (l.current) {
|
|
1929
1929
|
const B = h();
|
|
@@ -1938,14 +1938,14 @@ const Uc = (e) => {
|
|
|
1938
1938
|
return;
|
|
1939
1939
|
}
|
|
1940
1940
|
const S = p.current[_]?.status === "loading";
|
|
1941
|
-
S || s((
|
|
1942
|
-
...
|
|
1943
|
-
[_]: { ...
|
|
1941
|
+
S || s((N) => ({
|
|
1942
|
+
...N,
|
|
1943
|
+
[_]: { ...N[_], status: "loading", error: void 0, lastParsedText: A }
|
|
1944
1944
|
}));
|
|
1945
|
-
const
|
|
1945
|
+
const k = 500, O = Date.now();
|
|
1946
1946
|
setTimeout(() => {
|
|
1947
1947
|
t({ text: A }).then((C) => {
|
|
1948
|
-
const B = Qr(C), $ = Date.now() - O, H = Math.max(0,
|
|
1948
|
+
const B = Qr(C), $ = Date.now() - O, H = Math.max(0, k - $);
|
|
1949
1949
|
setTimeout(() => {
|
|
1950
1950
|
if (l.current) {
|
|
1951
1951
|
const q = h();
|
|
@@ -1981,12 +1981,12 @@ const Uc = (e) => {
|
|
|
1981
1981
|
s
|
|
1982
1982
|
]
|
|
1983
1983
|
), b = ue(
|
|
1984
|
-
(_,
|
|
1985
|
-
const A = (
|
|
1984
|
+
(_, D) => {
|
|
1985
|
+
const A = (D || "").trim();
|
|
1986
1986
|
if (!_) return;
|
|
1987
1987
|
if (!A) {
|
|
1988
|
-
u((
|
|
1989
|
-
...
|
|
1988
|
+
u((N) => ({
|
|
1989
|
+
...N,
|
|
1990
1990
|
[_]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
|
|
1991
1991
|
}));
|
|
1992
1992
|
return;
|
|
@@ -1994,14 +1994,14 @@ const Uc = (e) => {
|
|
|
1994
1994
|
const x = y.current[_];
|
|
1995
1995
|
if (x?.lastParsedText && x.lastParsedText === A && x.status === "success" || !n) return;
|
|
1996
1996
|
const S = y.current[_]?.status === "loading";
|
|
1997
|
-
S || u((
|
|
1998
|
-
...
|
|
1999
|
-
[_]: { ...
|
|
1997
|
+
S || u((N) => ({
|
|
1998
|
+
...N,
|
|
1999
|
+
[_]: { ...N[_], status: "loading", error: void 0, lastParsedText: A }
|
|
2000
2000
|
}));
|
|
2001
|
-
const
|
|
2001
|
+
const k = 500, O = Date.now();
|
|
2002
2002
|
setTimeout(() => {
|
|
2003
2003
|
n({ text: A }).then((C) => {
|
|
2004
|
-
const B = Qr(C), $ = Date.now() - O, H = Math.max(0,
|
|
2004
|
+
const B = Qr(C), $ = Date.now() - O, H = Math.max(0, k - $);
|
|
2005
2005
|
setTimeout(() => {
|
|
2006
2006
|
if (l.current) {
|
|
2007
2007
|
const q = h();
|
|
@@ -2043,12 +2043,12 @@ const Uc = (e) => {
|
|
|
2043
2043
|
}, [f, E]), Ze(() => {
|
|
2044
2044
|
g.current = b;
|
|
2045
2045
|
}, [g, b]);
|
|
2046
|
-
const T = ue((_,
|
|
2047
|
-
c.current(_,
|
|
2048
|
-
}, [c]), v = ue((_,
|
|
2049
|
-
f.current(_,
|
|
2050
|
-
}, [f]), w = ue((_,
|
|
2051
|
-
g.current(_,
|
|
2046
|
+
const T = ue((_, D) => {
|
|
2047
|
+
c.current(_, D);
|
|
2048
|
+
}, [c]), v = ue((_, D) => {
|
|
2049
|
+
f.current(_, D);
|
|
2050
|
+
}, [f]), w = ue((_, D) => {
|
|
2051
|
+
g.current(_, D);
|
|
2052
2052
|
}, [g]);
|
|
2053
2053
|
return { handleReportUrlBlur: T, handleMarkdownBlur: v, handleMarkdownNameBlur: w };
|
|
2054
2054
|
}, Yc = ({
|
|
@@ -2082,19 +2082,19 @@ const Uc = (e) => {
|
|
|
2082
2082
|
const v = T.getBoundingClientRect(), w = document.createRange();
|
|
2083
2083
|
w.selectNodeContents(T);
|
|
2084
2084
|
const _ = Array.from(w.getClientRects());
|
|
2085
|
-
let
|
|
2085
|
+
let D;
|
|
2086
2086
|
if (_.length > 0) {
|
|
2087
|
-
const A = Math.min(..._.map((
|
|
2087
|
+
const A = Math.min(..._.map((k) => k.top)), x = 2;
|
|
2088
2088
|
let S = 0;
|
|
2089
|
-
for (const
|
|
2090
|
-
Math.abs(
|
|
2091
|
-
|
|
2089
|
+
for (const k of _)
|
|
2090
|
+
Math.abs(k.top - A) <= x && (S = Math.max(S, k.bottom));
|
|
2091
|
+
D = S > 0 ? Math.max(0, Math.ceil(S - v.top)) : 58;
|
|
2092
2092
|
} else {
|
|
2093
2093
|
const A = window.getComputedStyle(T), x = Number.parseFloat(A.paddingTop) || 0, S = Number.parseFloat(A.lineHeight) || 34;
|
|
2094
|
-
|
|
2094
|
+
D = Math.max(0, Math.ceil(x + S)) || 58;
|
|
2095
2095
|
}
|
|
2096
|
-
if (!Number.isFinite(
|
|
2097
|
-
s((A) => A ===
|
|
2096
|
+
if (!Number.isFinite(D) || D <= 0) return;
|
|
2097
|
+
s((A) => A === D ? A : D);
|
|
2098
2098
|
} catch {
|
|
2099
2099
|
}
|
|
2100
2100
|
}, [
|
|
@@ -2114,21 +2114,21 @@ const Uc = (e) => {
|
|
|
2114
2114
|
if (!b) return;
|
|
2115
2115
|
const w = () => {
|
|
2116
2116
|
b.scrollTop = 0, b.scrollLeft = 0, T && (T.scrollTop = 0, T.scrollLeft = 0), v && (v.scrollTop = 0, v.scrollLeft = 0);
|
|
2117
|
-
},
|
|
2117
|
+
}, D = (typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260) + 220;
|
|
2118
2118
|
w();
|
|
2119
|
-
const A = (
|
|
2120
|
-
|
|
2119
|
+
const A = (P) => {
|
|
2120
|
+
P.preventDefault(), P.stopPropagation(), w();
|
|
2121
2121
|
};
|
|
2122
2122
|
b.addEventListener("wheel", A, { passive: !1 }), b.addEventListener("touchmove", A, { passive: !1 }), T && (T.addEventListener("wheel", A, { passive: !1 }), T.addEventListener("touchmove", A, { passive: !1 }));
|
|
2123
2123
|
const x = performance.now();
|
|
2124
2124
|
let S = 0;
|
|
2125
|
-
const
|
|
2126
|
-
w(),
|
|
2125
|
+
const k = (P) => {
|
|
2126
|
+
w(), P - x < D && (S = window.requestAnimationFrame(k));
|
|
2127
2127
|
};
|
|
2128
|
-
S = window.requestAnimationFrame(
|
|
2128
|
+
S = window.requestAnimationFrame(k);
|
|
2129
2129
|
const O = window.setTimeout(() => {
|
|
2130
2130
|
w();
|
|
2131
|
-
},
|
|
2131
|
+
}, D);
|
|
2132
2132
|
return () => {
|
|
2133
2133
|
b.removeEventListener("wheel", A), b.removeEventListener("touchmove", A), T && (T.removeEventListener("wheel", A), T.removeEventListener("touchmove", A)), window.cancelAnimationFrame(S), window.clearTimeout(O);
|
|
2134
2134
|
};
|
|
@@ -2369,22 +2369,22 @@ function Nr(e, t) {
|
|
|
2369
2369
|
if (h) {
|
|
2370
2370
|
const b = (() => {
|
|
2371
2371
|
try {
|
|
2372
|
-
const
|
|
2373
|
-
if (!
|
|
2372
|
+
const D = Xc(h, r);
|
|
2373
|
+
if (!D || !Number.isFinite(D)) {
|
|
2374
2374
|
const A = br(h);
|
|
2375
2375
|
return Math.max(0, A - 22);
|
|
2376
2376
|
}
|
|
2377
|
-
return
|
|
2377
|
+
return D;
|
|
2378
2378
|
} catch {
|
|
2379
|
-
const
|
|
2380
|
-
return Math.max(0,
|
|
2379
|
+
const D = br(h);
|
|
2380
|
+
return Math.max(0, D - 22);
|
|
2381
2381
|
}
|
|
2382
2382
|
})(), T = (() => {
|
|
2383
2383
|
if (!r.classList.contains("rte-variable-with-icon")) return 0;
|
|
2384
|
-
const
|
|
2385
|
-
if (!
|
|
2384
|
+
const D = r.querySelector(".variable-info-icon:not(.hidden)");
|
|
2385
|
+
if (!D) return 24;
|
|
2386
2386
|
try {
|
|
2387
|
-
const A = window.getComputedStyle(
|
|
2387
|
+
const A = window.getComputedStyle(D), x = Math.ceil(D.getBoundingClientRect().width || 0) || 16, S = Math.ceil(Number.parseFloat(A.right || "0")) || 4;
|
|
2388
2388
|
return Math.max(16, Math.min(120, x + S + 2));
|
|
2389
2389
|
} catch {
|
|
2390
2390
|
return 24;
|
|
@@ -2446,14 +2446,14 @@ function ri(e, t, n, r) {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
m.length && h.push(m);
|
|
2448
2448
|
const E = (x) => {
|
|
2449
|
-
const S = t.find((
|
|
2449
|
+
const S = t.find((k) => k.type === "upload" && k.key === x);
|
|
2450
2450
|
return S ? typeof S.maxCount == "number" && S.maxCount > 1 ? S.maxCount : 1 : 0;
|
|
2451
2451
|
}, b = h.map((x) => {
|
|
2452
2452
|
for (const S of x)
|
|
2453
2453
|
if (S.type !== "other") {
|
|
2454
2454
|
if (S.type === "video-url" || S.type === "video-upload") {
|
|
2455
|
-
const
|
|
2456
|
-
if (
|
|
2455
|
+
const k = r?.[S.key];
|
|
2456
|
+
if (k?.status === "success" && k.videoUrl || k?.status === "loading") return !0;
|
|
2457
2457
|
if (S.type === "video-url") {
|
|
2458
2458
|
const O = e.current.querySelector(
|
|
2459
2459
|
`[data-type="variable"][data-node-type="video-url"][data-key="${S.key}"]`
|
|
@@ -2465,27 +2465,27 @@ function ri(e, t, n, r) {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
if (S.type === "upload") {
|
|
2467
2467
|
if (n[S.key] !== null && n[S.key] !== void 0) return !0;
|
|
2468
|
-
const
|
|
2469
|
-
for (let O = 0; O <
|
|
2470
|
-
const
|
|
2471
|
-
if (n[
|
|
2468
|
+
const k = E(S.key);
|
|
2469
|
+
for (let O = 0; O < k; O++) {
|
|
2470
|
+
const P = `${S.key}-${O}`;
|
|
2471
|
+
if (n[P] !== null && n[P] !== void 0) return !0;
|
|
2472
2472
|
}
|
|
2473
2473
|
continue;
|
|
2474
2474
|
}
|
|
2475
2475
|
if (S.type === "multi-variable") {
|
|
2476
|
-
const
|
|
2476
|
+
const k = e.current.querySelectorAll(
|
|
2477
2477
|
`[data-type="variable"][data-multi-key="${S.key}"]`
|
|
2478
2478
|
);
|
|
2479
|
-
for (const O of
|
|
2479
|
+
for (const O of k) {
|
|
2480
2480
|
if (O.dataset.variableRender === "antd-textarea") {
|
|
2481
|
-
const
|
|
2482
|
-
let
|
|
2481
|
+
const P = O.dataset.value || "";
|
|
2482
|
+
let N = P;
|
|
2483
2483
|
try {
|
|
2484
|
-
|
|
2484
|
+
N = decodeURIComponent(P);
|
|
2485
2485
|
} catch {
|
|
2486
|
-
|
|
2486
|
+
N = P;
|
|
2487
2487
|
}
|
|
2488
|
-
if (
|
|
2488
|
+
if (N.trim().length > 0) return !0;
|
|
2489
2489
|
continue;
|
|
2490
2490
|
}
|
|
2491
2491
|
if (!O.classList.contains("show-placeholder") && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0)
|
|
@@ -2500,14 +2500,14 @@ function ri(e, t, n, r) {
|
|
|
2500
2500
|
const O = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
|
|
2501
2501
|
if (!O) continue;
|
|
2502
2502
|
if (O.dataset.variableRender === "antd-textarea") {
|
|
2503
|
-
const
|
|
2504
|
-
let
|
|
2503
|
+
const P = O.dataset.value || "";
|
|
2504
|
+
let N = P;
|
|
2505
2505
|
try {
|
|
2506
|
-
|
|
2506
|
+
N = decodeURIComponent(P);
|
|
2507
2507
|
} catch {
|
|
2508
|
-
|
|
2508
|
+
N = P;
|
|
2509
2509
|
}
|
|
2510
|
-
if (
|
|
2510
|
+
if (N.trim().length > 0) return !0;
|
|
2511
2511
|
} else if (!O.classList.contains("show-placeholder") && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0)
|
|
2512
2512
|
return !0;
|
|
2513
2513
|
continue;
|
|
@@ -2520,8 +2520,8 @@ function ri(e, t, n, r) {
|
|
|
2520
2520
|
for (const S of h[x] || [])
|
|
2521
2521
|
if (S.type !== "other") {
|
|
2522
2522
|
if (S.type === "video-url" || S.type === "video-upload") {
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2523
|
+
const k = w(S.key);
|
|
2524
|
+
k && i(k.closest(".exclusion-wrapper") || k);
|
|
2525
2525
|
continue;
|
|
2526
2526
|
}
|
|
2527
2527
|
if (S.type === "upload") {
|
|
@@ -2534,27 +2534,27 @@ function ri(e, t, n, r) {
|
|
|
2534
2534
|
e.current.querySelectorAll(
|
|
2535
2535
|
`[data-type="variable"][data-multi-key="${S.key}"]`
|
|
2536
2536
|
).forEach((O) => {
|
|
2537
|
-
const
|
|
2538
|
-
i(
|
|
2537
|
+
const P = O.closest(".exclusion-wrapper") || O;
|
|
2538
|
+
i(P);
|
|
2539
2539
|
});
|
|
2540
2540
|
continue;
|
|
2541
2541
|
}
|
|
2542
2542
|
if (S.type === "variable") {
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2543
|
+
const k = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
|
|
2544
|
+
k && i(k.closest(".exclusion-wrapper") || k), e.current.querySelectorAll(
|
|
2545
2545
|
`[data-node-type="markdown-module"][data-key="${S.key}"]`
|
|
2546
|
-
).forEach((
|
|
2547
|
-
const
|
|
2548
|
-
i(
|
|
2546
|
+
).forEach((P) => {
|
|
2547
|
+
const N = P.closest(".exclusion-wrapper") || P.closest(".rte-markdown-module-container") || P;
|
|
2548
|
+
i(N);
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
},
|
|
2552
|
+
}, D = (x) => {
|
|
2553
2553
|
for (const S of h[x] || [])
|
|
2554
2554
|
if (S.type !== "other") {
|
|
2555
2555
|
if (S.type === "video-url" || S.type === "video-upload") {
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2556
|
+
const k = w(S.key);
|
|
2557
|
+
k && s(k.closest(".exclusion-wrapper") || k);
|
|
2558
2558
|
continue;
|
|
2559
2559
|
}
|
|
2560
2560
|
if (S.type === "upload") {
|
|
@@ -2570,18 +2570,18 @@ function ri(e, t, n, r) {
|
|
|
2570
2570
|
continue;
|
|
2571
2571
|
}
|
|
2572
2572
|
if (S.type === "variable") {
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2573
|
+
const k = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
|
|
2574
|
+
k && s(k.closest(".exclusion-wrapper") || k), e.current.querySelectorAll(
|
|
2575
2575
|
`[data-node-type="markdown-module"][data-key="${S.key}"]`
|
|
2576
|
-
).forEach((
|
|
2577
|
-
const
|
|
2578
|
-
s(
|
|
2576
|
+
).forEach((P) => {
|
|
2577
|
+
const N = P.closest(".exclusion-wrapper") || P.closest(".rte-markdown-module-container") || P;
|
|
2578
|
+
s(N);
|
|
2579
2579
|
});
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
2582
|
};
|
|
2583
2583
|
for (let x = 0; x < h.length; x++)
|
|
2584
|
-
!T || x === v ? _(x) :
|
|
2584
|
+
!T || x === v ? _(x) : D(x);
|
|
2585
2585
|
e.current.querySelectorAll('[data-group="separator"]').forEach((x) => {
|
|
2586
2586
|
x.closest('[data-rte-force-hidden="1"]') || (T ? s(x) : x.style.setProperty("display", "inline-flex", "important"));
|
|
2587
2587
|
});
|
|
@@ -2700,7 +2700,7 @@ function ai(e, t, n, r, a) {
|
|
|
2700
2700
|
T = _;
|
|
2701
2701
|
break;
|
|
2702
2702
|
}
|
|
2703
|
-
return b.filter((_,
|
|
2703
|
+
return b.filter((_, D) => D !== T).map((_) => (_.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
|
|
2704
2704
|
`).trim() || E;
|
|
2705
2705
|
}, s = (h) => h ? !!h.closest('[data-rte-force-hidden="1"]') : !1, o = [];
|
|
2706
2706
|
for (let h = 0; h < t.length; h++) {
|
|
@@ -2892,8 +2892,8 @@ function ai(e, t, n, r, a) {
|
|
|
2892
2892
|
if (v.length === 0)
|
|
2893
2893
|
continue;
|
|
2894
2894
|
for (let w = 0; w < v.length; w++) {
|
|
2895
|
-
const
|
|
2896
|
-
|
|
2895
|
+
const D = v[w].dataset.key;
|
|
2896
|
+
D && n[D] != null && (T += 1);
|
|
2897
2897
|
}
|
|
2898
2898
|
if (T >= b.minCount) {
|
|
2899
2899
|
E = !0;
|
|
@@ -3135,8 +3135,8 @@ const Kc = ({
|
|
|
3135
3135
|
if (!E || !r.current.contains(E))
|
|
3136
3136
|
return;
|
|
3137
3137
|
let b = !1;
|
|
3138
|
-
if (l.forEach((S,
|
|
3139
|
-
(
|
|
3138
|
+
if (l.forEach((S, k) => {
|
|
3139
|
+
(k === E || k.contains(m)) && (b = !0);
|
|
3140
3140
|
}), !b)
|
|
3141
3141
|
return;
|
|
3142
3142
|
const T = E.dataset.multiKey, v = E.dataset.key, w = E.dataset.index;
|
|
@@ -3146,12 +3146,12 @@ const Kc = ({
|
|
|
3146
3146
|
return;
|
|
3147
3147
|
const A = E.innerText.replace(/[\u200B\n]/g, "").trim(), x = /[、,,\s]+/;
|
|
3148
3148
|
if (x.test(A)) {
|
|
3149
|
-
const O = A.split(x).map((
|
|
3149
|
+
const O = A.split(x).map((P) => P.trim()).filter((P) => P.length > 0).slice(0, 9);
|
|
3150
3150
|
if (O.length > 1) {
|
|
3151
|
-
const
|
|
3152
|
-
if (
|
|
3153
|
-
const
|
|
3154
|
-
for (let X = 0; X <
|
|
3151
|
+
const P = e.find((N) => N.type === "multi-variable" && N.key === T);
|
|
3152
|
+
if (P) {
|
|
3153
|
+
const N = i[T] || 1, C = parseInt(w, 10), B = P.maxCount || 9, $ = [];
|
|
3154
|
+
for (let X = 0; X < N; X++) {
|
|
3155
3155
|
const R = `${T}_${X}`, W = r.current.querySelector(
|
|
3156
3156
|
`[data-type="variable"][data-key="${R}"][data-multi-key="${T}"]`
|
|
3157
3157
|
);
|
|
@@ -3227,7 +3227,7 @@ const Kc = ({
|
|
|
3227
3227
|
onImagePreview: w
|
|
3228
3228
|
}) => {
|
|
3229
3229
|
const _ = (...A) => {
|
|
3230
|
-
},
|
|
3230
|
+
}, D = (A) => {
|
|
3231
3231
|
try {
|
|
3232
3232
|
const x = window.getSelection();
|
|
3233
3233
|
if (!x) return _(A, "no selection");
|
|
@@ -3255,7 +3255,7 @@ const Kc = ({
|
|
|
3255
3255
|
return;
|
|
3256
3256
|
t && n?.(!1);
|
|
3257
3257
|
const x = A.target;
|
|
3258
|
-
if (_("click", { tag: x.tagName, cls: x.className }),
|
|
3258
|
+
if (_("click", { tag: x.tagName, cls: x.className }), D("before click"), x.closest('[data-type="datepicker"]'))
|
|
3259
3259
|
return;
|
|
3260
3260
|
if (x.closest(".tag-close-btn")) {
|
|
3261
3261
|
A.preventDefault(), A.stopPropagation();
|
|
@@ -3278,11 +3278,11 @@ const Kc = ({
|
|
|
3278
3278
|
delete W.dataset.rteForceHidden;
|
|
3279
3279
|
}
|
|
3280
3280
|
});
|
|
3281
|
-
},
|
|
3282
|
-
if (
|
|
3281
|
+
}, P = x.closest(".rte-textarea-toggle");
|
|
3282
|
+
if (P) {
|
|
3283
3283
|
A.preventDefault(), A.stopPropagation();
|
|
3284
|
-
const z =
|
|
3285
|
-
|
|
3284
|
+
const z = P.closest(".rte-textarea-wrapper"), X = z?.querySelector('[data-type="textarea"]'), W = !(P.getAttribute("data-expanded") === "true");
|
|
3285
|
+
P.setAttribute("data-expanded", String(W)), P.textContent = W ? "收起" : "展开", z && z.classList.toggle("rte-textarea-expanded", W);
|
|
3286
3286
|
const te = z?.closest(".rte-textarea-required");
|
|
3287
3287
|
if (te ? te.classList.toggle("rte-textarea-overlay", W) : z && z.classList.toggle("rte-textarea-overlay", W), X)
|
|
3288
3288
|
if (W)
|
|
@@ -3295,13 +3295,13 @@ const Kc = ({
|
|
|
3295
3295
|
i.current && (W ? i.current.classList.add("rte-overlay-active") : i.current.classList.remove("rte-overlay-active"));
|
|
3296
3296
|
return;
|
|
3297
3297
|
}
|
|
3298
|
-
const
|
|
3299
|
-
if (
|
|
3298
|
+
const N = x.closest(".rte-richtext-toggle");
|
|
3299
|
+
if (N) {
|
|
3300
3300
|
A.preventDefault(), A.stopPropagation();
|
|
3301
|
-
const z =
|
|
3301
|
+
const z = N.closest(".rte-richtext-wrapper"), X = z?.querySelector('[data-type="richtext"]'), W = !(N.getAttribute("data-expanded") === "true");
|
|
3302
3302
|
((re, ce) => {
|
|
3303
3303
|
re.setAttribute("data-expanded", String(ce)), re.innerHTML = ce ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
|
|
3304
|
-
})(
|
|
3304
|
+
})(N, W);
|
|
3305
3305
|
const oe = z?.closest(".rte-richtext-required");
|
|
3306
3306
|
oe ? oe.classList.toggle("rte-richtext-expanded", W) : z && z.classList.toggle("rte-richtext-expanded", W);
|
|
3307
3307
|
const j = z?.closest(".exclusion-wrapper") || z?.parentElement;
|
|
@@ -3360,12 +3360,12 @@ const Kc = ({
|
|
|
3360
3360
|
const W = window.getSelection();
|
|
3361
3361
|
if (!W) return;
|
|
3362
3362
|
const te = document.createTreeWalker(B, NodeFilter.SHOW_TEXT), oe = te.nextNode() ? te.currentNode : null, j = document.createRange();
|
|
3363
|
-
oe ? (j.setStart(oe, 0), j.collapse(!0)) : (j.selectNodeContents(B), j.collapse(!0)), W.removeAllRanges(), W.addRange(j),
|
|
3363
|
+
oe ? (j.setStart(oe, 0), j.collapse(!0)) : (j.selectNodeContents(B), j.collapse(!0)), W.removeAllRanges(), W.addRange(j), D("after placeCaretLeft()");
|
|
3364
3364
|
} catch {
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
3367
|
setTimeout(() => {
|
|
3368
|
-
window.requestAnimationFrame(R), window.requestAnimationFrame(() =>
|
|
3368
|
+
window.requestAnimationFrame(R), window.requestAnimationFrame(() => D("post-raf (click)"));
|
|
3369
3369
|
}, 0);
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
@@ -3562,18 +3562,18 @@ const Kc = ({
|
|
|
3562
3562
|
const b = E.innerText || "", T = !!E.querySelector("br") || b.includes(`
|
|
3563
3563
|
`), v = E.offsetHeight > 32, _ = b.replace(/\u200B/g, "").trim().length > 0 && (T || v);
|
|
3564
3564
|
E.classList.toggle("rte-variable-multiline", _), E.classList.toggle("rte-variable-force-block", _);
|
|
3565
|
-
const
|
|
3566
|
-
|
|
3565
|
+
const D = E.closest(".rte-inline-group");
|
|
3566
|
+
D && D.classList.toggle("rte-inline-group-force-block", _);
|
|
3567
3567
|
const A = E.closest(".required-upload-group, .required-multi-first");
|
|
3568
3568
|
A && A.classList.toggle("rte-required-group-force-block", _);
|
|
3569
3569
|
const x = E.querySelector(".variable-info-icon");
|
|
3570
3570
|
if (x) {
|
|
3571
3571
|
let S = !1;
|
|
3572
|
-
const
|
|
3572
|
+
const k = document.createTreeWalker(E, NodeFilter.SHOW_TEXT, {
|
|
3573
3573
|
acceptNode: (O) => x.contains(O) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
|
|
3574
3574
|
});
|
|
3575
|
-
for (;
|
|
3576
|
-
if (
|
|
3575
|
+
for (; k.nextNode(); )
|
|
3576
|
+
if (k.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
|
|
3577
3577
|
S = !0;
|
|
3578
3578
|
break;
|
|
3579
3579
|
}
|
|
@@ -3590,51 +3590,51 @@ const Kc = ({
|
|
|
3590
3590
|
`[data-type="variable"][data-key="${x}"][data-multi-key="${m.key}"]`
|
|
3591
3591
|
);
|
|
3592
3592
|
if (S) {
|
|
3593
|
-
const
|
|
3593
|
+
const k = (S.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
3594
3594
|
`).trim();
|
|
3595
|
-
T.push(
|
|
3595
|
+
T.push(k);
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
3598
|
const w = (T[T.length - 1] || "") === "";
|
|
3599
|
-
let _ = !1,
|
|
3599
|
+
let _ = !1, D = -1;
|
|
3600
3600
|
for (let A = 0; A < T.length - 1; A++)
|
|
3601
3601
|
if (T[A] === "") {
|
|
3602
|
-
_ = !0,
|
|
3602
|
+
_ = !0, D = A;
|
|
3603
3603
|
break;
|
|
3604
3604
|
}
|
|
3605
|
-
if (_ &&
|
|
3605
|
+
if (_ && D >= 0) {
|
|
3606
3606
|
const A = window.getSelection();
|
|
3607
3607
|
if (A && A.rangeCount > 0) {
|
|
3608
|
-
const
|
|
3608
|
+
const P = A.getRangeAt(0), N = P.startContainer, C = N.nodeType === Node.ELEMENT_NODE ? N.closest('[data-type="variable"][data-multi-key]') : N.parentElement?.closest('[data-type="variable"][data-multi-key]');
|
|
3609
3609
|
if (C) {
|
|
3610
3610
|
const B = C.dataset.key;
|
|
3611
3611
|
if (B) {
|
|
3612
3612
|
const $ = document.createRange();
|
|
3613
|
-
$.setStartBefore(C), $.setEnd(
|
|
3613
|
+
$.setStartBefore(C), $.setEnd(P.startContainer, P.startOffset);
|
|
3614
3614
|
const H = $.toString().length;
|
|
3615
3615
|
p.current = { key: B, offset: H };
|
|
3616
3616
|
}
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
const x = [...T];
|
|
3620
|
-
for (let
|
|
3621
|
-
x[
|
|
3620
|
+
for (let P = D; P < x.length - 1; P++)
|
|
3621
|
+
x[P] = x[P + 1];
|
|
3622
3622
|
x.pop();
|
|
3623
3623
|
const S = {};
|
|
3624
|
-
x.forEach((
|
|
3625
|
-
|
|
3624
|
+
x.forEach((P, N) => {
|
|
3625
|
+
P && (S[`${m.key}_${N}`] = P);
|
|
3626
3626
|
});
|
|
3627
|
-
const
|
|
3628
|
-
t.current.querySelectorAll('[data-type="variable"]').forEach((
|
|
3629
|
-
const
|
|
3630
|
-
if (
|
|
3631
|
-
const B = (
|
|
3627
|
+
const k = Math.max(w ? x.length : x.length + 1, 1);
|
|
3628
|
+
t.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
|
|
3629
|
+
const N = P.dataset.key, C = P.dataset.multiKey;
|
|
3630
|
+
if (N && C !== m.key) {
|
|
3631
|
+
const B = (P.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
3632
3632
|
`).trim();
|
|
3633
|
-
B && (S[
|
|
3633
|
+
B && (S[N] = B);
|
|
3634
3634
|
}
|
|
3635
|
-
}), t.current.__tempVariableValues = S, g((
|
|
3636
|
-
...
|
|
3637
|
-
[m.key]:
|
|
3635
|
+
}), t.current.__tempVariableValues = S, g((P) => ({
|
|
3636
|
+
...P,
|
|
3637
|
+
[m.key]: k
|
|
3638
3638
|
}));
|
|
3639
3639
|
return;
|
|
3640
3640
|
}
|
|
@@ -3646,19 +3646,19 @@ const Kc = ({
|
|
|
3646
3646
|
`).trim().length > 0 && b < E) {
|
|
3647
3647
|
const O = window.getSelection();
|
|
3648
3648
|
if (O && O.rangeCount > 0) {
|
|
3649
|
-
const
|
|
3649
|
+
const P = O.getRangeAt(0), N = P.startContainer, C = N.nodeType === Node.ELEMENT_NODE ? N.closest('[data-type="variable"][data-multi-key]') : N.parentElement?.closest('[data-type="variable"][data-multi-key]');
|
|
3650
3650
|
if (C) {
|
|
3651
3651
|
const B = C.dataset.key;
|
|
3652
3652
|
if (B) {
|
|
3653
3653
|
const $ = document.createRange();
|
|
3654
|
-
$.setStartBefore(C), $.setEnd(
|
|
3654
|
+
$.setStartBefore(C), $.setEnd(P.startContainer, P.startOffset);
|
|
3655
3655
|
const H = $.toString().length;
|
|
3656
3656
|
p.current = { key: B, offset: H };
|
|
3657
3657
|
}
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
|
-
g((
|
|
3661
|
-
...
|
|
3660
|
+
g((P) => ({
|
|
3661
|
+
...P,
|
|
3662
3662
|
[m.key]: b + 1
|
|
3663
3663
|
}));
|
|
3664
3664
|
}
|
|
@@ -4026,11 +4026,11 @@ const Kc = ({
|
|
|
4026
4026
|
"xml"
|
|
4027
4027
|
], x = [];
|
|
4028
4028
|
let S = !1;
|
|
4029
|
-
for (const
|
|
4030
|
-
const O = (
|
|
4031
|
-
A.includes(O) ? x.push(
|
|
4029
|
+
for (const k of m) {
|
|
4030
|
+
const O = (k.name || "").split(".").pop()?.toLowerCase() || "";
|
|
4031
|
+
A.includes(O) ? x.push(k) : S = !0;
|
|
4032
4032
|
}
|
|
4033
|
-
S && p?.(), x.length > 0 && g((
|
|
4033
|
+
S && p?.(), x.length > 0 && g((k) => [...x, ...k]);
|
|
4034
4034
|
return;
|
|
4035
4035
|
}
|
|
4036
4036
|
const E = y.target;
|
|
@@ -4050,11 +4050,11 @@ const Kc = ({
|
|
|
4050
4050
|
if (A.nodeType === Node.ELEMENT_NODE ? x = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (x = A.parentElement.closest('[data-type="variable"]')), x) {
|
|
4051
4051
|
const S = x.dataset.multiKey;
|
|
4052
4052
|
if (S) {
|
|
4053
|
-
const
|
|
4054
|
-
if (
|
|
4053
|
+
const P = /[、,,\s\n\r\t]+/, N = T.split(P).map((C) => C.trim()).filter((C) => C.length > 0);
|
|
4054
|
+
if (N.length > 1) {
|
|
4055
4055
|
const C = parseInt(x.dataset.index || "0", 10), B = t.find(
|
|
4056
4056
|
(te) => te.type === "multi-variable" && te.key === S
|
|
4057
|
-
)?.maxCount || 9, $ = n[S] || 1, H = Math.min(C +
|
|
4057
|
+
)?.maxCount || 9, $ = n[S] || 1, H = Math.min(C + N.length, B);
|
|
4058
4058
|
H > $ && r((W) => ({
|
|
4059
4059
|
...W,
|
|
4060
4060
|
[S]: H
|
|
@@ -4072,7 +4072,7 @@ const Kc = ({
|
|
|
4072
4072
|
q.splice(
|
|
4073
4073
|
C,
|
|
4074
4074
|
1,
|
|
4075
|
-
...
|
|
4075
|
+
...N.slice(0, B - C)
|
|
4076
4076
|
);
|
|
4077
4077
|
const I = q.slice(0, B);
|
|
4078
4078
|
I.length > 0 && I[I.length - 1] !== "" && I.length < B && I.push("");
|
|
@@ -4094,9 +4094,9 @@ const Kc = ({
|
|
|
4094
4094
|
return;
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
|
-
const
|
|
4098
|
-
if (!(
|
|
4099
|
-
const
|
|
4097
|
+
const k = x.getAttribute("data-node-type") || "";
|
|
4098
|
+
if (!(k === "markdown" || k === "report-url" || k === "markdown-name")) {
|
|
4099
|
+
const P = (() => {
|
|
4100
4100
|
const C = x.getAttribute("data-node-type") || "";
|
|
4101
4101
|
if (C === "report-url" || C === "markdown" || C === "markdown-name") return !1;
|
|
4102
4102
|
const B = x.dataset.multiKey;
|
|
@@ -4106,17 +4106,17 @@ const Kc = ({
|
|
|
4106
4106
|
)?.allowNewline !== !1;
|
|
4107
4107
|
const $ = x.dataset.key;
|
|
4108
4108
|
return t.find((q) => q.type === "variable" && q.key === $)?.allowNewline !== !1;
|
|
4109
|
-
})(),
|
|
4110
|
-
if (
|
|
4111
|
-
const C =
|
|
4109
|
+
})(), N = window.getSelection();
|
|
4110
|
+
if (N && N.rangeCount > 0) {
|
|
4111
|
+
const C = N.getRangeAt(0);
|
|
4112
4112
|
C.deleteContents();
|
|
4113
|
-
const B = document.createDocumentFragment(), H = (
|
|
4113
|
+
const B = document.createDocumentFragment(), H = (P ? T : T.replace(/\n+/g, " ")).split(`
|
|
4114
4114
|
`);
|
|
4115
4115
|
for (let I = 0; I < H.length; I++)
|
|
4116
|
-
B.appendChild(document.createTextNode(H[I])),
|
|
4117
|
-
C.insertNode(B),
|
|
4116
|
+
B.appendChild(document.createTextNode(H[I])), P && I < H.length - 1 && B.appendChild(document.createElement("br"));
|
|
4117
|
+
C.insertNode(B), N.removeAllRanges();
|
|
4118
4118
|
const q = document.createRange();
|
|
4119
|
-
q.selectNodeContents(x), q.collapse(!1),
|
|
4119
|
+
q.selectNodeContents(x), q.collapse(!1), N.addRange(q);
|
|
4120
4120
|
}
|
|
4121
4121
|
i();
|
|
4122
4122
|
return;
|
|
@@ -4125,28 +4125,28 @@ const Kc = ({
|
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
4127
|
let w = !1, _ = "";
|
|
4128
|
-
const
|
|
4129
|
-
if (
|
|
4130
|
-
const A =
|
|
4128
|
+
const D = window.getSelection();
|
|
4129
|
+
if (D && D.rangeCount > 0) {
|
|
4130
|
+
const A = D.anchorNode;
|
|
4131
4131
|
if (A) {
|
|
4132
4132
|
let x = null;
|
|
4133
4133
|
if (A.nodeType === Node.ELEMENT_NODE ? x = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (x = A.parentElement.closest('[data-type="variable"]')), x) {
|
|
4134
|
-
const S = x.getAttribute("data-node-type") || "",
|
|
4135
|
-
if (S === "markdown" &&
|
|
4136
|
-
w = !0, _ =
|
|
4134
|
+
const S = x.getAttribute("data-node-type") || "", k = x.dataset.key;
|
|
4135
|
+
if (S === "markdown" && k && /20\d{2}-\d{2}-\d{2}/.test(T))
|
|
4136
|
+
w = !0, _ = k, c.current[k] = T, f((O) => ({
|
|
4137
4137
|
...O,
|
|
4138
|
-
[
|
|
4138
|
+
[k]: { ...O[k], status: "loading", error: void 0 }
|
|
4139
4139
|
}));
|
|
4140
|
-
else if (S === "report-url" &&
|
|
4140
|
+
else if (S === "report-url" && k) {
|
|
4141
4141
|
document.execCommand("insertText", !1, T), i(), setTimeout(() => {
|
|
4142
4142
|
const O = x.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4143
|
-
o.current(
|
|
4143
|
+
o.current(k, O);
|
|
4144
4144
|
}, 0);
|
|
4145
4145
|
return;
|
|
4146
|
-
} else if (S === "markdown-name" &&
|
|
4146
|
+
} else if (S === "markdown-name" && k) {
|
|
4147
4147
|
document.execCommand("insertText", !1, T), i(), setTimeout(() => {
|
|
4148
4148
|
const O = x.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4149
|
-
u.current(
|
|
4149
|
+
u.current(k, O);
|
|
4150
4150
|
}, 0);
|
|
4151
4151
|
return;
|
|
4152
4152
|
}
|
|
@@ -4239,7 +4239,7 @@ const nd = ({
|
|
|
4239
4239
|
const T = b, v = T.dataset.type, w = T.dataset.key;
|
|
4240
4240
|
if (v === "variable" && w) {
|
|
4241
4241
|
let _ = "";
|
|
4242
|
-
const
|
|
4242
|
+
const D = document.createTreeWalker(
|
|
4243
4243
|
T,
|
|
4244
4244
|
NodeFilter.SHOW_TEXT,
|
|
4245
4245
|
{
|
|
@@ -4249,8 +4249,8 @@ const nd = ({
|
|
|
4249
4249
|
}
|
|
4250
4250
|
}
|
|
4251
4251
|
);
|
|
4252
|
-
for (;
|
|
4253
|
-
_ +=
|
|
4252
|
+
for (; D.nextNode(); )
|
|
4253
|
+
_ += D.currentNode.textContent || "";
|
|
4254
4254
|
const A = _.replace(/[\u200B\n]/g, "").trim();
|
|
4255
4255
|
if (A) {
|
|
4256
4256
|
const x = T.dataset.multiKey;
|
|
@@ -4279,45 +4279,45 @@ const nd = ({
|
|
|
4279
4279
|
const O = h[S];
|
|
4280
4280
|
Array.isArray(O) ? O.push(A) : h[S] = [String(O), A];
|
|
4281
4281
|
}
|
|
4282
|
-
const
|
|
4283
|
-
h[
|
|
4282
|
+
const k = `${w}__markdown`;
|
|
4283
|
+
h[k] === void 0 && (h[k] = [So(A)]);
|
|
4284
4284
|
}
|
|
4285
4285
|
}
|
|
4286
4286
|
} else if ((v === "select" || v === "searchable-select") && w) {
|
|
4287
4287
|
const _ = (T.getAttribute("data-value") || "").trim();
|
|
4288
4288
|
_ && (h[w] = _, y += _);
|
|
4289
4289
|
} else if (v === "textarea" && w) {
|
|
4290
|
-
const
|
|
4291
|
-
|
|
4290
|
+
const D = (T.value || "").replace(/\u200B/g, "").trim();
|
|
4291
|
+
D && (h[w] = D, y += D);
|
|
4292
4292
|
} else if (v === "richtext" && w) {
|
|
4293
|
-
const _ = T,
|
|
4293
|
+
const _ = T, D = _.dataset.nodeType, A = (_.textContent || "").replace(/\u200B/g, "").trim();
|
|
4294
4294
|
if (A)
|
|
4295
|
-
if (
|
|
4295
|
+
if (D === "report-module" || D === "markdown-module") {
|
|
4296
4296
|
(!h[w] || !Array.isArray(h[w])) && (h[w] = []);
|
|
4297
4297
|
const x = h[w];
|
|
4298
4298
|
x.push(A), x.length > 1 && (y += " "), y += A;
|
|
4299
4299
|
} else
|
|
4300
4300
|
h[w] = A, y += A;
|
|
4301
4301
|
} else if (v === "datepicker" && w) {
|
|
4302
|
-
const
|
|
4303
|
-
if (
|
|
4304
|
-
if (
|
|
4305
|
-
const A =
|
|
4306
|
-
A.length === 2 ? (h[w] = A, y += `[${A[0]}, ${A[1]}]`) : (h[w] =
|
|
4302
|
+
const D = (T.getAttribute("data-value") || "").trim();
|
|
4303
|
+
if (D)
|
|
4304
|
+
if (D.includes(",")) {
|
|
4305
|
+
const A = D.split(",");
|
|
4306
|
+
A.length === 2 ? (h[w] = A, y += `[${A[0]}, ${A[1]}]`) : (h[w] = D, y += D);
|
|
4307
4307
|
} else
|
|
4308
|
-
h[w] =
|
|
4308
|
+
h[w] = D, y += D;
|
|
4309
4309
|
} else if (v === "number-input" && w) {
|
|
4310
|
-
const
|
|
4311
|
-
|
|
4310
|
+
const D = (T.value || "").trim();
|
|
4311
|
+
D && (h[w] = D, y += D);
|
|
4312
4312
|
} else if (v === "upload" && w) {
|
|
4313
4313
|
const _ = T.dataset.batchKey;
|
|
4314
4314
|
if (_) {
|
|
4315
|
-
const
|
|
4316
|
-
if (
|
|
4315
|
+
const D = e.find((A) => A.type === "upload" && A.key === _);
|
|
4316
|
+
if (D && typeof D.maxCount == "number" && typeof D.minCount == "number") {
|
|
4317
4317
|
const A = [];
|
|
4318
|
-
for (let x = 0; x <
|
|
4319
|
-
const S = `${_}-${x}`,
|
|
4320
|
-
|
|
4318
|
+
for (let x = 0; x < D.maxCount; x++) {
|
|
4319
|
+
const S = `${_}-${x}`, k = t[S];
|
|
4320
|
+
k && A.push(k);
|
|
4321
4321
|
}
|
|
4322
4322
|
h[_] || (h[_] = A.length > 0 ? A : null, A.length > 0 && (y += ` [附带${A.length}个文件: ${A.map((x) => typeof x == "string" ? x.split("/").pop() || "file" : x.name).join(", ")}] `));
|
|
4323
4323
|
} else if (h[w] = t[w] ?? null, t[w]) {
|
|
@@ -4325,15 +4325,15 @@ const nd = ({
|
|
|
4325
4325
|
y += ` [附带文件: ${typeof A == "string" ? A.split("/").pop() || "file" : A.name}] `;
|
|
4326
4326
|
}
|
|
4327
4327
|
} else if (h[w] = t[w] ?? null, t[w]) {
|
|
4328
|
-
const
|
|
4329
|
-
y += ` [附带文件: ${typeof
|
|
4328
|
+
const D = t[w];
|
|
4329
|
+
y += ` [附带文件: ${typeof D == "string" ? D.split("/").pop() || "file" : D.name}] `;
|
|
4330
4330
|
}
|
|
4331
4331
|
} else if ((v === "video-url" || v === "video-upload") && w) {
|
|
4332
4332
|
const _ = g?.[w];
|
|
4333
4333
|
if (_?.status === "success" && _.videoUrl) {
|
|
4334
4334
|
h[w] = _.videoUrl, _.file && (h[`${w}__file`] = _.file);
|
|
4335
|
-
const
|
|
4336
|
-
y += ` [附带视频: ${
|
|
4335
|
+
const D = _.fileName || "视频";
|
|
4336
|
+
y += ` [附带视频: ${D}] `;
|
|
4337
4337
|
}
|
|
4338
4338
|
} else {
|
|
4339
4339
|
if (T.classList.contains("tag-close-btn") || T.classList.contains("file-remove-btn") || T.classList.contains("video-remove-btn")) return;
|
|
@@ -4364,8 +4364,8 @@ const nd = ({
|
|
|
4364
4364
|
} else if (Array.isArray(v) && e.find((_) => _.type === "upload" && _.key === T)) {
|
|
4365
4365
|
for (let _ = 0; _ < v.length; _++)
|
|
4366
4366
|
if (typeof v[_] == "string" && v[_].startsWith("http")) {
|
|
4367
|
-
const
|
|
4368
|
-
|
|
4367
|
+
const D = await Xi(v[_]);
|
|
4368
|
+
D && (v[_] = D);
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
4371
|
}
|
|
@@ -4380,8 +4380,8 @@ const nd = ({
|
|
|
4380
4380
|
(x) => x.type === "multi-variable" && x.key === T
|
|
4381
4381
|
), _ = e.some(
|
|
4382
4382
|
(x) => x.type === "report-url" && x.key === T
|
|
4383
|
-
),
|
|
4384
|
-
w || _ ||
|
|
4383
|
+
), D = T.endsWith("__markdown");
|
|
4384
|
+
w || _ || D || T === "url" ? v.forEach((x) => {
|
|
4385
4385
|
x != null && x !== "" && b.append(T, String(x));
|
|
4386
4386
|
}) : v.forEach((x, S) => {
|
|
4387
4387
|
x != null && (x instanceof File ? b.append(`${T}[${S}]`, x) : typeof x == "string" ? b.append(`${T}[${S}]`, x) : b.append(`${T}[${S}]`, String(x)));
|
|
@@ -4898,8 +4898,8 @@ function Td() {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
function yd() {
|
|
4900
4900
|
const e = this;
|
|
4901
|
-
function t(S,
|
|
4902
|
-
return parseFloat(S.getPropertyValue(e.getDirectionLabel(
|
|
4901
|
+
function t(S, k) {
|
|
4902
|
+
return parseFloat(S.getPropertyValue(e.getDirectionLabel(k)) || 0);
|
|
4903
4903
|
}
|
|
4904
4904
|
const n = e.params, {
|
|
4905
4905
|
wrapperEl: r,
|
|
@@ -4920,21 +4920,21 @@ function yd() {
|
|
|
4920
4920
|
typeof T == "string" && T.indexOf("%") >= 0 ? T = parseFloat(T.replace("%", "")) / 100 * b : typeof T == "string" && (T = parseFloat(T)), e.virtualSize = -T - y - h, l.forEach((S) => {
|
|
4921
4921
|
i ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
|
|
4922
4922
|
}), n.centeredSlides && n.cssMode && (Wt(r, "--swiper-centered-offset-before", ""), Wt(r, "--swiper-centered-offset-after", "")), n.cssMode && (Wt(r, "--swiper-slides-offset-before", `${y}px`), Wt(r, "--swiper-slides-offset-after", `${h}px`));
|
|
4923
|
-
const
|
|
4924
|
-
|
|
4923
|
+
const D = n.grid && n.grid.rows > 1 && e.grid;
|
|
4924
|
+
D ? e.grid.initSlides(l) : e.grid && e.grid.unsetSlides();
|
|
4925
4925
|
let A;
|
|
4926
4926
|
const x = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((S) => typeof n.breakpoints[S].slidesPerView < "u").length > 0;
|
|
4927
4927
|
for (let S = 0; S < c; S += 1) {
|
|
4928
4928
|
A = 0;
|
|
4929
|
-
const
|
|
4930
|
-
if (!(
|
|
4929
|
+
const k = l[S];
|
|
4930
|
+
if (!(k && (D && e.grid.updateSlide(S, k, l), wt(k, "display") === "none"))) {
|
|
4931
4931
|
if (o && n.slidesPerView === "auto")
|
|
4932
|
-
n.virtual.slidesPerViewAutoSlideSize && (A = n.virtual.slidesPerViewAutoSlideSize), A &&
|
|
4932
|
+
n.virtual.slidesPerViewAutoSlideSize && (A = n.virtual.slidesPerViewAutoSlideSize), A && k && (n.roundLengths && (A = Math.floor(A)), k.style[e.getDirectionLabel("width")] = `${A}px`);
|
|
4933
4933
|
else if (n.slidesPerView === "auto") {
|
|
4934
|
-
x && (
|
|
4935
|
-
const O = getComputedStyle(
|
|
4936
|
-
if (
|
|
4937
|
-
A = e.isHorizontal() ? Pa(
|
|
4934
|
+
x && (k.style[e.getDirectionLabel("width")] = "");
|
|
4935
|
+
const O = getComputedStyle(k), P = k.style.transform, N = k.style.webkitTransform;
|
|
4936
|
+
if (P && (k.style.transform = "none"), N && (k.style.webkitTransform = "none"), n.roundLengths)
|
|
4937
|
+
A = e.isHorizontal() ? Pa(k, "width") : Pa(k, "height");
|
|
4938
4938
|
else {
|
|
4939
4939
|
const C = t(O, "width"), B = t(O, "padding-left"), $ = t(O, "padding-right"), H = t(O, "margin-left"), q = t(O, "margin-right"), I = O.getPropertyValue("box-sizing");
|
|
4940
4940
|
if (I && I === "border-box")
|
|
@@ -4943,51 +4943,51 @@ function yd() {
|
|
|
4943
4943
|
const {
|
|
4944
4944
|
clientWidth: z,
|
|
4945
4945
|
offsetWidth: X
|
|
4946
|
-
} =
|
|
4946
|
+
} = k;
|
|
4947
4947
|
A = C + B + $ + H + q + (X - z);
|
|
4948
4948
|
}
|
|
4949
4949
|
}
|
|
4950
|
-
|
|
4950
|
+
P && (k.style.transform = P), N && (k.style.webkitTransform = N), n.roundLengths && (A = Math.floor(A));
|
|
4951
4951
|
} else
|
|
4952
|
-
A = (b - (n.slidesPerView - 1) * T) / n.slidesPerView, n.roundLengths && (A = Math.floor(A)),
|
|
4953
|
-
|
|
4952
|
+
A = (b - (n.slidesPerView - 1) * T) / n.slidesPerView, n.roundLengths && (A = Math.floor(A)), k && (k.style[e.getDirectionLabel("width")] = `${A}px`);
|
|
4953
|
+
k && (k.swiperSlideSize = A), p.push(A), n.centeredSlides ? (v = v + A / 2 + w / 2 + T, w === 0 && S !== 0 && (v = v - b / 2 - T), S === 0 && (v = v - b / 2 - T), Math.abs(v) < 1 / 1e3 && (v = 0), n.roundLengths && (v = Math.floor(v)), _ % n.slidesPerGroup === 0 && f.push(v), g.push(v)) : (n.roundLengths && (v = Math.floor(v)), (_ - Math.min(e.params.slidesPerGroupSkip, _)) % e.params.slidesPerGroup === 0 && f.push(v), g.push(v), v = v + A + T), e.virtualSize += A + T, w = A, _ += 1;
|
|
4954
4954
|
}
|
|
4955
4955
|
}
|
|
4956
|
-
if (e.virtualSize = Math.max(e.virtualSize, b) + h, i && s && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + T}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + T}px`),
|
|
4957
|
-
const S = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0,
|
|
4956
|
+
if (e.virtualSize = Math.max(e.virtualSize, b) + h, i && s && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + T}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + T}px`), D && e.grid.updateWrapperSize(A, f), !n.centeredSlides) {
|
|
4957
|
+
const S = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, k = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || S);
|
|
4958
4958
|
let O = f.length;
|
|
4959
|
-
if (
|
|
4960
|
-
let
|
|
4959
|
+
if (k) {
|
|
4960
|
+
let N;
|
|
4961
4961
|
if (n.slidesPerView === "auto") {
|
|
4962
|
-
|
|
4962
|
+
N = 1;
|
|
4963
4963
|
let C = 0;
|
|
4964
4964
|
for (let B = p.length - 1; B >= 0 && (C += p[B] + (B < p.length - 1 ? T : 0), C <= b); B -= 1)
|
|
4965
|
-
|
|
4965
|
+
N = p.length - B;
|
|
4966
4966
|
} else
|
|
4967
|
-
|
|
4968
|
-
O = Math.max(c -
|
|
4967
|
+
N = Math.floor(n.slidesPerView);
|
|
4968
|
+
O = Math.max(c - N, 0);
|
|
4969
4969
|
}
|
|
4970
|
-
const
|
|
4971
|
-
for (let
|
|
4972
|
-
let C = f[
|
|
4973
|
-
n.roundLengths && (C = Math.floor(C)),
|
|
4970
|
+
const P = [];
|
|
4971
|
+
for (let N = 0; N < f.length; N += 1) {
|
|
4972
|
+
let C = f[N];
|
|
4973
|
+
n.roundLengths && (C = Math.floor(C)), k ? N <= O && P.push(C) : f[N] <= e.virtualSize - b && P.push(C);
|
|
4974
4974
|
}
|
|
4975
|
-
f =
|
|
4975
|
+
f = P, Math.floor(e.virtualSize - b) - Math.floor(f[f.length - 1]) > 1 && (k || f.push(e.virtualSize - b));
|
|
4976
4976
|
}
|
|
4977
4977
|
if (o && n.loop) {
|
|
4978
4978
|
const S = p[0] + T;
|
|
4979
4979
|
if (n.slidesPerGroup > 1) {
|
|
4980
|
-
const
|
|
4981
|
-
for (let
|
|
4980
|
+
const k = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / n.slidesPerGroup), O = S * n.slidesPerGroup;
|
|
4981
|
+
for (let P = 0; P < k; P += 1)
|
|
4982
4982
|
f.push(f[f.length - 1] + O);
|
|
4983
4983
|
}
|
|
4984
|
-
for (let
|
|
4984
|
+
for (let k = 0; k < e.virtual.slidesBefore + e.virtual.slidesAfter; k += 1)
|
|
4985
4985
|
n.slidesPerGroup === 1 && f.push(f[f.length - 1] + S), g.push(g[g.length - 1] + S), e.virtualSize += S;
|
|
4986
4986
|
}
|
|
4987
4987
|
if (f.length === 0 && (f = [0]), T !== 0) {
|
|
4988
4988
|
const S = e.isHorizontal() && i ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
4989
|
-
l.filter((
|
|
4990
|
-
|
|
4989
|
+
l.filter((k, O) => !n.cssMode || n.loop ? !0 : O !== l.length - 1).forEach((k) => {
|
|
4990
|
+
k.style[S] = `${T}px`;
|
|
4991
4991
|
});
|
|
4992
4992
|
}
|
|
4993
4993
|
if (n.centeredSlides && n.centeredSlidesBounds) {
|
|
@@ -4995,21 +4995,21 @@ function yd() {
|
|
|
4995
4995
|
p.forEach((O) => {
|
|
4996
4996
|
S += O + (T || 0);
|
|
4997
4997
|
}), S -= T;
|
|
4998
|
-
const
|
|
4999
|
-
f = f.map((O) => O <= 0 ? -y : O >
|
|
4998
|
+
const k = S > b ? S - b : 0;
|
|
4999
|
+
f = f.map((O) => O <= 0 ? -y : O > k ? k + h : O);
|
|
5000
5000
|
}
|
|
5001
5001
|
if (n.centerInsufficientSlides) {
|
|
5002
5002
|
let S = 0;
|
|
5003
5003
|
p.forEach((O) => {
|
|
5004
5004
|
S += O + (T || 0);
|
|
5005
5005
|
}), S -= T;
|
|
5006
|
-
const
|
|
5007
|
-
if (S +
|
|
5008
|
-
const O = (b - S -
|
|
5009
|
-
f.forEach((
|
|
5010
|
-
f[
|
|
5011
|
-
}), g.forEach((
|
|
5012
|
-
g[
|
|
5006
|
+
const k = (y || 0) + (h || 0);
|
|
5007
|
+
if (S + k < b) {
|
|
5008
|
+
const O = (b - S - k) / 2;
|
|
5009
|
+
f.forEach((P, N) => {
|
|
5010
|
+
f[N] = P - O;
|
|
5011
|
+
}), g.forEach((P, N) => {
|
|
5012
|
+
g[N] = P + O;
|
|
5013
5013
|
});
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
@@ -5020,12 +5020,12 @@ function yd() {
|
|
|
5020
5020
|
slidesSizesGrid: p
|
|
5021
5021
|
}), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
|
|
5022
5022
|
Wt(r, "--swiper-centered-offset-before", `${-f[0]}px`), Wt(r, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
|
|
5023
|
-
const S = -e.snapGrid[0],
|
|
5024
|
-
e.snapGrid = e.snapGrid.map((O) => O + S), e.slidesGrid = e.slidesGrid.map((O) => O +
|
|
5023
|
+
const S = -e.snapGrid[0], k = -e.slidesGrid[0];
|
|
5024
|
+
e.snapGrid = e.snapGrid.map((O) => O + S), e.slidesGrid = e.slidesGrid.map((O) => O + k);
|
|
5025
5025
|
}
|
|
5026
5026
|
if (c !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), g.length !== E && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !o && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
|
|
5027
|
-
const S = `${n.containerModifierClass}backface-hidden`,
|
|
5028
|
-
c <= n.maxBackfaceHiddenSlides ?
|
|
5027
|
+
const S = `${n.containerModifierClass}backface-hidden`, k = e.el.classList.contains(S);
|
|
5028
|
+
c <= n.maxBackfaceHiddenSlides ? k || e.el.classList.add(S) : k && e.el.classList.remove(S);
|
|
5029
5029
|
}
|
|
5030
5030
|
}
|
|
5031
5031
|
function xd(e) {
|
|
@@ -5406,9 +5406,9 @@ function $d(e = 0, t, n = !0, r, a) {
|
|
|
5406
5406
|
m >= u.length && (m = u.length - 1);
|
|
5407
5407
|
const E = -u[m];
|
|
5408
5408
|
if (o.normalizeSlideIndex)
|
|
5409
|
-
for (let
|
|
5410
|
-
const A = -Math.floor(E * 100), x = Math.floor(l[
|
|
5411
|
-
typeof l[
|
|
5409
|
+
for (let D = 0; D < l.length; D += 1) {
|
|
5410
|
+
const A = -Math.floor(E * 100), x = Math.floor(l[D] * 100), S = Math.floor(l[D + 1] * 100);
|
|
5411
|
+
typeof l[D + 1] < "u" ? A >= x && A < S - (S - x) / 2 ? s = D : A >= x && A < S && (s = D + 1) : A >= x && (s = D);
|
|
5412
5412
|
}
|
|
5413
5413
|
if (i.initialized && s !== f && (!i.allowSlideNext && (g ? E > i.translate && E > i.minTranslate() : E < i.translate && E < i.minTranslate()) || !i.allowSlidePrev && E > i.translate && E > i.maxTranslate() && (f || 0) !== s))
|
|
5414
5414
|
return !1;
|
|
@@ -5419,11 +5419,11 @@ function $d(e = 0, t, n = !0, r, a) {
|
|
|
5419
5419
|
if (!(T && a) && (g && -E === i.translate || !g && E === i.translate))
|
|
5420
5420
|
return i.updateActiveIndex(s), o.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), o.effect !== "slide" && i.setTranslate(E), b !== "reset" && (i.transitionStart(n, b), i.transitionEnd(n, b)), !1;
|
|
5421
5421
|
if (o.cssMode) {
|
|
5422
|
-
const
|
|
5422
|
+
const D = i.isHorizontal(), A = g ? E : -E;
|
|
5423
5423
|
if (t === 0)
|
|
5424
5424
|
T && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), T && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
5425
|
-
p[
|
|
5426
|
-
})) : p[
|
|
5425
|
+
p[D ? "scrollLeft" : "scrollTop"] = A;
|
|
5426
|
+
})) : p[D ? "scrollLeft" : "scrollTop"] = A, T && requestAnimationFrame(() => {
|
|
5427
5427
|
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
5428
5428
|
});
|
|
5429
5429
|
else {
|
|
@@ -5431,10 +5431,10 @@ function $d(e = 0, t, n = !0, r, a) {
|
|
|
5431
5431
|
return No({
|
|
5432
5432
|
swiper: i,
|
|
5433
5433
|
targetPosition: A,
|
|
5434
|
-
side:
|
|
5434
|
+
side: D ? "left" : "top"
|
|
5435
5435
|
}), !0;
|
|
5436
5436
|
p.scrollTo({
|
|
5437
|
-
[
|
|
5437
|
+
[D ? "left" : "top"]: A,
|
|
5438
5438
|
behavior: "smooth"
|
|
5439
5439
|
});
|
|
5440
5440
|
}
|
|
@@ -5679,22 +5679,22 @@ function Xd({
|
|
|
5679
5679
|
w % v !== 0 && (w += v - w % v), w += p.loopAdditionalSlides, u.loopedSlides = w;
|
|
5680
5680
|
const _ = u.grid && p.grid && p.grid.rows > 1;
|
|
5681
5681
|
l.length < T + w || u.params.effect === "cards" && l.length < T + w * 2 ? yr("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : _ && p.grid.fill === "row" && yr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
5682
|
-
const
|
|
5683
|
-
let
|
|
5684
|
-
typeof a > "u" ? a = u.getSlideIndex(l.find((H) => H.classList.contains(p.slideActiveClass))) :
|
|
5685
|
-
const O = n === "next" || !n,
|
|
5686
|
-
let
|
|
5682
|
+
const D = [], A = [], x = _ ? Math.ceil(l.length / p.grid.rows) : l.length, S = i && x - E < T && !b;
|
|
5683
|
+
let k = S ? E : u.activeIndex;
|
|
5684
|
+
typeof a > "u" ? a = u.getSlideIndex(l.find((H) => H.classList.contains(p.slideActiveClass))) : k = a;
|
|
5685
|
+
const O = n === "next" || !n, P = n === "prev" || !n;
|
|
5686
|
+
let N = 0, C = 0;
|
|
5687
5687
|
const $ = (_ ? l[a].column : a) + (b && typeof r > "u" ? -T / 2 + 0.5 : 0);
|
|
5688
5688
|
if ($ < w) {
|
|
5689
|
-
|
|
5689
|
+
N = Math.max(w - $, v);
|
|
5690
5690
|
for (let H = 0; H < w - $; H += 1) {
|
|
5691
5691
|
const q = H - Math.floor(H / x) * x;
|
|
5692
5692
|
if (_) {
|
|
5693
5693
|
const I = x - q - 1;
|
|
5694
5694
|
for (let z = l.length - 1; z >= 0; z -= 1)
|
|
5695
|
-
l[z].column === I &&
|
|
5695
|
+
l[z].column === I && D.push(z);
|
|
5696
5696
|
} else
|
|
5697
|
-
|
|
5697
|
+
D.push(x - q - 1);
|
|
5698
5698
|
}
|
|
5699
5699
|
} else if ($ + T > x - w) {
|
|
5700
5700
|
C = Math.max($ - (x - w * 2), v), S && (C = Math.max(C, T - x + E + 1));
|
|
@@ -5707,25 +5707,25 @@ function Xd({
|
|
|
5707
5707
|
}
|
|
5708
5708
|
if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
5709
5709
|
u.__preventObserver__ = !1;
|
|
5710
|
-
}), u.params.effect === "cards" && l.length < T + w * 2 && (A.includes(a) && A.splice(A.indexOf(a), 1),
|
|
5710
|
+
}), u.params.effect === "cards" && l.length < T + w * 2 && (A.includes(a) && A.splice(A.indexOf(a), 1), D.includes(a) && D.splice(D.indexOf(a), 1)), P && D.forEach((H) => {
|
|
5711
5711
|
l[H].swiperLoopMoveDOM = !0, g.prepend(l[H]), l[H].swiperLoopMoveDOM = !1;
|
|
5712
5712
|
}), O && A.forEach((H) => {
|
|
5713
5713
|
l[H].swiperLoopMoveDOM = !0, g.append(l[H]), l[H].swiperLoopMoveDOM = !1;
|
|
5714
|
-
}), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : _ && (
|
|
5714
|
+
}), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : _ && (D.length > 0 && P || A.length > 0 && O) && u.slides.forEach((H, q) => {
|
|
5715
5715
|
u.grid.updateSlide(q, H, u.slides);
|
|
5716
5716
|
}), p.watchSlidesProgress && u.updateSlidesOffset(), t) {
|
|
5717
|
-
if (
|
|
5717
|
+
if (D.length > 0 && P) {
|
|
5718
5718
|
if (typeof e > "u") {
|
|
5719
|
-
const H = u.slidesGrid[
|
|
5720
|
-
o ? u.setTranslate(u.translate - I) : (u.slideTo(
|
|
5719
|
+
const H = u.slidesGrid[k], I = u.slidesGrid[k + N] - H;
|
|
5720
|
+
o ? u.setTranslate(u.translate - I) : (u.slideTo(k + Math.ceil(N), 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
|
|
5721
5721
|
} else if (r) {
|
|
5722
|
-
const H = _ ?
|
|
5722
|
+
const H = _ ? D.length / p.grid.rows : D.length;
|
|
5723
5723
|
u.slideTo(u.activeIndex + H, 0, !1, !0), u.touchEventsData.currentTranslate = u.translate;
|
|
5724
5724
|
}
|
|
5725
5725
|
} else if (A.length > 0 && O)
|
|
5726
5726
|
if (typeof e > "u") {
|
|
5727
|
-
const H = u.slidesGrid[
|
|
5728
|
-
o ? u.setTranslate(u.translate - I) : (u.slideTo(
|
|
5727
|
+
const H = u.slidesGrid[k], I = u.slidesGrid[k - C] - H;
|
|
5728
|
+
o ? u.setTranslate(u.translate - I) : (u.slideTo(k - C, 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
|
|
5729
5729
|
} else {
|
|
5730
5730
|
const H = _ ? A.length / p.grid.rows : A.length;
|
|
5731
5731
|
u.slideTo(u.activeIndex - H, 0, !1, !0);
|
|
@@ -6149,8 +6149,8 @@ function pf() {
|
|
|
6149
6149
|
const f = (l in i ? i[l] : void 0) || e.originalParams, g = es(e, r), p = es(e, f), y = e.params.grabCursor, h = f.grabCursor, m = r.enabled;
|
|
6150
6150
|
g && !p ? (a.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !g && p && (a.classList.add(`${r.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && r.grid.fill === "column") && a.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), y && !h ? e.unsetGrabCursor() : !y && h && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((_) => {
|
|
6151
6151
|
if (typeof f[_] > "u") return;
|
|
6152
|
-
const
|
|
6153
|
-
|
|
6152
|
+
const D = r[_] && r[_].enabled, A = f[_] && f[_].enabled;
|
|
6153
|
+
D && !A && e[_].disable(), !D && A && e[_].enable();
|
|
6154
6154
|
});
|
|
6155
6155
|
const E = f.direction && f.direction !== r.direction, b = r.loop && (f.slidesPerView !== r.slidesPerView || E), T = r.loop;
|
|
6156
6156
|
E && n && e.changeDirection(), Qe(e.params, f);
|
|
@@ -6883,15 +6883,15 @@ function Sf({
|
|
|
6883
6883
|
} = e;
|
|
6884
6884
|
let h, m, E, b, T, v, w, _;
|
|
6885
6885
|
r.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (h = !0), r.includes("controller") && n.controller && n.controller.control && l.controller && !l.controller.control && (m = !0), r.includes("pagination") && n.pagination && (n.pagination.el || o) && (l.pagination || l.pagination === !1) && c && !c.el && (E = !0), r.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || s) && (l.scrollbar || l.scrollbar === !1) && g && !g.el && (b = !0), r.includes("navigation") && n.navigation && (n.navigation.prevEl || i) && (n.navigation.nextEl || a) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (T = !0);
|
|
6886
|
-
const
|
|
6886
|
+
const D = (A) => {
|
|
6887
6887
|
e[A] && (e[A].destroy(), A === "navigation" ? (e.isElement && (e[A].prevEl.remove(), e[A].nextEl.remove()), l[A].prevEl = void 0, l[A].nextEl = void 0, e[A].prevEl = void 0, e[A].nextEl = void 0) : (e.isElement && e[A].el.remove(), l[A].el = void 0, e[A].el = void 0));
|
|
6888
6888
|
};
|
|
6889
6889
|
r.includes("loop") && e.isElement && (l.loop && !n.loop ? v = !0 : !l.loop && n.loop ? w = !0 : _ = !0), u.forEach((A) => {
|
|
6890
6890
|
if ($t(l[A]) && $t(n[A]))
|
|
6891
|
-
Object.assign(l[A], n[A]), (A === "navigation" || A === "pagination" || A === "scrollbar") && "enabled" in n[A] && !n[A].enabled &&
|
|
6891
|
+
Object.assign(l[A], n[A]), (A === "navigation" || A === "pagination" || A === "scrollbar") && "enabled" in n[A] && !n[A].enabled && D(A);
|
|
6892
6892
|
else {
|
|
6893
6893
|
const x = n[A];
|
|
6894
|
-
(x === !0 || x === !1) && (A === "navigation" || A === "pagination" || A === "scrollbar") ? x === !1 &&
|
|
6894
|
+
(x === !0 || x === !1) && (A === "navigation" || A === "pagination" || A === "scrollbar") ? x === !1 && D(A) : l[A] = n[A];
|
|
6895
6895
|
}
|
|
6896
6896
|
}), u.includes("controller") && !m && e.controller && e.controller.control && l.controller && l.controller.control && (e.controller.control = l.controller.control), r.includes("children") && t && p && l.virtual.enabled ? (p.slides = t, p.update(!0)) : r.includes("virtual") && p && l.virtual.enabled && (t && (p.slides = t), p.update(!0)), r.includes("children") && t && l.loop && (_ = !0), h && y.init() && y.update(!0), m && (e.controller.control = l.controller.control), E && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (l.pagination.el = o), c.init(), c.render(), c.update()), b && (e.isElement && (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-scrollbar"), s.part.add("scrollbar"), e.el.appendChild(s)), s && (l.scrollbar.el = s), g.init(), g.updateSize(), g.setTranslate()), T && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), Dn(a, e.navigation.arrowSvg), a.part.add("button-next"), e.el.appendChild(a)), (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-prev"), Dn(i, e.navigation.arrowSvg), i.part.add("button-prev"), e.el.appendChild(i))), a && (l.navigation.nextEl = a), i && (l.navigation.prevEl = i), f.init(), f.update()), r.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), r.includes("direction") && e.changeDirection(n.direction, !1), (v || _) && e.loopDestroy(), (w || _) && e.loopCreate(), e.update();
|
|
6897
6897
|
}
|
|
@@ -7022,38 +7022,38 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
|
|
|
7022
7022
|
} = {}, s) => {
|
|
7023
7023
|
let o = !1;
|
|
7024
7024
|
const [u, l] = ae("swiper"), [c, f] = ae(null), [g, p] = ae(!1), y = Z(!1), h = Z(null), m = Z(null), E = Z(null), b = Z(null), T = Z(null), v = Z(null), w = Z(null), _ = Z(null), {
|
|
7025
|
-
params:
|
|
7025
|
+
params: D,
|
|
7026
7026
|
passedParams: A,
|
|
7027
7027
|
rest: x,
|
|
7028
7028
|
events: S
|
|
7029
7029
|
} = _f(i), {
|
|
7030
|
-
slides:
|
|
7030
|
+
slides: k,
|
|
7031
7031
|
slots: O
|
|
7032
|
-
} = kf(r),
|
|
7032
|
+
} = kf(r), P = () => {
|
|
7033
7033
|
p(!g);
|
|
7034
7034
|
};
|
|
7035
|
-
Object.assign(
|
|
7035
|
+
Object.assign(D.on, {
|
|
7036
7036
|
_containerClasses(H, q) {
|
|
7037
7037
|
l(q);
|
|
7038
7038
|
}
|
|
7039
7039
|
});
|
|
7040
|
-
const
|
|
7041
|
-
Object.assign(
|
|
7040
|
+
const N = () => {
|
|
7041
|
+
Object.assign(D.on, S), o = !0;
|
|
7042
7042
|
const H = {
|
|
7043
|
-
...
|
|
7043
|
+
...D
|
|
7044
7044
|
};
|
|
7045
7045
|
if (delete H.wrapperClass, m.current = new si(H), m.current.virtual && m.current.params.virtual.enabled) {
|
|
7046
|
-
m.current.virtual.slides =
|
|
7046
|
+
m.current.virtual.slides = k;
|
|
7047
7047
|
const q = {
|
|
7048
7048
|
cache: !1,
|
|
7049
|
-
slides:
|
|
7049
|
+
slides: k,
|
|
7050
7050
|
renderExternal: f,
|
|
7051
7051
|
renderExternalUpdate: !1
|
|
7052
7052
|
};
|
|
7053
7053
|
Jt(m.current.params.virtual, q), Jt(m.current.originalParams.virtual, q);
|
|
7054
7054
|
}
|
|
7055
7055
|
};
|
|
7056
|
-
h.current ||
|
|
7056
|
+
h.current || N(), m.current && m.current.on("_beforeBreakpoint", P);
|
|
7057
7057
|
const C = () => {
|
|
7058
7058
|
o || !S || !m.current || Object.keys(S).forEach((H) => {
|
|
7059
7059
|
m.current.on(H, S[H]);
|
|
@@ -7064,27 +7064,27 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
|
|
|
7064
7064
|
});
|
|
7065
7065
|
};
|
|
7066
7066
|
se(() => () => {
|
|
7067
|
-
m.current && m.current.off("_beforeBreakpoint",
|
|
7067
|
+
m.current && m.current.off("_beforeBreakpoint", P);
|
|
7068
7068
|
}), se(() => {
|
|
7069
7069
|
!y.current && m.current && (m.current.emitSlidesClasses(), y.current = !0);
|
|
7070
7070
|
}), Sn(() => {
|
|
7071
7071
|
if (s && (s.current = h.current), !!h.current)
|
|
7072
|
-
return m.current.destroyed &&
|
|
7072
|
+
return m.current.destroyed && N(), vf({
|
|
7073
7073
|
el: h.current,
|
|
7074
7074
|
nextEl: T.current,
|
|
7075
7075
|
prevEl: v.current,
|
|
7076
7076
|
paginationEl: w.current,
|
|
7077
7077
|
scrollbarEl: _.current,
|
|
7078
7078
|
swiper: m.current
|
|
7079
|
-
},
|
|
7079
|
+
}, D), a && !m.current.destroyed && a(m.current), () => {
|
|
7080
7080
|
m.current && !m.current.destroyed && m.current.destroy(!0, !1);
|
|
7081
7081
|
};
|
|
7082
7082
|
}, []), Sn(() => {
|
|
7083
7083
|
C();
|
|
7084
|
-
const H = wf(A, E.current,
|
|
7085
|
-
return E.current = A, b.current =
|
|
7084
|
+
const H = wf(A, E.current, k, b.current, (q) => q.key);
|
|
7085
|
+
return E.current = A, b.current = k, H.length && m.current && !m.current.destroyed && Sf({
|
|
7086
7086
|
swiper: m.current,
|
|
7087
|
-
slides:
|
|
7087
|
+
slides: k,
|
|
7088
7088
|
passedParams: A,
|
|
7089
7089
|
changedParams: H,
|
|
7090
7090
|
nextEl: T.current,
|
|
@@ -7098,7 +7098,7 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
|
|
|
7098
7098
|
Nf(m.current);
|
|
7099
7099
|
}, [c]);
|
|
7100
7100
|
function $() {
|
|
7101
|
-
return
|
|
7101
|
+
return D.virtual ? If(m.current, k, c) : k.map((H, q) => /* @__PURE__ */ _e.cloneElement(H, {
|
|
7102
7102
|
swiper: m.current,
|
|
7103
7103
|
swiperSlideIndex: q
|
|
7104
7104
|
}));
|
|
@@ -7109,17 +7109,17 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
|
|
|
7109
7109
|
}, x), /* @__PURE__ */ _e.createElement(Lf.Provider, {
|
|
7110
7110
|
value: m.current
|
|
7111
7111
|
}, O["container-start"], /* @__PURE__ */ _e.createElement(n, {
|
|
7112
|
-
className: Af(
|
|
7113
|
-
}, O["wrapper-start"], $(), O["wrapper-end"]), Ro(
|
|
7112
|
+
className: Af(D.wrapperClass)
|
|
7113
|
+
}, O["wrapper-start"], $(), O["wrapper-end"]), Ro(D) && /* @__PURE__ */ _e.createElement(_e.Fragment, null, /* @__PURE__ */ _e.createElement("div", {
|
|
7114
7114
|
ref: v,
|
|
7115
7115
|
className: "swiper-button-prev"
|
|
7116
7116
|
}), /* @__PURE__ */ _e.createElement("div", {
|
|
7117
7117
|
ref: T,
|
|
7118
7118
|
className: "swiper-button-next"
|
|
7119
|
-
})), Fo(
|
|
7119
|
+
})), Fo(D) && /* @__PURE__ */ _e.createElement("div", {
|
|
7120
7120
|
ref: _,
|
|
7121
7121
|
className: "swiper-scrollbar"
|
|
7122
|
-
}), Bo(
|
|
7122
|
+
}), Bo(D) && /* @__PURE__ */ _e.createElement("div", {
|
|
7123
7123
|
ref: w,
|
|
7124
7124
|
className: "swiper-pagination"
|
|
7125
7125
|
}), O["container-end"]));
|
|
@@ -7405,35 +7405,35 @@ function Df({
|
|
|
7405
7405
|
let T = e.pagination.el;
|
|
7406
7406
|
T = Be(T);
|
|
7407
7407
|
let v, w;
|
|
7408
|
-
const _ = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length,
|
|
7408
|
+
const _ = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, D = e.params.loop ? Math.ceil(_ / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
7409
7409
|
if (e.params.loop ? (w = e.previousRealIndex || 0, v = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (v = e.snapIndex, w = e.previousSnapIndex) : (w = e.previousIndex || 0, v = e.activeIndex || 0), b.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
7410
7410
|
const A = e.pagination.bullets;
|
|
7411
|
-
let x, S,
|
|
7411
|
+
let x, S, k;
|
|
7412
7412
|
if (b.dynamicBullets && (i = Pa(A[0], e.isHorizontal() ? "width" : "height"), T.forEach((O) => {
|
|
7413
7413
|
O.style[e.isHorizontal() ? "width" : "height"] = `${i * (b.dynamicMainBullets + 4)}px`;
|
|
7414
|
-
}), b.dynamicMainBullets > 1 && w !== void 0 && (s += v - (w || 0), s > b.dynamicMainBullets - 1 ? s = b.dynamicMainBullets - 1 : s < 0 && (s = 0)), x = Math.max(v - s, 0), S = x + (Math.min(A.length, b.dynamicMainBullets) - 1),
|
|
7415
|
-
const
|
|
7416
|
-
O.classList.remove(...
|
|
7414
|
+
}), b.dynamicMainBullets > 1 && w !== void 0 && (s += v - (w || 0), s > b.dynamicMainBullets - 1 ? s = b.dynamicMainBullets - 1 : s < 0 && (s = 0)), x = Math.max(v - s, 0), S = x + (Math.min(A.length, b.dynamicMainBullets) - 1), k = (S + x) / 2), A.forEach((O) => {
|
|
7415
|
+
const P = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((N) => `${b.bulletActiveClass}${N}`)].map((N) => typeof N == "string" && N.includes(" ") ? N.split(" ") : N).flat();
|
|
7416
|
+
O.classList.remove(...P);
|
|
7417
7417
|
}), T.length > 1)
|
|
7418
7418
|
A.forEach((O) => {
|
|
7419
|
-
const
|
|
7420
|
-
|
|
7419
|
+
const P = Cr(O);
|
|
7420
|
+
P === v ? O.classList.add(...b.bulletActiveClass.split(" ")) : e.isElement && O.setAttribute("part", "bullet"), b.dynamicBullets && (P >= x && P <= S && O.classList.add(...`${b.bulletActiveClass}-main`.split(" ")), P === x && u(O, "prev"), P === S && u(O, "next"));
|
|
7421
7421
|
});
|
|
7422
7422
|
else {
|
|
7423
7423
|
const O = A[v];
|
|
7424
|
-
if (O && O.classList.add(...b.bulletActiveClass.split(" ")), e.isElement && A.forEach((
|
|
7425
|
-
|
|
7424
|
+
if (O && O.classList.add(...b.bulletActiveClass.split(" ")), e.isElement && A.forEach((P, N) => {
|
|
7425
|
+
P.setAttribute("part", N === v ? "bullet-active" : "bullet");
|
|
7426
7426
|
}), b.dynamicBullets) {
|
|
7427
|
-
const
|
|
7427
|
+
const P = A[x], N = A[S];
|
|
7428
7428
|
for (let C = x; C <= S; C += 1)
|
|
7429
7429
|
A[C] && A[C].classList.add(...`${b.bulletActiveClass}-main`.split(" "));
|
|
7430
|
-
u(
|
|
7430
|
+
u(P, "prev"), u(N, "next");
|
|
7431
7431
|
}
|
|
7432
7432
|
}
|
|
7433
7433
|
if (b.dynamicBullets) {
|
|
7434
|
-
const O = Math.min(A.length, b.dynamicMainBullets + 4),
|
|
7434
|
+
const O = Math.min(A.length, b.dynamicMainBullets + 4), P = (i * O - i) / 2 - k * i, N = E ? "right" : "left";
|
|
7435
7435
|
A.forEach((C) => {
|
|
7436
|
-
C.style[e.isHorizontal() ?
|
|
7436
|
+
C.style[e.isHorizontal() ? N : "top"] = `${P}px`;
|
|
7437
7437
|
});
|
|
7438
7438
|
}
|
|
7439
7439
|
}
|
|
@@ -7441,17 +7441,17 @@ function Df({
|
|
|
7441
7441
|
if (b.type === "fraction" && (A.querySelectorAll(mn(b.currentClass)).forEach((S) => {
|
|
7442
7442
|
S.textContent = b.formatFractionCurrent(v + 1);
|
|
7443
7443
|
}), A.querySelectorAll(mn(b.totalClass)).forEach((S) => {
|
|
7444
|
-
S.textContent = b.formatFractionTotal(
|
|
7444
|
+
S.textContent = b.formatFractionTotal(D);
|
|
7445
7445
|
})), b.type === "progressbar") {
|
|
7446
7446
|
let S;
|
|
7447
7447
|
b.progressbarOpposite ? S = e.isHorizontal() ? "vertical" : "horizontal" : S = e.isHorizontal() ? "horizontal" : "vertical";
|
|
7448
|
-
const
|
|
7449
|
-
let O = 1,
|
|
7450
|
-
S === "horizontal" ? O =
|
|
7451
|
-
|
|
7448
|
+
const k = (v + 1) / D;
|
|
7449
|
+
let O = 1, P = 1;
|
|
7450
|
+
S === "horizontal" ? O = k : P = k, A.querySelectorAll(mn(b.progressbarFillClass)).forEach((N) => {
|
|
7451
|
+
N.style.transform = `translate3d(0,0,0) scaleX(${O}) scaleY(${P})`, N.style.transitionDuration = `${e.params.speed}ms`;
|
|
7452
7452
|
});
|
|
7453
7453
|
}
|
|
7454
|
-
b.type === "custom" && b.renderCustom ? (Dn(A, b.renderCustom(e, v + 1,
|
|
7454
|
+
b.type === "custom" && b.renderCustom ? (Dn(A, b.renderCustom(e, v + 1, D)), x === 0 && r("paginationRender", A)) : (x === 0 && r("paginationRender", A), r("paginationUpdate", A)), e.params.watchOverflow && e.enabled && A.classList[e.isLocked ? "add" : "remove"](b.lockClass);
|
|
7455
7455
|
});
|
|
7456
7456
|
}
|
|
7457
7457
|
function g() {
|
|
@@ -8760,30 +8760,30 @@ function Wf() {
|
|
|
8760
8760
|
if (!m) return [];
|
|
8761
8761
|
E = E || {};
|
|
8762
8762
|
var b = 1, T = 1;
|
|
8763
|
-
function v(
|
|
8764
|
-
var C =
|
|
8763
|
+
function v(N) {
|
|
8764
|
+
var C = N.match(t);
|
|
8765
8765
|
C && (b += C.length);
|
|
8766
|
-
var B =
|
|
8767
|
-
T = ~B ?
|
|
8766
|
+
var B = N.lastIndexOf(u);
|
|
8767
|
+
T = ~B ? N.length - B : T + N.length;
|
|
8768
8768
|
}
|
|
8769
8769
|
function w() {
|
|
8770
|
-
var
|
|
8770
|
+
var N = { line: b, column: T };
|
|
8771
8771
|
return function(C) {
|
|
8772
|
-
return C.position = new _(
|
|
8772
|
+
return C.position = new _(N), x(), C;
|
|
8773
8773
|
};
|
|
8774
8774
|
}
|
|
8775
|
-
function _(
|
|
8776
|
-
this.start =
|
|
8775
|
+
function _(N) {
|
|
8776
|
+
this.start = N, this.end = { line: b, column: T }, this.source = E.source;
|
|
8777
8777
|
}
|
|
8778
8778
|
_.prototype.content = m;
|
|
8779
|
-
function
|
|
8779
|
+
function D(N) {
|
|
8780
8780
|
var C = new Error(
|
|
8781
|
-
E.source + ":" + b + ":" + T + ": " +
|
|
8781
|
+
E.source + ":" + b + ":" + T + ": " + N
|
|
8782
8782
|
);
|
|
8783
|
-
if (C.reason =
|
|
8783
|
+
if (C.reason = N, C.filename = E.source, C.line = b, C.column = T, C.source = m, !E.silent) throw C;
|
|
8784
8784
|
}
|
|
8785
|
-
function A(
|
|
8786
|
-
var C =
|
|
8785
|
+
function A(N) {
|
|
8786
|
+
var C = N.exec(m);
|
|
8787
8787
|
if (C) {
|
|
8788
8788
|
var B = C[0];
|
|
8789
8789
|
return v(B), m = m.slice(B.length), C;
|
|
@@ -8792,31 +8792,31 @@ function Wf() {
|
|
|
8792
8792
|
function x() {
|
|
8793
8793
|
A(n);
|
|
8794
8794
|
}
|
|
8795
|
-
function S(
|
|
8795
|
+
function S(N) {
|
|
8796
8796
|
var C;
|
|
8797
|
-
for (
|
|
8798
|
-
C !== !1 &&
|
|
8799
|
-
return
|
|
8797
|
+
for (N = N || []; C = k(); )
|
|
8798
|
+
C !== !1 && N.push(C);
|
|
8799
|
+
return N;
|
|
8800
8800
|
}
|
|
8801
|
-
function
|
|
8802
|
-
var
|
|
8801
|
+
function k() {
|
|
8802
|
+
var N = w();
|
|
8803
8803
|
if (!(l != m.charAt(0) || c != m.charAt(1))) {
|
|
8804
8804
|
for (var C = 2; f != m.charAt(C) && (c != m.charAt(C) || l != m.charAt(C + 1)); )
|
|
8805
8805
|
++C;
|
|
8806
8806
|
if (C += 2, f === m.charAt(C - 1))
|
|
8807
|
-
return
|
|
8807
|
+
return D("End of comment missing");
|
|
8808
8808
|
var B = m.slice(2, C - 2);
|
|
8809
|
-
return T += 2, v(B), m = m.slice(C), T += 2,
|
|
8809
|
+
return T += 2, v(B), m = m.slice(C), T += 2, N({
|
|
8810
8810
|
type: g,
|
|
8811
8811
|
comment: B
|
|
8812
8812
|
});
|
|
8813
8813
|
}
|
|
8814
8814
|
}
|
|
8815
8815
|
function O() {
|
|
8816
|
-
var
|
|
8816
|
+
var N = w(), C = A(r);
|
|
8817
8817
|
if (C) {
|
|
8818
|
-
if (
|
|
8819
|
-
var B = A(i), $ =
|
|
8818
|
+
if (k(), !A(a)) return D("property missing ':'");
|
|
8819
|
+
var B = A(i), $ = N({
|
|
8820
8820
|
type: p,
|
|
8821
8821
|
property: h(C[0].replace(e, f)),
|
|
8822
8822
|
value: B ? h(B[0].replace(e, f)) : f
|
|
@@ -8824,14 +8824,14 @@ function Wf() {
|
|
|
8824
8824
|
return A(s), $;
|
|
8825
8825
|
}
|
|
8826
8826
|
}
|
|
8827
|
-
function
|
|
8828
|
-
var
|
|
8829
|
-
S(
|
|
8827
|
+
function P() {
|
|
8828
|
+
var N = [];
|
|
8829
|
+
S(N);
|
|
8830
8830
|
for (var C; C = O(); )
|
|
8831
|
-
C !== !1 && (
|
|
8832
|
-
return
|
|
8831
|
+
C !== !1 && (N.push(C), S(N));
|
|
8832
|
+
return N;
|
|
8833
8833
|
}
|
|
8834
|
-
return x(),
|
|
8834
|
+
return x(), P();
|
|
8835
8835
|
}
|
|
8836
8836
|
function h(m) {
|
|
8837
8837
|
return m ? m.replace(o, f) : f;
|
|
@@ -9526,12 +9526,12 @@ function Lp(e) {
|
|
|
9526
9526
|
break;
|
|
9527
9527
|
}
|
|
9528
9528
|
E(r);
|
|
9529
|
-
let
|
|
9530
|
-
for (;
|
|
9531
|
-
t.events[
|
|
9529
|
+
let D = v;
|
|
9530
|
+
for (; D < t.events.length; )
|
|
9531
|
+
t.events[D][1].end = {
|
|
9532
9532
|
..._
|
|
9533
|
-
},
|
|
9534
|
-
return ft(t.events, w + 1, 0, t.events.slice(v)), t.events.length =
|
|
9533
|
+
}, D++;
|
|
9534
|
+
return ft(t.events, w + 1, 0, t.events.slice(v)), t.events.length = D, l(T);
|
|
9535
9535
|
}
|
|
9536
9536
|
return o(T);
|
|
9537
9537
|
}
|
|
@@ -9587,8 +9587,8 @@ function Lp(e) {
|
|
|
9587
9587
|
a.events[_][1].end.offset > s)
|
|
9588
9588
|
)
|
|
9589
9589
|
return;
|
|
9590
|
-
const
|
|
9591
|
-
let A =
|
|
9590
|
+
const D = t.events.length;
|
|
9591
|
+
let A = D, x, S;
|
|
9592
9592
|
for (; A--; )
|
|
9593
9593
|
if (t.events[A][0] === "exit" && t.events[A][1].type === "chunkFlow") {
|
|
9594
9594
|
if (x) {
|
|
@@ -9597,11 +9597,11 @@ function Lp(e) {
|
|
|
9597
9597
|
}
|
|
9598
9598
|
x = !0;
|
|
9599
9599
|
}
|
|
9600
|
-
for (E(r), _ =
|
|
9600
|
+
for (E(r), _ = D; _ < t.events.length; )
|
|
9601
9601
|
t.events[_][1].end = {
|
|
9602
9602
|
...S
|
|
9603
9603
|
}, _++;
|
|
9604
|
-
ft(t.events, A + 1, 0, t.events.slice(
|
|
9604
|
+
ft(t.events, A + 1, 0, t.events.slice(D)), t.events.length = _;
|
|
9605
9605
|
}
|
|
9606
9606
|
}
|
|
9607
9607
|
function E(T) {
|
|
@@ -9857,8 +9857,8 @@ function zp(e, t, n) {
|
|
|
9857
9857
|
return l(_);
|
|
9858
9858
|
}
|
|
9859
9859
|
function l(_) {
|
|
9860
|
-
const
|
|
9861
|
-
return i =
|
|
9860
|
+
const D = r.events[r.events.length - 1];
|
|
9861
|
+
return i = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, o = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(_);
|
|
9862
9862
|
}
|
|
9863
9863
|
function c(_) {
|
|
9864
9864
|
return _ === o ? (s++, e.consume(_), c) : s < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), be(_) ? Te(e, f, "whitespace")(_) : f(_));
|
|
@@ -9897,23 +9897,23 @@ function zp(e, t, n) {
|
|
|
9897
9897
|
function v(_) {
|
|
9898
9898
|
return e.exit("codeFenced"), t(_);
|
|
9899
9899
|
}
|
|
9900
|
-
function w(_,
|
|
9900
|
+
function w(_, D, A) {
|
|
9901
9901
|
let x = 0;
|
|
9902
9902
|
return S;
|
|
9903
9903
|
function S(C) {
|
|
9904
|
-
return _.enter("lineEnding"), _.consume(C), _.exit("lineEnding"),
|
|
9904
|
+
return _.enter("lineEnding"), _.consume(C), _.exit("lineEnding"), k;
|
|
9905
9905
|
}
|
|
9906
|
-
function
|
|
9906
|
+
function k(C) {
|
|
9907
9907
|
return _.enter("codeFencedFence"), be(C) ? Te(_, O, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : O(C);
|
|
9908
9908
|
}
|
|
9909
9909
|
function O(C) {
|
|
9910
|
-
return C === o ? (_.enter("codeFencedFenceSequence"),
|
|
9910
|
+
return C === o ? (_.enter("codeFencedFenceSequence"), P(C)) : A(C);
|
|
9911
9911
|
}
|
|
9912
|
-
function
|
|
9913
|
-
return C === o ? (x++, _.consume(C),
|
|
9912
|
+
function P(C) {
|
|
9913
|
+
return C === o ? (x++, _.consume(C), P) : x >= s ? (_.exit("codeFencedFenceSequence"), be(C) ? Te(_, N, "whitespace")(C) : N(C)) : A(C);
|
|
9914
9914
|
}
|
|
9915
|
-
function
|
|
9916
|
-
return C === null || ie(C) ? (_.exit("codeFencedFence"),
|
|
9915
|
+
function N(C) {
|
|
9916
|
+
return C === null || ie(C) ? (_.exit("codeFencedFence"), D(C)) : A(C);
|
|
9917
9917
|
}
|
|
9918
9918
|
}
|
|
9919
9919
|
}
|
|
@@ -10603,10 +10603,10 @@ function Th(e, t, n) {
|
|
|
10603
10603
|
return R === 61 ? (e.consume(R), _) : be(R) ? (e.consume(R), w) : T(R);
|
|
10604
10604
|
}
|
|
10605
10605
|
function _(R) {
|
|
10606
|
-
return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), u = R,
|
|
10606
|
+
return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), u = R, D) : be(R) ? (e.consume(R), _) : A(R);
|
|
10607
10607
|
}
|
|
10608
|
-
function
|
|
10609
|
-
return R === u ? (e.consume(R), u = null, x) : R === null || ie(R) ? n(R) : (e.consume(R),
|
|
10608
|
+
function D(R) {
|
|
10609
|
+
return R === u ? (e.consume(R), u = null, x) : R === null || ie(R) ? n(R) : (e.consume(R), D);
|
|
10610
10610
|
}
|
|
10611
10611
|
function A(R) {
|
|
10612
10612
|
return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || Le(R) ? w(R) : (e.consume(R), A);
|
|
@@ -10615,22 +10615,22 @@ function Th(e, t, n) {
|
|
|
10615
10615
|
return R === 47 || R === 62 || be(R) ? T(R) : n(R);
|
|
10616
10616
|
}
|
|
10617
10617
|
function S(R) {
|
|
10618
|
-
return R === 62 ? (e.consume(R),
|
|
10618
|
+
return R === 62 ? (e.consume(R), k) : n(R);
|
|
10619
10619
|
}
|
|
10620
|
-
function
|
|
10621
|
-
return R === null || ie(R) ? O(R) : be(R) ? (e.consume(R),
|
|
10620
|
+
function k(R) {
|
|
10621
|
+
return R === null || ie(R) ? O(R) : be(R) ? (e.consume(R), k) : n(R);
|
|
10622
10622
|
}
|
|
10623
10623
|
function O(R) {
|
|
10624
|
-
return R === 45 && a === 2 ? (e.consume(R), B) : R === 60 && a === 1 ? (e.consume(R), $) : R === 62 && a === 4 ? (e.consume(R), z) : R === 63 && a === 3 ? (e.consume(R), I) : R === 93 && a === 5 ? (e.consume(R), q) : ie(R) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(gh, X,
|
|
10624
|
+
return R === 45 && a === 2 ? (e.consume(R), B) : R === 60 && a === 1 ? (e.consume(R), $) : R === 62 && a === 4 ? (e.consume(R), z) : R === 63 && a === 3 ? (e.consume(R), I) : R === 93 && a === 5 ? (e.consume(R), q) : ie(R) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(gh, X, P)(R)) : R === null || ie(R) ? (e.exit("htmlFlowData"), P(R)) : (e.consume(R), O);
|
|
10625
10625
|
}
|
|
10626
|
-
function
|
|
10627
|
-
return e.check(Eh,
|
|
10626
|
+
function P(R) {
|
|
10627
|
+
return e.check(Eh, N, X)(R);
|
|
10628
10628
|
}
|
|
10629
|
-
function
|
|
10629
|
+
function N(R) {
|
|
10630
10630
|
return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), C;
|
|
10631
10631
|
}
|
|
10632
10632
|
function C(R) {
|
|
10633
|
-
return R === null || ie(R) ?
|
|
10633
|
+
return R === null || ie(R) ? P(R) : (e.enter("htmlFlowData"), O(R));
|
|
10634
10634
|
}
|
|
10635
10635
|
function B(R) {
|
|
10636
10636
|
return R === 45 ? (e.consume(R), I) : O(R);
|
|
@@ -10729,10 +10729,10 @@ function Ah(e, t, n) {
|
|
|
10729
10729
|
return ct(I) ? (e.consume(I), _) : n(I);
|
|
10730
10730
|
}
|
|
10731
10731
|
function _(I) {
|
|
10732
|
-
return I === 45 || Je(I) ? (e.consume(I), _) :
|
|
10732
|
+
return I === 45 || Je(I) ? (e.consume(I), _) : D(I);
|
|
10733
10733
|
}
|
|
10734
|
-
function
|
|
10735
|
-
return ie(I) ? (s =
|
|
10734
|
+
function D(I) {
|
|
10735
|
+
return ie(I) ? (s = D, $(I)) : be(I) ? (e.consume(I), D) : B(I);
|
|
10736
10736
|
}
|
|
10737
10737
|
function A(I) {
|
|
10738
10738
|
return I === 45 || Je(I) ? (e.consume(I), A) : I === 47 || I === 62 || Le(I) ? x(I) : n(I);
|
|
@@ -10741,19 +10741,19 @@ function Ah(e, t, n) {
|
|
|
10741
10741
|
return I === 47 ? (e.consume(I), B) : I === 58 || I === 95 || ct(I) ? (e.consume(I), S) : ie(I) ? (s = x, $(I)) : be(I) ? (e.consume(I), x) : B(I);
|
|
10742
10742
|
}
|
|
10743
10743
|
function S(I) {
|
|
10744
|
-
return I === 45 || I === 46 || I === 58 || I === 95 || Je(I) ? (e.consume(I), S) :
|
|
10744
|
+
return I === 45 || I === 46 || I === 58 || I === 95 || Je(I) ? (e.consume(I), S) : k(I);
|
|
10745
10745
|
}
|
|
10746
|
-
function
|
|
10747
|
-
return I === 61 ? (e.consume(I), O) : ie(I) ? (s =
|
|
10746
|
+
function k(I) {
|
|
10747
|
+
return I === 61 ? (e.consume(I), O) : ie(I) ? (s = k, $(I)) : be(I) ? (e.consume(I), k) : x(I);
|
|
10748
10748
|
}
|
|
10749
10749
|
function O(I) {
|
|
10750
|
-
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), a = I,
|
|
10750
|
+
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), a = I, P) : ie(I) ? (s = O, $(I)) : be(I) ? (e.consume(I), O) : (e.consume(I), N);
|
|
10751
10751
|
}
|
|
10752
|
-
function
|
|
10753
|
-
return I === a ? (e.consume(I), a = void 0, C) : I === null ? n(I) : ie(I) ? (s =
|
|
10752
|
+
function P(I) {
|
|
10753
|
+
return I === a ? (e.consume(I), a = void 0, C) : I === null ? n(I) : ie(I) ? (s = P, $(I)) : (e.consume(I), P);
|
|
10754
10754
|
}
|
|
10755
|
-
function
|
|
10756
|
-
return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Le(I) ? x(I) : (e.consume(I),
|
|
10755
|
+
function N(I) {
|
|
10756
|
+
return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Le(I) ? x(I) : (e.consume(I), N);
|
|
10757
10757
|
}
|
|
10758
10758
|
function C(I) {
|
|
10759
10759
|
return I === 47 || I === 62 || Le(I) ? x(I) : n(I);
|
|
@@ -11302,12 +11302,12 @@ function cm(e, t, n) {
|
|
|
11302
11302
|
const a = {}, i = [];
|
|
11303
11303
|
let s = [], o = [];
|
|
11304
11304
|
const u = {
|
|
11305
|
-
attempt:
|
|
11306
|
-
check:
|
|
11305
|
+
attempt: D(w),
|
|
11306
|
+
check: D(_),
|
|
11307
11307
|
consume: b,
|
|
11308
11308
|
enter: T,
|
|
11309
11309
|
exit: v,
|
|
11310
|
-
interrupt:
|
|
11310
|
+
interrupt: D(_, {
|
|
11311
11311
|
interrupt: !0
|
|
11312
11312
|
})
|
|
11313
11313
|
}, l = {
|
|
@@ -11324,82 +11324,82 @@ function cm(e, t, n) {
|
|
|
11324
11324
|
};
|
|
11325
11325
|
let c = t.tokenize.call(l, u);
|
|
11326
11326
|
return t.resolveAll && i.push(t), l;
|
|
11327
|
-
function f(
|
|
11328
|
-
return s = tt(s,
|
|
11327
|
+
function f(k) {
|
|
11328
|
+
return s = tt(s, k), m(), s[s.length - 1] !== null ? [] : (A(t, 0), l.events = fi(i, l.events, l), l.events);
|
|
11329
11329
|
}
|
|
11330
|
-
function g(
|
|
11331
|
-
return fm(p(
|
|
11330
|
+
function g(k, O) {
|
|
11331
|
+
return fm(p(k), O);
|
|
11332
11332
|
}
|
|
11333
|
-
function p(
|
|
11334
|
-
return dm(s,
|
|
11333
|
+
function p(k) {
|
|
11334
|
+
return dm(s, k);
|
|
11335
11335
|
}
|
|
11336
11336
|
function y() {
|
|
11337
11337
|
const {
|
|
11338
|
-
_bufferIndex:
|
|
11338
|
+
_bufferIndex: k,
|
|
11339
11339
|
_index: O,
|
|
11340
|
-
line:
|
|
11341
|
-
column:
|
|
11340
|
+
line: P,
|
|
11341
|
+
column: N,
|
|
11342
11342
|
offset: C
|
|
11343
11343
|
} = r;
|
|
11344
11344
|
return {
|
|
11345
|
-
_bufferIndex:
|
|
11345
|
+
_bufferIndex: k,
|
|
11346
11346
|
_index: O,
|
|
11347
|
-
line:
|
|
11348
|
-
column:
|
|
11347
|
+
line: P,
|
|
11348
|
+
column: N,
|
|
11349
11349
|
offset: C
|
|
11350
11350
|
};
|
|
11351
11351
|
}
|
|
11352
|
-
function h(
|
|
11353
|
-
a[
|
|
11352
|
+
function h(k) {
|
|
11353
|
+
a[k.line] = k.column, S();
|
|
11354
11354
|
}
|
|
11355
11355
|
function m() {
|
|
11356
|
-
let
|
|
11356
|
+
let k;
|
|
11357
11357
|
for (; r._index < s.length; ) {
|
|
11358
11358
|
const O = s[r._index];
|
|
11359
11359
|
if (typeof O == "string")
|
|
11360
|
-
for (
|
|
11360
|
+
for (k = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === k && r._bufferIndex < O.length; )
|
|
11361
11361
|
E(O.charCodeAt(r._bufferIndex));
|
|
11362
11362
|
else
|
|
11363
11363
|
E(O);
|
|
11364
11364
|
}
|
|
11365
11365
|
}
|
|
11366
|
-
function E(
|
|
11367
|
-
c = c(
|
|
11366
|
+
function E(k) {
|
|
11367
|
+
c = c(k);
|
|
11368
11368
|
}
|
|
11369
|
-
function b(
|
|
11370
|
-
ie(
|
|
11369
|
+
function b(k) {
|
|
11370
|
+
ie(k) ? (r.line++, r.column = 1, r.offset += k === -3 ? 2 : 1, S()) : k !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
11371
11371
|
// strings.
|
|
11372
11372
|
/** @type {string} */
|
|
11373
|
-
s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous =
|
|
11373
|
+
s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = k;
|
|
11374
11374
|
}
|
|
11375
|
-
function T(
|
|
11376
|
-
const
|
|
11377
|
-
return
|
|
11375
|
+
function T(k, O) {
|
|
11376
|
+
const P = O || {};
|
|
11377
|
+
return P.type = k, P.start = y(), l.events.push(["enter", P, l]), o.push(P), P;
|
|
11378
11378
|
}
|
|
11379
|
-
function v(
|
|
11379
|
+
function v(k) {
|
|
11380
11380
|
const O = o.pop();
|
|
11381
11381
|
return O.end = y(), l.events.push(["exit", O, l]), O;
|
|
11382
11382
|
}
|
|
11383
|
-
function w(
|
|
11384
|
-
A(
|
|
11383
|
+
function w(k, O) {
|
|
11384
|
+
A(k, O.from);
|
|
11385
11385
|
}
|
|
11386
|
-
function _(
|
|
11386
|
+
function _(k, O) {
|
|
11387
11387
|
O.restore();
|
|
11388
11388
|
}
|
|
11389
|
-
function
|
|
11390
|
-
return
|
|
11391
|
-
function
|
|
11389
|
+
function D(k, O) {
|
|
11390
|
+
return P;
|
|
11391
|
+
function P(N, C, B) {
|
|
11392
11392
|
let $, H, q, I;
|
|
11393
|
-
return Array.isArray(
|
|
11393
|
+
return Array.isArray(N) ? (
|
|
11394
11394
|
/* c8 ignore next 1 */
|
|
11395
|
-
X(
|
|
11396
|
-
) : "tokenize" in
|
|
11395
|
+
X(N)
|
|
11396
|
+
) : "tokenize" in N ? (
|
|
11397
11397
|
// Looks like a construct.
|
|
11398
11398
|
X([
|
|
11399
11399
|
/** @type {Construct} */
|
|
11400
|
-
|
|
11400
|
+
N
|
|
11401
11401
|
])
|
|
11402
|
-
) : z(
|
|
11402
|
+
) : z(N);
|
|
11403
11403
|
function z(oe) {
|
|
11404
11404
|
return j;
|
|
11405
11405
|
function j(re) {
|
|
@@ -11430,24 +11430,24 @@ function cm(e, t, n) {
|
|
|
11430
11430
|
}
|
|
11431
11431
|
}
|
|
11432
11432
|
function W(oe) {
|
|
11433
|
-
return
|
|
11433
|
+
return k(q, I), C;
|
|
11434
11434
|
}
|
|
11435
11435
|
function te(oe) {
|
|
11436
11436
|
return I.restore(), ++H < $.length ? R($[H]) : B;
|
|
11437
11437
|
}
|
|
11438
11438
|
}
|
|
11439
11439
|
}
|
|
11440
|
-
function A(
|
|
11441
|
-
|
|
11440
|
+
function A(k, O) {
|
|
11441
|
+
k.resolveAll && !i.includes(k) && i.push(k), k.resolve && ft(l.events, O, l.events.length - O, k.resolve(l.events.slice(O), l)), k.resolveTo && (l.events = k.resolveTo(l.events, l));
|
|
11442
11442
|
}
|
|
11443
11443
|
function x() {
|
|
11444
|
-
const
|
|
11444
|
+
const k = y(), O = l.previous, P = l.currentConstruct, N = l.events.length, C = Array.from(o);
|
|
11445
11445
|
return {
|
|
11446
|
-
from:
|
|
11446
|
+
from: N,
|
|
11447
11447
|
restore: B
|
|
11448
11448
|
};
|
|
11449
11449
|
function B() {
|
|
11450
|
-
r =
|
|
11450
|
+
r = k, l.previous = O, l.currentConstruct = P, l.events.length = N, o = C, S();
|
|
11451
11451
|
}
|
|
11452
11452
|
}
|
|
11453
11453
|
function S() {
|
|
@@ -11663,14 +11663,14 @@ function ym(e) {
|
|
|
11663
11663
|
emphasis: u(),
|
|
11664
11664
|
hardBreakEscape: u(O),
|
|
11665
11665
|
hardBreakTrailing: u(O),
|
|
11666
|
-
htmlFlow: u(
|
|
11666
|
+
htmlFlow: u(P),
|
|
11667
11667
|
htmlFlowData: S,
|
|
11668
|
-
htmlText: u(
|
|
11668
|
+
htmlText: u(N),
|
|
11669
11669
|
htmlTextData: S,
|
|
11670
11670
|
image: u($),
|
|
11671
11671
|
label: q,
|
|
11672
11672
|
labelText: H,
|
|
11673
|
-
lineEnding:
|
|
11673
|
+
lineEnding: k,
|
|
11674
11674
|
link: u(B),
|
|
11675
11675
|
listItem: u(),
|
|
11676
11676
|
listOrdered: u(),
|
|
@@ -11681,7 +11681,7 @@ function ym(e) {
|
|
|
11681
11681
|
resourceTitleString: z,
|
|
11682
11682
|
resource: X,
|
|
11683
11683
|
setextHeading: u(A),
|
|
11684
|
-
setextHeadingLineSequence:
|
|
11684
|
+
setextHeadingLineSequence: D,
|
|
11685
11685
|
setextHeadingText: _,
|
|
11686
11686
|
strong: u(),
|
|
11687
11687
|
thematicBreak: u()
|
|
@@ -11877,7 +11877,7 @@ function ym(e) {
|
|
|
11877
11877
|
function _() {
|
|
11878
11878
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
11879
11879
|
}
|
|
11880
|
-
function
|
|
11880
|
+
function D(Y) {
|
|
11881
11881
|
const ee = this.stack[this.stack.length - 1];
|
|
11882
11882
|
ee.depth = this.sliceSerialize(Y).codePointAt(0) === 61 ? 1 : 2;
|
|
11883
11883
|
}
|
|
@@ -11897,7 +11897,7 @@ function ym(e) {
|
|
|
11897
11897
|
const ee = this.stack.pop();
|
|
11898
11898
|
ee.value += this.sliceSerialize(Y), ee.position.end = At(Y.end);
|
|
11899
11899
|
}
|
|
11900
|
-
function
|
|
11900
|
+
function k(Y) {
|
|
11901
11901
|
const ee = this.stack[this.stack.length - 1];
|
|
11902
11902
|
if (this.data.atHardBreak) {
|
|
11903
11903
|
const de = ee.children[ee.children.length - 1];
|
|
@@ -11909,11 +11909,11 @@ function ym(e) {
|
|
|
11909
11909
|
function O() {
|
|
11910
11910
|
this.data.atHardBreak = !0;
|
|
11911
11911
|
}
|
|
11912
|
-
function
|
|
11912
|
+
function P() {
|
|
11913
11913
|
const Y = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
11914
11914
|
ee.value = Y;
|
|
11915
11915
|
}
|
|
11916
|
-
function
|
|
11916
|
+
function N() {
|
|
11917
11917
|
const Y = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
11918
11918
|
ee.value = Y;
|
|
11919
11919
|
}
|
|
@@ -21212,65 +21212,65 @@ function _i(e, t) {
|
|
|
21212
21212
|
let T = b, v = b, w;
|
|
21213
21213
|
if (E === 35) {
|
|
21214
21214
|
v = ++T;
|
|
21215
|
-
const
|
|
21216
|
-
|
|
21215
|
+
const P = e.charCodeAt(v);
|
|
21216
|
+
P === 88 || P === 120 ? (w = "hexadecimal", v = ++T) : w = "decimal";
|
|
21217
21217
|
} else
|
|
21218
21218
|
w = "named";
|
|
21219
|
-
let _ = "",
|
|
21219
|
+
let _ = "", D = "", A = "";
|
|
21220
21220
|
const x = w === "named" ? fo : w === "decimal" ? pl : fb;
|
|
21221
21221
|
for (v--; ++v <= e.length; ) {
|
|
21222
|
-
const
|
|
21223
|
-
if (!x(
|
|
21222
|
+
const P = e.charCodeAt(v);
|
|
21223
|
+
if (!x(P))
|
|
21224
21224
|
break;
|
|
21225
|
-
A += String.fromCharCode(
|
|
21225
|
+
A += String.fromCharCode(P), w === "named" && db.includes(A) && (_ = A, D = Rn(A));
|
|
21226
21226
|
}
|
|
21227
21227
|
let S = e.charCodeAt(v) === 59;
|
|
21228
21228
|
if (S) {
|
|
21229
21229
|
v++;
|
|
21230
|
-
const
|
|
21231
|
-
|
|
21230
|
+
const P = w === "named" ? Rn(A) : !1;
|
|
21231
|
+
P && (_ = A, D = P);
|
|
21232
21232
|
}
|
|
21233
|
-
let
|
|
21233
|
+
let k = 1 + v - b, O = "";
|
|
21234
21234
|
if (!(!S && n.nonTerminated === !1)) if (!A)
|
|
21235
|
-
w !== "named" && h(4,
|
|
21235
|
+
w !== "named" && h(4, k);
|
|
21236
21236
|
else if (w === "named") {
|
|
21237
|
-
if (S && !
|
|
21237
|
+
if (S && !D)
|
|
21238
21238
|
h(5, 1);
|
|
21239
|
-
else if (_ !== A && (v = T + _.length,
|
|
21240
|
-
const
|
|
21239
|
+
else if (_ !== A && (v = T + _.length, k = 1 + v - T, S = !1), !S) {
|
|
21240
|
+
const P = _ ? 1 : 3;
|
|
21241
21241
|
if (n.attribute) {
|
|
21242
|
-
const
|
|
21243
|
-
|
|
21242
|
+
const N = e.charCodeAt(v);
|
|
21243
|
+
N === 61 ? (h(P, k), D = "") : fo(N) ? D = "" : h(P, k);
|
|
21244
21244
|
} else
|
|
21245
|
-
h(
|
|
21245
|
+
h(P, k);
|
|
21246
21246
|
}
|
|
21247
|
-
O =
|
|
21247
|
+
O = D;
|
|
21248
21248
|
} else {
|
|
21249
|
-
S || h(2,
|
|
21250
|
-
let
|
|
21249
|
+
S || h(2, k);
|
|
21250
|
+
let P = Number.parseInt(
|
|
21251
21251
|
A,
|
|
21252
21252
|
w === "hexadecimal" ? 16 : 10
|
|
21253
21253
|
);
|
|
21254
|
-
if (mb(
|
|
21255
|
-
h(7,
|
|
21256
|
-
else if (
|
|
21257
|
-
h(6,
|
|
21254
|
+
if (mb(P))
|
|
21255
|
+
h(7, k), O = "�";
|
|
21256
|
+
else if (P in co)
|
|
21257
|
+
h(6, k), O = co[P];
|
|
21258
21258
|
else {
|
|
21259
|
-
let
|
|
21260
|
-
gb(
|
|
21261
|
-
|
|
21262
|
-
),
|
|
21259
|
+
let N = "";
|
|
21260
|
+
gb(P) && h(6, k), P > 65535 && (P -= 65536, N += String.fromCharCode(
|
|
21261
|
+
P >>> 10 | 55296
|
|
21262
|
+
), P = 56320 | P & 1023), O = N + String.fromCharCode(P);
|
|
21263
21263
|
}
|
|
21264
21264
|
}
|
|
21265
21265
|
if (O) {
|
|
21266
21266
|
m(), g = y(), i = v - 1, f += v - b + 1, a.push(O);
|
|
21267
|
-
const
|
|
21268
|
-
|
|
21267
|
+
const P = y();
|
|
21268
|
+
P.offset++, n.reference && n.reference.call(
|
|
21269
21269
|
n.referenceContext || void 0,
|
|
21270
21270
|
O,
|
|
21271
|
-
{ start: g, end:
|
|
21271
|
+
{ start: g, end: P },
|
|
21272
21272
|
e.slice(b - 1, v)
|
|
21273
|
-
), g =
|
|
21273
|
+
), g = P;
|
|
21274
21274
|
} else
|
|
21275
21275
|
A = e.slice(b - 1, v), o += A, f += A.length, i = v - 1;
|
|
21276
21276
|
} else
|
|
@@ -21560,7 +21560,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
|
|
|
21560
21560
|
return e.enter(r), e.enter(a), e.consume(C), e.exit(a), b;
|
|
21561
21561
|
}
|
|
21562
21562
|
function b(C) {
|
|
21563
|
-
return C === 35 ? (h = s, T(C)) : C === 46 ? (h = o, T(C)) : y && be(C) ? Te(e, b, "whitespace")(C) : !y && Le(C) ? bt(e, b)(C) : C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ?
|
|
21563
|
+
return C === 35 ? (h = s, T(C)) : C === 46 ? (h = o, T(C)) : y && be(C) ? Te(e, b, "whitespace")(C) : !y && Le(C) ? bt(e, b)(C) : C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ? N(C) : (e.enter(i), e.enter(u), e.consume(C), _);
|
|
21564
21564
|
}
|
|
21565
21565
|
function T(C) {
|
|
21566
21566
|
const B = (
|
|
@@ -21591,9 +21591,9 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
|
|
|
21591
21591
|
return e.consume(C), w;
|
|
21592
21592
|
}
|
|
21593
21593
|
function _(C) {
|
|
21594
|
-
return C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), y && be(C) ? Te(e,
|
|
21594
|
+
return C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), y && be(C) ? Te(e, D, "whitespace")(C) : !y && Le(C) ? bt(e, D)(C) : D(C)) : (e.consume(C), _);
|
|
21595
21595
|
}
|
|
21596
|
-
function
|
|
21596
|
+
function D(C) {
|
|
21597
21597
|
return C === 61 ? (e.enter(l), e.consume(C), e.exit(l), A) : (e.exit(i), b(C));
|
|
21598
21598
|
}
|
|
21599
21599
|
function A(C) {
|
|
@@ -21603,18 +21603,18 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
|
|
|
21603
21603
|
return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 125 || Le(C) ? (e.exit(p), e.exit(f), e.exit(i), b(C)) : (e.consume(C), x);
|
|
21604
21604
|
}
|
|
21605
21605
|
function S(C) {
|
|
21606
|
-
return C === m ? (e.enter(g), e.consume(C), e.exit(g), e.exit(c), e.exit(i),
|
|
21606
|
+
return C === m ? (e.enter(g), e.consume(C), e.exit(g), e.exit(c), e.exit(i), P) : (e.enter(f), k(C));
|
|
21607
21607
|
}
|
|
21608
|
-
function
|
|
21609
|
-
return C === m ? (e.exit(f), S(C)) : C === null ? n(C) : ie(C) ? y ? n(C) : bt(e,
|
|
21608
|
+
function k(C) {
|
|
21609
|
+
return C === m ? (e.exit(f), S(C)) : C === null ? n(C) : ie(C) ? y ? n(C) : bt(e, k)(C) : (e.enter(p), e.consume(C), O);
|
|
21610
21610
|
}
|
|
21611
21611
|
function O(C) {
|
|
21612
|
-
return C === m || C === null || ie(C) ? (e.exit(p),
|
|
21612
|
+
return C === m || C === null || ie(C) ? (e.exit(p), k(C)) : (e.consume(C), O);
|
|
21613
21613
|
}
|
|
21614
|
-
function
|
|
21615
|
-
return C === 125 || Le(C) ? b(C) :
|
|
21614
|
+
function P(C) {
|
|
21615
|
+
return C === 125 || Le(C) ? b(C) : N(C);
|
|
21616
21616
|
}
|
|
21617
|
-
function
|
|
21617
|
+
function N(C) {
|
|
21618
21618
|
return C === 125 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(r), t) : n(C);
|
|
21619
21619
|
}
|
|
21620
21620
|
}
|
|
@@ -21690,10 +21690,10 @@ function Ub(e, t, n) {
|
|
|
21690
21690
|
return Te(e, p, "whitespace")(x);
|
|
21691
21691
|
}
|
|
21692
21692
|
function p(x) {
|
|
21693
|
-
return e.exit("directiveContainerFence"), x === null ?
|
|
21693
|
+
return e.exit("directiveContainerFence"), x === null ? D(x) : ie(x) ? r.interrupt ? t(x) : e.attempt(ur, y, D)(x) : n(x);
|
|
21694
21694
|
}
|
|
21695
21695
|
function y(x) {
|
|
21696
|
-
return x === null ?
|
|
21696
|
+
return x === null ? D(x) : ie(x) ? e.check(ur, T, D)(x) : (e.enter("directiveContainerContent"), h(x));
|
|
21697
21697
|
}
|
|
21698
21698
|
function h(x) {
|
|
21699
21699
|
return e.attempt({
|
|
@@ -21731,22 +21731,22 @@ function Ub(e, t, n) {
|
|
|
21731
21731
|
return r.parser.lazy[S.start.line] = !1, _(x);
|
|
21732
21732
|
}
|
|
21733
21733
|
function _(x) {
|
|
21734
|
-
return e.exit("directiveContainerContent"),
|
|
21734
|
+
return e.exit("directiveContainerContent"), D(x);
|
|
21735
21735
|
}
|
|
21736
|
-
function
|
|
21736
|
+
function D(x) {
|
|
21737
21737
|
return e.exit("directiveContainer"), t(x);
|
|
21738
21738
|
}
|
|
21739
|
-
function A(x, S,
|
|
21739
|
+
function A(x, S, k) {
|
|
21740
21740
|
let O = 0;
|
|
21741
|
-
return Te(x,
|
|
21742
|
-
function
|
|
21743
|
-
return x.enter("directiveContainerFence"), x.enter("directiveContainerSequence"),
|
|
21741
|
+
return Te(x, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
21742
|
+
function P(B) {
|
|
21743
|
+
return x.enter("directiveContainerFence"), x.enter("directiveContainerSequence"), N(B);
|
|
21744
21744
|
}
|
|
21745
|
-
function
|
|
21746
|
-
return B === 58 ? (x.consume(B), O++,
|
|
21745
|
+
function N(B) {
|
|
21746
|
+
return B === 58 ? (x.consume(B), O++, N) : O < s ? k(B) : (x.exit("directiveContainerSequence"), Te(x, C, "whitespace")(B));
|
|
21747
21747
|
}
|
|
21748
21748
|
function C(B) {
|
|
21749
|
-
return B === null || ie(B) ? (x.exit("directiveContainerFence"), S(B)) :
|
|
21749
|
+
return B === null || ie(B) ? (x.exit("directiveContainerFence"), S(B)) : k(B);
|
|
21750
21750
|
}
|
|
21751
21751
|
}
|
|
21752
21752
|
}
|
|
@@ -21899,9 +21899,9 @@ const Oa = {
|
|
|
21899
21899
|
}, []), y = ue(() => {
|
|
21900
21900
|
p(), o(!0);
|
|
21901
21901
|
}, [p]), h = ue(
|
|
21902
|
-
(
|
|
21903
|
-
if (p(),
|
|
21904
|
-
i(
|
|
21902
|
+
(k) => {
|
|
21903
|
+
if (p(), k) {
|
|
21904
|
+
i(k), o(!1), c.current = window.requestAnimationFrame(() => {
|
|
21905
21905
|
c.current = null, o(!0);
|
|
21906
21906
|
});
|
|
21907
21907
|
return;
|
|
@@ -21917,21 +21917,21 @@ const Oa = {
|
|
|
21917
21917
|
se(() => () => {
|
|
21918
21918
|
p();
|
|
21919
21919
|
}, [p]);
|
|
21920
|
-
const [m, E] = ae(0), b = Z(null), [T, v] = ae(!1), w = Z(/* @__PURE__ */ new Map()), [_,
|
|
21920
|
+
const [m, E] = ae(0), b = Z(null), [T, v] = ae(!1), w = Z(/* @__PURE__ */ new Map()), [_, D] = ae(357), [A, x] = ae("bottom");
|
|
21921
21921
|
return se(() => {
|
|
21922
21922
|
E(0), v(!1), x("bottom");
|
|
21923
21923
|
}, [a?.key, a?.type]), se(() => {
|
|
21924
|
-
const
|
|
21925
|
-
if (!
|
|
21926
|
-
O.add(
|
|
21924
|
+
const k = w.current, O = /* @__PURE__ */ new Set(), P = (N) => {
|
|
21925
|
+
if (!N || O.has(N) || k.has(N)) return;
|
|
21926
|
+
O.add(N);
|
|
21927
21927
|
const C = new window.Image();
|
|
21928
21928
|
C.decoding = "async", C.onload = () => {
|
|
21929
21929
|
const B = C.naturalWidth || C.width || 0, $ = C.naturalHeight || C.height || 0;
|
|
21930
|
-
B > 0 && $ > 0 &&
|
|
21931
|
-
}, C.src =
|
|
21930
|
+
B > 0 && $ > 0 && k.set(N, `${B} / ${$}`);
|
|
21931
|
+
}, C.src = N;
|
|
21932
21932
|
};
|
|
21933
|
-
e.forEach((
|
|
21934
|
-
const C =
|
|
21933
|
+
e.forEach((N) => {
|
|
21934
|
+
const C = N.tooltip;
|
|
21935
21935
|
if (!C) return;
|
|
21936
21936
|
const $ = typeof C == "string" ? (() => {
|
|
21937
21937
|
try {
|
|
@@ -21943,22 +21943,22 @@ const Oa = {
|
|
|
21943
21943
|
if (!$ || $.type !== "steps") return;
|
|
21944
21944
|
const H = $.images;
|
|
21945
21945
|
Array.isArray(H) && H.forEach((q) => {
|
|
21946
|
-
typeof q == "string" &&
|
|
21946
|
+
typeof q == "string" && P(q);
|
|
21947
21947
|
});
|
|
21948
21948
|
});
|
|
21949
21949
|
}, [e]), Ze(() => {
|
|
21950
21950
|
if (!s) return;
|
|
21951
21951
|
if (a?.type !== "upload" && a?.type !== "tag" && a?.type !== "variable") {
|
|
21952
|
-
|
|
21952
|
+
D(null);
|
|
21953
21953
|
return;
|
|
21954
21954
|
}
|
|
21955
|
-
const
|
|
21956
|
-
const O = document.querySelector(".rte-steps-tooltip"),
|
|
21955
|
+
const k = requestAnimationFrame(() => {
|
|
21956
|
+
const O = document.querySelector(".rte-steps-tooltip"), P = document.querySelector(".rte-steps-tooltip-title"), N = document.querySelector(
|
|
21957
21957
|
".rte-steps-tooltip-step-badge"
|
|
21958
21958
|
);
|
|
21959
|
-
if (!O || !
|
|
21960
|
-
const C = window.getComputedStyle(O), B = Number.parseFloat(C.paddingLeft) || 0, $ = Number.parseFloat(C.paddingRight) || 0, H = Math.ceil(
|
|
21961
|
-
|
|
21959
|
+
if (!O || !P || !N) return;
|
|
21960
|
+
const C = window.getComputedStyle(O), B = Number.parseFloat(C.paddingLeft) || 0, $ = Number.parseFloat(C.paddingRight) || 0, H = Math.ceil(P.getBoundingClientRect().width || 0), q = Math.ceil(N.getBoundingClientRect().width || 0), z = H + 16 + q + Math.ceil(B + $), X = 357, R = Math.max(240, Math.floor(window.innerWidth - 32));
|
|
21961
|
+
D(Math.min(Math.max(z, X), R));
|
|
21962
21962
|
const W = a?.anchorEl;
|
|
21963
21963
|
if (W) {
|
|
21964
21964
|
const te = W.getBoundingClientRect(), oe = O.getBoundingClientRect(), j = Math.ceil(oe.height || 0), re = Math.max(
|
|
@@ -21968,7 +21968,7 @@ const Oa = {
|
|
|
21968
21968
|
x(we ? "top" : "bottom");
|
|
21969
21969
|
}
|
|
21970
21970
|
});
|
|
21971
|
-
return () => cancelAnimationFrame(
|
|
21971
|
+
return () => cancelAnimationFrame(k);
|
|
21972
21972
|
}, [
|
|
21973
21973
|
s,
|
|
21974
21974
|
a?.key,
|
|
@@ -21977,21 +21977,21 @@ const Oa = {
|
|
|
21977
21977
|
a?.anchorEl
|
|
21978
21978
|
]), se(() => {
|
|
21979
21979
|
if (!n) return;
|
|
21980
|
-
const
|
|
21980
|
+
const k = (O) => {
|
|
21981
21981
|
O.key === "Escape" && h(null);
|
|
21982
21982
|
};
|
|
21983
|
-
return window.addEventListener("keydown",
|
|
21983
|
+
return window.addEventListener("keydown", k, !0), () => window.removeEventListener("keydown", k, !0);
|
|
21984
21984
|
}, [n, h]), { tooltipPortal: a?.anchorEl ? (() => {
|
|
21985
21985
|
if (!document.body.contains(a.anchorEl))
|
|
21986
21986
|
return null;
|
|
21987
|
-
let
|
|
21987
|
+
let k = "", O = {
|
|
21988
21988
|
background: "#fff",
|
|
21989
21989
|
padding: 12,
|
|
21990
21990
|
borderRadius: 8,
|
|
21991
21991
|
border: "0.5px solid #E5E5E5",
|
|
21992
21992
|
boxShadow: "0 4px 20px 0 rgba(129, 124, 143, 0.2)"
|
|
21993
|
-
},
|
|
21994
|
-
const
|
|
21993
|
+
}, P = !1;
|
|
21994
|
+
const N = ($) => {
|
|
21995
21995
|
const H = iT($);
|
|
21996
21996
|
if (!H) return null;
|
|
21997
21997
|
if (H.kind === "text")
|
|
@@ -22121,39 +22121,39 @@ const Oa = {
|
|
|
22121
22121
|
), steps: !0 };
|
|
22122
22122
|
};
|
|
22123
22123
|
if (a.type === "upload") {
|
|
22124
|
-
const $ = a.anchorEl.dataset.tooltip, H =
|
|
22124
|
+
const $ = a.anchorEl.dataset.tooltip, H = N($);
|
|
22125
22125
|
if (H)
|
|
22126
|
-
|
|
22126
|
+
k = H.node, P = H.steps;
|
|
22127
22127
|
else {
|
|
22128
22128
|
const q = e.find(
|
|
22129
22129
|
(z) => z.type === "upload" && z.key === a.key
|
|
22130
|
-
), I =
|
|
22130
|
+
), I = N(
|
|
22131
22131
|
typeof q?.tooltip == "string" ? q?.tooltip : q?.tooltip ? JSON.stringify(q.tooltip) : ""
|
|
22132
22132
|
);
|
|
22133
|
-
|
|
22133
|
+
k = I?.node || "", P = I?.steps || !1;
|
|
22134
22134
|
}
|
|
22135
22135
|
} else if (a.type === "tag") {
|
|
22136
|
-
const $ = a.anchorEl.dataset.tooltip, H =
|
|
22137
|
-
|
|
22136
|
+
const $ = a.anchorEl.dataset.tooltip, H = N($);
|
|
22137
|
+
k = H?.node || "", P = H?.steps || !1;
|
|
22138
22138
|
} else if (a.type === "upload-label")
|
|
22139
|
-
|
|
22139
|
+
k = a.anchorEl.querySelector(
|
|
22140
22140
|
".upload-label[data-file-name]"
|
|
22141
22141
|
)?.dataset.fileName || a.anchorEl.dataset.fileName || "";
|
|
22142
22142
|
else if (a.type === "variable") {
|
|
22143
|
-
const $ = a.anchorEl.dataset.tooltip, H =
|
|
22144
|
-
|
|
22143
|
+
const $ = a.anchorEl.dataset.tooltip, H = N($);
|
|
22144
|
+
k = H?.node || "", P = H?.steps || !1;
|
|
22145
22145
|
} else if (a.type === "upload-preview") {
|
|
22146
22146
|
const $ = t[a.key];
|
|
22147
22147
|
let H = null, q = !1;
|
|
22148
|
-
typeof $ == "string" ? H = $ : $ instanceof File && ($.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name || "")) && (H = URL.createObjectURL($), q = !0), H ? (
|
|
22148
|
+
typeof $ == "string" ? H = $ : $ instanceof File && ($.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name || "")) && (H = URL.createObjectURL($), q = !0), H ? (k = /* @__PURE__ */ V("div", { className: "rte-upload-preview", children: /* @__PURE__ */ V("img", { className: "rte-upload-preview-img", src: H, alt: "preview" }) }), O = {
|
|
22149
22149
|
background: "#fff",
|
|
22150
22150
|
padding: 0,
|
|
22151
22151
|
borderRadius: 4,
|
|
22152
22152
|
boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
|
|
22153
|
-
}, q && setTimeout(() => URL.revokeObjectURL(H), 1e3)) :
|
|
22153
|
+
}, q && setTimeout(() => URL.revokeObjectURL(H), 1e3)) : k = "";
|
|
22154
22154
|
} else if (a.type === "video-preview") {
|
|
22155
22155
|
const $ = r?.[a.key];
|
|
22156
|
-
$?.status === "success" && $.videoUrl ? (
|
|
22156
|
+
$?.status === "success" && $.videoUrl ? (k = /* @__PURE__ */ V("div", { className: "rte-video-preview", children: /* @__PURE__ */ V(
|
|
22157
22157
|
"video",
|
|
22158
22158
|
{
|
|
22159
22159
|
src: $.videoUrl,
|
|
@@ -22168,10 +22168,10 @@ const Oa = {
|
|
|
22168
22168
|
padding: 0,
|
|
22169
22169
|
borderRadius: 8,
|
|
22170
22170
|
boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
|
|
22171
|
-
}) :
|
|
22171
|
+
}) : k = "";
|
|
22172
22172
|
}
|
|
22173
|
-
if (!
|
|
22174
|
-
|
|
22173
|
+
if (!k) return null;
|
|
22174
|
+
P && (O = {
|
|
22175
22175
|
background: "#fff",
|
|
22176
22176
|
padding: 0,
|
|
22177
22177
|
borderRadius: 12,
|
|
@@ -22186,8 +22186,8 @@ const Oa = {
|
|
|
22186
22186
|
arrow: !1,
|
|
22187
22187
|
zIndex: 999,
|
|
22188
22188
|
destroyTooltipOnHide: !1,
|
|
22189
|
-
autoAdjustOverflow: !
|
|
22190
|
-
align:
|
|
22189
|
+
autoAdjustOverflow: !P,
|
|
22190
|
+
align: P ? {
|
|
22191
22191
|
// 自适应:下方空间不足时翻到上方
|
|
22192
22192
|
points: B === "top" ? ["bc", "tc"] : ["tc", "bc"],
|
|
22193
22193
|
offset: B === "top" ? [0, -4] : [0, 4]
|
|
@@ -22202,9 +22202,9 @@ const Oa = {
|
|
|
22202
22202
|
onClick: ($) => {
|
|
22203
22203
|
$.preventDefault(), $.stopPropagation();
|
|
22204
22204
|
},
|
|
22205
|
-
children:
|
|
22205
|
+
children: k
|
|
22206
22206
|
}
|
|
22207
|
-
) :
|
|
22207
|
+
) : P ? k : /* @__PURE__ */ V(
|
|
22208
22208
|
"div",
|
|
22209
22209
|
{
|
|
22210
22210
|
style: { maxWidth: "200px", fontSize: "12px", color: C },
|
|
@@ -22215,11 +22215,11 @@ const Oa = {
|
|
|
22215
22215
|
onClick: ($) => {
|
|
22216
22216
|
$.preventDefault(), $.stopPropagation();
|
|
22217
22217
|
},
|
|
22218
|
-
children:
|
|
22218
|
+
children: k
|
|
22219
22219
|
}
|
|
22220
22220
|
),
|
|
22221
22221
|
open: s,
|
|
22222
|
-
placement:
|
|
22222
|
+
placement: P ? B === "top" ? "top" : "bottom" : a.type === "upload-preview" ? "topLeft" : "top",
|
|
22223
22223
|
getPopupContainer: () => document.body,
|
|
22224
22224
|
overlayInnerStyle: O,
|
|
22225
22225
|
overlayClassName: "rte-tooltip-overlay",
|
|
@@ -22282,13 +22282,13 @@ const fT = (e, t) => {
|
|
|
22282
22282
|
const b = rt(e.tooltip), T = b ? ` data-tooltip="${le(b)}"` : "", v = e.minCount || 1, w = e.maxCount || 3;
|
|
22283
22283
|
let _ = 0;
|
|
22284
22284
|
for (let S = 0; S < w; S++) {
|
|
22285
|
-
const
|
|
22286
|
-
t[
|
|
22285
|
+
const k = `${e.key}-${S}`;
|
|
22286
|
+
t[k] != null && (_ += 1);
|
|
22287
22287
|
}
|
|
22288
|
-
const
|
|
22288
|
+
const D = Math.min(w, Math.max(v, _ + (_ < w ? 1 : 0)));
|
|
22289
22289
|
let A = "";
|
|
22290
|
-
for (let S = 0; S <
|
|
22291
|
-
const
|
|
22290
|
+
for (let S = 0; S < D; S++) {
|
|
22291
|
+
const k = `${e.key}-${S}`, { hasFile: O, fileName: P, uploadIcon: N } = Qa(t[k], e.text), C = O ? "" : "hidden", B = b && !O ? "" : "hidden", $ = O ? "has-file" : "", H = O && P ? ` data-file-name="${P.replace(/"/g, """)}"` : "", q = ` data-batch-key="${e.key}"`, I = ` data-batch-index="${S}"`, z = `<span contenteditable="false" data-type="upload" data-key="${k}"${q}${I}${T} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${N}</span><span class="upload-label"${H}>${P || e.text}</span>${b ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${k}" data-tooltip="${le(b)}" ></i>` : ""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;
|
|
22292
22292
|
A += z;
|
|
22293
22293
|
}
|
|
22294
22294
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${go}<span class="rte-upload-batch-chips">${A}${n}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${A}${n}</span>`;
|
|
@@ -22401,19 +22401,19 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
|
|
|
22401
22401
|
if (h.type === "text" && (h.text?.includes("icon-bitian") || h.className === "rte-text-required") && m) {
|
|
22402
22402
|
const A = m.type === "upload" && m.exclusionGroup === "fileInput" && h.exclusionGroup === "fileInput" && h.exclusionGroup === m.exclusionGroup, x = m.type === "variable" && m.exclusionGroup === "textInput" && h.exclusionGroup === "textInput" && h.exclusionGroup === m.exclusionGroup;
|
|
22403
22403
|
if (A) {
|
|
22404
|
-
const
|
|
22405
|
-
let
|
|
22406
|
-
h.className ?
|
|
22407
|
-
const
|
|
22408
|
-
p.push(
|
|
22404
|
+
const k = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
|
|
22405
|
+
let P = "";
|
|
22406
|
+
h.className ? P = `<span class="${h.className}">${h.text ?? ""}</span>` : P = h.text ?? "";
|
|
22407
|
+
const N = m, { uploadHtml: C, hintHtml: B } = fT(N, n);
|
|
22408
|
+
p.push(k + P + C + O + B), y += 2;
|
|
22409
22409
|
continue;
|
|
22410
22410
|
}
|
|
22411
22411
|
if (x) {
|
|
22412
|
-
const
|
|
22413
|
-
let
|
|
22414
|
-
h.className ?
|
|
22412
|
+
const k = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
|
|
22413
|
+
let P = "";
|
|
22414
|
+
h.className ? P = `<span class="${h.className}">${h.text ?? ""}</span>` : P = h.text ?? "";
|
|
22415
22415
|
const C = hl(m, a);
|
|
22416
|
-
p.push(
|
|
22416
|
+
p.push(k + P + C + O), y += 2;
|
|
22417
22417
|
continue;
|
|
22418
22418
|
}
|
|
22419
22419
|
}
|
|
@@ -22435,7 +22435,7 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
|
|
|
22435
22435
|
const A = !!m && m.type === "text" && !m.className && !m.exclusionGroup && c(m.text), x = A ? (m.text ?? "").trim() : "", S = x ? g(x) : "";
|
|
22436
22436
|
A && (E = !0), _ = pT(h, n, S);
|
|
22437
22437
|
} else h.type === "select" && h.key ? _ = mT(h, a) : h.type === "textarea" && h.key ? _ = ET(h, a) : h.type === "richtext" && h.key ? _ = bT(h, a) : h.type === "report-module" && h.key ? _ = _T(h, a) : h.type === "markdown-module" && h.key ? _ = vT(h, a) : h.type === "datepicker" && h.key ? _ = NT(h, a) : h.type === "number-input" && h.key ? _ = IT(h, a) : h.type === "multi-variable" && h.key ? _ = OT(h, a, i) : h.type === "video-url" && h.key ? _ = DT(h, u || {}) : h.type === "video-upload" && h.key ? _ = PT(h, u || {}) : h.type === "searchable-select" && h.key && (_ = RT(h, a));
|
|
22438
|
-
const
|
|
22438
|
+
const D = v + _ + w;
|
|
22439
22439
|
if (h.type === "text" && !h.className && !h.exclusionGroup) {
|
|
22440
22440
|
if (c(h.text) && p.length > 0) {
|
|
22441
22441
|
const x = p[p.length - 1], S = (h.text ?? "").trim();
|
|
@@ -22448,14 +22448,14 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
|
|
|
22448
22448
|
p[p.length - 1] = `<span class="rte-inline-group">${x}${g(A.punct)}</span>`;
|
|
22449
22449
|
const S = A.rest;
|
|
22450
22450
|
if (S) {
|
|
22451
|
-
const
|
|
22452
|
-
p.push(`<span data-type="text" contenteditable="false">${
|
|
22451
|
+
const k = S.replace(/\n/g, "<br/>");
|
|
22452
|
+
p.push(`<span data-type="text" contenteditable="false">${k}</span>`);
|
|
22453
22453
|
}
|
|
22454
22454
|
y++;
|
|
22455
22455
|
continue;
|
|
22456
22456
|
}
|
|
22457
22457
|
}
|
|
22458
|
-
p.push(
|
|
22458
|
+
p.push(D), y += E ? 2 : 1;
|
|
22459
22459
|
}
|
|
22460
22460
|
e.current && (e.current.innerHTML = p.join(""), setTimeout(() => {
|
|
22461
22461
|
if (!e.current) return;
|
|
@@ -22490,12 +22490,12 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22490
22490
|
const E = p.current;
|
|
22491
22491
|
let b = {};
|
|
22492
22492
|
const T = /* @__PURE__ */ new Set();
|
|
22493
|
-
e.current && !E && e.current.querySelectorAll('[data-type="variable"]').forEach((
|
|
22494
|
-
const A =
|
|
22493
|
+
e.current && !E && e.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
|
|
22494
|
+
const A = D.dataset.key;
|
|
22495
22495
|
if (!A) return;
|
|
22496
22496
|
let x = "";
|
|
22497
|
-
if (
|
|
22498
|
-
const S = (
|
|
22497
|
+
if (D.dataset.variableRender === "antd-textarea") {
|
|
22498
|
+
const S = (D.getAttribute("data-value") || "").trim();
|
|
22499
22499
|
try {
|
|
22500
22500
|
x = S ? decodeURIComponent(S).replace(/\r\n/g, `
|
|
22501
22501
|
`).trim() : "";
|
|
@@ -22503,7 +22503,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22503
22503
|
x = S.trim();
|
|
22504
22504
|
}
|
|
22505
22505
|
} else {
|
|
22506
|
-
const S = (
|
|
22506
|
+
const S = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
22507
22507
|
`);
|
|
22508
22508
|
x = S.replace(/\n/g, "").trim().length > 0 ? S : "";
|
|
22509
22509
|
}
|
|
@@ -22511,26 +22511,22 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22511
22511
|
f.current.add(A);
|
|
22512
22512
|
else if (f.current.has(A)) {
|
|
22513
22513
|
T.add(A);
|
|
22514
|
-
const S =
|
|
22514
|
+
const S = D.getAttribute("data-node-type");
|
|
22515
22515
|
S === "report-url" ? T.add(`${A}__url`) : S === "markdown-name" && T.add(`${A}__name`);
|
|
22516
22516
|
}
|
|
22517
22517
|
});
|
|
22518
22518
|
const w = e.current.__tempVariableValues;
|
|
22519
|
-
if (
|
|
22520
|
-
hasTempValues: !!w,
|
|
22521
|
-
configJustChanged: E,
|
|
22522
|
-
tempValuesKeys: w ? Object.keys(w) : null
|
|
22523
|
-
}), w ? (b = w, setTimeout(() => {
|
|
22519
|
+
if (w ? (b = w, setTimeout(() => {
|
|
22524
22520
|
if (e.current) {
|
|
22525
22521
|
const _ = e.current;
|
|
22526
22522
|
_.__tempVariableValues === w && delete _.__tempVariableValues;
|
|
22527
22523
|
}
|
|
22528
|
-
}, 100)) : E || (e.current.querySelectorAll('[data-type="variable"]').forEach((
|
|
22529
|
-
const
|
|
22530
|
-
if (
|
|
22524
|
+
}, 100)) : E || (e.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
|
|
22525
|
+
const N = P.dataset.key;
|
|
22526
|
+
if (N) {
|
|
22531
22527
|
const B = (() => {
|
|
22532
|
-
if (
|
|
22533
|
-
const q = (
|
|
22528
|
+
if (P.dataset.variableRender === "antd-textarea") {
|
|
22529
|
+
const q = (P.getAttribute("data-value") || "").trim();
|
|
22534
22530
|
if (!q) return "";
|
|
22535
22531
|
try {
|
|
22536
22532
|
return decodeURIComponent(q).replace(/\r\n/g, `
|
|
@@ -22539,83 +22535,76 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22539
22535
|
return q.trim();
|
|
22540
22536
|
}
|
|
22541
22537
|
}
|
|
22542
|
-
const $ = (
|
|
22538
|
+
const $ = (P.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
22543
22539
|
`);
|
|
22544
22540
|
return $.replace(/\n/g, "").trim().length > 0 ? $ : "";
|
|
22545
22541
|
})();
|
|
22546
|
-
B && (
|
|
22547
|
-
}
|
|
22548
|
-
}), e.current.querySelectorAll('[data-type="select"]').forEach((
|
|
22549
|
-
const
|
|
22550
|
-
if (
|
|
22551
|
-
const C = (
|
|
22552
|
-
C && (b[
|
|
22553
|
-
}
|
|
22554
|
-
}), e.current.querySelectorAll('[data-type="searchable-select"]').forEach((
|
|
22555
|
-
const
|
|
22556
|
-
if (
|
|
22557
|
-
const C = (
|
|
22558
|
-
C && (b[
|
|
22559
|
-
}
|
|
22560
|
-
}), e.current.querySelectorAll('[data-type="textarea"]').forEach((
|
|
22561
|
-
const
|
|
22562
|
-
if (
|
|
22563
|
-
const C =
|
|
22564
|
-
C && (b[
|
|
22565
|
-
}
|
|
22566
|
-
}), e.current.querySelectorAll('[data-type="richtext"]').forEach((
|
|
22567
|
-
const
|
|
22568
|
-
if (
|
|
22569
|
-
const C =
|
|
22542
|
+
B && (P.getAttribute("data-node-type") === "report-url" ? b[`${N}__url`] = B : P.getAttribute("data-node-type") === "markdown-name" ? b[`${N}__name`] = B : b[N] = B);
|
|
22543
|
+
}
|
|
22544
|
+
}), e.current.querySelectorAll('[data-type="select"]').forEach((P) => {
|
|
22545
|
+
const N = P.dataset.key;
|
|
22546
|
+
if (N) {
|
|
22547
|
+
const C = (P.getAttribute("data-value") || "").trim();
|
|
22548
|
+
C && (b[N] = C);
|
|
22549
|
+
}
|
|
22550
|
+
}), e.current.querySelectorAll('[data-type="searchable-select"]').forEach((P) => {
|
|
22551
|
+
const N = P.dataset.key;
|
|
22552
|
+
if (N) {
|
|
22553
|
+
const C = (P.getAttribute("data-value") || "").trim();
|
|
22554
|
+
C && (b[N] = C);
|
|
22555
|
+
}
|
|
22556
|
+
}), e.current.querySelectorAll('[data-type="textarea"]').forEach((P) => {
|
|
22557
|
+
const N = P.dataset.key;
|
|
22558
|
+
if (N) {
|
|
22559
|
+
const C = P.value.replace(/[\u200B]/g, "").trim();
|
|
22560
|
+
C && (b[N] = C);
|
|
22561
|
+
}
|
|
22562
|
+
}), e.current.querySelectorAll('[data-type="richtext"]').forEach((P) => {
|
|
22563
|
+
const N = P.dataset.key;
|
|
22564
|
+
if (N) {
|
|
22565
|
+
const C = P.getAttribute("data-node-type") || "", B = C === "report-module" || C === "markdown-module", $ = B ? (P.innerHTML || "").replace(/[\u200B]/g, "").trim() : (P.textContent || "").replace(/[\u200B]/g, "").trim();
|
|
22570
22566
|
if (B) {
|
|
22571
|
-
const H = Number.parseInt(
|
|
22572
|
-
b[`${
|
|
22573
|
-
} else $ && (b[
|
|
22574
|
-
}
|
|
22575
|
-
}), e.current.querySelectorAll('[data-type="datepicker"]').forEach((
|
|
22576
|
-
const
|
|
22577
|
-
if (
|
|
22578
|
-
const C = (
|
|
22579
|
-
C && (b[
|
|
22580
|
-
}
|
|
22581
|
-
}), e.current.querySelectorAll('[data-type="number-input"]').forEach((
|
|
22582
|
-
const
|
|
22583
|
-
if (
|
|
22584
|
-
const C = (
|
|
22585
|
-
C && (b[
|
|
22567
|
+
const H = Number.parseInt(P.getAttribute("data-module-index") || "0", 10);
|
|
22568
|
+
b[`${N}__module_${Number.isFinite(H) ? H : 0}`] = $;
|
|
22569
|
+
} else $ && (b[N] = $);
|
|
22570
|
+
}
|
|
22571
|
+
}), e.current.querySelectorAll('[data-type="datepicker"]').forEach((P) => {
|
|
22572
|
+
const N = P.dataset.key;
|
|
22573
|
+
if (N) {
|
|
22574
|
+
const C = (P.getAttribute("data-value") || "").trim();
|
|
22575
|
+
C && (b[N] = C);
|
|
22576
|
+
}
|
|
22577
|
+
}), e.current.querySelectorAll('[data-type="number-input"]').forEach((P) => {
|
|
22578
|
+
const N = P.dataset.key;
|
|
22579
|
+
if (N) {
|
|
22580
|
+
const C = (P.value || "").trim();
|
|
22581
|
+
C && (b[N] = C);
|
|
22586
22582
|
}
|
|
22587
22583
|
})), l && Object.keys(l).length > 0) {
|
|
22588
22584
|
const _ = new Set(
|
|
22589
22585
|
t.filter((A) => A.type === "upload" && A.key).map((A) => A.key)
|
|
22590
|
-
),
|
|
22586
|
+
), D = {};
|
|
22591
22587
|
E || Object.entries(l).forEach(([A, x]) => {
|
|
22592
22588
|
if (!Array.isArray(x)) return;
|
|
22593
22589
|
let S = 0;
|
|
22594
22590
|
for (let O = 0; O < x.length; O++)
|
|
22595
22591
|
`${A}_${O}` in b && S++;
|
|
22596
|
-
let
|
|
22592
|
+
let k = -1;
|
|
22597
22593
|
for (let O = 0; O < x.length; O++)
|
|
22598
|
-
f.current.has(`${A}_${O}`) && (
|
|
22599
|
-
if (
|
|
22594
|
+
f.current.has(`${A}_${O}`) && (k = O);
|
|
22595
|
+
if (k >= S && S < x.length)
|
|
22600
22596
|
for (let O = S; O < x.length; O++)
|
|
22601
22597
|
T.add(`${A}_${O}`);
|
|
22602
22598
|
}), Object.entries(l).forEach(([A, x]) => {
|
|
22603
|
-
_.has(A) || (Array.isArray(x) ? x.forEach((S,
|
|
22604
|
-
S != null && String(S).trim() !== "" && (
|
|
22605
|
-
}) : x != null && String(x).trim() !== "" && (t.find((
|
|
22606
|
-
}), Object.entries(
|
|
22607
|
-
const S = A in b,
|
|
22608
|
-
|
|
22609
|
-
|
|
22610
|
-
|
|
22611
|
-
|
|
22612
|
-
domValue: b[A],
|
|
22613
|
-
nodeValue: x,
|
|
22614
|
-
prevValue: y.current[A]
|
|
22615
|
-
}), !N && (!S || O) && (b[A] = x);
|
|
22616
|
-
}), y.current = P;
|
|
22617
|
-
}
|
|
22618
|
-
if (console.log("[RTE-init] FINAL variableValues", { ...b }), BT(
|
|
22599
|
+
_.has(A) || (Array.isArray(x) ? x.forEach((S, k) => {
|
|
22600
|
+
S != null && String(S).trim() !== "" && (D[`${A}_${k}`] = String(S));
|
|
22601
|
+
}) : x != null && String(x).trim() !== "" && (t.find((k) => k.key === A && k.type === "report-url") ? D[`${A}__url`] = String(x) : D[A] = String(x)));
|
|
22602
|
+
}), Object.entries(D).forEach(([A, x]) => {
|
|
22603
|
+
const S = A in b, k = T.has(A), O = y.current[A] !== x;
|
|
22604
|
+
!k && (!S || O) && (b[A] = x);
|
|
22605
|
+
}), y.current = D;
|
|
22606
|
+
}
|
|
22607
|
+
if (BT(
|
|
22619
22608
|
e,
|
|
22620
22609
|
t,
|
|
22621
22610
|
n,
|
|
@@ -22628,7 +22617,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22628
22617
|
), E && (p.current = !1), setTimeout(() => {
|
|
22629
22618
|
Nr(e);
|
|
22630
22619
|
}, 0), i?.current) {
|
|
22631
|
-
const { key: _, offset:
|
|
22620
|
+
const { key: _, offset: D } = i.current;
|
|
22632
22621
|
setTimeout(() => {
|
|
22633
22622
|
if (!e.current) return;
|
|
22634
22623
|
const A = e.current.querySelector(
|
|
@@ -22641,7 +22630,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22641
22630
|
x.focus();
|
|
22642
22631
|
try {
|
|
22643
22632
|
const S = x.value?.length ?? 0;
|
|
22644
|
-
x.setSelectionRange(Math.min(
|
|
22633
|
+
x.setSelectionRange(Math.min(D, S), Math.min(D, S));
|
|
22645
22634
|
} catch {
|
|
22646
22635
|
}
|
|
22647
22636
|
i.current = null;
|
|
@@ -22654,23 +22643,23 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
|
|
|
22654
22643
|
NodeFilter.SHOW_TEXT,
|
|
22655
22644
|
null
|
|
22656
22645
|
);
|
|
22657
|
-
let
|
|
22646
|
+
let k = 0, O = null, P = 0;
|
|
22658
22647
|
for (; S.nextNode(); ) {
|
|
22659
|
-
const
|
|
22660
|
-
if (
|
|
22661
|
-
O =
|
|
22648
|
+
const N = S.currentNode, C = N.textContent?.length || 0;
|
|
22649
|
+
if (k + C >= D) {
|
|
22650
|
+
O = N, P = D - k;
|
|
22662
22651
|
break;
|
|
22663
22652
|
}
|
|
22664
|
-
|
|
22653
|
+
k += C;
|
|
22665
22654
|
}
|
|
22666
22655
|
if (O) {
|
|
22667
|
-
x.setStart(O, Math.min(
|
|
22668
|
-
const
|
|
22669
|
-
|
|
22656
|
+
x.setStart(O, Math.min(P, O.textContent?.length || 0)), x.collapse(!0);
|
|
22657
|
+
const N = window.getSelection();
|
|
22658
|
+
N && (N.removeAllRanges(), N.addRange(x), A.focus());
|
|
22670
22659
|
} else {
|
|
22671
22660
|
x.selectNodeContents(A), x.collapse(!1);
|
|
22672
|
-
const
|
|
22673
|
-
|
|
22661
|
+
const N = window.getSelection();
|
|
22662
|
+
N && (N.removeAllRanges(), N.addRange(x), A.focus());
|
|
22674
22663
|
}
|
|
22675
22664
|
} catch {
|
|
22676
22665
|
const x = document.createRange();
|
|
@@ -22895,15 +22884,15 @@ function VT(e, t) {
|
|
|
22895
22884
|
const w = T.anchorNode;
|
|
22896
22885
|
if (!w || !e.current.contains(w))
|
|
22897
22886
|
return;
|
|
22898
|
-
let _ = !1,
|
|
22887
|
+
let _ = !1, D = !1;
|
|
22899
22888
|
if (w.nodeType === Node.ELEMENT_NODE) {
|
|
22900
22889
|
const x = w;
|
|
22901
|
-
(x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (
|
|
22890
|
+
(x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (D = !0);
|
|
22902
22891
|
} else if (w.parentElement) {
|
|
22903
22892
|
const x = w.parentElement;
|
|
22904
|
-
(x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (
|
|
22893
|
+
(x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (D = !0);
|
|
22905
22894
|
}
|
|
22906
|
-
if (_ ||
|
|
22895
|
+
if (_ || D)
|
|
22907
22896
|
return;
|
|
22908
22897
|
let A = null;
|
|
22909
22898
|
if (w.nodeType === Node.ELEMENT_NODE ? A = w.closest('[data-type="variable"]') : w.nodeType === Node.TEXT_NODE && w.parentElement && (A = w.parentElement.closest('[data-type="variable"]')), !A) {
|
|
@@ -22912,14 +22901,14 @@ function VT(e, t) {
|
|
|
22912
22901
|
const x = e.current.querySelectorAll('[data-type="variable"]');
|
|
22913
22902
|
if (x.length > 0) {
|
|
22914
22903
|
let S = null;
|
|
22915
|
-
for (const
|
|
22916
|
-
if (
|
|
22917
|
-
S =
|
|
22904
|
+
for (const k of Array.from(x))
|
|
22905
|
+
if (k.style.display !== "none") {
|
|
22906
|
+
S = k;
|
|
22918
22907
|
break;
|
|
22919
22908
|
}
|
|
22920
22909
|
if (!S && x.length > 0 && (S = x[0]), S) {
|
|
22921
|
-
const
|
|
22922
|
-
|
|
22910
|
+
const k = document.createRange();
|
|
22911
|
+
k.selectNodeContents(S), k.collapse(!1), T.removeAllRanges(), T.addRange(k), S.focus();
|
|
22923
22912
|
} else
|
|
22924
22913
|
T.removeAllRanges();
|
|
22925
22914
|
} else
|
|
@@ -22937,60 +22926,60 @@ function ml() {
|
|
|
22937
22926
|
(function(n, r) {
|
|
22938
22927
|
e.exports = r();
|
|
22939
22928
|
})(GT, function() {
|
|
22940
|
-
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", c = "week", f = "month", g = "quarter", p = "year", y = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
22941
|
-
var C = ["th", "st", "nd", "rd"], B =
|
|
22942
|
-
return "[" +
|
|
22943
|
-
} }, T = function(
|
|
22944
|
-
var $ = String(
|
|
22945
|
-
return !$ || $.length >= C ?
|
|
22946
|
-
}, v = { s: T, z: function(
|
|
22947
|
-
var C = -
|
|
22929
|
+
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", c = "week", f = "month", g = "quarter", p = "year", y = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
|
22930
|
+
var C = ["th", "st", "nd", "rd"], B = N % 100;
|
|
22931
|
+
return "[" + N + (C[(B - 20) % 10] || C[B] || C[0]) + "]";
|
|
22932
|
+
} }, T = function(N, C, B) {
|
|
22933
|
+
var $ = String(N);
|
|
22934
|
+
return !$ || $.length >= C ? N : "" + Array(C + 1 - $.length).join(B) + N;
|
|
22935
|
+
}, v = { s: T, z: function(N) {
|
|
22936
|
+
var C = -N.utcOffset(), B = Math.abs(C), $ = Math.floor(B / 60), H = B % 60;
|
|
22948
22937
|
return (C <= 0 ? "+" : "-") + T($, 2, "0") + ":" + T(H, 2, "0");
|
|
22949
|
-
}, m: function
|
|
22950
|
-
if (C.date() < B.date()) return -
|
|
22938
|
+
}, m: function N(C, B) {
|
|
22939
|
+
if (C.date() < B.date()) return -N(B, C);
|
|
22951
22940
|
var $ = 12 * (B.year() - C.year()) + (B.month() - C.month()), H = C.clone().add($, f), q = B - H < 0, I = C.clone().add($ + (q ? -1 : 1), f);
|
|
22952
22941
|
return +(-($ + (B - H) / (q ? H - I : I - H)) || 0);
|
|
22953
|
-
}, a: function(
|
|
22954
|
-
return
|
|
22955
|
-
}, p: function(
|
|
22956
|
-
return { M: f, y: p, w: c, d: l, D: y, h: u, m: o, s, ms: i, Q: g }[
|
|
22957
|
-
}, u: function(
|
|
22958
|
-
return
|
|
22942
|
+
}, a: function(N) {
|
|
22943
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
22944
|
+
}, p: function(N) {
|
|
22945
|
+
return { M: f, y: p, w: c, d: l, D: y, h: u, m: o, s, ms: i, Q: g }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
|
22946
|
+
}, u: function(N) {
|
|
22947
|
+
return N === void 0;
|
|
22959
22948
|
} }, w = "en", _ = {};
|
|
22960
22949
|
_[w] = b;
|
|
22961
|
-
var
|
|
22962
|
-
return
|
|
22963
|
-
}, x = function
|
|
22950
|
+
var D = "$isDayjsObject", A = function(N) {
|
|
22951
|
+
return N instanceof O || !(!N || !N[D]);
|
|
22952
|
+
}, x = function N(C, B, $) {
|
|
22964
22953
|
var H;
|
|
22965
22954
|
if (!C) return w;
|
|
22966
22955
|
if (typeof C == "string") {
|
|
22967
22956
|
var q = C.toLowerCase();
|
|
22968
22957
|
_[q] && (H = q), B && (_[q] = B, H = q);
|
|
22969
22958
|
var I = C.split("-");
|
|
22970
|
-
if (!H && I.length > 1) return
|
|
22959
|
+
if (!H && I.length > 1) return N(I[0]);
|
|
22971
22960
|
} else {
|
|
22972
22961
|
var z = C.name;
|
|
22973
22962
|
_[z] = C, H = z;
|
|
22974
22963
|
}
|
|
22975
22964
|
return !$ && H && (w = H), H || !$ && w;
|
|
22976
|
-
}, S = function(
|
|
22977
|
-
if (A(
|
|
22965
|
+
}, S = function(N, C) {
|
|
22966
|
+
if (A(N)) return N.clone();
|
|
22978
22967
|
var B = typeof C == "object" ? C : {};
|
|
22979
|
-
return B.date =
|
|
22980
|
-
},
|
|
22981
|
-
|
|
22982
|
-
return S(
|
|
22968
|
+
return B.date = N, B.args = arguments, new O(B);
|
|
22969
|
+
}, k = v;
|
|
22970
|
+
k.l = x, k.i = A, k.w = function(N, C) {
|
|
22971
|
+
return S(N, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
22983
22972
|
};
|
|
22984
22973
|
var O = function() {
|
|
22985
|
-
function
|
|
22986
|
-
this.$L = x(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[
|
|
22974
|
+
function N(B) {
|
|
22975
|
+
this.$L = x(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[D] = !0;
|
|
22987
22976
|
}
|
|
22988
|
-
var C =
|
|
22977
|
+
var C = N.prototype;
|
|
22989
22978
|
return C.parse = function(B) {
|
|
22990
22979
|
this.$d = function($) {
|
|
22991
22980
|
var H = $.date, q = $.utc;
|
|
22992
22981
|
if (H === null) return /* @__PURE__ */ new Date(NaN);
|
|
22993
|
-
if (
|
|
22982
|
+
if (k.u(H)) return /* @__PURE__ */ new Date();
|
|
22994
22983
|
if (H instanceof Date) return new Date(H);
|
|
22995
22984
|
if (typeof H == "string" && !/Z$/i.test(H)) {
|
|
22996
22985
|
var I = H.match(m);
|
|
@@ -23005,7 +22994,7 @@ function ml() {
|
|
|
23005
22994
|
var B = this.$d;
|
|
23006
22995
|
this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
|
|
23007
22996
|
}, C.$utils = function() {
|
|
23008
|
-
return
|
|
22997
|
+
return k;
|
|
23009
22998
|
}, C.isValid = function() {
|
|
23010
22999
|
return this.$d.toString() !== h;
|
|
23011
23000
|
}, C.isSame = function(B, $) {
|
|
@@ -23016,17 +23005,17 @@ function ml() {
|
|
|
23016
23005
|
}, C.isBefore = function(B, $) {
|
|
23017
23006
|
return this.endOf($) < S(B);
|
|
23018
23007
|
}, C.$g = function(B, $, H) {
|
|
23019
|
-
return
|
|
23008
|
+
return k.u(B) ? this[$] : this.set(H, B);
|
|
23020
23009
|
}, C.unix = function() {
|
|
23021
23010
|
return Math.floor(this.valueOf() / 1e3);
|
|
23022
23011
|
}, C.valueOf = function() {
|
|
23023
23012
|
return this.$d.getTime();
|
|
23024
23013
|
}, C.startOf = function(B, $) {
|
|
23025
|
-
var H = this, q = !!
|
|
23026
|
-
var we =
|
|
23014
|
+
var H = this, q = !!k.u($) || $, I = k.p(B), z = function(ce, Ee) {
|
|
23015
|
+
var we = k.w(H.$u ? Date.UTC(H.$y, Ee, ce) : new Date(H.$y, Ee, ce), H);
|
|
23027
23016
|
return q ? we : we.endOf(l);
|
|
23028
23017
|
}, X = function(ce, Ee) {
|
|
23029
|
-
return
|
|
23018
|
+
return k.w(H.toDate()[ce].apply(H.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ee)), H);
|
|
23030
23019
|
}, R = this.$W, W = this.$M, te = this.$D, oe = "set" + (this.$u ? "UTC" : "");
|
|
23031
23020
|
switch (I) {
|
|
23032
23021
|
case p:
|
|
@@ -23051,7 +23040,7 @@ function ml() {
|
|
|
23051
23040
|
}, C.endOf = function(B) {
|
|
23052
23041
|
return this.startOf(B, !1);
|
|
23053
23042
|
}, C.$set = function(B, $) {
|
|
23054
|
-
var H, q =
|
|
23043
|
+
var H, q = k.p(B), I = "set" + (this.$u ? "UTC" : ""), z = (H = {}, H[l] = I + "Date", H[y] = I + "Date", H[f] = I + "Month", H[p] = I + "FullYear", H[u] = I + "Hours", H[o] = I + "Minutes", H[s] = I + "Seconds", H[i] = I + "Milliseconds", H)[q], X = q === l ? this.$D + ($ - this.$W) : $;
|
|
23055
23044
|
if (q === f || q === p) {
|
|
23056
23045
|
var R = this.clone().set(y, 1);
|
|
23057
23046
|
R.$d[z](X), R.init(), this.$d = R.set(y, Math.min(this.$D, R.daysInMonth())).$d;
|
|
@@ -23060,29 +23049,29 @@ function ml() {
|
|
|
23060
23049
|
}, C.set = function(B, $) {
|
|
23061
23050
|
return this.clone().$set(B, $);
|
|
23062
23051
|
}, C.get = function(B) {
|
|
23063
|
-
return this[
|
|
23052
|
+
return this[k.p(B)]();
|
|
23064
23053
|
}, C.add = function(B, $) {
|
|
23065
23054
|
var H, q = this;
|
|
23066
23055
|
B = Number(B);
|
|
23067
|
-
var I =
|
|
23056
|
+
var I = k.p($), z = function(W) {
|
|
23068
23057
|
var te = S(q);
|
|
23069
|
-
return
|
|
23058
|
+
return k.w(te.date(te.date() + Math.round(W * B)), q);
|
|
23070
23059
|
};
|
|
23071
23060
|
if (I === f) return this.set(f, this.$M + B);
|
|
23072
23061
|
if (I === p) return this.set(p, this.$y + B);
|
|
23073
23062
|
if (I === l) return z(1);
|
|
23074
23063
|
if (I === c) return z(7);
|
|
23075
23064
|
var X = (H = {}, H[o] = r, H[u] = a, H[s] = n, H)[I] || 1, R = this.$d.getTime() + B * X;
|
|
23076
|
-
return
|
|
23065
|
+
return k.w(R, this);
|
|
23077
23066
|
}, C.subtract = function(B, $) {
|
|
23078
23067
|
return this.add(-1 * B, $);
|
|
23079
23068
|
}, C.format = function(B) {
|
|
23080
23069
|
var $ = this, H = this.$locale();
|
|
23081
23070
|
if (!this.isValid()) return H.invalidDate || h;
|
|
23082
|
-
var q = B || "YYYY-MM-DDTHH:mm:ssZ", I =
|
|
23071
|
+
var q = B || "YYYY-MM-DDTHH:mm:ssZ", I = k.z(this), z = this.$H, X = this.$m, R = this.$M, W = H.weekdays, te = H.months, oe = H.meridiem, j = function(Ee, we, Ve, Tt) {
|
|
23083
23072
|
return Ee && (Ee[we] || Ee($, q)) || Ve[we].slice(0, Tt);
|
|
23084
23073
|
}, re = function(Ee) {
|
|
23085
|
-
return
|
|
23074
|
+
return k.s(z % 12 || 12, Ee, "0");
|
|
23086
23075
|
}, ce = oe || function(Ee, we, Ve) {
|
|
23087
23076
|
var Tt = Ee < 12 ? "AM" : "PM";
|
|
23088
23077
|
return Ve ? Tt.toLowerCase() : Tt;
|
|
@@ -23093,11 +23082,11 @@ function ml() {
|
|
|
23093
23082
|
case "YY":
|
|
23094
23083
|
return String($.$y).slice(-2);
|
|
23095
23084
|
case "YYYY":
|
|
23096
|
-
return
|
|
23085
|
+
return k.s($.$y, 4, "0");
|
|
23097
23086
|
case "M":
|
|
23098
23087
|
return R + 1;
|
|
23099
23088
|
case "MM":
|
|
23100
|
-
return
|
|
23089
|
+
return k.s(R + 1, 2, "0");
|
|
23101
23090
|
case "MMM":
|
|
23102
23091
|
return j(H.monthsShort, R, te, 3);
|
|
23103
23092
|
case "MMMM":
|
|
@@ -23105,7 +23094,7 @@ function ml() {
|
|
|
23105
23094
|
case "D":
|
|
23106
23095
|
return $.$D;
|
|
23107
23096
|
case "DD":
|
|
23108
|
-
return
|
|
23097
|
+
return k.s($.$D, 2, "0");
|
|
23109
23098
|
case "d":
|
|
23110
23099
|
return String($.$W);
|
|
23111
23100
|
case "dd":
|
|
@@ -23117,7 +23106,7 @@ function ml() {
|
|
|
23117
23106
|
case "H":
|
|
23118
23107
|
return String(z);
|
|
23119
23108
|
case "HH":
|
|
23120
|
-
return
|
|
23109
|
+
return k.s(z, 2, "0");
|
|
23121
23110
|
case "h":
|
|
23122
23111
|
return re(1);
|
|
23123
23112
|
case "hh":
|
|
@@ -23129,13 +23118,13 @@ function ml() {
|
|
|
23129
23118
|
case "m":
|
|
23130
23119
|
return String(X);
|
|
23131
23120
|
case "mm":
|
|
23132
|
-
return
|
|
23121
|
+
return k.s(X, 2, "0");
|
|
23133
23122
|
case "s":
|
|
23134
23123
|
return String($.$s);
|
|
23135
23124
|
case "ss":
|
|
23136
|
-
return
|
|
23125
|
+
return k.s($.$s, 2, "0");
|
|
23137
23126
|
case "SSS":
|
|
23138
|
-
return
|
|
23127
|
+
return k.s($.$ms, 3, "0");
|
|
23139
23128
|
case "Z":
|
|
23140
23129
|
return I;
|
|
23141
23130
|
}
|
|
@@ -23145,8 +23134,8 @@ function ml() {
|
|
|
23145
23134
|
}, C.utcOffset = function() {
|
|
23146
23135
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
23147
23136
|
}, C.diff = function(B, $, H) {
|
|
23148
|
-
var q, I = this, z =
|
|
23149
|
-
return
|
|
23137
|
+
var q, I = this, z = k.p($), X = S(B), R = (X.utcOffset() - this.utcOffset()) * r, W = this - X, te = function() {
|
|
23138
|
+
return k.m(I, X);
|
|
23150
23139
|
};
|
|
23151
23140
|
switch (z) {
|
|
23152
23141
|
case p:
|
|
@@ -23176,7 +23165,7 @@ function ml() {
|
|
|
23176
23165
|
default:
|
|
23177
23166
|
q = W;
|
|
23178
23167
|
}
|
|
23179
|
-
return H ? q :
|
|
23168
|
+
return H ? q : k.a(q);
|
|
23180
23169
|
}, C.daysInMonth = function() {
|
|
23181
23170
|
return this.endOf(f).$D;
|
|
23182
23171
|
}, C.$locale = function() {
|
|
@@ -23186,7 +23175,7 @@ function ml() {
|
|
|
23186
23175
|
var H = this.clone(), q = x(B, $, !0);
|
|
23187
23176
|
return q && (H.$L = q), H;
|
|
23188
23177
|
}, C.clone = function() {
|
|
23189
|
-
return
|
|
23178
|
+
return k.w(this.$d, this);
|
|
23190
23179
|
}, C.toDate = function() {
|
|
23191
23180
|
return new Date(this.valueOf());
|
|
23192
23181
|
}, C.toJSON = function() {
|
|
@@ -23195,16 +23184,16 @@ function ml() {
|
|
|
23195
23184
|
return this.$d.toISOString();
|
|
23196
23185
|
}, C.toString = function() {
|
|
23197
23186
|
return this.$d.toUTCString();
|
|
23198
|
-
},
|
|
23199
|
-
}(),
|
|
23200
|
-
return S.prototype =
|
|
23201
|
-
|
|
23202
|
-
return this.$g(C,
|
|
23187
|
+
}, N;
|
|
23188
|
+
}(), P = O.prototype;
|
|
23189
|
+
return S.prototype = P, [["$ms", i], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", f], ["$y", p], ["$D", y]].forEach(function(N) {
|
|
23190
|
+
P[N[1]] = function(C) {
|
|
23191
|
+
return this.$g(C, N[0], N[1]);
|
|
23203
23192
|
};
|
|
23204
|
-
}), S.extend = function(
|
|
23205
|
-
return
|
|
23206
|
-
}, S.locale = x, S.isDayjs = A, S.unix = function(
|
|
23207
|
-
return S(1e3 *
|
|
23193
|
+
}), S.extend = function(N, C) {
|
|
23194
|
+
return N.$i || (N(C, O, S), N.$i = !0), S;
|
|
23195
|
+
}, S.locale = x, S.isDayjs = A, S.unix = function(N) {
|
|
23196
|
+
return S(1e3 * N);
|
|
23208
23197
|
}, S.en = _[w], S.Ls = _, S.p = {}, S;
|
|
23209
23198
|
});
|
|
23210
23199
|
}(hr)), hr.exports;
|
|
@@ -23463,14 +23452,14 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
|
|
|
23463
23452
|
reportAnalyze: v,
|
|
23464
23453
|
markdownAnalyze: w,
|
|
23465
23454
|
markdownNameAnalyze: _,
|
|
23466
|
-
onCollapsedChange:
|
|
23455
|
+
onCollapsedChange: D,
|
|
23467
23456
|
collapseTransitionMs: A = 260,
|
|
23468
23457
|
debugTooltipSticky: x = !1,
|
|
23469
23458
|
nodeValues: S,
|
|
23470
|
-
onFilesChange:
|
|
23459
|
+
onFilesChange: k,
|
|
23471
23460
|
onFooterFilesChange: O,
|
|
23472
|
-
showFooterUpload:
|
|
23473
|
-
videoUrlParse:
|
|
23461
|
+
showFooterUpload: P = !0,
|
|
23462
|
+
videoUrlParse: N,
|
|
23474
23463
|
videoUpload: C
|
|
23475
23464
|
}) => {
|
|
23476
23465
|
const [B, $] = Kl.useMessage(), H = Z(null), q = Z(null), I = Z(null), z = Z(null), X = Z(null), R = Z(null), W = Z("");
|
|
@@ -23480,8 +23469,8 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
|
|
|
23480
23469
|
}
|
|
23481
23470
|
const [te, oe] = ae({});
|
|
23482
23471
|
se(() => {
|
|
23483
|
-
|
|
23484
|
-
}, [te,
|
|
23472
|
+
k?.(te);
|
|
23473
|
+
}, [te, k]);
|
|
23485
23474
|
const [j, re] = ae([]);
|
|
23486
23475
|
se(() => {
|
|
23487
23476
|
O?.(j);
|
|
@@ -23699,7 +23688,7 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
|
|
|
23699
23688
|
er.current(xe, Ie);
|
|
23700
23689
|
}, 100));
|
|
23701
23690
|
}
|
|
23702
|
-
}, [S, e, er]), HT(z, ke, te, yt, x), $T(z, ke, yt, p, x), qT(z, ke, te, yt, x), UT(z, ke, yt, x), zT(z, ke, te, Jn, et, S), Fc(z,
|
|
23691
|
+
}, [S, e, er]), HT(z, ke, te, yt, x), $T(z, ke, yt, p, x), qT(z, ke, te, yt, x), UT(z, ke, yt, x), zT(z, ke, te, Jn, et, S), Fc(z, N, et, Gt, [ke]);
|
|
23703
23692
|
const Il = Hc(C, Gt);
|
|
23704
23693
|
$c(z, et, yt, x), VT(z, mt);
|
|
23705
23694
|
const zi = xc(z), Ll = Ac(z), Vi = Nc(z);
|
|
@@ -23755,7 +23744,7 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
|
|
|
23755
23744
|
const Dl = Qc({
|
|
23756
23745
|
disabled: r,
|
|
23757
23746
|
collapsed: T,
|
|
23758
|
-
onCollapsedChange:
|
|
23747
|
+
onCollapsedChange: D,
|
|
23759
23748
|
config: e,
|
|
23760
23749
|
lockStructure: i,
|
|
23761
23750
|
editorRef: z,
|
|
@@ -24448,35 +24437,35 @@ const ly = ({
|
|
|
24448
24437
|
se(() => {
|
|
24449
24438
|
T.current = e, v.current = l, w.current = p, _.current = o;
|
|
24450
24439
|
});
|
|
24451
|
-
const
|
|
24440
|
+
const D = ue((N, C) => {
|
|
24452
24441
|
let B = 0;
|
|
24453
24442
|
m(!0);
|
|
24454
24443
|
const $ = () => {
|
|
24455
|
-
B <
|
|
24444
|
+
B < N.length ? (u(N.slice(0, B + 1)), B++, b.current = window.setTimeout($, n)) : (m(!1), C?.());
|
|
24456
24445
|
};
|
|
24457
24446
|
$();
|
|
24458
|
-
}, [n]), A = ue((
|
|
24447
|
+
}, [n]), A = ue((N) => {
|
|
24459
24448
|
let C = _.current.length;
|
|
24460
24449
|
const B = () => {
|
|
24461
|
-
C > 0 ? (u(_.current.slice(0, C - 1)), C--, b.current = window.setTimeout(B, n / 2)) :
|
|
24450
|
+
C > 0 ? (u(_.current.slice(0, C - 1)), C--, b.current = window.setTimeout(B, n / 2)) : N?.();
|
|
24462
24451
|
};
|
|
24463
24452
|
B();
|
|
24464
24453
|
}, [n]), x = ue(() => {
|
|
24465
24454
|
if (T.current.length === 0 || w.current) return;
|
|
24466
24455
|
g(!0);
|
|
24467
|
-
const
|
|
24456
|
+
const N = T.current[v.current];
|
|
24468
24457
|
_.current ? A(() => {
|
|
24469
|
-
|
|
24458
|
+
D(N, () => {
|
|
24470
24459
|
E.current = window.setTimeout(() => {
|
|
24471
24460
|
c((C) => (C + 1) % T.current.length), g(!1);
|
|
24472
24461
|
}, 2e3);
|
|
24473
24462
|
});
|
|
24474
|
-
}) :
|
|
24463
|
+
}) : D(N, () => {
|
|
24475
24464
|
E.current = window.setTimeout(() => {
|
|
24476
24465
|
c((C) => (C + 1) % T.current.length), g(!1);
|
|
24477
24466
|
}, 2e3);
|
|
24478
24467
|
});
|
|
24479
|
-
}, [A,
|
|
24468
|
+
}, [A, D]);
|
|
24480
24469
|
return se(() => (r && e.length > 0 && !p && x(), () => {
|
|
24481
24470
|
E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current);
|
|
24482
24471
|
}), [l, p, r, e.length, x]), se(() => {
|
|
@@ -24487,14 +24476,14 @@ const ly = ({
|
|
|
24487
24476
|
{
|
|
24488
24477
|
...s,
|
|
24489
24478
|
value: a,
|
|
24490
|
-
onChange: (
|
|
24491
|
-
i?.(
|
|
24479
|
+
onChange: (N) => {
|
|
24480
|
+
i?.(N.target.value), s.onChange?.(N);
|
|
24492
24481
|
},
|
|
24493
|
-
onFocus: (
|
|
24494
|
-
y(!0), E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current), g(!1), m(!1), s.onFocus?.(
|
|
24482
|
+
onFocus: (N) => {
|
|
24483
|
+
y(!0), E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current), g(!1), m(!1), s.onFocus?.(N);
|
|
24495
24484
|
},
|
|
24496
|
-
onBlur: (
|
|
24497
|
-
y(!1), !a && e.length > 0 && (u(""), c(0)), s.onBlur?.(
|
|
24485
|
+
onBlur: (N) => {
|
|
24486
|
+
y(!1), !a && e.length > 0 && (u(""), c(0)), s.onBlur?.(N);
|
|
24498
24487
|
},
|
|
24499
24488
|
placeholder: p || a ? t : o || t,
|
|
24500
24489
|
style: {
|
|
@@ -24625,27 +24614,27 @@ const cy = ({
|
|
|
24625
24614
|
...p
|
|
24626
24615
|
// 其他原生属性
|
|
24627
24616
|
}) => {
|
|
24628
|
-
const [y, h] = ae(""), [m, E] = ae(0), [b, T] = ae(!1), [v, w] = ae(!1), [_,
|
|
24617
|
+
const [y, h] = ae(""), [m, E] = ae(0), [b, T] = ae(!1), [v, w] = ae(!1), [_, D] = ae(!1), [A, x] = ae(a || ""), S = Z(void 0), k = Z(void 0), O = Z(e), P = Z(m), N = Z(v), C = Z(y), B = Z(null);
|
|
24629
24618
|
se(() => {
|
|
24630
|
-
O.current = e,
|
|
24619
|
+
O.current = e, P.current = m, N.current = v, C.current = y;
|
|
24631
24620
|
});
|
|
24632
24621
|
const $ = ue((j, re) => {
|
|
24633
24622
|
let ce = 0;
|
|
24634
|
-
|
|
24623
|
+
D(!0);
|
|
24635
24624
|
const Ee = () => {
|
|
24636
|
-
ce < j.length ? (h(j.slice(0, ce + 1)), ce++,
|
|
24625
|
+
ce < j.length ? (h(j.slice(0, ce + 1)), ce++, k.current = window.setTimeout(Ee, n)) : (D(!1), re?.());
|
|
24637
24626
|
};
|
|
24638
24627
|
Ee();
|
|
24639
24628
|
}, [n]), H = ue((j) => {
|
|
24640
24629
|
let re = C.current.length;
|
|
24641
24630
|
const ce = () => {
|
|
24642
|
-
re > 0 ? (h(C.current.slice(0, re - 1)), re--,
|
|
24631
|
+
re > 0 ? (h(C.current.slice(0, re - 1)), re--, k.current = window.setTimeout(ce, n / 2)) : j?.();
|
|
24643
24632
|
};
|
|
24644
24633
|
ce();
|
|
24645
24634
|
}, [n]), q = ue(() => {
|
|
24646
|
-
if (O.current.length === 0 ||
|
|
24635
|
+
if (O.current.length === 0 || N.current) return;
|
|
24647
24636
|
T(!0);
|
|
24648
|
-
const j = O.current[
|
|
24637
|
+
const j = O.current[P.current];
|
|
24649
24638
|
C.current ? H(() => {
|
|
24650
24639
|
$(j, () => {
|
|
24651
24640
|
S.current = window.setTimeout(() => {
|
|
@@ -24659,12 +24648,12 @@ const cy = ({
|
|
|
24659
24648
|
});
|
|
24660
24649
|
}, [H, $]);
|
|
24661
24650
|
se(() => (r && e.length > 0 && !v && q(), () => {
|
|
24662
|
-
S.current && window.clearTimeout(S.current),
|
|
24651
|
+
S.current && window.clearTimeout(S.current), k.current && window.clearTimeout(k.current);
|
|
24663
24652
|
}), [m, v, r, e.length, q]), se(() => {
|
|
24664
24653
|
!b && r && e.length > 0 && !v && q();
|
|
24665
24654
|
}, [m, b, r, e.length, v, q]);
|
|
24666
24655
|
const I = (j) => {
|
|
24667
|
-
w(!0), S.current && window.clearTimeout(S.current),
|
|
24656
|
+
w(!0), S.current && window.clearTimeout(S.current), k.current && window.clearTimeout(k.current), T(!1), D(!1), p.onFocus?.(j);
|
|
24668
24657
|
}, z = (j) => {
|
|
24669
24658
|
w(!1), !a && e.length > 0 && (h(""), E(0)), p.onBlur?.(j);
|
|
24670
24659
|
}, X = (j) => {
|
|
@@ -24915,21 +24904,21 @@ const El = ({
|
|
|
24915
24904
|
style: y,
|
|
24916
24905
|
...h
|
|
24917
24906
|
}) => {
|
|
24918
|
-
const m = Z(null), [E, b] = ae(!1), [T, v] = ae(!1), [w, _] = ae(!1),
|
|
24907
|
+
const m = Z(null), [E, b] = ae(!1), [T, v] = ae(!1), [w, _] = ae(!1), D = ue(() => {
|
|
24919
24908
|
m.current && (m.current.play(), b(!0), c?.());
|
|
24920
24909
|
}, [c]), A = ue(() => {
|
|
24921
24910
|
m.current && (m.current.pause(), b(!1), f?.());
|
|
24922
24911
|
}, [f]), x = ue(($) => {
|
|
24923
|
-
$.stopPropagation(), E ? A() :
|
|
24924
|
-
}, [E,
|
|
24925
|
-
v(!0), o && !E &&
|
|
24926
|
-
}, [o, E,
|
|
24912
|
+
$.stopPropagation(), E ? A() : D();
|
|
24913
|
+
}, [E, D, A]), S = ue(() => {
|
|
24914
|
+
v(!0), o && !E && D();
|
|
24915
|
+
}, [o, E, D]), k = ue(() => {
|
|
24927
24916
|
v(!1), o && E && A();
|
|
24928
24917
|
}, [o, E, A]), O = ue(() => {
|
|
24929
24918
|
_(!0), l?.();
|
|
24930
|
-
}, [l]),
|
|
24919
|
+
}, [l]), P = ue(() => {
|
|
24931
24920
|
b(!0), c?.();
|
|
24932
|
-
}, [c]),
|
|
24921
|
+
}, [c]), N = ue(() => {
|
|
24933
24922
|
b(!1), f?.();
|
|
24934
24923
|
}, [f]), C = ue(() => {
|
|
24935
24924
|
b(!1), g?.();
|
|
@@ -24953,7 +24942,7 @@ const El = ({
|
|
|
24953
24942
|
},
|
|
24954
24943
|
bordered: !1,
|
|
24955
24944
|
onMouseEnter: S,
|
|
24956
|
-
onMouseLeave:
|
|
24945
|
+
onMouseLeave: k,
|
|
24957
24946
|
onClick: B,
|
|
24958
24947
|
children: /* @__PURE__ */ fe("div", { className: "video-card-container", children: [
|
|
24959
24948
|
/* @__PURE__ */ V(
|
|
@@ -24964,8 +24953,8 @@ const El = ({
|
|
|
24964
24953
|
poster: t,
|
|
24965
24954
|
preload: "metadata",
|
|
24966
24955
|
onLoadedData: O,
|
|
24967
|
-
onPlay:
|
|
24968
|
-
onPause:
|
|
24956
|
+
onPlay: P,
|
|
24957
|
+
onPause: N,
|
|
24969
24958
|
onEnded: C,
|
|
24970
24959
|
muted: !0,
|
|
24971
24960
|
loop: !0
|
|
@@ -25110,11 +25099,11 @@ const dy = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
25110
25099
|
}, [r, t, a]), p = ue(() => {
|
|
25111
25100
|
if (!u.current) return;
|
|
25112
25101
|
const m = l, E = u.current, T = (E.offsetWidth - n * (m - 1)) / m, v = new Array(m).fill(0);
|
|
25113
|
-
e.forEach((_,
|
|
25114
|
-
const A = _.id ||
|
|
25102
|
+
e.forEach((_, D) => {
|
|
25103
|
+
const A = _.id || D, x = f.current.get(A);
|
|
25115
25104
|
if (!x) return;
|
|
25116
|
-
const S = Math.min(...v),
|
|
25117
|
-
x.style.position = "absolute", x.style.left = `${O}px`, x.style.top = `${
|
|
25105
|
+
const S = Math.min(...v), k = v.indexOf(S), O = k * (T + n), P = v[k];
|
|
25106
|
+
x.style.position = "absolute", x.style.left = `${O}px`, x.style.top = `${P}px`, x.style.width = `${T}px`, v[k] += x.offsetHeight + n;
|
|
25118
25107
|
});
|
|
25119
25108
|
const w = Math.max(...v);
|
|
25120
25109
|
E.style.height = `${w}px`;
|
|
@@ -25413,11 +25402,11 @@ const lr = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
25413
25402
|
const v = a[T];
|
|
25414
25403
|
let w = v.split(/[\r\n]+/).map((A) => A.trim()).filter((A) => A !== "");
|
|
25415
25404
|
w.length < c && (w = by(v));
|
|
25416
|
-
const _ = (A) => w.length === c * 2 ? w[A * 2] ?? "" : w[A] ?? "",
|
|
25417
|
-
|
|
25418
|
-
const S = _(x),
|
|
25419
|
-
|
|
25420
|
-
}), f.push(
|
|
25405
|
+
const _ = (A) => w.length === c * 2 ? w[A * 2] ?? "" : w[A] ?? "", D = {};
|
|
25406
|
+
D[An("日期")] = E, l.forEach((A, x) => {
|
|
25407
|
+
const S = _(x), k = Ey(S), O = An(A);
|
|
25408
|
+
D[O] = k;
|
|
25409
|
+
}), f.push(D);
|
|
25421
25410
|
});
|
|
25422
25411
|
const g = o.filter((E) => {
|
|
25423
25412
|
const b = An(E);
|