bi-components-library 1.3.8-next.3 → 1.3.8-next.4
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 +299 -292
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -912,7 +912,7 @@ _t.prototype.property = "";
|
|
|
912
912
|
_t.prototype.spaceSeparated = !1;
|
|
913
913
|
_t.prototype.space = void 0;
|
|
914
914
|
let ig = 0;
|
|
915
|
-
const ke = Cr(), Ge = Cr(), ro = Cr(), te = Cr(), Be = Cr(),
|
|
915
|
+
const ke = Cr(), Ge = Cr(), ro = Cr(), te = Cr(), Be = Cr(), Ur = Cr(), Mt = Cr();
|
|
916
916
|
function Cr() {
|
|
917
917
|
return 2 ** ++ig;
|
|
918
918
|
}
|
|
@@ -921,7 +921,7 @@ const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
921
921
|
boolean: ke,
|
|
922
922
|
booleanish: Ge,
|
|
923
923
|
commaOrSpaceSeparated: Mt,
|
|
924
|
-
commaSeparated:
|
|
924
|
+
commaSeparated: Ur,
|
|
925
925
|
number: te,
|
|
926
926
|
overloadedBoolean: ro,
|
|
927
927
|
spaceSeparated: Be
|
|
@@ -956,7 +956,7 @@ Jo.prototype.defined = !0;
|
|
|
956
956
|
function Mc(e, t, n) {
|
|
957
957
|
n && (e[t] = n);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Xr(e) {
|
|
960
960
|
const t = {}, n = {};
|
|
961
961
|
for (const [r, l] of Object.entries(e.properties)) {
|
|
962
962
|
const a = new Jo(
|
|
@@ -969,7 +969,7 @@ function Qr(e) {
|
|
|
969
969
|
}
|
|
970
970
|
return new ea(t, n, e.space);
|
|
971
971
|
}
|
|
972
|
-
const Dh =
|
|
972
|
+
const Dh = Xr({
|
|
973
973
|
properties: {
|
|
974
974
|
ariaActiveDescendant: null,
|
|
975
975
|
ariaAtomic: Ge,
|
|
@@ -1031,7 +1031,7 @@ function Lh(e, t) {
|
|
|
1031
1031
|
function Ph(e, t) {
|
|
1032
1032
|
return Lh(e, t.toLowerCase());
|
|
1033
1033
|
}
|
|
1034
|
-
const sg =
|
|
1034
|
+
const sg = Xr({
|
|
1035
1035
|
attributes: {
|
|
1036
1036
|
acceptcharset: "accept-charset",
|
|
1037
1037
|
classname: "class",
|
|
@@ -1042,7 +1042,7 @@ const sg = Qr({
|
|
|
1042
1042
|
properties: {
|
|
1043
1043
|
// Standard Properties.
|
|
1044
1044
|
abbr: null,
|
|
1045
|
-
accept:
|
|
1045
|
+
accept: Ur,
|
|
1046
1046
|
acceptCharset: Be,
|
|
1047
1047
|
accessKey: Be,
|
|
1048
1048
|
action: null,
|
|
@@ -1069,7 +1069,7 @@ const sg = Qr({
|
|
|
1069
1069
|
contentEditable: Ge,
|
|
1070
1070
|
controls: ke,
|
|
1071
1071
|
controlsList: Be,
|
|
1072
|
-
coords: te |
|
|
1072
|
+
coords: te | Ur,
|
|
1073
1073
|
crossOrigin: null,
|
|
1074
1074
|
data: null,
|
|
1075
1075
|
dateTime: null,
|
|
@@ -1392,7 +1392,7 @@ const sg = Qr({
|
|
|
1392
1392
|
},
|
|
1393
1393
|
space: "html",
|
|
1394
1394
|
transform: Ph
|
|
1395
|
-
}), og =
|
|
1395
|
+
}), og = Xr({
|
|
1396
1396
|
attributes: {
|
|
1397
1397
|
accentHeight: "accent-height",
|
|
1398
1398
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1651,9 +1651,9 @@ const sg = Qr({
|
|
|
1651
1651
|
from: null,
|
|
1652
1652
|
fx: null,
|
|
1653
1653
|
fy: null,
|
|
1654
|
-
g1:
|
|
1655
|
-
g2:
|
|
1656
|
-
glyphName:
|
|
1654
|
+
g1: Ur,
|
|
1655
|
+
g2: Ur,
|
|
1656
|
+
glyphName: Ur,
|
|
1657
1657
|
glyphOrientationHorizontal: null,
|
|
1658
1658
|
glyphOrientationVertical: null,
|
|
1659
1659
|
glyphRef: null,
|
|
@@ -1951,7 +1951,7 @@ const sg = Qr({
|
|
|
1951
1951
|
},
|
|
1952
1952
|
space: "svg",
|
|
1953
1953
|
transform: Lh
|
|
1954
|
-
}), Bh =
|
|
1954
|
+
}), Bh = Xr({
|
|
1955
1955
|
properties: {
|
|
1956
1956
|
xLinkActuate: null,
|
|
1957
1957
|
xLinkArcRole: null,
|
|
@@ -1965,12 +1965,12 @@ const sg = Qr({
|
|
|
1965
1965
|
transform(e, t) {
|
|
1966
1966
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1967
1967
|
}
|
|
1968
|
-
}), Fh =
|
|
1968
|
+
}), Fh = Xr({
|
|
1969
1969
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1970
1970
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1971
1971
|
space: "xmlns",
|
|
1972
1972
|
transform: Ph
|
|
1973
|
-
}), Hh =
|
|
1973
|
+
}), Hh = Xr({
|
|
1974
1974
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1975
1975
|
space: "xml",
|
|
1976
1976
|
transform(e, t) {
|
|
@@ -2032,7 +2032,7 @@ function Uh(e) {
|
|
|
2032
2032
|
function Zo(e) {
|
|
2033
2033
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2034
2034
|
}
|
|
2035
|
-
var
|
|
2035
|
+
var _r = {}, us, Lc;
|
|
2036
2036
|
function pg() {
|
|
2037
2037
|
if (Lc) return us;
|
|
2038
2038
|
Lc = 1;
|
|
@@ -2124,12 +2124,12 @@ function pg() {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
var Pc;
|
|
2126
2126
|
function mg() {
|
|
2127
|
-
if (Pc) return
|
|
2127
|
+
if (Pc) return _r;
|
|
2128
2128
|
Pc = 1;
|
|
2129
|
-
var e =
|
|
2129
|
+
var e = _r && _r.__importDefault || function(r) {
|
|
2130
2130
|
return r && r.__esModule ? r : { default: r };
|
|
2131
2131
|
};
|
|
2132
|
-
Object.defineProperty(
|
|
2132
|
+
Object.defineProperty(_r, "__esModule", { value: !0 }), _r.default = n;
|
|
2133
2133
|
const t = e(pg());
|
|
2134
2134
|
function n(r, l) {
|
|
2135
2135
|
let a = null;
|
|
@@ -2143,7 +2143,7 @@ function mg() {
|
|
|
2143
2143
|
s ? l(u, c, o) : c && (a = a || {}, a[u] = c);
|
|
2144
2144
|
}), a;
|
|
2145
2145
|
}
|
|
2146
|
-
return
|
|
2146
|
+
return _r;
|
|
2147
2147
|
}
|
|
2148
2148
|
var cl = {}, Bc;
|
|
2149
2149
|
function bg() {
|
|
@@ -2693,7 +2693,7 @@ function Kh(e, t) {
|
|
|
2693
2693
|
n > 1114111 ? "�" : String.fromCodePoint(n)
|
|
2694
2694
|
);
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2696
|
+
function zr(e) {
|
|
2697
2697
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2698
2698
|
}
|
|
2699
2699
|
const Zt = $n(/[A-Za-z]/), Dt = $n(/[\dA-Za-z]/), Yg = $n(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -2721,7 +2721,7 @@ function $n(e) {
|
|
|
2721
2721
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function Jr(e) {
|
|
2725
2725
|
const t = [];
|
|
2726
2726
|
let n = -1, r = 0, l = 0;
|
|
2727
2727
|
for (; ++n < e.length; ) {
|
|
@@ -3661,7 +3661,7 @@ function wv(e, t, n) {
|
|
|
3661
3661
|
)(f);
|
|
3662
3662
|
}
|
|
3663
3663
|
function s(f) {
|
|
3664
|
-
return l =
|
|
3664
|
+
return l = zr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), o) : n(f);
|
|
3665
3665
|
}
|
|
3666
3666
|
function o(f) {
|
|
3667
3667
|
return Ye(f) ? dn(e, u)(f) : u(f);
|
|
@@ -4129,7 +4129,7 @@ function Qv(e, t, n) {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return s;
|
|
4131
4131
|
function s(h) {
|
|
4132
|
-
return a ? a._inactive ? d(h) : (i = r.parser.defined.includes(
|
|
4132
|
+
return a ? a._inactive ? d(h) : (i = r.parser.defined.includes(zr(r.sliceSerialize({
|
|
4133
4133
|
start: a.end,
|
|
4134
4134
|
end: r.now()
|
|
4135
4135
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), o) : n(h);
|
|
@@ -4181,7 +4181,7 @@ function Jv(e, t, n) {
|
|
|
4181
4181
|
return ep.call(r, e, a, i, "reference", "referenceMarker", "referenceString")(s);
|
|
4182
4182
|
}
|
|
4183
4183
|
function a(s) {
|
|
4184
|
-
return r.parser.defined.includes(
|
|
4184
|
+
return r.parser.defined.includes(zr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(s) : n(s);
|
|
4185
4185
|
}
|
|
4186
4186
|
function i(s) {
|
|
4187
4187
|
return n(s);
|
|
@@ -4896,7 +4896,7 @@ function z2(e) {
|
|
|
4896
4896
|
definitionDestinationString: i,
|
|
4897
4897
|
definitionLabelString: i,
|
|
4898
4898
|
definitionTitleString: i,
|
|
4899
|
-
emphasis: a(
|
|
4899
|
+
emphasis: a(Ar),
|
|
4900
4900
|
hardBreakEscape: a(_e),
|
|
4901
4901
|
hardBreakTrailing: a(_e),
|
|
4902
4902
|
htmlFlow: a($e, i),
|
|
@@ -5141,7 +5141,7 @@ function z2(e) {
|
|
|
5141
5141
|
}
|
|
5142
5142
|
function A(j) {
|
|
5143
5143
|
const le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
5144
|
-
Te.label = le, Te.identifier =
|
|
5144
|
+
Te.label = le, Te.identifier = zr(this.sliceSerialize(j)).toLowerCase();
|
|
5145
5145
|
}
|
|
5146
5146
|
function C() {
|
|
5147
5147
|
const j = this.resume(), le = this.stack[this.stack.length - 1];
|
|
@@ -5225,7 +5225,7 @@ function z2(e) {
|
|
|
5225
5225
|
}
|
|
5226
5226
|
function q(j) {
|
|
5227
5227
|
const le = this.sliceSerialize(j), Te = this.stack[this.stack.length - 2];
|
|
5228
|
-
Te.label = F2(le), Te.identifier =
|
|
5228
|
+
Te.label = F2(le), Te.identifier = zr(le).toLowerCase();
|
|
5229
5229
|
}
|
|
5230
5230
|
function G() {
|
|
5231
5231
|
const j = this.stack[this.stack.length - 1], le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
@@ -5251,7 +5251,7 @@ function z2(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
function pe(j) {
|
|
5253
5253
|
const le = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
5254
|
-
Te.label = le, Te.identifier =
|
|
5254
|
+
Te.label = le, Te.identifier = zr(this.sliceSerialize(j)).toLowerCase(), this.data.referenceType = "full";
|
|
5255
5255
|
}
|
|
5256
5256
|
function ye(j) {
|
|
5257
5257
|
this.data.characterReferenceType = j.type;
|
|
@@ -5306,7 +5306,7 @@ function z2(e) {
|
|
|
5306
5306
|
url: ""
|
|
5307
5307
|
};
|
|
5308
5308
|
}
|
|
5309
|
-
function
|
|
5309
|
+
function Ar() {
|
|
5310
5310
|
return {
|
|
5311
5311
|
type: "emphasis",
|
|
5312
5312
|
children: []
|
|
@@ -5497,7 +5497,7 @@ function K2(e, t) {
|
|
|
5497
5497
|
return e.patch(t, n), e.applyData(t, n);
|
|
5498
5498
|
}
|
|
5499
5499
|
function G2(e, t) {
|
|
5500
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l =
|
|
5500
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), l = Jr(r.toLowerCase()), a = e.footnoteOrder.indexOf(r);
|
|
5501
5501
|
let i, s = e.footnoteCounts.get(r);
|
|
5502
5502
|
s === void 0 ? (s = 0, e.footnoteOrder.push(r), i = e.footnoteOrder.length) : i = a + 1, s += 1, e.footnoteCounts.set(r, s);
|
|
5503
5503
|
const o = {
|
|
@@ -5549,13 +5549,13 @@ function J2(e, t) {
|
|
|
5549
5549
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
5550
5550
|
if (!r)
|
|
5551
5551
|
return ip(e, t);
|
|
5552
|
-
const l = { src:
|
|
5552
|
+
const l = { src: Jr(r.url || ""), alt: t.alt };
|
|
5553
5553
|
r.title !== null && r.title !== void 0 && (l.title = r.title);
|
|
5554
5554
|
const a = { type: "element", tagName: "img", properties: l, children: [] };
|
|
5555
5555
|
return e.patch(t, a), e.applyData(t, a);
|
|
5556
5556
|
}
|
|
5557
5557
|
function Z2(e, t) {
|
|
5558
|
-
const n = { src:
|
|
5558
|
+
const n = { src: Jr(t.url) };
|
|
5559
5559
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
5560
5560
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
5561
5561
|
return e.patch(t, r), e.applyData(t, r);
|
|
@@ -5575,7 +5575,7 @@ function ty(e, t) {
|
|
|
5575
5575
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
5576
5576
|
if (!r)
|
|
5577
5577
|
return ip(e, t);
|
|
5578
|
-
const l = { href:
|
|
5578
|
+
const l = { href: Jr(r.url || "") };
|
|
5579
5579
|
r.title !== null && r.title !== void 0 && (l.title = r.title);
|
|
5580
5580
|
const a = {
|
|
5581
5581
|
type: "element",
|
|
@@ -5586,7 +5586,7 @@ function ty(e, t) {
|
|
|
5586
5586
|
return e.patch(t, a), e.applyData(t, a);
|
|
5587
5587
|
}
|
|
5588
5588
|
function ny(e, t) {
|
|
5589
|
-
const n = { href:
|
|
5589
|
+
const n = { href: Jr(t.url) };
|
|
5590
5590
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
5591
5591
|
const r = {
|
|
5592
5592
|
type: "element",
|
|
@@ -5859,24 +5859,24 @@ const op = -1, xi = 0, xl = 1, Ja = 2, au = 3, iu = 4, su = 5, ou = 6, up = 7, c
|
|
|
5859
5859
|
return n(new nd[a](i), l);
|
|
5860
5860
|
};
|
|
5861
5861
|
return r;
|
|
5862
|
-
}, rd = (e) => by(/* @__PURE__ */ new Map(), e)(0),
|
|
5862
|
+
}, rd = (e) => by(/* @__PURE__ */ new Map(), e)(0), Or = "", { toString: gy } = {}, { keys: vy } = Object, hl = (e) => {
|
|
5863
5863
|
const t = typeof e;
|
|
5864
5864
|
if (t !== "object" || !e)
|
|
5865
5865
|
return [xi, t];
|
|
5866
5866
|
const n = gy.call(e).slice(8, -1);
|
|
5867
5867
|
switch (n) {
|
|
5868
5868
|
case "Array":
|
|
5869
|
-
return [xl,
|
|
5869
|
+
return [xl, Or];
|
|
5870
5870
|
case "Object":
|
|
5871
|
-
return [Ja,
|
|
5871
|
+
return [Ja, Or];
|
|
5872
5872
|
case "Date":
|
|
5873
|
-
return [au,
|
|
5873
|
+
return [au, Or];
|
|
5874
5874
|
case "RegExp":
|
|
5875
|
-
return [iu,
|
|
5875
|
+
return [iu, Or];
|
|
5876
5876
|
case "Map":
|
|
5877
|
-
return [su,
|
|
5877
|
+
return [su, Or];
|
|
5878
5878
|
case "Set":
|
|
5879
|
-
return [ou,
|
|
5879
|
+
return [ou, Or];
|
|
5880
5880
|
case "DataView":
|
|
5881
5881
|
return [xl, n];
|
|
5882
5882
|
}
|
|
@@ -5987,7 +5987,7 @@ function Cy(e) {
|
|
|
5987
5987
|
);
|
|
5988
5988
|
if (!u)
|
|
5989
5989
|
continue;
|
|
5990
|
-
const c = e.all(u), d = String(u.identifier).toUpperCase(), h =
|
|
5990
|
+
const c = e.all(u), d = String(u.identifier).toUpperCase(), h = Jr(d.toLowerCase());
|
|
5991
5991
|
let f = 0;
|
|
5992
5992
|
const m = [], g = e.footnoteCounts.get(d);
|
|
5993
5993
|
for (; g !== void 0 && ++f <= g; ) {
|
|
@@ -7887,7 +7887,7 @@ function S3(e, t) {
|
|
|
7887
7887
|
const s = (
|
|
7888
7888
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
7889
7889
|
t
|
|
7890
|
-
), o = s.sourceCodeLocation, u = o && o.startTag &&
|
|
7890
|
+
), o = s.sourceCodeLocation, u = o && o.startTag && Pr(o.startTag), c = o && o.endTag && Pr(o.endTag), d = (
|
|
7891
7891
|
/** @type {Root} */
|
|
7892
7892
|
cu(e, s.content)
|
|
7893
7893
|
);
|
|
@@ -7902,7 +7902,7 @@ function Va(e, t, n) {
|
|
|
7902
7902
|
}
|
|
7903
7903
|
}
|
|
7904
7904
|
function k3(e, t, n) {
|
|
7905
|
-
const r =
|
|
7905
|
+
const r = Pr(n);
|
|
7906
7906
|
if (t.type === "element") {
|
|
7907
7907
|
const l = t.children[t.children.length - 1];
|
|
7908
7908
|
if (r && !n.endTag && l && l.position && l.position.end && (r.end = Object.assign({}, l.position.end)), e.verbose) {
|
|
@@ -7910,17 +7910,17 @@ function k3(e, t, n) {
|
|
|
7910
7910
|
let i;
|
|
7911
7911
|
if (n.attrs)
|
|
7912
7912
|
for (i in n.attrs)
|
|
7913
|
-
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] =
|
|
7913
|
+
bp.call(n.attrs, i) && (a[Ei(e.schema, i).property] = Pr(
|
|
7914
7914
|
n.attrs[i]
|
|
7915
7915
|
));
|
|
7916
7916
|
n.startTag;
|
|
7917
|
-
const s =
|
|
7917
|
+
const s = Pr(n.startTag), o = n.endTag ? Pr(n.endTag) : void 0, u = { opening: s };
|
|
7918
7918
|
o && (u.closing = o), u.properties = a, t.data = { position: u };
|
|
7919
7919
|
}
|
|
7920
7920
|
}
|
|
7921
7921
|
return r;
|
|
7922
7922
|
}
|
|
7923
|
-
function
|
|
7923
|
+
function Pr(e) {
|
|
7924
7924
|
const t = vd({
|
|
7925
7925
|
line: e.startLine,
|
|
7926
7926
|
column: e.startCol,
|
|
@@ -7962,11 +7962,11 @@ function I3(e, t) {
|
|
|
7962
7962
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
7963
7963
|
childNodes: []
|
|
7964
7964
|
};
|
|
7965
|
-
return n.childNodes = du(e.children, n, t),
|
|
7965
|
+
return n.childNodes = du(e.children, n, t), Zr(e, n), n;
|
|
7966
7966
|
}
|
|
7967
7967
|
function _3(e, t) {
|
|
7968
7968
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
7969
|
-
return n.childNodes = du(e.children, n, t),
|
|
7969
|
+
return n.childNodes = du(e.children, n, t), Zr(e, n), n;
|
|
7970
7970
|
}
|
|
7971
7971
|
function O3(e) {
|
|
7972
7972
|
const t = {
|
|
@@ -7976,7 +7976,7 @@ function O3(e) {
|
|
|
7976
7976
|
systemId: "",
|
|
7977
7977
|
parentNode: null
|
|
7978
7978
|
};
|
|
7979
|
-
return
|
|
7979
|
+
return Zr(e, t), t;
|
|
7980
7980
|
}
|
|
7981
7981
|
function M3(e) {
|
|
7982
7982
|
const t = {
|
|
@@ -7984,7 +7984,7 @@ function M3(e) {
|
|
|
7984
7984
|
value: e.value,
|
|
7985
7985
|
parentNode: null
|
|
7986
7986
|
};
|
|
7987
|
-
return
|
|
7987
|
+
return Zr(e, t), t;
|
|
7988
7988
|
}
|
|
7989
7989
|
function R3(e) {
|
|
7990
7990
|
const t = {
|
|
@@ -7992,7 +7992,7 @@ function R3(e) {
|
|
|
7992
7992
|
data: e.value,
|
|
7993
7993
|
parentNode: null
|
|
7994
7994
|
};
|
|
7995
|
-
return
|
|
7995
|
+
return Zr(e, t), t;
|
|
7996
7996
|
}
|
|
7997
7997
|
function D3(e, t) {
|
|
7998
7998
|
const n = t;
|
|
@@ -8020,7 +8020,7 @@ function D3(e, t) {
|
|
|
8020
8020
|
childNodes: [],
|
|
8021
8021
|
parentNode: null
|
|
8022
8022
|
};
|
|
8023
|
-
return s.childNodes = du(e.children, s, r),
|
|
8023
|
+
return s.childNodes = du(e.children, s, r), Zr(e, s), e.tagName === "template" && e.content && (s.content = _3(e.content, r)), s;
|
|
8024
8024
|
}
|
|
8025
8025
|
function L3(e, t, n) {
|
|
8026
8026
|
const r = Ei(e, t);
|
|
@@ -8047,7 +8047,7 @@ function du(e, t, n) {
|
|
|
8047
8047
|
}
|
|
8048
8048
|
return l;
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function Zr(e, t) {
|
|
8051
8051
|
const n = e.position;
|
|
8052
8052
|
n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
|
|
8053
8053
|
startLine: n.start.line,
|
|
@@ -8659,7 +8659,7 @@ const X3 = /* @__PURE__ */ new Map([
|
|
|
8659
8659
|
[z.WBR, p.WBR],
|
|
8660
8660
|
[z.XMP, p.XMP]
|
|
8661
8661
|
]);
|
|
8662
|
-
function
|
|
8662
|
+
function el(e) {
|
|
8663
8663
|
var t;
|
|
8664
8664
|
return (t = X3.get(e)) !== null && t !== void 0 ? t : p.UNKNOWN;
|
|
8665
8665
|
}
|
|
@@ -8941,7 +8941,7 @@ class nE {
|
|
|
8941
8941
|
}
|
|
8942
8942
|
emitCurrentTagToken() {
|
|
8943
8943
|
const t = this.currentToken;
|
|
8944
|
-
this.prepareToken(t), t.tagID =
|
|
8944
|
+
this.prepareToken(t), t.tagID = el(t.tagName), t.type === we.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(Y.endTagWithAttributes), t.selfClosing && this._err(Y.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
8945
8945
|
}
|
|
8946
8946
|
emitCurrentComment(t) {
|
|
8947
8947
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -11432,7 +11432,7 @@ function fu(e) {
|
|
|
11432
11432
|
}
|
|
11433
11433
|
function kE(e) {
|
|
11434
11434
|
const t = CE.get(e.tagName);
|
|
11435
|
-
t != null && (e.tagName = t, e.tagID =
|
|
11435
|
+
t != null && (e.tagName = t, e.tagID = el(e.tagName));
|
|
11436
11436
|
}
|
|
11437
11437
|
function AE(e, t) {
|
|
11438
11438
|
return t === Q.MATHML && (e === p.MI || e === p.MO || e === p.MN || e === p.MS || e === p.MTEXT);
|
|
@@ -11473,7 +11473,7 @@ class Id {
|
|
|
11473
11473
|
this.fragmentContext = r, this.scriptHandler = l, this.currentToken = null, this.stopped = !1, this.insertionMode = L.INITIAL, this.originalInsertionMode = L.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
11474
11474
|
...wd,
|
|
11475
11475
|
...t
|
|
11476
|
-
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new nE(this.options, this), this.activeFormattingElements = new cE(this.treeAdapter), this.fragmentContextID = r ?
|
|
11476
|
+
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new nE(this.options, this), this.activeFormattingElements = new cE(this.treeAdapter), this.fragmentContextID = r ? el(this.treeAdapter.getTagName(r)) : p.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new uE(this.document, this.treeAdapter, this);
|
|
11477
11477
|
}
|
|
11478
11478
|
// API
|
|
11479
11479
|
static parse(t, n) {
|
|
@@ -12102,7 +12102,7 @@ class Id {
|
|
|
12102
12102
|
break;
|
|
12103
12103
|
}
|
|
12104
12104
|
case L.IN_TABLE: {
|
|
12105
|
-
|
|
12105
|
+
qr(this, t);
|
|
12106
12106
|
break;
|
|
12107
12107
|
}
|
|
12108
12108
|
case L.IN_TABLE_TEXT: {
|
|
@@ -12396,7 +12396,7 @@ function PE(e, t) {
|
|
|
12396
12396
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
12397
12397
|
}
|
|
12398
12398
|
function BE(e, t, n) {
|
|
12399
|
-
const r = e.treeAdapter.getTagName(t), l =
|
|
12399
|
+
const r = e.treeAdapter.getTagName(t), l = el(r);
|
|
12400
12400
|
if (e._isElementCausesFosterParenting(l))
|
|
12401
12401
|
e._fosterParentElement(n);
|
|
12402
12402
|
else {
|
|
@@ -13203,7 +13203,7 @@ function $T(e, t) {
|
|
|
13203
13203
|
function qT(e, t) {
|
|
13204
13204
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, Q.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
13205
13205
|
}
|
|
13206
|
-
function
|
|
13206
|
+
function qr(e, t) {
|
|
13207
13207
|
switch (t.tagID) {
|
|
13208
13208
|
case p.TD:
|
|
13209
13209
|
case p.TH:
|
|
@@ -13300,7 +13300,7 @@ function ml(e, t) {
|
|
|
13300
13300
|
const Up = /* @__PURE__ */ new Set([p.CAPTION, p.COL, p.COLGROUP, p.TBODY, p.TD, p.TFOOT, p.TH, p.THEAD, p.TR]);
|
|
13301
13301
|
function WT(e, t) {
|
|
13302
13302
|
const n = t.tagID;
|
|
13303
|
-
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE,
|
|
13303
|
+
Up.has(n) ? e.openElements.hasInTableScope(p.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(p.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = L.IN_TABLE, qr(e, t)) : gt(e, t);
|
|
13304
13304
|
}
|
|
13305
13305
|
function YT(e, t) {
|
|
13306
13306
|
const n = t.tagID;
|
|
@@ -13379,11 +13379,11 @@ function wi(e, t) {
|
|
|
13379
13379
|
case p.TBODY:
|
|
13380
13380
|
case p.TFOOT:
|
|
13381
13381
|
case p.THEAD: {
|
|
13382
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE,
|
|
13382
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = L.IN_TABLE, qr(e, t));
|
|
13383
13383
|
break;
|
|
13384
13384
|
}
|
|
13385
13385
|
default:
|
|
13386
|
-
|
|
13386
|
+
qr(e, t);
|
|
13387
13387
|
}
|
|
13388
13388
|
}
|
|
13389
13389
|
function go(e, t) {
|
|
@@ -13430,7 +13430,7 @@ function Ii(e, t) {
|
|
|
13430
13430
|
break;
|
|
13431
13431
|
}
|
|
13432
13432
|
default:
|
|
13433
|
-
|
|
13433
|
+
qr(e, t);
|
|
13434
13434
|
}
|
|
13435
13435
|
}
|
|
13436
13436
|
function zp(e, t) {
|
|
@@ -13573,7 +13573,7 @@ function JT(e, t) {
|
|
|
13573
13573
|
case p.TBODY:
|
|
13574
13574
|
case p.TFOOT:
|
|
13575
13575
|
case p.THEAD: {
|
|
13576
|
-
e.tmplInsertionModeStack[0] = L.IN_TABLE, e.insertionMode = L.IN_TABLE,
|
|
13576
|
+
e.tmplInsertionModeStack[0] = L.IN_TABLE, e.insertionMode = L.IN_TABLE, qr(e, t);
|
|
13577
13577
|
break;
|
|
13578
13578
|
}
|
|
13579
13579
|
case p.COL: {
|
|
@@ -13728,7 +13728,7 @@ function jp(e, t) {
|
|
|
13728
13728
|
stitches: !1,
|
|
13729
13729
|
options: t || {}
|
|
13730
13730
|
};
|
|
13731
|
-
r(e, l),
|
|
13731
|
+
r(e, l), tl(l, ln());
|
|
13732
13732
|
const a = n ? l.parser.document : l.parser.getFragment(), i = x3(a, {
|
|
13733
13733
|
// To do: support `space`?
|
|
13734
13734
|
file: l.options.file
|
|
@@ -13764,7 +13764,7 @@ function m6(e, t) {
|
|
|
13764
13764
|
chars: e.value,
|
|
13765
13765
|
location: la(e)
|
|
13766
13766
|
};
|
|
13767
|
-
|
|
13767
|
+
tl(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13768
13768
|
}
|
|
13769
13769
|
function b6(e, t) {
|
|
13770
13770
|
const n = {
|
|
@@ -13775,7 +13775,7 @@ function b6(e, t) {
|
|
|
13775
13775
|
systemId: "",
|
|
13776
13776
|
location: la(e)
|
|
13777
13777
|
};
|
|
13778
|
-
|
|
13778
|
+
tl(t, ln(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
13779
13779
|
}
|
|
13780
13780
|
function g6(e, t) {
|
|
13781
13781
|
t.stitches = !0;
|
|
@@ -13795,7 +13795,7 @@ function Gp(e, t) {
|
|
|
13795
13795
|
data: n,
|
|
13796
13796
|
location: la(e)
|
|
13797
13797
|
};
|
|
13798
|
-
|
|
13798
|
+
tl(t, ln(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
13799
13799
|
}
|
|
13800
13800
|
function v6(e, t) {
|
|
13801
13801
|
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Qp(t, ln(e)), t.parser.tokenizer.write(
|
|
@@ -13820,7 +13820,7 @@ function y6(e, t) {
|
|
|
13820
13820
|
throw f6.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
|
|
13821
13821
|
}
|
|
13822
13822
|
}
|
|
13823
|
-
function
|
|
13823
|
+
function tl(e, t) {
|
|
13824
13824
|
Qp(e, t);
|
|
13825
13825
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
13826
13826
|
n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = je.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
|
|
@@ -13841,7 +13841,7 @@ function Qp(e, t) {
|
|
|
13841
13841
|
function E6(e, t) {
|
|
13842
13842
|
const n = e.tagName.toLowerCase();
|
|
13843
13843
|
if (t.parser.tokenizer.state === je.PLAINTEXT) return;
|
|
13844
|
-
|
|
13844
|
+
tl(t, ln(e));
|
|
13845
13845
|
const r = t.parser.openElements.current;
|
|
13846
13846
|
let l = "namespaceURI" in r ? r.namespaceURI : lr.html;
|
|
13847
13847
|
l === lr.html && n === "svg" && (l = lr.svg);
|
|
@@ -13852,7 +13852,7 @@ function E6(e, t) {
|
|
|
13852
13852
|
), i = {
|
|
13853
13853
|
type: we.START_TAG,
|
|
13854
13854
|
tagName: n,
|
|
13855
|
-
tagID:
|
|
13855
|
+
tagID: el(n),
|
|
13856
13856
|
// We always send start and end tags.
|
|
13857
13857
|
selfClosing: !1,
|
|
13858
13858
|
ackSelfClosing: !1,
|
|
@@ -13866,11 +13866,11 @@ function E6(e, t) {
|
|
|
13866
13866
|
function T6(e, t) {
|
|
13867
13867
|
const n = e.tagName.toLowerCase();
|
|
13868
13868
|
if (!t.parser.tokenizer.inForeignNode && P3.includes(n) || t.parser.tokenizer.state === je.PLAINTEXT) return;
|
|
13869
|
-
|
|
13869
|
+
tl(t, Ti(e));
|
|
13870
13870
|
const r = {
|
|
13871
13871
|
type: we.END_TAG,
|
|
13872
13872
|
tagName: n,
|
|
13873
|
-
tagID:
|
|
13873
|
+
tagID: el(n),
|
|
13874
13874
|
selfClosing: !1,
|
|
13875
13875
|
ackSelfClosing: !1,
|
|
13876
13876
|
attrs: [],
|
|
@@ -13916,7 +13916,7 @@ function S6(e) {
|
|
|
13916
13916
|
);
|
|
13917
13917
|
};
|
|
13918
13918
|
}
|
|
13919
|
-
const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"],
|
|
13919
|
+
const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Br = {
|
|
13920
13920
|
ancestors: {
|
|
13921
13921
|
tbody: ["table"],
|
|
13922
13922
|
td: ["table"],
|
|
@@ -14114,7 +14114,7 @@ const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Pr = {
|
|
|
14114
14114
|
function k6(e, t) {
|
|
14115
14115
|
let n = { type: "root", children: [] };
|
|
14116
14116
|
const r = {
|
|
14117
|
-
schema: t ? { ...
|
|
14117
|
+
schema: t ? { ...Br, ...t } : Br,
|
|
14118
14118
|
stack: []
|
|
14119
14119
|
}, l = Xp(r, e);
|
|
14120
14120
|
return l && (Array.isArray(l) ? l.length === 1 ? n = l[0] : n.children = l : n = l), n;
|
|
@@ -15154,15 +15154,15 @@ function ia(e) {
|
|
|
15154
15154
|
return null;
|
|
15155
15155
|
}
|
|
15156
15156
|
const _C = {
|
|
15157
|
-
...
|
|
15157
|
+
...Br,
|
|
15158
15158
|
attributes: {
|
|
15159
|
-
...
|
|
15159
|
+
...Br.attributes || {},
|
|
15160
15160
|
span: [
|
|
15161
|
-
...(
|
|
15161
|
+
...(Br.attributes || {}).span || [],
|
|
15162
15162
|
"style"
|
|
15163
15163
|
],
|
|
15164
15164
|
font: [
|
|
15165
|
-
...(
|
|
15165
|
+
...(Br.attributes || {}).font || [],
|
|
15166
15166
|
"color"
|
|
15167
15167
|
]
|
|
15168
15168
|
}
|
|
@@ -15212,13 +15212,13 @@ const _C = {
|
|
|
15212
15212
|
components: LC,
|
|
15213
15213
|
children: MC(e)
|
|
15214
15214
|
}
|
|
15215
|
-
), t0 = Wo(null),
|
|
15215
|
+
), t0 = Wo(null), nl = () => Ah(t0), FC = (e) => document.body ?? e ?? document.documentElement, HC = ({
|
|
15216
15216
|
data: e,
|
|
15217
15217
|
initialPlatformIndex: t = 0,
|
|
15218
15218
|
initialStepIndex: n = 0,
|
|
15219
15219
|
onClose: r
|
|
15220
15220
|
}) => {
|
|
15221
|
-
const l =
|
|
15221
|
+
const l = nl(), a = Array.isArray(e.platforms) ? e.platforms : [], i = a.length, [s, o] = K(t), [u, c] = K(n), d = Math.min(Math.max(s, 0), Math.max(i - 1, 0)), h = a[d], f = Array.isArray(h?.images) ? h.images : [], m = Array.isArray(h?.stepDescriptions) ? h.stepDescriptions : [], g = Math.min(f.length, m.length), b = Math.min(Math.max(u, 0), Math.max(g - 1, 0)), y = f[b], A = m[b] || "", C = (e.description || "").trim(), I = (e.disclaimer || "").trim(), M = i > 1;
|
|
15222
15222
|
he(() => {
|
|
15223
15223
|
const w = (N) => {
|
|
15224
15224
|
N.key === "Escape" ? r() : N.key === "ArrowLeft" && b > 0 ? c(b - 1) : N.key === "ArrowRight" && b < g - 1 && c(b + 1);
|
|
@@ -15372,7 +15372,7 @@ const _C = {
|
|
|
15372
15372
|
} catch {
|
|
15373
15373
|
return !1;
|
|
15374
15374
|
}
|
|
15375
|
-
},
|
|
15375
|
+
}, rl = ({
|
|
15376
15376
|
tooltip: e,
|
|
15377
15377
|
className: t = "variable-info-icon",
|
|
15378
15378
|
hidden: n,
|
|
@@ -15475,7 +15475,7 @@ const _C = {
|
|
|
15475
15475
|
}
|
|
15476
15476
|
),
|
|
15477
15477
|
h && /* @__PURE__ */ v(
|
|
15478
|
-
|
|
15478
|
+
rl,
|
|
15479
15479
|
{
|
|
15480
15480
|
tooltip: a,
|
|
15481
15481
|
className: "variable-info-icon",
|
|
@@ -15624,7 +15624,7 @@ const wa = {
|
|
|
15624
15624
|
adjustX: !0,
|
|
15625
15625
|
adjustY: !0,
|
|
15626
15626
|
shiftY: !1
|
|
15627
|
-
},
|
|
15627
|
+
}, Sr = () => document.body, Tu = {
|
|
15628
15628
|
bottomLeft: {
|
|
15629
15629
|
points: ["tl", "bl"],
|
|
15630
15630
|
offset: [0, 4],
|
|
@@ -15719,7 +15719,7 @@ const wa = {
|
|
|
15719
15719
|
popupMatchSelectWidth: !1,
|
|
15720
15720
|
placement: "bottomLeft",
|
|
15721
15721
|
builtinPlacements: Tu,
|
|
15722
|
-
getPopupContainer:
|
|
15722
|
+
getPopupContainer: Sr,
|
|
15723
15723
|
suffixIcon: /* @__PURE__ */ v(
|
|
15724
15724
|
"i",
|
|
15725
15725
|
{
|
|
@@ -15848,7 +15848,7 @@ const i0 = ve.memo(
|
|
|
15848
15848
|
popupMatchSelectWidth: !1,
|
|
15849
15849
|
placement: "bottomLeft",
|
|
15850
15850
|
builtinPlacements: Tu,
|
|
15851
|
-
getPopupContainer:
|
|
15851
|
+
getPopupContainer: Sr,
|
|
15852
15852
|
notFoundContent: /* @__PURE__ */ v("span", { style: { color: "#999", fontSize: 13 }, children: "暂无数据" }),
|
|
15853
15853
|
suffixIcon: /* @__PURE__ */ v(
|
|
15854
15854
|
"i",
|
|
@@ -22286,7 +22286,7 @@ const ZC = [
|
|
|
22286
22286
|
popupClassName: "rte-cascader-dropdown",
|
|
22287
22287
|
placement: "bottomLeft",
|
|
22288
22288
|
builtinPlacements: Tu,
|
|
22289
|
-
getPopupContainer:
|
|
22289
|
+
getPopupContainer: Sr,
|
|
22290
22290
|
displayRender: (M) => M.join("-"),
|
|
22291
22291
|
style: { width: "100%" },
|
|
22292
22292
|
suffixIcon: /* @__PURE__ */ v(
|
|
@@ -22474,7 +22474,7 @@ const Cu = (e) => {
|
|
|
22474
22474
|
quiet: u,
|
|
22475
22475
|
openSignal: c
|
|
22476
22476
|
}) => {
|
|
22477
|
-
const d =
|
|
22477
|
+
const d = nl(), [h, f] = K(!1), m = J(null), g = J({}).current, [b, y] = K("bottomLeft"), [A, C] = K(0), I = $(() => {
|
|
22478
22478
|
const k = e.current, R = m.current;
|
|
22479
22479
|
if (!k || !R) return;
|
|
22480
22480
|
const _ = k.getBoundingClientRect(), F = R.getBoundingClientRect();
|
|
@@ -22835,7 +22835,7 @@ const h0 = ({
|
|
|
22835
22835
|
}
|
|
22836
22836
|
),
|
|
22837
22837
|
!M && w && /* @__PURE__ */ v(
|
|
22838
|
-
|
|
22838
|
+
rl,
|
|
22839
22839
|
{
|
|
22840
22840
|
tooltip: a,
|
|
22841
22841
|
className: "variable-info-icon",
|
|
@@ -22977,7 +22977,7 @@ const o4 = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, u4 = (e) => o4.test(e), c4
|
|
|
22977
22977
|
onReplace: c,
|
|
22978
22978
|
onRemove: d
|
|
22979
22979
|
}) => {
|
|
22980
|
-
const h = J(null), f = J(null), m =
|
|
22980
|
+
const h = J(null), f = J(null), m = nl(), [g, b] = K(!1), y = t != null, A = m0(t), [C, I] = K(!1), M = $(() => {
|
|
22981
22981
|
a || h.current?.click();
|
|
22982
22982
|
}, [a]), x = $(
|
|
22983
22983
|
(q) => {
|
|
@@ -23035,7 +23035,7 @@ const o4 = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, u4 = (e) => o4.test(e), c4
|
|
|
23035
23035
|
return V ? /* @__PURE__ */ v(
|
|
23036
23036
|
Go,
|
|
23037
23037
|
{
|
|
23038
|
-
getPopupContainer:
|
|
23038
|
+
getPopupContainer: Sr,
|
|
23039
23039
|
title: /* @__PURE__ */ v("div", { className: "se-upload-preview", children: /* @__PURE__ */ v("img", { className: "se-upload-preview-img", src: A, alt: "preview" }) }),
|
|
23040
23040
|
placement: "top",
|
|
23041
23041
|
align: { offset: [0, -10] },
|
|
@@ -23660,7 +23660,7 @@ const Qd = 2 * Math.PI * 6.5, g0 = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23660
23660
|
}
|
|
23661
23661
|
),
|
|
23662
23662
|
R && /* @__PURE__ */ v(
|
|
23663
|
-
|
|
23663
|
+
rl,
|
|
23664
23664
|
{
|
|
23665
23665
|
tooltip: R,
|
|
23666
23666
|
className: "variable-info-icon",
|
|
@@ -23867,7 +23867,7 @@ const A4 = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", N4 = 10
|
|
|
23867
23867
|
/* @__PURE__ */ v("i", { className: "iconfont icon-shangchuan1", style: { fontSize: 16 } }),
|
|
23868
23868
|
/* @__PURE__ */ v("span", { className: "video-label", children: e.text ?? "请上传想要分析的视频文件" }),
|
|
23869
23869
|
N && /* @__PURE__ */ v(
|
|
23870
|
-
|
|
23870
|
+
rl,
|
|
23871
23871
|
{
|
|
23872
23872
|
tooltip: N,
|
|
23873
23873
|
className: "upload-info-icon",
|
|
@@ -24030,7 +24030,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24030
24030
|
disabled: c,
|
|
24031
24031
|
error: d
|
|
24032
24032
|
}) => {
|
|
24033
|
-
const h =
|
|
24033
|
+
const h = nl(), f = _4(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, y = !!l, A = y && !c && (b || g), C = !y && !!f && b, I = A || C, [M, x] = K(!1), [w, N] = K(!1), k = J({}).current, R = J(""), _ = $(
|
|
24034
24034
|
async (_e) => {
|
|
24035
24035
|
const $e = _e.trim();
|
|
24036
24036
|
if (!(!$e || !r) && R.current !== $e) {
|
|
@@ -24134,7 +24134,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24134
24134
|
)
|
|
24135
24135
|
}
|
|
24136
24136
|
) : C ? /* @__PURE__ */ v(
|
|
24137
|
-
|
|
24137
|
+
rl,
|
|
24138
24138
|
{
|
|
24139
24139
|
tooltip: f,
|
|
24140
24140
|
className: "variable-info-icon",
|
|
@@ -24163,7 +24163,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24163
24163
|
$e.closest(".rte-report-chip-clear-host") || $e.closest(".rte-report-dropdown-host") || (_e.stopPropagation(), w ? N(!1) : P());
|
|
24164
24164
|
},
|
|
24165
24165
|
[g, c, A, w, P]
|
|
24166
|
-
),
|
|
24166
|
+
), Ar = /* @__PURE__ */ W(
|
|
24167
24167
|
"span",
|
|
24168
24168
|
{
|
|
24169
24169
|
ref: G,
|
|
@@ -24248,7 +24248,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24248
24248
|
getPopupContainer: () => h ?? document.body,
|
|
24249
24249
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
24250
24250
|
arrow: !1,
|
|
24251
|
-
children:
|
|
24251
|
+
children: Ar
|
|
24252
24252
|
}
|
|
24253
24253
|
)
|
|
24254
24254
|
]
|
|
@@ -24265,7 +24265,7 @@ const I4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24265
24265
|
getPopupContainer: () => h ?? document.body,
|
|
24266
24266
|
overlayClassName: "rte-report-dropdown-overlay",
|
|
24267
24267
|
arrow: !1,
|
|
24268
|
-
children:
|
|
24268
|
+
children: Ar
|
|
24269
24269
|
}
|
|
24270
24270
|
) });
|
|
24271
24271
|
}
|
|
@@ -24370,7 +24370,7 @@ function A0(e, t) {
|
|
|
24370
24370
|
), k = x ? /* @__PURE__ */ W("span", { className: "rte-markdown-host", children: [
|
|
24371
24371
|
N,
|
|
24372
24372
|
/* @__PURE__ */ v(
|
|
24373
|
-
|
|
24373
|
+
rl,
|
|
24374
24374
|
{
|
|
24375
24375
|
tooltip: M,
|
|
24376
24376
|
className: "variable-info-icon",
|
|
@@ -27059,7 +27059,7 @@ function sf(e, t) {
|
|
|
27059
27059
|
return !0;
|
|
27060
27060
|
}
|
|
27061
27061
|
}
|
|
27062
|
-
class
|
|
27062
|
+
class kr {
|
|
27063
27063
|
/**
|
|
27064
27064
|
Create a serializer. `nodes` should map node names to functions
|
|
27065
27065
|
that take a node and return a description of the corresponding
|
|
@@ -27148,7 +27148,7 @@ class Sr {
|
|
|
27148
27148
|
properties in a schema's node and mark specs.
|
|
27149
27149
|
*/
|
|
27150
27150
|
static fromSchema(t) {
|
|
27151
|
-
return t.cached.domSerializer || (t.cached.domSerializer = new
|
|
27151
|
+
return t.cached.domSerializer || (t.cached.domSerializer = new kr(this.nodesFromSchema(t), this.marksFromSchema(t)));
|
|
27152
27152
|
}
|
|
27153
27153
|
/**
|
|
27154
27154
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -28441,7 +28441,7 @@ function rm(e, t) {
|
|
|
28441
28441
|
}
|
|
28442
28442
|
return n;
|
|
28443
28443
|
}
|
|
28444
|
-
class
|
|
28444
|
+
class Vr extends vt {
|
|
28445
28445
|
/**
|
|
28446
28446
|
Construct an attribute step.
|
|
28447
28447
|
*/
|
|
@@ -28463,11 +28463,11 @@ class zr extends vt {
|
|
|
28463
28463
|
return Rt.empty;
|
|
28464
28464
|
}
|
|
28465
28465
|
invert(t) {
|
|
28466
|
-
return new
|
|
28466
|
+
return new Vr(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
28467
28467
|
}
|
|
28468
28468
|
map(t) {
|
|
28469
28469
|
let n = t.mapResult(this.pos, 1);
|
|
28470
|
-
return n.deletedAfter ? null : new
|
|
28470
|
+
return n.deletedAfter ? null : new Vr(n.pos, this.attr, this.value);
|
|
28471
28471
|
}
|
|
28472
28472
|
toJSON() {
|
|
28473
28473
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -28475,10 +28475,10 @@ class zr extends vt {
|
|
|
28475
28475
|
static fromJSON(t, n) {
|
|
28476
28476
|
if (typeof n.pos != "number" || typeof n.attr != "string")
|
|
28477
28477
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
28478
|
-
return new
|
|
28478
|
+
return new Vr(n.pos, n.attr, n.value);
|
|
28479
28479
|
}
|
|
28480
28480
|
}
|
|
28481
|
-
vt.jsonID("attr",
|
|
28481
|
+
vt.jsonID("attr", Vr);
|
|
28482
28482
|
class Wl extends vt {
|
|
28483
28483
|
/**
|
|
28484
28484
|
Construct an attribute step.
|
|
@@ -28513,15 +28513,15 @@ class Wl extends vt {
|
|
|
28513
28513
|
}
|
|
28514
28514
|
}
|
|
28515
28515
|
vt.jsonID("docAttr", Wl);
|
|
28516
|
-
let
|
|
28516
|
+
let Wr = class extends Error {
|
|
28517
28517
|
};
|
|
28518
|
-
|
|
28518
|
+
Wr = function e(t) {
|
|
28519
28519
|
let n = Error.call(this, t);
|
|
28520
28520
|
return n.__proto__ = e.prototype, n;
|
|
28521
28521
|
};
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28522
|
+
Wr.prototype = Object.create(Error.prototype);
|
|
28523
|
+
Wr.prototype.constructor = Wr;
|
|
28524
|
+
Wr.prototype.name = "TransformError";
|
|
28525
28525
|
class _x {
|
|
28526
28526
|
/**
|
|
28527
28527
|
Create a transform that starts with the given document.
|
|
@@ -28542,7 +28542,7 @@ class _x {
|
|
|
28542
28542
|
step(t) {
|
|
28543
28543
|
let n = this.maybeStep(t);
|
|
28544
28544
|
if (n.failed)
|
|
28545
|
-
throw new
|
|
28545
|
+
throw new Wr(n.failed);
|
|
28546
28546
|
return this;
|
|
28547
28547
|
}
|
|
28548
28548
|
/**
|
|
@@ -28695,7 +28695,7 @@ class _x {
|
|
|
28695
28695
|
to set attributes on the document itself.
|
|
28696
28696
|
*/
|
|
28697
28697
|
setNodeAttribute(t, n, r) {
|
|
28698
|
-
return this.step(new
|
|
28698
|
+
return this.step(new Vr(t, n, r)), this;
|
|
28699
28699
|
}
|
|
28700
28700
|
/**
|
|
28701
28701
|
Set a single attribute on the document to a new value.
|
|
@@ -28858,11 +28858,11 @@ class Ae {
|
|
|
28858
28858
|
found.
|
|
28859
28859
|
*/
|
|
28860
28860
|
static findFrom(t, n, r = !1) {
|
|
28861
|
-
let l = t.parent.inlineContent ? new Ee(t) :
|
|
28861
|
+
let l = t.parent.inlineContent ? new Ee(t) : Dr(t.node(0), t.parent, t.pos, t.index(), n, r);
|
|
28862
28862
|
if (l)
|
|
28863
28863
|
return l;
|
|
28864
28864
|
for (let a = t.depth - 1; a >= 0; a--) {
|
|
28865
|
-
let i = n < 0 ?
|
|
28865
|
+
let i = n < 0 ? Dr(t.node(0), t.node(a), t.before(a + 1), t.index(a), n, r) : Dr(t.node(0), t.node(a), t.after(a + 1), t.index(a) + 1, n, r);
|
|
28866
28866
|
if (i)
|
|
28867
28867
|
return i;
|
|
28868
28868
|
}
|
|
@@ -28883,14 +28883,14 @@ class Ae {
|
|
|
28883
28883
|
exists.
|
|
28884
28884
|
*/
|
|
28885
28885
|
static atStart(t) {
|
|
28886
|
-
return
|
|
28886
|
+
return Dr(t, t, 0, 0, 1) || new Pt(t);
|
|
28887
28887
|
}
|
|
28888
28888
|
/**
|
|
28889
28889
|
Find the cursor or leaf node selection closest to the end of the
|
|
28890
28890
|
given document.
|
|
28891
28891
|
*/
|
|
28892
28892
|
static atEnd(t) {
|
|
28893
|
-
return
|
|
28893
|
+
return Dr(t, t, t.content.size, t.childCount, -1) || new Pt(t);
|
|
28894
28894
|
}
|
|
28895
28895
|
/**
|
|
28896
28896
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -29129,7 +29129,7 @@ const Mx = {
|
|
|
29129
29129
|
return new Pt(e);
|
|
29130
29130
|
}
|
|
29131
29131
|
};
|
|
29132
|
-
function
|
|
29132
|
+
function Dr(e, t, n, r, l, a = !1) {
|
|
29133
29133
|
if (t.inlineContent)
|
|
29134
29134
|
return Ee.create(e, n);
|
|
29135
29135
|
for (let i = r - (l > 0 ? 0 : 1); l > 0 ? i < t.childCount : i >= 0; i += l) {
|
|
@@ -29138,7 +29138,7 @@ function Rr(e, t, n, r, l, a = !1) {
|
|
|
29138
29138
|
if (!a && be.isSelectable(s))
|
|
29139
29139
|
return be.create(e, n - (l < 0 ? s.nodeSize : 0));
|
|
29140
29140
|
} else {
|
|
29141
|
-
let o =
|
|
29141
|
+
let o = Dr(e, s, n + l, l < 0 ? s.childCount : 0, l, a);
|
|
29142
29142
|
if (o)
|
|
29143
29143
|
return o;
|
|
29144
29144
|
}
|
|
@@ -29361,7 +29361,7 @@ class Bs {
|
|
|
29361
29361
|
});
|
|
29362
29362
|
}
|
|
29363
29363
|
}
|
|
29364
|
-
class
|
|
29364
|
+
class Fr {
|
|
29365
29365
|
/**
|
|
29366
29366
|
@internal
|
|
29367
29367
|
*/
|
|
@@ -29436,7 +29436,7 @@ class Br {
|
|
|
29436
29436
|
applyInner(t) {
|
|
29437
29437
|
if (!t.before.eq(this.doc))
|
|
29438
29438
|
throw new RangeError("Applying a mismatched transaction");
|
|
29439
|
-
let n = new
|
|
29439
|
+
let n = new Fr(this.config), r = this.config.fields;
|
|
29440
29440
|
for (let l = 0; l < r.length; l++) {
|
|
29441
29441
|
let a = r[l];
|
|
29442
29442
|
n[a.name] = a.apply(t, this[a.name], this, n);
|
|
@@ -29453,7 +29453,7 @@ class Br {
|
|
|
29453
29453
|
Create a new state.
|
|
29454
29454
|
*/
|
|
29455
29455
|
static create(t) {
|
|
29456
|
-
let n = new Bs(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new
|
|
29456
|
+
let n = new Bs(t.doc ? t.doc.type.schema : t.schema, t.plugins), r = new Fr(n);
|
|
29457
29457
|
for (let l = 0; l < n.fields.length; l++)
|
|
29458
29458
|
r[n.fields[l].name] = n.fields[l].init(t, r);
|
|
29459
29459
|
return r;
|
|
@@ -29467,7 +29467,7 @@ class Br {
|
|
|
29467
29467
|
configuration object..
|
|
29468
29468
|
*/
|
|
29469
29469
|
reconfigure(t) {
|
|
29470
|
-
let n = new Bs(this.schema, t.plugins), r = n.fields, l = new
|
|
29470
|
+
let n = new Bs(this.schema, t.plugins), r = n.fields, l = new Fr(n);
|
|
29471
29471
|
for (let a = 0; a < r.length; a++) {
|
|
29472
29472
|
let i = r[a].name;
|
|
29473
29473
|
l[i] = this.hasOwnProperty(i) ? this[i] : r[a].init(t, l);
|
|
@@ -29504,7 +29504,7 @@ class Br {
|
|
|
29504
29504
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
29505
29505
|
if (!t.schema)
|
|
29506
29506
|
throw new RangeError("Required config field 'schema' missing");
|
|
29507
|
-
let l = new Bs(t.schema, t.plugins), a = new
|
|
29507
|
+
let l = new Bs(t.schema, t.plugins), a = new Fr(l);
|
|
29508
29508
|
return l.fields.forEach((i) => {
|
|
29509
29509
|
if (i.name == "doc")
|
|
29510
29510
|
a.doc = Ln.fromJSON(t.schema, n.doc);
|
|
@@ -29576,7 +29576,7 @@ const ut = function(e) {
|
|
|
29576
29576
|
for (var t = 0; ; t++)
|
|
29577
29577
|
if (e = e.previousSibling, !e)
|
|
29578
29578
|
return t;
|
|
29579
|
-
},
|
|
29579
|
+
}, Yr = function(e) {
|
|
29580
29580
|
let t = e.assignedSlot || e.parentNode;
|
|
29581
29581
|
return t && t.nodeType == 11 ? t.host : t;
|
|
29582
29582
|
};
|
|
@@ -29687,7 +29687,7 @@ function zx(e, t, n) {
|
|
|
29687
29687
|
}
|
|
29688
29688
|
const nn = typeof navigator < "u" ? navigator : null, yf = typeof document < "u" ? document : null, Yn = nn && nn.userAgent || "", Ao = /Edge\/(\d+)/.exec(Yn), im = /MSIE \d/.exec(Yn), No = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yn), wt = !!(im || No || Ao), Pn = im ? document.documentMode : No ? +No[1] : Ao ? +Ao[1] : 0, qt = !wt && /gecko\/(\d+)/i.test(Yn);
|
|
29689
29689
|
qt && +(/Firefox\/(\d+)/.exec(Yn) || [0, 0])[1];
|
|
29690
|
-
const wo = !wt && /Chrome\/(\d+)/.exec(Yn), dt = !!wo, sm = wo ? +wo[1] : 0, pt = !wt && !!nn && /Apple Computer/.test(nn.vendor),
|
|
29690
|
+
const wo = !wt && /Chrome\/(\d+)/.exec(Yn), dt = !!wo, sm = wo ? +wo[1] : 0, pt = !wt && !!nn && /Apple Computer/.test(nn.vendor), jr = pt && (/Mobile\/\w+/.test(Yn) || !!nn && nn.maxTouchPoints > 2), Ut = jr || (nn ? /Mac/.test(nn.platform) : !1), om = nn ? /Win/.test(nn.platform) : !1, fn = /Android \d/.test(Yn), oa = !!yf && "webkitFontSmoothing" in yf.documentElement.style, Vx = oa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29691
29691
|
function $x(e) {
|
|
29692
29692
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29693
29693
|
return t ? {
|
|
@@ -29718,7 +29718,7 @@ function Ef(e, t, n) {
|
|
|
29718
29718
|
let r = e.someProp("scrollThreshold") || 0, l = e.someProp("scrollMargin") || 5, a = e.dom.ownerDocument;
|
|
29719
29719
|
for (let i = n || e.dom; i; ) {
|
|
29720
29720
|
if (i.nodeType != 1) {
|
|
29721
|
-
i =
|
|
29721
|
+
i = Yr(i);
|
|
29722
29722
|
continue;
|
|
29723
29723
|
}
|
|
29724
29724
|
let s = i, o = s == a.body, u = o ? $x(a) : qx(s), c = 0, d = 0;
|
|
@@ -29734,7 +29734,7 @@ function Ef(e, t, n) {
|
|
|
29734
29734
|
let h = o ? "fixed" : getComputedStyle(i).position;
|
|
29735
29735
|
if (/^(fixed|sticky)$/.test(h))
|
|
29736
29736
|
break;
|
|
29737
|
-
i = h == "absolute" ? i.offsetParent :
|
|
29737
|
+
i = h == "absolute" ? i.offsetParent : Yr(i);
|
|
29738
29738
|
}
|
|
29739
29739
|
}
|
|
29740
29740
|
function Wx(e) {
|
|
@@ -29753,7 +29753,7 @@ function Wx(e) {
|
|
|
29753
29753
|
}
|
|
29754
29754
|
function um(e) {
|
|
29755
29755
|
let t = [], n = e.ownerDocument;
|
|
29756
|
-
for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r =
|
|
29756
|
+
for (let r = e; r && (t.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), e != n); r = Yr(r))
|
|
29757
29757
|
;
|
|
29758
29758
|
return t;
|
|
29759
29759
|
}
|
|
@@ -29767,18 +29767,18 @@ function cm(e, t) {
|
|
|
29767
29767
|
r.scrollTop != l + t && (r.scrollTop = l + t), r.scrollLeft != a && (r.scrollLeft = a);
|
|
29768
29768
|
}
|
|
29769
29769
|
}
|
|
29770
|
-
let
|
|
29770
|
+
let Mr = null;
|
|
29771
29771
|
function jx(e) {
|
|
29772
29772
|
if (e.setActive)
|
|
29773
29773
|
return e.setActive();
|
|
29774
|
-
if (
|
|
29775
|
-
return e.focus(
|
|
29774
|
+
if (Mr)
|
|
29775
|
+
return e.focus(Mr);
|
|
29776
29776
|
let t = um(e);
|
|
29777
|
-
e.focus(
|
|
29777
|
+
e.focus(Mr == null ? {
|
|
29778
29778
|
get preventScroll() {
|
|
29779
|
-
return
|
|
29779
|
+
return Mr = { preventScroll: !0 }, !0;
|
|
29780
29780
|
}
|
|
29781
|
-
} : void 0),
|
|
29781
|
+
} : void 0), Mr || (Mr = !1, cm(t, 0));
|
|
29782
29782
|
}
|
|
29783
29783
|
function dm(e, t) {
|
|
29784
29784
|
let n, r = 2e8, l, a = 0, i = t.top, s = t.top, o, u;
|
|
@@ -29876,7 +29876,7 @@ function Jx(e, t) {
|
|
|
29876
29876
|
return null;
|
|
29877
29877
|
}
|
|
29878
29878
|
if (pt)
|
|
29879
|
-
for (let u = i; r && u; u =
|
|
29879
|
+
for (let u = i; r && u; u = Yr(u))
|
|
29880
29880
|
u.draggable && (r = void 0);
|
|
29881
29881
|
if (i = Gx(i, t), r) {
|
|
29882
29882
|
if (qt && r.nodeType == 1 && (l = Math.min(l, r.childNodes.length), l < r.childNodes.length)) {
|
|
@@ -30434,7 +30434,7 @@ class Tr extends ua {
|
|
|
30434
30434
|
}
|
|
30435
30435
|
static create(t, n, r, l) {
|
|
30436
30436
|
let a = l.nodeViews[n.type.name], i = a && a(n, l, r);
|
|
30437
|
-
return (!i || !i.dom) && (i =
|
|
30437
|
+
return (!i || !i.dom) && (i = kr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Tr(t, n, i.dom, i.contentDOM || i.dom, i);
|
|
30438
30438
|
}
|
|
30439
30439
|
parseRule() {
|
|
30440
30440
|
return this.dirty & rn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -30489,7 +30489,7 @@ class Bn extends ua {
|
|
|
30489
30489
|
c = document.createTextNode(n.text);
|
|
30490
30490
|
else if (c.nodeType != 3)
|
|
30491
30491
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
30492
|
-
} else c || ({ dom: c, contentDOM: d } =
|
|
30492
|
+
} else c || ({ dom: c, contentDOM: d } = kr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
30493
30493
|
!d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
30494
30494
|
let h = c;
|
|
30495
30495
|
return c = ym(c, r, n), u ? o = new a5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new Li(t, n, r, l, c, h, a) : new Bn(t, n, r, l, c, d || null, h, a, i + 1);
|
|
@@ -30535,7 +30535,7 @@ class Bn extends ua {
|
|
|
30535
30535
|
o.syncToMarks(u.marks, r, t, h);
|
|
30536
30536
|
let f;
|
|
30537
30537
|
o.findNodeMatch(u, c, d, h) || s && t.state.selection.from > l && t.state.selection.to < l + u.nodeSize && (f = o.findIndexWithChild(a.node)) > -1 && o.updateNodeAt(u, c, d, f, t) || o.updateNextNode(u, c, d, t, h, l) || o.addNode(u, c, d, t, l), l += u.nodeSize;
|
|
30538
|
-
}), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == ar) && (i && this.protectLocalComposition(t, i), gm(this.contentDOM, this.children, t),
|
|
30538
|
+
}), o.syncToMarks([], r, t, 0), this.node.isTextblock && o.addTextblockHacks(), o.destroyRest(), (o.changed || this.dirty == ar) && (i && this.protectLocalComposition(t, i), gm(this.contentDOM, this.children, t), jr && d5(this.dom));
|
|
30539
30539
|
}
|
|
30540
30540
|
localCompositionInfo(t, n) {
|
|
30541
30541
|
let { from: r, to: l } = t.state.selection;
|
|
@@ -31213,7 +31213,7 @@ function Rl(e, t) {
|
|
|
31213
31213
|
let n = e.pmViewDesc;
|
|
31214
31214
|
return n && n.size == 0 && (t < 0 || e.nextSibling || e.nodeName != "BR");
|
|
31215
31215
|
}
|
|
31216
|
-
function
|
|
31216
|
+
function Rr(e, t) {
|
|
31217
31217
|
return t < 0 ? b5(e) : g5(e);
|
|
31218
31218
|
}
|
|
31219
31219
|
function b5(e) {
|
|
@@ -31400,22 +31400,22 @@ function T5(e) {
|
|
|
31400
31400
|
function C5(e, t) {
|
|
31401
31401
|
let n = t.keyCode, r = T5(t);
|
|
31402
31402
|
if (n == 8 || Ut && n == 72 && r == "c")
|
|
31403
|
-
return Pf(e, -1) ||
|
|
31403
|
+
return Pf(e, -1) || Rr(e, -1);
|
|
31404
31404
|
if (n == 46 && !t.shiftKey || Ut && n == 68 && r == "c")
|
|
31405
|
-
return Pf(e, 1) ||
|
|
31405
|
+
return Pf(e, 1) || Rr(e, 1);
|
|
31406
31406
|
if (n == 13 || n == 27)
|
|
31407
31407
|
return !0;
|
|
31408
31408
|
if (n == 37 || Ut && n == 66 && r == "c") {
|
|
31409
31409
|
let l = n == 37 ? Df(e, e.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
31410
|
-
return Rf(e, l, r) ||
|
|
31410
|
+
return Rf(e, l, r) || Rr(e, l);
|
|
31411
31411
|
} else if (n == 39 || Ut && n == 70 && r == "c") {
|
|
31412
31412
|
let l = n == 39 ? Df(e, e.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
31413
|
-
return Rf(e, l, r) ||
|
|
31413
|
+
return Rf(e, l, r) || Rr(e, l);
|
|
31414
31414
|
} else {
|
|
31415
31415
|
if (n == 38 || Ut && n == 80 && r == "c")
|
|
31416
|
-
return Lf(e, -1, r) ||
|
|
31416
|
+
return Lf(e, -1, r) || Rr(e, -1);
|
|
31417
31417
|
if (n == 40 || Ut && n == 78 && r == "c")
|
|
31418
|
-
return E5(e) || Lf(e, 1, r) ||
|
|
31418
|
+
return E5(e) || Lf(e, 1, r) || Rr(e, 1);
|
|
31419
31419
|
if (r == (Ut ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
31420
31420
|
return !0;
|
|
31421
31421
|
}
|
|
@@ -31431,7 +31431,7 @@ function _u(e, t) {
|
|
|
31431
31431
|
let f = r.firstChild;
|
|
31432
31432
|
n.push(f.type.name, f.attrs != f.type.defaultAttrs ? f.attrs : null), r = f.content;
|
|
31433
31433
|
}
|
|
31434
|
-
let i = e.someProp("clipboardSerializer") ||
|
|
31434
|
+
let i = e.someProp("clipboardSerializer") || kr.fromSchema(e.state.schema), s = Im(), o = s.createElement("div");
|
|
31435
31435
|
o.appendChild(i.serializeFragment(r, { document: s }));
|
|
31436
31436
|
let u = o.firstChild, c, d = 0;
|
|
31437
31437
|
for (; u && u.nodeType == 1 && (c = wm[u.nodeName.toLowerCase()]); ) {
|
|
@@ -31466,7 +31466,7 @@ function Sm(e, t, n, r, l) {
|
|
|
31466
31466
|
if (d)
|
|
31467
31467
|
s = d;
|
|
31468
31468
|
else {
|
|
31469
|
-
let h = l.marks(), { schema: f } = e.state, m =
|
|
31469
|
+
let h = l.marks(), { schema: f } = e.state, m = kr.fromSchema(f);
|
|
31470
31470
|
i = document.createElement("div"), t.split(/(?:\r\n?|\n)+/).forEach((g) => {
|
|
31471
31471
|
let b = i.appendChild(document.createElement("p"));
|
|
31472
31472
|
g && b.appendChild(m.serializeNode(f.text(g, h)));
|
|
@@ -31663,7 +31663,7 @@ function D5(e, t) {
|
|
|
31663
31663
|
Tt.keydown = (e, t) => {
|
|
31664
31664
|
let n = t;
|
|
31665
31665
|
if (e.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Om(e, n) && (e.input.lastKeyCode = n.keyCode, e.input.lastKeyCodeTime = Date.now(), !(fn && dt && n.keyCode == 13)))
|
|
31666
|
-
if (n.keyCode != 229 && e.domObserver.forceFlush(),
|
|
31666
|
+
if (n.keyCode != 229 && e.domObserver.forceFlush(), jr && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
31667
31667
|
let r = Date.now();
|
|
31668
31668
|
e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
31669
31669
|
e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, nr(13, "Enter"))), e.input.lastIOSEnter = 0);
|
|
@@ -31703,7 +31703,7 @@ function Mu(e, t, n, r, l) {
|
|
|
31703
31703
|
return !0;
|
|
31704
31704
|
return !1;
|
|
31705
31705
|
}
|
|
31706
|
-
function
|
|
31706
|
+
function $r(e, t, n) {
|
|
31707
31707
|
if (e.focused || e.focus(), e.state.selection.eq(t))
|
|
31708
31708
|
return;
|
|
31709
31709
|
let r = e.state.tr.setSelection(t);
|
|
@@ -31713,7 +31713,7 @@ function P5(e, t) {
|
|
|
31713
31713
|
if (t == -1)
|
|
31714
31714
|
return !1;
|
|
31715
31715
|
let n = e.state.doc.resolve(t), r = n.nodeAfter;
|
|
31716
|
-
return r && r.isAtom && be.isSelectable(r) ? (
|
|
31716
|
+
return r && r.isAtom && be.isSelectable(r) ? ($r(e, new be(n)), !0) : !1;
|
|
31717
31717
|
}
|
|
31718
31718
|
function B5(e, t) {
|
|
31719
31719
|
if (t == -1)
|
|
@@ -31728,7 +31728,7 @@ function B5(e, t) {
|
|
|
31728
31728
|
break;
|
|
31729
31729
|
}
|
|
31730
31730
|
}
|
|
31731
|
-
return l != null ? (
|
|
31731
|
+
return l != null ? ($r(e, be.create(e.state.doc, l)), !0) : !1;
|
|
31732
31732
|
}
|
|
31733
31733
|
function F5(e, t, n, r, l) {
|
|
31734
31734
|
return Mu(e, "handleClickOn", t, n, r) || e.someProp("handleClick", (a) => a(e, t, r)) || (l ? B5(e, n) : P5(e, n));
|
|
@@ -31744,14 +31744,14 @@ function z5(e, t, n) {
|
|
|
31744
31744
|
return !1;
|
|
31745
31745
|
let r = e.state.doc;
|
|
31746
31746
|
if (t == -1)
|
|
31747
|
-
return r.inlineContent ? (
|
|
31747
|
+
return r.inlineContent ? ($r(e, Ee.create(r, 0, r.content.size)), !0) : !1;
|
|
31748
31748
|
let l = r.resolve(t);
|
|
31749
31749
|
for (let a = l.depth + 1; a > 0; a--) {
|
|
31750
31750
|
let i = a > l.depth ? l.nodeAfter : l.node(a), s = l.before(a);
|
|
31751
31751
|
if (i.inlineContent)
|
|
31752
|
-
|
|
31752
|
+
$r(e, Ee.create(r, s + 1, s + 1 + i.content.size));
|
|
31753
31753
|
else if (be.isSelectable(i))
|
|
31754
|
-
|
|
31754
|
+
$r(e, be.create(r, s));
|
|
31755
31755
|
else
|
|
31756
31756
|
continue;
|
|
31757
31757
|
return !0;
|
|
@@ -31806,7 +31806,7 @@ class V5 {
|
|
|
31806
31806
|
// (hidden) cursor is doesn't change the selection, and
|
|
31807
31807
|
// thus doesn't get a reaction from ProseMirror. This
|
|
31808
31808
|
// works around that.
|
|
31809
|
-
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
31809
|
+
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? ($r(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
|
|
31810
31810
|
}
|
|
31811
31811
|
move(t) {
|
|
31812
31812
|
this.updateAllowDefault(t), Dn(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
@@ -31909,7 +31909,7 @@ function j5(e, t) {
|
|
|
31909
31909
|
n.parentNode && n.parentNode.removeChild(n), e.focus();
|
|
31910
31910
|
}, 50);
|
|
31911
31911
|
}
|
|
31912
|
-
const Yl = wt && Pn < 15 ||
|
|
31912
|
+
const Yl = wt && Pn < 15 || jr && Vx < 604;
|
|
31913
31913
|
Et.copy = Tt.cut = (e, t) => {
|
|
31914
31914
|
let n = t, r = e.state.selection, l = n.type == "cut";
|
|
31915
31915
|
if (r.empty)
|
|
@@ -32196,13 +32196,13 @@ class Lt {
|
|
|
32196
32196
|
return this.type instanceof fi;
|
|
32197
32197
|
}
|
|
32198
32198
|
}
|
|
32199
|
-
const
|
|
32199
|
+
const Lr = [], hr = {};
|
|
32200
32200
|
class Xe {
|
|
32201
32201
|
/**
|
|
32202
32202
|
@internal
|
|
32203
32203
|
*/
|
|
32204
32204
|
constructor(t, n) {
|
|
32205
|
-
this.local = t.length ? t :
|
|
32205
|
+
this.local = t.length ? t : Lr, this.children = n.length ? n : Lr;
|
|
32206
32206
|
}
|
|
32207
32207
|
/**
|
|
32208
32208
|
Create a set of decorations, using the structure of the given
|
|
@@ -32251,7 +32251,7 @@ class Xe {
|
|
|
32251
32251
|
let o = this.local[s].map(t, r, l);
|
|
32252
32252
|
o && o.type.valid(n, o) ? (i || (i = [])).push(o) : a.onRemove && a.onRemove(this.local[s].spec);
|
|
32253
32253
|
}
|
|
32254
|
-
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr),
|
|
32254
|
+
return this.children.length ? J5(this.children, i || [], t, n, r, l, a) : i ? new Xe(i.sort(pr), Lr) : ht;
|
|
32255
32255
|
}
|
|
32256
32256
|
/**
|
|
32257
32257
|
Add the given array of decorations to the ones in the set,
|
|
@@ -32324,7 +32324,7 @@ class Xe {
|
|
|
32324
32324
|
}
|
|
32325
32325
|
}
|
|
32326
32326
|
if (l) {
|
|
32327
|
-
let s = new Xe(l.sort(pr),
|
|
32327
|
+
let s = new Xe(l.sort(pr), Lr);
|
|
32328
32328
|
return r ? new _n([s, r]) : s;
|
|
32329
32329
|
}
|
|
32330
32330
|
return r || ht;
|
|
@@ -32356,7 +32356,7 @@ class Xe {
|
|
|
32356
32356
|
*/
|
|
32357
32357
|
localsInner(t) {
|
|
32358
32358
|
if (this == ht)
|
|
32359
|
-
return
|
|
32359
|
+
return Lr;
|
|
32360
32360
|
if (t.inlineContent || !this.local.some(Fn.is))
|
|
32361
32361
|
return this.local;
|
|
32362
32362
|
let n = [];
|
|
@@ -32410,7 +32410,7 @@ class _n {
|
|
|
32410
32410
|
n.push(a[i]);
|
|
32411
32411
|
}
|
|
32412
32412
|
}
|
|
32413
|
-
return n ? Lu(r ? n : n.sort(pr)) :
|
|
32413
|
+
return n ? Lu(r ? n : n.sort(pr)) : Lr;
|
|
32414
32414
|
}
|
|
32415
32415
|
// Create a group for the given array of decoration sets, or return
|
|
32416
32416
|
// a single set when possible.
|
|
@@ -32646,9 +32646,9 @@ class rS {
|
|
|
32646
32646
|
if (!t.focusNode)
|
|
32647
32647
|
return !0;
|
|
32648
32648
|
let n = /* @__PURE__ */ new Set(), r;
|
|
32649
|
-
for (let a = t.focusNode; a; a =
|
|
32649
|
+
for (let a = t.focusNode; a; a = Yr(a))
|
|
32650
32650
|
n.add(a);
|
|
32651
|
-
for (let a = t.anchorNode; a; a =
|
|
32651
|
+
for (let a = t.anchorNode; a; a = Yr(a))
|
|
32652
32652
|
if (n.has(a)) {
|
|
32653
32653
|
r = a;
|
|
32654
32654
|
break;
|
|
@@ -32853,7 +32853,7 @@ function dS(e, t, n, r, l) {
|
|
|
32853
32853
|
let o = e.state.selection, u = oS(e, t, n), c = e.state.doc, d = c.slice(u.from, u.to), h, f;
|
|
32854
32854
|
e.input.lastKeyCode === 8 && Date.now() - 100 < e.input.lastKeyCodeTime ? (h = e.state.selection.to, f = "end") : (h = e.state.selection.from, f = "start"), e.input.lastKeyCode = null;
|
|
32855
32855
|
let m = pS(d.content, u.doc.content, u.from, h, f);
|
|
32856
|
-
if (m && e.input.domChangeCount++, (
|
|
32856
|
+
if (m && e.input.domChangeCount++, (jr && e.input.lastIOSEnter > Date.now() - 225 || fn) && l.some((w) => w.nodeType == 1 && !cS.test(w.nodeName)) && (!m || m.endA >= m.endB) && e.someProp("handleKeyDown", (w) => w(e, nr(13, "Enter")))) {
|
|
32857
32857
|
e.input.lastIOSEnter = 0;
|
|
32858
32858
|
return;
|
|
32859
32859
|
}
|
|
@@ -32872,7 +32872,7 @@ function dS(e, t, n, r, l) {
|
|
|
32872
32872
|
}
|
|
32873
32873
|
e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt && Pn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
32874
32874
|
let g = u.doc.resolveNoCache(m.start - u.from), b = u.doc.resolveNoCache(m.endB - u.from), y = c.resolve(m.start), A = g.sameParent(b) && g.parent.inlineContent && y.end() >= m.endA;
|
|
32875
|
-
if ((
|
|
32875
|
+
if ((jr && e.input.lastIOSEnter > Date.now() - 225 && (!A || l.some((w) => w.nodeName == "DIV" || w.nodeName == "P")) || !A && g.pos < u.doc.content.size && (!g.sameParent(b) || !g.parent.inlineContent) && g.pos < b.pos && !/\S/.test(u.doc.textBetween(g.pos, b.pos, "", ""))) && e.someProp("handleKeyDown", (w) => w(e, nr(13, "Enter")))) {
|
|
32876
32876
|
e.input.lastIOSEnter = 0;
|
|
32877
32877
|
return;
|
|
32878
32878
|
}
|
|
@@ -33527,13 +33527,13 @@ const $m = (e, t, n) => {
|
|
|
33527
33527
|
let a = l.nodeBefore;
|
|
33528
33528
|
if (Jm(e, l, t, -1))
|
|
33529
33529
|
return !0;
|
|
33530
|
-
if (r.parent.content.size == 0 && (
|
|
33530
|
+
if (r.parent.content.size == 0 && (Kr(a, "end") || be.isSelectable(a)))
|
|
33531
33531
|
for (let i = r.depth; ; i--) {
|
|
33532
33532
|
let s = Mi(e.doc, r.before(i), r.after(i), ue.empty);
|
|
33533
33533
|
if (s && s.slice.size < s.to - s.from) {
|
|
33534
33534
|
if (t) {
|
|
33535
33535
|
let o = e.tr.step(s);
|
|
33536
|
-
o.setSelection(
|
|
33536
|
+
o.setSelection(Kr(a, "end") ? Ae.findFrom(o.doc.resolve(o.mapping.map(l.pos, -1)), -1) : be.create(o.doc, l.pos - a.nodeSize)), t(o.scrollIntoView());
|
|
33537
33537
|
}
|
|
33538
33538
|
return !0;
|
|
33539
33539
|
}
|
|
@@ -33582,7 +33582,7 @@ function qm(e, t, n) {
|
|
|
33582
33582
|
}
|
|
33583
33583
|
return !0;
|
|
33584
33584
|
}
|
|
33585
|
-
function
|
|
33585
|
+
function Kr(e, t, n = !1) {
|
|
33586
33586
|
for (let r = e; r; r = t == "start" ? r.firstChild : r.lastChild) {
|
|
33587
33587
|
if (r.isTextblock)
|
|
33588
33588
|
return !0;
|
|
@@ -33627,12 +33627,12 @@ const jm = (e, t, n) => {
|
|
|
33627
33627
|
let a = l.nodeAfter;
|
|
33628
33628
|
if (Jm(e, l, t, 1))
|
|
33629
33629
|
return !0;
|
|
33630
|
-
if (r.parent.content.size == 0 && (
|
|
33630
|
+
if (r.parent.content.size == 0 && (Kr(a, "start") || be.isSelectable(a))) {
|
|
33631
33631
|
let i = Mi(e.doc, r.before(), r.after(), ue.empty);
|
|
33632
33632
|
if (i && i.slice.size < i.to - i.from) {
|
|
33633
33633
|
if (t) {
|
|
33634
33634
|
let s = e.tr.step(i);
|
|
33635
|
-
s.setSelection(
|
|
33635
|
+
s.setSelection(Kr(a, "start") ? Ae.findFrom(s.doc.resolve(s.mapping.map(l.pos)), 1) : be.create(s.doc, s.mapping.map(l.pos))), t(s.scrollIntoView());
|
|
33636
33636
|
}
|
|
33637
33637
|
return !0;
|
|
33638
33638
|
}
|
|
@@ -33791,7 +33791,7 @@ function Jm(e, t, n, r) {
|
|
|
33791
33791
|
let c = a.type.spec.isolating || r > 0 && o ? null : Ae.findFrom(t, 1), d = c && c.$from.blockRange(c.$to), h = d && ll(d);
|
|
33792
33792
|
if (h != null && h >= t.depth)
|
|
33793
33793
|
return n && n(e.tr.lift(d, h).scrollIntoView()), !0;
|
|
33794
|
-
if (u &&
|
|
33794
|
+
if (u && Kr(a, "start", !0) && Kr(l, "end")) {
|
|
33795
33795
|
let f = l, m = [];
|
|
33796
33796
|
for (; m.push(f), !f.isTextblock; )
|
|
33797
33797
|
f = f.lastChild;
|
|
@@ -34288,7 +34288,7 @@ function eh(e, t) {
|
|
|
34288
34288
|
return Array.isArray(t) ? t.some((n) => (typeof n == "string" ? n : n.name) === e.name) : t;
|
|
34289
34289
|
}
|
|
34290
34290
|
function zu(e, t) {
|
|
34291
|
-
const n =
|
|
34291
|
+
const n = kr.fromSchema(t).serializeFragment(e), l = document.implementation.createHTMLDocument().createElement("div");
|
|
34292
34292
|
return l.appendChild(n), l.innerHTML;
|
|
34293
34293
|
}
|
|
34294
34294
|
const GS = (e, t = 500) => {
|
|
@@ -34646,9 +34646,9 @@ function a8(e) {
|
|
|
34646
34646
|
const t = e.filter((n, r) => e.indexOf(n) !== r);
|
|
34647
34647
|
return Array.from(new Set(t));
|
|
34648
34648
|
}
|
|
34649
|
-
class
|
|
34649
|
+
class Hr {
|
|
34650
34650
|
constructor(t, n) {
|
|
34651
|
-
this.splittableMarks = [], this.editor = n, this.extensions =
|
|
34651
|
+
this.splittableMarks = [], this.editor = n, this.extensions = Hr.resolve(t), this.schema = KS(this.extensions, n), this.setupExtensions();
|
|
34652
34652
|
}
|
|
34653
34653
|
/**
|
|
34654
34654
|
* Returns a flattened and sorted extension list while
|
|
@@ -34657,7 +34657,7 @@ class Fr {
|
|
|
34657
34657
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
34658
34658
|
*/
|
|
34659
34659
|
static resolve(t) {
|
|
34660
|
-
const n =
|
|
34660
|
+
const n = Hr.sort(Hr.flatten(t)), r = a8(n.map((l) => l.name));
|
|
34661
34661
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((l) => `'${l}'`).join(", ")}]. This can lead to issues.`), n;
|
|
34662
34662
|
}
|
|
34663
34663
|
/**
|
|
@@ -34710,7 +34710,7 @@ class Fr {
|
|
|
34710
34710
|
* @returns An array of Prosemirror plugins
|
|
34711
34711
|
*/
|
|
34712
34712
|
get plugins() {
|
|
34713
|
-
const { editor: t } = this, n =
|
|
34713
|
+
const { editor: t } = this, n = Hr.sort([...this.extensions].reverse()), r = [], l = [], a = n.map((i) => {
|
|
34714
34714
|
const s = {
|
|
34715
34715
|
name: i.name,
|
|
34716
34716
|
options: i.options,
|
|
@@ -36304,7 +36304,7 @@ class Dk extends WS {
|
|
|
36304
36304
|
kk,
|
|
36305
36305
|
_k
|
|
36306
36306
|
].filter((a) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[a.name] !== !1 : !0) : [], ...this.options.extensions].filter((a) => ["extension", "node", "mark"].includes(a?.type));
|
|
36307
|
-
this.extensionManager = new
|
|
36307
|
+
this.extensionManager = new Hr(l, this);
|
|
36308
36308
|
}
|
|
36309
36309
|
/**
|
|
36310
36310
|
* Creates an command manager.
|
|
@@ -36348,7 +36348,7 @@ class Dk extends WS {
|
|
|
36348
36348
|
...(t = this.options.editorProps) === null || t === void 0 ? void 0 : t.attributes
|
|
36349
36349
|
},
|
|
36350
36350
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
36351
|
-
state:
|
|
36351
|
+
state: Fr.create({
|
|
36352
36352
|
doc: n,
|
|
36353
36353
|
selection: r || void 0
|
|
36354
36354
|
})
|
|
@@ -36508,7 +36508,7 @@ class Dk extends WS {
|
|
|
36508
36508
|
return this.$pos(0);
|
|
36509
36509
|
}
|
|
36510
36510
|
}
|
|
36511
|
-
function
|
|
36511
|
+
function Gr(e) {
|
|
36512
36512
|
return new Ui({
|
|
36513
36513
|
find: e.find,
|
|
36514
36514
|
handler: ({ state: t, range: n, match: r }) => {
|
|
@@ -36617,7 +36617,7 @@ class It {
|
|
|
36617
36617
|
})), n;
|
|
36618
36618
|
}
|
|
36619
36619
|
}
|
|
36620
|
-
function
|
|
36620
|
+
function Qr(e) {
|
|
36621
36621
|
return new e8({
|
|
36622
36622
|
find: e.find,
|
|
36623
36623
|
handler: ({ state: t, range: n, match: r, pasteEvent: l }) => {
|
|
@@ -37326,11 +37326,11 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37326
37326
|
},
|
|
37327
37327
|
addInputRules() {
|
|
37328
37328
|
return [
|
|
37329
|
-
|
|
37329
|
+
Gr({
|
|
37330
37330
|
find: sA,
|
|
37331
37331
|
type: this.type
|
|
37332
37332
|
}),
|
|
37333
|
-
|
|
37333
|
+
Gr({
|
|
37334
37334
|
find: uA,
|
|
37335
37335
|
type: this.type
|
|
37336
37336
|
})
|
|
@@ -37338,11 +37338,11 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37338
37338
|
},
|
|
37339
37339
|
addPasteRules() {
|
|
37340
37340
|
return [
|
|
37341
|
-
|
|
37341
|
+
Qr({
|
|
37342
37342
|
find: oA,
|
|
37343
37343
|
type: this.type
|
|
37344
37344
|
}),
|
|
37345
|
-
|
|
37345
|
+
Qr({
|
|
37346
37346
|
find: cA,
|
|
37347
37347
|
type: this.type
|
|
37348
37348
|
})
|
|
@@ -37428,7 +37428,7 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37428
37428
|
},
|
|
37429
37429
|
addInputRules() {
|
|
37430
37430
|
return [
|
|
37431
|
-
|
|
37431
|
+
Gr({
|
|
37432
37432
|
find: pA,
|
|
37433
37433
|
type: this.type
|
|
37434
37434
|
})
|
|
@@ -37436,7 +37436,7 @@ const aA = /^\s*>\s$/, iA = It.create({
|
|
|
37436
37436
|
},
|
|
37437
37437
|
addPasteRules() {
|
|
37438
37438
|
return [
|
|
37439
|
-
|
|
37439
|
+
Qr({
|
|
37440
37440
|
find: mA,
|
|
37441
37441
|
type: this.type
|
|
37442
37442
|
})
|
|
@@ -38444,11 +38444,11 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38444
38444
|
},
|
|
38445
38445
|
addInputRules() {
|
|
38446
38446
|
return [
|
|
38447
|
-
|
|
38447
|
+
Gr({
|
|
38448
38448
|
find: WA,
|
|
38449
38449
|
type: this.type
|
|
38450
38450
|
}),
|
|
38451
|
-
|
|
38451
|
+
Gr({
|
|
38452
38452
|
find: jA,
|
|
38453
38453
|
type: this.type
|
|
38454
38454
|
})
|
|
@@ -38456,11 +38456,11 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38456
38456
|
},
|
|
38457
38457
|
addPasteRules() {
|
|
38458
38458
|
return [
|
|
38459
|
-
|
|
38459
|
+
Qr({
|
|
38460
38460
|
find: YA,
|
|
38461
38461
|
type: this.type
|
|
38462
38462
|
}),
|
|
38463
|
-
|
|
38463
|
+
Qr({
|
|
38464
38464
|
find: KA,
|
|
38465
38465
|
type: this.type
|
|
38466
38466
|
})
|
|
@@ -38630,7 +38630,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38630
38630
|
},
|
|
38631
38631
|
addInputRules() {
|
|
38632
38632
|
return [
|
|
38633
|
-
|
|
38633
|
+
Gr({
|
|
38634
38634
|
find: eN,
|
|
38635
38635
|
type: this.type
|
|
38636
38636
|
})
|
|
@@ -38638,7 +38638,7 @@ const p1 = h1(!1, !0), m1 = h1(!0, !0), $A = mt.create({
|
|
|
38638
38638
|
},
|
|
38639
38639
|
addPasteRules() {
|
|
38640
38640
|
return [
|
|
38641
|
-
|
|
38641
|
+
Qr({
|
|
38642
38642
|
find: tN,
|
|
38643
38643
|
type: this.type
|
|
38644
38644
|
})
|
|
@@ -39573,7 +39573,7 @@ const _N = {
|
|
|
39573
39573
|
placement: "bottomLeft",
|
|
39574
39574
|
align: a,
|
|
39575
39575
|
autoAdjustOverflow: ON,
|
|
39576
|
-
getPopupContainer:
|
|
39576
|
+
getPopupContainer: Sr,
|
|
39577
39577
|
trigger: ["click"],
|
|
39578
39578
|
overlayClassName: "rte-agent-dropdown",
|
|
39579
39579
|
onOpenChange: u,
|
|
@@ -39900,7 +39900,7 @@ const MN = ["全部技能", "我的技能", "订阅技能", "系统技能"], RN
|
|
|
39900
39900
|
}, 300);
|
|
39901
39901
|
}, []), C = $(() => {
|
|
39902
39902
|
window.clearTimeout(y.current), b(!1), m(!1);
|
|
39903
|
-
}, []), [I, M] = K(""), [x, w] = K(""), N =
|
|
39903
|
+
}, []), [I, M] = K(""), [x, w] = K(""), N = nl(), k = N ? () => N : void 0, R = J(0), _ = J(null), F = J(0), V = J(0), P = $(() => {
|
|
39904
39904
|
const T = _.current;
|
|
39905
39905
|
T && (T.classList.add("is-scrolling"), window.clearTimeout(V.current), V.current = window.setTimeout(() => {
|
|
39906
39906
|
T.classList.remove("is-scrolling");
|
|
@@ -40058,7 +40058,7 @@ const Ha = 4, x1 = () => /* @__PURE__ */ v(
|
|
|
40058
40058
|
const A = m ? g : h, C = $((E) => {
|
|
40059
40059
|
const B = typeof E == "function" ? E(A) : E;
|
|
40060
40060
|
m || f(B), u?.(B);
|
|
40061
|
-
}, [m, A, u]), [I, M] = K(null), x = J(null), w = J(null), N =
|
|
40061
|
+
}, [m, A, u]), [I, M] = K(null), x = J(null), w = J(null), N = nl(), k = $(() => (x.current?.closest(".rich-text-editor") ?? x.current)?.getBoundingClientRect() ?? null, []), R = $(() => {
|
|
40062
40062
|
const E = k();
|
|
40063
40063
|
if (!E) return;
|
|
40064
40064
|
const B = Math.max(0, window.innerHeight - E.bottom - Ha * 2), U = Math.max(0, E.top - Ha * 2), G = (w.current?.scrollHeight ?? 0) > B && U > B, T = G ? U : B, ie = (w.current?.offsetParent ?? N)?.getBoundingClientRect(), D = ie?.left ?? 0, pe = ie?.top ?? 0, ye = E.left - D;
|
|
@@ -40174,6 +40174,11 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40174
40174
|
a.push(o), i += o.size;
|
|
40175
40175
|
}
|
|
40176
40176
|
return { accepted: a, imageOversize: n, totalExceeded: s };
|
|
40177
|
+
}, a9 = {
|
|
40178
|
+
adjustX: 1,
|
|
40179
|
+
adjustY: 1,
|
|
40180
|
+
shiftX: !1,
|
|
40181
|
+
shiftY: !1
|
|
40177
40182
|
}, k1 = ve.memo(({ files: e, onChange: t, disabled: n, onAssetLibraryClick: r }) => {
|
|
40178
40183
|
const { message: l } = zn.useApp(), a = J(null), [i, s] = K(!1), o = $(
|
|
40179
40184
|
(d) => {
|
|
@@ -40206,7 +40211,9 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40206
40211
|
}
|
|
40207
40212
|
], onClick: u },
|
|
40208
40213
|
trigger: ["click"],
|
|
40209
|
-
placement: "
|
|
40214
|
+
placement: "bottomLeft",
|
|
40215
|
+
autoAdjustOverflow: a9,
|
|
40216
|
+
getPopupContainer: Sr,
|
|
40210
40217
|
disabled: n,
|
|
40211
40218
|
open: i,
|
|
40212
40219
|
onOpenChange: s,
|
|
@@ -40235,7 +40242,7 @@ const ZN = 10 * 1024 * 1024, e9 = 50 * 1024 * 1024, t9 = "图片大小不能超
|
|
|
40235
40242
|
] });
|
|
40236
40243
|
});
|
|
40237
40244
|
k1.displayName = "UploadButton";
|
|
40238
|
-
const
|
|
40245
|
+
const i9 = () => /* @__PURE__ */ v(
|
|
40239
40246
|
"svg",
|
|
40240
40247
|
{
|
|
40241
40248
|
width: "16",
|
|
@@ -40265,7 +40272,7 @@ const a9 = () => /* @__PURE__ */ v(
|
|
|
40265
40272
|
"aria-pressed": !!e,
|
|
40266
40273
|
style: { cursor: r ? "not-allowed" : "pointer" },
|
|
40267
40274
|
children: [
|
|
40268
|
-
/* @__PURE__ */ v(
|
|
40275
|
+
/* @__PURE__ */ v(i9, {}),
|
|
40269
40276
|
/* @__PURE__ */ v("span", { className: "rte-ai-image-text", children: "AI生图" }),
|
|
40270
40277
|
e && n && /* @__PURE__ */ v(
|
|
40271
40278
|
"i",
|
|
@@ -40318,7 +40325,7 @@ const w1 = ve.memo(
|
|
|
40318
40325
|
}
|
|
40319
40326
|
);
|
|
40320
40327
|
w1.displayName = "PointsBadge";
|
|
40321
|
-
const no = 8, Ch = 72,
|
|
40328
|
+
const no = 8, Ch = 72, s9 = 100, o9 = ".rte-more-menu,[data-rte-more-button],.rte-skill-panel-popup,.rte-skill-delete-confirm,.rte-skill-share-popover,.rte-agent-dropdown,.ant-dropdown", u9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
40322
40329
|
/* @__PURE__ */ v(
|
|
40323
40330
|
"path",
|
|
40324
40331
|
{
|
|
@@ -40378,7 +40385,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40378
40385
|
if (!u) return;
|
|
40379
40386
|
const R = (_) => {
|
|
40380
40387
|
const F = _.target;
|
|
40381
|
-
F && F.closest(
|
|
40388
|
+
F && F.closest(o9) || c(!1);
|
|
40382
40389
|
};
|
|
40383
40390
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
40384
40391
|
}, [u]), ze(() => {
|
|
@@ -40417,7 +40424,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40417
40424
|
const E = new Set(P);
|
|
40418
40425
|
return E.delete(F), E;
|
|
40419
40426
|
});
|
|
40420
|
-
},
|
|
40427
|
+
}, s9);
|
|
40421
40428
|
_.set(F, V);
|
|
40422
40429
|
}
|
|
40423
40430
|
}), N.forEach((F) => {
|
|
@@ -40464,7 +40471,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40464
40471
|
disabled: n,
|
|
40465
40472
|
trigger: ["click"],
|
|
40466
40473
|
placement: "topLeft",
|
|
40467
|
-
getPopupContainer:
|
|
40474
|
+
getPopupContainer: Sr,
|
|
40468
40475
|
popupRender: () => /* @__PURE__ */ v("div", { className: "rte-more-menu", children: w.map((R) => /* @__PURE__ */ v("div", { className: "rte-more-menu-item", children: R.renderMenuItem ? R.renderMenuItem({ close: C, activate: () => M(R.key) }) : I(R, !0) }, R.key)) }),
|
|
40469
40476
|
children: /* @__PURE__ */ W(
|
|
40470
40477
|
"div",
|
|
@@ -40474,7 +40481,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40474
40481
|
"data-rte-more-button": "true",
|
|
40475
40482
|
style: { cursor: n ? "not-allowed" : "pointer" },
|
|
40476
40483
|
children: [
|
|
40477
|
-
/* @__PURE__ */ v(
|
|
40484
|
+
/* @__PURE__ */ v(u9, {}),
|
|
40478
40485
|
/* @__PURE__ */ v("span", { children: "更多" })
|
|
40479
40486
|
]
|
|
40480
40487
|
}
|
|
@@ -40484,7 +40491,7 @@ const I1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
|
40484
40491
|
] });
|
|
40485
40492
|
};
|
|
40486
40493
|
I1.displayName = "ToolbarOverflow";
|
|
40487
|
-
const
|
|
40494
|
+
const c9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
40488
40495
|
({
|
|
40489
40496
|
isProcessing: e,
|
|
40490
40497
|
loading: t,
|
|
@@ -40553,7 +40560,7 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40553
40560
|
currentAgent: h,
|
|
40554
40561
|
onOpenChange: c,
|
|
40555
40562
|
onExit: R,
|
|
40556
|
-
align: pe ?
|
|
40563
|
+
align: pe ? c9 : void 0
|
|
40557
40564
|
}
|
|
40558
40565
|
)
|
|
40559
40566
|
}), ie.push({
|
|
@@ -40658,7 +40665,7 @@ const u9 = { points: ["tl", "tr"], offset: [4, 0] }, _1 = ve.memo(
|
|
|
40658
40665
|
}
|
|
40659
40666
|
);
|
|
40660
40667
|
_1.displayName = "Footer";
|
|
40661
|
-
const
|
|
40668
|
+
const d9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
40662
40669
|
/* @__PURE__ */ v("g", { clipPath: "url(#footer_report_icon_clip)", children: /* @__PURE__ */ v(
|
|
40663
40670
|
"path",
|
|
40664
40671
|
{
|
|
@@ -40667,7 +40674,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40667
40674
|
}
|
|
40668
40675
|
) }),
|
|
40669
40676
|
/* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "footer_report_icon_clip", children: /* @__PURE__ */ v("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
40670
|
-
] }),
|
|
40677
|
+
] }), f9 = ({
|
|
40671
40678
|
report: e,
|
|
40672
40679
|
onRemove: t,
|
|
40673
40680
|
displayKey: n
|
|
@@ -40679,7 +40686,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40679
40686
|
className: `rte-footer-report-chip${e.status === "error" ? " rte-footer-report-chip-error" : ""}`,
|
|
40680
40687
|
"data-rte-footer-display-key": n,
|
|
40681
40688
|
children: [
|
|
40682
|
-
/* @__PURE__ */ v("div", { className: "rte-footer-report-icon", children: e.status === "parsing" ? /* @__PURE__ */ v(Jl, { size: "small" }) : /* @__PURE__ */ v(
|
|
40689
|
+
/* @__PURE__ */ v("div", { className: "rte-footer-report-icon", children: e.status === "parsing" ? /* @__PURE__ */ v(Jl, { size: "small" }) : /* @__PURE__ */ v(d9, {}) }),
|
|
40683
40690
|
/* @__PURE__ */ W("div", { className: "rte-footer-report-info", children: [
|
|
40684
40691
|
/* @__PURE__ */ v("span", { className: "rte-footer-report-name", title: e.status === "done" ? e.name : e.url, children: r }),
|
|
40685
40692
|
e.status === "done" && e.date ? /* @__PURE__ */ v("span", { className: "rte-footer-report-date", children: e.date }) : null
|
|
@@ -40703,13 +40710,13 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40703
40710
|
]
|
|
40704
40711
|
}
|
|
40705
40712
|
);
|
|
40706
|
-
},
|
|
40713
|
+
}, h9 = (e) => e < 1024 ? `${e}B` : e < 1024 * 1024 ? `${Math.round(e / 1024)}KB` : `${(e / (1024 * 1024)).toFixed(1)}MB`, O1 = (e) => /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(e || ""), p9 = (e) => (e.type?.startsWith("image/") ?? !1) || O1(e.name || ""), $o = (e) => /\.(mp4|mov|webm|mkv|avi|m4v|ogg)$/i.test(e || ""), m9 = (e) => (e.type?.startsWith("video/") ?? !1) || $o(e.name || ""), b9 = (e) => {
|
|
40707
40714
|
if (!(typeof navigator < "u" && /jsdom/i.test(navigator.userAgent)))
|
|
40708
40715
|
try {
|
|
40709
40716
|
e.load();
|
|
40710
40717
|
} catch {
|
|
40711
40718
|
}
|
|
40712
|
-
},
|
|
40719
|
+
}, g9 = (e) => new Promise((t) => {
|
|
40713
40720
|
const n = document.createElement("video");
|
|
40714
40721
|
let r = !1, l = null;
|
|
40715
40722
|
const a = window.setTimeout(() => s(""), 8e3), i = () => {
|
|
@@ -40747,8 +40754,8 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40747
40754
|
const h = n.play();
|
|
40748
40755
|
h && typeof h.catch == "function" && h.catch(() => u());
|
|
40749
40756
|
};
|
|
40750
|
-
n.onloadedmetadata = c, n.oncanplay = c, n.onerror = () => s(""), n.crossOrigin = "anonymous", n.preload = "auto", n.muted = !0, n.playsInline = !0, n.autoplay = !1, n.src = e,
|
|
40751
|
-
}),
|
|
40757
|
+
n.onloadedmetadata = c, n.oncanplay = c, n.onerror = () => s(""), n.crossOrigin = "anonymous", n.preload = "auto", n.muted = !0, n.playsInline = !0, n.autoplay = !1, n.src = e, b9(n);
|
|
40758
|
+
}), v9 = (e) => {
|
|
40752
40759
|
const [t, n] = K({ src: "", status: "loading" });
|
|
40753
40760
|
return he(() => {
|
|
40754
40761
|
if (!e) {
|
|
@@ -40756,14 +40763,14 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40756
40763
|
return;
|
|
40757
40764
|
}
|
|
40758
40765
|
let r = !0;
|
|
40759
|
-
return n({ src: "", status: "loading" }),
|
|
40766
|
+
return n({ src: "", status: "loading" }), g9(e).then((l) => {
|
|
40760
40767
|
r && n(l ? { src: l, status: "ready" } : { src: "", status: "failed" });
|
|
40761
40768
|
}), () => {
|
|
40762
40769
|
r = !1;
|
|
40763
40770
|
};
|
|
40764
40771
|
}, [e]), t;
|
|
40765
40772
|
}, M1 = ({ src: e, alt: t }) => {
|
|
40766
|
-
const n =
|
|
40773
|
+
const n = v9(e);
|
|
40767
40774
|
return n.status === "ready" ? /* @__PURE__ */ W("span", { className: "rte-footer-video-thumb-wrap", children: [
|
|
40768
40775
|
/* @__PURE__ */ v("img", { className: "rte-footer-file-thumb rte-footer-video-thumb", src: n.src, alt: t }),
|
|
40769
40776
|
/* @__PURE__ */ v("span", { className: "rte-footer-video-play-icon" })
|
|
@@ -40771,8 +40778,8 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40771
40778
|
}, R1 = (e) => {
|
|
40772
40779
|
const t = (e || "").split(".").pop()?.toLowerCase() || "";
|
|
40773
40780
|
return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(t) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(t) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(t) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(t) ? "icon-txt" : t === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(t) ? "icon-a-htmljson" : t === "md" ? "icon-md" : ["mp4", "mov", "webm", "mkv", "avi", "m4v"].includes(t) ? "icon-shipin" : "icon-lianjie";
|
|
40774
|
-
},
|
|
40775
|
-
const r =
|
|
40781
|
+
}, y9 = ({ file: e, onRemove: t, displayKey: n }) => {
|
|
40782
|
+
const r = p9(e), l = m9(e), a = m0(r || l ? e : null);
|
|
40776
40783
|
return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", "data-rte-footer-display-key": n, children: [
|
|
40777
40784
|
r ? (
|
|
40778
40785
|
// 预览遮罩必须走 document.body 而非 popupHost——host 是编辑器后代,业务祖先链上的
|
|
@@ -40794,7 +40801,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40794
40801
|
) : l ? /* @__PURE__ */ v(M1, { src: a, alt: e.name }) : /* @__PURE__ */ v("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ v("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ v("use", { xlinkHref: `#${R1(e.name)}` }) }) }),
|
|
40795
40802
|
/* @__PURE__ */ W("div", { className: "rte-footer-file-info", children: [
|
|
40796
40803
|
/* @__PURE__ */ v("span", { className: "rte-footer-file-name", title: e.name, children: e.name }),
|
|
40797
|
-
/* @__PURE__ */ v("span", { className: "rte-footer-file-size", children:
|
|
40804
|
+
/* @__PURE__ */ v("span", { className: "rte-footer-file-size", children: h9(e.size) })
|
|
40798
40805
|
] }),
|
|
40799
40806
|
/* @__PURE__ */ v(
|
|
40800
40807
|
"span",
|
|
@@ -40813,7 +40820,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40813
40820
|
}
|
|
40814
40821
|
)
|
|
40815
40822
|
] });
|
|
40816
|
-
},
|
|
40823
|
+
}, E9 = ({ file: e, onRemove: t, displayKey: n }) => {
|
|
40817
40824
|
const r = O1(e.name), l = $o(e.name) || $o(e.url), a = e.thumbnailUrl || e.thumbnail;
|
|
40818
40825
|
return /* @__PURE__ */ W("div", { className: "rte-footer-file-chip", "data-rte-footer-display-key": n, children: [
|
|
40819
40826
|
a ? /* @__PURE__ */ v("img", { className: "rte-footer-file-thumb", src: a, alt: e.name }) : r ? /* @__PURE__ */ v(
|
|
@@ -40913,7 +40920,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40913
40920
|
}
|
|
40914
40921
|
) }),
|
|
40915
40922
|
/* @__PURE__ */ v("div", { className: "rte-footer-files-list", ref: i, onScroll: f, children: A.map((C) => C.type === "report" ? /* @__PURE__ */ v(
|
|
40916
|
-
|
|
40923
|
+
f9,
|
|
40917
40924
|
{
|
|
40918
40925
|
displayKey: C.key,
|
|
40919
40926
|
report: C.report,
|
|
@@ -40921,7 +40928,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40921
40928
|
},
|
|
40922
40929
|
C.key
|
|
40923
40930
|
) : C.type === "fileUrl" ? /* @__PURE__ */ v(
|
|
40924
|
-
|
|
40931
|
+
E9,
|
|
40925
40932
|
{
|
|
40926
40933
|
displayKey: C.key,
|
|
40927
40934
|
file: C.fileUrl,
|
|
@@ -40929,7 +40936,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40929
40936
|
},
|
|
40930
40937
|
C.key
|
|
40931
40938
|
) : /* @__PURE__ */ v(
|
|
40932
|
-
|
|
40939
|
+
y9,
|
|
40933
40940
|
{
|
|
40934
40941
|
displayKey: C.key,
|
|
40935
40942
|
file: C.file,
|
|
@@ -40948,7 +40955,7 @@ const c9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40948
40955
|
] });
|
|
40949
40956
|
});
|
|
40950
40957
|
D1.displayName = "FooterFilesList";
|
|
40951
|
-
const Sh = 9999,
|
|
40958
|
+
const Sh = 9999, T9 = ({ messageRef: e }) => {
|
|
40952
40959
|
const { message: t } = zn.useApp();
|
|
40953
40960
|
return e.current = t, null;
|
|
40954
40961
|
}, qo = ve.memo(({ title: e, onClose: t, exitTip: n = "点击退出技能" }) => (
|
|
@@ -40970,7 +40977,7 @@ const Sh = 9999, E9 = ({ messageRef: e }) => {
|
|
|
40970
40977
|
) }) })
|
|
40971
40978
|
));
|
|
40972
40979
|
qo.displayName = "SkillTag";
|
|
40973
|
-
const
|
|
40980
|
+
const j9 = (e) => {
|
|
40974
40981
|
const {
|
|
40975
40982
|
config: t,
|
|
40976
40983
|
onSend: n,
|
|
@@ -41021,7 +41028,7 @@ const Y9 = (e) => {
|
|
|
41021
41028
|
onAIImageClick: et,
|
|
41022
41029
|
aiImageSelected: Ot,
|
|
41023
41030
|
onAIImageExit: Bt,
|
|
41024
|
-
loading:
|
|
41031
|
+
loading: Ar,
|
|
41025
41032
|
hideButtons: mn,
|
|
41026
41033
|
footerPadding: _e,
|
|
41027
41034
|
showFooterUpload: $e,
|
|
@@ -41057,7 +41064,7 @@ const Y9 = (e) => {
|
|
|
41057
41064
|
Ht.current = f;
|
|
41058
41065
|
const ju = J(m);
|
|
41059
41066
|
ju.current = m;
|
|
41060
|
-
const [P1, B1] = K({}), [fa,
|
|
41067
|
+
const [P1, B1] = K({}), [fa, Nr] = K(_N), [Ku, Gu] = K(() => /* @__PURE__ */ new Set()), [ha, Qu] = K(() => /* @__PURE__ */ new Set()), [pa, F1] = K(() => /* @__PURE__ */ new Set()), [Xu, al] = K({}), [Kn, H1] = K(null), [U1, Ju] = K(null), Yi = J(null);
|
|
41061
41068
|
ze(() => {
|
|
41062
41069
|
const H = Yi.current?.ownerDocument ?? document, ee = H.createElement("div");
|
|
41063
41070
|
return ee.className = "rte-message-host", ee.style.cssText = "position:fixed;inset:0;z-index:2000000000;pointer-events:none;", H.body.appendChild(ee), Ju(ee), () => {
|
|
@@ -41140,7 +41147,7 @@ const Y9 = (e) => {
|
|
|
41140
41147
|
he(() => {
|
|
41141
41148
|
Xn && (ul(null), Jn(!1));
|
|
41142
41149
|
}, [Xn]);
|
|
41143
|
-
const { errors: X1, validate: dc, clearError: fc } = hN(kt), { excludedKeys:
|
|
41150
|
+
const { errors: X1, validate: dc, clearError: fc } = hN(kt), { excludedKeys: wr, hiddenSeparatorIndexes: es, conditionalHiddenIndexes: J1 } = TN(kt, Me, Ze), { analyzeReport: ga, analyzeMarkdown: hc, analyzeMarkdownName: pc, resolveReportName: va } = CN({
|
|
41144
41151
|
reportAnalyze: k,
|
|
41145
41152
|
markdownAnalyze: E,
|
|
41146
41153
|
markdownNameAnalyze: B,
|
|
@@ -41154,7 +41161,7 @@ const Y9 = (e) => {
|
|
|
41154
41161
|
(re) => re.key === ae && re.type === "markdown-module"
|
|
41155
41162
|
) && tt((re) => {
|
|
41156
41163
|
const me = { ...re, [H]: ee };
|
|
41157
|
-
return Object.keys(me).filter((ge) => ge.startsWith(`${ae}__module_`)).every((ge) => mc(me[ge])) && (
|
|
41164
|
+
return Object.keys(me).filter((ge) => ge.startsWith(`${ae}__module_`)).every((ge) => mc(me[ge])) && (Nr((ge) => {
|
|
41158
41165
|
if (!ge.markdownModules[ae]) return ge;
|
|
41159
41166
|
const He = { ...ge.markdownModules };
|
|
41160
41167
|
return delete He[ae], { ...ge, markdownModules: He };
|
|
@@ -41164,7 +41171,7 @@ const Y9 = (e) => {
|
|
|
41164
41171
|
}
|
|
41165
41172
|
if (typeof ee == "string" && ee.trim() === "") {
|
|
41166
41173
|
const ae = kt.find((oe) => oe.key === H);
|
|
41167
|
-
ae?.type === "report-url" ? (
|
|
41174
|
+
ae?.type === "report-url" ? (Nr((oe) => {
|
|
41168
41175
|
if (!oe.reportModules[H]) return oe;
|
|
41169
41176
|
const re = { ...oe.reportModules };
|
|
41170
41177
|
return delete re[H], { ...oe, reportModules: re };
|
|
@@ -41172,7 +41179,7 @@ const Y9 = (e) => {
|
|
|
41172
41179
|
if (!(H in oe)) return oe;
|
|
41173
41180
|
const re = { ...oe };
|
|
41174
41181
|
return delete re[H], re;
|
|
41175
|
-
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") &&
|
|
41182
|
+
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") && Nr((oe) => {
|
|
41176
41183
|
if (!oe.markdownModules[H]) return oe;
|
|
41177
41184
|
const re = { ...oe.markdownModules };
|
|
41178
41185
|
return delete re[H], { ...oe, markdownModules: re };
|
|
@@ -41233,7 +41240,7 @@ const Y9 = (e) => {
|
|
|
41233
41240
|
), rb = $(
|
|
41234
41241
|
(H, ee) => {
|
|
41235
41242
|
ga(H, ee).then((se) => {
|
|
41236
|
-
se.status === "success" &&
|
|
41243
|
+
se.status === "success" && Nr((ae) => ({
|
|
41237
41244
|
...ae,
|
|
41238
41245
|
reportModules: { ...ae.reportModules, [H]: se.modules }
|
|
41239
41246
|
}));
|
|
@@ -41250,7 +41257,7 @@ const Y9 = (e) => {
|
|
|
41250
41257
|
const se = va(H, ee, "report-url").then((oe) => {
|
|
41251
41258
|
oe.status === "success" && al((re) => ({ ...re, [H]: oe.name }));
|
|
41252
41259
|
}), ae = ga(H, ee).then((oe) => {
|
|
41253
|
-
oe.status === "success" ? (
|
|
41260
|
+
oe.status === "success" ? (Nr((re) => ({
|
|
41254
41261
|
...re,
|
|
41255
41262
|
reportModules: { ...re.reportModules, [H]: oe.modules }
|
|
41256
41263
|
})), tt((re) => {
|
|
@@ -41316,7 +41323,7 @@ const Y9 = (e) => {
|
|
|
41316
41323
|
});
|
|
41317
41324
|
try {
|
|
41318
41325
|
const re = await se(H, ee), me = Date.now() - oe;
|
|
41319
|
-
me < 500 && await new Promise((Se) => setTimeout(Se, 500 - me)), re && (
|
|
41326
|
+
me < 500 && await new Promise((Se) => setTimeout(Se, 500 - me)), re && (Nr((Se) => ({
|
|
41320
41327
|
...Se,
|
|
41321
41328
|
markdownModules: { ...Se.markdownModules, [H]: re.modules }
|
|
41322
41329
|
})), tt((Se) => {
|
|
@@ -41368,14 +41375,14 @@ const Y9 = (e) => {
|
|
|
41368
41375
|
lc(""), St([]), c.length && d?.([]), f.length && m?.([]);
|
|
41369
41376
|
return;
|
|
41370
41377
|
}
|
|
41371
|
-
if (!dc(Me, Ze,
|
|
41378
|
+
if (!dc(Me, Ze, wr)) return;
|
|
41372
41379
|
const { formData: se, fullPrompt: ae, hasContent: oe } = await wN({
|
|
41373
41380
|
config: kt,
|
|
41374
41381
|
values: Me,
|
|
41375
41382
|
files: Ze,
|
|
41376
41383
|
footerFiles: Ke,
|
|
41377
41384
|
markdownModules: fa.markdownModules,
|
|
41378
|
-
excludedKeys:
|
|
41385
|
+
excludedKeys: wr,
|
|
41379
41386
|
hiddenSeparatorIndexes: es
|
|
41380
41387
|
});
|
|
41381
41388
|
oe && (n(se, ae, ee), St([]));
|
|
@@ -41400,14 +41407,14 @@ const Y9 = (e) => {
|
|
|
41400
41407
|
pa,
|
|
41401
41408
|
dc,
|
|
41402
41409
|
n,
|
|
41403
|
-
|
|
41410
|
+
wr,
|
|
41404
41411
|
es
|
|
41405
41412
|
]), sb = $(
|
|
41406
41413
|
(H) => {
|
|
41407
41414
|
H.key === "Enter" && (H.nativeEvent.isComposing || H.keyCode === 229 || H.shiftKey || (H.preventDefault(), ls()));
|
|
41408
41415
|
},
|
|
41409
41416
|
[ls]
|
|
41410
|
-
), ob = Fe(() => ha.size > 0 || pa.size > 0 ? !1 : t.length === 0 ? Qn.trim().length > 0 : fN(kt, Me, Ze,
|
|
41417
|
+
), ob = Fe(() => ha.size > 0 || pa.size > 0 ? !1 : t.length === 0 ? Qn.trim().length > 0 : fN(kt, Me, Ze, wr), [ha, pa, t.length, Qn, kt, Me, Ze, wr]), as = $(() => {
|
|
41411
41418
|
const H = Gi.current, ee = H?.querySelector(".tag-node");
|
|
41412
41419
|
if (!H || !ee) return !1;
|
|
41413
41420
|
const se = ee.getClientRects();
|
|
@@ -41549,15 +41556,15 @@ const Y9 = (e) => {
|
|
|
41549
41556
|
} catch {
|
|
41550
41557
|
}
|
|
41551
41558
|
}
|
|
41552
|
-
}, [qe]),
|
|
41559
|
+
}, [qe]), Ir = Fe(
|
|
41553
41560
|
() => kt.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|"),
|
|
41554
41561
|
[kt]
|
|
41555
|
-
), kc = J(
|
|
41556
|
-
kc.current !==
|
|
41562
|
+
), kc = J(Ir);
|
|
41563
|
+
kc.current !== Ir && (kc.current = Ir, qe || (Zu(Sh), ec(!0))), he(() => {
|
|
41557
41564
|
if (!Ki) return;
|
|
41558
41565
|
const H = setTimeout(() => ec(!1), an);
|
|
41559
41566
|
return () => clearTimeout(H);
|
|
41560
|
-
}, [Ki,
|
|
41567
|
+
}, [Ki, Ir, an]), ze(() => {
|
|
41561
41568
|
const H = yn.current;
|
|
41562
41569
|
if (!H || (Ea(), typeof ResizeObserver > "u")) return;
|
|
41563
41570
|
const ee = () => {
|
|
@@ -41572,7 +41579,7 @@ const Y9 = (e) => {
|
|
|
41572
41579
|
return ae && oe && oe.observe(ae), () => {
|
|
41573
41580
|
se.disconnect(), oe?.disconnect();
|
|
41574
41581
|
};
|
|
41575
|
-
}, [Ea, kt, Ze, Ke.length, c.length, f.length, Xu, qe,
|
|
41582
|
+
}, [Ea, kt, Ze, Ke.length, c.length, f.length, Xu, qe, Ir, Qn]);
|
|
41576
41583
|
const Ac = J(-1);
|
|
41577
41584
|
he(() => {
|
|
41578
41585
|
qe || Gn <= 0 || Gn >= Sh || Ac.current !== Gn && (Ac.current = Gn, ca?.(Gn));
|
|
@@ -41677,7 +41684,7 @@ const Y9 = (e) => {
|
|
|
41677
41684
|
[Nc, t, Ke, h]
|
|
41678
41685
|
);
|
|
41679
41686
|
return /* @__PURE__ */ v(xb, { getPopupContainer: z1, children: /* @__PURE__ */ W(zn, { component: !1, message: { getContainer: () => U1 ?? Kn ?? document.body }, children: [
|
|
41680
|
-
/* @__PURE__ */ v(
|
|
41687
|
+
/* @__PURE__ */ v(T9, { messageRef: ji }),
|
|
41681
41688
|
/* @__PURE__ */ W(t0.Provider, { value: Kn, children: [
|
|
41682
41689
|
/* @__PURE__ */ W(
|
|
41683
41690
|
"div",
|
|
@@ -41739,7 +41746,7 @@ const Y9 = (e) => {
|
|
|
41739
41746
|
onClick: Tc,
|
|
41740
41747
|
onInput: Sc,
|
|
41741
41748
|
children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: kt.map((H, ee) => {
|
|
41742
|
-
if (J1.has(ee) || H.key &&
|
|
41749
|
+
if (J1.has(ee) || H.key && wr.has(H.key) || H.exclusionGroup === "separator" && es.has(ee) || ma && H.key !== ma) return null;
|
|
41743
41750
|
const se = (H.type === "report-module" || H.type === "markdown-module") && H.key ? `${H.key}__module_${H.moduleIndex ?? 0}` : H.key;
|
|
41744
41751
|
return /* @__PURE__ */ v(
|
|
41745
41752
|
g1,
|
|
@@ -41776,14 +41783,14 @@ const Y9 = (e) => {
|
|
|
41776
41783
|
},
|
|
41777
41784
|
se ?? `text-${ee}`
|
|
41778
41785
|
);
|
|
41779
|
-
}) },
|
|
41786
|
+
}) }, Ir)
|
|
41780
41787
|
}
|
|
41781
41788
|
),
|
|
41782
41789
|
/* @__PURE__ */ v(
|
|
41783
41790
|
_1,
|
|
41784
41791
|
{
|
|
41785
41792
|
isProcessing: r,
|
|
41786
|
-
loading:
|
|
41793
|
+
loading: Ar,
|
|
41787
41794
|
disabled: l,
|
|
41788
41795
|
sendDisabled: !ob,
|
|
41789
41796
|
showFooterUpload: $e,
|
|
@@ -41819,12 +41826,12 @@ const Y9 = (e) => {
|
|
|
41819
41826
|
/* @__PURE__ */ v("div", { className: "rte-popup-host", ref: H1 })
|
|
41820
41827
|
] })
|
|
41821
41828
|
] }) });
|
|
41822
|
-
}, kh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",
|
|
41829
|
+
}, kh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==", C9 = [
|
|
41823
41830
|
{ label: "5页", value: 5 },
|
|
41824
41831
|
{ label: "10页", value: 10 },
|
|
41825
41832
|
{ label: "15页", value: 15 },
|
|
41826
41833
|
{ label: "30页", value: 30 }
|
|
41827
|
-
],
|
|
41834
|
+
], x9 = ({
|
|
41828
41835
|
autoLoading: e,
|
|
41829
41836
|
batchSize: t,
|
|
41830
41837
|
loadingProgress: n,
|
|
@@ -41887,7 +41894,7 @@ const Y9 = (e) => {
|
|
|
41887
41894
|
{
|
|
41888
41895
|
value: t,
|
|
41889
41896
|
onChange: l,
|
|
41890
|
-
options:
|
|
41897
|
+
options: C9,
|
|
41891
41898
|
disabled: e,
|
|
41892
41899
|
size: "small",
|
|
41893
41900
|
className: "auto_load_select",
|
|
@@ -41897,7 +41904,7 @@ const Y9 = (e) => {
|
|
|
41897
41904
|
]
|
|
41898
41905
|
}
|
|
41899
41906
|
)
|
|
41900
|
-
] }),
|
|
41907
|
+
] }), S9 = ({
|
|
41901
41908
|
current: e,
|
|
41902
41909
|
loadIcon: t,
|
|
41903
41910
|
pageSize: n,
|
|
@@ -41931,7 +41938,7 @@ const Y9 = (e) => {
|
|
|
41931
41938
|
"条数据"
|
|
41932
41939
|
] }),
|
|
41933
41940
|
!g && /* @__PURE__ */ v(
|
|
41934
|
-
|
|
41941
|
+
x9,
|
|
41935
41942
|
{
|
|
41936
41943
|
loadIcon: t || void 0,
|
|
41937
41944
|
autoLoading: i,
|
|
@@ -41978,7 +41985,7 @@ const Y9 = (e) => {
|
|
|
41978
41985
|
}
|
|
41979
41986
|
)
|
|
41980
41987
|
] });
|
|
41981
|
-
},
|
|
41988
|
+
}, k9 = (e) => {
|
|
41982
41989
|
const {
|
|
41983
41990
|
loading: t,
|
|
41984
41991
|
autoLoading: n,
|
|
@@ -42015,7 +42022,7 @@ const Y9 = (e) => {
|
|
|
42015
42022
|
}
|
|
42016
42023
|
),
|
|
42017
42024
|
/* @__PURE__ */ v(
|
|
42018
|
-
|
|
42025
|
+
S9,
|
|
42019
42026
|
{
|
|
42020
42027
|
loading: t,
|
|
42021
42028
|
autoLoading: n,
|
|
@@ -42033,7 +42040,7 @@ const Y9 = (e) => {
|
|
|
42033
42040
|
)
|
|
42034
42041
|
] });
|
|
42035
42042
|
};
|
|
42036
|
-
|
|
42043
|
+
k9.__docgenInfo = {
|
|
42037
42044
|
displayName: "VirtualTable",
|
|
42038
42045
|
description: "虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",
|
|
42039
42046
|
props: {
|
|
@@ -42140,7 +42147,7 @@ S9.__docgenInfo = {
|
|
|
42140
42147
|
}
|
|
42141
42148
|
}
|
|
42142
42149
|
};
|
|
42143
|
-
const
|
|
42150
|
+
const A9 = ({
|
|
42144
42151
|
texts: e = [],
|
|
42145
42152
|
placeholder: t = "请输入内容",
|
|
42146
42153
|
animationSpeed: n = 100,
|
|
@@ -42255,7 +42262,7 @@ const k9 = ({
|
|
|
42255
42262
|
` })
|
|
42256
42263
|
] });
|
|
42257
42264
|
};
|
|
42258
|
-
|
|
42265
|
+
A9.__docgenInfo = {
|
|
42259
42266
|
displayName: "DynamicInput",
|
|
42260
42267
|
description: "动态文案输入框组件,支持流式文字动画效果",
|
|
42261
42268
|
props: {
|
|
@@ -42300,7 +42307,7 @@ k9.__docgenInfo = {
|
|
|
42300
42307
|
}
|
|
42301
42308
|
}
|
|
42302
42309
|
};
|
|
42303
|
-
const
|
|
42310
|
+
const N9 = ({
|
|
42304
42311
|
texts: e = [],
|
|
42305
42312
|
// 动态文案数组,默认为空数组
|
|
42306
42313
|
placeholder: t = "请输入内容",
|
|
@@ -42514,7 +42521,7 @@ const A9 = ({
|
|
|
42514
42521
|
` })
|
|
42515
42522
|
] });
|
|
42516
42523
|
};
|
|
42517
|
-
|
|
42524
|
+
N9.__docgenInfo = {
|
|
42518
42525
|
displayName: "DynamicTextArea",
|
|
42519
42526
|
description: "动态文案文本域组件,支持流式文字动画效果",
|
|
42520
42527
|
props: {
|
|
@@ -42790,7 +42797,7 @@ L1.__docgenInfo = {
|
|
|
42790
42797
|
}
|
|
42791
42798
|
}
|
|
42792
42799
|
};
|
|
42793
|
-
const
|
|
42800
|
+
const w9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mkv"].some((n) => e.toLowerCase().includes(n)), I9 = (e) => e.type ? e.type : w9(e.url) ? "video" : "image", _9 = ({
|
|
42794
42801
|
items: e,
|
|
42795
42802
|
columns: t,
|
|
42796
42803
|
gap: n = 0,
|
|
@@ -42853,7 +42860,7 @@ const N9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42853
42860
|
...i
|
|
42854
42861
|
},
|
|
42855
42862
|
children: e.map((b, y) => {
|
|
42856
|
-
const A = b.id || y, C =
|
|
42863
|
+
const A = b.id || y, C = I9(b);
|
|
42857
42864
|
return /* @__PURE__ */ v(
|
|
42858
42865
|
"div",
|
|
42859
42866
|
{
|
|
@@ -42904,7 +42911,7 @@ const N9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42904
42911
|
}
|
|
42905
42912
|
);
|
|
42906
42913
|
};
|
|
42907
|
-
|
|
42914
|
+
_9.__docgenInfo = {
|
|
42908
42915
|
displayName: "Waterfall",
|
|
42909
42916
|
description: "瀑布流布局组件,支持图片和视频混合展示",
|
|
42910
42917
|
props: {
|
|
@@ -43021,7 +43028,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43021
43028
|
旺旺咨询量: "wangwangConsultationCount",
|
|
43022
43029
|
自然流量转化金额: "organicTrafficAmount",
|
|
43023
43030
|
自然流量曝光量: "organicTrafficImpressions"
|
|
43024
|
-
},
|
|
43031
|
+
}, O9 = [
|
|
43025
43032
|
"日期",
|
|
43026
43033
|
"展现量",
|
|
43027
43034
|
"点击量",
|
|
@@ -43082,7 +43089,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43082
43089
|
"成交新客占比",
|
|
43083
43090
|
"自然流量转化金额",
|
|
43084
43091
|
"自然流量曝光量"
|
|
43085
|
-
], Tl = (e) => Dl[e] ?? e,
|
|
43092
|
+
], Tl = (e) => Dl[e] ?? e, M9 = (e) => e ? !!(Dl[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, R9 = (e) => {
|
|
43086
43093
|
const t = e.trim();
|
|
43087
43094
|
if (!t) return [];
|
|
43088
43095
|
const n = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
|
|
@@ -43099,28 +43106,28 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43099
43106
|
const s = i.some((o) => Dl[o] !== void 0);
|
|
43100
43107
|
return i.length >= 2 && s ? i : [];
|
|
43101
43108
|
}
|
|
43102
|
-
const l = n.filter(
|
|
43109
|
+
const l = n.filter(M9);
|
|
43103
43110
|
return l.some((i) => Dl[i] !== void 0) && l.length >= 2 && l.length / n.length >= 0.5 ? l : [];
|
|
43104
|
-
},
|
|
43111
|
+
}, D9 = (e) => {
|
|
43105
43112
|
if (!e || e.trim() === "") return "";
|
|
43106
43113
|
const t = e.trim();
|
|
43107
43114
|
if (t.toLowerCase() === "nan") return "NaN";
|
|
43108
43115
|
const n = t.match(/^(.+?)([+-]\d)/);
|
|
43109
43116
|
return n ? n[1].trim() : t;
|
|
43110
|
-
},
|
|
43117
|
+
}, L9 = (e) => e.replace(/[\u00a0\u3000]/g, " ").replace(/[–—]/g, "-").replace(/%(\d)/g, "% $1").replace(/NaN(\d)/gi, "NaN $1").replace(/(\.\d+)(\d,\d{3})/g, "$1 $2").replace(/(\.\d+)(\d+\.)/g, "$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").split(/\s+/).map((n) => n.trim()).filter((n) => n !== ""), P9 = (e) => {
|
|
43111
43118
|
const t = (e || "").replace(/[\u00a0\u3000]/g, " "), n = /20\d{2}-\d{2}-\d{2}/g, r = t.match(n) || [];
|
|
43112
43119
|
if (r.length === 0)
|
|
43113
43120
|
return { markdown: "", jsonData: [] };
|
|
43114
|
-
const l = t.split(n).filter((y) => y.trim() !== ""), a = l.length > 0 ?
|
|
43121
|
+
const l = t.split(n).filter((y) => y.trim() !== ""), a = l.length > 0 ? R9(l[0]) : [], i = a.length >= 2, s = i ? a : O9, o = i || l.length > 0 && l[0].includes("展现量") ? 1 : 0, u = s.filter((y) => y !== "日期"), c = u.length, d = [];
|
|
43115
43122
|
r.forEach((y, A) => {
|
|
43116
43123
|
const C = A + o;
|
|
43117
43124
|
if (C >= l.length) return;
|
|
43118
43125
|
const I = l[C];
|
|
43119
43126
|
let M = I.split(/[\r\n]+/).map((N) => N.trim()).filter((N) => N !== "");
|
|
43120
|
-
M.length < c && (M =
|
|
43127
|
+
M.length < c && (M = L9(I));
|
|
43121
43128
|
const x = (N) => M.length === c * 2 ? M[N * 2] ?? "" : M[N] ?? "", w = {};
|
|
43122
43129
|
w[Tl("日期")] = y, u.forEach((N, k) => {
|
|
43123
|
-
const R = x(k), _ =
|
|
43130
|
+
const R = x(k), _ = D9(R), F = Tl(N);
|
|
43124
43131
|
w[F] = _;
|
|
43125
43132
|
}), d.push(w);
|
|
43126
43133
|
});
|
|
@@ -43139,7 +43146,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43139
43146
|
`),
|
|
43140
43147
|
jsonData: d
|
|
43141
43148
|
};
|
|
43142
|
-
},
|
|
43149
|
+
}, B9 = (e) => {
|
|
43143
43150
|
if (!e)
|
|
43144
43151
|
return "";
|
|
43145
43152
|
const t = e.trim().split(`
|
|
@@ -43159,7 +43166,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43159
43166
|
c += `<td style="${u}">${Ua(m)}</td>`;
|
|
43160
43167
|
}), c += "</tr>";
|
|
43161
43168
|
}), c += "</tbody></table></div>", c;
|
|
43162
|
-
},
|
|
43169
|
+
}, F9 = (e) => {
|
|
43163
43170
|
const t = [], n = e.querySelector("thead tr");
|
|
43164
43171
|
if (!n) return t;
|
|
43165
43172
|
const r = [];
|
|
@@ -43174,22 +43181,22 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43174
43181
|
i[d] = h === "-" ? "" : h;
|
|
43175
43182
|
}), Object.keys(i).length > 0 && t.push(i);
|
|
43176
43183
|
}), t;
|
|
43177
|
-
},
|
|
43178
|
-
const n =
|
|
43184
|
+
}, K9 = (e) => async (t) => {
|
|
43185
|
+
const n = P9(t.text);
|
|
43179
43186
|
return e && e(n.jsonData), {
|
|
43180
43187
|
modules: [
|
|
43181
43188
|
{
|
|
43182
43189
|
title: "推广分析表格",
|
|
43183
|
-
content:
|
|
43190
|
+
content: B9(n.markdown),
|
|
43184
43191
|
markdown: n.markdown
|
|
43185
43192
|
}
|
|
43186
43193
|
]
|
|
43187
43194
|
};
|
|
43188
|
-
},
|
|
43195
|
+
}, G9 = (e, t, n) => {
|
|
43189
43196
|
const r = parseFloat(String(e.get("grossProfitMargin") || "0")) || 0, l = parseFloat(String(e.get("refundRate") || "0")) || 0;
|
|
43190
43197
|
let a = [];
|
|
43191
43198
|
if (t) {
|
|
43192
|
-
const i =
|
|
43199
|
+
const i = F9(t);
|
|
43193
43200
|
i.length > 0 && (a = i);
|
|
43194
43201
|
}
|
|
43195
43202
|
return a.length === 0 && n && n.length > 0 && (a = n), {
|
|
@@ -43197,7 +43204,7 @@ const Ua = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
43197
43204
|
refundRate: l,
|
|
43198
43205
|
tableData: a
|
|
43199
43206
|
};
|
|
43200
|
-
},
|
|
43207
|
+
}, Q9 = {
|
|
43201
43208
|
algorithm: Ab.defaultAlgorithm,
|
|
43202
43209
|
token: {
|
|
43203
43210
|
// 主色
|
|
@@ -43269,24 +43276,24 @@ export {
|
|
|
43269
43276
|
qb as BackButton,
|
|
43270
43277
|
Bb as Button,
|
|
43271
43278
|
Fb as Card,
|
|
43272
|
-
|
|
43273
|
-
|
|
43279
|
+
A9 as DynamicInput,
|
|
43280
|
+
N9 as DynamicTextArea,
|
|
43274
43281
|
$b as EmptyAndSpin,
|
|
43275
43282
|
Dl as HEADER_TO_FIELD,
|
|
43276
43283
|
Wb as LinkButton,
|
|
43277
43284
|
Ub as PageTable,
|
|
43278
|
-
|
|
43279
|
-
|
|
43285
|
+
j9 as RichTextEditor,
|
|
43286
|
+
j9 as StructuredEditor,
|
|
43280
43287
|
L1 as VideoCard,
|
|
43281
|
-
|
|
43282
|
-
|
|
43288
|
+
k9 as VirtualTable,
|
|
43289
|
+
_9 as Waterfall,
|
|
43283
43290
|
Vb as XcIcon,
|
|
43284
|
-
|
|
43285
|
-
|
|
43291
|
+
G9 as buildPromotionSendPayload,
|
|
43292
|
+
K9 as createMarkdownAnalyze,
|
|
43286
43293
|
Ua as escapeHtml,
|
|
43287
|
-
|
|
43288
|
-
|
|
43289
|
-
|
|
43290
|
-
|
|
43294
|
+
F9 as extractTableDataFromHtml,
|
|
43295
|
+
Q9 as lightTheme,
|
|
43296
|
+
P9 as parsePromotionTableMarkdown,
|
|
43297
|
+
B9 as renderMarkdownToHtml
|
|
43291
43298
|
};
|
|
43292
43299
|
//# sourceMappingURL=index.es.js.map
|