reactjs-tiptap-editor 1.0.10 → 1.0.11

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 (141) hide show
  1. package/lib/{ActionMenuButton-BPdRqzDX.cjs → ActionMenuButton-BLlse5KO.cjs} +1 -1
  2. package/lib/{ActionMenuButton-CKTxYtl7.js → ActionMenuButton-DTXFBdGX.js} +2 -2
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +2 -2
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +2 -2
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +2 -2
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +2 -2
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +2 -2
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +945 -837
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +2 -2
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +4 -4
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +2 -2
  23. package/lib/{Drawer-Cfx115up.js → Drawer-D0yQ0wR7.js} +12 -12
  24. package/lib/{Drawer-hHj4Opkg.cjs → Drawer-kv6BU_6O.cjs} +1 -1
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +1 -1
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +11 -11
  29. package/lib/{Excalidraw-8pWJ17Ye.cjs → Excalidraw-B82ThkJA.cjs} +1 -1
  30. package/lib/{Excalidraw-CO93Tsmb.js → Excalidraw-CO4IRHmG.js} +17 -17
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +2 -2
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +2 -2
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +4 -4
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +4 -4
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +12 -12
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +4 -4
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +2 -2
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +2 -2
  49. package/lib/{Icon-D7GJZzoa.js → Icon-DRuJhcHK.js} +1 -1
  50. package/lib/{Icon-gtc3g-VK.cjs → Icon-DXePECFW.cjs} +1 -1
  51. package/lib/{Iframe-BmXO2c65.cjs → Iframe-03dn9wcM.cjs} +1 -1
  52. package/lib/{Iframe-DwhclppJ.js → Iframe-BEO28NPs.js} +10 -10
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +1 -1
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +43 -43
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +6 -6
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +7 -7
  61. package/lib/{Indent-BOsymiZ7.js → Indent-CXurBbOr.js} +2 -2
  62. package/lib/{Indent-DPkMWfcv.cjs → Indent-Cqjdn3Jt.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +1 -1
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +2 -2
  67. package/lib/{Katex-BYK-b9X2.js → Katex-Bvj469K1.js} +22 -22
  68. package/lib/{Katex-B1XbT8-X.cjs → Katex-DdWTV5NJ.cjs} +2 -2
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +1 -1
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +11 -11
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +1 -1
  75. package/lib/{LinkEditBlock-4-iRXH7m.cjs → LinkEditBlock-8ePAZ-G1.cjs} +2 -2
  76. package/lib/{LinkEditBlock-DgrLUMsJ.js → LinkEditBlock-DjXUEubR.js} +29 -29
  77. package/lib/Mermaid.cjs +2 -2
  78. package/lib/Mermaid.js +18 -18
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +10 -10
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +2 -2
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +15 -15
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +2 -2
  87. package/lib/{SlashCommandNodeView-CQvMTXys.cjs → SlashCommandNodeView-Bl_gwZJB.cjs} +1 -1
  88. package/lib/{SlashCommandNodeView-BpNNU7Sm.js → SlashCommandNodeView-CcqL8ymb.js} +12 -12
  89. package/lib/Strike.cjs +1 -1
  90. package/lib/Strike.js +2 -2
  91. package/lib/{Table-CT9R9Sdq.js → Table-9Y0Cg8Ab.js} +3 -3
  92. package/lib/{Table-LnWGm2m8.cjs → Table-DBGjezZK.cjs} +1 -1
  93. package/lib/Table.cjs +1 -1
  94. package/lib/Table.js +1 -1
  95. package/lib/TaskList.cjs +1 -1
  96. package/lib/TaskList.js +2 -2
  97. package/lib/TextAlign.cjs +1 -1
  98. package/lib/TextAlign.js +9 -9
  99. package/lib/TextDirection.cjs +1 -1
  100. package/lib/TextDirection.js +9 -9
  101. package/lib/TextUnderline.cjs +1 -1
  102. package/lib/TextUnderline.js +2 -2
  103. package/lib/{Twitter-Bo4JkBTL.cjs → Twitter-Cnvt7GBg.cjs} +1 -1
  104. package/lib/{Twitter-mowilxRd.js → Twitter-DWwd0vHR.js} +16 -16
  105. package/lib/Twitter.cjs +1 -1
  106. package/lib/Twitter.js +1 -1
  107. package/lib/Video.cjs +1 -1
  108. package/lib/Video.js +21 -21
  109. package/lib/bubble.cjs +4 -4
  110. package/lib/bubble.js +383 -389
  111. package/lib/{button-wt49IYwP.cjs → button-BW5bDPz_.cjs} +1 -1
  112. package/lib/{button-CBO-WDXK.js → button-RnHbJfd-.js} +1 -1
  113. package/lib/{checkbox-D1h32VWM.js → checkbox-CLSoR1Qj.js} +1 -1
  114. package/lib/{checkbox-DUcLSGZD.cjs → checkbox-CTEN0q4y.cjs} +1 -1
  115. package/lib/{dialog-DY868Uji.cjs → dialog-CMC9hsCo.cjs} +1 -1
  116. package/lib/{dialog-DSvgtlDI.js → dialog-D_HCtKvc.js} +1 -1
  117. package/lib/{dropdown-menu-B88Qn2KR.js → dropdown-menu-66q7Ofc5.js} +1 -1
  118. package/lib/{dropdown-menu-BripAeGB.cjs → dropdown-menu-DKSAS-w_.cjs} +1 -1
  119. package/lib/{index-BIqaogQg.js → index-C3zg3DPB.js} +669 -743
  120. package/lib/index-C838s-or.cjs +8 -0
  121. package/lib/index.cjs +1 -1
  122. package/lib/index.js +1 -1
  123. package/lib/{input-Bx4uo4gO.js → input-CvyMYMZG.js} +1 -1
  124. package/lib/{input-BeD5GdMv.cjs → input-D555880-.cjs} +1 -1
  125. package/lib/{label-uKG7RzFU.js → label-DsOYPjAo.js} +1 -1
  126. package/lib/{label--161UPH6.cjs → label-E6jF3Xud.cjs} +1 -1
  127. package/lib/{popover-BVX8otO9.js → popover-B7ec5-u2.js} +1 -1
  128. package/lib/{popover-Csk538NC.cjs → popover-BSzR_R01.cjs} +1 -1
  129. package/lib/{separator-DtrEdjAF.js → separator-JaTTqb3J.js} +18 -18
  130. package/lib/{separator-DLRVddHS.cjs → separator-PGnA-6Hr.cjs} +1 -1
  131. package/lib/{store-CsIFDUKR.js → store-Cf7tFiiI.js} +1 -1
  132. package/lib/{store-B8IkVz1J.cjs → store-oDk-lTPM.cjs} +1 -1
  133. package/lib/style.css +1 -1
  134. package/lib/{tabs-DOasUMDU.cjs → tabs-BTwiZkWd.cjs} +1 -1
  135. package/lib/{tabs-BKpr0QQB.js → tabs-CWr9HYaM.js} +1 -1
  136. package/lib/{textarea-Ba9OOzba.js → textarea-BdeLXbp8.js} +1 -1
  137. package/lib/{textarea-D9egO4qC.cjs → textarea-Yetl_PZi.cjs} +1 -1
  138. package/lib/{useButtonProps-DEtmDVPr.cjs → useButtonProps-DfnJiJLV.cjs} +1 -1
  139. package/lib/{useButtonProps-C_bqxmHi.js → useButtonProps-cMoicZgd.js} +1 -1
  140. package/package.json +1 -1
  141. package/lib/index-BvIJKpX1.cjs +0 -8
package/lib/bubble.js CHANGED
@@ -1,32 +1,32 @@
1
- import { jsx as p, Fragment as O, jsxs as y } from "react/jsx-runtime";
2
- import bs, { useRef as Pt, useEffect as at, useCallback as R, useState as F, useMemo as yt, Fragment as ei } from "react";
1
+ import { jsx as p, Fragment as I, jsxs as y } from "react/jsx-runtime";
2
+ import bs, { useRef as Pt, useEffect as at, useCallback as L, useState as F, useMemo as yt, Fragment as ei } from "react";
3
3
  import { a3 as Xr, d as xs, E as ke, a4 as Zr, a5 as Qr, G as ys, a6 as ve, a7 as to, U as ni, Q as Ss, x as Oe, F as Me, T as ii, A as eo, v as no, a8 as io, a9 as so } from "./index-sVScpCFG.js";
4
4
  import { f as ks, s as vs, o as Cs, a as _s, b as Es, d as Ts, h as Ds, e as Is, c as si } from "./index-9A6-kVBM.js";
5
5
  import { Plugin as Ce, PluginKey as te, NodeSelection as ro, TextSelection as oo, SelectionRange as lo, Selection as co } from "@tiptap/pm/state";
6
- import { C as ao, T as ho } from "./Table-CT9R9Sdq.js";
6
+ import { C as ao, T as ho } from "./Table-9Y0Cg8Ab.js";
7
7
  import { createPortal as As } from "react-dom";
8
- import { k as Z, A as x } from "./index-BIqaogQg.js";
8
+ import { k as Z, A as x } from "./index-C3zg3DPB.js";
9
9
  import { MultipleColumnNode as Ti } from "./Column.js";
10
10
  import { u as G, p as je, V as Di } from "./index-0OnGZkVF.js";
11
- import { c as j, d as Os } from "./useButtonProps-C_bqxmHi.js";
11
+ import { c as j, d as Os } from "./useButtonProps-cMoicZgd.js";
12
12
  import { d as _e } from "./delete-node-IyVmiRbI.js";
13
- import { S as Tt } from "./separator-DtrEdjAF.js";
14
- import { C as uo, D as kn } from "./Drawer-Cfx115up.js";
13
+ import { C as uo, D as kn } from "./Drawer-D0yQ0wR7.js";
15
14
  import { Editor as fo, makeDropdownToolbar as po } from "easydrawer";
16
15
  import { s as Ms, i as Rs } from "./shortId-WJVkrvml.js";
17
- import { B as Jt } from "./button-CBO-WDXK.js";
18
- import { D as on, a as ln, b as cn, c as an, d as hn, e as go } from "./dialog-DSvgtlDI.js";
16
+ import { D as on, a as ln, b as cn, c as an, d as hn, e as go } from "./dialog-D_HCtKvc.js";
19
17
  import { d as Ns } from "./file-BLas99n7.js";
20
- import { u as ee, K as Nn, s as mo } from "./Katex-BYK-b9X2.js";
21
- import { I as Ve } from "./input-Bx4uo4gO.js";
22
- import { L as ae } from "./label-uKG7RzFU.js";
23
- import { P as Us, a as Ls, b as Ps } from "./popover-BVX8otO9.js";
24
- import { E as re, t as wo } from "./Excalidraw-CO93Tsmb.js";
25
- import { I as oe, g as bo } from "./Iframe-DwhclppJ.js";
18
+ import { B as Jt } from "./button-RnHbJfd-.js";
19
+ import { u as ee, K as Nn, s as mo } from "./Katex-Bvj469K1.js";
20
+ import { S as Tt } from "./separator-JaTTqb3J.js";
21
+ import { L as ae } from "./label-DsOYPjAo.js";
22
+ import { P as Us, a as Ls, b as Ps } from "./popover-B7ec5-u2.js";
23
+ import { I as Ve } from "./input-CvyMYMZG.js";
24
+ import { E as re, t as wo } from "./Excalidraw-CO4IRHmG.js";
25
+ import { I as oe, g as bo } from "./Iframe-BEO28NPs.js";
26
26
  import xo from "katex";
27
27
  import { Pencil as yo, Trash2 as So, Check as Ii } from "lucide-react";
28
- import { T as Un } from "./textarea-Ba9OOzba.js";
29
- import { L as Ai, a as ko, R as vo } from "./LinkEditBlock-DgrLUMsJ.js";
28
+ import { T as Un } from "./textarea-BdeLXbp8.js";
29
+ import { L as Ai, a as ko, R as vo } from "./LinkEditBlock-DjXUEubR.js";
30
30
  import { Image as Co } from "./Image.js";
31
31
  import { ImageGif as _o } from "./ImageGif.js";
32
32
  import { Video as Eo } from "./Video.js";
@@ -37,17 +37,17 @@ import "./index-DmPwbBqm.js";
37
37
  import { RichTextColor as Io } from "./Color.js";
38
38
  import { RichTextHighlight as Ao } from "./Highlight.js";
39
39
  import { RichTextItalic as Oo } from "./Italic.js";
40
- import { r as Mo } from "./SlashCommandNodeView-BpNNU7Sm.js";
40
+ import { r as Mo } from "./SlashCommandNodeView-CcqL8ymb.js";
41
41
  import { RichTextStrike as Ro } from "./Strike.js";
42
42
  import { RichTextAlign as No, TextAlign as Uo } from "./TextAlign.js";
43
43
  import { RichTextUnderline as Lo } from "./TextUnderline.js";
44
- import { I as Q } from "./Icon-D7GJZzoa.js";
45
- import { T as Oi, F as Po } from "./Twitter-mowilxRd.js";
44
+ import { I as Q } from "./Icon-DRuJhcHK.js";
45
+ import { T as Oi, F as Po } from "./Twitter-DWwd0vHR.js";
46
46
  import { DecorationSet as Mi, Decoration as Bo } from "@tiptap/pm/view";
47
47
  import { NodeRange as Vo } from "@tiptap/pm/model";
48
- import { D as Ho, a as $o, b as Fo, f as mt, d as zo, g as Ri, h as Ni, i as Ui, j as Li } from "./dropdown-menu-B88Qn2KR.js";
49
- import { Clear as Wo } from "./Clear.js";
50
- import { I as Ko, a as Pi, s as Bi } from "./Indent-BOsymiZ7.js";
48
+ import { Clear as Ho } from "./Clear.js";
49
+ import { I as $o, a as Ri, s as Ni } from "./Indent-CXurBbOr.js";
50
+ import { D as Fo, a as zo, b as Wo, f as mt, d as Ko, g as Ui, h as Li, i as Pi, j as Bi } from "./dropdown-menu-66q7Ofc5.js";
51
51
  function jo(e, t) {
52
52
  const n = Math.min(e.top, t.top), i = Math.max(e.bottom, t.bottom), s = Math.min(e.left, t.left), o = Math.max(e.right, t.right) - s, l = i - n, c = s, a = n;
53
53
  return new DOMRect(c, a, o, l);
@@ -80,8 +80,8 @@ var Yo = class {
80
80
  onUpdate: void 0,
81
81
  onDestroy: void 0
82
82
  }, this.shouldShow = ({ view: h, state: d, from: u, to: f }) => {
83
- const { doc: g, selection: m } = d, { empty: b } = m, w = !g.textBetween(u, f).length && Xr(d.selection), D = this.element.contains(document.activeElement);
84
- return !(!(h.hasFocus() || D) || b || w || !this.editor.isEditable);
83
+ const { doc: g, selection: m } = d, { empty: w } = m, b = !g.textBetween(u, f).length && Xr(d.selection), M = this.element.contains(document.activeElement);
84
+ return !(!(h.hasFocus() || M) || w || b || !this.editor.isEditable);
85
85
  }, this.mousedownHandler = () => {
86
86
  this.preventHide = !0;
87
87
  }, this.dragstartHandler = () => {
@@ -409,18 +409,18 @@ var et = bs.forwardRef(
409
409
  console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
410
410
  return;
411
411
  }
412
- const b = d.current;
413
- b.style.visibility = "hidden", b.style.position = "absolute";
414
- const w = Bs({
412
+ const w = d.current;
413
+ w.style.visibility = "hidden", w.style.position = "absolute";
414
+ const b = Bs({
415
415
  ...m.current,
416
416
  editor: f,
417
- element: b
417
+ element: w
418
418
  });
419
- f.registerPlugin(w);
420
- const D = m.current.pluginKey;
419
+ f.registerPlugin(b);
420
+ const M = m.current.pluginKey;
421
421
  return () => {
422
- f.unregisterPlugin(D), window.requestAnimationFrame(() => {
423
- b.parentNode && b.parentNode.removeChild(b);
422
+ f.unregisterPlugin(M), window.requestAnimationFrame(() => {
423
+ w.parentNode && w.parentNode.removeChild(w);
424
424
  });
425
425
  };
426
426
  }, [f]), As(/* @__PURE__ */ p("div", { ...a, children: c }), d.current);
@@ -459,7 +459,7 @@ bs.forwardRef(
459
459
  }
460
460
  );
461
461
  function Gd() {
462
- const e = Z(), t = j(), { t: n } = G(), i = R(() => t.isActive(Ti.name), [t]), s = R(() => _e(Ti.name, t), [t]), r = R(() => t.chain().focus().addColBefore().run(), [t]), o = R(() => t.chain().focus().addColAfter().run(), [t]), l = R(() => t.chain().focus().deleteCol().run(), [t]);
462
+ const e = Z(), t = j(), { t: n } = G(), i = L(() => t.isActive(Ti.name), [t]), s = L(() => _e(Ti.name, t), [t]), r = L(() => t.chain().focus().addColBefore().run(), [t]), o = L(() => t.chain().focus().addColAfter().run(), [t]), l = L(() => t.chain().focus().deleteCol().run(), [t]);
463
463
  return e ? /* @__PURE__ */ p(
464
464
  et,
465
465
  {
@@ -502,7 +502,7 @@ function Gd() {
502
502
  )
503
503
  ] })
504
504
  }
505
- ) : /* @__PURE__ */ p(O, {});
505
+ ) : /* @__PURE__ */ p(I, {});
506
506
  }
