@uva-glass/component-library 2.7.0 → 2.7.1

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.
Files changed (49) hide show
  1. package/dist/{Lexical.prod-sR6tW7N6.js → Lexical.prod-CQl7J8uU.js} +90 -90
  2. package/dist/Lexical.prod-CQl7J8uU.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-BbRoaXo6.js → LexicalClipboard.prod-C48GDxiy.js} +4 -4
  4. package/dist/{LexicalClipboard.prod-BbRoaXo6.js.map → LexicalClipboard.prod-C48GDxiy.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-iDKxtfCF.js → LexicalLink.prod-D8-zZW0o.js} +3 -3
  6. package/dist/{LexicalLink.prod-iDKxtfCF.js.map → LexicalLink.prod-D8-zZW0o.js.map} +1 -1
  7. package/dist/{LexicalList.prod-ywkx7SnO.js → LexicalList.prod-B4_DTbPB.js} +3 -3
  8. package/dist/{LexicalList.prod-ywkx7SnO.js.map → LexicalList.prod-B4_DTbPB.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-mYXylG1z.js → LexicalSelection.prod-BU3GAQB4.js} +2 -2
  10. package/dist/{LexicalSelection.prod-mYXylG1z.js.map → LexicalSelection.prod-BU3GAQB4.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-XN7avk7R.js → LexicalTable.prod-BvJxbarH.js} +4 -4
  12. package/dist/{LexicalTable.prod-XN7avk7R.js.map → LexicalTable.prod-BvJxbarH.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-DnFLi0Ww.js → LexicalUtils.prod-D9KKqgU7.js} +2 -2
  14. package/dist/{LexicalUtils.prod-DnFLi0Ww.js.map → LexicalUtils.prod-D9KKqgU7.js.map} +1 -1
  15. package/dist/{TablePlugin-5Cs2F_co.js → TablePlugin-C_QKVXSo.js} +4 -4
  16. package/dist/{TablePlugin-5Cs2F_co.js.map → TablePlugin-C_QKVXSo.js.map} +1 -1
  17. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  18. package/dist/components/FormInput/FormInput.js +1 -1
  19. package/dist/components/InputField/InputField.stories.js +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  21. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  22. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  23. package/dist/components/MultiSelect/index.js +1 -1
  24. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  25. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  26. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  27. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  28. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  29. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  30. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  31. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  34. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  35. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  36. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  37. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  38. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  39. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  41. package/dist/components/RteEditor/Plugins/index.js +1 -1
  42. package/dist/components/RteEditor/RteEditor.js +9 -9
  43. package/dist/components/RteEditor/helpers.js +4 -4
  44. package/dist/components/index.js +1 -1
  45. package/dist/{helpers-BpqX-Lj3.js → helpers-C_Mib4v3.js} +4 -4
  46. package/dist/{helpers-BpqX-Lj3.js.map → helpers-C_Mib4v3.js.map} +1 -1
  47. package/dist/index.js +1 -1
  48. package/package.json +6 -6
  49. package/dist/Lexical.prod-sR6tW7N6.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  function lo(n) {
2
2
  return {};
3
3
  }
4
- const Nn = {}, ao = {}, Ws = {}, Ce = {}, me = {}, Zn = {}, Ht = {}, Ur = {}, tr = {}, Te = {}, ke = {}, vt = {}, $r = {}, jr = {}, Rs = {}, Ks = {}, Js = {}, Us = {}, $s = {}, js = {}, Vs = {}, gn = {}, Hs = {}, qs = {}, Gs = {}, Qs = {}, Xs = {}, uo = {}, co = {}, fo = {}, Ys = {}, ho = {}, Zs = {}, ti = {}, ei = {}, Vr = {}, Hr = {}, er = {}, go = {}, _o = {}, po = {}, yo = {}, ni = {}, ri = {}, si = {}, rt = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ii = rt && "documentMode" in document ? document.documentMode : null, Z = rt && /Mac|iPod|iPhone|iPad/.test(navigator.platform), xt = rt && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), be = !(!rt || !("InputEvent" in window) || ii) && "getTargetRanges" in new window.InputEvent("input"), ze = rt && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), re = rt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, oi = rt && /Android/.test(navigator.userAgent), qr = rt && /^(?=.*Chrome).*/i.test(navigator.userAgent), li = rt && oi && qr, En = rt && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qr, ai = 1, ui = 3, ci = 9, fi = 11, Nt = 0, Gr = 1, zt = 2, di = 0, hi = 1, gi = 2, ve = 4, we = 8, Fn = 128, _i = 1792 | (112 | (3 | ve | we) | Fn), Pn = 1, On = 2, Ln = 3, Dn = 4, Mn = 5, In = 6, We = ze || re || En ? " " : "​", at = `
4
+ const Nn = {}, ao = {}, Ws = {}, Ce = {}, me = {}, Zn = {}, Ht = {}, Ur = {}, tr = {}, Te = {}, ke = {}, vt = {}, $r = {}, jr = {}, Rs = {}, Ks = {}, Js = {}, Us = {}, $s = {}, js = {}, Vs = {}, gn = {}, Hs = {}, qs = {}, Gs = {}, Qs = {}, Xs = {}, uo = {}, co = {}, fo = {}, Ys = {}, ho = {}, Zs = {}, ti = {}, ei = {}, Vr = {}, Hr = {}, er = {}, go = {}, _o = {}, po = {}, yo = {}, ni = {}, ri = {}, si = {}, rt = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ii = rt && "documentMode" in document ? document.documentMode : null, Z = rt && /Mac|iPod|iPhone|iPad/.test(navigator.platform), xt = rt && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), be = !(!rt || !("InputEvent" in window) || ii) && "getTargetRanges" in new window.InputEvent("input"), ze = rt && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), re = rt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, oi = rt && /Android/.test(navigator.userAgent), qr = rt && /^(?=.*Chrome).*/i.test(navigator.userAgent), li = rt && oi && qr, En = rt && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qr, ai = 1, ui = 3, ci = 9, fi = 11, Nt = 0, Gr = 1, zt = 2, di = 0, hi = 1, gi = 2, ve = 4, we = 8, Fn = 128, _i = 1792 | (112 | (3 | ve | we) | Fn), Pn = 1, On = 2, Ln = 3, Dn = 4, Mn = 5, In = 6, We = ze || re || En ? " " : "​", ut = `
5
5
 
