reactjs-tiptap-editor-pro 0.2.23 → 0.2.25

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.
@@ -1,45 +1,45 @@
1
- var ui = Object.defineProperty;
2
- var mi = (t, e, r) => e in t ? ui(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Xt = (t, e, r) => mi(t, typeof e != "symbol" ? e + "" : e, r);
1
+ var hi = Object.defineProperty;
2
+ var ui = (t, e, r) => e in t ? hi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var Xt = (t, e, r) => ui(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { jsxs as f, jsx as i, Fragment as V } from "react/jsx-runtime";
5
5
  import * as W from "react";
6
- import Ht, { createContext as xi, useContext as fi, useSyncExternalStore as gi, useRef as J, useCallback as H, useState as S, useEffect as B, useMemo as U, Fragment as Pe, memo as pi, forwardRef as wi, useId as vi, useImperativeHandle as bi, useLayoutEffect as yi } from "react";
7
- import { W as re, h as yt, m as st, X as Ci, N as gt, Y as de, R as pt, Z as Re, _ as ie, $ as Ti, B as et, a0 as Ni, a1 as ki, a2 as Si } from "./tiptap-Kst3Ray3.js";
8
- import { u as q, I as xt, o as ft, p as he, V as Ce, q as Mi, C as Ai, i as Z, B as Li, r as ne, E as Ii } from "./index-PJxla8pp.js";
6
+ import Ht, { createContext as mi, useContext as xi, useSyncExternalStore as fi, useRef as J, useCallback as H, useState as S, useEffect as B, useMemo as U, Fragment as Pe, memo as gi, forwardRef as pi, useId as wi, useImperativeHandle as vi, useLayoutEffect as bi } from "react";
7
+ import { W as re, h as yt, m as st, X as yi, N as gt, Y as de, R as pt, Z as Re, _ as ie, $ as Ci, B as et, a0 as Ti, a1 as Ni, a2 as ki } from "./tiptap-Kst3Ray3.js";
8
+ import { u as q, I as xt, o as ft, p as he, V as Ce, q as Si, C as Mi, i as Z, B as Ai, r as ne, E as Li } from "./index-PJxla8pp.js";
9
9
  import * as br from "@radix-ui/react-separator";
10
- import { ap as Ei, al as oe, ak as zi, aq as ue, ar as Pi, am as Oe, T as Wt, N as Ri, A as Oi, as as ae, at as ht, au as yr, b as He, P as De, a0 as Hi, $ as Di, an as Cr, av as _i, aw as me, ax as Bi, H as Ft, ay as $i, az as Vi, S as Wi, aA as Fi, aB as Ui } from "./vendor-tDefVoN_.js";
10
+ import { ap as Ii, al as oe, ak as Ei, aq as ue, ar as zi, am as Oe, T as Wt, N as Pi, A as Ri, as as ae, at as ht, au as yr, b as He, P as De, a0 as Oi, $ as Hi, an as Cr, av as Di, aw as me, ax as _i, H as Ft, ay as Bi, az as $i, S as Vi, aA as Wi, aB as Fi } from "./vendor-tDefVoN_.js";
11
11
  import * as rt from "@radix-ui/react-toast";
12
- import { ChevronRight as Gi, Check as Tr, Circle as qi, X as Nr, PencilRuler as ji, FlipHorizontal as Xi, FlipVertical as Yi, CropIcon as Ki, ChevronUp as Zi, Paperclip as Ji, Eye as Qi, Settings as tn, ZoomOut as en, ZoomIn as rn, BookMarked as nn, Sigma as on, SmilePlusIcon as an, Replace as Ze, SmilePlus as cn, Frame as sn, Columns2 as Je, PanelRight as ln, PanelLeft as dn, Clipboard as hn, Copy as un, GripVertical as mn, Plus as kr, Columns4 as xn, Columns3 as fn, Heading6 as gn, Heading5 as pn, Heading4 as wn, Heading3 as vn, Heading2 as bn, Heading1 as yn, ChevronsUpDown as Cn, Trash as Tn, Trash2 as Sr, TableCellsSplit as Nn, TableCellsMerge as kn, BetweenVerticalEnd as Sn, BetweenVerticalStart as Mn, BetweenHorizonalStart as An, BetweenHorizonalEnd as Ln, Unlink as In, Pencil as Mr, Sparkles as En, Table as zn, Minimize as Pn, Maximize as Rn, Video as On, ImageUp as Hn, Link as Dn, ListTodo as _n, ListOrdered as Bn, List as $n, IndentDecrease as Vn, IndentIncrease as Wn, Type as Fn, CodeXml as Un, Code as Gn, Superscript as qn, Subscript as jn, ChevronDown as Xn, Undo2 as Yn, Redo2 as Kn, PaintRoller as Zn, Eraser as Jn, Minus as Qn, Strikethrough as to, Quote as eo, Underline as ro, Italic as io, LoaderCircle as no, Bold as oo, HelpCircle as Ar } from "lucide-react";
12
+ import { ChevronRight as Ui, Check as Tr, Circle as Gi, X as Nr, PencilRuler as qi, FlipHorizontal as ji, FlipVertical as Xi, CropIcon as Yi, ChevronUp as Ki, Paperclip as Zi, Eye as Ji, Settings as Qi, ZoomOut as tn, ZoomIn as en, BookMarked as rn, Sigma as nn, SmilePlusIcon as on, Replace as Ze, SmilePlus as an, Frame as cn, Columns2 as Je, PanelRight as sn, PanelLeft as ln, Clipboard as dn, Copy as hn, GripVertical as un, Plus as kr, Columns4 as mn, Columns3 as xn, Heading6 as fn, Heading5 as gn, Heading4 as pn, Heading3 as wn, Heading2 as vn, Heading1 as bn, ChevronsUpDown as yn, Trash as Cn, Trash2 as Sr, TableCellsSplit as Tn, TableCellsMerge as Nn, BetweenVerticalEnd as kn, BetweenVerticalStart as Sn, BetweenHorizonalStart as Mn, BetweenHorizonalEnd as An, Unlink as Ln, Pencil as Mr, Sparkles as In, Table as En, Minimize as zn, Maximize as Pn, Video as Rn, ImageUp as On, Link as Hn, ListTodo as Dn, ListOrdered as _n, List as Bn, IndentDecrease as $n, IndentIncrease as Vn, Type as Wn, CodeXml as Fn, Code as Un, Superscript as Gn, Subscript as qn, ChevronDown as jn, Undo2 as Xn, Redo2 as Yn, PaintRoller as Kn, Eraser as Zn, Minus as Jn, Strikethrough as Qn, Quote as to, Underline as eo, Italic as ro, LoaderCircle as io, Bold as no, HelpCircle as Ar } from "lucide-react";
13
13
  import * as Ut from "@radix-ui/react-tooltip";
14
14
  import { Color4 as j, Editor as Lr, makeDropdownToolbar as Ir } from "easydrawer";
15
15
  import { Slot as Er } from "@radix-ui/react-slot";
16
16
  import * as zr from "@radix-ui/react-toggle";
17
- import { TextAlignRightIcon as ao, TextAlignLeftIcon as co, TextAlignJustifyIcon as so, TextAlignCenterIcon as lo } from "@radix-ui/react-icons";
17
+ import { TextAlignRightIcon as oo, TextAlignLeftIcon as ao, TextAlignJustifyIcon as co, TextAlignCenterIcon as so } from "@radix-ui/react-icons";
18
18
  import * as it from "@radix-ui/react-dialog";
19
19
  import * as _t from "@radix-ui/react-popover";
20
20
  import * as Pr from "@radix-ui/react-label";
21
21
  import { Resizable as Rr } from "re-resizable";
22
22
  import _e from "katex";
23
23
  import ce from "mermaid";
24
- import ho, { sticky as uo } from "tippy.js";
25
- import { HexColorPicker as mo } from "react-colorful";
24
+ import lo, { sticky as ho } from "tippy.js";
25
+ import { HexColorPicker as uo } from "react-colorful";
26
26
  import * as Te from "@radix-ui/react-switch";
27
27
  import * as Ct from "@radix-ui/react-tabs";
28
- import xo from "react-image-crop";
28
+ import mo from "react-image-crop";
29
29
  import * as Ne from "@radix-ui/react-checkbox";
30
30
  import * as X from "@radix-ui/react-dropdown-menu";
31
31
  function P(...t) {
32
- return Ei(oe(t));
32
+ return Ii(oe(t));
33
33
  }
34
34
  let ge;
35
35
  function pe() {
36
36
  return ge === void 0 && (ge = navigator.platform.includes("Mac")), ge;
37
37
  }
38
- function fo(t) {
38
+ function xo(t) {
39
39
  return `${t}`.toLowerCase() === "mod" ? pe() ? "⌘" : "Ctrl" : `${t}`.toLowerCase() === "alt" ? pe() ? "⌥" : "Alt" : `${t}`.toLowerCase() === "shift" ? pe() ? "⇧" : "Shift" : t;
40
40
  }
41
- function go(t) {
42
- return t.map(fo).join(" ");
41
+ function fo(t) {
42
+ return t.map(xo).join(" ");
43
43
  }
44
44
  const O = Ht.forwardRef(
45
45
  (t, e) => {
@@ -59,7 +59,7 @@ const O = Ht.forwardRef(
59
59
  asChild: m = !1,
60
60
  upload: x = !1,
61
61
  ...w
62
- } = t, p = Kr[r];
62
+ } = t;
63
63
  return /* @__PURE__ */ f(jr, { children: [
64
64
  /* @__PURE__ */ i(Xr, { asChild: !0, children: /* @__PURE__ */ f(
65
65
  m ? Er : qr,
@@ -72,14 +72,14 @@ const O = Ht.forwardRef(
72
72
  disabled: a,
73
73
  ...w,
74
74
  children: [
75
- p && /* @__PURE__ */ i(p, { className: "richtext-size-4" }),
75
+ r && /* @__PURE__ */ i(Y, { name: r, className: "richtext-size-4" }),
76
76
  u
77
77
  ]
78
78
  }
79
79
  ) }),
80
80
  n && /* @__PURE__ */ i(We, { ...s, children: /* @__PURE__ */ f("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
81
81
  /* @__PURE__ */ i("div", { children: n }),
82
- !!(l != null && l.length) && /* @__PURE__ */ i("span", { children: go(l) })
82
+ !!(l != null && l.length) && /* @__PURE__ */ i("span", { children: fo(l) })
83
83
  ] }) })
84
84
  ] });
85
85
  }
@@ -95,15 +95,15 @@ function xe(t) {
95
95
  subscribe: h
96
96
  };
97
97
  }
98
- const r = xi(null);
98
+ const r = mi(null);
99
99
  function n({ children: o }) {
100
100
  return /* @__PURE__ */ i(r.Provider, { value: e(), children: o });
101
101
  }
102
102
  function a(o) {
103
- const c = fi(r);
103
+ const c = xi(r);
104
104
  if (!c)
105
105
  throw new Error("Store not found");
106
- return [gi(
106
+ return [fi(
107
107
  c.subscribe,
108
108
  () => o(c.get()),
109
109
  () => o(t)
@@ -120,12 +120,12 @@ xe({
120
120
  xe({
121
121
  value: !1
122
122
  });
123
- const { Provider: po, useStore: Or } = xe({
123
+ const { Provider: go, useStore: Or } = xe({
124
124
  value: !1
125
- }), { Provider: wo, useStore: Hr } = xe({
125
+ }), { Provider: po, useStore: Hr } = xe({
126
126
  value: "light"
127
127
  });
128
- zi("0");
128
+ Ei("0");
129
129
  function se(t, e) {
130
130
  return window.addEventListener(t, e), () => {
131
131
  window.removeEventListener(t, e);
@@ -145,11 +145,11 @@ const bt = {
145
145
  UPDATE_THEME: (t) => `UPDATE_THEME-${t}`,
146
146
  SEARCH_REPLCE: "SEARCH_REPLACE"
147
147
  };
148
- function vo() {
148
+ function wo() {
149
149
  const [t] = Or((e) => e.value);
150
150
  return t;
151
151
  }
152
- const bo = {
152
+ const vo = {
153
153
  setDisable: (t, e) => {
154
154
  Be(bt.EDIT(t), e);
155
155
  }
@@ -176,23 +176,23 @@ function Gt(t, e) {
176
176
  function $e(t, e, r) {
177
177
  return t < e ? e : t > r ? r : t;
178
178
  }
179
- const yo = (t) => typeof t == "number", Co = (t) => typeof t == "string", To = (t) => typeof t == "function";
180
- function No(t, e = "px") {
179
+ const bo = (t) => typeof t == "number", yo = (t) => typeof t == "string", Co = (t) => typeof t == "function";
180
+ function To(t, e = "px") {
181
181
  if (!t)
182
182
  return t;
183
- const r = yo(t) ? String(t) : t, n = Number.parseFloat(r), a = r.match(/[%a-z]+$/i), o = a ? a[0] : e;
183
+ const r = bo(t) ? String(t) : t, n = Number.parseFloat(r), a = r.match(/[%a-z]+$/i), o = a ? a[0] : e;
184
184
  return Number.isNaN(n) ? t : n + o;
185
185
  }
186
- function ko(t, e) {
186
+ function No(t, e) {
187
187
  if (!t)
188
188
  return !1;
189
189
  const { extensions: r = [] } = (t == null ? void 0 : t.extensionManager) ?? {};
190
190
  return !!r.find((a) => a.name === e);
191
191
  }
192
192
  function Sl(t) {
193
- return t.map((e) => Co(e) ? { value: e, name: e } : e);
193
+ return t.map((e) => yo(e) ? { value: e, name: e } : e);
194
194
  }
195
- const So = ue(
195
+ const ko = ue(
196
196
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
197
197
  {
198
198
  variants: {
@@ -220,14 +220,14 @@ const So = ue(
220
220
  ({ className: t, variant: e, size: r, asChild: n = !1, ...a }, o) => /* @__PURE__ */ i(
221
221
  n ? Er : "button",
222
222
  {
223
- className: P(So({ variant: e, size: r, className: t })),
223
+ className: P(ko({ variant: e, size: r, className: t })),
224
224
  ref: o,
225
225
  ...a
226
226
  }
227
227
  )
228
228
  );
229
229
  G.displayName = "Button";
230
- const Mo = X.Root, Ao = X.Trigger, Qe = X.Portal, tr = X.Sub, ke = W.forwardRef(({ className: t, inset: e, children: r, ...n }, a) => /* @__PURE__ */ f(
230
+ const So = X.Root, Mo = X.Trigger, Qe = X.Portal, tr = X.Sub, ke = W.forwardRef(({ className: t, inset: e, children: r, ...n }, a) => /* @__PURE__ */ f(
231
231
  X.SubTrigger,
232
232
  {
233
233
  ref: a,
@@ -239,7 +239,7 @@ const Mo = X.Root, Ao = X.Trigger, Qe = X.Portal, tr = X.Sub, ke = W.forwardRef(
239
239
  ...n,
240
240
  children: [
241
241
  r,
242
- /* @__PURE__ */ i(Gi, { className: "richtext-ml-auto richtext-h-4 richtext-w-4" })
242
+ /* @__PURE__ */ i(Ui, { className: "richtext-ml-auto richtext-h-4 richtext-w-4" })
243
243
  ]
244
244
  }
245
245
  ));
@@ -282,7 +282,7 @@ const ot = W.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
282
282
  }
283
283
  ));
284
284
  ot.displayName = X.Item.displayName;
285
- const Lo = W.forwardRef(({ className: t, children: e, checked: r, ...n }, a) => /* @__PURE__ */ f(
285
+ const Ao = W.forwardRef(({ className: t, children: e, checked: r, ...n }, a) => /* @__PURE__ */ f(
286
286
  X.CheckboxItem,
287
287
  {
288
288
  ref: a,
@@ -298,8 +298,8 @@ const Lo = W.forwardRef(({ className: t, children: e, checked: r, ...n }, a) =>
298
298
  ]
299
299
  }
300
300
  ));
301
- Lo.displayName = X.CheckboxItem.displayName;
302
- const Io = W.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(
301
+ Ao.displayName = X.CheckboxItem.displayName;
302
+ const Lo = W.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(
303
303
  X.RadioItem,
304
304
  {
305
305
  ref: n,
@@ -309,13 +309,13 @@ const Io = W.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__
309
309
  ),
310
310
  ...r,
311
311
  children: [
312
- /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(X.ItemIndicator, { children: /* @__PURE__ */ i(qi, { className: "richtext-h-2 richtext-w-2 richtext-fill-current" }) }) }),
312
+ /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(X.ItemIndicator, { children: /* @__PURE__ */ i(Gi, { className: "richtext-h-2 richtext-w-2 richtext-fill-current" }) }) }),
313
313
  e
314
314
  ]
315
315
  }
316
316
  ));
317
- Io.displayName = X.RadioItem.displayName;
318
- const Eo = W.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */ i(
317
+ Lo.displayName = X.RadioItem.displayName;
318
+ const Io = W.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */ i(
319
319
  X.Label,
320
320
  {
321
321
  ref: n,
@@ -327,7 +327,7 @@ const Eo = W.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
327
327
  ...r
328
328
  }
329
329
  ));
330
- Eo.displayName = X.Label.displayName;
330
+ Io.displayName = X.Label.displayName;
331
331
  const _r = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
332
332
  X.Separator,
333
333
  {
@@ -337,7 +337,7 @@ const _r = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
337
337
  }
338
338
  ));
339
339
  _r.displayName = X.Separator.displayName;
340
- function zo({
340
+ function Eo({
341
341
  className: t,
342
342
  ...e
343
343
  }) {
@@ -349,7 +349,7 @@ function zo({
349
349
  }
350
350
  );
351
351
  }
352
- zo.displayName = "DropdownMenuShortcut";
352
+ Eo.displayName = "DropdownMenuShortcut";
353
353
  const tt = W.forwardRef(
354
354
  ({ className: t, type: e, ...r }, n) => /* @__PURE__ */ i(
355
355
  "input",
@@ -365,13 +365,13 @@ const tt = W.forwardRef(
365
365
  )
366
366
  );
367
367
  tt.displayName = "Input";
368
- const Po = ue(
368
+ const zo = ue(
369
369
  "richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
370
370
  ), ct = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
371
371
  Pr.Root,
372
372
  {
373
373
  ref: r,
374
- className: P(Po(), t),
374
+ className: P(zo(), t),
375
375
  ...e
376
376
  }
377
377
  ));
@@ -463,7 +463,7 @@ const $t = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
463
463
  }
464
464
  ));
465
465
  $t.displayName = Ct.Content.displayName;
466
- const Ro = rt.Provider, Vr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
466
+ const Po = rt.Provider, Vr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
467
467
  rt.Viewport,
468
468
  {
469
469
  ref: r,
@@ -475,7 +475,7 @@ const Ro = rt.Provider, Vr = W.forwardRef(({ className: t, ...e }, r) => /* @__P
475
475
  }
476
476
  ));
477
477
  Vr.displayName = rt.Viewport.displayName;
478
- const Oo = ue(
478
+ const Ro = ue(
479
479
  "richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",
480
480
  {
481
481
  variants: {
@@ -492,12 +492,12 @@ const Oo = ue(
492
492
  rt.Root,
493
493
  {
494
494
  ref: n,
495
- className: P(Oo({ variant: e }), t),
495
+ className: P(Ro({ variant: e }), t),
496
496
  ...r
497
497
  }
498
498
  ));
499
499
  Wr.displayName = rt.Root.displayName;
500
- const Ho = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
500
+ const Oo = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
501
501
  rt.Action,
502
502
  {
503
503
  ref: r,
@@ -508,7 +508,7 @@ const Ho = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
508
508
  ...e
509
509
  }
510
510
  ));
511
- Ho.displayName = rt.Action.displayName;
511
+ Oo.displayName = rt.Action.displayName;
512
512
  const Fr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
513
513
  rt.Close,
514
514
  {
@@ -541,7 +541,7 @@ const Gr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
541
541
  }
542
542
  ));
543
543
  Gr.displayName = rt.Description.displayName;
544
- const Do = ue(
544
+ const Ho = ue(
545
545
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
546
546
  {
547
547
  variants: {
@@ -564,12 +564,12 @@ const Do = ue(
564
564
  zr.Root,
565
565
  {
566
566
  ref: a,
567
- className: P(Do({ variant: e, size: r, className: t })),
567
+ className: P(Ho({ variant: e, size: r, className: t })),
568
568
  ...n
569
569
  }
570
570
  ));
571
571
  qr.displayName = zr.Root.displayName;
572
- const _o = Ut.Provider, jr = Ut.Root, Xr = Ut.Trigger, We = W.forwardRef(({ className: t, sideOffset: e = 4, ...r }, n) => /* @__PURE__ */ i(
572
+ const Do = Ut.Provider, jr = Ut.Root, Xr = Ut.Trigger, We = W.forwardRef(({ className: t, sideOffset: e = 4, ...r }, n) => /* @__PURE__ */ i(
573
573
  Ut.Content,
574
574
  {
575
575
  ref: n,
@@ -582,9 +582,9 @@ const _o = Ut.Provider, jr = Ut.Root, Xr = Ut.Trigger, We = W.forwardRef(({ clas
582
582
  }
583
583
  ));
584
584
  We.displayName = Ut.Content.displayName;
585
- const Bo = 1, $o = 1e6;
585
+ const _o = 1, Bo = 1e6;
586
586
  let we = 0;
587
- function Vo() {
587
+ function $o() {
588
588
  return we = (we + 1) % Number.MAX_SAFE_INTEGER, we.toString();
589
589
  }
590
590
  const ve = /* @__PURE__ */ new Map();
@@ -596,15 +596,15 @@ function er(t) {
596
596
  type: "REMOVE_TOAST",
597
597
  toastId: t
598
598
  });
599
- }, $o);
599
+ }, Bo);
600
600
  ve.set(t, e);
601
601
  }
602
- function Wo(t, e) {
602
+ function Vo(t, e) {
603
603
  switch (e.type) {
604
604
  case "ADD_TOAST":
605
605
  return {
606
606
  ...t,
607
- toasts: [e.toast, ...t.toasts].slice(0, Bo)
607
+ toasts: [e.toast, ...t.toasts].slice(0, _o)
608
608
  };
609
609
  case "UPDATE_TOAST":
610
610
  return {
@@ -640,12 +640,12 @@ function Wo(t, e) {
640
640
  const te = [];
641
641
  let ee = { toasts: [] };
642
642
  function Dt(t) {
643
- ee = Wo(ee, t), te.forEach((e) => {
643
+ ee = Vo(ee, t), te.forEach((e) => {
644
644
  e(ee);
645
645
  });
646
646
  }
647
- function Fo({ ...t }) {
648
- const e = Vo(), r = (a) => Dt({
647
+ function Wo({ ...t }) {
648
+ const e = $o(), r = (a) => Dt({
649
649
  type: "UPDATE_TOAST",
650
650
  toast: { ...a, id: e }
651
651
  }), n = () => Dt({ type: "DISMISS_TOAST", toastId: e });
@@ -665,14 +665,14 @@ function Fo({ ...t }) {
665
665
  update: r
666
666
  };
667
667
  }
668
- function Uo() {
668
+ function Fo() {
669
669
  const [t, e] = W.useState(ee);
670
670
  return W.useEffect(() => (te.push(e), () => {
671
671
  const r = te.indexOf(e);
672
672
  r > -1 && te.splice(r, 1);
673
673
  }), [t]), {
674
674
  ...t,
675
- toast: Fo,
675
+ toast: Wo,
676
676
  dismiss: (r) => Dt({ type: "DISMISS_TOAST", toastId: r })
677
677
  };
678
678
  }
@@ -695,7 +695,7 @@ const Yr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
695
695
  }
696
696
  ));
697
697
  Yr.displayName = Ne.Root.displayName;
698
- function Go(t) {
698
+ function Uo(t) {
699
699
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
700
700
  "path",
701
701
  {
@@ -704,7 +704,7 @@ function Go(t) {
704
704
  }
705
705
  ) });
706
706
  }
707
- function qo(t) {
707
+ function Go(t) {
708
708
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
709
709
  "path",
710
710
  {
@@ -717,7 +717,7 @@ function qo(t) {
717
717
  }
718
718
  ) });
719
719
  }
720
- function jo() {
720
+ function qo() {
721
721
  return /* @__PURE__ */ i(
722
722
  "svg",
723
723
  {
@@ -744,7 +744,7 @@ function jo() {
744
744
  }
745
745
  );
746
746
  }
747
- function Xo() {
747
+ function jo() {
748
748
  return /* @__PURE__ */ i(
749
749
  "svg",
750
750
  {
@@ -771,7 +771,7 @@ function Xo() {
771
771
  }
772
772
  );
773
773
  }
774
- function Yo(t) {
774
+ function Xo(t) {
775
775
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
776
776
  "path",
777
777
  {
@@ -780,8 +780,8 @@ function Yo(t) {
780
780
  }
781
781
  ) });
782
782
  }
783
- function K(t) {
784
- const e = Kr[t.name];
783
+ function Y(t) {
784
+ const e = ua[t.name];
785
785
  return e ? /* @__PURE__ */ i(
786
786
  e,
787
787
  {
@@ -789,7 +789,7 @@ function K(t) {
789
789
  onClick: t == null ? void 0 : t.onClick
790
790
  }
791
791
  ) : /* @__PURE__ */ i(
792
- Pi,
792
+ zi,
793
793
  {
794
794
  className: `richtext-size-4 ${(t == null ? void 0 : t.className) || ""}`,
795
795
  name: t.name,
@@ -797,7 +797,7 @@ function K(t) {
797
797
  }
798
798
  );
799
799
  }
800
- function Ko(t) {
800
+ function Yo(t) {
801
801
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
802
802
  "path",
803
803
  {
@@ -806,7 +806,7 @@ function Ko(t) {
806
806
  }
807
807
  ) });
808
808
  }
809
- function Zo(t) {
809
+ function Ko(t) {
810
810
  return /* @__PURE__ */ i(
811
811
  "svg",
812
812
  {
@@ -831,10 +831,10 @@ function Zo(t) {
831
831
  }
832
832
  );
833
833
  }
834
- function Jo(t) {
834
+ function Zo(t) {
835
835
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
836
836
  }
837
- function Qo(t) {
837
+ function Jo(t) {
838
838
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
839
839
  "path",
840
840
  {
@@ -843,7 +843,7 @@ function Qo(t) {
843
843
  }
844
844
  ) });
845
845
  }
846
- function ta(t) {
846
+ function Qo(t) {
847
847
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
848
848
  "path",
849
849
  {
@@ -852,25 +852,25 @@ function ta(t) {
852
852
  }
853
853
  ) });
854
854
  }
855
- function ea() {
855
+ function ta() {
856
856
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
857
857
  }
858
- function ra() {
858
+ function ea() {
859
859
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
860
860
  }
861
- function ia() {
861
+ function ra() {
862
862
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
863
863
  }
864
- function na() {
864
+ function ia() {
865
865
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
866
866
  }
867
- function oa() {
867
+ function na() {
868
868
  return /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
869
869
  /* @__PURE__ */ i("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
870
870
  /* @__PURE__ */ i("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
871
871
  ] });
872
872
  }
873
- function aa() {
873
+ function oa() {
874
874
  return /* @__PURE__ */ f(
875
875
  "svg",
876
876
  {
@@ -898,16 +898,16 @@ function aa() {
898
898
  }
899
899
  );
900
900
  }
901
- function ca() {
901
+ function aa() {
902
902
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ f("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
903
903
  /* @__PURE__ */ i("path", { d: "M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10" }),
904
904
  /* @__PURE__ */ i("path", { d: "M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523" })
905
905
  ] }) });
906
906
  }
907
- function sa() {
907
+ function ca() {
908
908
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
909
909
  }
910
- function la() {
910
+ function sa() {
911
911
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ f("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
912
912
  /* @__PURE__ */ i("circle", { cx: "10", cy: "24", r: "4" }),
913
913
  /* @__PURE__ */ i("circle", { cx: "38", cy: "10", r: "4" }),
@@ -916,13 +916,13 @@ function la() {
916
916
  /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
917
917
  ] }) });
918
918
  }
919
- function da() {
919
+ function la() {
920
920
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
921
921
  }
922
- function ha() {
922
+ function da() {
923
923
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
924
924
  }
925
- function ua() {
925
+ function ha() {
926
926
  return /* @__PURE__ */ i(
927
927
  "svg",
928
928
  {
@@ -943,106 +943,106 @@ function ua() {
943
943
  }
944
944
  );
945
945
  }
946
- const Kr = {
947
- Bold: oo,
948
- LoaderCircle: no,
949
- Italic: io,
950
- Underline: ro,
951
- Quote: eo,
952
- TextQuote: qo,
953
- Strikethrough: to,
954
- Minus: Qn,
955
- Eraser: Jn,
956
- PaintRoller: Zn,
957
- Redo2: Kn,
958
- Undo2: Yn,
959
- AlignCenter: lo,
960
- AlignJustify: so,
961
- AlignLeft: co,
962
- AlignRight: ao,
963
- ChevronDown: Xn,
964
- Subscript: jn,
965
- Superscript: qn,
966
- Code: Gn,
967
- Code2: Un,
968
- Type: Fn,
969
- IndentIncrease: Wn,
970
- IndentDecrease: Vn,
971
- List: $n,
972
- ListOrdered: Bn,
973
- ListTodo: _n,
974
- Link: Dn,
975
- ImageUp: Hn,
976
- Video: On,
977
- Maximize: Rn,
978
- Minimize: Pn,
979
- Table: zn,
980
- Sparkles: En,
946
+ const ua = {
947
+ Bold: no,
948
+ LoaderCircle: io,
949
+ Italic: ro,
950
+ Underline: eo,
951
+ Quote: to,
952
+ TextQuote: Go,
953
+ Strikethrough: Qn,
954
+ Minus: Jn,
955
+ Eraser: Zn,
956
+ PaintRoller: Kn,
957
+ Redo2: Yn,
958
+ Undo2: Xn,
959
+ AlignCenter: so,
960
+ AlignJustify: co,
961
+ AlignLeft: ao,
962
+ AlignRight: oo,
963
+ ChevronDown: jn,
964
+ Subscript: qn,
965
+ Superscript: Gn,
966
+ Code: Un,
967
+ Code2: Fn,
968
+ Type: Wn,
969
+ IndentIncrease: Vn,
970
+ IndentDecrease: $n,
971
+ List: Bn,
972
+ ListOrdered: _n,
973
+ ListTodo: Dn,
974
+ Link: Hn,
975
+ ImageUp: On,
976
+ Video: Rn,
977
+ Maximize: Pn,
978
+ Minimize: zn,
979
+ Table: En,
980
+ Sparkles: In,
981
981
  Pencil: Mr,
982
- Unlink: In,
983
- BetweenHorizonalEnd: Ln,
984
- BetweenHorizonalStart: An,
985
- BetweenVerticalStart: Mn,
986
- BetweenVerticalEnd: Sn,
987
- TableCellsMerge: kn,
988
- TableCellsSplit: Nn,
982
+ Unlink: Ln,
983
+ BetweenHorizonalEnd: An,
984
+ BetweenHorizonalStart: Mn,
985
+ BetweenVerticalStart: Sn,
986
+ BetweenVerticalEnd: kn,
987
+ TableCellsMerge: Nn,
988
+ TableCellsSplit: Tn,
989
989
  Trash2: Sr,
990
- Trash: Tn,
990
+ Trash: Cn,
991
991
  Replace: Ze,
992
- ChevronsUpDown: Cn,
993
- LineHeight: Ko,
994
- Word: Yo,
995
- Heading1: yn,
996
- Heading2: bn,
997
- Heading3: vn,
998
- Heading4: wn,
999
- Heading5: pn,
1000
- Heading6: gn,
992
+ ChevronsUpDown: yn,
993
+ LineHeight: Yo,
994
+ Word: Xo,
995
+ Heading1: bn,
996
+ Heading2: vn,
997
+ Heading3: wn,
998
+ Heading4: pn,
999
+ Heading5: gn,
1000
+ Heading6: fn,
1001
1001
  Columns2: Je,
1002
- Columns3: fn,
1003
- Columns4: xn,
1002
+ Columns3: xn,
1003
+ Columns4: mn,
1004
1004
  Plus: kr,
1005
- Grip: mn,
1006
- Copy: un,
1007
- Clipboard: hn,
1008
- PanelLeft: dn,
1009
- PanelRight: ln,
1005
+ Grip: un,
1006
+ Copy: hn,
1007
+ Clipboard: dn,
1008
+ PanelLeft: ln,
1009
+ PanelRight: sn,
1010
1010
  Columns: Je,
1011
- Iframe: sn,
1012
- MenuDown: Zo,
1013
- SizeS: ta,
1014
- SizeM: Qo,
1015
- SizeL: Jo,
1016
- AspectRatio: Go,
1017
- Emoji: cn,
1018
- DeleteColumn: jo,
1019
- DeleteRow: Xo,
1011
+ Iframe: cn,
1012
+ MenuDown: Ko,
1013
+ SizeS: Qo,
1014
+ SizeM: Jo,
1015
+ SizeL: Zo,
1016
+ AspectRatio: Uo,
1017
+ Emoji: an,
1018
+ DeleteColumn: qo,
1019
+ DeleteRow: jo,
1020
1020
  SearchAndReplace: Ze,
1021
- EmojiIcon: an,
1022
- KatexIcon: on,
1023
- ExportPdf: oa,
1024
- ExportWord: aa,
1025
- ImportWord: ua,
1026
- ColumnAddLeft: ea,
1027
- ColumnAddRight: ra,
1028
- BookMarked: nn,
1029
- Excalidraw: na,
1030
- ZoomIn: rn,
1031
- ZoomOut: en,
1032
- Settings: tn,
1033
- Eye: Qi,
1034
- TextDirection: ia,
1035
- LeftToRight: sa,
1036
- RightToLeft: da,
1037
- Attachment: Ji,
1038
- GifIcon: ca,
1039
- ChevronUp: Zi,
1040
- Crop: Ki,
1041
- Mermaid: la,
1042
- Twitter: ha,
1043
- FlipX: Yi,
1044
- FlipY: Xi,
1045
- PencilRuler: ji
1021
+ EmojiIcon: on,
1022
+ KatexIcon: nn,
1023
+ ExportPdf: na,
1024
+ ExportWord: oa,
1025
+ ImportWord: ha,
1026
+ ColumnAddLeft: ta,
1027
+ ColumnAddRight: ea,
1028
+ BookMarked: rn,
1029
+ Excalidraw: ia,
1030
+ ZoomIn: en,
1031
+ ZoomOut: tn,
1032
+ Settings: Qi,
1033
+ Eye: Ji,
1034
+ TextDirection: ra,
1035
+ LeftToRight: ca,
1036
+ RightToLeft: la,
1037
+ Attachment: Zi,
1038
+ GifIcon: aa,
1039
+ ChevronUp: Ki,
1040
+ Crop: Yi,
1041
+ Mermaid: sa,
1042
+ Twitter: da,
1043
+ FlipX: Xi,
1044
+ FlipY: ji,
1045
+ PencilRuler: qi
1046
1046
  };
1047
1047
  function ma({ fill: t }) {
1048
1048
  return /* @__PURE__ */ i(
@@ -1132,7 +1132,7 @@ function xa(t) {
1132
1132
  onChange: n,
1133
1133
  highlight: !0,
1134
1134
  disabled: t == null ? void 0 : t.disabled,
1135
- children: /* @__PURE__ */ i(G, { variant: "ghost", size: "icon", className: "!richtext-w-3 !richtext-h-[32px]", disabled: t == null ? void 0 : t.disabled, children: /* @__PURE__ */ i(K, { className: "!richtext-w-3 !richtext-h-3 richtext-text-zinc-500", name: "MenuDown" }) })
1135
+ children: /* @__PURE__ */ i(G, { variant: "ghost", size: "icon", className: "!richtext-w-3 !richtext-h-[32px]", disabled: t == null ? void 0 : t.disabled, children: /* @__PURE__ */ i(Y, { className: "!richtext-w-3 !richtext-h-3 richtext-text-zinc-500", name: "MenuDown" }) })
1136
1136
  }
1137
1137
  )
1138
1138
  ] });
@@ -1186,7 +1186,7 @@ function fa(t) {
1186
1186
  }
1187
1187
  ),
1188
1188
  /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-inset-y-0 richtext-start-0 richtext-flex richtext-items-center richtext-justify-center richtext-px-2", children: /* @__PURE__ */ i(
1189
- K,
1189
+ Y,
1190
1190
  {
1191
1191
  className: "richtext-size-5 richtext-text-muted-foreground",
1192
1192
  name: "Link"
@@ -1242,7 +1242,7 @@ function be({
1242
1242
  dispatch: e,
1243
1243
  type: r
1244
1244
  }) {
1245
- const n = re((o) => o.type.name === le.name)(t.selection), a = re((o) => o.type.name === Zr.name)(t.selection);
1245
+ const n = re((o) => o.type.name === le.name)(t.selection), a = re((o) => o.type.name === Kr.name)(t.selection);
1246
1246
  if (e && n && a) {
1247
1247
  const o = n.node, c = a.node.attrs.index, l = o.toJSON();
1248
1248
  let s = c;
@@ -1259,7 +1259,7 @@ function be({
1259
1259
  })), l.attrs.cols = l.content.length, l.content.forEach((m, x) => {
1260
1260
  m.attrs.index = x;
1261
1261
  });
1262
- const h = Ri.fromJSON(t.schema, l);
1262
+ const h = Pi.fromJSON(t.schema, l);
1263
1263
  let d = n.pos;
1264
1264
  h.content.forEach((m, x, w) => {
1265
1265
  w < s && (d += m.nodeSize);
@@ -1272,7 +1272,7 @@ function be({
1272
1272
  return !0;
1273
1273
  }
1274
1274
  function rr({ state: t, dispatch: e, type: r }) {
1275
- const n = re((o) => o.type.name === le.name)(t.selection), a = re((o) => o.type.name === Zr.name)(t.selection);
1275
+ const n = re((o) => o.type.name === le.name)(t.selection), a = re((o) => o.type.name === Kr.name)(t.selection);
1276
1276
  if (e && n && a) {
1277
1277
  const o = n.node, c = a.node.attrs.index;
1278
1278
  let l = 0;
@@ -1349,7 +1349,7 @@ const va = 200, le = yt.create({
1349
1349
  })
1350
1350
  };
1351
1351
  }
1352
- }), Zr = yt.create({
1352
+ }), Kr = yt.create({
1353
1353
  name: "column",
1354
1354
  content: "block+",
1355
1355
  isolating: !0,
@@ -1385,12 +1385,12 @@ function ba(t, e, r) {
1385
1385
  }
1386
1386
  function ya(t, e, r, n) {
1387
1387
  const { doc: a, selection: o } = t;
1388
- if (!a || !o || !(o instanceof Wt || o instanceof Oi))
1388
+ if (!a || !o || !(o instanceof Wt || o instanceof Ri))
1389
1389
  return t;
1390
1390
  const { from: c, to: l } = o;
1391
1391
  return a.nodesBetween(c, l, (s, h) => {
1392
1392
  const d = s.type;
1393
- return r.includes(d.name) ? (t = Ae(t, h, e), !1) : !Ci(s.type.name, n.extensionManager.extensions);
1393
+ return r.includes(d.name) ? (t = Ae(t, h, e), !1) : !yi(s.type.name, n.extensionManager.extensions);
1394
1394
  }), t;
1395
1395
  }
1396
1396
  function Ae(t, e, r) {
@@ -1419,7 +1419,7 @@ const Ca = {
1419
1419
  setOpen: (t, e) => {
1420
1420
  Be(bt.UPLOAD_IMAGE(t), e);
1421
1421
  }
1422
- }, ut = it.Root, mt = it.Trigger, Ta = it.Portal, Jr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
1422
+ }, ut = it.Root, mt = it.Trigger, Ta = it.Portal, Zr = W.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
1423
1423
  it.Overlay,
1424
1424
  {
1425
1425
  ref: r,
@@ -1430,9 +1430,9 @@ const Ca = {
1430
1430
  ...e
1431
1431
  }
1432
1432
  ));
1433
- Jr.displayName = it.Overlay.displayName;
1433
+ Zr.displayName = it.Overlay.displayName;
1434
1434
  const lt = W.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(Ta, { children: [
1435
- /* @__PURE__ */ i(Jr, {}),
1435
+ /* @__PURE__ */ i(Zr, {}),
1436
1436
  /* @__PURE__ */ f(
1437
1437
  it.Content,
1438
1438
  {
@@ -1453,7 +1453,7 @@ const lt = W.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__
1453
1453
  )
1454
1454
  ] }));
1455
1455
  lt.displayName = it.Content.displayName;
1456
- function Qr({
1456
+ function Jr({
1457
1457
  className: t,
1458
1458
  ...e
1459
1459
  }) {
@@ -1468,7 +1468,7 @@ function Qr({
1468
1468
  }
1469
1469
  );
1470
1470
  }
1471
- Qr.displayName = "DialogHeader";
1471
+ Jr.displayName = "DialogHeader";
1472
1472
  function wt({
1473
1473
  className: t,
1474
1474
  ...e
@@ -1613,7 +1613,7 @@ function Sa({ editor: t, imageInline: e, onClose: r }) {
1613
1613
  /* @__PURE__ */ f(lt, { children: [
1614
1614
  /* @__PURE__ */ i(dt, { children: n("editor.image.dialog.tab.uploadCrop") }),
1615
1615
  /* @__PURE__ */ i("div", { children: m.src && /* @__PURE__ */ i(
1616
- xo,
1616
+ mo,
1617
1617
  {
1618
1618
  className: "richtext-w-full",
1619
1619
  crop: l,
@@ -1642,7 +1642,7 @@ function Sa({ editor: t, imageInline: e, onClose: r }) {
1642
1642
  children: [
1643
1643
  n("editor.imageUpload.cancel"),
1644
1644
  /* @__PURE__ */ i(
1645
- K,
1645
+ Y,
1646
1646
  {
1647
1647
  className: "richtext-ml-[4px]",
1648
1648
  name: "Trash2"
@@ -1659,7 +1659,7 @@ function Sa({ editor: t, imageInline: e, onClose: r }) {
1659
1659
  children: [
1660
1660
  n("editor.imageUpload.crop"),
1661
1661
  /* @__PURE__ */ i(
1662
- K,
1662
+ Y,
1663
1663
  {
1664
1664
  className: "richtext-ml-[4px]",
1665
1665
  name: "Crop"
@@ -1843,14 +1843,14 @@ function Aa(t) {
1843
1843
  var nt;
1844
1844
  const { src: E, alt: b, width: k, height: _, flipX: D, flipY: R } = (nt = t == null ? void 0 : t.node) == null ? void 0 : nt.attrs, A = ae(k) ? `${k}px` : k, $ = ae(_) ? `${_}px` : _, F = [];
1845
1845
  D && F.push("rotateX(180deg)"), R && F.push("rotateY(180deg)");
1846
- const Y = F.join(" ");
1846
+ const K = F.join(" ");
1847
1847
  return {
1848
1848
  src: E || void 0,
1849
1849
  alt: b || void 0,
1850
1850
  style: {
1851
1851
  width: A || void 0,
1852
1852
  height: $ || void 0,
1853
- transform: Y || "none"
1853
+ transform: K || "none"
1854
1854
  }
1855
1855
  };
1856
1856
  }, [(N = t == null ? void 0 : t.node) == null ? void 0 : N.attrs]), x = U(() => {
@@ -1971,14 +1971,14 @@ function La() {
1971
1971
  key: At,
1972
1972
  state: {
1973
1973
  init() {
1974
- return Di.empty;
1974
+ return Hi.empty;
1975
1975
  },
1976
1976
  apply(t, e) {
1977
1977
  e = e.map(t.mapping, t.doc);
1978
1978
  const r = t.getMeta(At);
1979
1979
  if (r != null && r.add)
1980
1980
  for (const { id: n, pos: a, src: o } of r.add) {
1981
- const c = Ia(o), l = Hi.widget(a, c, { id: n });
1981
+ const c = Ia(o), l = Oi.widget(a, c, { id: n });
1982
1982
  e = e.add(t.doc, [l]);
1983
1983
  }
1984
1984
  else if (r != null && r.remove)
@@ -2251,7 +2251,7 @@ function Da(t) {
2251
2251
  const d = U(() => {
2252
2252
  var p;
2253
2253
  return (p = t.editor.extensionManager.extensions.find(
2254
- (g) => g.name === ti.name
2254
+ (g) => g.name === Qr.name
2255
2255
  )) == null ? void 0 : p.options;
2256
2256
  }, [t.editor]);
2257
2257
  async function u(w) {
@@ -2361,7 +2361,7 @@ function Da(t) {
2361
2361
  function _a(t) {
2362
2362
  return t = t.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/"), t = t.replace("https://vimeo.com/", "https://player.vimeo.com/video/"), /^https?:\/\/www.bilibili.com\/video\/.*/i.test(t) && (t = t.replace(/\?.*$/, "").replace("https://www.bilibili.com/video/", "https://player.bilibili.com/player.html?bvid=")), t.includes("drive.google.com") && (t = t.replace("/view", "/preview")), t;
2363
2363
  }
2364
- const ti = yt.create({
2364
+ const Qr = yt.create({
2365
2365
  name: "video",
2366
2366
  group: "block",
2367
2367
  atom: !0,
@@ -2408,7 +2408,7 @@ const ti = yt.create({
2408
2408
  width: {
2409
2409
  default: this.options.width,
2410
2410
  renderHTML: ({ width: t }) => ({
2411
- width: No(t)
2411
+ width: To(t)
2412
2412
  })
2413
2413
  },
2414
2414
  frameborder: {
@@ -2453,7 +2453,7 @@ const ti = yt.create({
2453
2453
  innerWrap: $a
2454
2454
  };
2455
2455
  function Va({ editor: t, node: e, updateAttributes: r }) {
2456
- const n = vo(), { url: a, width: o, height: c } = e.attrs, [l, s] = S("");
2456
+ const n = wo(), { url: a, width: o, height: c } = e.attrs, [l, s] = S("");
2457
2457
  function h() {
2458
2458
  l && t.chain().updateAttributes(kt.name, {
2459
2459
  url: l
@@ -2881,7 +2881,7 @@ const Mt = yt.create({
2881
2881
  let ye;
2882
2882
  function Fe() {
2883
2883
  try {
2884
- return ye || (ye = Mi()), ye;
2884
+ return ye || (ye = Si()), ye;
2885
2885
  } catch {
2886
2886
  throw new Error("Error EventEmitter");
2887
2887
  }
@@ -3014,7 +3014,7 @@ function cc({ editor: t, node: e, updateAttributes: r }) {
3014
3014
  const y = (C) => {
3015
3015
  r({ width: C.width, height: C.height });
3016
3016
  };
3017
- return /* @__PURE__ */ i(gt, { className: oe(Pt.wrap, a && Pt.isActive), children: /* @__PURE__ */ i(_i, { onChange: T, children: /* @__PURE__ */ i(
3017
+ return /* @__PURE__ */ i(gt, { className: oe(Pt.wrap, a && Pt.isActive), children: /* @__PURE__ */ i(Di, { onChange: T, children: /* @__PURE__ */ i(
3018
3018
  Rr,
3019
3019
  {
3020
3020
  size: { width: Number.parseInt(c), height: Number.parseInt(l) },
@@ -3379,7 +3379,7 @@ function hc(t) {
3379
3379
  }
3380
3380
  );
3381
3381
  }
3382
- const ei = de.extend({
3382
+ const ti = de.extend({
3383
3383
  name: "imageGif",
3384
3384
  addOptions() {
3385
3385
  var t;
@@ -3668,9 +3668,9 @@ function mc({ editor: t, node: e, updateAttributes: r, getPos: n, selected: a })
3668
3668
  ht((b) => {
3669
3669
  if (b.preventDefault(), b.stopPropagation(), !d)
3670
3670
  return;
3671
- const { x: k, w: _, dir: D } = m, R = (b.clientX - k) * (/l/.test(D) ? -1 : 1), { width: A, height: $ } = e == null ? void 0 : e.attrs, F = A / $, Y = $e(_ + R, he, o.width), nt = Math.round(Y / F);
3671
+ const { x: k, w: _, dir: D } = m, R = (b.clientX - k) * (/l/.test(D) ? -1 : 1), { width: A, height: $ } = e == null ? void 0 : e.attrs, F = A / $, K = $e(_ + R, he, o.width), nt = Math.round(K / F);
3672
3672
  r({
3673
- width: Y,
3673
+ width: K,
3674
3674
  height: nt
3675
3675
  });
3676
3676
  }, ft),
@@ -3858,9 +3858,9 @@ const sr = de.extend({
3858
3858
  function xc({ node: t }) {
3859
3859
  var n;
3860
3860
  const e = ((n = t == null ? void 0 : t.attrs) == null ? void 0 : n.src) || "", r = e == null ? void 0 : e.split("/").pop();
3861
- return r ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i("div", { "data-twitter": "", children: /* @__PURE__ */ i(Bi, { id: r }) }) }) : null;
3861
+ return r ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i("div", { "data-twitter": "", children: /* @__PURE__ */ i(_i, { id: r }) }) }) : null;
3862
3862
  }
3863
- function ri(t) {
3863
+ function ei(t) {
3864
3864
  const { t: e } = q(), [r, n] = S("");
3865
3865
  B(() => {
3866
3866
  var o;
@@ -3913,10 +3913,10 @@ function fc(t) {
3913
3913
  tooltip: t == null ? void 0 : t.tooltip,
3914
3914
  isActive: t == null ? void 0 : t.isActive,
3915
3915
  disabled: t == null ? void 0 : t.disabled,
3916
- children: /* @__PURE__ */ i(K, { name: t == null ? void 0 : t.icon })
3916
+ children: /* @__PURE__ */ i(Y, { name: t == null ? void 0 : t.icon })
3917
3917
  }
3918
3918
  ) }),
3919
- /* @__PURE__ */ i(Tt, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ i(ri, { editor: t.editor, onSetLink: e }) })
3919
+ /* @__PURE__ */ i(Tt, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ i(ei, { editor: t.editor, onSetLink: e }) })
3920
3920
  ] });
3921
3921
  }
3922
3922
  const gc = /(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g, pc = /^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;
@@ -3982,7 +3982,7 @@ const Ie = yt.create({
3982
3982
  },
3983
3983
  addPasteRules() {
3984
3984
  return this.options.addPasteHandler ? [
3985
- Ti({
3985
+ Ci({
3986
3986
  find: gc,
3987
3987
  type: this.type,
3988
3988
  getAttributes: (t) => ({ src: t.input })
@@ -4556,7 +4556,7 @@ function Zc({
4556
4556
  ) })
4557
4557
  ] });
4558
4558
  }
4559
- function ii(t) {
4559
+ function ri(t) {
4560
4560
  const {
4561
4561
  setColorPen: e,
4562
4562
  refEditor: r,
@@ -5048,7 +5048,7 @@ const Jc = ({ editor: t, upload: e }) => {
5048
5048
  }
5049
5049
  ),
5050
5050
  /* @__PURE__ */ i(
5051
- ii,
5051
+ ri,
5052
5052
  {
5053
5053
  changeBorderColorShape: w,
5054
5054
  changeColorShape: m,
@@ -5160,9 +5160,9 @@ function Qc({ editor: t, node: e, updateAttributes: r, getPos: n, selected: a })
5160
5160
  ht((b) => {
5161
5161
  if (b.preventDefault(), b.stopPropagation(), !d)
5162
5162
  return;
5163
- const { x: k, w: _, dir: D } = m, R = (b.clientX - k) * (/l/.test(D) ? -1 : 1), { width: A, height: $ } = e == null ? void 0 : e.attrs, F = A / $, Y = $e(_ + R, he, o.width), nt = Math.round(Y / F);
5163
+ const { x: k, w: _, dir: D } = m, R = (b.clientX - k) * (/l/.test(D) ? -1 : 1), { width: A, height: $ } = e == null ? void 0 : e.attrs, F = A / $, K = $e(_ + R, he, o.width), nt = Math.round(K / F);
5164
5164
  r({
5165
- width: Y,
5165
+ width: K,
5166
5166
  height: nt
5167
5167
  });
5168
5168
  }, ft),
@@ -5438,7 +5438,7 @@ function ts({ editor: t, attrs: e, extension: r }) {
5438
5438
  }
5439
5439
  ),
5440
5440
  /* @__PURE__ */ i(
5441
- ii,
5441
+ ri,
5442
5442
  {
5443
5443
  changeBorderColorShape: T,
5444
5444
  changeColorShape: g,
@@ -5475,7 +5475,7 @@ function ts({ editor: t, attrs: e, extension: r }) {
5475
5475
  }
5476
5476
  );
5477
5477
  }
5478
- function ni(t, e) {
5478
+ function ii(t, e) {
5479
5479
  const [r, n] = S(void 0);
5480
5480
  return B(() => {
5481
5481
  const a = () => {
@@ -5515,7 +5515,7 @@ function is(t) {
5515
5515
  return t.type.name === "drawer";
5516
5516
  }
5517
5517
  function ns(t) {
5518
- const { lang: e } = q(), r = zt(t.editor, hr.name), n = ni(t.editor, hr.name), a = ({ editor: c }) => {
5518
+ const { lang: e } = q(), r = zt(t.editor, hr.name), n = ii(t.editor, hr.name), a = ({ editor: c }) => {
5519
5519
  const { selection: l } = c.view.state, { $from: s, to: h } = l;
5520
5520
  let d = !1;
5521
5521
  return c.view.state.doc.nodesBetween(s.pos, h, (u) => {
@@ -5549,7 +5549,7 @@ function ns(t) {
5549
5549
  }
5550
5550
  ) });
5551
5551
  }
5552
- const os = { padding: "0 12px 12px" }, oi = ({ width: t, maxWidth: e, height: r, onOk: n, children: a }) => {
5552
+ const os = { padding: "0 12px 12px" }, ni = ({ width: t, maxWidth: e, height: r, onOk: n, children: a }) => {
5553
5553
  const { t: o } = q(), [c, l] = S({
5554
5554
  width: "",
5555
5555
  height: "",
@@ -5655,7 +5655,7 @@ function cs({ editor: t }) {
5655
5655
  tooltip: e("editor.edit")
5656
5656
  }
5657
5657
  ),
5658
- /* @__PURE__ */ i(oi, { width: c, maxWidth: r, height: l, onOk: s, children: /* @__PURE__ */ i(
5658
+ /* @__PURE__ */ i(ni, { width: c, maxWidth: r, height: l, onOk: s, children: /* @__PURE__ */ i(
5659
5659
  O,
5660
5660
  {
5661
5661
  icon: "Settings",
@@ -5736,7 +5736,7 @@ function ss({ editor: t }) {
5736
5736
  tooltip: "Open Edit Link"
5737
5737
  }
5738
5738
  ),
5739
- /* @__PURE__ */ i(oi, { width: r, height: n, onOk: x, children: /* @__PURE__ */ i(
5739
+ /* @__PURE__ */ i(ni, { width: r, height: n, onOk: x, children: /* @__PURE__ */ i(
5740
5740
  O,
5741
5741
  {
5742
5742
  icon: "Settings",
@@ -5762,7 +5762,7 @@ function ss({ editor: t }) {
5762
5762
  children: [
5763
5763
  /* @__PURE__ */ i(mt, {}),
5764
5764
  /* @__PURE__ */ f(lt, { children: [
5765
- /* @__PURE__ */ i(Qr, { children: /* @__PURE__ */ i(dt, { children: "Edit Link Iframe" }) }),
5765
+ /* @__PURE__ */ i(Jr, { children: /* @__PURE__ */ i(dt, { children: "Edit Link Iframe" }) }),
5766
5766
  /* @__PURE__ */ i(
5767
5767
  tt,
5768
5768
  {
@@ -5974,7 +5974,7 @@ function ms(t) {
5974
5974
  return t.type.name === "mermaid";
5975
5975
  }
5976
5976
  function xs(t) {
5977
- const { lang: e } = q(), r = zt(t.editor, sr.name), n = ni(t.editor, sr.name), a = ({ editor: c }) => {
5977
+ const { lang: e } = q(), r = zt(t.editor, sr.name), n = ii(t.editor, sr.name), a = ({ editor: c }) => {
5978
5978
  const { selection: l } = c.view.state, { $from: s, to: h } = l;
5979
5979
  let d = !1;
5980
5980
  return c.view.state.doc.nodesBetween(s.pos, h, (u) => {
@@ -6029,7 +6029,7 @@ function fs({ editor: t, disabled: e }) {
6029
6029
  }
6030
6030
  },
6031
6031
  children: e ? /* @__PURE__ */ i(V, {}) : /* @__PURE__ */ i(V, { children: r ? /* @__PURE__ */ i(
6032
- ri,
6032
+ ei,
6033
6033
  {
6034
6034
  editor: t,
6035
6035
  onSetLink: c
@@ -6094,7 +6094,7 @@ function gs({ editor: t, disabled: e, bubbleMenu: r }) {
6094
6094
  },
6095
6095
  "image"
6096
6096
  ) : null,
6097
- n.includes(ei.name) && !((d = r == null ? void 0 : r.imageGifConfig) != null && d.hidden) ? /* @__PURE__ */ i(
6097
+ n.includes(ti.name) && !((d = r == null ? void 0 : r.imageGifConfig) != null && d.hidden) ? /* @__PURE__ */ i(
6098
6098
  Xs,
6099
6099
  {
6100
6100
  disabled: e,
@@ -6188,7 +6188,7 @@ function ps(t) {
6188
6188
  selectedColor: a,
6189
6189
  setSelectedColor: o,
6190
6190
  onChange: c,
6191
- colors: l = Ai
6191
+ colors: l = Mi
6192
6192
  } = t, s = U(() => {
6193
6193
  const x = l, w = [];
6194
6194
  for (let p = 0; p < x.length; p += 10)
@@ -6349,7 +6349,7 @@ function ws({ setColor: t }) {
6349
6349
  /* @__PURE__ */ f(Tt, { children: [
6350
6350
  /* @__PURE__ */ f("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-justify-center", children: [
6351
6351
  /* @__PURE__ */ i(
6352
- mo,
6352
+ uo,
6353
6353
  {
6354
6354
  color: e,
6355
6355
  onChange: r
@@ -6395,7 +6395,7 @@ function vs({ editor: t, disabled: e, toolbar: r }) {
6395
6395
  spacer: w = !1,
6396
6396
  toolbar: p = !0
6397
6397
  } = u.options;
6398
- if (!m || !To(m) || !p)
6398
+ if (!m || !Co(m) || !p)
6399
6399
  continue;
6400
6400
  const g = m({
6401
6401
  editor: t,
@@ -6727,7 +6727,7 @@ function Es(t) {
6727
6727
  ];
6728
6728
  }
6729
6729
  function zs(t, e) {
6730
- return Li.reduce((r, n) => {
6730
+ return Ai.reduce((r, n) => {
6731
6731
  if (n === "divider" && r.length > 0)
6732
6732
  return [...r, {
6733
6733
  type: "divider",
@@ -6741,11 +6741,11 @@ function zs(t, e) {
6741
6741
  function Ue(t, e, r) {
6742
6742
  const n = [], a = t.node(0);
6743
6743
  r = typeof r == "number" && r >= 0 ? r : t.sameParent(e) ? Math.max(0, t.sharedDepth(e.pos) - 1) : t.sharedDepth(e.pos);
6744
- const o = new $i(t, e, r), c = o.depth === 0 ? 0 : a.resolve(o.start).posAtIndex(0);
6744
+ const o = new Bi(t, e, r), c = o.depth === 0 ? 0 : a.resolve(o.start).posAtIndex(0);
6745
6745
  return o.parent.forEach((l, s) => {
6746
6746
  const h = c + s, d = h + l.nodeSize;
6747
6747
  if (h < o.start || h >= o.end) return;
6748
- const u = new Vi(a.resolve(h), a.resolve(d));
6748
+ const u = new $i(a.resolve(h), a.resolve(d));
6749
6749
  n.push(u);
6750
6750
  }), n;
6751
6751
  }
@@ -6763,7 +6763,7 @@ class Ge {
6763
6763
  return new at(r, n);
6764
6764
  }
6765
6765
  }
6766
- class at extends Wi {
6766
+ class at extends Vi {
6767
6767
  constructor(r, n, a, o = 1) {
6768
6768
  const { doc: c } = r, l = r === n, s = r.pos === c.content.size && n.pos === c.content.size, h = l && !s ? c.resolve(n.pos + (o > 0 ? 1 : -1)) : n, d = l && s ? c.resolve(r.pos - (o > 0 ? 1 : -1)) : r, u = Ue(d.min(h), d.max(h), a);
6769
6769
  super(
@@ -6842,7 +6842,7 @@ function Rs(t = 0, e = 0, r = 0) {
6842
6842
  function xr(t) {
6843
6843
  t.parentNode !== null && t.parentNode !== void 0 && t.parentNode.removeChild(t);
6844
6844
  }
6845
- function ai(t) {
6845
+ function oi(t) {
6846
6846
  const { x: e, y: r, direction: n, editor: a } = t;
6847
6847
  let o = null, c = null, l = null, s = e;
6848
6848
  for (; c === null && s < window.innerWidth && s > 0; ) {
@@ -6863,7 +6863,7 @@ function ai(t) {
6863
6863
  };
6864
6864
  }
6865
6865
  function Os(t, e) {
6866
- const { doc: r } = e.view.state, n = ai({ editor: e, x: t.clientX, y: t.clientY, direction: "right" });
6866
+ const { doc: r } = e.view.state, n = oi({ editor: e, x: t.clientX, y: t.clientY, direction: "right" });
6867
6867
  if (!n.resultNode || n.pos === null) return [];
6868
6868
  const a = t.clientX, o = function(d, u, m) {
6869
6869
  const x = Number.parseInt(Qt(d.dom, "paddingLeft"), 10), w = Number.parseInt(Qt(d.dom, "paddingRight"), 10), p = Number.parseInt(Qt(d.dom, "borderLeftWidth"), 10), g = Number.parseInt(Qt(d.dom, "borderLeftWidth"), 10), I = d.dom.getBoundingClientRect();
@@ -6900,9 +6900,9 @@ function pr(t, e) {
6900
6900
  for (; r && r.parentNode && r.parentNode !== t.dom; ) r = r.parentNode;
6901
6901
  return r;
6902
6902
  }
6903
- const ci = new He("dragHandle");
6903
+ const ai = new He("dragHandle");
6904
6904
  function Hs({
6905
- pluginKey: t = ci,
6905
+ pluginKey: t = ai,
6906
6906
  element: e,
6907
6907
  editor: r,
6908
6908
  tippyOptions: n,
@@ -6940,7 +6940,7 @@ function Hs({
6940
6940
  }
6941
6941
  },
6942
6942
  view: (d) => {
6943
- return u(), m(r.view.dom), c = ho(d.dom, {
6943
+ return u(), m(r.view.dom), c = lo(d.dom, {
6944
6944
  ...x(),
6945
6945
  ...n
6946
6946
  }), {
@@ -7043,7 +7043,7 @@ function Hs({
7043
7043
  mousemove: Oe((d, u) => {
7044
7044
  if (!e || !c || l)
7045
7045
  return !1;
7046
- const m = ai({
7046
+ const m = oi({
7047
7047
  x: u.clientX,
7048
7048
  y: u.clientY,
7049
7049
  direction: "right",
@@ -7072,7 +7072,7 @@ function Hs({
7072
7072
  }
7073
7073
  function Ds(t) {
7074
7074
  var N, E, b;
7075
- const { pluginKey: e = ci } = t, { t: r } = q(), [n, a] = S(null), [o, c] = S(-1), l = J(null), s = J(null), [h, d] = S(!1), u = t.editor.extensionManager.extensions.some((k) => k.name === "textAlign"), m = t.editor.extensionManager.extensions.some((k) => k.name === "indent"), x = t.editor.extensionManager.extensions.some((k) => k.name === "clear");
7075
+ const { pluginKey: e = ai } = t, { t: r } = q(), [n, a] = S(null), [o, c] = S(-1), l = J(null), s = J(null), [h, d] = S(!1), u = t.editor.extensionManager.extensions.some((k) => k.name === "textAlign"), m = t.editor.extensionManager.extensions.some((k) => k.name === "indent"), x = t.editor.extensionManager.extensions.some((k) => k.name === "clear");
7076
7076
  B(() => {
7077
7077
  l.current && !t.editor.isDestroyed && (s.current = Hs({
7078
7078
  editor: t.editor,
@@ -7119,9 +7119,9 @@ function Ds(t) {
7119
7119
  var k;
7120
7120
  if (o !== -1) {
7121
7121
  const _ = (n == null ? void 0 : n.nodeSize) || 0, D = o + _, R = (n == null ? void 0 : n.type.name) === "paragraph" && ((k = n == null ? void 0 : n.content) == null ? void 0 : k.size) === 0, A = R ? o + 2 : D + 2;
7122
- t.editor.chain().command(({ dispatch: $, tr: F, state: Y }) => $ ? (R ? F.insertText("/", o, o + 1) : F.insert(
7122
+ t.editor.chain().command(({ dispatch: $, tr: F, state: K }) => $ ? (R ? F.insertText("/", o, o + 1) : F.insert(
7123
7123
  D,
7124
- Y.schema.nodes.paragraph.create(null, [Y.schema.text("/")])
7124
+ K.schema.nodes.paragraph.create(null, [K.schema.text("/")])
7125
7125
  ), $(F)) : !0).focus(A).run();
7126
7126
  }
7127
7127
  }
@@ -7155,7 +7155,7 @@ function Ds(t) {
7155
7155
  type: "button",
7156
7156
  variant: "ghost",
7157
7157
  children: /* @__PURE__ */ i(
7158
- K,
7158
+ Y,
7159
7159
  {
7160
7160
  className: "richtext-text-lg richtext-text-neutral-600 dark:richtext-text-neutral-200",
7161
7161
  name: "Plus"
@@ -7164,7 +7164,7 @@ function Ds(t) {
7164
7164
  }
7165
7165
  ),
7166
7166
  /* @__PURE__ */ f(
7167
- Mo,
7167
+ So,
7168
7168
  {
7169
7169
  onOpenChange: L,
7170
7170
  open: h,
@@ -7188,7 +7188,7 @@ function Ds(t) {
7188
7188
  k.preventDefault(), !(t != null && t.disabled) && d(!0);
7189
7189
  },
7190
7190
  children: /* @__PURE__ */ i(
7191
- K,
7191
+ Y,
7192
7192
  {
7193
7193
  className: "richtext-text-sm richtext-text-neutral-600 dark:richtext-text-neutral-200",
7194
7194
  name: "Grip"
@@ -7200,7 +7200,7 @@ function Ds(t) {
7200
7200
  ),
7201
7201
  /* @__PURE__ */ i(We, { children: r("editor.draghandle.tooltip") })
7202
7202
  ] }),
7203
- /* @__PURE__ */ i(Ao, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" })
7203
+ /* @__PURE__ */ i(Mo, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" })
7204
7204
  ] }),
7205
7205
  /* @__PURE__ */ f(
7206
7206
  Dr,
@@ -7216,7 +7216,7 @@ function Ds(t) {
7216
7216
  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",
7217
7217
  onClick: y,
7218
7218
  children: [
7219
- /* @__PURE__ */ i(K, { name: "Trash2" }),
7219
+ /* @__PURE__ */ i(Y, { name: "Trash2" }),
7220
7220
  /* @__PURE__ */ i("span", { children: r("editor.remove") })
7221
7221
  ]
7222
7222
  }
@@ -7227,7 +7227,7 @@ function Ds(t) {
7227
7227
  className: "richtext-flex richtext-gap-3",
7228
7228
  onClick: w,
7229
7229
  children: [
7230
- /* @__PURE__ */ i(K, { name: "PaintRoller" }),
7230
+ /* @__PURE__ */ i(Y, { name: "PaintRoller" }),
7231
7231
  /* @__PURE__ */ i("span", { children: r("editor.clear.tooltip") })
7232
7232
  ]
7233
7233
  }
@@ -7238,7 +7238,7 @@ function Ds(t) {
7238
7238
  className: "richtext-flex richtext-gap-3",
7239
7239
  onClick: p,
7240
7240
  children: [
7241
- /* @__PURE__ */ i(K, { name: "Clipboard" }),
7241
+ /* @__PURE__ */ i(Y, { name: "Clipboard" }),
7242
7242
  /* @__PURE__ */ i("span", { children: r("editor.copyToClipboard") })
7243
7243
  ]
7244
7244
  }
@@ -7249,7 +7249,7 @@ function Ds(t) {
7249
7249
  className: "richtext-flex richtext-gap-3",
7250
7250
  onClick: g,
7251
7251
  children: [
7252
- /* @__PURE__ */ i(K, { name: "Copy" }),
7252
+ /* @__PURE__ */ i(Y, { name: "Copy" }),
7253
7253
  /* @__PURE__ */ i("span", { children: r("editor.copy") })
7254
7254
  ]
7255
7255
  }
@@ -7257,7 +7257,7 @@ function Ds(t) {
7257
7257
  u || m ? /* @__PURE__ */ i(_r, {}) : null,
7258
7258
  u ? /* @__PURE__ */ f(tr, { children: [
7259
7259
  /* @__PURE__ */ f(ke, { className: "richtext-flex richtext-gap-3", children: [
7260
- /* @__PURE__ */ i(K, { name: "AlignCenter" }),
7260
+ /* @__PURE__ */ i(Y, { name: "AlignCenter" }),
7261
7261
  /* @__PURE__ */ i("span", { children: r("editor.textalign.tooltip") })
7262
7262
  ] }),
7263
7263
  /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ f(Se, { children: [
@@ -7267,7 +7267,7 @@ function Ds(t) {
7267
7267
  className: "richtext-flex richtext-gap-3",
7268
7268
  onClick: () => I("left"),
7269
7269
  children: [
7270
- /* @__PURE__ */ i(K, { name: "AlignLeft" }),
7270
+ /* @__PURE__ */ i(Y, { name: "AlignLeft" }),
7271
7271
  /* @__PURE__ */ i("span", { children: r("editor.textalign.left.tooltip") })
7272
7272
  ]
7273
7273
  }
@@ -7278,7 +7278,7 @@ function Ds(t) {
7278
7278
  className: "richtext-flex richtext-gap-3",
7279
7279
  onClick: () => I("center"),
7280
7280
  children: [
7281
- /* @__PURE__ */ i(K, { name: "AlignCenter" }),
7281
+ /* @__PURE__ */ i(Y, { name: "AlignCenter" }),
7282
7282
  /* @__PURE__ */ i("span", { children: r("editor.textalign.center.tooltip") })
7283
7283
  ]
7284
7284
  }
@@ -7289,7 +7289,7 @@ function Ds(t) {
7289
7289
  className: "richtext-flex richtext-gap-3",
7290
7290
  onClick: () => I("right"),
7291
7291
  children: [
7292
- /* @__PURE__ */ i(K, { name: "AlignRight" }),
7292
+ /* @__PURE__ */ i(Y, { name: "AlignRight" }),
7293
7293
  /* @__PURE__ */ i("span", { children: r("editor.textalign.right.tooltip") })
7294
7294
  ]
7295
7295
  }
@@ -7298,7 +7298,7 @@ function Ds(t) {
7298
7298
  ] }) : null,
7299
7299
  m ? /* @__PURE__ */ f(tr, { children: [
7300
7300
  /* @__PURE__ */ f(ke, { className: "richtext-flex richtext-gap-3", children: [
7301
- /* @__PURE__ */ i(K, { name: "IndentIncrease" }),
7301
+ /* @__PURE__ */ i(Y, { name: "IndentIncrease" }),
7302
7302
  /* @__PURE__ */ i("span", { children: r("editor.indent") })
7303
7303
  ] }),
7304
7304
  /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ f(Se, { children: [
@@ -7309,7 +7309,7 @@ function Ds(t) {
7309
7309
  disabled: ((E = n == null ? void 0 : n.attrs) == null ? void 0 : E.indent) >= Me.max,
7310
7310
  onClick: T,
7311
7311
  children: [
7312
- /* @__PURE__ */ i(K, { name: "IndentIncrease" }),
7312
+ /* @__PURE__ */ i(Y, { name: "IndentIncrease" }),
7313
7313
  /* @__PURE__ */ i("span", { children: r("editor.indent.tooltip") })
7314
7314
  ]
7315
7315
  }
@@ -7321,7 +7321,7 @@ function Ds(t) {
7321
7321
  disabled: ((b = n == null ? void 0 : n.attrs) == null ? void 0 : b.indent) <= Me.min,
7322
7322
  onClick: v,
7323
7323
  children: [
7324
- /* @__PURE__ */ i(K, { name: "IndentDecrease" }),
7324
+ /* @__PURE__ */ i(Y, { name: "IndentDecrease" }),
7325
7325
  /* @__PURE__ */ i("span", { children: r("editor.outdent.tooltip") })
7326
7326
  ]
7327
7327
  }
@@ -7388,7 +7388,7 @@ function $s(t) {
7388
7388
  }
7389
7389
  function Vs({ editor: t, disabled: e, actions: r }) {
7390
7390
  var g, I, T, v, y, C, M, L, N, E, b, k, _, D, R, A, $, F;
7391
- const n = ({ editor: Y }) => Ni(Y.view.state, "table"), { t: a } = q();
7391
+ const n = ({ editor: K }) => Ti(K.view.state, "table"), { t: a } = q();
7392
7392
  function o() {
7393
7393
  t.chain().focus().addColumnBefore().run();
7394
7394
  }
@@ -7416,8 +7416,8 @@ function Vs({ editor: t, disabled: e, actions: r }) {
7416
7416
  function x() {
7417
7417
  t.chain().focus().deleteTable().run();
7418
7418
  }
7419
- function w(Y) {
7420
- t.chain().focus().setTableCellBackground(Y).run();
7419
+ function w(K) {
7420
+ t.chain().focus().setTableCellBackground(K).run();
7421
7421
  }
7422
7422
  return /* @__PURE__ */ i(
7423
7423
  et,
@@ -7435,25 +7435,25 @@ function Vs({ editor: t, disabled: e, actions: r }) {
7435
7435
  getReferenceClientRect: () => {
7436
7436
  var Ke;
7437
7437
  const {
7438
- view: Y,
7438
+ view: K,
7439
7439
  state: {
7440
7440
  selection: { from: nt }
7441
7441
  }
7442
- } = t, Nt = Y.domAtPos(nt).node;
7442
+ } = t, Nt = K.domAtPos(nt).node;
7443
7443
  if (!Nt)
7444
7444
  return new DOMRect(-1e3, -1e3, 0, 0);
7445
7445
  const Ye = (Ke = Nt == null ? void 0 : Nt.closest) == null ? void 0 : Ke.call(Nt, ".tableWrapper");
7446
7446
  return Ye ? Ye.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
7447
7447
  },
7448
- plugins: [uo],
7448
+ plugins: [ho],
7449
7449
  sticky: "popper"
7450
7450
  },
7451
7451
  children: e ? /* @__PURE__ */ i(V, {}) : /* @__PURE__ */ f("div", { className: "richtext-flex richtext-size-full richtext-min-w-32 richtext-flex-row richtext-items-center richtext-gap-0.5 richtext-rounded-lg !richtext-border richtext-border-border richtext-bg-background richtext-p-2 richtext-leading-none richtext-shadow-sm", children: [
7452
7452
  r && /* @__PURE__ */ f(V, { children: [
7453
- r.map((Y, nt) => /* @__PURE__ */ i(
7453
+ r.map((K, nt) => /* @__PURE__ */ i(
7454
7454
  O,
7455
7455
  {
7456
- ...Y
7456
+ ...K
7457
7457
  },
7458
7458
  nt
7459
7459
  )),
@@ -7619,7 +7619,7 @@ function Ws(t) {
7619
7619
  target: "_blank",
7620
7620
  rel: "noopener noreferrer",
7621
7621
  className: "richtext-text-sm richtext-underline richtext-break-all",
7622
- children: Fi(t == null ? void 0 : t.link, {
7622
+ children: Wi(t == null ? void 0 : t.link, {
7623
7623
  length: 50,
7624
7624
  omission: "…"
7625
7625
  })
@@ -7731,10 +7731,10 @@ function Us(t) {
7731
7731
  return t.type.name === Vt.name;
7732
7732
  }
7733
7733
  function Gs(t) {
7734
- return t.type.name === ei.name;
7734
+ return t.type.name === ti.name;
7735
7735
  }
7736
7736
  function qs(t) {
7737
- return t.type.name === ti.name;
7737
+ return t.type.name === Qr.name;
7738
7738
  }
7739
7739
  function js(t) {
7740
7740
  const { lang: e } = q(), r = ({ editor: a }) => {
@@ -7891,8 +7891,8 @@ function Zs({ editor: t, extensions: e }) {
7891
7891
  ] }) }) }) });
7892
7892
  }
7893
7893
  function Js() {
7894
- const { toasts: t } = Uo();
7895
- return /* @__PURE__ */ f(Ro, { children: [
7894
+ const { toasts: t } = Fo();
7895
+ return /* @__PURE__ */ f(Po, { children: [
7896
7896
  t.map(({ id: e, title: r, description: n, action: a, ...o }) => /* @__PURE__ */ f(
7897
7897
  Wr,
7898
7898
  {
@@ -8049,7 +8049,7 @@ div[data-tippy-root] {
8049
8049
  color: inherit;
8050
8050
  }
8051
8051
  }
8052
- `, tl = pi(({ children: t, id: e }) => {
8052
+ `, tl = gi(({ children: t, id: e }) => {
8053
8053
  const [, r] = Or((c) => c.value), [, n] = Hr((c) => c.value), a = (c) => {
8054
8054
  r({
8055
8055
  value: c.detail
@@ -8067,7 +8067,7 @@ div[data-tippy-root] {
8067
8067
  }, []), /* @__PURE__ */ i(V, { children: t });
8068
8068
  });
8069
8069
  function el({ children: t, id: e }) {
8070
- return /* @__PURE__ */ i(po, { children: /* @__PURE__ */ i(wo, { children: /* @__PURE__ */ i(tl, { id: e, children: t }) }) });
8070
+ return /* @__PURE__ */ i(go, { children: /* @__PURE__ */ i(po, { children: /* @__PURE__ */ i(tl, { id: e, children: t }) }) });
8071
8071
  }
8072
8072
  const wr = "data-rc-order", vr = "data-rc-priority", rl = "rc-util-key", ze = /* @__PURE__ */ new Map();
8073
8073
  function il(t, e) {
@@ -8083,7 +8083,7 @@ function il(t, e) {
8083
8083
  }
8084
8084
  return !1;
8085
8085
  }
8086
- function si({ mark: t } = {}) {
8086
+ function ci({ mark: t } = {}) {
8087
8087
  return t ? t.startsWith("data-") ? t : `data-${t}` : rl;
8088
8088
  }
8089
8089
  function Xe(t) {
@@ -8092,18 +8092,18 @@ function Xe(t) {
8092
8092
  function nl(t) {
8093
8093
  return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
8094
8094
  }
8095
- function li(t) {
8095
+ function si(t) {
8096
8096
  return [...(ze.get(t) || t).children].filter(
8097
8097
  (e) => e.tagName === "STYLE"
8098
8098
  );
8099
8099
  }
8100
- function di(t, e = {}) {
8100
+ function li(t, e = {}) {
8101
8101
  const { csp: r, prepend: n, priority: a = 0 } = e, o = nl(n), c = o === "prependQueue", l = document.createElement("style");
8102
8102
  l.setAttribute(wr, o), c && a && l.setAttribute(vr, `${a}`), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = t;
8103
8103
  const s = Xe(e), { firstChild: h } = s;
8104
8104
  if (n) {
8105
8105
  if (c) {
8106
- const d = li(s).filter((u) => {
8106
+ const d = si(s).filter((u) => {
8107
8107
  if (!["prepend", "prependQueue"].includes(u.getAttribute(wr)))
8108
8108
  return !1;
8109
8109
  const m = Number(u.getAttribute(vr) || 0);
@@ -8117,18 +8117,18 @@ function di(t, e = {}) {
8117
8117
  s.append(l);
8118
8118
  return l;
8119
8119
  }
8120
- function hi(t, e = {}) {
8120
+ function di(t, e = {}) {
8121
8121
  const r = Xe(e);
8122
- return li(r).find((n) => n.getAttribute(si(e)) === t);
8122
+ return si(r).find((n) => n.getAttribute(ci(e)) === t);
8123
8123
  }
8124
8124
  function ol(t, e = {}) {
8125
- const r = hi(t, e);
8125
+ const r = di(t, e);
8126
8126
  r && r.remove();
8127
8127
  }
8128
8128
  function al(t, e) {
8129
8129
  const r = ze.get(t);
8130
8130
  if (!r || !il(document, r)) {
8131
- const n = di("", e), { parentNode: a } = n;
8131
+ const n = li("", e), { parentNode: a } = n;
8132
8132
  ze.set(t, a), n.remove();
8133
8133
  }
8134
8134
  }
@@ -8136,15 +8136,15 @@ function cl(t, e, r = {}) {
8136
8136
  var c, l, s;
8137
8137
  const n = Xe(r);
8138
8138
  al(n, r);
8139
- const a = hi(e, r);
8139
+ const a = di(e, r);
8140
8140
  if (a)
8141
8141
  return (c = r.csp) != null && c.nonce && a.nonce !== ((l = r.csp) == null ? void 0 : l.nonce) && (a.nonce = (s = r.csp) == null ? void 0 : s.nonce), a.innerHTML !== t && (a.innerHTML = t), a;
8142
- const o = di(t, r);
8143
- return o.setAttribute(si(r), e), o;
8142
+ const o = li(t, r);
8143
+ return o.setAttribute(ci(r), e), o;
8144
8144
  }
8145
8145
  function sl(t, e) {
8146
- const { content: r, extensions: n, useEditorOptions: a = {} } = t, o = vi(), c = U(() => {
8147
- const u = Ui(n, n, "name");
8146
+ const { content: r, extensions: n, useEditorOptions: a = {} } = t, o = wi(), c = U(() => {
8147
+ const u = Fi(n, n, "name");
8148
8148
  return [...n.map((x) => {
8149
8149
  const w = n.find((p) => p.name === x.name);
8150
8150
  return w ? x.configure(w.options) : x;
@@ -8153,7 +8153,7 @@ function sl(t, e) {
8153
8153
  var x;
8154
8154
  const m = h(u, t.output);
8155
8155
  (x = t == null ? void 0 : t.onChangeContent) == null || x.call(t, m);
8156
- }, Ii), s = ki({
8156
+ }, Li), s = Ni({
8157
8157
  extensions: c,
8158
8158
  content: r,
8159
8159
  onUpdate: ({ editor: u }) => {
@@ -8161,32 +8161,32 @@ function sl(t, e) {
8161
8161
  },
8162
8162
  ...a
8163
8163
  });
8164
- bi(e, () => ({
8164
+ vi(e, () => ({
8165
8165
  editor: s
8166
8166
  })), B(() => {
8167
8167
  document.documentElement.classList.toggle("dark", t.dark), ja.setTheme(o, t.dark ? "dark" : "light");
8168
8168
  }, [t.dark]), B(() => {
8169
- s == null || s.setEditable(!(t != null && t.disabled)), bo.setDisable(o, !(t != null && t.disabled));
8169
+ s == null || s.setEditable(!(t != null && t.disabled)), vo.setDisable(o, !(t != null && t.disabled));
8170
8170
  }, [s, t == null ? void 0 : t.disabled]), B(() => ((t == null ? void 0 : t.resetCSS) !== !1 && cl(Qs, "react-tiptap-reset"), () => {
8171
8171
  ol("react-tiptap-reset");
8172
8172
  }), [t == null ? void 0 : t.resetCSS]);
8173
8173
  function h(u, m) {
8174
8174
  return t != null && t.removeDefaultWrapper ? m === "html" ? u.isEmpty ? "" : u.getHTML() : m === "json" ? u.isEmpty ? {} : u.getJSON() : m === "text" ? u.isEmpty ? "" : u.getText() : "" : m === "html" ? u.getHTML() : m === "json" ? u.getJSON() : m === "text" ? u.getText() : "";
8175
8175
  }
8176
- yi(() => {
8176
+ bi(() => {
8177
8177
  s && (s.id = o);
8178
8178
  }, [o, s]), B(() => () => {
8179
8179
  var u;
8180
8180
  (u = s == null ? void 0 : s.destroy) == null || u.call(s);
8181
8181
  }, []);
8182
- const d = ko(s, "characterCount");
8182
+ const d = No(s, "characterCount");
8183
8183
  return s ? /* @__PURE__ */ f("div", { className: "reactjs-tiptap-editor", children: [
8184
8184
  /* @__PURE__ */ i(
8185
8185
  el,
8186
8186
  {
8187
8187
  id: o,
8188
8188
  children: /* @__PURE__ */ i(
8189
- _o,
8189
+ Do,
8190
8190
  {
8191
8191
  delayDuration: 0,
8192
8192
  disableHoverableContent: !0,
@@ -8200,7 +8200,7 @@ function sl(t, e) {
8200
8200
  }
8201
8201
  ),
8202
8202
  /* @__PURE__ */ i(
8203
- Si,
8203
+ ki,
8204
8204
  {
8205
8205
  className: `richtext-relative ${(t == null ? void 0 : t.contentClass) || ""}`,
8206
8206
  editor: s
@@ -8229,61 +8229,61 @@ function sl(t, e) {
8229
8229
  /* @__PURE__ */ i(Js, {})
8230
8230
  ] }) : /* @__PURE__ */ i(V, {});
8231
8231
  }
8232
- const zl = wi(sl);
8232
+ const zl = pi(sl);
8233
8233
  export {
8234
8234
  St as $,
8235
8235
  O as A,
8236
8236
  G as B,
8237
8237
  ps as C,
8238
- Mo as D,
8238
+ So as D,
8239
8239
  bt as E,
8240
8240
  ct as F,
8241
8241
  tt as G,
8242
8242
  xa as H,
8243
- K as I,
8244
- Uo as J,
8245
- ko as K,
8243
+ Y as I,
8244
+ Fo as J,
8245
+ No as K,
8246
8246
  fa as L,
8247
8247
  le as M,
8248
8248
  Lt as N,
8249
8249
  El as O,
8250
8250
  It as P,
8251
- aa as Q,
8251
+ oa as Q,
8252
8252
  zl as R,
8253
8253
  Br as S,
8254
8254
  jr as T,
8255
- oa as U,
8256
- ti as V,
8255
+ na as U,
8256
+ Qr as V,
8257
8257
  Ll as W,
8258
8258
  Al as X,
8259
8259
  Il as Y,
8260
8260
  kt as Z,
8261
8261
  Mt as _,
8262
8262
  Xr as a,
8263
- ei as a0,
8263
+ ti as a0,
8264
8264
  sr as a1,
8265
8265
  Ie as a2,
8266
8266
  hr as a3,
8267
8267
  We as b,
8268
- Ao as c,
8268
+ Mo as c,
8269
8269
  Dr as d,
8270
8270
  ot as e,
8271
8271
  P as f,
8272
- go as g,
8272
+ fo as g,
8273
8273
  Gt as h,
8274
- Kr as i,
8275
- Lo as j,
8274
+ ua as i,
8275
+ Ao as j,
8276
8276
  _r as k,
8277
8277
  Sl as l,
8278
- zo as m,
8279
- fo as n,
8278
+ Eo as m,
8279
+ xo as n,
8280
8280
  Et as o,
8281
8281
  Tt as p,
8282
8282
  qr as q,
8283
- Zr as r,
8284
- Zo as s,
8283
+ Kr as r,
8284
+ Ko as s,
8285
8285
  Ml as t,
8286
- vo as u,
8286
+ wo as u,
8287
8287
  Me as v,
8288
8288
  Be as w,
8289
8289
  Vt as x,