507
507
  function Jo(e, t) {
508
508
  const n = ["size-small", "size-medium", "size-large"], i = [
@@ -817,15 +817,15 @@ function cl({ editor: e, attrs: t, extension: n }) {
817
817
  const d = async () => {
818
818
  if (r.current) {
819
819
  const E = r.current.toSVG(), S = E.outerHTML, k = `drawer-${Ms()}.svg`;
820
- let U = Rs(E.outerHTML);
820
+ let N = Rs(E.outerHTML);
821
821
  if (a) {
822
- const H = Ns(U, k);
823
- U = await a(H);
822
+ const H = Ns(N, k);
823
+ N = await a(H);
824
824
  }
825
825
  e == null || e.chain().focus().setDrawer(
826
826
  {
827
827
  type: "drawer",
828
- src: U,
828
+ src: N,
829
829
  alt: encodeURIComponent(S),
830
830
  width: 426,
831
831
  height: 212
@@ -846,16 +846,16 @@ function cl({ editor: e, attrs: t, extension: n }) {
846
846
  }, m = (E) => {
847
847
  const S = o.current.getWidgetById("shape");
848
848
  S && S.setShapeType(E);
849
- }, b = (E) => {
849
+ }, w = (E) => {
850
850
  const S = r.current.toolController.getPrimaryTools()[5], k = o.current.getWidgetById("shape");
851
851
  S && k && (S.setColor(E), k.serializeState());
852
- }, w = (E) => {
852
+ }, b = (E) => {
853
853
  const S = r.current.toolController.getPrimaryTools()[5], k = o.current.getWidgetById("shape");
854
854
  S && k && (S.setThickness(E), k.serializeState());
855
- }, D = (E) => {
855
+ }, M = (E) => {
856
856
  const S = r.current.toolController.getPrimaryTools()[5], k = o.current.getWidgetById("shape");
857
857
  S && k && (S.setBorderColor(E), k.serializeState());
858
- }, I = () => {
858
+ }, A = () => {
859
859
  if (le) {
860
860
  for (; r.current.history.redoStackSize > 0; )
861
861
  r.current.history.redo();
@@ -891,21 +891,21 @@ function cl({ editor: e, attrs: t, extension: n }) {
891
891
  /* @__PURE__ */ p(
892
892
  uo,
893
893
  {
894
- changeBorderColorShape: D,
895
- changeColorShape: b,
894
+ changeBorderColorShape: M,
895
+ changeColorShape: w,
896
896
  changeShape: m,
897
897
  onClear: () => {
898
898
  if (!le) {
899
899
  for (; r.current.history.undoStackSize > 0; )
900
- I();
900
+ A();
901
901
  le = !0;
902
902
  }
903
903
  },
904
904
  onRedo: () => {
905
905
  le || r.current.history.redo();
906
906
  },
907
- onThicknessChange: w,
908
- onUndo: I,
907
+ onThicknessChange: b,
908
+ onUndo: A,
909
909
  refEditor: r,
910
910
  setColorHighlight: g,
911
911
  setColorPen: u,
@@ -942,7 +942,7 @@ function al({ item: e, disabled: t, editor: n }) {
942
942
  disabled: t || ((s = e == null ? void 0 : e.componentProps) == null ? void 0 : s.disabled),
943
943
  editor: n
944
944
  }
945
- ) }) : /* @__PURE__ */ p(O, {});
945
+ ) }) : /* @__PURE__ */ p(I, {});
946
946
  }
947
947
  function Jd() {
948
948
  const { lang: e, t } = G(), n = Z(), i = j(), s = ee(i, kn.name), r = Os(kn.name), o = ({ editor: c }) => {
@@ -975,9 +975,9 @@ function Jd() {
975
975
  item: c
976
976
  },
977
977
  `bubbleMenu-drawer-${a}`
978
- )) }) : /* @__PURE__ */ p(O, {})
978
+ )) }) : /* @__PURE__ */ p(I, {})
979
979
  }
980
- ) : /* @__PURE__ */ p(O, {});
980
+ ) : /* @__PURE__ */ p(I, {});
981
981
  }
982
982
  const Hs = ({ width: e, maxWidth: t, height: n, onOk: i, children: s }) => {
983
983
  const { t: r } = G(), [o, l] = F({
@@ -1062,14 +1062,14 @@ function qd() {
1062
1062
  createUser: "",
1063
1063
  width: 0,
1064
1064
  height: 0
1065
- }), { defaultShowPicker: r, createUser: o, width: l, height: c } = s, a = R(
1065
+ }), { defaultShowPicker: r, createUser: o, width: l, height: c } = s, a = L(
1066
1066
  (f) => {
1067
1067
  t.chain().updateAttributes(re.name, f).setNodeSelection(t.state.selection.from).focus().run();
1068
1068
  },
1069
1069
  [t]
1070
- ), h = R(() => {
1070
+ ), h = L(() => {
1071
1071
  wo({ ...s, editor: t });
1072
- }, [t, s]), d = R(() => t.isActive(re.name), [t]), u = R(() => _e(re.name, t), [t]);
1072
+ }, [t, s]), d = L(() => t.isActive(re.name), [t]), u = L(() => _e(re.name, t), [t]);
1073
1073
  return at(() => {
1074
1074
  r && (h(), t.chain().updateAttributes(re.name, { defaultShowPicker: !1 }).focus().run());
1075
1075
  }, [o, r, t, h]), e ? /* @__PURE__ */ p(
@@ -1114,7 +1114,7 @@ function qd() {
1114
1114
  )
1115
1115
  ] })
1116
1116
  }
1117
- ) : /* @__PURE__ */ p(O, {});
1117
+ ) : /* @__PURE__ */ p(I, {});
1118
1118
  }
1119
1119
  function Xd() {
1120
1120
  const e = Z(), t = j(), { t: n } = G(), { width: i, height: s, src: r } = ee(t, oe.name, {
@@ -1122,123 +1122,117 @@ function Xd() {
1122
1122
  height: 0,
1123
1123
  src: "",
1124
1124
  defaultShowPicker: !1
1125
- }), [o, l] = F(!1), [c, a] = F(""), h = R((w) => {
1126
- var D;
1127
- (D = w == null ? void 0 : w.preventDefault) == null || D.call(w), l(!1);
1125
+ }), [o, l] = F(!1), [c, a] = F(""), h = L((w) => {
1126
+ var b;
1127
+ (b = w == null ? void 0 : w.preventDefault) == null || b.call(w), l(!1);
1128
1128
  }, [l]);
1129
1129
  at(() => {
1130
1130
  o && a(r);
1131
1131
  }, [o, r]);
1132
- const d = R((w) => {
1133
- var I;
1134
- (I = w == null ? void 0 : w.preventDefault) == null || I.call(w);
1135
- const D = bo(c);
1132
+ const d = L((w) => {
1133
+ var M;
1134
+ (M = w == null ? void 0 : w.preventDefault) == null || M.call(w);
1135
+ const b = bo(c);
1136
1136
  t.chain().updateAttributes(oe.name, {
1137
- src: (D == null ? void 0 : D.src) || c
1137
+ src: (b == null ? void 0 : b.src) || c
1138
1138
  }).setNodeSelection(t.state.selection.from).focus().run(), l(!1);
1139
- }, [t, c, l]), u = R(() => {
1139
+ }, [t, c, l]), u = L(() => {
1140
1140
  window.open(r, "_blank");
1141
- }, [r]), f = R(() => {
1142
- l(!0);
1143
- }, [l]), g = R(
1141
+ }, [r]), f = L(
1144
1142
  (w) => {
1145
1143
  t.chain().updateAttributes(oe.name, w).setNodeSelection(t.state.selection.from).focus().run();
1146
1144
  },
1147
1145
  [t]
1148
- ), m = R(() => t.isActive(oe.name) && !r, [t, r]), b = R(() => _e(oe.name, t), [t]);
1149
- return e ? /* @__PURE__ */ y(O, { children: [
1150
- /* @__PURE__ */ p(
1151
- et,
1152
- {
1153
- editor: t,
1154
- options: { placement: "bottom", offset: 8, flip: !0 },
1155
- pluginKey: "RichTextBubbleIframe",
1156
- shouldShow: m,
1157
- children: /* @__PURE__ */ y("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: [
1158
- /* @__PURE__ */ p(
1159
- x,
1160
- {
1161
- action: u,
1162
- icon: "Eye",
1163
- tooltip: "Visit Link"
1164
- }
1165
- ),
1166
- /* @__PURE__ */ p(
1167
- x,
1168
- {
1169
- action: f,
1170
- icon: "Pencil",
1171
- tooltip: "Open Edit Link"
1172
- }
1173
- ),
1174
- /* @__PURE__ */ p(
1175
- Hs,
1176
- {
1177
- height: s,
1178
- onOk: g,
1179
- width: i,
1180
- children: /* @__PURE__ */ p(
1146
+ ), g = L(() => t.isActive(oe.name) && !r, [t, r]), m = L(() => _e(oe.name, t), [t]);
1147
+ return e ? /* @__PURE__ */ p(I, { children: /* @__PURE__ */ p(
1148
+ et,
1149
+ {
1150
+ editor: t,
1151
+ options: { placement: "bottom", offset: 8, flip: !0 },
1152
+ pluginKey: "RichTextBubbleIframe",
1153
+ shouldShow: g,
1154
+ children: /* @__PURE__ */ y("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: [
1155
+ /* @__PURE__ */ p(
1156
+ x,
1157
+ {
1158
+ action: u,
1159
+ icon: "Eye",
1160
+ tooltip: "Visit Link"
1161
+ }
1162
+ ),
1163
+ /* @__PURE__ */ y(
1164
+ on,
1165
+ {
1166
+ onOpenChange: l,
1167
+ open: o,
1168
+ children: [
1169
+ /* @__PURE__ */ p(ln, { asChild: !0, children: /* @__PURE__ */ p(
1181
1170
  x,
1182
1171
  {
1183
- icon: "Settings",
1184
- tooltip: n("editor.settings")
1172
+ icon: "Pencil",
1173
+ tooltip: "Open Edit Link"
1185
1174
  }
1186
- )
1187
- }
1188
- ),
1189
- /* @__PURE__ */ p(
1190
- x,
1191
- {
1192
- action: b,
1193
- icon: "Trash2",
1194
- tooltip: n("editor.delete")
1195
- }
1196
- )
1197
- ] })
1198
- }
1199
- ),
1200
- /* @__PURE__ */ y(
1201
- on,
1202
- {
1203
- onOpenChange: l,
1204
- open: o,
1205
- children: [
1206
- /* @__PURE__ */ p(ln, {}),
1207
- /* @__PURE__ */ y(cn, { children: [
1208
- /* @__PURE__ */ p(go, { children: /* @__PURE__ */ p(an, { children: "Edit Link Iframe" }) }),
1209
- /* @__PURE__ */ p(
1210
- Ve,
1175
+ ) }),
1176
+ /* @__PURE__ */ y(cn, { children: [
1177
+ /* @__PURE__ */ p(go, { children: /* @__PURE__ */ p(an, { children: "Edit Link Iframe" }) }),
1178
+ /* @__PURE__ */ p(
1179
+ Ve,
1180
+ {
1181
+ autoFocus: !0,
1182
+ onInput: (w) => a(w.target.value),
1183
+ placeholder: "Enter link",
1184
+ type: "url",
1185
+ value: c
1186
+ }
1187
+ ),
1188
+ /* @__PURE__ */ y(hn, { children: [
1189
+ /* @__PURE__ */ p(
1190
+ Jt,
1191
+ {
1192
+ onClick: h,
1193
+ type: "button",
1194
+ children: "Cancel"
1195
+ }
1196
+ ),
1197
+ /* @__PURE__ */ p(
1198
+ Jt,
1199
+ {
1200
+ onClick: d,
1201
+ type: "button",
1202
+ children: "OK"
1203
+ }
1204
+ )
1205
+ ] })
1206
+ ] })
1207
+ ]
1208
+ }
1209
+ ),
1210
+ /* @__PURE__ */ p(
1211
+ Hs,
1212
+ {
1213
+ height: s,
1214
+ onOk: f,
1215
+ width: i,
1216
+ children: /* @__PURE__ */ p(
1217
+ x,
1211
1218
  {
1212
- autoFocus: !0,
1213
- onInput: (w) => a(w.target.value),
1214
- placeholder: "Enter link",
1215
- type: "url",
1216
- value: c
1219
+ icon: "Settings",
1220
+ tooltip: n("editor.settings")
1217
1221
  }
1218
- ),
1219
- /* @__PURE__ */ y(hn, { children: [
1220
- /* @__PURE__ */ p(
1221
- Jt,
1222
- {
1223
- onClick: h,
1224
- type: "button",
1225
- children: "Cancel"
1226
- }
1227
- ),
1228
- /* @__PURE__ */ p(
1229
- Jt,
1230
- {
1231
- onClick: d,
1232
- type: "button",
1233
- children: "OK"
1234
- }
1235
- )
1236
- ] })
1237
- ] })
1238
- ]
1239
- }
1240
- )
1241
- ] }) : /* @__PURE__ */ p(O, {});
1222
+ )
1223
+ }
1224
+ ),
1225
+ /* @__PURE__ */ p(
1226
+ x,
1227
+ {
1228
+ action: m,
1229
+ icon: "Trash2",
1230
+ tooltip: n("editor.delete")
1231
+ }
1232
+ )
1233
+ ] })
1234
+ }
1235
+ ) }) : /* @__PURE__ */ p(I, {});
1242
1236
  }