6
6
  `, pi = xt ? " " : We, Qr = "֑-߿יִ-﷽ﹰ-ﻼ", Xr = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", yi = new RegExp("^[^" + Xr + "]*[" + Qr + "]"), mi = new RegExp("^[^" + Qr + "]*[" + Xr + "]"), Et = { bold: 1, capitalize: 1024, code: 16, highlight: Fn, italic: 2, lowercase: 256, strikethrough: ve, subscript: 32, superscript: 64, underline: we, uppercase: 512 }, xi = { directionless: 1, unmergeable: 2 }, nr = { center: On, end: In, justify: Dn, left: Pn, right: Ln, start: Mn }, Si = { [On]: "center", [In]: "end", [Dn]: "justify", [Pn]: "left", [Ln]: "right", [Mn]: "start" }, Ci = { normal: 0, segmented: 2, token: 1 }, Ti = { [di]: "normal", [gi]: "segmented", [hi]: "token" };
7
7
  function ki(n) {
@@ -28,7 +28,7 @@ function rn(n, t, e) {
28
28
  return s && (n === s || r && n.previousSibling === s) || r && Je(n, e) !== void 0;
29
29
  }
30
30
  function wi(n, t, e) {
31
- const r = ct(e._window);
31
+ const r = ft(e._window);
32
32
  let s = null, i = null;
33
33
  r !== null && r.anchorNode === n && (s = r.anchorOffset, i = r.focusOffset);
34
34
  const o = n.nodeValue;
@@ -39,7 +39,7 @@ function Ni(n, t, e) {
39
39
  const r = n.anchor.getNode();
40
40
  if (r.is(e) && n.format !== r.getFormat()) return !1;
41
41
  }
42
- return ft(t) && e.isAttached();
42
+ return dt(t) && e.isAttached();
43
43
  }
44
44
  function Ei(n, t, e, r) {
45
45
  for (let s = n; s && !Ji(s); s = se(s)) {
@@ -66,7 +66,7 @@ function Yr(n, t, e) {
66
66
  const d = t[f], g = d.type, _ = d.target, p = Ei(_, n, l, o);
67
67
  if (!p) continue;
68
68
  const [m, y] = p;
69
- if (g === "characterData") r && E(y) && ft(_) && Ni(s, _, y) && wi(_, y, n);
69
+ if (g === "characterData") r && E(y) && dt(_) && Ni(s, _, y) && wi(_, y, n);
70
70
  else if (g === "childList") {
71
71
  u = !0;
72
72
  const x = d.addedNodes;
@@ -103,7 +103,7 @@ function Yr(n, t, e) {
103
103
  }
104
104
  e.takeRecords();
105
105
  }
106
- s !== null && (u && (s.dirty = !0, ut(s)), xt && cs(n) && s.insertRawText(c));
106
+ s !== null && (u && (s.dirty = !0, ct(s)), xt && cs(n) && s.insertRawText(c));
107
107
  });
108
108
  } finally {
109
109
  _n = !1;
@@ -204,7 +204,7 @@ function Ke(n) {
204
204
  function bt(n) {
205
205
  return n.isToken() || n.isSegmented();
206
206
  }
207
- function ft(n) {
207
+ function dt(n) {
208
208
  return ie(n) && n.nodeType === ui;
209
209
  }
210
210
  function Oi(n) {
@@ -213,7 +213,7 @@ function Oi(n) {
213
213
  function Ee(n) {
214
214
  let t = n;
215
215
  for (; t != null; ) {
216
- if (ft(t)) return t;
216
+ if (dt(t)) return t;
217
217
  t = t.firstChild;
218
218
  }
219
219
  return null;
@@ -293,7 +293,7 @@ function $(n) {
293
293
  }
294
294
  }
295
295
  }
296
- function yt() {
296
+ function mt() {
297
297
  return ue() ? null : A()._compositionKey;
298
298
  }
299
299
  function j(n, t) {
@@ -329,7 +329,7 @@ function nt() {
329
329
  function os(n) {
330
330
  return n._nodeMap.get("root");
331
331
  }
332
- function ut(n) {
332
+ function ct(n) {
333
333
  q();
334
334
  const t = Tt();
335
335
  n !== null && (n.dirty = !0, n.setCachedNodes(null)), t._selection = n;
@@ -362,10 +362,10 @@ function as() {
362
362
  return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
363
363
  }
364
364
  function us(n) {
365
- return ft(n) ? n.nodeValue : null;
365
+ return dt(n) ? n.nodeValue : null;
366
366
  }
367
367
  function Rn(n, t, e) {
368
- const r = ct(t._window);
368
+ const r = ft(t._window);
369
369
  if (r === null) return;
370
370
  const s = r.anchorNode;
371
371
  let { anchorOffset: i, focusOffset: o } = r;
@@ -401,7 +401,7 @@ function Kn(n, t, e, r, s) {
401
401
  }
402
402
  return;
403
403
  }
404
- const u = i.getParent(), c = ae(), h = i.getTextContentSize(), f = yt(), d = i.getKey();
404
+ const u = i.getParent(), c = ae(), h = i.getTextContentSize(), f = mt(), d = i.getKey();
405
405
  if (i.isToken() || f !== null && d === f && !o || P(c) && (u !== null && !u.canInsertTextBefore() && c.anchor.offset === 0 || c.anchor.key === n.__key && c.anchor.offset === 0 && !i.canInsertTextBefore() && !o || c.focus.key === n.__key && c.focus.offset === h && !i.canInsertTextAfter() && !o)) return void i.markDirty();
406
406
  const g = M();
407
407
  if (!P(g) || e === null || r === null) return void i.setTextContent(l);
@@ -451,7 +451,7 @@ function xo(n) {
451
451
  }
452
452
  {
453
453
  const e = t.select(0, t.getChildrenSize());
454
- return ut(or(e)), e;
454
+ return ct(or(e)), e;
455
455
  }
456
456
  }
457
457
  function It(n, t) {
@@ -599,7 +599,7 @@ function Ii(n, t, e) {
599
599
  }
600
600
  r !== null && $n(r, n, t);
601
601
  }
602
- function ct(n) {
602
+ function ft(n) {
603
603
  return rt ? (n || window).getSelection() : null;
604
604
  }
605
605
  function Ai(n) {
@@ -639,7 +639,7 @@ function pr(n) {
639
639
  const t = new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/, "i");
640
640
  return n.nodeName.match(t) !== null;
641
641
  }
642
- function _t(n) {
642
+ function pt(n) {
643
643
  if (I(n) && !n.isInline()) return !0;
644
644
  if (!C(n) || Ft(n)) return !1;
645
645
  const t = n.getFirstChild(), e = t === null || Bt(t) || E(t) || t.isInline();
@@ -745,7 +745,7 @@ function De(n, t) {
745
745
  })(Me(e, et), l, e, r);
746
746
  }
747
747
  const o = e.__format;
748
- o !== 0 && _s(r, o), e.isInline() || ps(null, e, r), Ue(e) && (W += at, lt += at);
748
+ o !== 0 && _s(r, o), e.isInline() || ps(null, e, r), Ue(e) && (W += ut, lt += ut);
749
749
  } else {
750
750
  const s = e.getTextContent();
751
751
  if (I(e)) {
@@ -765,7 +765,7 @@ function Sn(n, t, e, r, s) {
765
765
  const l = et.get(n[o]);
766
766
  l !== null && E(l) && (st === null && (st = l.getFormat()), tt === "" && (tt = l.getStyle()));
767
767
  }
768
- Ue(t) && (W += at), s.element.__lexicalTextContent = W, W = i + W;
768
+ Ue(t) && (W += ut), s.element.__lexicalTextContent = W, W = i + W;
769
769
  }
770
770
  function xr(n, t) {
771
771
  if (n) {
@@ -854,8 +854,8 @@ function $i(n, t, e) {
854
854
  if (L === R) T = ln(Vt(R, x.element)), N++, O++;
855
855
  else {
856
856
  S === void 0 && (S = new Set(_)), F === void 0 && (F = new Set(p));
857
- const dt = F.has(L), Lt = S.has(R);
858
- if (dt) if (Lt) {
857
+ const ht = F.has(L), Lt = S.has(R);
858
+ if (ht) if (Lt) {
859
859
  const de = Oe(H, R);
860
860
  de === T ? T = ln(Vt(R, x.element)) : (x.withBefore(T).insertChild(de), Vt(R, x.element)), N++, O++;
861
861
  } else De(R, x.withBefore(T)), O++;
@@ -871,7 +871,7 @@ function $i(n, t, e) {
871
871
  } else B && !D && xn(_, N, v, x.element);
872
872
  })(o, f, d, u, c, l);
873
873
  }
874
- Ue(o) && (W += at), h.__lexicalTextContent = W, W = a + W;
874
+ Ue(o) && (W += ut), h.__lexicalTextContent = W, W = a + W;
875
875
  }(n, t, t.getDOMSlot(e)), ys(t, e), s = t, st == null || st === s.__textFormat || ee || (s.setTextFormat(st), s.setTextStyle(tt)), function(i) {
876
876
  tt === "" || tt === i.__textStyle || ee || i.setTextStyle(tt);
877
877
  }(t), V = r;
@@ -910,7 +910,7 @@ function Vt(n, t) {
910
910
  const o = r.__indent;
911
911
  o !== e.__indent && gs(i, o);
912
912
  const l = r.__format;
913
- l !== e.__format && _s(i, l), s && ($i(e, r, i), Y(r) || r.isInline() || ps(e, r, i)), Ue(r) && (W += at, lt += at);
913
+ l !== e.__format && _s(i, l), s && ($i(e, r, i), Y(r) || r.isInline() || ps(e, r, i)), Ue(r) && (W += ut, lt += ut);
914
914
  } else {
915
915
  const o = r.getTextContent();
916
916
  if (I(r)) {
@@ -1058,7 +1058,7 @@ const ot = Object.freeze({}), Tn = 30, kn = [["keydown", function(n, t) {
1058
1058
  const e = M(), r = n.data, s = ks(n);
1059
1059
  if (r != null && P(e) && Ts(e, s, r, n.timeStamp, !1)) {
1060
1060
  $t && (an(t, r), $t = !1);
1061
- const i = e.anchor.getNode(), o = ct(t._window);
1061
+ const i = e.anchor.getNode(), o = ft(t._window);
1062
1062
  if (o === null) return;
1063
1063
  const l = e.isBackward(), a = l ? e.anchor.offset : e.focus.offset, u = l ? e.focus.offset : e.anchor.offset;
1064
1064
  be && !e.isCollapsed() && E(i) && o.anchorNode !== null && i.getTextContent().slice(0, a) + r + i.getTextContent().slice(a + u) === us(o.anchorNode) || w(t, Ht, r);
@@ -1070,14 +1070,14 @@ const ot = Object.freeze({}), Tn = 30, kn = [["keydown", function(n, t) {
1070
1070
  }), Dt = null;
1071
1071
  }], ["click", function(n, t) {
1072
1072
  X(t, () => {
1073
- const e = M(), r = ct(t._window), s = ae();
1073
+ const e = M(), r = ft(t._window), s = ae();
1074
1074
  if (r) {
1075
1075
  if (P(e)) {
1076
1076
  const i = e.anchor, o = i.getNode();
1077
1077
  i.type === "element" && i.offset === 0 && e.isCollapsed() && !Y(o) && nt().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && s !== null && e.is(s) ? (r.removeAllRanges(), e.dirty = !0) : n.detail === 3 && !e.isCollapsed() && o !== e.focus.getNode() && (C(o) ? o.select(0) : o.getParentOrThrow().select(0));
1078
1078
  } else if (n.pointerType === "touch") {
1079
1079
  const i = r.anchorNode;
1080
- (Q(i) || ft(i)) && ut(Ge(s, r, t, n));
1080
+ (Q(i) || dt(i)) && ct(Ge(s, r, t, n));
1081
1081
  }
1082
1082
  }
1083
1083
  w(t, Ws, n);
@@ -1091,7 +1091,7 @@ be && kn.push(["beforeinput", (n, t) => function(e, r) {
1091
1091
  if (o === null) {
1092
1092
  const d = ae();
1093
1093
  if (!P(d)) return;
1094
- ut(d.clone());
1094
+ ct(d.clone());
1095
1095
  }
1096
1096
  if (P(o)) {
1097
1097
  const d = o.anchor.key === o.focus.key;
@@ -1184,7 +1184,7 @@ be && kn.push(["beforeinput", (n, t) => function(e, r) {
1184
1184
  else {
1185
1185
  if (a === `
