zs_library 0.7.5 → 0.7.6

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 (2) hide show
  1. package/dist/index.js +485 -475
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,56 +1,56 @@
1
- var zi = Object.defineProperty;
2
- var Li = (t, e, o) => e in t ? zi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var St = (t, e, o) => Li(t, typeof e != "symbol" ? e + "" : e, o);
1
+ var Li = Object.defineProperty;
2
+ var Si = (t, e, o) => e in t ? Li(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var St = (t, e, o) => Si(t, typeof e != "symbol" ? e + "" : e, o);
4
4
  import "./index.css";
5
- import Si from "i18next";
6
- import { initReactI18next as Ii, useTranslation as ye } from "react-i18next";
5
+ import Ii from "i18next";
6
+ import { initReactI18next as Mi, useTranslation as ye } from "react-i18next";
7
7
  import { jsx as a, jsxs as I, Fragment as ge } from "react/jsx-runtime";
8
8
  import * as Je from "react";
9
- import { createContext as Ht, useMemo as de, useContext as De, useState as M, useRef as X, useCallback as P, useEffect as T, forwardRef as Q, useImperativeHandle as rt, memo as Le, useLayoutEffect as Mi, cloneElement as mn, isValidElement as Zo, version as Ni, Fragment as Ei } from "react";
9
+ import { createContext as Ht, useMemo as de, useContext as De, useState as M, useRef as Z, useCallback as P, useEffect as T, forwardRef as Q, useImperativeHandle as rt, memo as Le, useLayoutEffect as Ni, cloneElement as mn, isValidElement as Zo, version as Ei, Fragment as Ai } from "react";
10
10
  import { css as B, cx as O } from "@emotion/css";
11
- import Ai from "react-slick";
11
+ import Ri from "react-slick";
12
12
  import { ReactSortable as Ot } from "react-sortablejs";
13
- import { useLocalStorageState as Ri, useDebounceEffect as Bi, useRequest as Ti } from "ahooks";
13
+ import { useLocalStorageState as Bi, useDebounceEffect as Ti, useRequest as Di } from "ahooks";
14
14
  import { v4 as qt } from "uuid";
15
15
  import { motion as te, AnimatePresence as Re, useMotionValue as bn, useTransform as st, useSpring as It } from "motion/react";
16
16
  import { useMotionValue as oh } from "motion/react";
17
- import Di from "rc-dialog";
18
- import $i from "react-json-view";
19
- import { RiFunctionFill as Ui, RiApps2AddLine as Pi, RiSearchLine as Hi, RiCloseLine as bt, RiArrowRightSLine as Oi, RiCheckLine as to, RiIndeterminateCircleLine as Fi, RiShare2Line as _i, RiInformationLine as Vi, RiApps2Line as ji, RiArrowUpDownLine as Wi, RiArrowLeftRightLine as Gi, RiArrowRightLine as Ki, RiArrowLeftLine as qi, RiZoomOutLine as Yi, RiZoomInLine as Zi, RiClockwise2Line as Xi, RiAnticlockwise2Line as Ji, RiMoreLine as Qi, RiH6 as es, RiH5 as ts, RiH4 as os, RiH3 as ns, RiH2 as rs, RiH1 as is, RiHeading as ss, RiImageAddLine as as, RiListCheck3 as yn, RiListOrdered as vn, RiListUnordered as ho, RiMarkPenLine as po, RiForbidLine as ls, RiLinksLine as fo, RiSubscript as cs, RiSuperscript as ds, RiCodeSSlashLine as us, RiStrikethrough as hs, RiUnderline as ps, RiItalic as fs, RiBold as gs, RiAlignJustify as ms, RiAlignRight as wn, RiAlignCenter as Cn, RiAlignLeft as go, RiArrowGoForwardLine as bs, RiArrowGoBackLine as ys, RiQuillPenLine as Xo, RiEraserLine as vs, RiAi as ws, RiArrowUpLine as Jo, RiStopCircleFill as Cs, RiSparklingLine as ks, RiMoonClearLine as xs, RiSunLine as zs } from "@remixicon/react";
20
- import Ls from "rc-drawer";
21
- import { useFloating as kn, autoUpdate as xn, offset as zn, flip as Ln, shift as Sn, FloatingPortal as In, useMergeRefs as Mn, FloatingDelayGroup as Ss, useHover as Is, useFocus as Ms, useDismiss as Ns, useRole as Es, useInteractions as As } from "@floating-ui/react";
22
- import { AdmonitionDirectiveDescriptor as Rs, MDXEditor as Bs, toolbarPlugin as Ts, diffSourcePlugin as Ds, listsPlugin as $s, quotePlugin as Us, headingsPlugin as Ps, linkPlugin as Hs, linkDialogPlugin as Os, imagePlugin as Fs, tablePlugin as _s, thematicBreakPlugin as Vs, frontmatterPlugin as js, codeBlockPlugin as Ws, codeMirrorPlugin as Gs, markdownShortcutPlugin as Ks, directivesPlugin as qs, DiffSourceToggleWrapper as Ys, UndoRedo as Zs, Separator as et, BoldItalicUnderlineToggles as Xs, CodeToggle as Js, StrikeThroughSupSubToggles as Qs, ListsToggle as ea, CreateLink as ta, InsertImage as oa, InsertTable as na, InsertThematicBreak as ra, InsertCodeBlock as ia, InsertFrontmatter as sa } from "@mdxeditor/editor";
23
- import aa from "react-markdown";
24
- import la from "remark-gfm";
25
- import ca from "remark-emoji";
26
- import da from "rehype-raw";
27
- import { Prism as ua } from "react-syntax-highlighter";
28
- import { oneLight as ha } from "react-syntax-highlighter/dist/esm/styles/prism";
29
- import pa from "rc-image";
30
- import { clsx as fa } from "clsx";
31
- import { twMerge as ga } from "tailwind-merge";
17
+ import $i from "rc-dialog";
18
+ import Ui from "react-json-view";
19
+ import { RiFunctionFill as Pi, RiApps2AddLine as Hi, RiSearchLine as Oi, RiCloseLine as bt, RiArrowRightSLine as Fi, RiCheckLine as to, RiIndeterminateCircleLine as _i, RiShare2Line as Vi, RiInformationLine as ji, RiApps2Line as Wi, RiArrowUpDownLine as Gi, RiArrowLeftRightLine as Ki, RiArrowRightLine as qi, RiArrowLeftLine as Yi, RiZoomOutLine as Zi, RiZoomInLine as Xi, RiClockwise2Line as Ji, RiAnticlockwise2Line as Qi, RiMoreLine as es, RiH6 as ts, RiH5 as os, RiH4 as ns, RiH3 as rs, RiH2 as is, RiH1 as ss, RiHeading as as, RiImageAddLine as ls, RiListCheck3 as yn, RiListOrdered as vn, RiListUnordered as ho, RiMarkPenLine as po, RiForbidLine as cs, RiLinksLine as fo, RiSubscript as ds, RiSuperscript as us, RiCodeSSlashLine as hs, RiStrikethrough as ps, RiUnderline as fs, RiItalic as gs, RiBold as ms, RiAlignJustify as bs, RiAlignRight as wn, RiAlignCenter as Cn, RiAlignLeft as go, RiArrowGoForwardLine as ys, RiArrowGoBackLine as vs, RiQuillPenLine as Xo, RiEraserLine as ws, RiAi as Cs, RiArrowUpLine as Jo, RiStopCircleFill as ks, RiSparklingLine as xs, RiMoonClearLine as zs, RiSunLine as Ls } from "@remixicon/react";
20
+ import Ss from "rc-drawer";
21
+ import { useFloating as kn, autoUpdate as xn, offset as zn, flip as Ln, shift as Sn, FloatingPortal as In, useMergeRefs as Mn, FloatingDelayGroup as Is, useHover as Ms, useFocus as Ns, useDismiss as Es, useRole as As, useInteractions as Rs } from "@floating-ui/react";
22
+ import { AdmonitionDirectiveDescriptor as Bs, MDXEditor as Ts, toolbarPlugin as Ds, diffSourcePlugin as $s, listsPlugin as Us, quotePlugin as Ps, headingsPlugin as Hs, linkPlugin as Os, linkDialogPlugin as Fs, imagePlugin as _s, tablePlugin as Vs, thematicBreakPlugin as js, frontmatterPlugin as Ws, codeBlockPlugin as Gs, codeMirrorPlugin as Ks, markdownShortcutPlugin as qs, directivesPlugin as Ys, DiffSourceToggleWrapper as Zs, UndoRedo as Xs, Separator as et, BoldItalicUnderlineToggles as Js, CodeToggle as Qs, StrikeThroughSupSubToggles as ea, ListsToggle as ta, CreateLink as oa, InsertImage as na, InsertTable as ra, InsertThematicBreak as ia, InsertCodeBlock as sa, InsertFrontmatter as aa } from "@mdxeditor/editor";
23
+ import la from "react-markdown";
24
+ import ca from "remark-gfm";
25
+ import da from "remark-emoji";
26
+ import ua from "rehype-raw";
27
+ import { Prism as ha } from "react-syntax-highlighter";
28
+ import { oneLight as pa } from "react-syntax-highlighter/dist/esm/styles/prism";
29
+ import fa from "rc-image";
30
+ import { clsx as ga } from "clsx";
31
+ import { twMerge as ma } from "tailwind-merge";
32
32
  import { createPortal as Nn } from "react-dom";
33
- import { useCurrentEditor as ma, useEditorState as ba, NodeViewWrapper as En, Node as ya, ReactNodeViewRenderer as An, mergeAttributes as Rn, useEditor as va, EditorContext as wa, EditorContent as Ca, generateHTML as ka, generateJSON as xa } from "@tiptap/react";
34
- import { PluginKey as Ft, Selection as Pe, SelectionRange as za, TextSelection as Ae, NodeSelection as He, AllSelection as La, Plugin as Sa } from "prosemirror-state";
33
+ import { useCurrentEditor as ba, useEditorState as ya, NodeViewWrapper as En, Node as va, ReactNodeViewRenderer as An, mergeAttributes as Rn, useEditor as wa, EditorContext as Ca, EditorContent as ka, generateHTML as xa, generateJSON as za } from "@tiptap/react";
34
+ import { PluginKey as Ft, Selection as Pe, SelectionRange as La, TextSelection as Ae, NodeSelection as He, AllSelection as Sa, Plugin as Ia } from "prosemirror-state";
35
35
  import { Fragment as Yt, Slice as pt } from "prosemirror-model";
36
36
  import "prosemirror-view";
37
37
  import "prosemirror-transform";
38
38
  import * as We from "@radix-ui/react-dropdown-menu";
39
39
  import { useHotkeys as Bn } from "react-hotkeys-hook";
40
40
  import * as yt from "@radix-ui/react-popover";
41
- import { marked as Ia } from "marked";
41
+ import { marked as Tn } from "marked";
42
42
  import Ma from "lodash.throttle";
43
- import { StarterKit as Tn } from "@tiptap/starter-kit";
44
- import { TaskList as Dn, TaskItem as $n } from "@tiptap/extension-list";
45
- import { TextAlign as Un } from "@tiptap/extension-text-align";
46
- import { Typography as Pn } from "@tiptap/extension-typography";
47
- import { Highlight as Hn } from "@tiptap/extension-highlight";
48
- import { Subscript as On } from "@tiptap/extension-subscript";
49
- import { Superscript as Fn } from "@tiptap/extension-superscript";
43
+ import { StarterKit as Dn } from "@tiptap/starter-kit";
44
+ import { TaskList as $n, TaskItem as Un } from "@tiptap/extension-list";
45
+ import { TextAlign as Pn } from "@tiptap/extension-text-align";
46
+ import { Typography as Hn } from "@tiptap/extension-typography";
47
+ import { Highlight as On } from "@tiptap/extension-highlight";
48
+ import { Subscript as Fn } from "@tiptap/extension-subscript";
49
+ import { Superscript as _n } from "@tiptap/extension-superscript";
50
50
  import { Selection as Na } from "@tiptap/extensions";
51
51
  import { Image as Ea } from "@tiptap/extension-image";
52
52
  import Aa from "@tiptap/extension-horizontal-rule";
53
- import { Markdown as _n } from "@tiptap/markdown";
53
+ import { Markdown as Vn } from "@tiptap/markdown";
54
54
  import Ra from "dompurify";
55
55
  import { Link as Ba } from "@tiptap/extension-link";
56
56
  const Ta = {
@@ -104,7 +104,7 @@ const Ta = {
104
104
  image: "Image"
105
105
  }
106
106
  }, $a = "common";
107
- Si.use(Ii).init({
107
+ Ii.use(Mi).init({
108
108
  resources: {
109
109
  "zh-CN": Ta,
110
110
  "en-US": Da
@@ -263,11 +263,11 @@ const _t = {
263
263
  }, mo = tt, Ua = {
264
264
  light: tt,
265
265
  dark: _t
266
- }, Vn = Ht({
266
+ }, jn = Ht({
267
267
  theme: mo
268
- }), jn = (t) => {
268
+ }), Wn = (t) => {
269
269
  const { children: e, theme: o, ...n } = t, r = de(() => o === "light" ? tt : o === "dark" ? _t : o ?? mo, [o]);
270
- return /* @__PURE__ */ a(Vn.Provider, { value: { theme: r, ...n }, children: e });
270
+ return /* @__PURE__ */ a(jn.Provider, { value: { theme: r, ...n }, children: e });
271
271
  };
272
272
  function Pa(t) {
273
273
  const e = tt.token;
@@ -348,7 +348,7 @@ function Ha(t) {
348
348
  };
349
349
  }
350
350
  const xe = () => {
351
- const t = De(Vn), e = de(() => Ha(t.theme), [t.theme]);
351
+ const t = De(jn), e = de(() => Ha(t.theme), [t.theme]);
352
352
  return {
353
353
  ...t,
354
354
  theme: e,
@@ -384,7 +384,7 @@ St(Te, "computeRowWidth", (e, o = 112) => {
384
384
  const h = c * o + (c - 1) * s, g = h > l ? Math.round((l - h) / 2) : 0;
385
385
  return { cols: c, width: h, marginLeft: g };
386
386
  });
387
- const Wn = Ht({
387
+ const Gn = Ht({
388
388
  list: [],
389
389
  setList: () => {
390
390
  },
@@ -432,14 +432,14 @@ const Wn = Ht({
432
432
  setCurrentSliderIndex: () => {
433
433
  },
434
434
  currentSliderPage: null
435
- }), Gn = (t) => {
435
+ }), Kn = (t) => {
436
436
  const {
437
437
  children: e,
438
438
  list: o = [],
439
439
  onChange: n,
440
440
  storageKey: r = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
441
441
  enableCaching: i = !0
442
- } = t, { typeConfigMap: s } = xe(), [l, c] = M(), [d, u] = M(), [h, g] = M(null), p = X(h), [f, b] = M(null), [y, m] = M([]), [w, C] = M(null), [L, v] = M(null), [k, z] = M(!1), [S, N] = M(null), [D, K] = M(null), [$, _] = M(null), [V, Z] = M(0), [re, he] = M(!1), [F, le] = Ri(r, {
442
+ } = t, { typeConfigMap: s } = xe(), [l, c] = M(), [d, u] = M(), [h, g] = M(null), p = Z(h), [f, b] = M(null), [y, m] = M([]), [w, C] = M(null), [L, v] = M(null), [k, z] = M(!1), [S, N] = M(null), [D, K] = M(null), [$, _] = M(null), [V, X] = M(0), [re, he] = M(!1), [F, le] = Bi(r, {
443
443
  defaultValue: [],
444
444
  listenStorageChange: !0
445
445
  }), fe = () => {
@@ -589,7 +589,7 @@ const Wn = Ht({
589
589
  p.current = h, h !== null && fe();
590
590
  }, [h]), T(() => {
591
591
  i && F != null && F.length && !re && (J(F), he(!0));
592
- }, [F, re, i, J]), Bi(
592
+ }, [F, re, i, J]), Ti(
593
593
  () => {
594
594
  i && le(y);
595
595
  },
@@ -600,9 +600,9 @@ const Wn = Ht({
600
600
  );
601
601
  const ze = de(() => y.filter((j) => j.type !== "dock"), [y]), Ne = de(() => ze[V] ?? null, [ze, V]);
602
602
  return T(() => {
603
- V >= ze.length && Z(ze.length > 0 ? ze.length - 1 : 0);
603
+ V >= ze.length && X(ze.length > 0 ? ze.length - 1 : 0);
604
604
  }, [V, ze.length]), /* @__PURE__ */ a(
605
- Wn.Provider,
605
+ Gn.Provider,
606
606
  {
607
607
  value: {
608
608
  list: y,
@@ -632,13 +632,13 @@ const Wn = Ht({
632
632
  dragItem: $,
633
633
  setDragItem: _,
634
634
  currentSliderIndex: V,
635
- setCurrentSliderIndex: Z,
635
+ setCurrentSliderIndex: X,
636
636
  currentSliderPage: Ne
637
637
  },
638
638
  children: e
639
639
  }
640
640
  );
641
- }, $e = () => De(Wn), Kn = Q(
641
+ }, $e = () => De(Gn), qn = Q(
642
642
  ({
643
643
  sliderRef: t,
644
644
  activeSlide: e,
@@ -650,7 +650,7 @@ const Wn = Ht({
650
650
  containerRef: l,
651
651
  onCreateNewPage: c
652
652
  }, d) => {
653
- const u = X(null), [h, g] = M(null), p = X(0), f = X(!1), b = P(() => {
653
+ const u = Z(null), [h, g] = M(null), p = Z(0), f = Z(!1), b = P(() => {
654
654
  u.current && (clearTimeout(u.current), u.current = null), f.current = !1;
655
655
  }, []), y = P(
656
656
  (v) => {
@@ -813,7 +813,7 @@ const Wn = Ht({
813
813
  ] });
814
814
  }
815
815
  );
816
- Kn.displayName = "DragTriggerPagination";
816
+ qn.displayName = "DragTriggerPagination";
817
817
  const Oa = B`
818
818
  grid-template-columns: repeat(auto-fill, var(--item-cell-size, 112px));
819
819
  grid-auto-rows: var(--item-cell-size, 112px);
@@ -938,7 +938,7 @@ B`
938
938
  opacity: 0;
939
939
  }
940
940
  `;
941
- const qn = {
941
+ const Yn = {
942
942
  animation: 200,
943
943
  easing: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
944
944
  fallbackOnBody: !0,
@@ -948,12 +948,12 @@ const qn = {
948
948
  dragClass: "sortable-drag",
949
949
  fallbackClass: "sortable-fallback"
950
950
  }, Va = {
951
- ...qn,
951
+ ...Yn,
952
952
  group: { name: "desktop", pull: !0, put: !0 },
953
953
  animation: 150
954
- }, Yn = {
954
+ }, Zn = {
955
955
  group: "desktop",
956
- ...qn,
956
+ ...Yn,
957
957
  swapThreshold: 0.65,
958
958
  filter: ".drag-disabled"
959
959
  }, Dt = {
@@ -968,7 +968,7 @@ Object.entries(Dt).map(([t, e]) => ({
968
968
  ...e,
969
969
  id: t
970
970
  }));
971
- const Zn = {
971
+ const Xn = {
972
972
  sizeConfigs: [Dt["1x1"]],
973
973
  defaultSizeId: "1x1",
974
974
  allowResize: !1,
@@ -976,7 +976,7 @@ const Zn = {
976
976
  allowShare: !1,
977
977
  allowDelete: !0,
978
978
  allowInfo: !1
979
- }, Xn = {
979
+ }, Jn = {
980
980
  sizeConfigs: [Dt["1x1"], Dt["2x2"]],
981
981
  defaultSizeId: "1x1",
982
982
  allowResize: !0,
@@ -985,18 +985,18 @@ const Zn = {
985
985
  allowDelete: !0,
986
986
  allowInfo: !1
987
987
  }, oo = {
988
- app: Zn,
989
- group: Xn
988
+ app: Xn,
989
+ group: Jn
990
990
  };
991
991
  function yo(t, e) {
992
992
  return (e == null ? void 0 : e[t]) || oo[t] || oo.app;
993
993
  }
994
- function Jn(t, e, o) {
994
+ function Qn(t, e, o) {
995
995
  const n = e || [];
996
996
  return t ? n.find((r) => r.id === t || r.name === t) || n.find((r) => r.id === o || r.name === o) || n[0] : n.find((r) => r.id === o || r.name === o) || n[0];
997
997
  }
998
998
  function vo(t, e, o) {
999
- const n = yo(t, o), r = Jn(e, n.sizeConfigs, n.defaultSizeId);
999
+ const n = yo(t, o), r = Qn(e, n.sizeConfigs, n.defaultSizeId);
1000
1000
  return { col: r.col, row: r.row };
1001
1001
  }
1002
1002
  const ja = Le(({ src: t }) => {
@@ -1018,7 +1018,7 @@ const ja = Le(({ src: t }) => {
1018
1018
  return s;
1019
1019
  }
1020
1020
  return i ? typeof i == "string" && (i.startsWith("http") || i.startsWith("https")) ? /* @__PURE__ */ a(ja, { src: i }) : i : n ? typeof n == "function" ? n(t) : n : null;
1021
- }, Qn = (t) => {
1021
+ }, er = (t) => {
1022
1022
  var h, g;
1023
1023
  const { data: e, noLetters: o = !1, name: n, defaultName: r, className: i } = t, { moveItemId: s } = $e(), { theme: l } = xe(), c = {
1024
1024
  visible: { opacity: 1, scale: 1 },
@@ -1042,7 +1042,7 @@ const ja = Le(({ src: t }) => {
1042
1042
  children: u
1043
1043
  }
1044
1044
  );
1045
- }, er = ({ className: t, data: e, children: o, iconSize: n = 64, ...r }) => {
1045
+ }, tr = ({ className: t, data: e, children: o, iconSize: n = 64, ...r }) => {
1046
1046
  var p;
1047
1047
  const { moveTargetId: i, listStatus: s } = $e(), { typeConfigMap: l, computeGap: c } = xe(), { row: d, col: u } = vo(e.type, (p = e.config) == null ? void 0 : p.sizeId, l), h = de(() => i === e.id, [e.id, i]), g = c(n);
1048
1048
  return /* @__PURE__ */ a(
@@ -1076,7 +1076,7 @@ const ja = Le(({ src: t }) => {
1076
1076
  } = xe(), p = l != !1 ? l || g : l, { data: f = {} } = e, { name: b, iconColor: y } = f;
1077
1077
  return /* @__PURE__ */ I(ge, { children: [
1078
1078
  /* @__PURE__ */ a(
1079
- er,
1079
+ tr,
1080
1080
  {
1081
1081
  data: e,
1082
1082
  iconSize: s,
@@ -1102,7 +1102,7 @@ const ja = Le(({ src: t }) => {
1102
1102
  )
1103
1103
  }
1104
1104
  ),
1105
- /* @__PURE__ */ a(Qn, { data: e, noLetters: o, name: b })
1105
+ /* @__PURE__ */ a(er, { data: e, noLetters: o, name: b })
1106
1106
  ] });
1107
1107
  }, ot = (t) => {
1108
1108
  const { data: e, className: o, itemIndex: n, onClick: r, disabledDrag: i = !1, children: s, parentIds: l, childrenLength: c } = t;
@@ -1121,8 +1121,8 @@ const ja = Le(({ src: t }) => {
1121
1121
  children: s ?? /* @__PURE__ */ a(Wa, { ...t })
1122
1122
  }
1123
1123
  );
1124
- }, tr = (t) => {
1125
- var $, _, V, Z, re;
1124
+ }, or = (t) => {
1125
+ var $, _, V, X, re;
1126
1126
  const {
1127
1127
  data: e,
1128
1128
  className: o,
@@ -1258,12 +1258,12 @@ const ja = Le(({ src: t }) => {
1258
1258
  className: O(o),
1259
1259
  children: [
1260
1260
  /* @__PURE__ */ a(
1261
- er,
1261
+ tr,
1262
1262
  {
1263
1263
  data: e,
1264
1264
  iconSize: d,
1265
1265
  className: B`
1266
- background-color: ${(Z = w.token.items) == null ? void 0 : Z.groupIconBackgroundColor};
1266
+ background-color: ${(X = w.token.items) == null ? void 0 : X.groupIconBackgroundColor};
1267
1267
  box-shadow: 0 0 0.5rem ${(re = w.token.items) == null ? void 0 : re.groupIconShadowColor};
1268
1268
  `,
1269
1269
  onClick: (he) => {
@@ -1316,15 +1316,15 @@ const ja = Le(({ src: t }) => {
1316
1316
  )
1317
1317
  }
1318
1318
  ),
1319
- /* @__PURE__ */ a(Qn, { data: e, noLetters: s, defaultName: "文件夹" })
1319
+ /* @__PURE__ */ a(er, { data: e, noLetters: s, defaultName: "文件夹" })
1320
1320
  ]
1321
1321
  }
1322
1322
  );
1323
- }, or = _a, Ga = ({ value: t, onChange: e, onBlur: o, placeholder: n = "标题" }) => {
1323
+ }, nr = _a, Ga = ({ value: t, onChange: e, onBlur: o, placeholder: n = "标题" }) => {
1324
1324
  var d, u, h, g, p, f, b, y, m, w, C, L, v, k, z, S, N, D, K, $, _;
1325
1325
  const [r, i] = M(t), { theme: s } = xe(), l = (V) => {
1326
- const Z = V.target.value;
1327
- i(Z), e(Z);
1326
+ const X = V.target.value;
1327
+ i(X), e(X);
1328
1328
  }, c = () => {
1329
1329
  o == null || o();
1330
1330
  };
@@ -1370,7 +1370,7 @@ const ja = Le(({ src: t }) => {
1370
1370
  }
1371
1371
  );
1372
1372
  }, Vt = (t) => {
1373
- var C, L, v, k, z, S, N, D, K, $, _, V, Z, re, he, F, le, fe, W, ie, ve, J;
1373
+ var C, L, v, k, z, S, N, D, K, $, _, V, X, re, he, F, le, fe, W, ie, ve, J;
1374
1374
  const {
1375
1375
  visible: e,
1376
1376
  onClose: o,
@@ -1387,7 +1387,7 @@ const ja = Le(({ src: t }) => {
1387
1387
  return T(() => {
1388
1388
  b(!!e);
1389
1389
  }, [e]), /* @__PURE__ */ a(Re, { children: e && /* @__PURE__ */ a(
1390
- Di,
1390
+ $i,
1391
1391
  {
1392
1392
  visible: f,
1393
1393
  onClose: () => {
@@ -1520,7 +1520,7 @@ const ja = Le(({ src: t }) => {
1520
1520
  }
1521
1521
 
1522
1522
  &::-webkit-scrollbar-thumb {
1523
- background: ${(Z = p == null ? void 0 : p.scrollbar) == null ? void 0 : Z.thumbColor};
1523
+ background: ${(X = p == null ? void 0 : p.scrollbar) == null ? void 0 : X.thumbColor};
1524
1524
  border-radius: ${(re = p == null ? void 0 : p.scrollbar) == null ? void 0 : re.borderRadius};
1525
1525
  transition: background-color 0.2s ease;
1526
1526
  }
@@ -1573,7 +1573,7 @@ const ja = Le(({ src: t }) => {
1573
1573
  }
1574
1574
  ) });
1575
1575
  }, Ka = (t) => {
1576
- const { data: e, onClose: o, onItemClick: n } = t, { list: r, setList: i, setListStatus: s, setMoveItemId: l, setMoveTargetId: c, updateItem: d } = $e(), [u, h] = M("文件夹"), g = X(null), p = X(null), [f, b] = M(), [y, m] = M(), w = [...(e == null ? void 0 : e.children) ?? []];
1576
+ const { data: e, onClose: o, onItemClick: n } = t, { list: r, setList: i, setListStatus: s, setMoveItemId: l, setMoveTargetId: c, updateItem: d } = $e(), [u, h] = M("文件夹"), g = Z(null), p = Z(null), [f, b] = M(), [y, m] = M(), w = [...(e == null ? void 0 : e.children) ?? []];
1577
1577
  T(() => {
1578
1578
  var S;
1579
1579
  e && h((S = e.data) == null ? void 0 : S.name);
@@ -1651,7 +1651,7 @@ const ja = Le(({ src: t }) => {
1651
1651
  onEnd: () => {
1652
1652
  l(null), c(null), s(null);
1653
1653
  },
1654
- ghostClass: or,
1654
+ ghostClass: nr,
1655
1655
  children: /* @__PURE__ */ a(Re, { mode: "popLayout", children: w.map((S, N) => /* @__PURE__ */ a("div", { className: "zs-w-28 zs-h-28 zs-flex zs-items-center zs-justify-center", children: /* @__PURE__ */ a(ot, { data: S, itemIndex: N, onClick: n }, S.id) }, S.id)) })
1656
1656
  }
1657
1657
  ) })
@@ -1679,7 +1679,7 @@ const ja = Le(({ src: t }) => {
1679
1679
  background-color: ${(i = n.token.items) == null ? void 0 : i.infoModalBackgroundColor};
1680
1680
  `
1681
1681
  ),
1682
- children: /* @__PURE__ */ a($i, { src: e, theme: "monokai" })
1682
+ children: /* @__PURE__ */ a(Ui, { src: e, theme: "monokai" })
1683
1683
  }
1684
1684
  )
1685
1685
  }
@@ -1761,7 +1761,7 @@ const ja = Le(({ src: t }) => {
1761
1761
  }, g = [
1762
1762
  {
1763
1763
  id: "app1",
1764
- icon: /* @__PURE__ */ a(Ui, { size: 32 })
1764
+ icon: /* @__PURE__ */ a(Pi, { size: 32 })
1765
1765
  },
1766
1766
  {
1767
1767
  id: "app2"
@@ -1855,8 +1855,8 @@ const ja = Le(({ src: t }) => {
1855
1855
  ]
1856
1856
  }
1857
1857
  );
1858
- }, nr = ({ onClick: t, className: e }) => /* @__PURE__ */ a(Ja, { onClick: t, className: O("zs-flex-shrink-0", e) });
1859
- function rr() {
1858
+ }, rr = ({ onClick: t, className: e }) => /* @__PURE__ */ a(Ja, { onClick: t, className: O("zs-flex-shrink-0", e) });
1859
+ function ir() {
1860
1860
  const t = () => {
1861
1861
  if (typeof navigator > "u") return !1;
1862
1862
  const n = navigator.userAgent || "", r = /\biPad\b/i.test(n), i = /\bAndroid\b/i.test(n), s = /\bMobile\b/i.test(n), l = i && !s, c = /\bTablet\b/i.test(n) || /\bSilk\b/i.test(n);
@@ -1866,7 +1866,7 @@ function rr() {
1866
1866
  o(t());
1867
1867
  }, []), e;
1868
1868
  }
1869
- const ir = ({
1869
+ const sr = ({
1870
1870
  items: t = [],
1871
1871
  fixedItems: e = [],
1872
1872
  position: o = "bottom",
@@ -1880,7 +1880,7 @@ const ir = ({
1880
1880
  itemSize: u = 56
1881
1881
  }) => {
1882
1882
  var K;
1883
- const { setListStatus: h } = $e(), { theme: g } = xe(), p = g.token.dock, f = g.token.base, b = rr(), [y, m] = M(null), [w, C] = M(null), [L, v] = M(0), [k, z] = M(!1), S = ($, _) => r ? r($, _) : /* @__PURE__ */ a(ot, { data: $, itemIndex: _, noLetters: !0, from: "dock", iconSize: u }, $.id), N = ($, _) => i ? i($, _) : /* @__PURE__ */ a(
1883
+ const { setListStatus: h } = $e(), { theme: g } = xe(), p = g.token.dock, f = g.token.base, b = ir(), [y, m] = M(null), [w, C] = M(null), [L, v] = M(0), [k, z] = M(!1), S = ($, _) => r ? r($, _) : /* @__PURE__ */ a(ot, { data: $, itemIndex: _, noLetters: !0, from: "dock", iconSize: u }, $.id), N = ($, _) => i ? i($, _) : /* @__PURE__ */ a(
1884
1884
  ot,
1885
1885
  {
1886
1886
  data: $,
@@ -1947,7 +1947,7 @@ const ir = ({
1947
1947
  setList: ($) => {
1948
1948
  d && d($);
1949
1949
  },
1950
- ...Yn,
1950
+ ...Zn,
1951
1951
  className: O(
1952
1952
  "desktop-dock-sortable zs-flex zs-gap-3 flex-1 zs-relative",
1953
1953
  B`
@@ -1997,13 +1997,13 @@ const ir = ({
1997
1997
  opacity: 0.5 !important;
1998
1998
  `
1999
1999
  ),
2000
- children: /* @__PURE__ */ a(Pi, {})
2000
+ children: /* @__PURE__ */ a(Hi, {})
2001
2001
  }
2002
2002
  )
2003
2003
  }
2004
2004
  ),
2005
2005
  s && !b && (e.length > 0 || t.length > 0) && D,
2006
- s && (!b || o !== "bottom") && /* @__PURE__ */ a(nr, { onClick: l, position: o })
2006
+ s && (!b || o !== "bottom") && /* @__PURE__ */ a(rr, { onClick: l, position: o })
2007
2007
  ]
2008
2008
  }
2009
2009
  ),
@@ -2052,8 +2052,8 @@ const ir = ({
2052
2052
  }, Zt = B`
2053
2053
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
2054
2054
  `, Qa = ({ value: t, onChange: e, placeholder: o = "搜索应用", className: n = "" }) => {
2055
- var p, f, b, y, m, w, C, L, v, k, z, S, N, D, K, $, _, V, Z, re, he, F, le, fe, W, ie, ve, J, me, be, se, ee, Y, Ce, Me, ze, Ne, j, ce, q, G, A, H;
2056
- const { theme: r } = xe(), i = X(null), s = X(null), l = X(null), [c, d] = M(!1), u = () => {
2055
+ var p, f, b, y, m, w, C, L, v, k, z, S, N, D, K, $, _, V, X, re, he, F, le, fe, W, ie, ve, J, me, be, se, ee, Y, Ce, Me, ze, Ne, j, ce, q, G, A, H;
2056
+ const { theme: r } = xe(), i = Z(null), s = Z(null), l = Z(null), [c, d] = M(!1), u = () => {
2057
2057
  d(!0), s.current && (s.current.style.transform = "translateY(-50%) translateX(-0.5rem)"), l.current && (l.current.style.transform = "translateY(-50%) translateX(0.5rem)");
2058
2058
  }, h = () => {
2059
2059
  d(!1), s.current && (s.current.style.transform = "translateY(-50%) translateX(0)"), l.current && (l.current.style.transform = "translateY(-50%) translateX(0)");
@@ -2073,7 +2073,7 @@ const ir = ({
2073
2073
  `,
2074
2074
  Zt
2075
2075
  ),
2076
- children: /* @__PURE__ */ a(Hi, { size: 16 })
2076
+ children: /* @__PURE__ */ a(Oi, { size: 16 })
2077
2077
  }
2078
2078
  ),
2079
2079
  /* @__PURE__ */ a(
@@ -2086,7 +2086,7 @@ const ir = ({
2086
2086
  background-color: ${(S = (z = (k = (v = r.token.dock) == null ? void 0 : v.launchpad) == null ? void 0 : k.modal) == null ? void 0 : z.searchBox) == null ? void 0 : S.backgroundColor};
2087
2087
  color: ${($ = (K = (D = (N = r.token.dock) == null ? void 0 : N.launchpad) == null ? void 0 : D.modal) == null ? void 0 : K.searchBox) == null ? void 0 : $.textColor};
2088
2088
  &::placeholder {
2089
- color: ${(re = (Z = (V = (_ = r.token.dock) == null ? void 0 : _.launchpad) == null ? void 0 : V.modal) == null ? void 0 : Z.searchBox) == null ? void 0 : re.placeholderColor};
2089
+ color: ${(re = (X = (V = (_ = r.token.dock) == null ? void 0 : _.launchpad) == null ? void 0 : V.modal) == null ? void 0 : X.searchBox) == null ? void 0 : re.placeholderColor};
2090
2090
  }
2091
2091
  &:focus {
2092
2092
  background-color: ${(fe = (le = (F = (he = r.token.dock) == null ? void 0 : he.launchpad) == null ? void 0 : F.modal) == null ? void 0 : le.searchBox) == null ? void 0 : fe.focusBackgroundColor};
@@ -2124,8 +2124,8 @@ const ir = ({
2124
2124
  }
2125
2125
  )
2126
2126
  ] });
2127
- }, sr = (t) => {
2128
- var v, k, z, S, N, D, K, $, _, V, Z, re, he, F, le, fe, W, ie, ve, J, me, be, se;
2127
+ }, ar = (t) => {
2128
+ var v, k, z, S, N, D, K, $, _, V, X, re, he, F, le, fe, W, ie, ve, J, me, be, se;
2129
2129
  const {
2130
2130
  open: e = !1,
2131
2131
  onClose: o,
@@ -2149,7 +2149,7 @@ const ir = ({
2149
2149
  }, 300);
2150
2150
  }, L = i === "left" || i === "right" ? { width: s } : { height: l ?? 300 };
2151
2151
  return e ? /* @__PURE__ */ a(
2152
- Ls,
2152
+ Ss,
2153
2153
  {
2154
2154
  open: b,
2155
2155
  onClose: C,
@@ -2246,7 +2246,7 @@ const ir = ({
2246
2246
  /* Global scrollbar styles inside drawer */
2247
2247
  * {
2248
2248
  &::-webkit-scrollbar {
2249
- width: ${((Z = f == null ? void 0 : f.scrollbar) == null ? void 0 : Z.width) ?? "8px"};
2249
+ width: ${((X = f == null ? void 0 : f.scrollbar) == null ? void 0 : X.width) ?? "8px"};
2250
2250
  }
2251
2251
  &::-webkit-scrollbar-track {
2252
2252
  background: ${(re = f == null ? void 0 : f.scrollbar) == null ? void 0 : re.trackColor};
@@ -2310,8 +2310,8 @@ const ir = ({
2310
2310
  )
2311
2311
  }
2312
2312
  ) : null;
2313
- }, ar = ({ visible: t, onClose: e, onItemClick: o }) => {
2314
- const { list: n } = $e(), [r, i] = M(""), s = rr(), { allApps: l, groups: c } = de(() => {
2313
+ }, lr = ({ visible: t, onClose: e, onItemClick: o }) => {
2314
+ const { list: n } = $e(), [r, i] = M(""), s = ir(), { allApps: l, groups: c } = de(() => {
2315
2315
  if (!n || n.length === 0)
2316
2316
  return { allApps: [], groupedData: [], groups: [], groupCounts: [] };
2317
2317
  const p = (v) => v.flatMap((k) => k.type === "app" ? [{ ...k }] : k.type === "group" && k.children ? p(k.children) : []), f = n.flatMap((v) => v.children ? p(v.children) : []), y = (r.trim() ? f.filter((v) => {
@@ -2387,7 +2387,7 @@ const ir = ({
2387
2387
  }
2388
2388
  ) });
2389
2389
  return s ? /* @__PURE__ */ a(
2390
- sr,
2390
+ ar,
2391
2391
  {
2392
2392
  open: t,
2393
2393
  onClose: e,
@@ -2427,7 +2427,7 @@ const ir = ({
2427
2427
  } catch (o) {
2428
2428
  return console.error("Error in SafeExtraItems:", o), null;
2429
2429
  }
2430
- }, lr = (t) => {
2430
+ }, cr = (t) => {
2431
2431
  const {
2432
2432
  pagination: e = { position: "bottom" },
2433
2433
  className: o,
@@ -2442,7 +2442,7 @@ const ir = ({
2442
2442
  showLaunchpad: !0
2443
2443
  },
2444
2444
  iconSize: d = 64
2445
- } = t, u = X(null), h = X(null), g = X(null), [p, f] = M(0), [b, y] = M(!1), [m, w] = M(!1), [C, L] = M(!0), {
2445
+ } = t, u = Z(null), h = Z(null), g = Z(null), [p, f] = M(0), [b, y] = M(!1), [m, w] = M(!1), [C, L] = M(!0), {
2446
2446
  list: v,
2447
2447
  setList: k,
2448
2448
  setListStatus: z,
@@ -2453,7 +2453,7 @@ const ir = ({
2453
2453
  setMoveItemId: $,
2454
2454
  setMoveTargetId: _,
2455
2455
  addItem: V,
2456
- dragItem: Z,
2456
+ dragItem: X,
2457
2457
  setDragItem: re,
2458
2458
  addRootItem: he,
2459
2459
  removeRootItem: F,
@@ -2586,7 +2586,7 @@ const ir = ({
2586
2586
  }
2587
2587
  `
2588
2588
  }[x];
2589
- }, [c]), [Ne, j] = M(void 0), [ce, q] = M(void 0), G = X(null), A = X(null), H = X(null), U = P(
2589
+ }, [c]), [Ne, j] = M(void 0), [ce, q] = M(void 0), G = Z(null), A = Z(null), H = Z(null), U = P(
2590
2590
  (x) => {
2591
2591
  const { width: E, marginLeft: R } = Te.computeRowWidth(x, be);
2592
2592
  j(E), q(R);
@@ -2621,7 +2621,7 @@ const ir = ({
2621
2621
  },
2622
2622
  children: [
2623
2623
  c.enabled && /* @__PURE__ */ a("div", { className: "zs-flex zs-items-center zs-justify-center dock-container", children: /* @__PURE__ */ a(
2624
- ir,
2624
+ sr,
2625
2625
  {
2626
2626
  items: se,
2627
2627
  fixedItems: c.fixedItems,
@@ -2640,13 +2640,13 @@ const ir = ({
2640
2640
  k(E);
2641
2641
  },
2642
2642
  onDrop: () => {
2643
- if (Z && se.every((x) => x.id !== Z.id)) {
2643
+ if (X && se.every((x) => x.id !== X.id)) {
2644
2644
  const E = v.map((R) => R.type === "dock" ? {
2645
2645
  ...R,
2646
- children: [...R.children ?? [], Z]
2646
+ children: [...R.children ?? [], X]
2647
2647
  } : R).map((R) => R.type !== "dock" && R.children ? {
2648
2648
  ...R,
2649
- children: R.children.filter((oe) => oe.id !== Z.id)
2649
+ children: R.children.filter((oe) => oe.id !== X.id)
2650
2650
  } : R);
2651
2651
  k(E);
2652
2652
  }
@@ -2656,7 +2656,7 @@ const ir = ({
2656
2656
  ) }),
2657
2657
  /* @__PURE__ */ I("div", { className: "sortable-container", ref: ae, children: [
2658
2658
  /* @__PURE__ */ a(
2659
- Kn,
2659
+ qn,
2660
2660
  {
2661
2661
  ref: g,
2662
2662
  isDragging: b,
@@ -2669,7 +2669,7 @@ const ir = ({
2669
2669
  }
2670
2670
  ),
2671
2671
  /* @__PURE__ */ a(
2672
- Ai,
2672
+ Ri,
2673
2673
  {
2674
2674
  useCSS: !0,
2675
2675
  useTransform: !0,
@@ -2760,7 +2760,7 @@ const ir = ({
2760
2760
  transform: "translate(28px, 28px)",
2761
2761
  "--item-cell-size": `${be}px`
2762
2762
  },
2763
- ...Yn,
2763
+ ...Zn,
2764
2764
  list: x.children ?? [],
2765
2765
  setList: (E) => k(E, [x.id]),
2766
2766
  onMove: (E) => {
@@ -2768,7 +2768,7 @@ const ir = ({
2768
2768
  z("onMove");
2769
2769
  const { dragged: R, related: oe } = E, pe = R.dataset, Be = oe.dataset;
2770
2770
  _(null);
2771
- const Lt = (qo = (Ko = R.closest("[data-type]")) == null ? void 0 : Ko.dataset) == null ? void 0 : qo.type, ht = (pe == null ? void 0 : pe.type) ?? Lt ?? (Z == null ? void 0 : Z.type);
2771
+ const Lt = (qo = (Ko = R.closest("[data-type]")) == null ? void 0 : Ko.dataset) == null ? void 0 : qo.type, ht = (pe == null ? void 0 : pe.type) ?? Lt ?? (X == null ? void 0 : X.type);
2772
2772
  return !(Object.keys(Be).length === 0 && ht !== "app" && oe.classList.contains("sortable-group-item") || (Object.keys(Be).length === 0 || Be.parentIds) && Number(pe.childrenLength) > 0 && oe.classList.contains("sortable-group-item") || (oe.classList.contains("desktop-dock-sortable") || (Yo = oe.parentElement) != null && Yo.classList.contains("desktop-dock-sortable")) && Number(pe.childrenLength) > 0);
2773
2773
  },
2774
2774
  onStart: (E) => {
@@ -2783,7 +2783,7 @@ const ir = ({
2783
2783
  Ce();
2784
2784
  }, 100);
2785
2785
  },
2786
- ghostClass: or,
2786
+ ghostClass: nr,
2787
2787
  children: [
2788
2788
  /* @__PURE__ */ a(Re, { mode: "popLayout", children: (x.children ?? []).map((E, R) => {
2789
2789
  var Lt;
@@ -2816,7 +2816,7 @@ const ir = ({
2816
2816
  onMouseEnter: () => L(!1),
2817
2817
  onMouseLeave: () => L(!0),
2818
2818
  children: /* @__PURE__ */ a(
2819
- tr,
2819
+ or,
2820
2820
  {
2821
2821
  data: E,
2822
2822
  itemIndex: R,
@@ -2886,9 +2886,9 @@ const ir = ({
2886
2886
  onItemClick: s
2887
2887
  }
2888
2888
  ),
2889
- m && /* @__PURE__ */ a(ar, { visible: m, onClose: () => w(!1), onItemClick: s })
2889
+ m && /* @__PURE__ */ a(lr, { visible: m, onClose: () => w(!1), onItemClick: s })
2890
2890
  ] });
2891
- }, cr = (t) => {
2891
+ }, dr = (t) => {
2892
2892
  var i, s, l, c, d;
2893
2893
  const { className: e, children: o, ...n } = t, { theme: r } = xe();
2894
2894
  return /* @__PURE__ */ a(
@@ -2999,7 +2999,7 @@ const ir = ({
2999
2999
  );
3000
3000
  }, tl = ({ text: t, index: e, children: o, color: n, textColor: r, ...i }) => {
3001
3001
  var k, z, S;
3002
- const [s, l] = M(!1), [c, d] = M({ x: 0, y: 0 }), u = X(null), h = X(null), { hoveredIndex: g, setHoveredIndex: p } = De(wo), { theme: f } = xe(), b = g === e, y = r || ((k = f.token.contextMenu) == null ? void 0 : k.textColor) || "#1d1d1f", m = n || ((z = f.token.contextMenu) == null ? void 0 : z.textColor) || "black", w = () => {
3002
+ const [s, l] = M(!1), [c, d] = M({ x: 0, y: 0 }), u = Z(null), h = Z(null), { hoveredIndex: g, setHoveredIndex: p } = De(wo), { theme: f } = xe(), b = g === e, y = r || ((k = f.token.contextMenu) == null ? void 0 : k.textColor) || "#1d1d1f", m = n || ((z = f.token.contextMenu) == null ? void 0 : z.textColor) || "black", w = () => {
3003
3003
  if (h.current && clearTimeout(h.current), p(e), l(!0), u.current) {
3004
3004
  const N = u.current.getBoundingClientRect();
3005
3005
  d({
@@ -3079,11 +3079,11 @@ const ir = ({
3079
3079
  height: 18px;
3080
3080
  `
3081
3081
  ),
3082
- children: /* @__PURE__ */ a(Oi, { size: 16 })
3082
+ children: /* @__PURE__ */ a(Fi, { size: 16 })
3083
3083
  }
3084
3084
  ),
3085
3085
  /* @__PURE__ */ a(Re, { children: s && /* @__PURE__ */ a(
3086
- cr,
3086
+ dr,
3087
3087
  {
3088
3088
  className: O(
3089
3089
  "zs-absolute zs-overflow-hidden zs-z-50",
@@ -3190,7 +3190,7 @@ const ir = ({
3190
3190
  onInfoClick: l,
3191
3191
  onShareClick: c,
3192
3192
  onRemoveClick: d
3193
- } = t, { contextMenu: u, setContextMenu: h, hideContextMenu: g, setShowInfoItemData: p, removeItem: f, updateItemConfig: b } = $e(), { typeConfigMap: y, dataTypeMenuConfigMap: m, theme: w } = xe(), [C, L] = M(null), { data: v } = u ?? {}, { config: k = {} } = v ?? {}, z = yo(((W = u == null ? void 0 : u.data) == null ? void 0 : W.type) || "app", y) ?? {}, { sizeConfigs: S = [], defaultSizeId: N, allowResize: D, allowShare: K, allowDelete: $, allowInfo: _ } = z, V = $ ?? o, Z = K ?? n, re = _ ?? e, he = D ?? r, F = () => S.map((J) => J.name), le = () => {
3193
+ } = t, { contextMenu: u, setContextMenu: h, hideContextMenu: g, setShowInfoItemData: p, removeItem: f, updateItemConfig: b } = $e(), { typeConfigMap: y, dataTypeMenuConfigMap: m, theme: w } = xe(), [C, L] = M(null), { data: v } = u ?? {}, { config: k = {} } = v ?? {}, z = yo(((W = u == null ? void 0 : u.data) == null ? void 0 : W.type) || "app", y) ?? {}, { sizeConfigs: S = [], defaultSizeId: N, allowResize: D, allowShare: K, allowDelete: $, allowInfo: _ } = z, V = $ ?? o, X = K ?? n, re = _ ?? e, he = D ?? r, F = () => S.map((J) => J.name), le = () => {
3194
3194
  var me;
3195
3195
  const J = (me = u == null ? void 0 : u.data) == null ? void 0 : me.dataType;
3196
3196
  return !J || !m ? [] : m[J] || [];
@@ -3202,7 +3202,7 @@ const ir = ({
3202
3202
  updateItemConfig: b
3203
3203
  };
3204
3204
  return /* @__PURE__ */ a(Re, { children: u && s && /* @__PURE__ */ a(wo.Provider, { value: { hoveredIndex: C, setHoveredIndex: L }, children: /* @__PURE__ */ I(
3205
- cr,
3205
+ dr,
3206
3206
  {
3207
3207
  style: {
3208
3208
  transformOrigin: i
@@ -3212,7 +3212,7 @@ const ir = ({
3212
3212
  Mt,
3213
3213
  {
3214
3214
  text: "移除",
3215
- icon: /* @__PURE__ */ a(Fi, {}),
3215
+ icon: /* @__PURE__ */ a(_i, {}),
3216
3216
  color: ((ie = w.token.contextMenu) == null ? void 0 : ie.dangerColor) || "#ff3b30",
3217
3217
  textColor: ((ve = w.token.contextMenu) == null ? void 0 : ve.dangerColor) || "#ff3b30",
3218
3218
  index: 0,
@@ -3225,11 +3225,11 @@ const ir = ({
3225
3225
  }
3226
3226
  }
3227
3227
  ),
3228
- Z && /* @__PURE__ */ a(
3228
+ X && /* @__PURE__ */ a(
3229
3229
  Mt,
3230
3230
  {
3231
3231
  text: "分享",
3232
- icon: /* @__PURE__ */ a(_i, {}),
3232
+ icon: /* @__PURE__ */ a(Vi, {}),
3233
3233
  index: 1,
3234
3234
  onClick: () => {
3235
3235
  if (c) {
@@ -3243,7 +3243,7 @@ const ir = ({
3243
3243
  Mt,
3244
3244
  {
3245
3245
  text: "信息",
3246
- icon: /* @__PURE__ */ a(Vi, {}),
3246
+ icon: /* @__PURE__ */ a(ji, {}),
3247
3247
  index: 2,
3248
3248
  onClick: () => {
3249
3249
  if (l) {
@@ -3261,9 +3261,9 @@ const ir = ({
3261
3261
  he && (() => {
3262
3262
  var be;
3263
3263
  if (!S || S.length <= 1) return null;
3264
- const J = Jn((be = v == null ? void 0 : v.config) == null ? void 0 : be.sizeId, S, N);
3264
+ const J = Qn((be = v == null ? void 0 : v.config) == null ? void 0 : be.sizeId, S, N);
3265
3265
  let me = 0;
3266
- return V && me++, Z && me++, re && me++, /* @__PURE__ */ a(tl, { text: "尺寸", icon: /* @__PURE__ */ a(ji, { size: 18 }), index: me, children: /* @__PURE__ */ a(
3266
+ return V && me++, X && me++, re && me++, /* @__PURE__ */ a(tl, { text: "尺寸", icon: /* @__PURE__ */ a(Wi, { size: 18 }), index: me, children: /* @__PURE__ */ a(
3267
3267
  ol,
3268
3268
  {
3269
3269
  sizes: F(),
@@ -3281,7 +3281,7 @@ const ir = ({
3281
3281
  })(),
3282
3282
  le().map((J, me) => {
3283
3283
  let be = 0;
3284
- return V && be++, Z && be++, re && be++, he && (k == null ? void 0 : k.allowResize) !== !1 && be++, be += me, /* @__PURE__ */ a(
3284
+ return V && be++, X && be++, re && be++, he && (k == null ? void 0 : k.allowResize) !== !1 && be++, be += me, /* @__PURE__ */ a(
3285
3285
  Mt,
3286
3286
  {
3287
3287
  text: J.text,
@@ -3474,14 +3474,14 @@ const ir = ({
3474
3474
  itemIconBuilderAllowNull: f,
3475
3475
  contextMenuBuilder: u
3476
3476
  };
3477
- return /* @__PURE__ */ a(jn, { ...C, children: /* @__PURE__ */ I(Gn, { ...w, children: [
3477
+ return /* @__PURE__ */ a(Wn, { ...C, children: /* @__PURE__ */ I(Kn, { ...w, children: [
3478
3478
  /* @__PURE__ */ a(() => {
3479
3479
  const v = $e(), k = xe();
3480
3480
  return T(() => {
3481
3481
  e && (typeof e == "function" ? e({ state: v, config: k }) : e.current = { state: v, config: k });
3482
3482
  }, [v, k]), null;
3483
3483
  }, {}),
3484
- /* @__PURE__ */ a(lr, { ...m }),
3484
+ /* @__PURE__ */ a(cr, { ...m }),
3485
3485
  /* @__PURE__ */ a(il, {})
3486
3486
  ] }) });
3487
3487
  }), al = {
@@ -3731,7 +3731,7 @@ const ir = ({
3731
3731
  margin-bottom: 0;
3732
3732
  }
3733
3733
  }
3734
- `, dr = O(
3734
+ `, ur = O(
3735
3735
  "markdown-body",
3736
3736
  B`
3737
3737
  p {
@@ -3754,7 +3754,7 @@ const ir = ({
3754
3754
  }
3755
3755
  }
3756
3756
  `
3757
- ), ur = B`
3757
+ ), hr = B`
3758
3758
  .markdown-body {
3759
3759
  /* light */
3760
3760
  color-scheme: light;
@@ -3809,7 +3809,7 @@ const ir = ({
3809
3809
  --color-prettylights-syntax-meta-diff-range: #8250df;
3810
3810
  --color-prettylights-syntax-sublimelinter-gutter-mark: #818b98;
3811
3811
  }
3812
- `, hr = B`
3812
+ `, pr = B`
3813
3813
  .markdown-body {
3814
3814
  /* dark */
3815
3815
  color-scheme: dark;
@@ -3876,7 +3876,7 @@ const ir = ({
3876
3876
  className: i,
3877
3877
  theme: s = "auto",
3878
3878
  ...l
3879
- } = t, c = X(null), {
3879
+ } = t, c = Z(null), {
3880
3880
  image: d,
3881
3881
  diffSource: u = {
3882
3882
  viewMode: "rich-text"
@@ -3894,112 +3894,112 @@ const ir = ({
3894
3894
  }
3895
3895
  },
3896
3896
  directives: b = {
3897
- directiveDescriptors: [Rs]
3897
+ directiveDescriptors: [Bs]
3898
3898
  }
3899
3899
  } = r ?? {}, [y, m] = M("");
3900
3900
  return T(() => {
3901
3901
  var w;
3902
3902
  e !== void 0 && c.current && ((w = c.current) == null || w.setMarkdown(e), m(e));
3903
3903
  }, [e, c]), /* @__PURE__ */ a(
3904
- Bs,
3904
+ Ts,
3905
3905
  {
3906
3906
  ref: c,
3907
3907
  className: O(
3908
3908
  dl,
3909
3909
  no(s) ? cl : "",
3910
- no(s) ? hr : ur,
3910
+ no(s) ? pr : hr,
3911
3911
  i
3912
3912
  ),
3913
- contentEditableClassName: dr,
3913
+ contentEditableClassName: ur,
3914
3914
  markdown: y,
3915
3915
  onChange: (w) => {
3916
3916
  !e && !o && m(w), o && o(w);
3917
3917
  },
3918
3918
  translation: n ?? ll,
3919
3919
  plugins: [
3920
- Ts({
3921
- toolbarContents: () => /* @__PURE__ */ I(Ys, { options: ["rich-text", "source"], children: [
3922
- /* @__PURE__ */ a(Zs, {}),
3923
- /* @__PURE__ */ a(et, {}),
3920
+ Ds({
3921
+ toolbarContents: () => /* @__PURE__ */ I(Zs, { options: ["rich-text", "source"], children: [
3924
3922
  /* @__PURE__ */ a(Xs, {}),
3925
- /* @__PURE__ */ a(Js, {}),
3926
3923
  /* @__PURE__ */ a(et, {}),
3924
+ /* @__PURE__ */ a(Js, {}),
3927
3925
  /* @__PURE__ */ a(Qs, {}),
3928
3926
  /* @__PURE__ */ a(et, {}),
3929
3927
  /* @__PURE__ */ a(ea, {}),
3930
3928
  /* @__PURE__ */ a(et, {}),
3931
3929
  /* @__PURE__ */ a(ta, {}),
3932
- /* @__PURE__ */ a(oa, {}),
3933
3930
  /* @__PURE__ */ a(et, {}),
3931
+ /* @__PURE__ */ a(oa, {}),
3934
3932
  /* @__PURE__ */ a(na, {}),
3935
- /* @__PURE__ */ a(ra, {}),
3936
3933
  /* @__PURE__ */ a(et, {}),
3934
+ /* @__PURE__ */ a(ra, {}),
3937
3935
  /* @__PURE__ */ a(ia, {}),
3938
3936
  /* @__PURE__ */ a(et, {}),
3939
- /* @__PURE__ */ a(sa, {})
3937
+ /* @__PURE__ */ a(sa, {}),
3938
+ /* @__PURE__ */ a(et, {}),
3939
+ /* @__PURE__ */ a(aa, {})
3940
3940
  ] })
3941
3941
  }),
3942
- Ds(u),
3943
- $s(),
3942
+ $s(u),
3944
3943
  Us(),
3945
- Ps(h),
3946
- Hs(g),
3947
- Os(),
3948
- Fs(d),
3949
- _s(),
3944
+ Ps(),
3945
+ Hs(h),
3946
+ Os(g),
3947
+ Fs(),
3948
+ _s(d),
3950
3949
  Vs(),
3951
3950
  js(),
3952
- Ws(p),
3953
- Gs(f),
3954
- Ks(),
3955
- qs(b)
3951
+ Ws(),
3952
+ Gs(p),
3953
+ Ks(f),
3954
+ qs(),
3955
+ Ys(b)
3956
3956
  ],
3957
3957
  ...l
3958
3958
  }
3959
3959
  );
3960
- }, pr = (t) => {
3960
+ }, fr = (t) => {
3961
3961
  const { children: e = "", className: o, theme: n = "auto", imageProps: r } = t;
3962
3962
  return /* @__PURE__ */ a(
3963
3963
  "div",
3964
3964
  {
3965
- className: no(n) ? hr : ur,
3965
+ className: no(n) ? pr : hr,
3966
3966
  children: /* @__PURE__ */ a(
3967
- aa,
3967
+ la,
3968
3968
  {
3969
- className: O(dr, o),
3970
- remarkPlugins: [la, ca],
3971
- rehypePlugins: [da],
3969
+ className: O(ur, o),
3970
+ remarkPlugins: [ca, da],
3971
+ rehypePlugins: [ua],
3972
3972
  components: {
3973
3973
  code(i) {
3974
3974
  const { children: s, className: l, node: c, ref: d, ...u } = i, h = /language-(\w+)/.exec(l || "");
3975
3975
  return h ? /* @__PURE__ */ a(
3976
- ua,
3976
+ ha,
3977
3977
  {
3978
3978
  ...u,
3979
3979
  PreTag: "div",
3980
3980
  children: String(s).replace(/\n$/, ""),
3981
3981
  language: h[1],
3982
- style: ha
3982
+ style: pa
3983
3983
  }
3984
3984
  ) : /* @__PURE__ */ a("code", { ...u, className: l, children: s });
3985
3985
  },
3986
3986
  img(i) {
3987
3987
  const { preview: s, ...l } = r ?? {};
3988
3988
  return /* @__PURE__ */ a(
3989
- pa,
3989
+ fa,
3990
3990
  {
3991
3991
  ...i,
3992
3992
  preview: s instanceof Boolean ? s : {
3993
3993
  icons: {
3994
- rotateLeft: /* @__PURE__ */ a(Ji, {}),
3995
- rotateRight: /* @__PURE__ */ a(Xi, {}),
3996
- zoomIn: /* @__PURE__ */ a(Zi, {}),
3997
- zoomOut: /* @__PURE__ */ a(Yi, {}),
3994
+ rotateLeft: /* @__PURE__ */ a(Qi, {}),
3995
+ rotateRight: /* @__PURE__ */ a(Ji, {}),
3996
+ zoomIn: /* @__PURE__ */ a(Xi, {}),
3997
+ zoomOut: /* @__PURE__ */ a(Zi, {}),
3998
3998
  close: /* @__PURE__ */ a(bt, {}),
3999
- left: /* @__PURE__ */ a(qi, {}),
4000
- right: /* @__PURE__ */ a(Ki, {}),
4001
- flipX: /* @__PURE__ */ a(Gi, {}),
4002
- flipY: /* @__PURE__ */ a(Wi, {})
3999
+ left: /* @__PURE__ */ a(Yi, {}),
4000
+ right: /* @__PURE__ */ a(qi, {}),
4001
+ flipX: /* @__PURE__ */ a(Ki, {}),
4002
+ flipY: /* @__PURE__ */ a(Gi, {})
4003
4003
  },
4004
4004
  zIndex: 9999,
4005
4005
  mask: " ",
@@ -4018,10 +4018,10 @@ const ir = ({
4018
4018
  )
4019
4019
  }
4020
4020
  );
4021
- }, fr = ul;
4022
- fr.Preview = pr;
4021
+ }, gr = ul;
4022
+ gr.Preview = fr;
4023
4023
  function mt(...t) {
4024
- return ga(fa(t));
4024
+ return ma(ga(t));
4025
4025
  }
4026
4026
  const Co = (t) => {
4027
4027
  const {
@@ -4035,7 +4035,7 @@ const Co = (t) => {
4035
4035
  titleClassName: c = "zs-rounded-md zs-bg-gray-100 zs-border dark:zs-bg-neutral-800 dark:zs-border-neutral-900 dark:zs-text-white zs-border-gray-200 zs-text-neutral-700",
4036
4036
  childrenClassName: d,
4037
4037
  ...u
4038
- } = t, h = X(null), g = st(e, (N) => {
4038
+ } = t, h = Z(null), g = st(e, (N) => {
4039
4039
  var K;
4040
4040
  const D = ((K = h.current) == null ? void 0 : K.getBoundingClientRect()) ?? { x: 0, width: 0 };
4041
4041
  return N - D.x - D.width / 2;
@@ -4164,7 +4164,7 @@ const Co = (t) => {
4164
4164
  {
4165
4165
  onClick: d,
4166
4166
  className: "zs-h-10 zs-w-10 zs-rounded-full zs-bg-gray-50 dark:zs-bg-neutral-800 zs-flex zs-items-center zs-justify-center",
4167
- children: n || /* @__PURE__ */ a(Qi, { className: "zs-h-5 zs-w-5 zs-text-neutral-500 dark:zs-text-neutral-400" })
4167
+ children: n || /* @__PURE__ */ a(es, { className: "zs-h-5 zs-w-5 zs-text-neutral-500 dark:zs-text-neutral-400" })
4168
4168
  }
4169
4169
  )
4170
4170
  ] });
@@ -4568,7 +4568,7 @@ function wl(t) {
4568
4568
  }
4569
4569
  return Array.from(e);
4570
4570
  }
4571
- const Cl = typeof document < "u" ? Mi : T;
4571
+ const Cl = typeof document < "u" ? Ni : T;
4572
4572
  function kl(t, e) {
4573
4573
  const { RTLTextPlugin: o, maxParallelImageRequests: n, workerCount: r, workerUrl: i } = e;
4574
4574
  if (o && t.getRTLTextPluginStatus && t.getRTLTextPluginStatus() === "unavailable") {
@@ -4581,7 +4581,7 @@ function kl(t, e) {
4581
4581
  }
4582
4582
  const ct = Je.createContext(null);
4583
4583
  function xl(t, e) {
4584
- const o = De(pl), [n, r] = M(null), i = X(), { current: s } = X({ mapLib: null, map: null });
4584
+ const o = De(pl), [n, r] = M(null), i = Z(), { current: s } = Z({ mapLib: null, map: null });
4585
4585
  T(() => {
4586
4586
  const d = t.mapLib;
4587
4587
  let u = !0, h;
@@ -4632,7 +4632,7 @@ function Ge(t, e) {
4632
4632
  Number.isFinite(r) && !Ll.test(n) ? o[n] = `${r}px` : o[n] = r;
4633
4633
  }
4634
4634
  }
4635
- function gr(t, e) {
4635
+ function mr(t, e) {
4636
4636
  if (t === e)
4637
4637
  return null;
4638
4638
  const o = an(t), n = an(e), r = [];
@@ -4646,7 +4646,7 @@ function an(t) {
4646
4646
  return new Set(t ? t.trim().split(/\s+/) : []);
4647
4647
  }
4648
4648
  const Xt = Le(Q((t, e) => {
4649
- const { map: o, mapLib: n } = De(ct), r = X({ props: t }), i = de(() => {
4649
+ const { map: o, mapLib: n } = De(ct), r = Z({ props: t }), i = de(() => {
4650
4650
  let m = !1;
4651
4651
  Je.Children.forEach(t.children, (L) => {
4652
4652
  L && (m = !0);
@@ -4685,14 +4685,14 @@ const Xt = Le(Q((t, e) => {
4685
4685
  }, [d]), rt(e, () => i, []);
4686
4686
  const b = r.current.props;
4687
4687
  (i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !fl(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== u && i.setDraggable(u), i.getRotation() !== g && i.setRotation(g), i.getRotationAlignment() !== p && i.setRotationAlignment(p), i.getPitchAlignment() !== f && i.setPitchAlignment(f), i.getPopup() !== h && i.setPopup(h);
4688
- const y = gr(b.className, t.className);
4688
+ const y = mr(b.className, t.className);
4689
4689
  if (y)
4690
4690
  for (const m of y)
4691
4691
  i.toggleClassName(m);
4692
4692
  return r.current.props = t, Nn(t.children, i.getElement());
4693
4693
  }));
4694
4694
  Le(Q((t, e) => {
4695
- const { map: o, mapLib: n } = De(ct), r = de(() => document.createElement("div"), []), i = X({ props: t }), s = de(() => {
4695
+ const { map: o, mapLib: n } = De(ct), r = de(() => document.createElement("div"), []), i = Z({ props: t }), s = de(() => {
4696
4696
  const l = { ...t }, c = new n.Popup(l);
4697
4697
  return c.setLngLat([t.longitude, t.latitude]), c.once("open", (d) => {
4698
4698
  var u, h;
@@ -4712,7 +4712,7 @@ Le(Q((t, e) => {
4712
4712
  }, [t.style]), rt(e, () => s, []), s.isOpen()) {
4713
4713
  const l = i.current.props;
4714
4714
  (s.getLngLat().lng !== t.longitude || s.getLngLat().lat !== t.latitude) && s.setLngLat([t.longitude, t.latitude]), t.offset && !Ee(l.offset, t.offset) && s.setOffset(t.offset), (l.anchor !== t.anchor || l.maxWidth !== t.maxWidth) && (s.options.anchor = t.anchor, s.setMaxWidth(t.maxWidth));
4715
- const c = gr(l.className, t.className);
4715
+ const c = mr(l.className, t.className);
4716
4716
  if (c)
4717
4717
  for (const d of c)
4718
4718
  s.toggleClassName(d);
@@ -4748,7 +4748,7 @@ function Il(t) {
4748
4748
  }
4749
4749
  Le(Il);
4750
4750
  function Ml(t, e) {
4751
- const o = X({ props: t }), n = it(({ mapLib: r }) => {
4751
+ const o = Z({ props: t }), n = it(({ mapLib: r }) => {
4752
4752
  const i = new r.GeolocateControl(t), s = i._setupUI;
4753
4753
  return i._setupUI = () => {
4754
4754
  i._container.hasChildNodes() || s();
@@ -4786,7 +4786,7 @@ Le(Nl);
4786
4786
  function El(t) {
4787
4787
  const e = it(({ mapLib: i }) => new i.ScaleControl(t), {
4788
4788
  position: t.position
4789
- }), o = X(t), n = o.current;
4789
+ }), o = Z(t), n = o.current;
4790
4790
  o.current = t;
4791
4791
  const { style: r } = t;
4792
4792
  return t.maxWidth !== void 0 && t.maxWidth !== n.maxWidth && (e.options.maxWidth = t.maxWidth), t.unit !== void 0 && t.unit !== n.unit && e.setUnit(t.unit), T(() => {
@@ -4854,7 +4854,7 @@ function Dl(t, e, o) {
4854
4854
  }
4855
4855
  }
4856
4856
  function Jt(t) {
4857
- const e = De(ct).map.getMap(), o = X(t), [, n] = M(0), r = de(() => t.id || `jsx-source-${Bl++}`, []);
4857
+ const e = De(ct).map.getMap(), o = Z(t), [, n] = M(0), r = de(() => t.id || `jsx-source-${Bl++}`, []);
4858
4858
  T(() => {
4859
4859
  if (e) {
4860
4860
  const s = () => setTimeout(() => n((l) => l + 1), 0);
@@ -4903,7 +4903,7 @@ function Ul(t, e, o) {
4903
4903
  }
4904
4904
  let Pl = 0;
4905
4905
  function at(t) {
4906
- const e = De(ct).map.getMap(), o = X(t), [, n] = M(0), r = de(() => t.id || `jsx-layer-${Pl++}`, []);
4906
+ const e = De(ct).map.getMap(), o = Z(t), [, n] = M(0), r = de(() => t.id || `jsx-layer-${Pl++}`, []);
4907
4907
  if (T(() => {
4908
4908
  if (e) {
4909
4909
  const s = () => n((l) => l + 1);
@@ -5035,10 +5035,10 @@ const Hl = (t) => {
5035
5035
  fetchGeoData: u,
5036
5036
  children: h
5037
5037
  }) => {
5038
- const g = X(null), [p, f] = M(ln), [b, y] = M(null), [m, w] = M(t), [C, L] = M([]), v = X({}), [k, z] = M({}), [S, N] = M({}), [D, K] = M(!1), [$, _] = M([]), [V, Z] = M({}), [re, he] = M({}), [F, le] = M(!1), [fe, W] = M([]), ie = de(
5038
+ const g = Z(null), [p, f] = M(ln), [b, y] = M(null), [m, w] = M(t), [C, L] = M([]), v = Z({}), [k, z] = M({}), [S, N] = M({}), [D, K] = M(!1), [$, _] = M([]), [V, X] = M({}), [re, he] = M({}), [F, le] = M(!1), [fe, W] = M([]), ie = de(
5039
5039
  () => u || _l,
5040
5040
  [u]
5041
- ), { run: ve } = Ti(
5041
+ ), { run: ve } = Di(
5042
5042
  (A) => ie(A),
5043
5043
  {
5044
5044
  manual: !0,
@@ -5143,7 +5143,7 @@ const Hl = (t) => {
5143
5143
  });
5144
5144
  const ae = U.map(
5145
5145
  (x) => ie(x.code).then((E) => {
5146
- Z((oe) => ({
5146
+ X((oe) => ({
5147
5147
  ...oe,
5148
5148
  [x.code]: E
5149
5149
  }));
@@ -5446,7 +5446,7 @@ function jl({
5446
5446
  }),
5447
5447
  Sn({ padding: 4 })
5448
5448
  ]
5449
- }), h = u.context, g = Is(h, {
5449
+ }), h = u.context, g = Ms(h, {
5450
5450
  mouseOnly: !0,
5451
5451
  move: !1,
5452
5452
  restMs: r,
@@ -5454,9 +5454,9 @@ function jl({
5454
5454
  delay: {
5455
5455
  close: i
5456
5456
  }
5457
- }), p = Ms(h, {
5457
+ }), p = Ns(h, {
5458
5458
  enabled: o == null
5459
- }), f = Ns(h), b = Es(h, { role: "tooltip" }), y = As([g, p, f, b]);
5459
+ }), f = Es(h), b = As(h, { role: "tooltip" }), y = Rs([g, p, f, b]);
5460
5460
  return de(
5461
5461
  () => ({
5462
5462
  open: c,
@@ -5468,18 +5468,18 @@ function jl({
5468
5468
  );
5469
5469
  }
5470
5470
  const ro = Ht(null);
5471
- function mr() {
5471
+ function br() {
5472
5472
  const t = De(ro);
5473
5473
  if (t == null)
5474
5474
  throw new Error("Tooltip components must be wrapped in <TooltipProvider />");
5475
5475
  return t;
5476
5476
  }
5477
- function br({ children: t, ...e }) {
5477
+ function yr({ children: t, ...e }) {
5478
5478
  const o = jl(e);
5479
- return e.useDelayGroup ? /* @__PURE__ */ a(Ss, { delay: { open: e.delay ?? 0, close: e.closeDelay ?? 0 }, timeoutMs: e.timeout, children: /* @__PURE__ */ a(ro.Provider, { value: o, children: t }) }) : /* @__PURE__ */ a(ro.Provider, { value: o, children: t });
5479
+ return e.useDelayGroup ? /* @__PURE__ */ a(Is, { delay: { open: e.delay ?? 0, close: e.closeDelay ?? 0 }, timeoutMs: e.timeout, children: /* @__PURE__ */ a(ro.Provider, { value: o, children: t }) }) : /* @__PURE__ */ a(ro.Provider, { value: o, children: t });
5480
5480
  }
5481
- const yr = Q(function({ children: e, asChild: o = !1, ...n }, r) {
5482
- const i = mr(), s = Zo(e) ? parseInt(Ni, 10) >= 19 ? (
5481
+ const vr = Q(function({ children: e, asChild: o = !1, ...n }, r) {
5482
+ const i = br(), s = Zo(e) ? parseInt(Ei, 10) >= 19 ? (
5483
5483
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5484
5484
  e.props.ref
5485
5485
  ) : (
@@ -5501,8 +5501,8 @@ const yr = Q(function({ children: e, asChild: o = !1, ...n }, r) {
5501
5501
  );
5502
5502
  }
5503
5503
  return /* @__PURE__ */ a("button", { ref: l, "data-tooltip-state": i.open ? "open" : "closed", ...i.getReferenceProps(n), children: e });
5504
- }), vr = Q(function({ style: e, children: o, portal: n = !0, portalProps: r = {}, ...i }, s) {
5505
- const l = mr(), c = Mn([l.refs.setFloating, s]);
5504
+ }), wr = Q(function({ style: e, children: o, portal: n = !0, portalProps: r = {}, ...i }, s) {
5505
+ const l = br(), c = Mn([l.refs.setFloating, s]);
5506
5506
  if (!l.open) return null;
5507
5507
  const d = /* @__PURE__ */ a(
5508
5508
  "div",
@@ -5519,9 +5519,9 @@ const yr = Q(function({ children: e, asChild: o = !1, ...n }, r) {
5519
5519
  );
5520
5520
  return n ? /* @__PURE__ */ a(In, { ...r, children: d }) : d;
5521
5521
  });
5522
- br.displayName = "Tooltip";
5523
- yr.displayName = "TooltipTrigger";
5524
- vr.displayName = "TooltipContent";
5522
+ yr.displayName = "Tooltip";
5523
+ vr.displayName = "TooltipTrigger";
5524
+ wr.displayName = "TooltipContent";
5525
5525
  var Qe = {
5526
5526
  8: "Backspace",
5527
5527
  9: "Tab",
@@ -5876,7 +5876,7 @@ function oc(t) {
5876
5876
  return t.node(0).resolve(t.before(e + 1));
5877
5877
  return null;
5878
5878
  }
5879
- function wr(t) {
5879
+ function Cr(t) {
5880
5880
  const e = t.selection.$head;
5881
5881
  for (let o = e.depth; o > 0; o--)
5882
5882
  if (e.node(o).type.spec.tableRole == "row") return !0;
@@ -5907,10 +5907,10 @@ function rc(t) {
5907
5907
  function cn(t) {
5908
5908
  return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
5909
5909
  }
5910
- function Cr(t, e) {
5910
+ function kr(t, e) {
5911
5911
  return t.depth == e.depth && t.pos >= e.start(-1) && t.pos <= e.end(-1);
5912
5912
  }
5913
- function kr(t, e, o) {
5913
+ function xr(t, e, o) {
5914
5914
  const n = t.node(-1), r = Ve.get(n), i = t.start(-1), s = r.nextCell(t.pos - i, e, o);
5915
5915
  return s == null ? null : t.node(0).resolve(i + s);
5916
5916
  }
@@ -5934,7 +5934,7 @@ var je = class _e extends Pe {
5934
5934
  if (!h)
5935
5935
  throw RangeError(`No cell with offset ${u} found`);
5936
5936
  const g = i + u + 1;
5937
- return new za(
5937
+ return new La(
5938
5938
  l.resolve(g),
5939
5939
  l.resolve(g + h.content.size)
5940
5940
  );
@@ -5943,7 +5943,7 @@ var je = class _e extends Pe {
5943
5943
  }
5944
5944
  map(e, o) {
5945
5945
  const n = e.resolve(o.map(this.$anchorCell.pos)), r = e.resolve(o.map(this.$headCell.pos));
5946
- if (cn(n) && cn(r) && Cr(n, r)) {
5946
+ if (cn(n) && cn(r) && kr(n, r)) {
5947
5947
  const i = this.$anchorCell.node(-1) != n.node(-1);
5948
5948
  return i && this.isRowSelection() ? _e.rowSelection(n, r) : i && this.isColSelection() ? _e.colSelection(n, r) : new _e(n, r);
5949
5949
  }
@@ -6084,20 +6084,20 @@ var je = class _e extends Pe {
6084
6084
  };
6085
6085
  je.prototype.visible = !1;
6086
6086
  Pe.jsonID("cell", je);
6087
- var ic = class xr {
6087
+ var ic = class zr {
6088
6088
  constructor(e, o) {
6089
6089
  this.anchor = e, this.head = o;
6090
6090
  }
6091
6091
  map(e) {
6092
- return new xr(e.map(this.anchor), e.map(this.head));
6092
+ return new zr(e.map(this.anchor), e.map(this.head));
6093
6093
  }
6094
6094
  resolve(e) {
6095
6095
  const o = e.resolve(this.anchor), n = e.resolve(this.head);
6096
- return o.parent.type.spec.tableRole == "row" && n.parent.type.spec.tableRole == "row" && o.index() < o.parent.childCount && n.index() < n.parent.childCount && Cr(o, n) ? new je(o, n) : Pe.near(n, 1);
6096
+ return o.parent.type.spec.tableRole == "row" && n.parent.type.spec.tableRole == "row" && o.index() < o.parent.childCount && n.index() < n.parent.childCount && kr(o, n) ? new je(o, n) : Pe.near(n, 1);
6097
6097
  }
6098
6098
  };
6099
6099
  new Ft("fix-tables");
6100
- function zr(t) {
6100
+ function Lr(t) {
6101
6101
  const e = t.selection, o = nc(t), n = o.node(-1), r = o.start(-1), i = Ve.get(n);
6102
6102
  return { ...e instanceof je ? i.rectBetween(
6103
6103
  e.$anchorCell.pos - r,
@@ -6106,9 +6106,9 @@ function zr(t) {
6106
6106
  }
6107
6107
  function sc(t) {
6108
6108
  return function(e, o) {
6109
- if (!wr(e)) return !1;
6109
+ if (!Cr(e)) return !1;
6110
6110
  if (o) {
6111
- const n = zo(e.schema), r = zr(e), i = e.tr, s = r.map.cellsInRect(
6111
+ const n = zo(e.schema), r = Lr(e), i = e.tr, s = r.map.cellsInRect(
6112
6112
  t == "column" ? {
6113
6113
  left: r.left,
6114
6114
  top: 0,
@@ -6155,9 +6155,9 @@ function un(t, e, o) {
6155
6155
  }
6156
6156
  function Lo(t, e) {
6157
6157
  return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? sc(t) : function(o, n) {
6158
- if (!wr(o)) return !1;
6158
+ if (!Cr(o)) return !1;
6159
6159
  if (n) {
6160
- const r = zo(o.schema), i = zr(o), s = o.tr, l = un("row", i, r), c = un(
6160
+ const r = zo(o.schema), i = Lr(o), s = o.tr, l = un("row", i, r), c = un(
6161
6161
  "column",
6162
6162
  i,
6163
6163
  r
@@ -6232,7 +6232,7 @@ function Et(t, e) {
6232
6232
  Pe.near(i.$headCell, e)
6233
6233
  );
6234
6234
  if (t != "horiz" && !i.empty) return !1;
6235
- const s = Lr(r, t, e);
6235
+ const s = Sr(r, t, e);
6236
6236
  if (s == null) return !1;
6237
6237
  if (t == "horiz")
6238
6238
  return Bt(
@@ -6241,7 +6241,7 @@ function Et(t, e) {
6241
6241
  Pe.near(o.doc.resolve(i.head + e), e)
6242
6242
  );
6243
6243
  {
6244
- const l = o.doc.resolve(s), c = kr(l, t, e);
6244
+ const l = o.doc.resolve(s), c = xr(l, t, e);
6245
6245
  let d;
6246
6246
  return c ? d = Pe.near(c, 1) : e < 0 ? d = Pe.near(o.doc.resolve(l.before(-1)), -1) : d = Pe.near(o.doc.resolve(l.after(-1)), 1), Bt(o, n, d);
6247
6247
  }
@@ -6255,11 +6255,11 @@ function At(t, e) {
6255
6255
  if (i instanceof je)
6256
6256
  s = i;
6257
6257
  else {
6258
- const c = Lr(r, t, e);
6258
+ const c = Sr(r, t, e);
6259
6259
  if (c == null) return !1;
6260
6260
  s = new je(o.doc.resolve(c));
6261
6261
  }
6262
- const l = kr(s.$headCell, t, e);
6262
+ const l = xr(s.$headCell, t, e);
6263
6263
  return l ? Bt(
6264
6264
  o,
6265
6265
  n,
@@ -6267,7 +6267,7 @@ function At(t, e) {
6267
6267
  ) : !1;
6268
6268
  };
6269
6269
  }
6270
- function Lr(t, e, o) {
6270
+ function Sr(t, e, o) {
6271
6271
  if (!(t.state.selection instanceof Ae)) return null;
6272
6272
  const { $head: n } = t.state.selection;
6273
6273
  for (let r = n.depth - 1; r >= 0; r--) {
@@ -6391,7 +6391,7 @@ function Wt(t, e = []) {
6391
6391
  const l = (s = (i = n.node) == null ? void 0 : i.type) == null ? void 0 : s.name;
6392
6392
  return !!l && r.has(l);
6393
6393
  }
6394
- if (n instanceof Ae || n instanceof La) {
6394
+ if (n instanceof Ae || n instanceof Sa) {
6395
6395
  let l = !0;
6396
6396
  return o.doc.nodesBetween(n.from, n.to, (c) => c.isTextblock && !r.has(c.type.name) ? (l = !1, !1) : l), l;
6397
6397
  }
@@ -6428,15 +6428,15 @@ function fc(t, e, o) {
6428
6428
  }
6429
6429
  return "#";
6430
6430
  }
6431
- const gc = ({ shortcuts: t }) => t.length === 0 ? null : /* @__PURE__ */ a("div", { children: t.map((e, o) => /* @__PURE__ */ I(Ei, { children: [
6431
+ const gc = ({ shortcuts: t }) => t.length === 0 ? null : /* @__PURE__ */ a("div", { children: t.map((e, o) => /* @__PURE__ */ I(Ai, { children: [
6432
6432
  o > 0 && /* @__PURE__ */ a("kbd", { children: "+" }),
6433
6433
  /* @__PURE__ */ a("kbd", { children: e })
6434
6434
  ] }, o)) }), ue = Q(
6435
6435
  ({ className: t, children: e, tooltip: o, showTooltip: n = !0, shortcutKeys: r, "aria-label": i, ...s }, l) => {
6436
6436
  const c = de(() => Oe({ shortcutKeys: r }), [r]);
6437
- return !o || !n ? /* @__PURE__ */ a("button", { className: Ie("tiptap-button", t), ref: l, "aria-label": i, ...s, children: e }) : /* @__PURE__ */ I(br, { delay: 200, children: [
6438
- /* @__PURE__ */ a(yr, { className: Ie("tiptap-button", t), ref: l, "aria-label": i, ...s, children: e }),
6439
- /* @__PURE__ */ I(vr, { children: [
6437
+ return !o || !n ? /* @__PURE__ */ a("button", { className: Ie("tiptap-button", t), ref: l, "aria-label": i, ...s, children: e }) : /* @__PURE__ */ I(yr, { delay: 200, children: [
6438
+ /* @__PURE__ */ a(vr, { className: Ie("tiptap-button", t), ref: l, "aria-label": i, ...s, children: e }),
6439
+ /* @__PURE__ */ I(wr, { children: [
6440
6440
  o,
6441
6441
  /* @__PURE__ */ a(gc, { shortcuts: c })
6442
6442
  ] })
@@ -6488,7 +6488,7 @@ const Gt = Q(
6488
6488
  }
6489
6489
  );
6490
6490
  Gt.displayName = "Separator";
6491
- function Sr({
6491
+ function Ir({
6492
6492
  editor: t,
6493
6493
  containerRef: e,
6494
6494
  query: o,
@@ -6555,7 +6555,7 @@ function Sr({
6555
6555
  const fn = (t, e) => {
6556
6556
  typeof t == "function" ? t(e) : t && typeof t == "object" && "current" in t && (t.current = e);
6557
6557
  }, mc = (t, e) => {
6558
- const o = X(null);
6558
+ const o = Z(null);
6559
6559
  return P(
6560
6560
  (n) => {
6561
6561
  t && "current" in t && (t.current = n), o.current && fn(o.current, null), o.current = e, e && fn(e, n);
@@ -6576,7 +6576,7 @@ const fn = (t, e) => {
6576
6576
  const l = new MutationObserver(s);
6577
6577
  return l.observe(i, { childList: !0, subtree: !0 }), () => l.disconnect();
6578
6578
  }, [n, t]);
6579
- const { selectedIndex: r } = Sr({
6579
+ const { selectedIndex: r } = Ir({
6580
6580
  containerRef: t,
6581
6581
  items: e,
6582
6582
  orientation: "horizontal",
@@ -6599,9 +6599,9 @@ const fn = (t, e) => {
6599
6599
  }, [t]), T(() => {
6600
6600
  r !== void 0 && e[r] && e[r].focus();
6601
6601
  }, [r, e]);
6602
- }, Ir = Q(
6602
+ }, Mr = Q(
6603
6603
  ({ children: t, className: e, variant: o = "fixed", ...n }, r) => {
6604
- const i = X(null), s = mc(i, r);
6604
+ const i = Z(null), s = mc(i, r);
6605
6605
  return bc(i), /* @__PURE__ */ a(
6606
6606
  "div",
6607
6607
  {
@@ -6616,7 +6616,7 @@ const fn = (t, e) => {
6616
6616
  );
6617
6617
  }
6618
6618
  );
6619
- Ir.displayName = "Toolbar";
6619
+ Mr.displayName = "Toolbar";
6620
6620
  const Ue = Q(({ children: t, className: e, ...o }, n) => /* @__PURE__ */ a("div", { ref: n, role: "group", className: Ie("tiptap-toolbar-group", e), ...o, children: t }));
6621
6621
  Ue.displayName = "ToolbarGroup";
6622
6622
  const Xe = Q(({ ...t }, e) => /* @__PURE__ */ a(Gt, { ref: e, orientation: "vertical", decorative: !0, ...t }));
@@ -6644,11 +6644,11 @@ const So = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
6644
6644
  ));
6645
6645
  So.displayName = "ChevronDownIcon";
6646
6646
  function we(t) {
6647
- const { editor: e } = ma(), o = de(
6647
+ const { editor: e } = ba(), o = de(
6648
6648
  () => t || e,
6649
6649
  [t, e]
6650
6650
  );
6651
- return ba({
6651
+ return ya({
6652
6652
  editor: o,
6653
6653
  selector(r) {
6654
6654
  return r.editor ? {
@@ -6663,14 +6663,14 @@ function we(t) {
6663
6663
  }
6664
6664
  }) || { editor: null };
6665
6665
  }
6666
- const Mr = {
6667
- 1: is,
6668
- 2: rs,
6669
- 3: ns,
6670
- 4: os,
6671
- 5: ts,
6672
- 6: es
6673
- }, Nr = {
6666
+ const Nr = {
6667
+ 1: ss,
6668
+ 2: is,
6669
+ 3: rs,
6670
+ 4: ns,
6671
+ 5: os,
6672
+ 6: ts
6673
+ }, Er = {
6674
6674
  1: "ctrl+alt+1",
6675
6675
  2: "ctrl+alt+2",
6676
6676
  3: "ctrl+alt+3",
@@ -6719,7 +6719,7 @@ function yc(t, e) {
6719
6719
  return !1;
6720
6720
  }
6721
6721
  }
6722
- function Er(t) {
6722
+ function Ar(t) {
6723
6723
  const { editor: e, level: o, hideWhenUnavailable: n } = t;
6724
6724
  return !e || !e.isEditable || !Ke("heading", e) ? !1 : n && !e.isActive("code") ? Array.isArray(o) ? o.some((r) => vt(e, r)) : vt(e, o) : !0;
6725
6725
  }
@@ -6728,7 +6728,7 @@ function vc(t) {
6728
6728
  T(() => {
6729
6729
  if (!i) return;
6730
6730
  const h = () => {
6731
- l(Er({ editor: i, level: o, hideWhenUnavailable: n }));
6731
+ l(Ar({ editor: i, level: o, hideWhenUnavailable: n }));
6732
6732
  };
6733
6733
  return h(), i.on("selectionUpdate", h), () => {
6734
6734
  i.off("selectionUpdate", h);
@@ -6745,8 +6745,8 @@ function vc(t) {
6745
6745
  handleToggle: u,
6746
6746
  canToggle: c,
6747
6747
  label: `Heading ${o}`,
6748
- shortcutKeys: Nr[o],
6749
- Icon: Mr[o]
6748
+ shortcutKeys: Er[o],
6749
+ Icon: Nr[o]
6750
6750
  };
6751
6751
  }
6752
6752
  const Fe = Q(
@@ -6767,11 +6767,11 @@ const Fe = Q(
6767
6767
  Fe.displayName = "Badge";
6768
6768
  function wc({
6769
6769
  level: t,
6770
- shortcutKeys: e = Nr[t]
6770
+ shortcutKeys: e = Er[t]
6771
6771
  }) {
6772
6772
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: e }) });
6773
6773
  }
6774
- const Ar = Q(
6774
+ const Rr = Q(
6775
6775
  ({
6776
6776
  editor: t,
6777
6777
  level: e,
@@ -6819,7 +6819,7 @@ const Ar = Q(
6819
6819
  ) : null;
6820
6820
  }
6821
6821
  );
6822
- Ar.displayName = "HeadingButton";
6822
+ Rr.displayName = "HeadingButton";
6823
6823
  function Cc(t, e = [1, 2, 3, 4, 5, 6]) {
6824
6824
  if (!(!t || !t.isEditable))
6825
6825
  return e.find((o) => Io(t, o));
@@ -6829,7 +6829,7 @@ function kc(t) {
6829
6829
  return T(() => {
6830
6830
  if (!i) return;
6831
6831
  const h = () => {
6832
- l(Er({ editor: i, hideWhenUnavailable: n, level: o }));
6832
+ l(Ar({ editor: i, hideWhenUnavailable: n, level: o }));
6833
6833
  };
6834
6834
  return h(), i.on("selectionUpdate", h), () => {
6835
6835
  i.off("selectionUpdate", h);
@@ -6841,20 +6841,20 @@ function kc(t) {
6841
6841
  canToggle: u,
6842
6842
  levels: o,
6843
6843
  label: r("toolbar.heading.label"),
6844
- Icon: c ? Mr[c] : ss
6844
+ Icon: c ? Nr[c] : as
6845
6845
  };
6846
6846
  }
6847
- function Rr({ ...t }) {
6847
+ function Br({ ...t }) {
6848
6848
  return /* @__PURE__ */ a(We.Root, { modal: !1, ...t });
6849
6849
  }
6850
- function Br({ ...t }) {
6850
+ function Tr({ ...t }) {
6851
6851
  return /* @__PURE__ */ a(We.Portal, { ...t });
6852
6852
  }
6853
6853
  const Mo = Q(({ ...t }, e) => /* @__PURE__ */ a(We.Trigger, { ref: e, ...t }));
6854
6854
  Mo.displayName = We.Trigger.displayName;
6855
- const Tr = We.Item, xc = Q(({ className: t, portal: e = !0, ...o }, n) => {
6855
+ const Dr = We.Item, xc = Q(({ className: t, portal: e = !0, ...o }, n) => {
6856
6856
  const r = /* @__PURE__ */ a(We.SubContent, { ref: n, className: Ie("tiptap-dropdown-menu", t), ...o });
6857
- return e ? /* @__PURE__ */ a(Br, { ...typeof e == "object" ? e : {}, children: r }) : r;
6857
+ return e ? /* @__PURE__ */ a(Tr, { ...typeof e == "object" ? e : {}, children: r }) : r;
6858
6858
  });
6859
6859
  xc.displayName = We.SubContent.displayName;
6860
6860
  const No = Q(({ className: t, sideOffset: e = 4, portal: o = !1, ...n }, r) => {
@@ -6868,7 +6868,7 @@ const No = Q(({ className: t, sideOffset: e = 4, portal: o = !1, ...n }, r) => {
6868
6868
  ...n
6869
6869
  }
6870
6870
  );
6871
- return o ? /* @__PURE__ */ a(Br, { ...typeof o == "object" ? o : {}, children: i }) : i;
6871
+ return o ? /* @__PURE__ */ a(Tr, { ...typeof o == "object" ? o : {}, children: i }) : i;
6872
6872
  });
6873
6873
  No.displayName = We.Content.displayName;
6874
6874
  const kt = Q(
@@ -6922,7 +6922,7 @@ const Sc = Q(
6922
6922
  )
6923
6923
  );
6924
6924
  Sc.displayName = "CardFooter";
6925
- const Dr = Q(
6925
+ const $r = Q(
6926
6926
  ({
6927
6927
  editor: t,
6928
6928
  levels: e = [1, 2, 3, 4, 5, 6],
@@ -6941,7 +6941,7 @@ const Dr = Q(
6941
6941
  },
6942
6942
  [p, c, r]
6943
6943
  );
6944
- return h ? /* @__PURE__ */ I(Rr, { modal: !0, open: d, onOpenChange: b, children: [
6944
+ return h ? /* @__PURE__ */ I(Br, { modal: !0, open: d, onOpenChange: b, children: [
6945
6945
  /* @__PURE__ */ a(Mo, { asChild: !0, children: /* @__PURE__ */ I(
6946
6946
  ue,
6947
6947
  {
@@ -6963,8 +6963,8 @@ const Dr = Q(
6963
6963
  ]
6964
6964
  }
6965
6965
  ) }),
6966
- /* @__PURE__ */ a(No, { align: "start", portal: n, children: /* @__PURE__ */ a(kt, { children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(nt, { children: e.map((y) => /* @__PURE__ */ a(Tr, { asChild: !0, children: /* @__PURE__ */ a(
6967
- Ar,
6966
+ /* @__PURE__ */ a(No, { align: "start", portal: n, children: /* @__PURE__ */ a(kt, { children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(nt, { children: e.map((y) => /* @__PURE__ */ a(Dr, { asChild: !0, children: /* @__PURE__ */ a(
6967
+ Rr,
6968
6968
  {
6969
6969
  editor: c,
6970
6970
  level: y,
@@ -6975,7 +6975,7 @@ const Dr = Q(
6975
6975
  ] }) : null;
6976
6976
  }
6977
6977
  );
6978
- Dr.displayName = "HeadingDropdownMenu";
6978
+ $r.displayName = "HeadingDropdownMenu";
6979
6979
  function zt(t = "max", e = 768) {
6980
6980
  const [o, n] = M(void 0);
6981
6981
  return T(() => {
@@ -7037,13 +7037,13 @@ function Ec(t) {
7037
7037
  canInsert: d,
7038
7038
  label: r("toolbar.image.label"),
7039
7039
  shortcutKeys: lo,
7040
- Icon: as
7040
+ Icon: ls
7041
7041
  };
7042
7042
  }
7043
7043
  function Ac({ shortcutKeys: t = lo }) {
7044
7044
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: t }) });
7045
7045
  }
7046
- const $r = Q(
7046
+ const Ur = Q(
7047
7047
  ({
7048
7048
  editor: t,
7049
7049
  text: e,
@@ -7090,8 +7090,8 @@ const $r = Q(
7090
7090
  ) : null;
7091
7091
  }
7092
7092
  );
7093
- $r.displayName = "ImageUploadButton";
7094
- const Ur = {
7093
+ Ur.displayName = "ImageUploadButton";
7094
+ const Pr = {
7095
7095
  bulletList: ho,
7096
7096
  orderedList: vn,
7097
7097
  taskList: yn
@@ -7099,7 +7099,7 @@ const Ur = {
7099
7099
  bulletList: "Bullet List",
7100
7100
  orderedList: "Ordered List",
7101
7101
  taskList: "Task List"
7102
- }, Pr = {
7102
+ }, Hr = {
7103
7103
  bulletList: "mod+shift+8",
7104
7104
  orderedList: "mod+shift+7",
7105
7105
  taskList: "mod+shift+9"
@@ -7213,17 +7213,17 @@ function Dc(t) {
7213
7213
  handleToggle: u,
7214
7214
  canToggle: c,
7215
7215
  label: Rc[o],
7216
- shortcutKeys: Pr[o],
7217
- Icon: Ur[o]
7216
+ shortcutKeys: Hr[o],
7217
+ Icon: Pr[o]
7218
7218
  };
7219
7219
  }
7220
7220
  function $c({
7221
7221
  type: t,
7222
- shortcutKeys: e = Pr[t]
7222
+ shortcutKeys: e = Hr[t]
7223
7223
  }) {
7224
7224
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: e }) });
7225
7225
  }
7226
- const Hr = Q(
7226
+ const Or = Q(
7227
7227
  ({
7228
7228
  editor: t,
7229
7229
  type: e,
@@ -7271,7 +7271,7 @@ const Hr = Q(
7271
7271
  ) : null;
7272
7272
  }
7273
7273
  );
7274
- Hr.displayName = "ListButton";
7274
+ Or.displayName = "ListButton";
7275
7275
  const Uc = [
7276
7276
  {
7277
7277
  label: "Bullet List",
@@ -7352,7 +7352,7 @@ function Vc(t) {
7352
7352
  types: o,
7353
7353
  filteredLists: d,
7354
7354
  label: r("toolbar.list.label"),
7355
- Icon: p ? Ur[p.type] : ho
7355
+ Icon: p ? Pr[p.type] : ho
7356
7356
  };
7357
7357
  }
7358
7358
  function jc({
@@ -7373,7 +7373,7 @@ function jc({
7373
7373
  },
7374
7374
  [n]
7375
7375
  );
7376
- return p ? /* @__PURE__ */ I(Rr, { open: c, onOpenChange: b, children: [
7376
+ return p ? /* @__PURE__ */ I(Br, { open: c, onOpenChange: b, children: [
7377
7377
  /* @__PURE__ */ a(Mo, { asChild: !0, children: /* @__PURE__ */ I(
7378
7378
  ue,
7379
7379
  {
@@ -7393,10 +7393,10 @@ function jc({
7393
7393
  ]
7394
7394
  }
7395
7395
  ) }),
7396
- /* @__PURE__ */ a(No, { align: "start", portal: r, children: /* @__PURE__ */ a(kt, { children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(nt, { children: u.map((y) => /* @__PURE__ */ a(Tr, { asChild: !0, children: /* @__PURE__ */ a(Hr, { editor: l, type: y.type, text: y.label, showTooltip: !1 }) }, y.type)) }) }) }) })
7396
+ /* @__PURE__ */ a(No, { align: "start", portal: r, children: /* @__PURE__ */ a(kt, { children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(nt, { children: u.map((y) => /* @__PURE__ */ a(Dr, { asChild: !0, children: /* @__PURE__ */ a(Or, { editor: l, type: y.type, text: y.label, showTooltip: !1 }) }, y.type)) }) }) }) })
7397
7397
  ] }) : null;
7398
7398
  }
7399
- const Or = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7399
+ const Fr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7400
7400
  "svg",
7401
7401
  {
7402
7402
  width: "24",
@@ -7446,8 +7446,8 @@ const Or = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7446
7446
  ]
7447
7447
  }
7448
7448
  ));
7449
- Or.displayName = "BlockquoteIcon";
7450
- const Fr = "mod+shift+b";
7449
+ Fr.displayName = "BlockquoteIcon";
7450
+ const _r = "mod+shift+b";
7451
7451
  function Bo(t, e = !0) {
7452
7452
  return !t || !t.isEditable || !Ke("blockquote", t) || qe(t, ["image"]) ? !1 : e ? Wt(t, [
7453
7453
  "paragraph",
@@ -7510,14 +7510,14 @@ function Kc(t) {
7510
7510
  handleToggle: u,
7511
7511
  canToggle: c,
7512
7512
  label: r("toolbar.blockquote"),
7513
- shortcutKeys: Fr,
7514
- Icon: Or
7513
+ shortcutKeys: _r,
7514
+ Icon: Fr
7515
7515
  };
7516
7516
  }
7517
- function qc({ shortcutKeys: t = Fr }) {
7517
+ function qc({ shortcutKeys: t = _r }) {
7518
7518
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: t }) });
7519
7519
  }
7520
- const _r = Q(
7520
+ const Vr = Q(
7521
7521
  ({
7522
7522
  editor: t,
7523
7523
  text: e,
@@ -7563,8 +7563,8 @@ const _r = Q(
7563
7563
  ) : null;
7564
7564
  }
7565
7565
  );
7566
- _r.displayName = "BlockquoteButton";
7567
- const Vr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7566
+ Vr.displayName = "BlockquoteButton";
7567
+ const jr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7568
7568
  "svg",
7569
7569
  {
7570
7570
  width: "24",
@@ -7605,8 +7605,8 @@ const Vr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
7605
7605
  ]
7606
7606
  }
7607
7607
  ));
7608
- Vr.displayName = "CodeBlockIcon";
7609
- const jr = "mod+alt+c";
7608
+ jr.displayName = "CodeBlockIcon";
7609
+ const Wr = "mod+alt+c";
7610
7610
  function To(t, e = !0) {
7611
7611
  return !t || !t.isEditable || !Ke("codeBlock", t) || qe(t, ["image"]) ? !1 : e ? Wt(t, [
7612
7612
  "paragraph",
@@ -7669,14 +7669,14 @@ function Xc(t) {
7669
7669
  handleToggle: u,
7670
7670
  canToggle: c,
7671
7671
  label: r("toolbar.codeBlock"),
7672
- shortcutKeys: jr,
7673
- Icon: Vr
7672
+ shortcutKeys: Wr,
7673
+ Icon: jr
7674
7674
  };
7675
7675
  }
7676
- function Jc({ shortcutKeys: t = jr }) {
7676
+ function Jc({ shortcutKeys: t = Wr }) {
7677
7677
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: t }) });
7678
7678
  }
7679
- const Wr = Q(
7679
+ const Gr = Q(
7680
7680
  ({
7681
7681
  editor: t,
7682
7682
  text: e,
@@ -7722,7 +7722,7 @@ const Wr = Q(
7722
7722
  ) : null;
7723
7723
  }
7724
7724
  );
7725
- Wr.displayName = "CodeBlockButton";
7725
+ Gr.displayName = "CodeBlockButton";
7726
7726
  function Do({ ...t }) {
7727
7727
  return /* @__PURE__ */ a(yt.Root, { ...t });
7728
7728
  }
@@ -7800,7 +7800,7 @@ const co = "mod+shift+h", ed = [
7800
7800
  border: "var(--tt-color-highlight-red-contrast)"
7801
7801
  }
7802
7802
  ];
7803
- function Gr(t) {
7803
+ function Kr(t) {
7804
7804
  const e = new Map(ed.map((o) => [o.value, o]));
7805
7805
  return t.map((o) => e.get(o)).filter((o) => !!o);
7806
7806
  }
@@ -7908,7 +7908,7 @@ function rd({
7908
7908
  }) {
7909
7909
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: t }) });
7910
7910
  }
7911
- const Kr = Q(
7911
+ const qr = Q(
7912
7912
  ({
7913
7913
  editor: t,
7914
7914
  highlightColor: e,
@@ -7973,7 +7973,7 @@ const Kr = Q(
7973
7973
  ) : null;
7974
7974
  }
7975
7975
  );
7976
- Kr.displayName = "ColorHighlightButton";
7976
+ qr.displayName = "ColorHighlightButton";
7977
7977
  const Oo = Q(
7978
7978
  ({ className: t, children: e, ...o }, n) => {
7979
7979
  const { t: r } = ye("simpleEditor");
@@ -7996,9 +7996,9 @@ const Oo = Q(
7996
7996
  }
7997
7997
  );
7998
7998
  Oo.displayName = "ColorHighlightPopoverButton";
7999
- function qr({
7999
+ function Yr({
8000
8000
  editor: t,
8001
- colors: e = Gr([
8001
+ colors: e = Kr([
8002
8002
  "var(--tt-color-highlight-green)",
8003
8003
  "var(--tt-color-highlight-blue)",
8004
8004
  "var(--tt-color-highlight-red)",
@@ -8006,10 +8006,10 @@ function qr({
8006
8006
  "var(--tt-color-highlight-yellow)"
8007
8007
  ])
8008
8008
  }) {
8009
- const { t: o } = ye("simpleEditor"), { handleRemoveHighlight: n } = Ho({ editor: t }), r = zt(), i = X(null), s = de(
8009
+ const { t: o } = ye("simpleEditor"), { handleRemoveHighlight: n } = Ho({ editor: t }), r = zt(), i = Z(null), s = de(
8010
8010
  () => [...e, { label: "none", value: "none" }],
8011
8011
  [e]
8012
- ), { selectedIndex: l } = Sr({
8012
+ ), { selectedIndex: l } = Ir({
8013
8013
  containerRef: i,
8014
8014
  items: s,
8015
8015
  orientation: "both",
@@ -8022,7 +8022,7 @@ function qr({
8022
8022
  });
8023
8023
  return /* @__PURE__ */ a(kt, { ref: i, tabIndex: 0, style: r ? { boxShadow: "none", border: 0 } : {}, children: /* @__PURE__ */ a(xt, { style: r ? { padding: 0 } : {}, children: /* @__PURE__ */ I(Eo, { orientation: "horizontal", children: [
8024
8024
  /* @__PURE__ */ a(nt, { orientation: "horizontal", children: e.map((c, d) => /* @__PURE__ */ a(
8025
- Kr,
8025
+ qr,
8026
8026
  {
8027
8027
  editor: t,
8028
8028
  highlightColor: c.value,
@@ -8045,14 +8045,14 @@ function qr({
8045
8045
  role: "menuitem",
8046
8046
  "data-style": "ghost",
8047
8047
  "data-highlighted": l === e.length,
8048
- children: /* @__PURE__ */ a(ls, { className: "tiptap-button-icon" })
8048
+ children: /* @__PURE__ */ a(cs, { className: "tiptap-button-icon" })
8049
8049
  }
8050
8050
  ) })
8051
8051
  ] }) }) });
8052
8052
  }
8053
8053
  function id({
8054
8054
  editor: t,
8055
- colors: e = Gr([
8055
+ colors: e = Kr([
8056
8056
  "var(--tt-color-highlight-green)",
8057
8057
  "var(--tt-color-highlight-blue)",
8058
8058
  "var(--tt-color-highlight-red)",
@@ -8082,10 +8082,10 @@ function id({
8082
8082
  children: /* @__PURE__ */ a(p, { className: "tiptap-button-icon" })
8083
8083
  }
8084
8084
  ) }),
8085
- /* @__PURE__ */ a(Uo, { "aria-label": i("toolbar.highlight.label"), children: /* @__PURE__ */ a(qr, { editor: s, colors: e }) })
8085
+ /* @__PURE__ */ a(Uo, { "aria-label": i("toolbar.highlight.label"), children: /* @__PURE__ */ a(Yr, { editor: s, colors: e }) })
8086
8086
  ] }) : null;
8087
8087
  }
8088
- const Yr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8088
+ const Zr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8089
8089
  "svg",
8090
8090
  {
8091
8091
  width: "24",
@@ -8106,8 +8106,8 @@ const Yr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8106
8106
  )
8107
8107
  }
8108
8108
  ));
8109
- Yr.displayName = "CornerDownLeftIcon";
8110
- const Zr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
8109
+ Zr.displayName = "CornerDownLeftIcon";
8110
+ const Xr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
8111
8111
  "svg",
8112
8112
  {
8113
8113
  width: "24",
@@ -8135,8 +8135,8 @@ const Zr = Le(({ className: t, ...e }) => /* @__PURE__ */ I(
8135
8135
  ]
8136
8136
  }
8137
8137
  ));
8138
- Zr.displayName = "ExternalLinkIcon";
8139
- const Xr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8138
+ Xr.displayName = "ExternalLinkIcon";
8139
+ const Jr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8140
8140
  "svg",
8141
8141
  {
8142
8142
  width: "24",
@@ -8157,23 +8157,23 @@ const Xr = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
8157
8157
  )
8158
8158
  }
8159
8159
  ));
8160
- Xr.displayName = "TrashIcon";
8161
- function Jr(t) {
8160
+ Jr.displayName = "TrashIcon";
8161
+ function Qr(t) {
8162
8162
  return !t || !t.isEditable || qe(t, ["image"], !0) ? !1 : t.can().setMark("link");
8163
8163
  }
8164
- function Qr(t) {
8164
+ function ei(t) {
8165
8165
  return !t || !t.isEditable ? !1 : t.isActive("link");
8166
8166
  }
8167
8167
  function sd(t) {
8168
8168
  const { editor: e, hideWhenUnavailable: o } = t;
8169
- return !Ct("link", e) || !e ? !1 : o && !e.isActive("code") ? Jr(e) : !0;
8169
+ return !Ct("link", e) || !e ? !1 : o && !e.isActive("code") ? Qr(e) : !0;
8170
8170
  }
8171
8171
  function ad(t) {
8172
8172
  const { editor: e, onSetLink: o } = t, [n, r] = M(null);
8173
8173
  T(() => {
8174
8174
  if (!e) return;
8175
8175
  const { href: c } = e.getAttributes("link");
8176
- Qr(e) && n === null && r(c || "");
8176
+ ei(e) && n === null && r(c || "");
8177
8177
  }, [e, n]), T(() => {
8178
8178
  if (!e) return;
8179
8179
  const c = () => {
@@ -8208,7 +8208,7 @@ function ad(t) {
8208
8208
  };
8209
8209
  }
8210
8210
  function ld(t) {
8211
- const { editor: e, hideWhenUnavailable: o = !1 } = t, n = Jr(e), r = Qr(e), [i, s] = M(!0);
8211
+ const { editor: e, hideWhenUnavailable: o = !1 } = t, n = Qr(e), r = ei(e), [i, s] = M(!0);
8212
8212
  return T(() => {
8213
8213
  if (!e) return;
8214
8214
  const l = () => {
@@ -8228,7 +8228,7 @@ function ld(t) {
8228
8228
  isActive: r
8229
8229
  };
8230
8230
  }
8231
- function ei(t) {
8231
+ function ti(t) {
8232
8232
  const { editor: e, hideWhenUnavailable: o = !1, onSetLink: n } = t || {}, { t: r } = ye("simpleEditor"), { editor: i } = we(e), { isVisible: s, canSet: l, isActive: c } = ld({
8233
8233
  editor: i,
8234
8234
  hideWhenUnavailable: o
@@ -8274,7 +8274,7 @@ const Fo = Q(({ className: t, children: e, ...o }, n) => {
8274
8274
  );
8275
8275
  });
8276
8276
  Fo.displayName = "LinkButton";
8277
- const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActive: i }) => {
8277
+ const oi = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActive: i }) => {
8278
8278
  const { t: s } = ye("simpleEditor"), l = zt(), c = (d) => {
8279
8279
  d.key === "Enter" && (d.preventDefault(), o());
8280
8280
  };
@@ -8313,7 +8313,7 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8313
8313
  title: s("toolbar.link.apply"),
8314
8314
  disabled: !t && !i,
8315
8315
  "data-style": "ghost",
8316
- children: /* @__PURE__ */ a(Yr, { className: "tiptap-button-icon" })
8316
+ children: /* @__PURE__ */ a(Zr, { className: "tiptap-button-icon" })
8317
8317
  }
8318
8318
  ) }),
8319
8319
  /* @__PURE__ */ a(Gt, {}),
@@ -8326,7 +8326,7 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8326
8326
  title: s("toolbar.link.open"),
8327
8327
  disabled: !t && !i,
8328
8328
  "data-style": "ghost",
8329
- children: /* @__PURE__ */ a(Zr, { className: "tiptap-button-icon" })
8329
+ children: /* @__PURE__ */ a(Xr, { className: "tiptap-button-icon" })
8330
8330
  }
8331
8331
  ),
8332
8332
  /* @__PURE__ */ a(
@@ -8337,7 +8337,7 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8337
8337
  title: s("toolbar.link.remove"),
8338
8338
  disabled: !t && !i,
8339
8339
  "data-style": "ghost",
8340
- children: /* @__PURE__ */ a(Xr, { className: "tiptap-button-icon" })
8340
+ children: /* @__PURE__ */ a(Jr, { className: "tiptap-button-icon" })
8341
8341
  }
8342
8342
  )
8343
8343
  ] })
@@ -8347,11 +8347,11 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8347
8347
  }
8348
8348
  );
8349
8349
  }, ud = ({ editor: t }) => {
8350
- const e = ei({
8350
+ const e = ti({
8351
8351
  editor: t
8352
8352
  });
8353
- return /* @__PURE__ */ a(ti, { ...e });
8354
- }, oi = Q(
8353
+ return /* @__PURE__ */ a(oi, { ...e });
8354
+ }, ni = Q(
8355
8355
  ({
8356
8356
  editor: t,
8357
8357
  hideWhenUnavailable: e = !1,
@@ -8362,7 +8362,7 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8362
8362
  children: s,
8363
8363
  ...l
8364
8364
  }, c) => {
8365
- const { editor: d } = we(t), [u, h] = M(!1), { isVisible: g, canSet: p, isActive: f, url: b, setUrl: y, setLink: m, removeLink: w, openLink: C, label: L, Icon: v } = ei({
8365
+ const { editor: d } = we(t), [u, h] = M(!1), { isVisible: g, canSet: p, isActive: f, url: b, setUrl: y, setLink: m, removeLink: w, openLink: C, label: L, Icon: v } = ti({
8366
8366
  editor: d,
8367
8367
  hideWhenUnavailable: e,
8368
8368
  onSetLink: o
@@ -8397,7 +8397,7 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8397
8397
  }
8398
8398
  ) }),
8399
8399
  /* @__PURE__ */ a(Uo, { children: /* @__PURE__ */ a(
8400
- ti,
8400
+ oi,
8401
8401
  {
8402
8402
  url: b,
8403
8403
  setUrl: y,
@@ -8410,16 +8410,16 @@ const ti = ({ url: t, setUrl: e, setLink: o, removeLink: n, openLink: r, isActiv
8410
8410
  ] }) : null;
8411
8411
  }
8412
8412
  );
8413
- oi.displayName = "LinkPopover";
8413
+ ni.displayName = "LinkPopover";
8414
8414
  const hd = {
8415
- bold: gs,
8416
- italic: fs,
8417
- underline: ps,
8418
- strike: hs,
8419
- code: us,
8420
- superscript: ds,
8421
- subscript: cs
8422
- }, ni = {
8415
+ bold: ms,
8416
+ italic: gs,
8417
+ underline: fs,
8418
+ strike: ps,
8419
+ code: hs,
8420
+ superscript: us,
8421
+ subscript: ds
8422
+ }, ri = {
8423
8423
  bold: "mod+b",
8424
8424
  italic: "mod+i",
8425
8425
  underline: "mod+u",
@@ -8463,13 +8463,13 @@ function md(t) {
8463
8463
  handleMark: h,
8464
8464
  canToggle: d,
8465
8465
  label: i(`toolbar.marks.${o}`),
8466
- shortcutKeys: ni[o],
8466
+ shortcutKeys: ri[o],
8467
8467
  Icon: hd[o]
8468
8468
  };
8469
8469
  }
8470
8470
  function bd({
8471
8471
  type: t,
8472
- shortcutKeys: e = ni[t]
8472
+ shortcutKeys: e = ri[t]
8473
8473
  }) {
8474
8474
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: e }) });
8475
8475
  }
@@ -8522,7 +8522,7 @@ const Ze = Q(
8522
8522
  }
8523
8523
  );
8524
8524
  Ze.displayName = "MarkButton";
8525
- const ri = {
8525
+ const ii = {
8526
8526
  left: "mod+shift+l",
8527
8527
  center: "mod+shift+e",
8528
8528
  right: "mod+shift+r",
@@ -8531,7 +8531,7 @@ const ri = {
8531
8531
  left: go,
8532
8532
  center: Cn,
8533
8533
  right: wn,
8534
- justify: ms
8534
+ justify: bs
8535
8535
  };
8536
8536
  function Vo(t, e) {
8537
8537
  return !t || !t.isEditable || !ut(t, "textAlign") || qe(t, ["image", "horizontalRule"]) ? !1 : t.can().setTextAlign(e);
@@ -8573,13 +8573,13 @@ function xd(t) {
8573
8573
  handleTextAlign: h,
8574
8574
  canAlign: d,
8575
8575
  label: i(`toolbar.align.${o}`),
8576
- shortcutKeys: ri[o],
8576
+ shortcutKeys: ii[o],
8577
8577
  Icon: yd[o]
8578
8578
  };
8579
8579
  }
8580
8580
  function zd({
8581
8581
  align: t,
8582
- shortcutKeys: e = ri[t]
8582
+ shortcutKeys: e = ii[t]
8583
8583
  }) {
8584
8584
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: e }) });
8585
8585
  }
@@ -8633,12 +8633,12 @@ const gt = Q(
8633
8633
  }
8634
8634
  );
8635
8635
  gt.displayName = "TextAlignButton";
8636
- const ii = {
8636
+ const si = {
8637
8637
  undo: "mod+z",
8638
8638
  redo: "mod+shift+z"
8639
8639
  }, Ld = {
8640
- undo: ys,
8641
- redo: bs
8640
+ undo: vs,
8641
+ redo: ys
8642
8642
  };
8643
8643
  function jo(t, e) {
8644
8644
  return !t || !t.isEditable || qe(t, ["image"]) ? !1 : e === "undo" ? t.can().undo() : t.can().redo();
@@ -8673,13 +8673,13 @@ function Md(t) {
8673
8673
  handleAction: u,
8674
8674
  canExecute: d,
8675
8675
  label: i(`toolbar.${o}`),
8676
- shortcutKeys: ii[o],
8676
+ shortcutKeys: si[o],
8677
8677
  Icon: Ld[o]
8678
8678
  };
8679
8679
  }
8680
8680
  function Nd({
8681
8681
  action: t,
8682
- shortcutKeys: e = ii[t]
8682
+ shortcutKeys: e = si[t]
8683
8683
  }) {
8684
8684
  return /* @__PURE__ */ a(Fe, { children: Oe({ shortcutKeys: e }) });
8685
8685
  }
@@ -8819,7 +8819,7 @@ function Ad({
8819
8819
  onSuccess: g,
8820
8820
  onError: p
8821
8821
  }) {
8822
- const [f, b] = M(!1), [y, m] = M(e), [w, C] = M("idle"), [L, v] = M(r || ""), [k, z] = M(null), [S, N] = M(""), [D, K] = M(!1), [$, _] = M(""), V = X(null), Z = X(null), re = X(null), { t: he } = ye("simpleEditor");
8822
+ const [f, b] = M(!1), [y, m] = M(e), [w, C] = M("idle"), [L, v] = M(r || ""), [k, z] = M(null), [S, N] = M(""), [D, K] = M(!1), [$, _] = M(""), V = Z(null), X = Z(null), re = Z(null), { t: he } = ye("simpleEditor");
8823
8823
  T(() => {
8824
8824
  r && v(r);
8825
8825
  }, [r]), T(() => {
@@ -8846,11 +8846,11 @@ function Ad({
8846
8846
  V.current && (V.current.abort(), V.current = null), C("reviewing");
8847
8847
  }, []), fe = P(
8848
8848
  (se) => {
8849
- se ? F() : (w === "generating" && le(), C("idle"), Z.current = null, re.current = null, m(e)), b(se);
8849
+ se ? F() : (w === "generating" && le(), C("idle"), X.current = null, re.current = null, m(e)), b(se);
8850
8850
  },
8851
8851
  [F, w, le, e]
8852
8852
  ), W = P((se) => {
8853
- const ee = Ia.parse(se, { async: !1 }), Y = ee.trim();
8853
+ const ee = Tn.parse(se, { async: !1 }), Y = ee.trim();
8854
8854
  if (Y.startsWith("<p>") && Y.endsWith("</p>")) {
8855
8855
  const Ce = Y.substring(3, Y.length - 4);
8856
8856
  if (!Ce.includes("</p>"))
@@ -8863,7 +8863,7 @@ function Ad({
8863
8863
  if (!(!ee || !L || !t)) {
8864
8864
  if (w === "idle") {
8865
8865
  const { from: Y, to: Ce } = t.state.selection, Me = t.state.doc.slice(Y, Ce);
8866
- Z.current = { from: Y, to: Ce, slice: Me }, re.current = Y;
8866
+ X.current = { from: Y, to: Ce, slice: Me }, re.current = Y;
8867
8867
  }
8868
8868
  V.current && V.current.abort(), V.current = new AbortController(), C("generating"), z(null), ee !== y && m(ee), _(ee), h && h();
8869
8869
  try {
@@ -8922,8 +8922,8 @@ function Ad({
8922
8922
  i
8923
8923
  ]
8924
8924
  ), ve = P(() => {
8925
- if (t && Z.current) {
8926
- const { from: se, slice: ee } = Z.current;
8925
+ if (t && X.current) {
8926
+ const { from: se, slice: ee } = X.current;
8927
8927
  t.commands.command(({ tr: Y, dispatch: Ce }) => {
8928
8928
  if (Ce) {
8929
8929
  const { selection: Me } = Y;
@@ -8934,9 +8934,9 @@ function Ad({
8934
8934
  return !1;
8935
8935
  });
8936
8936
  }
8937
- C("idle"), b(!1), Z.current = null, re.current = null, m(e);
8937
+ C("idle"), b(!1), X.current = null, re.current = null, m(e);
8938
8938
  }, [t, e]), J = P(() => {
8939
- t && t.chain().unsetMark("highlight").run(), C("idle"), b(!1), Z.current = null, re.current = null, m(e);
8939
+ t && t.chain().unsetMark("highlight").run(), C("idle"), b(!1), X.current = null, re.current = null, m(e);
8940
8940
  }, [e, t]), me = P(() => {
8941
8941
  ie();
8942
8942
  }, [ie]), be = P(() => {
@@ -8963,7 +8963,7 @@ function Ad({
8963
8963
  // expose if needed
8964
8964
  };
8965
8965
  }
8966
- const si = Q(
8966
+ const ai = Q(
8967
8967
  ({
8968
8968
  editor: t,
8969
8969
  defaultPrompt: e,
@@ -8997,7 +8997,7 @@ const si = Q(
8997
8997
  handleDiscard: $,
8998
8998
  handleApply: _,
8999
8999
  handleRefine: V,
9000
- handleTryAgain: Z,
9000
+ handleTryAgain: X,
9001
9001
  selectionText: re,
9002
9002
  hasSelection: he
9003
9003
  } = Ad({
@@ -9014,7 +9014,7 @@ const si = Q(
9014
9014
  onStart: u,
9015
9015
  onSuccess: h,
9016
9016
  onError: g
9017
- }), F = X(null);
9017
+ }), F = Z(null);
9018
9018
  if (T(() => {
9019
9019
  if (t) {
9020
9020
  const W = () => {
@@ -9040,7 +9040,7 @@ const si = Q(
9040
9040
  {
9041
9041
  label: w("toolbar.ai.presets.shorter", "Make shorter"),
9042
9042
  text: "Make shorter",
9043
- icon: /* @__PURE__ */ a(vs, { size: 16 })
9043
+ icon: /* @__PURE__ */ a(ws, { size: 16 })
9044
9044
  },
9045
9045
  { label: w("toolbar.ai.presets.longer", "Make longer"), text: "Make longer", icon: /* @__PURE__ */ a(go, { size: 16 }) }
9046
9046
  ], fe = b != null && b.length ? b.map((W) => ({ ...W, icon: W.icon || /* @__PURE__ */ a(Xo, { size: 16 }) })) : le;
@@ -9058,7 +9058,7 @@ const si = Q(
9058
9058
  disabled: !(t != null && t.isEditable) || !he,
9059
9059
  ref: m,
9060
9060
  ...y,
9061
- children: /* @__PURE__ */ a(ws, { className: "tiptap-button-icon" })
9061
+ children: /* @__PURE__ */ a(Cs, { className: "tiptap-button-icon" })
9062
9062
  }
9063
9063
  ) }),
9064
9064
  /* @__PURE__ */ a(Qc, { virtualRef: F }),
@@ -9127,7 +9127,7 @@ const si = Q(
9127
9127
  /* @__PURE__ */ a("span", { children: "." })
9128
9128
  ] })
9129
9129
  ] }),
9130
- /* @__PURE__ */ a(ue, { onClick: K, className: "tiptap-ai-stop-btn", "data-variant": "ghost", children: /* @__PURE__ */ a(Cs, { size: 20 }) })
9130
+ /* @__PURE__ */ a(ue, { onClick: K, className: "tiptap-ai-stop-btn", "data-variant": "ghost", children: /* @__PURE__ */ a(ks, { size: 20 }) })
9131
9131
  ] }),
9132
9132
  z === "reviewing" && /* @__PURE__ */ I("div", { className: "tiptap-ai-review", children: [
9133
9133
  /* @__PURE__ */ I("div", { className: "tiptap-ai-input-wrapper", children: [
@@ -9160,8 +9160,8 @@ const si = Q(
9160
9160
  ] })
9161
9161
  ] }),
9162
9162
  /* @__PURE__ */ I("div", { className: "tiptap-ai-actions", children: [
9163
- /* @__PURE__ */ I(ue, { onClick: Z, "data-variant": "ghost", className: "tiptap-ai-action-btn", children: [
9164
- /* @__PURE__ */ a(ks, { size: 16, style: { marginRight: 6 } }),
9163
+ /* @__PURE__ */ I(ue, { onClick: X, "data-variant": "ghost", className: "tiptap-ai-action-btn", children: [
9164
+ /* @__PURE__ */ a(xs, { size: 16, style: { marginRight: 6 } }),
9165
9165
  w("toolbar.ai.tryAgain", "Try again")
9166
9166
  ] }),
9167
9167
  /* @__PURE__ */ I("div", { className: "tiptap-ai-actions-right", children: [
@@ -9186,8 +9186,8 @@ const si = Q(
9186
9186
  ] });
9187
9187
  }
9188
9188
  );
9189
- si.displayName = "AiButton";
9190
- const ai = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
9189
+ ai.displayName = "AiButton";
9190
+ const li = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
9191
9191
  "svg",
9192
9192
  {
9193
9193
  width: "24",
@@ -9206,9 +9206,9 @@ const ai = Le(({ className: t, ...e }) => /* @__PURE__ */ a(
9206
9206
  )
9207
9207
  }
9208
9208
  ));
9209
- ai.displayName = "ArrowLeftIcon";
9209
+ li.displayName = "ArrowLeftIcon";
9210
9210
  const Rd = (t) => {
9211
- const e = X(t);
9211
+ const e = Z(t);
9212
9212
  e.current = t, T(
9213
9213
  () => () => {
9214
9214
  e.current();
@@ -9219,7 +9219,7 @@ const Rd = (t) => {
9219
9219
  leading: !1,
9220
9220
  trailing: !0
9221
9221
  };
9222
- function li(t, e = 250, o = [], n = Bd) {
9222
+ function ci(t, e = 250, o = [], n = Bd) {
9223
9223
  const r = de(
9224
9224
  () => Ma(t, e, n),
9225
9225
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -9229,14 +9229,14 @@ function li(t, e = 250, o = [], n = Bd) {
9229
9229
  r.cancel();
9230
9230
  }), r;
9231
9231
  }
9232
- function ci() {
9232
+ function di() {
9233
9233
  const [t, e] = M({
9234
9234
  width: 0,
9235
9235
  height: 0,
9236
9236
  offsetTop: 0,
9237
9237
  offsetLeft: 0,
9238
9238
  scale: 0
9239
- }), o = li(() => {
9239
+ }), o = ci(() => {
9240
9240
  if (typeof window > "u") return;
9241
9241
  const n = window.visualViewport;
9242
9242
  if (!n) return;
@@ -9260,14 +9260,14 @@ const Rt = {
9260
9260
  right: 0,
9261
9261
  bottom: 0,
9262
9262
  left: 0
9263
- }, di = typeof window > "u", Td = !di && typeof ResizeObserver < "u", Tt = () => !di;
9263
+ }, ui = typeof window > "u", Td = !ui && typeof ResizeObserver < "u", Tt = () => !ui;
9264
9264
  function Dd({
9265
9265
  element: t,
9266
9266
  enabled: e = !0,
9267
9267
  throttleMs: o = 100,
9268
9268
  useResizeObserver: n = !0
9269
9269
  } = {}) {
9270
- const [r, i] = M(Rt), s = P(() => !e || !Tt() ? null : t ? typeof t == "string" ? document.querySelector(t) : "current" in t ? t.current : t : document.body, [t, e]), l = li(
9270
+ const [r, i] = M(Rt), s = P(() => !e || !Tt() ? null : t ? typeof t == "string" ? document.querySelector(t) : "current" in t ? t.current : t : document.body, [t, e]), l = ci(
9271
9271
  () => {
9272
9272
  if (!e || !Tt()) return;
9273
9273
  const c = s();
@@ -9321,7 +9321,7 @@ function $d(t = {}) {
9321
9321
  });
9322
9322
  }
9323
9323
  function Ud({ editor: t, overlayHeight: e = 0 }) {
9324
- const { height: o } = ci(), n = $d({
9324
+ const { height: o } = di(), n = $d({
9325
9325
  enabled: !0,
9326
9326
  throttleMs: 100,
9327
9327
  useResizeObserver: !0
@@ -9352,13 +9352,13 @@ function Pd() {
9352
9352
  e(n);
9353
9353
  }, []), T(() => {
9354
9354
  document.documentElement.classList.toggle("dark", t);
9355
- }, [t]), /* @__PURE__ */ a(ue, { onClick: () => e((n) => !n), "aria-label": `Switch to ${t ? "light" : "dark"} mode`, "data-style": "ghost", children: t ? /* @__PURE__ */ a(xs, { className: "tiptap-button-icon" }) : /* @__PURE__ */ a(zs, { className: "tiptap-button-icon" }) });
9355
+ }, [t]), /* @__PURE__ */ a(ue, { onClick: () => e((n) => !n), "aria-label": `Switch to ${t ? "light" : "dark"} mode`, "data-style": "ghost", children: t ? /* @__PURE__ */ a(zs, { className: "tiptap-button-icon" }) : /* @__PURE__ */ a(Ls, { className: "tiptap-button-icon" }) });
9356
9356
  }
9357
- const Hd = { contentAriaLabel: "Main content area, start typing to enter text." }, Od = { add: "Add", undo: "Undo", redo: "Redo", heading: { label: "Heading", level: "Heading {{level}}" }, list: { label: "List", bullet: "Bullet List", ordered: "Ordered List", task: "Task List" }, blockquote: "Blockquote", codeBlock: "Code Block", marks: { bold: "Bold", italic: "Italic", strike: "Strike", code: "Code", underline: "Underline", superscript: "Superscript", subscript: "Subscript" }, highlight: { label: "Highlight", toggle: "Toggle highlight ({{color}})", remove: "Remove highlight", colors: { default: "Default background", gray: "Gray background", brown: "Brown background", orange: "Orange background", yellow: "Yellow background", green: "Green background", blue: "Blue background", purple: "Purple background", pink: "Pink background", red: "Red background" } }, link: { label: "Link", placeholder: "Paste a link...", apply: "Apply link", open: "Open in new window", remove: "Remove link" }, align: { left: "Align left", center: "Align center", right: "Align right", justify: "Align justify" }, image: { label: "Add image" }, ai: { label: "AI Assistant", placeholder: "Ask AI to write something...", apiKeyPlaceholder: "sk-...", generate: "Generate", generating: "Generating...", insert: "Insert", replace: "Replace Selection", apiKeyLabel: "API Key (DeepSeek)", promptLabel: "Prompt", error: "Failed to generate content", optimizeSelection: "Selection Context: {{text}}", isWriting: "AI is writing", refinePlaceholder: "Tell AI what else needs to be changed...", tryAgain: "Try again", discard: "Discard", apply: "Apply", presets: { edit: "Edit", improve: "Improve writing", fix: "Fix spelling & grammar", shorter: "Make shorter", longer: "Make longer" } } }, Fd = { clickToUpload: "Click to upload", dragAndDrop: "or drag and drop", limitInfo: "Maximum {{limit}} file(s), {{size}}MB each.", uploading: "Uploading {{count}} files", clearAll: "Clear All", errors: { tooLarge: "File size exceeds maximum allowed ({{size}}MB)", limitExceeded: "Maximum {{limit}} files allowed", noFile: "No file selected", noFiles: "No files to upload", uploadFailed: "Upload failed", noUrl: "Upload failed: No URL returned" } }, ui = {
9357
+ const Hd = { contentAriaLabel: "Main content area, start typing to enter text." }, Od = { add: "Add", undo: "Undo", redo: "Redo", heading: { label: "Heading", level: "Heading {{level}}" }, list: { label: "List", bullet: "Bullet List", ordered: "Ordered List", task: "Task List" }, blockquote: "Blockquote", codeBlock: "Code Block", marks: { bold: "Bold", italic: "Italic", strike: "Strike", code: "Code", underline: "Underline", superscript: "Superscript", subscript: "Subscript" }, highlight: { label: "Highlight", toggle: "Toggle highlight ({{color}})", remove: "Remove highlight", colors: { default: "Default background", gray: "Gray background", brown: "Brown background", orange: "Orange background", yellow: "Yellow background", green: "Green background", blue: "Blue background", purple: "Purple background", pink: "Pink background", red: "Red background" } }, link: { label: "Link", placeholder: "Paste a link...", apply: "Apply link", open: "Open in new window", remove: "Remove link" }, align: { left: "Align left", center: "Align center", right: "Align right", justify: "Align justify" }, image: { label: "Add image" }, ai: { label: "AI Assistant", placeholder: "Ask AI to write something...", apiKeyPlaceholder: "sk-...", generate: "Generate", generating: "Generating...", insert: "Insert", replace: "Replace Selection", apiKeyLabel: "API Key (DeepSeek)", promptLabel: "Prompt", error: "Failed to generate content", optimizeSelection: "Selection Context: {{text}}", isWriting: "AI is writing", refinePlaceholder: "Tell AI what else needs to be changed...", tryAgain: "Try again", discard: "Discard", apply: "Apply", presets: { edit: "Edit", improve: "Improve writing", fix: "Fix spelling & grammar", shorter: "Make shorter", longer: "Make longer" } } }, Fd = { clickToUpload: "Click to upload", dragAndDrop: "or drag and drop", limitInfo: "Maximum {{limit}} file(s), {{size}}MB each.", uploading: "Uploading {{count}} files", clearAll: "Clear All", errors: { tooLarge: "File size exceeds maximum allowed ({{size}}MB)", limitExceeded: "Maximum {{limit}} files allowed", noFile: "No file selected", noFiles: "No files to upload", uploadFailed: "Upload failed", noUrl: "Upload failed: No URL returned" } }, hi = {
9358
9358
  editor: Hd,
9359
9359
  toolbar: Od,
9360
9360
  imageUpload: Fd
9361
- }, _d = { contentAriaLabel: "主要内容区域,开始输入文字。" }, Vd = { add: "添加", undo: "撤销", redo: "重做", heading: { label: "标题", level: "标题 {{level}}" }, list: { label: "列表", bullet: "无序列表", ordered: "有序列表", task: "任务列表" }, blockquote: "引用", codeBlock: "代码块", marks: { bold: "粗体", italic: "斜体", strike: "删除线", code: "行内代码", underline: "下划线", superscript: "上标", subscript: "下标" }, highlight: { label: "高亮", toggle: "切换高亮 ({{color}})", remove: "移除高亮", colors: { default: "默认背景", gray: "灰色背景", brown: "棕色背景", orange: "橙色背景", yellow: "黄色背景", green: "绿色背景", blue: "蓝色背景", purple: "紫色背景", pink: "粉色背景", red: "红色背景" } }, link: { label: "链接", placeholder: "粘贴链接...", apply: "应用链接", open: "在新窗口打开", remove: "移除链接" }, align: { left: "左对齐", center: "居中对齐", right: "右对齐", justify: "两端对齐" }, image: { label: "添加图片" }, ai: { label: "AI 助手", placeholder: "让 AI 写点什么...", apiKeyPlaceholder: "sk-...", generate: "生成", generating: "生成中...", insert: "插入", replace: "替换选中内容", apiKeyLabel: "API Key (DeepSeek)", promptLabel: "提示词", error: "生成失败", optimizeSelection: "选中内容: {{text}}", isWriting: "AI 正在写作", refinePlaceholder: "告诉 AI 还需要修改什么...", tryAgain: "重试", discard: "放弃", apply: "应用", presets: { edit: "编辑", improve: "润色", fix: "修复拼写和语法", shorter: "缩短", longer: "扩写" } } }, jd = { clickToUpload: "点击上传", dragAndDrop: "或拖拽上传", limitInfo: "最多 {{limit}} 个文件,每个 {{size}}MB。", uploading: "正在上传 {{count}} 个文件", clearAll: "全部清除", errors: { tooLarge: "文件大小超过限制 ({{size}}MB)", limitExceeded: "最多允许 {{limit}} 个文件", noFile: "未选择文件", noFiles: "没有可上传的文件", uploadFailed: "上传失败", noUrl: "上传失败:未返回 URL" } }, hi = {
9361
+ }, _d = { contentAriaLabel: "主要内容区域,开始输入文字。" }, Vd = { add: "添加", undo: "撤销", redo: "重做", heading: { label: "标题", level: "标题 {{level}}" }, list: { label: "列表", bullet: "无序列表", ordered: "有序列表", task: "任务列表" }, blockquote: "引用", codeBlock: "代码块", marks: { bold: "粗体", italic: "斜体", strike: "删除线", code: "行内代码", underline: "下划线", superscript: "上标", subscript: "下标" }, highlight: { label: "高亮", toggle: "切换高亮 ({{color}})", remove: "移除高亮", colors: { default: "默认背景", gray: "灰色背景", brown: "棕色背景", orange: "橙色背景", yellow: "黄色背景", green: "绿色背景", blue: "蓝色背景", purple: "紫色背景", pink: "粉色背景", red: "红色背景" } }, link: { label: "链接", placeholder: "粘贴链接...", apply: "应用链接", open: "在新窗口打开", remove: "移除链接" }, align: { left: "左对齐", center: "居中对齐", right: "右对齐", justify: "两端对齐" }, image: { label: "添加图片" }, ai: { label: "AI 助手", placeholder: "让 AI 写点什么...", apiKeyPlaceholder: "sk-...", generate: "生成", generating: "生成中...", insert: "插入", replace: "替换选中内容", apiKeyLabel: "API Key (DeepSeek)", promptLabel: "提示词", error: "生成失败", optimizeSelection: "选中内容: {{text}}", isWriting: "AI 正在写作", refinePlaceholder: "告诉 AI 还需要修改什么...", tryAgain: "重试", discard: "放弃", apply: "应用", presets: { edit: "编辑", improve: "润色", fix: "修复拼写和语法", shorter: "缩短", longer: "扩写" } } }, jd = { clickToUpload: "点击上传", dragAndDrop: "或拖拽上传", limitInfo: "最多 {{limit}} 个文件,每个 {{size}}MB。", uploading: "正在上传 {{count}} 个文件", clearAll: "全部清除", errors: { tooLarge: "文件大小超过限制 ({{size}}MB)", limitExceeded: "最多允许 {{limit}} 个文件", noFile: "未选择文件", noFiles: "没有可上传的文件", uploadFailed: "上传失败", noUrl: "上传失败:未返回 URL" } }, pi = {
9362
9362
  editor: _d,
9363
9363
  toolbar: Vd,
9364
9364
  imageUpload: jd
@@ -9450,7 +9450,7 @@ function Wd(t) {
9450
9450
  }
9451
9451
  };
9452
9452
  }
9453
- const pi = () => /* @__PURE__ */ I(
9453
+ const fi = () => /* @__PURE__ */ I(
9454
9454
  "svg",
9455
9455
  {
9456
9456
  width: "24",
@@ -9546,7 +9546,7 @@ const pi = () => /* @__PURE__ */ I(
9546
9546
  t.status === "uploading" && /* @__PURE__ */ a("div", { className: "tiptap-image-upload-progress", style: { width: `${t.progress}%` } }),
9547
9547
  /* @__PURE__ */ I("div", { className: "tiptap-image-upload-preview-content", children: [
9548
9548
  /* @__PURE__ */ I("div", { className: "tiptap-image-upload-file-info", children: [
9549
- /* @__PURE__ */ a("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ a(pi, {}) }),
9549
+ /* @__PURE__ */ a("div", { className: "tiptap-image-upload-file-icon", children: /* @__PURE__ */ a(fi, {}) }),
9550
9550
  /* @__PURE__ */ I("div", { className: "tiptap-image-upload-details", children: [
9551
9551
  /* @__PURE__ */ a("span", { className: "tiptap-image-upload-text", children: t.file.name }),
9552
9552
  /* @__PURE__ */ a("span", { className: "tiptap-image-upload-subtext", children: o(t.file.size) })
@@ -9577,7 +9577,7 @@ const pi = () => /* @__PURE__ */ I(
9577
9577
  /* @__PURE__ */ I("div", { className: "tiptap-image-upload-dropzone", children: [
9578
9578
  /* @__PURE__ */ a(Gd, {}),
9579
9579
  /* @__PURE__ */ a(Kd, {}),
9580
- /* @__PURE__ */ a("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ a(pi, {}) })
9580
+ /* @__PURE__ */ a("div", { className: "tiptap-image-upload-icon-container", children: /* @__PURE__ */ a(fi, {}) })
9581
9581
  ] }),
9582
9582
  /* @__PURE__ */ I("div", { className: "tiptap-image-upload-content", children: [
9583
9583
  /* @__PURE__ */ I("span", { className: "tiptap-image-upload-text", children: [
@@ -9593,7 +9593,7 @@ const pi = () => /* @__PURE__ */ I(
9593
9593
  ] })
9594
9594
  ] });
9595
9595
  }, Xd = (t) => {
9596
- const { accept: e, limit: o, maxSize: n } = t.node.attrs, r = X(null), i = t.extension, { t: s } = ye("simpleEditor"), l = {
9596
+ const { accept: e, limit: o, maxSize: n } = t.node.attrs, r = Z(null), i = t.extension, { t: s } = ye("simpleEditor"), l = {
9597
9597
  maxSize: n,
9598
9598
  limit: o,
9599
9599
  accept: e,
@@ -9684,7 +9684,7 @@ const pi = () => /* @__PURE__ */ I(
9684
9684
  }
9685
9685
  )
9686
9686
  ] });
9687
- }, fi = ya.create({
9687
+ }, gi = va.create({
9688
9688
  name: "imageUpload",
9689
9689
  group: "block",
9690
9690
  draggable: !0,
@@ -9742,7 +9742,7 @@ const pi = () => /* @__PURE__ */ I(
9742
9742
  },
9743
9743
  addProseMirrorPlugins() {
9744
9744
  return [
9745
- new Sa({
9745
+ new Ia({
9746
9746
  key: new Ft("imageUploadPaste"),
9747
9747
  props: {
9748
9748
  handlePaste: (t, e) => {
@@ -9785,7 +9785,7 @@ const pi = () => /* @__PURE__ */ I(
9785
9785
  };
9786
9786
  }
9787
9787
  }), Jd = (t) => {
9788
- const { node: e, updateAttributes: o, selected: n } = t, { src: r, alt: i, title: s, width: l, textAlign: c } = e.attrs, [d, u] = M(!1), [h, g] = M(l), p = X(null), f = X(null);
9788
+ const { node: e, updateAttributes: o, selected: n } = t, { src: r, alt: i, title: s, width: l, textAlign: c } = e.attrs, [d, u] = M(!1), [h, g] = M(l), p = Z(null), f = Z(null);
9789
9789
  T(() => {
9790
9790
  g(l);
9791
9791
  }, [l]);
@@ -9874,7 +9874,7 @@ const pi = () => /* @__PURE__ */ I(
9874
9874
  )
9875
9875
  }
9876
9876
  );
9877
- }, gi = Ea.extend({
9877
+ }, mi = Ea.extend({
9878
9878
  name: "image",
9879
9879
  addAttributes() {
9880
9880
  var t;
@@ -9915,7 +9915,7 @@ const pi = () => /* @__PURE__ */ I(
9915
9915
  setImageWidth: (e) => ({ commands: o }) => o.updateAttributes(this.name, { width: e })
9916
9916
  };
9917
9917
  }
9918
- }), mi = Aa.extend({
9918
+ }), bi = Aa.extend({
9919
9919
  renderHTML() {
9920
9920
  return [
9921
9921
  "div",
@@ -9982,12 +9982,25 @@ const pi = () => /* @__PURE__ */ I(
9982
9982
  }
9983
9983
  return hn(t, e);
9984
9984
  };
9985
- function bi({ value: t, onChange: e, features: o, output: n = "html" }) {
9986
- const { t: r, i18n: i } = ye("simpleEditor"), s = ke(o == null ? void 0 : o.image), l = s, c = X(l);
9985
+ function yi({ value: t, onChange: e, features: o, output: n = "html" }) {
9986
+ const { t: r, i18n: i } = ye("simpleEditor"), s = ke(o == null ? void 0 : o.image), l = s, c = Z(l);
9987
9987
  c.current = l, T(() => {
9988
- i.addResourceBundle("en-US", "simpleEditor", ui, !0, !0), i.addResourceBundle("zh-CN", "simpleEditor", hi, !0, !0);
9988
+ i.addResourceBundle("en-US", "simpleEditor", hi, !0, !0), i.addResourceBundle("zh-CN", "simpleEditor", pi, !0, !0);
9989
9989
  }, [i]);
9990
- const d = va({
9990
+ const d = (g) => {
9991
+ if (g !== void 0) {
9992
+ if (typeof g == "string") {
9993
+ try {
9994
+ const f = JSON.parse(g);
9995
+ if (typeof f == "object" && f !== null)
9996
+ return f;
9997
+ } catch {
9998
+ }
9999
+ return /<[a-z][\s\S]*>/i.test(g) ? g : Tn.parse(g, { async: !1 });
10000
+ }
10001
+ return g;
10002
+ }
10003
+ }, u = wa({
9991
10004
  immediatelyRender: !1,
9992
10005
  editorProps: {
9993
10006
  attributes: {
@@ -9998,12 +10011,12 @@ function bi({ value: t, onChange: e, features: o, output: n = "html" }) {
9998
10011
  class: "simple-editor"
9999
10012
  }
10000
10013
  },
10001
- onUpdate: ({ editor: u }) => {
10002
- const h = n === "markdown" ? u.getMarkdown() : n === "json" ? u.getJSON() : u.getHTML();
10003
- e == null || e(h);
10014
+ onUpdate: ({ editor: g }) => {
10015
+ const p = n === "markdown" ? g.getMarkdown() : n === "json" ? g.getJSON() : g.getHTML();
10016
+ e == null || e(p);
10004
10017
  },
10005
10018
  extensions: [
10006
- Tn.configure({
10019
+ Dn.configure({
10007
10020
  horizontalRule: !1,
10008
10021
  heading: ne(o == null ? void 0 : o.heading) ? {
10009
10022
  levels: [1, 2, 3, 4],
@@ -10026,44 +10039,41 @@ function bi({ value: t, onChange: e, features: o, output: n = "html" }) {
10026
10039
  } : !1,
10027
10040
  undoRedo: ne(o == null ? void 0 : o.undoRedo) ? void 0 : !1
10028
10041
  }),
10029
- mi,
10042
+ bi,
10030
10043
  ...ne(o == null ? void 0 : o.textAlign) ? [
10031
- Un.configure({
10044
+ Pn.configure({
10032
10045
  types: ["heading", "paragraph"],
10033
10046
  ...ke(o == null ? void 0 : o.textAlign)
10034
10047
  })
10035
10048
  ] : [],
10036
- ...ne(o == null ? void 0 : o.list) ? [Dn, $n.configure({ nested: !0 })] : [],
10037
- ...ne(o == null ? void 0 : o.highlight) ? [Hn.configure({ multicolor: !0, ...ke(o == null ? void 0 : o.highlight) })] : [],
10038
- ...ne(o == null ? void 0 : o.image) ? [gi] : [],
10039
- Pn,
10040
- ...ne(o == null ? void 0 : o.superscript) ? [Fn] : [],
10041
- ...ne(o == null ? void 0 : o.subscript) ? [On] : [],
10049
+ ...ne(o == null ? void 0 : o.list) ? [$n, Un.configure({ nested: !0 })] : [],
10050
+ ...ne(o == null ? void 0 : o.highlight) ? [On.configure({ multicolor: !0, ...ke(o == null ? void 0 : o.highlight) })] : [],
10051
+ ...ne(o == null ? void 0 : o.image) ? [mi] : [],
10052
+ Hn,
10053
+ ...ne(o == null ? void 0 : o.superscript) ? [_n] : [],
10054
+ ...ne(o == null ? void 0 : o.subscript) ? [Fn] : [],
10042
10055
  Na,
10043
10056
  ...ne(o == null ? void 0 : o.image) ? [
10044
- fi.configure({
10057
+ gi.configure({
10045
10058
  accept: "image/*",
10046
10059
  maxSize: ao,
10047
10060
  limit: 3,
10048
- upload: (u, h) => Qd({
10049
- file: u,
10050
- onProgress: h,
10061
+ upload: (g, p) => Qd({
10062
+ file: g,
10063
+ onProgress: p,
10051
10064
  imageProps: c.current
10052
10065
  }),
10053
- onError: (u) => console.error("Upload failed:", u),
10066
+ onError: (g) => console.error("Upload failed:", g),
10054
10067
  ...s
10055
10068
  })
10056
10069
  ] : [],
10057
- _n
10070
+ Vn
10058
10071
  ],
10059
- content: t
10060
- });
10072
+ content: d(t)
10073
+ }), h = Z(t !== void 0);
10061
10074
  return T(() => {
10062
- if (d && t !== void 0) {
10063
- const u = n === "markdown" ? d.getMarkdown() : n === "json" ? JSON.stringify(d.getJSON()) : d.getHTML(), h = n === "json" && typeof t != "string" ? JSON.stringify(t) : t;
10064
- u !== h && d.commands.setContent(t);
10065
- }
10066
- }, [t, d, n]), d;
10075
+ h.current || u && t !== void 0 && (u.commands.setContent(d(t) || ""), h.current = !0);
10076
+ }, [t, u]), u;
10067
10077
  }
10068
10078
  const eu = ({
10069
10079
  onHighlighterClick: t,
@@ -10072,7 +10082,7 @@ const eu = ({
10072
10082
  features: n,
10073
10083
  editor: r
10074
10084
  }) => {
10075
- const i = ne(n == null ? void 0 : n.undoRedo), s = ne(n == null ? void 0 : n.heading), l = ne(n == null ? void 0 : n.list), c = ne(n == null ? void 0 : n.blockquote), d = ne(n == null ? void 0 : n.codeBlock), u = ne(n == null ? void 0 : n.bold), h = ne(n == null ? void 0 : n.italic), g = ne(n == null ? void 0 : n.strike), p = ne(n == null ? void 0 : n.code), f = ne(n == null ? void 0 : n.underline), b = ne(n == null ? void 0 : n.highlight), y = ne(n == null ? void 0 : n.link), m = ne(n == null ? void 0 : n.subscript), w = ne(n == null ? void 0 : n.superscript), C = ne(n == null ? void 0 : n.textAlign), L = ne(n == null ? void 0 : n.image), v = ne(n == null ? void 0 : n.ai), k = ne(n == null ? void 0 : n.themeToggle), z = ke(n == null ? void 0 : n.undoRedo), S = ke(n == null ? void 0 : n.heading), N = ke(n == null ? void 0 : n.list), D = ke(n == null ? void 0 : n.blockquote), K = ke(n == null ? void 0 : n.codeBlock), $ = ke(n == null ? void 0 : n.bold), _ = ke(n == null ? void 0 : n.italic), V = ke(n == null ? void 0 : n.strike), Z = ke(n == null ? void 0 : n.code), re = ke(n == null ? void 0 : n.underline), he = ke(n == null ? void 0 : n.highlight), F = ke(n == null ? void 0 : n.link), le = ke(n == null ? void 0 : n.subscript), fe = ke(n == null ? void 0 : n.superscript), W = ke(n == null ? void 0 : n.textAlign), ie = ke(n == null ? void 0 : n.image), ve = ke(n == null ? void 0 : n.ai);
10085
+ const i = ne(n == null ? void 0 : n.undoRedo), s = ne(n == null ? void 0 : n.heading), l = ne(n == null ? void 0 : n.list), c = ne(n == null ? void 0 : n.blockquote), d = ne(n == null ? void 0 : n.codeBlock), u = ne(n == null ? void 0 : n.bold), h = ne(n == null ? void 0 : n.italic), g = ne(n == null ? void 0 : n.strike), p = ne(n == null ? void 0 : n.code), f = ne(n == null ? void 0 : n.underline), b = ne(n == null ? void 0 : n.highlight), y = ne(n == null ? void 0 : n.link), m = ne(n == null ? void 0 : n.subscript), w = ne(n == null ? void 0 : n.superscript), C = ne(n == null ? void 0 : n.textAlign), L = ne(n == null ? void 0 : n.image), v = ne(n == null ? void 0 : n.ai), k = ne(n == null ? void 0 : n.themeToggle), z = ke(n == null ? void 0 : n.undoRedo), S = ke(n == null ? void 0 : n.heading), N = ke(n == null ? void 0 : n.list), D = ke(n == null ? void 0 : n.blockquote), K = ke(n == null ? void 0 : n.codeBlock), $ = ke(n == null ? void 0 : n.bold), _ = ke(n == null ? void 0 : n.italic), V = ke(n == null ? void 0 : n.strike), X = ke(n == null ? void 0 : n.code), re = ke(n == null ? void 0 : n.underline), he = ke(n == null ? void 0 : n.highlight), F = ke(n == null ? void 0 : n.link), le = ke(n == null ? void 0 : n.subscript), fe = ke(n == null ? void 0 : n.superscript), W = ke(n == null ? void 0 : n.textAlign), ie = ke(n == null ? void 0 : n.image), ve = ke(n == null ? void 0 : n.ai);
10076
10086
  return /* @__PURE__ */ I(ge, { children: [
10077
10087
  /* @__PURE__ */ a(pn, {}),
10078
10088
  i && /* @__PURE__ */ I(ge, { children: [
@@ -10085,7 +10095,7 @@ const eu = ({
10085
10095
  (s || l || c || d) && /* @__PURE__ */ I(ge, { children: [
10086
10096
  /* @__PURE__ */ I(Ue, { children: [
10087
10097
  s && /* @__PURE__ */ a(
10088
- Dr,
10098
+ $r,
10089
10099
  {
10090
10100
  levels: (S == null ? void 0 : S.levels) || [1, 2, 3, 4],
10091
10101
  portal: o,
@@ -10100,8 +10110,8 @@ const eu = ({
10100
10110
  ...N
10101
10111
  }
10102
10112
  ),
10103
- c && /* @__PURE__ */ a(_r, { ...D }),
10104
- d && /* @__PURE__ */ a(Wr, { ...K })
10113
+ c && /* @__PURE__ */ a(Vr, { ...D }),
10114
+ d && /* @__PURE__ */ a(Gr, { ...K })
10105
10115
  ] }),
10106
10116
  /* @__PURE__ */ a(Xe, {})
10107
10117
  ] }),
@@ -10110,10 +10120,10 @@ const eu = ({
10110
10120
  u && /* @__PURE__ */ a(Ze, { type: "bold", ...$ }),
10111
10121
  h && /* @__PURE__ */ a(Ze, { type: "italic", ..._ }),
10112
10122
  g && /* @__PURE__ */ a(Ze, { type: "strike", ...V }),
10113
- p && /* @__PURE__ */ a(Ze, { type: "code", ...Z }),
10123
+ p && /* @__PURE__ */ a(Ze, { type: "code", ...X }),
10114
10124
  f && /* @__PURE__ */ a(Ze, { type: "underline", ...re }),
10115
10125
  b && (o ? /* @__PURE__ */ a(Oo, { onClick: t }) : /* @__PURE__ */ a(id, { ...he })),
10116
- y && (o ? /* @__PURE__ */ a(Fo, { onClick: e }) : /* @__PURE__ */ a(oi, { ...F }))
10126
+ y && (o ? /* @__PURE__ */ a(Fo, { onClick: e }) : /* @__PURE__ */ a(ni, { ...F }))
10117
10127
  ] }),
10118
10128
  /* @__PURE__ */ a(Xe, {})
10119
10129
  ] }),
@@ -10133,24 +10143,24 @@ const eu = ({
10133
10143
  ] }),
10134
10144
  /* @__PURE__ */ a(Xe, {})
10135
10145
  ] }),
10136
- L && /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ a($r, { ...ie }) }),
10137
- v && /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ a(si, { editor: r, ...ve }) }),
10146
+ L && /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ a(Ur, { ...ie }) }),
10147
+ v && /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ a(ai, { editor: r, ...ve }) }),
10138
10148
  /* @__PURE__ */ a(pn, {}),
10139
10149
  o && /* @__PURE__ */ a(Xe, {}),
10140
10150
  k && /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ a(Pd, {}) })
10141
10151
  ] });
10142
10152
  }, tu = ({ type: t, onBack: e }) => /* @__PURE__ */ I(ge, { children: [
10143
10153
  /* @__PURE__ */ a(Ue, { children: /* @__PURE__ */ I(ue, { "data-style": "ghost", onClick: e, children: [
10144
- /* @__PURE__ */ a(ai, { className: "tiptap-button-icon" }),
10154
+ /* @__PURE__ */ a(li, { className: "tiptap-button-icon" }),
10145
10155
  t === "highlighter" ? /* @__PURE__ */ a(po, { className: "tiptap-button-icon" }) : /* @__PURE__ */ a(fo, { className: "tiptap-button-icon" })
10146
10156
  ] }) }),
10147
10157
  /* @__PURE__ */ a(Xe, {}),
10148
- t === "highlighter" ? /* @__PURE__ */ a(qr, {}) : /* @__PURE__ */ a(ud, {})
10149
- ] }), yi = ({ editor: t, className: e, style: o, features: n }) => {
10158
+ t === "highlighter" ? /* @__PURE__ */ a(Yr, {}) : /* @__PURE__ */ a(ud, {})
10159
+ ] }), vi = ({ editor: t, className: e, style: o, features: n }) => {
10150
10160
  var h;
10151
- const r = zt(), { height: i } = ci(), [s, l] = M("main"), c = X(null), { i18n: d } = ye("simpleEditor");
10161
+ const r = zt(), { height: i } = di(), [s, l] = M("main"), c = Z(null), { i18n: d } = ye("simpleEditor");
10152
10162
  T(() => {
10153
- d.addResourceBundle("en-US", "simpleEditor", ui, !0, !0), d.addResourceBundle("zh-CN", "simpleEditor", hi, !0, !0);
10163
+ d.addResourceBundle("en-US", "simpleEditor", hi, !0, !0), d.addResourceBundle("zh-CN", "simpleEditor", pi, !0, !0);
10154
10164
  }, [d]);
10155
10165
  const u = Ud({
10156
10166
  editor: t,
@@ -10158,9 +10168,9 @@ const eu = ({
10158
10168
  });
10159
10169
  return T(() => {
10160
10170
  !r && s !== "main" && l("main");
10161
- }, [r, s]), /* @__PURE__ */ a("div", { className: `simple-editor-wrapper ${e || ""}`, style: o, children: /* @__PURE__ */ I(wa.Provider, { value: { editor: t }, children: [
10171
+ }, [r, s]), /* @__PURE__ */ a("div", { className: `simple-editor-wrapper ${e || ""}`, style: o, children: /* @__PURE__ */ I(Ca.Provider, { value: { editor: t }, children: [
10162
10172
  /* @__PURE__ */ a(
10163
- Ir,
10173
+ Mr,
10164
10174
  {
10165
10175
  ref: c,
10166
10176
  style: {
@@ -10186,57 +10196,57 @@ const eu = ({
10186
10196
  )
10187
10197
  }
10188
10198
  ),
10189
- /* @__PURE__ */ a(Ca, { editor: t, role: "presentation", className: "simple-editor-content" })
10199
+ /* @__PURE__ */ a(ka, { editor: t, role: "presentation", className: "simple-editor-content" })
10190
10200
  ] }) });
10191
- }, vi = Q((t, e) => {
10201
+ }, wi = Q((t, e) => {
10192
10202
  const { editor: o } = t;
10193
- return o ? /* @__PURE__ */ a(wi, { ...t, editor: o, ref: e }) : /* @__PURE__ */ a(Ci, { ...t, ref: e });
10194
- }), wi = Q(
10203
+ return o ? /* @__PURE__ */ a(Ci, { ...t, editor: o, ref: e }) : /* @__PURE__ */ a(ki, { ...t, ref: e });
10204
+ }), Ci = Q(
10195
10205
  (t, e) => {
10196
10206
  const { editor: o } = t;
10197
10207
  return rt(e, () => ({
10198
10208
  editor: o
10199
- })), /* @__PURE__ */ a(yi, { ...t, editor: o });
10209
+ })), /* @__PURE__ */ a(vi, { ...t, editor: o });
10200
10210
  }
10201
- ), Ci = Q((t, e) => {
10202
- const o = bi(t);
10211
+ ), ki = Q((t, e) => {
10212
+ const o = yi(t);
10203
10213
  return rt(e, () => ({
10204
10214
  editor: o
10205
- })), /* @__PURE__ */ a(yi, { ...t, editor: o });
10215
+ })), /* @__PURE__ */ a(vi, { ...t, editor: o });
10206
10216
  });
10207
- vi.displayName = "SimpleEditor";
10208
- wi.displayName = "ControlledSimpleEditor";
10209
- Ci.displayName = "UncontrolledSimpleEditor";
10210
- const ki = [
10211
- Tn.configure({
10217
+ wi.displayName = "SimpleEditor";
10218
+ Ci.displayName = "ControlledSimpleEditor";
10219
+ ki.displayName = "UncontrolledSimpleEditor";
10220
+ const xi = [
10221
+ Dn.configure({
10212
10222
  horizontalRule: !1,
10213
10223
  heading: {
10214
10224
  levels: [1, 2, 3, 4]
10215
10225
  }
10216
10226
  }),
10217
- mi,
10218
- Un.configure({
10227
+ bi,
10228
+ Pn.configure({
10219
10229
  types: ["heading", "paragraph"]
10220
10230
  }),
10221
- Dn,
10222
- $n.configure({ nested: !0 }),
10223
- Hn.configure({ multicolor: !0 }),
10224
- gi,
10225
- Pn,
10231
+ $n,
10232
+ Un.configure({ nested: !0 }),
10233
+ On.configure({ multicolor: !0 }),
10234
+ mi,
10235
+ Hn,
10236
+ _n,
10226
10237
  Fn,
10227
- On,
10228
- fi,
10238
+ gi,
10229
10239
  Ba.configure({
10230
10240
  openOnClick: !1,
10231
10241
  autolink: !0
10232
10242
  }),
10233
- _n
10243
+ Vn
10234
10244
  ];
10235
10245
  function Go(t) {
10236
- return ka(t, ki);
10246
+ return xa(t, xi);
10237
10247
  }
10238
- function xi(t) {
10239
- return xa(t, ki);
10248
+ function zi(t) {
10249
+ return za(t, xi);
10240
10250
  }
10241
10251
  class ou {
10242
10252
  /**
@@ -10246,7 +10256,7 @@ class ou {
10246
10256
  * @returns The transformed content
10247
10257
  */
10248
10258
  static transform(e, o, n) {
10249
- return o === "json" ? typeof e == "string" ? xi(e) : e : o === "html" ? typeof e != "string" ? Go(e) : e : o === "markdown" ? n ? n.getMarkdown() : (console.warn("Markdown conversion requires an editor instance."), "") : e;
10259
+ return o === "json" ? typeof e == "string" ? zi(e) : e : o === "html" ? typeof e != "string" ? Go(e) : e : o === "markdown" ? n ? n.getMarkdown() : (console.warn("Markdown conversion requires an editor instance."), "") : e;
10250
10260
  }
10251
10261
  }
10252
10262
  function nu({ value: t, className: e, sanitize: o = !0 }) {
@@ -10265,15 +10275,15 @@ const Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10265
10275
  __proto__: null,
10266
10276
  Desktop: sl,
10267
10277
  DesktopAppItem: ot,
10268
- DesktopBaseDrawer: sr,
10278
+ DesktopBaseDrawer: ar,
10269
10279
  DesktopBaseModal: Vt,
10270
- DesktopDock: ir,
10271
- DesktopGroupItem: tr,
10272
- DesktopLaunchpadButton: nr,
10273
- DesktopLaunchpadModal: ar,
10274
- DesktopSortable: lr,
10275
- DesktopSortableConfigProvider: jn,
10276
- DesktopSortableStateProvider: Gn,
10280
+ DesktopDock: sr,
10281
+ DesktopGroupItem: or,
10282
+ DesktopLaunchpadButton: rr,
10283
+ DesktopLaunchpadModal: lr,
10284
+ DesktopSortable: cr,
10285
+ DesktopSortableConfigProvider: Wn,
10286
+ DesktopSortableStateProvider: Kn,
10277
10287
  Dock: wt,
10278
10288
  DockDesktop: ko,
10279
10289
  DockDesktopItem: Co,
@@ -10281,33 +10291,33 @@ const Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10281
10291
  DockMobileItem: $t,
10282
10292
  EditorFormatConverter: ou,
10283
10293
  GeoMap: Vl,
10284
- Markdown: pr,
10285
- MdEditor: fr,
10286
- SimpleEditor: vi,
10294
+ Markdown: fr,
10295
+ MdEditor: gr,
10296
+ SimpleEditor: wi,
10287
10297
  SimpleEditorRender: nu,
10288
10298
  SortableUtils: Te,
10289
- desktopAppDefaultConfig: Zn,
10299
+ desktopAppDefaultConfig: Xn,
10290
10300
  desktopBuiltinConfigMap: oo,
10291
10301
  desktopDefaultTheme: mo,
10292
- desktopGroupDefaultConfig: Xn,
10302
+ desktopGroupDefaultConfig: Jn,
10293
10303
  desktopThemeDark: _t,
10294
10304
  desktopThemeLight: tt,
10295
10305
  desktopThemes: Ua,
10296
10306
  getDesktopDefaultConfig: yo,
10297
- htmlToJson: xi,
10307
+ htmlToJson: zi,
10298
10308
  jsonToHtml: Go,
10299
10309
  useDockDesktopMouseX: bn,
10300
- useSimpleEditor: bi
10310
+ useSimpleEditor: yi
10301
10311
  }, Symbol.toStringTag, { value: "Module" }));
10302
10312
  export {
10303
10313
  sl as Desktop,
10304
10314
  ot as DesktopAppItem,
10305
- sr as DesktopBaseDrawer,
10315
+ ar as DesktopBaseDrawer,
10306
10316
  Vt as DesktopBaseModal,
10307
- tr as DesktopGroupItem,
10308
- lr as DesktopSortable,
10309
- jn as DesktopSortableConfigProvider,
10310
- Gn as DesktopSortableStateProvider,
10317
+ or as DesktopGroupItem,
10318
+ cr as DesktopSortable,
10319
+ Wn as DesktopSortableConfigProvider,
10320
+ Kn as DesktopSortableStateProvider,
10311
10321
  wt as Dock,
10312
10322
  ko as DockDesktop,
10313
10323
  Co as DockDesktopItem,
@@ -10315,17 +10325,17 @@ export {
10315
10325
  $t as DockMobileItem,
10316
10326
  ou as EditorFormatConverter,
10317
10327
  Vl as GeoMap,
10318
- pr as Markdown,
10319
- fr as MdEditor,
10320
- vi as SimpleEditor,
10328
+ fr as Markdown,
10329
+ gr as MdEditor,
10330
+ wi as SimpleEditor,
10321
10331
  nu as SimpleEditorRender,
10322
10332
  Te as SortableUtils,
10323
10333
  Qu as default,
10324
10334
  _t as desktopThemeDark,
10325
10335
  tt as desktopThemeLight,
10326
10336
  yo as getDesktopDefaultConfig,
10327
- xi as htmlToJson,
10337
+ zi as htmlToJson,
10328
10338
  Go as jsonToHtml,
10329
10339
  oh as useDockDesktopMouseX,
10330
- bi as useSimpleEditor
10340
+ yi as useSimpleEditor
10331
10341
  };