1243
1237
  function dl({
1244
1238
  children: e,
@@ -1252,7 +1246,7 @@ function dl({
1252
1246
  at(() => {
1253
1247
  t && (a(decodeURIComponent(o || "")), d(decodeURIComponent(l || "")));
1254
1248
  }, [t]);
1255
- const u = R(() => {
1249
+ const u = L(() => {
1256
1250
  s.chain().focus().setKatex({ text: encodeURIComponent(c), macros: encodeURIComponent(h) }).run(), a(""), d(""), n(!1);
1257
1251
  }, [s, c, h, n]), f = yt(() => {
1258
1252
  try {
@@ -1342,7 +1336,7 @@ function dl({
1342
1336
  );
1343
1337
  }
1344
1338
  function Zd() {
1345
- const e = Z(), t = j(), [n, i] = F(!1), s = R(() => t.isActive(Nn.name), [t]), r = R(() => _e(Nn.name, t), [t]);
1339
+ const e = Z(), t = j(), [n, i] = F(!1), s = L(() => t.isActive(Nn.name), [t]), r = L(() => _e(Nn.name, t), [t]);
1346
1340
  return e ? /* @__PURE__ */ p(
1347
1341
  et,
1348
1342
  {
@@ -1376,7 +1370,7 @@ function Zd() {
1376
1370
  )
1377
1371
  ] })
1378
1372
  }
1379
- ) : /* @__PURE__ */ p(O, {});
1373
+ ) : /* @__PURE__ */ p(I, {});
1380
1374
  }
1381
1375
  function ul(e) {
1382
1376
  const { t } = G();
@@ -1418,8 +1412,8 @@ function ul(e) {
1418
1412
  ] });
1419
1413
  }
1420
1414
  function Qd() {
1421
- const e = Z(), t = j(), [n, i] = F(!1), s = ee(t, Ai.name), r = s == null ? void 0 : s.href, o = R(({ editor: h }) => h.isActive(Ai.name), []), l = (h, d, u) => {
1422
- const f = t.state.selection, { from: g } = f, m = (d == null ? void 0 : d.length) ?? 0, b = g + m;
1415
+ const e = Z(), t = j(), [n, i] = F(!1), s = ee(t, Ai.name), r = s == null ? void 0 : s.href, o = L(({ editor: h }) => h.isActive(Ai.name), []), l = (h, d, u) => {
1416
+ const f = t.state.selection, { from: g } = f, m = (d == null ? void 0 : d.length) ?? 0, w = g + m;
1423
1417
  t.chain().extendMarkRange("link").insertContent({
1424
1418
  type: "text",
1425
1419
  text: d,
@@ -1432,8 +1426,8 @@ function Qd() {
1432
1426
  }
1433
1427
  }
1434
1428
  ]
1435
- }).setLink({ href: h }).setTextSelection({ from: g, to: b }).focus().run(), i(!1);
1436
- }, c = R(() => {
1429
+ }).setLink({ href: h }).setTextSelection({ from: g, to: w }).focus().run(), i(!1);
1430
+ }, c = L(() => {
1437
1431
  t.chain().extendMarkRange("link").unsetLink().focus().run(), i(!1);
1438
1432
  }, [t]), a = () => {
1439
1433
  i(!1);
@@ -1445,7 +1439,7 @@ function Qd() {
1445
1439
  options: { placement: "bottom", offset: 8, flip: !0 },
1446
1440
  pluginKey: "RichTextBubbleLink",
1447
1441
  shouldShow: o,
1448
- children: /* @__PURE__ */ p(O, { children: n ? /* @__PURE__ */ p(
1442
+ children: /* @__PURE__ */ p(I, { children: n ? /* @__PURE__ */ p(
1449
1443
  "div",
1450
1444
  {
1451
1445
  className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none",
@@ -1476,7 +1470,7 @@ function Qd() {
1476
1470
  }
1477
1471
  ) })
1478
1472
  }
1479
- ) : /* @__PURE__ */ p(O, {});
1473
+ ) : /* @__PURE__ */ p(I, {});
1480
1474
  }
1481
1475
  function ri({ item: e, disabled: t, editor: n }) {
1482
1476
  const i = e.component;
@@ -1493,7 +1487,7 @@ function ri({ item: e, disabled: t, editor: n }) {
1493
1487
  disabled: t || (e == null ? void 0 : e.componentdisabled),
1494
1488
  editor: n
1495
1489
  }
1496
- ) }) : /* @__PURE__ */ p(O, {});
1490
+ ) }) : /* @__PURE__ */ p(I, {});
1497
1491
  }
1498
1492
  function fl(e) {
1499
1493
  return e.type.name === Co.name;
@@ -1527,9 +1521,9 @@ function tu() {
1527
1521
  item: o
1528
1522
  },
1529
1523
  `bubbleMenu-image-${l}`
1530
- )) }) : /* @__PURE__ */ p(O, {})
1524
+ )) }) : /* @__PURE__ */ p(I, {})
1531
1525
  }
1532
- ) : /* @__PURE__ */ p(O, {});
1526
+ ) : /* @__PURE__ */ p(I, {});
1533
1527
  }
1534
1528
  function eu() {
1535
1529
  const { lang: e, t } = G(), n = Z(), i = j(), s = ({ editor: o }) => {
@@ -1554,9 +1548,9 @@ function eu() {
1554
1548
  item: o
1555
1549
  },
1556
1550
  `bubbleMenu-image-gif-${l}`
1557
- )) }) : /* @__PURE__ */ p(O, {})
1551
+ )) }) : /* @__PURE__ */ p(I, {})
1558
1552
  }
1559
- ) : /* @__PURE__ */ p(O, {});
1553
+ ) : /* @__PURE__ */ p(I, {});
1560
1554
  }
1561
1555
  function nu() {
1562
1556
  const { t: e } = G(), t = Z(), n = j(), i = ({ editor: r }) => {
@@ -1581,39 +1575,39 @@ function nu() {
1581
1575
  item: r
1582
1576
  },
1583
1577
  `bubbleMenu-video-${o}`
1584
- )) }) : /* @__PURE__ */ p(O, {})
1578
+ )) }) : /* @__PURE__ */ p(I, {})
1585
1579
  }
1586
- ) : /* @__PURE__ */ p(O, {});
1580
+ ) : /* @__PURE__ */ p(I, {});
1587
1581
  }
1588
1582
  const Vi = `graph TB
1589
1583
  a-->b`, ml = ({ editor: e, attrs: t, extension: n }) => {
1590
- const { alt: i, align: s } = t, [r, o] = F(decodeURIComponent(i ?? Vi)), [l, c] = F(""), [a, h] = F(!1), d = Pt(null), [u, f] = F(null), g = n == null ? void 0 : n.options.upload, m = R(
1591
- (I) => {
1592
- I && import("mermaid").then((v) => {
1584
+ const { alt: i, align: s } = t, [r, o] = F(decodeURIComponent(i ?? Vi)), [l, c] = F(""), [a, h] = F(!1), d = Pt(null), [u, f] = F(null), g = n == null ? void 0 : n.options.upload, m = L(
1585
+ (A) => {
1586
+ A && import("mermaid").then((v) => {
1593
1587
  f(v.default);
1594
1588
  });
1595
1589
  },
1596
1590
  []
1597
- ), b = async (I) => {
1591
+ ), w = async (A) => {
1598
1592
  try {
1599
- const { svg: v } = await u.render("mermaid-svg", I);
1593
+ const { svg: v } = await u.render("mermaid-svg", A);
1600
1594
  c(v);
1601
1595
  } catch {
1602
1596
  c("");
1603
1597
  }
1604
- }, w = () => {
1598
+ }, b = () => {
1605
1599
  u.initialize({
1606
1600
  darkMode: !1,
1607
1601
  startOnLoad: !1,
1608
1602
  // fontFamily:'',
1609
1603
  fontSize: 12,
1610
1604
  theme: "base"
1611
- }), b(r);
1605
+ }), w(r);
1612
1606
  };
1613
1607
  return at(() => {
1614
- u && a && w();
1608
+ u && a && b();
1615
1609
  }, [u, a]), at(() => {
1616
- u && a && b(r);
1610
+ u && a && w(r);
1617
1611
  }, [u, r]), /* @__PURE__ */ y(
1618
1612
  on,
1619
1613
  {
@@ -1642,7 +1636,7 @@ a-->b`, ml = ({ editor: e, attrs: t, extension: n }) => {
1642
1636
  autoFocus: !0,
1643
1637
  className: "richtext-flex-1",
1644
1638
  defaultValue: Vi,
1645
- onChange: (I) => o(I.target.value),
1639
+ onChange: (A) => o(A.target.value),
1646
1640
  placeholder: "Text",
1647
1641
  required: !0,
1648
1642
  rows: 10,
@@ -1670,8 +1664,8 @@ a-->b`, ml = ({ editor: e, attrs: t, extension: n }) => {
1670
1664
  onClick: async () => {
1671
1665
  if (r !== "") {
1672
1666
  if (r) {
1673
- const I = d.current.querySelector("svg"), { width: v, height: P } = I.getBoundingClientRect(), E = `mermaid-${Ms()}.svg`;
1674
- let S = Rs(I.outerHTML);
1667
+ const A = d.current.querySelector("svg"), { width: v, height: P } = A.getBoundingClientRect(), E = `mermaid-${Ms()}.svg`;
1668
+ let S = Rs(A.outerHTML);
1675
1669
  if (g) {
1676
1670
  const k = Ns(S, E);
1677
1671
  S = await g(k);
@@ -1715,7 +1709,7 @@ function wl({ item: e, disabled: t, editor: n }) {
1715
1709
  disabled: t || ((s = e == null ? void 0 : e.componentProps) == null ? void 0 : s.disabled),
1716
1710
  editor: n
1717
1711
  }
1718
- ) }) : /* @__PURE__ */ p(O, {});
1712
+ ) }) : /* @__PURE__ */ p(I, {});
1719
1713
  }
1720
1714
  function bl(e) {
1721
1715
  return e.type.name === Ln.name;
@@ -1751,12 +1745,12 @@ function iu() {
1751
1745
  item: c
1752
1746
  },
1753
1747
  `bubbleMenu-mermaid-${a}`
1754
- )) }) : /* @__PURE__ */ p(O, {})
1748
+ )) }) : /* @__PURE__ */ p(I, {})
1755
1749
  }
1756
- ) : /* @__PURE__ */ p(O, {});
1750
+ ) : /* @__PURE__ */ p(I, {});
1757
1751
  }