1186
1186
  `) e.preventDefault(), w(r, me, !1);
1187
- else if (a === at) e.preventDefault(), w(r, Zn, void 0);
1187
+ else if (a === ut) e.preventDefault(), w(r, Zn, void 0);
1188
1188
  else if (a == null && e.dataTransfer) {
1189
1189
  const d = e.dataTransfer.getData("text/plain");
1190
1190
  e.preventDefault(), o.insertRawText(d);
@@ -1197,16 +1197,16 @@ let Gt = 0, xs = null, Ss = 0, Dt = null;
1197
1197
  const Ie = /* @__PURE__ */ new WeakMap();
1198
1198
  let bn = !1, vn = !1, Qt = !1, $t = !1, Cs = [0, "", 0, "root", 0];
1199
1199
  function Ts(n, t, e, r, s) {
1200
- const i = n.anchor, o = n.focus, l = i.getNode(), a = A(), u = ct(a._window), c = u !== null ? u.anchorNode : null, h = i.key, f = a.getElementByKey(h), d = e.length;
1200
+ const i = n.anchor, o = n.focus, l = i.getNode(), a = A(), u = ft(a._window), c = u !== null ? u.anchorNode : null, h = i.key, f = a.getElementByKey(h), d = e.length;
1201
1201
  return h !== o.key || !E(l) || (!s && (!be || Ss < r + 50) || l.isDirty() && d < 2 || ls(e)) && i.offset !== o.offset && !l.isComposing() || bt(l) || l.isDirty() && d > 1 || (s || !be) && f !== null && !l.isComposing() && c !== Ee(f) || u !== null && t !== null && (!t.collapsed || t.startContainer !== u.anchorNode || t.startOffset !== u.anchorOffset) || l.getFormat() !== n.format || l.getStyle() !== n.style || Li(n, l);
1202
1202
  }
1203
1203
  function Sr(n, t) {
1204
- return ft(n) && n.nodeValue !== null && t !== 0 && t !== n.nodeValue.length;
1204
+ return dt(n) && n.nodeValue !== null && t !== 0 && t !== n.nodeValue.length;
1205
1205
  }
1206
1206
  function Cr(n, t, e) {
1207
1207
  const { anchorNode: r, anchorOffset: s, focusNode: i, focusOffset: o } = n;
1208
1208
  bn && (bn = !1, Sr(r, s) && Sr(i, o)) || X(t, () => {
1209
- if (!e) return void ut(null);
1209
+ if (!e) return void ct(null);
1210
1210
  if (!Re(t, r, i)) return;
1211
1211
  const l = M();
1212
1212
  if (P(l)) {
@@ -1269,7 +1269,7 @@ function vs(n) {
1269
1269
  if (e === null) return;
1270
1270
  vn && (vn = !1, X(e, () => {
1271
1271
  const a = ae(), u = t.anchorNode;
1272
- (Q(u) || ft(u)) && ut(Ge(a, t, e, n));
1272
+ (Q(u) || dt(u)) && ct(Ge(a, t, e, n));
1273
1273
  }));
1274
1274
  const r = Wn(e), s = r[r.length - 1], i = s._key, o = At.get(i), l = o || s;
1275
1275
  l !== e && Cr(t, l, !1), Cr(t, e, !0), e !== s ? At.set(i, e) : o && At.delete(i);
@@ -1559,11 +1559,11 @@ class He {
1559
1559
  if (wn(s, !1, !0), c === null ? a.__first = o : c.getWritable().__next = o, l.__prev = f, h === null ? a.__last = o : h.getWritable().__prev = o, l.__next = d, l.__parent = g, a.__size = u, e && (C(this) && C(l) || k(139), this.getChildren().forEach((_) => {
1560
1560
  l.append(_);
1561
1561
  })), P(r)) {
1562
- ut(r);
1562
+ ct(r);
1563
1563
  const _ = r.anchor, p = r.focus;
1564
1564
  _.key === i && Nr(_, l), p.key === i && Nr(p, l);
1565
1565
  }
1566
- return yt() === i && $(o), l;
1566
+ return mt() === i && $(o), l;
1567
1567
  }
1568
1568
  insertAfter(t, e = !0) {
1569
1569
  q(), sn(this, t);
@@ -1691,7 +1691,7 @@ function Bt(n) {
1691
1691
  return n instanceof oe;
1692
1692
  }
1693
1693
  function pe(n) {
1694
- return ft(n) && /^( |\t|\r?\n)+$/.test(n.textContent || "");
1694
+ return dt(n) && /^( |\t|\r?\n)+$/.test(n.textContent || "");
1695
1695
  }
1696
1696
  function un(n, t) {
1697
1697
  return 16 & t ? "code" : t & Fn ? "mark" : 32 & t ? "sub" : 64 & t ? "sup" : null;
@@ -1773,7 +1773,7 @@ class Wt extends He {
1773
1773
  return this.getLatest().__mode === 1;
1774
1774
  }
1775
1775
  isComposing() {
1776
- return this.__key === yt();
1776
+ return this.__key === mt();
1777
1777
  }
1778
1778
  isSegmented() {
1779
1779
  return this.getLatest().__mode === 2;
@@ -1824,7 +1824,7 @@ class Wt extends He {
1824
1824
  return d !== g && (e.style.cssText = g), !1;
1825
1825
  }
1826
1826
  static importDOM() {
1827
- return { "#text": () => ({ conversion: Xi, priority: 0 }), b: () => ({ conversion: Gi, priority: 0 }), code: () => ({ conversion: gt, priority: 0 }), em: () => ({ conversion: gt, priority: 0 }), i: () => ({ conversion: gt, priority: 0 }), s: () => ({ conversion: gt, priority: 0 }), span: () => ({ conversion: qi, priority: 0 }), strong: () => ({ conversion: gt, priority: 0 }), sub: () => ({ conversion: gt, priority: 0 }), sup: () => ({ conversion: gt, priority: 0 }), u: () => ({ conversion: gt, priority: 0 }) };
1827
+ return { "#text": () => ({ conversion: Xi, priority: 0 }), b: () => ({ conversion: Gi, priority: 0 }), code: () => ({ conversion: _t, priority: 0 }), em: () => ({ conversion: _t, priority: 0 }), i: () => ({ conversion: _t, priority: 0 }), s: () => ({ conversion: _t, priority: 0 }), span: () => ({ conversion: qi, priority: 0 }), strong: () => ({ conversion: _t, priority: 0 }), sub: () => ({ conversion: _t, priority: 0 }), sup: () => ({ conversion: _t, priority: 0 }), u: () => ({ conversion: _t, priority: 0 }) };
1828
1828
  }
1829
1829
  static importJSON(t) {
1830
1830
  return U().updateFromJSON(t);
@@ -1886,7 +1886,7 @@ class Wt extends He {
1886
1886
  } else r = 0, s = 0;
1887
1887
  if (!P(i)) return Ps(l, r, l, s, "text", "text");
1888
1888
  {
1889
- const a = yt();
1889
+ const a = mt();
1890
1890
  a !== i.anchor.key && a !== i.focus.key || $(l), i.setTextNodeRange(this, r, this, s);
1891
1891
  }
1892
1892
  return i;
@@ -1918,7 +1918,7 @@ class Wt extends He {
1918
1918
  }
1919
1919
  splitText(...t) {
1920
1920
  q();
1921
- const e = this.getLatest(), r = e.getTextContent(), s = e.__key, i = yt(), o = new Set(t), l = [], a = r.length;
1921
+ const e = this.getLatest(), r = e.getTextContent(), s = e.__key, i = mt(), o = new Set(t), l = [], a = r.length;
1922
1922
  let u = "";
1923
1923
  for (let b = 0; b < a; b++) u !== "" && o.has(b) && (l.push(u), u = ""), u += r[b];
1924
1924
  u !== "" && l.push(u);
@@ -1956,7 +1956,7 @@ class Wt extends He {
1956
1956
  const e = t === this.getPreviousSibling();
1957
1957
  e || t === this.getNextSibling() || k(50);
1958
1958
  const r = this.__key, s = t.__key, i = this.__text, o = i.length;
1959
- yt() === s && $(r);
1959
+ mt() === s && $(r);
1960
1960
  const l = M();
1961
1961
  if (P(l)) {
1962
1962
  const h = l.anchor, f = l.focus;
@@ -2044,12 +2044,12 @@ function wr(n, t) {
2044
2044
  }
2045
2045
  let s = e;
2046
2046
  for (; (s = t ? e.firstChild : e.lastChild) !== null; ) e = s;
2047
- if (ft(e)) return e;
2047
+ if (dt(e)) return e;
2048
2048
  if (e.nodeName === "BR") return null;
2049
2049
  }
2050
2050
  }
2051
2051
  const Yi = { code: "code", em: "italic", i: "italic", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" };
2052
- function gt(n) {
2052
+ function _t(n) {
2053
2053
  const t = Yi[n.nodeName.toLowerCase()];
2054
2054
  return t === void 0 ? { node: null } : { forChild: jn(n.style, t), node: null };
2055
2055
  }
@@ -2090,7 +2090,7 @@ class le extends Wt {
2090
2090
  return t !== 2 && k(127), this;
2091
2091
  }
2092
2092
  setMode(t) {
2093
- return t === "normal" && k(128), this;
2093
+ return t !== "normal" && k(128), this;
2094
2094
  }
2095
2095
  canInsertTextBefore() {
2096
2096
  return !1;
@@ -2131,7 +2131,7 @@ class to {
2131
2131
  }
2132
2132
  set(t, e, r) {
2133
2133
  const s = this._selection, i = this.key;
2134
- this.key = t, this.offset = e, this.type = r, ue() || (yt() === i && $(t), s !== null && (s.setCachedNodes(null), s.dirty = !0));
2134
+ this.key = t, this.offset = e, this.type = r, ue() || (mt() === i && $(t), s !== null && (s.setCachedNodes(null), s.dirty = !0));
2135
2135
  }
2136
2136
  }
2137
2137
  function it(n, t, e) {
@@ -2159,7 +2159,7 @@ function Nr(n, t) {
2159
2159
  C(e) || E(e) ? fn(n, e) : fn(n, t);
2160
2160
  } else fn(n, t);
2161
2161
  }
2162
- function pt(n, t, e, r) {
2162
+ function yt(n, t, e, r) {
2163
2163
  n.key = t, n.offset = e, n.type = r;
2164
2164
  }
2165
2165
  class qe {
@@ -2278,7 +2278,7 @@ class Ot {
2278
2278
  return ue() || (this._cachedNodes = f), f;
2279
2279
  }
2280
2280
  setTextNodeRange(t, e, r, s) {
2281
- pt(this.anchor, t.__key, e, "text"), pt(this.focus, r.__key, s, "text"), this._cachedNodes = null, this.dirty = !0;
2281
+ yt(this.anchor, t.__key, e, "text"), yt(this.focus, r.__key, s, "text"), this._cachedNodes = null, this.dirty = !0;
2282
2282
  }
2283
2283
  getTextContent() {
2284
2284
  const t = this.getNodes();
@@ -2300,7 +2300,7 @@ class Ot {
2300
2300
  const e = A(), r = e.getEditorState()._selection, s = Fs(t.startContainer, t.startOffset, t.endContainer, t.endOffset, e, r);
2301
2301
  if (s === null) return;
2302
2302
  const [i, o] = s;
2303
- pt(this.anchor, i.key, i.offset, i.type), pt(this.focus, o.key, o.offset, o.type), this._cachedNodes = null;
2303
+ yt(this.anchor, i.key, i.offset, i.type), yt(this.focus, o.key, o.offset, o.type), this._cachedNodes = null;
2304
2304
  }
2305
2305
  clone() {
2306
2306
  const t = this.anchor, e = this.focus;
@@ -2424,7 +2424,7 @@ class Ot {
2424
2424
  if (this.isCollapsed()) return;
2425
2425
  const { anchor: t, focus: e } = this, r = this.getNodes(), s = this.isBackward() ? e : t, i = this.isBackward() ? t : e;
2426
2426
  let o = s.getNode(), l = i.getNode();
2427
- const a = Ut(o, _t), u = Ut(l, _t);
2427
+ const a = Ut(o, pt), u = Ut(l, pt);
2428
2428
  E(o) && o.isToken() && s.offset < o.getTextContentSize() && (s.offset = 0), i.offset > 0 && E(l) && l.isToken() && (i.offset = l.getTextContentSize());
2429
2429
  for (const h of r) qt(o, h) || qt(l, h) || h.getKey() === o.getKey() || h.getKey() === l.getKey() || h.remove();
2430
2430
  const c = (h, f) => {
@@ -2490,7 +2490,7 @@ class Ot {
2490
2490
  const g = M();
2491
2491
  return P(g) || k(134), g.insertNodes(t);
2492
2492
  }
2493
- const e = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Ut(e, _t), s = t[t.length - 1];
2493
+ const e = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Ut(e, pt), s = t[t.length - 1];
2494
2494
  if (C(r) && "__language" in r) {
2495
2495
  if ("__language" in t[0]) this.insertText(t[0].getTextContent());
2496
2496
  else {
@@ -2518,7 +2518,7 @@ class Ot {
2518
2518
  }(t), o = i.getLastDescendant(), l = i.getChildren(), a = !C(r) || !r.isEmpty() ? this.insertParagraph() : null, u = l[l.length - 1];
2519
2519
  let c = l[0];
2520
2520
  var h;
2521
- C(h = c) && _t(h) && !h.isEmpty() && C(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (C(r) || k(211, e.constructor.name, e.getType()), r.append(...c.getChildren()), c = l[1]), c && (r === null && k(212, e.constructor.name, e.getType()), function(g, _, p) {
2521
+ C(h = c) && pt(h) && !h.isEmpty() && C(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (C(r) || k(211, e.constructor.name, e.getType()), r.append(...c.getChildren()), c = l[1]), c && (r === null && k(212, e.constructor.name, e.getType()), function(g, _, p) {
2522
2522
  const m = _.getParentOrThrow().getLastChild();
2523
2523
  let y = _;
2524
2524
  const x = [_];
@@ -2526,8 +2526,8 @@ class Ot {
2526
2526
  let v = g;
2527
2527
  for (const b of x) v = v.insertAfter(b);
2528
2528
  }(r, c));
2529
- const f = Ut(o, _t);
2530
- a && C(f) && (a.canMergeWhenEmpty() || _t(u)) && (f.append(...a.getChildren()), a.remove()), C(r) && r.isEmpty() && r.remove(), o.selectEnd();
2529
+ const f = Ut(o, pt);
2530
+ a && C(f) && (a.canMergeWhenEmpty() || pt(u)) && (f.append(...a.getChildren()), a.remove()), C(r) && r.isEmpty() && r.remove(), o.selectEnd();
2531
2531
  const d = C(r) ? r.getLastChild() : null;
2532
2532
  Bt(d) && f !== r && d.remove();
2533
2533
  }
@@ -2536,7 +2536,7 @@ class Ot {
2536
2536
  const o = St();
2537
2537
  return nt().splice(this.anchor.offset, 0, [o]), o.select(), o;
2538
2538
  }
2539
- const t = dn(this), e = Ut(this.anchor.getNode(), _t);
2539
+ const t = dn(this), e = Ut(this.anchor.getNode(), pt);
2540
2540
  C(e) || k(213);
2541
2541
  const r = e.getChildAtIndex(t), s = r ? [r, ...r.getNextSiblings()] : [], i = e.insertNewAfter(this, !1);
2542
2542
  return i ? (i.append(...s), i.selectStart(), i) : null;
@@ -2576,7 +2576,7 @@ class Ot {
2576
2576
  if (I(l) && !l.isIsolated()) {
2577
2577
  if (o && l.isKeyboardSelectable()) {
2578
2578
  const d = Dr();
2579
- return d.add(l.__key), void ut(d);
2579
+ return d.add(l.__key), void ct(d);
2580
2580
  }
2581
2581
  const f = e ? l.getPreviousSibling() : l.getNextSibling();
2582
2582
  if (E(f)) {
@@ -2589,7 +2589,7 @@ class Ot {
2589
2589
  return C(f) ? (_ = f.__key, g = e ? f.getChildrenSize() : 0) : (g = l.getIndexWithinParent(), _ = d.__key, e || g++), s.set(_, g, "element"), void (o && i.set(_, g, "element"));
2590
2590
  }
2591
2591
  }
2592
- const a = A(), u = ct(a._window);
2592
+ const a = A(), u = ft(a._window);
2593
2593
  if (!u) return;
2594
2594
  const c = a._blockCursorElement, h = a._rootElement;
2595
2595
  if (h === null || c === null || !C(l) || l.isInline() || l.canBeEmpty() || $n(c, a, h), function(f, d, g, _) {
@@ -2612,7 +2612,7 @@ class Ot {
2612
2612
  }
2613
2613
  u.anchorNode === f.startContainer && u.anchorOffset === f.startOffset || function(y) {
2614
2614
  const x = y.focus, v = y.anchor, b = v.key, S = v.offset, F = v.type;
2615
- pt(v, x.key, x.offset, x.type), pt(x, b, S, F), y._cachedNodes = null;
2615
+ yt(v, x.key, x.offset, x.type), yt(x, b, S, F), y._cachedNodes = null;
2616
2616
  }(this);
2617
2617
  }
2618
2618
  }
@@ -2635,7 +2635,7 @@ class Ot {
2635
2635
  if (o.isKeyboardSelectable() && C(s) && s.getChildrenSize() === 0) {
2636
2636
  s.remove();
2637
2637
  const l = Dr();
2638
- l.add(o.__key), ut(l);
2638
+ l.add(o.__key), ct(l);
2639
2639
  } else
2640
2640
  o.remove(), A().dispatchCommand(Nn, void 0);
2641
2641
  return;
@@ -2783,7 +2783,7 @@ function Es(n, t, e) {
2783
2783
  const i = A();
2784
2784
  if (i.isComposing() && i._compositionKey !== n.key && P(e)) {
2785
2785
  const o = e.anchor, l = e.focus;
2786
- pt(n, o.key, o.offset, o.type), pt(t, l.key, l.offset, l.type);
2786
+ yt(n, o.key, o.offset, o.type), yt(t, l.key, l.offset, l.type);
2787
2787
  }
2788
2788
  }
2789
2789
  }
@@ -2911,34 +2911,34 @@ function eo(n, t, e, r, s, i, o) {
2911
2911
  if (!s.has("skip-scroll-into-view") && t.isCollapsed() && i !== null && i === document.activeElement) {
2912
2912
  const z = P(t) && t.anchor.type === "element" ? F.childNodes[y] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null;
2913
2913
  if (z !== null) {
2914
- let dt;
2914
+ let ht;
2915
2915
  if (z instanceof Text) {
2916
2916
  const Lt = document.createRange();
2917
- Lt.selectNode(z), dt = Lt.getBoundingClientRect();
2918
- } else dt = z.getBoundingClientRect();
2917
+ Lt.selectNode(z), ht = Lt.getBoundingClientRect();
2918
+ } else ht = z.getBoundingClientRect();
2919
2919
  (function(Lt, de, Qn) {
2920
2920
  const Ze = fs(Qn), Xn = Un(Ze);
2921
2921
  if (Ze === null || Xn === null) return;
2922
- let { top: tn, bottom: en } = de, he = 0, ge = 0, ht = Qn;
2923
- for (; ht !== null; ) {
2924
- const nn = ht === Ze.body;
2922
+ let { top: tn, bottom: en } = de, he = 0, ge = 0, gt = Qn;
2923
+ for (; gt !== null; ) {
2924
+ const nn = gt === Ze.body;
2925
2925
  if (nn) he = 0, ge = $e(Lt).innerHeight;
2926
2926
  else {
2927
- const _e = ht.getBoundingClientRect();
2927
+ const _e = gt.getBoundingClientRect();
2928
2928
  he = _e.top, ge = _e.bottom;
2929
2929
  }
2930
2930
  let Rt = 0;
2931
2931
  if (tn < he ? Rt = -(he - tn) : en > ge && (Rt = en - ge), Rt !== 0) if (nn) Xn.scrollBy(0, Rt);
2932
2932
  else {
2933
- const _e = ht.scrollTop;
2934
- ht.scrollTop += Rt;
2935
- const Yn = ht.scrollTop - _e;
2933
+ const _e = gt.scrollTop;
2934
+ gt.scrollTop += Rt;
2935
+ const Yn = gt.scrollTop - _e;
2936
2936
  tn -= Yn, en -= Yn;
2937
2937
  }
2938
2938
  if (nn) break;
2939
- ht = se(ht);
2939
+ gt = se(gt);
2940
2940
  }
2941
- })(e, dt, i);
2941
+ })(e, ht, i);
2942
2942
  }
2943
2943
  }
2944
2944
  bn = !0;
@@ -2955,7 +2955,7 @@ function dn(n) {
2955
2955
  P(e) && (t = e), P(t) || k(161);
2956
2956
  const r = t.anchor;
2957
2957
  let s = r.getNode(), i = r.offset;
2958
- for (; !_t(s); ) [s, i] = no(s, i);
2958
+ for (; !pt(s); ) [s, i] = no(s, i);
2959
2959
  return i;
2960
2960
  }
2961
2961
  function no(n, t) {
@@ -3056,7 +3056,7 @@ function Wr(n, t, e) {
3056
3056
  K = r, G = s, J = i;
3057
3057
  }
3058
3058
  }
3059
- function mt(n, t) {
3059
+ function at(n, t) {
3060
3060
  const e = n._pendingEditorState, r = n._rootElement, s = n._headless || r === null;
3061
3061
  if (e === null) return;
3062
3062
  const i = n._editorState, o = i._selection, l = e._selection, a = n._dirtyType !== Nt, u = K, c = G, h = J, f = n._updating, d = n._observer;
@@ -3068,7 +3068,7 @@ function mt(n, t) {
3068
3068
  d.disconnect(), g = ji(i, e, n, S, F, T);
3069
3069
  } catch (S) {
3070
3070
  if (S instanceof Error && n._onError(S), hn) throw S;
3071
- return zs(n, null, r, e), ts(n), n._dirtyType = zt, hn = !0, mt(n, i), void (hn = !1);
3071
+ return zs(n, null, r, e), ts(n), n._dirtyType = zt, hn = !0, at(n, i), void (hn = !1);
3072
3072
  } finally {
3073
3073
  d.observe(r, Ar), n._updating = f, K = u, G = c, J = h;
3074
3074
  }
@@ -3082,7 +3082,7 @@ function mt(n, t) {
3082
3082
  let D;
3083
3083
  for (D in N) O.has(D) || (N === T && (N = is(S)), delete N[D]);
3084
3084
  }(n, e);
3085
- const v = s ? null : ct(n._window);
3085
+ const v = s ? null : ft(n._window);
3086
3086
  if (n._editable && v !== null && (a || l === null || l.dirty) && r !== null && !y.has("skip-dom-selection")) {
3087
3087
  J = n, K = e;
3088
3088
  try {
@@ -3098,8 +3098,8 @@ function mt(n, t) {
3098
3098
  g !== null && function(S, F, T, N, O) {
3099
3099
  const D = Array.from(S._listeners.mutation), B = D.length;
3100
3100
  for (let L = 0; L < B; L++) {
3101
- const [R, z] = D[L], dt = F.get(z);
3102
- dt !== void 0 && R(dt, { dirtyLeaves: N, prevEditorState: O, updateTags: T });
3101
+ const [R, z] = D[L], ht = F.get(z);
3102
+ ht !== void 0 && R(ht, { dirtyLeaves: N, prevEditorState: O, updateTags: T });
3103
3103
  }
3104
3104
  }(n, g, y, _, i), P(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(Nn, void 0);
3105
3105
  const b = n._pendingDecorators;
@@ -3188,7 +3188,7 @@ function Is(n, t, e) {
3188
3188
  K = a, G = !1, n._updating = !0, J = n;
3189
3189
  try {
3190
3190
  u && (n._headless ? l._selection !== null && (a._selection = l._selection.clone()) : a._selection = function(m) {
3191
- const y = m.getEditorState()._selection, x = ct(m._window);
3191
+ const y = m.getEditorState()._selection, x = ft(m._window);
3192
3192
  return P(y) || y == null ? Ge(y, x, m, null) : y.clone();
3193
3193
  }(n));
3194
3194
  const _ = n._compositionKey;
@@ -3209,7 +3209,7 @@ function Is(n, t, e) {
3209
3209
  E(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() && ir(S);
3210
3210
  }
3211
3211
  }(a, n) : function(m, y) {
3212
- const x = y._dirtyLeaves, v = y._dirtyElements, b = m._nodeMap, S = yt(), F = /* @__PURE__ */ new Map();
3212
+ const x = y._dirtyLeaves, v = y._dirtyElements, b = m._nodeMap, S = mt(), F = /* @__PURE__ */ new Map();
3213
3213
  let T = x, N = T.size, O = v, D = O.size;
3214
3214
  for (; N > 0 || D > 0; ) {
3215
3215
  if (N > 0) {
@@ -3251,7 +3251,7 @@ function Is(n, t, e) {
3251
3251
  m.get(y) !== void 0 && m.get(x) !== void 0 || k(19);
3252
3252
  } else Hn(p) && p._nodes.size === 0 && (a._selection = null);
3253
3253
  } catch (_) {
3254
- return _ instanceof Error && n._onError(_), n._pendingEditorState = l, n._dirtyType = zt, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements.clear(), void mt(n);
3254
+ return _ instanceof Error && n._onError(_), n._pendingEditorState = l, n._dirtyType = zt, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements.clear(), void at(n);
3255
3255
  } finally {
3256
3256
  K = c, G = h, J = f, n._updating = d, Se = 0;
3257
3257
  }
@@ -3261,8 +3261,8 @@ function Is(n, t, e) {
3261
3261
  if (y.dirty || !y.is(m)) return !0;
3262
3262
  } else if (m !== null) return !0;
3263
3263
  return !1;
3264
- }(a, n) ? a._flushSync ? (a._flushSync = !1, mt(n)) : u && Pi(() => {
3265
- mt(n);
3264
+ }(a, n) ? a._flushSync ? (a._flushSync = !1, at(n)) : u && Pi(() => {
3265
+ at(n);
3266
3266
  }) : (a._flushSync = !1, u && (r.clear(), n._deferred = [], n._pendingEditorState = null));
3267
3267
  }
3268
3268
  function X(n, t, e) {
@@ -3481,7 +3481,7 @@ class Qe extends He {
3481
3481
  const e = this.getChildren(), r = e.length;
3482
3482
  for (let s = 0; s < r; s++) {
3483
3483
  const i = e[s];
3484
- t += i.getTextContent(), C(i) && s !== r - 1 && !i.isInline() && (t += at);
3484
+ t += i.getTextContent(), C(i) && s !== r - 1 && !i.isInline() && (t += ut);
3485
3485
  }
3486
3486
  return t;
3487
3487
  }
@@ -3490,7 +3490,7 @@ class Qe extends He {
3490
3490
  const e = this.getChildren(), r = e.length;
3491
3491
  for (let s = 0; s < r; s++) {
3492
3492
  const i = e[s];
3493
- t += i.getTextContentSize(), C(i) && s !== r - 1 && !i.isInline() && (t += at.length);
3493
+ t += i.getTextContentSize(), C(i) && s !== r - 1 && !i.isInline() && (t += ut.length);
3494
3494
  }
3495
3495
  return t;
3496
3496
  }
@@ -4033,7 +4033,7 @@ class Ye {
4033
4033
  const r = It(this._config.theme, "root"), s = this._pendingEditorState || this._editorState;
4034
4034
  if (this._rootElement = t, zs(this, e, t, s), e !== null && (this._config.disableEvents || Vi(e), r != null && e.classList.remove(...r)), t !== null) {
4035
4035
  const i = Un(t), o = t.style;
4036
- o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", t.setAttribute("data-lexical-editor", "true"), this._window = i, this._dirtyType = zt, ts(this), this._updateTags.add("history-merge"), mt(this), this._config.disableEvents || function(l, a) {
4036
+ o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", t.setAttribute("data-lexical-editor", "true"), this._window = i, this._dirtyType = zt, ts(this), this._updateTags.add("history-merge"), at(this), this._config.disableEvents || function(l, a) {
4037
4037
  const u = l.ownerDocument, c = Ie.get(u);
4038
4038
  (c === void 0 || c < 1) && u.addEventListener("selectionchange", vs), Ie.set(u, (c || 0) + 1), l.__lexicalEditor = a;
4039
4039
  const h = bs(l);
@@ -4070,7 +4070,7 @@ class Ye {
4070
4070
  });
4071
4071
  }
4072
4072
  }(t, this), r != null && t.classList.add(...r);
4073
- } else this._editorState = s, this._pendingEditorState = null, this._window = null;
4073
+ } else this._window = null, this._updateTags.add("history-merge"), at(this);
4074
4074
  Xt("root", this, !1, t, e);
4075
4075
  }
4076
4076
  }
@@ -4085,7 +4085,7 @@ class Ye {
4085
4085
  let r = t;
4086
4086
  r._readOnly && (r = As(t), r._selection = t._selection ? t._selection.clone() : null), Zr(this);
4087
4087
  const s = this._pendingEditorState, i = this._updateTags, o = e !== void 0 ? e.tag : null;
4088
- s === null || s.isEmpty() || (o != null && i.add(o), mt(this)), this._pendingEditorState = r, this._dirtyType = zt, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && i.add(o), this._updating || mt(this);
4088
+ s === null || s.isEmpty() || (o != null && i.add(o), at(this)), this._pendingEditorState = r, this._dirtyType = zt, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && i.add(o), this._updating || at(this);
4089
4089
  }
4090
4090
  parseEditorState(t, e) {
4091
4091
  return function(r, s, i) {
@@ -4103,7 +4103,7 @@ class Ye {
4103
4103
  }(typeof t == "string" ? JSON.parse(t) : t, this, e);
4104
4104
  }
4105
4105
  read(t) {
4106
- return mt(this), this.getEditorState().read(t, { editor: this });
4106
+ return at(this), this.getEditorState().read(t, { editor: this });
4107
4107
  }
4108
4108
  update(t, e) {
4109
4109
  X(this, t, e);
@@ -4120,7 +4120,7 @@ class Ye {
4120
4120
  blur() {
4121
4121
  const t = this._rootElement;
4122
4122
  t !== null && t.blur();
4123
- const e = ct(this._window);
4123
+ const e = ft(this._window);
4124
4124
  e !== null && e.removeAllRanges();
4125
4125
  }
4126
4126
  isEditable() {
@@ -4133,7 +4133,7 @@ class Ye {
4133
4133
  return { editorState: this._editorState.toJSON() };
4134
4134
  }
4135
4135
  }
4136
- Ye.version = "0.23.0+prod.esm";
4136
+ Ye.version = "0.23.1+prod.esm";
4137
4137
  export {
4138
4138
  ni as $,
4139
4139
  To as A,
@@ -4148,7 +4148,7 @@ export {
4148
4148
  ko as J,
4149
4149
  ke as K,
4150
4150
  C as L,
4151
- ut as M,
4151
+ ct as M,
4152
4152
  Xs as N,
4153
4153
  Qe as O,
4154
4154
  Q as P,
@@ -4224,7 +4224,7 @@ export {
4224
4224
  Ht as p,
4225
4225
  Oo as q,
4226
4226
  ao as r,
4227
- ct as s,
4227
+ ft as s,
4228
4228
  Nn as t,
4229
4229
  wo as u,
4230
4230
  E as v,
@@ -4233,4 +4233,4 @@ export {
4233
4233
  Ft as y,
4234
4234
  js as z
4235
4235
  };
4236
- //# sourceMappingURL=Lexical.prod-sR6tW7N6.js.map
4236
+ //# sourceMappingURL=Lexical.prod-CQl7J8uU.js.map