sykpcomposer 1.20.52 → 1.20.53
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/{ImageComponent-9e3f6ef6.js → ImageComponent-2df888a5.js} +3 -3
- package/dist/{ImageComponent-9e3f6ef6.js.map → ImageComponent-2df888a5.js.map} +1 -1
- package/dist/{InlineImageComponent-50f422ba.js → InlineImageComponent-01941102.js} +3 -3
- package/dist/{InlineImageComponent-50f422ba.js.map → InlineImageComponent-01941102.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-c3e7b20e.js → LexicalNestedComposer.prod-e5d0e5ec.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-c3e7b20e.js.map → LexicalNestedComposer.prod-e5d0e5ec.js.map} +1 -1
- package/dist/{PollComponent-68367184.js → PollComponent-074175be.js} +2 -2
- package/dist/{PollComponent-68367184.js.map → PollComponent-074175be.js.map} +1 -1
- package/dist/{index-1ad7861a.js → index-dfa228ac.js} +317 -315
- package/dist/{index-1ad7861a.js.map → index-dfa228ac.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var nT = Object.defineProperty;
|
|
2
2
|
var rT = (c, t, n) => t in c ? nT(c, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[t] = n;
|
|
3
3
|
var Un = (c, t, n) => (rT(c, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import * as
|
|
4
|
+
import * as ar from "react";
|
|
5
5
|
import Ri, { createContext as xh, useContext as i0, useMemo as Fr, useLayoutEffect as as, useEffect as qt, useState as Ft, useCallback as mn, useRef as tr, Suspense as Vd } from "react";
|
|
6
6
|
import * as wh from "react-dom";
|
|
7
7
|
import { flushSync as tw, createPortal as Na } from "react-dom";
|
|
@@ -695,7 +695,7 @@ function kn() {
|
|
|
695
695
|
function Ao(c) {
|
|
696
696
|
return {};
|
|
697
697
|
}
|
|
698
|
-
const ka = {}, nw = {}, Gd = {}, ca = {}, Ws = {}, Bl = {}, Js = {}, Xs = {}, Bp = {}, zl = {}, Ks = {},
|
|
698
|
+
const ka = {}, nw = {}, Gd = {}, ca = {}, Ws = {}, Bl = {}, Js = {}, Xs = {}, Bp = {}, zl = {}, Ks = {}, ti = {}, ru = {}, ou = {}, rw = {}, Eh = {}, cT = {}, Ch = {}, uT = {}, Yd = {}, Zd = {}, $l = {}, dT = {}, el = {}, Zl = {}, tl = {}, Th = {}, fT = {}, ow = {}, Iv = {}, kh = {}, Tl = {}, Oh = {}, s0 = {}, pT = {}, Qd = {}, Xd = {}, zp = {}, Nh = {}, hT = {}, Jc = {}, Vc = {}, l0 = {}, gT = {}, iw = {}, ha = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mT = ha && "documentMode" in document ? document.documentMode : null, oa = ha && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Vs = ha && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), $p = !(!ha || !("InputEvent" in window) || mT) && "getTargetRanges" in new window.InputEvent("input"), c0 = ha && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Ah = ha && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, yT = ha && /Android/.test(navigator.userAgent), aw = ha && /^(?=.*Chrome).*/i.test(navigator.userAgent), bT = ha && yT && aw, u0 = ha && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !aw, ef = 1, nl = 3, Ul = 0, sw = 1, iu = 2, vT = 0, _T = 1, xT = 2, Up = 4, Hp = 8, d0 = 128, wT = 112 | (3 | Up | Hp) | d0, f0 = 1, p0 = 2, h0 = 3, g0 = 4, m0 = 5, y0 = 6, jh = c0 || Ah || u0 ? " " : "", rs = `
|
|
699
699
|
|
|
700
700
|
`, ST = Vs ? " " : jh, lw = "֑-߿יִ-﷽ﹰ-ﻼ", cw = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", ET = new RegExp("^[^" + cw + "]*[" + lw + "]"), CT = new RegExp("^[^" + lw + "]*[" + cw + "]"), ts = { bold: 1, code: 16, highlight: d0, italic: 2, strikethrough: Up, subscript: 32, superscript: 64, underline: Hp }, TT = { directionless: 1, unmergeable: 2 }, Pv = { center: p0, end: y0, justify: g0, left: f0, right: h0, start: m0 }, kT = { [p0]: "center", [y0]: "end", [g0]: "justify", [f0]: "left", [h0]: "right", [m0]: "start" }, OT = { normal: 0, segmented: 2, token: 1 }, NT = { [vT]: "normal", [xT]: "segmented", [_T]: "token" };
|
|
701
701
|
function AT(c) {
|
|
@@ -928,7 +928,7 @@ function x0(c) {
|
|
|
928
928
|
function hw(c, t) {
|
|
929
929
|
if (t != null)
|
|
930
930
|
return void (c.__key = t);
|
|
931
|
-
|
|
931
|
+
ni(), Hw();
|
|
932
932
|
const n = Yr(), e = Ra(), s = "" + RT++;
|
|
933
933
|
e._nodeMap.set(s, c), kt(c) ? n._dirtyElements.set(s, !0) : n._dirtyLeaves.add(s), n._cloneNotNeeded.add(s), n._dirtyType = sw, c.__key = s;
|
|
934
934
|
}
|
|
@@ -987,7 +987,7 @@ function Jp(c) {
|
|
|
987
987
|
s._dirtyType = sw, kt(c) ? r.set(a, !0) : s._dirtyLeaves.add(a);
|
|
988
988
|
}
|
|
989
989
|
function Fo(c) {
|
|
990
|
-
|
|
990
|
+
ni();
|
|
991
991
|
const t = Yr(), n = t._compositionKey;
|
|
992
992
|
if (c !== n) {
|
|
993
993
|
if (t._compositionKey = c, n !== null) {
|
|
@@ -1035,7 +1035,7 @@ function yw(c) {
|
|
|
1035
1035
|
return c._nodeMap.get("root");
|
|
1036
1036
|
}
|
|
1037
1037
|
function qr(c) {
|
|
1038
|
-
|
|
1038
|
+
ni();
|
|
1039
1039
|
const t = Ra();
|
|
1040
1040
|
c !== null && (c.dirty = !0, c.setCachedNodes(null)), t._selection = c;
|
|
1041
1041
|
}
|
|
@@ -1117,7 +1117,7 @@ function E0(c, t, n, e, s) {
|
|
|
1117
1117
|
if (!Tt(h) || n === null || e === null)
|
|
1118
1118
|
return void o.setTextContent(a);
|
|
1119
1119
|
if (h.setTextNodeRange(o, n, o, e), o.isSegmented()) {
|
|
1120
|
-
const m =
|
|
1120
|
+
const m = sr(o.getTextContent());
|
|
1121
1121
|
o.replace(m), o = m;
|
|
1122
1122
|
}
|
|
1123
1123
|
o.setTextContent(a);
|
|
@@ -1226,7 +1226,7 @@ function Ph(c) {
|
|
|
1226
1226
|
return t !== null && t.nodeType === 11 ? t.host : t;
|
|
1227
1227
|
}
|
|
1228
1228
|
function BT(c) {
|
|
1229
|
-
|
|
1229
|
+
ni(), Yr()._updateTags.add(c);
|
|
1230
1230
|
}
|
|
1231
1231
|
function Kp(c, t) {
|
|
1232
1232
|
let n = c.getParent();
|
|
@@ -1257,7 +1257,7 @@ function $T(c) {
|
|
|
1257
1257
|
const t = c.constructor.clone(c);
|
|
1258
1258
|
return hw(t, null), t;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Pr(c) {
|
|
1261
1261
|
const t = Yr(), n = c.constructor.getType(), e = t._nodes.get(n);
|
|
1262
1262
|
e === void 0 && fn(97);
|
|
1263
1263
|
const s = e.replace;
|
|
@@ -1366,7 +1366,7 @@ function Ew(c, t, n, e, s, o) {
|
|
|
1366
1366
|
r.__parent === t && (kt(r) && Ew(r, a, n, e, s, o), n.has(a) || o.delete(a), s.push(a)), r = r.getNextSibling();
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
let Gs, oi, Pd, Rh, iy, ay, Hl, ua, sy, Md, mo = "",
|
|
1369
|
+
let Gs, oi, Pd, Rh, iy, ay, Hl, ua, sy, Md, mo = "", ri = "", ia = null, Za = "", Cw = !1, Dh = !1, bp = null;
|
|
1370
1370
|
function Gp(c, t) {
|
|
1371
1371
|
const n = Hl.get(c);
|
|
1372
1372
|
if (t !== null) {
|
|
@@ -1415,8 +1415,8 @@ function Yp(c, t, n) {
|
|
|
1415
1415
|
if (o !== 0 && Tw(s, o), r !== 0) {
|
|
1416
1416
|
const l = r - 1;
|
|
1417
1417
|
(function(i, u, f, d) {
|
|
1418
|
-
const p =
|
|
1419
|
-
|
|
1418
|
+
const p = ri;
|
|
1419
|
+
ri = "", cy(i, f, 0, u, d, null), Nw(f, d), ri = p;
|
|
1420
1420
|
})(Zp(e, ua), l, e, s);
|
|
1421
1421
|
}
|
|
1422
1422
|
const a = e.__format;
|
|
@@ -1427,7 +1427,7 @@ function Yp(c, t, n) {
|
|
|
1427
1427
|
const r = e.decorate(oi, Gs);
|
|
1428
1428
|
r !== null && Aw(c, r), s.contentEditable = "false";
|
|
1429
1429
|
} else
|
|
1430
|
-
Kt(e) && (e.isDirectionless() || (
|
|
1430
|
+
Kt(e) && (e.isDirectionless() || (ri += o));
|
|
1431
1431
|
mo += o, Za += o;
|
|
1432
1432
|
}
|
|
1433
1433
|
if (t !== null)
|
|
@@ -1468,8 +1468,8 @@ function Ow(c, t, n) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
function Nw(c, t) {
|
|
1470
1470
|
const n = t.__lexicalDirTextContent, e = t.__lexicalDir;
|
|
1471
|
-
if (n !==
|
|
1472
|
-
const o =
|
|
1471
|
+
if (n !== ri || e !== bp) {
|
|
1472
|
+
const o = ri === "", r = o ? bp : (s = ri, ET.test(s) ? "rtl" : CT.test(s) ? "ltr" : null);
|
|
1473
1473
|
if (r !== e) {
|
|
1474
1474
|
const a = t.classList, l = Gs.theme;
|
|
1475
1475
|
let i = e !== null ? l[e] : void 0, u = r !== null ? l[r] : void 0;
|
|
@@ -1494,14 +1494,14 @@ function Nw(c, t) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
Dh || (c.getWritable().__dir = r);
|
|
1496
1496
|
}
|
|
1497
|
-
bp = r, t.__lexicalDirTextContent =
|
|
1497
|
+
bp = r, t.__lexicalDirTextContent = ri, t.__lexicalDir = r;
|
|
1498
1498
|
}
|
|
1499
1499
|
var s;
|
|
1500
1500
|
}
|
|
1501
1501
|
function GT(c, t, n) {
|
|
1502
|
-
const e =
|
|
1502
|
+
const e = ri;
|
|
1503
1503
|
var s;
|
|
1504
|
-
|
|
1504
|
+
ri = "", ia = null, function(o, r, a) {
|
|
1505
1505
|
const l = mo, i = o.__size, u = r.__size;
|
|
1506
1506
|
if (mo = "", i === 1 && u === 1) {
|
|
1507
1507
|
const f = o.__first, d = r.__first;
|
|
@@ -1554,7 +1554,7 @@ function GT(c, t, n) {
|
|
|
1554
1554
|
})(r, f, d, i, u, a);
|
|
1555
1555
|
}
|
|
1556
1556
|
Ih(r) && (mo += rs), a.__lexicalTextContent = mo, mo = l + mo;
|
|
1557
|
-
}(c, t, n), Nw(t, n),
|
|
1557
|
+
}(c, t, n), Nw(t, n), Ir(s = t) && ia != null && ia !== s.__textFormat && !Dh && s.setTextFormat(ia), ri = e, ia = null;
|
|
1558
1558
|
}
|
|
1559
1559
|
function Zp(c, t) {
|
|
1560
1560
|
const n = [];
|
|
@@ -1575,10 +1575,10 @@ function pd(c, t) {
|
|
|
1575
1575
|
const r = o.__lexicalTextContent;
|
|
1576
1576
|
r !== void 0 && (mo += r, Za += r);
|
|
1577
1577
|
const a = o.__lexicalDirTextContent;
|
|
1578
|
-
a !== void 0 && (
|
|
1578
|
+
a !== void 0 && (ri += a);
|
|
1579
1579
|
} else {
|
|
1580
1580
|
const r = n.getTextContent();
|
|
1581
|
-
Kt(n) && !n.isDirectionless() && (
|
|
1581
|
+
Kt(n) && !n.isDirectionless() && (ri += r), Za += r, mo += r;
|
|
1582
1582
|
}
|
|
1583
1583
|
return o;
|
|
1584
1584
|
}
|
|
@@ -1597,7 +1597,7 @@ function pd(c, t) {
|
|
|
1597
1597
|
const a = e.decorate(oi, Gs);
|
|
1598
1598
|
a !== null && Aw(c, a);
|
|
1599
1599
|
} else
|
|
1600
|
-
Kt(e) && !e.isDirectionless() && (
|
|
1600
|
+
Kt(e) && !e.isDirectionless() && (ri += r);
|
|
1601
1601
|
mo += r, Za += r;
|
|
1602
1602
|
}
|
|
1603
1603
|
if (!Dh && Vo(e) && e.__cachedText !== Za) {
|
|
@@ -1621,7 +1621,7 @@ function mm(c) {
|
|
|
1621
1621
|
return t !== null && t === oi._blockCursorElement && (t = t.nextSibling), t;
|
|
1622
1622
|
}
|
|
1623
1623
|
function YT(c, t, n, e, s, o) {
|
|
1624
|
-
mo = "", Za = "",
|
|
1624
|
+
mo = "", Za = "", ri = "", Cw = e === iu, bp = null, oi = n, Gs = n._config, Pd = n._nodes, Rh = oi._listeners.mutation, iy = s, ay = o, Hl = c._nodeMap, ua = t._nodeMap, Dh = t._readOnly, sy = new Map(n._keyToDOMMap);
|
|
1625
1625
|
const r = /* @__PURE__ */ new Map();
|
|
1626
1626
|
return Md = r, pd("root", null), oi = void 0, Pd = void 0, iy = void 0, ay = void 0, Hl = void 0, ua = void 0, Gs = void 0, sy = void 0, Md = void 0, r;
|
|
1627
1627
|
}
|
|
@@ -1673,11 +1673,11 @@ const Va = Object.freeze({}), dy = 30, fy = [["keydown", function(c, t) {
|
|
|
1673
1673
|
return oa && l && od(a);
|
|
1674
1674
|
}(n, o) ? (c.preventDefault(), bn(t, Ks, !1)) : function(a, l, i, u) {
|
|
1675
1675
|
return a.toLowerCase() === "b" && !l && fd(i, u);
|
|
1676
|
-
}(n, r, o, s) ? (c.preventDefault(), bn(t,
|
|
1676
|
+
}(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "bold")) : function(a, l, i, u) {
|
|
1677
1677
|
return a.toLowerCase() === "u" && !l && fd(i, u);
|
|
1678
|
-
}(n, r, o, s) ? (c.preventDefault(), bn(t,
|
|
1678
|
+
}(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "underline")) : function(a, l, i, u) {
|
|
1679
1679
|
return a.toLowerCase() === "i" && !l && fd(i, u);
|
|
1680
|
-
}(n, r, o, s) ? (c.preventDefault(), bn(t,
|
|
1680
|
+
}(n, r, o, s) ? (c.preventDefault(), bn(t, ti, "italic")) : function(a, l, i, u) {
|
|
1681
1681
|
return a === "Tab" && !l && !i && !u;
|
|
1682
1682
|
}(n, r, s, o) ? bn(t, Th, c) : function(a, l, i, u) {
|
|
1683
1683
|
return a.toLowerCase() === "z" && !l && fd(i, u);
|
|
@@ -1721,7 +1721,7 @@ const Va = Object.freeze({}), dy = 30, fy = [["keydown", function(c, t) {
|
|
|
1721
1721
|
Vs && u > 1 && c.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= u), c0 || Ah || u0 || !t.isComposing() || (xd = 0, Fo(null));
|
|
1722
1722
|
} else
|
|
1723
1723
|
S0(!1, t, e !== null ? e : void 0), id && (ym(t, e || void 0), id = !1);
|
|
1724
|
-
|
|
1724
|
+
ni(), dw(Yr());
|
|
1725
1725
|
}), Ic = null;
|
|
1726
1726
|
}], ["click", function(c, t) {
|
|
1727
1727
|
Pi(t, () => {
|
|
@@ -1825,16 +1825,16 @@ $p && fy.push(["beforeinput", (c, t) => function(n, e) {
|
|
|
1825
1825
|
bn(e, Ks, !1);
|
|
1826
1826
|
break;
|
|
1827
1827
|
case "formatStrikeThrough":
|
|
1828
|
-
bn(e,
|
|
1828
|
+
bn(e, ti, "strikethrough");
|
|
1829
1829
|
break;
|
|
1830
1830
|
case "formatBold":
|
|
1831
|
-
bn(e,
|
|
1831
|
+
bn(e, ti, "bold");
|
|
1832
1832
|
break;
|
|
1833
1833
|
case "formatItalic":
|
|
1834
|
-
bn(e,
|
|
1834
|
+
bn(e, ti, "italic");
|
|
1835
1835
|
break;
|
|
1836
1836
|
case "formatUnderline":
|
|
1837
|
-
bn(e,
|
|
1837
|
+
bn(e, ti, "underline");
|
|
1838
1838
|
break;
|
|
1839
1839
|
case "historyUndo":
|
|
1840
1840
|
bn(e, ru, void 0);
|
|
@@ -1973,7 +1973,7 @@ function ZT(c) {
|
|
|
1973
1973
|
c.__lexicalEventHandles = [];
|
|
1974
1974
|
}
|
|
1975
1975
|
function gy(c, t, n) {
|
|
1976
|
-
|
|
1976
|
+
ni();
|
|
1977
1977
|
const e = c.__key, s = c.getParent();
|
|
1978
1978
|
if (s === null)
|
|
1979
1979
|
return;
|
|
@@ -2202,12 +2202,12 @@ class Lh {
|
|
|
2202
2202
|
return t === null && fn(113), t;
|
|
2203
2203
|
}
|
|
2204
2204
|
getWritable() {
|
|
2205
|
-
|
|
2205
|
+
ni();
|
|
2206
2206
|
const t = Ra(), n = Yr(), e = t._nodeMap, s = this.__key, o = this.getLatest(), r = o.__parent, a = n._cloneNotNeeded, l = jt();
|
|
2207
2207
|
if (l !== null && l.setCachedNodes(null), a.has(s))
|
|
2208
2208
|
return Jp(o), o;
|
|
2209
2209
|
const i = o.constructor.clone(o);
|
|
2210
|
-
return i.__parent = r, i.__next = o.__next, i.__prev = o.__prev, kt(o) && kt(i) ? (
|
|
2210
|
+
return i.__parent = r, i.__next = o.__next, i.__prev = o.__prev, kt(o) && kt(i) ? (Ir(o) && Ir(i) && (i.__textFormat = o.__textFormat), i.__first = o.__first, i.__last = o.__last, i.__size = o.__size, i.__indent = o.__indent, i.__format = o.__format, i.__dir = o.__dir) : Kt(o) && Kt(i) && (i.__format = o.__format, i.__style = o.__style, i.__mode = o.__mode, i.__detail = o.__detail), a.add(s), i.__key = s, Jp(i), e.set(s, i), i;
|
|
2211
2211
|
}
|
|
2212
2212
|
getTextContent() {
|
|
2213
2213
|
return "";
|
|
@@ -2237,7 +2237,7 @@ class Lh {
|
|
|
2237
2237
|
gy(this, !0, t);
|
|
2238
2238
|
}
|
|
2239
2239
|
replace(t, n) {
|
|
2240
|
-
|
|
2240
|
+
ni();
|
|
2241
2241
|
let e = jt();
|
|
2242
2242
|
e !== null && (e = e.clone()), pm(this, t);
|
|
2243
2243
|
const s = this.getLatest(), o = this.__key, r = t.__key, a = t.getWritable(), l = this.getParentOrThrow().getWritable(), i = l.__size;
|
|
@@ -2253,7 +2253,7 @@ class Lh {
|
|
|
2253
2253
|
return Us() === o && Fo(r), a;
|
|
2254
2254
|
}
|
|
2255
2255
|
insertAfter(t, n = !0) {
|
|
2256
|
-
|
|
2256
|
+
ni(), pm(this, t);
|
|
2257
2257
|
const e = this.getWritable(), s = t.getWritable(), o = s.getParent(), r = jt();
|
|
2258
2258
|
let a = !1, l = !1;
|
|
2259
2259
|
if (o !== null) {
|
|
@@ -2273,7 +2273,7 @@ class Lh {
|
|
|
2273
2273
|
return t;
|
|
2274
2274
|
}
|
|
2275
2275
|
insertBefore(t, n = !0) {
|
|
2276
|
-
|
|
2276
|
+
ni(), pm(this, t);
|
|
2277
2277
|
const e = this.getWritable(), s = t.getWritable(), o = s.__key;
|
|
2278
2278
|
Nl(s);
|
|
2279
2279
|
const r = this.getPreviousSibling(), a = this.getParentOrThrow().getWritable(), l = e.__prev, i = this.getIndexWithinParent();
|
|
@@ -2294,7 +2294,7 @@ class Lh {
|
|
|
2294
2294
|
return this.selectNext(0, 0);
|
|
2295
2295
|
}
|
|
2296
2296
|
selectPrevious(t, n) {
|
|
2297
|
-
|
|
2297
|
+
ni();
|
|
2298
2298
|
const e = this.getPreviousSibling(), s = this.getParentOrThrow();
|
|
2299
2299
|
if (e === null)
|
|
2300
2300
|
return s.select(0, 0);
|
|
@@ -2307,7 +2307,7 @@ class Lh {
|
|
|
2307
2307
|
return e.select(t, n);
|
|
2308
2308
|
}
|
|
2309
2309
|
selectNext(t, n) {
|
|
2310
|
-
|
|
2310
|
+
ni();
|
|
2311
2311
|
const e = this.getNextSibling(), s = this.getParentOrThrow();
|
|
2312
2312
|
if (e === null)
|
|
2313
2313
|
return s.select();
|
|
@@ -2368,7 +2368,7 @@ function QT(c) {
|
|
|
2368
2368
|
return { node: fa() };
|
|
2369
2369
|
}
|
|
2370
2370
|
function fa() {
|
|
2371
|
-
return
|
|
2371
|
+
return Pr(new gu());
|
|
2372
2372
|
}
|
|
2373
2373
|
function Aa(c) {
|
|
2374
2374
|
return c instanceof gu;
|
|
@@ -2515,7 +2515,7 @@ class ao extends Lh {
|
|
|
2515
2515
|
return { "#text": () => ({ conversion: nk, priority: 0 }), b: () => ({ conversion: ek, priority: 0 }), code: () => ({ conversion: Is, priority: 0 }), em: () => ({ conversion: Is, priority: 0 }), i: () => ({ conversion: Is, priority: 0 }), s: () => ({ conversion: Is, priority: 0 }), span: () => ({ conversion: XT, priority: 0 }), strong: () => ({ conversion: Is, priority: 0 }), sub: () => ({ conversion: Is, priority: 0 }), sup: () => ({ conversion: Is, priority: 0 }), u: () => ({ conversion: Is, priority: 0 }) };
|
|
2516
2516
|
}
|
|
2517
2517
|
static importJSON(t) {
|
|
2518
|
-
const n =
|
|
2518
|
+
const n = sr(t.text);
|
|
2519
2519
|
return n.setFormat(t.format), n.setDetail(t.detail), n.setMode(t.mode), n.setStyle(t.style), n;
|
|
2520
2520
|
}
|
|
2521
2521
|
exportDOM(t) {
|
|
@@ -2565,7 +2565,7 @@ class ao extends Lh {
|
|
|
2565
2565
|
return n.__text = t, n;
|
|
2566
2566
|
}
|
|
2567
2567
|
select(t, n) {
|
|
2568
|
-
|
|
2568
|
+
ni();
|
|
2569
2569
|
let e = t, s = n;
|
|
2570
2570
|
const o = jt(), r = this.getTextContent(), a = this.__key;
|
|
2571
2571
|
if (typeof r == "string") {
|
|
@@ -2607,7 +2607,7 @@ class ao extends Lh {
|
|
|
2607
2607
|
return !0;
|
|
2608
2608
|
}
|
|
2609
2609
|
splitText(...t) {
|
|
2610
|
-
|
|
2610
|
+
ni();
|
|
2611
2611
|
const n = this.getLatest(), e = n.getTextContent(), s = n.__key, o = Us(), r = new Set(t), a = [], l = e.length;
|
|
2612
2612
|
let i = "";
|
|
2613
2613
|
for (let y = 0; y < l; y++)
|
|
@@ -2622,11 +2622,11 @@ class ao extends Lh {
|
|
|
2622
2622
|
let p;
|
|
2623
2623
|
const h = n.getFormat(), m = n.getStyle(), g = n.__detail;
|
|
2624
2624
|
let v = !1;
|
|
2625
|
-
n.isSegmented() ? (p =
|
|
2625
|
+
n.isSegmented() ? (p = sr(f), p.__format = h, p.__style = m, p.__detail = g, v = !0) : (p = n.getWritable(), p.__text = f);
|
|
2626
2626
|
const b = jt(), _ = [p];
|
|
2627
2627
|
let E = f.length;
|
|
2628
2628
|
for (let y = 1; y < u; y++) {
|
|
2629
|
-
const S = a[y], C = S.length, O =
|
|
2629
|
+
const S = a[y], C = S.length, O = sr(S).getWritable();
|
|
2630
2630
|
O.__format = h, O.__style = m, O.__detail = g;
|
|
2631
2631
|
const F = O.__key, B = E + C;
|
|
2632
2632
|
if (Tt(b)) {
|
|
@@ -2691,7 +2691,7 @@ function nk(c) {
|
|
|
2691
2691
|
const a = e[r];
|
|
2692
2692
|
a === `
|
|
2693
2693
|
` || a === `\r
|
|
2694
|
-
` ? s.push(fa()) : a === " " ? s.push(mu()) : a !== "" && s.push(
|
|
2694
|
+
` ? s.push(fa()) : a === " " ? s.push(mu()) : a !== "" && s.push(sr(a));
|
|
2695
2695
|
}
|
|
2696
2696
|
return { node: s };
|
|
2697
2697
|
}
|
|
@@ -2717,7 +2717,7 @@ function nk(c) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
s && (n = n.slice(0, n.length - 1));
|
|
2719
2719
|
}
|
|
2720
|
-
return n === "" ? { node: null } : { node:
|
|
2720
|
+
return n === "" ? { node: null } : { node: sr(n) };
|
|
2721
2721
|
}
|
|
2722
2722
|
function Xv(c, t) {
|
|
2723
2723
|
let n = c;
|
|
@@ -2748,8 +2748,8 @@ function Is(c) {
|
|
|
2748
2748
|
const t = rk[c.nodeName.toLowerCase()];
|
|
2749
2749
|
return t === void 0 ? { node: null } : { forChild: k0(c.style, t), node: null };
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2752
|
-
return
|
|
2751
|
+
function sr(c = "") {
|
|
2752
|
+
return Pr(new ao(c));
|
|
2753
2753
|
}
|
|
2754
2754
|
function Kt(c) {
|
|
2755
2755
|
return c instanceof ao;
|
|
@@ -2796,7 +2796,7 @@ class nf extends ao {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
function mu() {
|
|
2799
|
-
return
|
|
2799
|
+
return Pr(new nf());
|
|
2800
2800
|
}
|
|
2801
2801
|
function O0(c) {
|
|
2802
2802
|
return c instanceof nf;
|
|
@@ -3025,7 +3025,7 @@ class rl {
|
|
|
3025
3025
|
const r = n[o];
|
|
3026
3026
|
r === `
|
|
3027
3027
|
` || r === `\r
|
|
3028
|
-
` ? e.push(fa()) : r === " " ? e.push(mu()) : e.push(
|
|
3028
|
+
` ? e.push(fa()) : r === " " ? e.push(mu()) : e.push(sr(r));
|
|
3029
3029
|
}
|
|
3030
3030
|
this.insertNodes(e);
|
|
3031
3031
|
}
|
|
@@ -3033,7 +3033,7 @@ class rl {
|
|
|
3033
3033
|
const n = this.anchor, e = this.focus, s = this.format, o = this.style;
|
|
3034
3034
|
let r = n, a = e;
|
|
3035
3035
|
!this.isCollapsed() && e.isBefore(n) && (r = e, a = n), r.type === "element" && function(g, v, b, _) {
|
|
3036
|
-
const E = g.getNode(), w = E.getChildAtIndex(g.offset), x =
|
|
3036
|
+
const E = g.getNode(), w = E.getChildAtIndex(g.offset), x = sr(), y = Vo(E) ? Tn().append(x) : x;
|
|
3037
3037
|
x.setFormat(b), x.setStyle(_), w === null ? E.append(y) : w.insertBefore(y), g.is(v) && v.set(x.__key, 0, "text"), g.set(x.__key, 0, "text");
|
|
3038
3038
|
}(r, a, s, o);
|
|
3039
3039
|
const l = r.offset;
|
|
@@ -3045,14 +3045,14 @@ class rl {
|
|
|
3045
3045
|
let m = u[f - 1];
|
|
3046
3046
|
if (f === 1 && a.type === "element" && (i = p, a.set(r.key, i, "text")), this.isCollapsed() && l === p && (d.isSegmented() || d.isToken() || !d.canInsertTextAfter() || !h.canInsertTextAfter() && d.getNextSibling() === null)) {
|
|
3047
3047
|
let g = d.getNextSibling();
|
|
3048
|
-
if (Kt(g) && g.canInsertTextBefore() && !Ac(g) || (g =
|
|
3048
|
+
if (Kt(g) && g.canInsertTextBefore() && !Ac(g) || (g = sr(), g.setFormat(s), g.setStyle(o), h.canInsertTextAfter() ? d.insertAfter(g) : h.insertAfter(g)), g.select(0, 0), d = g, t !== "")
|
|
3049
3049
|
return void this.insertText(t);
|
|
3050
3050
|
} else if (this.isCollapsed() && l === 0 && (d.isSegmented() || d.isToken() || !d.canInsertTextBefore() || !h.canInsertTextBefore() && d.getPreviousSibling() === null)) {
|
|
3051
3051
|
let g = d.getPreviousSibling();
|
|
3052
|
-
if (Kt(g) && !Ac(g) || (g =
|
|
3052
|
+
if (Kt(g) && !Ac(g) || (g = sr(), g.setFormat(s), h.canInsertTextBefore() ? d.insertBefore(g) : h.insertBefore(g)), g.select(), d = g, t !== "")
|
|
3053
3053
|
return void this.insertText(t);
|
|
3054
3054
|
} else if (d.isSegmented() && l !== p) {
|
|
3055
|
-
const g =
|
|
3055
|
+
const g = sr(d.getTextContent());
|
|
3056
3056
|
g.setFormat(s), d.replace(g), d = g;
|
|
3057
3057
|
} else if (!this.isCollapsed() && t !== "") {
|
|
3058
3058
|
const g = m.getParent();
|
|
@@ -3061,18 +3061,18 @@ class rl {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
if (f === 1) {
|
|
3063
3063
|
if (d.isToken()) {
|
|
3064
|
-
const _ =
|
|
3064
|
+
const _ = sr(t);
|
|
3065
3065
|
return _.select(), void d.replace(_);
|
|
3066
3066
|
}
|
|
3067
3067
|
const g = d.getFormat(), v = d.getStyle();
|
|
3068
3068
|
if (l !== i || g === s && v === o) {
|
|
3069
3069
|
if (O0(d)) {
|
|
3070
|
-
const _ =
|
|
3070
|
+
const _ = sr(t);
|
|
3071
3071
|
return _.setFormat(s), _.setStyle(o), _.select(), void d.replace(_);
|
|
3072
3072
|
}
|
|
3073
3073
|
} else {
|
|
3074
3074
|
if (d.getTextContent() !== "") {
|
|
3075
|
-
const _ =
|
|
3075
|
+
const _ = sr(t);
|
|
3076
3076
|
if (_.setFormat(s), _.setStyle(o), _.select(), l === 0)
|
|
3077
3077
|
d.insertBefore(_, !1);
|
|
3078
3078
|
else {
|
|
@@ -3095,7 +3095,7 @@ class rl {
|
|
|
3095
3095
|
if (a.type === "text" && (i !== 0 || m.getTextContent() === "") || a.type === "element" && m.getIndexWithinParent() < i)
|
|
3096
3096
|
if (Kt(m) && !m.isToken() && i !== m.getTextContentSize()) {
|
|
3097
3097
|
if (m.isSegmented()) {
|
|
3098
|
-
const S =
|
|
3098
|
+
const S = sr(m.getTextContent());
|
|
3099
3099
|
m.replace(S), m = S;
|
|
3100
3100
|
}
|
|
3101
3101
|
Vo(a.getNode()) || a.type !== "text" || (m = m.spliceText(0, i, "")), g.add(m.__key);
|
|
@@ -3123,7 +3123,7 @@ class rl {
|
|
|
3123
3123
|
if (l === p)
|
|
3124
3124
|
d.select();
|
|
3125
3125
|
else {
|
|
3126
|
-
const S =
|
|
3126
|
+
const S = sr(t);
|
|
3127
3127
|
S.select(), d.replace(S);
|
|
3128
3128
|
}
|
|
3129
3129
|
else
|
|
@@ -3719,7 +3719,7 @@ const s1 = { characterData: !0, childList: !0, subtree: !0 };
|
|
|
3719
3719
|
function bu() {
|
|
3720
3720
|
return vi || ko !== null && ko._readOnly;
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3722
|
+
function ni() {
|
|
3723
3723
|
vi && fn(13);
|
|
3724
3724
|
}
|
|
3725
3725
|
function Hw() {
|
|
@@ -4137,7 +4137,7 @@ class Vr extends Lh {
|
|
|
4137
4137
|
return !1;
|
|
4138
4138
|
}
|
|
4139
4139
|
select(t, n) {
|
|
4140
|
-
|
|
4140
|
+
ni();
|
|
4141
4141
|
const e = jt();
|
|
4142
4142
|
let s = t, o = n;
|
|
4143
4143
|
const r = this.getChildrenSize();
|
|
@@ -4482,9 +4482,9 @@ function uk(c) {
|
|
|
4482
4482
|
return { node: t };
|
|
4483
4483
|
}
|
|
4484
4484
|
function Tn() {
|
|
4485
|
-
return
|
|
4485
|
+
return Pr(new il());
|
|
4486
4486
|
}
|
|
4487
|
-
function
|
|
4487
|
+
function Ir(c) {
|
|
4488
4488
|
return c instanceof il;
|
|
4489
4489
|
}
|
|
4490
4490
|
const jn = 0, Dr = 1, dk = 2, Ii = 3, Jo = 4;
|
|
@@ -4854,7 +4854,7 @@ function Xw(c) {
|
|
|
4854
4854
|
const t = c.constructor.clone(c);
|
|
4855
4855
|
return t.__parent = c.__parent, t.__next = c.__next, t.__prev = c.__prev, kt(c) && kt(t) ? (e = c, (n = t).__first = e.__first, n.__last = e.__last, n.__size = e.__size, n.__format = e.__format, n.__indent = e.__indent, n.__dir = e.__dir, n) : Kt(c) && Kt(t) ? function(s, o) {
|
|
4856
4856
|
return s.__format = o.__format, s.__style = o.__style, s.__mode = o.__mode, s.__detail = o.__detail, s;
|
|
4857
|
-
}(t, c) :
|
|
4857
|
+
}(t, c) : Ir(c) && Ir(t) ? function(s, o) {
|
|
4858
4858
|
return s.__textFormat = o.__textFormat, s;
|
|
4859
4859
|
}(t, c) : t;
|
|
4860
4860
|
var n, e;
|
|
@@ -8025,7 +8025,7 @@ let R0 = class fS extends Vr {
|
|
|
8025
8025
|
}
|
|
8026
8026
|
};
|
|
8027
8027
|
function rf(c) {
|
|
8028
|
-
return
|
|
8028
|
+
return Pr(new R0(c));
|
|
8029
8029
|
}
|
|
8030
8030
|
function xy(c) {
|
|
8031
8031
|
return c instanceof R0;
|
|
@@ -8110,7 +8110,7 @@ function Cm(c, t) {
|
|
|
8110
8110
|
return t && c && c.codeHighlight && c.codeHighlight[t];
|
|
8111
8111
|
}
|
|
8112
8112
|
function gS(c, t) {
|
|
8113
|
-
return
|
|
8113
|
+
return Pr(new of(c, t));
|
|
8114
8114
|
}
|
|
8115
8115
|
function mS(c) {
|
|
8116
8116
|
return c instanceof of;
|
|
@@ -8150,7 +8150,7 @@ let ih = class yS extends ao {
|
|
|
8150
8150
|
}
|
|
8151
8151
|
};
|
|
8152
8152
|
function bS(c = "") {
|
|
8153
|
-
return
|
|
8153
|
+
return Pr(new ih(c));
|
|
8154
8154
|
}
|
|
8155
8155
|
const Lk = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
|
|
8156
8156
|
let xu = class vS extends Vr {
|
|
@@ -8252,7 +8252,7 @@ function Fk(c) {
|
|
|
8252
8252
|
return { node: t };
|
|
8253
8253
|
}
|
|
8254
8254
|
function Rd(c, t) {
|
|
8255
|
-
return
|
|
8255
|
+
return Pr(new xu(c, t));
|
|
8256
8256
|
}
|
|
8257
8257
|
function Mi(c) {
|
|
8258
8258
|
return c instanceof xu;
|
|
@@ -8300,7 +8300,7 @@ let af = class _S extends xu {
|
|
|
8300
8300
|
}
|
|
8301
8301
|
};
|
|
8302
8302
|
function wy(c, t) {
|
|
8303
|
-
return
|
|
8303
|
+
return Pr(new af(c, t));
|
|
8304
8304
|
}
|
|
8305
8305
|
function Pc(c) {
|
|
8306
8306
|
return c instanceof af;
|
|
@@ -8414,7 +8414,7 @@ function C1(c, t) {
|
|
|
8414
8414
|
o === null && Xa(143);
|
|
8415
8415
|
const [r] = o, a = r.getNode(), l = a.getParent();
|
|
8416
8416
|
if (wS(a, e)) {
|
|
8417
|
-
const i =
|
|
8417
|
+
const i = Yo(t);
|
|
8418
8418
|
if (so(l)) {
|
|
8419
8419
|
a.replace(i);
|
|
8420
8420
|
const u = ii();
|
|
@@ -8436,7 +8436,7 @@ function C1(c, t) {
|
|
|
8436
8436
|
const l = a.getKey();
|
|
8437
8437
|
if (ur(a)) {
|
|
8438
8438
|
if (!s.has(l)) {
|
|
8439
|
-
const i =
|
|
8439
|
+
const i = Yo(t);
|
|
8440
8440
|
ql(i, a.getChildren()), a.replace(i), s.add(l);
|
|
8441
8441
|
}
|
|
8442
8442
|
break;
|
|
@@ -8469,7 +8469,7 @@ function T1(c, t) {
|
|
|
8469
8469
|
if (ur(e) && t === e.getListType())
|
|
8470
8470
|
return e.getFirstChildOrThrow().insertBefore(s), c.remove(), e;
|
|
8471
8471
|
{
|
|
8472
|
-
const o =
|
|
8472
|
+
const o = Yo(t);
|
|
8473
8473
|
return o.append(s), c.replace(o), o;
|
|
8474
8474
|
}
|
|
8475
8475
|
}
|
|
@@ -8528,7 +8528,7 @@ function $k(c) {
|
|
|
8528
8528
|
const o = s.getFirstChild();
|
|
8529
8529
|
ur(o) && o.append(c);
|
|
8530
8530
|
} else if (ur(n)) {
|
|
8531
|
-
const o = ii(), r =
|
|
8531
|
+
const o = ii(), r = Yo(n.getListType());
|
|
8532
8532
|
o.append(r), r.append(c), s ? s.insertAfter(o) : e ? e.insertBefore(o) : n.append(o);
|
|
8533
8533
|
}
|
|
8534
8534
|
}
|
|
@@ -8543,9 +8543,9 @@ function Uk(c) {
|
|
|
8543
8543
|
else if (c.is(s))
|
|
8544
8544
|
n.insertAfter(c), t.isEmpty() && n.remove();
|
|
8545
8545
|
else {
|
|
8546
|
-
const o = t.getListType(), r = ii(), a =
|
|
8546
|
+
const o = t.getListType(), r = ii(), a = Yo(o);
|
|
8547
8547
|
r.append(a), c.getPreviousSiblings().forEach((u) => a.append(u));
|
|
8548
|
-
const l = ii(), i =
|
|
8548
|
+
const l = ii(), i = Yo(o);
|
|
8549
8549
|
l.append(i), ql(i, c.getNextSiblings()), n.insertBefore(r), n.insertAfter(l), n.replace(c);
|
|
8550
8550
|
}
|
|
8551
8551
|
}
|
|
@@ -8571,8 +8571,8 @@ function Hk() {
|
|
|
8571
8571
|
o.select();
|
|
8572
8572
|
const r = t.getNextSiblings();
|
|
8573
8573
|
if (r.length > 0) {
|
|
8574
|
-
const a =
|
|
8575
|
-
if (
|
|
8574
|
+
const a = Yo(e.getListType());
|
|
8575
|
+
if (Ir(o))
|
|
8576
8576
|
o.insertAfter(a);
|
|
8577
8577
|
else {
|
|
8578
8578
|
const l = ii();
|
|
@@ -8664,7 +8664,7 @@ let sf = class SS extends Vr {
|
|
|
8664
8664
|
else if (e.__last === this.getKey())
|
|
8665
8665
|
e.insertAfter(t);
|
|
8666
8666
|
else {
|
|
8667
|
-
const s =
|
|
8667
|
+
const s = Yo(e.getListType());
|
|
8668
8668
|
let o = this.getNextSibling();
|
|
8669
8669
|
for (; o; ) {
|
|
8670
8670
|
const r = o;
|
|
@@ -8682,7 +8682,7 @@ let sf = class SS extends Vr {
|
|
|
8682
8682
|
return super.insertAfter(t, n);
|
|
8683
8683
|
const s = this.getNextSiblings();
|
|
8684
8684
|
if (e.insertAfter(t, n), s.length !== 0) {
|
|
8685
|
-
const o =
|
|
8685
|
+
const o = Yo(e.getListType());
|
|
8686
8686
|
s.forEach((r) => o.append(r)), t.insertAfter(o, n);
|
|
8687
8687
|
}
|
|
8688
8688
|
return t;
|
|
@@ -8749,7 +8749,7 @@ let sf = class SS extends Vr {
|
|
|
8749
8749
|
return Gr(t);
|
|
8750
8750
|
}
|
|
8751
8751
|
canMergeWith(t) {
|
|
8752
|
-
return
|
|
8752
|
+
return Ir(t) || Gr(t);
|
|
8753
8753
|
}
|
|
8754
8754
|
extractWithChild(t, n) {
|
|
8755
8755
|
if (!Tt(n))
|
|
@@ -8761,7 +8761,7 @@ let sf = class SS extends Vr {
|
|
|
8761
8761
|
return !0;
|
|
8762
8762
|
}
|
|
8763
8763
|
createParentElementNode() {
|
|
8764
|
-
return
|
|
8764
|
+
return Yo("bullet");
|
|
8765
8765
|
}
|
|
8766
8766
|
};
|
|
8767
8767
|
function k1(c, t, n) {
|
|
@@ -8793,7 +8793,7 @@ function Wk(c) {
|
|
|
8793
8793
|
return c.getAttribute("type") !== "checkbox" ? { node: null } : { node: ii(c.hasAttribute("checked")) };
|
|
8794
8794
|
}
|
|
8795
8795
|
function ii(c) {
|
|
8796
|
-
return
|
|
8796
|
+
return Pr(new sf(void 0, c));
|
|
8797
8797
|
}
|
|
8798
8798
|
function Gr(c) {
|
|
8799
8799
|
return c instanceof sf;
|
|
@@ -8848,7 +8848,7 @@ let lf = class ES extends Vr {
|
|
|
8848
8848
|
return { ol: () => ({ conversion: A1, priority: 0 }), ul: () => ({ conversion: A1, priority: 0 }) };
|
|
8849
8849
|
}
|
|
8850
8850
|
static importJSON(t) {
|
|
8851
|
-
const n =
|
|
8851
|
+
const n = Yo(t.listType, t.start);
|
|
8852
8852
|
return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n;
|
|
8853
8853
|
}
|
|
8854
8854
|
exportDOM(t) {
|
|
@@ -8874,7 +8874,7 @@ let lf = class ES extends Vr {
|
|
|
8874
8874
|
if (ur(e))
|
|
8875
8875
|
s.append(e);
|
|
8876
8876
|
else if (kt(e)) {
|
|
8877
|
-
const o =
|
|
8877
|
+
const o = sr(e.getTextContent());
|
|
8878
8878
|
s.append(o);
|
|
8879
8879
|
} else
|
|
8880
8880
|
s.append(e);
|
|
@@ -8923,18 +8923,18 @@ function Jk(c) {
|
|
|
8923
8923
|
function A1(c) {
|
|
8924
8924
|
const t = c.nodeName.toLowerCase();
|
|
8925
8925
|
let n = null;
|
|
8926
|
-
return t === "ol" ? n =
|
|
8926
|
+
return t === "ol" ? n = Yo("number", c.start) : t === "ul" && (n = function(e) {
|
|
8927
8927
|
if (e.getAttribute("__lexicallisttype") === "check" || e.classList.contains("contains-task-list"))
|
|
8928
8928
|
return !0;
|
|
8929
8929
|
for (const s of e.childNodes)
|
|
8930
8930
|
if (Gi(s) && s.hasAttribute("aria-checked"))
|
|
8931
8931
|
return !0;
|
|
8932
8932
|
return !1;
|
|
8933
|
-
}(c) ?
|
|
8933
|
+
}(c) ? Yo("check") : Yo("bullet")), { after: Jk, node: n };
|
|
8934
8934
|
}
|
|
8935
8935
|
const j1 = { ol: "number", ul: "bullet" };
|
|
8936
|
-
function
|
|
8937
|
-
return
|
|
8936
|
+
function Yo(c, t = 1) {
|
|
8937
|
+
return Pr(new lf(c, t));
|
|
8938
8938
|
}
|
|
8939
8939
|
function ur(c) {
|
|
8940
8940
|
return c instanceof lf;
|
|
@@ -8974,7 +8974,7 @@ let OS = class NS extends Vr {
|
|
|
8974
8974
|
}
|
|
8975
8975
|
};
|
|
8976
8976
|
function Vk() {
|
|
8977
|
-
return
|
|
8977
|
+
return Pr(new OS());
|
|
8978
8978
|
}
|
|
8979
8979
|
function I1(c, t) {
|
|
8980
8980
|
return c.getEditorState().read(() => {
|
|
@@ -9063,7 +9063,7 @@ function Gk() {
|
|
|
9063
9063
|
return { node: jS() };
|
|
9064
9064
|
}
|
|
9065
9065
|
function jS() {
|
|
9066
|
-
return
|
|
9066
|
+
return Pr(new F0());
|
|
9067
9067
|
}
|
|
9068
9068
|
function Yk(c) {
|
|
9069
9069
|
return c instanceof F0;
|
|
@@ -9130,7 +9130,7 @@ class qh extends Vr {
|
|
|
9130
9130
|
}
|
|
9131
9131
|
}
|
|
9132
9132
|
function PS() {
|
|
9133
|
-
return
|
|
9133
|
+
return Pr(new qh());
|
|
9134
9134
|
}
|
|
9135
9135
|
function P1(c, t) {
|
|
9136
9136
|
return `${t || "56"}-${Math.floor(Math.random() * 1e3) + 1}`;
|
|
@@ -9347,7 +9347,7 @@ function Zk(c) {
|
|
|
9347
9347
|
return c.style !== null && (t.setFormat(c.style.textAlign), IS(c, t)), { node: t };
|
|
9348
9348
|
}
|
|
9349
9349
|
function kl(c = "h1", t) {
|
|
9350
|
-
return
|
|
9350
|
+
return Pr(new Wh(c, void 0, t));
|
|
9351
9351
|
}
|
|
9352
9352
|
const MS = /^(\d+(?:\.\d+)?)px$/, Hr = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 };
|
|
9353
9353
|
class da extends Vr {
|
|
@@ -9463,7 +9463,7 @@ function R1(c) {
|
|
|
9463
9463
|
}, node: s };
|
|
9464
9464
|
}
|
|
9465
9465
|
function Di(c, t = 1, n) {
|
|
9466
|
-
return
|
|
9466
|
+
return Pr(new da(c, t, n));
|
|
9467
9467
|
}
|
|
9468
9468
|
function xn(c) {
|
|
9469
9469
|
return c instanceof da;
|
|
@@ -9517,7 +9517,7 @@ function Xk(c) {
|
|
|
9517
9517
|
return MS.test(t.style.height) && (n = parseFloat(t.style.height)), { node: Wl(n) };
|
|
9518
9518
|
}
|
|
9519
9519
|
function Wl(c) {
|
|
9520
|
-
return
|
|
9520
|
+
return Pr(new Ql(c));
|
|
9521
9521
|
}
|
|
9522
9522
|
function Lr(c) {
|
|
9523
9523
|
return c instanceof Ql;
|
|
@@ -9541,7 +9541,7 @@ function Cy(c, t, n = !0) {
|
|
|
9541
9541
|
let a = Hr.NO_STATUS;
|
|
9542
9542
|
typeof n == "object" ? (s === 0 && n.rows && (a |= Hr.ROW), r === 0 && n.columns && (a |= Hr.COLUMN)) : n && (s === 0 && (a |= Hr.ROW), r === 0 && (a |= Hr.COLUMN));
|
|
9543
9543
|
const l = Di(a), i = Tn();
|
|
9544
|
-
i.append(
|
|
9544
|
+
i.append(sr()), l.append(i), o.append(l);
|
|
9545
9545
|
}
|
|
9546
9546
|
e.append(o);
|
|
9547
9547
|
}
|
|
@@ -10077,7 +10077,7 @@ class cO {
|
|
|
10077
10077
|
const s = e.getNodes().filter(xn);
|
|
10078
10078
|
s.length !== this.table.columns * this.table.rows ? (s.forEach((o) => {
|
|
10079
10079
|
if (kt(o)) {
|
|
10080
|
-
const r = Tn(), a =
|
|
10080
|
+
const r = Tn(), a = sr();
|
|
10081
10081
|
r.append(a), o.append(r), o.getChildren().forEach((l) => {
|
|
10082
10082
|
l !== r && l.remove();
|
|
10083
10083
|
});
|
|
@@ -10184,7 +10184,7 @@ function uO(c, t, n, e) {
|
|
|
10184
10184
|
const d = c.getCordsFromCellNode(f, o.table);
|
|
10185
10185
|
return c.getDOMCellFromCordsOrThrow(d.x, d.y, o.table);
|
|
10186
10186
|
}
|
|
10187
|
-
return o.listenersToRemove.add(n.registerCommand(el, i, Jo)), o.listenersToRemove.add(n.registerCommand(tl, i, Jo)), o.listenersToRemove.add(n.registerCommand(
|
|
10187
|
+
return o.listenersToRemove.add(n.registerCommand(el, i, Jo)), o.listenersToRemove.add(n.registerCommand(tl, i, Jo)), o.listenersToRemove.add(n.registerCommand(ti, (f) => {
|
|
10188
10188
|
const d = jt();
|
|
10189
10189
|
if (!Ls(d, c))
|
|
10190
10190
|
return !1;
|
|
@@ -10228,7 +10228,7 @@ function uO(c, t, n, e) {
|
|
|
10228
10228
|
if (typeof f == "string") {
|
|
10229
10229
|
const h = B1(n, d, c);
|
|
10230
10230
|
if (h)
|
|
10231
|
-
return F1(h, c, [
|
|
10231
|
+
return F1(h, c, [sr(f)]), !0;
|
|
10232
10232
|
}
|
|
10233
10233
|
}
|
|
10234
10234
|
return !1;
|
|
@@ -10721,7 +10721,7 @@ function pO(c) {
|
|
|
10721
10721
|
return { node: Vh() };
|
|
10722
10722
|
}
|
|
10723
10723
|
function Vh() {
|
|
10724
|
-
return
|
|
10724
|
+
return Pr(new Oa());
|
|
10725
10725
|
}
|
|
10726
10726
|
function pr(c) {
|
|
10727
10727
|
return c instanceof Oa;
|
|
@@ -10955,7 +10955,7 @@ class df extends ao {
|
|
|
10955
10955
|
}
|
|
10956
10956
|
function JS(c, t) {
|
|
10957
10957
|
const n = new df(c, t).setMode("token");
|
|
10958
|
-
return
|
|
10958
|
+
return Pr(n);
|
|
10959
10959
|
}
|
|
10960
10960
|
let U0 = class extends ss {
|
|
10961
10961
|
constructor(t, n) {
|
|
@@ -11085,7 +11085,7 @@ class Gh extends U0 {
|
|
|
11085
11085
|
function _O(c) {
|
|
11086
11086
|
return new Gh(c);
|
|
11087
11087
|
}
|
|
11088
|
-
const xO =
|
|
11088
|
+
const xO = ar.lazy(() => import("./ImageComponent-2df888a5.js"));
|
|
11089
11089
|
function wO(c) {
|
|
11090
11090
|
const t = c;
|
|
11091
11091
|
if (t.src.startsWith("file:///"))
|
|
@@ -11214,7 +11214,7 @@ function au({
|
|
|
11214
11214
|
caption: a,
|
|
11215
11215
|
key: l
|
|
11216
11216
|
}) {
|
|
11217
|
-
return
|
|
11217
|
+
return Pr(
|
|
11218
11218
|
new wu(
|
|
11219
11219
|
s,
|
|
11220
11220
|
c,
|
|
@@ -11231,7 +11231,7 @@ function au({
|
|
|
11231
11231
|
function Yh(c) {
|
|
11232
11232
|
return c instanceof wu;
|
|
11233
11233
|
}
|
|
11234
|
-
const SO =
|
|
11234
|
+
const SO = ar.lazy(() => import("./InlineImageComponent-01941102.js"));
|
|
11235
11235
|
function EO(c) {
|
|
11236
11236
|
if (c instanceof HTMLImageElement) {
|
|
11237
11237
|
const { alt: t, src: n, width: e, height: s } = c;
|
|
@@ -11373,7 +11373,7 @@ function KS({
|
|
|
11373
11373
|
caption: r,
|
|
11374
11374
|
key: a
|
|
11375
11375
|
}) {
|
|
11376
|
-
return
|
|
11376
|
+
return Pr(
|
|
11377
11377
|
new ff(
|
|
11378
11378
|
e,
|
|
11379
11379
|
c,
|
|
@@ -11581,7 +11581,7 @@ class pf extends ao {
|
|
|
11581
11581
|
}
|
|
11582
11582
|
function H0(c) {
|
|
11583
11583
|
const t = new pf(c);
|
|
11584
|
-
return t.setMode("segmented").toggleDirectionless(),
|
|
11584
|
+
return t.setMode("segmented").toggleDirectionless(), Pr(t);
|
|
11585
11585
|
}
|
|
11586
11586
|
var ZS = { exports: {} };
|
|
11587
11587
|
/*!
|
|
@@ -14343,7 +14343,7 @@ var ZS = { exports: {} };
|
|
|
14343
14343
|
], function() {
|
|
14344
14344
|
y.propFix[this.toLowerCase()] = this;
|
|
14345
14345
|
});
|
|
14346
|
-
function
|
|
14346
|
+
function Zo(H) {
|
|
14347
14347
|
var Q = H.match(Z) || [];
|
|
14348
14348
|
return Q.join(" ");
|
|
14349
14349
|
}
|
|
@@ -14359,10 +14359,10 @@ var ZS = { exports: {} };
|
|
|
14359
14359
|
return m(H) ? this.each(function(tt) {
|
|
14360
14360
|
y(this).addClass(H.call(this, tt, co(this)));
|
|
14361
14361
|
}) : (Q = ai(H), Q.length ? this.each(function() {
|
|
14362
|
-
if (se = co(this), te = this.nodeType === 1 && " " +
|
|
14362
|
+
if (se = co(this), te = this.nodeType === 1 && " " + Zo(se) + " ", te) {
|
|
14363
14363
|
for (be = 0; be < Q.length; be++)
|
|
14364
14364
|
me = Q[be], te.indexOf(" " + me + " ") < 0 && (te += me + " ");
|
|
14365
|
-
Ne =
|
|
14365
|
+
Ne = Zo(te), se !== Ne && this.setAttribute("class", Ne);
|
|
14366
14366
|
}
|
|
14367
14367
|
}) : this);
|
|
14368
14368
|
},
|
|
@@ -14371,11 +14371,11 @@ var ZS = { exports: {} };
|
|
|
14371
14371
|
return m(H) ? this.each(function(tt) {
|
|
14372
14372
|
y(this).removeClass(H.call(this, tt, co(this)));
|
|
14373
14373
|
}) : arguments.length ? (Q = ai(H), Q.length ? this.each(function() {
|
|
14374
|
-
if (se = co(this), te = this.nodeType === 1 && " " +
|
|
14374
|
+
if (se = co(this), te = this.nodeType === 1 && " " + Zo(se) + " ", te) {
|
|
14375
14375
|
for (be = 0; be < Q.length; be++)
|
|
14376
14376
|
for (me = Q[be]; te.indexOf(" " + me + " ") > -1; )
|
|
14377
14377
|
te = te.replace(" " + me + " ", " ");
|
|
14378
|
-
Ne =
|
|
14378
|
+
Ne = Zo(te), se !== Ne && this.setAttribute("class", Ne);
|
|
14379
14379
|
}
|
|
14380
14380
|
}) : this) : this.attr("class", "");
|
|
14381
14381
|
},
|
|
@@ -14400,7 +14400,7 @@ var ZS = { exports: {} };
|
|
|
14400
14400
|
hasClass: function(H) {
|
|
14401
14401
|
var Q, te, se = 0;
|
|
14402
14402
|
for (Q = " " + H + " "; te = this[se++]; )
|
|
14403
|
-
if (te.nodeType === 1 && (" " +
|
|
14403
|
+
if (te.nodeType === 1 && (" " + Zo(co(te)) + " ").indexOf(Q) > -1)
|
|
14404
14404
|
return !0;
|
|
14405
14405
|
return !1;
|
|
14406
14406
|
}
|
|
@@ -14425,7 +14425,7 @@ var ZS = { exports: {} };
|
|
|
14425
14425
|
// option.text throws exceptions (trac-14686, trac-14858)
|
|
14426
14426
|
// Strip and collapse whitespace
|
|
14427
14427
|
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
|
|
14428
|
-
|
|
14428
|
+
Zo(y.text(H));
|
|
14429
14429
|
}
|
|
14430
14430
|
},
|
|
14431
14431
|
select: {
|
|
@@ -14513,12 +14513,12 @@ var ZS = { exports: {} };
|
|
|
14513
14513
|
return y.event.trigger(H, Q, te, !0);
|
|
14514
14514
|
}
|
|
14515
14515
|
});
|
|
14516
|
-
var
|
|
14516
|
+
var Qo = /\[\]$/, Uo = /\r?\n/g, xi = /^(?:submit|button|image|reset|file)$/i, Yi = /^(?:input|select|textarea|keygen)/i;
|
|
14517
14517
|
function Zi(H, Q, te, se) {
|
|
14518
14518
|
var me;
|
|
14519
14519
|
if (Array.isArray(Q))
|
|
14520
14520
|
y.each(Q, function(be, Ne) {
|
|
14521
|
-
te ||
|
|
14521
|
+
te || Qo.test(H) ? se(H, Ne) : Zi(
|
|
14522
14522
|
H + "[" + (typeof Ne == "object" && Ne != null ? be : "") + "]",
|
|
14523
14523
|
Ne,
|
|
14524
14524
|
te,
|
|
@@ -15016,7 +15016,7 @@ var ZS = { exports: {} };
|
|
|
15016
15016
|
return Q || (h.createHTMLDocument ? (Q = v.implementation.createHTMLDocument(""), se = Q.createElement("base"), se.href = v.location.href, Q.head.appendChild(se)) : Q = v), me = z.exec(H), be = !te && [], me ? [Q.createElement(me[1])] : (me = Nt([H], Q, be), be && be.length && y(be).remove(), y.merge([], me.childNodes));
|
|
15017
15017
|
}, y.fn.load = function(H, Q, te) {
|
|
15018
15018
|
var se, me, be, Ne = this, tt = H.indexOf(" ");
|
|
15019
|
-
return tt > -1 && (se =
|
|
15019
|
+
return tt > -1 && (se = Zo(H.slice(tt)), H = H.slice(0, tt)), m(Q) ? (te = Q, Q = void 0) : Q && typeof Q == "object" && (me = "POST"), Ne.length > 0 && y.ajax({
|
|
15020
15020
|
url: H,
|
|
15021
15021
|
// If "type" variable is undefined, then "GET" method will be used.
|
|
15022
15022
|
// Make value of this field explicit since
|
|
@@ -15358,7 +15358,7 @@ function QS(c) {
|
|
|
15358
15358
|
function Ny(c) {
|
|
15359
15359
|
return c instanceof Il;
|
|
15360
15360
|
}
|
|
15361
|
-
const IO =
|
|
15361
|
+
const IO = ar.lazy(() => import("./PollComponent-074175be.js"));
|
|
15362
15362
|
function PO() {
|
|
15363
15363
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
15364
15364
|
}
|
|
@@ -15883,7 +15883,7 @@ function rE() {
|
|
|
15883
15883
|
const i = l + 1;
|
|
15884
15884
|
a.setNumber(i);
|
|
15885
15885
|
const u = a.getContentKey(), f = er(u);
|
|
15886
|
-
if (
|
|
15886
|
+
if (Ir(f)) {
|
|
15887
15887
|
const d = f.getFirstChild();
|
|
15888
15888
|
if (Kt(d)) {
|
|
15889
15889
|
const p = d.getTextContent(), h = p.replace(/^\[[^\]]*\]/, `[${Ay(i)}]`);
|
|
@@ -15897,7 +15897,7 @@ function rE() {
|
|
|
15897
15897
|
var v;
|
|
15898
15898
|
const s = Ln(), o = jt(), r = BO(0);
|
|
15899
15899
|
o && o.insertNodes([r]);
|
|
15900
|
-
const a = Tn(), l =
|
|
15900
|
+
const a = Tn(), l = sr("[?] ");
|
|
15901
15901
|
a.append(l), s.append(a), r.setContentKey(a.getKey());
|
|
15902
15902
|
const i = [];
|
|
15903
15903
|
t(s, (b) => {
|
|
@@ -15909,7 +15909,7 @@ function rE() {
|
|
|
15909
15909
|
});
|
|
15910
15910
|
let d = !1;
|
|
15911
15911
|
if (s.getChildren().forEach((b) => {
|
|
15912
|
-
if (
|
|
15912
|
+
if (Ir(b)) {
|
|
15913
15913
|
const _ = b.getFirstChild();
|
|
15914
15914
|
if ((_ && Nm(_) || _ && Kt(_) && _.getTextContent().includes("_______________________________")) && (d = !0, !Nm(_) && _.getTextContent().includes("_______________________________"))) {
|
|
15915
15915
|
const E = U1();
|
|
@@ -15922,7 +15922,7 @@ function rE() {
|
|
|
15922
15922
|
}
|
|
15923
15923
|
const p = [];
|
|
15924
15924
|
if (s.getChildren().forEach((b) => {
|
|
15925
|
-
if (
|
|
15925
|
+
if (Ir(b)) {
|
|
15926
15926
|
const _ = b.getFirstChild();
|
|
15927
15927
|
(_ && Nm(_) || _ && Kt(_) && _.getTextContent().includes("_______________________________")) && p.push(b);
|
|
15928
15928
|
}
|
|
@@ -15936,7 +15936,7 @@ function rE() {
|
|
|
15936
15936
|
const E = _ + 1;
|
|
15937
15937
|
b.setNumber(E);
|
|
15938
15938
|
const w = b.getContentKey(), x = er(w);
|
|
15939
|
-
if (
|
|
15939
|
+
if (Ir(x)) {
|
|
15940
15940
|
const y = x.getFirstChild();
|
|
15941
15941
|
if (Kt(y)) {
|
|
15942
15942
|
const S = y.getTextContent(), C = S.replace(/^\[[^\]]*\]/, `[${Ay(E)}]`);
|
|
@@ -16096,7 +16096,7 @@ function BO(c, t) {
|
|
|
16096
16096
|
function Am(c) {
|
|
16097
16097
|
return c instanceof Jl;
|
|
16098
16098
|
}
|
|
16099
|
-
class
|
|
16099
|
+
class Ko extends ao {
|
|
16100
16100
|
constructor(n, e, s, o) {
|
|
16101
16101
|
super(n, o);
|
|
16102
16102
|
Un(this, "__color");
|
|
@@ -16110,7 +16110,7 @@ class ri extends ao {
|
|
|
16110
16110
|
return this.__id;
|
|
16111
16111
|
}
|
|
16112
16112
|
static clone(n) {
|
|
16113
|
-
return new
|
|
16113
|
+
return new Ko(n.__text, n.__color, n.__id, n.__key);
|
|
16114
16114
|
}
|
|
16115
16115
|
createDOM(n) {
|
|
16116
16116
|
const e = super.createDOM(n);
|
|
@@ -16129,7 +16129,7 @@ class ri extends ao {
|
|
|
16129
16129
|
};
|
|
16130
16130
|
}
|
|
16131
16131
|
static importJSON(n) {
|
|
16132
|
-
return new
|
|
16132
|
+
return new Ko(
|
|
16133
16133
|
n.text,
|
|
16134
16134
|
n.color,
|
|
16135
16135
|
n.id
|
|
@@ -16276,7 +16276,7 @@ class ns extends Vr {
|
|
|
16276
16276
|
}
|
|
16277
16277
|
}
|
|
16278
16278
|
function q0(c = oE) {
|
|
16279
|
-
return
|
|
16279
|
+
return Pr(new ns(c));
|
|
16280
16280
|
}
|
|
16281
16281
|
function Ml(c) {
|
|
16282
16282
|
return c instanceof ns;
|
|
@@ -16366,7 +16366,7 @@ const iE = [
|
|
|
16366
16366
|
Qh,
|
|
16367
16367
|
Ld,
|
|
16368
16368
|
Jl,
|
|
16369
|
-
|
|
16369
|
+
Ko,
|
|
16370
16370
|
il,
|
|
16371
16371
|
Pl
|
|
16372
16372
|
];
|
|
@@ -16488,7 +16488,7 @@ function qO({
|
|
|
16488
16488
|
const g = m.map((v) => {
|
|
16489
16489
|
let b = a;
|
|
16490
16490
|
const _ = v.getPreviousSibling();
|
|
16491
|
-
if (_ &&
|
|
16491
|
+
if (_ && Ir(_)) {
|
|
16492
16492
|
const E = _.getChildren().filter((w) => w.getType() === "text");
|
|
16493
16493
|
E.length > 1 && (b = E[1].getTextContent());
|
|
16494
16494
|
}
|
|
@@ -16509,13 +16509,13 @@ function qO({
|
|
|
16509
16509
|
if (n) {
|
|
16510
16510
|
const m = Tn();
|
|
16511
16511
|
m.setFormat("left");
|
|
16512
|
-
const b = Ln().getChildren().filter(pr).length, _ = lh(a || `Table ${h}`, b), E = new
|
|
16512
|
+
const b = Ln().getChildren().filter(pr).length, _ = lh(a || `Table ${h}`, b), E = new Ko(
|
|
16513
16513
|
`Table ${h}:`,
|
|
16514
16514
|
"black",
|
|
16515
16515
|
_
|
|
16516
16516
|
);
|
|
16517
16517
|
E.setStyle("font-weight: bold; margin-right: 8px;");
|
|
16518
|
-
const w = a.trim() === "" ? "." : a, x =
|
|
16518
|
+
const w = a.trim() === "" ? "." : a, x = sr(w);
|
|
16519
16519
|
x.setStyle(
|
|
16520
16520
|
a ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
|
|
16521
16521
|
), m.getChildren().forEach((O) => O.remove());
|
|
@@ -16548,23 +16548,23 @@ function qO({
|
|
|
16548
16548
|
g.forEach((b) => {
|
|
16549
16549
|
var C;
|
|
16550
16550
|
const _ = b.getPreviousSibling(), x = Ln().getChildren().filter(pr).length, y = b.__captionId || lh(`Table ${v}`, x), S = b.getNextSibling();
|
|
16551
|
-
if (S &&
|
|
16551
|
+
if (S && Ir(S) && S.getChildren().forEach((O) => {
|
|
16552
16552
|
O.getTextContent().startsWith("Table") && O.remove();
|
|
16553
|
-
}), _ &&
|
|
16553
|
+
}), _ && Ir(_)) {
|
|
16554
16554
|
let O = null;
|
|
16555
16555
|
if (_.getChildren().forEach((F) => {
|
|
16556
16556
|
F.getTextContent().startsWith("Table") && (O = F);
|
|
16557
16557
|
}), O) {
|
|
16558
16558
|
const F = ((C = O.getId) == null ? void 0 : C.call(O)) || y;
|
|
16559
16559
|
O.remove();
|
|
16560
|
-
const B = new
|
|
16560
|
+
const B = new Ko(
|
|
16561
16561
|
`Table ${v}:`,
|
|
16562
16562
|
"black",
|
|
16563
16563
|
F
|
|
16564
16564
|
), R = _.getFirstChild();
|
|
16565
16565
|
R !== null ? R.insertBefore(B) : _.append(B);
|
|
16566
16566
|
} else if (n) {
|
|
16567
|
-
const F = new
|
|
16567
|
+
const F = new Ko(
|
|
16568
16568
|
`Table ${v}:`,
|
|
16569
16569
|
"black",
|
|
16570
16570
|
y
|
|
@@ -16574,14 +16574,14 @@ function qO({
|
|
|
16574
16574
|
} else {
|
|
16575
16575
|
const O = `Table ${v}:`, F = Tn();
|
|
16576
16576
|
F.setFormat("left");
|
|
16577
|
-
const B = new
|
|
16577
|
+
const B = new Ko(
|
|
16578
16578
|
O,
|
|
16579
16579
|
"black",
|
|
16580
16580
|
y
|
|
16581
16581
|
);
|
|
16582
16582
|
B.setStyle("font-weight: bold; margin-right: 5px;");
|
|
16583
|
-
const R = a.trim() === "" ? "Caption text here" : a, L =
|
|
16584
|
-
L.setStyle("color: black; font-style: italic; font-weight: normal;"), F.append(B), F.append(
|
|
16583
|
+
const R = a.trim() === "" ? "Caption text here" : a, L = sr(R);
|
|
16584
|
+
L.setStyle("color: black; font-style: italic; font-weight: normal;"), F.append(B), F.append(sr(" ")), F.append(L), b.insertBefore(F);
|
|
16585
16585
|
}
|
|
16586
16586
|
v++;
|
|
16587
16587
|
});
|
|
@@ -16756,7 +16756,7 @@ function WO(c) {
|
|
|
16756
16756
|
if (_r(s))
|
|
16757
16757
|
return !1;
|
|
16758
16758
|
if (kt(s)) {
|
|
16759
|
-
if (!
|
|
16759
|
+
if (!Ir(s) || s.__indent !== 0)
|
|
16760
16760
|
return !1;
|
|
16761
16761
|
const o = s.getChildren(), r = o.length;
|
|
16762
16762
|
for (let a = 0; a < r; a++) {
|
|
@@ -16783,7 +16783,7 @@ var VO = JO(function(c) {
|
|
|
16783
16783
|
});
|
|
16784
16784
|
function KO(c, t, n, e) {
|
|
16785
16785
|
const s = (r) => r instanceof n, o = (r) => {
|
|
16786
|
-
const a =
|
|
16786
|
+
const a = sr(r.getTextContent());
|
|
16787
16787
|
a.setFormat(r.getFormat()), r.replace(a);
|
|
16788
16788
|
};
|
|
16789
16789
|
return [c.registerNodeTransform(ao, (r) => {
|
|
@@ -17257,7 +17257,7 @@ class tg extends Vr {
|
|
|
17257
17257
|
}
|
|
17258
17258
|
}
|
|
17259
17259
|
function vE() {
|
|
17260
|
-
return
|
|
17260
|
+
return Pr(new tg());
|
|
17261
17261
|
}
|
|
17262
17262
|
function uN(c) {
|
|
17263
17263
|
return c instanceof tg;
|
|
@@ -17339,7 +17339,7 @@ function dN(c) {
|
|
|
17339
17339
|
return c.style !== null && t.setFormat(c.style.textAlign), { node: t };
|
|
17340
17340
|
}
|
|
17341
17341
|
function yd(c) {
|
|
17342
|
-
return
|
|
17342
|
+
return Pr(new ng(c));
|
|
17343
17343
|
}
|
|
17344
17344
|
function uh(c) {
|
|
17345
17345
|
return c instanceof ng;
|
|
@@ -17404,7 +17404,7 @@ function fN(c) {
|
|
|
17404
17404
|
}, jn), c.registerCommand(Bp, () => {
|
|
17405
17405
|
const t = jt();
|
|
17406
17406
|
return !!Tt(t) && (t.removeText(), !0);
|
|
17407
|
-
}, jn), c.registerCommand(
|
|
17407
|
+
}, jn), c.registerCommand(ti, (t) => {
|
|
17408
17408
|
const n = jt();
|
|
17409
17409
|
return !!Tt(n) && (n.formatText(t), !0);
|
|
17410
17410
|
}, jn), c.registerCommand(Tl, (t) => {
|
|
@@ -17757,7 +17757,7 @@ function _N(c, t, n, e) {
|
|
|
17757
17757
|
if (c.length === 1) {
|
|
17758
17758
|
let o, r = c[0];
|
|
17759
17759
|
t === 0 ? [o, r] = r.splitText(n) : [, o, r] = r.splitText(t, n);
|
|
17760
|
-
const a =
|
|
17760
|
+
const a = sr(e.text);
|
|
17761
17761
|
return a.setFormat(o.getFormat()), a.setDetail(o.getDetail()), a.setStyle(o.getStyle()), s.append(a), o.replace(s), r;
|
|
17762
17762
|
}
|
|
17763
17763
|
if (c.length > 1) {
|
|
@@ -17777,7 +17777,7 @@ function _N(c, t, n, e) {
|
|
|
17777
17777
|
}
|
|
17778
17778
|
a += m;
|
|
17779
17779
|
}
|
|
17780
|
-
const u = jt(), f = u ? u.getNodes().find(Kt) : void 0, d =
|
|
17780
|
+
const u = jt(), f = u ? u.getNodes().find(Kt) : void 0, d = sr(r.getTextContent());
|
|
17781
17781
|
return d.setFormat(r.getFormat()), d.setDetail(r.getDetail()), d.setStyle(r.getStyle()), s.append(d, ...l), f && f === r && (Tt(u) ? d.select(u.anchor.offset, u.focus.offset) : io(u) && d.select(0, d.getTextContent().length)), r.replace(s), i;
|
|
17782
17782
|
}
|
|
17783
17783
|
}
|
|
@@ -17978,34 +17978,36 @@ function e_(c, t, n, e) {
|
|
|
17978
17978
|
s.onload = () => {
|
|
17979
17979
|
const o = s.result, a = { altText: c.name, src: o };
|
|
17980
17980
|
t.update(() => {
|
|
17981
|
-
const
|
|
17982
|
-
(
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
const
|
|
17988
|
-
h.
|
|
17989
|
-
const m =
|
|
17990
|
-
|
|
17991
|
-
|
|
17992
|
-
|
|
17981
|
+
const u = Ln().getChildren().filter(
|
|
17982
|
+
(v) => Ir(v) && v.getChildren().some(
|
|
17983
|
+
(b) => b.getTextContent().startsWith("Figure")
|
|
17984
|
+
)
|
|
17985
|
+
).length + 1, f = `Figure ${u}:`, d = Xc("Figure", u, e), p = new Ko(f, "black", d);
|
|
17986
|
+
p.__captionId = d;
|
|
17987
|
+
const h = au({ ...a, figureLabel: f });
|
|
17988
|
+
h.__captionId = d;
|
|
17989
|
+
const m = Tn();
|
|
17990
|
+
m.setFormat("left");
|
|
17991
|
+
const g = fa();
|
|
17992
|
+
if (m.append(h, g), n) {
|
|
17993
|
+
const b = sr("");
|
|
17994
|
+
b.setStyle(
|
|
17993
17995
|
"color: black; font-style: italic; font-weight: bold;"
|
|
17994
|
-
),
|
|
17996
|
+
), m.append(p, b);
|
|
17995
17997
|
}
|
|
17996
|
-
bi([
|
|
17997
|
-
const v = Ln().getChildren()
|
|
17998
|
+
if (bi([m]), so(h.getParentOrThrow()) && by(h, Tn).selectEnd(), n) {
|
|
17999
|
+
const v = Ln().getChildren();
|
|
17998
18000
|
let b = 1;
|
|
17999
18001
|
v.forEach((_) => {
|
|
18000
|
-
|
|
18001
|
-
(w) => w.getTextContent().startsWith("Figure")
|
|
18002
|
-
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
18002
|
+
if (Ir(_)) {
|
|
18003
|
+
const E = _.getChildren().find((w) => w.getTextContent().startsWith("Figure"));
|
|
18004
|
+
if (E) {
|
|
18005
|
+
const w = E.getTextContent(), x = w.indexOf(":"), y = x !== -1 ? w.slice(x) : "", S = `Figure ${b++}${y}`;
|
|
18006
|
+
(Kt(E) || E instanceof Ko) && E.setTextContent(S);
|
|
18007
|
+
}
|
|
18006
18008
|
}
|
|
18007
18009
|
});
|
|
18008
|
-
}
|
|
18010
|
+
}
|
|
18009
18011
|
});
|
|
18010
18012
|
}, s.readAsDataURL(c);
|
|
18011
18013
|
}
|
|
@@ -18089,13 +18091,13 @@ function OE({
|
|
|
18089
18091
|
o += 1;
|
|
18090
18092
|
const a = Xc("Figure", o, t);
|
|
18091
18093
|
if (c) {
|
|
18092
|
-
const l = `Figure ${o}:`, i = Xc("Figure", o, t), u = new
|
|
18094
|
+
const l = `Figure ${o}:`, i = Xc("Figure", o, t), u = new Ko(l, "black", i);
|
|
18093
18095
|
u.__captionId = i, u.__captionId = a;
|
|
18094
18096
|
const f = au({ ...r });
|
|
18095
18097
|
f.__captionId = a;
|
|
18096
18098
|
const d = Tn();
|
|
18097
18099
|
d.setFormat("left");
|
|
18098
|
-
const p = e.trim() === "" ? "" : e, h =
|
|
18100
|
+
const p = e.trim() === "" ? "" : e, h = sr(p);
|
|
18099
18101
|
h.setStyle(
|
|
18100
18102
|
p ? "color: black; font-style: italic; font-weight: bold;" : "color: gray; font-style: italic; font-weight: normal;"
|
|
18101
18103
|
), d.append(f, u, h), bi([d]), so(f.getParentOrThrow()) && by(f, Tn).selectEnd();
|
|
@@ -18104,13 +18106,13 @@ function OE({
|
|
|
18104
18106
|
i.setFormat("left"), i.append(l), bi([i]), so(l.getParentOrThrow()) && by(l, Tn).selectEnd();
|
|
18105
18107
|
}
|
|
18106
18108
|
return n.update(() => {
|
|
18107
|
-
const i = Ln().getChildren().filter(
|
|
18109
|
+
const i = Ln().getChildren().filter(Ir);
|
|
18108
18110
|
let u = 1;
|
|
18109
18111
|
i.forEach((f) => {
|
|
18110
18112
|
const d = f.getChildren().find((b) => b.getTextContent().startsWith("Figure"));
|
|
18111
18113
|
if (!d)
|
|
18112
18114
|
return;
|
|
18113
|
-
const p = d.__captionId, h = f.getChildren().find(Yh), m = h ? h.__captionId : void 0, g = p ?? m ?? Xc(d.getTextContent(), u, t), v = new
|
|
18115
|
+
const p = d.__captionId, h = f.getChildren().find(Yh), m = h ? h.__captionId : void 0, g = p ?? m ?? Xc(d.getTextContent(), u, t), v = new Ko(
|
|
18114
18116
|
`Figure ${u}:`,
|
|
18115
18117
|
"black",
|
|
18116
18118
|
g
|
|
@@ -18703,7 +18705,7 @@ function u_(c) {
|
|
|
18703
18705
|
if (c.getChildrenSize() !== 1)
|
|
18704
18706
|
return !1;
|
|
18705
18707
|
const t = c.getFirstChildOrThrow();
|
|
18706
|
-
return !(!
|
|
18708
|
+
return !(!Ir(t) || !t.isEmpty());
|
|
18707
18709
|
}
|
|
18708
18710
|
function eA(c) {
|
|
18709
18711
|
const t = c.getLastDescendant();
|
|
@@ -18800,7 +18802,7 @@ function tA({
|
|
|
18800
18802
|
$.setColSpan(N).setRowSpan(T), D = $;
|
|
18801
18803
|
const M = u_($);
|
|
18802
18804
|
let z;
|
|
18803
|
-
M &&
|
|
18805
|
+
M && Ir(z = $.getFirstChild()) && z.remove();
|
|
18804
18806
|
} else
|
|
18805
18807
|
xn(D) && (u_($) || D.append(...$.getChildren()), $.remove());
|
|
18806
18808
|
}
|
|
@@ -19380,14 +19382,14 @@ function FE({ isEditable: c = !0 }) {
|
|
|
19380
19382
|
[t, c]
|
|
19381
19383
|
);
|
|
19382
19384
|
}
|
|
19383
|
-
const BE =
|
|
19385
|
+
const BE = ar.createContext(null), f_ = 4;
|
|
19384
19386
|
function To({
|
|
19385
19387
|
children: c,
|
|
19386
19388
|
className: t,
|
|
19387
19389
|
onClick: n,
|
|
19388
19390
|
title: e
|
|
19389
19391
|
}) {
|
|
19390
|
-
const s = tr(null), o =
|
|
19392
|
+
const s = tr(null), o = ar.useContext(BE);
|
|
19391
19393
|
if (o === null)
|
|
19392
19394
|
throw new Error("DropDownItem must be used within a DropDown");
|
|
19393
19395
|
const { registerItem: r } = o;
|
|
@@ -19539,8 +19541,8 @@ const p_ = 8, h_ = 72, Ps = {
|
|
|
19539
19541
|
currentElementSelect: a,
|
|
19540
19542
|
wpAndTaskId: l
|
|
19541
19543
|
}) => {
|
|
19542
|
-
const [i, u] =
|
|
19543
|
-
|
|
19544
|
+
const [i, u] = ar.useState(c), [f, d] = ar.useState(e), [p, h] = ar.useState("");
|
|
19545
|
+
ar.useState([]), ar.useState("");
|
|
19544
19546
|
const { heading: m } = s || {}, g = (w) => {
|
|
19545
19547
|
w && w.title && n.update(() => {
|
|
19546
19548
|
if (n.isEditable()) {
|
|
@@ -19593,9 +19595,9 @@ const p_ = 8, h_ = 72, Ps = {
|
|
|
19593
19595
|
}, E = () => {
|
|
19594
19596
|
u("15");
|
|
19595
19597
|
};
|
|
19596
|
-
return
|
|
19598
|
+
return ar.useEffect(() => {
|
|
19597
19599
|
E();
|
|
19598
|
-
}, [o]),
|
|
19600
|
+
}, [o]), ar.useEffect(() => {
|
|
19599
19601
|
const w = () => {
|
|
19600
19602
|
n.update(() => {
|
|
19601
19603
|
const x = jt();
|
|
@@ -19611,7 +19613,7 @@ const p_ = 8, h_ = 72, Ps = {
|
|
|
19611
19613
|
return n.registerUpdateListener(w), () => {
|
|
19612
19614
|
n.registerUpdateListener(w);
|
|
19613
19615
|
};
|
|
19614
|
-
}, [n]),
|
|
19616
|
+
}, [n]), ar.useEffect(() => {
|
|
19615
19617
|
var w, x, y, S, C;
|
|
19616
19618
|
switch (r.tagName) {
|
|
19617
19619
|
case "P":
|
|
@@ -19646,7 +19648,7 @@ const p_ = 8, h_ = 72, Ps = {
|
|
|
19646
19648
|
d("paragraph"), u("15");
|
|
19647
19649
|
break;
|
|
19648
19650
|
}
|
|
19649
|
-
}, [r]),
|
|
19651
|
+
}, [r]), ar.useEffect(() => {
|
|
19650
19652
|
var x, y, S, C, O;
|
|
19651
19653
|
if (!a) {
|
|
19652
19654
|
u("15"), d("paragraph");
|
|
@@ -20020,7 +20022,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
20020
20022
|
function g() {
|
|
20021
20023
|
const [C] = kn(), O = (B, R) => {
|
|
20022
20024
|
C.update(() => {
|
|
20023
|
-
const L = Tn(), N =
|
|
20025
|
+
const L = Tn(), N = sr(`${B}`);
|
|
20024
20026
|
N.setStyle(R.style), N.setFormat(R.format), L.append(N), C.getRootElement() && B && B.length > 0 && (C.getEditorState().read(() => Ln()), El(L));
|
|
20025
20027
|
});
|
|
20026
20028
|
}, F = () => {
|
|
@@ -20090,7 +20092,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
20090
20092
|
}).map((X) => X.style).filter((X) => X).map((X) => X.split(";").map((G) => G.trim()).filter((G) => !G.startsWith("font-family")).filter((G) => !G.startsWith("font-size")).filter((G) => !G.startsWith("border")).filter((G) => !G.startsWith("width")).join("; ")).join("; ");
|
|
20091
20093
|
const I = b(K, "font-weight"), q = b(K, "font-style"), W = b(K, "text-decoration");
|
|
20092
20094
|
K = `${K}; font-weight: ${I}`, K = `${K}; font-style: ${q}`, K = `${K}; color: black`, K = `${K}; text-decoration: ${W}`;
|
|
20093
|
-
const U =
|
|
20095
|
+
const U = sr($.innerText.trim()), Y = w(I, q, W);
|
|
20094
20096
|
U.setFormat(Y), K && U.setStyle(K);
|
|
20095
20097
|
const Z = Tn();
|
|
20096
20098
|
Z.append(U), M.append(Z), D.append(M);
|
|
@@ -20120,7 +20122,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
20120
20122
|
const V = $.getAttribute("id").split("_")[1] * 2;
|
|
20121
20123
|
setTimeout(() => {
|
|
20122
20124
|
f.update(() => {
|
|
20123
|
-
const K = kl(`${$.getAttribute("aria-level") === "1" ? "h1" : $.getAttribute("aria-level") === "2" ? "h2" : $.getAttribute("aria-level") === "3" ? "h3" : $.getAttribute("aria-level") === "4" ? "h4" : "h5"}`), I =
|
|
20125
|
+
const K = kl(`${$.getAttribute("aria-level") === "1" ? "h1" : $.getAttribute("aria-level") === "2" ? "h2" : $.getAttribute("aria-level") === "3" ? "h3" : $.getAttribute("aria-level") === "4" ? "h4" : "h5"}`), I = sr($.innerText);
|
|
20124
20126
|
K.append(I), El(K);
|
|
20125
20127
|
});
|
|
20126
20128
|
}, V);
|
|
@@ -20128,7 +20130,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
20128
20130
|
const V = $.getAttribute("id").split("_")[1] * 2;
|
|
20129
20131
|
setTimeout(() => {
|
|
20130
20132
|
f.update(() => {
|
|
20131
|
-
const K =
|
|
20133
|
+
const K = Yo("ul"), I = ii(), q = sr(`${$.textContent}`);
|
|
20132
20134
|
let Y = Array.from($.querySelectorAll("span")).map((ee) => {
|
|
20133
20135
|
const oe = ee.getAttribute("style") || "";
|
|
20134
20136
|
return {
|
|
@@ -20144,7 +20146,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
20144
20146
|
const V = $.getAttribute("id").split("_")[1] * 2;
|
|
20145
20147
|
setTimeout(() => {
|
|
20146
20148
|
f.update(() => {
|
|
20147
|
-
const K =
|
|
20149
|
+
const K = Yo("ol"), I = ii(), q = sr(`${$.textContent}`);
|
|
20148
20150
|
let Y = Array.from($.querySelectorAll("span")).map((oe) => {
|
|
20149
20151
|
const ue = oe.getAttribute("style") || "";
|
|
20150
20152
|
return {
|
|
@@ -20366,7 +20368,7 @@ function HE({
|
|
|
20366
20368
|
return dt != null && dt.includes(
|
|
20367
20369
|
'<meta http-equiv=Content-Type content="text/html; charset=utf-8">'
|
|
20368
20370
|
) && (dt != null && dt.includes("microsoft-com")) ? (kE(Bt, d, "", i), !1) : /^https?:\/\/\S+$/.test(Mt) ? (Bt.preventDefault(), d.update(() => {
|
|
20369
|
-
const tn = Tn(), Nt =
|
|
20371
|
+
const tn = Tn(), Nt = sr(Mt), rn = Rd(Mt);
|
|
20370
20372
|
rn.append(Nt), tn.append(rn), bi([tn]);
|
|
20371
20373
|
}), !0) : dt && !(dt != null && dt.includes("Outline")) && !(dt != null && dt.includes(
|
|
20372
20374
|
'<meta http-equiv=Content-Type content="text/html; charset=utf-8">'
|
|
@@ -20620,7 +20622,7 @@ function HE({
|
|
|
20620
20622
|
{
|
|
20621
20623
|
disabled: !Se,
|
|
20622
20624
|
onClick: () => {
|
|
20623
|
-
p.dispatchCommand(
|
|
20625
|
+
p.dispatchCommand(ti, "bold");
|
|
20624
20626
|
},
|
|
20625
20627
|
className: "toolbar-item spaced " + (A ? "active" : ""),
|
|
20626
20628
|
title: Ms ? "Bold (⌘B)" : "Bold (Ctrl+B)",
|
|
@@ -20634,7 +20636,7 @@ function HE({
|
|
|
20634
20636
|
{
|
|
20635
20637
|
disabled: !Se,
|
|
20636
20638
|
onClick: () => {
|
|
20637
|
-
p.dispatchCommand(
|
|
20639
|
+
p.dispatchCommand(ti, "italic");
|
|
20638
20640
|
},
|
|
20639
20641
|
className: "toolbar-item spaced " + (j ? "active" : ""),
|
|
20640
20642
|
title: Ms ? "Italic (⌘I)" : "Italic (Ctrl+I)",
|
|
@@ -20648,7 +20650,7 @@ function HE({
|
|
|
20648
20650
|
{
|
|
20649
20651
|
disabled: !Se,
|
|
20650
20652
|
onClick: () => {
|
|
20651
|
-
p.dispatchCommand(
|
|
20653
|
+
p.dispatchCommand(ti, "underline");
|
|
20652
20654
|
},
|
|
20653
20655
|
className: "toolbar-item spaced " + (M ? "active" : ""),
|
|
20654
20656
|
title: Ms ? "Underline (⌘U)" : "Underline (Ctrl+U)",
|
|
@@ -20680,7 +20682,7 @@ function HE({
|
|
|
20680
20682
|
{
|
|
20681
20683
|
onClick: () => {
|
|
20682
20684
|
p.dispatchCommand(
|
|
20683
|
-
|
|
20685
|
+
ti,
|
|
20684
20686
|
"strikethrough"
|
|
20685
20687
|
);
|
|
20686
20688
|
},
|
|
@@ -20697,7 +20699,7 @@ function HE({
|
|
|
20697
20699
|
To,
|
|
20698
20700
|
{
|
|
20699
20701
|
onClick: () => {
|
|
20700
|
-
p.dispatchCommand(
|
|
20702
|
+
p.dispatchCommand(ti, "subscript");
|
|
20701
20703
|
},
|
|
20702
20704
|
className: "item " + lp(I),
|
|
20703
20705
|
title: "Subscript",
|
|
@@ -20713,7 +20715,7 @@ function HE({
|
|
|
20713
20715
|
{
|
|
20714
20716
|
onClick: () => {
|
|
20715
20717
|
p.dispatchCommand(
|
|
20716
|
-
|
|
20718
|
+
ti,
|
|
20717
20719
|
"superscript"
|
|
20718
20720
|
);
|
|
20719
20721
|
},
|
|
@@ -20967,7 +20969,7 @@ let eb = class WE extends Vr {
|
|
|
20967
20969
|
}
|
|
20968
20970
|
};
|
|
20969
20971
|
function fh(c) {
|
|
20970
|
-
return
|
|
20972
|
+
return Pr(new eb(c));
|
|
20971
20973
|
}
|
|
20972
20974
|
function Rl(c) {
|
|
20973
20975
|
return c instanceof eb;
|
|
@@ -21075,17 +21077,17 @@ var y_ = { error: null }, RA = function(c) {
|
|
|
21075
21077
|
var o = this.state.error, r = this.props, a = r.fallbackRender, l = r.FallbackComponent, i = r.fallback;
|
|
21076
21078
|
if (o !== null) {
|
|
21077
21079
|
var u = { error: o, resetErrorBoundary: this.resetErrorBoundary };
|
|
21078
|
-
if (
|
|
21080
|
+
if (ar.isValidElement(i))
|
|
21079
21081
|
return i;
|
|
21080
21082
|
if (typeof a == "function")
|
|
21081
21083
|
return a(u);
|
|
21082
21084
|
if (l)
|
|
21083
|
-
return
|
|
21085
|
+
return ar.createElement(l, u);
|
|
21084
21086
|
throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
|
|
21085
21087
|
}
|
|
21086
21088
|
return this.props.children;
|
|
21087
21089
|
}, e;
|
|
21088
|
-
}(
|
|
21090
|
+
}(ar.Component);
|
|
21089
21091
|
function Fd({ children: c, onError: t }) {
|
|
21090
21092
|
return ge.jsx(RA, { fallback: ge.jsx("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: t, children: c });
|
|
21091
21093
|
}
|
|
@@ -35690,7 +35692,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
35690
35692
|
return k;
|
|
35691
35693
|
}
|
|
35692
35694
|
e && (_i = document.createElement("div").style, "AnimationEvent" in window || (delete xr.animationend.animation, delete xr.animationiteration.animation, delete xr.animationstart.animation), "TransitionEvent" in window || delete xr.transitionend.transition);
|
|
35693
|
-
var bo = lo("animationend"),
|
|
35695
|
+
var bo = lo("animationend"), Zo = lo("animationiteration"), co = lo("animationstart"), ai = lo("transitionend"), Da = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Map(), dr = ["abort", "abort", bo, "animationEnd", Zo, "animationIteration", co, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", ai, "transitionEnd", "waiting", "waiting"];
|
|
35694
35696
|
function Li(k, P) {
|
|
35695
35697
|
for (var J = 0; J < k.length; J += 2) {
|
|
35696
35698
|
var re = k[J], ie = "on" + ((ie = k[J + 1])[0].toUpperCase() + ie.slice(1));
|
|
@@ -35703,7 +35705,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
35703
35705
|
var P;
|
|
35704
35706
|
return 1 & k ? (zn = 15, 1) : 2 & k ? (zn = 14, 2) : 4 & k ? (zn = 13, 4) : (P = 24 & k) != 0 ? (zn = 12, P) : 32 & k ? (zn = 11, 32) : (P = 192 & k) != 0 ? (zn = 10, P) : 256 & k ? (zn = 9, 256) : (P = 3584 & k) != 0 ? (zn = 8, P) : 4096 & k ? (zn = 7, 4096) : (P = 4186112 & k) != 0 ? (zn = 6, P) : (P = 62914560 & k) != 0 ? (zn = 5, P) : 67108864 & k ? (zn = 4, 67108864) : 134217728 & k ? (zn = 3, 134217728) : (P = 805306368 & k) != 0 ? (zn = 2, P) : 1073741824 & k ? (zn = 1, 1073741824) : (zn = 8, k);
|
|
35705
35707
|
}
|
|
35706
|
-
function
|
|
35708
|
+
function Qo(k, P) {
|
|
35707
35709
|
var J = k.pendingLanes;
|
|
35708
35710
|
if (J === 0)
|
|
35709
35711
|
return zn = 0;
|
|
@@ -36190,7 +36192,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
36190
36192
|
hn = nr;
|
|
36191
36193
|
break;
|
|
36192
36194
|
case bo:
|
|
36193
|
-
case
|
|
36195
|
+
case Zo:
|
|
36194
36196
|
case co:
|
|
36195
36197
|
hn = be;
|
|
36196
36198
|
break;
|
|
@@ -37068,7 +37070,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37068
37070
|
pc[k]._workInProgressVersionPrimary = null;
|
|
37069
37071
|
pc.length = 0;
|
|
37070
37072
|
}
|
|
37071
|
-
var Hu = S.ReactCurrentDispatcher, Hi = S.ReactCurrentBatchConfig, qu = 0, oo = null,
|
|
37073
|
+
var Hu = S.ReactCurrentDispatcher, Hi = S.ReactCurrentBatchConfig, qu = 0, oo = null, Xo = null, Ro = null, Df = !1, Wu = !1;
|
|
37072
37074
|
function hi() {
|
|
37073
37075
|
throw Error(i(321));
|
|
37074
37076
|
}
|
|
@@ -37086,9 +37088,9 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37086
37088
|
do
|
|
37087
37089
|
if (Wu = !1, !(pe < 25))
|
|
37088
37090
|
throw Error(i(301));
|
|
37089
|
-
while (pe += 1, Ro =
|
|
37091
|
+
while (pe += 1, Ro = Xo = null, P.updateQueue = null, Hu.current = H2, k = J(re, ie), Wu);
|
|
37090
37092
|
}
|
|
37091
|
-
if (Hu.current = zf, P =
|
|
37093
|
+
if (Hu.current = zf, P = Xo !== null && Xo.next !== null, qu = 0, Ro = Xo = oo = null, Df = !1, P)
|
|
37092
37094
|
throw Error(i(300));
|
|
37093
37095
|
return k;
|
|
37094
37096
|
}
|
|
@@ -37097,14 +37099,14 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37097
37099
|
return Ro === null ? oo.memoizedState = Ro = k : Ro = Ro.next = k, Ro;
|
|
37098
37100
|
}
|
|
37099
37101
|
function _l() {
|
|
37100
|
-
k =
|
|
37102
|
+
k = Xo === null ? (k = oo.alternate) !== null ? k.memoizedState : null : Xo.next;
|
|
37101
37103
|
var k, P = Ro === null ? oo.memoizedState : Ro.next;
|
|
37102
37104
|
if (P !== null)
|
|
37103
|
-
Ro = P,
|
|
37105
|
+
Ro = P, Xo = k;
|
|
37104
37106
|
else {
|
|
37105
37107
|
if (k === null)
|
|
37106
37108
|
throw Error(i(310));
|
|
37107
|
-
k = { memoizedState: (
|
|
37109
|
+
k = { memoizedState: (Xo = k).memoizedState, baseState: Xo.baseState, baseQueue: Xo.baseQueue, queue: Xo.queue, next: null }, Ro === null ? oo.memoizedState = Ro = k : Ro = Ro.next = k;
|
|
37108
37110
|
}
|
|
37109
37111
|
return Ro;
|
|
37110
37112
|
}
|
|
@@ -37116,7 +37118,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37116
37118
|
if (J === null)
|
|
37117
37119
|
throw Error(i(311));
|
|
37118
37120
|
J.lastRenderedReducer = k;
|
|
37119
|
-
var re, ie = (ve =
|
|
37121
|
+
var re, ie = (ve = Xo).baseQueue, pe = J.pending;
|
|
37120
37122
|
if (pe !== null && (ie !== null && (re = ie.next, ie.next = pe.next, pe.next = re), ve.baseQueue = ie = pe, J.pending = null), ie !== null) {
|
|
37121
37123
|
ie = ie.next;
|
|
37122
37124
|
var ve = ve.baseState, Fe = re = pe = null, Me = ie;
|
|
@@ -37148,7 +37150,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37148
37150
|
throw pc.push(P), Error(i(350));
|
|
37149
37151
|
}
|
|
37150
37152
|
function $b(k, P, J, re) {
|
|
37151
|
-
var ie =
|
|
37153
|
+
var ie = ei;
|
|
37152
37154
|
if (ie === null)
|
|
37153
37155
|
throw Error(i(349));
|
|
37154
37156
|
var pe = P._getVersion, ve = pe(P._source), Fe = Hu.current, Me = (Vt = Fe.useState(function() {
|
|
@@ -37201,8 +37203,8 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " "));
|
|
|
37201
37203
|
}
|
|
37202
37204
|
function Pg(k, P, J, re) {
|
|
37203
37205
|
var ie = _l(), pe = void (re = re === void 0 ? null : re);
|
|
37204
|
-
if (
|
|
37205
|
-
var ve =
|
|
37206
|
+
if (Xo !== null) {
|
|
37207
|
+
var ve = Xo.memoizedState;
|
|
37206
37208
|
if (pe = ve.destroy, re !== null && Ag(re, ve.deps))
|
|
37207
37209
|
return void Lf(P, J, pe, re);
|
|
37208
37210
|
}
|
|
@@ -37947,7 +37949,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37947
37949
|
P.has(re) || (P.add(re), re.then(ie, ie));
|
|
37948
37950
|
}));
|
|
37949
37951
|
}
|
|
37950
|
-
var Z2 = Math.ceil, $f = S.ReactCurrentDispatcher, Hg = S.ReactCurrentOwner, Zn = 0,
|
|
37952
|
+
var Z2 = Math.ceil, $f = S.ReactCurrentDispatcher, Hg = S.ReactCurrentOwner, Zn = 0, ei = null, go = null, Wo = 0, xl = 0, qg = vs(0), Do = 0, Uf = null, hc = 0, Yu = 0, gc = 0, Wg = 0, Jg = null, Vg = 0, Kg = 1 / 0;
|
|
37951
37953
|
function mc() {
|
|
37952
37954
|
Kg = qo() + 500;
|
|
37953
37955
|
}
|
|
@@ -37977,7 +37979,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37977
37979
|
if (50 < Xu)
|
|
37978
37980
|
throw Xu = 0, Qg = null, Error(i(185));
|
|
37979
37981
|
var re;
|
|
37980
|
-
(k = Vf(k, P)) !== null && (ga(k, P, J), k ===
|
|
37982
|
+
(k = Vf(k, P)) !== null && (ga(k, P, J), k === ei && (gc |= P, Do === 4) && yc(k, Wo), re = cc(), P === 1 ? 8 & Zn && !(48 & Zn) ? Xg(k) : (qi(k, J), Zn === 0 && (mc(), va())) : (!(4 & Zn) || re !== 98 && re !== 99 || (qa === null ? qa = /* @__PURE__ */ new Set([k]) : qa.add(k)), qi(k, J)), Jg = k);
|
|
37981
37983
|
}
|
|
37982
37984
|
function Vf(k, P) {
|
|
37983
37985
|
k.lanes |= P;
|
|
@@ -37991,7 +37993,7 @@ Error generating stack: ` + pe.message + `
|
|
|
37991
37993
|
var Fe, Me = 31 - jo(ve), at = 1 << Me, Vt = pe[Me];
|
|
37992
37994
|
Vt === -1 ? at & re && !(at & ie) || (Vt = P, $n(at), Fe = zn, pe[Me] = 10 <= Fe ? Vt + 250 : 6 <= Fe ? Vt + 5e3 : -1) : Vt <= P && (k.expiredLanes |= at), ve &= ~at;
|
|
37993
37995
|
}
|
|
37994
|
-
if (re =
|
|
37996
|
+
if (re = Qo(k, k === ei ? Wo : 0), P = zn, re === 0)
|
|
37995
37997
|
J !== null && (J !== vg && yg(J), k.callbackNode = null, k.callbackPriority = 0);
|
|
37996
37998
|
else {
|
|
37997
37999
|
if (J !== null) {
|
|
@@ -38034,11 +38036,11 @@ Error generating stack: ` + pe.message + `
|
|
|
38034
38036
|
var P = k.callbackNode;
|
|
38035
38037
|
if (Ns() && k.callbackNode !== P)
|
|
38036
38038
|
return null;
|
|
38037
|
-
var J =
|
|
38039
|
+
var J = Qo(k, k === ei ? Wo : 0);
|
|
38038
38040
|
if (J === 0)
|
|
38039
38041
|
return null;
|
|
38040
38042
|
var re = J, ie = Zn, pe = (Zn |= 16, wv());
|
|
38041
|
-
for (
|
|
38043
|
+
for (ei === k && Wo === re || (mc(), bc(k, re)); ; )
|
|
38042
38044
|
try {
|
|
38043
38045
|
for (; go !== null && !L2(); )
|
|
38044
38046
|
Sv(go);
|
|
@@ -38046,7 +38048,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38046
38048
|
} catch (Fe) {
|
|
38047
38049
|
xv(k, Fe);
|
|
38048
38050
|
}
|
|
38049
|
-
if (xg(), $f.current = pe, Zn = ie, re = go !== null ? 0 : (
|
|
38051
|
+
if (xg(), $f.current = pe, Zn = ie, re = go !== null ? 0 : (ei = null, Wo = 0, Do), hc & gc)
|
|
38050
38052
|
bc(k, 0);
|
|
38051
38053
|
else if (re !== 0) {
|
|
38052
38054
|
if ((re = re === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, fi(k.containerInfo)), (J = Uo(k)) !== 0) ? td(k, J) : re) === 1)
|
|
@@ -38061,7 +38063,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38061
38063
|
break;
|
|
38062
38064
|
case 3:
|
|
38063
38065
|
if (yc(k, J), (62914560 & J) === J && 10 < (re = Vg + 500 - qo())) {
|
|
38064
|
-
if (
|
|
38066
|
+
if (Qo(k, 0) !== 0)
|
|
38065
38067
|
break;
|
|
38066
38068
|
if (((ie = k.suspendedLanes) & J) !== J) {
|
|
38067
38069
|
Ni(), k.pingedLanes |= k.suspendedLanes & ie;
|
|
@@ -38096,7 +38098,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38096
38098
|
if (48 & Zn)
|
|
38097
38099
|
throw Error(i(327));
|
|
38098
38100
|
var P, J;
|
|
38099
|
-
if (Ns(), k ===
|
|
38101
|
+
if (Ns(), k === ei && k.expiredLanes & Wo ? (J = td(k, P = Wo), hc & gc && (J = td(k, P = Qo(k, P)))) : J = td(k, P = Qo(k, 0)), (J = k.tag !== 0 && J === 2 && (Zn |= 64, k.hydrate && (k.hydrate = !1, fi(k.containerInfo)), (P = Uo(k)) !== 0) ? td(k, P) : J) === 1)
|
|
38100
38102
|
throw J = Uf, bc(k, 0), yc(k, P), qi(k, qo()), J;
|
|
38101
38103
|
return k.finishedWork = k.current.alternate, k.finishedLanes = P, vc(k), qi(k, qo()), null;
|
|
38102
38104
|
}
|
|
@@ -38156,7 +38158,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38156
38158
|
}
|
|
38157
38159
|
J = J.return;
|
|
38158
38160
|
}
|
|
38159
|
-
go = js((
|
|
38161
|
+
go = js((ei = k).current, null), Wo = xl = hc = P, Uf = null, Wg = gc = Yu = Do = 0;
|
|
38160
38162
|
}
|
|
38161
38163
|
function xv(k, P) {
|
|
38162
38164
|
for (; ; ) {
|
|
@@ -38169,7 +38171,7 @@ Error generating stack: ` + pe.message + `
|
|
|
38169
38171
|
}
|
|
38170
38172
|
Df = !1;
|
|
38171
38173
|
}
|
|
38172
|
-
if (qu = 0, Ro =
|
|
38174
|
+
if (qu = 0, Ro = Xo = oo = null, Wu = !1, (Hg.current = null) === J || J.return === null) {
|
|
38173
38175
|
Do = 1, Uf = P, go = null;
|
|
38174
38176
|
break;
|
|
38175
38177
|
}
|
|
@@ -38224,7 +38226,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38224
38226
|
}
|
|
38225
38227
|
function td(k, P) {
|
|
38226
38228
|
var J = Zn, re = (Zn |= 16, wv());
|
|
38227
|
-
for (
|
|
38229
|
+
for (ei === k && Wo === P || bc(k, P); ; )
|
|
38228
38230
|
try {
|
|
38229
38231
|
for (; go !== null; )
|
|
38230
38232
|
Sv(go);
|
|
@@ -38234,7 +38236,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38234
38236
|
}
|
|
38235
38237
|
if (xg(), Zn = J, $f.current = re, go !== null)
|
|
38236
38238
|
throw Error(i(261));
|
|
38237
|
-
return
|
|
38239
|
+
return ei = null, Wo = 0, Do;
|
|
38238
38240
|
}
|
|
38239
38241
|
function Sv(k) {
|
|
38240
38242
|
var P = yv(k.alternate, k, xl);
|
|
@@ -38435,7 +38437,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38435
38437
|
}
|
|
38436
38438
|
return null;
|
|
38437
38439
|
case 13:
|
|
38438
|
-
return zr(ro), Me = ve.memoizedState, 64 & ve.flags ? (ve.lanes = Fe, ve) : (Me = Me !== null, Fe = !1, pe === null ? ve.memoizedProps.fallback !== void 0 && Rf(ve) : Fe = pe.memoizedState !== null, Me && !Fe && 2 & ve.mode && (pe === null && ve.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & ro.current ? Do === 0 && (Do = 3) : (Do !== 0 && Do !== 3 || (Do = 4),
|
|
38440
|
+
return zr(ro), Me = ve.memoizedState, 64 & ve.flags ? (ve.lanes = Fe, ve) : (Me = Me !== null, Fe = !1, pe === null ? ve.memoizedProps.fallback !== void 0 && Rf(ve) : Fe = pe.memoizedState !== null, Me && !Fe && 2 & ve.mode && (pe === null && ve.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & ro.current ? Do === 0 && (Do = 3) : (Do !== 0 && Do !== 3 || (Do = 4), ei === null || !(134217727 & Yu) && !(134217727 & gc) || yc(ei, Wo))), (Me || Fe) && (ve.flags |= 4), null);
|
|
38439
38441
|
case 4:
|
|
38440
38442
|
return fc(), pe === null && Ot(ve.stateNode.containerInfo), null;
|
|
38441
38443
|
case 10:
|
|
@@ -38505,7 +38507,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38505
38507
|
var Vt = 31 - jo(Fe), Jt = 1 << Vt;
|
|
38506
38508
|
ve[Vt] = 0, Me[Vt] = -1, at[Vt] = -1, Fe &= ~Jt;
|
|
38507
38509
|
}
|
|
38508
|
-
if (qa !== null && !(24 & pe) && qa.has(J) && qa.delete(J), J ===
|
|
38510
|
+
if (qa !== null && !(24 & pe) && qa.has(J) && qa.delete(J), J === ei && (go = ei = null, Wo = 0), (pe = 1 < ie.flags ? ie.lastEffect !== null ? (ie.lastEffect.nextEffect = ie).firstEffect : ie : ie.firstEffect) !== null) {
|
|
38509
38511
|
if (ve = Zn, Zn |= 32, Hg.current = null, Xn = La, rc(Me = ea())) {
|
|
38510
38512
|
if ("selectionStart" in Me)
|
|
38511
38513
|
at = { start: Me.selectionStart, end: Me.selectionEnd };
|
|
@@ -38722,7 +38724,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
38722
38724
|
}
|
|
38723
38725
|
function X2(k, P, J) {
|
|
38724
38726
|
var re = k.pingCache;
|
|
38725
|
-
re !== null && re.delete(P), P = Ni(), k.pingedLanes |= k.suspendedLanes & J,
|
|
38727
|
+
re !== null && re.delete(P), P = Ni(), k.pingedLanes |= k.suspendedLanes & J, ei === k && (Wo & J) === J && (Do === 4 || Do === 3 && (62914560 & Wo) === Wo && qo() - Vg < 500 ? bc(k, 0) : Wg |= J), qi(k, P);
|
|
38726
38728
|
}
|
|
38727
38729
|
function eT(k, P, J, re) {
|
|
38728
38730
|
this.tag = k, this.key = J, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = P, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = re, this.flags = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childLanes = this.lanes = 0, this.alternate = null;
|
|
@@ -40247,11 +40249,11 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
40247
40249
|
function It(ye, Ue, rt) {
|
|
40248
40250
|
var et = y(ye), gt = !lt(ye), pt = (pt = Ue.attrs) === void 0 ? _ : pt, xe = (xe = Ue.componentId) === void 0 ? ((Sn, Cn) => (Sn = typeof Sn != "string" ? "sc" : je(Sn), st[Sn] = (st[Sn] || 0) + 1, Sn = Sn + "-" + ze("5.3.11" + Sn + st[Sn]), Cn ? Cn + "-" + Sn : Sn))(Ue.displayName, Ue.parentComponentId) : xe, Ke = (ht = Ue.displayName) === void 0 ? lt(Ke = ye) ? "styled." + Ke : "Styled(" + x(Ke) + ")" : ht, ht = Ue.displayName && Ue.componentId ? je(Ue.displayName) + "-" + Ue.componentId : Ue.componentId || xe, zt = et && ye.attrs ? Array.prototype.concat(ye.attrs, pt).filter(Boolean) : pt;
|
|
40249
40251
|
function Ut(Sn, Cn) {
|
|
40250
|
-
var Yn, gr, po, Nr, Ar = nn, $o = qn, mr = Ar.attrs, xr = Ar.componentStyle, Br = Ar.defaultProps, _i = Ar.foldedComponentIds, lo = Ar.shouldForwardProp, bo = Ar.styledComponentId,
|
|
40251
|
-
var zn, $n,
|
|
40252
|
+
var Yn, gr, po, Nr, Ar = nn, $o = qn, mr = Ar.attrs, xr = Ar.componentStyle, Br = Ar.defaultProps, _i = Ar.foldedComponentIds, lo = Ar.shouldForwardProp, bo = Ar.styledComponentId, Zo = Ar.target, co = (Br = rn(Sn, i.useContext(Le), Br) || E, gr = g({}, Sn, { theme: Br = Br === void 0 ? E : Br }), po = {}, mr.forEach(function(Li) {
|
|
40253
|
+
var zn, $n, Qo, Uo = Li;
|
|
40252
40254
|
for (zn in Uo = w(Uo) ? Uo(gr) : Uo)
|
|
40253
|
-
gr[zn] = po[zn] = zn === "className" ? ($n = po[zn],
|
|
40254
|
-
}), mr = (Br = [gr, po])[1], Br = Br[0], Ar = r.env.NODE_ENV !== "production" ? Ar.warnTooManyClasses : void 0, co = Ee(), Yn = Xe(), xr = $o ? xr.generateAndInjectStyles(E, co, Yn) : xr.generateAndInjectStyles(Br, co, Yn), r.env.NODE_ENV !== "production" && !$o && Ar && Ar(xr), Br = xr, Cn), ai = mr.$as || Sn.$as || mr.as || Sn.as ||
|
|
40255
|
+
gr[zn] = po[zn] = zn === "className" ? ($n = po[zn], Qo = Uo[zn], $n && Qo ? $n + " " + Qo : $n || Qo) : Uo[zn];
|
|
40256
|
+
}), mr = (Br = [gr, po])[1], Br = Br[0], Ar = r.env.NODE_ENV !== "production" ? Ar.warnTooManyClasses : void 0, co = Ee(), Yn = Xe(), xr = $o ? xr.generateAndInjectStyles(E, co, Yn) : xr.generateAndInjectStyles(Br, co, Yn), r.env.NODE_ENV !== "production" && !$o && Ar && Ar(xr), Br = xr, Cn), ai = mr.$as || Sn.$as || mr.as || Sn.as || Zo, Da = lt(ai), vo = mr !== Sn ? g({}, Sn, {}, mr) : Sn, dr = {};
|
|
40255
40257
|
for (Nr in vo)
|
|
40256
40258
|
Nr[0] !== "$" && Nr !== "as" && (Nr === "forwardedAs" ? dr.as = vo[Nr] : (lo ? lo(Nr, h, ai) : !Da || h(Nr)) && (dr[Nr] = vo[Nr]));
|
|
40257
40259
|
return Sn.style && mr.style !== Sn.style && (dr.style = g({}, Sn.style, {}, mr.style)), dr.className = Array.prototype.concat(_i, bo, Br !== bo ? Br : null, Sn.className, mr.className).filter(Boolean).join(" "), dr.ref = co, i.createElement(ai, dr);
|
|
@@ -47340,7 +47342,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
47340
47342
|
Ye = Je;
|
|
47341
47343
|
}, 1), Et = f, Bt = Re.codoxLogger, Gt = Re.startCb, dt = Re.sockOpenTimer, Mt = Re.editorInstance, tn = v.reportError.bind(v), Nt = v.addBreadcrumb.bind(v), rn = v.addTag.bind(v), Oe = (this.breadCrumb = Nt, this.editorInstance = Mt, Nt("[codoxi]* ccw: t = 0; CV=" + Lt + "; seid = " + Re.sid, b), rn("clientVersion", Lt), Re.ver), $e = this, je = (this.app = Re).appType, ze = Re.sid, lt = Re.domains, bt = Re.cid, At = (lt.b(), lt.c()), Ge = (At.sw && At.sw(this), Re.sysInfo), Le = Re.anyClient, Ve = Re.founder, st = He.Write, It = (Re.role && (st = Re.role), Gt), Qt = { sid: Ye, jointime: /* @__PURE__ */ new Date(), userinfo: Object.assign({}, Re.user), role: st, founder: Ve }, Xt = (this.minfo = Qt, null), Rt = null, Ae = null, Be = (d || (this.rangy || (this.rangy = e("rangy/lib/rangy-selectionsaverestore")), this.rangy.initialized) || this.rangy.init(), this.rangy = e("rangy/lib/rangy-selectionsaverestore"), this.rangy.init(), 0), ut = null, ye = null, Ue = [], rt = null, et = l.now(), gt = 0, pt = _, xe = ee.pmod(), Ke = !1, ht = null, zt = !1, Ut = (this.setSMC = function(Je) {
|
|
47342
47344
|
zt = Je;
|
|
47343
|
-
}, null), nn = null, Yt = null, on = null, sn = null, qn = null, Sn = null, Cn = null, Yn = null, gr = null, po = !0, Nr = !0, Ar = !0, $o = !0, mr = !0, xr = !0, Br = !0, _i = !0, lo = null, bo = null,
|
|
47345
|
+
}, null), nn = null, Yt = null, on = null, sn = null, qn = null, Sn = null, Cn = null, Yn = null, gr = null, po = !0, Nr = !0, Ar = !0, $o = !0, mr = !0, xr = !0, Br = !0, _i = !0, lo = null, bo = null, Zo = null, co = null, ai = null, Da = null, vo = null, dr = null, Li = null, zn = null, $n = null, Qo = null, Uo = null, xi = null, Yi = null, Zi = null, ga = null;
|
|
47344
47346
|
function jo(Je) {
|
|
47345
47347
|
return Je && Je !== "pt" && $n.mbs.length, pt !== x && $n && $n.mbs && $n.mbs.length === 1;
|
|
47346
47348
|
}
|
|
@@ -47522,7 +47524,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
47522
47524
|
var vn, pn;
|
|
47523
47525
|
Ue.length != 0 && (pn = l.now() - ut, xe && !Ne() && pt === E && pn < 250 && An < 2e3 ? (g(ye), ye = setTimeout(function() {
|
|
47524
47526
|
On(An + 250), ye = null;
|
|
47525
|
-
}, 250)) : (pn = Ue.shift(), po && (mr = !mr), mr || pt === _ || !pn.context || pn.context.sid === Ye || $e.bium() || Q("ROH"), pn.so ? M(pn, $e) : z(pn) || (pn.hasOwnProperty("to") && bo && (bo.rto = pn.to, pn.context) && (pn.context.to = pn.to), pn.cmd ?
|
|
47527
|
+
}, 250)) : (pn = Ue.shift(), po && (mr = !mr), mr || pt === _ || !pn.context || pn.context.sid === Ye || $e.bium() || Q("ROH"), pn.so ? M(pn, $e) : z(pn) || (pn.hasOwnProperty("to") && bo && (bo.rto = pn.to, pn.context) && (pn.context.to = pn.to), pn.cmd ? Qo(pn) : (vn = {}, !Si || pn.t && pn.t === "sl" ? vn.op = pn.op : (vn.op = pn.op[0].po, vn.ao = pn.op[0].ao), vn.context = pn.context, pn.t && (vn.t = pn.t), mr || (we(pn = vn) ? Re.a.j(bt, { coords: pn.op, sid: pn.context.sid }) : (pn = Zo(pn)) != null && pn.op.length !== 0 && (ne(pn) ? nr(pn) : !be() && !me() || mr ? (pn.context.CAID = !1, vn = le.ccp, $n.DCPRops = vn($n.DCPRops, pn.op, $e, "ROHdmod"), $n.DCPRopsN++, $n.DCPRopsN, h($n.DCPRops)) : (_e($e) ? Z.roh(pn, $e) : U(pn, $e), !$e.bium() && pn.context.CAID && (h(pn), Ze(tt(), pn.context.caidinfo)))))), l.now()), 0 < Ue.length && On(1500)));
|
|
47526
47528
|
}(0), l.now());
|
|
47527
47529
|
}, this.gls = function() {
|
|
47528
47530
|
var Je;
|
|
@@ -47767,7 +47769,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
47767
47769
|
}
|
|
47768
47770
|
wi = Zr || uo || $i || H;
|
|
47769
47771
|
}
|
|
47770
|
-
if (vt.sot && (Ut = vt.sot, $e.jstp = Ut), vt.tmk && (qn = vt.tmk.o, Sn = vt.tmk.c, gr = vt.tmk.tn, Cn = vt.tmk.m, Yn = '<span id="' + Cn + "_"), vt.lmt && (vt.lmt.mos, on = vt.lmt.mms, sn = vt.lmt.dms, $e.lmt = vt.lmt), vt.dt && (Yt = vt.dt, $e.dlttp = Yt), xr || (Zt = Ye, lo = new B($e, !1, xr), (bo = lo.gct()).sid = Zt,
|
|
47772
|
+
if (vt.sot && (Ut = vt.sot, $e.jstp = Ut), vt.tmk && (qn = vt.tmk.o, Sn = vt.tmk.c, gr = vt.tmk.tn, Cn = vt.tmk.m, Yn = '<span id="' + Cn + "_"), vt.lmt && (vt.lmt.mos, on = vt.lmt.mms, sn = vt.lmt.dms, $e.lmt = vt.lmt), vt.dt && (Yt = vt.dt, $e.dlttp = Yt), xr || (Zt = Ye, lo = new B($e, !1, xr), (bo = lo.gct()).sid = Zt, Zo = lo.pr, lo.pl, co = lo.sc, ai = lo.aptm, Da = lo.rstm, lo.satm, $e.pt = lo, vo = new R($e, lo, xr, Ut), dr = vo.pu, Li = vo.gfdt, $e.pu = vo), !$o && !Br)
|
|
47771
47773
|
if (_i || !zi && !Qi)
|
|
47772
47774
|
if (uo || Io) {
|
|
47773
47775
|
vt = { obf: Br, types: Ut }, Ce.type.init(vt), Zt = { obf: $o, ob: qn, cb: Sn, tiny: H, tinysc: gr };
|
|
@@ -47779,7 +47781,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
47779
47781
|
vt = { obf: $o, ob: qn, cb: Sn, tiny: H, tinysc: gr }, Zt = { obf: Br, types: Ut }, Te.sdfi(vt), ke.rtfi(Zt), $e.rtf = ke, $e.sdf = Te;
|
|
47780
47782
|
else
|
|
47781
47783
|
On = { types: Ut, dt: Yt, obf: !1 }, de.di(On), $e.dtf = de;
|
|
47782
|
-
mr || (xi = new O({ cw: $e, app: Re, cmd: At, type: Ut, obfroh: mr, obfcr: Ar }), Yi = xi.urcs, Zi = xi.uc, ga = xi.nuc, $e.rcs = xi), vt = je == "quilljs" || je == "quilljs_clickup" ? At.getContents() : Po || li ? At.gj() : At.d(), zn = new F({ cw: $e, cb: It, app: Re, cd: lt, cmd: At, mi: Qt, lidoc: vt, log: Bt, tm: Ee, obf: Nr, bv: Oe }), Uo = zn.rs, $n = zn.se, $e.se = $n,
|
|
47784
|
+
mr || (xi = new O({ cw: $e, app: Re, cmd: At, type: Ut, obfroh: mr, obfcr: Ar }), Yi = xi.urcs, Zi = xi.uc, ga = xi.nuc, $e.rcs = xi), vt = je == "quilljs" || je == "quilljs_clickup" ? At.getContents() : Po || li ? At.gj() : At.d(), zn = new F({ cw: $e, cb: It, app: Re, cd: lt, cmd: At, mi: Qt, lidoc: vt, log: Bt, tm: Ee, obf: Nr, bv: Oe }), Uo = zn.rs, $n = zn.se, $e.se = $n, Qo = zn.pc, $e.dsm = zn, li || Po || lt.a(), Bi[0] = H ? { pos: 48 } : { pos: -1 };
|
|
47783
47785
|
for (var An = 1; An < 5; An++)
|
|
47784
47786
|
Bi[An] = { pos: -1 };
|
|
47785
47787
|
if (Ve) {
|
|
@@ -54649,7 +54651,7 @@ var VA = (c) => {
|
|
|
54649
54651
|
var t = {};
|
|
54650
54652
|
return In.d(t, c), t;
|
|
54651
54653
|
};
|
|
54652
|
-
const $t = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Tn, $createRangeSelection: () => yu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Ln, $getSelection: () => jt, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => Aa, $isNodeSelection: () => io, $isParagraphNode: () =>
|
|
54654
|
+
const $t = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Tn, $createRangeSelection: () => yu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Ln, $getSelection: () => jt, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => Aa, $isNodeSelection: () => io, $isParagraphNode: () => Ir, $isRangeSelection: () => Tt, $isTextNode: () => Kt, $nodesOfType: () => ww, $setSelection: () => qr, CAN_REDO_COMMAND: () => Jc, CAN_UNDO_COMMAND: () => Vc, CLEAR_EDITOR_COMMAND: () => Nh, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Xd, DecoratorNode: () => ss, ElementNode: () => Vr, KEY_BACKSPACE_COMMAND: () => el, KEY_DELETE_COMMAND: () => tl, KEY_ESCAPE_COMMAND: () => Zl, LineBreakNode: () => gu, PASTE_COMMAND: () => Xs, ParagraphNode: () => il, REDO_COMMAND: () => ou, RootNode: () => vu, TextNode: () => ao, UNDO_COMMAND: () => ru, createCommand: () => Ao, createEditor: () => $h });
|
|
54653
54655
|
var KA = (c) => {
|
|
54654
54656
|
var t = {};
|
|
54655
54657
|
return In.d(t, c), t;
|
|
@@ -54827,7 +54829,7 @@ var vj = (c) => {
|
|
|
54827
54829
|
var t = {};
|
|
54828
54830
|
return In.d(t, c), t;
|
|
54829
54831
|
};
|
|
54830
|
-
const ft = vj({ Fragment: () =>
|
|
54832
|
+
const ft = vj({ Fragment: () => ar.Fragment, createContext: () => ar.createContext, createElement: () => ar.createElement, forwardRef: () => ar.forwardRef, useCallback: () => ar.useCallback, useContext: () => ar.useContext, useEffect: () => ar.useEffect, useImperativeHandle: () => ar.useImperativeHandle, useLayoutEffect: () => ar.useLayoutEffect, useMemo: () => ar.useMemo, useRef: () => ar.useRef, useState: () => ar.useState });
|
|
54831
54833
|
class _j {
|
|
54832
54834
|
constructor() {
|
|
54833
54835
|
this.subscribers = {};
|
|
@@ -55476,21 +55478,21 @@ class gn {
|
|
|
55476
55478
|
}
|
|
55477
55479
|
static createRangeSelection(t, n, e, s, o, r) {
|
|
55478
55480
|
if (!(arguments.length > 6 && arguments[6] !== void 0 && arguments[6])) {
|
|
55479
|
-
if (!(
|
|
55481
|
+
if (!(Mr(t) || Rc(t) || (mt.default.warn("[createRangeSelection] anchor node is not text or element node - finding closest parent element node "), t = gn.findClosestParentElementNode(t))))
|
|
55480
55482
|
return mt.default.warn("[createRangeSelection] unable to find anchor closest parent element node - dropping to null"), null;
|
|
55481
|
-
if (!(
|
|
55483
|
+
if (!(Mr(n) || Rc(n) || (mt.default.warn("[createRangeSelection] focus node is not text or element node - finding closest parent element node "), n = gn.findClosestParentElementNode(n))))
|
|
55482
55484
|
return mt.default.warn("[createRangeSelection] unable to find focus closest parent element node - dropping to null"), null;
|
|
55483
55485
|
}
|
|
55484
55486
|
let a = (0, $t.$createRangeSelection)();
|
|
55485
55487
|
a.dirty = !1, a.format = o, a.setStyle(r);
|
|
55486
|
-
let l =
|
|
55488
|
+
let l = Mr(t) ? Rs.text : Rs.element, i = Mr(n) ? Rs.text : Rs.element;
|
|
55487
55489
|
return a.anchor.set(t.getKey(), e, l), a.focus.set(n.getKey(), s, i), a;
|
|
55488
55490
|
}
|
|
55489
55491
|
static getSelectedCandidateFromParentChildren(t, n) {
|
|
55490
55492
|
let e = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], s = null, o = n;
|
|
55491
55493
|
if (n === 0) {
|
|
55492
55494
|
const r = t.getFirstChild();
|
|
55493
|
-
s =
|
|
55495
|
+
s = Mr(r) ? r : t;
|
|
55494
55496
|
} else {
|
|
55495
55497
|
let r = t.getChildren(), a = [];
|
|
55496
55498
|
for (let i of r)
|
|
@@ -55507,7 +55509,7 @@ class gn {
|
|
|
55507
55509
|
if (l <= u) {
|
|
55508
55510
|
if (nb(i)) {
|
|
55509
55511
|
let f = i.getNextSibling();
|
|
55510
|
-
f &&
|
|
55512
|
+
f && Mr(f) ? (s = f, o = 0) : (s = t, o = i.getPreviousSiblings().length + 1);
|
|
55511
55513
|
break;
|
|
55512
55514
|
}
|
|
55513
55515
|
Tr(i) && (e || (l = 0)), s = i, o = l;
|
|
@@ -55517,7 +55519,7 @@ class gn {
|
|
|
55517
55519
|
}
|
|
55518
55520
|
if (!s) {
|
|
55519
55521
|
const i = t.getLastChild();
|
|
55520
|
-
|
|
55522
|
+
Mr(i) ? (s = i, o = i.getTextContentSize()) : (s = t, o = t.getChildrenSize());
|
|
55521
55523
|
}
|
|
55522
55524
|
}
|
|
55523
55525
|
return { candidate: s, candidateOffset: o };
|
|
@@ -55575,10 +55577,10 @@ class gn {
|
|
|
55575
55577
|
}
|
|
55576
55578
|
if (!p || !h)
|
|
55577
55579
|
return null;
|
|
55578
|
-
let y =
|
|
55580
|
+
let y = Mr(p), S = Mr(h), C = Tr(p), O = Tr(h), F = u.getKey() === d.getKey(), B = F && r - s == 1, R = F && r === s && p.getKey() === h.getKey(), L = s !== r, N = p.getKey() === h.getKey();
|
|
55579
55581
|
if (C && O && R) {
|
|
55580
55582
|
let j = p.getNextSibling();
|
|
55581
|
-
if (j &&
|
|
55583
|
+
if (j && Mr(j))
|
|
55582
55584
|
return gn.createRangeSelection(j, j, 0, 0, a, l);
|
|
55583
55585
|
if (j && (0, $t.$isParagraphNode)(j))
|
|
55584
55586
|
return gn.createNodeSelection(p, h);
|
|
@@ -55593,14 +55595,14 @@ class gn {
|
|
|
55593
55595
|
return gn.createNodeSelection(p, h);
|
|
55594
55596
|
{
|
|
55595
55597
|
let j, $, M, z, V = p.getNextSibling();
|
|
55596
|
-
if (V &&
|
|
55598
|
+
if (V && Mr(V))
|
|
55597
55599
|
j = V, M = 0;
|
|
55598
55600
|
else {
|
|
55599
55601
|
let { parent: I, parentOffset: q } = gn.getSelectedParentAndOffset(p);
|
|
55600
55602
|
j = I, M = q;
|
|
55601
55603
|
}
|
|
55602
55604
|
let K = h.getNextSibling();
|
|
55603
|
-
if (K &&
|
|
55605
|
+
if (K && Mr(K))
|
|
55604
55606
|
$ = K, z = 0;
|
|
55605
55607
|
else {
|
|
55606
55608
|
let { parent: I, parentOffset: q } = gn.getSelectedParentAndOffset(h);
|
|
@@ -55612,25 +55614,25 @@ class gn {
|
|
|
55612
55614
|
if (y && S && L)
|
|
55613
55615
|
if (A) {
|
|
55614
55616
|
let j = g === h.getTextContentSize(), $ = h.getNextSibling();
|
|
55615
|
-
if (j && $ &&
|
|
55617
|
+
if (j && $ && Mr($))
|
|
55616
55618
|
return gn.createRangeSelection(p, $, m, 0, a, l);
|
|
55617
55619
|
} else {
|
|
55618
55620
|
let j = m === p.getTextContentSize(), $ = p.getNextSibling();
|
|
55619
|
-
if (j && $ &&
|
|
55621
|
+
if (j && $ && Mr($))
|
|
55620
55622
|
return gn.createRangeSelection($, h, 0, g, a, l);
|
|
55621
55623
|
}
|
|
55622
55624
|
if (L && !C && O) {
|
|
55623
55625
|
if (B)
|
|
55624
55626
|
return gn.createNodeSelection(h);
|
|
55625
55627
|
let [j, ...$] = D, M = $.every((V) => Tr(V));
|
|
55626
|
-
if (
|
|
55628
|
+
if (Mr(j) && m === j.getTextContentSize() && M)
|
|
55627
55629
|
return gn.createNodeSelection($[0], h);
|
|
55628
55630
|
let z = h.getNextSibling();
|
|
55629
|
-
if (
|
|
55631
|
+
if (Mr(p) && p.getTextContentSize() === m && !A) {
|
|
55630
55632
|
let V = p.getNextSibling();
|
|
55631
|
-
V &&
|
|
55633
|
+
V && Mr(V) && (p = V, m = 0);
|
|
55632
55634
|
}
|
|
55633
|
-
if (z &&
|
|
55635
|
+
if (z && Mr(z))
|
|
55634
55636
|
return gn.createRangeSelection(p, z, m, 0, a, l);
|
|
55635
55637
|
{
|
|
55636
55638
|
let { parent: V, parentOffset: K } = gn.getSelectedParentAndOffset(h);
|
|
@@ -55639,10 +55641,10 @@ class gn {
|
|
|
55639
55641
|
}
|
|
55640
55642
|
if (L && C && !O) {
|
|
55641
55643
|
let [j, ...$] = D, M = $.every((V) => Tr(V));
|
|
55642
|
-
if (
|
|
55644
|
+
if (Mr(j) && g === j.getTextContentSize() && M)
|
|
55643
55645
|
return gn.createNodeSelection(p, $[0]);
|
|
55644
55646
|
let z = p.getNextSibling();
|
|
55645
|
-
if (z &&
|
|
55647
|
+
if (z && Mr(z))
|
|
55646
55648
|
return gn.createRangeSelection(z, h, 0, g, a, l);
|
|
55647
55649
|
{
|
|
55648
55650
|
let { parent: V, parentOffset: K } = gn.getSelectedParentAndOffset(p);
|
|
@@ -57153,7 +57155,7 @@ function ku(c) {
|
|
|
57153
57155
|
};
|
|
57154
57156
|
return Object.defineProperty(n, "name", { value: t, writable: !0 }), n;
|
|
57155
57157
|
}
|
|
57156
|
-
const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.getParent()),
|
|
57158
|
+
const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.getParent()), Mr = (c) => c.__type === ph.text || c.type === ph.text || c.hasOwnProperty("__text") || c.hasOwnProperty("text"), Rc = (c) => (0, $t.$isElementNode)(c), Dc = (c) => (0, kr.$isTableNode)(c) || (0, kr.$isTableRowNode)(c) || (0, kr.$isTableCellNode)(c), VI = (c) => !c.getChildren, V_ = (c) => !!c.getChildren, Tr = (c) => (0, $t.$isDecoratorNode)(c), Od = (c) => (0, GA.$isLinkNode)(c), Nd = (c) => c.__type === "mark" || c.type === "mark", nb = (c) => (0, $t.$isLineBreakNode)(c), zs = (c) => Mr(c) || nb(c), $y = (c) => c.__type === ph.horizontalrule || c.type === ph.horizontalrule, KI = (c) => c.__type === "image" || c.type === "image", GI = (c) => c.__type === "inline-image" || c.type === "inline-image", oC = (c) => {
|
|
57157
57159
|
if (zs(c) || Od(c) || Nd(c))
|
|
57158
57160
|
return !1;
|
|
57159
57161
|
if (!c.__parent || c.__parent === "root" || (0, $t.$isParagraphNode)(c))
|
|
@@ -57255,14 +57257,14 @@ const Dl = (c) => c.__type === "root" || c.type === "root", J_ = (c) => Dl(c.get
|
|
|
57255
57257
|
const t = `__nativeExportJSON_${c.name}`;
|
|
57256
57258
|
c.prototype[t] = ku(c.prototype.exportJSON, t), c.prototype.exportJSON = function() {
|
|
57257
57259
|
const n = this[t]();
|
|
57258
|
-
return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId),
|
|
57260
|
+
return this.codoxId && (n.codoxId = this.codoxId), this.codoxDId && (n.codoxDId = this.codoxDId), Mr(this) && rC(n.format) && this.hasFormat && (n.format = sj(this)), Mr(n) && n.style && (n.style.endsWith(";") || (n.style += ";")), ZI(n);
|
|
57259
57261
|
};
|
|
57260
57262
|
}, nP = (c) => {
|
|
57261
57263
|
const t = "__nativeImportJSON";
|
|
57262
57264
|
c[t] = ku(c.importJSON, t), c.importJSON = function(n) {
|
|
57263
57265
|
let { ___ignoreCodox: e } = n;
|
|
57264
57266
|
const s = nC({}, UI(n, $I));
|
|
57265
|
-
|
|
57267
|
+
Mr(s) && !rC(s.format) && (s.format = aj(s.format)), Mr(s) && s.style && (s.style.endsWith(";") || (s.style += ";"));
|
|
57266
57268
|
const o = c[t](s);
|
|
57267
57269
|
if (e)
|
|
57268
57270
|
return o;
|
|
@@ -60060,7 +60062,7 @@ const NC = ({ styleConfig: c }) => {
|
|
|
60060
60062
|
return;
|
|
60061
60063
|
function d(h, m, g, v, b, _) {
|
|
60062
60064
|
var S, C, O;
|
|
60063
|
-
const E = (S = h.getTextContent) == null ? void 0 : S.call(h), w = (C = h.getKey) == null ? void 0 : C.call(h), x = uh(h), y =
|
|
60065
|
+
const E = (S = h.getTextContent) == null ? void 0 : S.call(h), w = (C = h.getKey) == null ? void 0 : C.call(h), x = uh(h), y = Ir(h);
|
|
60064
60066
|
if (!b && E && E.trim() && w) {
|
|
60065
60067
|
const F = m.getElementByKey(w);
|
|
60066
60068
|
if (F) {
|
|
@@ -60105,7 +60107,7 @@ const NC = ({ styleConfig: c }) => {
|
|
|
60105
60107
|
}
|
|
60106
60108
|
}
|
|
60107
60109
|
});
|
|
60108
|
-
}) : void 0, [o])
|
|
60110
|
+
}) : void 0, [o]);
|
|
60109
60111
|
const u = l ? r.filter(
|
|
60110
60112
|
(d) => d.label.toLowerCase().includes(l.toLowerCase())
|
|
60111
60113
|
) : r;
|
|
@@ -60636,7 +60638,7 @@ function MC() {
|
|
|
60636
60638
|
}
|
|
60637
60639
|
function jM({ editorRef: c }) {
|
|
60638
60640
|
const [t] = kn();
|
|
60639
|
-
return
|
|
60641
|
+
return ar.useEffect(() => {
|
|
60640
60642
|
typeof c == "function" ? c(t) : typeof c == "object" && (c.current = t);
|
|
60641
60643
|
}, [t]), null;
|
|
60642
60644
|
}
|
|
@@ -61172,7 +61174,7 @@ class yf extends RM {
|
|
|
61172
61174
|
*/
|
|
61173
61175
|
load() {
|
|
61174
61176
|
const t = this._item;
|
|
61175
|
-
t !== null && !this.shouldLoad &&
|
|
61177
|
+
t !== null && !this.shouldLoad && Rr(
|
|
61176
61178
|
/** @type {any} */
|
|
61177
61179
|
t.parent.doc,
|
|
61178
61180
|
(n) => {
|
|
@@ -61202,7 +61204,7 @@ class yf extends RM {
|
|
|
61202
61204
|
* @public
|
|
61203
61205
|
*/
|
|
61204
61206
|
transact(t, n = null) {
|
|
61205
|
-
return
|
|
61207
|
+
return Rr(this, t, n);
|
|
61206
61208
|
}
|
|
61207
61209
|
/**
|
|
61208
61210
|
* Define a shared data type.
|
|
@@ -61342,7 +61344,7 @@ class yf extends RM {
|
|
|
61342
61344
|
/** @type {ContentDoc} */
|
|
61343
61345
|
t.content
|
|
61344
61346
|
);
|
|
61345
|
-
n.doc = new yf({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t,
|
|
61347
|
+
n.doc = new yf({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, Rr(
|
|
61346
61348
|
/** @type {any} */
|
|
61347
61349
|
t.parent.doc,
|
|
61348
61350
|
(e) => {
|
|
@@ -61676,7 +61678,7 @@ const cb = (c) => {
|
|
|
61676
61678
|
G4
|
|
61677
61679
|
), r0 = (c, t, n) => {
|
|
61678
61680
|
const e = os(t, n), s = t[e];
|
|
61679
|
-
return s.id.clock < n && s instanceof
|
|
61681
|
+
return s.id.clock < n && s instanceof Go ? (t.splice(e + 1, 0, y2(c, s, n - s.id.clock)), e + 1) : e;
|
|
61680
61682
|
}, Qs = (c, t) => {
|
|
61681
61683
|
const n = (
|
|
61682
61684
|
/** @type {Array<Item>} */
|
|
@@ -61718,7 +61720,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
|
|
|
61718
61720
|
let n = c[t], e = c[t - 1], s = t;
|
|
61719
61721
|
for (; s > 0; n = e, e = c[--s - 1]) {
|
|
61720
61722
|
if (e.deleted === n.deleted && e.constructor === n.constructor && e.mergeWith(n)) {
|
|
61721
|
-
n instanceof
|
|
61723
|
+
n instanceof Go && n.parentSub !== null && /** @type {AbstractType<any>} */
|
|
61722
61724
|
n.parent._map.get(n.parentSub) === n && n.parent._map.set(
|
|
61723
61725
|
n.parentSub,
|
|
61724
61726
|
/** @type {Item} */
|
|
@@ -61742,7 +61744,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
|
|
|
61742
61744
|
const f = o[i];
|
|
61743
61745
|
if (a.clock + a.len <= f.id.clock)
|
|
61744
61746
|
break;
|
|
61745
|
-
f instanceof
|
|
61747
|
+
f instanceof Go && f.deleted && !f.keep && n(f) && f.gc(t, !1);
|
|
61746
61748
|
}
|
|
61747
61749
|
}
|
|
61748
61750
|
}
|
|
@@ -61810,7 +61812,7 @@ const Dx = (c, t) => t.deleteSet.clients.size === 0 && !PM(t.afterState, (n, e)
|
|
|
61810
61812
|
}), i.forEach((u) => e.subdocs.delete(u)), e.emit("subdocs", [{ loaded: l, added: a, removed: i }, e, n]), i.forEach((u) => u.destroy())), c.length <= t + 1 ? (e._transactionCleanups = [], e.emit("afterAllTransactions", [e, c])) : XC(c, t + 1);
|
|
61811
61813
|
}
|
|
61812
61814
|
}
|
|
61813
|
-
},
|
|
61815
|
+
}, Rr = (c, t, n = null, e = !0) => {
|
|
61814
61816
|
const s = c._transactionCleanups;
|
|
61815
61817
|
let o = !1, r = null;
|
|
61816
61818
|
c._transaction === null && (o = !0, c._transaction = new Z4(c, n, e), s.push(c._transaction), s.length === 1 && c.emit("beforeAllTransactions", [c]), c.emit("beforeTransaction", [c._transaction, c]));
|
|
@@ -62229,7 +62231,7 @@ const n2 = (c, t, n) => {
|
|
|
62229
62231
|
const o = c.doc, r = o.clientID, a = o.store, l = n === null ? t._start : n.right;
|
|
62230
62232
|
let i = [];
|
|
62231
62233
|
const u = () => {
|
|
62232
|
-
i.length > 0 && (s = new
|
|
62234
|
+
i.length > 0 && (s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new hu(i)), s.integrate(c, 0), i = []);
|
|
62233
62235
|
};
|
|
62234
62236
|
e.forEach((f) => {
|
|
62235
62237
|
if (f === null)
|
|
@@ -62247,20 +62249,20 @@ const n2 = (c, t, n) => {
|
|
|
62247
62249
|
switch (u(), f.constructor) {
|
|
62248
62250
|
case Uint8Array:
|
|
62249
62251
|
case ArrayBuffer:
|
|
62250
|
-
s = new
|
|
62252
|
+
s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new cg(new Uint8Array(
|
|
62251
62253
|
/** @type {Uint8Array} */
|
|
62252
62254
|
f
|
|
62253
62255
|
))), s.integrate(c, 0);
|
|
62254
62256
|
break;
|
|
62255
62257
|
case yf:
|
|
62256
|
-
s = new
|
|
62258
|
+
s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ug(
|
|
62257
62259
|
/** @type {Doc} */
|
|
62258
62260
|
f
|
|
62259
62261
|
)), s.integrate(c, 0);
|
|
62260
62262
|
break;
|
|
62261
62263
|
default:
|
|
62262
62264
|
if (f instanceof zo)
|
|
62263
|
-
s = new
|
|
62265
|
+
s = new Go(to(r, yi(a, r)), s, s && s.lastId, l, l && l.id, t, null, new ll(f)), s.integrate(c, 0);
|
|
62264
62266
|
else
|
|
62265
62267
|
throw new Error("Unexpected content type in insert operation");
|
|
62266
62268
|
}
|
|
@@ -62340,7 +62342,7 @@ const n2 = (c, t, n) => {
|
|
|
62340
62342
|
else
|
|
62341
62343
|
throw new Error("Unexpected content type");
|
|
62342
62344
|
}
|
|
62343
|
-
new
|
|
62345
|
+
new Go(to(r, yi(o.store, r)), s, s && s.lastId, null, null, t, n, a).integrate(c, 0);
|
|
62344
62346
|
}, fb = (c, t) => {
|
|
62345
62347
|
const n = c._map.get(t);
|
|
62346
62348
|
return n !== void 0 && !n.deleted ? n.content.getContent()[n.length - 1] : void 0;
|
|
@@ -62456,7 +62458,7 @@ class Fl extends zo {
|
|
|
62456
62458
|
* @param {Array<T>} content The array of content
|
|
62457
62459
|
*/
|
|
62458
62460
|
insert(t, n) {
|
|
62459
|
-
this.doc !== null ?
|
|
62461
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
62460
62462
|
s2(
|
|
62461
62463
|
e,
|
|
62462
62464
|
this,
|
|
@@ -62474,7 +62476,7 @@ class Fl extends zo {
|
|
|
62474
62476
|
* @todo Use the following implementation in all types.
|
|
62475
62477
|
*/
|
|
62476
62478
|
push(t) {
|
|
62477
|
-
this.doc !== null ?
|
|
62479
|
+
this.doc !== null ? Rr(this.doc, (n) => {
|
|
62478
62480
|
iR(
|
|
62479
62481
|
n,
|
|
62480
62482
|
this,
|
|
@@ -62498,7 +62500,7 @@ class Fl extends zo {
|
|
|
62498
62500
|
* @param {number} length The number of elements to remove. Defaults to 1.
|
|
62499
62501
|
*/
|
|
62500
62502
|
delete(t, n = 1) {
|
|
62501
|
-
this.doc !== null ?
|
|
62503
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
62502
62504
|
l2(e, this, t, n);
|
|
62503
62505
|
}) : this._prelimContent.splice(t, n);
|
|
62504
62506
|
}
|
|
@@ -62723,7 +62725,7 @@ class fu extends zo {
|
|
|
62723
62725
|
* @param {string} key The key of the element to remove.
|
|
62724
62726
|
*/
|
|
62725
62727
|
delete(t) {
|
|
62726
|
-
this.doc !== null ?
|
|
62728
|
+
this.doc !== null ? Rr(this.doc, (n) => {
|
|
62727
62729
|
yh(n, this, t);
|
|
62728
62730
|
}) : this._prelimContent.delete(t);
|
|
62729
62731
|
}
|
|
@@ -62736,7 +62738,7 @@ class fu extends zo {
|
|
|
62736
62738
|
* @return {VAL}
|
|
62737
62739
|
*/
|
|
62738
62740
|
set(t, n) {
|
|
62739
|
-
return this.doc !== null ?
|
|
62741
|
+
return this.doc !== null ? Rr(this.doc, (e) => {
|
|
62740
62742
|
db(
|
|
62741
62743
|
e,
|
|
62742
62744
|
this,
|
|
@@ -62771,7 +62773,7 @@ class fu extends zo {
|
|
|
62771
62773
|
* Removes all elements from this YMap.
|
|
62772
62774
|
*/
|
|
62773
62775
|
clear() {
|
|
62774
|
-
this.doc !== null ?
|
|
62776
|
+
this.doc !== null ? Rr(this.doc, (t) => {
|
|
62775
62777
|
this.forEach(function(n, e, s) {
|
|
62776
62778
|
yh(t, s, e);
|
|
62777
62779
|
});
|
|
@@ -62855,7 +62857,7 @@ const Bx = (c, t, n) => {
|
|
|
62855
62857
|
), n.forward();
|
|
62856
62858
|
const s = c.doc, o = s.clientID;
|
|
62857
62859
|
e.forEach((r, a) => {
|
|
62858
|
-
const l = n.left, i = n.right, u = new
|
|
62860
|
+
const l = n.left, i = n.right, u = new Go(to(o, yi(s.store, o)), l, l && l.lastId, i, i && i.id, t, null, new No(a, r));
|
|
62859
62861
|
u.integrate(c, 0), n.right = u, n.forward();
|
|
62860
62862
|
});
|
|
62861
62863
|
}, Au = (c, t) => {
|
|
@@ -62881,7 +62883,7 @@ const Bx = (c, t, n) => {
|
|
|
62881
62883
|
if (!qs(i, l)) {
|
|
62882
62884
|
r.set(a, i);
|
|
62883
62885
|
const { left: u, right: f } = n;
|
|
62884
|
-
n.right = new
|
|
62886
|
+
n.right = new Go(to(o, yi(s.store, o)), u, u && u.lastId, f, f && f.id, t, null, new No(a, l)), n.right.integrate(c, 0), n.forward();
|
|
62885
62887
|
}
|
|
62886
62888
|
}
|
|
62887
62889
|
return r;
|
|
@@ -62896,7 +62898,7 @@ const Bx = (c, t, n) => {
|
|
|
62896
62898
|
e
|
|
62897
62899
|
) : e instanceof zo ? new ll(e) : new ju(e);
|
|
62898
62900
|
let { left: i, right: u, index: f } = n;
|
|
62899
|
-
t._searchMarker && Hd(t._searchMarker, n.index, l.getLength()), u = new
|
|
62901
|
+
t._searchMarker && Hd(t._searchMarker, n.index, l.getLength()), u = new Go(to(r, yi(o.store, r)), i, i && i.lastId, u, u && u.id, t, null, l), u.integrate(c, 0), n.right = u, n.index = f, n.forward(), f2(c, t, n, a);
|
|
62900
62902
|
}, zx = (c, t, n, e, s) => {
|
|
62901
62903
|
const o = c.doc, r = o.clientID;
|
|
62902
62904
|
p2(n, s);
|
|
@@ -62934,7 +62936,7 @@ const Bx = (c, t, n) => {
|
|
|
62934
62936
|
for (; e > 0; e--)
|
|
62935
62937
|
l += `
|
|
62936
62938
|
`;
|
|
62937
|
-
n.right = new
|
|
62939
|
+
n.right = new Go(to(r, yi(o.store, r)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new is(l)), n.right.integrate(c, 0), n.forward();
|
|
62938
62940
|
}
|
|
62939
62941
|
f2(c, t, n, a);
|
|
62940
62942
|
}, g2 = (c, t, n, e, s) => {
|
|
@@ -62989,7 +62991,7 @@ const Bx = (c, t, n) => {
|
|
|
62989
62991
|
}
|
|
62990
62992
|
}, cR = (c) => {
|
|
62991
62993
|
let t = 0;
|
|
62992
|
-
return
|
|
62994
|
+
return Rr(
|
|
62993
62995
|
/** @type {Doc} */
|
|
62994
62996
|
c.doc,
|
|
62995
62997
|
(n) => {
|
|
@@ -63035,7 +63037,7 @@ const Bx = (c, t, n) => {
|
|
|
63035
63037
|
}
|
|
63036
63038
|
);
|
|
63037
63039
|
}
|
|
63038
|
-
|
|
63040
|
+
Rr(n, (e) => {
|
|
63039
63041
|
WC(c, c.deleteSet, (s) => {
|
|
63040
63042
|
if (s instanceof $s || !/** @type {YText} */
|
|
63041
63043
|
s.parent._hasFormatting || t.has(
|
|
@@ -63116,7 +63118,7 @@ class dR extends ag {
|
|
|
63116
63118
|
/** @type {Doc} */
|
|
63117
63119
|
this.target.doc
|
|
63118
63120
|
), n = [];
|
|
63119
|
-
|
|
63121
|
+
Rr(t, (e) => {
|
|
63120
63122
|
const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
63121
63123
|
let r = this.target._start, a = null;
|
|
63122
63124
|
const l = {};
|
|
@@ -63279,7 +63281,7 @@ class bh extends zo {
|
|
|
63279
63281
|
* @public
|
|
63280
63282
|
*/
|
|
63281
63283
|
applyDelta(t, { sanitize: n = !0 } = {}) {
|
|
63282
|
-
this.doc !== null ?
|
|
63284
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
63283
63285
|
const s = new o0(null, this._start, 0, /* @__PURE__ */ new Map());
|
|
63284
63286
|
for (let o = 0; o < t.length; o++) {
|
|
63285
63287
|
const r = t[o];
|
|
@@ -63359,7 +63361,7 @@ class bh extends zo {
|
|
|
63359
63361
|
}
|
|
63360
63362
|
i();
|
|
63361
63363
|
};
|
|
63362
|
-
return t || n ?
|
|
63364
|
+
return t || n ? Rr(r, (f) => {
|
|
63363
63365
|
t && n0(f, t), n && n0(f, n), u();
|
|
63364
63366
|
}, "cleanup") : u(), s;
|
|
63365
63367
|
}
|
|
@@ -63377,7 +63379,7 @@ class bh extends zo {
|
|
|
63377
63379
|
if (n.length <= 0)
|
|
63378
63380
|
return;
|
|
63379
63381
|
const s = this.doc;
|
|
63380
|
-
s !== null ?
|
|
63382
|
+
s !== null ? Rr(s, (o) => {
|
|
63381
63383
|
const r = mp(o, this, t, !e);
|
|
63382
63384
|
e || (e = {}, r.currentAttributes.forEach((a, l) => {
|
|
63383
63385
|
e[l] = a;
|
|
@@ -63396,7 +63398,7 @@ class bh extends zo {
|
|
|
63396
63398
|
*/
|
|
63397
63399
|
insertEmbed(t, n, e) {
|
|
63398
63400
|
const s = this.doc;
|
|
63399
|
-
s !== null ?
|
|
63401
|
+
s !== null ? Rr(s, (o) => {
|
|
63400
63402
|
const r = mp(o, this, t, !e);
|
|
63401
63403
|
Xm(o, this, r, n, e || {});
|
|
63402
63404
|
}) : this._pending.push(() => this.insertEmbed(t, n, e || {}));
|
|
@@ -63413,7 +63415,7 @@ class bh extends zo {
|
|
|
63413
63415
|
if (n === 0)
|
|
63414
63416
|
return;
|
|
63415
63417
|
const e = this.doc;
|
|
63416
|
-
e !== null ?
|
|
63418
|
+
e !== null ? Rr(e, (s) => {
|
|
63417
63419
|
$x(s, mp(s, this, t, !0), n);
|
|
63418
63420
|
}) : this._pending.push(() => this.delete(t, n));
|
|
63419
63421
|
}
|
|
@@ -63431,7 +63433,7 @@ class bh extends zo {
|
|
|
63431
63433
|
if (n === 0)
|
|
63432
63434
|
return;
|
|
63433
63435
|
const s = this.doc;
|
|
63434
|
-
s !== null ?
|
|
63436
|
+
s !== null ? Rr(s, (o) => {
|
|
63435
63437
|
const r = mp(o, this, t, !1);
|
|
63436
63438
|
r.right !== null && zx(o, this, r, n, e);
|
|
63437
63439
|
}) : this._pending.push(() => this.format(t, n, e));
|
|
@@ -63446,7 +63448,7 @@ class bh extends zo {
|
|
|
63446
63448
|
* @public
|
|
63447
63449
|
*/
|
|
63448
63450
|
removeAttribute(t) {
|
|
63449
|
-
this.doc !== null ?
|
|
63451
|
+
this.doc !== null ? Rr(this.doc, (n) => {
|
|
63450
63452
|
yh(n, this, t);
|
|
63451
63453
|
}) : this._pending.push(() => this.removeAttribute(t));
|
|
63452
63454
|
}
|
|
@@ -63461,7 +63463,7 @@ class bh extends zo {
|
|
|
63461
63463
|
* @public
|
|
63462
63464
|
*/
|
|
63463
63465
|
setAttribute(t, n) {
|
|
63464
|
-
this.doc !== null ?
|
|
63466
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
63465
63467
|
db(e, this, t, n);
|
|
63466
63468
|
}) : this._pending.push(() => this.setAttribute(t, n));
|
|
63467
63469
|
}
|
|
@@ -63700,7 +63702,7 @@ class pu extends zo {
|
|
|
63700
63702
|
* @param {Array<YXmlElement|YXmlText>} content The array of content
|
|
63701
63703
|
*/
|
|
63702
63704
|
insert(t, n) {
|
|
63703
|
-
this.doc !== null ?
|
|
63705
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
63704
63706
|
s2(e, this, t, n);
|
|
63705
63707
|
}) : this._prelimContent.splice(t, 0, ...n);
|
|
63706
63708
|
}
|
|
@@ -63716,7 +63718,7 @@ class pu extends zo {
|
|
|
63716
63718
|
*/
|
|
63717
63719
|
insertAfter(t, n) {
|
|
63718
63720
|
if (this.doc !== null)
|
|
63719
|
-
|
|
63721
|
+
Rr(this.doc, (e) => {
|
|
63720
63722
|
const s = t && t instanceof zo ? t._item : t;
|
|
63721
63723
|
mh(e, this, s, n);
|
|
63722
63724
|
});
|
|
@@ -63737,7 +63739,7 @@ class pu extends zo {
|
|
|
63737
63739
|
* @param {number} [length=1] The number of elements to remove. Defaults to 1.
|
|
63738
63740
|
*/
|
|
63739
63741
|
delete(t, n = 1) {
|
|
63740
|
-
this.doc !== null ?
|
|
63742
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
63741
63743
|
l2(e, this, t, n);
|
|
63742
63744
|
}) : this._prelimContent.splice(t, n);
|
|
63743
63745
|
}
|
|
@@ -63897,7 +63899,7 @@ class Wd extends pu {
|
|
|
63897
63899
|
* @public
|
|
63898
63900
|
*/
|
|
63899
63901
|
removeAttribute(t) {
|
|
63900
|
-
this.doc !== null ?
|
|
63902
|
+
this.doc !== null ? Rr(this.doc, (n) => {
|
|
63901
63903
|
yh(n, this, t);
|
|
63902
63904
|
}) : this._prelimAttrs.delete(t);
|
|
63903
63905
|
}
|
|
@@ -63912,7 +63914,7 @@ class Wd extends pu {
|
|
|
63912
63914
|
* @public
|
|
63913
63915
|
*/
|
|
63914
63916
|
setAttribute(t, n) {
|
|
63915
|
-
this.doc !== null ?
|
|
63917
|
+
this.doc !== null ? Rr(this.doc, (e) => {
|
|
63916
63918
|
db(e, this, t, n);
|
|
63917
63919
|
}) : this._prelimAttrs.set(t, n);
|
|
63918
63920
|
}
|
|
@@ -64730,7 +64732,7 @@ class ll {
|
|
|
64730
64732
|
}
|
|
64731
64733
|
}
|
|
64732
64734
|
const y2 = (c, t, n) => {
|
|
64733
|
-
const { client: e, clock: s } = t.id, o = new
|
|
64735
|
+
const { client: e, clock: s } = t.id, o = new Go(
|
|
64734
64736
|
to(e, s + n),
|
|
64735
64737
|
t,
|
|
64736
64738
|
to(e, s + n - 1),
|
|
@@ -64742,7 +64744,7 @@ const y2 = (c, t, n) => {
|
|
|
64742
64744
|
);
|
|
64743
64745
|
return t.deleted && o.markDeleted(), t.keep && (o.keep = !0), t.redone !== null && (o.redone = to(t.redone.client, t.redone.clock + n)), t.right = o, o.right !== null && (o.right.left = o), c._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), t.length = n, o;
|
|
64744
64746
|
};
|
|
64745
|
-
class
|
|
64747
|
+
class Go extends m2 {
|
|
64746
64748
|
/**
|
|
64747
64749
|
* @param {ID} id
|
|
64748
64750
|
* @param {Item | null} left
|
|
@@ -64809,7 +64811,7 @@ class Ko extends m2 {
|
|
|
64809
64811
|
if (this.origin && (this.left = Rx(t, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Qs(t, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === $s || this.right && this.right.constructor === $s)
|
|
64810
64812
|
this.parent = null;
|
|
64811
64813
|
else if (!this.parent)
|
|
64812
|
-
this.left && this.left.constructor ===
|
|
64814
|
+
this.left && this.left.constructor === Go && (this.parent = this.left.parent, this.parentSub = this.left.parentSub), this.right && this.right.constructor === Go && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
|
|
64813
64815
|
else if (this.parent.constructor === Lp) {
|
|
64814
64816
|
const e = Qm(n, this.parent);
|
|
64815
64817
|
e.constructor === $s ? this.parent = null : this.parent = /** @type {ContentType} */
|
|
@@ -65464,7 +65466,7 @@ function C2({ options: c, onQueryChange: t, onSelectOption: n, onOpen: e, onClos
|
|
|
65464
65466
|
}
|
|
65465
65467
|
return !0;
|
|
65466
65468
|
}(w.leadOffset, b, v) !== null)
|
|
65467
|
-
return x = () => m({ getRect: () => b.getBoundingClientRect(), match: w }), void (
|
|
65469
|
+
return x = () => m({ getRect: () => b.getBoundingClientRect(), match: w }), void (ar.startTransition ? ar.startTransition(x) : x());
|
|
65468
65470
|
var x;
|
|
65469
65471
|
h();
|
|
65470
65472
|
});
|
|
@@ -65632,7 +65634,7 @@ function KR({
|
|
|
65632
65634
|
}, [c, t]);
|
|
65633
65635
|
return qt(() => (window.addEventListener("resize", s), () => {
|
|
65634
65636
|
window.removeEventListener("resize", s);
|
|
65635
|
-
}), [t, s]),
|
|
65637
|
+
}), [t, s]), ar.useLayoutEffect(() => {
|
|
65636
65638
|
s();
|
|
65637
65639
|
}, [c, t, s]), /* @__PURE__ */ ge.jsx("div", { className: "CommentPlugin_AddCommentBox", ref: e, children: /* @__PURE__ */ ge.jsx(
|
|
65638
65640
|
"button",
|
|
@@ -65754,7 +65756,7 @@ function YR({
|
|
|
65754
65756
|
}
|
|
65755
65757
|
});
|
|
65756
65758
|
}, [c, m]);
|
|
65757
|
-
|
|
65759
|
+
ar.useLayoutEffect(() => {
|
|
65758
65760
|
b();
|
|
65759
65761
|
const x = m.container, y = document.body;
|
|
65760
65762
|
if (y !== null)
|
|
@@ -66364,7 +66366,7 @@ function e3({ htmlString: c, wpAndTaskId: t }) {
|
|
|
66364
66366
|
const [n] = kn();
|
|
66365
66367
|
return qt(() => {
|
|
66366
66368
|
!c || !t || n.update(() => {
|
|
66367
|
-
const s = Ln().getChildren().filter(
|
|
66369
|
+
const s = Ln().getChildren().filter(Ir);
|
|
66368
66370
|
s.forEach((o, r) => {
|
|
66369
66371
|
var h;
|
|
66370
66372
|
const a = o.getChildren().find(Yh);
|
|
@@ -66389,7 +66391,7 @@ function e3({ htmlString: c, wpAndTaskId: t }) {
|
|
|
66389
66391
|
return;
|
|
66390
66392
|
const i = typeof l.getId == "function" ? l.getId() : void 0, u = l.getTextContent(), f = parseInt(((h = u.match(/\d+/)) == null ? void 0 : h[0]) || "1"), d = i || Xc(u, f, t);
|
|
66391
66393
|
a.__captionId = d;
|
|
66392
|
-
const p = new
|
|
66394
|
+
const p = new Ko(l.getTextContent(), "black", d);
|
|
66393
66395
|
l.replace(p);
|
|
66394
66396
|
});
|
|
66395
66397
|
});
|
|
@@ -66404,7 +66406,7 @@ function t3({
|
|
|
66404
66406
|
const e = Ln().getChildren().filter(pr);
|
|
66405
66407
|
console.log("captionId", e), e.forEach((s, o) => {
|
|
66406
66408
|
const r = s.getPreviousSibling();
|
|
66407
|
-
if (r &&
|
|
66409
|
+
if (r && Ir(r)) {
|
|
66408
66410
|
const a = r.getChildren();
|
|
66409
66411
|
console.log("children", a.find((i) => console.log("child", i)));
|
|
66410
66412
|
const l = a.find(
|
|
@@ -66420,7 +66422,7 @@ function t3({
|
|
|
66420
66422
|
console.log("captionId", u), s.__captionId = u, a.forEach((f) => {
|
|
66421
66423
|
if (f.getTextContent().startsWith("Table")) {
|
|
66422
66424
|
console.log("gtting here");
|
|
66423
|
-
const d = new
|
|
66425
|
+
const d = new Ko(
|
|
66424
66426
|
f.getTextContent(),
|
|
66425
66427
|
"black",
|
|
66426
66428
|
u
|
|
@@ -66459,7 +66461,7 @@ function n3({ setEditorEditable: c, htmlString: t, isEditable: n, setIsexistingI
|
|
|
66459
66461
|
const f = Tn();
|
|
66460
66462
|
bi(i), bi([f]), s.setEditable(!1), setTimeout(() => {
|
|
66461
66463
|
s.setEditable(n), c(!0);
|
|
66462
|
-
},
|
|
66464
|
+
}, 5e3);
|
|
66463
66465
|
});
|
|
66464
66466
|
}, [s, t]), null;
|
|
66465
66467
|
}
|
|
@@ -66912,7 +66914,7 @@ function s3({ options: c, nodeKey: t, onClose: n, onOpen: e, onSelectOption: s,
|
|
|
66912
66914
|
t ? i.update(() => {
|
|
66913
66915
|
const g = er(t), v = i.getElementByKey(t);
|
|
66914
66916
|
var b;
|
|
66915
|
-
g != null && v != null && u == null && (b = () => h({ getRect: () => v.getBoundingClientRect() }),
|
|
66917
|
+
g != null && v != null && u == null && (b = () => h({ getRect: () => v.getBoundingClientRect() }), ar.startTransition ? ar.startTransition(b) : b());
|
|
66916
66918
|
}) : t == null && u != null && p();
|
|
66917
66919
|
}, [p, i, t, h, u]);
|
|
66918
66920
|
return qt(() => {
|
|
@@ -67235,7 +67237,7 @@ function T3() {
|
|
|
67235
67237
|
(i, u, f) => {
|
|
67236
67238
|
c.update(() => {
|
|
67237
67239
|
const d = jt();
|
|
67238
|
-
!Tt(d) || i == null || (u && u.remove(), d.insertNodes([
|
|
67240
|
+
!Tt(d) || i == null || (u && u.remove(), d.insertNodes([sr(i.emoji)]), f());
|
|
67239
67241
|
});
|
|
67240
67242
|
},
|
|
67241
67243
|
[c]
|
|
@@ -67315,7 +67317,7 @@ function j3({ htmlString: c, wpAndTaskId: t }) {
|
|
|
67315
67317
|
const [n] = kn();
|
|
67316
67318
|
return qt(() => {
|
|
67317
67319
|
!c || !t || n.update(() => {
|
|
67318
|
-
const s = Ln().getChildren().filter(
|
|
67320
|
+
const s = Ln().getChildren().filter(Ir);
|
|
67319
67321
|
s.forEach((o, r) => {
|
|
67320
67322
|
var h;
|
|
67321
67323
|
const a = o.getChildren().find(Yh);
|
|
@@ -67340,7 +67342,7 @@ function j3({ htmlString: c, wpAndTaskId: t }) {
|
|
|
67340
67342
|
return;
|
|
67341
67343
|
const i = typeof l.getId == "function" ? l.getId() : void 0, u = l.getTextContent(), f = parseInt(((h = u.match(/\d+/)) == null ? void 0 : h[0]) || "1"), d = i || Xc(u, f, t);
|
|
67342
67344
|
a.__captionId = d;
|
|
67343
|
-
const p = new
|
|
67345
|
+
const p = new Ko(l.getTextContent(), "black", d);
|
|
67344
67346
|
l.replace(p);
|
|
67345
67347
|
});
|
|
67346
67348
|
});
|
|
@@ -67355,7 +67357,7 @@ function I3({
|
|
|
67355
67357
|
const e = Ln().getChildren().filter(pr);
|
|
67356
67358
|
console.log("captionId", e), e.forEach((s, o) => {
|
|
67357
67359
|
const r = s.getPreviousSibling();
|
|
67358
|
-
if (r &&
|
|
67360
|
+
if (r && Ir(r)) {
|
|
67359
67361
|
const a = r.getChildren();
|
|
67360
67362
|
console.log("children", a.find((i) => console.log("child", i)));
|
|
67361
67363
|
const l = a.find(
|
|
@@ -67371,7 +67373,7 @@ function I3({
|
|
|
67371
67373
|
console.log("captionId", u), s.__captionId = u, a.forEach((f) => {
|
|
67372
67374
|
if (f.getTextContent().startsWith("Table")) {
|
|
67373
67375
|
console.log("gtting here");
|
|
67374
|
-
const d = new
|
|
67376
|
+
const d = new Ko(
|
|
67375
67377
|
f.getTextContent(),
|
|
67376
67378
|
"black",
|
|
67377
67379
|
u
|
|
@@ -67714,15 +67716,15 @@ export {
|
|
|
67714
67716
|
sA as n,
|
|
67715
67717
|
Mi as o,
|
|
67716
67718
|
Qc as p,
|
|
67717
|
-
|
|
67719
|
+
ti as q,
|
|
67718
67720
|
Gd as r,
|
|
67719
67721
|
Jx as s,
|
|
67720
67722
|
Ao as t,
|
|
67721
67723
|
L0 as u,
|
|
67722
|
-
|
|
67724
|
+
Ir as v,
|
|
67723
67725
|
jt as w,
|
|
67724
67726
|
er as x,
|
|
67725
67727
|
Xl as y,
|
|
67726
67728
|
L3 as z
|
|
67727
67729
|
};
|
|
67728
|
-
//# sourceMappingURL=index-
|
|
67730
|
+
//# sourceMappingURL=index-dfa228ac.js.map
|