sykpcomposer 0.0.258 → 0.0.259
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-cf344a7e.js → ImageComponent-aebf375a.js} +3 -3
- package/dist/{ImageComponent-cf344a7e.js.map → ImageComponent-aebf375a.js.map} +1 -1
- package/dist/{InlineImageComponent-18a7736e.js → InlineImageComponent-8770a2c3.js} +3 -3
- package/dist/{InlineImageComponent-18a7736e.js.map → InlineImageComponent-8770a2c3.js.map} +1 -1
- package/dist/{LexicalNestedComposer.prod-be302eab.js → LexicalNestedComposer.prod-3361fad1.js} +2 -2
- package/dist/{LexicalNestedComposer.prod-be302eab.js.map → LexicalNestedComposer.prod-3361fad1.js.map} +1 -1
- package/dist/{index-80dad39e.js → index-e5d75707.js} +339 -339
- package/dist/{index-80dad39e.js.map → index-e5d75707.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var to = (y, i, p) => (q_(y, typeof i != "symbol" ? i + "" : i, p), p);
|
|
|
4
4
|
import * as lr from "react";
|
|
5
5
|
import Ui, { createContext as ov, useContext as iv, useMemo as jo, useLayoutEffect as Ia, useEffect as _n, Suspense as Bf, useState as un, useRef as wr, useCallback as Mn, forwardRef as W_ } from "react";
|
|
6
6
|
import * as df from "react-dom";
|
|
7
|
-
import { createPortal as
|
|
7
|
+
import { createPortal as yc, flushSync as av } from "react-dom";
|
|
8
8
|
var V_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Mu(y) {
|
|
10
10
|
return y && y.__esModule && Object.prototype.hasOwnProperty.call(y, "default") ? y.default : y;
|
|
@@ -695,7 +695,7 @@ function ir() {
|
|
|
695
695
|
function fa(y) {
|
|
696
696
|
return {};
|
|
697
697
|
}
|
|
698
|
-
const Ci = {}, sv = {},
|
|
698
|
+
const Ci = {}, sv = {}, bc = {}, Hi = {}, gs = {}, pc = {}, ms = {}, al = {}, ff = {}, tl = {}, vs = {}, Do = {}, Ru = {}, Du = {}, kg = {}, Lu = {}, Q_ = {}, Bu = {}, X_ = {}, Fu = {}, zu = {}, _s = {}, lv = {}, Ma = {}, vc = {}, sl = {}, zf = {}, ex = {}, tx = {}, zy = {}, $u = {}, nc = {}, Uu = {}, $f = {}, nx = {}, Hu = {}, qu = {}, pf = {}, Ag = {}, rx = {}, rc = {}, oc = {}, Uf = {}, Hf = {}, ox = {}, Vi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ix = Vi && "documentMode" in document ? document.documentMode : null, Li = Vi && /Mac|iPod|iPhone|iPad/.test(navigator.platform), ys = Vi && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), hf = !(!Vi || !("InputEvent" in window) || ix) && "getTargetRanges" in new window.InputEvent("input"), jg = Vi && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), qf = Vi && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, ax = Vi && /Android/.test(navigator.userAgent), cv = Vi && /^(?=.*Chrome).*/i.test(navigator.userAgent), sx = Vi && ax && cv, Ng = Vi && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !cv, Wu = 1, Es = 3, nl = 0, uv = 1, hc = 2, lx = 0, cx = 1, ux = 2, gf = 4, mf = 8, Pg = 128, dx = 112 | (3 | gf | mf) | Pg, Ig = 1, Mg = 2, Rg = 3, Dg = 4, Lg = 5, Bg = 6, Wf = jg || qf || Ng ? " " : "", Na = `
|
|
699
699
|
|
|
700
700
|
`, fx = ys ? " " : Wf, dv = "֑-߿יִ-﷽ﹰ-ﻼ", fv = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", px = new RegExp("^[^" + fv + "]*[" + dv + "]"), hx = new RegExp("^[^" + dv + "]*[" + fv + "]"), Aa = { bold: 1, code: 16, highlight: Pg, italic: 2, strikethrough: gf, subscript: 32, superscript: 64, underline: mf }, gx = { directionless: 1, unmergeable: 2 }, $y = { center: Mg, end: Bg, justify: Dg, left: Ig, right: Rg, start: Lg }, mx = { [Mg]: "center", [Bg]: "end", [Dg]: "justify", [Ig]: "left", [Rg]: "right", [Lg]: "start" }, yx = { normal: 0, segmented: 2, token: 1 }, bx = { [lx]: "normal", [ux]: "segmented", [cx]: "token" };
|
|
701
701
|
function vx(y) {
|
|
@@ -1001,7 +1001,7 @@ function _o(y) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
function ps() {
|
|
1004
|
-
return
|
|
1004
|
+
return Ec() ? null : Ur()._compositionKey;
|
|
1005
1005
|
}
|
|
1006
1006
|
function Ar(y, i) {
|
|
1007
1007
|
const p = (i || ha())._nodeMap.get(y);
|
|
@@ -1141,26 +1141,26 @@ function Ky(y) {
|
|
|
1141
1141
|
function Gy(y) {
|
|
1142
1142
|
return y === "ArrowRight";
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function du(y, i) {
|
|
1145
1145
|
return Li ? y : i;
|
|
1146
1146
|
}
|
|
1147
1147
|
function Yy(y) {
|
|
1148
1148
|
return y === "Enter";
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function ru(y) {
|
|
1151
1151
|
return y === "Backspace";
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function ou(y) {
|
|
1154
1154
|
return y === "Delete";
|
|
1155
1155
|
}
|
|
1156
1156
|
function Zy(y, i, p) {
|
|
1157
|
-
return y.toLowerCase() === "a" &&
|
|
1157
|
+
return y.toLowerCase() === "a" && du(i, p);
|
|
1158
1158
|
}
|
|
1159
1159
|
function Ev() {
|
|
1160
1160
|
const y = Er();
|
|
1161
1161
|
Sr(zg(y.select(0, y.getChildrenSize())));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function bu(y, i) {
|
|
1164
1164
|
y.__lexicalClassNameCache === void 0 && (y.__lexicalClassNameCache = {});
|
|
1165
1165
|
const p = y.__lexicalClassNameCache, e = p[i];
|
|
1166
1166
|
if (e !== void 0)
|
|
@@ -1329,9 +1329,9 @@ function Ix(y, i) {
|
|
|
1329
1329
|
return [c, n];
|
|
1330
1330
|
}
|
|
1331
1331
|
function Mx(y) {
|
|
1332
|
-
return
|
|
1332
|
+
return _c(y) && y.tagName === "A";
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function _c(y) {
|
|
1335
1335
|
return y.nodeType === 1;
|
|
1336
1336
|
}
|
|
1337
1337
|
function Rx(y) {
|
|
@@ -1506,7 +1506,7 @@ function Fx(y, i, p) {
|
|
|
1506
1506
|
if (lo = "", r === 1 && d === 1) {
|
|
1507
1507
|
const s = n.__first, u = t.__first;
|
|
1508
1508
|
if (s === u)
|
|
1509
|
-
|
|
1509
|
+
fu(s, o);
|
|
1510
1510
|
else {
|
|
1511
1511
|
const f = Jh(s), m = Sf(u, null, null);
|
|
1512
1512
|
o.replaceChild(m, f), wf(s, null);
|
|
@@ -1529,14 +1529,14 @@ function Fx(y, i, p) {
|
|
|
1529
1529
|
for (var I; w <= b && C <= S; ) {
|
|
1530
1530
|
const N = f[w], R = m[C];
|
|
1531
1531
|
if (N === R)
|
|
1532
|
-
g = mh(
|
|
1532
|
+
g = mh(fu(R, _)), w++, C++;
|
|
1533
1533
|
else {
|
|
1534
1534
|
E === void 0 && (E = new Set(f)), x === void 0 && (x = new Set(m));
|
|
1535
1535
|
const O = x.has(N), A = E.has(R);
|
|
1536
1536
|
if (O)
|
|
1537
1537
|
if (A) {
|
|
1538
1538
|
const D = _f(zo, R);
|
|
1539
|
-
D === g ? g = mh(
|
|
1539
|
+
D === g ? g = mh(fu(R, _)) : (g != null ? _.insertBefore(D, g) : _.appendChild(D), fu(R, _)), w++, C++;
|
|
1540
1540
|
} else
|
|
1541
1541
|
Sf(R, _, g), C++;
|
|
1542
1542
|
else
|
|
@@ -1565,7 +1565,7 @@ function Ef(y, i) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
return p;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function fu(y, i) {
|
|
1569
1569
|
const p = rl.get(y);
|
|
1570
1570
|
let e = qi.get(y);
|
|
1571
1571
|
p !== void 0 && e !== void 0 || pn(61);
|
|
@@ -1621,16 +1621,16 @@ function mh(y) {
|
|
|
1621
1621
|
return i !== null && i === zo._blockCursorElement && (i = i.nextSibling), i;
|
|
1622
1622
|
}
|
|
1623
1623
|
function zx(y, i, p, e, c, n) {
|
|
1624
|
-
lo = "", Ta = "", Fo = "", Tv = e ===
|
|
1624
|
+
lo = "", Ta = "", Fo = "", Tv = e === hc, Jd = null, zo = p, xs = p._config, ku = p._nodes, Gf = zo._listeners.mutation, Uh = c, Hh = n, rl = y._nodeMap, qi = i._nodeMap, Yf = i._readOnly, qh = new Map(p._keyToDOMMap);
|
|
1625
1625
|
const t = /* @__PURE__ */ new Map();
|
|
1626
|
-
return Au = t,
|
|
1626
|
+
return Au = t, fu("root", null), zo = void 0, ku = void 0, Uh = void 0, Hh = void 0, rl = void 0, qi = void 0, xs = void 0, qh = void 0, Au = void 0, t;
|
|
1627
1627
|
}
|
|
1628
1628
|
function Jh(y) {
|
|
1629
1629
|
const i = qh.get(y);
|
|
1630
1630
|
return i === void 0 && pn(75, y), i;
|
|
1631
1631
|
}
|
|
1632
1632
|
const Ea = Object.freeze({}), Kh = 30, Gh = [["keydown", function(y, i) {
|
|
1633
|
-
if (
|
|
1633
|
+
if (vu = y.timeStamp, Iv = y.key, i.isComposing())
|
|
1634
1634
|
return;
|
|
1635
1635
|
const { key: p, shiftKey: e, ctrlKey: c, metaKey: n, altKey: t } = y;
|
|
1636
1636
|
yn(i, kg, y) || p != null && (function(o, a, r, d) {
|
|
@@ -1651,36 +1651,36 @@ const Ea = Object.freeze({}), Kh = 30, Gh = [["keydown", function(y, i) {
|
|
|
1651
1651
|
}(o) && !a && !r;
|
|
1652
1652
|
}(p, c, n) ? yn(i, zu, y) : function(o, a) {
|
|
1653
1653
|
return Yy(o) && a;
|
|
1654
|
-
}(p, e) ? (
|
|
1654
|
+
}(p, e) ? (_u = !0, yn(i, _s, y)) : function(o) {
|
|
1655
1655
|
return o === " ";
|
|
1656
1656
|
}(p) ? yn(i, lv, y) : function(o, a) {
|
|
1657
1657
|
return Li && a && o.toLowerCase() === "o";
|
|
1658
|
-
}(p, c) ? (y.preventDefault(),
|
|
1658
|
+
}(p, c) ? (y.preventDefault(), _u = !0, yn(i, gs, !0)) : function(o, a) {
|
|
1659
1659
|
return Yy(o) && !a;
|
|
1660
|
-
}(p, e) ? (
|
|
1661
|
-
return Li ? !a && !r && (
|
|
1662
|
-
}(p, t, n, c) ?
|
|
1660
|
+
}(p, e) ? (_u = !1, yn(i, _s, y)) : function(o, a, r, d) {
|
|
1661
|
+
return Li ? !a && !r && (ru(o) || o.toLowerCase() === "h" && d) : !(d || a || r) && ru(o);
|
|
1662
|
+
}(p, t, n, c) ? ru(p) ? yn(i, Ma, y) : (y.preventDefault(), yn(i, Hi, !0)) : function(o) {
|
|
1663
1663
|
return o === "Escape";
|
|
1664
|
-
}(p) ? yn(i,
|
|
1665
|
-
return Li ? !(r || d || s) && (
|
|
1666
|
-
}(p, c, e, t, n) ?
|
|
1667
|
-
return nu(o) && (Li ? a : r);
|
|
1668
|
-
}(p, t, c) ? (y.preventDefault(), yn(i, tl, !0)) : function(o, a, r) {
|
|
1664
|
+
}(p) ? yn(i, vc, y) : function(o, a, r, d, s) {
|
|
1665
|
+
return Li ? !(r || d || s) && (ou(o) || o.toLowerCase() === "d" && a) : !(a || d || s) && ou(o);
|
|
1666
|
+
}(p, c, e, t, n) ? ou(p) ? yn(i, sl, y) : (y.preventDefault(), yn(i, Hi, !1)) : function(o, a, r) {
|
|
1669
1667
|
return ru(o) && (Li ? a : r);
|
|
1668
|
+
}(p, t, c) ? (y.preventDefault(), yn(i, tl, !0)) : function(o, a, r) {
|
|
1669
|
+
return ou(o) && (Li ? a : r);
|
|
1670
1670
|
}(p, t, c) ? (y.preventDefault(), yn(i, tl, !1)) : function(o, a) {
|
|
1671
|
-
return Li && a && nu(o);
|
|
1672
|
-
}(p, n) ? (y.preventDefault(), yn(i, vs, !0)) : function(o, a) {
|
|
1673
1671
|
return Li && a && ru(o);
|
|
1672
|
+
}(p, n) ? (y.preventDefault(), yn(i, vs, !0)) : function(o, a) {
|
|
1673
|
+
return Li && a && ou(o);
|
|
1674
1674
|
}(p, n) ? (y.preventDefault(), yn(i, vs, !1)) : function(o, a, r, d) {
|
|
1675
|
-
return o.toLowerCase() === "b" && !a &&
|
|
1675
|
+
return o.toLowerCase() === "b" && !a && du(r, d);
|
|
1676
1676
|
}(p, t, n, c) ? (y.preventDefault(), yn(i, Do, "bold")) : function(o, a, r, d) {
|
|
1677
|
-
return o.toLowerCase() === "u" && !a &&
|
|
1677
|
+
return o.toLowerCase() === "u" && !a && du(r, d);
|
|
1678
1678
|
}(p, t, n, c) ? (y.preventDefault(), yn(i, Do, "underline")) : function(o, a, r, d) {
|
|
1679
|
-
return o.toLowerCase() === "i" && !a &&
|
|
1679
|
+
return o.toLowerCase() === "i" && !a && du(r, d);
|
|
1680
1680
|
}(p, t, n, c) ? (y.preventDefault(), yn(i, Do, "italic")) : function(o, a, r, d) {
|
|
1681
1681
|
return o === "Tab" && !a && !r && !d;
|
|
1682
1682
|
}(p, t, c, n) ? yn(i, zf, y) : function(o, a, r, d) {
|
|
1683
|
-
return o.toLowerCase() === "z" && !a &&
|
|
1683
|
+
return o.toLowerCase() === "z" && !a && du(r, d);
|
|
1684
1684
|
}(p, e, n, c) ? (y.preventDefault(), yn(i, Ru, void 0)) : function(o, a, r, d) {
|
|
1685
1685
|
return Li ? o.toLowerCase() === "z" && r && a : o.toLowerCase() === "y" && d || o.toLowerCase() === "z" && d && a;
|
|
1686
1686
|
}(p, e, n, c) ? (y.preventDefault(), yn(i, Du, void 0)) : Jr(i._editorState._selection) ? function(o, a, r, d) {
|
|
@@ -1700,27 +1700,27 @@ const Ea = Object.freeze({}), Kh = 30, Gh = [["keydown", function(y, i) {
|
|
|
1700
1700
|
const p = It();
|
|
1701
1701
|
if (kt(p) && !i.isComposing()) {
|
|
1702
1702
|
const e = p.anchor, c = p.anchor.getNode();
|
|
1703
|
-
_o(e.key), (y.timeStamp <
|
|
1703
|
+
_o(e.key), (y.timeStamp < vu + Kh || e.type === "element" || !p.isCollapsed() || c.getFormat() !== p.format || qt(c) && c.getStyle() !== p.style) && yn(i, ms, fx);
|
|
1704
1704
|
}
|
|
1705
1705
|
});
|
|
1706
1706
|
}], ["compositionend", function(y, i) {
|
|
1707
|
-
ys ?
|
|
1707
|
+
ys ? iu = !0 : pi(i, () => {
|
|
1708
1708
|
yh(i, y.data);
|
|
1709
1709
|
});
|
|
1710
1710
|
}], ["input", function(y, i) {
|
|
1711
1711
|
y.stopPropagation(), pi(i, () => {
|
|
1712
1712
|
const p = It(), e = y.data, c = Lv(y);
|
|
1713
1713
|
if (e != null && kt(p) && Dv(p, c, e, y.timeStamp, !1)) {
|
|
1714
|
-
|
|
1714
|
+
iu && (yh(i, e), iu = !1);
|
|
1715
1715
|
const n = p.anchor.getNode(), t = ca(i._window);
|
|
1716
1716
|
if (t === null)
|
|
1717
1717
|
return;
|
|
1718
1718
|
const o = p.isBackward(), a = o ? p.anchor.offset : p.focus.offset, r = o ? p.focus.offset : p.anchor.offset;
|
|
1719
1719
|
hf && !p.isCollapsed() && qt(n) && t.anchorNode !== null && n.getTextContent().slice(0, a) + e + n.getTextContent().slice(a + r) === Sv(t.anchorNode) || yn(i, ms, e);
|
|
1720
1720
|
const d = e.length;
|
|
1721
|
-
ys && d > 1 && y.inputType === "insertCompositionText" && !i.isComposing() && (p.anchor.offset -= d), jg || qf || Ng || !i.isComposing() || (
|
|
1721
|
+
ys && d > 1 && y.inputType === "insertCompositionText" && !i.isComposing() && (p.anchor.offset -= d), jg || qf || Ng || !i.isComposing() || (vu = 0, _o(null));
|
|
1722
1722
|
} else
|
|
1723
|
-
Hg(!1, i, e !== null ? e : void 0),
|
|
1723
|
+
Hg(!1, i, e !== null ? e : void 0), iu && (yh(i, e || void 0), iu = !1);
|
|
1724
1724
|
Lo(), hv(Ur());
|
|
1725
1725
|
}), ql = null;
|
|
1726
1726
|
}], ["click", function(y, i) {
|
|
@@ -1738,7 +1738,7 @@ const Ea = Object.freeze({}), Kh = 30, Gh = [["keydown", function(y, i) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
yn(i,
|
|
1741
|
+
yn(i, bc, y);
|
|
1742
1742
|
});
|
|
1743
1743
|
}], ["cut", Ea], ["copy", Ea], ["dragstart", Ea], ["dragover", Ea], ["dragend", Ea], ["paste", Ea], ["focus", Ea], ["blur", Ea], ["drop", Ea]];
|
|
1744
1744
|
hf && Gh.push(["beforeinput", (y, i) => function(p, e) {
|
|
@@ -1754,8 +1754,8 @@ hf && Gh.push(["beforeinput", (y, i) => function(p, e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
if (kt(t)) {
|
|
1756
1756
|
const l = t.anchor.key === t.focus.key;
|
|
1757
|
-
if (o = p.timeStamp, Iv === "MediaLast" && o <
|
|
1758
|
-
if (_o(null),
|
|
1757
|
+
if (o = p.timeStamp, Iv === "MediaLast" && o < vu + Kh && e.isComposing() && l) {
|
|
1758
|
+
if (_o(null), vu = 0, setTimeout(() => {
|
|
1759
1759
|
pi(e, () => {
|
|
1760
1760
|
_o(null);
|
|
1761
1761
|
});
|
|
@@ -1791,7 +1791,7 @@ hf && Gh.push(["beforeinput", (y, i) => function(p, e) {
|
|
|
1791
1791
|
_o(null), yn(e, gs, !1);
|
|
1792
1792
|
break;
|
|
1793
1793
|
case "insertParagraph":
|
|
1794
|
-
_o(null),
|
|
1794
|
+
_o(null), _u && !qf ? (_u = !1, yn(e, gs, !1)) : yn(e, pc, void 0);
|
|
1795
1795
|
break;
|
|
1796
1796
|
case "insertFromPaste":
|
|
1797
1797
|
case "insertFromPasteAsQuotation":
|
|
@@ -1847,7 +1847,7 @@ hf && Gh.push(["beforeinput", (y, i) => function(p, e) {
|
|
|
1847
1847
|
`)
|
|
1848
1848
|
p.preventDefault(), yn(e, gs, !1);
|
|
1849
1849
|
else if (a === Na)
|
|
1850
|
-
p.preventDefault(), yn(e,
|
|
1850
|
+
p.preventDefault(), yn(e, pc, void 0);
|
|
1851
1851
|
else if (a == null && p.dataTransfer) {
|
|
1852
1852
|
const l = p.dataTransfer.getData("text/plain");
|
|
1853
1853
|
p.preventDefault(), t.insertRawText(l);
|
|
@@ -1857,9 +1857,9 @@ hf && Gh.push(["beforeinput", (y, i) => function(p, e) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
}(y, i)]);
|
|
1860
|
-
let
|
|
1860
|
+
let vu = 0, Iv = null, Mv = 0, ql = null;
|
|
1861
1861
|
const Cf = /* @__PURE__ */ new WeakMap();
|
|
1862
|
-
let Yh = !1, Zh = !1,
|
|
1862
|
+
let Yh = !1, Zh = !1, _u = !1, iu = !1, Rv = [0, "", 0, "root", 0];
|
|
1863
1863
|
function Dv(y, i, p, e, c) {
|
|
1864
1864
|
const n = y.anchor, t = y.focus, o = n.getNode(), a = Ur(), r = ca(a._window), d = r !== null ? r.anchorNode : null, s = n.key, u = a.getElementByKey(s), l = p.length;
|
|
1865
1865
|
return s !== t.key || !qt(o) || (!c && (!hf || Mv < e + 50) || o.isDirty() && l < 2 || xv(p)) && n.offset !== t.offset && !o.isComposing() || Ul(o) || o.isDirty() && l > 1 || (c || !hf) && u !== null && !o.isComposing() && d !== bf(u) || r !== null && i !== null && (!i.collapsed || i.startContainer !== r.anchorNode || i.startOffset !== r.anchorOffset) || o.getFormat() !== y.format || o.getStyle() !== y.style || kx(y, o);
|
|
@@ -2323,12 +2323,12 @@ class Zf {
|
|
|
2323
2323
|
this.getWritable();
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class xc extends Zf {
|
|
2327
2327
|
static getType() {
|
|
2328
2328
|
return "linebreak";
|
|
2329
2329
|
}
|
|
2330
2330
|
static clone(i) {
|
|
2331
|
-
return new
|
|
2331
|
+
return new xc(i.__key);
|
|
2332
2332
|
}
|
|
2333
2333
|
constructor(i) {
|
|
2334
2334
|
super(i);
|
|
@@ -2358,20 +2358,20 @@ class _c extends Zf {
|
|
|
2358
2358
|
}(i) ? null : { conversion: Ux, priority: 0 } };
|
|
2359
2359
|
}
|
|
2360
2360
|
static importJSON(i) {
|
|
2361
|
-
return
|
|
2361
|
+
return gc();
|
|
2362
2362
|
}
|
|
2363
2363
|
exportJSON() {
|
|
2364
2364
|
return { type: "linebreak", version: 1 };
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
function Ux(y) {
|
|
2368
|
-
return { node:
|
|
2368
|
+
return { node: gc() };
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return $o(new
|
|
2370
|
+
function gc() {
|
|
2371
|
+
return $o(new xc());
|
|
2372
2372
|
}
|
|
2373
2373
|
function bs(y) {
|
|
2374
|
-
return y instanceof
|
|
2374
|
+
return y instanceof xc;
|
|
2375
2375
|
}
|
|
2376
2376
|
function o0(y) {
|
|
2377
2377
|
return y.nodeType === Es && /^( |\t|\r?\n)+$/.test(y.textContent || "");
|
|
@@ -2384,14 +2384,14 @@ function vh(y, i) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
function zv(y, i, p, e, c) {
|
|
2386
2386
|
const n = e.classList;
|
|
2387
|
-
let t =
|
|
2388
|
-
t !== void 0 && n.add(...t), t =
|
|
2387
|
+
let t = bu(c, "base");
|
|
2388
|
+
t !== void 0 && n.add(...t), t = bu(c, "underlineStrikethrough");
|
|
2389
2389
|
let o = !1;
|
|
2390
2390
|
const a = i & mf && i & gf;
|
|
2391
2391
|
t !== void 0 && (p & mf && p & gf ? (o = !0, a || n.add(...t)) : a && n.remove(...t));
|
|
2392
2392
|
for (const r in Aa) {
|
|
2393
2393
|
const d = Aa[r];
|
|
2394
|
-
if (t =
|
|
2394
|
+
if (t = bu(c, r), t !== void 0)
|
|
2395
2395
|
if (p & d) {
|
|
2396
2396
|
if (o && (r === "underline" || r === "strikethrough")) {
|
|
2397
2397
|
i & d && n.remove(...t);
|
|
@@ -2520,7 +2520,7 @@ class pa extends Zf {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
exportDOM(i) {
|
|
2522
2522
|
let { element: p } = super.exportDOM(i);
|
|
2523
|
-
return p !== null &&
|
|
2523
|
+
return p !== null && _c(p) || pn(132), p.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (p = Id(p, "b")), this.hasFormat("italic") && (p = Id(p, "i")), this.hasFormat("strikethrough") && (p = Id(p, "s")), this.hasFormat("underline") && (p = Id(p, "u")), { element: p };
|
|
2524
2524
|
}
|
|
2525
2525
|
exportJSON() {
|
|
2526
2526
|
return { detail: this.getDetail(), format: this.getFormat(), mode: this.getMode(), style: this.getStyle(), text: this.getTextContent(), type: "text", version: 1 };
|
|
@@ -2691,7 +2691,7 @@ function Vx(y) {
|
|
|
2691
2691
|
const o = e[t];
|
|
2692
2692
|
o === `
|
|
2693
2693
|
` || o === `\r
|
|
2694
|
-
` ? c.push(
|
|
2694
|
+
` ? c.push(gc()) : o === " " ? c.push(Ku()) : o !== "" && c.push(or(o));
|
|
2695
2695
|
}
|
|
2696
2696
|
return { node: c };
|
|
2697
2697
|
}
|
|
@@ -2827,7 +2827,7 @@ class Gx {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
set(i, p, e) {
|
|
2829
2829
|
const c = this._selection, n = this.key;
|
|
2830
|
-
this.key = i, this.offset = p, this.type = e,
|
|
2830
|
+
this.key = i, this.offset = p, this.type = e, Ec() || (ps() === n && _o(i), c !== null && (c.setCachedNodes(null), c.dirty = !0));
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
2833
|
function Oi(y, i, p) {
|
|
@@ -2929,7 +2929,7 @@ class Qf {
|
|
|
2929
2929
|
const n = Ar(c);
|
|
2930
2930
|
n !== null && e.push(n);
|
|
2931
2931
|
}
|
|
2932
|
-
return
|
|
2932
|
+
return Ec() || (this._cachedNodes = e), e;
|
|
2933
2933
|
}
|
|
2934
2934
|
getTextContent() {
|
|
2935
2935
|
const i = this.getNodes();
|
|
@@ -2974,7 +2974,7 @@ class Cs {
|
|
|
2974
2974
|
u !== null && u !== o && a.getChildAtIndex(d) === u && (u = u.getPreviousSibling()), a = u ?? a;
|
|
2975
2975
|
}
|
|
2976
2976
|
let s;
|
|
2977
|
-
return s = o.is(a) ? At(o) && o.getChildrenSize() > 0 ? [] : [o] : o.getNodesBetween(a),
|
|
2977
|
+
return s = o.is(a) ? At(o) && o.getChildrenSize() > 0 ? [] : [o] : o.getNodesBetween(a), Ec() || (this._cachedNodes = s), s;
|
|
2978
2978
|
}
|
|
2979
2979
|
setTextNodeRange(i, p, e, c) {
|
|
2980
2980
|
us(this.anchor, i.__key, p, "text"), us(this.focus, e.__key, c, "text"), this._cachedNodes = null, this.dirty = !0;
|
|
@@ -3025,7 +3025,7 @@ class Cs {
|
|
|
3025
3025
|
const t = p[n];
|
|
3026
3026
|
t === `
|
|
3027
3027
|
` || t === `\r
|
|
3028
|
-
` ? e.push(
|
|
3028
|
+
` ? e.push(gc()) : t === " " ? e.push(Ku()) : e.push(or(t));
|
|
3029
3029
|
}
|
|
3030
3030
|
this.insertNodes(e);
|
|
3031
3031
|
}
|
|
@@ -3238,7 +3238,7 @@ class Cs {
|
|
|
3238
3238
|
return n ? (n.append(...c), n.selectStart(), n) : null;
|
|
3239
3239
|
}
|
|
3240
3240
|
insertLineBreak(i) {
|
|
3241
|
-
const p =
|
|
3241
|
+
const p = gc();
|
|
3242
3242
|
if (this.insertNodes([p]), i) {
|
|
3243
3243
|
const e = p.getParentOrThrow(), c = p.getIndexWithinParent();
|
|
3244
3244
|
e.select(c, c);
|
|
@@ -3523,7 +3523,7 @@ function qv(y, i, p, e, c, n) {
|
|
|
3523
3523
|
const t = ha(), o = new Cs(Oi(y, i, c), Oi(p, e, n), 0, "");
|
|
3524
3524
|
return o.dirty = !0, t._selection = o, o;
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function wc() {
|
|
3527
3527
|
const y = Oi("root", 0, "element"), i = Oi("root", 0, "element");
|
|
3528
3528
|
return new Cs(y, i, 0, "");
|
|
3529
3529
|
}
|
|
@@ -3677,7 +3677,7 @@ function Zx(y, i, p, e, c, n, t) {
|
|
|
3677
3677
|
Yh = !0;
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
|
-
function
|
|
3680
|
+
function Sc(y) {
|
|
3681
3681
|
let i = It() || Os();
|
|
3682
3682
|
i === null && (i = Er().selectEnd()), i.insertNodes(y);
|
|
3683
3683
|
}
|
|
@@ -3716,7 +3716,7 @@ function Qx(y, i) {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
let ho = null, go = null, ei = !1, wh = !1, Kd = 0;
|
|
3718
3718
|
const g0 = { characterData: !0, childList: !0, subtree: !0 };
|
|
3719
|
-
function
|
|
3719
|
+
function Ec() {
|
|
3720
3720
|
return ei || ho !== null && ho._readOnly;
|
|
3721
3721
|
}
|
|
3722
3722
|
function Lo() {
|
|
@@ -3787,7 +3787,7 @@ function Zs(y, i) {
|
|
|
3787
3787
|
} catch (x) {
|
|
3788
3788
|
if (x instanceof Error && y._onError(x), wh)
|
|
3789
3789
|
throw x;
|
|
3790
|
-
return Gv(y, null, e, p), gv(y), y._dirtyType =
|
|
3790
|
+
return Gv(y, null, e, p), gv(y), y._dirtyType = hc, wh = !0, Zs(y, n), void (wh = !1);
|
|
3791
3791
|
} finally {
|
|
3792
3792
|
l.observe(e, g0), y._updating = u, ho = r, ei = d, go = s;
|
|
3793
3793
|
}
|
|
@@ -3823,10 +3823,10 @@ function Zs(y, i) {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
}(y, f, _, m, n), kt(o) || o === null || t !== null && t.is(o) || y.dispatchCommand(Ci, void 0);
|
|
3825
3825
|
const E = y._pendingDecorators;
|
|
3826
|
-
E !== null && (y._decorators = E, y._pendingDecorators = null,
|
|
3826
|
+
E !== null && (y._decorators = E, y._pendingDecorators = null, xu("decorator", y, !0, E)), function(x, g, w) {
|
|
3827
3827
|
const C = Vy(g), I = Vy(w);
|
|
3828
|
-
C !== I &&
|
|
3829
|
-
}(y, i || n, p),
|
|
3828
|
+
C !== I && xu("textcontent", x, !0, I);
|
|
3829
|
+
}(y, i || n, p), xu("update", y, !0, { dirtyElements: h, dirtyLeaves: m, editorState: p, normalizedNodes: v, prevEditorState: i || n, tags: _ }), function(x, g) {
|
|
3830
3830
|
if (x._deferred = [], g.length !== 0) {
|
|
3831
3831
|
const w = x._updating;
|
|
3832
3832
|
x._updating = !0;
|
|
@@ -3848,7 +3848,7 @@ function Zs(y, i) {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
}(y);
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3851
|
+
function xu(y, i, p, ...e) {
|
|
3852
3852
|
const c = i._updating;
|
|
3853
3853
|
i._updating = p;
|
|
3854
3854
|
try {
|
|
@@ -3972,7 +3972,7 @@ function Jv(y, i, p) {
|
|
|
3972
3972
|
} else
|
|
3973
3973
|
Jr(v) && v._nodes.size === 0 && (r._selection = null);
|
|
3974
3974
|
} catch (h) {
|
|
3975
|
-
return h instanceof Error && y._onError(h), y._pendingEditorState = a, y._dirtyType =
|
|
3975
|
+
return h instanceof Error && y._onError(h), y._pendingEditorState = a, y._dirtyType = hc, y._cloneNotNeeded.clear(), y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements.clear(), void Zs(y);
|
|
3976
3976
|
} finally {
|
|
3977
3977
|
ho = s, ei = u, go = l, y._updating = f, Kd = 0;
|
|
3978
3978
|
}
|
|
@@ -4289,7 +4289,7 @@ function _0(y, i, p) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
return !1;
|
|
4291
4291
|
}
|
|
4292
|
-
class
|
|
4292
|
+
class Cc extends Zf {
|
|
4293
4293
|
constructor(i) {
|
|
4294
4294
|
super(i);
|
|
4295
4295
|
}
|
|
@@ -4307,14 +4307,14 @@ class Ec extends Zf {
|
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|
|
4309
4309
|
function ur(y) {
|
|
4310
|
-
return y instanceof
|
|
4310
|
+
return y instanceof Cc;
|
|
4311
4311
|
}
|
|
4312
|
-
class
|
|
4312
|
+
class Oc extends Ti {
|
|
4313
4313
|
static getType() {
|
|
4314
4314
|
return "root";
|
|
4315
4315
|
}
|
|
4316
4316
|
static clone() {
|
|
4317
|
-
return new
|
|
4317
|
+
return new Oc();
|
|
4318
4318
|
}
|
|
4319
4319
|
constructor() {
|
|
4320
4320
|
super("root"), this.__cachedText = null;
|
|
@@ -4324,7 +4324,7 @@ class Cc extends Ti {
|
|
|
4324
4324
|
}
|
|
4325
4325
|
getTextContent() {
|
|
4326
4326
|
const i = this.__cachedText;
|
|
4327
|
-
return !
|
|
4327
|
+
return !Ec() && Ur()._dirtyType !== nl || i === null ? super.getTextContent() : i;
|
|
4328
4328
|
}
|
|
4329
4329
|
remove() {
|
|
4330
4330
|
pn(52);
|
|
@@ -4360,10 +4360,10 @@ class Cc extends Ti {
|
|
|
4360
4360
|
}
|
|
4361
4361
|
}
|
|
4362
4362
|
function Ao(y) {
|
|
4363
|
-
return y instanceof
|
|
4363
|
+
return y instanceof Oc;
|
|
4364
4364
|
}
|
|
4365
4365
|
function Yg() {
|
|
4366
|
-
return new ep(/* @__PURE__ */ new Map([["root", new
|
|
4366
|
+
return new ep(/* @__PURE__ */ new Map([["root", new Oc()]]));
|
|
4367
4367
|
}
|
|
4368
4368
|
function Kv(y) {
|
|
4369
4369
|
const i = y.exportJSON(), p = y.constructor;
|
|
@@ -4426,7 +4426,7 @@ class ll extends Ti {
|
|
|
4426
4426
|
return new ll(i.__key);
|
|
4427
4427
|
}
|
|
4428
4428
|
createDOM(i) {
|
|
4429
|
-
const p = document.createElement("p"), e =
|
|
4429
|
+
const p = document.createElement("p"), e = bu(i.theme, "paragraph");
|
|
4430
4430
|
return e !== void 0 && p.classList.add(...e), p;
|
|
4431
4431
|
}
|
|
4432
4432
|
updateDOM(i, p, e) {
|
|
@@ -4437,7 +4437,7 @@ class ll extends Ti {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
exportDOM(i) {
|
|
4439
4439
|
const { element: p } = super.exportDOM(i);
|
|
4440
|
-
if (p &&
|
|
4440
|
+
if (p && _c(p)) {
|
|
4441
4441
|
this.isEmpty() && p.append(document.createElement("br"));
|
|
4442
4442
|
const e = this.getFormatType();
|
|
4443
4443
|
p.style.textAlign = e;
|
|
@@ -4495,7 +4495,7 @@ function Gv(y, i, p, e) {
|
|
|
4495
4495
|
n !== null && (n.disconnect(), y._observer = null), i !== null && (i.textContent = ""), p !== null && (p.textContent = "", c.set("root", p));
|
|
4496
4496
|
}
|
|
4497
4497
|
function tp(y) {
|
|
4498
|
-
const i = y || {}, p = Xx(), e = i.theme || {}, c = y === void 0 ? p : i.parentEditor || null, n = i.disableEvents || !1, t = Yg(), o = i.namespace || (c !== null ? c._config.namespace : wv()), a = i.editorState, r = [
|
|
4498
|
+
const i = y || {}, p = Xx(), e = i.theme || {}, c = y === void 0 ? p : i.parentEditor || null, n = i.disableEvents || !1, t = Yg(), o = i.namespace || (c !== null ? c._config.namespace : wv()), a = i.editorState, r = [Oc, pa, xc, Ju, ll, Zg, ...i.nodes || []], { onError: d, html: s } = i, u = i.editable === void 0 || i.editable;
|
|
4499
4499
|
let l;
|
|
4500
4500
|
if (y === void 0 && p !== null)
|
|
4501
4501
|
l = p._nodes;
|
|
@@ -4527,7 +4527,7 @@ function tp(y) {
|
|
|
4527
4527
|
x !== null && b(x);
|
|
4528
4528
|
}), h && b(h), v;
|
|
4529
4529
|
}(l, s ? s.import : void 0), u);
|
|
4530
|
-
return a !== void 0 && (f._pendingEditorState = a, f._dirtyType =
|
|
4530
|
+
return a !== void 0 && (f._pendingEditorState = a, f._dirtyType = hc), f;
|
|
4531
4531
|
}
|
|
4532
4532
|
class nw {
|
|
4533
4533
|
constructor(i, p, e, c, n, t, o) {
|
|
@@ -4633,13 +4633,13 @@ class nw {
|
|
|
4633
4633
|
setRootElement(i) {
|
|
4634
4634
|
const p = this._rootElement;
|
|
4635
4635
|
if (i !== p) {
|
|
4636
|
-
const e =
|
|
4636
|
+
const e = bu(this._config.theme, "root"), c = this._pendingEditorState || this._editorState;
|
|
4637
4637
|
if (this._rootElement = i, Gv(this, p, i, c), p !== null && (this._config.disableEvents || $x(p), e != null && p.classList.remove(...e)), i !== null) {
|
|
4638
4638
|
const n = function(o) {
|
|
4639
4639
|
const a = o.ownerDocument;
|
|
4640
4640
|
return a && a.defaultView || null;
|
|
4641
4641
|
}(i), t = i.style;
|
|
4642
|
-
t.userSelect = "text", t.whiteSpace = "pre-wrap", t.wordBreak = "break-word", i.setAttribute("data-lexical-editor", "true"), this._window = n, this._dirtyType =
|
|
4642
|
+
t.userSelect = "text", t.whiteSpace = "pre-wrap", t.wordBreak = "break-word", i.setAttribute("data-lexical-editor", "true"), this._window = n, this._dirtyType = hc, gv(this), this._updateTags.add("history-merge"), Zs(this), this._config.disableEvents || function(o, a) {
|
|
4643
4643
|
const r = o.ownerDocument, d = Cf.get(r);
|
|
4644
4644
|
(d === void 0 || d < 1) && r.addEventListener("selectionchange", Fv), Cf.set(r, (d || 0) + 1), o.__lexicalEditor = a;
|
|
4645
4645
|
const s = Bv(o);
|
|
@@ -4679,7 +4679,7 @@ class nw {
|
|
|
4679
4679
|
}(i, this), e != null && i.classList.add(...e);
|
|
4680
4680
|
} else
|
|
4681
4681
|
this._editorState = c, this._pendingEditorState = null, this._window = null;
|
|
4682
|
-
|
|
4682
|
+
xu("root", this, !1, i, p);
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
4685
|
getElementByKey(i) {
|
|
@@ -4691,7 +4691,7 @@ class nw {
|
|
|
4691
4691
|
setEditorState(i, p) {
|
|
4692
4692
|
i.isEmpty() && pn(38), hv(this);
|
|
4693
4693
|
const e = this._pendingEditorState, c = this._updateTags, n = p !== void 0 ? p.tag : null;
|
|
4694
|
-
e === null || e.isEmpty() || (n != null && c.add(n), Zs(this)), this._pendingEditorState = i, this._dirtyType =
|
|
4694
|
+
e === null || e.isEmpty() || (n != null && c.add(n), Zs(this)), this._pendingEditorState = i, this._dirtyType = hc, this._dirtyElements.set("root", !1), this._compositionKey = null, n != null && c.add(n), Zs(this);
|
|
4695
4695
|
}
|
|
4696
4696
|
parseEditorState(i, p) {
|
|
4697
4697
|
return function(e, c, n) {
|
|
@@ -4730,7 +4730,7 @@ class nw {
|
|
|
4730
4730
|
return this._editable;
|
|
4731
4731
|
}
|
|
4732
4732
|
setEditable(i) {
|
|
4733
|
-
this._editable !== i && (this._editable = i,
|
|
4733
|
+
this._editable !== i && (this._editable = i, xu("editable", this, !0, i));
|
|
4734
4734
|
}
|
|
4735
4735
|
toJSON() {
|
|
4736
4736
|
return { editorState: this._editorState.toJSON() };
|
|
@@ -5829,7 +5829,7 @@ class np {
|
|
|
5829
5829
|
const { cell: C } = r[g][w], I = C.getParent();
|
|
5830
5830
|
Qr(I) || tr(160), I !== x && E.push(I), E.push(C, ...kw(C)), x = I;
|
|
5831
5831
|
}
|
|
5832
|
-
return
|
|
5832
|
+
return Ec() || (this._cachedNodes = E), E;
|
|
5833
5833
|
}
|
|
5834
5834
|
getTextContent() {
|
|
5835
5835
|
const i = this.getNodes();
|
|
@@ -5880,14 +5880,14 @@ class Aw {
|
|
|
5880
5880
|
const c = this.editor.getElementByKey(this.tableNodeKey);
|
|
5881
5881
|
if (!c)
|
|
5882
5882
|
throw new Error("Expected to find TableElement in DOM");
|
|
5883
|
-
this.table =
|
|
5883
|
+
this.table = wu(c);
|
|
5884
5884
|
});
|
|
5885
5885
|
});
|
|
5886
5886
|
this.editor.update(() => {
|
|
5887
5887
|
const p = this.editor.getElementByKey(this.tableNodeKey);
|
|
5888
5888
|
if (!p)
|
|
5889
5889
|
throw new Error("Expected to find TableElement in DOM");
|
|
5890
|
-
this.table =
|
|
5890
|
+
this.table = wu(p), i.observe(p, { childList: !0, subtree: !0 });
|
|
5891
5891
|
});
|
|
5892
5892
|
}
|
|
5893
5893
|
clearHighlight() {
|
|
@@ -5898,7 +5898,7 @@ class Aw {
|
|
|
5898
5898
|
const p = i.getElementByKey(this.tableNodeKey);
|
|
5899
5899
|
if (!p)
|
|
5900
5900
|
throw new Error("Expected to find TableElement in DOM");
|
|
5901
|
-
const e =
|
|
5901
|
+
const e = wu(p);
|
|
5902
5902
|
Rd(i, e, null), Sr(null), i.dispatchCommand(Ci, void 0);
|
|
5903
5903
|
});
|
|
5904
5904
|
}
|
|
@@ -5967,7 +5967,7 @@ class Aw {
|
|
|
5967
5967
|
this.editor.update(() => {
|
|
5968
5968
|
const p = It();
|
|
5969
5969
|
Mr(p) || tr(11);
|
|
5970
|
-
const e =
|
|
5970
|
+
const e = wc(), c = e.anchor, n = e.focus;
|
|
5971
5971
|
p.getNodes().forEach((t) => {
|
|
5972
5972
|
Cn(t) && t.getTextContentSize() !== 0 && (c.set(t.getKey(), 0, "element"), n.set(t.getKey(), t.getChildrenSize(), "element"), e.formatText(i));
|
|
5973
5973
|
}), Sr(p), this.editor.dispatchCommand(Ci, void 0);
|
|
@@ -6031,7 +6031,7 @@ function Nw(y, i, p, e) {
|
|
|
6031
6031
|
Mr(u) && u.tableKey === n.tableNodeKey && c.contains(l) && n.clearHighlight();
|
|
6032
6032
|
});
|
|
6033
6033
|
};
|
|
6034
|
-
t.addEventListener("mousedown", a), n.listenersToRemove.add(() => t.removeEventListener("mousedown", a)), n.listenersToRemove.add(p.registerCommand(zu, (s) =>
|
|
6034
|
+
t.addEventListener("mousedown", a), n.listenersToRemove.add(() => t.removeEventListener("mousedown", a)), n.listenersToRemove.add(p.registerCommand(zu, (s) => pu(p, s, "down", y, n), fi)), n.listenersToRemove.add(p.registerCommand(Fu, (s) => pu(p, s, "up", y, n), fi)), n.listenersToRemove.add(p.registerCommand(Bu, (s) => pu(p, s, "backward", y, n), fi)), n.listenersToRemove.add(p.registerCommand(Lu, (s) => pu(p, s, "forward", y, n), fi)), n.listenersToRemove.add(p.registerCommand(vc, (s) => {
|
|
6035
6035
|
const u = It();
|
|
6036
6036
|
if (Mr(u)) {
|
|
6037
6037
|
const l = Xn(u.focus.getNode(), Cn);
|
|
@@ -6220,7 +6220,7 @@ function Nw(y, i, p, e) {
|
|
|
6220
6220
|
m.highlighted = !1, g1(l, m), h.getAttribute("style") || h.removeAttribute("style");
|
|
6221
6221
|
});
|
|
6222
6222
|
}(p, n) : !n.hasHijackedSelectionStyles && y.isSelected() && T0(p, n), !1);
|
|
6223
|
-
}, wi)), n.listenersToRemove.add(p.registerCommand(
|
|
6223
|
+
}, wi)), n.listenersToRemove.add(p.registerCommand(pc, () => {
|
|
6224
6224
|
const s = It();
|
|
6225
6225
|
if (!kt(s) || !s.isCollapsed() || !cs(s, y))
|
|
6226
6226
|
return !1;
|
|
@@ -6240,7 +6240,7 @@ function ng(y) {
|
|
|
6240
6240
|
}
|
|
6241
6241
|
return null;
|
|
6242
6242
|
}
|
|
6243
|
-
function
|
|
6243
|
+
function wu(y) {
|
|
6244
6244
|
const i = [], p = { columns: 0, domRows: i, rows: 0 };
|
|
6245
6245
|
let e = y.firstChild, c = 0, n = 0;
|
|
6246
6246
|
for (i.length = 0; e != null; ) {
|
|
@@ -6352,7 +6352,7 @@ function ac(y) {
|
|
|
6352
6352
|
const i = Xn(y, Ir);
|
|
6353
6353
|
return Ir(i) ? i : null;
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function pu(y, i, p, e, c) {
|
|
6356
6356
|
if ((p === "up" || p === "down") && function(t) {
|
|
6357
6357
|
const o = t.getRootElement();
|
|
6358
6358
|
return o ? o.hasAttribute("aria-controls") && o.getAttribute("aria-controls") === "typeahead-menu" : !1;
|
|
@@ -6415,7 +6415,7 @@ function fu(y, i, p, e, c) {
|
|
|
6415
6415
|
if (d !== e && d != null) {
|
|
6416
6416
|
const v = y.getElementByKey(d.getKey());
|
|
6417
6417
|
if (v != null)
|
|
6418
|
-
return c.table =
|
|
6418
|
+
return c.table = wu(v), pu(y, i, p, d, c);
|
|
6419
6419
|
}
|
|
6420
6420
|
if (p === "backward" || p === "forward") {
|
|
6421
6421
|
const v = t.type, _ = t.offset, b = t.getNode();
|
|
@@ -6487,7 +6487,7 @@ function fu(y, i, p, e, c) {
|
|
|
6487
6487
|
if (!Cn(a) || !Cn(r) || !Ir(d) || s == null)
|
|
6488
6488
|
return !1;
|
|
6489
6489
|
c.updateTableTableSelection(n);
|
|
6490
|
-
const u =
|
|
6490
|
+
const u = wu(s), l = e.getCordsFromCellNode(a, u), f = e.getDOMCellFromCordsOrThrow(l.x, l.y, u);
|
|
6491
6491
|
if (c.setAnchorCellForSelection(f), Gs(i), i.shiftKey) {
|
|
6492
6492
|
const m = e.getCordsFromCellNode(r, u);
|
|
6493
6493
|
return Pw(c, d, m.x, m.y, p);
|
|
@@ -6552,7 +6552,7 @@ class zi extends Ti {
|
|
|
6552
6552
|
return { ...super.exportDOM(i), after: (p) => {
|
|
6553
6553
|
if (p) {
|
|
6554
6554
|
const e = p.cloneNode(), c = document.createElement("colgroup"), n = document.createElement("tbody");
|
|
6555
|
-
|
|
6555
|
+
_c(p) && n.append(...p.children);
|
|
6556
6556
|
const t = this.getFirstChildOrThrow();
|
|
6557
6557
|
if (!Qr(t))
|
|
6558
6558
|
throw new Error("Expected to find row node.");
|
|
@@ -6630,7 +6630,7 @@ function rp() {
|
|
|
6630
6630
|
function Ir(y) {
|
|
6631
6631
|
return y instanceof zi;
|
|
6632
6632
|
}
|
|
6633
|
-
const Mw = lr.lazy(() => import("./ImageComponent-
|
|
6633
|
+
const Mw = lr.lazy(() => import("./ImageComponent-aebf375a.js"));
|
|
6634
6634
|
function Rw(y) {
|
|
6635
6635
|
const i = y;
|
|
6636
6636
|
if (i.src.startsWith("file:///"))
|
|
@@ -6638,7 +6638,7 @@ function Rw(y) {
|
|
|
6638
6638
|
const { alt: p, src: e, width: c, height: n } = i;
|
|
6639
6639
|
return { node: op({ altText: p, height: n, src: e, width: c }) };
|
|
6640
6640
|
}
|
|
6641
|
-
class
|
|
6641
|
+
class Tc extends Cc {
|
|
6642
6642
|
constructor(p, e, c, n, t, o, a, r, d) {
|
|
6643
6643
|
super(d);
|
|
6644
6644
|
to(this, "__src");
|
|
@@ -6656,7 +6656,7 @@ class Oc extends Ec {
|
|
|
6656
6656
|
return "image";
|
|
6657
6657
|
}
|
|
6658
6658
|
static clone(p) {
|
|
6659
|
-
return new
|
|
6659
|
+
return new Tc(
|
|
6660
6660
|
p.__src,
|
|
6661
6661
|
p.__altText,
|
|
6662
6662
|
p.__maxWidth,
|
|
@@ -6760,7 +6760,7 @@ function op({
|
|
|
6760
6760
|
key: a
|
|
6761
6761
|
}) {
|
|
6762
6762
|
return $o(
|
|
6763
|
-
new
|
|
6763
|
+
new Tc(
|
|
6764
6764
|
c,
|
|
6765
6765
|
y,
|
|
6766
6766
|
p,
|
|
@@ -6774,9 +6774,9 @@ function op({
|
|
|
6774
6774
|
);
|
|
6775
6775
|
}
|
|
6776
6776
|
function Dw(y) {
|
|
6777
|
-
return y instanceof
|
|
6777
|
+
return y instanceof Tc;
|
|
6778
6778
|
}
|
|
6779
|
-
const Lw = lr.lazy(() => import("./InlineImageComponent-
|
|
6779
|
+
const Lw = lr.lazy(() => import("./InlineImageComponent-8770a2c3.js"));
|
|
6780
6780
|
function Bw(y) {
|
|
6781
6781
|
if (y instanceof HTMLImageElement) {
|
|
6782
6782
|
const { alt: i, src: p, width: e, height: c } = y;
|
|
@@ -6784,7 +6784,7 @@ function Bw(y) {
|
|
|
6784
6784
|
}
|
|
6785
6785
|
return null;
|
|
6786
6786
|
}
|
|
6787
|
-
let ip = class m1 extends
|
|
6787
|
+
let ip = class m1 extends Cc {
|
|
6788
6788
|
constructor(p, e, c, n, t, o, a, r) {
|
|
6789
6789
|
super(r);
|
|
6790
6790
|
to(this, "__src");
|
|
@@ -6947,7 +6947,7 @@ function im(y, i) {
|
|
|
6947
6947
|
}
|
|
6948
6948
|
return function(n) {
|
|
6949
6949
|
for (const t of n)
|
|
6950
|
-
t.getNextSibling() instanceof Zg && t.insertAfter(
|
|
6950
|
+
t.getNextSibling() instanceof Zg && t.insertAfter(gc());
|
|
6951
6951
|
for (const t of n) {
|
|
6952
6952
|
const o = t.getChildren();
|
|
6953
6953
|
for (const a of o)
|
|
@@ -6984,7 +6984,7 @@ function b1(y, i, p, e = null) {
|
|
|
6984
6984
|
!c && At(i) && m && i.extractWithChild(f, e, "html") && (c = !0);
|
|
6985
6985
|
}
|
|
6986
6986
|
if (c && !n) {
|
|
6987
|
-
if (
|
|
6987
|
+
if (_c(d) && d.append(u), p.append(d), s) {
|
|
6988
6988
|
const l = s.call(t, d);
|
|
6989
6989
|
l && d.replaceWith(l);
|
|
6990
6990
|
}
|
|
@@ -7199,7 +7199,7 @@ function R0(y, i) {
|
|
|
7199
7199
|
}
|
|
7200
7200
|
return null;
|
|
7201
7201
|
}
|
|
7202
|
-
const
|
|
7202
|
+
const kc = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Vw = kc && "documentMode" in document ? document.documentMode : null, Jw = !(!kc || !("InputEvent" in window) || Vw) && "getTargetRanges" in new window.InputEvent("input"), Kw = kc && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Gw = kc && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Yw = kc && /^(?=.*Chrome).*/i.test(navigator.userAgent), Zw = kc && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Yw, D0 = fa();
|
|
7203
7203
|
class ap extends Ti {
|
|
7204
7204
|
static getType() {
|
|
7205
7205
|
return "heading";
|
|
@@ -7232,7 +7232,7 @@ class ap extends Ti {
|
|
|
7232
7232
|
}
|
|
7233
7233
|
exportDOM(i) {
|
|
7234
7234
|
const { element: p } = super.exportDOM(i);
|
|
7235
|
-
if (p &&
|
|
7235
|
+
if (p && _c(p)) {
|
|
7236
7236
|
this.isEmpty() && p.append(document.createElement("br"));
|
|
7237
7237
|
const e = this.getFormatType();
|
|
7238
7238
|
p.style.textAlign = e;
|
|
@@ -7304,7 +7304,7 @@ function Bd(y) {
|
|
|
7304
7304
|
return ur(i);
|
|
7305
7305
|
}
|
|
7306
7306
|
function Qw(y) {
|
|
7307
|
-
return ro(y.registerCommand(
|
|
7307
|
+
return ro(y.registerCommand(bc, (i) => {
|
|
7308
7308
|
const p = It();
|
|
7309
7309
|
return !!Jr(p) && (p.clear(), !0);
|
|
7310
7310
|
}, 0), y.registerCommand(Hi, (i) => {
|
|
@@ -7351,10 +7351,10 @@ function Qw(y) {
|
|
|
7351
7351
|
}, Nn), y.registerCommand(gs, (i) => {
|
|
7352
7352
|
const p = It();
|
|
7353
7353
|
return !!kt(p) && (p.insertLineBreak(i), !0);
|
|
7354
|
-
}, Nn), y.registerCommand(
|
|
7354
|
+
}, Nn), y.registerCommand(pc, () => {
|
|
7355
7355
|
const i = It();
|
|
7356
7356
|
return !!kt(i) && (i.insertParagraph(), !0);
|
|
7357
|
-
}, Nn), y.registerCommand(ex, () => (
|
|
7357
|
+
}, Nn), y.registerCommand(ex, () => (Sc([Ku()]), !0), Nn), y.registerCommand(tx, () => B0((i) => {
|
|
7358
7358
|
const p = i.getIndent();
|
|
7359
7359
|
i.setIndent(p + 1);
|
|
7360
7360
|
}), Nn), y.registerCommand(zy, () => B0((i) => {
|
|
@@ -7438,8 +7438,8 @@ function Qw(y) {
|
|
|
7438
7438
|
if (i.preventDefault(), i.shiftKey)
|
|
7439
7439
|
return y.dispatchCommand(gs, !1);
|
|
7440
7440
|
}
|
|
7441
|
-
return y.dispatchCommand(
|
|
7442
|
-
}, Nn), y.registerCommand(
|
|
7441
|
+
return y.dispatchCommand(pc, void 0);
|
|
7442
|
+
}, Nn), y.registerCommand(vc, () => {
|
|
7443
7443
|
const i = It();
|
|
7444
7444
|
return !!kt(i) && (y.blur(), !0);
|
|
7445
7445
|
}, Nn), y.registerCommand($u, (i) => {
|
|
@@ -7449,7 +7449,7 @@ function Qw(y) {
|
|
|
7449
7449
|
if (c !== null) {
|
|
7450
7450
|
const { offset: n, node: t } = c, o = Kr(t);
|
|
7451
7451
|
if (o !== null) {
|
|
7452
|
-
const a =
|
|
7452
|
+
const a = wc();
|
|
7453
7453
|
if (qt(o))
|
|
7454
7454
|
a.anchor.set(o.getKey(), n, "text"), a.focus.set(o.getKey(), n, "text");
|
|
7455
7455
|
else {
|
|
@@ -7745,7 +7745,7 @@ function cS(y, i) {
|
|
|
7745
7745
|
const o = t.result, r = { altText: n.name, src: o };
|
|
7746
7746
|
i.update(() => {
|
|
7747
7747
|
const d = op(r);
|
|
7748
|
-
|
|
7748
|
+
Sc([d]), xo(d.getParentOrThrow()) && tm(d, gr).selectEnd();
|
|
7749
7749
|
});
|
|
7750
7750
|
}, t.readAsDataURL(n);
|
|
7751
7751
|
}
|
|
@@ -7757,14 +7757,14 @@ function uS({
|
|
|
7757
7757
|
}) {
|
|
7758
7758
|
const [i] = ir();
|
|
7759
7759
|
return _n(() => {
|
|
7760
|
-
if (!i.hasNodes([
|
|
7760
|
+
if (!i.hasNodes([Tc]))
|
|
7761
7761
|
throw new Error("ImagesPlugin: ImageNode not registered on editor");
|
|
7762
7762
|
return ro(
|
|
7763
7763
|
i.registerCommand(
|
|
7764
7764
|
am,
|
|
7765
7765
|
(p) => {
|
|
7766
7766
|
const e = op(p);
|
|
7767
|
-
return
|
|
7767
|
+
return Sc([e]), xo(e.getParentOrThrow()) && tm(e, gr).selectEnd(), !0;
|
|
7768
7768
|
},
|
|
7769
7769
|
Nn
|
|
7770
7770
|
),
|
|
@@ -7828,7 +7828,7 @@ function hS(y, i) {
|
|
|
7828
7828
|
if (y.preventDefault(), C1(y)) {
|
|
7829
7829
|
const c = mS(y);
|
|
7830
7830
|
p.remove();
|
|
7831
|
-
const n =
|
|
7831
|
+
const n = wc();
|
|
7832
7832
|
c != null && n.applyDOMRange(c), Sr(n), i.dispatchCommand(am, e);
|
|
7833
7833
|
}
|
|
7834
7834
|
return !0;
|
|
@@ -7937,7 +7937,7 @@ function _S() {
|
|
|
7937
7937
|
O1,
|
|
7938
7938
|
(i) => {
|
|
7939
7939
|
const p = om(i);
|
|
7940
|
-
return
|
|
7940
|
+
return Sc([p]), xo(p.getParentOrThrow()) && tm(p, gr).selectEnd(), !0;
|
|
7941
7941
|
},
|
|
7942
7942
|
Nn
|
|
7943
7943
|
),
|
|
@@ -7995,7 +7995,7 @@ function ES(y, i) {
|
|
|
7995
7995
|
if (y.preventDefault(), k1(y)) {
|
|
7996
7996
|
const c = OS(y);
|
|
7997
7997
|
p.remove();
|
|
7998
|
-
const n =
|
|
7998
|
+
const n = wc();
|
|
7999
7999
|
c != null && n.applyDOMRange(c), Sr(n), i.dispatchCommand(O1, e);
|
|
8000
8000
|
}
|
|
8001
8001
|
return !0;
|
|
@@ -8352,7 +8352,7 @@ var A1 = { exports: {} };
|
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
8354
8354
|
}
|
|
8355
|
-
return
|
|
8355
|
+
return Mc(Be.replace(R, "$1"), Ze, vt, St);
|
|
8356
8356
|
}
|
|
8357
8357
|
function pl() {
|
|
8358
8358
|
var Be = [];
|
|
@@ -8786,7 +8786,7 @@ var A1 = { exports: {} };
|
|
|
8786
8786
|
return !0;
|
|
8787
8787
|
} : Be[0];
|
|
8788
8788
|
}
|
|
8789
|
-
function
|
|
8789
|
+
function Ic(Be, Ze, vt) {
|
|
8790
8790
|
for (var St = 0, Dt = Ze.length; St < Dt; St++)
|
|
8791
8791
|
sr(Be, Ze[St], vt);
|
|
8792
8792
|
return vt;
|
|
@@ -8798,7 +8798,7 @@ var A1 = { exports: {} };
|
|
|
8798
8798
|
}
|
|
8799
8799
|
function ml(Be, Ze, vt, St, Dt, tn) {
|
|
8800
8800
|
return St && !St[Rt] && (St = ml(St)), Dt && !Dt[Rt] && (Dt = ml(Dt, tn)), ai(function(dn, vn, ln, $n) {
|
|
8801
|
-
var Rn, Dn, Yn, Tn, br = [], uo = [], ao = vn.length, Ko = dn ||
|
|
8801
|
+
var Rn, Dn, Yn, Tn, br = [], uo = [], ao = vn.length, Ko = dn || Ic(
|
|
8802
8802
|
Ze || "*",
|
|
8803
8803
|
ln.nodeType ? [ln] : ln,
|
|
8804
8804
|
[]
|
|
@@ -8900,7 +8900,7 @@ var A1 = { exports: {} };
|
|
|
8900
8900
|
}
|
|
8901
8901
|
return tn;
|
|
8902
8902
|
}
|
|
8903
|
-
function
|
|
8903
|
+
function Mc(Be, Ze, vt, St) {
|
|
8904
8904
|
var Dt, tn, dn, vn, ln, $n = typeof Be == "function" && Be, Rn = !St && Ns(Be = $n.selector || Be);
|
|
8905
8905
|
if (vt = vt || [], Rn.length === 1) {
|
|
8906
8906
|
if (tn = Rn[0] = Rn[0].slice(0), tn.length > 2 && (dn = tn[0]).type === "ID" && Ze.nodeType === 9 && We && Q.relative[tn[1].type]) {
|
|
@@ -8933,7 +8933,7 @@ var A1 = { exports: {} };
|
|
|
8933
8933
|
}
|
|
8934
8934
|
f.sortStable = Rt.split("").sort(Dr).join("") === Rt, Pi(), f.sortDetached = Ha(function(Be) {
|
|
8935
8935
|
return Be.compareDocumentPosition(_e.createElement("fieldset")) & 1;
|
|
8936
|
-
}), g.find = sr, g.expr[":"] = g.expr.pseudos, g.unique = g.uniqueSort, sr.compile = yl, sr.select =
|
|
8936
|
+
}), g.find = sr, g.expr[":"] = g.expr.pseudos, g.unique = g.uniqueSort, sr.compile = yl, sr.select = Mc, sr.setDocument = Pi, sr.tokenize = Ns, sr.escape = g.escapeSelector, sr.getText = g.text, sr.isXML = g.isXMLDoc, sr.selectors = g.expr, sr.support = g.support, sr.uniqueSort = g.uniqueSort;
|
|
8937
8937
|
})();
|
|
8938
8938
|
var L = function($, Q, te) {
|
|
8939
8939
|
for (var ie = [], fe = te !== void 0; ($ = $[Q]) && $.nodeType !== 9; )
|
|
@@ -11650,7 +11650,7 @@ var A1 = { exports: {} };
|
|
|
11650
11650
|
});
|
|
11651
11651
|
})(A1);
|
|
11652
11652
|
var TS = A1.exports;
|
|
11653
|
-
const
|
|
11653
|
+
const uc = /* @__PURE__ */ Mu(TS);
|
|
11654
11654
|
var rg = { exports: {} }, zd = { exports: {} }, pr = {};
|
|
11655
11655
|
/** @license React v16.13.1
|
|
11656
11656
|
* react-is.production.min.js
|
|
@@ -12498,15 +12498,15 @@ var Qs = {
|
|
|
12498
12498
|
var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
12499
12499
|
return p === !1 ? String(i) : String(i).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
12500
12500
|
}, oE = function(i) {
|
|
12501
|
-
var p =
|
|
12501
|
+
var p = dc(i, Vn.TITLE), e = dc(i, Pu.TITLE_TEMPLATE);
|
|
12502
12502
|
if (e && p)
|
|
12503
12503
|
return e.replace(/%s/g, function() {
|
|
12504
12504
|
return Array.isArray(p) ? p.join("") : p;
|
|
12505
12505
|
});
|
|
12506
|
-
var c =
|
|
12506
|
+
var c = dc(i, Pu.DEFAULT_TITLE);
|
|
12507
12507
|
return p || c || void 0;
|
|
12508
12508
|
}, iE = function(i) {
|
|
12509
|
-
return
|
|
12509
|
+
return dc(i, Pu.ON_CHANGE_CLIENT_STATE) || function() {
|
|
12510
12510
|
};
|
|
12511
12511
|
}, Nh = function(i, p) {
|
|
12512
12512
|
return p.filter(function(e) {
|
|
@@ -12530,7 +12530,7 @@ var Qs = {
|
|
|
12530
12530
|
}
|
|
12531
12531
|
return e;
|
|
12532
12532
|
}, []);
|
|
12533
|
-
},
|
|
12533
|
+
}, au = function(i, p, e) {
|
|
12534
12534
|
var c = {};
|
|
12535
12535
|
return e.filter(function(n) {
|
|
12536
12536
|
return Array.isArray(n[i]) ? !0 : (typeof n[i] < "u" && ag("Helmet: " + i + ' should be of type "Array". Instead found type "' + XS(n[i]) + '"'), !1);
|
|
@@ -12556,7 +12556,7 @@ var Qs = {
|
|
|
12556
12556
|
}
|
|
12557
12557
|
return n;
|
|
12558
12558
|
}, []).reverse();
|
|
12559
|
-
},
|
|
12559
|
+
}, dc = function(i, p) {
|
|
12560
12560
|
for (var e = i.length - 1; e >= 0; e--) {
|
|
12561
12561
|
var c = i[e];
|
|
12562
12562
|
if (c.hasOwnProperty(p))
|
|
@@ -12567,15 +12567,15 @@ var Qs = {
|
|
|
12567
12567
|
return {
|
|
12568
12568
|
baseTag: aE([Fr.HREF, Fr.TARGET], i),
|
|
12569
12569
|
bodyAttributes: Nh(Qs.BODY, i),
|
|
12570
|
-
defer:
|
|
12571
|
-
encode:
|
|
12570
|
+
defer: dc(i, Pu.DEFER),
|
|
12571
|
+
encode: dc(i, Pu.ENCODE_SPECIAL_CHARACTERS),
|
|
12572
12572
|
htmlAttributes: Nh(Qs.HTML, i),
|
|
12573
|
-
linkTags:
|
|
12574
|
-
metaTags:
|
|
12575
|
-
noscriptTags:
|
|
12573
|
+
linkTags: au(Vn.LINK, [Fr.REL, Fr.HREF], i),
|
|
12574
|
+
metaTags: au(Vn.META, [Fr.NAME, Fr.CHARSET, Fr.HTTPEQUIV, Fr.PROPERTY, Fr.ITEM_PROP], i),
|
|
12575
|
+
noscriptTags: au(Vn.NOSCRIPT, [Fr.INNER_HTML], i),
|
|
12576
12576
|
onChangeClientState: iE(i),
|
|
12577
|
-
scriptTags:
|
|
12578
|
-
styleTags:
|
|
12577
|
+
scriptTags: au(Vn.SCRIPT, [Fr.SRC, Fr.INNER_HTML], i),
|
|
12578
|
+
styleTags: au(Vn.STYLE, [Fr.CSS_TEXT], i),
|
|
12579
12579
|
title: oE(i),
|
|
12580
12580
|
titleAttributes: Nh(Qs.TITLE, i)
|
|
12581
12581
|
};
|
|
@@ -12591,12 +12591,12 @@ var Qs = {
|
|
|
12591
12591
|
return clearTimeout(i);
|
|
12592
12592
|
}, lE = typeof window < "u" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || ig : global.requestAnimationFrame || ig, cE = typeof window < "u" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || Y0 : global.cancelAnimationFrame || Y0, ag = function(i) {
|
|
12593
12593
|
return console && typeof console.warn == "function" && console.warn(i);
|
|
12594
|
-
},
|
|
12595
|
-
|
|
12594
|
+
}, su = null, uE = function(i) {
|
|
12595
|
+
su && cE(su), i.defer ? su = lE(function() {
|
|
12596
12596
|
Z0(i, function() {
|
|
12597
|
-
|
|
12597
|
+
su = null;
|
|
12598
12598
|
});
|
|
12599
|
-
}) : (Z0(i),
|
|
12599
|
+
}) : (Z0(i), su = null);
|
|
12600
12600
|
}, Z0 = function(i, p) {
|
|
12601
12601
|
var e = i.baseTag, c = i.bodyAttributes, n = i.htmlAttributes, t = i.linkTags, o = i.metaTags, a = i.noscriptTags, r = i.onChangeClientState, d = i.scriptTags, s = i.styleTags, u = i.title, l = i.titleAttributes;
|
|
12602
12602
|
sg(Vn.BODY, c), sg(Vn.HTML, n), dE(u, l);
|
|
@@ -13093,7 +13093,7 @@ function um({
|
|
|
13093
13093
|
]
|
|
13094
13094
|
}
|
|
13095
13095
|
),
|
|
13096
|
-
r &&
|
|
13096
|
+
r && yc(
|
|
13097
13097
|
/* @__PURE__ */ qe.jsx(SE, { dropDownRef: o, onClose: s, children: n }),
|
|
13098
13098
|
document.body
|
|
13099
13099
|
)
|
|
@@ -13493,16 +13493,16 @@ var PE = typeof self == "object" && self && self.Object === Object && self, IE =
|
|
|
13493
13493
|
const B1 = IE;
|
|
13494
13494
|
var ME = B1.Symbol;
|
|
13495
13495
|
const Rf = ME;
|
|
13496
|
-
var F1 = Object.prototype, RE = F1.hasOwnProperty, DE = F1.toString,
|
|
13496
|
+
var F1 = Object.prototype, RE = F1.hasOwnProperty, DE = F1.toString, lu = Rf ? Rf.toStringTag : void 0;
|
|
13497
13497
|
function LE(y) {
|
|
13498
|
-
var i = RE.call(y,
|
|
13498
|
+
var i = RE.call(y, lu), p = y[lu];
|
|
13499
13499
|
try {
|
|
13500
|
-
y[
|
|
13500
|
+
y[lu] = void 0;
|
|
13501
13501
|
var e = !0;
|
|
13502
13502
|
} catch {
|
|
13503
13503
|
}
|
|
13504
13504
|
var c = DE.call(y);
|
|
13505
|
-
return e && (i ? y[
|
|
13505
|
+
return e && (i ? y[lu] = p : delete y[lu]), c;
|
|
13506
13506
|
}
|
|
13507
13507
|
var BE = Object.prototype, FE = BE.toString;
|
|
13508
13508
|
function zE(y) {
|
|
@@ -13778,7 +13778,7 @@ function lC(y) {
|
|
|
13778
13778
|
function cC({
|
|
13779
13779
|
anchorElem: y = document.body
|
|
13780
13780
|
}) {
|
|
13781
|
-
return Gu() ?
|
|
13781
|
+
return Gu() ? yc(
|
|
13782
13782
|
/* @__PURE__ */ qe.jsx(sC, { anchorElem: y }),
|
|
13783
13783
|
y
|
|
13784
13784
|
) : null;
|
|
@@ -13824,7 +13824,7 @@ function dC({
|
|
|
13824
13824
|
title: p,
|
|
13825
13825
|
closeOnClickOutside: e = !1
|
|
13826
13826
|
}) {
|
|
13827
|
-
return
|
|
13827
|
+
return yc(
|
|
13828
13828
|
/* @__PURE__ */ qe.jsx(
|
|
13829
13829
|
uC,
|
|
13830
13830
|
{
|
|
@@ -14105,7 +14105,7 @@ const pC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idX
|
|
|
14105
14105
|
] }) })
|
|
14106
14106
|
] }) })
|
|
14107
14107
|
] });
|
|
14108
|
-
}, gC = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGFibGUiPjxwYXRoIGQ9Ik0wIDJhMiAyIDAgMCAxIDItMmgxMmEyIDIgMCAwIDEgMiAydjEyYTIgMiAwIDAgMS0yIDJIMmEyIDIgMCAwIDEtMi0yVjJ6bTE1IDJoLTR2M2g0VjR6bTAgNGgtNHYzaDRWOHptMCA0aC00djNoM2ExIDEgMCAwIDAgMS0xdi0yem0tNSAzdi0zSDZ2M2g0em0tNSAwdi0zSDF2MmExIDEgMCAwIDAgMSAxaDN6bS00LTRoNFY4SDF2M3ptMC00aDRWNEgxdjN6bTUtM3YzaDRWNEg2em00IDRINnYzaDRWOHoiLz48L3N2Zz4=", mC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0naXNvLTg4NTktMSc/Pgo8IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIGZpbGw9IiMwMDAwMDAiIGhlaWdodD0iODAwcHgiIHdpZHRoPSI4MDBweCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNTAgMzUwIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzUwIDM1MCI+CiAgPHBhdGggZD0iTTUsMzUwaDM0MFYwSDVWMzUweiBNMjUsMzMwdi02Mi4yMTJoMzAwVjMzMEgyNXogTTE3OS41MDksMjQ3LjQ5NEg2MC40OTFMMTIwLDE3MS4yNTNMMTc5LjUwOSwyNDcuNDk0eiAgIE0xNzYuNDQzLDIxMS4wNjFsMzMuNjgzLTMyLjMyM2w3NC42NTQsNjkuMDVoLTc5LjY3TDE3Ni40NDMsMjExLjA2MXogTTMyNSw5Ni41NzRjLTYuMzg0LDIuMjY5LTEzLjA4NSwzLjQyNi0yMCwzLjQyNiAgYy0zMy4wODQsMC02MC0yNi45MTYtNjAtNjBjMC02LjkxMSwxLjE1Ni0xMy42MTIsMy40MjItMjBIMzI1Vjk2LjU3NHogTTI1LDIwaDIwMi41MTZDMjI1Ljg0NSwyNi40NzksMjI1LDMzLjE2NiwyMjUsNDAgIGMwLDQ0LjExMiwzNS44ODgsODAsODAsODBjNi44MzcsMCwxMy41MjMtMC44NDYsMjAtMi41MTh2MTMwLjMwNmgtMTAuNzY3bC0xMDQuMzU5LTk2LjUyNmwtNDUuODAxLDQzLjk1MUwxMjAsMTM4Ljc0OCAgbC04NS4xMDksMTA5LjA0SDI1VjIweiIvPgo8L3N2Zz4=",
|
|
14108
|
+
}, gC = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGFibGUiPjxwYXRoIGQ9Ik0wIDJhMiAyIDAgMCAxIDItMmgxMmEyIDIgMCAwIDEgMiAydjEyYTIgMiAwIDAgMS0yIDJIMmEyIDIgMCAwIDEtMi0yVjJ6bTE1IDJoLTR2M2g0VjR6bTAgNGgtNHYzaDRWOHptMCA0aC00djNoM2ExIDEgMCAwIDAgMS0xdi0yem0tNSAzdi0zSDZ2M2g0em0tNSAwdi0zSDF2MmExIDEgMCAwIDAgMSAxaDN6bS00LTRoNFY4SDF2M3ptMC00aDRWNEgxdjN6bTUtM3YzaDRWNEg2em00IDRINnYzaDRWOHoiLz48L3N2Zz4=", mC = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0naXNvLTg4NTktMSc/Pgo8IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIGZpbGw9IiMwMDAwMDAiIGhlaWdodD0iODAwcHgiIHdpZHRoPSI4MDBweCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNTAgMzUwIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzUwIDM1MCI+CiAgPHBhdGggZD0iTTUsMzUwaDM0MFYwSDVWMzUweiBNMjUsMzMwdi02Mi4yMTJoMzAwVjMzMEgyNXogTTE3OS41MDksMjQ3LjQ5NEg2MC40OTFMMTIwLDE3MS4yNTNMMTc5LjUwOSwyNDcuNDk0eiAgIE0xNzYuNDQzLDIxMS4wNjFsMzMuNjgzLTMyLjMyM2w3NC42NTQsNjkuMDVoLTc5LjY3TDE3Ni40NDMsMjExLjA2MXogTTMyNSw5Ni41NzRjLTYuMzg0LDIuMjY5LTEzLjA4NSwzLjQyNi0yMCwzLjQyNiAgYy0zMy4wODQsMC02MC0yNi45MTYtNjAtNjBjMC02LjkxMSwxLjE1Ni0xMy42MTIsMy40MjItMjBIMzI1Vjk2LjU3NHogTTI1LDIwaDIwMi41MTZDMjI1Ljg0NSwyNi40NzksMjI1LDMzLjE2NiwyMjUsNDAgIGMwLDQ0LjExMiwzNS44ODgsODAsODAsODBjNi44MzcsMCwxMy41MjMtMC44NDYsMjAtMi41MTh2MTMwLjMwNmgtMTAuNzY3bC0xMDQuMzU5LTk2LjUyNmwtNDUuODAxLDQzLjk1MUwxMjAsMTM4Ljc0OCAgbC04NS4xMDksMTA5LjA0SDI1VjIweiIvPgo8L3N2Zz4=", cu = 1;
|
|
14109
14109
|
function Fl() {
|
|
14110
14110
|
return /* @__PURE__ */ qe.jsx("div", { className: "divider" });
|
|
14111
14111
|
}
|
|
@@ -14181,27 +14181,27 @@ function yC({ onlUser: y, styleConfig: i, collabApiKey: p, onPaste: e, source: c
|
|
|
14181
14181
|
Y === H && O(G.__tag);
|
|
14182
14182
|
}), k(), W(), !1;
|
|
14183
14183
|
},
|
|
14184
|
-
|
|
14184
|
+
cu
|
|
14185
14185
|
),
|
|
14186
14186
|
n.registerCommand(
|
|
14187
|
-
|
|
14187
|
+
bc,
|
|
14188
14188
|
(K) => (R(K.target), W(), !1),
|
|
14189
|
-
|
|
14189
|
+
cu
|
|
14190
14190
|
),
|
|
14191
14191
|
n.registerCommand(
|
|
14192
14192
|
oc,
|
|
14193
14193
|
(K) => (a(K), !1),
|
|
14194
|
-
|
|
14194
|
+
cu
|
|
14195
14195
|
),
|
|
14196
14196
|
n.registerCommand(
|
|
14197
14197
|
rc,
|
|
14198
14198
|
(K) => (d(K), !1),
|
|
14199
|
-
|
|
14199
|
+
cu
|
|
14200
14200
|
),
|
|
14201
14201
|
n.registerCommand(
|
|
14202
14202
|
_s,
|
|
14203
14203
|
(K) => (F("Enter"), !0),
|
|
14204
|
-
|
|
14204
|
+
cu
|
|
14205
14205
|
)
|
|
14206
14206
|
), [n, k, W]), /* @__PURE__ */ qe.jsxs("div", { className: "toolbar", ref: t, children: [
|
|
14207
14207
|
/* @__PURE__ */ qe.jsx(
|
|
@@ -14566,7 +14566,7 @@ function q1({ contentEditable: y, placeholder: i, ErrorBoundary: p }) {
|
|
|
14566
14566
|
const r = [], d = Object.keys(o);
|
|
14567
14567
|
for (let s = 0; s < d.length; s++) {
|
|
14568
14568
|
const u = d[s], l = qe.jsx(t, { onError: (m) => n._onError(m), children: qe.jsx(Bf, { fallback: null, children: o[u] }) }), f = n.getElementByKey(u);
|
|
14569
|
-
f !== null && r.push(
|
|
14569
|
+
f !== null && r.push(yc(l, f, u));
|
|
14570
14570
|
}
|
|
14571
14571
|
return r;
|
|
14572
14572
|
}, [t, o, n]);
|
|
@@ -14848,7 +14848,7 @@ function CC({ editor: y }) {
|
|
|
14848
14848
|
function OC() {
|
|
14849
14849
|
const [y] = ir(), i = Gu();
|
|
14850
14850
|
return jo(
|
|
14851
|
-
() => i ?
|
|
14851
|
+
() => i ? yc(/* @__PURE__ */ qe.jsx(CC, { editor: y }), document.body) : null,
|
|
14852
14852
|
[y, i]
|
|
14853
14853
|
);
|
|
14854
14854
|
}
|
|
@@ -15232,7 +15232,7 @@ function K1({ ignoreHistoryMergeTagChange: y = !0, ignoreSelectionChange: i = !1
|
|
|
15232
15232
|
});
|
|
15233
15233
|
}, [e, y, i, p]), null;
|
|
15234
15234
|
}
|
|
15235
|
-
const
|
|
15235
|
+
const Ac = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, WC = Ac && "documentMode" in document ? document.documentMode : null, VC = !(!Ac || !("InputEvent" in window) || WC) && "getTargetRanges" in new window.InputEvent("input"), JC = Ac && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), KC = Ac && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, GC = Ac && /^(?=.*Chrome).*/i.test(navigator.userAgent), YC = Ac && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !GC;
|
|
15236
15236
|
function hb(y, i) {
|
|
15237
15237
|
i.update(() => {
|
|
15238
15238
|
if (y !== null) {
|
|
@@ -15277,7 +15277,7 @@ function ZC(y) {
|
|
|
15277
15277
|
}, Nn), y.registerCommand(gs, (i) => {
|
|
15278
15278
|
const p = It();
|
|
15279
15279
|
return !!kt(p) && (p.insertLineBreak(i), !0);
|
|
15280
|
-
}, Nn), y.registerCommand(
|
|
15280
|
+
}, Nn), y.registerCommand(pc, () => {
|
|
15281
15281
|
const i = It();
|
|
15282
15282
|
return !!kt(i) && (i.insertLineBreak(), !0);
|
|
15283
15283
|
}, Nn), y.registerCommand(Bu, (i) => {
|
|
@@ -15352,7 +15352,7 @@ function QC({ contentEditable: y, placeholder: i, ErrorBoundary: p }) {
|
|
|
15352
15352
|
const r = [], d = Object.keys(o);
|
|
15353
15353
|
for (let s = 0; s < d.length; s++) {
|
|
15354
15354
|
const u = d[s], l = qe.jsx(t, { onError: (m) => n._onError(m), children: qe.jsx(Bf, { fallback: null, children: o[u] }) }), f = n.getElementByKey(u);
|
|
15355
|
-
f !== null && r.push(
|
|
15355
|
+
f !== null && r.push(yc(l, f, u));
|
|
15356
15356
|
}
|
|
15357
15357
|
return r;
|
|
15358
15358
|
}, [t, o, n]);
|
|
@@ -29322,7 +29322,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
29322
29322
|
}
|
|
29323
29323
|
var gn = null, xt = null, Ft = null;
|
|
29324
29324
|
function Xt(T) {
|
|
29325
|
-
if (T =
|
|
29325
|
+
if (T = Rc(T)) {
|
|
29326
29326
|
if (typeof gn != "function")
|
|
29327
29327
|
throw Error(r(280));
|
|
29328
29328
|
var P = T.stateNode;
|
|
@@ -29546,14 +29546,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
29546
29546
|
}
|
|
29547
29547
|
}
|
|
29548
29548
|
function Jn(T, P, V, re, oe, ae) {
|
|
29549
|
-
return T === null || T.nativeEvent !== ae ? (T = wn(P, V, re, oe, ae), P !== null && (P =
|
|
29549
|
+
return T === null || T.nativeEvent !== ae ? (T = wn(P, V, re, oe, ae), P !== null && (P = Rc(P)) !== null && gt(P)) : (T.eventSystemFlags |= re, P = T.targetContainers, oe !== null && P.indexOf(oe) === -1 && P.push(oe)), T;
|
|
29550
29550
|
}
|
|
29551
29551
|
function dr(T) {
|
|
29552
29552
|
if (T.blockedOn === null) {
|
|
29553
29553
|
for (var P = T.targetContainers; 0 < P.length; ) {
|
|
29554
29554
|
var V = ji(T.domEventName, T.eventSystemFlags, P[0], T.nativeEvent);
|
|
29555
29555
|
if (V !== null)
|
|
29556
|
-
return (P =
|
|
29556
|
+
return (P = Rc(V)) !== null && gt(P), T.blockedOn = V, 0;
|
|
29557
29557
|
P.shift();
|
|
29558
29558
|
}
|
|
29559
29559
|
return 1;
|
|
@@ -29566,7 +29566,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
29566
29566
|
for (Ue = !1; 0 < ht.length; ) {
|
|
29567
29567
|
var T = ht[0];
|
|
29568
29568
|
if (T.blockedOn !== null) {
|
|
29569
|
-
(T =
|
|
29569
|
+
(T = Rc(T.blockedOn)) !== null && He(T);
|
|
29570
29570
|
break;
|
|
29571
29571
|
}
|
|
29572
29572
|
for (var P = T.targetContainers; 0 < P.length; ) {
|
|
@@ -29974,17 +29974,17 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
29974
29974
|
var P = T && T.nodeName && T.nodeName.toLowerCase();
|
|
29975
29975
|
return P && (P === "input" && (T.type === "text" || T.type === "search" || T.type === "tel" || T.type === "url" || T.type === "password") || P === "textarea" || T.contentEditable === "true");
|
|
29976
29976
|
}
|
|
29977
|
-
var Ns = e && "documentMode" in document && document.documentMode <= 11, Ii = null, Wa = null, ya = null,
|
|
29977
|
+
var Ns = e && "documentMode" in document && document.documentMode <= 11, Ii = null, Wa = null, ya = null, Ic = !1;
|
|
29978
29978
|
function Ps(T, P, V) {
|
|
29979
29979
|
var re = V.window === V ? V.document : V.nodeType === 9 ? V : V.ownerDocument;
|
|
29980
|
-
|
|
29980
|
+
Ic || Ii == null || Ii !== se(re) || (re = "selectionStart" in (re = Ii) && gl(re) ? { start: re.selectionStart, end: re.selectionEnd } : { anchorNode: (re = (re.ownerDocument && re.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: re.anchorOffset, focusNode: re.focusNode, focusOffset: re.focusOffset }, ya && qa(ya, re)) || (ya = re, 0 < (re = ln(Wa, "onSelect")).length && (P = new Vo("onSelect", "select", null, P, V), T.push({ event: P, listeners: re }), P.target = Ii));
|
|
29981
29981
|
}
|
|
29982
29982
|
gi("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), gi("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), gi(nr, 2);
|
|
29983
29983
|
for (var ml = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), Is = 0; Is < ml.length; Is++)
|
|
29984
29984
|
co.set(ml[Is], 0);
|
|
29985
29985
|
l("onMouseEnter", ["mouseout", "mouseover"]), l("onMouseLeave", ["mouseout", "mouseover"]), l("onPointerEnter", ["pointerout", "pointerover"]), l("onPointerLeave", ["pointerout", "pointerover"]), u("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), u("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), u("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), u("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), u("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), u("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
|
|
29986
29986
|
var Ms = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), yl = new Set("cancel close invalid load scroll toggle".split(" ").concat(Ms));
|
|
29987
|
-
function
|
|
29987
|
+
function Mc(T, P, V) {
|
|
29988
29988
|
var re = T.type || "unknown-event";
|
|
29989
29989
|
T.currentTarget = V, function() {
|
|
29990
29990
|
var oe;
|
|
@@ -30002,13 +30002,13 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30002
30002
|
var Ae = (et = oe[he]).instance, Oe = et.currentTarget, et = et.listener;
|
|
30003
30003
|
if (Ae !== ae && re.isPropagationStopped())
|
|
30004
30004
|
break e;
|
|
30005
|
-
|
|
30005
|
+
Mc(re, et, Oe), ae = Ae;
|
|
30006
30006
|
}
|
|
30007
30007
|
else
|
|
30008
30008
|
for (he = 0; he < oe.length; he++) {
|
|
30009
30009
|
if (Ae = (et = oe[he]).instance, Oe = et.currentTarget, et = et.listener, Ae !== ae && re.isPropagationStopped())
|
|
30010
30010
|
break e;
|
|
30011
|
-
|
|
30011
|
+
Mc(re, et, Oe), ae = Ae;
|
|
30012
30012
|
}
|
|
30013
30013
|
}
|
|
30014
30014
|
}
|
|
@@ -30202,12 +30202,12 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30202
30202
|
ya = Wa = Ii = null;
|
|
30203
30203
|
break;
|
|
30204
30204
|
case "mousedown":
|
|
30205
|
-
|
|
30205
|
+
Ic = !0;
|
|
30206
30206
|
break;
|
|
30207
30207
|
case "contextmenu":
|
|
30208
30208
|
case "mouseup":
|
|
30209
30209
|
case "dragend":
|
|
30210
|
-
|
|
30210
|
+
Ic = !1, Ps(mn, V, jt);
|
|
30211
30211
|
break;
|
|
30212
30212
|
case "selectionchange":
|
|
30213
30213
|
if (Ns)
|
|
@@ -30365,7 +30365,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30365
30365
|
}
|
|
30366
30366
|
return null;
|
|
30367
30367
|
}
|
|
30368
|
-
function
|
|
30368
|
+
function Rc(T) {
|
|
30369
30369
|
return !(T = T[Va] || T[bl]) || T.tag !== 5 && T.tag !== 6 && T.tag !== 13 && T.tag !== 3 ? null : T;
|
|
30370
30370
|
}
|
|
30371
30371
|
function vl(T) {
|
|
@@ -30380,15 +30380,15 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30380
30380
|
var P = T[wm];
|
|
30381
30381
|
return P === void 0 ? T[wm] = /* @__PURE__ */ new Set() : P;
|
|
30382
30382
|
}
|
|
30383
|
-
var pp = [],
|
|
30383
|
+
var pp = [], Dc = -1;
|
|
30384
30384
|
function Ja(T) {
|
|
30385
30385
|
return { current: T };
|
|
30386
30386
|
}
|
|
30387
30387
|
function Lr(T) {
|
|
30388
|
-
|
|
30388
|
+
Dc < 0 || (T.current = pp[Dc], pp[Dc] = null, Dc--);
|
|
30389
30389
|
}
|
|
30390
30390
|
function Wr(T, P) {
|
|
30391
|
-
pp[++
|
|
30391
|
+
pp[++Dc] = T.current, T.current = P;
|
|
30392
30392
|
}
|
|
30393
30393
|
var Ka = {}, Co = Ja(Ka), Yo = Ja(!1), Ds = Ka;
|
|
30394
30394
|
function _l(T, P) {
|
|
@@ -30471,7 +30471,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30471
30471
|
function Bs(T, P) {
|
|
30472
30472
|
return T = Pm(T), S_(T, P);
|
|
30473
30473
|
}
|
|
30474
|
-
function
|
|
30474
|
+
function Lc(T, P, V) {
|
|
30475
30475
|
return T = Pm(T), mp(T, P, V);
|
|
30476
30476
|
}
|
|
30477
30477
|
function Xi() {
|
|
@@ -30565,7 +30565,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30565
30565
|
} else
|
|
30566
30566
|
(T = V.lastBaseUpdate) === null ? V.firstBaseUpdate = P : T.next = P, V.lastBaseUpdate = P;
|
|
30567
30567
|
}
|
|
30568
|
-
function
|
|
30568
|
+
function Bc(T, P, V, re) {
|
|
30569
30569
|
var oe, ae, he, Ae, Oe = T.updateQueue, et = (Ga = !1, Oe.firstBaseUpdate), zt = Oe.lastBaseUpdate;
|
|
30570
30570
|
if ((yt = Oe.shared.pending) !== null && (Oe.shared.pending = null, ae = (oe = yt).next, (oe.next = null) === zt ? et = ae : zt.next = ae, zt = oe, (he = T.alternate) !== null) && (Ae = (he = he.updateQueue).lastBaseUpdate) !== zt && (Ae === null ? he.firstBaseUpdate = ae : Ae.next = ae, he.lastBaseUpdate = oe), et !== null) {
|
|
30571
30571
|
for (Ae = Oe.baseState, zt = 0, he = ae = oe = null; ; ) {
|
|
@@ -30603,7 +30603,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30603
30603
|
et = yt.next, yt.next = null, Oe.lastBaseUpdate = yt, Oe.shared.pending = null;
|
|
30604
30604
|
}
|
|
30605
30605
|
}
|
|
30606
|
-
he === null && (oe = Ae), Oe.baseState = oe, Oe.firstBaseUpdate = ae, Oe.lastBaseUpdate = he,
|
|
30606
|
+
he === null && (oe = Ae), Oe.baseState = oe, Oe.firstBaseUpdate = ae, Oe.lastBaseUpdate = he, Yc |= zt, T.lanes = zt, T.memoizedState = Ae;
|
|
30607
30607
|
}
|
|
30608
30608
|
}
|
|
30609
30609
|
function Lm(T, P, V) {
|
|
@@ -30648,10 +30648,10 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30648
30648
|
}
|
|
30649
30649
|
function Ep(T, P, V, re) {
|
|
30650
30650
|
var oe = T.stateNode, ae = (oe.props = V, oe.state = T.memoizedState, oe.refs = Bm, Sp(T), P.contextType);
|
|
30651
|
-
typeof ae == "object" && ae !== null ? oe.context = mi(ae) : (ae = li(P) ? Ds : Co.current, oe.context = _l(T, ae)),
|
|
30651
|
+
typeof ae == "object" && ae !== null ? oe.context = mi(ae) : (ae = li(P) ? Ds : Co.current, oe.context = _l(T, ae)), Bc(T, V, oe, re), oe.state = T.memoizedState, typeof (ae = P.getDerivedStateFromProps) == "function" && (cd(T, 0, ae, V), oe.state = T.memoizedState), typeof P.getDerivedStateFromProps == "function" || typeof oe.getSnapshotBeforeUpdate == "function" || typeof oe.UNSAFE_componentWillMount != "function" && typeof oe.componentWillMount != "function" || (P = oe.state, typeof oe.componentWillMount == "function" && oe.componentWillMount(), typeof oe.UNSAFE_componentWillMount == "function" && oe.UNSAFE_componentWillMount(), P !== oe.state && ud.enqueueReplaceState(oe, oe.state, null), Bc(T, V, oe, re), oe.state = T.memoizedState), typeof oe.componentDidMount == "function" && (T.flags |= 4);
|
|
30652
30652
|
}
|
|
30653
30653
|
var dd = Array.isArray;
|
|
30654
|
-
function
|
|
30654
|
+
function Fc(T, P, V) {
|
|
30655
30655
|
if ((T = V.ref) !== null && typeof T != "function" && typeof T != "object") {
|
|
30656
30656
|
if (V._owner) {
|
|
30657
30657
|
if (V = V._owner) {
|
|
@@ -30712,7 +30712,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30712
30712
|
return wt === null || wt.tag !== 6 ? (wt = rh(jt, yt.mode, mn)).return = yt : (wt = oe(wt, jt)).return = yt, wt;
|
|
30713
30713
|
}
|
|
30714
30714
|
function Oe(yt, wt, jt, mn) {
|
|
30715
|
-
return wt !== null && wt.elementType === jt.type ? ((mn = oe(wt, jt.props)).ref =
|
|
30715
|
+
return wt !== null && wt.elementType === jt.type ? ((mn = oe(wt, jt.props)).ref = Fc(0, wt, jt), mn.return = yt) : ((mn = Ad(jt.type, jt.key, jt.props, null, yt.mode, mn)).ref = Fc(0, wt, jt), mn.return = yt), mn;
|
|
30716
30716
|
}
|
|
30717
30717
|
function et(yt, wt, jt, mn) {
|
|
30718
30718
|
return wt === null || wt.tag !== 4 || wt.stateNode.containerInfo !== jt.containerInfo || wt.stateNode.implementation !== jt.implementation ? (wt = oh(jt, yt.mode, mn)).return = yt : (wt = oe(wt, jt.children || [])).return = yt, wt;
|
|
@@ -30726,7 +30726,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30726
30726
|
if (typeof wt == "object" && wt !== null) {
|
|
30727
30727
|
switch (wt.$$typeof) {
|
|
30728
30728
|
case C:
|
|
30729
|
-
return (jt = Ad(wt.type, wt.key, wt.props, null, yt.mode, jt)).ref =
|
|
30729
|
+
return (jt = Ad(wt.type, wt.key, wt.props, null, yt.mode, jt)).ref = Fc(0, null, wt), jt.return = yt, jt;
|
|
30730
30730
|
case I:
|
|
30731
30731
|
return (wt = oh(wt, yt.mode, jt)).return = yt, wt;
|
|
30732
30732
|
}
|
|
@@ -30785,7 +30785,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30785
30785
|
break e;
|
|
30786
30786
|
default:
|
|
30787
30787
|
if (Qt.elementType === jt.type) {
|
|
30788
|
-
V(yt, Qt.sibling), (wt = oe(Qt, jt.props)).ref =
|
|
30788
|
+
V(yt, Qt.sibling), (wt = oe(Qt, jt.props)).ref = Fc(0, Qt, jt), wt.return = yt, yt = wt;
|
|
30789
30789
|
break e;
|
|
30790
30790
|
}
|
|
30791
30791
|
}
|
|
@@ -30794,7 +30794,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30794
30794
|
}
|
|
30795
30795
|
P(yt, Qt), Qt = Qt.sibling;
|
|
30796
30796
|
}
|
|
30797
|
-
yt = jt.type === M ? ((wt = Pl(jt.props.children, yt.mode, mn, jt.key)).return = yt, wt) : ((mn = Ad(jt.type, jt.key, jt.props, null, yt.mode, mn)).ref =
|
|
30797
|
+
yt = jt.type === M ? ((wt = Pl(jt.props.children, yt.mode, mn, jt.key)).return = yt, wt) : ((mn = Ad(jt.type, jt.key, jt.props, null, yt.mode, mn)).ref = Fc(0, wt, jt), mn.return = yt, mn);
|
|
30798
30798
|
}
|
|
30799
30799
|
return he(yt);
|
|
30800
30800
|
case I:
|
|
@@ -30881,14 +30881,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30881
30881
|
return V(yt, wt);
|
|
30882
30882
|
};
|
|
30883
30883
|
}
|
|
30884
|
-
var pd = Um(!0), Hm = Um(!1),
|
|
30884
|
+
var pd = Um(!0), Hm = Um(!1), zc = {}, ea = Ja(zc), $c = Ja(zc), Uc = Ja(zc);
|
|
30885
30885
|
function Fs(T) {
|
|
30886
|
-
if (T ===
|
|
30886
|
+
if (T === zc)
|
|
30887
30887
|
throw Error(r(174));
|
|
30888
30888
|
return T;
|
|
30889
30889
|
}
|
|
30890
30890
|
function Cp(T, P) {
|
|
30891
|
-
switch (Wr(
|
|
30891
|
+
switch (Wr(Uc, P), Wr($c, T), Wr(ea, zc), T = P.nodeType) {
|
|
30892
30892
|
case 9:
|
|
30893
30893
|
case 11:
|
|
30894
30894
|
P = (P = P.documentElement) ? P.namespaceURI : je(null, "");
|
|
@@ -30899,15 +30899,15 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
30899
30899
|
Lr(ea), Wr(ea, P);
|
|
30900
30900
|
}
|
|
30901
30901
|
function El() {
|
|
30902
|
-
Lr(ea), Lr(
|
|
30902
|
+
Lr(ea), Lr($c), Lr(Uc);
|
|
30903
30903
|
}
|
|
30904
30904
|
function qm(T) {
|
|
30905
|
-
Fs(
|
|
30905
|
+
Fs(Uc.current);
|
|
30906
30906
|
var P = Fs(ea.current), V = je(P, T.type);
|
|
30907
|
-
P !== V && (Wr(
|
|
30907
|
+
P !== V && (Wr($c, T), Wr(ea, V));
|
|
30908
30908
|
}
|
|
30909
30909
|
function Op(T) {
|
|
30910
|
-
|
|
30910
|
+
$c.current === T && (Lr(ea), Lr($c));
|
|
30911
30911
|
}
|
|
30912
30912
|
var Yr = Ja(0);
|
|
30913
30913
|
function hd(T) {
|
|
@@ -31012,7 +31012,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31012
31012
|
Cl[T]._workInProgressVersionPrimary = null;
|
|
31013
31013
|
Cl.length = 0;
|
|
31014
31014
|
}
|
|
31015
|
-
var
|
|
31015
|
+
var Hc = w.ReactCurrentDispatcher, yi = w.ReactCurrentBatchConfig, qc = 0, Zr = null, Mo = null, yo = null, md = !1, Wc = !1;
|
|
31016
31016
|
function Zo() {
|
|
31017
31017
|
throw Error(r(321));
|
|
31018
31018
|
}
|
|
@@ -31025,14 +31025,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31025
31025
|
}
|
|
31026
31026
|
}
|
|
31027
31027
|
function Np(T, P, V, re, oe, ae) {
|
|
31028
|
-
if (
|
|
31028
|
+
if (qc = ae, (Zr = P).memoizedState = null, P.updateQueue = null, P.lanes = 0, Hc.current = T === null || T.memoizedState === null ? k_ : A_, T = V(re, oe), Wc) {
|
|
31029
31029
|
ae = 0;
|
|
31030
31030
|
do
|
|
31031
|
-
if (
|
|
31031
|
+
if (Wc = !1, !(ae < 25))
|
|
31032
31032
|
throw Error(r(301));
|
|
31033
|
-
while (ae += 1, yo = Mo = null, P.updateQueue = null,
|
|
31033
|
+
while (ae += 1, yo = Mo = null, P.updateQueue = null, Hc.current = j_, T = V(re, oe), Wc);
|
|
31034
31034
|
}
|
|
31035
|
-
if (
|
|
31035
|
+
if (Hc.current = _d, P = Mo !== null && Mo.next !== null, qc = 0, yo = Mo = Zr = null, md = !1, P)
|
|
31036
31036
|
throw Error(r(300));
|
|
31037
31037
|
return T;
|
|
31038
31038
|
}
|
|
@@ -31055,7 +31055,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31055
31055
|
function na(T, P) {
|
|
31056
31056
|
return typeof P == "function" ? P(T) : P;
|
|
31057
31057
|
}
|
|
31058
|
-
function
|
|
31058
|
+
function Vc(T) {
|
|
31059
31059
|
var P = $s(), V = P.queue;
|
|
31060
31060
|
if (V === null)
|
|
31061
31061
|
throw Error(r(311));
|
|
@@ -31066,12 +31066,12 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31066
31066
|
var he = he.baseState, Ae = re = ae = null, Oe = oe;
|
|
31067
31067
|
do
|
|
31068
31068
|
var et, zt = Oe.lane;
|
|
31069
|
-
while ((
|
|
31069
|
+
while ((qc & zt) === zt ? (Ae !== null && (Ae = Ae.next = { lane: 0, action: Oe.action, eagerReducer: Oe.eagerReducer, eagerState: Oe.eagerState, next: null }), he = Oe.eagerReducer === T ? Oe.eagerState : T(he, Oe.action)) : (et = { lane: zt, action: Oe.action, eagerReducer: Oe.eagerReducer, eagerState: Oe.eagerState, next: null }, Ae === null ? (re = Ae = et, ae = he) : Ae = Ae.next = et, Zr.lanes |= zt, Yc |= zt), (Oe = Oe.next) !== null && Oe !== oe);
|
|
31070
31070
|
Ae === null ? ae = he : Ae.next = re, Jo(he, P.memoizedState) || (Ri = !0), P.memoizedState = he, P.baseState = ae, P.baseQueue = Ae, V.lastRenderedState = he;
|
|
31071
31071
|
}
|
|
31072
31072
|
return [P.memoizedState, V.dispatch];
|
|
31073
31073
|
}
|
|
31074
|
-
function
|
|
31074
|
+
function Jc(T) {
|
|
31075
31075
|
var P = $s(), V = P.queue;
|
|
31076
31076
|
if (V === null)
|
|
31077
31077
|
throw Error(r(311));
|
|
@@ -31087,7 +31087,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31087
31087
|
}
|
|
31088
31088
|
function Km(T, P, V) {
|
|
31089
31089
|
var re = (re = P._getVersion)(P._source), oe = P._workInProgressVersionPrimary;
|
|
31090
|
-
if (oe !== null ? T = oe === re : (T = T.mutableReadLanes, (T = (
|
|
31090
|
+
if (oe !== null ? T = oe === re : (T = T.mutableReadLanes, (T = (qc & T) === T) && (P._workInProgressVersionPrimary = re, Cl.push(P))), T)
|
|
31091
31091
|
return V(P._source);
|
|
31092
31092
|
throw Cl.push(P), Error(r(350));
|
|
31093
31093
|
}
|
|
@@ -31095,7 +31095,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31095
31095
|
var oe = Ro;
|
|
31096
31096
|
if (oe === null)
|
|
31097
31097
|
throw Error(r(349));
|
|
31098
|
-
var ae = P._getVersion, he = ae(P._source), Ae =
|
|
31098
|
+
var ae = P._getVersion, he = ae(P._source), Ae = Hc.current, Oe = (zt = Ae.useState(function() {
|
|
31099
31099
|
return Km(oe, P, V);
|
|
31100
31100
|
}))[1], et = zt[0], zt = yo, Lt = (yt = T.memoizedState).refs, on = Lt.getSnapshot, Gn = yt.source, yt = yt.subscribe, wt = Zr;
|
|
31101
31101
|
return T.memoizedState = { refs: Lt, source: P, subscribe: re }, Ae.useEffect(function() {
|
|
@@ -31126,7 +31126,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31126
31126
|
function Ym(T, P, V) {
|
|
31127
31127
|
return Gm($s(), T, P, V);
|
|
31128
31128
|
}
|
|
31129
|
-
function
|
|
31129
|
+
function Kc(T) {
|
|
31130
31130
|
var P = zs();
|
|
31131
31131
|
return typeof T == "function" && (T = T()), P.memoizedState = P.baseState = T, T = (T = P.queue = { pending: null, dispatch: null, lastRenderedReducer: na, lastRenderedState: T }).dispatch = Rp.bind(null, Zr, T), [P.memoizedState, T];
|
|
31132
31132
|
}
|
|
@@ -31184,7 +31184,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31184
31184
|
function Rp(T, P, V) {
|
|
31185
31185
|
var re = ui(), oe = ts(T), ae = { lane: oe, action: V, eagerReducer: null, eagerState: null, next: null }, he = P.pending;
|
|
31186
31186
|
if (he === null ? ae.next = ae : (ae.next = he.next, he.next = ae), P.pending = ae, he = T.alternate, T === Zr || he !== null && he === Zr)
|
|
31187
|
-
|
|
31187
|
+
Wc = md = !0;
|
|
31188
31188
|
else {
|
|
31189
31189
|
if (T.lanes === 0 && (he === null || he.lanes === 0) && (he = P.lastRenderedReducer) !== null)
|
|
31190
31190
|
try {
|
|
@@ -31208,8 +31208,8 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31208
31208
|
}, useReducer: function(T, P, V) {
|
|
31209
31209
|
var re = zs();
|
|
31210
31210
|
return P = V !== void 0 ? V(P) : P, re.memoizedState = re.baseState = P, T = (T = re.queue = { pending: null, dispatch: null, lastRenderedReducer: T, lastRenderedState: P }).dispatch = Rp.bind(null, Zr, T), [re.memoizedState, T];
|
|
31211
|
-
}, useRef: Zm, useState:
|
|
31212
|
-
var P =
|
|
31211
|
+
}, useRef: Zm, useState: Kc, useDebugValue: Mp, useDeferredValue: function(T) {
|
|
31212
|
+
var P = Kc(T), V = P[0], re = P[1];
|
|
31213
31213
|
return Qm(function() {
|
|
31214
31214
|
var oe = yi.transition;
|
|
31215
31215
|
yi.transition = 1;
|
|
@@ -31220,7 +31220,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31220
31220
|
}
|
|
31221
31221
|
}, [T]), V;
|
|
31222
31222
|
}, useTransition: function() {
|
|
31223
|
-
var T =
|
|
31223
|
+
var T = Kc(!1), P = T[0];
|
|
31224
31224
|
return Zm(T = (function(V, re) {
|
|
31225
31225
|
var oe = xl();
|
|
31226
31226
|
Bs(oe < 98 ? 98 : oe, function() {
|
|
@@ -31242,13 +31242,13 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31242
31242
|
var T, P, V;
|
|
31243
31243
|
return ta ? (T = !1, V = { $$typeof: z, toString: V = function() {
|
|
31244
31244
|
throw T || (T = !0, P("r:" + (fp++).toString(36))), Error(r(355));
|
|
31245
|
-
}, valueOf: V }, P =
|
|
31245
|
+
}, valueOf: V }, P = Kc(V)[1], !(2 & Zr.mode) && (Zr.flags |= 516, yd(5, function() {
|
|
31246
31246
|
P("r:" + (fp++).toString(36));
|
|
31247
|
-
}, void 0, null))) :
|
|
31248
|
-
}, unstable_isNewReconciler: !1 }, A_ = { readContext: mi, useCallback: ny, useContext: mi, useEffect: vd, useImperativeHandle: ty, useLayoutEffect: Xm, useMemo: ry, useReducer:
|
|
31249
|
-
return
|
|
31247
|
+
}, void 0, null))) : Kc(V = "r:" + (fp++).toString(36)), V;
|
|
31248
|
+
}, unstable_isNewReconciler: !1 }, A_ = { readContext: mi, useCallback: ny, useContext: mi, useEffect: vd, useImperativeHandle: ty, useLayoutEffect: Xm, useMemo: ry, useReducer: Vc, useRef: bd, useState: function() {
|
|
31249
|
+
return Vc(na);
|
|
31250
31250
|
}, useDebugValue: Mp, useDeferredValue: function(T) {
|
|
31251
|
-
var P =
|
|
31251
|
+
var P = Vc(na), V = P[0], re = P[1];
|
|
31252
31252
|
return vd(function() {
|
|
31253
31253
|
var oe = yi.transition;
|
|
31254
31254
|
yi.transition = 1;
|
|
@@ -31259,14 +31259,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31259
31259
|
}
|
|
31260
31260
|
}, [T]), V;
|
|
31261
31261
|
}, useTransition: function() {
|
|
31262
|
-
var T =
|
|
31262
|
+
var T = Vc(na)[0];
|
|
31263
31263
|
return [bd().current, T];
|
|
31264
31264
|
}, useMutableSource: Ym, useOpaqueIdentifier: function() {
|
|
31265
|
-
return
|
|
31266
|
-
}, unstable_isNewReconciler: !1 }, j_ = { readContext: mi, useCallback: ny, useContext: mi, useEffect: vd, useImperativeHandle: ty, useLayoutEffect: Xm, useMemo: ry, useReducer:
|
|
31267
|
-
return
|
|
31265
|
+
return Vc(na)[0];
|
|
31266
|
+
}, unstable_isNewReconciler: !1 }, j_ = { readContext: mi, useCallback: ny, useContext: mi, useEffect: vd, useImperativeHandle: ty, useLayoutEffect: Xm, useMemo: ry, useReducer: Jc, useRef: bd, useState: function() {
|
|
31267
|
+
return Jc(na);
|
|
31268
31268
|
}, useDebugValue: Mp, useDeferredValue: function(T) {
|
|
31269
|
-
var P =
|
|
31269
|
+
var P = Jc(na), V = P[0], re = P[1];
|
|
31270
31270
|
return vd(function() {
|
|
31271
31271
|
var oe = yi.transition;
|
|
31272
31272
|
yi.transition = 1;
|
|
@@ -31277,10 +31277,10 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31277
31277
|
}
|
|
31278
31278
|
}, [T]), V;
|
|
31279
31279
|
}, useTransition: function() {
|
|
31280
|
-
var T =
|
|
31280
|
+
var T = Jc(na)[0];
|
|
31281
31281
|
return [bd().current, T];
|
|
31282
31282
|
}, useMutableSource: Ym, useOpaqueIdentifier: function() {
|
|
31283
|
-
return
|
|
31283
|
+
return Jc(na)[0];
|
|
31284
31284
|
}, unstable_isNewReconciler: !1 }, N_ = w.ReactCurrentOwner, Ri = !1;
|
|
31285
31285
|
function ci(T, P, V, re) {
|
|
31286
31286
|
P.child = T === null ? Hm(P, null, V, re) : pd(P, T.child, V, re);
|
|
@@ -31325,7 +31325,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31325
31325
|
}
|
|
31326
31326
|
function cy(T, P, V, re, oe) {
|
|
31327
31327
|
var ae, he, Ae, Oe, et, zt, Lt, on, Gn, yt;
|
|
31328
|
-
return li(V) ? (ae = !0, rd(P)) : ae = !1, Sl(P, oe), re = P.stateNode === null ? (T !== null && (T.alternate = null, P.alternate = null, P.flags |= 2), zm(P, V, re), Ep(P, V, re, oe), !0) : T === null ? ((he = P.stateNode).props = Ae = P.memoizedProps, on = he.context, Oe = typeof (Oe = V.contextType) == "object" && Oe !== null ? mi(Oe) : _l(P, Oe = li(V) ? Ds : Co.current), (zt = typeof (et = V.getDerivedStateFromProps) == "function" || typeof he.getSnapshotBeforeUpdate == "function") || typeof he.UNSAFE_componentWillReceiveProps != "function" && typeof he.componentWillReceiveProps != "function" || Ae === re && on === Oe || $m(0, he, re, Oe), Ga = !1, he.state = Lt = P.memoizedState,
|
|
31328
|
+
return li(V) ? (ae = !0, rd(P)) : ae = !1, Sl(P, oe), re = P.stateNode === null ? (T !== null && (T.alternate = null, P.alternate = null, P.flags |= 2), zm(P, V, re), Ep(P, V, re, oe), !0) : T === null ? ((he = P.stateNode).props = Ae = P.memoizedProps, on = he.context, Oe = typeof (Oe = V.contextType) == "object" && Oe !== null ? mi(Oe) : _l(P, Oe = li(V) ? Ds : Co.current), (zt = typeof (et = V.getDerivedStateFromProps) == "function" || typeof he.getSnapshotBeforeUpdate == "function") || typeof he.UNSAFE_componentWillReceiveProps != "function" && typeof he.componentWillReceiveProps != "function" || Ae === re && on === Oe || $m(0, he, re, Oe), Ga = !1, he.state = Lt = P.memoizedState, Bc(P, re, he, oe), on = P.memoizedState, Ae !== re || Lt !== on || Yo.current || Ga ? (typeof et == "function" && (cd(P, 0, et, re), on = P.memoizedState), (Ae = Ga || Fm(P, V, Ae, re, Lt, on, Oe)) ? (zt || typeof he.UNSAFE_componentWillMount != "function" && typeof he.componentWillMount != "function" || (typeof he.componentWillMount == "function" && he.componentWillMount(), typeof he.UNSAFE_componentWillMount == "function" && he.UNSAFE_componentWillMount()), typeof he.componentDidMount == "function" && (P.flags |= 4)) : (typeof he.componentDidMount == "function" && (P.flags |= 4), P.memoizedProps = re, P.memoizedState = on), he.props = re, he.state = on, he.context = Oe, Ae) : (typeof he.componentDidMount == "function" && (P.flags |= 4), !1)) : (he = P.stateNode, Rm(T, P), Ae = P.memoizedProps, Oe = P.type === P.elementType ? Ae : Mi(P.type, Ae), he.props = Oe, zt = P.pendingProps, Lt = he.context, on = typeof (on = V.contextType) == "object" && on !== null ? mi(on) : _l(P, on = li(V) ? Ds : Co.current), (et = typeof (Gn = V.getDerivedStateFromProps) == "function" || typeof he.getSnapshotBeforeUpdate == "function") || typeof he.UNSAFE_componentWillReceiveProps != "function" && typeof he.componentWillReceiveProps != "function" || Ae === zt && Lt === on || $m(0, he, re, on), Ga = !1, he.state = Lt = P.memoizedState, Bc(P, re, he, oe), yt = P.memoizedState, Ae !== zt || Lt !== yt || Yo.current || Ga ? (typeof Gn == "function" && (cd(P, 0, Gn, re), yt = P.memoizedState), (Oe = Ga || Fm(P, V, Oe, re, Lt, yt, on)) ? (et || typeof he.UNSAFE_componentWillUpdate != "function" && typeof he.componentWillUpdate != "function" || (typeof he.componentWillUpdate == "function" && he.componentWillUpdate(re, yt, on), typeof he.UNSAFE_componentWillUpdate == "function" && he.UNSAFE_componentWillUpdate(re, yt, on)), typeof he.componentDidUpdate == "function" && (P.flags |= 4), typeof he.getSnapshotBeforeUpdate == "function" && (P.flags |= 256)) : (typeof he.componentDidUpdate != "function" || Ae === T.memoizedProps && Lt === T.memoizedState || (P.flags |= 4), typeof he.getSnapshotBeforeUpdate != "function" || Ae === T.memoizedProps && Lt === T.memoizedState || (P.flags |= 256), P.memoizedProps = re, P.memoizedState = yt), he.props = re, he.state = yt, he.context = on, Oe) : (typeof he.componentDidUpdate != "function" || Ae === T.memoizedProps && Lt === T.memoizedState || (P.flags |= 4), typeof he.getSnapshotBeforeUpdate != "function" || Ae === T.memoizedProps && Lt === T.memoizedState || (P.flags |= 256), !1)), Lp(T, P, V, re, ae, oe);
|
|
31329
31329
|
}
|
|
31330
31330
|
function Lp(T, P, V, re, oe, ae) {
|
|
31331
31331
|
ly(T, P);
|
|
@@ -31419,7 +31419,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31419
31419
|
return P.child;
|
|
31420
31420
|
}
|
|
31421
31421
|
function _a(T, P, V) {
|
|
31422
|
-
if (T !== null && (P.dependencies = T.dependencies),
|
|
31422
|
+
if (T !== null && (P.dependencies = T.dependencies), Yc |= P.lanes, !(V & P.childLanes))
|
|
31423
31423
|
return null;
|
|
31424
31424
|
if (T !== null && P.child !== T.child)
|
|
31425
31425
|
throw Error(r(153));
|
|
@@ -31430,7 +31430,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
|
|
|
31430
31430
|
}
|
|
31431
31431
|
return P.child;
|
|
31432
31432
|
}
|
|
31433
|
-
function
|
|
31433
|
+
function Gc(T, P) {
|
|
31434
31434
|
if (!ta)
|
|
31435
31435
|
switch (T.tailMode) {
|
|
31436
31436
|
case "hidden":
|
|
@@ -31604,7 +31604,7 @@ Error generating stack: ` + ae.message + `
|
|
|
31604
31604
|
T = P = P.next;
|
|
31605
31605
|
do {
|
|
31606
31606
|
var re = T, oe = re.next;
|
|
31607
|
-
4 & (re = re.tag) && 1 & re && (Iy(V, T), re = V, ae = T, Yp.push(ae, re), Xa || (Xa = !0,
|
|
31607
|
+
4 & (re = re.tag) && 1 & re && (Iy(V, T), re = V, ae = T, Yp.push(ae, re), Xa || (Xa = !0, Lc(97, function() {
|
|
31608
31608
|
return rs(), null;
|
|
31609
31609
|
}))), T = oe;
|
|
31610
31610
|
} while (T !== P);
|
|
@@ -31891,11 +31891,11 @@ Error generating stack: ` + ae.message + `
|
|
|
31891
31891
|
P.has(re) || (P.add(re), re.then(oe, oe));
|
|
31892
31892
|
}));
|
|
31893
31893
|
}
|
|
31894
|
-
var B_ = Math.ceil, xd = w.ReactCurrentDispatcher, Hp = w.ReactCurrentOwner, Kn = 0, Ro = null, so = null, To = 0, Us = 0, qp = Ja(0), bo = 0, wd = null, Ol = 0,
|
|
31894
|
+
var B_ = Math.ceil, xd = w.ReactCurrentDispatcher, Hp = w.ReactCurrentOwner, Kn = 0, Ro = null, so = null, To = 0, Us = 0, qp = Ja(0), bo = 0, wd = null, Ol = 0, Yc = 0, Tl = 0, Wp = 0, Vp = null, Jp = 0, Kp = 1 / 0;
|
|
31895
31895
|
function kl() {
|
|
31896
31896
|
Kp = Oo() + 500;
|
|
31897
31897
|
}
|
|
31898
|
-
var Cy, xn = null, Sd = !1, Gp = null, ra = null, Xa = !1,
|
|
31898
|
+
var Cy, xn = null, Sd = !1, Gp = null, ra = null, Xa = !1, Zc = null, Qc = 90, Yp = [], Zp = [], xa = null, Xc = 0, Qp = null, Ed = -1, es = 0, Cd = 0, eu = null, Od = !1;
|
|
31899
31899
|
function ui() {
|
|
31900
31900
|
return 48 & Kn ? Oo() : Ed !== -1 ? Ed : Ed = Oo();
|
|
31901
31901
|
}
|
|
@@ -31918,8 +31918,8 @@ Error generating stack: ` + ae.message + `
|
|
|
31918
31918
|
})(T), es))) : xl() === 99 ? 1 : 2 : 1;
|
|
31919
31919
|
}
|
|
31920
31920
|
function ns(T, P, V) {
|
|
31921
|
-
if (50 <
|
|
31922
|
-
throw
|
|
31921
|
+
if (50 < Xc)
|
|
31922
|
+
throw Xc = 0, Qp = null, Error(r(185));
|
|
31923
31923
|
var re;
|
|
31924
31924
|
(T = Td(T, P)) !== null && (Ji(T, P, V), T === Ro && (Tl |= P, bo === 4) && Al(T, To), re = xl(), P === 1 ? 8 & Kn && !(48 & Kn) ? Xp(T) : (bi(T, V), Kn === 0 && (kl(), Xi())) : (!(4 & Kn) || re !== 98 && re !== 99 || (xa === null ? xa = /* @__PURE__ */ new Set([T]) : xa.add(T)), bi(T, V)), Vp = T);
|
|
31925
31925
|
}
|
|
@@ -31943,7 +31943,7 @@ Error generating stack: ` + ae.message + `
|
|
|
31943
31943
|
return;
|
|
31944
31944
|
V !== vp && yp(V);
|
|
31945
31945
|
}
|
|
31946
|
-
V = P === 15 ? (V = Xp.bind(null, T), ba === null ? (ba = [V], id = mp(od, Im)) : ba.push(V), vp) : P === 14 ?
|
|
31946
|
+
V = P === 15 ? (V = Xp.bind(null, T), ba === null ? (ba = [V], id = mp(od, Im)) : ba.push(V), vp) : P === 14 ? Lc(99, Xp.bind(null, T)) : Lc(V = ((Lt) => {
|
|
31947
31947
|
switch (Lt) {
|
|
31948
31948
|
case 15:
|
|
31949
31949
|
case 14:
|
|
@@ -31993,7 +31993,7 @@ Error generating stack: ` + ae.message + `
|
|
|
31993
31993
|
if (xp(), xd.current = ae, Kn = oe, re = so !== null ? 0 : (Ro = null, To = 0, bo), Ol & Tl)
|
|
31994
31994
|
jl(T, 0);
|
|
31995
31995
|
else if (re !== 0) {
|
|
31996
|
-
if ((re = re === 2 && (Kn |= 64, T.hydrate && (T.hydrate = !1, Go(T.containerInfo)), (V = So(T)) !== 0) ?
|
|
31996
|
+
if ((re = re === 2 && (Kn |= 64, T.hydrate && (T.hydrate = !1, Go(T.containerInfo)), (V = So(T)) !== 0) ? tu(T, V) : re) === 1)
|
|
31997
31997
|
throw P = wd, jl(T, 0), Al(T, V), bi(T, Oo()), P;
|
|
31998
31998
|
switch (T.finishedWork = T.current.alternate, T.finishedLanes = V, re) {
|
|
31999
31999
|
case 0:
|
|
@@ -32040,7 +32040,7 @@ Error generating stack: ` + ae.message + `
|
|
|
32040
32040
|
if (48 & Kn)
|
|
32041
32041
|
throw Error(r(327));
|
|
32042
32042
|
var P, V;
|
|
32043
|
-
if (rs(), T === Ro && T.expiredLanes & To ? (V =
|
|
32043
|
+
if (rs(), T === Ro && T.expiredLanes & To ? (V = tu(T, P = To), Ol & Tl && (V = tu(T, P = Po(T, P)))) : V = tu(T, P = Po(T, 0)), (V = T.tag !== 0 && V === 2 && (Kn |= 64, T.hydrate && (T.hydrate = !1, Go(T.containerInfo)), (P = So(T)) !== 0) ? tu(T, P) : V) === 1)
|
|
32044
32044
|
throw V = wd, jl(T, 0), Al(T, P), bi(T, Oo()), V;
|
|
32045
32045
|
return T.finishedWork = T.current.alternate, T.finishedLanes = P, Nl(T), bi(T, Oo()), null;
|
|
32046
32046
|
}
|
|
@@ -32100,20 +32100,20 @@ Error generating stack: ` + ae.message + `
|
|
|
32100
32100
|
}
|
|
32101
32101
|
V = V.return;
|
|
32102
32102
|
}
|
|
32103
|
-
so = is((Ro = T).current, null), To = Us = Ol = P, wd = null, Wp = Tl =
|
|
32103
|
+
so = is((Ro = T).current, null), To = Us = Ol = P, wd = null, Wp = Tl = Yc = bo = 0;
|
|
32104
32104
|
}
|
|
32105
32105
|
function Ay(T, P) {
|
|
32106
32106
|
for (; ; ) {
|
|
32107
32107
|
var V = so;
|
|
32108
32108
|
try {
|
|
32109
|
-
if (xp(),
|
|
32109
|
+
if (xp(), Hc.current = _d, md) {
|
|
32110
32110
|
for (var re = Zr.memoizedState; re !== null; ) {
|
|
32111
32111
|
var oe = re.queue;
|
|
32112
32112
|
oe !== null && (oe.pending = null), re = re.next;
|
|
32113
32113
|
}
|
|
32114
32114
|
md = !1;
|
|
32115
32115
|
}
|
|
32116
|
-
if (
|
|
32116
|
+
if (qc = 0, yo = Mo = Zr = null, Wc = !1, (Hp.current = null) === V || V.return === null) {
|
|
32117
32117
|
bo = 1, wd = P, so = null;
|
|
32118
32118
|
break;
|
|
32119
32119
|
}
|
|
@@ -32166,7 +32166,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32166
32166
|
var T = xd.current;
|
|
32167
32167
|
return xd.current = _d, T === null ? _d : T;
|
|
32168
32168
|
}
|
|
32169
|
-
function
|
|
32169
|
+
function tu(T, P) {
|
|
32170
32170
|
var V = Kn, re = (Kn |= 16, jy());
|
|
32171
32171
|
for (Ro === T && To === P || jl(T, P); ; )
|
|
32172
32172
|
try {
|
|
@@ -32240,7 +32240,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32240
32240
|
return El(), Lr(Yo), Lr(Co), Ap(), (Oe = he.stateNode).pendingContext && (Oe.context = Oe.pendingContext, Oe.pendingContext = null), ae !== null && ae.child !== null || (gd(he) ? he.flags |= 4 : Oe.hydrate || (he.flags |= 256)), null;
|
|
32241
32241
|
case 5:
|
|
32242
32242
|
Op(he);
|
|
32243
|
-
var et = Fs(
|
|
32243
|
+
var et = Fs(Uc.current);
|
|
32244
32244
|
if (Ae = he.type, ae !== null && he.stateNode != null)
|
|
32245
32245
|
I_(ae, he, Ae, Oe), ae.ref !== he.ref && (he.flags |= 128);
|
|
32246
32246
|
else {
|
|
@@ -32375,11 +32375,11 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32375
32375
|
else {
|
|
32376
32376
|
if (typeof Oe != "string" && he.stateNode === null)
|
|
32377
32377
|
throw Error(r(166));
|
|
32378
|
-
Ae = Fs(
|
|
32378
|
+
Ae = Fs(Uc.current), Fs(ea.current), gd(he) ? (Oe = he.stateNode, Ae = he.memoizedProps, Oe[Va] = he, Oe.nodeValue !== Ae && (he.flags |= 4)) : ((Oe = (Ae.nodeType === 9 ? Ae : Ae.ownerDocument).createTextNode(Oe))[Va] = he).stateNode = Oe;
|
|
32379
32379
|
}
|
|
32380
32380
|
return null;
|
|
32381
32381
|
case 13:
|
|
32382
|
-
return Lr(Yr), Oe = he.memoizedState, 64 & he.flags ? (he.lanes = Ae, he) : (Oe = Oe !== null, Ae = !1, ae === null ? he.memoizedProps.fallback !== void 0 && gd(he) : Ae = ae.memoizedState !== null, Oe && !Ae && 2 & he.mode && (ae === null && he.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Yr.current ? bo === 0 && (bo = 3) : (bo !== 0 && bo !== 3 || (bo = 4), Ro === null || !(134217727 &
|
|
32382
|
+
return Lr(Yr), Oe = he.memoizedState, 64 & he.flags ? (he.lanes = Ae, he) : (Oe = Oe !== null, Ae = !1, ae === null ? he.memoizedProps.fallback !== void 0 && gd(he) : Ae = ae.memoizedState !== null, Oe && !Ae && 2 & he.mode && (ae === null && he.memoizedProps.unstable_avoidThisFallback !== !0 || 1 & Yr.current ? bo === 0 && (bo = 3) : (bo !== 0 && bo !== 3 || (bo = 4), Ro === null || !(134217727 & Yc) && !(134217727 & Tl) || Al(Ro, To))), (Oe || Ae) && (he.flags |= 4), null);
|
|
32383
32383
|
case 4:
|
|
32384
32384
|
return El(), ae === null && St(he.stateNode.containerInfo), null;
|
|
32385
32385
|
case 10:
|
|
@@ -32389,26 +32389,26 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32389
32389
|
return null;
|
|
32390
32390
|
if (Lt = !!(64 & he.flags), (zt = Oe.rendering) === null)
|
|
32391
32391
|
if (Lt)
|
|
32392
|
-
|
|
32392
|
+
Gc(Oe, !1);
|
|
32393
32393
|
else {
|
|
32394
32394
|
if (bo !== 0 || ae !== null && 64 & ae.flags)
|
|
32395
32395
|
for (ae = he.child; ae !== null; ) {
|
|
32396
32396
|
if ((zt = hd(ae)) !== null) {
|
|
32397
|
-
for (he.flags |= 64,
|
|
32397
|
+
for (he.flags |= 64, Gc(Oe, !1), (Lt = zt.updateQueue) !== null && (he.updateQueue = Lt, he.flags |= 4), Oe.lastEffect === null && (he.firstEffect = null), he.lastEffect = Oe.lastEffect, Oe = Ae, Ae = he.child; Ae !== null; )
|
|
32398
32398
|
ae = Oe, (Lt = Ae).flags &= 2, Lt.nextEffect = null, Lt.firstEffect = null, (Lt.lastEffect = null) === (zt = Lt.alternate) ? (Lt.childLanes = 0, Lt.lanes = ae, Lt.child = null, Lt.memoizedProps = null, Lt.memoizedState = null, Lt.updateQueue = null, Lt.dependencies = null, Lt.stateNode = null) : (Lt.childLanes = zt.childLanes, Lt.lanes = zt.lanes, Lt.child = zt.child, Lt.memoizedProps = zt.memoizedProps, Lt.memoizedState = zt.memoizedState, Lt.updateQueue = zt.updateQueue, Lt.type = zt.type, ae = zt.dependencies, Lt.dependencies = ae === null ? null : { lanes: ae.lanes, firstContext: ae.firstContext }), Ae = Ae.sibling;
|
|
32399
32399
|
return Wr(Yr, 1 & Yr.current | 2), he.child;
|
|
32400
32400
|
}
|
|
32401
32401
|
ae = ae.sibling;
|
|
32402
32402
|
}
|
|
32403
|
-
Oe.tail !== null && Oo() > Kp && (he.flags |= 64,
|
|
32403
|
+
Oe.tail !== null && Oo() > Kp && (he.flags |= 64, Gc(Oe, !(Lt = !0)), he.lanes = 33554432);
|
|
32404
32404
|
}
|
|
32405
32405
|
else {
|
|
32406
32406
|
if (!Lt)
|
|
32407
32407
|
if ((ae = hd(zt)) !== null) {
|
|
32408
|
-
if (he.flags |= 64, Lt = !0, (Ae = ae.updateQueue) !== null && (he.updateQueue = Ae, he.flags |= 4),
|
|
32408
|
+
if (he.flags |= 64, Lt = !0, (Ae = ae.updateQueue) !== null && (he.updateQueue = Ae, he.flags |= 4), Gc(Oe, !0), Oe.tail === null && Oe.tailMode === "hidden" && !zt.alternate && !ta)
|
|
32409
32409
|
return (he = he.lastEffect = Oe.lastEffect) !== null && (he.nextEffect = null), null;
|
|
32410
32410
|
} else
|
|
32411
|
-
2 * Oo() - Oe.renderingStartTime > Kp && Ae !== 1073741824 && (he.flags |= 64,
|
|
32411
|
+
2 * Oo() - Oe.renderingStartTime > Kp && Ae !== 1073741824 && (he.flags |= 64, Gc(Oe, !(Lt = !0)), he.lanes = 33554432);
|
|
32412
32412
|
Oe.isBackwards ? (zt.sibling = he.child, he.child = zt) : ((Ae = Oe.last) !== null ? Ae.sibling = zt : he.child = zt, Oe.last = zt);
|
|
32413
32413
|
}
|
|
32414
32414
|
return Oe.tail !== null ? (Ae = Oe.tail, Oe.rendering = Ae, Oe.tail = Ae.sibling, Oe.lastEffect = he.lastEffect, Oe.renderingStartTime = Oo(), Ae.sibling = null, he = Yr.current, Wr(Yr, Lt ? 1 & he | 2 : 1 & he), Ae) : null;
|
|
@@ -32434,7 +32434,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32434
32434
|
function Nl(T) {
|
|
32435
32435
|
var P = xl();
|
|
32436
32436
|
return Bs(99, (function(V, re) {
|
|
32437
|
-
for (; rs(),
|
|
32437
|
+
for (; rs(), Zc !== null; )
|
|
32438
32438
|
;
|
|
32439
32439
|
if (48 & Kn)
|
|
32440
32440
|
throw Error(r(327));
|
|
@@ -32483,12 +32483,12 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32483
32483
|
et = et || { start: 0, end: 0 };
|
|
32484
32484
|
} else
|
|
32485
32485
|
et = null;
|
|
32486
|
-
|
|
32486
|
+
eu = null, Od = $a = !(Tn = { focusedElem: Oe, selectionRange: et }), xn = ae;
|
|
32487
32487
|
do
|
|
32488
32488
|
try {
|
|
32489
32489
|
(() => {
|
|
32490
32490
|
for (; xn !== null; ) {
|
|
32491
|
-
var qn = xn.alternate, er = (Od ||
|
|
32491
|
+
var qn = xn.alternate, er = (Od || eu === null || (8 & xn.flags ? Ke(xn, eu) && (Od = !0) : xn.tag === 13 && ((Wn, Vr) => Wn !== null && ((Wn = Wn.memoizedState) === null || Wn.dehydrated !== null) && (Vr = Vr.memoizedState) !== null && Vr.dehydrated === null)(qn, xn) && Ke(xn, eu) && (Od = !0)), xn.flags);
|
|
32492
32492
|
256 & er && ((Wn, Vr) => {
|
|
32493
32493
|
switch (Vr.tag) {
|
|
32494
32494
|
case 0:
|
|
@@ -32507,7 +32507,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32507
32507
|
return 256 & Vr.flags && Go(Vr.stateNode.containerInfo);
|
|
32508
32508
|
}
|
|
32509
32509
|
throw Error(r(163));
|
|
32510
|
-
})(qn, xn), !(512 & er) || Xa || (Xa = !0,
|
|
32510
|
+
})(qn, xn), !(512 & er) || Xa || (Xa = !0, Lc(97, function() {
|
|
32511
32511
|
return rs(), null;
|
|
32512
32512
|
})), xn = xn.nextEffect;
|
|
32513
32513
|
}
|
|
@@ -32518,7 +32518,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32518
32518
|
os(xn, qn), xn = xn.nextEffect;
|
|
32519
32519
|
}
|
|
32520
32520
|
while (xn !== null);
|
|
32521
|
-
|
|
32521
|
+
eu = null, xn = ae;
|
|
32522
32522
|
do
|
|
32523
32523
|
try {
|
|
32524
32524
|
for (Oe = V; xn !== null; ) {
|
|
@@ -32577,11 +32577,11 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32577
32577
|
} else
|
|
32578
32578
|
V.current = oe;
|
|
32579
32579
|
if (Xa)
|
|
32580
|
-
Xa = !1,
|
|
32580
|
+
Xa = !1, Zc = V, Qc = re;
|
|
32581
32581
|
else
|
|
32582
32582
|
for (xn = ae; xn !== null; )
|
|
32583
32583
|
re = xn.nextEffect, xn.nextEffect = null, 8 & xn.flags && ((Hn = xn).sibling = null, Hn.stateNode = null), xn = re;
|
|
32584
|
-
if ((ae = V.pendingLanes) === 0 && (ra = null), ae === 1 ? V === Qp ?
|
|
32584
|
+
if ((ae = V.pendingLanes) === 0 && (ra = null), ae === 1 ? V === Qp ? Xc++ : (Xc = 0, Qp = V) : Xc = 0, oe = oe.stateNode, Ls && typeof Ls.onCommitFiberRoot == "function")
|
|
32585
32585
|
try {
|
|
32586
32586
|
Ls.onCommitFiberRoot(gp, oe, void 0, !(64 & ~oe.current.flags));
|
|
32587
32587
|
} catch {
|
|
@@ -32595,18 +32595,18 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32595
32595
|
}
|
|
32596
32596
|
function rs() {
|
|
32597
32597
|
var T;
|
|
32598
|
-
return
|
|
32598
|
+
return Qc !== 90 && (T = 97 < Qc ? 97 : Qc, Qc = 90, Bs(T, F_));
|
|
32599
32599
|
}
|
|
32600
32600
|
function Iy(T, P) {
|
|
32601
|
-
Zp.push(P, T), Xa || (Xa = !0,
|
|
32601
|
+
Zp.push(P, T), Xa || (Xa = !0, Lc(97, function() {
|
|
32602
32602
|
return rs(), null;
|
|
32603
32603
|
}));
|
|
32604
32604
|
}
|
|
32605
32605
|
function F_() {
|
|
32606
|
-
if (
|
|
32606
|
+
if (Zc === null)
|
|
32607
32607
|
return !1;
|
|
32608
|
-
var T =
|
|
32609
|
-
if (
|
|
32608
|
+
var T = Zc;
|
|
32609
|
+
if (Zc = null, 48 & Kn)
|
|
32610
32610
|
throw Error(r(331));
|
|
32611
32611
|
var P = Kn, V = (Kn |= 32, Zp);
|
|
32612
32612
|
Zp = [];
|
|
@@ -32802,7 +32802,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32802
32802
|
}
|
|
32803
32803
|
this._internalRoot = V;
|
|
32804
32804
|
}
|
|
32805
|
-
function
|
|
32805
|
+
function nu(T) {
|
|
32806
32806
|
return T && (T.nodeType === 1 || T.nodeType === 9 || T.nodeType === 11 || T.nodeType === 8 && T.nodeValue === " react-mount-point-unstable ");
|
|
32807
32807
|
}
|
|
32808
32808
|
function Nd(T, P, V, re, oe) {
|
|
@@ -32823,7 +32823,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32823
32823
|
})), ih(Ae);
|
|
32824
32824
|
}
|
|
32825
32825
|
function Dy(T, P) {
|
|
32826
|
-
if (
|
|
32826
|
+
if (nu(P))
|
|
32827
32827
|
return function(V, re, oe, ae) {
|
|
32828
32828
|
return { $$typeof: I, key: (ae = 3 < arguments.length && ae !== void 0 ? ae : null) == null ? null : "" + ae, children: V, containerInfo: re, implementation: oe };
|
|
32829
32829
|
}(T, P, null, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null);
|
|
@@ -32918,7 +32918,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
32918
32918
|
case 3:
|
|
32919
32919
|
if (uy(P), re = P.updateQueue, T === null || re === null)
|
|
32920
32920
|
throw Error(r(282));
|
|
32921
|
-
if (re = P.pendingProps, oe = (oe = P.memoizedState) !== null ? oe.element : null, Rm(T, P),
|
|
32921
|
+
if (re = P.pendingProps, oe = (oe = P.memoizedState) !== null ? oe.element : null, Rm(T, P), Bc(P, re, null, V), (re = P.memoizedState.element) === oe)
|
|
32922
32922
|
kp(), P = _a(T, P, V);
|
|
32923
32923
|
else {
|
|
32924
32924
|
if ((ae = (oe = P.stateNode).hydrate) && (Qa = si(P.stateNode.containerInfo.firstChild), va = P, ae = ta = !0), ae) {
|
|
@@ -33059,7 +33059,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
33059
33059
|
} finally {
|
|
33060
33060
|
(Kn = V) === 0 && (kl(), Xi());
|
|
33061
33061
|
}
|
|
33062
|
-
}, yr = { Events: [
|
|
33062
|
+
}, yr = { Events: [Rc, vl, nd, Nt, ct, rs, { current: !(ve = function() {
|
|
33063
33063
|
var T;
|
|
33064
33064
|
!(49 & Kn) && (xa !== null && (T = xa, xa = null, T.forEach(function(P) {
|
|
33065
33065
|
P.expiredLanes |= 24 & P.pendingLanes, bi(P, Oo());
|
|
@@ -33095,15 +33095,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
33095
33095
|
Kn = V, Xi();
|
|
33096
33096
|
}
|
|
33097
33097
|
}, n.hydrate = function(T, P, V) {
|
|
33098
|
-
if (
|
|
33098
|
+
if (nu(P))
|
|
33099
33099
|
return Nd(null, T, P, !0, V);
|
|
33100
33100
|
throw Error(r(200));
|
|
33101
33101
|
}, n.render = function(T, P, V) {
|
|
33102
|
-
if (
|
|
33102
|
+
if (nu(P))
|
|
33103
33103
|
return Nd(null, T, P, !1, V);
|
|
33104
33104
|
throw Error(r(200));
|
|
33105
33105
|
}, n.unmountComponentAtNode = function(T) {
|
|
33106
|
-
if (
|
|
33106
|
+
if (nu(T))
|
|
33107
33107
|
return !!T._reactRootContainer && (ky(function() {
|
|
33108
33108
|
Nd(null, null, T, !1, function() {
|
|
33109
33109
|
T._reactRootContainer = null, T[bl] = null;
|
|
@@ -33113,7 +33113,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
33113
33113
|
}, n.unstable_batchedUpdates = Ty, n.unstable_createPortal = function(T, P) {
|
|
33114
33114
|
return Dy(T, P, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null);
|
|
33115
33115
|
}, n.unstable_renderSubtreeIntoContainer = function(T, P, V, re) {
|
|
33116
|
-
if (!
|
|
33116
|
+
if (!nu(V))
|
|
33117
33117
|
throw Error(r(200));
|
|
33118
33118
|
if (T == null || T._reactInternals === void 0)
|
|
33119
33119
|
throw Error(r(38));
|
|
@@ -48879,7 +48879,7 @@ var t2 = (y) => {
|
|
|
48879
48879
|
var i = {};
|
|
48880
48880
|
return Pn.d(i, y), i;
|
|
48881
48881
|
};
|
|
48882
|
-
const Bt = t2({ $addUpdateTag: () => Ax, $createNodeSelection: () => Of, $createParagraphNode: () => gr, $createRangeSelection: () =>
|
|
48882
|
+
const Bt = t2({ $addUpdateTag: () => Ax, $createNodeSelection: () => Of, $createParagraphNode: () => gr, $createRangeSelection: () => wc, $getNodeByKey: () => Ar, $getRoot: () => Er, $getSelection: () => It, $isDecoratorNode: () => ur, $isElementNode: () => At, $isLineBreakNode: () => bs, $isNodeSelection: () => Jr, $isParagraphNode: () => Pa, $isRangeSelection: () => kt, $isTextNode: () => qt, $nodesOfType: () => Vg, $setSelection: () => Sr, CAN_REDO_COMMAND: () => rc, CAN_UNDO_COMMAND: () => oc, CLEAR_EDITOR_COMMAND: () => Ag, COMMAND_PRIORITY_CRITICAL: () => wi, COMMAND_PRIORITY_EDITOR: () => Nn, CUT_COMMAND: () => qu, DecoratorNode: () => Cc, ElementNode: () => Ti, KEY_BACKSPACE_COMMAND: () => Ma, KEY_DELETE_COMMAND: () => sl, KEY_ESCAPE_COMMAND: () => vc, LineBreakNode: () => xc, PASTE_COMMAND: () => al, ParagraphNode: () => ll, REDO_COMMAND: () => Du, RootNode: () => Oc, TextNode: () => pa, UNDO_COMMAND: () => Ru, createCommand: () => fa, createEditor: () => tp });
|
|
48883
48883
|
var n2 = (y) => {
|
|
48884
48884
|
var i = {};
|
|
48885
48885
|
return Pn.d(i, y), i;
|
|
@@ -48946,7 +48946,7 @@ function S2() {
|
|
|
48946
48946
|
let y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
48947
48947
|
return y && _2[y] || 0;
|
|
48948
48948
|
}
|
|
48949
|
-
function
|
|
48949
|
+
function hu(y) {
|
|
48950
48950
|
return `__${y}`;
|
|
48951
48951
|
}
|
|
48952
48952
|
function mg(y) {
|
|
@@ -48969,7 +48969,7 @@ class E2 {
|
|
|
48969
48969
|
this.subscribers = {};
|
|
48970
48970
|
}
|
|
48971
48971
|
}
|
|
48972
|
-
const G1 = E2, Ei = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, C2 = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, di = { created: "created", updated: "updated", destroyed: "destroyed" }, ss = { text: "text", element: "element", whitelist: ["text", "element"] }, ko = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, vb = [ko.mousemove, ko.mouseover, ko.mouseout], Lf = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, yg = { local: "local", remote: "remote" }, Ks = { editorState: "editorState", root: "root" }, ls = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 },
|
|
48972
|
+
const G1 = E2, Ei = { historic: "historic", historyMerge: "history-merge", historyPush: "history-push" }, C2 = { paste: "application/x-lexical-editor", drag: "application/x-lexical-drag", dragBlock: "application/x-lexical-drag-block", plainText: "text/plain" }, di = { created: "created", updated: "updated", destroyed: "destroyed" }, ss = { text: "text", element: "element", whitelist: ["text", "element"] }, ko = { mouseover: "mouseover", mouseout: "mouseout", mousemove: "mousemove", keypress: "keypress", keyup: "keyup", resize: "resize", scroll: "scroll" }, vb = [ko.mousemove, ko.mouseover, ko.mouseout], Lf = { text: "text", linebreak: "linebreak", horizontalrule: "horizontalrule" }, yg = { local: "local", remote: "remote" }, Ks = { editorState: "editorState", root: "root" }, ls = { BOTH: 3, COLUMN: 2, NO_STATUS: 0, ROW: 1 }, gu = "codox_comments_change", _b = { horizontalrule: ["table", "image", "inline-image", "sticky"], "page-break": ["image", "inline-image", "table", "sticky"], "collapsible-container": ["table", "image", "inline-image", "collapsible-container", "sticky"], "layout-container": ["table", "image", "inline-image", "layout-container", "sticky"], image: ["image", "inline-image", "sticky"], "inline-image": ["image", "inline-image", "sticky"], table: ["image", "inline-image", "table", "sticky"], poll: ["image", "inline-image", "sticky"], excalidraw: ["image", "inline-image", "sticky"] }, O2 = "Invalid state - forbidden content nesting found", xb = { local: "local", remote: "remote" };
|
|
48973
48973
|
function wb(y, i) {
|
|
48974
48974
|
var p = Object.keys(y);
|
|
48975
48975
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -49059,7 +49059,7 @@ class cn {
|
|
|
49059
49059
|
}
|
|
49060
49060
|
if (!d)
|
|
49061
49061
|
return Tt.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Lexical node with nested editor not found in codox nodes map - selection will be dropped", { jsonSelection: i, targetNodeCodoxId: r }), p;
|
|
49062
|
-
let s =
|
|
49062
|
+
let s = hu(a), u = d[s];
|
|
49063
49063
|
return Wt.isLexicalEditorInstance(u) ? (p.nestedSelectionJSON = Sb(Sb({}, i), {}, { anchor: { codoxId: c, offset: i.anchor.offset }, focus: { codoxId: t, offset: i.focus.offset } }), p.nestedEditor = u, p) : (Tt.debug("[getNestedSelectionJSONFromMainSelectionJSON]: Found nested editor is not LexicalEditor instance", { jsonSelection: i, targetLexicalNode: d, targetLexicalNodeAttrName: s, nestedEditorCandidate: u }), p);
|
|
49064
49064
|
}
|
|
49065
49065
|
static getNodeAncestorsCodoxIds(i) {
|
|
@@ -49563,7 +49563,7 @@ var D2 = (y) => {
|
|
|
49563
49563
|
var i = {};
|
|
49564
49564
|
return Pn.d(i, y), i;
|
|
49565
49565
|
};
|
|
49566
|
-
const
|
|
49566
|
+
const mc = D2({ mergeRegister: () => ro, registerNestedElementResolver: () => vw });
|
|
49567
49567
|
var L2 = Pn(967), ia = Pn.n(L2), B2 = Object.getOwnPropertyNames, F2 = Object.getOwnPropertySymbols, z2 = Object.prototype.hasOwnProperty;
|
|
49568
49568
|
function Ob(y, i) {
|
|
49569
49569
|
return function(p, e, c) {
|
|
@@ -49588,7 +49588,7 @@ function Tb(y) {
|
|
|
49588
49588
|
var Y1 = Object.hasOwn || function(y, i) {
|
|
49589
49589
|
return z2.call(y, i);
|
|
49590
49590
|
};
|
|
49591
|
-
function
|
|
49591
|
+
function jc(y, i) {
|
|
49592
49592
|
return y || i ? y === i : y === i || y != y && i != i;
|
|
49593
49593
|
}
|
|
49594
49594
|
var Z1 = "_owner", kb = Object.getOwnPropertyDescriptor, Ab = Object.keys;
|
|
@@ -49602,7 +49602,7 @@ function $2(y, i, p) {
|
|
|
49602
49602
|
return !0;
|
|
49603
49603
|
}
|
|
49604
49604
|
function U2(y, i) {
|
|
49605
|
-
return
|
|
49605
|
+
return jc(y.getTime(), i.getTime());
|
|
49606
49606
|
}
|
|
49607
49607
|
function jb(y, i, p) {
|
|
49608
49608
|
if (y.size !== i.size)
|
|
@@ -49627,7 +49627,7 @@ function H2(y, i, p) {
|
|
|
49627
49627
|
return !1;
|
|
49628
49628
|
return !0;
|
|
49629
49629
|
}
|
|
49630
|
-
function
|
|
49630
|
+
function uu(y, i, p) {
|
|
49631
49631
|
var e, c, n, t = Tb(y), o = t.length;
|
|
49632
49632
|
if (Tb(i).length !== o)
|
|
49633
49633
|
return !1;
|
|
@@ -49637,7 +49637,7 @@ function cu(y, i, p) {
|
|
|
49637
49637
|
return !0;
|
|
49638
49638
|
}
|
|
49639
49639
|
function q2(y, i) {
|
|
49640
|
-
return
|
|
49640
|
+
return jc(y.valueOf(), i.valueOf());
|
|
49641
49641
|
}
|
|
49642
49642
|
function W2(y, i) {
|
|
49643
49643
|
return y.source === i.source && y.flags === i.flags;
|
|
@@ -49692,7 +49692,7 @@ function oO(y) {
|
|
|
49692
49692
|
};
|
|
49693
49693
|
}
|
|
49694
49694
|
function iO(y) {
|
|
49695
|
-
var i = y.circular, p = y.createCustomConfig, e = y.strict, c = { areArraysEqual: e ?
|
|
49695
|
+
var i = y.circular, p = y.createCustomConfig, e = y.strict, c = { areArraysEqual: e ? uu : $2, areDatesEqual: U2, areMapsEqual: e ? Ob(jb, uu) : jb, areObjectsEqual: e ? uu : H2, arePrimitiveWrappersEqual: q2, areRegExpsEqual: W2, areSetsEqual: e ? Ob(Nb, uu) : Nb, areTypedArraysEqual: e ? uu : V2 };
|
|
49696
49696
|
if (p && (c = Ib({}, c, p(c))), i) {
|
|
49697
49697
|
var n = Hd(c.areArraysEqual), t = Hd(c.areMapsEqual), o = Hd(c.areObjectsEqual), a = Hd(c.areSetsEqual);
|
|
49698
49698
|
c = Ib({}, c, { areArraysEqual: n, areMapsEqual: t, areObjectsEqual: o, areSetsEqual: a });
|
|
@@ -49725,16 +49725,16 @@ ks({ strict: !0 });
|
|
|
49725
49725
|
ks({ circular: !0 });
|
|
49726
49726
|
ks({ circular: !0, strict: !0 });
|
|
49727
49727
|
ks({ createInternalComparator: function() {
|
|
49728
|
-
return
|
|
49728
|
+
return jc;
|
|
49729
49729
|
} });
|
|
49730
49730
|
ks({ strict: !0, createInternalComparator: function() {
|
|
49731
|
-
return
|
|
49731
|
+
return jc;
|
|
49732
49732
|
} });
|
|
49733
49733
|
ks({ circular: !0, createInternalComparator: function() {
|
|
49734
|
-
return
|
|
49734
|
+
return jc;
|
|
49735
49735
|
} });
|
|
49736
49736
|
ks({ circular: !0, createInternalComparator: function() {
|
|
49737
|
-
return
|
|
49737
|
+
return jc;
|
|
49738
49738
|
}, strict: !0 });
|
|
49739
49739
|
function ks(y) {
|
|
49740
49740
|
y === void 0 && (y = {});
|
|
@@ -50191,7 +50191,7 @@ function EO(y) {
|
|
|
50191
50191
|
let l = e.slice(0, a), f = y;
|
|
50192
50192
|
for (const h of l)
|
|
50193
50193
|
f = f[h];
|
|
50194
|
-
let m =
|
|
50194
|
+
let m = hu(e[s]);
|
|
50195
50195
|
Db(u.getWritable()[m], f);
|
|
50196
50196
|
}
|
|
50197
50197
|
} else {
|
|
@@ -50292,12 +50292,12 @@ function EO(y) {
|
|
|
50292
50292
|
if (u) {
|
|
50293
50293
|
let h = Object.keys(u);
|
|
50294
50294
|
for (let v of h)
|
|
50295
|
-
m[
|
|
50295
|
+
m[hu(v)] = u[v];
|
|
50296
50296
|
}
|
|
50297
50297
|
if (l) {
|
|
50298
50298
|
let h = Object.keys(l);
|
|
50299
50299
|
for (let v of h)
|
|
50300
|
-
delete m[
|
|
50300
|
+
delete m[hu(v)];
|
|
50301
50301
|
}
|
|
50302
50302
|
} catch (m) {
|
|
50303
50303
|
Tt.debug("[applyDeltasToLexicalState][delta oi/od] getWritable error: ", { err: m, delta: p });
|
|
@@ -50313,7 +50313,7 @@ function EO(y) {
|
|
|
50313
50313
|
}
|
|
50314
50314
|
if (o) {
|
|
50315
50315
|
const s = e[e.length - 1];
|
|
50316
|
-
let u =
|
|
50316
|
+
let u = hu(s);
|
|
50317
50317
|
e.length = e.length - 1;
|
|
50318
50318
|
let l, f = Vs(e, y);
|
|
50319
50319
|
if (!f) {
|
|
@@ -50520,7 +50520,7 @@ class PO {
|
|
|
50520
50520
|
});
|
|
50521
50521
|
n.push(u);
|
|
50522
50522
|
});
|
|
50523
|
-
let t = (0,
|
|
50523
|
+
let t = (0, mc.mergeRegister)(e.registerUpdateListener(c), ...n), o = i.getKey();
|
|
50524
50524
|
this.nestedEditorsListenersMap[o] = t;
|
|
50525
50525
|
}
|
|
50526
50526
|
}
|
|
@@ -50902,7 +50902,7 @@ const HO = (0, pt.forwardRef)((y, i) => {
|
|
|
50902
50902
|
if (Tt.debug("[INIT] lexical context check: ", { lexicalContext: e, editor: c }), !c)
|
|
50903
50903
|
return;
|
|
50904
50904
|
Tt.log("[useEffect][editor] Editor instance changed: ", { editor: c, key: c._key }), Wt.setMainEditor(c), kr.gcAbandonedNodes(), ka.gc(), aa.clear(), Tt.log("[useEffect][editor] subscribe to editor changes");
|
|
50905
|
-
const _ = (0,
|
|
50905
|
+
const _ = (0, mc.mergeRegister)(c.registerUpdateListener(m), c.registerCommand(Bt.PASTE_COMMAND, CO, Bt.COMMAND_PRIORITY_CRITICAL), c.registerCommand(Bt.UNDO_COMMAND, () => {
|
|
50906
50906
|
Wt.setUndoInvoked(!0);
|
|
50907
50907
|
}, Bt.COMMAND_PRIORITY_CRITICAL), c.registerCommand(Bt.REDO_COMMAND, () => {
|
|
50908
50908
|
Wt.setRedoInvoked(!0);
|
|
@@ -51048,7 +51048,7 @@ const HO = (0, pt.forwardRef)((y, i) => {
|
|
|
51048
51048
|
if (!aa.ensureDocTablesAreValid(b))
|
|
51049
51049
|
return;
|
|
51050
51050
|
qd++, Tt.log("[editorUpdatesListener] invoked by lexical. call counter: ", { upd_call_counter: qd, isCodoxStarted: Wt.isCodoxStarted });
|
|
51051
|
-
let w = Wt.isOnlySelectionChanged(x, g), C = null, I = null, M = null, F = null, N = E.has("codox_sync_state_changes"), R = E.has(
|
|
51051
|
+
let w = Wt.isOnlySelectionChanged(x, g), C = null, I = null, M = null, F = null, N = E.has("codox_sync_state_changes"), R = E.has(gu), j = Wt.undoInvoked(), O = Wt.redoInvoked(), A = Wt.canUndo(), D = Wt.canRedo();
|
|
51052
51052
|
C = b.toJSON(), I = S.toJSON(), S.read(() => {
|
|
51053
51053
|
F = cn.lexicalToJSON(S._selection);
|
|
51054
51054
|
}), b.read(() => {
|
|
@@ -51431,7 +51431,7 @@ function rT(y, i) {
|
|
|
51431
51431
|
return (i === "string" ? String : Number)(y);
|
|
51432
51432
|
}
|
|
51433
51433
|
const mm = () => d2(), n_ = (y) => typeof y == "number";
|
|
51434
|
-
function
|
|
51434
|
+
function Nc(y) {
|
|
51435
51435
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
51436
51436
|
const p = function() {
|
|
51437
51437
|
for (var e = arguments.length, c = new Array(e), n = 0; n < e; n++)
|
|
@@ -51453,7 +51453,7 @@ const el = (y) => y.__type === "root" || y.type === "root", $b = (y) => el(y.get
|
|
|
51453
51453
|
}, o_ = (y) => {
|
|
51454
51454
|
const i = kr.get(y.codoxId);
|
|
51455
51455
|
return !i || y.__key === i.__key;
|
|
51456
|
-
},
|
|
51456
|
+
}, fc = function(y) {
|
|
51457
51457
|
const i = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null) || mm();
|
|
51458
51458
|
y.codoxId = i, kr.add(i, y);
|
|
51459
51459
|
}, i_ = (y) => {
|
|
@@ -51468,7 +51468,7 @@ const el = (y) => y.__type === "root" || y.type === "root", $b = (y) => el(y.get
|
|
|
51468
51468
|
for (let c of i)
|
|
51469
51469
|
(fs(c) || _r(c) || Su(c) || Eu(c)) && !p && (wg(c) || (p = !0)), (Ub(c) || _r(c)) && e.push(c);
|
|
51470
51470
|
for (let c of e)
|
|
51471
|
-
p || c.codoxId ? p && c.codoxId && (c = c.getWritable(), i_(c)) : (c = c.getWritable(),
|
|
51471
|
+
p || c.codoxId ? p && c.codoxId && (c = c.getWritable(), i_(c)) : (c = c.getWritable(), fc(c));
|
|
51472
51472
|
}, aT = (y) => {
|
|
51473
51473
|
const i = t_({}, y);
|
|
51474
51474
|
for (const p in y)
|
|
@@ -51476,15 +51476,15 @@ const el = (y) => y.__type === "root" || y.type === "root", $b = (y) => el(y.get
|
|
|
51476
51476
|
return i;
|
|
51477
51477
|
}, sT = (y) => {
|
|
51478
51478
|
const i = `__nativeCreateDOM_${y.name}`;
|
|
51479
|
-
y.prototype[i] =
|
|
51479
|
+
y.prototype[i] = Nc(y.prototype.createDOM, i), y.prototype.createDOM = function(p, e) {
|
|
51480
51480
|
if (r_(this))
|
|
51481
51481
|
if (this.codoxId) {
|
|
51482
51482
|
if (!o_(this)) {
|
|
51483
51483
|
let n = kr.get(this.codoxId);
|
|
51484
|
-
n.__type === this.__type && this.isAttached() && !n.isAttached() ? (Tt.warn("[createDOM][Non-unique codoxId] overwrite abandoned existing node with latest: ", { latestNode: this, existingNode: n }), kr.add(this.codoxId, this)) :
|
|
51484
|
+
n.__type === this.__type && this.isAttached() && !n.isAttached() ? (Tt.warn("[createDOM][Non-unique codoxId] overwrite abandoned existing node with latest: ", { latestNode: this, existingNode: n }), kr.add(this.codoxId, this)) : fc(this);
|
|
51485
51485
|
}
|
|
51486
51486
|
} else
|
|
51487
|
-
|
|
51487
|
+
fc(this);
|
|
51488
51488
|
else
|
|
51489
51489
|
this.codoxId && i_(this);
|
|
51490
51490
|
_r(this) && !this.codoxDId && (this.codoxDId = mm()), ka.manageNestedEditorInLexicalNode(this);
|
|
@@ -51493,35 +51493,35 @@ const el = (y) => y.__type === "root" || y.type === "root", $b = (y) => el(y.get
|
|
|
51493
51493
|
};
|
|
51494
51494
|
}, lT = (y) => {
|
|
51495
51495
|
const i = `__nativeUpdateDOM_${y.name}`;
|
|
51496
|
-
return y.prototype[i] =
|
|
51496
|
+
return y.prototype[i] = Nc(y.prototype.updateDOM, i), y.prototype.updateDOM = function() {
|
|
51497
51497
|
const p = this[i](...arguments);
|
|
51498
51498
|
return iT(this), p;
|
|
51499
51499
|
}, y;
|
|
51500
51500
|
}, cT = (y) => {
|
|
51501
51501
|
const i = `__nativeRemove_${y.name}`;
|
|
51502
|
-
return y.prototype[i] =
|
|
51502
|
+
return y.prototype[i] = Nc(y.prototype.remove, i), y.prototype.remove = function() {
|
|
51503
51503
|
const p = this.codoxId;
|
|
51504
51504
|
return p && kr.remove(p), ka.gcNestedEditorListenerInLexicalNode(this), this[i](...arguments);
|
|
51505
51505
|
}, y;
|
|
51506
51506
|
}, uT = (y) => {
|
|
51507
51507
|
const i = `__nativeExportJSON_${y.name}`;
|
|
51508
|
-
y.prototype[i] =
|
|
51508
|
+
y.prototype[i] = Nc(y.prototype.exportJSON, i), y.prototype.exportJSON = function() {
|
|
51509
51509
|
const p = this[i]();
|
|
51510
51510
|
return this.codoxId && (p.codoxId = this.codoxId), this.codoxDId && (p.codoxDId = this.codoxDId), $r(this) && n_(p.format) && this.hasFormat && (p.format = w2(this)), aT(p);
|
|
51511
51511
|
};
|
|
51512
51512
|
}, dT = (y) => {
|
|
51513
51513
|
const i = "__nativeImportJSON";
|
|
51514
|
-
y[i] =
|
|
51514
|
+
y[i] = Nc(y.importJSON, i), y.importJSON = function(p) {
|
|
51515
51515
|
const e = t_({}, p);
|
|
51516
51516
|
$r(e) && !n_(e.format) && (e.format = x2(e.format));
|
|
51517
51517
|
const c = y[i](e);
|
|
51518
51518
|
ka.manageNestedEditorInLexicalNode(c);
|
|
51519
51519
|
const n = r_(c);
|
|
51520
|
-
return n && e.codoxId && (kr.hasPastedId(e.codoxId) && kr.has(e.codoxId) ? (kr.removePastedId(e.codoxId),
|
|
51520
|
+
return n && e.codoxId && (kr.hasPastedId(e.codoxId) && kr.has(e.codoxId) ? (kr.removePastedId(e.codoxId), fc(c)) : fc(c, e.codoxId)), n && !c.codoxId && fc(c), e.codoxDId && (c.codoxDId = e.codoxDId), c;
|
|
51521
51521
|
};
|
|
51522
51522
|
}, fT = (y) => {
|
|
51523
51523
|
const i = "__nativeClone";
|
|
51524
|
-
y[i] =
|
|
51524
|
+
y[i] = Nc(y.clone, i), y.clone = function(p) {
|
|
51525
51525
|
const e = y[i](p);
|
|
51526
51526
|
return p.codoxId && (e.codoxId = p.codoxId), p.codoxDId && (e.codoxDId = p.codoxDId), ka.manageNestedEditorInClonedLexicalNode(p, e), e;
|
|
51527
51527
|
};
|
|
@@ -51855,7 +51855,7 @@ function XT(y) {
|
|
|
51855
51855
|
_ ? _.forEach((b, S) => {
|
|
51856
51856
|
const E = (0, Bt.$getNodeByKey)(S);
|
|
51857
51857
|
Tt.log("[deleteCommentOrThread]: type comment new values", { lexicalNode: E }), E && E.markDirty();
|
|
51858
|
-
}) : (0, Bt.$getRoot)().markDirty(), (0, Bt.$addUpdateTag)(Ei.historic), (0, Bt.$addUpdateTag)(
|
|
51858
|
+
}) : (0, Bt.$getRoot)().markDirty(), (0, Bt.$addUpdateTag)(Ei.historic), (0, Bt.$addUpdateTag)(gu);
|
|
51859
51859
|
});
|
|
51860
51860
|
} else {
|
|
51861
51861
|
Tt.log("[deleteCommentOrThread]: type thread new values", { comment: m, markNodeMap: e });
|
|
@@ -51869,7 +51869,7 @@ function XT(y) {
|
|
|
51869
51869
|
}
|
|
51870
51870
|
else
|
|
51871
51871
|
(0, Bt.$getRoot)().markDirty(), Tt.debug("[deleteCommentOrThread][refreshComments]");
|
|
51872
|
-
xr.refreshComments(!0), (0, Bt.$addUpdateTag)(
|
|
51872
|
+
xr.refreshComments(!0), (0, Bt.$addUpdateTag)(gu);
|
|
51873
51873
|
});
|
|
51874
51874
|
});
|
|
51875
51875
|
}
|
|
@@ -51878,7 +51878,7 @@ function XT(y) {
|
|
|
51878
51878
|
i.update(() => {
|
|
51879
51879
|
if ((0, Bt.$isRangeSelection)(_)) {
|
|
51880
51880
|
const b = _.isBackward(), S = m.codoxId;
|
|
51881
|
-
(0, Si.$wrapSelectionInMarkNode)(_, b, S), (0, Bt.$addUpdateTag)(
|
|
51881
|
+
(0, Si.$wrapSelectionInMarkNode)(_, b, S), (0, Bt.$addUpdateTag)(gu);
|
|
51882
51882
|
}
|
|
51883
51883
|
}), r(!1);
|
|
51884
51884
|
else if (!h && v) {
|
|
@@ -51889,7 +51889,7 @@ function XT(y) {
|
|
|
51889
51889
|
S.forEach((E, x) => {
|
|
51890
51890
|
let g = (0, Bt.$getNodeByKey)(x);
|
|
51891
51891
|
g && g.markDirty();
|
|
51892
|
-
}), (0, Bt.$addUpdateTag)(Ei.historic), (0, Bt.$addUpdateTag)(
|
|
51892
|
+
}), (0, Bt.$addUpdateTag)(Ei.historic), (0, Bt.$addUpdateTag)(gu);
|
|
51893
51893
|
});
|
|
51894
51894
|
}
|
|
51895
51895
|
}, [i]);
|
|
@@ -51909,7 +51909,7 @@ function XT(y) {
|
|
|
51909
51909
|
};
|
|
51910
51910
|
}, [t, i, e]), (0, pt.useEffect)(() => {
|
|
51911
51911
|
const m = /* @__PURE__ */ new Map();
|
|
51912
|
-
return (0,
|
|
51912
|
+
return (0, mc.mergeRegister)((0, mc.registerNestedElementResolver)(i, Si.MarkNode, (h) => (0, Si.$createMarkNode)(h.getIDs()), (h, v) => {
|
|
51913
51913
|
h.getIDs().forEach((_) => {
|
|
51914
51914
|
v.addID(_);
|
|
51915
51915
|
});
|
|
@@ -52187,7 +52187,7 @@ function h_(y) {
|
|
|
52187
52187
|
const pk = (y) => {
|
|
52188
52188
|
let { onColorChange: i, buttonClassName: p, buttonIconClassName: e, buttonAriaLabel: c, buttonLabel: n, dropdownClassName: t, buttonLabelClassName: o, dropdownChevronClassName: a } = y;
|
|
52189
52189
|
const [r] = (0, ws.useLexicalComposerContext)(), [d, s] = (0, pt.useState)(() => r.isEditable()), [u, l] = (0, pt.useState)("");
|
|
52190
|
-
(0, pt.useEffect)(() => (0,
|
|
52190
|
+
(0, pt.useEffect)(() => (0, mc.mergeRegister)(r.registerEditableListener((m) => {
|
|
52191
52191
|
s(m);
|
|
52192
52192
|
}), r.registerUpdateListener((m) => {
|
|
52193
52193
|
let { editorState: h } = m;
|
|
@@ -52209,7 +52209,7 @@ const pk = (y) => {
|
|
|
52209
52209
|
}, hk = pk, gk = (y) => {
|
|
52210
52210
|
let { onColorChange: i, buttonClassName: p, buttonIconClassName: e, buttonAriaLabel: c, buttonLabel: n, dropdownClassName: t, buttonLabelClassName: o, dropdownChevronClassName: a } = y;
|
|
52211
52211
|
const [r] = (0, ws.useLexicalComposerContext)(), [d, s] = (0, pt.useState)(() => r.isEditable()), [u, l] = (0, pt.useState)("#fff");
|
|
52212
|
-
(0, pt.useEffect)(() => (0,
|
|
52212
|
+
(0, pt.useEffect)(() => (0, mc.mergeRegister)(r.registerEditableListener((m) => {
|
|
52213
52213
|
s(m);
|
|
52214
52214
|
}), r.registerUpdateListener((m) => {
|
|
52215
52215
|
let { editorState: h } = m;
|
|
@@ -52333,7 +52333,7 @@ function vk({ close: y, editor: i, anchorElementRef: p, resolution: e, options:
|
|
|
52333
52333
|
v.ref != null && v.ref.current && Qb(v.ref.current), m.preventDefault(), m.stopImmediatePropagation();
|
|
52334
52334
|
}
|
|
52335
52335
|
return !0;
|
|
52336
|
-
}, a), i.registerCommand(
|
|
52336
|
+
}, a), i.registerCommand(vc, (f) => {
|
|
52337
52337
|
const m = f;
|
|
52338
52338
|
return m.preventDefault(), m.stopImmediatePropagation(), y(), !0;
|
|
52339
52339
|
}, a), i.registerCommand(zf, (f) => {
|
|
@@ -52457,10 +52457,10 @@ function y_(y) {
|
|
|
52457
52457
|
});
|
|
52458
52458
|
}, [i])];
|
|
52459
52459
|
}
|
|
52460
|
-
const
|
|
52461
|
-
typeof window.document.createElement < "u", xk =
|
|
52462
|
-
!window.MSStream,
|
|
52463
|
-
const [y] = ir(), [i, p] = un(() =>
|
|
52460
|
+
const Pc = typeof window < "u" && // eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
52461
|
+
typeof window.document.createElement < "u", xk = Pc && /iPad|iPhone|iPod/.test(navigator.userAgent) && // @ts-expect-error window.MSStream
|
|
52462
|
+
!window.MSStream, mu = Pc && window.matchMedia("(pointer: coarse)").matches, wk = Pc ? Ia : _n, bm = () => {
|
|
52463
|
+
const [y] = ir(), [i, p] = un(() => Pc ? y.getRootElement() === document.activeElement : !1);
|
|
52464
52464
|
return wk(() => ro(y.registerCommand(Uf, () => (p(!0), !1), ju), y.registerCommand(Hf, () => (p(!1), !1), ju)), [y]), i;
|
|
52465
52465
|
};
|
|
52466
52466
|
function Sk(y) {
|
|
@@ -52503,7 +52503,7 @@ function Sk(y) {
|
|
|
52503
52503
|
return Jr(w) && Sr(null), !1;
|
|
52504
52504
|
}, [o]), x = Mn(() => xk && s ? (u(!1), !0) : !1, [s, u]);
|
|
52505
52505
|
return _n(() => {
|
|
52506
|
-
const g = ro(r.registerCommand(
|
|
52506
|
+
const g = ro(r.registerCommand(bc, S, cr), r.registerCommand(sl, v, cr), r.registerCommand(Ma, v, cr), r.registerCommand(Bu, _, cr), r.registerCommand(Lu, b, cr), r.registerCommand(Hf, E, cr), r.registerCommand(Ci, x, cr));
|
|
52507
52507
|
return () => {
|
|
52508
52508
|
g();
|
|
52509
52509
|
};
|
|
@@ -52541,7 +52541,7 @@ function Ek(y) {
|
|
|
52541
52541
|
}
|
|
52542
52542
|
return i != null && p !== null ? { node: Iu(i, p, e) } : null;
|
|
52543
52543
|
}
|
|
52544
|
-
class ul extends
|
|
52544
|
+
class ul extends Cc {
|
|
52545
52545
|
static getType() {
|
|
52546
52546
|
return "beautifulMention";
|
|
52547
52547
|
}
|
|
@@ -52665,7 +52665,7 @@ const Tk = `\\.,\\*\\?\\$\\|#{}\\(\\)\\^\\[\\]\\\\/!%'"~=<>_:;`, kk = "\\(", Ak
|
|
|
52665
52665
|
function Cg(y, i, p) {
|
|
52666
52666
|
return new RegExp(b_(i, p)).test(y);
|
|
52667
52667
|
}
|
|
52668
|
-
function
|
|
52668
|
+
function yu(y, i) {
|
|
52669
52669
|
const p = It();
|
|
52670
52670
|
if (!p || !kt(p))
|
|
52671
52671
|
return;
|
|
@@ -52719,7 +52719,7 @@ function Ik(y) {
|
|
|
52719
52719
|
function _m() {
|
|
52720
52720
|
const y = Er(), i = Ik(y), p = i == null ? void 0 : i.getKey(), e = At(i) ? i.getChildrenSize() : qt(i) ? la(i).length : 0, c = At(i) ? "element" : "text";
|
|
52721
52721
|
if (p) {
|
|
52722
|
-
const n =
|
|
52722
|
+
const n = wc();
|
|
52723
52723
|
n.anchor.set(p, e, c), n.focus.set(p, e, c), Sr(n);
|
|
52724
52724
|
}
|
|
52725
52725
|
}
|
|
@@ -52804,7 +52804,7 @@ function $k(y, i, p, e, c, n) {
|
|
|
52804
52804
|
return __(y, i, p, e, c, n);
|
|
52805
52805
|
}
|
|
52806
52806
|
function __(y, i, p, e, c, n) {
|
|
52807
|
-
const t =
|
|
52807
|
+
const t = yu(y, i);
|
|
52808
52808
|
if (!t)
|
|
52809
52809
|
return !1;
|
|
52810
52810
|
const { node: o, selection: a, wordCharBeforeCursor: r, wordCharAfterCursor: d, cursorAtStartOfNode: s, cursorAtEndOfNode: u, prevNode: l, nextNode: f } = t, m = e ? Iu(p, e, c) : or(p), h = [];
|
|
@@ -52929,7 +52929,7 @@ function Kk(y) {
|
|
|
52929
52929
|
e,
|
|
52930
52930
|
M
|
|
52931
52931
|
]), [j, O] = un((i = y.comboboxOpen) !== null && i !== void 0 ? i : !1), A = Vk(j, d, s), D = Mn((Z) => {
|
|
52932
|
-
|
|
52932
|
+
mu || x(Z);
|
|
52933
52933
|
}, []), L = Mn((Z) => {
|
|
52934
52934
|
var X;
|
|
52935
52935
|
const ne = (X = R[Z].ref) === null || X === void 0 ? void 0 : X.current;
|
|
@@ -52992,7 +52992,7 @@ function Kk(y) {
|
|
|
52992
52992
|
const X = Bh(S), ne = (X === null ? Z.key : X + Z.key).trim();
|
|
52993
52993
|
return R.some((ce) => ce.displayValue.startsWith(ne) && ne.length <= ce.displayValue.length) ? D(0) : N === "trigger" && D(null), !1;
|
|
52994
52994
|
}, [S, R, N, D]), G = Mn(() => (O(!0), !1), []), Y = Mn(() => (O(!1), M || (F(null), w(null), I(null)), !1), [M]);
|
|
52995
|
-
return _n(() => ro(S.registerCommand(zu, (Z) => J(Z, "down"), cr), S.registerCommand(Fu, (Z) => J(Z, "up"), cr), S.registerCommand(_s, H, ju), S.registerCommand(zf, H, cr), S.registerCommand(Ma, q, cr), S.registerCommand(kg, U, cr), S.registerCommand(Uf, G, ju), S.registerCommand(
|
|
52995
|
+
return _n(() => ro(S.registerCommand(zu, (Z) => J(Z, "down"), cr), S.registerCommand(Fu, (Z) => J(Z, "up"), cr), S.registerCommand(_s, H, ju), S.registerCommand(zf, H, cr), S.registerCommand(Ma, q, cr), S.registerCommand(kg, U, cr), S.registerCommand(Uf, G, ju), S.registerCommand(bc, () => (j || O(!0), !1), cr), S.registerCommand(vc, () => (O(!1), !1), cr)), [
|
|
52996
52996
|
S,
|
|
52997
52997
|
j,
|
|
52998
52998
|
J,
|
|
@@ -53030,7 +53030,7 @@ function Kk(y) {
|
|
|
53030
53030
|
}, [f, m, j]), _n(() => {
|
|
53031
53031
|
E !== null && R[E] ? h == null || h(R[E].comboboxItem) : h == null || h(null);
|
|
53032
53032
|
}, [E, R, h]), _n(() => {
|
|
53033
|
-
if (!
|
|
53033
|
+
if (!Pc)
|
|
53034
53034
|
return;
|
|
53035
53035
|
const Z = S.getRootElement(), X = (ee) => {
|
|
53036
53036
|
A && !A.contains(ee.target) && Z && !Z.contains(ee.target) && Y();
|
|
@@ -53203,9 +53203,9 @@ function eA(y) {
|
|
|
53203
53203
|
const Y = R.current;
|
|
53204
53204
|
let Z = typeof Y == "number" ? D[Y] : void 0;
|
|
53205
53205
|
const X = D.find((le) => le.value !== le.displayValue);
|
|
53206
|
-
if (X && (
|
|
53206
|
+
if (X && (mu || Z === null) && (Z = X), !Z)
|
|
53207
53207
|
return !1;
|
|
53208
|
-
const ee =
|
|
53208
|
+
const ee = yu(E, v);
|
|
53209
53209
|
if (!C || !(ee != null && ee.isTextNode))
|
|
53210
53210
|
return !1;
|
|
53211
53211
|
const ne = ee.node, ce = la(ne), se = rv(ce, E, _, v, n);
|
|
@@ -53237,7 +53237,7 @@ function eA(y) {
|
|
|
53237
53237
|
}, []), H = Mn((Y) => {
|
|
53238
53238
|
if (!s)
|
|
53239
53239
|
return !1;
|
|
53240
|
-
const Z =
|
|
53240
|
+
const Z = yu(E, v);
|
|
53241
53241
|
if (Z) {
|
|
53242
53242
|
const { node: X, prevNode: ee, offset: ne } = Z, ce = Js(X) ? X : Js(ee) && ne === 0 ? ee : null;
|
|
53243
53243
|
if (ce) {
|
|
@@ -53249,7 +53249,7 @@ function eA(y) {
|
|
|
53249
53249
|
}, [s, E, v]), q = Mn((Y = !1) => {
|
|
53250
53250
|
if (!e)
|
|
53251
53251
|
return;
|
|
53252
|
-
const Z =
|
|
53252
|
+
const Z = yu(E, v);
|
|
53253
53253
|
if (!Z)
|
|
53254
53254
|
return;
|
|
53255
53255
|
const { node: X, offset: ee, type: ne, parentNode: ce, isTextNode: se, textContent: ue, prevNode: Ee, nextNode: le, wordCharAfterCursor: de, cursorAtStartOfNode: Pe, cursorAtEndOfNode: Le } = Z;
|
|
@@ -53278,7 +53278,7 @@ function eA(y) {
|
|
|
53278
53278
|
if (!ce || ee || ne)
|
|
53279
53279
|
return !1;
|
|
53280
53280
|
let Ee = X;
|
|
53281
|
-
const le =
|
|
53281
|
+
const le = yu(E, v);
|
|
53282
53282
|
if (le != null && le.isTextNode) {
|
|
53283
53283
|
const { textContent: Pe, offset: Le } = le;
|
|
53284
53284
|
Ee = (((Z = Pe.substring(0, Le).split(/\s+/).at(-1)) !== null && Z !== void 0 ? Z : "") + X).trim();
|
|
@@ -53326,9 +53326,9 @@ function eA(y) {
|
|
|
53326
53326
|
B
|
|
53327
53327
|
]), _n(() => {
|
|
53328
53328
|
L && S ? f == null || f() : m == null || m(), L && !S && J();
|
|
53329
|
-
}, [f, m, L, S, J]),
|
|
53329
|
+
}, [f, m, L, S, J]), Pc ? y.combobox ? qe.jsx(Kk, { options: D, loading: F, onQueryChange: w, onSelectOption: k, onReset: () => {
|
|
53330
53330
|
I(null);
|
|
53331
|
-
}, triggerFn: W, triggers: E, punctuation: v, creatable: O, comboboxOpen: y.comboboxOpen, comboboxAnchor: y.comboboxAnchor, comboboxAnchorClassName: y.comboboxAnchorClassName, comboboxComponent: y.comboboxComponent, comboboxItemComponent: y.comboboxItemComponent, comboboxAdditionalItems: y.comboboxAdditionalItems, onComboboxOpen: y.onComboboxOpen, onComboboxClose: y.onComboboxClose, onComboboxFocusChange: y.onComboboxFocusChange, onComboboxItemSelect: y.onComboboxItemSelect }) : qe.jsx(_k, { commandPriority: ju, onQueryChange: w, onSelectOption: z, triggerFn: W, options: D, anchorClassName: d, onClose: J, menuRenderFn: (Y, { selectedIndex: Z, selectOptionAndCleanUp: X, setHighlightedIndex: ee }) => (R.current = Z, Y.current && D.length === 0 && N && !F && S && r ? df.createPortal(qe.jsx(r, {}), Y.current) : Y.current && L ? df.createPortal(qe.jsx(o, { loading: F, role: "menu", "aria-label": "Choose a mention", "aria-hidden": !L, "aria-activedescendant": !
|
|
53331
|
+
}, triggerFn: W, triggers: E, punctuation: v, creatable: O, comboboxOpen: y.comboboxOpen, comboboxAnchor: y.comboboxAnchor, comboboxAnchorClassName: y.comboboxAnchorClassName, comboboxComponent: y.comboboxComponent, comboboxItemComponent: y.comboboxItemComponent, comboboxAdditionalItems: y.comboboxAdditionalItems, onComboboxOpen: y.onComboboxOpen, onComboboxClose: y.onComboboxClose, onComboboxFocusChange: y.onComboboxFocusChange, onComboboxItemSelect: y.onComboboxItemSelect }) : qe.jsx(_k, { commandPriority: ju, onQueryChange: w, onSelectOption: z, triggerFn: W, options: D, anchorClassName: d, onClose: J, menuRenderFn: (Y, { selectedIndex: Z, selectOptionAndCleanUp: X, setHighlightedIndex: ee }) => (R.current = Z, Y.current && D.length === 0 && N && !F && S && r ? df.createPortal(qe.jsx(r, {}), Y.current) : Y.current && L ? df.createPortal(qe.jsx(o, { loading: F, role: "menu", "aria-label": "Choose a mention", "aria-hidden": !L, "aria-activedescendant": !mu && Z !== null && D[Z] ? D[Z].displayValue : "", children: D.map((ne, ce) => qe.jsx(a, Object.assign({ tabIndex: -1, selected: !mu && Z === ce, ref: ne.setRefElement, role: "menuitem", "aria-selected": !mu && Z === ce, "aria-label": `Choose ${ne.value}`, item: ne.menuItem, itemValue: ne.value, label: ne.displayValue }, ne.data, { onClick: () => {
|
|
53332
53332
|
ee(ce), X(ne);
|
|
53333
53333
|
}, onMouseDown: (se) => {
|
|
53334
53334
|
se.preventDefault();
|
|
@@ -53373,7 +53373,7 @@ function rA({ nodeKey: y }) {
|
|
|
53373
53373
|
);
|
|
53374
53374
|
return _n(() => ro(
|
|
53375
53375
|
i.registerCommand(
|
|
53376
|
-
|
|
53376
|
+
bc,
|
|
53377
53377
|
(a) => {
|
|
53378
53378
|
const r = i.getElementByKey(y);
|
|
53379
53379
|
return a.target === r ? (a.shiftKey && c(), e(!p), !0) : !1;
|
|
@@ -53395,7 +53395,7 @@ function rA({ nodeKey: y }) {
|
|
|
53395
53395
|
a !== null && (a.className = "");
|
|
53396
53396
|
}, [i, p, y]), null;
|
|
53397
53397
|
}
|
|
53398
|
-
class Zu extends
|
|
53398
|
+
class Zu extends Cc {
|
|
53399
53399
|
static getType() {
|
|
53400
53400
|
return "page-break";
|
|
53401
53401
|
}
|
|
@@ -53461,7 +53461,7 @@ const aA = ({ onChange: y }) => {
|
|
|
53461
53461
|
zi,
|
|
53462
53462
|
cl,
|
|
53463
53463
|
Wi,
|
|
53464
|
-
|
|
53464
|
+
Tc,
|
|
53465
53465
|
ip,
|
|
53466
53466
|
ap,
|
|
53467
53467
|
ul,
|
|
@@ -53508,25 +53508,25 @@ function hA({
|
|
|
53508
53508
|
const Z = new DOMParser().parseFromString(t, "text/html"), X = im(G, Z);
|
|
53509
53509
|
X.forEach((ee) => {
|
|
53510
53510
|
ee instanceof Wi && ee.setStyle("font-weight: normal");
|
|
53511
|
-
}), Er(),
|
|
53511
|
+
}), Er(), Sc(X), w(!1);
|
|
53512
53512
|
}
|
|
53513
53513
|
});
|
|
53514
53514
|
}
|
|
53515
53515
|
};
|
|
53516
53516
|
_n(() => {
|
|
53517
53517
|
setTimeout(() => {
|
|
53518
|
-
|
|
53518
|
+
uc(".custom-margin").css({
|
|
53519
53519
|
paddingTop: `${_ || "16px"}`,
|
|
53520
53520
|
paddingRight: `${E || "16px"}`,
|
|
53521
53521
|
paddingLeft: `${b || "16px"}`,
|
|
53522
53522
|
paddingBottom: `${S || "16px"}`
|
|
53523
|
-
}),
|
|
53523
|
+
}), uc(".editor-inner").css({
|
|
53524
53524
|
maxHeight: s ? `${s}px` : "100%",
|
|
53525
53525
|
overflow: "scroll",
|
|
53526
53526
|
height: s ? `${s}px` : "100%",
|
|
53527
53527
|
minHeight: "200px",
|
|
53528
53528
|
maxWidth: u ? `${u}px` : "100%"
|
|
53529
|
-
});
|
|
53529
|
+
}), uc(`.${f}`).attr("contentEditable", !l);
|
|
53530
53530
|
}, 500);
|
|
53531
53531
|
}, []);
|
|
53532
53532
|
const { userName: J, userId: k, userEmail: z } = i, K = {
|
|
@@ -53616,7 +53616,7 @@ function hA({
|
|
|
53616
53616
|
/* @__PURE__ */ qe.jsx(
|
|
53617
53617
|
q1,
|
|
53618
53618
|
{
|
|
53619
|
-
contentEditable: /* @__PURE__ */ qe.jsx("div", { className: "custom-margin", children:
|
|
53619
|
+
contentEditable: /* @__PURE__ */ qe.jsx("div", { className: "custom-margin", children: /* @__PURE__ */ qe.jsx(pm, { className: `editor-input ${f}`, contentEditable: !1 }) }),
|
|
53620
53620
|
placeholder: null,
|
|
53621
53621
|
ErrorBoundary: dm
|
|
53622
53622
|
}
|
|
@@ -53668,16 +53668,16 @@ function gA({
|
|
|
53668
53668
|
F.update(() => {
|
|
53669
53669
|
if (c && d) {
|
|
53670
53670
|
const R = new DOMParser().parseFromString(c, "text/html"), j = im(F, R);
|
|
53671
|
-
Er(),
|
|
53671
|
+
Er(), Sc(j), s(!1);
|
|
53672
53672
|
}
|
|
53673
53673
|
});
|
|
53674
53674
|
}
|
|
53675
53675
|
};
|
|
53676
53676
|
_n(() => {
|
|
53677
53677
|
setTimeout(() => {
|
|
53678
|
-
|
|
53678
|
+
uc(".custom-margin-2").css({
|
|
53679
53679
|
height: `${t}px`
|
|
53680
|
-
}),
|
|
53680
|
+
}), uc(".editor-inner-2").css({
|
|
53681
53681
|
background: "#fff",
|
|
53682
53682
|
position: "relative",
|
|
53683
53683
|
top: "20px",
|
|
@@ -53737,7 +53737,7 @@ function gA({
|
|
|
53737
53737
|
}), e(F);
|
|
53738
53738
|
}, [f]);
|
|
53739
53739
|
const M = () => {
|
|
53740
|
-
let F =
|
|
53740
|
+
let F = uc(".editor-input-2").html();
|
|
53741
53741
|
F !== b.current && (console.log("Editor Variant 2 HTML", F), n(F), b.current = F);
|
|
53742
53742
|
};
|
|
53743
53743
|
return /* @__PURE__ */ qe.jsx("div", { ref: r, children: /* @__PURE__ */ qe.jsxs(Qg, { initialConfig: S, children: [
|
|
@@ -53770,7 +53770,7 @@ export {
|
|
|
53770
53770
|
kt as c,
|
|
53771
53771
|
Jr as d,
|
|
53772
53772
|
ro as e,
|
|
53773
|
-
|
|
53773
|
+
vc as f,
|
|
53774
53774
|
_s as g,
|
|
53775
53775
|
sl as h,
|
|
53776
53776
|
Ci as i,
|
|
@@ -53782,7 +53782,7 @@ export {
|
|
|
53782
53782
|
Fw as o,
|
|
53783
53783
|
pm as p,
|
|
53784
53784
|
Tg as q,
|
|
53785
|
-
|
|
53785
|
+
bc as r,
|
|
53786
53786
|
Z_ as s,
|
|
53787
53787
|
fa as t,
|
|
53788
53788
|
y_ as u,
|
|
@@ -53791,4 +53791,4 @@ export {
|
|
|
53791
53791
|
Ar as x,
|
|
53792
53792
|
gA as y
|
|
53793
53793
|
};
|
|
53794
|
-
//# sourceMappingURL=index-
|
|
53794
|
+
//# sourceMappingURL=index-e5d75707.js.map
|