1758
1752
  function su({ hiddenActions: e = [] }) {
1759
- var m, b, w, D, I, v, P, E, S, k, U, H, nt, Mt, Rt, C, gt, Ae;
1753
+ var m, w, b, M, A, v, P, E, S, k, N, H, nt, Mt, Rt, C, gt, Ae;
1760
1754
  const { t } = G(), n = Z(), i = j(), s = ({ editor: Wt }) => to(Wt.view.state, ho.name), r = (Wt) => e.includes(Wt);
1761
1755
  function o() {
1762
1756
  i.chain().focus().addColumnBefore().run();
@@ -1797,7 +1791,7 @@ function su({ hiddenActions: e = [] }) {
1797
1791
  x,
1798
1792
  {
1799
1793
  action: o,
1800
- disabled: !((b = (m = i == null ? void 0 : i.can()) == null ? void 0 : m.addColumnBefore) != null && b.call(m)),
1794
+ disabled: !((w = (m = i == null ? void 0 : i.can()) == null ? void 0 : m.addColumnBefore) != null && w.call(m)),
1801
1795
  icon: "BetweenHorizonalEnd",
1802
1796
  tooltip: t("editor.table.menu.insertColumnBefore"),
1803
1797
  tooltipOptions: { sideOffset: 15 }
@@ -1807,7 +1801,7 @@ function su({ hiddenActions: e = [] }) {
1807
1801
  x,
1808
1802
  {
1809
1803
  action: l,
1810
- disabled: !((D = (w = i == null ? void 0 : i.can()) == null ? void 0 : w.addColumnAfter) != null && D.call(w)),
1804
+ disabled: !((M = (b = i == null ? void 0 : i.can()) == null ? void 0 : b.addColumnAfter) != null && M.call(b)),
1811
1805
  icon: "BetweenHorizonalStart",
1812
1806
  tooltip: t("editor.table.menu.insertColumnAfter"),
1813
1807
  tooltipOptions: { sideOffset: 15 }
@@ -1817,7 +1811,7 @@ function su({ hiddenActions: e = [] }) {
1817
1811
  x,
1818
1812
  {
1819
1813
  action: c,
1820
- disabled: !((v = i == null ? void 0 : (I = i.can()).deleteColumn) != null && v.call(I)),
1814
+ disabled: !((v = i == null ? void 0 : (A = i.can()).deleteColumn) != null && v.call(A)),
1821
1815
  icon: "DeleteColumn",
1822
1816
  tooltip: t("editor.table.menu.deleteColumn"),
1823
1817
  tooltipOptions: { sideOffset: 15 }
@@ -1854,7 +1848,7 @@ function su({ hiddenActions: e = [] }) {
1854
1848
  x,
1855
1849
  {
1856
1850
  action: d,
1857
- disabled: !((H = (U = i == null ? void 0 : i.can()) == null ? void 0 : U.deleteRow) != null && H.call(U)),
1851
+ disabled: !((H = (N = i == null ? void 0 : i.can()) == null ? void 0 : N.deleteRow) != null && H.call(N)),
1858
1852
  icon: "DeleteRow",
1859
1853
  tooltip: t("editor.table.menu.deleteRow"),
1860
1854
  tooltipOptions: { sideOffset: 15 }
@@ -1906,7 +1900,7 @@ function su({ hiddenActions: e = [] }) {
1906
1900
  )
1907
1901
  ] })
1908
1902
  }
1909
- ) : /* @__PURE__ */ p(O, {});
1903
+ ) : /* @__PURE__ */ p(I, {});
1910
1904
  }
1911
1905
  function xl() {
1912
1906
  const { t: e } = G(), [t, n] = F(!1), i = j(), s = yt(() => {
@@ -1936,7 +1930,7 @@ function xl() {
1936
1930
  {
1937
1931
  dataState: !!r,
1938
1932
  children: [
1939
- r ? /* @__PURE__ */ p(O, { children: r }) : /* @__PURE__ */ p(O, { children: e("editor.paragraph.tooltip") }),
1933
+ r ? /* @__PURE__ */ p(I, { children: r }) : /* @__PURE__ */ p(I, { children: e("editor.paragraph.tooltip") }),
1940
1934
  /* @__PURE__ */ p(
1941
1935
  Q,
1942
1936
  {
@@ -1998,7 +1992,7 @@ function xl() {
1998
1992
  );
1999
1993
  }
2000
1994
  function yl() {
2001
- return /* @__PURE__ */ y(O, { children: [
1995
+ return /* @__PURE__ */ y(I, { children: [
2002
1996
  /* @__PURE__ */ p(xl, {}),
2003
1997
  /* @__PURE__ */ p(
2004
1998
  Tt,
@@ -2037,14 +2031,14 @@ function ru({ buttonBubble: e }) {
2037
2031
  options: { placement: "bottom", offset: 8, flip: !0 },
2038
2032
  pluginKey: "RichTextBubbleText",
2039
2033
  shouldShow: i,
2040
- children: e ? /* @__PURE__ */ p(O, { children: e }) : /* @__PURE__ */ p("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ p(yl, {}) })
2034
+ children: e ? /* @__PURE__ */ p(I, { children: e }) : /* @__PURE__ */ p("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ p(yl, {}) })
2041
2035
  }
2042
- ) : /* @__PURE__ */ p(O, {});
2036
+ ) : /* @__PURE__ */ p(I, {});
2043
2037
  }
2044
2038
  function ou() {
2045
- const { t: e } = G(), t = Z(), n = j(), [i, s] = F(!1), r = R(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
2039
+ const { t: e } = G(), t = Z(), n = j(), [i, s] = F(!1), r = L(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
2046
2040
  n.commands.updateTweet({ src: c }), s(!1);
2047
- }, l = R(() => _e(Oi.name, n), [n]);
2041
+ }, l = L(() => _e(Oi.name, n), [n]);
2048
2042
  return t ? /* @__PURE__ */ p(
2049
2043
  et,
2050
2044
  {
@@ -2052,7 +2046,7 @@ function ou() {
2052
2046
  options: { placement: "bottom", offset: 8, flip: !0 },
2053
2047
  pluginKey: "RichTextBubbleTwitter",
2054
2048
  shouldShow: r,
2055
- children: /* @__PURE__ */ p(O, { children: i ? /* @__PURE__ */ p("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ p(
2049
+ children: /* @__PURE__ */ p(I, { children: i ? /* @__PURE__ */ p("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ p(
2056
2050
  Po,
2057
2051
  {
2058
2052
  editor: n,
@@ -2081,7 +2075,7 @@ function ou() {
2081
2075
  )
2082
2076
  ] }) })
2083
2077
  }
2084
- ) : /* @__PURE__ */ p(O, {});
2078
+ ) : /* @__PURE__ */ p(I, {});
2085
2079
  }
2086
2080
  const lt = () => /* @__PURE__ */ new Map(), Pn = (e) => {
2087
2081
  const t = lt();
@@ -2378,7 +2372,7 @@ class fn {
2378
2372
  const ci = (e) => new fn(e), Yl = (e) => e.pos !== e.arr.length, Gl = (e, t) => {
2379
2373
  const n = new Uint8Array(e.arr.buffer, e.pos + e.arr.byteOffset, t);
2380
2374
  return e.pos += t, n;
2381
- }, it = (e) => Gl(e, N(e)), pe = (e) => e.arr[e.pos++], N = (e) => {
2375
+ }, it = (e) => Gl(e, R(e)), pe = (e) => e.arr[e.pos++], R = (e) => {
2382
2376
  let t = 0, n = 1;
2383
2377
  const i = e.arr.length;
2384
2378
  for (; e.pos < i; ) {
@@ -2403,7 +2397,7 @@ const ci = (e) => new fn(e), Yl = (e) => e.pos !== e.arr.length, Gl = (e, t) =>
2403
2397
  }
2404
2398
  throw Ws;
2405
2399
  }, Jl = (e) => {
2406
- let t = N(e);
2400
+ let t = R(e);
2407
2401
  if (t === 0)
2408
2402
  return "";
2409
2403
  {
@@ -2452,7 +2446,7 @@ const ci = (e) => new fn(e), Yl = (e) => e.pos !== e.arr.length, Gl = (e, t) =>
2452
2446
  Fn,
2453
2447
  // CASE 119: string
2454
2448
  (e) => {
2455
- const t = N(e), n = {};
2449
+ const t = R(e), n = {};
2456
2450
  for (let i = 0; i < t; i++) {
2457
2451
  const s = Fn(e);
2458
2452
  n[s] = Ye(e);
@@ -2460,7 +2454,7 @@ const ci = (e) => new fn(e), Yl = (e) => e.pos !== e.arr.length, Gl = (e, t) =>
2460
2454
  return n;
2461
2455
  },
2462
2456
  (e) => {
2463
- const t = N(e), n = [];
2457
+ const t = R(e), n = [];
2464
2458
  for (let i = 0; i < t; i++)
2465
2459
  n.push(Ye(e));
2466
2460
  return n;
@@ -2477,7 +2471,7 @@ class Yi extends fn {
2477
2471
  super(t), this.reader = n, this.s = null, this.count = 0;
2478
2472
  }
2479
2473
  read() {
2480
- return this.count === 0 && (this.s = this.reader(this), Yl(this) ? this.count = N(this) + 1 : this.count = -1), this.count--, /** @type {T} */
2474
+ return this.count === 0 && (this.s = this.reader(this), Yl(this) ? this.count = R(this) + 1 : this.count = -1), this.count--, /** @type {T} */
2481
2475
  this.s;
2482
2476
  }
2483
2477
  }
@@ -2492,7 +2486,7 @@ class Fe extends fn {
2492
2486
  if (this.count === 0) {
2493
2487
  this.s = ai(this);
2494
2488
  const t = Fs(this.s);
2495
- this.count = 1, t && (this.s = -this.s, this.count = N(this) + 2);
2489
+ this.count = 1, t && (this.s = -this.s, this.count = R(this) + 2);
2496
2490
  }
2497
2491
  return this.count--, /** @type {number} */
2498
2492
  this.s;
@@ -2511,7 +2505,7 @@ class Tn extends fn {
2511
2505
  read() {
2512
2506
  if (this.count === 0) {
2513
2507
  const t = ai(this), n = t & 1;
2514
- this.diff = St(t / 2), this.count = 1, n && (this.count = N(this) + 2);
2508
+ this.diff = St(t / 2), this.count = 1, n && (this.count = R(this) + 2);
2515
2509
  }
2516
2510
  return this.s += this.diff, this.count--, this.s;
2517
2511
  }
@@ -2817,10 +2811,10 @@ const At = (e, t, n) => t.clients.forEach((i, s) => {
2817
2811
  }
2818
2812
  });
2819
2813
  }, Fc = (e) => {
2820
- const t = new ne(), n = N(e.restDecoder);
2814
+ const t = new ne(), n = R(e.restDecoder);
2821
2815
  for (let i = 0; i < n; i++) {
2822
2816
  e.resetDsCurVal();
2823
- const s = N(e.restDecoder), r = N(e.restDecoder);
2817
+ const s = R(e.restDecoder), r = R(e.restDecoder);
2824
2818
  if (r > 0) {
2825
2819
  const o = kt(t.clients, s, () => (
2826
2820
  /** @type {Array<DeleteItem>} */
@@ -2832,10 +2826,10 @@ const At = (e, t, n) => t.clients.forEach((i, s) => {
2832
2826
  }
2833
2827
  return t;
2834
2828
  }, Xi = (e, t, n) => {
2835
- const i = new ne(), s = N(e.restDecoder);
2829
+ const i = new ne(), s = R(e.restDecoder);
2836
2830
  for (let r = 0; r < s; r++) {
2837
2831
  e.resetDsCurVal();
2838
- const o = N(e.restDecoder), l = N(e.restDecoder), c = n.clients.get(o) || [], a = B(n, o);
2832
+ const o = R(e.restDecoder), l = R(e.restDecoder), c = n.clients.get(o) || [], a = B(n, o);
2839
2833
  for (let h = 0; h < l; h++) {
2840
2834
  const d = e.readDsClock(), u = d + e.readDsLen();
2841
2835
  if (d < a) {
@@ -2882,7 +2876,7 @@ class Ft extends $s {
2882
2876
  */
2883
2877
  load() {
2884
2878
  const t = this._item;
2885
- t !== null && !this.shouldLoad && M(
2879
+ t !== null && !this.shouldLoad && O(
2886
2880
  /** @type {any} */
2887
2881
  t.parent.doc,
2888
2882
  (n) => {
@@ -2912,7 +2906,7 @@ class Ft extends $s {
2912
2906
  * @public
2913
2907
  */
2914
2908
  transact(t, n = null) {
2915
- return M(this, t, n);
2909
+ return O(this, t, n);
2916
2910
  }
2917
2911
  /**
2918
2912
  * Define a shared data type.
@@ -3052,7 +3046,7 @@ class Ft extends $s {
3052
3046
  /** @type {ContentDoc} */
3053
3047
  t.content
3054
3048
  );
3055
- n.doc = new Ft({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, M(
3049
+ n.doc = new Ft({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = t, O(
3056
3050
  /** @type {any} */
3057
3051
  t.parent.doc,
3058
3052
  (i) => {
@@ -3080,13 +3074,13 @@ class zc {
3080
3074
  * @return {number}
3081
3075
  */
3082
3076
  readDsClock() {
3083
- return this.dsCurrVal += N(this.restDecoder), this.dsCurrVal;
3077
+ return this.dsCurrVal += R(this.restDecoder), this.dsCurrVal;
3084
3078
  }
3085
3079
  /**
3086
3080
  * @return {number}
3087
3081
  */
3088
3082
  readDsLen() {
3089
- const t = N(this.restDecoder) + 1;
3083
+ const t = R(this.restDecoder) + 1;
3090
3084
  return this.dsCurrVal += t, t;
3091
3085
  }
3092
3086
  }
@@ -3095,7 +3089,7 @@ class Je extends zc {
3095
3089
  * @param {decoding.Decoder} decoder
3096
3090
  */
3097
3091
  constructor(t) {
3098
- super(t), this.keys = [], N(t), this.keyClockDecoder = new Tn(it(t)), this.clientDecoder = new Fe(it(t)), this.leftClockDecoder = new Tn(it(t)), this.rightClockDecoder = new Tn(it(t)), this.infoDecoder = new Yi(it(t), pe), this.stringDecoder = new ec(it(t)), this.parentInfoDecoder = new Yi(it(t), pe), this.typeRefDecoder = new Fe(it(t)), this.lenDecoder = new Fe(it(t));
3092
+ super(t), this.keys = [], R(t), this.keyClockDecoder = new Tn(it(t)), this.clientDecoder = new Fe(it(t)), this.leftClockDecoder = new Tn(it(t)), this.rightClockDecoder = new Tn(it(t)), this.infoDecoder = new Yi(it(t), pe), this.stringDecoder = new ec(it(t)), this.parentInfoDecoder = new Yi(it(t), pe), this.typeRefDecoder = new Fe(it(t)), this.lenDecoder = new Fe(it(t));
3099
3093
  }
3100
3094
  /**
3101
3095
  * @return {ID}
@@ -3426,10 +3420,10 @@ const Yc = (e, t, n, i) => {
3426
3420
  );
3427
3421
  });
3428
3422
  }, Gc = (e, t) => {
3429
- const n = lt(), i = N(e.restDecoder);
3423
+ const n = lt(), i = R(e.restDecoder);
3430
3424
  for (let s = 0; s < i; s++) {
3431
- const r = N(e.restDecoder), o = new Array(r), l = e.readClient();
3432
- let c = N(e.restDecoder);
3425
+ const r = R(e.restDecoder), o = new Array(r), l = e.readClient();
3426
+ let c = R(e.restDecoder);
3433
3427
  n.set(l, { i: 0, refs: o });
3434
3428
  for (let a = 0; a < r; a++) {
3435
3429
  const h = e.readInfo();
@@ -3440,12 +3434,12 @@ const Yc = (e, t, n, i) => {
3440
3434
  break;
3441
3435
  }
3442
3436
  case 10: {
3443
- const d = N(e.restDecoder);
3437
+ const d = R(e.restDecoder);
3444
3438
  o[a] = new rt(_(l, c), d), c += d;
3445
3439
  break;
3446
3440
  }
3447
3441
  default: {
3448
- const d = (h & (bt | Y)) === 0, u = new A(
3442
+ const d = (h & (bt | Y)) === 0, u = new D(
3449
3443
  _(l, c),
3450
3444
  null,
3451
3445
  // left
@@ -3505,7 +3499,7 @@ const Yc = (e, t, n, i) => {
3505
3499
  const d = /* @__PURE__ */ new Map(), u = () => {
3506
3500
  for (const f of i) {
3507
3501
  const g = f.id.client, m = n.get(g);
3508
- m ? (m.i--, l.clients.set(g, m.refs.slice(m.i)), n.delete(g), m.i = 0, m.refs = []) : l.clients.set(g, [f]), s = s.filter((b) => b !== g);
3502
+ m ? (m.i--, l.clients.set(g, m.refs.slice(m.i)), n.delete(g), m.i = 0, m.refs = []) : l.clients.set(g, [f]), s = s.filter((w) => w !== g);
3509
3503
  }
3510
3504
  i.length = 0;
3511
3505
  };
@@ -3518,18 +3512,18 @@ const Yc = (e, t, n, i) => {
3518
3512
  const m = h.getMissing(e, t);
3519
3513
  if (m !== null) {
3520
3514
  i.push(h);
3521
- const b = n.get(
3515
+ const w = n.get(
3522
3516
  /** @type {number} */
3523
3517
  m
3524
3518
  ) || { refs: [], i: 0 };
3525
- if (b.refs.length === b.i)
3519
+ if (w.refs.length === w.i)
3526
3520
  a(
3527
3521
  /** @type {number} */
3528
3522
  m,
3529
3523
  B(t, m)
3530
3524
  ), u();
3531
3525
  else {
3532
- h = b.refs[b.i++];
3526
+ h = w.refs[w.i++];
3533
3527
  continue;
3534
3528
  }
3535
3529
  } else (g === 0 || g < h.length) && (h.integrate(e, g), d.set(h.id.client, h.id.clock + h.length));
@@ -3553,7 +3547,7 @@ const Yc = (e, t, n, i) => {
3553
3547
  return ar(f, l, /* @__PURE__ */ new Map()), T(f.restEncoder, 0), { missing: c, update: f.toUint8Array() };
3554
3548
  }
3555
3549
  return null;
3556
- }, qc = (e, t) => ar(e, t.doc.store, t.beforeState), Xc = (e, t, n, i = new Je(e)) => M(t, (s) => {
3550
+ }, qc = (e, t) => ar(e, t.doc.store, t.beforeState), Xc = (e, t, n, i = new Je(e)) => O(t, (s) => {
3557
3551
  s.local = !1;
3558
3552
  let r = !1;
3559
3553
  const o = s.doc, l = o.store, c = Gc(i, o), a = Jc(s, l, c), h = l.pendingStructs;
@@ -3575,7 +3569,7 @@ const Yc = (e, t, n, i) => {
3575
3569
  const d = Xi(i, s, l);
3576
3570
  if (l.pendingDs) {
3577
3571
  const u = new Je(ci(l.pendingDs));
3578
- N(u.restDecoder);
3572
+ R(u.restDecoder);
3579
3573
  const f = Xi(u, s, l);
3580
3574
  d && f ? l.pendingDs = os([d, f]) : l.pendingDs = d || f;
3581
3575
  } else
@@ -3678,7 +3672,7 @@ const ta = (e, t, n = 0) => new Qc(e, t, n), Ne = (e, t, n) => {
3678
3672
  if (B(i, s.client) <= s.clock)
3679
3673
  return null;
3680
3674
  const h = n ? Jn(i, s) : ea(i, s), d = h.item;
3681
- if (!(d instanceof A))
3675
+ if (!(d instanceof D))
3682
3676
  return null;
3683
3677
  if (c = /** @type {AbstractType<any>} */
3684
3678
  d.parent, c._item === null || !c._item.deleted) {
@@ -3694,7 +3688,7 @@ const ta = (e, t, n = 0) => new Qc(e, t, n), Ne = (e, t, n) => {
3694
3688
  if (B(i, r.client) <= r.clock)
3695
3689
  return null;
3696
3690
  const { item: h } = n ? Jn(i, r) : { item: Yt(i, r) };
3697
- if (h instanceof A && h.content instanceof ut)
3691
+ if (h instanceof D && h.content instanceof ut)
3698
3692
  c = h.content.type;
3699
3693
  else
3700
3694
  return null;
@@ -3770,7 +3764,7 @@ const gn = (e) => {
3770
3764
  ia
3771
3765
  ), Yn = (e, t, n) => {
3772
3766
  const i = ht(t, n), s = t[i];
3773
- return s.id.clock < n && s instanceof A ? (t.splice(i + 1, 0, en(e, s, n - s.id.clock)), i + 1) : i;
3767
+ return s.id.clock < n && s instanceof D ? (t.splice(i + 1, 0, en(e, s, n - s.id.clock)), i + 1) : i;
3774
3768
  }, J = (e, t) => {
3775
3769
  const n = (
3776
3770
  /** @type {Array<Item>} */
@@ -3812,7 +3806,7 @@ const ns = (e, t) => t.deleteSet.clients.size === 0 && !kl(t.afterState, (n, i)
3812
3806
  let n = e[t], i = e[t - 1], s = t;
3813
3807
  for (; s > 0; n = i, i = e[--s - 1]) {
3814
3808
  if (i.deleted === n.deleted && i.constructor === n.constructor && i.mergeWith(n)) {
3815
- n instanceof A && n.parentSub !== null && /** @type {AbstractType<any>} */
3809
+ n instanceof D && n.parentSub !== null && /** @type {AbstractType<any>} */
3816
3810
  n.parent._map.get(n.parentSub) === n && n.parent._map.set(
3817
3811
  n.parentSub,
3818
3812
  /** @type {Item} */
@@ -3836,7 +3830,7 @@ const ns = (e, t) => t.deleteSet.clients.size === 0 && !kl(t.afterState, (n, i)
3836
3830
  const d = r[a];
3837
3831
  if (l.clock + l.len <= d.id.clock)
3838
3832
  break;
3839
- d instanceof A && d.deleted && !d.keep && n(d) && d.gc(t, !1);
3833
+ d instanceof D && d.deleted && !d.keep && n(d) && d.gc(t, !1);
3840
3834
  }
3841
3835
  }
3842
3836
  }
@@ -3904,7 +3898,7 @@ const ns = (e, t) => t.deleteSet.clients.size === 0 && !kl(t.afterState, (n, i)
3904
3898
  }), a.forEach((h) => i.subdocs.delete(h)), i.emit("subdocs", [{ loaded: c, added: l, removed: a }, i, n]), a.forEach((h) => h.destroy())), e.length <= t + 1 ? (i._transactionCleanups = [], i.emit("afterAllTransactions", [i, e])) : gr(e, t + 1);
3905
3899
  }
3906
3900
  }
3907
- }, M = (e, t, n = null, i = !0) => {
3901
+ }, O = (e, t, n = null, i = !0) => {
3908
3902
  const s = e._transactionCleanups;
3909
3903
  let r = !1, o = null;
3910
3904
  e._transaction === null && (r = !0, e._transaction = new ra(e, n, i), s.push(e._transaction), s.length === 1 && e.emit("beforeAllTransactions", [e]), e.emit("beforeTransaction", [e._transaction, e]));
@@ -3929,7 +3923,7 @@ class ca {
3929
3923
  }
3930
3924
  const ss = (e, t, n) => {
3931
3925
  At(e, n.deletions, (i) => {
3932
- i instanceof A && t.scope.some((s) => s === e.doc || we(
3926
+ i instanceof D && t.scope.some((s) => s === e.doc || we(
3933
3927
  /** @type {AbstractType<any>} */
3934
3928
  s,
3935
3929
  i
@@ -3938,7 +3932,7 @@ const ss = (e, t, n) => {
3938
3932
  }, rs = (e, t, n) => {
3939
3933
  let i = null;
3940
3934
  const s = e.doc, r = e.scope;
3941
- M(s, (l) => {
3935
+ O(s, (l) => {
3942
3936
  for (; t.length > 0 && e.currStackItem === null; ) {
3943
3937
  const c = s.store, a = (
3944
3938
  /** @type {StackItem} */
@@ -3946,7 +3940,7 @@ const ss = (e, t, n) => {
3946
3940
  ), h = /* @__PURE__ */ new Set(), d = [];
3947
3941
  let u = !1;
3948
3942
  At(l, a.insertions, (f) => {
3949
- if (f instanceof A) {
3943
+ if (f instanceof D) {
3950
3944
  if (f.redone !== null) {
3951
3945
  let { item: g, diff: m } = Jn(c, f.id);
3952
3946
  m > 0 && (g = J(l, _(g.id.client, g.id.clock + m))), f = g;
@@ -3959,7 +3953,7 @@ const ss = (e, t, n) => {
3959
3953
  )) && d.push(f);
3960
3954
  }
3961
3955
  }), At(l, a.deletions, (f) => {
3962
- f instanceof A && r.some((g) => g === l.doc || we(
3956
+ f instanceof D && r.some((g) => g === l.doc || we(
3963
3957
  /** @type {AbstractType<any>} */
3964
3958
  g,
3965
3959
  f
@@ -4002,35 +3996,35 @@ class mr extends $s {
4002
3996
  )
4003
3997
  } = {}) {
4004
3998
  super(), this.scope = [], this.doc = l, this.addToScope(t), this.deleteFilter = s, r.add(this), this.trackedOrigins = r, this.captureTransaction = i, this.undoStack = [], this.redoStack = [], this.undoing = !1, this.redoing = !1, this.currStackItem = null, this.lastChange = 0, this.ignoreRemoteMapChanges = o, this.captureTimeout = n, this.afterTransactionHandler = (c) => {
4005
- if (!this.captureTransaction(c) || !this.scope.some((b) => c.changedParentTypes.has(
3999
+ if (!this.captureTransaction(c) || !this.scope.some((w) => c.changedParentTypes.has(
4006
4000
  /** @type {AbstractType<any>} */
4007
- b
4008
- ) || b === this.doc) || !this.trackedOrigins.has(c.origin) && (!c.origin || !this.trackedOrigins.has(c.origin.constructor)))
4001
+ w
4002
+ ) || w === this.doc) || !this.trackedOrigins.has(c.origin) && (!c.origin || !this.trackedOrigins.has(c.origin.constructor)))
4009
4003
  return;
4010
4004
  const a = this.undoing, h = this.redoing, d = a ? this.redoStack : this.undoStack;
4011
4005
  a ? this.stopCapturing() : h || this.clear(!1, !0);
4012
4006
  const u = new ne();
4013
- c.afterState.forEach((b, w) => {
4014
- const D = c.beforeState.get(w) || 0, I = b - D;
4015
- I > 0 && ge(u, w, D, I);
4007
+ c.afterState.forEach((w, b) => {
4008
+ const M = c.beforeState.get(b) || 0, A = w - M;
4009
+ A > 0 && ge(u, b, M, A);
4016
4010
  });
4017
4011
  const f = lc();
4018
4012
  let g = !1;
4019
4013
  if (this.lastChange > 0 && f - this.lastChange < this.captureTimeout && d.length > 0 && !a && !h) {
4020
- const b = d[d.length - 1];
4021
- b.deletions = Wn([b.deletions, c.deleteSet]), b.insertions = Wn([b.insertions, u]);
4014
+ const w = d[d.length - 1];
4015
+ w.deletions = Wn([w.deletions, c.deleteSet]), w.insertions = Wn([w.insertions, u]);
4022
4016
  } else
4023
4017
  d.push(new ca(c.deleteSet, u)), g = !0;
4024
4018
  !a && !h && (this.lastChange = f), At(
4025
4019
  c,
4026
4020
  c.deleteSet,
4027
4021
  /** @param {Item|GC} item */
4028
- (b) => {
4029
- b instanceof A && this.scope.some((w) => w === c.doc || we(
4022
+ (w) => {
4023
+ w instanceof D && this.scope.some((b) => b === c.doc || we(
4030
4024
  /** @type {AbstractType<any>} */
4031
- w,
4032
- b
4033
- )) && Si(b, !0);
4025
+ b,
4026
+ w
4027
+ )) && Si(w, !0);
4034
4028
  }
4035
4029
  );
4036
4030
  const m = [{ stackItem: d[d.length - 1], origin: c.origin, type: a ? "redo" : "undo", changedParentTypes: c.changedParentTypes }, this];
@@ -4141,17 +4135,17 @@ class mr extends $s {
4141
4135
  }
4142
4136
  }
4143
4137
  function* aa(e) {
4144
- const t = N(e.restDecoder);
4138
+ const t = R(e.restDecoder);
4145
4139
  for (let n = 0; n < t; n++) {
4146
- const i = N(e.restDecoder), s = e.readClient();
4147
- let r = N(e.restDecoder);
4140
+ const i = R(e.restDecoder), s = e.readClient();
4141
+ let r = R(e.restDecoder);
4148
4142
  for (let o = 0; o < i; o++) {
4149
4143
  const l = e.readInfo();
4150
4144
  if (l === 10) {
4151
- const c = N(e.restDecoder);
4145
+ const c = R(e.restDecoder);
4152
4146
  yield new rt(_(s, r), c), r += c;
4153
4147
  } else if ((dn & l) !== 0) {
4154
- const c = (l & (bt | Y)) === 0, a = new A(
4148
+ const c = (l & (bt | Y)) === 0, a = new D(
4155
4149
  _(s, r),
4156
4150
  null,
4157
4151
  // left
@@ -4215,7 +4209,7 @@ const ua = (e, t) => {
4215
4209
  /** @type {Item} */
4216
4210
  e
4217
4211
  ), { client: i, clock: s } = n.id;
4218
- return new A(
4212
+ return new D(
4219
4213
  _(i, s + t),
4220
4214
  null,
4221
4215
  _(i, s + t - 1),
@@ -4719,7 +4713,7 @@ const yr = (e, t, n) => {
4719
4713
  const r = e.doc, o = r.clientID, l = r.store, c = n === null ? t._start : n.right;
4720
4714
  let a = [];
4721
4715
  const h = () => {
4722
- a.length > 0 && (s = new A(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new $t(a)), s.integrate(e, 0), a = []);
4716
+ a.length > 0 && (s = new D(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new $t(a)), s.integrate(e, 0), a = []);
4723
4717
  };
4724
4718
  i.forEach((d) => {
4725
4719
  if (d === null)
@@ -4737,20 +4731,20 @@ const yr = (e, t, n) => {
4737
4731
  switch (h(), d.constructor) {
4738
4732
  case Uint8Array:
4739
4733
  case ArrayBuffer:
4740
- s = new A(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new De(new Uint8Array(
4734
+ s = new D(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new De(new Uint8Array(
4741
4735
  /** @type {Uint8Array} */
4742
4736
  d
4743
4737
  ))), s.integrate(e, 0);
4744
4738
  break;
4745
4739
  case Ft:
4746
- s = new A(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new Ie(
4740
+ s = new D(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new Ie(
4747
4741
  /** @type {Doc} */
4748
4742
  d
4749
4743
  )), s.integrate(e, 0);
4750
4744
  break;
4751
4745
  default:
4752
4746
  if (d instanceof z)
4753
- s = new A(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new ut(d)), s.integrate(e, 0);
4747
+ s = new D(_(o, B(l, o)), s, s && s.lastId, c, c && c.id, t, null, new ut(d)), s.integrate(e, 0);
4754
4748
  else
4755
4749
  throw new Error("Unexpected content type in insert operation");
4756
4750
  }
@@ -4832,7 +4826,7 @@ const yr = (e, t, n) => {
4832
4826
  else
4833
4827
  throw new Error("Unexpected content type");
4834
4828
  }
4835
- new A(_(o, B(r.store, o)), s, s && s.lastId, null, null, t, n, l).integrate(e, 0);
4829
+ new D(_(o, B(r.store, o)), s, s && s.lastId, null, null, t, n, l).integrate(e, 0);
4836
4830
  }, xi = (e, t) => {
4837
4831
  e.doc ?? K();
4838
4832
  const n = e._map.get(t);
@@ -4943,7 +4937,7 @@ class Gt extends z {
4943
4937
  * @param {Array<T>} content The array of content
4944
4938
  */
4945
4939
  insert(t, n) {
4946
- this.doc !== null ? M(this.doc, (i) => {
4940
+ this.doc !== null ? O(this.doc, (i) => {
4947
4941
  Er(
4948
4942
  i,
4949
4943
  this,
@@ -4961,7 +4955,7 @@ class Gt extends z {
4961
4955
  * @todo Use the following implementation in all types.
4962
4956
  */
4963
4957
  push(t) {
4964
- this.doc !== null ? M(this.doc, (n) => {
4958
+ this.doc !== null ? O(this.doc, (n) => {
4965
4959
  xa(
4966
4960
  n,
4967
4961
  this,
@@ -4985,7 +4979,7 @@ class Gt extends z {
4985
4979
  * @param {number} length The number of elements to remove. Defaults to 1.
4986
4980
  */
4987
4981
  delete(t, n = 1) {
4988
- this.doc !== null ? M(this.doc, (i) => {
4982
+ this.doc !== null ? O(this.doc, (i) => {
4989
4983
  Tr(i, this, t, n);
4990
4984
  }) : this._prelimContent.splice(t, n);
4991
4985
  }
@@ -5213,7 +5207,7 @@ class Qt extends z {
5213
5207
  * @param {string} key The key of the element to remove.
5214
5208
  */
5215
5209
  delete(t) {
5216
- this.doc !== null ? M(this.doc, (n) => {
5210
+ this.doc !== null ? O(this.doc, (n) => {
5217
5211
  Ze(n, this, t);
5218
5212
  }) : this._prelimContent.delete(t);
5219
5213
  }
@@ -5226,7 +5220,7 @@ class Qt extends z {
5226
5220
  * @return {VAL}
5227
5221
  */
5228
5222
  set(t, n) {
5229
- return this.doc !== null ? M(this.doc, (i) => {
5223
+ return this.doc !== null ? O(this.doc, (i) => {
5230
5224
  bi(
5231
5225
  i,
5232
5226
  this,
@@ -5261,7 +5255,7 @@ class Qt extends z {
5261
5255
  * Removes all elements from this YMap.
5262
5256
  */
5263
5257
  clear() {
5264
- this.doc !== null ? M(this.doc, (t) => {
5258
+ this.doc !== null ? O(this.doc, (t) => {
5265
5259
  this.forEach(function(n, i, s) {
5266
5260
  Ze(t, s, i);
5267
5261
  });
@@ -5345,7 +5339,7 @@ const cs = (e, t, n) => {
5345
5339
  ), n.forward();
5346
5340
  const s = e.doc, r = s.clientID;
5347
5341
  i.forEach((o, l) => {
5348
- const c = n.left, a = n.right, h = new A(_(r, B(s.store, r)), c, c && c.lastId, a, a && a.id, t, null, new V(l, o));
5342
+ const c = n.left, a = n.right, h = new D(_(r, B(s.store, r)), c, c && c.lastId, a, a && a.id, t, null, new V(l, o));
5349
5343
  h.integrate(e, 0), n.right = h, n.forward();
5350
5344
  });
5351
5345
  }, se = (e, t) => {
@@ -5370,7 +5364,7 @@ const cs = (e, t, n) => {
5370
5364
  if (!_t(a, c)) {
5371
5365
  o.set(l, a);
5372
5366
  const { left: h, right: d } = n;
5373
- n.right = new A(_(r, B(s.store, r)), h, h && h.lastId, d, d && d.id, t, null, new V(l, c)), n.right.integrate(e, 0), n.forward();
5367
+ n.right = new D(_(r, B(s.store, r)), h, h && h.lastId, d, d && d.id, t, null, new V(l, c)), n.right.integrate(e, 0), n.forward();
5374
5368
  }
5375
5369
  }
5376
5370
  return o;
@@ -5385,7 +5379,7 @@ const cs = (e, t, n) => {
5385
5379
  i
5386
5380
  ) : i instanceof z ? new ut(i) : new zt(i);
5387
5381
  let { left: a, right: h, index: d } = n;
5388
- t._searchMarker && be(t._searchMarker, n.index, c.getLength()), h = new A(_(o, B(r.store, o)), a, a && a.lastId, h, h && h.id, t, null, c), h.integrate(e, 0), n.right = h, n.index = d, n.forward(), Ar(e, t, n, l);
5382
+ t._searchMarker && be(t._searchMarker, n.index, c.getLength()), h = new D(_(o, B(r.store, o)), a, a && a.lastId, h, h && h.id, t, null, c), h.integrate(e, 0), n.right = h, n.index = d, n.forward(), Ar(e, t, n, l);
5389
5383
  }, as = (e, t, n, i, s) => {
5390
5384
  const r = e.doc, o = r.clientID;
5391
5385
  Or(n, s);
@@ -5422,7 +5416,7 @@ const cs = (e, t, n) => {
5422
5416
  for (; i > 0; i--)
5423
5417
  c += `
5424
5418
  `;
5425
- n.right = new A(_(o, B(r.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new dt(c)), n.right.integrate(e, 0), n.forward();
5419
+ n.right = new D(_(o, B(r.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new dt(c)), n.right.integrate(e, 0), n.forward();
5426
5420
  }
5427
5421
  Ar(e, t, n, l);
5428
5422
  }, Rr = (e, t, n, i, s) => {
@@ -5477,7 +5471,7 @@ const cs = (e, t, n) => {
5477
5471
  }
5478
5472
  }, Ea = (e) => {
5479
5473
  let t = 0;
5480
- return M(
5474
+ return O(
5481
5475
  /** @type {Doc} */
5482
5476
  e.doc,
5483
5477
  (n) => {
@@ -5523,7 +5517,7 @@ const cs = (e, t, n) => {
5523
5517
  }
5524
5518
  );
5525
5519
  }
5526
- M(n, (i) => {
5520
+ O(n, (i) => {
5527
5521
  At(e, e.deleteSet, (s) => {
5528
5522
  if (s instanceof st || !/** @type {YText} */
5529
5523
  s.parent._hasFormatting || t.has(
@@ -5604,7 +5598,7 @@ class Da extends mn {
5604
5598
  /** @type {Doc} */
5605
5599
  this.target.doc
5606
5600
  ), n = [];
5607
- M(t, (i) => {
5601
+ O(t, (i) => {
5608
5602
  const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
5609
5603
  let o = this.target._start, l = null;
5610
5604
  const c = {};
@@ -5768,7 +5762,7 @@ class Ot extends z {
5768
5762
  * @public
5769
5763
  */
5770
5764
  applyDelta(t, { sanitize: n = !0 } = {}) {
5771
- this.doc !== null ? M(this.doc, (i) => {
5765
+ this.doc !== null ? O(this.doc, (i) => {
5772
5766
  const s = new Gn(null, this._start, 0, /* @__PURE__ */ new Map());
5773
5767
  for (let r = 0; r < t.length; r++) {
5774
5768
  const o = t[r];
@@ -5848,7 +5842,7 @@ class Ot extends z {
5848
5842
  }
5849
5843
  a();
5850
5844
  };
5851
- return t || n ? M(o, (d) => {
5845
+ return t || n ? O(o, (d) => {
5852
5846
  t && jn(d, t), n && jn(d, n), h();
5853
5847
  }, "cleanup") : h(), s;
5854
5848
  }
@@ -5866,7 +5860,7 @@ class Ot extends z {
5866
5860
  if (n.length <= 0)
5867
5861
  return;
5868
5862
  const s = this.doc;
5869
- s !== null ? M(s, (r) => {
5863
+ s !== null ? O(s, (r) => {
5870
5864
  const o = Le(r, this, t, !i);
5871
5865
  i || (i = {}, o.currentAttributes.forEach((l, c) => {
5872
5866
  i[c] = l;
@@ -5885,7 +5879,7 @@ class Ot extends z {
5885
5879
  */
5886
5880
  insertEmbed(t, n, i) {
5887
5881
  const s = this.doc;
5888
- s !== null ? M(s, (r) => {
5882
+ s !== null ? O(s, (r) => {
5889
5883
  const o = Le(r, this, t, !i);
5890
5884
  On(r, this, o, n, i || {});
5891
5885
  }) : this._pending.push(() => this.insertEmbed(t, n, i || {}));
@@ -5902,7 +5896,7 @@ class Ot extends z {
5902
5896
  if (n === 0)
5903
5897
  return;
5904
5898
  const i = this.doc;
5905
- i !== null ? M(i, (s) => {
5899
+ i !== null ? O(i, (s) => {
5906
5900
  hs(s, Le(s, this, t, !0), n);
5907
5901
  }) : this._pending.push(() => this.delete(t, n));
5908
5902
  }
@@ -5920,7 +5914,7 @@ class Ot extends z {
5920
5914
  if (n === 0)
5921
5915
  return;
5922
5916
  const s = this.doc;
5923
- s !== null ? M(s, (r) => {
5917
+ s !== null ? O(s, (r) => {
5924
5918
  const o = Le(r, this, t, !1);
5925
5919
  o.right !== null && as(r, this, o, n, i);
5926
5920
  }) : this._pending.push(() => this.format(t, n, i));
@@ -5935,7 +5929,7 @@ class Ot extends z {
5935
5929
  * @public
5936
5930
  */
5937
5931
  removeAttribute(t) {
5938
- this.doc !== null ? M(this.doc, (n) => {
5932
+ this.doc !== null ? O(this.doc, (n) => {
5939
5933
  Ze(n, this, t);
5940
5934
  }) : this._pending.push(() => this.removeAttribute(t));
5941
5935
  }
@@ -5950,7 +5944,7 @@ class Ot extends z {
5950
5944
  * @public
5951
5945
  */
5952
5946
  setAttribute(t, n) {
5953
- this.doc !== null ? M(this.doc, (i) => {
5947
+ this.doc !== null ? O(this.doc, (i) => {
5954
5948
  bi(i, this, t, n);
5955
5949
  }) : this._pending.push(() => this.setAttribute(t, n));
5956
5950
  }
@@ -6191,7 +6185,7 @@ class Ht extends z {
6191
6185
  * @param {Array<YXmlElement|YXmlText>} content The array of content
6192
6186
  */
6193
6187
  insert(t, n) {
6194
- this.doc !== null ? M(this.doc, (i) => {
6188
+ this.doc !== null ? O(this.doc, (i) => {
6195
6189
  Er(i, this, t, n);
6196
6190
  }) : this._prelimContent.splice(t, 0, ...n);
6197
6191
  }
@@ -6207,7 +6201,7 @@ class Ht extends z {
6207
6201
  */
6208
6202
  insertAfter(t, n) {
6209
6203
  if (this.doc !== null)
6210
- M(this.doc, (i) => {
6204
+ O(this.doc, (i) => {
6211
6205
  const s = t && t instanceof z ? t._item : t;
6212
6206
  Xe(i, this, s, n);
6213
6207
  });
@@ -6228,7 +6222,7 @@ class Ht extends z {
6228
6222
  * @param {number} [length=1] The number of elements to remove. Defaults to 1.
6229
6223
  */
6230
6224
  delete(t, n = 1) {
6231
- this.doc !== null ? M(this.doc, (i) => {
6225
+ this.doc !== null ? O(this.doc, (i) => {
6232
6226
  Tr(i, this, t, n);
6233
6227
  }) : this._prelimContent.splice(t, n);
6234
6228
  }
@@ -6394,7 +6388,7 @@ class W extends Ht {
6394
6388
  * @public
6395
6389
  */
6396
6390
  removeAttribute(t) {
6397
- this.doc !== null ? M(this.doc, (n) => {
6391
+ this.doc !== null ? O(this.doc, (n) => {
6398
6392
  Ze(n, this, t);
6399
6393
  }) : this._prelimAttrs.delete(t);
6400
6394
  }
@@ -6409,7 +6403,7 @@ class W extends Ht {
6409
6403
  * @public
6410
6404
  */
6411
6405
  setAttribute(t, n) {
6412
- this.doc !== null ? M(this.doc, (i) => {
6406
+ this.doc !== null ? O(this.doc, (i) => {
6413
6407
  bi(i, this, t, n);
6414
6408
  }) : this._prelimAttrs.set(t, n);
6415
6409
  }
@@ -7493,7 +7487,7 @@ const Qa = (e) => new ut(Ka[e.readTypeRef()](e)), Jn = (e, t) => {
7493
7487
  let n = t, i = 0, s;
7494
7488
  do
7495
7489
  i > 0 && (n = _(n.client, n.clock + i)), s = Yt(e, n), i = n.clock - s.id.clock, n = s.redone;
7496
- while (n !== null && s instanceof A);
7490
+ while (n !== null && s instanceof D);
7497
7491
  return {
7498
7492
  item: s,
7499
7493
  diff: i
@@ -7503,7 +7497,7 @@ const Qa = (e) => new ut(Ka[e.readTypeRef()](e)), Jn = (e, t) => {
7503
7497
  e.keep = t, e = /** @type {AbstractType<any>} */
7504
7498
  e.parent._item;
7505
7499
  }, en = (e, t, n) => {
7506
- const { client: i, clock: s } = t.id, r = new A(
7500
+ const { client: i, clock: s } = t.id, r = new D(
7507
7501
  _(i, s + n),
7508
7502
  t,
7509
7503
  _(i, s + n - 1),
@@ -7541,25 +7535,25 @@ const Qa = (e) => new ut(Ka[e.readTypeRef()](e)), Jn = (e, t) => {
7541
7535
  );
7542
7536
  if (t.parentSub === null) {
7543
7537
  for (d = t.left, u = t; d !== null; ) {
7544
- let w = d;
7545
- for (; w !== null && /** @type {AbstractType<any>} */
7546
- w.parent._item !== h; )
7547
- w = w.redone === null ? null : J(e, w.redone);
7548
- if (w !== null && /** @type {AbstractType<any>} */
7549
- w.parent._item === h) {
7550
- d = w;
7538
+ let b = d;
7539
+ for (; b !== null && /** @type {AbstractType<any>} */
7540
+ b.parent._item !== h; )
7541
+ b = b.redone === null ? null : J(e, b.redone);
7542
+ if (b !== null && /** @type {AbstractType<any>} */
7543
+ b.parent._item === h) {
7544
+ d = b;
7551
7545
  break;
7552
7546
  }
7553
7547
  d = d.left;
7554
7548
  }
7555
7549
  for (; u !== null; ) {
7556
- let w = u;
7557
- for (; w !== null && /** @type {AbstractType<any>} */
7558
- w.parent._item !== h; )
7559
- w = w.redone === null ? null : J(e, w.redone);
7560
- if (w !== null && /** @type {AbstractType<any>} */
7561
- w.parent._item === h) {
7562
- u = w;
7550
+ let b = u;
7551
+ for (; b !== null && /** @type {AbstractType<any>} */
7552
+ b.parent._item !== h; )
7553
+ b = b.redone === null ? null : J(e, b.redone);
7554
+ if (b !== null && /** @type {AbstractType<any>} */
7555
+ b.parent._item === h) {
7556
+ u = b;
7563
7557
  break;
7564
7558
  }
7565
7559
  u = u.right;
@@ -7571,7 +7565,7 @@ const Qa = (e) => new ut(Ka[e.readTypeRef()](e)), Jn = (e, t) => {
7571
7565
  return null;
7572
7566
  } else
7573
7567
  d = f._map.get(t.parentSub) || null;
7574
- const g = B(l, c), m = _(c, g), b = new A(
7568
+ const g = B(l, c), m = _(c, g), w = new D(
7575
7569
  m,
7576
7570
  d,
7577
7571
  d && d.lastId,
@@ -7581,9 +7575,9 @@ const Qa = (e) => new ut(Ka[e.readTypeRef()](e)), Jn = (e, t) => {
7581
7575
  t.parentSub,
7582
7576
  t.content.copy()
7583
7577
  );
7584
- return t.redone = m, Si(b, !0), b.integrate(e, 0), b;
7578
+ return t.redone = m, Si(w, !0), w.integrate(e, 0), w;
7585
7579
  };
7586
- class A extends yi {
7580
+ class D extends yi {
7587
7581
  /**
7588
7582
  * @param {ID} id
7589
7583
  * @param {Item | null} left
@@ -7650,7 +7644,7 @@ class A extends yi {
7650
7644
  if (this.origin && (this.left = es(t, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = J(t, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === st || this.right && this.right.constructor === st)
7651
7645
  this.parent = null;
7652
7646
  else if (!this.parent)
7653
- this.left && this.left.constructor === A ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === A && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
7647
+ this.left && this.left.constructor === D ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === D && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
7654
7648
  else if (this.parent.constructor === jt) {
7655
7649
  const i = Yt(n, this.parent);
7656
7650
  i.constructor === st ? this.parent = null : this.parent = /** @type {ContentType} */
@@ -8025,7 +8019,7 @@ class fh {
8025
8019
  return r;
8026
8020
  }
8027
8021
  }
8028
- const ph = (e) => new fh().digest(e), L = new ni("y-sync"), xt = new ni("y-undo");
8022
+ const ph = (e) => new fh().digest(e), U = new ni("y-sync"), xt = new ni("y-undo");
8029
8023
  new ni("yjs-cursor");
8030
8024
  const gh = (e) => {
8031
8025
  for (let n = 6; n < e.length; n++)
@@ -8056,11 +8050,11 @@ t.sv.get(e.id.client) > e.id.clock && !ie(t.ds, e.id), wh = [{ light: "#ecd44433
8056
8050
  const l = new kh(e, r), c = new Ss({
8057
8051
  props: {
8058
8052
  editable: (a) => {
8059
- const h = L.getState(a);
8053
+ const h = U.getState(a);
8060
8054
  return h.snapshot == null && h.prevSnapshot == null;
8061
8055
  }
8062
8056
  },
8063
- key: L,
8057
+ key: U,
8064
8058
  state: {
8065
8059
  /**
8066
8060
  * @returns {any}
@@ -8079,7 +8073,7 @@ t.sv.get(e.id.client) > e.id.clock && !ie(t.ds, e.id), wh = [{ light: "#ecd44433
8079
8073
  permanentUserData: i
8080
8074
  }),
8081
8075
  apply: (a, h) => {
8082
- const d = a.getMeta(L);
8076
+ const d = a.getMeta(U);
8083
8077
  if (d !== void 0) {
8084
8078
  h = Object.assign({}, h);
8085
8079
  for (const u in d)
@@ -8118,7 +8112,7 @@ t.sv.get(e.id.client) > e.id.clock && !ie(t.ds, e.id), wh = [{ light: "#ecd44433
8118
8112
  l.mux(() => {
8119
8113
  h.doc.transact((d) => {
8120
8114
  d.meta.set("addToHistory", h.addToHistory), l._prosemirrorChanged(a.state.doc);
8121
- }, L);
8115
+ }, U);
8122
8116
  });
8123
8117
  }
8124
8118
  },
@@ -8215,7 +8209,7 @@ class kh {
8215
8209
  */
8216
8210
  renderSnapshot(t, n) {
8217
8211
  n || (n = dr(lr(), /* @__PURE__ */ new Map())), this.prosemirrorView.dispatch(
8218
- this._tr.setMeta(L, { snapshot: t, prevSnapshot: n })
8212
+ this._tr.setMeta(U, { snapshot: t, prevSnapshot: n })
8219
8213
  );
8220
8214
  }
8221
8215
  unrenderSnapshot() {
@@ -8232,7 +8226,7 @@ class kh {
8232
8226
  this.prosemirrorView.state.doc.content.size,
8233
8227
  new Oe(Me.from(t), 0, 0)
8234
8228
  );
8235
- n.setMeta(L, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
8229
+ n.setMeta(U, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
8236
8230
  });
8237
8231
  }
8238
8232
  _forceRerender() {
@@ -8254,7 +8248,7 @@ class kh {
8254
8248
  i.setSelection(ii.create(i.doc, s, r));
8255
8249
  }
8256
8250
  this.prosemirrorView.dispatch(
8257
- i.setMeta(L, { isChangeOrigin: !0, binding: this })
8251
+ i.setMeta(U, { isChangeOrigin: !0, binding: this })
8258
8252
  );
8259
8253
  });
8260
8254
  }
@@ -8315,9 +8309,9 @@ class kh {
8315
8309
  new Oe(Me.from(a), 0, 0)
8316
8310
  );
8317
8311
  this.prosemirrorView.dispatch(
8318
- h.setMeta(L, { isChangeOrigin: !0 })
8312
+ h.setMeta(U, { isChangeOrigin: !0 })
8319
8313
  );
8320
- }, L);
8314
+ }, U);
8321
8315
  });
8322
8316
  }
8323
8317
  /**
@@ -8326,7 +8320,7 @@ class kh {
8326
8320
  */
8327
8321
  _typeChanged(t, n) {
8328
8322
  if (this.prosemirrorView == null) return;
8329
- const i = L.getState(this.prosemirrorView.state);
8323
+ const i = U.getState(this.prosemirrorView.state);
8330
8324
  if (t.length === 0 || i.snapshot != null || i.prevSnapshot != null) {
8331
8325
  this.renderSnapshot(i.snapshot, i.prevSnapshot);
8332
8326
  return;
@@ -8337,7 +8331,7 @@ class kh {
8337
8331
  n,
8338
8332
  n.deleteSet,
8339
8333
  (l) => {
8340
- if (l.constructor === A) {
8334
+ if (l.constructor === D) {
8341
8335
  const c = (
8342
8336
  /** @type {Y.ContentType} */
8343
8337
  /** @type {Y.Item} */
@@ -8360,7 +8354,7 @@ class kh {
8360
8354
  this.prosemirrorView.state.doc.content.size,
8361
8355
  new Oe(Me.from(r), 0, 0)
8362
8356
  );
8363
- yh(o, this.beforeTransactionSelection, this), o = o.setMeta(L, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof mr }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && o.scrollIntoView(), this.prosemirrorView.dispatch(o);
8357
+ yh(o, this.beforeTransactionSelection, this), o = o.setMeta(U, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof mr }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && o.scrollIntoView(), this.prosemirrorView.dispatch(o);
8364
8358
  });
8365
8359
  }
8366
8360
  /**
@@ -8372,7 +8366,7 @@ class kh {
8372
8366
  this,
8373
8367
  this.prosemirrorView.state
8374
8368
  );
8375
- }, L);
8369
+ }, U);
8376
8370
  }
8377
8371
  /**
8378
8372
  * View is ready to listen to changes. Register observers.
@@ -8465,7 +8459,7 @@ const Vr = (e, t, n, i, s, r) => {
8465
8459
  } catch {
8466
8460
  return e.doc.transact((a) => {
8467
8461
  e._item.delete(a);
8468
- }, L), n.mapping.delete(e), null;
8462
+ }, U), n.mapping.delete(e), null;
8469
8463
  }
8470
8464
  }, vh = (e, t, n, i, s, r) => {
8471
8465
  const o = [], l = e.toDelta(i, s, r);
@@ -8477,7 +8471,7 @@ const Vr = (e, t, n, i, s, r) => {
8477
8471
  } catch {
8478
8472
  return e.doc.transact((a) => {
8479
8473
  e._item.delete(a);
8480
- }, L), null;
8474
+ }, U), null;
8481
8475
  }
8482
8476
  return o;
8483
8477
  }, Ch = (e, t) => {
@@ -8642,31 +8636,31 @@ const Vr = (e, t, n, i, s, r) => {
8642
8636
  if (u instanceof q && f instanceof Array)
8643
8637
  Hr(u, f) || Th(u, f, i), a += 1;
8644
8638
  else {
8645
- let b = u instanceof W && Qn(u, f), w = g instanceof W && Qn(g, m);
8646
- if (b && w) {
8647
- const D = fs(
8639
+ let w = u instanceof W && Qn(u, f), b = g instanceof W && Qn(g, m);
8640
+ if (w && b) {
8641
+ const M = fs(
8648
8642
  /** @type {Y.XmlElement} */
8649
8643
  u,
8650
8644
  /** @type {PModel.Node} */
8651
8645
  f,
8652
8646
  i
8653
- ), I = fs(
8647
+ ), A = fs(
8654
8648
  /** @type {Y.XmlElement} */
8655
8649
  g,
8656
8650
  /** @type {PModel.Node} */
8657
8651
  m,
8658
8652
  i
8659
8653
  );
8660
- D.foundMappedChild && !I.foundMappedChild ? w = !1 : !D.foundMappedChild && I.foundMappedChild || D.equalityFactor < I.equalityFactor ? b = !1 : w = !1;
8654
+ M.foundMappedChild && !A.foundMappedChild ? b = !1 : !M.foundMappedChild && A.foundMappedChild || M.equalityFactor < A.equalityFactor ? w = !1 : b = !1;
8661
8655
  }
8662
- b ? (Zn(
8656
+ w ? (Zn(
8663
8657
  e,
8664
8658
  /** @type {Y.XmlFragment} */
8665
8659
  u,
8666
8660
  /** @type {PModel.Node} */
8667
8661
  f,
8668
8662
  i
8669
- ), a += 1) : w ? (Zn(
8663
+ ), a += 1) : b ? (Zn(
8670
8664
  e,
8671
8665
  /** @type {Y.XmlFragment} */
8672
8666
  g,
@@ -8685,7 +8679,7 @@ const Vr = (e, t, n, i, s, r) => {
8685
8679
  u.push(Xn(s[f], i));
8686
8680
  t.insert(a, u);
8687
8681
  }
8688
- }, L);
8682
+ }, U);
8689
8683
  }, Qn = (e, t) => !(t instanceof Array) && e.nodeName === t.type.name, rn = (e, t, n) => {
8690
8684
  if (e === 0)
8691
8685
  return In(t, 0, -1);
@@ -8839,12 +8833,12 @@ const Mh = (e) => {
8839
8833
  const t = xt.getState(e).undoManager;
8840
8834
  if (t != null)
8841
8835
  return t.redo(), !0;
8842
- }, Nh = /* @__PURE__ */ new Set(["paragraph"]), Uh = (e, t) => !(e instanceof A) || !(e.content instanceof ut) || !(e.content.type instanceof Ot || e.content.type instanceof W && t.has(e.content.type.nodeName)) || e.content.type._length === 0, Lh = ({ protectedNodes: e = Nh, trackedOrigins: t = [], undoManager: n = null } = {}) => new Ss({
8836
+ }, Nh = /* @__PURE__ */ new Set(["paragraph"]), Uh = (e, t) => !(e instanceof D) || !(e.content instanceof ut) || !(e.content.type instanceof Ot || e.content.type instanceof W && t.has(e.content.type.nodeName)) || e.content.type._length === 0, Lh = ({ protectedNodes: e = Nh, trackedOrigins: t = [], undoManager: n = null } = {}) => new Ss({
8843
8837
  key: xt,
8844
8838
  state: {
8845
8839
  init: (i, s) => {
8846
- const r = L.getState(s), o = n || new mr(r.type, {
8847
- trackedOrigins: new Set([L].concat(t)),
8840
+ const r = U.getState(s), o = n || new mr(r.type, {
8841
+ trackedOrigins: new Set([U].concat(t)),
8848
8842
  deleteFilter: (l) => Uh(l, e),
8849
8843
  captureTransaction: (l) => l.meta.get("addToHistory") !== !1
8850
8844
  });
@@ -8859,7 +8853,7 @@ const Mh = (e) => {
8859
8853
  * @returns {any}
8860
8854
  */
8861
8855
  apply: (i, s, r, o) => {
8862
- const l = L.getState(o).binding, c = s.undoManager, a = c.undoStack.length > 0, h = c.redoStack.length > 0;
8856
+ const l = U.getState(o).binding, c = s.undoManager, a = c.undoStack.length > 0, h = c.redoStack.length > 0;
8863
8857
  return l ? {
8864
8858
  undoManager: c,
8865
8859
  prevSel: qn(l, r),
@@ -8872,7 +8866,7 @@ const Mh = (e) => {
8872
8866
  }
8873
8867
  },
8874
8868
  view: (i) => {
8875
- const s = L.getState(i.state), r = xt.getState(i.state).undoManager;
8869
+ const s = U.getState(i.state), r = xt.getState(i.state).undoManager;
8876
8870
  return r.on("stack-item-added", ({ stackItem: o }) => {
8877
8871
  const l = s.binding;
8878
8872
  l && o.meta.set(l, xt.getState(i.state).prevSel);
@@ -8887,14 +8881,14 @@ const Mh = (e) => {
8887
8881
  }
8888
8882
  });
8889
8883
  function Fr(e) {
8890
- return !!e.getMeta(L);
8884
+ return !!e.getMeta(U);
8891
8885
  }
8892
8886
  function Ph(e, t) {
8893
- const n = L.getState(e);
8887
+ const n = U.getState(e);
8894
8888
  return de(n.doc, n.type, t, n.binding.mapping) || 0;
8895
8889
  }
8896
8890
  function zr(e, t) {
8897
- const n = L.getState(e);
8891
+ const n = U.getState(e);
8898
8892
  return rn(t, n.type, n.binding.mapping);
8899
8893
  }
8900
8894
  var Ke = class Wr extends so {
@@ -9182,11 +9176,11 @@ ke.create({
9182
9176
  "mouseup",
9183
9177
  () => {
9184
9178
  t = !1;
9185
- const { state: d } = n, { doc: u, selection: f, tr: g } = d, { $anchor: m, $head: b } = f;
9186
- if (m.sameParent(b))
9179
+ const { state: d } = n, { doc: u, selection: f, tr: g } = d, { $anchor: m, $head: w } = f;
9180
+ if (m.sameParent(w))
9187
9181
  return;
9188
- const w = Et.create(u, m.pos, b.pos, this.options.depth);
9189
- g.setSelection(w), n.dispatch(g);
9182
+ const b = Et.create(u, m.pos, w.pos, this.options.depth);
9183
+ g.setSelection(b), n.dispatch(g);
9190
9184
  },
9191
9185
  { once: !0 }
9192
9186
  ), !1;
@@ -9305,13 +9299,13 @@ function Gh(e, t) {
9305
9299
  const { view: n } = t;
9306
9300
  if (!e.dataTransfer)
9307
9301
  return;
9308
- const { empty: i, $from: s, $to: r } = n.state.selection, o = Yh(e, t), l = yn(s, r, 0), c = l.some((b) => o.find((w) => w.$from === b.$from && w.$to === b.$to)), a = i || !c ? o : l;
9302
+ const { empty: i, $from: s, $to: r } = n.state.selection, o = Yh(e, t), l = yn(s, r, 0), c = l.some((w) => o.find((b) => b.$from === w.$from && b.$to === w.$to)), a = i || !c ? o : l;
9309
9303
  if (!a.length)
9310
9304
  return;
9311
9305
  const { tr: h } = n.state, d = document.createElement("div"), u = a[0].$from.pos, f = a[a.length - 1].$to.pos, g = Et.create(n.state.doc, u, f), m = g.content();
9312
- a.forEach((b) => {
9313
- const w = n.nodeDOM(b.$from.pos), D = Fh(w);
9314
- d.append(D);
9306
+ a.forEach((w) => {
9307
+ const b = n.nodeDOM(w.$from.pos), M = Fh(b);
9308
+ d.append(M);
9315
9309
  }), d.style.position = "absolute", d.style.top = "-10000px", document.body.append(d), e.dataTransfer.clearData(), e.dataTransfer.setDragImage(d, 0, 0), n.dragging = { slice: m, move: !0 }, h.setSelection(g), n.dispatch(h), document.addEventListener("drop", () => Yr(d), { once: !0 });
9316
9310
  }
9317
9311
  var gs = (e, t) => {
@@ -9326,10 +9320,10 @@ var gs = (e, t) => {
9326
9320
  }
9327
9321
  return r;
9328
9322
  }, Rn = (e, t) => {
9329
- const n = L.getState(e);
9323
+ const n = U.getState(e);
9330
9324
  return n ? rn(t, n.type, n.binding.mapping) : null;
9331
9325
  }, Jh = (e, t) => {
9332
- const n = L.getState(e);
9326
+ const n = U.getState(e);
9333
9327
  return n ? de(n.doc, n.type, t, n.binding.mapping) || 0 : -1;
9334
9328
  }, ws = (e, t) => {
9335
9329
  let n = t;
@@ -9351,7 +9345,7 @@ var gs = (e, t) => {
9351
9345
  function m() {
9352
9346
  t && (t.style.visibility = "hidden", t.style.pointerEvents = "none");
9353
9347
  }
9354
- function b() {
9348
+ function w() {
9355
9349
  if (t) {
9356
9350
  if (!n.isEditable) {
9357
9351
  m();
@@ -9360,7 +9354,7 @@ var gs = (e, t) => {
9360
9354
  t.style.visibility = "", t.style.pointerEvents = "auto";
9361
9355
  }
9362
9356
  }
9363
- function w(v) {
9357
+ function b(v) {
9364
9358
  const P = (s == null ? void 0 : s()) || {
9365
9359
  getBoundingClientRect: () => v.getBoundingClientRect()
9366
9360
  };
@@ -9372,17 +9366,17 @@ var gs = (e, t) => {
9372
9366
  });
9373
9367
  });
9374
9368
  }
9375
- function D(v) {
9369
+ function M(v) {
9376
9370
  o == null || o(v), Gh(v, n), t && (t.dataset.dragging = "true"), setTimeout(() => {
9377
9371
  t && (t.style.pointerEvents = "none");
9378
9372
  }, 0);
9379
9373
  }
9380
- function I(v) {
9374
+ function A(v) {
9381
9375
  l == null || l(v), m(), t && (t.style.pointerEvents = "auto", t.dataset.dragging = "false");
9382
9376
  }
9383
- return t.addEventListener("dragstart", D), t.addEventListener("dragend", I), c.appendChild(t), {
9377
+ return t.addEventListener("dragstart", M), t.addEventListener("dragend", A), c.appendChild(t), {
9384
9378
  unbind() {
9385
- t.removeEventListener("dragstart", D), t.removeEventListener("dragend", I), f && (cancelAnimationFrame(f), f = null, g = null);
9379
+ t.removeEventListener("dragstart", M), t.removeEventListener("dragend", A), f && (cancelAnimationFrame(f), f = null, g = null);
9386
9380
  },
9387
9381
  plugin: new Ce({
9388
9382
  key: typeof e == "string" ? new te(e) : e,
@@ -9391,8 +9385,8 @@ var gs = (e, t) => {
9391
9385
  return { locked: !1 };
9392
9386
  },
9393
9387
  apply(v, P, E, S) {
9394
- const k = v.getMeta("lockDragHandle"), U = v.getMeta("hideDragHandle");
9395
- if (k !== void 0 && (a = k), U)
9388
+ const k = v.getMeta("lockDragHandle"), N = v.getMeta("hideDragHandle");
9389
+ if (k !== void 0 && (a = k), N)
9396
9390
  return m(), a = !1, h = null, d = -1, r == null || r({ editor: n, node: null, pos: -1 }), P;
9397
9391
  if (v.docChanged && d !== -1 && t)
9398
9392
  if (Fr(v)) {
@@ -9420,8 +9414,8 @@ var gs = (e, t) => {
9420
9414
  let k = v.nodeDOM(d);
9421
9415
  if (k = ws(v, k), k === v.dom || (k == null ? void 0 : k.nodeType) !== 1)
9422
9416
  return;
9423
- const U = v.posAtDOM(k, 0), H = ms(n.state.doc, U), nt = gs(n.state.doc, U);
9424
- h = H, d = nt, u = Rn(v.state, d), r == null || r({ editor: n, node: h, pos: d }), w(k);
9417
+ const N = v.posAtDOM(k, 0), H = ms(n.state.doc, N), nt = gs(n.state.doc, N);
9418
+ h = H, d = nt, u = Rn(v.state, d), r == null || r({ editor: n, node: h, pos: d }), b(k);
9425
9419
  },
9426
9420
  // TODO: Kills even on hot reload
9427
9421
  destroy() {
@@ -9450,13 +9444,13 @@ var gs = (e, t) => {
9450
9444
  });
9451
9445
  if (!k.resultElement)
9452
9446
  return;
9453
- let U = k.resultElement;
9454
- if (U = ws(v, U), U === v.dom || (U == null ? void 0 : U.nodeType) !== 1)
9447
+ let N = k.resultElement;
9448
+ if (N = ws(v, N), N === v.dom || (N == null ? void 0 : N.nodeType) !== 1)
9455
9449
  return;
9456
- const H = v.posAtDOM(U, 0), nt = ms(n.state.doc, H);
9450
+ const H = v.posAtDOM(N, 0), nt = ms(n.state.doc, H);
9457
9451
  if (nt !== h) {
9458
9452
  const Mt = gs(n.state.doc, H);
9459
- h = nt, d = Mt, u = Rn(v.state, d), r == null || r({ editor: n, node: h, pos: d }), w(U), b();
9453
+ h = nt, d = Mt, u = Rn(v.state, d), r == null || r({ editor: n, node: h, pos: d }), b(N), w();
9460
9454
  }
9461
9455
  })), !1;
9462
9456
  }
@@ -9548,8 +9542,8 @@ var qh = (e) => {
9548
9542
  );
9549
9543
  }, Xh = qh;
9550
9544
  function cu() {
9551
- var E, S, k, U, H, nt, Mt, Rt;
9552
- const e = j(), t = Z(), { t: n } = G(), [i, s] = F(null), [r, o] = F(-1), [l, c] = F(!1), a = (S = (E = e == null ? void 0 : e.extensionManager) == null ? void 0 : E.extensions) == null ? void 0 : S.some((C) => (C == null ? void 0 : C.name) === Uo.name), h = (U = (k = e == null ? void 0 : e.extensionManager) == null ? void 0 : k.extensions) == null ? void 0 : U.some((C) => (C == null ? void 0 : C.name) === Ko.name), d = (nt = (H = e == null ? void 0 : e.extensionManager) == null ? void 0 : H.extensions) == null ? void 0 : nt.some((C) => (C == null ? void 0 : C.name) === Wo.name);
9545
+ var E, S, k, N, H, nt, Mt, Rt;
9546
+ const e = j(), t = Z(), { t: n } = G(), [i, s] = F(null), [r, o] = F(-1), [l, c] = F(!1), a = (S = (E = e == null ? void 0 : e.extensionManager) == null ? void 0 : E.extensions) == null ? void 0 : S.some((C) => (C == null ? void 0 : C.name) === Uo.name), h = (N = (k = e == null ? void 0 : e.extensionManager) == null ? void 0 : k.extensions) == null ? void 0 : N.some((C) => (C == null ? void 0 : C.name) === $o.name), d = (nt = (H = e == null ? void 0 : e.extensionManager) == null ? void 0 : H.extensions) == null ? void 0 : nt.some((C) => (C == null ? void 0 : C.name) === Ho.name);
9553
9547
  function u() {
9554
9548
  const C = e.chain();
9555
9549
  C.setNodeSelection(r).unsetAllMarks(), (i == null ? void 0 : i.type.name) !== "paragraph" && C.setParagraph(), C.run();
@@ -9565,18 +9559,18 @@ function cu() {
9565
9559
  function m(C) {
9566
9560
  e.commands.setTextAlign(C);
9567
9561
  }
9568
- function b() {
9569
- const C = Bi(e.state.tr, r, 1);
9562
+ function w() {
9563
+ const C = Ni(e.state.tr, r, 1);
9570
9564
  C.setMeta("hideDragHandle", !0), e.view.dispatch && e.view.dispatch(C);
9571
9565
  }
9572
- function w() {
9573
- const C = Bi(e.state.tr, r, -1);
9566
+ function b() {
9567
+ const C = Ni(e.state.tr, r, -1);
9574
9568
  e.view.dispatch && e.view.dispatch(C);
9575
9569
  }
9576
- function D() {
9570
+ function M() {
9577
9571
  e.chain().setMeta("hideDragHandle", !0).setNodeSelection(r).deleteSelection().run();
9578
9572
  }
9579
- const I = R((C) => {
9573
+ const A = L((C) => {
9580
9574
  C.node && s(C.node), o(C.pos), requestAnimationFrame(() => {
9581
9575
  C.editor.commands.focus();
9582
9576
  });
@@ -9601,7 +9595,7 @@ function cu() {
9601
9595
  {
9602
9596
  className: "richtext-transition-all richtext-duration-200 richtext-ease-out",
9603
9597
  editor: e,
9604
- onNodeChange: I,
9598
+ onNodeChange: A,
9605
9599
  pluginKey: "RichTextBubbleMenuDragHandle",
9606
9600
  children: /* @__PURE__ */ y("div", { className: "richtext-flex richtext-items-center richtext-gap-0.5", children: [
9607
9601
  /* @__PURE__ */ p(
@@ -9625,14 +9619,14 @@ function cu() {
9625
9619
  }
9626
9620
  ),
9627
9621
  /* @__PURE__ */ y(
9628
- Ho,
9622
+ Fo,
9629
9623
  {
9630
9624
  onOpenChange: P,
9631
9625
  open: l,
9632
9626
  children: [
9633
- /* @__PURE__ */ p("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: /* @__PURE__ */ p($o, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" }) }),
9627
+ /* @__PURE__ */ p(zo, { className: "richtext-pointer-events-none" }),
9634
9628
  /* @__PURE__ */ y(
9635
- Fo,
9629
+ Wo,
9636
9630
  {
9637
9631
  align: "start",
9638
9632
  className: "richtext-w-48",
@@ -9644,7 +9638,7 @@ function cu() {
9644
9638
  mt,
9645
9639
  {
9646
9640
  className: "richtext-flex richtext-gap-3 richtext-bg-opacity-10 hover:richtext-bg-red-400 hover:richtext-bg-opacity-20 focus:richtext-bg-red-400 focus:richtext-bg-opacity-30 focus:richtext-text-red-500 dark:hover:richtext-bg-opacity-20 dark:hover:richtext-text-red-500",
9647
- onClick: D,
9641
+ onClick: M,
9648
9642
  children: [
9649
9643
  /* @__PURE__ */ p(Q, { name: "Trash2" }),
9650
9644
  /* @__PURE__ */ p("span", { children: n("editor.remove") })
@@ -9684,13 +9678,13 @@ function cu() {
9684
9678
  ]
9685
9679
  }
9686
9680
  ),
9687
- a || h ? /* @__PURE__ */ p(zo, {}) : null,
9688
- a ? /* @__PURE__ */ y(Ri, { children: [
9689
- /* @__PURE__ */ y(Ni, { className: "richtext-flex richtext-gap-3", children: [
9681
+ a || h ? /* @__PURE__ */ p(Ko, {}) : null,
9682
+ a ? /* @__PURE__ */ y(Ui, { children: [
9683
+ /* @__PURE__ */ y(Li, { className: "richtext-flex richtext-gap-3", children: [
9690
9684
  /* @__PURE__ */ p(Q, { name: "AlignCenter" }),
9691
9685
  /* @__PURE__ */ p("span", { children: n("editor.textalign.tooltip") })
9692
9686
  ] }),
9693
- /* @__PURE__ */ p(Ui, { children: /* @__PURE__ */ y(Li, { children: [
9687
+ /* @__PURE__ */ p(Pi, { children: /* @__PURE__ */ y(Bi, { children: [
9694
9688
  /* @__PURE__ */ y(
9695
9689
  mt,
9696
9690
  {
@@ -9726,18 +9720,18 @@ function cu() {
9726
9720
  )
9727
9721
  ] }) })
9728
9722
  ] }) : null,
9729
- h ? /* @__PURE__ */ y(Ri, { children: [
9730
- /* @__PURE__ */ y(Ni, { className: "richtext-flex richtext-gap-3", children: [
9723
+ h ? /* @__PURE__ */ y(Ui, { children: [
9724
+ /* @__PURE__ */ y(Li, { className: "richtext-flex richtext-gap-3", children: [
9731
9725
  /* @__PURE__ */ p(Q, { name: "IndentIncrease" }),
9732
9726
  /* @__PURE__ */ p("span", { children: n("editor.indent") })
9733
9727
  ] }),
9734
- /* @__PURE__ */ p(Ui, { children: /* @__PURE__ */ y(Li, { children: [
9728
+ /* @__PURE__ */ p(Pi, { children: /* @__PURE__ */ y(Bi, { children: [
9735
9729
  /* @__PURE__ */ y(
9736
9730
  mt,
9737
9731
  {
9738
9732
  className: "richtext-flex richtext-gap-3",
9739
- disabled: ((Mt = i == null ? void 0 : i.attrs) == null ? void 0 : Mt.indent) >= Pi.max,
9740
- onClick: b,
9733
+ disabled: ((Mt = i == null ? void 0 : i.attrs) == null ? void 0 : Mt.indent) >= Ri.max,
9734
+ onClick: w,
9741
9735
  children: [
9742
9736
  /* @__PURE__ */ p(Q, { name: "IndentIncrease" }),
9743
9737
  /* @__PURE__ */ p("span", { children: n("editor.indent.tooltip") })
@@ -9748,8 +9742,8 @@ function cu() {
9748
9742
  mt,
9749
9743
  {
9750
9744
  className: "richtext-flex richtext-gap-3",
9751
- disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) <= Pi.min,
9752
- onClick: w,
9745
+ disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) <= Ri.min,
9746
+ onClick: b,
9753
9747
  children: [
9754
9748
  /* @__PURE__ */ p(Q, { name: "IndentDecrease" }),
9755
9749
  /* @__PURE__ */ p("span", { children: n("editor.outdent.tooltip") })