bi-components-library 1.3.3 → 1.3.4-next.0
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 +340 -340
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +20 -20
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as v, jsxs as W, Fragment as tt } from "react/jsx-runtime";
|
|
2
2
|
import ge, { useState as Q, useRef as ee, useMemo as Ve, useCallback as V, useEffect as me, createContext as _o, useContext as Zf, useLayoutEffect as qe, useDebugValue as eh, forwardRef as Nb } from "react";
|
|
3
|
-
import { Button as rr, Card as Io, Modal as wb, Table as Oo, Flex as rc, Spin as
|
|
3
|
+
import { Button as rr, Card as Io, Modal as wb, Table as Oo, Flex as rc, Spin as ui, Empty as _b, Select as Wl, Form as fa, Input as Mo, Space as Ib, unstableSetRender as Ob, Tooltip as Ro, DatePicker as Mb, Cascader as Rb, Popover as za, Image as th, App as gr, Dropdown as Db, Popconfirm as Lb, ConfigProvider as Pb, Progress as Bb, Pagination as Fb, theme as Hb } from "antd";
|
|
4
4
|
import { createFromIconfontCN as Ub, LeftOutlined as zb, SearchOutlined as Vb, ReloadOutlined as $b, CloseCircleFilled as nh, InfoCircleOutlined as qb, SendOutlined as Wb, PauseCircleOutlined as Yb, PlayCircleOutlined as jb } from "@ant-design/icons";
|
|
5
5
|
import { createRoot as Gb } from "react-dom/client";
|
|
6
6
|
import Kb, { createPortal as rh } from "react-dom";
|
|
@@ -370,7 +370,7 @@ const n1 = ({
|
|
|
370
370
|
justify: "center",
|
|
371
371
|
vertical: !0,
|
|
372
372
|
children: [
|
|
373
|
-
/* @__PURE__ */ v(
|
|
373
|
+
/* @__PURE__ */ v(ui, { size: "large" }),
|
|
374
374
|
l && /* @__PURE__ */ v("div", { className: "mt-4 text-gray-500", children: l })
|
|
375
375
|
]
|
|
376
376
|
}
|
|
@@ -559,7 +559,7 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
559
559
|
current: 1,
|
|
560
560
|
pageSize: a,
|
|
561
561
|
total: 0
|
|
562
|
-
}), [b, E] = Q({}), [A, S] = Q({}), [O] =
|
|
562
|
+
}), [b, E] = Q({}), [A, S] = Q({}), [O] = fa.useForm(), I = ee(m);
|
|
563
563
|
I.current = m;
|
|
564
564
|
const C = ee(o);
|
|
565
565
|
C.current = o;
|
|
@@ -615,14 +615,14 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
615
615
|
(s && !w.current || L) && (k(), w.current = !0);
|
|
616
616
|
}, [s, o, k]), /* @__PURE__ */ W("div", { children: [
|
|
617
617
|
r && n.length > 0 && /* @__PURE__ */ v(Io, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ W(
|
|
618
|
-
|
|
618
|
+
fa,
|
|
619
619
|
{
|
|
620
620
|
form: O,
|
|
621
621
|
layout: "inline",
|
|
622
622
|
onFinish: P,
|
|
623
623
|
initialValues: n.reduce((L, y) => (y.defaultValue !== void 0 && (L[y.key] = y.defaultValue), L), {}),
|
|
624
624
|
children: [
|
|
625
|
-
n.map((L) => /* @__PURE__ */ v(
|
|
625
|
+
n.map((L) => /* @__PURE__ */ v(fa.Item, { name: L.key, label: L.label, children: L.type === "input" ? /* @__PURE__ */ v(
|
|
626
626
|
Mo,
|
|
627
627
|
{
|
|
628
628
|
placeholder: L.placeholder || `请输入${L.label}`,
|
|
@@ -637,7 +637,7 @@ const { Option: a1 } = Wl, i1 = ({
|
|
|
637
637
|
children: L.options?.map((y) => /* @__PURE__ */ v(a1, { value: y.value, children: y.label }, y.value))
|
|
638
638
|
}
|
|
639
639
|
) }, L.key)),
|
|
640
|
-
/* @__PURE__ */ v(
|
|
640
|
+
/* @__PURE__ */ v(fa.Item, { children: /* @__PURE__ */ W(Ib, { children: [
|
|
641
641
|
/* @__PURE__ */ v(rr, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ v(Vb, {}), children: "查询" }),
|
|
642
642
|
/* @__PURE__ */ v(rr, { onClick: R, children: "重置" }),
|
|
643
643
|
l && /* @__PURE__ */ v(rr, { icon: /* @__PURE__ */ v($b, {}), onClick: F, children: "刷新" })
|
|
@@ -1989,7 +1989,7 @@ const v1 = Yr({
|
|
|
1989
1989
|
xLinkType: "xlinkType",
|
|
1990
1990
|
xmlnsXLink: "xmlnsXlink"
|
|
1991
1991
|
}, T1 = /[A-Z]/g, oc = /-[a-z]/g, C1 = /^data[-\w.:]+$/i;
|
|
1992
|
-
function
|
|
1992
|
+
function ci(e, t) {
|
|
1993
1993
|
const n = wl(t);
|
|
1994
1994
|
let r = t, l = wt;
|
|
1995
1995
|
if (n in e.normal)
|
|
@@ -2170,7 +2170,7 @@ function w1() {
|
|
|
2170
2170
|
return r.default = r, ll = r, ll;
|
|
2171
2171
|
}
|
|
2172
2172
|
var _1 = w1();
|
|
2173
|
-
const I1 = /* @__PURE__ */ Lo(_1),
|
|
2173
|
+
const I1 = /* @__PURE__ */ Lo(_1), di = mh("end"), an = mh("start");
|
|
2174
2174
|
function mh(e) {
|
|
2175
2175
|
return t;
|
|
2176
2176
|
function t(n) {
|
|
@@ -2184,7 +2184,7 @@ function mh(e) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
function bh(e) {
|
|
2187
|
-
const t = an(e), n =
|
|
2187
|
+
const t = an(e), n = di(e);
|
|
2188
2188
|
if (t && n)
|
|
2189
2189
|
return { start: t, end: n };
|
|
2190
2190
|
}
|
|
@@ -2488,7 +2488,7 @@ function Fo(e, t) {
|
|
|
2488
2488
|
return n;
|
|
2489
2489
|
}
|
|
2490
2490
|
function Y1(e, t, n) {
|
|
2491
|
-
const r =
|
|
2491
|
+
const r = ci(e.schema, t);
|
|
2492
2492
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
2493
2493
|
if (Array.isArray(n) && (n = r.commaSeparated ? ih(n) : ph(n)), r.property === "style") {
|
|
2494
2494
|
let l = typeof n == "object" ? n : j1(e, String(n));
|
|
@@ -3028,7 +3028,7 @@ function pg(e, t, n) {
|
|
|
3028
3028
|
return n(h);
|
|
3029
3029
|
}
|
|
3030
3030
|
}
|
|
3031
|
-
const
|
|
3031
|
+
const fi = {
|
|
3032
3032
|
partial: !0,
|
|
3033
3033
|
tokenize: mg
|
|
3034
3034
|
};
|
|
@@ -3949,7 +3949,7 @@ function Jg(e, t, n) {
|
|
|
3949
3949
|
function Zg(e, t, n) {
|
|
3950
3950
|
return r;
|
|
3951
3951
|
function r(l) {
|
|
3952
|
-
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), e.attempt(
|
|
3952
|
+
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), e.attempt(fi, t, n);
|
|
3953
3953
|
}
|
|
3954
3954
|
}
|
|
3955
3955
|
const ev = {
|
|
@@ -4233,7 +4233,7 @@ function mv(e, t) {
|
|
|
4233
4233
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), De(e, t, "linePrefix");
|
|
4234
4234
|
}
|
|
4235
4235
|
}
|
|
4236
|
-
const
|
|
4236
|
+
const Oa = {
|
|
4237
4237
|
name: "thematicBreak",
|
|
4238
4238
|
tokenize: bv
|
|
4239
4239
|
};
|
|
@@ -4277,7 +4277,7 @@ function yv(e, t, n) {
|
|
|
4277
4277
|
if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
|
|
4278
4278
|
_container: !0
|
|
4279
4279
|
})), m === "listUnordered")
|
|
4280
|
-
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(
|
|
4280
|
+
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Oa, n, u)(h) : u(h);
|
|
4281
4281
|
if (!r.interrupt || h === 49)
|
|
4282
4282
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), o(h);
|
|
4283
4283
|
}
|
|
@@ -4288,7 +4288,7 @@ function yv(e, t, n) {
|
|
|
4288
4288
|
}
|
|
4289
4289
|
function u(h) {
|
|
4290
4290
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
4291
|
-
|
|
4291
|
+
fi,
|
|
4292
4292
|
// Can’t be empty when interrupting.
|
|
4293
4293
|
r.interrupt ? n : c,
|
|
4294
4294
|
e.attempt(gv, f, d)
|
|
@@ -4306,7 +4306,7 @@ function yv(e, t, n) {
|
|
|
4306
4306
|
}
|
|
4307
4307
|
function Ev(e, t, n) {
|
|
4308
4308
|
const r = this;
|
|
4309
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
4309
|
+
return r.containerState._closeFlow = void 0, e.check(fi, l, a);
|
|
4310
4310
|
function l(s) {
|
|
4311
4311
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, De(e, t, "listItemIndent", r.containerState.size + 1)(s);
|
|
4312
4312
|
}
|
|
@@ -4394,7 +4394,7 @@ const Av = {
|
|
|
4394
4394
|
function Nv(e) {
|
|
4395
4395
|
const t = this, n = e.attempt(
|
|
4396
4396
|
// Try to parse a blank line.
|
|
4397
|
-
|
|
4397
|
+
fi,
|
|
4398
4398
|
r,
|
|
4399
4399
|
// Try to parse initial flow (essentially, only code).
|
|
4400
4400
|
e.attempt(this.parser.constructs.flowInitial, l, De(e, e.attempt(this.parser.constructs.flow, l, e.attempt(Mg, l)), "linePrefix"))
|
|
@@ -4528,11 +4528,11 @@ const Mv = {
|
|
|
4528
4528
|
32: Xi
|
|
4529
4529
|
}, Lv = {
|
|
4530
4530
|
35: $g,
|
|
4531
|
-
42:
|
|
4532
|
-
45: [kc,
|
|
4531
|
+
42: Oa,
|
|
4532
|
+
45: [kc, Oa],
|
|
4533
4533
|
60: jg,
|
|
4534
4534
|
61: kc,
|
|
4535
|
-
95:
|
|
4535
|
+
95: Oa,
|
|
4536
4536
|
96: xc,
|
|
4537
4537
|
126: xc
|
|
4538
4538
|
}, Pv = {
|
|
@@ -5165,7 +5165,7 @@ function Jv(e) {
|
|
|
5165
5165
|
function k(j) {
|
|
5166
5166
|
const ve = this.stack[this.stack.length - 1].children;
|
|
5167
5167
|
let Te = ve[ve.length - 1];
|
|
5168
|
-
(!Te || Te.type !== "text") && (Te =
|
|
5168
|
+
(!Te || Te.type !== "text") && (Te = ra(), Te.position = {
|
|
5169
5169
|
start: yn(j.start),
|
|
5170
5170
|
// @ts-expect-error: we’ll add `end` later.
|
|
5171
5171
|
end: void 0
|
|
@@ -5370,7 +5370,7 @@ function Jv(e) {
|
|
|
5370
5370
|
children: []
|
|
5371
5371
|
};
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function ra() {
|
|
5374
5374
|
return {
|
|
5375
5375
|
type: "text",
|
|
5376
5376
|
value: ""
|
|
@@ -5686,7 +5686,7 @@ function Ey(e, t) {
|
|
|
5686
5686
|
tagName: "tbody",
|
|
5687
5687
|
properties: {},
|
|
5688
5688
|
children: e.wrap(n, !0)
|
|
5689
|
-
}, s = an(t.children[1]), o =
|
|
5689
|
+
}, s = an(t.children[1]), o = di(t.children[t.children.length - 1]);
|
|
5690
5690
|
s && o && (i.position = { start: s, end: o }), l.push(i);
|
|
5691
5691
|
}
|
|
5692
5692
|
const a = {
|
|
@@ -5789,20 +5789,20 @@ const Ay = {
|
|
|
5789
5789
|
tableRow: Ty,
|
|
5790
5790
|
text: Sy,
|
|
5791
5791
|
thematicBreak: ky,
|
|
5792
|
-
toml:
|
|
5793
|
-
yaml:
|
|
5794
|
-
definition:
|
|
5795
|
-
footnoteDefinition:
|
|
5792
|
+
toml: ha,
|
|
5793
|
+
yaml: ha,
|
|
5794
|
+
definition: ha,
|
|
5795
|
+
footnoteDefinition: ha
|
|
5796
5796
|
};
|
|
5797
|
-
function
|
|
5797
|
+
function ha() {
|
|
5798
5798
|
}
|
|
5799
|
-
const Ph = -1,
|
|
5799
|
+
const Ph = -1, hi = 0, bl = 1, Va = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, Fh = 8, Oc = typeof self == "object" ? self : globalThis, Ny = (e, t) => {
|
|
5800
5800
|
const n = (l, a) => (e.set(a, l), l), r = (l) => {
|
|
5801
5801
|
if (e.has(l))
|
|
5802
5802
|
return e.get(l);
|
|
5803
5803
|
const [a, i] = t[l];
|
|
5804
5804
|
switch (a) {
|
|
5805
|
-
case
|
|
5805
|
+
case hi:
|
|
5806
5806
|
case Ph:
|
|
5807
5807
|
return n(i, l);
|
|
5808
5808
|
case bl: {
|
|
@@ -5811,7 +5811,7 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5811
5811
|
s.push(r(o));
|
|
5812
5812
|
return s;
|
|
5813
5813
|
}
|
|
5814
|
-
case
|
|
5814
|
+
case Va: {
|
|
5815
5815
|
const s = n({}, l);
|
|
5816
5816
|
for (const [o, u] of i)
|
|
5817
5817
|
s[r(o)] = r(u);
|
|
@@ -5856,13 +5856,13 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5856
5856
|
}, Mc = (e) => Ny(/* @__PURE__ */ new Map(), e)(0), Ar = "", { toString: wy } = {}, { keys: _y } = Object, il = (e) => {
|
|
5857
5857
|
const t = typeof e;
|
|
5858
5858
|
if (t !== "object" || !e)
|
|
5859
|
-
return [
|
|
5859
|
+
return [hi, t];
|
|
5860
5860
|
const n = wy.call(e).slice(8, -1);
|
|
5861
5861
|
switch (n) {
|
|
5862
5862
|
case "Array":
|
|
5863
5863
|
return [bl, Ar];
|
|
5864
5864
|
case "Object":
|
|
5865
|
-
return [
|
|
5865
|
+
return [Va, Ar];
|
|
5866
5866
|
case "Date":
|
|
5867
5867
|
return [zo, Ar];
|
|
5868
5868
|
case "RegExp":
|
|
@@ -5874,8 +5874,8 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5874
5874
|
case "DataView":
|
|
5875
5875
|
return [bl, n];
|
|
5876
5876
|
}
|
|
5877
|
-
return n.includes("Array") ? [bl, n] : n.includes("Error") ? [Bh, n] : [
|
|
5878
|
-
},
|
|
5877
|
+
return n.includes("Array") ? [bl, n] : n.includes("Error") ? [Bh, n] : [Va, n];
|
|
5878
|
+
}, pa = ([e, t]) => e === hi && (t === "function" || t === "symbol"), Iy = (e, t, n, r) => {
|
|
5879
5879
|
const l = (i, s) => {
|
|
5880
5880
|
const o = r.push(i) - 1;
|
|
5881
5881
|
return n.set(s, o), o;
|
|
@@ -5884,7 +5884,7 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5884
5884
|
return n.get(i);
|
|
5885
5885
|
let [s, o] = il(i);
|
|
5886
5886
|
switch (s) {
|
|
5887
|
-
case
|
|
5887
|
+
case hi: {
|
|
5888
5888
|
let c = i;
|
|
5889
5889
|
switch (o) {
|
|
5890
5890
|
case "bigint":
|
|
@@ -5911,7 +5911,7 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5911
5911
|
c.push(a(f));
|
|
5912
5912
|
return d;
|
|
5913
5913
|
}
|
|
5914
|
-
case
|
|
5914
|
+
case Va: {
|
|
5915
5915
|
if (o)
|
|
5916
5916
|
switch (o) {
|
|
5917
5917
|
case "BigInt":
|
|
@@ -5925,7 +5925,7 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5925
5925
|
return a(i.toJSON());
|
|
5926
5926
|
const c = [], d = l([s, c], i);
|
|
5927
5927
|
for (const f of _y(i))
|
|
5928
|
-
(e || !
|
|
5928
|
+
(e || !pa(il(i[f]))) && c.push([a(f), a(i[f])]);
|
|
5929
5929
|
return d;
|
|
5930
5930
|
}
|
|
5931
5931
|
case zo:
|
|
@@ -5937,13 +5937,13 @@ const Ph = -1, fi = 0, bl = 1, za = 2, zo = 3, Vo = 4, $o = 5, qo = 6, Bh = 7, F
|
|
|
5937
5937
|
case $o: {
|
|
5938
5938
|
const c = [], d = l([s, c], i);
|
|
5939
5939
|
for (const [f, h] of i)
|
|
5940
|
-
(e || !(
|
|
5940
|
+
(e || !(pa(il(f)) || pa(il(h)))) && c.push([a(f), a(h)]);
|
|
5941
5941
|
return d;
|
|
5942
5942
|
}
|
|
5943
5943
|
case qo: {
|
|
5944
5944
|
const c = [], d = l([s, c], i);
|
|
5945
5945
|
for (const f of i)
|
|
5946
|
-
(e || !
|
|
5946
|
+
(e || !pa(il(f))) && c.push(a(f));
|
|
5947
5947
|
return d;
|
|
5948
5948
|
}
|
|
5949
5949
|
}
|
|
@@ -6060,7 +6060,7 @@ const Hh = (
|
|
|
6060
6060
|
if (e == null)
|
|
6061
6061
|
return By;
|
|
6062
6062
|
if (typeof e == "function")
|
|
6063
|
-
return
|
|
6063
|
+
return pi(e);
|
|
6064
6064
|
if (typeof e == "object")
|
|
6065
6065
|
return Array.isArray(e) ? Dy(e) : (
|
|
6066
6066
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
@@ -6080,7 +6080,7 @@ function Dy(e) {
|
|
|
6080
6080
|
let n = -1;
|
|
6081
6081
|
for (; ++n < e.length; )
|
|
6082
6082
|
t[n] = Hh(e[n]);
|
|
6083
|
-
return
|
|
6083
|
+
return pi(r);
|
|
6084
6084
|
function r(...l) {
|
|
6085
6085
|
let a = -1;
|
|
6086
6086
|
for (; ++a < t.length; )
|
|
@@ -6093,7 +6093,7 @@ function Ly(e) {
|
|
|
6093
6093
|
/** @type {Record<string, unknown>} */
|
|
6094
6094
|
e
|
|
6095
6095
|
);
|
|
6096
|
-
return
|
|
6096
|
+
return pi(n);
|
|
6097
6097
|
function n(r) {
|
|
6098
6098
|
const l = (
|
|
6099
6099
|
/** @type {Record<string, unknown>} */
|
|
@@ -6107,12 +6107,12 @@ function Ly(e) {
|
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
6109
|
function Py(e) {
|
|
6110
|
-
return
|
|
6110
|
+
return pi(t);
|
|
6111
6111
|
function t(n) {
|
|
6112
6112
|
return n && n.type === e;
|
|
6113
6113
|
}
|
|
6114
6114
|
}
|
|
6115
|
-
function
|
|
6115
|
+
function pi(e) {
|
|
6116
6116
|
return t;
|
|
6117
6117
|
function t(n, r, l) {
|
|
6118
6118
|
return !!(Fy(n) && e.call(
|
|
@@ -6177,7 +6177,7 @@ function zh(e, t, n, r) {
|
|
|
6177
6177
|
function zy(e) {
|
|
6178
6178
|
return Array.isArray(e) ? e : typeof e == "number" ? [Hy, e] : e == null ? Uh : [e];
|
|
6179
6179
|
}
|
|
6180
|
-
function
|
|
6180
|
+
function mi(e, t, n, r) {
|
|
6181
6181
|
let l, a, i;
|
|
6182
6182
|
typeof t == "function" && typeof n != "function" ? (a = void 0, i = t, l = n) : (a = t, i = n, l = r), zh(e, a, s, l);
|
|
6183
6183
|
function s(o, u) {
|
|
@@ -6200,7 +6200,7 @@ function $y(e, t) {
|
|
|
6200
6200
|
patch: qy,
|
|
6201
6201
|
wrap: jy
|
|
6202
6202
|
};
|
|
6203
|
-
return
|
|
6203
|
+
return mi(e, function(c) {
|
|
6204
6204
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
|
6205
6205
|
const d = c.type === "definition" ? r : l, f = String(c.identifier).toUpperCase();
|
|
6206
6206
|
d.has(f) || d.set(f, c);
|
|
@@ -7124,7 +7124,7 @@ class Wo extends cE {
|
|
|
7124
7124
|
*/
|
|
7125
7125
|
parse(t) {
|
|
7126
7126
|
this.freeze();
|
|
7127
|
-
const n =
|
|
7127
|
+
const n = ma(t), r = this.parser || this.Parser;
|
|
7128
7128
|
return ls("parse", r), r(String(n), n);
|
|
7129
7129
|
}
|
|
7130
7130
|
/**
|
|
@@ -7173,7 +7173,7 @@ class Wo extends cE {
|
|
|
7173
7173
|
const r = this;
|
|
7174
7174
|
return this.freeze(), ls("process", this.parser || this.Parser), as("process", this.compiler || this.Compiler), n ? l(void 0, n) : new Promise(l);
|
|
7175
7175
|
function l(a, i) {
|
|
7176
|
-
const s =
|
|
7176
|
+
const s = ma(t), o = (
|
|
7177
7177
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
7178
7178
|
/** @type {unknown} */
|
|
7179
7179
|
r.parse(s)
|
|
@@ -7278,7 +7278,7 @@ class Wo extends cE {
|
|
|
7278
7278
|
const l = this.transformers;
|
|
7279
7279
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? a(void 0, r) : new Promise(a);
|
|
7280
7280
|
function a(i, s) {
|
|
7281
|
-
const o =
|
|
7281
|
+
const o = ma(n);
|
|
7282
7282
|
l.run(t, o, u);
|
|
7283
7283
|
function u(c, d, f) {
|
|
7284
7284
|
const h = (
|
|
@@ -7344,7 +7344,7 @@ class Wo extends cE {
|
|
|
7344
7344
|
*/
|
|
7345
7345
|
stringify(t, n) {
|
|
7346
7346
|
this.freeze();
|
|
7347
|
-
const r =
|
|
7347
|
+
const r = ma(n), l = this.compiler || this.Compiler;
|
|
7348
7348
|
return as("stringify", l), Uc(t), l(t, r);
|
|
7349
7349
|
}
|
|
7350
7350
|
/**
|
|
@@ -7487,7 +7487,7 @@ function zc(e, t, n) {
|
|
|
7487
7487
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
7488
7488
|
);
|
|
7489
7489
|
}
|
|
7490
|
-
function
|
|
7490
|
+
function ma(e) {
|
|
7491
7491
|
return hE(e) ? e : new Vh(e);
|
|
7492
7492
|
}
|
|
7493
7493
|
function hE(e) {
|
|
@@ -7549,7 +7549,7 @@ function CE(e, t) {
|
|
|
7549
7549
|
const n = t.allowedElements, r = t.allowElement, l = t.components, a = t.disallowedElements, i = t.skipHtml, s = t.unwrapDisallowed, o = t.urlTransform || xE;
|
|
7550
7550
|
for (const c of vE)
|
|
7551
7551
|
Object.hasOwn(t, c.from) && ("" + c.from + (c.to ? "use `" + c.to + "` instead" : "remove it") + bE + c.id, void 0);
|
|
7552
|
-
return
|
|
7552
|
+
return mi(e, u), L1(e, {
|
|
7553
7553
|
Fragment: tt,
|
|
7554
7554
|
components: l,
|
|
7555
7555
|
ignoreInvalidStyle: !0,
|
|
@@ -7652,7 +7652,7 @@ function kE(e) {
|
|
|
7652
7652
|
return !!("children" in e && Array.isArray(e.children));
|
|
7653
7653
|
}
|
|
7654
7654
|
function AE(e, t, n, r) {
|
|
7655
|
-
const l =
|
|
7655
|
+
const l = ci(e, n);
|
|
7656
7656
|
let a;
|
|
7657
7657
|
if (r != null) {
|
|
7658
7658
|
if (typeof r == "number") {
|
|
@@ -7814,7 +7814,7 @@ function Yo(e, t) {
|
|
|
7814
7814
|
/** @type {DefaultTreeAdapterMap['commentNode']} */
|
|
7815
7815
|
t
|
|
7816
7816
|
);
|
|
7817
|
-
return n = { type: "comment", value: r.data },
|
|
7817
|
+
return n = { type: "comment", value: r.data }, Ma(e, r, n), n;
|
|
7818
7818
|
}
|
|
7819
7819
|
case "#document":
|
|
7820
7820
|
case "#document-fragment": {
|
|
@@ -7837,14 +7837,14 @@ function Yo(e, t) {
|
|
|
7837
7837
|
/** @type {DefaultTreeAdapterMap['documentType']} */
|
|
7838
7838
|
t
|
|
7839
7839
|
);
|
|
7840
|
-
return n = { type: "doctype" },
|
|
7840
|
+
return n = { type: "doctype" }, Ma(e, r, n), n;
|
|
7841
7841
|
}
|
|
7842
7842
|
case "#text": {
|
|
7843
7843
|
const r = (
|
|
7844
7844
|
/** @type {DefaultTreeAdapterMap['textNode']} */
|
|
7845
7845
|
t
|
|
7846
7846
|
);
|
|
7847
|
-
return n = { type: "text", value: r.value },
|
|
7847
|
+
return n = { type: "text", value: r.value }, Ma(e, r, n), n;
|
|
7848
7848
|
}
|
|
7849
7849
|
// Element.
|
|
7850
7850
|
default:
|
|
@@ -7877,7 +7877,7 @@ function LE(e, t) {
|
|
|
7877
7877
|
qh.call(RE, o) || (l[o] = s.value);
|
|
7878
7878
|
}
|
|
7879
7879
|
const i = (e.schema.space === "svg" ? OE : IE)(t.tagName, l, Wh(e, t.childNodes));
|
|
7880
|
-
if (
|
|
7880
|
+
if (Ma(e, t, i), i.tagName === "template") {
|
|
7881
7881
|
const s = (
|
|
7882
7882
|
/** @type {DefaultTreeAdapterMap['template']} */
|
|
7883
7883
|
t
|
|
@@ -7889,7 +7889,7 @@ function LE(e, t) {
|
|
|
7889
7889
|
}
|
|
7890
7890
|
return e.schema = n, i;
|
|
7891
7891
|
}
|
|
7892
|
-
function
|
|
7892
|
+
function Ma(e, t, n) {
|
|
7893
7893
|
if ("sourceCodeLocation" in t && t.sourceCodeLocation && e.file) {
|
|
7894
7894
|
const r = PE(e, n, t.sourceCodeLocation);
|
|
7895
7895
|
r && (e.location = !0, n.position = r);
|
|
@@ -7904,7 +7904,7 @@ function PE(e, t, n) {
|
|
|
7904
7904
|
let i;
|
|
7905
7905
|
if (n.attrs)
|
|
7906
7906
|
for (i in n.attrs)
|
|
7907
|
-
qh.call(n.attrs, i) && (a[
|
|
7907
|
+
qh.call(n.attrs, i) && (a[ci(e.schema, i).property] = Or(
|
|
7908
7908
|
n.attrs[i]
|
|
7909
7909
|
));
|
|
7910
7910
|
n.startTag;
|
|
@@ -8017,7 +8017,7 @@ function WE(e, t) {
|
|
|
8017
8017
|
return s.childNodes = jo(e.children, s, r), Gr(e, s), e.tagName === "template" && e.content && (s.content = zE(e.content, r)), s;
|
|
8018
8018
|
}
|
|
8019
8019
|
function YE(e, t, n) {
|
|
8020
|
-
const r =
|
|
8020
|
+
const r = ci(e, t);
|
|
8021
8021
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
|
8022
8022
|
return;
|
|
8023
8023
|
Array.isArray(n) && (n = r.commaSeparated ? ih(n) : ph(n));
|
|
@@ -8775,7 +8775,7 @@ function xn(e) {
|
|
|
8775
8775
|
function Kc(e) {
|
|
8776
8776
|
return xn(e) || c2(e);
|
|
8777
8777
|
}
|
|
8778
|
-
function
|
|
8778
|
+
function ba(e) {
|
|
8779
8779
|
return e + 32;
|
|
8780
8780
|
}
|
|
8781
8781
|
function Jh(e) {
|
|
@@ -9482,7 +9482,7 @@ class h2 {
|
|
|
9482
9482
|
break;
|
|
9483
9483
|
}
|
|
9484
9484
|
default:
|
|
9485
|
-
n.tagName += String.fromCodePoint(cl(t) ?
|
|
9485
|
+
n.tagName += String.fromCodePoint(cl(t) ? ba(t) : t);
|
|
9486
9486
|
}
|
|
9487
9487
|
}
|
|
9488
9488
|
// RCDATA less-than sign state
|
|
@@ -9814,7 +9814,7 @@ class h2 {
|
|
|
9814
9814
|
break;
|
|
9815
9815
|
}
|
|
9816
9816
|
default:
|
|
9817
|
-
this.currentAttr.name += String.fromCodePoint(cl(t) ?
|
|
9817
|
+
this.currentAttr.name += String.fromCodePoint(cl(t) ? ba(t) : t);
|
|
9818
9818
|
}
|
|
9819
9819
|
}
|
|
9820
9820
|
// After attribute name state
|
|
@@ -10216,7 +10216,7 @@ class h2 {
|
|
|
10216
10216
|
//------------------------------------------------------------------
|
|
10217
10217
|
_stateBeforeDoctypeName(t) {
|
|
10218
10218
|
if (cl(t))
|
|
10219
|
-
this._createDoctypeToken(String.fromCharCode(
|
|
10219
|
+
this._createDoctypeToken(String.fromCharCode(ba(t))), this.state = N.DOCTYPE_NAME;
|
|
10220
10220
|
else
|
|
10221
10221
|
switch (t) {
|
|
10222
10222
|
case x.SPACE:
|
|
@@ -10269,7 +10269,7 @@ class h2 {
|
|
|
10269
10269
|
break;
|
|
10270
10270
|
}
|
|
10271
10271
|
default:
|
|
10272
|
-
n.name += String.fromCodePoint(cl(t) ?
|
|
10272
|
+
n.name += String.fromCodePoint(cl(t) ? ba(t) : t);
|
|
10273
10273
|
}
|
|
10274
10274
|
}
|
|
10275
10275
|
// After DOCTYPE name state
|
|
@@ -10687,7 +10687,7 @@ const Zh = /* @__PURE__ */ new Set([p.DD, p.DT, p.LI, p.OPTGROUP, p.OPTION, p.P,
|
|
|
10687
10687
|
p.TH,
|
|
10688
10688
|
p.THEAD,
|
|
10689
10689
|
p.TR
|
|
10690
|
-
]),
|
|
10690
|
+
]), $a = /* @__PURE__ */ new Set([
|
|
10691
10691
|
p.APPLET,
|
|
10692
10692
|
p.CAPTION,
|
|
10693
10693
|
p.HTML,
|
|
@@ -10697,7 +10697,7 @@ const Zh = /* @__PURE__ */ new Set([p.DD, p.DT, p.LI, p.OPTGROUP, p.OPTION, p.P,
|
|
|
10697
10697
|
p.TD,
|
|
10698
10698
|
p.TEMPLATE,
|
|
10699
10699
|
p.TH
|
|
10700
|
-
]), p2 = /* @__PURE__ */ new Set([
|
|
10700
|
+
]), p2 = /* @__PURE__ */ new Set([...$a, p.OL, p.UL]), m2 = /* @__PURE__ */ new Set([...$a, p.BUTTON]), Jc = /* @__PURE__ */ new Set([p.ANNOTATION_XML, p.MI, p.MN, p.MO, p.MS, p.MTEXT]), Zc = /* @__PURE__ */ new Set([p.DESC, p.FOREIGN_OBJECT, p.TITLE]), b2 = /* @__PURE__ */ new Set([p.TR, p.TEMPLATE, p.HTML]), g2 = /* @__PURE__ */ new Set([p.TBODY, p.TFOOT, p.THEAD, p.TEMPLATE, p.HTML]), v2 = /* @__PURE__ */ new Set([p.TABLE, p.TEMPLATE, p.HTML]), y2 = /* @__PURE__ */ new Set([p.TD, p.TH]);
|
|
10701
10701
|
class E2 {
|
|
10702
10702
|
get currentTmplContentOrNode() {
|
|
10703
10703
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -10826,7 +10826,7 @@ class E2 {
|
|
|
10826
10826
|
return !0;
|
|
10827
10827
|
}
|
|
10828
10828
|
hasInScope(t) {
|
|
10829
|
-
return this.hasInDynamicScope(t,
|
|
10829
|
+
return this.hasInDynamicScope(t, $a);
|
|
10830
10830
|
}
|
|
10831
10831
|
hasInListItemScope(t) {
|
|
10832
10832
|
return this.hasInDynamicScope(t, p2);
|
|
@@ -10841,7 +10841,7 @@ class E2 {
|
|
|
10841
10841
|
case K.HTML: {
|
|
10842
10842
|
if (eo.has(n))
|
|
10843
10843
|
return !0;
|
|
10844
|
-
if (
|
|
10844
|
+
if ($a.has(n))
|
|
10845
10845
|
return !1;
|
|
10846
10846
|
break;
|
|
10847
10847
|
}
|
|
@@ -11915,15 +11915,15 @@ class ld {
|
|
|
11915
11915
|
break;
|
|
11916
11916
|
}
|
|
11917
11917
|
case M.IN_COLUMN_GROUP: {
|
|
11918
|
-
|
|
11918
|
+
qa(this, t);
|
|
11919
11919
|
break;
|
|
11920
11920
|
}
|
|
11921
11921
|
case M.AFTER_BODY: {
|
|
11922
|
-
|
|
11922
|
+
Wa(this, t);
|
|
11923
11923
|
break;
|
|
11924
11924
|
}
|
|
11925
11925
|
case M.AFTER_AFTER_BODY: {
|
|
11926
|
-
|
|
11926
|
+
Ra(this, t);
|
|
11927
11927
|
break;
|
|
11928
11928
|
}
|
|
11929
11929
|
}
|
|
@@ -11970,15 +11970,15 @@ class ld {
|
|
|
11970
11970
|
break;
|
|
11971
11971
|
}
|
|
11972
11972
|
case M.IN_COLUMN_GROUP: {
|
|
11973
|
-
|
|
11973
|
+
qa(this, t);
|
|
11974
11974
|
break;
|
|
11975
11975
|
}
|
|
11976
11976
|
case M.AFTER_BODY: {
|
|
11977
|
-
|
|
11977
|
+
Wa(this, t);
|
|
11978
11978
|
break;
|
|
11979
11979
|
}
|
|
11980
11980
|
case M.AFTER_AFTER_BODY: {
|
|
11981
|
-
|
|
11981
|
+
Ra(this, t);
|
|
11982
11982
|
break;
|
|
11983
11983
|
}
|
|
11984
11984
|
}
|
|
@@ -12112,11 +12112,11 @@ class ld {
|
|
|
12112
12112
|
break;
|
|
12113
12113
|
}
|
|
12114
12114
|
case M.IN_TABLE_BODY: {
|
|
12115
|
-
|
|
12115
|
+
vi(this, t);
|
|
12116
12116
|
break;
|
|
12117
12117
|
}
|
|
12118
12118
|
case M.IN_ROW: {
|
|
12119
|
-
|
|
12119
|
+
yi(this, t);
|
|
12120
12120
|
break;
|
|
12121
12121
|
}
|
|
12122
12122
|
case M.IN_CELL: {
|
|
@@ -12189,7 +12189,7 @@ class ld {
|
|
|
12189
12189
|
break;
|
|
12190
12190
|
}
|
|
12191
12191
|
case M.IN_BODY: {
|
|
12192
|
-
|
|
12192
|
+
gi(this, t);
|
|
12193
12193
|
break;
|
|
12194
12194
|
}
|
|
12195
12195
|
case M.TEXT: {
|
|
@@ -12249,7 +12249,7 @@ class ld {
|
|
|
12249
12249
|
break;
|
|
12250
12250
|
}
|
|
12251
12251
|
case M.AFTER_AFTER_BODY: {
|
|
12252
|
-
|
|
12252
|
+
Ra(this, t);
|
|
12253
12253
|
break;
|
|
12254
12254
|
}
|
|
12255
12255
|
}
|
|
@@ -12640,9 +12640,9 @@ function sT(e, t) {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
}
|
|
12642
12642
|
function Tl(e, t) {
|
|
12643
|
-
e._insertFakeElement(H.BODY, p.BODY), e.insertionMode = M.IN_BODY,
|
|
12643
|
+
e._insertFakeElement(H.BODY, p.BODY), e.insertionMode = M.IN_BODY, bi(e, t);
|
|
12644
12644
|
}
|
|
12645
|
-
function
|
|
12645
|
+
function bi(e, t) {
|
|
12646
12646
|
switch (t.type) {
|
|
12647
12647
|
case ke.CHARACTER: {
|
|
12648
12648
|
sp(e, t);
|
|
@@ -12661,7 +12661,7 @@ function mi(e, t) {
|
|
|
12661
12661
|
break;
|
|
12662
12662
|
}
|
|
12663
12663
|
case ke.END_TAG: {
|
|
12664
|
-
|
|
12664
|
+
gi(e, t);
|
|
12665
12665
|
break;
|
|
12666
12666
|
}
|
|
12667
12667
|
case ke.EOF: {
|
|
@@ -13047,7 +13047,7 @@ function cp(e, t) {
|
|
|
13047
13047
|
break;
|
|
13048
13048
|
}
|
|
13049
13049
|
}
|
|
13050
|
-
function
|
|
13050
|
+
function gi(e, t) {
|
|
13051
13051
|
switch (t.tagID) {
|
|
13052
13052
|
case p.A:
|
|
13053
13053
|
case p.B:
|
|
@@ -13186,7 +13186,7 @@ function XT(e, t) {
|
|
|
13186
13186
|
e.openElements.clearBackToTableContext(), e._insertElement(t, K.HTML), e.insertionMode = M.IN_TABLE_BODY;
|
|
13187
13187
|
}
|
|
13188
13188
|
function JT(e, t) {
|
|
13189
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(H.TBODY, p.TBODY), e.insertionMode = M.IN_TABLE_BODY,
|
|
13189
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(H.TBODY, p.TBODY), e.insertionMode = M.IN_TABLE_BODY, vi(e, t);
|
|
13190
13190
|
}
|
|
13191
13191
|
function ZT(e, t) {
|
|
13192
13192
|
e.openElements.hasInTableScope(p.TABLE) && (e.openElements.popUntilTagNamePopped(p.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
@@ -13273,7 +13273,7 @@ function Rl(e, t) {
|
|
|
13273
13273
|
}
|
|
13274
13274
|
function Kl(e, t) {
|
|
13275
13275
|
const n = e.fosterParentingEnabled;
|
|
13276
|
-
e.fosterParentingEnabled = !0,
|
|
13276
|
+
e.fosterParentingEnabled = !0, bi(e, t), e.fosterParentingEnabled = n;
|
|
13277
13277
|
}
|
|
13278
13278
|
function fp(e, t) {
|
|
13279
13279
|
e.pendingCharacterTokens.push(t);
|
|
@@ -13316,7 +13316,7 @@ function r3(e, t) {
|
|
|
13316
13316
|
case p.TR:
|
|
13317
13317
|
break;
|
|
13318
13318
|
default:
|
|
13319
|
-
|
|
13319
|
+
gi(e, t);
|
|
13320
13320
|
}
|
|
13321
13321
|
}
|
|
13322
13322
|
function Xo(e, t) {
|
|
@@ -13334,7 +13334,7 @@ function Xo(e, t) {
|
|
|
13334
13334
|
break;
|
|
13335
13335
|
}
|
|
13336
13336
|
default:
|
|
13337
|
-
|
|
13337
|
+
qa(e, t);
|
|
13338
13338
|
}
|
|
13339
13339
|
}
|
|
13340
13340
|
function l3(e, t) {
|
|
@@ -13350,13 +13350,13 @@ function l3(e, t) {
|
|
|
13350
13350
|
case p.COL:
|
|
13351
13351
|
break;
|
|
13352
13352
|
default:
|
|
13353
|
-
|
|
13353
|
+
qa(e, t);
|
|
13354
13354
|
}
|
|
13355
13355
|
}
|
|
13356
|
-
function
|
|
13356
|
+
function qa(e, t) {
|
|
13357
13357
|
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode = M.IN_TABLE, e._processToken(t));
|
|
13358
13358
|
}
|
|
13359
|
-
function
|
|
13359
|
+
function vi(e, t) {
|
|
13360
13360
|
switch (t.tagID) {
|
|
13361
13361
|
case p.TR: {
|
|
13362
13362
|
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, K.HTML), e.insertionMode = M.IN_ROW;
|
|
@@ -13364,7 +13364,7 @@ function gi(e, t) {
|
|
|
13364
13364
|
}
|
|
13365
13365
|
case p.TH:
|
|
13366
13366
|
case p.TD: {
|
|
13367
|
-
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(H.TR, p.TR), e.insertionMode = M.IN_ROW,
|
|
13367
|
+
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(H.TR, p.TR), e.insertionMode = M.IN_ROW, yi(e, t);
|
|
13368
13368
|
break;
|
|
13369
13369
|
}
|
|
13370
13370
|
case p.CAPTION:
|
|
@@ -13406,7 +13406,7 @@ function no(e, t) {
|
|
|
13406
13406
|
Rl(e, t);
|
|
13407
13407
|
}
|
|
13408
13408
|
}
|
|
13409
|
-
function
|
|
13409
|
+
function yi(e, t) {
|
|
13410
13410
|
switch (t.tagID) {
|
|
13411
13411
|
case p.TH:
|
|
13412
13412
|
case p.TD: {
|
|
@@ -13420,7 +13420,7 @@ function vi(e, t) {
|
|
|
13420
13420
|
case p.TFOOT:
|
|
13421
13421
|
case p.THEAD:
|
|
13422
13422
|
case p.TR: {
|
|
13423
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY,
|
|
13423
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = M.IN_TABLE_BODY, vi(e, t));
|
|
13424
13424
|
break;
|
|
13425
13425
|
}
|
|
13426
13426
|
default:
|
|
@@ -13457,7 +13457,7 @@ function mp(e, t) {
|
|
|
13457
13457
|
}
|
|
13458
13458
|
function a3(e, t) {
|
|
13459
13459
|
const n = t.tagID;
|
|
13460
|
-
pp.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(),
|
|
13460
|
+
pp.has(n) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), yi(e, t)) : ft(e, t);
|
|
13461
13461
|
}
|
|
13462
13462
|
function i3(e, t) {
|
|
13463
13463
|
const n = t.tagID;
|
|
@@ -13482,7 +13482,7 @@ function i3(e, t) {
|
|
|
13482
13482
|
case p.HTML:
|
|
13483
13483
|
break;
|
|
13484
13484
|
default:
|
|
13485
|
-
|
|
13485
|
+
gi(e, t);
|
|
13486
13486
|
}
|
|
13487
13487
|
}
|
|
13488
13488
|
function bp(e, t) {
|
|
@@ -13575,12 +13575,12 @@ function u3(e, t) {
|
|
|
13575
13575
|
break;
|
|
13576
13576
|
}
|
|
13577
13577
|
case p.TR: {
|
|
13578
|
-
e.tmplInsertionModeStack[0] = M.IN_TABLE_BODY, e.insertionMode = M.IN_TABLE_BODY,
|
|
13578
|
+
e.tmplInsertionModeStack[0] = M.IN_TABLE_BODY, e.insertionMode = M.IN_TABLE_BODY, vi(e, t);
|
|
13579
13579
|
break;
|
|
13580
13580
|
}
|
|
13581
13581
|
case p.TD:
|
|
13582
13582
|
case p.TH: {
|
|
13583
|
-
e.tmplInsertionModeStack[0] = M.IN_ROW, e.insertionMode = M.IN_ROW,
|
|
13583
|
+
e.tmplInsertionModeStack[0] = M.IN_ROW, e.insertionMode = M.IN_ROW, yi(e, t);
|
|
13584
13584
|
break;
|
|
13585
13585
|
}
|
|
13586
13586
|
default:
|
|
@@ -13594,7 +13594,7 @@ function vp(e, t) {
|
|
|
13594
13594
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Qo(e, t);
|
|
13595
13595
|
}
|
|
13596
13596
|
function d3(e, t) {
|
|
13597
|
-
t.tagID === p.HTML ? ft(e, t) :
|
|
13597
|
+
t.tagID === p.HTML ? ft(e, t) : Wa(e, t);
|
|
13598
13598
|
}
|
|
13599
13599
|
function yp(e, t) {
|
|
13600
13600
|
var n;
|
|
@@ -13605,10 +13605,10 @@ function yp(e, t) {
|
|
|
13605
13605
|
r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
|
|
13606
13606
|
}
|
|
13607
13607
|
} else
|
|
13608
|
-
|
|
13608
|
+
Wa(e, t);
|
|
13609
13609
|
}
|
|
13610
|
-
function
|
|
13611
|
-
e.insertionMode = M.IN_BODY,
|
|
13610
|
+
function Wa(e, t) {
|
|
13611
|
+
e.insertionMode = M.IN_BODY, bi(e, t);
|
|
13612
13612
|
}
|
|
13613
13613
|
function f3(e, t) {
|
|
13614
13614
|
switch (t.tagID) {
|
|
@@ -13649,10 +13649,10 @@ function m3(e, t) {
|
|
|
13649
13649
|
t.tagID === p.HTML && (e.insertionMode = M.AFTER_AFTER_FRAMESET);
|
|
13650
13650
|
}
|
|
13651
13651
|
function b3(e, t) {
|
|
13652
|
-
t.tagID === p.HTML ? ft(e, t) :
|
|
13652
|
+
t.tagID === p.HTML ? ft(e, t) : Ra(e, t);
|
|
13653
13653
|
}
|
|
13654
|
-
function
|
|
13655
|
-
e.insertionMode = M.IN_BODY,
|
|
13654
|
+
function Ra(e, t) {
|
|
13655
|
+
e.insertionMode = M.IN_BODY, bi(e, t);
|
|
13656
13656
|
}
|
|
13657
13657
|
function g3(e, t) {
|
|
13658
13658
|
switch (t.tagID) {
|
|
@@ -13727,7 +13727,7 @@ function Tp(e, t) {
|
|
|
13727
13727
|
// To do: support `space`?
|
|
13728
13728
|
file: l.options.file
|
|
13729
13729
|
});
|
|
13730
|
-
return l.stitches &&
|
|
13730
|
+
return l.stitches && mi(i, "comment", function(s, o, u) {
|
|
13731
13731
|
const c = (
|
|
13732
13732
|
/** @type {Stitch} */
|
|
13733
13733
|
/** @type {unknown} */
|
|
@@ -13860,7 +13860,7 @@ function O3(e, t) {
|
|
|
13860
13860
|
function M3(e, t) {
|
|
13861
13861
|
const n = e.tagName.toLowerCase();
|
|
13862
13862
|
if (!t.parser.tokenizer.inForeignNode && jE.includes(n) || t.parser.tokenizer.state === Ye.PLAINTEXT) return;
|
|
13863
|
-
Qr(t,
|
|
13863
|
+
Qr(t, di(e));
|
|
13864
13864
|
const r = {
|
|
13865
13865
|
type: ke.END_TAG,
|
|
13866
13866
|
tagName: n,
|
|
@@ -13885,7 +13885,7 @@ function Ql(e) {
|
|
|
13885
13885
|
line: void 0,
|
|
13886
13886
|
column: void 0,
|
|
13887
13887
|
offset: void 0
|
|
13888
|
-
}, n =
|
|
13888
|
+
}, n = di(e) || {
|
|
13889
13889
|
line: void 0,
|
|
13890
13890
|
column: void 0,
|
|
13891
13891
|
offset: void 0
|
|
@@ -14944,7 +14944,7 @@ const yC = {
|
|
|
14944
14944
|
}, TC = {
|
|
14945
14945
|
tokenize: SC,
|
|
14946
14946
|
partial: !0
|
|
14947
|
-
},
|
|
14947
|
+
}, ga = {
|
|
14948
14948
|
tokenize: kC,
|
|
14949
14949
|
partial: !0
|
|
14950
14950
|
};
|
|
@@ -14968,10 +14968,10 @@ function CC(e, t, n) {
|
|
|
14968
14968
|
return De(e, h, "whitespace")(k);
|
|
14969
14969
|
}
|
|
14970
14970
|
function h(k) {
|
|
14971
|
-
return e.exit("directiveContainerFence"), k === null ? w(k) : de(k) ? r.interrupt ? t(k) : e.attempt(
|
|
14971
|
+
return e.exit("directiveContainerFence"), k === null ? w(k) : de(k) ? r.interrupt ? t(k) : e.attempt(ga, m, w)(k) : n(k);
|
|
14972
14972
|
}
|
|
14973
14973
|
function m(k) {
|
|
14974
|
-
return k === null ? w(k) : de(k) ? e.check(
|
|
14974
|
+
return k === null ? w(k) : de(k) ? e.check(ga, S, w)(k) : (e.enter("directiveContainerContent"), g(k));
|
|
14975
14975
|
}
|
|
14976
14976
|
function g(k) {
|
|
14977
14977
|
return e.attempt({
|
|
@@ -14980,14 +14980,14 @@ function CC(e, t, n) {
|
|
|
14980
14980
|
}, C, a ? De(e, b, "linePrefix", a + 1) : b)(k);
|
|
14981
14981
|
}
|
|
14982
14982
|
function b(k) {
|
|
14983
|
-
return k === null ? C(k) : de(k) ? e.check(
|
|
14983
|
+
return k === null ? C(k) : de(k) ? e.check(ga, A, C)(k) : A(k);
|
|
14984
14984
|
}
|
|
14985
14985
|
function E(k) {
|
|
14986
14986
|
if (k === null) {
|
|
14987
14987
|
const P = e.exit("chunkDocument");
|
|
14988
14988
|
return r.parser.lazy[P.start.line] = !1, C(k);
|
|
14989
14989
|
}
|
|
14990
|
-
return de(k) ? e.check(
|
|
14990
|
+
return de(k) ? e.check(ga, O, I)(k) : (e.consume(k), E);
|
|
14991
14991
|
}
|
|
14992
14992
|
function A(k) {
|
|
14993
14993
|
const P = e.enter("chunkDocument", {
|
|
@@ -15161,7 +15161,7 @@ const zC = {
|
|
|
15161
15161
|
]
|
|
15162
15162
|
}
|
|
15163
15163
|
}, VC = () => (e) => {
|
|
15164
|
-
|
|
15164
|
+
mi(e, (t) => {
|
|
15165
15165
|
const n = t;
|
|
15166
15166
|
if (!n || n.type !== "textDirective" && n.type !== "leafDirective" && n.type !== "containerDirective" || n.name !== "color") return;
|
|
15167
15167
|
const r = n.attributes || {}, l = r.hex ?? r.color ?? r.value, a = typeof l == "string" ? l.trim() : "", i = /^#([0-9a-fA-F]{6})$/.test(a) ? a : "#7C3AED", s = r.bold, u = `${s === !0 || s === "true" || s === 1 || s === "1" ? "font-weight:700;" : ""}color:${i};`;
|
|
@@ -15614,36 +15614,36 @@ const Vn = ({ node: e, children: t }) => e.required ? /* @__PURE__ */ W(
|
|
|
15614
15614
|
}
|
|
15615
15615
|
) : /* @__PURE__ */ v(tt, { children: t });
|
|
15616
15616
|
Vn.displayName = "RequiredMark";
|
|
15617
|
-
const
|
|
15617
|
+
const va = {
|
|
15618
15618
|
adjustX: !0,
|
|
15619
15619
|
adjustY: !0,
|
|
15620
15620
|
shiftY: !1
|
|
15621
|
-
},
|
|
15621
|
+
}, Zl = () => document.body, ru = {
|
|
15622
15622
|
bottomLeft: {
|
|
15623
15623
|
points: ["tl", "bl"],
|
|
15624
15624
|
offset: [0, 4],
|
|
15625
|
-
overflow:
|
|
15625
|
+
overflow: va,
|
|
15626
15626
|
htmlRegion: "visible",
|
|
15627
15627
|
dynamicInset: !0
|
|
15628
15628
|
},
|
|
15629
15629
|
bottomRight: {
|
|
15630
15630
|
points: ["tr", "br"],
|
|
15631
15631
|
offset: [0, 4],
|
|
15632
|
-
overflow:
|
|
15632
|
+
overflow: va,
|
|
15633
15633
|
htmlRegion: "visible",
|
|
15634
15634
|
dynamicInset: !0
|
|
15635
15635
|
},
|
|
15636
15636
|
topLeft: {
|
|
15637
15637
|
points: ["bl", "tl"],
|
|
15638
15638
|
offset: [0, -4],
|
|
15639
|
-
overflow:
|
|
15639
|
+
overflow: va,
|
|
15640
15640
|
htmlRegion: "visible",
|
|
15641
15641
|
dynamicInset: !0
|
|
15642
15642
|
},
|
|
15643
15643
|
topRight: {
|
|
15644
15644
|
points: ["br", "tr"],
|
|
15645
15645
|
offset: [0, -4],
|
|
15646
|
-
overflow:
|
|
15646
|
+
overflow: va,
|
|
15647
15647
|
htmlRegion: "visible",
|
|
15648
15648
|
dynamicInset: !0
|
|
15649
15649
|
}
|
|
@@ -15713,7 +15713,7 @@ const ga = {
|
|
|
15713
15713
|
popupMatchSelectWidth: !1,
|
|
15714
15714
|
placement: "bottomLeft",
|
|
15715
15715
|
builtinPlacements: ru,
|
|
15716
|
-
getPopupContainer:
|
|
15716
|
+
getPopupContainer: Zl,
|
|
15717
15717
|
suffixIcon: /* @__PURE__ */ v(
|
|
15718
15718
|
"i",
|
|
15719
15719
|
{
|
|
@@ -15842,7 +15842,7 @@ const Dp = ge.memo(
|
|
|
15842
15842
|
popupMatchSelectWidth: !1,
|
|
15843
15843
|
placement: "bottomLeft",
|
|
15844
15844
|
builtinPlacements: ru,
|
|
15845
|
-
getPopupContainer:
|
|
15845
|
+
getPopupContainer: Zl,
|
|
15846
15846
|
notFoundContent: /* @__PURE__ */ v("span", { style: { color: "#999", fontSize: 13 }, children: "暂无数据" }),
|
|
15847
15847
|
suffixIcon: /* @__PURE__ */ v(
|
|
15848
15848
|
"i",
|
|
@@ -15961,7 +15961,7 @@ const rx = {
|
|
|
15961
15961
|
timePickerLocale: Object.assign({}, rx)
|
|
15962
15962
|
};
|
|
15963
15963
|
Lp.lang.ok = "确定";
|
|
15964
|
-
var
|
|
15964
|
+
var Da = { exports: {} }, lx = Da.exports, Ed;
|
|
15965
15965
|
function Pp() {
|
|
15966
15966
|
return Ed || (Ed = 1, function(e, t) {
|
|
15967
15967
|
(function(n, r) {
|
|
@@ -16237,11 +16237,11 @@ function Pp() {
|
|
|
16237
16237
|
return P(1e3 * L);
|
|
16238
16238
|
}, P.en = C[I], P.Ls = C, P.p = {}, P;
|
|
16239
16239
|
});
|
|
16240
|
-
}(
|
|
16240
|
+
}(Da)), Da.exports;
|
|
16241
16241
|
}
|
|
16242
16242
|
var ax = Pp();
|
|
16243
|
-
const
|
|
16244
|
-
var
|
|
16243
|
+
const Ya = /* @__PURE__ */ Lo(ax);
|
|
16244
|
+
var La = { exports: {} }, ix = La.exports, Td;
|
|
16245
16245
|
function sx() {
|
|
16246
16246
|
return Td || (Td = 1, function(e, t) {
|
|
16247
16247
|
(function(n, r) {
|
|
@@ -16258,15 +16258,15 @@ function sx() {
|
|
|
16258
16258
|
} };
|
|
16259
16259
|
return l.default.locale(a, null, !0), a;
|
|
16260
16260
|
});
|
|
16261
|
-
}(
|
|
16261
|
+
}(La)), La.exports;
|
|
16262
16262
|
}
|
|
16263
16263
|
sx();
|
|
16264
|
-
|
|
16264
|
+
Ya.locale("zh-cn");
|
|
16265
16265
|
const { RangePicker: ox } = Mb, ux = (e) => {
|
|
16266
16266
|
if (!e) return null;
|
|
16267
16267
|
const t = e.split(",");
|
|
16268
16268
|
if (t.length !== 2 || !t[0] || !t[1]) return null;
|
|
16269
|
-
const n =
|
|
16269
|
+
const n = Ya(t[0]), r = Ya(t[1]);
|
|
16270
16270
|
return n.isValid() && r.isValid() ? [n, r] : null;
|
|
16271
16271
|
}, Bp = ge.memo(
|
|
16272
16272
|
({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
|
|
@@ -16287,7 +16287,7 @@ const { RangePicker: ox } = Mb, ux = (e) => {
|
|
|
16287
16287
|
},
|
|
16288
16288
|
[a]
|
|
16289
16289
|
), d = V(
|
|
16290
|
-
(f) => f ? e.disableFuture && f.isAfter(
|
|
16290
|
+
(f) => f ? e.disableFuture && f.isAfter(Ya(), "day") ? !0 : typeof e.limitRange != "number" || !i || !i[0] ? !1 : Math.abs(f.diff(i[0], "days")) > e.limitRange : !1,
|
|
16291
16291
|
[e.disableFuture, e.limitRange, i]
|
|
16292
16292
|
);
|
|
16293
16293
|
return /* @__PURE__ */ v(Vn, { node: e, children: /* @__PURE__ */ v(
|
|
@@ -22280,7 +22280,7 @@ const cx = [
|
|
|
22280
22280
|
popupClassName: "rte-cascader-dropdown",
|
|
22281
22281
|
placement: "bottomLeft",
|
|
22282
22282
|
builtinPlacements: ru,
|
|
22283
|
-
getPopupContainer:
|
|
22283
|
+
getPopupContainer: Zl,
|
|
22284
22284
|
displayRender: (I) => I.join("-"),
|
|
22285
22285
|
style: { width: "100%" },
|
|
22286
22286
|
suffixIcon: /* @__PURE__ */ v(
|
|
@@ -22395,7 +22395,7 @@ const lu = (e) => {
|
|
|
22395
22395
|
},
|
|
22396
22396
|
[a]
|
|
22397
22397
|
);
|
|
22398
|
-
return /* @__PURE__ */ v("div", { className: "rte-report-dropdown-panel", onMouseDown: (C) => C.preventDefault(), children: u ? /* @__PURE__ */ v("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ v(
|
|
22398
|
+
return /* @__PURE__ */ v("div", { className: "rte-report-dropdown-panel", onMouseDown: (C) => C.preventDefault(), children: u ? /* @__PURE__ */ v("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ v(ui, { size: "small" }) }) : d ? /* @__PURE__ */ W(tt, { children: [
|
|
22399
22399
|
d.tabs.length > 1 && /* @__PURE__ */ v("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ v("div", { className: "rte-report-dropdown-tab-inner", children: d.tabs.map((C) => /* @__PURE__ */ v(
|
|
22400
22400
|
"div",
|
|
22401
22401
|
{
|
|
@@ -22516,7 +22516,7 @@ const lu = (e) => {
|
|
|
22516
22516
|
[l]
|
|
22517
22517
|
);
|
|
22518
22518
|
return /* @__PURE__ */ v(
|
|
22519
|
-
|
|
22519
|
+
za,
|
|
22520
22520
|
{
|
|
22521
22521
|
content: f ? /* @__PURE__ */ v(
|
|
22522
22522
|
px,
|
|
@@ -22911,7 +22911,7 @@ function $p(e) {
|
|
|
22911
22911
|
};
|
|
22912
22912
|
}, [e, t]), t;
|
|
22913
22913
|
}
|
|
22914
|
-
const vx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, yx = (e) => vx.test(e), Ex = (e) => /^image\//i.test(e.type),
|
|
22914
|
+
const vx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, yx = (e) => vx.test(e), Ex = (e) => /^image\//i.test(e.type), Pa = ge.memo(
|
|
22915
22915
|
({
|
|
22916
22916
|
slotKey: e,
|
|
22917
22917
|
file: t,
|
|
@@ -22984,7 +22984,7 @@ const vx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, yx = (e) => vx.test(e), Ex
|
|
|
22984
22984
|
return $ ? /* @__PURE__ */ v(
|
|
22985
22985
|
Ro,
|
|
22986
22986
|
{
|
|
22987
|
-
|
|
22987
|
+
getPopupContainer: Zl,
|
|
22988
22988
|
title: /* @__PURE__ */ v("div", { className: "se-upload-preview", children: /* @__PURE__ */ v("img", { className: "se-upload-preview-img", src: A, alt: "preview" }) }),
|
|
22989
22989
|
placement: "top",
|
|
22990
22990
|
align: { offset: [0, -10] },
|
|
@@ -23080,7 +23080,7 @@ const vx = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, yx = (e) => vx.test(e), Ex
|
|
|
23080
23080
|
return l ? /* @__PURE__ */ v(dr, { title: l, open: S, trigger: [], children: z }) : z;
|
|
23081
23081
|
}
|
|
23082
23082
|
);
|
|
23083
|
-
|
|
23083
|
+
Pa.displayName = "UploadChip";
|
|
23084
23084
|
const Tx = 10 * 1024 * 1024, Cx = (e) => e.size > Tx, xx = "文件大小不能超过 10MB", Sx = 1e3;
|
|
23085
23085
|
let xd = 0;
|
|
23086
23086
|
const kx = (e = Date.now()) => e - xd < Sx ? !1 : (xd = e, !0), Ax = 32, Nx = (e) => {
|
|
@@ -23167,7 +23167,7 @@ const kx = (e = Date.now()) => e - xd < Sx ? !1 : (xd = e, !0), Ax = 32, Nx = (e
|
|
|
23167
23167
|
}, [t, s, e.key, e.maxCount]), I = S.length;
|
|
23168
23168
|
if (!s) {
|
|
23169
23169
|
const R = e.key, F = t[R] ?? null, $ = F != null, L = (e.text || "").trim(), y = $ && e.showHint === !0 && L.length >= Ix, B = /* @__PURE__ */ v(
|
|
23170
|
-
|
|
23170
|
+
Pa,
|
|
23171
23171
|
{
|
|
23172
23172
|
slotKey: R,
|
|
23173
23173
|
file: F,
|
|
@@ -23215,7 +23215,7 @@ const kx = (e = Date.now()) => e - xd < Sx ? !1 : (xd = e, !0), Ax = 32, Nx = (e
|
|
|
23215
23215
|
for (const { key: R, file: F } of S)
|
|
23216
23216
|
k.push(
|
|
23217
23217
|
/* @__PURE__ */ v(
|
|
23218
|
-
|
|
23218
|
+
Pa,
|
|
23219
23219
|
{
|
|
23220
23220
|
slotKey: R,
|
|
23221
23221
|
file: F,
|
|
@@ -23237,7 +23237,7 @@ const kx = (e = Date.now()) => e - xd < Sx ? !1 : (xd = e, !0), Ax = 32, Nx = (e
|
|
|
23237
23237
|
for (const R of O.slice(0, P))
|
|
23238
23238
|
k.push(
|
|
23239
23239
|
/* @__PURE__ */ v(
|
|
23240
|
-
|
|
23240
|
+
Pa,
|
|
23241
23241
|
{
|
|
23242
23242
|
slotKey: R,
|
|
23243
23243
|
file: null,
|
|
@@ -23919,7 +23919,7 @@ const Hx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23919
23919
|
},
|
|
23920
23920
|
[l]
|
|
23921
23921
|
);
|
|
23922
|
-
return /* @__PURE__ */ v("div", { className: "rte-report-dropdown-panel", onMouseDown: (I) => I.preventDefault(), children: o ? /* @__PURE__ */ v("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ v(
|
|
23922
|
+
return /* @__PURE__ */ v("div", { className: "rte-report-dropdown-panel", onMouseDown: (I) => I.preventDefault(), children: o ? /* @__PURE__ */ v("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ v(ui, { size: "small" }) }) : c ? /* @__PURE__ */ W(tt, { children: [
|
|
23923
23923
|
c.tabs.length > 1 && /* @__PURE__ */ v("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ v("div", { className: "rte-report-dropdown-tab-inner", children: c.tabs.map((I) => /* @__PURE__ */ v(
|
|
23924
23924
|
"div",
|
|
23925
23925
|
{
|
|
@@ -24201,7 +24201,7 @@ const Hx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24201
24201
|
children: [
|
|
24202
24202
|
/* @__PURE__ */ v("span", { className: "rte-text-required", children: /* @__PURE__ */ v("i", { className: "iconfont icon-bitian", style: { fontSize: 10 } }) }),
|
|
24203
24203
|
/* @__PURE__ */ v(
|
|
24204
|
-
|
|
24204
|
+
za,
|
|
24205
24205
|
{
|
|
24206
24206
|
content: mn,
|
|
24207
24207
|
trigger: [],
|
|
@@ -24218,7 +24218,7 @@ const Hx = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24218
24218
|
]
|
|
24219
24219
|
}
|
|
24220
24220
|
) }) : /* @__PURE__ */ v(tt, { children: /* @__PURE__ */ v(
|
|
24221
|
-
|
|
24221
|
+
za,
|
|
24222
24222
|
{
|
|
24223
24223
|
content: mn,
|
|
24224
24224
|
trigger: [],
|
|
@@ -24710,15 +24710,15 @@ class X {
|
|
|
24710
24710
|
*/
|
|
24711
24711
|
findIndex(t) {
|
|
24712
24712
|
if (t == 0)
|
|
24713
|
-
return
|
|
24713
|
+
return ya(0, t);
|
|
24714
24714
|
if (t == this.size)
|
|
24715
|
-
return
|
|
24715
|
+
return ya(this.content.length, t);
|
|
24716
24716
|
if (t > this.size || t < 0)
|
|
24717
24717
|
throw new RangeError(`Position ${t} outside of fragment (${this})`);
|
|
24718
24718
|
for (let n = 0, r = 0; ; n++) {
|
|
24719
24719
|
let l = this.child(n), a = r + l.nodeSize;
|
|
24720
24720
|
if (a >= t)
|
|
24721
|
-
return a == t ?
|
|
24721
|
+
return a == t ? ya(n + 1, a) : ya(n, r);
|
|
24722
24722
|
r = a;
|
|
24723
24723
|
}
|
|
24724
24724
|
}
|
|
@@ -24784,10 +24784,10 @@ class X {
|
|
|
24784
24784
|
}
|
|
24785
24785
|
X.empty = new X([], 0);
|
|
24786
24786
|
const ys = { index: 0, offset: 0 };
|
|
24787
|
-
function
|
|
24787
|
+
function ya(e, t) {
|
|
24788
24788
|
return ys.index = e, ys.offset = t, ys;
|
|
24789
24789
|
}
|
|
24790
|
-
function
|
|
24790
|
+
function ja(e, t) {
|
|
24791
24791
|
if (e === t)
|
|
24792
24792
|
return !0;
|
|
24793
24793
|
if (!(e && typeof e == "object") || !(t && typeof t == "object"))
|
|
@@ -24799,11 +24799,11 @@ function Ya(e, t) {
|
|
|
24799
24799
|
if (e.length != t.length)
|
|
24800
24800
|
return !1;
|
|
24801
24801
|
for (let r = 0; r < e.length; r++)
|
|
24802
|
-
if (!
|
|
24802
|
+
if (!ja(e[r], t[r]))
|
|
24803
24803
|
return !1;
|
|
24804
24804
|
} else {
|
|
24805
24805
|
for (let r in e)
|
|
24806
|
-
if (!(r in t) || !
|
|
24806
|
+
if (!(r in t) || !ja(e[r], t[r]))
|
|
24807
24807
|
return !1;
|
|
24808
24808
|
for (let r in t)
|
|
24809
24809
|
if (!(r in e))
|
|
@@ -24865,7 +24865,7 @@ let Fe = class ro {
|
|
|
24865
24865
|
another mark.
|
|
24866
24866
|
*/
|
|
24867
24867
|
eq(t) {
|
|
24868
|
-
return this == t || this.type == t.type &&
|
|
24868
|
+
return this == t || this.type == t.type && ja(this.attrs, t.attrs);
|
|
24869
24869
|
}
|
|
24870
24870
|
/**
|
|
24871
24871
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -24917,7 +24917,7 @@ let Fe = class ro {
|
|
|
24917
24917
|
}
|
|
24918
24918
|
};
|
|
24919
24919
|
Fe.none = [];
|
|
24920
|
-
class
|
|
24920
|
+
class Ga extends Error {
|
|
24921
24921
|
}
|
|
24922
24922
|
class se {
|
|
24923
24923
|
/**
|
|
@@ -25020,9 +25020,9 @@ function lm(e, t, n, r, l, a) {
|
|
|
25020
25020
|
}
|
|
25021
25021
|
function Kx(e, t, n) {
|
|
25022
25022
|
if (n.openStart > e.depth)
|
|
25023
|
-
throw new
|
|
25023
|
+
throw new Ga("Inserted content deeper than insertion position");
|
|
25024
25024
|
if (e.depth - n.openStart != t.depth - n.openEnd)
|
|
25025
|
-
throw new
|
|
25025
|
+
throw new Ga("Inconsistent open depths");
|
|
25026
25026
|
return am(e, t, n, 0);
|
|
25027
25027
|
}
|
|
25028
25028
|
function am(e, t, n, r) {
|
|
@@ -25038,11 +25038,11 @@ function am(e, t, n, r) {
|
|
|
25038
25038
|
let { start: i, end: s } = Qx(n, e);
|
|
25039
25039
|
return sr(a, sm(e, i, s, t, r));
|
|
25040
25040
|
}
|
|
25041
|
-
else return sr(a,
|
|
25041
|
+
else return sr(a, Ka(e, t, r));
|
|
25042
25042
|
}
|
|
25043
25043
|
function im(e, t) {
|
|
25044
25044
|
if (!t.type.compatibleContent(e.type))
|
|
25045
|
-
throw new
|
|
25045
|
+
throw new Ga("Cannot join " + t.type.name + " onto " + e.type.name);
|
|
25046
25046
|
}
|
|
25047
25047
|
function lo(e, t, n) {
|
|
25048
25048
|
let r = e.node(n);
|
|
@@ -25064,13 +25064,13 @@ function sr(e, t) {
|
|
|
25064
25064
|
}
|
|
25065
25065
|
function sm(e, t, n, r, l) {
|
|
25066
25066
|
let a = e.depth > l && lo(e, t, l + 1), i = r.depth > l && lo(n, r, l + 1), s = [];
|
|
25067
|
-
return Cl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (im(a, i), ir(sr(a, sm(e, t, n, r, l + 1)), s)) : (a && ir(sr(a,
|
|
25067
|
+
return Cl(null, e, l, s), a && i && t.index(l) == n.index(l) ? (im(a, i), ir(sr(a, sm(e, t, n, r, l + 1)), s)) : (a && ir(sr(a, Ka(e, t, l + 1)), s), Cl(t, n, l, s), i && ir(sr(i, Ka(n, r, l + 1)), s)), Cl(r, null, l, s), new X(s);
|
|
25068
25068
|
}
|
|
25069
|
-
function
|
|
25069
|
+
function Ka(e, t, n) {
|
|
25070
25070
|
let r = [];
|
|
25071
25071
|
if (Cl(null, e, n, r), e.depth > n) {
|
|
25072
25072
|
let l = lo(e, t, n + 1);
|
|
25073
|
-
ir(sr(l,
|
|
25073
|
+
ir(sr(l, Ka(e, t, n + 1)), r);
|
|
25074
25074
|
}
|
|
25075
25075
|
return Cl(t, null, n, r), new X(r);
|
|
25076
25076
|
}
|
|
@@ -25268,7 +25268,7 @@ class Ll {
|
|
|
25268
25268
|
return t.blockRange(this);
|
|
25269
25269
|
for (let r = this.depth - (this.parent.inlineContent || this.pos == t.pos ? 1 : 0); r >= 0; r--)
|
|
25270
25270
|
if (t.pos <= this.end(r) && (!n || n(this.node(r))))
|
|
25271
|
-
return new
|
|
25271
|
+
return new Qa(this, t, r);
|
|
25272
25272
|
return null;
|
|
25273
25273
|
}
|
|
25274
25274
|
/**
|
|
@@ -25336,7 +25336,7 @@ class Xx {
|
|
|
25336
25336
|
}
|
|
25337
25337
|
}
|
|
25338
25338
|
const Jx = 12, Ad = /* @__PURE__ */ new WeakMap();
|
|
25339
|
-
class
|
|
25339
|
+
class Qa {
|
|
25340
25340
|
/**
|
|
25341
25341
|
Construct a node range. `$from` and `$to` should point into the
|
|
25342
25342
|
same node until at least the given `depth`, since a node range
|
|
@@ -25496,7 +25496,7 @@ let Dn = class ao {
|
|
|
25496
25496
|
attributes, and marks.
|
|
25497
25497
|
*/
|
|
25498
25498
|
hasMarkup(t, n, r) {
|
|
25499
|
-
return this.type == t &&
|
|
25499
|
+
return this.type == t && ja(this.attrs, n || t.defaultAttrs || Zx) && Fe.sameSet(this.marks, r || Fe.none);
|
|
25500
25500
|
}
|
|
25501
25501
|
/**
|
|
25502
25502
|
Create a new node with the same markup as this node, containing
|
|
@@ -25748,7 +25748,7 @@ let Dn = class ao {
|
|
|
25748
25748
|
}
|
|
25749
25749
|
};
|
|
25750
25750
|
Dn.prototype.text = void 0;
|
|
25751
|
-
class
|
|
25751
|
+
class Xa extends Dn {
|
|
25752
25752
|
/**
|
|
25753
25753
|
@internal
|
|
25754
25754
|
*/
|
|
@@ -25770,10 +25770,10 @@ class Qa extends Dn {
|
|
|
25770
25770
|
return this.text.length;
|
|
25771
25771
|
}
|
|
25772
25772
|
mark(t) {
|
|
25773
|
-
return t == this.marks ? this : new
|
|
25773
|
+
return t == this.marks ? this : new Xa(this.type, this.attrs, this.text, t);
|
|
25774
25774
|
}
|
|
25775
25775
|
withText(t) {
|
|
25776
|
-
return t == this.text ? this : new
|
|
25776
|
+
return t == this.text ? this : new Xa(this.type, this.attrs, t, this.marks);
|
|
25777
25777
|
}
|
|
25778
25778
|
cut(t = 0, n = this.text.length) {
|
|
25779
25779
|
return t == 0 && n == this.text.length ? this : this.withText(this.text.slice(t, n));
|
|
@@ -26476,7 +26476,7 @@ class bm {
|
|
|
26476
26476
|
*/
|
|
26477
26477
|
text(t, n) {
|
|
26478
26478
|
let r = this.nodes.text;
|
|
26479
|
-
return new
|
|
26479
|
+
return new Xa(r, r.defaultAttrs, t, Fe.setFrom(n));
|
|
26480
26480
|
}
|
|
26481
26481
|
/**
|
|
26482
26482
|
Create a mark with the given type and attributes.
|
|
@@ -26675,7 +26675,7 @@ const gm = {
|
|
|
26675
26675
|
function Od(e, t, n) {
|
|
26676
26676
|
return t != null ? (t ? Pl : 0) | (t === "full" ? so : 0) : e && e.whitespace == "pre" ? Pl | so : n & ~Sl;
|
|
26677
26677
|
}
|
|
26678
|
-
class
|
|
26678
|
+
class Ea {
|
|
26679
26679
|
constructor(t, n, r, l, a, i) {
|
|
26680
26680
|
this.type = t, this.attrs = n, this.marks = r, this.solid = l, this.options = i, this.content = [], this.activeMarks = Fe.none, this.match = a || (i & Sl ? null : t.contentMatch);
|
|
26681
26681
|
}
|
|
@@ -26712,7 +26712,7 @@ class Md {
|
|
|
26712
26712
|
constructor(t, n, r) {
|
|
26713
26713
|
this.parser = t, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
26714
26714
|
let l = n.topNode, a, i = Od(null, n.preserveWhitespace, 0) | (r ? Sl : 0);
|
|
26715
|
-
l ? a = new
|
|
26715
|
+
l ? a = new Ea(l.type, l.attrs, Fe.none, !0, n.topMatch || l.type.contentMatch, i) : r ? a = new Ea(null, null, Fe.none, !0, null, i) : a = new Ea(t.schema.topNodeType, null, Fe.none, !0, null, i), this.nodes = [a], this.find = n.findPositions, this.needsBlock = !1;
|
|
26716
26716
|
}
|
|
26717
26717
|
get top() {
|
|
26718
26718
|
return this.nodes[this.open];
|
|
@@ -26896,7 +26896,7 @@ class Md {
|
|
|
26896
26896
|
let s = Od(t, a, i.options);
|
|
26897
26897
|
i.options & Sl && i.content.length == 0 && (s |= Sl);
|
|
26898
26898
|
let o = Fe.none;
|
|
26899
|
-
return r = r.filter((u) => (i.type ? i.type.allowsMarkType(u.type) : Dd(u.type, t)) ? (o = u.addToSet(o), !1) : !0), this.nodes.push(new
|
|
26899
|
+
return r = r.filter((u) => (i.type ? i.type.allowsMarkType(u.type) : Dd(u.type, t)) ? (o = u.addToSet(o), !1) : !0), this.nodes.push(new Ea(t, n, o, l, null, s)), this.open++, r;
|
|
26900
26900
|
}
|
|
26901
26901
|
// Make sure all nodes above this.open are finished and added to
|
|
26902
26902
|
// their parents
|
|
@@ -27043,7 +27043,7 @@ class Er {
|
|
|
27043
27043
|
nodes.
|
|
27044
27044
|
*/
|
|
27045
27045
|
serializeFragment(t, n = {}, r) {
|
|
27046
|
-
r || (r =
|
|
27046
|
+
r || (r = Ta(n).createDocumentFragment());
|
|
27047
27047
|
let l = r, a = [];
|
|
27048
27048
|
return t.forEach((i) => {
|
|
27049
27049
|
if (a.length || i.marks.length) {
|
|
@@ -27073,8 +27073,8 @@ class Er {
|
|
|
27073
27073
|
*/
|
|
27074
27074
|
serializeNodeInner(t, n) {
|
|
27075
27075
|
if (t.isText)
|
|
27076
|
-
return
|
|
27077
|
-
let { dom: r, contentDOM: l } =
|
|
27076
|
+
return Ta(n).createTextNode(t.text);
|
|
27077
|
+
let { dom: r, contentDOM: l } = Ba(Ta(n), this.nodes[t.type.name](t), null, t.attrs);
|
|
27078
27078
|
if (l) {
|
|
27079
27079
|
if (t.isLeaf)
|
|
27080
27080
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -27102,10 +27102,10 @@ class Er {
|
|
|
27102
27102
|
*/
|
|
27103
27103
|
serializeMark(t, n, r = {}) {
|
|
27104
27104
|
let l = this.marks[t.type.name];
|
|
27105
|
-
return l &&
|
|
27105
|
+
return l && Ba(Ta(r), l(t, n), null, t.attrs);
|
|
27106
27106
|
}
|
|
27107
27107
|
static renderSpec(t, n, r = null, l) {
|
|
27108
|
-
return typeof n == "string" ? { dom: t.createTextNode(n) } :
|
|
27108
|
+
return typeof n == "string" ? { dom: t.createTextNode(n) } : Ba(t, n, r, l);
|
|
27109
27109
|
}
|
|
27110
27110
|
/**
|
|
27111
27111
|
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
@@ -27137,7 +27137,7 @@ function Ld(e) {
|
|
|
27137
27137
|
}
|
|
27138
27138
|
return t;
|
|
27139
27139
|
}
|
|
27140
|
-
function
|
|
27140
|
+
function Ta(e) {
|
|
27141
27141
|
return e.document || window.document;
|
|
27142
27142
|
}
|
|
27143
27143
|
const Pd = /* @__PURE__ */ new WeakMap();
|
|
@@ -27161,7 +27161,7 @@ function gS(e) {
|
|
|
27161
27161
|
}
|
|
27162
27162
|
return n(e), t;
|
|
27163
27163
|
}
|
|
27164
|
-
function
|
|
27164
|
+
function Ba(e, t, n, r) {
|
|
27165
27165
|
if (t.nodeType == 3)
|
|
27166
27166
|
return { dom: t };
|
|
27167
27167
|
if (t.dom && t.dom.nodeType == 3)
|
|
@@ -27191,7 +27191,7 @@ function Pa(e, t, n, r) {
|
|
|
27191
27191
|
} else if (typeof f == "string")
|
|
27192
27192
|
o.appendChild(e.createTextNode(f));
|
|
27193
27193
|
else {
|
|
27194
|
-
let { dom: h, contentDOM: m } =
|
|
27194
|
+
let { dom: h, contentDOM: m } = Ba(e, f, n, r);
|
|
27195
27195
|
if (o.appendChild(h), m) {
|
|
27196
27196
|
if (s)
|
|
27197
27197
|
throw new RangeError("Multiple content holes");
|
|
@@ -27211,7 +27211,7 @@ function Bd(e) {
|
|
|
27211
27211
|
function yS(e) {
|
|
27212
27212
|
return (e - (e & ym)) / Em;
|
|
27213
27213
|
}
|
|
27214
|
-
const Tm = 1, Cm = 2,
|
|
27214
|
+
const Tm = 1, Cm = 2, Fa = 4, xm = 8;
|
|
27215
27215
|
class oo {
|
|
27216
27216
|
/**
|
|
27217
27217
|
@internal
|
|
@@ -27231,13 +27231,13 @@ class oo {
|
|
|
27231
27231
|
Tells you whether the token before the mapped position was deleted.
|
|
27232
27232
|
*/
|
|
27233
27233
|
get deletedBefore() {
|
|
27234
|
-
return (this.delInfo & (Tm |
|
|
27234
|
+
return (this.delInfo & (Tm | Fa)) > 0;
|
|
27235
27235
|
}
|
|
27236
27236
|
/**
|
|
27237
27237
|
True when the token after the mapped position was deleted.
|
|
27238
27238
|
*/
|
|
27239
27239
|
get deletedAfter() {
|
|
27240
|
-
return (this.delInfo & (Cm |
|
|
27240
|
+
return (this.delInfo & (Cm | Fa)) > 0;
|
|
27241
27241
|
}
|
|
27242
27242
|
/**
|
|
27243
27243
|
Tells whether any of the steps mapped through deletes across the
|
|
@@ -27245,7 +27245,7 @@ class oo {
|
|
|
27245
27245
|
position).
|
|
27246
27246
|
*/
|
|
27247
27247
|
get deletedAcross() {
|
|
27248
|
-
return (this.delInfo &
|
|
27248
|
+
return (this.delInfo & Fa) > 0;
|
|
27249
27249
|
}
|
|
27250
27250
|
}
|
|
27251
27251
|
class Dt {
|
|
@@ -27288,7 +27288,7 @@ class Dt {
|
|
|
27288
27288
|
let f = u ? t == o ? -1 : t == d ? 1 : n : n, h = o + l + (f < 0 ? 0 : c);
|
|
27289
27289
|
if (r)
|
|
27290
27290
|
return h;
|
|
27291
|
-
let m = t == (n < 0 ? o : d) ? null : vS(s / 3, t - o), g = t == o ? Cm : t == d ? Tm :
|
|
27291
|
+
let m = t == (n < 0 ? o : d) ? null : vS(s / 3, t - o), g = t == o ? Cm : t == d ? Tm : Fa;
|
|
27292
27292
|
return (n < 0 ? t != o : t != d) && (g |= xm), new oo(h, g, m);
|
|
27293
27293
|
}
|
|
27294
27294
|
l += c - u;
|
|
@@ -27522,7 +27522,7 @@ class Qe {
|
|
|
27522
27522
|
try {
|
|
27523
27523
|
return Qe.ok(t.replace(n, r, l));
|
|
27524
27524
|
} catch (a) {
|
|
27525
|
-
if (a instanceof
|
|
27525
|
+
if (a instanceof Ga)
|
|
27526
27526
|
return Qe.fail(a.message);
|
|
27527
27527
|
throw a;
|
|
27528
27528
|
}
|
|
@@ -29122,7 +29122,7 @@ function zd(e, t, n) {
|
|
|
29122
29122
|
i == null && (i = c);
|
|
29123
29123
|
}), e.setSelection(Ce.near(e.doc.resolve(i), n));
|
|
29124
29124
|
}
|
|
29125
|
-
const Vd = 1,
|
|
29125
|
+
const Vd = 1, Ca = 2, $d = 4;
|
|
29126
29126
|
class $S extends US {
|
|
29127
29127
|
/**
|
|
29128
29128
|
@internal
|
|
@@ -29146,7 +29146,7 @@ class $S extends US {
|
|
|
29146
29146
|
setSelection(t) {
|
|
29147
29147
|
if (t.$from.doc != this.doc)
|
|
29148
29148
|
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
29149
|
-
return this.curSelection = t, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Vd) & ~
|
|
29149
|
+
return this.curSelection = t, this.curSelectionFor = this.steps.length, this.updated = (this.updated | Vd) & ~Ca, this.storedMarks = null, this;
|
|
29150
29150
|
}
|
|
29151
29151
|
/**
|
|
29152
29152
|
Whether the selection was explicitly updated by this transaction.
|
|
@@ -29158,7 +29158,7 @@ class $S extends US {
|
|
|
29158
29158
|
Set the current stored marks.
|
|
29159
29159
|
*/
|
|
29160
29160
|
setStoredMarks(t) {
|
|
29161
|
-
return this.storedMarks = t, this.updated |=
|
|
29161
|
+
return this.storedMarks = t, this.updated |= Ca, this;
|
|
29162
29162
|
}
|
|
29163
29163
|
/**
|
|
29164
29164
|
Make sure the current stored marks or, if that is null, the marks
|
|
@@ -29184,13 +29184,13 @@ class $S extends US {
|
|
|
29184
29184
|
Whether the stored marks were explicitly set for this transaction.
|
|
29185
29185
|
*/
|
|
29186
29186
|
get storedMarksSet() {
|
|
29187
|
-
return (this.updated &
|
|
29187
|
+
return (this.updated & Ca) > 0;
|
|
29188
29188
|
}
|
|
29189
29189
|
/**
|
|
29190
29190
|
@internal
|
|
29191
29191
|
*/
|
|
29192
29192
|
addStep(t, n) {
|
|
29193
|
-
super.addStep(t, n), this.updated = this.updated & ~
|
|
29193
|
+
super.addStep(t, n), this.updated = this.updated & ~Ca, this.storedMarks = null;
|
|
29194
29194
|
}
|
|
29195
29195
|
/**
|
|
29196
29196
|
Update the timestamp for the transaction.
|
|
@@ -29559,7 +29559,7 @@ function Wd(e, t, n, r, l) {
|
|
|
29559
29559
|
return !0;
|
|
29560
29560
|
if (t == (l < 0 ? 0 : $t(e))) {
|
|
29561
29561
|
let i = e.parentNode;
|
|
29562
|
-
if (!i || i.nodeType != 1 ||
|
|
29562
|
+
if (!i || i.nodeType != 1 || ea(e) || YS.test(e.nodeName) || e.contentEditable == "false")
|
|
29563
29563
|
return !1;
|
|
29564
29564
|
t = lt(e) + (l < 0 ? 0 : 1), e = i;
|
|
29565
29565
|
} else if (e.nodeType == 1) {
|
|
@@ -29586,7 +29586,7 @@ function jS(e, t) {
|
|
|
29586
29586
|
if (e.contentEditable == "false")
|
|
29587
29587
|
return null;
|
|
29588
29588
|
e = e.childNodes[t - 1], t = $t(e);
|
|
29589
|
-
} else if (e.parentNode && !
|
|
29589
|
+
} else if (e.parentNode && !ea(e))
|
|
29590
29590
|
t = lt(e), e = e.parentNode;
|
|
29591
29591
|
else
|
|
29592
29592
|
return null;
|
|
@@ -29600,7 +29600,7 @@ function GS(e, t) {
|
|
|
29600
29600
|
if (e.contentEditable == "false")
|
|
29601
29601
|
return null;
|
|
29602
29602
|
e = e.childNodes[t], t = 0;
|
|
29603
|
-
} else if (e.parentNode && !
|
|
29603
|
+
} else if (e.parentNode && !ea(e))
|
|
29604
29604
|
t = lt(e) + 1, e = e.parentNode;
|
|
29605
29605
|
else
|
|
29606
29606
|
return null;
|
|
@@ -29616,7 +29616,7 @@ function KS(e, t, n) {
|
|
|
29616
29616
|
r = r && a == 0, l = l && a == $t(e);
|
|
29617
29617
|
}
|
|
29618
29618
|
}
|
|
29619
|
-
function
|
|
29619
|
+
function ea(e) {
|
|
29620
29620
|
let t;
|
|
29621
29621
|
for (let n = e; n && !(t = n.pmViewDesc); n = n.parentNode)
|
|
29622
29622
|
;
|
|
@@ -29651,7 +29651,7 @@ function XS(e, t, n) {
|
|
|
29651
29651
|
}
|
|
29652
29652
|
const rn = typeof navigator < "u" ? navigator : null, Yd = typeof document < "u" ? document : null, qn = rn && rn.userAgent || "", fo = /Edge\/(\d+)/.exec(qn), Dm = /MSIE \d/.exec(qn), ho = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qn), At = !!(Dm || ho || fo), Ln = Dm ? document.documentMode : ho ? +ho[1] : fo ? +fo[1] : 0, qt = !At && /gecko\/(\d+)/i.test(qn);
|
|
29653
29653
|
qt && +(/Firefox\/(\d+)/.exec(qn) || [0, 0])[1];
|
|
29654
|
-
const po = !At && /Chrome\/(\d+)/.exec(qn), it = !!po, Lm = po ? +po[1] : 0, ut = !At && !!rn && /Apple Computer/.test(rn.vendor), Vr = ut && (/Mobile\/\w+/.test(qn) || !!rn && rn.maxTouchPoints > 2), Ut = Vr || (rn ? /Mac/.test(rn.platform) : !1), Pm = rn ? /Win/.test(rn.platform) : !1, fn = /Android \d/.test(qn),
|
|
29654
|
+
const po = !At && /Chrome\/(\d+)/.exec(qn), it = !!po, Lm = po ? +po[1] : 0, ut = !At && !!rn && /Apple Computer/.test(rn.vendor), Vr = ut && (/Mobile\/\w+/.test(qn) || !!rn && rn.maxTouchPoints > 2), Ut = Vr || (rn ? /Mac/.test(rn.platform) : !1), Pm = rn ? /Win/.test(rn.platform) : !1, fn = /Android \d/.test(qn), ta = !!Yd && "webkitFontSmoothing" in Yd.documentElement.style, JS = ta ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29655
29655
|
function ZS(e) {
|
|
29656
29656
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29657
29657
|
return t ? {
|
|
@@ -29848,7 +29848,7 @@ function o6(e, t) {
|
|
|
29848
29848
|
c.nodeName == "IMG" && (d = c.getBoundingClientRect()).right <= t.left && d.bottom > t.top && l++;
|
|
29849
29849
|
}
|
|
29850
29850
|
let u;
|
|
29851
|
-
|
|
29851
|
+
ta && l && r.nodeType == 1 && (u = r.childNodes[l - 1]).nodeType == 1 && u.contentEditable == "false" && u.getBoundingClientRect().top >= t.top && l--, r == e.dom && l == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && t.top > r.lastChild.getBoundingClientRect().bottom ? s = e.state.doc.content.size : (l == 0 || r.nodeType != 1 || r.childNodes[l - 1].nodeName != "BR") && (s = s6(e, r, l, t));
|
|
29852
29852
|
}
|
|
29853
29853
|
s == null && (s = i6(e, i, t));
|
|
29854
29854
|
let o = e.docView.nearestDesc(i, !0);
|
|
@@ -29868,7 +29868,7 @@ function kn(e, t) {
|
|
|
29868
29868
|
}
|
|
29869
29869
|
const u6 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
29870
29870
|
function zm(e, t, n) {
|
|
29871
|
-
let { node: r, offset: l, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), i =
|
|
29871
|
+
let { node: r, offset: l, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), i = ta || qt;
|
|
29872
29872
|
if (r.nodeType == 3)
|
|
29873
29873
|
if (i && (u6.test(r.nodeValue) || (n < 0 ? !l : l == r.nodeValue.length))) {
|
|
29874
29874
|
let o = kn(un(r, l, l), n);
|
|
@@ -29988,7 +29988,7 @@ function h6(e, t, n) {
|
|
|
29988
29988
|
return Kd == t && Qd == n ? Xd : (Kd = t, Qd = n, Xd = n == "up" || n == "down" ? c6(e, t, n) : f6(e, t, n));
|
|
29989
29989
|
}
|
|
29990
29990
|
const Wt = 0, Jd = 1, er = 2, ln = 3;
|
|
29991
|
-
class
|
|
29991
|
+
class na {
|
|
29992
29992
|
constructor(t, n, r, l) {
|
|
29993
29993
|
this.parent = t, this.children = n, this.dom = r, this.contentDOM = l, this.dirty = Wt, r.pmViewDesc = this;
|
|
29994
29994
|
}
|
|
@@ -30332,7 +30332,7 @@ class ta {
|
|
|
30332
30332
|
return !1;
|
|
30333
30333
|
}
|
|
30334
30334
|
}
|
|
30335
|
-
class $m extends
|
|
30335
|
+
class $m extends na {
|
|
30336
30336
|
constructor(t, n, r, l) {
|
|
30337
30337
|
let a, i = n.type.toDOM;
|
|
30338
30338
|
if (typeof i == "function" && (i = i(r, () => {
|
|
@@ -30375,7 +30375,7 @@ class $m extends ta {
|
|
|
30375
30375
|
return this.widget.type.side;
|
|
30376
30376
|
}
|
|
30377
30377
|
}
|
|
30378
|
-
class p6 extends
|
|
30378
|
+
class p6 extends na {
|
|
30379
30379
|
constructor(t, n, r, l) {
|
|
30380
30380
|
super(t, [], n, null), this.textDOM = r, this.text = l;
|
|
30381
30381
|
}
|
|
@@ -30392,7 +30392,7 @@ class p6 extends ta {
|
|
|
30392
30392
|
return t.type === "characterData" && t.target.nodeValue == t.oldValue;
|
|
30393
30393
|
}
|
|
30394
30394
|
}
|
|
30395
|
-
class br extends
|
|
30395
|
+
class br extends na {
|
|
30396
30396
|
constructor(t, n, r, l, a) {
|
|
30397
30397
|
super(t, [], r, l), this.mark = n, this.spec = a;
|
|
30398
30398
|
}
|
|
@@ -30428,7 +30428,7 @@ class br extends ta {
|
|
|
30428
30428
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
30429
30429
|
}
|
|
30430
30430
|
}
|
|
30431
|
-
class Pn extends
|
|
30431
|
+
class Pn extends na {
|
|
30432
30432
|
constructor(t, n, r, l, a, i, s, o, u) {
|
|
30433
30433
|
super(t, [], a, i), this.node = n, this.outerDeco = r, this.innerDeco = l, this.nodeDOM = s;
|
|
30434
30434
|
}
|
|
@@ -30479,7 +30479,7 @@ class Pn extends ta {
|
|
|
30479
30479
|
return t;
|
|
30480
30480
|
}
|
|
30481
30481
|
matchesNode(t, n, r) {
|
|
30482
|
-
return this.dirty == Wt && t.eq(this.node) &&
|
|
30482
|
+
return this.dirty == Wt && t.eq(this.node) && Ja(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
30483
30483
|
}
|
|
30484
30484
|
get size() {
|
|
30485
30485
|
return this.node.nodeSize;
|
|
@@ -30537,7 +30537,7 @@ class Pn extends ta {
|
|
|
30537
30537
|
this.updateOuterDeco(n), this.node = t, this.innerDeco = r, this.contentDOM && this.updateChildren(l, this.posAtStart), this.dirty = Wt;
|
|
30538
30538
|
}
|
|
30539
30539
|
updateOuterDeco(t) {
|
|
30540
|
-
if (
|
|
30540
|
+
if (Ja(t, this.outerDeco))
|
|
30541
30541
|
return;
|
|
30542
30542
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
30543
30543
|
this.dom = Ym(this.dom, this.nodeDOM, mo(this.outerDeco, this.node, n), mo(t, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
|
|
@@ -30602,7 +30602,7 @@ class ki extends Pn {
|
|
|
30602
30602
|
return this.node.text == t;
|
|
30603
30603
|
}
|
|
30604
30604
|
}
|
|
30605
|
-
class qm extends
|
|
30605
|
+
class qm extends na {
|
|
30606
30606
|
parseRule() {
|
|
30607
30607
|
return { ignore: !0 };
|
|
30608
30608
|
}
|
|
@@ -30729,7 +30729,7 @@ function b6(e, t, n) {
|
|
|
30729
30729
|
function jm(e, t, n) {
|
|
30730
30730
|
return Ym(e, e, tr, mo(t, n, e.nodeType != 1));
|
|
30731
30731
|
}
|
|
30732
|
-
function
|
|
30732
|
+
function Ja(e, t) {
|
|
30733
30733
|
if (e.length != t.length)
|
|
30734
30734
|
return !1;
|
|
30735
30735
|
for (let n = 0; n < e.length; n++)
|
|
@@ -30832,7 +30832,7 @@ class g6 {
|
|
|
30832
30832
|
let u = this.preMatch.matched.get(o);
|
|
30833
30833
|
if (u != null && u != a)
|
|
30834
30834
|
return !1;
|
|
30835
|
-
let c = o.dom, d, f = this.isLocked(c) && !(t.isText && o.node && o.node.isText && o.nodeDOM.nodeValue == t.text && o.dirty != ln &&
|
|
30835
|
+
let c = o.dom, d, f = this.isLocked(c) && !(t.isText && o.node && o.node.isText && o.nodeDOM.nodeValue == t.text && o.dirty != ln && Ja(n, o.outerDeco));
|
|
30836
30836
|
if (!f && o.update(t, n, r, l))
|
|
30837
30837
|
return this.destroyBetween(this.index, s), o.dom != c && (this.changed = !0), this.index++, !0;
|
|
30838
30838
|
if (!f && (d = this.recreateWrapper(o, t, n, r, l, i)))
|
|
@@ -30845,7 +30845,7 @@ class g6 {
|
|
|
30845
30845
|
// When a node with content is replaced by a different node with
|
|
30846
30846
|
// identical content, move over its children.
|
|
30847
30847
|
recreateWrapper(t, n, r, l, a, i) {
|
|
30848
|
-
if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !
|
|
30848
|
+
if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !Ja(r, t.outerDeco) || !l.eq(t.innerDeco))
|
|
30849
30849
|
return null;
|
|
30850
30850
|
let s = Pn.create(this.top, n, r, l, a, i);
|
|
30851
30851
|
if (s.contentDOM) {
|
|
@@ -31158,7 +31158,7 @@ function sf(e, t, n) {
|
|
|
31158
31158
|
if (!a || a.isText)
|
|
31159
31159
|
return !1;
|
|
31160
31160
|
let s = t < 0 ? l.pos - a.nodeSize : l.pos;
|
|
31161
|
-
return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? he.isSelectable(a) ? Nn(e, new he(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) :
|
|
31161
|
+
return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? he.isSelectable(a) ? Nn(e, new he(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : ta ? Nn(e, new ye(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
|
|
31162
31162
|
}
|
|
31163
31163
|
} else return !1;
|
|
31164
31164
|
else {
|
|
@@ -31170,7 +31170,7 @@ function sf(e, t, n) {
|
|
|
31170
31170
|
}
|
|
31171
31171
|
}
|
|
31172
31172
|
}
|
|
31173
|
-
function
|
|
31173
|
+
function Za(e) {
|
|
31174
31174
|
return e.nodeType == 3 ? e.nodeValue.length : e.childNodes.length;
|
|
31175
31175
|
}
|
|
31176
31176
|
function Al(e, t) {
|
|
@@ -31185,7 +31185,7 @@ function A6(e) {
|
|
|
31185
31185
|
if (!n)
|
|
31186
31186
|
return;
|
|
31187
31187
|
let l, a, i = !1;
|
|
31188
|
-
for (qt && n.nodeType == 1 && r <
|
|
31188
|
+
for (qt && n.nodeType == 1 && r < Za(n) && Al(n.childNodes[r], -1) && (i = !0); ; )
|
|
31189
31189
|
if (r > 0) {
|
|
31190
31190
|
if (n.nodeType != 1)
|
|
31191
31191
|
break;
|
|
@@ -31206,7 +31206,7 @@ function A6(e) {
|
|
|
31206
31206
|
for (; s && Al(s, -1); )
|
|
31207
31207
|
l = n.parentNode, a = lt(s), s = s.previousSibling;
|
|
31208
31208
|
if (s)
|
|
31209
|
-
n = s, r =
|
|
31209
|
+
n = s, r = Za(n);
|
|
31210
31210
|
else {
|
|
31211
31211
|
if (n = n.parentNode, n == e.dom)
|
|
31212
31212
|
break;
|
|
@@ -31220,7 +31220,7 @@ function N6(e) {
|
|
|
31220
31220
|
let t = e.domSelectionRange(), n = t.focusNode, r = t.focusOffset;
|
|
31221
31221
|
if (!n)
|
|
31222
31222
|
return;
|
|
31223
|
-
let l =
|
|
31223
|
+
let l = Za(n), a, i;
|
|
31224
31224
|
for (; ; )
|
|
31225
31225
|
if (r < l) {
|
|
31226
31226
|
if (n.nodeType != 1)
|
|
@@ -31238,7 +31238,7 @@ function N6(e) {
|
|
|
31238
31238
|
for (; s && Al(s, 1); )
|
|
31239
31239
|
a = s.parentNode, i = lt(s) + 1, s = s.nextSibling;
|
|
31240
31240
|
if (s)
|
|
31241
|
-
n = s, r = 0, l =
|
|
31241
|
+
n = s, r = 0, l = Za(n);
|
|
31242
31242
|
else {
|
|
31243
31243
|
if (n = n.parentNode, n == e.dom)
|
|
31244
31244
|
break;
|
|
@@ -31253,7 +31253,7 @@ function Xm(e) {
|
|
|
31253
31253
|
return t && t.node && t.node.isBlock;
|
|
31254
31254
|
}
|
|
31255
31255
|
function w6(e, t) {
|
|
31256
|
-
for (; e && t == e.childNodes.length && !
|
|
31256
|
+
for (; e && t == e.childNodes.length && !ea(e); )
|
|
31257
31257
|
t = lt(e) + 1, e = e.parentNode;
|
|
31258
31258
|
for (; e && t < e.childNodes.length; ) {
|
|
31259
31259
|
let n = e.childNodes[t];
|
|
@@ -31265,7 +31265,7 @@ function w6(e, t) {
|
|
|
31265
31265
|
}
|
|
31266
31266
|
}
|
|
31267
31267
|
function _6(e, t) {
|
|
31268
|
-
for (; e && !t && !
|
|
31268
|
+
for (; e && !t && !ea(e); )
|
|
31269
31269
|
t = lt(e), e = e.parentNode;
|
|
31270
31270
|
for (; e && t; ) {
|
|
31271
31271
|
let n = e.childNodes[t - 1];
|
|
@@ -31439,7 +31439,7 @@ function Jm(e, t, n, r, l) {
|
|
|
31439
31439
|
} else
|
|
31440
31440
|
e.someProp("transformPastedHTML", (d) => {
|
|
31441
31441
|
n = d(n, e);
|
|
31442
|
-
}), i = P6(n),
|
|
31442
|
+
}), i = P6(n), ta && B6(i);
|
|
31443
31443
|
let u = i && i.querySelector("[data-pm-slice]"), c = u && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice") || "");
|
|
31444
31444
|
if (c && c[3])
|
|
31445
31445
|
for (let d = +c[3]; d > 0; d--) {
|
|
@@ -31722,7 +31722,7 @@ function X6(e, t, n) {
|
|
|
31722
31722
|
}
|
|
31723
31723
|
}
|
|
31724
31724
|
function mu(e) {
|
|
31725
|
-
return
|
|
31725
|
+
return ei(e);
|
|
31726
31726
|
}
|
|
31727
31727
|
const l0 = Ut ? "metaKey" : "ctrlKey";
|
|
31728
31728
|
gt.mousedown = (e, t) => {
|
|
@@ -31795,8 +31795,8 @@ vt.compositionstart = vt.compositionupdate = (e) => {
|
|
|
31795
31795
|
e.domObserver.flush();
|
|
31796
31796
|
let { state: t } = e, n = t.selection.$to;
|
|
31797
31797
|
if (t.selection instanceof ye && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || it && Pm && ek(e)))
|
|
31798
|
-
e.markCursor = e.state.storedMarks || n.marks(),
|
|
31799
|
-
else if (
|
|
31798
|
+
e.markCursor = e.state.storedMarks || n.marks(), ei(e, !0), e.markCursor = null;
|
|
31799
|
+
else if (ei(e, !t.selection.empty), qt && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
31800
31800
|
let r = e.domSelectionRange();
|
|
31801
31801
|
for (let l = r.focusNode, a = r.focusOffset; l && l.nodeType == 1 && a != 0; ) {
|
|
31802
31802
|
let i = a < 0 ? l.lastChild : l.childNodes[a - 1];
|
|
@@ -31825,7 +31825,7 @@ vt.compositionend = (e, t) => {
|
|
|
31825
31825
|
e.composing && (e.input.composing = !1, e.input.compositionEndedAt = t.timeStamp, e.input.compositionPendingChanges = e.domObserver.pendingRecords().length ? e.input.compositionID : 0, e.input.compositionNode = null, e.input.badSafariComposition ? e.domObserver.forceFlush() : e.input.compositionPendingChanges && Promise.resolve().then(() => e.domObserver.flush()), e.input.compositionID++, i0(e, 20));
|
|
31826
31826
|
};
|
|
31827
31827
|
function i0(e, t) {
|
|
31828
|
-
clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() =>
|
|
31828
|
+
clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() => ei(e), t));
|
|
31829
31829
|
}
|
|
31830
31830
|
function s0(e) {
|
|
31831
31831
|
for (e.composing && (e.input.composing = !1, e.input.compositionEndedAt = nk()); e.input.compositionNodes.length > 0; )
|
|
@@ -31854,7 +31854,7 @@ function nk() {
|
|
|
31854
31854
|
let e = document.createEvent("Event");
|
|
31855
31855
|
return e.initEvent("event", !0, !0), e.timeStamp;
|
|
31856
31856
|
}
|
|
31857
|
-
function
|
|
31857
|
+
function ei(e, t = !1) {
|
|
31858
31858
|
if (!(fn && e.domObserver.flushingSoon >= 0)) {
|
|
31859
31859
|
if (e.domObserver.forceFlush(), s0(e), t || e.docView && e.docView.dirty) {
|
|
31860
31860
|
let n = cu(e), r = e.state.selection;
|
|
@@ -32030,7 +32030,7 @@ function zl(e, t) {
|
|
|
32030
32030
|
return !1;
|
|
32031
32031
|
return !0;
|
|
32032
32032
|
}
|
|
32033
|
-
class
|
|
32033
|
+
class ti {
|
|
32034
32034
|
constructor(t, n) {
|
|
32035
32035
|
this.toDOM = t, this.spec = n || or, this.side = this.spec.side || 0;
|
|
32036
32036
|
}
|
|
@@ -32042,7 +32042,7 @@ class ei {
|
|
|
32042
32042
|
return !0;
|
|
32043
32043
|
}
|
|
32044
32044
|
eq(t) {
|
|
32045
|
-
return this == t || t instanceof
|
|
32045
|
+
return this == t || t instanceof ti && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && zl(this.spec, t.spec));
|
|
32046
32046
|
}
|
|
32047
32047
|
destroy(t) {
|
|
32048
32048
|
this.spec.destroy && this.spec.destroy(t);
|
|
@@ -32123,7 +32123,7 @@ class Pt {
|
|
|
32123
32123
|
widget's current document position.
|
|
32124
32124
|
*/
|
|
32125
32125
|
static widget(t, n, r) {
|
|
32126
|
-
return new Pt(t, t, new
|
|
32126
|
+
return new Pt(t, t, new ti(n, r));
|
|
32127
32127
|
}
|
|
32128
32128
|
/**
|
|
32129
32129
|
Creates an inline decoration, which adds the given attributes to
|
|
@@ -32157,7 +32157,7 @@ class Pt {
|
|
|
32157
32157
|
@internal
|
|
32158
32158
|
*/
|
|
32159
32159
|
get widget() {
|
|
32160
|
-
return this.type instanceof
|
|
32160
|
+
return this.type instanceof ti;
|
|
32161
32161
|
}
|
|
32162
32162
|
}
|
|
32163
32163
|
const Ir = [], or = {};
|
|
@@ -32174,7 +32174,7 @@ class Ke {
|
|
|
32174
32174
|
you must make a copy if you want need to preserve that.
|
|
32175
32175
|
*/
|
|
32176
32176
|
static create(t, n) {
|
|
32177
|
-
return n.length ?
|
|
32177
|
+
return n.length ? ni(n, t, 0, or) : ot;
|
|
32178
32178
|
}
|
|
32179
32179
|
/**
|
|
32180
32180
|
Find all decorations in this set which touch the given range
|
|
@@ -32233,7 +32233,7 @@ class Ke {
|
|
|
32233
32233
|
if (c = f0(n, s, u)) {
|
|
32234
32234
|
for (l || (l = this.children.slice()); a < l.length && l[a] < o; )
|
|
32235
32235
|
a += 3;
|
|
32236
|
-
l[a] == o ? l[a + 2] = l[a + 2].addInner(s, c, u + 1) : l.splice(a, 0, o, o + s.nodeSize,
|
|
32236
|
+
l[a] == o ? l[a + 2] = l[a + 2].addInner(s, c, u + 1) : l.splice(a, 0, o, o + s.nodeSize, ni(c, s, u + 1, or)), a += 3;
|
|
32237
32237
|
}
|
|
32238
32238
|
});
|
|
32239
32239
|
let i = d0(a ? h0(n) : n, -r);
|
|
@@ -32429,7 +32429,7 @@ function ok(e, t, n, r, l, a, i) {
|
|
|
32429
32429
|
o = !0;
|
|
32430
32430
|
}
|
|
32431
32431
|
if (o) {
|
|
32432
|
-
let u = uk(s, e, t, n, l, a, i), c =
|
|
32432
|
+
let u = uk(s, e, t, n, l, a, i), c = ni(u, r, 0, i);
|
|
32433
32433
|
t = c.local;
|
|
32434
32434
|
for (let d = 0; d < s.length; d += 3)
|
|
32435
32435
|
s[d + 1] < 0 && (s.splice(d, 3), d -= 3);
|
|
@@ -32479,13 +32479,13 @@ function h0(e) {
|
|
|
32479
32479
|
e[n] != null && t.push(e[n]);
|
|
32480
32480
|
return t;
|
|
32481
32481
|
}
|
|
32482
|
-
function
|
|
32482
|
+
function ni(e, t, n, r) {
|
|
32483
32483
|
let l = [], a = !1;
|
|
32484
32484
|
t.forEach((s, o) => {
|
|
32485
32485
|
let u = f0(e, s, o + n);
|
|
32486
32486
|
if (u) {
|
|
32487
32487
|
a = !0;
|
|
32488
|
-
let c =
|
|
32488
|
+
let c = ni(u, s, n + o + 1, r);
|
|
32489
32489
|
c != ot && l.push(o, o + s.nodeSize, c);
|
|
32490
32490
|
}
|
|
32491
32491
|
});
|
|
@@ -33383,7 +33383,7 @@ var Fn = {
|
|
|
33383
33383
|
220: "\\",
|
|
33384
33384
|
221: "]",
|
|
33385
33385
|
222: "'"
|
|
33386
|
-
},
|
|
33386
|
+
}, ri = {
|
|
33387
33387
|
48: ")",
|
|
33388
33388
|
49: "!",
|
|
33389
33389
|
50: "@",
|
|
@@ -33412,10 +33412,10 @@ var Fn = {
|
|
|
33412
33412
|
for (var at = 0; at < 10; at++) Fn[48 + at] = Fn[96 + at] = String(at);
|
|
33413
33413
|
for (var at = 1; at <= 24; at++) Fn[at + 111] = "F" + at;
|
|
33414
33414
|
for (var at = 65; at <= 90; at++)
|
|
33415
|
-
Fn[at] = String.fromCharCode(at + 32),
|
|
33416
|
-
for (var Os in Fn)
|
|
33415
|
+
Fn[at] = String.fromCharCode(at + 32), ri[at] = String.fromCharCode(at);
|
|
33416
|
+
for (var Os in Fn) ri.hasOwnProperty(Os) || (ri[Os] = Fn[Os]);
|
|
33417
33417
|
function _k(e) {
|
|
33418
|
-
var t = Nk && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || wk && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ?
|
|
33418
|
+
var t = Nk && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || wk && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? ri : Fn)[e.keyCode] || e.key || "Unidentified";
|
|
33419
33419
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
33420
33420
|
}
|
|
33421
33421
|
const Ik = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Ok = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -33850,7 +33850,7 @@ function Kk(e, t, n, r = null) {
|
|
|
33850
33850
|
if (t.$from.index(t.depth - 1) == 0)
|
|
33851
33851
|
return !1;
|
|
33852
33852
|
let o = i.resolve(t.start - 2);
|
|
33853
|
-
a = new
|
|
33853
|
+
a = new Qa(o, o, t.depth), t.endIndex < t.parent.childCount && (t = new Qa(t.$from, i.resolve(t.$to.end(t.depth)), t.depth)), l = !0;
|
|
33854
33854
|
}
|
|
33855
33855
|
let s = su(a, n, r, t);
|
|
33856
33856
|
return s ? (e && Qk(e, t, s, l, n), !0) : !1;
|
|
@@ -33876,7 +33876,7 @@ function Xk(e) {
|
|
|
33876
33876
|
}
|
|
33877
33877
|
function Jk(e, t, n, r) {
|
|
33878
33878
|
let l = e.tr, a = r.end, i = r.$to.end(r.depth);
|
|
33879
|
-
a < i && (l.step(new Ze(a - 1, i, a, i, new se(X.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new
|
|
33879
|
+
a < i && (l.step(new Ze(a - 1, i, a, i, new se(X.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Qa(l.doc.resolve(r.$from.pos), l.doc.resolve(i), r.depth));
|
|
33880
33880
|
const s = Zr(r);
|
|
33881
33881
|
if (s == null)
|
|
33882
33882
|
return !1;
|
|
@@ -34286,7 +34286,7 @@ const iA = (e, t) => {
|
|
|
34286
34286
|
const r = [n.text];
|
|
34287
34287
|
return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(n.replaceWith)), r;
|
|
34288
34288
|
};
|
|
34289
|
-
function
|
|
34289
|
+
function xa(e) {
|
|
34290
34290
|
var t;
|
|
34291
34291
|
const { editor: n, from: r, to: l, text: a, rules: i, plugin: s } = e, { view: o } = n;
|
|
34292
34292
|
if (o.composing)
|
|
@@ -34345,7 +34345,7 @@ function sA(e) {
|
|
|
34345
34345
|
let { text: c } = o;
|
|
34346
34346
|
typeof c == "string" ? c = c : c = xu(X.from(c), i.schema);
|
|
34347
34347
|
const { from: d } = o, f = d + c.length;
|
|
34348
|
-
|
|
34348
|
+
xa({
|
|
34349
34349
|
editor: t,
|
|
34350
34350
|
from: d,
|
|
34351
34351
|
to: f,
|
|
@@ -34358,7 +34358,7 @@ function sA(e) {
|
|
|
34358
34358
|
},
|
|
34359
34359
|
props: {
|
|
34360
34360
|
handleTextInput(l, a, i, s) {
|
|
34361
|
-
return
|
|
34361
|
+
return xa({
|
|
34362
34362
|
editor: t,
|
|
34363
34363
|
from: a,
|
|
34364
34364
|
to: i,
|
|
@@ -34370,7 +34370,7 @@ function sA(e) {
|
|
|
34370
34370
|
handleDOMEvents: {
|
|
34371
34371
|
compositionend: (l) => (setTimeout(() => {
|
|
34372
34372
|
const { $cursor: a } = l.state.selection;
|
|
34373
|
-
a &&
|
|
34373
|
+
a && xa({
|
|
34374
34374
|
editor: t,
|
|
34375
34375
|
from: a.pos,
|
|
34376
34376
|
to: a.pos,
|
|
@@ -34386,7 +34386,7 @@ function sA(e) {
|
|
|
34386
34386
|
if (a.key !== "Enter")
|
|
34387
34387
|
return !1;
|
|
34388
34388
|
const { $cursor: i } = l.state.selection;
|
|
34389
|
-
return i ?
|
|
34389
|
+
return i ? xa({
|
|
34390
34390
|
editor: t,
|
|
34391
34391
|
from: i.pos,
|
|
34392
34392
|
to: i.pos,
|
|
@@ -34405,13 +34405,13 @@ function sA(e) {
|
|
|
34405
34405
|
function oA(e) {
|
|
34406
34406
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
34407
34407
|
}
|
|
34408
|
-
function
|
|
34408
|
+
function Sa(e) {
|
|
34409
34409
|
return oA(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
34410
34410
|
}
|
|
34411
34411
|
function Oi(e, t) {
|
|
34412
34412
|
const n = { ...e };
|
|
34413
|
-
return
|
|
34414
|
-
|
|
34413
|
+
return Sa(e) && Sa(t) && Object.keys(t).forEach((r) => {
|
|
34414
|
+
Sa(t[r]) && Sa(e[r]) ? n[r] = Oi(e[r], t[r]) : n[r] = t[r];
|
|
34415
34415
|
}), n;
|
|
34416
34416
|
}
|
|
34417
34417
|
class Hn {
|
|
@@ -34506,7 +34506,7 @@ function fA(e) {
|
|
|
34506
34506
|
});
|
|
34507
34507
|
}), d.every((h) => h !== null);
|
|
34508
34508
|
}
|
|
34509
|
-
let
|
|
34509
|
+
let ka = null;
|
|
34510
34510
|
const hA = (e) => {
|
|
34511
34511
|
var t;
|
|
34512
34512
|
const n = new ClipboardEvent("paste", {
|
|
@@ -34549,9 +34549,9 @@ function pA(e) {
|
|
|
34549
34549
|
view(d) {
|
|
34550
34550
|
const f = (m) => {
|
|
34551
34551
|
var g;
|
|
34552
|
-
r = !((g = d.dom.parentElement) === null || g === void 0) && g.contains(m.target) ? d.dom.parentElement : null, r && (
|
|
34552
|
+
r = !((g = d.dom.parentElement) === null || g === void 0) && g.contains(m.target) ? d.dom.parentElement : null, r && (ka = t);
|
|
34553
34553
|
}, h = () => {
|
|
34554
|
-
|
|
34554
|
+
ka && (ka = null);
|
|
34555
34555
|
};
|
|
34556
34556
|
return window.addEventListener("dragstart", f), window.addEventListener("dragend", h), {
|
|
34557
34557
|
destroy() {
|
|
@@ -34563,7 +34563,7 @@ function pA(e) {
|
|
|
34563
34563
|
handleDOMEvents: {
|
|
34564
34564
|
drop: (d, f) => {
|
|
34565
34565
|
if (a = r === d.dom.parentElement, s = f, !a) {
|
|
34566
|
-
const h =
|
|
34566
|
+
const h = ka;
|
|
34567
34567
|
h?.isEditable && setTimeout(() => {
|
|
34568
34568
|
const m = h.state.selection;
|
|
34569
34569
|
m && h.commands.deleteRange({ from: m.from, to: m.to });
|
|
@@ -34909,12 +34909,12 @@ const bA = ct.create({
|
|
|
34909
34909
|
const { from: r, to: l } = e;
|
|
34910
34910
|
return n && t.delete(r, l), !0;
|
|
34911
34911
|
}, AA = () => ({ state: e, dispatch: t }) => vu(e, t), NA = () => ({ commands: e }) => e.keyboardShortcut("Enter"), wA = () => ({ state: e, dispatch: t }) => Uk(e, t);
|
|
34912
|
-
function
|
|
34912
|
+
function li(e, t, n = { strict: !0 }) {
|
|
34913
34913
|
const r = Object.keys(t);
|
|
34914
34914
|
return r.length ? r.every((l) => n.strict ? t[l] === e[l] : Su(t[l]) ? t[l].test(e[l]) : t[l] === e[l]) : !0;
|
|
34915
34915
|
}
|
|
34916
34916
|
function M0(e, t, n = {}) {
|
|
34917
|
-
return e.find((r) => r.type === t &&
|
|
34917
|
+
return e.find((r) => r.type === t && li(
|
|
34918
34918
|
// Only check equality for the attributes that are provided
|
|
34919
34919
|
Object.fromEntries(Object.keys(n).map((l) => [l, r.attrs[l]])),
|
|
34920
34920
|
n
|
|
@@ -34985,7 +34985,7 @@ function D0(e, t = null) {
|
|
|
34985
34985
|
function If() {
|
|
34986
34986
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
34987
34987
|
}
|
|
34988
|
-
function
|
|
34988
|
+
function ai() {
|
|
34989
34989
|
return [
|
|
34990
34990
|
"iPad Simulator",
|
|
34991
34991
|
"iPhone Simulator",
|
|
@@ -35004,8 +35004,8 @@ const MA = (e = null, t = {}) => ({ editor: n, view: r, tr: l, dispatch: a }) =>
|
|
|
35004
35004
|
...t
|
|
35005
35005
|
};
|
|
35006
35006
|
const i = () => {
|
|
35007
|
-
(
|
|
35008
|
-
n.isDestroyed || (r.focus(), OA() && !
|
|
35007
|
+
(ai() || If()) && r.dom.focus(), requestAnimationFrame(() => {
|
|
35008
|
+
n.isDestroyed || (r.focus(), OA() && !ai() && !If() && r.dom.focus({ preventScroll: !0 }));
|
|
35009
35009
|
});
|
|
35010
35010
|
};
|
|
35011
35011
|
if (r.hasFocus() && e === null || e === !1)
|
|
@@ -35022,7 +35022,7 @@ const MA = (e = null, t = {}) => ({ editor: n, view: r, tr: l, dispatch: a }) =>
|
|
|
35022
35022
|
}
|
|
35023
35023
|
return e;
|
|
35024
35024
|
};
|
|
35025
|
-
function
|
|
35025
|
+
function Aa(e) {
|
|
35026
35026
|
const t = `<body>${e}</body>`, n = new window.DOMParser().parseFromString(t, "text/html").body;
|
|
35027
35027
|
return L0(n);
|
|
35028
35028
|
}
|
|
@@ -35067,11 +35067,11 @@ function Vl(e, t, n) {
|
|
|
35067
35067
|
}
|
|
35068
35068
|
})
|
|
35069
35069
|
});
|
|
35070
|
-
if (n.slice ? xl.fromSchema(o).parseSlice(
|
|
35070
|
+
if (n.slice ? xl.fromSchema(o).parseSlice(Aa(e), n.parseOptions) : xl.fromSchema(o).parse(Aa(e), n.parseOptions), n.errorOnInvalidContent && i)
|
|
35071
35071
|
throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${s}`) });
|
|
35072
35072
|
}
|
|
35073
35073
|
const a = xl.fromSchema(t);
|
|
35074
|
-
return n.slice ? a.parseSlice(
|
|
35074
|
+
return n.slice ? a.parseSlice(Aa(e), n.parseOptions).content : a.parse(Aa(e), n.parseOptions);
|
|
35075
35075
|
}
|
|
35076
35076
|
return Vl("", t, n);
|
|
35077
35077
|
}
|
|
@@ -35185,7 +35185,7 @@ function YA(e) {
|
|
|
35185
35185
|
else if (/^s(hift)?$/i.test(o))
|
|
35186
35186
|
a = !0;
|
|
35187
35187
|
else if (/^mod$/i.test(o))
|
|
35188
|
-
|
|
35188
|
+
ai() || P0() ? i = !0 : l = !0;
|
|
35189
35189
|
else
|
|
35190
35190
|
throw new Error(`Unrecognized modifier name: ${o}`);
|
|
35191
35191
|
}
|
|
@@ -35220,7 +35220,7 @@ function $l(e, t, n = {}) {
|
|
|
35220
35220
|
to: m
|
|
35221
35221
|
});
|
|
35222
35222
|
});
|
|
35223
|
-
const o = l - r, u = s.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) =>
|
|
35223
|
+
const o = l - r, u = s.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) => li(d.node.attrs, n, { strict: !1 }));
|
|
35224
35224
|
return a ? !!u.length : u.reduce((d, f) => d + f.to - f.from, 0) >= o;
|
|
35225
35225
|
}
|
|
35226
35226
|
const GA = (e, t = {}) => ({ state: n, dispatch: r }) => {
|
|
@@ -35341,7 +35341,7 @@ function F0(e, t, n) {
|
|
|
35341
35341
|
})));
|
|
35342
35342
|
}), r;
|
|
35343
35343
|
}
|
|
35344
|
-
function
|
|
35344
|
+
function Ha(e, t, n) {
|
|
35345
35345
|
return Object.fromEntries(Object.entries(n).filter(([r]) => {
|
|
35346
35346
|
const l = e.find((a) => a.type === t && a.name === r);
|
|
35347
35347
|
return l ? l.attribute.keepOnSplit : !1;
|
|
@@ -35350,7 +35350,7 @@ function Fa(e, t, n) {
|
|
|
35350
35350
|
function xo(e, t, n = {}) {
|
|
35351
35351
|
const { empty: r, ranges: l } = e.selection, a = t ? Wn(t, e.schema) : null;
|
|
35352
35352
|
if (r)
|
|
35353
|
-
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => a ? a.name === d.type.name : !0).find((d) =>
|
|
35353
|
+
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => a ? a.name === d.type.name : !0).find((d) => li(d.attrs, n, { strict: !1 }));
|
|
35354
35354
|
let i = 0;
|
|
35355
35355
|
const s = [];
|
|
35356
35356
|
if (l.forEach(({ $from: d, $to: f }) => {
|
|
@@ -35367,7 +35367,7 @@ function xo(e, t, n = {}) {
|
|
|
35367
35367
|
});
|
|
35368
35368
|
}), i === 0)
|
|
35369
35369
|
return !1;
|
|
35370
|
-
const o = s.filter((d) => a ? a.name === d.mark.type.name : !0).filter((d) =>
|
|
35370
|
+
const o = s.filter((d) => a ? a.name === d.mark.type.name : !0).filter((d) => li(d.mark.attrs, n, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), u = s.filter((d) => a ? d.mark.type !== a && d.mark.type.excludes(a) : !0).reduce((d, f) => d + f.to - f.from, 0);
|
|
35371
35371
|
return (o > 0 ? o + u : o) >= i;
|
|
35372
35372
|
}
|
|
35373
35373
|
function fN(e, t, n = {}) {
|
|
@@ -35485,7 +35485,7 @@ function Rf(e, t) {
|
|
|
35485
35485
|
}
|
|
35486
35486
|
}
|
|
35487
35487
|
const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: l }) => {
|
|
35488
|
-
const { selection: a, doc: i } = t, { $from: s, $to: o } = a, u = l.extensionManager.attributes, c =
|
|
35488
|
+
const { selection: a, doc: i } = t, { $from: s, $to: o } = a, u = l.extensionManager.attributes, c = Ha(u, s.node().type.name, s.node().attrs);
|
|
35489
35489
|
if (a instanceof he && a.node.isBlock)
|
|
35490
35490
|
return !s.parentOffset || !hn(i, s.pos) ? !1 : (r && (e && Rf(n, l.extensionManager.splittableMarks), t.split(s.pos).scrollIntoView()), !0);
|
|
35491
35491
|
if (!s.parent.isBlock)
|
|
@@ -35528,7 +35528,7 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35528
35528
|
for (let _ = o.depth - A; _ >= o.depth - 3; _ -= 1)
|
|
35529
35529
|
E = X.from(o.node(_).copy(E));
|
|
35530
35530
|
const S = o.indexAfter(-1) < o.node(-2).childCount ? 1 : o.indexAfter(-2) < o.node(-3).childCount ? 2 : 3, O = {
|
|
35531
|
-
...
|
|
35531
|
+
...Ha(f, o.node().type.name, o.node().attrs),
|
|
35532
35532
|
...t
|
|
35533
35533
|
}, I = ((i = s.contentMatch.defaultType) === null || i === void 0 ? void 0 : i.createAndFill(O)) || void 0;
|
|
35534
35534
|
E = E.append(X.from(s.createAndFill(null, I) || void 0));
|
|
@@ -35544,10 +35544,10 @@ const TN = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35544
35544
|
return !0;
|
|
35545
35545
|
}
|
|
35546
35546
|
const h = u.pos === o.end() ? d.contentMatchAt(0).defaultType : null, m = {
|
|
35547
|
-
...
|
|
35547
|
+
...Ha(f, d.type.name, d.attrs),
|
|
35548
35548
|
...t
|
|
35549
35549
|
}, g = {
|
|
35550
|
-
...
|
|
35550
|
+
...Ha(f, o.node().type.name, o.node().attrs),
|
|
35551
35551
|
...t
|
|
35552
35552
|
};
|
|
35553
35553
|
n.delete(o.pos, u.pos);
|
|
@@ -35853,7 +35853,7 @@ const DN = ct.create({
|
|
|
35853
35853
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
35854
35854
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
35855
35855
|
};
|
|
35856
|
-
return
|
|
35856
|
+
return ai() || P0() ? a : l;
|
|
35857
35857
|
},
|
|
35858
35858
|
addProseMirrorPlugins() {
|
|
35859
35859
|
return [
|
|
@@ -37785,12 +37785,12 @@ function P4() {
|
|
|
37785
37785
|
});
|
|
37786
37786
|
}
|
|
37787
37787
|
const B4 = m0({
|
|
37788
|
-
ArrowLeft:
|
|
37789
|
-
ArrowRight:
|
|
37790
|
-
ArrowUp:
|
|
37791
|
-
ArrowDown:
|
|
37788
|
+
ArrowLeft: Na("horiz", -1),
|
|
37789
|
+
ArrowRight: Na("horiz", 1),
|
|
37790
|
+
ArrowUp: Na("vert", -1),
|
|
37791
|
+
ArrowDown: Na("vert", 1)
|
|
37792
37792
|
});
|
|
37793
|
-
function
|
|
37793
|
+
function Na(e, t) {
|
|
37794
37794
|
const n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
|
|
37795
37795
|
return function(r, l, a) {
|
|
37796
37796
|
let i = r.selection, s = t > 0 ? i.$to : i.$from, o = i.empty;
|
|
@@ -37948,10 +37948,10 @@ const z4 = ct.create({
|
|
|
37948
37948
|
}));
|
|
37949
37949
|
}
|
|
37950
37950
|
});
|
|
37951
|
-
var
|
|
37951
|
+
var ii = 200, et = function() {
|
|
37952
37952
|
};
|
|
37953
37953
|
et.prototype.append = function(t) {
|
|
37954
|
-
return t.length ? (t = et.from(t), !this.length && t || t.length <
|
|
37954
|
+
return t.length ? (t = et.from(t), !this.length && t || t.length < ii && this.leafAppend(t) || this.length < ii && t.leafPrepend(this) || this.appendInner(t)) : this;
|
|
37955
37955
|
};
|
|
37956
37956
|
et.prototype.prepend = function(t) {
|
|
37957
37957
|
return t.length ? et.from(t).append(this) : this;
|
|
@@ -38000,10 +38000,10 @@ var U0 = /* @__PURE__ */ function(e) {
|
|
|
38000
38000
|
if (l(this.values[o], s + o) === !1)
|
|
38001
38001
|
return !1;
|
|
38002
38002
|
}, t.prototype.leafAppend = function(l) {
|
|
38003
|
-
if (this.length + l.length <=
|
|
38003
|
+
if (this.length + l.length <= ii)
|
|
38004
38004
|
return new t(this.values.concat(l.flatten()));
|
|
38005
38005
|
}, t.prototype.leafPrepend = function(l) {
|
|
38006
|
-
if (this.length + l.length <=
|
|
38006
|
+
if (this.length + l.length <= ii)
|
|
38007
38007
|
return new t(l.flatten().concat(this.values));
|
|
38008
38008
|
}, n.length.get = function() {
|
|
38009
38009
|
return this.values.length;
|
|
@@ -38193,10 +38193,10 @@ function G4(e, t, n, r) {
|
|
|
38193
38193
|
if (n.steps.length == 0)
|
|
38194
38194
|
return e;
|
|
38195
38195
|
if (i && i.getMeta(cr))
|
|
38196
|
-
return i.getMeta(cr).redo ? new wn(e.done.addTransform(n, void 0, r,
|
|
38196
|
+
return i.getMeta(cr).redo ? new wn(e.done.addTransform(n, void 0, r, Ua(t)), e.undone, zf(n.mapping.maps), e.prevTime, e.prevComposition) : new wn(e.done, e.undone.addTransform(n, void 0, r, Ua(t)), null, e.prevTime, e.prevComposition);
|
|
38197
38197
|
if (n.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
|
|
38198
38198
|
let s = n.getMeta("composition"), o = e.prevTime == 0 || !i && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !K4(n, e.prevRanges)), u = i ? Us(e.prevRanges, n.mapping) : zf(n.mapping.maps);
|
|
38199
|
-
return new wn(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r,
|
|
38199
|
+
return new wn(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r, Ua(t)), jt.empty, u, n.time, s ?? e.prevComposition);
|
|
38200
38200
|
} else return (a = n.getMeta("rebased")) ? new wn(e.done.rebased(n, a), e.undone.rebased(n, a), Us(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new wn(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Us(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
38201
38201
|
}
|
|
38202
38202
|
function K4(e, t) {
|
|
@@ -38227,14 +38227,14 @@ function Us(e, t) {
|
|
|
38227
38227
|
return n;
|
|
38228
38228
|
}
|
|
38229
38229
|
function Q4(e, t, n) {
|
|
38230
|
-
let r =
|
|
38230
|
+
let r = Ua(t), l = cr.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
|
|
38231
38231
|
if (!a)
|
|
38232
38232
|
return null;
|
|
38233
38233
|
let i = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), l, r), o = new wn(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
|
|
38234
38234
|
return a.transform.setSelection(i).setMeta(cr, { redo: n, historyState: o });
|
|
38235
38235
|
}
|
|
38236
38236
|
let zs = !1, Vf = null;
|
|
38237
|
-
function
|
|
38237
|
+
function Ua(e) {
|
|
38238
38238
|
let t = e.plugins;
|
|
38239
38239
|
if (Vf != t) {
|
|
38240
38240
|
zs = !1, Vf = t;
|
|
@@ -39078,14 +39078,14 @@ function Tw(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
|
39078
39078
|
o.push(i), a.set(s, o);
|
|
39079
39079
|
continue;
|
|
39080
39080
|
}
|
|
39081
|
-
|
|
39081
|
+
si(i, t, n) || (l[Gf(i)] = jf(i));
|
|
39082
39082
|
}
|
|
39083
39083
|
for (const [, i] of a)
|
|
39084
|
-
if (!i.some((s) =>
|
|
39084
|
+
if (!i.some((s) => si(s, t, n)))
|
|
39085
39085
|
for (const s of i) l[Gf(s)] = jf(s);
|
|
39086
39086
|
return l;
|
|
39087
39087
|
}
|
|
39088
|
-
function
|
|
39088
|
+
function si(e, t, n) {
|
|
39089
39089
|
if (!e.key) return !0;
|
|
39090
39090
|
if (Y0.has(e.type)) {
|
|
39091
39091
|
if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
|
|
@@ -39114,9 +39114,9 @@ function Cw(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
|
39114
39114
|
i.push(s);
|
|
39115
39115
|
}
|
|
39116
39116
|
for (const s of i)
|
|
39117
|
-
if (!
|
|
39117
|
+
if (!si(s, t, n)) return !1;
|
|
39118
39118
|
for (const [, s] of a)
|
|
39119
|
-
if (!s.some((o) =>
|
|
39119
|
+
if (!s.some((o) => si(o, t, n))) return !1;
|
|
39120
39120
|
return !0;
|
|
39121
39121
|
}
|
|
39122
39122
|
function xw(e) {
|
|
@@ -39248,15 +39248,15 @@ function Nw(e) {
|
|
|
39248
39248
|
);
|
|
39249
39249
|
return { analyzeReport: r, analyzeMarkdown: l, analyzeMarkdownName: a, resolveReportName: i };
|
|
39250
39250
|
}
|
|
39251
|
-
const j0 = //g,
|
|
39251
|
+
const j0 = //g, oi = (e) => String(e ?? "").replace(j0, "").trim(), ww = (e) => !e || !/<[a-z][\s\S]*>/i.test(e) ? e : (new DOMParser().parseFromString(e, "text/html").body.textContent || "").replace(j0, "").trim(), _w = (e) => e === "multi-variable" || e === "multi-variable-select", wa = (e, t) => {
|
|
39252
39252
|
if (!t) return "";
|
|
39253
39253
|
const n = e[t];
|
|
39254
|
-
return Array.isArray(n) ?
|
|
39254
|
+
return Array.isArray(n) ? oi(n[0]) : oi(n);
|
|
39255
39255
|
}, Iw = (e, t) => {
|
|
39256
39256
|
if (!t) return [];
|
|
39257
39257
|
const n = e[t];
|
|
39258
|
-
if (Array.isArray(n)) return n.map(
|
|
39259
|
-
const r =
|
|
39258
|
+
if (Array.isArray(n)) return n.map(oi).filter(Boolean);
|
|
39259
|
+
const r = oi(n);
|
|
39260
39260
|
return r ? [r] : [];
|
|
39261
39261
|
}, Vs = (e) => typeof e == "string" ? decodeURIComponent(e.split("/").pop()?.split("?")[0] || "file") : e.name;
|
|
39262
39262
|
async function Ow(e) {
|
|
@@ -39323,7 +39323,7 @@ async function Rw(e) {
|
|
|
39323
39323
|
continue;
|
|
39324
39324
|
}
|
|
39325
39325
|
if (g && Mw.includes(m.type)) {
|
|
39326
|
-
let b =
|
|
39326
|
+
let b = wa(n, g);
|
|
39327
39327
|
if (!b && m.type === "number-input" && typeof m.defaultNumber == "number" && (b = String(m.defaultNumber)), !b && typeof m.defaultValue == "string" && m.defaultValue !== "" && (b = m.defaultValue), !b) continue;
|
|
39328
39328
|
if (o[g] = b, u.push(b), m.type === "report-url") {
|
|
39329
39329
|
const E = o.url;
|
|
@@ -39336,7 +39336,7 @@ async function Rw(e) {
|
|
|
39336
39336
|
continue;
|
|
39337
39337
|
}
|
|
39338
39338
|
if (g && (m.type === "report-module" || m.type === "markdown-module")) {
|
|
39339
|
-
const b = `${g}__module_${m.moduleIndex ?? 0}`, E =
|
|
39339
|
+
const b = `${g}__module_${m.moduleIndex ?? 0}`, E = wa(n, b) || wa(n, g), A = ww(E);
|
|
39340
39340
|
A && (Array.isArray(o[g]) || (o[g] = []), o[g].push(A), c.add(g), u.push(A));
|
|
39341
39341
|
continue;
|
|
39342
39342
|
}
|
|
@@ -39359,7 +39359,7 @@ async function Rw(e) {
|
|
|
39359
39359
|
if (b)
|
|
39360
39360
|
o[g] = b, u.push(` [附带视频: ${Vs(b)}] `);
|
|
39361
39361
|
else {
|
|
39362
|
-
const E =
|
|
39362
|
+
const E = wa(n, g);
|
|
39363
39363
|
E && (o[g] = E, u.push(E));
|
|
39364
39364
|
}
|
|
39365
39365
|
continue;
|
|
@@ -39493,7 +39493,7 @@ const Lw = {
|
|
|
39493
39493
|
disabled: n,
|
|
39494
39494
|
placement: "bottomLeft",
|
|
39495
39495
|
autoAdjustOverflow: Pw,
|
|
39496
|
-
getPopupContainer:
|
|
39496
|
+
getPopupContainer: Zl,
|
|
39497
39497
|
trigger: ["click"],
|
|
39498
39498
|
overlayClassName: "rte-agent-dropdown",
|
|
39499
39499
|
onOpenChange: s,
|
|
@@ -39698,7 +39698,7 @@ const Bw = ["全部技能", "我的技能", "订阅技能", "系统技能"], Fw
|
|
|
39698
39698
|
/* @__PURE__ */ v("span", { className: `rte-skill-card-badge rte-skill-card-badge-${e.badge}`, children: Uw[e.badge] }),
|
|
39699
39699
|
/* @__PURE__ */ W("div", { className: `rte-skill-card-actions${I ? " rte-skill-card-actions-pinned" : ""}`, children: [
|
|
39700
39700
|
e.badge === "mine" && /* @__PURE__ */ v(
|
|
39701
|
-
|
|
39701
|
+
za,
|
|
39702
39702
|
{
|
|
39703
39703
|
open: g,
|
|
39704
39704
|
onOpenChange: C,
|
|
@@ -39902,7 +39902,7 @@ const Bw = ["全部技能", "我的技能", "订阅技能", "系统技能"], Fw
|
|
|
39902
39902
|
T
|
|
39903
39903
|
);
|
|
39904
39904
|
}) }),
|
|
39905
|
-
h ? /* @__PURE__ */ v("div", { className: "rte-skill-cards-status", style: F.current ? { minHeight: F.current } : void 0, children: /* @__PURE__ */ v(
|
|
39905
|
+
h ? /* @__PURE__ */ v("div", { className: "rte-skill-cards-status", style: F.current ? { minHeight: F.current } : void 0, children: /* @__PURE__ */ v(ui, {}) }) : d.length === 0 ? (
|
|
39906
39906
|
// pending 期间(首次挂载等 fetch / 200ms 内)藏住空态内容,避免闪烁
|
|
39907
39907
|
/* @__PURE__ */ v("div", { className: "rte-skill-cards-status", style: F.current ? { minHeight: F.current } : void 0, children: !g && /* @__PURE__ */ W(tt, { children: [
|
|
39908
39908
|
/* @__PURE__ */ v(
|
|
@@ -39936,7 +39936,7 @@ const Bw = ["全部技能", "我的技能", "订阅技能", "系统技能"], Fw
|
|
|
39936
39936
|
] });
|
|
39937
39937
|
});
|
|
39938
39938
|
K0.displayName = "SkillPanel";
|
|
39939
|
-
const
|
|
39939
|
+
const _a = 4, l_ = () => /* @__PURE__ */ v(
|
|
39940
39940
|
"svg",
|
|
39941
39941
|
{
|
|
39942
39942
|
width: "16",
|
|
@@ -39967,12 +39967,12 @@ const wa = 4, l_ = () => /* @__PURE__ */ v(
|
|
|
39967
39967
|
}, [m, A, u]), [O, I] = Q(null), C = ee(null), w = ee(null), _ = Xr(), k = V(() => (C.current?.closest(".rich-text-editor") ?? C.current)?.getBoundingClientRect() ?? null, []), P = V(() => {
|
|
39968
39968
|
const y = k();
|
|
39969
39969
|
if (!y) return;
|
|
39970
|
-
const B = Math.max(0, window.innerHeight - y.bottom -
|
|
39970
|
+
const B = Math.max(0, window.innerHeight - y.bottom - _a * 2), z = Math.max(0, y.top - _a * 2), G = (w.current?.scrollHeight ?? 0) > B && z > B, T = G ? z : B, oe = (w.current?.offsetParent ?? _)?.getBoundingClientRect(), D = oe?.left ?? 0, pe = oe?.top ?? 0, xe = y.left - D;
|
|
39971
39971
|
if (G) {
|
|
39972
|
-
const fe = (oe?.height ?? window.innerHeight) - (y.top -
|
|
39972
|
+
const fe = (oe?.height ?? window.innerHeight) - (y.top - _a - pe);
|
|
39973
39973
|
I({ left: xe, bottom: fe, width: y.width, maxHeight: T });
|
|
39974
39974
|
} else
|
|
39975
|
-
I({ left: xe, top: y.bottom +
|
|
39975
|
+
I({ left: xe, top: y.bottom + _a - pe, width: y.width, maxHeight: T });
|
|
39976
39976
|
}, [k, _]);
|
|
39977
39977
|
qe(() => {
|
|
39978
39978
|
if (!A) return;
|
|
@@ -40406,17 +40406,17 @@ const V_ = (e) => {
|
|
|
40406
40406
|
scrollContainerRef: bn,
|
|
40407
40407
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40408
40408
|
autoCollapseOnScroll: Cr
|
|
40409
|
-
} = e, [Tt, gn] = Q({}), [_t,
|
|
40409
|
+
} = e, [Tt, gn] = Q({}), [_t, ra] = Q({}), [st, j] = Q(u ?? []), [te, ve] = Q({}), [Te, Oe] = Q(Lw), [Ct, Qt] = Q(() => /* @__PURE__ */ new Set()), [Ht, Yt] = Q({}), [It, mt] = Q(null), vn = V(
|
|
40410
40410
|
() => sn?.() ?? It ?? document.body,
|
|
40411
40411
|
[sn, It]
|
|
40412
|
-
), Ot = ee(null), [
|
|
40412
|
+
), Ot = ee(null), [la, lb] = Q(null), ab = V((U, le) => {
|
|
40413
40413
|
lb(le ? U : null);
|
|
40414
|
-
}, []), Yn = ee(null), [ib, sb] = Q(58), [jn, _u] = Q(58), [Li, Iu] = Q(!1), Ou = ee(0), Mu = ee(Le), [
|
|
40414
|
+
}, []), Yn = ee(null), [ib, sb] = Q(58), [jn, _u] = Q(58), [Li, Iu] = Q(!1), Ou = ee(0), Mu = ee(Le), [aa, Ru] = Q(!1);
|
|
40415
40415
|
Mu.current !== Le && (Mu.current = Le, Ou.current = (typeof performance < "u" ? performance.now() : Date.now()) + pt, Ru(!0)), me(() => {
|
|
40416
|
-
if (!
|
|
40416
|
+
if (!aa) return;
|
|
40417
40417
|
const U = setTimeout(() => Ru(!1), pt);
|
|
40418
40418
|
return () => clearTimeout(U);
|
|
40419
|
-
}, [
|
|
40419
|
+
}, [aa, Le, pt]);
|
|
40420
40420
|
const [Gn, Du] = Q(""), el = ee(null), Pi = ee(null), [Bi, Lu] = Q(0), [Fi, Pu] = Q(0), Hi = ee(!1);
|
|
40421
40421
|
me(() => {
|
|
40422
40422
|
if (!u || u.length === st.length && u.every((re, ae) => {
|
|
@@ -40455,28 +40455,28 @@ const V_ = (e) => {
|
|
|
40455
40455
|
() => t.some((U) => U.type === "tag"),
|
|
40456
40456
|
[t]
|
|
40457
40457
|
), ub = G ?? !ob;
|
|
40458
|
-
Ew(i, Tt, gn, xt, _t,
|
|
40458
|
+
Ew(i, Tt, gn, xt, _t, ra);
|
|
40459
40459
|
const nl = ee(/* @__PURE__ */ new Map()), Fu = ee(""), Hu = (t.find((U) => U.type === "tag")?.text || "") + "||" + t.filter((U) => U.key && U.type !== "report-module" && U.type !== "markdown-module").map((U) => `${U.type}:${U.key}`).join("|");
|
|
40460
40460
|
Fu.current !== Hu && (Fu.current = Hu, nl.current = /* @__PURE__ */ new Map());
|
|
40461
|
-
const [bt,
|
|
40461
|
+
const [bt, ia] = Q(null);
|
|
40462
40462
|
me(() => {
|
|
40463
|
-
pe !== void 0 &&
|
|
40463
|
+
pe !== void 0 && ia(pe);
|
|
40464
40464
|
}, [pe]);
|
|
40465
40465
|
const Uu = V(
|
|
40466
40466
|
(U) => {
|
|
40467
|
-
|
|
40467
|
+
ia(U), xe?.(U), U && tl && L?.("skill-switch");
|
|
40468
40468
|
},
|
|
40469
40469
|
[tl, L, xe]
|
|
40470
40470
|
), cb = V(
|
|
40471
40471
|
(U) => {
|
|
40472
|
-
|
|
40472
|
+
ia(null), $?.(U);
|
|
40473
40473
|
},
|
|
40474
40474
|
[$]
|
|
40475
40475
|
);
|
|
40476
40476
|
me(() => {
|
|
40477
|
-
tl &&
|
|
40477
|
+
tl && ia(null);
|
|
40478
40478
|
}, [tl]);
|
|
40479
|
-
const { errors: db, validate: zu, clearError: Vu } = xw(xt), { excludedKeys: xr, hideSeparator: $u } = Aw(xt, Tt, _t), { analyzeReport:
|
|
40479
|
+
const { errors: db, validate: zu, clearError: Vu } = xw(xt), { excludedKeys: xr, hideSeparator: $u } = Aw(xt, Tt, _t), { analyzeReport: sa, analyzeMarkdown: qu, analyzeMarkdownName: Wu, resolveReportName: oa } = Nw({
|
|
40480
40480
|
reportAnalyze: O,
|
|
40481
40481
|
markdownAnalyze: P,
|
|
40482
40482
|
markdownNameAnalyze: R,
|
|
@@ -40516,7 +40516,7 @@ const V_ = (e) => {
|
|
|
40516
40516
|
}
|
|
40517
40517
|
}, [Vu, xt]), fb = V(
|
|
40518
40518
|
(U, le) => {
|
|
40519
|
-
|
|
40519
|
+
ra((ce) => ({ ...ce, [U]: le }));
|
|
40520
40520
|
},
|
|
40521
40521
|
[]
|
|
40522
40522
|
), hb = V(
|
|
@@ -40562,26 +40562,26 @@ const V_ = (e) => {
|
|
|
40562
40562
|
});
|
|
40563
40563
|
}, []), Vi = V(
|
|
40564
40564
|
async (U, le, ce) => {
|
|
40565
|
-
const re = await
|
|
40565
|
+
const re = await oa(U, le, ce);
|
|
40566
40566
|
return re.status === "success" && Yt((ae) => ({ ...ae, [U]: re.name })), re;
|
|
40567
40567
|
},
|
|
40568
|
-
[
|
|
40568
|
+
[oa]
|
|
40569
40569
|
), bb = V(
|
|
40570
40570
|
(U, le) => {
|
|
40571
|
-
|
|
40571
|
+
sa(U, le).then((ce) => {
|
|
40572
40572
|
ce.status === "success" && Oe((re) => ({
|
|
40573
40573
|
...re,
|
|
40574
40574
|
reportModules: { ...re.reportModules, [U]: ce.modules }
|
|
40575
40575
|
}));
|
|
40576
40576
|
});
|
|
40577
40577
|
},
|
|
40578
|
-
[
|
|
40578
|
+
[sa]
|
|
40579
40579
|
), $i = V(
|
|
40580
40580
|
async (U, le) => {
|
|
40581
|
-
|
|
40581
|
+
oa(U, le, "report-url").then((re) => {
|
|
40582
40582
|
re.status === "success" && Yt((ae) => ({ ...ae, [U]: re.name }));
|
|
40583
40583
|
});
|
|
40584
|
-
const ce = await
|
|
40584
|
+
const ce = await sa(U, le);
|
|
40585
40585
|
ce.status === "success" ? (Oe((re) => ({
|
|
40586
40586
|
...re,
|
|
40587
40587
|
reportModules: { ...re.reportModules, [U]: ce.modules }
|
|
@@ -40598,7 +40598,7 @@ const V_ = (e) => {
|
|
|
40598
40598
|
return ae ? ne : re;
|
|
40599
40599
|
}));
|
|
40600
40600
|
},
|
|
40601
|
-
[
|
|
40601
|
+
[sa, oa, zi]
|
|
40602
40602
|
);
|
|
40603
40603
|
me(() => {
|
|
40604
40604
|
if (!i || t.length === 0) return;
|
|
@@ -40625,7 +40625,7 @@ const V_ = (e) => {
|
|
|
40625
40625
|
}
|
|
40626
40626
|
}
|
|
40627
40627
|
}, [i, t, $i, Vi]);
|
|
40628
|
-
const
|
|
40628
|
+
const ua = V(
|
|
40629
40629
|
async (U, le, ce) => {
|
|
40630
40630
|
const ae = Date.now();
|
|
40631
40631
|
Qt((ne) => {
|
|
@@ -40653,11 +40653,11 @@ const V_ = (e) => {
|
|
|
40653
40653
|
},
|
|
40654
40654
|
[]
|
|
40655
40655
|
), gb = V(
|
|
40656
|
-
(U, le) =>
|
|
40657
|
-
[
|
|
40656
|
+
(U, le) => ua(U, le, qu),
|
|
40657
|
+
[ua, qu]
|
|
40658
40658
|
), vb = V(
|
|
40659
|
-
(U, le) =>
|
|
40660
|
-
[
|
|
40659
|
+
(U, le) => ua(U, le, Wu),
|
|
40660
|
+
[ua, Wu]
|
|
40661
40661
|
);
|
|
40662
40662
|
me(() => {
|
|
40663
40663
|
s?.(_t);
|
|
@@ -40785,12 +40785,12 @@ const V_ = (e) => {
|
|
|
40785
40785
|
// 若 minHeight 立即恢复 undefined → CSS 58px 生效 → 元素从收起态 46 瞬跳到 58(顿挫),且被
|
|
40786
40786
|
// 58 钉住直到 max-height 动画爬过 58 才可见长高(前 ~50ms 视觉静止「顿一下」)。动画期间保持 0,
|
|
40787
40787
|
// 元素跟随 max-height 从 46 连续长到目标,无卡顿;窗口结束恢复(此时高度已 ≥58,CSS 58 无影响)。
|
|
40788
|
-
minHeight: Le ||
|
|
40788
|
+
minHeight: Le || aa ? 0 : void 0,
|
|
40789
40789
|
// collapsed 或动画窗口内 hidden:折叠区固定高、展开动画中间帧 max-height < scrollHeight 若 auto 会闪滚动条。
|
|
40790
40790
|
// 稳定展开态固定 auto:高度由 flex 决定(见上 maxHeight 注释),内容放得下时 scrollHeight==clientHeight、
|
|
40791
40791
|
// auto 不显滚动条也不回弹;内容超父上限时本元素自动出滚动条可内部滚。不再依赖 bodyOverflowing
|
|
40792
40792
|
// (那套「测内容是否溢出再切 auto/hidden」是 inline max-height 接管高度时代的产物,flex 接管后多余)。
|
|
40793
|
-
overflow: Le ||
|
|
40793
|
+
overflow: Le || aa ? "hidden" : "auto",
|
|
40794
40794
|
transition: Li ? "none" : `max-height ${pt}ms cubic-bezier(0.4, 0, 0.2, 1)`,
|
|
40795
40795
|
willChange: "max-height"
|
|
40796
40796
|
}, Ju = V(() => {
|
|
@@ -40798,7 +40798,7 @@ const V_ = (e) => {
|
|
|
40798
40798
|
}, [Le, ze, Ft]), Zu = ee(0), Sb = V(() => {
|
|
40799
40799
|
const U = Yn.current, le = document.activeElement;
|
|
40800
40800
|
!U || !le || !U.contains(le) || (Zu.current = typeof performance < "u" ? performance.now() : Date.now());
|
|
40801
|
-
}, []),
|
|
40801
|
+
}, []), ca = V(() => {
|
|
40802
40802
|
const U = Yn.current;
|
|
40803
40803
|
if (U) {
|
|
40804
40804
|
if (!Le && (typeof performance < "u" ? performance.now() : Date.now()) >= Ou.current) {
|
|
@@ -40808,8 +40808,8 @@ const V_ = (e) => {
|
|
|
40808
40808
|
let be = 1 / 0;
|
|
40809
40809
|
if (ne) {
|
|
40810
40810
|
let Pe = 0;
|
|
40811
|
-
for (const
|
|
40812
|
-
|
|
40811
|
+
for (const da of Array.from(ne.children))
|
|
40812
|
+
da !== U && (Pe += da.offsetHeight);
|
|
40813
40813
|
const Mt = getComputedStyle(ne), Yi = parseFloat(Mt.paddingTop) + parseFloat(Mt.paddingBottom);
|
|
40814
40814
|
be = Math.max(0, ne.clientHeight - Pe - Yi);
|
|
40815
40815
|
}
|
|
@@ -40826,7 +40826,7 @@ const V_ = (e) => {
|
|
|
40826
40826
|
let Pe = 0;
|
|
40827
40827
|
for (const Kn of ae)
|
|
40828
40828
|
Kn.top < Me && (Pe = Math.max(Pe, Kn.bottom));
|
|
40829
|
-
const Mt = Pe > 0 ? Math.ceil(Pe - le.top) : 0, Yi = getComputedStyle(U),
|
|
40829
|
+
const Mt = Pe > 0 ? Math.ceil(Pe - le.top) : 0, Yi = getComputedStyle(U), da = parseFloat(Yi.paddingTop) || 0, Ab = Math.ceil(da + Ie), ji = Math.max(Mt, Ab);
|
|
40830
40830
|
ji > 0 && sb((Kn) => Kn === ji ? Kn : ji);
|
|
40831
40831
|
}
|
|
40832
40832
|
} catch {
|
|
@@ -40842,20 +40842,20 @@ const V_ = (e) => {
|
|
|
40842
40842
|
return () => clearTimeout(U);
|
|
40843
40843
|
}, [Li, Sr, pt]), qe(() => {
|
|
40844
40844
|
const U = Yn.current;
|
|
40845
|
-
if (!U || (
|
|
40845
|
+
if (!U || (ca(), typeof ResizeObserver > "u")) return;
|
|
40846
40846
|
const le = () => {
|
|
40847
40847
|
const ne = Yn.current;
|
|
40848
40848
|
if (!ne) return;
|
|
40849
40849
|
(typeof performance < "u" ? performance.now() : Date.now()) - Zu.current < 600 && ne.contains(document.activeElement) && ne.scrollHeight > ne.clientHeight && (ne.scrollTop = ne.scrollHeight);
|
|
40850
|
-
}, ce = new ResizeObserver(() =>
|
|
40850
|
+
}, ce = new ResizeObserver(() => ca());
|
|
40851
40851
|
ce.observe(U);
|
|
40852
40852
|
const re = U.querySelector(".rte-default-textarea, .rte-config-fade"), ae = re ? new ResizeObserver(() => {
|
|
40853
|
-
|
|
40853
|
+
ca(), le();
|
|
40854
40854
|
}) : null;
|
|
40855
40855
|
return re && ae && ae.observe(re), () => {
|
|
40856
40856
|
ce.disconnect(), ae?.disconnect();
|
|
40857
40857
|
};
|
|
40858
|
-
}, [
|
|
40858
|
+
}, [ca, xt, _t, st.length, Ht, Le, Sr, Gn]);
|
|
40859
40859
|
const tc = ee(-1);
|
|
40860
40860
|
me(() => {
|
|
40861
40861
|
Le || jn <= 0 || jn >= Xf || tc.current !== jn && (tc.current = jn, mn?.(jn));
|
|
@@ -40954,7 +40954,7 @@ const V_ = (e) => {
|
|
|
40954
40954
|
"div",
|
|
40955
40955
|
{
|
|
40956
40956
|
ref: ju,
|
|
40957
|
-
className: `rich-text-editor ${
|
|
40957
|
+
className: `rich-text-editor ${la ? "rte-richtext-container-expanded" : ""} ${Tb ? "rte-editor-selected" : ""} ${E ?? ""}`,
|
|
40958
40958
|
"data-component": "structured-editor",
|
|
40959
40959
|
style: xb,
|
|
40960
40960
|
onPaste: kb,
|
|
@@ -40992,12 +40992,12 @@ const V_ = (e) => {
|
|
|
40992
40992
|
"div",
|
|
40993
40993
|
{
|
|
40994
40994
|
ref: Yn,
|
|
40995
|
-
className: `rte-editor${
|
|
40995
|
+
className: `rte-editor${la ? " rte-richtext-fullscreen-active" : ""}`,
|
|
40996
40996
|
style: Xu,
|
|
40997
40997
|
onClick: Ju,
|
|
40998
40998
|
onInput: Sb,
|
|
40999
40999
|
children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: xt.map((U, le) => {
|
|
41000
|
-
if (U.key && xr.has(U.key) || $u && U.exclusionGroup === "separator" ||
|
|
41000
|
+
if (U.key && xr.has(U.key) || $u && U.exclusionGroup === "separator" || la && U.key !== la) return null;
|
|
41001
41001
|
const ce = (U.type === "report-module" || U.type === "markdown-module") && U.key ? `${U.key}__module_${U.moduleIndex ?? 0}` : U.key;
|
|
41002
41002
|
return /* @__PURE__ */ v(
|
|
41003
41003
|
W0,
|
|
@@ -42212,7 +42212,7 @@ S_.__docgenInfo = {
|
|
|
42212
42212
|
}
|
|
42213
42213
|
}
|
|
42214
42214
|
};
|
|
42215
|
-
const
|
|
42215
|
+
const Ia = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Nl = {
|
|
42216
42216
|
日期: "date",
|
|
42217
42217
|
展现量: "impressions",
|
|
42218
42218
|
点击量: "clicks",
|
|
@@ -42397,18 +42397,18 @@ const _a = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
42397
42397
|
const t = e.trim().split(`
|
|
42398
42398
|
`);
|
|
42399
42399
|
if (t.length < 2)
|
|
42400
|
-
return
|
|
42400
|
+
return Ia(e);
|
|
42401
42401
|
const n = t[1], l = /^\|[\s-|]+\|$/.test(n.trim());
|
|
42402
42402
|
if (!n || !l)
|
|
42403
|
-
return
|
|
42403
|
+
return Ia(e);
|
|
42404
42404
|
const i = t[0].split("|").map((d) => d.trim()).filter((d) => d !== ""), s = t.slice(2).map((d) => d.split("|").map((f) => f.trim()).filter((f, h, m) => h > 0 && h < m.length)), o = "border:1px solid #d9d9d9;padding:8px 12px;background-color:#fafafa;font-weight:600;text-align:left;white-space:nowrap;", u = "border:1px solid #d9d9d9;padding:6px 12px;text-align:left;white-space:nowrap;";
|
|
42405
42405
|
let c = '<div style="overflow-x:auto;max-width:100%;">';
|
|
42406
42406
|
return c += '<table style="border-collapse:collapse;width:100%;font-size:12px;margin:8px 0;">', c += "<thead><tr>", i.forEach((d) => {
|
|
42407
|
-
c += `<th style="${o}">${
|
|
42407
|
+
c += `<th style="${o}">${Ia(d)}</th>`;
|
|
42408
42408
|
}), c += "</tr></thead>", c += "<tbody>", s.forEach((d) => {
|
|
42409
42409
|
c += "<tr>", i.forEach((f, h) => {
|
|
42410
42410
|
const m = d[h] || "-";
|
|
42411
|
-
c += `<td style="${u}">${
|
|
42411
|
+
c += `<td style="${u}">${Ia(m)}</td>`;
|
|
42412
42412
|
}), c += "</tr>";
|
|
42413
42413
|
}), c += "</tbody></table></div>", c;
|
|
42414
42414
|
}, M_ = (e) => {
|
|
@@ -42535,7 +42535,7 @@ export {
|
|
|
42535
42535
|
t1 as XcIcon,
|
|
42536
42536
|
q_ as buildPromotionSendPayload,
|
|
42537
42537
|
$_ as createMarkdownAnalyze,
|
|
42538
|
-
|
|
42538
|
+
Ia as escapeHtml,
|
|
42539
42539
|
M_ as extractTableDataFromHtml,
|
|
42540
42540
|
W_ as lightTheme,
|
|
42541
42541
|
I_ as parsePromotionTableMarkdown,
|