zs_library 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,20 +1,25 @@
1
- var Ar = Object.defineProperty;
2
- var Br = (d, r, i) => r in d ? Ar(d, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[r] = i;
3
- var Oe = (d, r, i) => Br(d, typeof r != "symbol" ? r + "" : r, i);
1
+ var Br = Object.defineProperty;
2
+ var Lr = (g, r, l) => r in g ? Br(g, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : g[r] = l;
3
+ var Ae = (g, r, l) => Lr(g, typeof r != "symbol" ? r + "" : r, l);
4
4
  import "./style.css";
5
- import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as oe, useRef as Be, useEffect as ye } from "react";
6
- import { cx as U, css as u } from "@emotion/css";
7
- import Lr from "react-slick";
5
+ import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as te, useRef as Me, useEffect as we } from "react";
6
+ import { cx as z, css as d } from "@emotion/css";
7
+ import Fr from "react-slick";
8
8
  import { ReactSortable as Fe } from "react-sortablejs";
9
- import { AnimatePresence as Fr, motion as A } from "framer-motion";
9
+ import { AnimatePresence as zr, motion as A } from "framer-motion";
10
10
  import { useLocalStorageState as Yr, useDebounceEffect as Wr } from "ahooks";
11
11
  import { v4 as rr } from "uuid";
12
- import Ur from "rc-tooltip";
13
- import { RiPencilRuler2Line as Vr, RiShareLine as zr, RiInformationLine as Gr, RiCloseCircleLine as Xr } from "@remixicon/react";
14
- import sr from "rc-dialog";
15
- import qr from "react-json-view";
16
- import { MDXEditor as Jr, toolbarPlugin as Kr, DiffSourceToggleWrapper as Hr, UndoRedo as Zr, Separator as ue, BoldItalicUnderlineToggles as Qr, CodeToggle as et, StrikeThroughSupSubToggles as rt, ListsToggle as tt, CreateLink as ot, InsertImage as nt, InsertTable as at, InsertThematicBreak as it, InsertCodeBlock as st, ConditionalContents as lt, InsertAdmonition as ct, InsertFrontmatter as ut, diffSourcePlugin as dt, listsPlugin as ft, quotePlugin as mt, headingsPlugin as gt, linkPlugin as pt, linkDialogPlugin as ht, imagePlugin as vt, tablePlugin as xt, thematicBreakPlugin as bt, frontmatterPlugin as kt, codeBlockPlugin as yt, codeMirrorPlugin as Ct, markdownShortcutPlugin as wt, directivesPlugin as jt, AdmonitionDirectiveDescriptor as It } from "@mdxeditor/editor";
17
- var Le = { exports: {} }, be = {};
12
+ import Vr from "rc-tooltip";
13
+ import { RiPencilRuler2Line as Ur, RiShareLine as Gr, RiInformationLine as Xr, RiCloseCircleLine as qr } from "@remixicon/react";
14
+ import lr from "rc-dialog";
15
+ import Hr from "react-json-view";
16
+ import { MDXEditor as Jr, toolbarPlugin as Kr, DiffSourceToggleWrapper as Zr, UndoRedo as Qr, Separator as ge, BoldItalicUnderlineToggles as eo, CodeToggle as ro, StrikeThroughSupSubToggles as oo, ListsToggle as to, CreateLink as no, InsertImage as ao, InsertTable as io, InsertThematicBreak as lo, InsertCodeBlock as so, InsertFrontmatter as co, diffSourcePlugin as uo, listsPlugin as go, quotePlugin as mo, headingsPlugin as po, linkPlugin as fo, linkDialogPlugin as ho, imagePlugin as bo, tablePlugin as vo, thematicBreakPlugin as ko, frontmatterPlugin as xo, codeBlockPlugin as wo, codeMirrorPlugin as yo, markdownShortcutPlugin as Co, directivesPlugin as So, AdmonitionDirectiveDescriptor as jo } from "@mdxeditor/editor";
17
+ import Io from "react-markdown";
18
+ import To from "remark-gfm";
19
+ import Ro from "remark-emoji";
20
+ import Eo from "rehype-raw";
21
+ import { Prism as Mo } from "react-syntax-highlighter";
22
+ var Le = { exports: {} }, ke = {};
18
23
  /**
19
24
  * @license React
20
25
  * react-jsx-runtime.production.min.js
@@ -24,21 +29,21 @@ var Le = { exports: {} }, be = {};
24
29
  * This source code is licensed under the MIT license found in the
25
30
  * LICENSE file in the root directory of this source tree.
26
31
  */
27
- var tr;
28
- function St() {
29
- if (tr) return be;
30
- tr = 1;
31
- var d = nr, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, g = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
32
- function y(b, s, _) {
33
- var p, N = {}, M = null, V = null;
34
- _ !== void 0 && (M = "" + _), s.key !== void 0 && (M = "" + s.key), s.ref !== void 0 && (V = s.ref);
35
- for (p in s) a.call(s, p) && !l.hasOwnProperty(p) && (N[p] = s[p]);
36
- if (b && b.defaultProps) for (p in s = b.defaultProps, s) N[p] === void 0 && (N[p] = s[p]);
37
- return { $$typeof: r, type: b, key: M, ref: V, props: N, _owner: g.current };
32
+ var or;
33
+ function _o() {
34
+ if (or) return ke;
35
+ or = 1;
36
+ var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, m = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
37
+ function f(b, i, I) {
38
+ var v, N = {}, _ = null, W = null;
39
+ I !== void 0 && (_ = "" + I), i.key !== void 0 && (_ = "" + i.key), i.ref !== void 0 && (W = i.ref);
40
+ for (v in i) a.call(i, v) && !s.hasOwnProperty(v) && (N[v] = i[v]);
41
+ if (b && b.defaultProps) for (v in i = b.defaultProps, i) N[v] === void 0 && (N[v] = i[v]);
42
+ return { $$typeof: r, type: b, key: _, ref: W, props: N, _owner: m.current };
38
43
  }
39
- return be.Fragment = i, be.jsx = y, be.jsxs = y, be;
44
+ return ke.Fragment = l, ke.jsx = f, ke.jsxs = f, ke;
40
45
  }
41
- var ke = {};
46
+ var xe = {};
42
47
  /**
43
48
  * @license React
44
49
  * react-jsx-runtime.development.js
@@ -48,91 +53,91 @@ var ke = {};
48
53
  * This source code is licensed under the MIT license found in the
49
54
  * LICENSE file in the root directory of this source tree.
50
55
  */
51
- var or;
52
- function Tt() {
53
- return or || (or = 1, process.env.NODE_ENV !== "production" && function() {
54
- var d = nr, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), b = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), Y = Symbol.iterator, f = "@@iterator";
55
- function h(e) {
56
+ var tr;
57
+ function Po() {
58
+ return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
59
+ var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), V = Symbol.iterator, h = "@@iterator";
60
+ function u(e) {
56
61
  if (e === null || typeof e != "object")
57
62
  return null;
58
- var t = Y && e[Y] || e[f];
59
- return typeof t == "function" ? t : null;
63
+ var o = V && e[V] || e[h];
64
+ return typeof o == "function" ? o : null;
60
65
  }
61
- var T = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
62
- function m(e) {
66
+ var R = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
+ function p(e) {
63
68
  {
64
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
69
+ for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
65
70
  n[c - 1] = arguments[c];
66
71
  G("error", e, n);
67
72
  }
68
73
  }
69
- function G(e, t, n) {
74
+ function G(e, o, n) {
70
75
  {
71
- var c = T.ReactDebugCurrentFrame, S = c.getStackAddendum();
72
- S !== "" && (t += "%s", n = n.concat([S]));
73
- var $ = n.map(function(j) {
74
- return String(j);
76
+ var c = R.ReactDebugCurrentFrame, T = c.getStackAddendum();
77
+ T !== "" && (o += "%s", n = n.concat([T]));
78
+ var $ = n.map(function(S) {
79
+ return String(S);
75
80
  });
76
- $.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, $);
81
+ $.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, $);
77
82
  }
78
83
  }
79
- var v = !1, P = !1, R = !1, x = !1, C = !1, X;
84
+ var k = !1, P = !1, E = !1, x = !1, y = !1, X;
80
85
  X = Symbol.for("react.module.reference");
81
86
  function ce(e) {
82
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === l || C || e === g || e === _ || e === p || x || e === V || v || P || R || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === N || e.$$typeof === y || e.$$typeof === b || e.$$typeof === s || // This needs to include all possible module reference object
87
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || y || e === m || e === I || e === v || x || e === W || k || P || E || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === N || e.$$typeof === f || e.$$typeof === b || e.$$typeof === i || // This needs to include all possible module reference object
83
88
  // types supported by any Flight configuration anywhere since
84
89
  // we don't know which Flight build this will end up being used
85
90
  // with.
86
91
  e.$$typeof === X || e.getModuleId !== void 0));
87
92
  }
88
- function J(e, t, n) {
93
+ function H(e, o, n) {
89
94
  var c = e.displayName;
90
95
  if (c)
91
96
  return c;
92
- var S = t.displayName || t.name || "";
93
- return S !== "" ? n + "(" + S + ")" : n;
97
+ var T = o.displayName || o.name || "";
98
+ return T !== "" ? n + "(" + T + ")" : n;
94
99
  }
95
- function ge(e) {
100
+ function pe(e) {
96
101
  return e.displayName || "Context";
97
102
  }
98
103
  function q(e) {
99
104
  if (e == null)
100
105
  return null;
101
- if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
106
+ if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
102
107
  return e.displayName || e.name || null;
103
108
  if (typeof e == "string")
104
109
  return e;
105
110
  switch (e) {
106
111
  case a:
107
112
  return "Fragment";
108
- case i:
109
- return "Portal";
110
113
  case l:
114
+ return "Portal";
115
+ case s:
111
116
  return "Profiler";
112
- case g:
117
+ case m:
113
118
  return "StrictMode";
114
- case _:
119
+ case I:
115
120
  return "Suspense";
116
- case p:
121
+ case v:
117
122
  return "SuspenseList";
118
123
  }
119
124
  if (typeof e == "object")
120
125
  switch (e.$$typeof) {
121
126
  case b:
122
- var t = e;
123
- return ge(t) + ".Consumer";
124
- case y:
127
+ var o = e;
128
+ return pe(o) + ".Consumer";
129
+ case f:
125
130
  var n = e;
126
- return ge(n._context) + ".Provider";
127
- case s:
128
- return J(e, e.render, "ForwardRef");
131
+ return pe(n._context) + ".Provider";
132
+ case i:
133
+ return H(e, e.render, "ForwardRef");
129
134
  case N:
130
135
  var c = e.displayName || null;
131
136
  return c !== null ? c : q(e.type) || "Memo";
132
- case M: {
133
- var S = e, $ = S._payload, j = S._init;
137
+ case _: {
138
+ var T = e, $ = T._payload, S = T._init;
134
139
  try {
135
- return q(j($));
140
+ return q(S($));
136
141
  } catch {
137
142
  return null;
138
143
  }
@@ -140,18 +145,18 @@ function Tt() {
140
145
  }
141
146
  return null;
142
147
  }
143
- var re = Object.assign, se = 0, B, ne, le, Ce, we, je, Ie;
144
- function I() {
148
+ var re = Object.assign, le = 0, B, ne, se, ye, Ce, Se, je;
149
+ function j() {
145
150
  }
146
- I.__reactDisabledLog = !0;
147
- function H() {
151
+ j.__reactDisabledLog = !0;
152
+ function K() {
148
153
  {
149
- if (se === 0) {
150
- B = console.log, ne = console.info, le = console.warn, Ce = console.error, we = console.group, je = console.groupCollapsed, Ie = console.groupEnd;
154
+ if (le === 0) {
155
+ B = console.log, ne = console.info, se = console.warn, ye = console.error, Ce = console.group, Se = console.groupCollapsed, je = console.groupEnd;
151
156
  var e = {
152
157
  configurable: !0,
153
158
  enumerable: !0,
154
- value: I,
159
+ value: j,
155
160
  writable: !0
156
161
  };
157
162
  Object.defineProperties(console, {
@@ -164,12 +169,12 @@ function Tt() {
164
169
  groupEnd: e
165
170
  });
166
171
  }
167
- se++;
172
+ le++;
168
173
  }
169
174
  }
170
- function K() {
175
+ function J() {
171
176
  {
172
- if (se--, se === 0) {
177
+ if (le--, le === 0) {
173
178
  var e = {
174
179
  configurable: !0,
175
180
  enumerable: !0,
@@ -183,81 +188,81 @@ function Tt() {
183
188
  value: ne
184
189
  }),
185
190
  warn: re({}, e, {
186
- value: le
191
+ value: se
187
192
  }),
188
193
  error: re({}, e, {
189
- value: Ce
194
+ value: ye
190
195
  }),
191
196
  group: re({}, e, {
192
- value: we
197
+ value: Ce
193
198
  }),
194
199
  groupCollapsed: re({}, e, {
195
- value: je
200
+ value: Se
196
201
  }),
197
202
  groupEnd: re({}, e, {
198
- value: Ie
203
+ value: je
199
204
  })
200
205
  });
201
206
  }
202
- se < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
207
+ le < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
203
208
  }
204
209
  }
205
- var D = T.ReactCurrentDispatcher, L;
206
- function O(e, t, n) {
210
+ var D = R.ReactCurrentDispatcher, L;
211
+ function O(e, o, n) {
207
212
  {
208
213
  if (L === void 0)
209
214
  try {
210
215
  throw Error();
211
- } catch (S) {
212
- var c = S.stack.trim().match(/\n( *(at )?)/);
216
+ } catch (T) {
217
+ var c = T.stack.trim().match(/\n( *(at )?)/);
213
218
  L = c && c[1] || "";
214
219
  }
215
220
  return `
216
221
  ` + L + e;
217
222
  }
218
223
  }
219
- var w = !1, E;
224
+ var C = !1, M;
220
225
  {
221
- var z = typeof WeakMap == "function" ? WeakMap : Map;
222
- E = new z();
226
+ var U = typeof WeakMap == "function" ? WeakMap : Map;
227
+ M = new U();
223
228
  }
224
- function te(e, t) {
225
- if (!e || w)
229
+ function oe(e, o) {
230
+ if (!e || C)
226
231
  return "";
227
232
  {
228
- var n = E.get(e);
233
+ var n = M.get(e);
229
234
  if (n !== void 0)
230
235
  return n;
231
236
  }
232
237
  var c;
233
- w = !0;
234
- var S = Error.prepareStackTrace;
238
+ C = !0;
239
+ var T = Error.prepareStackTrace;
235
240
  Error.prepareStackTrace = void 0;
236
241
  var $;
237
- $ = D.current, D.current = null, H();
242
+ $ = D.current, D.current = null, K();
238
243
  try {
239
- if (t) {
240
- var j = function() {
244
+ if (o) {
245
+ var S = function() {
241
246
  throw Error();
242
247
  };
243
- if (Object.defineProperty(j.prototype, "props", {
248
+ if (Object.defineProperty(S.prototype, "props", {
244
249
  set: function() {
245
250
  throw Error();
246
251
  }
247
252
  }), typeof Reflect == "object" && Reflect.construct) {
248
253
  try {
249
- Reflect.construct(j, []);
254
+ Reflect.construct(S, []);
250
255
  } catch (ee) {
251
256
  c = ee;
252
257
  }
253
- Reflect.construct(e, [], j);
258
+ Reflect.construct(e, [], S);
254
259
  } else {
255
260
  try {
256
- j.call();
261
+ S.call();
257
262
  } catch (ee) {
258
263
  c = ee;
259
264
  }
260
- e.call(j.prototype);
265
+ e.call(S.prototype);
261
266
  }
262
267
  } else {
263
268
  try {
@@ -269,103 +274,103 @@ function Tt() {
269
274
  }
270
275
  } catch (ee) {
271
276
  if (ee && c && typeof ee.stack == "string") {
272
- for (var k = ee.stack.split(`
277
+ for (var w = ee.stack.split(`
273
278
  `), Z = c.stack.split(`
274
- `), F = k.length - 1, W = Z.length - 1; F >= 1 && W >= 0 && k[F] !== Z[W]; )
275
- W--;
276
- for (; F >= 1 && W >= 0; F--, W--)
277
- if (k[F] !== Z[W]) {
278
- if (F !== 1 || W !== 1)
279
+ `), F = w.length - 1, Y = Z.length - 1; F >= 1 && Y >= 0 && w[F] !== Z[Y]; )
280
+ Y--;
281
+ for (; F >= 1 && Y >= 0; F--, Y--)
282
+ if (w[F] !== Z[Y]) {
283
+ if (F !== 1 || Y !== 1)
279
284
  do
280
- if (F--, W--, W < 0 || k[F] !== Z[W]) {
285
+ if (F--, Y--, Y < 0 || w[F] !== Z[Y]) {
281
286
  var ae = `
282
- ` + k[F].replace(" at new ", " at ");
283
- return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && E.set(e, ae), ae;
287
+ ` + w[F].replace(" at new ", " at ");
288
+ return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, ae), ae;
284
289
  }
285
- while (F >= 1 && W >= 0);
290
+ while (F >= 1 && Y >= 0);
286
291
  break;
287
292
  }
288
293
  }
289
294
  } finally {
290
- w = !1, D.current = $, K(), Error.prepareStackTrace = S;
295
+ C = !1, D.current = $, J(), Error.prepareStackTrace = T;
291
296
  }
292
- var he = e ? e.displayName || e.name : "", fe = he ? O(he) : "";
293
- return typeof e == "function" && E.set(e, fe), fe;
297
+ var he = e ? e.displayName || e.name : "", ue = he ? O(he) : "";
298
+ return typeof e == "function" && M.set(e, ue), ue;
294
299
  }
295
- function Se(e, t, n) {
296
- return te(e, !1);
300
+ function Ie(e, o, n) {
301
+ return oe(e, !1);
297
302
  }
298
303
  function Te(e) {
299
- var t = e.prototype;
300
- return !!(t && t.isReactComponent);
304
+ var o = e.prototype;
305
+ return !!(o && o.isReactComponent);
301
306
  }
302
- function Q(e, t, n) {
307
+ function Q(e, o, n) {
303
308
  if (e == null)
304
309
  return "";
305
310
  if (typeof e == "function")
306
- return te(e, Te(e));
311
+ return oe(e, Te(e));
307
312
  if (typeof e == "string")
308
313
  return O(e);
309
314
  switch (e) {
310
- case _:
315
+ case I:
311
316
  return O("Suspense");
312
- case p:
317
+ case v:
313
318
  return O("SuspenseList");
314
319
  }
315
320
  if (typeof e == "object")
316
321
  switch (e.$$typeof) {
317
- case s:
318
- return Se(e.render);
322
+ case i:
323
+ return Ie(e.render);
319
324
  case N:
320
- return Q(e.type, t, n);
321
- case M: {
322
- var c = e, S = c._payload, $ = c._init;
325
+ return Q(e.type, o, n);
326
+ case _: {
327
+ var c = e, T = c._payload, $ = c._init;
323
328
  try {
324
- return Q($(S), t, n);
329
+ return Q($(T), o, n);
325
330
  } catch {
326
331
  }
327
332
  }
328
333
  }
329
334
  return "";
330
335
  }
331
- var de = Object.prototype.hasOwnProperty, We = {}, Ue = T.ReactDebugCurrentFrame;
336
+ var de = Object.prototype.hasOwnProperty, Ye = {}, We = R.ReactDebugCurrentFrame;
332
337
  function Re(e) {
333
338
  if (e) {
334
- var t = e._owner, n = Q(e.type, e._source, t ? t.type : null);
335
- Ue.setExtraStackFrame(n);
339
+ var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
340
+ We.setExtraStackFrame(n);
336
341
  } else
337
- Ue.setExtraStackFrame(null);
342
+ We.setExtraStackFrame(null);
338
343
  }
339
- function pr(e, t, n, c, S) {
344
+ function hr(e, o, n, c, T) {
340
345
  {
341
346
  var $ = Function.call.bind(de);
342
- for (var j in e)
343
- if ($(e, j)) {
344
- var k = void 0;
347
+ for (var S in e)
348
+ if ($(e, S)) {
349
+ var w = void 0;
345
350
  try {
346
- if (typeof e[j] != "function") {
347
- var Z = Error((c || "React class") + ": " + n + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
351
+ if (typeof e[S] != "function") {
352
+ var Z = Error((c || "React class") + ": " + n + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
348
353
  throw Z.name = "Invariant Violation", Z;
349
354
  }
350
- k = e[j](t, j, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
355
+ w = e[S](o, S, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
351
356
  } catch (F) {
352
- k = F;
357
+ w = F;
353
358
  }
354
- k && !(k instanceof Error) && (Re(S), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, j, typeof k), Re(null)), k instanceof Error && !(k.message in We) && (We[k.message] = !0, Re(S), m("Failed %s type: %s", n, k.message), Re(null));
359
+ w && !(w instanceof Error) && (Re(T), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, S, typeof w), Re(null)), w instanceof Error && !(w.message in Ye) && (Ye[w.message] = !0, Re(T), p("Failed %s type: %s", n, w.message), Re(null));
355
360
  }
356
361
  }
357
362
  }
358
- var hr = Array.isArray;
363
+ var br = Array.isArray;
359
364
  function _e(e) {
360
- return hr(e);
365
+ return br(e);
361
366
  }
362
367
  function vr(e) {
363
368
  {
364
- var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
369
+ var o = typeof Symbol == "function" && Symbol.toStringTag, n = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
365
370
  return n;
366
371
  }
367
372
  }
368
- function xr(e) {
373
+ function kr(e) {
369
374
  try {
370
375
  return Ve(e), !1;
371
376
  } catch {
@@ -375,43 +380,43 @@ function Tt() {
375
380
  function Ve(e) {
376
381
  return "" + e;
377
382
  }
378
- function ze(e) {
379
- if (xr(e))
380
- return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vr(e)), Ve(e);
383
+ function Ue(e) {
384
+ if (kr(e))
385
+ return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vr(e)), Ve(e);
381
386
  }
382
- var xe = T.ReactCurrentOwner, br = {
387
+ var ve = R.ReactCurrentOwner, xr = {
383
388
  key: !0,
384
389
  ref: !0,
385
390
  __self: !0,
386
391
  __source: !0
387
- }, Ge, Xe, Me;
388
- Me = {};
389
- function kr(e) {
392
+ }, Ge, Xe, Pe;
393
+ Pe = {};
394
+ function wr(e) {
390
395
  if (de.call(e, "ref")) {
391
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
392
- if (t && t.isReactWarning)
396
+ var o = Object.getOwnPropertyDescriptor(e, "ref").get;
397
+ if (o && o.isReactWarning)
393
398
  return !1;
394
399
  }
395
400
  return e.ref !== void 0;
396
401
  }
397
402
  function yr(e) {
398
403
  if (de.call(e, "key")) {
399
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
400
- if (t && t.isReactWarning)
404
+ var o = Object.getOwnPropertyDescriptor(e, "key").get;
405
+ if (o && o.isReactWarning)
401
406
  return !1;
402
407
  }
403
408
  return e.key !== void 0;
404
409
  }
405
- function Cr(e, t) {
406
- if (typeof e.ref == "string" && xe.current && t && xe.current.stateNode !== t) {
407
- var n = q(xe.current.type);
408
- Me[n] || (m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(xe.current.type), e.ref), Me[n] = !0);
410
+ function Cr(e, o) {
411
+ if (typeof e.ref == "string" && ve.current && o && ve.current.stateNode !== o) {
412
+ var n = q(ve.current.type);
413
+ Pe[n] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(ve.current.type), e.ref), Pe[n] = !0);
409
414
  }
410
415
  }
411
- function wr(e, t) {
416
+ function Sr(e, o) {
412
417
  {
413
418
  var n = function() {
414
- Ge || (Ge = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
419
+ Ge || (Ge = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
415
420
  };
416
421
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
417
422
  get: n,
@@ -419,10 +424,10 @@ function Tt() {
419
424
  });
420
425
  }
421
426
  }
422
- function jr(e, t) {
427
+ function jr(e, o) {
423
428
  {
424
429
  var n = function() {
425
- Xe || (Xe = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
430
+ Xe || (Xe = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
426
431
  };
427
432
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
428
433
  get: n,
@@ -430,70 +435,70 @@ function Tt() {
430
435
  });
431
436
  }
432
437
  }
433
- var Ir = function(e, t, n, c, S, $, j) {
434
- var k = {
438
+ var Ir = function(e, o, n, c, T, $, S) {
439
+ var w = {
435
440
  // This tag allows us to uniquely identify this as a React Element
436
441
  $$typeof: r,
437
442
  // Built-in properties that belong on the element
438
443
  type: e,
439
- key: t,
444
+ key: o,
440
445
  ref: n,
441
- props: j,
446
+ props: S,
442
447
  // Record the component responsible for creating this element.
443
448
  _owner: $
444
449
  };
445
- return k._store = {}, Object.defineProperty(k._store, "validated", {
450
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
446
451
  configurable: !1,
447
452
  enumerable: !1,
448
453
  writable: !0,
449
454
  value: !1
450
- }), Object.defineProperty(k, "_self", {
455
+ }), Object.defineProperty(w, "_self", {
451
456
  configurable: !1,
452
457
  enumerable: !1,
453
458
  writable: !1,
454
459
  value: c
455
- }), Object.defineProperty(k, "_source", {
460
+ }), Object.defineProperty(w, "_source", {
456
461
  configurable: !1,
457
462
  enumerable: !1,
458
463
  writable: !1,
459
- value: S
460
- }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
464
+ value: T
465
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
461
466
  };
462
- function Sr(e, t, n, c, S) {
467
+ function Tr(e, o, n, c, T) {
463
468
  {
464
- var $, j = {}, k = null, Z = null;
465
- n !== void 0 && (ze(n), k = "" + n), yr(t) && (ze(t.key), k = "" + t.key), kr(t) && (Z = t.ref, Cr(t, S));
466
- for ($ in t)
467
- de.call(t, $) && !br.hasOwnProperty($) && (j[$] = t[$]);
469
+ var $, S = {}, w = null, Z = null;
470
+ n !== void 0 && (Ue(n), w = "" + n), yr(o) && (Ue(o.key), w = "" + o.key), wr(o) && (Z = o.ref, Cr(o, T));
471
+ for ($ in o)
472
+ de.call(o, $) && !xr.hasOwnProperty($) && (S[$] = o[$]);
468
473
  if (e && e.defaultProps) {
469
474
  var F = e.defaultProps;
470
475
  for ($ in F)
471
- j[$] === void 0 && (j[$] = F[$]);
476
+ S[$] === void 0 && (S[$] = F[$]);
472
477
  }
473
- if (k || Z) {
474
- var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
- k && wr(j, W), Z && jr(j, W);
478
+ if (w || Z) {
479
+ var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
480
+ w && Sr(S, Y), Z && jr(S, Y);
476
481
  }
477
- return Ir(e, k, Z, S, c, xe.current, j);
482
+ return Ir(e, w, Z, T, c, ve.current, S);
478
483
  }
479
484
  }
480
- var Pe = T.ReactCurrentOwner, qe = T.ReactDebugCurrentFrame;
481
- function pe(e) {
485
+ var De = R.ReactCurrentOwner, qe = R.ReactDebugCurrentFrame;
486
+ function fe(e) {
482
487
  if (e) {
483
- var t = e._owner, n = Q(e.type, e._source, t ? t.type : null);
488
+ var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
484
489
  qe.setExtraStackFrame(n);
485
490
  } else
486
491
  qe.setExtraStackFrame(null);
487
492
  }
488
- var De;
489
- De = !1;
490
- function $e(e) {
493
+ var $e;
494
+ $e = !1;
495
+ function Ne(e) {
491
496
  return typeof e == "object" && e !== null && e.$$typeof === r;
492
497
  }
493
- function Je() {
498
+ function He() {
494
499
  {
495
- if (Pe.current) {
496
- var e = q(Pe.current.type);
500
+ if (De.current) {
501
+ var e = q(De.current.type);
497
502
  if (e)
498
503
  return `
499
504
 
@@ -502,108 +507,108 @@ Check the render method of \`` + e + "`.";
502
507
  return "";
503
508
  }
504
509
  }
505
- function Tr(e) {
510
+ function Rr(e) {
506
511
  return "";
507
512
  }
508
- var Ke = {};
509
- function Rr(e) {
513
+ var Je = {};
514
+ function Er(e) {
510
515
  {
511
- var t = Je();
512
- if (!t) {
516
+ var o = He();
517
+ if (!o) {
513
518
  var n = typeof e == "string" ? e : e.displayName || e.name;
514
- n && (t = `
519
+ n && (o = `
515
520
 
516
521
  Check the top-level render call using <` + n + ">.");
517
522
  }
518
- return t;
523
+ return o;
519
524
  }
520
525
  }
521
- function He(e, t) {
526
+ function Ke(e, o) {
522
527
  {
523
528
  if (!e._store || e._store.validated || e.key != null)
524
529
  return;
525
530
  e._store.validated = !0;
526
- var n = Rr(t);
527
- if (Ke[n])
531
+ var n = Er(o);
532
+ if (Je[n])
528
533
  return;
529
- Ke[n] = !0;
534
+ Je[n] = !0;
530
535
  var c = "";
531
- e && e._owner && e._owner !== Pe.current && (c = " It was passed a child from " + q(e._owner.type) + "."), pe(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, c), pe(null);
536
+ e && e._owner && e._owner !== De.current && (c = " It was passed a child from " + q(e._owner.type) + "."), fe(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, c), fe(null);
532
537
  }
533
538
  }
534
- function Ze(e, t) {
539
+ function Ze(e, o) {
535
540
  {
536
541
  if (typeof e != "object")
537
542
  return;
538
543
  if (_e(e))
539
544
  for (var n = 0; n < e.length; n++) {
540
545
  var c = e[n];
541
- $e(c) && He(c, t);
546
+ Ne(c) && Ke(c, o);
542
547
  }
543
- else if ($e(e))
548
+ else if (Ne(e))
544
549
  e._store && (e._store.validated = !0);
545
550
  else if (e) {
546
- var S = h(e);
547
- if (typeof S == "function" && S !== e.entries)
548
- for (var $ = S.call(e), j; !(j = $.next()).done; )
549
- $e(j.value) && He(j.value, t);
551
+ var T = u(e);
552
+ if (typeof T == "function" && T !== e.entries)
553
+ for (var $ = T.call(e), S; !(S = $.next()).done; )
554
+ Ne(S.value) && Ke(S.value, o);
550
555
  }
551
556
  }
552
557
  }
553
- function Er(e) {
558
+ function Mr(e) {
554
559
  {
555
- var t = e.type;
556
- if (t == null || typeof t == "string")
560
+ var o = e.type;
561
+ if (o == null || typeof o == "string")
557
562
  return;
558
563
  var n;
559
- if (typeof t == "function")
560
- n = t.propTypes;
561
- else if (typeof t == "object" && (t.$$typeof === s || // Note: Memo only checks outer props here.
564
+ if (typeof o == "function")
565
+ n = o.propTypes;
566
+ else if (typeof o == "object" && (o.$$typeof === i || // Note: Memo only checks outer props here.
562
567
  // Inner props are checked in the reconciler.
563
- t.$$typeof === N))
564
- n = t.propTypes;
568
+ o.$$typeof === N))
569
+ n = o.propTypes;
565
570
  else
566
571
  return;
567
572
  if (n) {
568
- var c = q(t);
569
- pr(n, e.props, "prop", c, e);
570
- } else if (t.PropTypes !== void 0 && !De) {
571
- De = !0;
572
- var S = q(t);
573
- m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
573
+ var c = q(o);
574
+ hr(n, e.props, "prop", c, e);
575
+ } else if (o.PropTypes !== void 0 && !$e) {
576
+ $e = !0;
577
+ var T = q(o);
578
+ p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
574
579
  }
575
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
581
  }
577
582
  }
578
583
  function _r(e) {
579
584
  {
580
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
581
- var c = t[n];
585
+ for (var o = Object.keys(e.props), n = 0; n < o.length; n++) {
586
+ var c = o[n];
582
587
  if (c !== "children" && c !== "key") {
583
- pe(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), pe(null);
588
+ fe(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), fe(null);
584
589
  break;
585
590
  }
586
591
  }
587
- e.ref !== null && (pe(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
592
+ e.ref !== null && (fe(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
588
593
  }
589
594
  }
590
595
  var Qe = {};
591
- function er(e, t, n, c, S, $) {
596
+ function er(e, o, n, c, T, $) {
592
597
  {
593
- var j = ce(e);
594
- if (!j) {
595
- var k = "";
596
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
597
- var Z = Tr();
598
- Z ? k += Z : k += Je();
598
+ var S = ce(e);
599
+ if (!S) {
600
+ var w = "";
601
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
602
+ var Z = Rr();
603
+ Z ? w += Z : w += He();
599
604
  var F;
600
- e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (q(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, k);
605
+ e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (q(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
601
606
  }
602
- var W = Sr(e, t, n, S, $);
603
- if (W == null)
604
- return W;
605
- if (j) {
606
- var ae = t.children;
607
+ var Y = Tr(e, o, n, T, $);
608
+ if (Y == null)
609
+ return Y;
610
+ if (S) {
611
+ var ae = o.children;
607
612
  if (ae !== void 0)
608
613
  if (c)
609
614
  if (_e(ae)) {
@@ -611,40 +616,40 @@ Check the top-level render call using <` + n + ">.");
611
616
  Ze(ae[he], e);
612
617
  Object.freeze && Object.freeze(ae);
613
618
  } else
614
- m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
+ p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
615
620
  else
616
621
  Ze(ae, e);
617
622
  }
618
- if (de.call(t, "key")) {
619
- var fe = q(e), ee = Object.keys(t).filter(function(Or) {
620
- return Or !== "key";
621
- }), Ne = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
622
- if (!Qe[fe + Ne]) {
623
- var Nr = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
624
- m(`A props object containing a "key" prop is being spread into JSX:
623
+ if (de.call(o, "key")) {
624
+ var ue = q(e), ee = Object.keys(o).filter(function(Ar) {
625
+ return Ar !== "key";
626
+ }), Oe = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
627
+ if (!Qe[ue + Oe]) {
628
+ var Or = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
629
+ p(`A props object containing a "key" prop is being spread into JSX:
625
630
  let props = %s;
626
631
  <%s {...props} />
627
632
  React keys must be passed directly to JSX without using spread:
628
633
  let props = %s;
629
- <%s key={someKey} {...props} />`, Ne, fe, Nr, fe), Qe[fe + Ne] = !0;
634
+ <%s key={someKey} {...props} />`, Oe, ue, Or, ue), Qe[ue + Oe] = !0;
630
635
  }
631
636
  }
632
- return e === a ? _r(W) : Er(W), W;
637
+ return e === a ? _r(Y) : Mr(Y), Y;
633
638
  }
634
639
  }
635
- function Mr(e, t, n) {
636
- return er(e, t, n, !0);
640
+ function Pr(e, o, n) {
641
+ return er(e, o, n, !0);
637
642
  }
638
- function Pr(e, t, n) {
639
- return er(e, t, n, !1);
643
+ function Dr(e, o, n) {
644
+ return er(e, o, n, !1);
640
645
  }
641
- var Dr = Pr, $r = Mr;
642
- ke.Fragment = a, ke.jsx = Dr, ke.jsxs = $r;
643
- }()), ke;
646
+ var $r = Dr, Nr = Pr;
647
+ xe.Fragment = a, xe.jsx = $r, xe.jsxs = Nr;
648
+ }()), xe;
644
649
  }
645
- process.env.NODE_ENV === "production" ? Le.exports = St() : Le.exports = Tt();
646
- var o = Le.exports;
647
- const lr = {
650
+ process.env.NODE_ENV === "production" ? Le.exports = _o() : Le.exports = Po();
651
+ var t = Le.exports;
652
+ const sr = {
648
653
  token: {
649
654
  itemNameColor: "#1a1a1a",
650
655
  itemIconBackgroundColor: "white",
@@ -670,26 +675,26 @@ const lr = {
670
675
  contextMenuBackgroundColor: "#1a1a1a",
671
676
  contextMenuShadowColor: "rgba(255, 255, 255, 0.1)"
672
677
  }
673
- }, ur = ar(
678
+ }, dr = ar(
674
679
  {}
675
- ), Rt = (d) => {
676
- const { children: r, theme: i, ...a } = d, g = Ee(() => i === "light" ? lr : i === "dark" ? cr : i, [i]);
677
- return /* @__PURE__ */ o.jsx(ur.Provider, { value: { theme: g, ...a }, children: r });
678
- }, me = () => ir(ur), dr = {
680
+ ), Do = (g) => {
681
+ const { children: r, theme: l, ...a } = g, m = Ee(() => l === "light" ? sr : l === "dark" ? cr : l, [l]);
682
+ return /* @__PURE__ */ t.jsx(dr.Provider, { value: { theme: m, ...a }, children: r });
683
+ }, me = () => ir(dr), ur = {
679
684
  maxRow: 2,
680
685
  maxCol: 2
681
- }, Et = {
682
- ...dr
683
- }, fr = {
684
- app: dr,
685
- group: Et
686
+ }, $o = {
687
+ ...ur
688
+ }, gr = {
689
+ app: ur,
690
+ group: $o
686
691
  };
687
692
  class ie {
688
693
  }
689
694
  /** 清理重复id */
690
- Oe(ie, "uniqueArray", (r) => r.reduce((i, a) => i.find((l) => l.id === a.id) ? i : i.concat([a]), [])), Oe(ie, "getTheme", (r) => {
691
- const i = lr.token, a = cr.token, g = { ...i, ...r == null ? void 0 : r.token }, l = { ...a, ...r == null ? void 0 : r.token };
692
- return { light: g, dark: l };
695
+ Ae(ie, "uniqueArray", (r) => r.reduce((l, a) => l.find((s) => s.id === a.id) ? l : l.concat([a]), [])), Ae(ie, "getTheme", (r) => {
696
+ const l = sr.token, a = cr.token, m = { ...l, ...r == null ? void 0 : r.token }, s = { ...a, ...r == null ? void 0 : r.token };
697
+ return { light: m, dark: s };
693
698
  });
694
699
  const mr = ar({
695
700
  list: [],
@@ -726,197 +731,197 @@ const mr = ar({
726
731
  moveTargetId: null,
727
732
  setMoveTargetId: () => {
728
733
  }
729
- }), _t = (d) => {
734
+ }), No = (g) => {
730
735
  const {
731
736
  children: r,
732
- list: i = [],
737
+ list: l = [],
733
738
  onChange: a,
734
- storageKey: g = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
735
- enableCaching: l = !0
736
- } = d, [y, b] = oe(), [s, _] = oe(), [p, N] = oe(null), M = Be(p), [V, Y] = oe(null), [f, h] = oe([]), [T, m] = oe(
739
+ storageKey: m = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
740
+ enableCaching: s = !0
741
+ } = g, [f, b] = te(), [i, I] = te(), [v, N] = te(null), _ = Me(v), [W, V] = te(null), [h, u] = te([]), [R, p] = te(
737
742
  null
738
- ), [G, v] = oe(
743
+ ), [G, k] = te(
739
744
  null
740
- ), [P, R] = oe(!1), [x, C] = oe(null), [X, ce] = oe(
745
+ ), [P, E] = te(!1), [x, y] = te(null), [X, ce] = te(
741
746
  null
742
- ), [J, ge] = oe(!1), [q, re] = Yr(g, {
747
+ ), [H, pe] = te(!1), [q, re] = Yr(m, {
743
748
  defaultValue: [],
744
749
  listenStorageChange: !0
745
- }), se = () => {
746
- Y(null), clearTimeout(y), b(void 0), M.current = null;
747
- }, B = (I, H) => {
748
- Y({ ...I, pageX: I.pageX, pageY: I.pageY, data: H }), clearTimeout(y);
749
- }, ne = (I, H = !0) => {
750
- const { config: K = {} } = I;
751
- return K.allowContextMenu === !1 ? {} : {
750
+ }), le = () => {
751
+ V(null), clearTimeout(f), b(void 0), _.current = null;
752
+ }, B = (j, K) => {
753
+ V({ ...j, pageX: j.pageX, pageY: j.pageY, data: K }), clearTimeout(f);
754
+ }, ne = (j, K = !0) => {
755
+ const { config: J = {} } = j;
756
+ return J.allowContextMenu === !1 ? {} : {
752
757
  onMouseDown: (D) => {
753
758
  b(
754
759
  setTimeout(() => {
755
- H && M.current === null && B(D, I);
760
+ K && _.current === null && B(D, j);
756
761
  }, 800)
757
- ), R(!1), _(
762
+ ), E(!1), I(
758
763
  setTimeout(() => {
759
- R(!0);
764
+ E(!0);
760
765
  }, 800)
761
766
  );
762
767
  },
763
768
  onMouseUp: () => {
764
- clearTimeout(s), _(void 0), clearTimeout(y), b(void 0);
769
+ clearTimeout(i), I(void 0), clearTimeout(f), b(void 0);
765
770
  },
766
771
  onContextMenu: (D) => {
767
- H && (D.preventDefault(), B(D, I));
772
+ K && (D.preventDefault(), B(D, j));
768
773
  }
769
774
  };
770
- }, le = (I, H) => {
771
- const K = [...H || []];
772
- if (K.length > 0)
773
- h((D) => {
774
- const L = [...D], O = (w) => {
775
- var Se, Te;
776
- const E = K.shift(), z = w.find((Q) => Q.id === E), te = w.findIndex((Q) => Q.id === E);
777
- if (K.length && z) {
778
- if (((Se = z.children) == null ? void 0 : Se.filter(
779
- (Q) => !I.some((de) => de.id === Q.id)
780
- ).length) === 1 && I.length === 1) {
781
- const Q = { ...I[0] };
782
- return w.splice(te, 1, Q), a == null || a(w), w;
775
+ }, se = (j, K) => {
776
+ const J = [...K || []];
777
+ if (J.length > 0)
778
+ u((D) => {
779
+ const L = [...D], O = (C) => {
780
+ var Ie, Te;
781
+ const M = J.shift(), U = C.find((Q) => Q.id === M), oe = C.findIndex((Q) => Q.id === M);
782
+ if (J.length && U) {
783
+ if (((Ie = U.children) == null ? void 0 : Ie.filter(
784
+ (Q) => !j.some((de) => de.id === Q.id)
785
+ ).length) === 1 && j.length === 1) {
786
+ const Q = { ...j[0] };
787
+ return C.splice(oe, 1, Q), a == null || a(C), C;
783
788
  }
784
- return z.children = O(z.children || []), w.splice(te, 1, z), a == null || a(w), w;
789
+ return U.children = O(U.children || []), C.splice(oe, 1, U), a == null || a(C), C;
785
790
  }
786
- if (z) {
787
- if (!((Te = z.children) != null && Te.length) && I.length) {
788
- const Q = { ...z };
789
- return z.data = { name: "文件夹" }, z.type = "group", z.children = [Q, ...I], z.id = rr(), w.splice(te, 1, z), a == null || a(w), w;
791
+ if (U) {
792
+ if (!((Te = U.children) != null && Te.length) && j.length) {
793
+ const Q = { ...U };
794
+ return U.data = { name: "文件夹" }, U.type = "group", U.children = [Q, ...j], U.id = rr(), C.splice(oe, 1, U), a == null || a(C), C;
790
795
  }
791
- return z.children = ie.uniqueArray(I), w.splice(te, 1, z), a == null || a(w), w;
796
+ return U.children = ie.uniqueArray(j), C.splice(oe, 1, U), a == null || a(C), C;
792
797
  }
793
- return ie.uniqueArray(I);
798
+ return ie.uniqueArray(j);
794
799
  };
795
800
  return ie.uniqueArray(O(L));
796
801
  });
797
802
  else {
798
- const D = ie.uniqueArray(I);
799
- a == null || a(D), h(D);
800
- }
801
- }, Ce = (I, H) => {
802
- h((K) => {
803
- const D = [...K], L = (O) => {
804
- var w;
805
- for (let E = 0; E < O.length; E++)
806
- if (O[E].id === I) {
807
- O[E].config = H;
803
+ const D = ie.uniqueArray(j);
804
+ a == null || a(D), u(D);
805
+ }
806
+ }, ye = (j, K) => {
807
+ u((J) => {
808
+ const D = [...J], L = (O) => {
809
+ var C;
810
+ for (let M = 0; M < O.length; M++)
811
+ if (O[M].id === j) {
812
+ O[M].config = K;
808
813
  break;
809
- } else ((w = O[E].children) == null ? void 0 : w.length) !== void 0 && L(O[E].children);
814
+ } else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
810
815
  };
811
816
  return L(D), a == null || a(D), D;
812
817
  });
813
- }, we = (I, H) => {
814
- h((K) => {
815
- const D = [...K], L = (O) => {
816
- var w;
817
- for (let E = 0; E < O.length; E++)
818
- if (O[E].id === I) {
819
- O[E].data = H;
818
+ }, Ce = (j, K) => {
819
+ u((J) => {
820
+ const D = [...J], L = (O) => {
821
+ var C;
822
+ for (let M = 0; M < O.length; M++)
823
+ if (O[M].id === j) {
824
+ O[M].data = K;
820
825
  break;
821
- } else ((w = O[E].children) == null ? void 0 : w.length) !== void 0 && L(O[E].children);
826
+ } else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
822
827
  };
823
828
  return L(D), a == null || a(D), D;
824
829
  });
825
- }, je = (I) => {
826
- h((H) => {
827
- const K = [...H], D = (L) => {
830
+ }, Se = (j) => {
831
+ u((K) => {
832
+ const J = [...K], D = (L) => {
828
833
  var O;
829
- for (let w = 0; w < L.length; w++)
830
- if (L[w].id === I) {
831
- L.splice(w, 1);
834
+ for (let C = 0; C < L.length; C++)
835
+ if (L[C].id === j) {
836
+ L.splice(C, 1);
832
837
  break;
833
- } else ((O = L[w].children) == null ? void 0 : O.length) !== void 0 && D(L[w].children);
838
+ } else ((O = L[C].children) == null ? void 0 : O.length) !== void 0 && D(L[C].children);
834
839
  };
835
- return D(K), a == null || a(K), K;
840
+ return D(J), a == null || a(J), J;
836
841
  });
837
- }, Ie = (I, H) => {
838
- const K = [...f], D = (L, O) => {
839
- const w = O.shift(), E = L.find((te) => te.id === w), z = L.findIndex((te) => te.id === w);
840
- if (E) {
842
+ }, je = (j, K) => {
843
+ const J = [...h], D = (L, O) => {
844
+ const C = O.shift(), M = L.find((oe) => oe.id === C), U = L.findIndex((oe) => oe.id === C);
845
+ if (M) {
841
846
  if (O.length)
842
- E.children = D(E.children || [], O);
847
+ M.children = D(M.children || [], O);
843
848
  else {
844
- const te = (I == null ? void 0 : I.type) ?? "app";
845
- E.children = [
846
- ...E.children ?? [],
849
+ const oe = (j == null ? void 0 : j.type) ?? "app";
850
+ M.children = [
851
+ ...M.children ?? [],
847
852
  {
848
- ...I,
853
+ ...j,
849
854
  id: rr(),
850
- config: (I == null ? void 0 : I.config) ?? fr[te]
855
+ config: (j == null ? void 0 : j.config) ?? gr[oe]
851
856
  }
852
857
  ];
853
858
  }
854
- return L.splice(z, 1, E), L;
859
+ return L.splice(U, 1, M), L;
855
860
  } else
856
861
  return L;
857
862
  };
858
- h(D(K, H));
863
+ u(D(J, K));
859
864
  };
860
- return ye(() => {
861
- (i == null ? void 0 : i.length) > 0 && f.length === 0 && le(i);
862
- }, [i]), ye(() => {
863
- M.current = p, p !== null && se();
864
- }, [p]), ye(() => {
865
- l && q != null && q.length && !J && (le(q), ge(!0));
866
- }, [q, J, l]), Wr(
865
+ return we(() => {
866
+ (l == null ? void 0 : l.length) > 0 && h.length === 0 && se(l);
867
+ }, [l]), we(() => {
868
+ _.current = v, v !== null && le();
869
+ }, [v]), we(() => {
870
+ s && q != null && q.length && !H && (se(q), pe(!0));
871
+ }, [q, H, s]), Wr(
867
872
  () => {
868
- l && re(f);
873
+ s && re(h);
869
874
  },
870
- [f, l],
875
+ [h, s],
871
876
  {
872
877
  wait: 1e3
873
878
  }
874
- ), /* @__PURE__ */ o.jsx(
879
+ ), /* @__PURE__ */ t.jsx(
875
880
  mr.Provider,
876
881
  {
877
882
  value: {
878
- list: f,
879
- setList: le,
880
- contextMenu: V,
881
- setContextMenu: Y,
882
- listStatus: p,
883
+ list: h,
884
+ setList: se,
885
+ contextMenu: W,
886
+ setContextMenu: V,
887
+ listStatus: v,
883
888
  setListStatus: N,
884
889
  contextMenuFuns: ne,
885
- hideContextMenu: se,
886
- showInfoItemData: T,
887
- setShowInfoItemData: m,
890
+ hideContextMenu: le,
891
+ showInfoItemData: R,
892
+ setShowInfoItemData: p,
888
893
  openGroupItemData: G,
889
- setOpenGroupItemData: v,
894
+ setOpenGroupItemData: k,
890
895
  longPressTriggered: P,
891
- updateItemConfig: Ce,
892
- updateItem: we,
893
- removeItem: je,
894
- addItem: Ie,
896
+ updateItemConfig: ye,
897
+ updateItem: Ce,
898
+ removeItem: Se,
899
+ addItem: je,
895
900
  moveItemId: x,
896
- setMoveItemId: C,
901
+ setMoveItemId: y,
897
902
  moveTargetId: X,
898
903
  setMoveTargetId: ce
899
904
  },
900
905
  children: r
901
906
  }
902
907
  );
903
- }, ve = () => ir(mr), Mt = {
908
+ }, be = () => ir(mr), Oo = {
904
909
  menuShow: {
905
910
  opacity: 1,
906
911
  y: 0,
907
912
  transition: { type: "spring", stiffness: 300, damping: 24 }
908
913
  },
909
914
  menuHide: { opacity: 0, y: 20, transition: { duration: 0.2 } }
910
- }, Ae = (d) => {
911
- const { icon: r, title: i, onClick: a } = d, { theme: g } = me(), { light: l, dark: y } = ie.getTheme(g);
912
- return /* @__PURE__ */ o.jsx(
915
+ }, Be = (g) => {
916
+ const { icon: r, title: l, onClick: a } = g, { theme: m } = me(), { light: s, dark: f } = ie.getTheme(m);
917
+ return /* @__PURE__ */ t.jsx(
913
918
  A.div,
914
919
  {
915
- className: u`
920
+ className: d`
916
921
  &:hover {
917
- background-color: ${l.contextMenuActiveColor};
922
+ background-color: ${s.contextMenuActiveColor};
918
923
  @media (prefers-color-scheme: dark) {
919
- background-color: ${y.contextMenuActiveColor};
924
+ background-color: ${f.contextMenuActiveColor};
920
925
  }
921
926
  }
922
927
  @media (prefers-color-scheme: dark) {
@@ -932,13 +937,13 @@ const mr = ar({
932
937
  onClick: (b) => {
933
938
  b.stopPropagation(), a == null || a();
934
939
  },
935
- variants: Mt,
936
- children: /* @__PURE__ */ o.jsxs(
940
+ variants: Oo,
941
+ children: /* @__PURE__ */ t.jsxs(
937
942
  A.div,
938
943
  {
939
- className: U(
944
+ className: z(
940
945
  "py-1.5 px-3 rounded-lg",
941
- u`
946
+ d`
942
947
  padding-top: 0.375rem;
943
948
  padding-bottom: 0.375rem;
944
949
  padding-left: 0.75rem;
@@ -948,11 +953,11 @@ const mr = ar({
948
953
  ),
949
954
  whileTap: { scale: 0.9 },
950
955
  children: [
951
- /* @__PURE__ */ o.jsx(
956
+ /* @__PURE__ */ t.jsx(
952
957
  A.div,
953
958
  {
954
- className: U(
955
- u`
959
+ className: z(
960
+ d`
956
961
  margin-bottom: 0.375rem;
957
962
  display: flex;
958
963
  justify-content: center;
@@ -961,65 +966,65 @@ const mr = ar({
961
966
  children: r
962
967
  }
963
968
  ),
964
- /* @__PURE__ */ o.jsx(A.div, { children: i })
969
+ /* @__PURE__ */ t.jsx(A.div, { children: l })
965
970
  ]
966
971
  }
967
972
  )
968
973
  }
969
974
  );
970
- }, Pt = (d) => {
975
+ }, Ao = (g) => {
971
976
  const {
972
977
  showInfoButton: r = !0,
973
- showRemoveButton: i = !0,
978
+ showRemoveButton: l = !0,
974
979
  showShareButton: a = !0,
975
- showSizeButton: g = !0,
976
- onInfoClick: l,
977
- onShareClick: y,
980
+ showSizeButton: m = !0,
981
+ onInfoClick: s,
982
+ onShareClick: f,
978
983
  onRemoveClick: b
979
- } = d, {
980
- contextMenu: s,
981
- setContextMenu: _,
982
- hideContextMenu: p,
984
+ } = g, {
985
+ contextMenu: i,
986
+ setContextMenu: I,
987
+ hideContextMenu: v,
983
988
  setShowInfoItemData: N,
984
- removeItem: M,
985
- updateItemConfig: V
986
- } = ve(), { theme: Y } = me(), { light: f, dark: h } = ie.getTheme(Y), { data: T } = s ?? {}, { config: m = {} } = T ?? {}, G = () => {
987
- var R;
988
- const v = fr[(R = s == null ? void 0 : s.data) == null ? void 0 : R.type], P = [];
989
- for (let x = 1; x <= ((v == null ? void 0 : v.maxRow) ?? 2); x++)
990
- for (let C = 1; C <= ((v == null ? void 0 : v.maxCol) ?? 2); C++)
991
- P.push(`${x}x${C}`);
989
+ removeItem: _,
990
+ updateItemConfig: W
991
+ } = be(), { theme: V } = me(), { light: h, dark: u } = ie.getTheme(V), { data: R } = i ?? {}, { config: p = {} } = R ?? {}, G = () => {
992
+ var E;
993
+ const k = gr[(E = i == null ? void 0 : i.data) == null ? void 0 : E.type], P = [];
994
+ for (let x = 1; x <= ((k == null ? void 0 : k.maxRow) ?? 2); x++)
995
+ for (let y = 1; y <= ((k == null ? void 0 : k.maxCol) ?? 2); y++)
996
+ P.push(`${x}x${y}`);
992
997
  return P;
993
998
  };
994
- return /* @__PURE__ */ o.jsx(Fr, { children: s && /* @__PURE__ */ o.jsxs(
999
+ return /* @__PURE__ */ t.jsx(zr, { children: i && /* @__PURE__ */ t.jsxs(
995
1000
  A.div,
996
1001
  {
997
1002
  initial: { opacity: 0 },
998
1003
  animate: { opacity: 1 },
999
1004
  exit: { opacity: 0 },
1000
- onMouseDown: (v) => {
1001
- v.stopPropagation(), v.preventDefault();
1005
+ onMouseDown: (k) => {
1006
+ k.stopPropagation(), k.preventDefault();
1002
1007
  },
1003
1008
  children: [
1004
- /* @__PURE__ */ o.jsx(
1009
+ /* @__PURE__ */ t.jsx(
1005
1010
  A.div,
1006
1011
  {
1007
- className: U(
1008
- u`
1012
+ className: z(
1013
+ d`
1009
1014
  border-radius: 0.5rem;
1010
1015
  overflow: hidden;
1011
- background-color: ${f.contextMenuBackgroundColor};
1012
- box-shadow: 0 0 0.5rem ${f.contextMenuShadowColor};
1016
+ background-color: ${h.contextMenuBackgroundColor};
1017
+ box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1013
1018
  @media (prefers-color-scheme: dark) {
1014
- background-color: ${h.contextMenuBackgroundColor};
1015
- box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1019
+ background-color: ${u.contextMenuBackgroundColor};
1020
+ box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
1016
1021
  }
1017
1022
  `
1018
1023
  ),
1019
- children: g && m.allowResize !== !1 && /* @__PURE__ */ o.jsx(
1024
+ children: m && p.allowResize !== !1 && /* @__PURE__ */ t.jsx(
1020
1025
  A.ul,
1021
1026
  {
1022
- className: u`
1027
+ className: d`
1023
1028
  background-color: white;
1024
1029
  padding: 0.25rem;
1025
1030
  margin: 0;
@@ -1028,33 +1033,33 @@ const mr = ar({
1028
1033
  {
1029
1034
  label: "修改大小",
1030
1035
  key: "size",
1031
- icon: /* @__PURE__ */ o.jsx(Vr, { size: 14 }),
1032
- items: G().map((v) => ({
1033
- label: v,
1034
- key: v,
1036
+ icon: /* @__PURE__ */ t.jsx(Ur, { size: 14 }),
1037
+ items: G().map((k) => ({
1038
+ label: k,
1039
+ key: k,
1035
1040
  onClick: () => {
1036
- const [P, R] = v.split("x").map(Number);
1037
- V(s.data.id, {
1041
+ const [P, E] = k.split("x").map(Number);
1042
+ W(i.data.id, {
1038
1043
  row: P,
1039
- col: R
1044
+ col: E
1040
1045
  });
1041
1046
  }
1042
1047
  }))
1043
1048
  }
1044
- ].map((v) => /* @__PURE__ */ o.jsxs(
1049
+ ].map((k) => /* @__PURE__ */ t.jsxs(
1045
1050
  A.li,
1046
1051
  {
1047
- className: u`
1052
+ className: d`
1048
1053
  padding-top: 0.5rem;
1049
1054
  padding-bottom: 0.5rem;
1050
1055
  padding-left: 0.75rem;
1051
1056
  padding-right: 0.75rem;
1052
1057
  `,
1053
1058
  children: [
1054
- /* @__PURE__ */ o.jsxs(
1059
+ /* @__PURE__ */ t.jsxs(
1055
1060
  A.p,
1056
1061
  {
1057
- className: u`
1062
+ className: d`
1058
1063
  display: flex;
1059
1064
  align-items: center;
1060
1065
  font-size: 0.875rem;
@@ -1064,26 +1069,26 @@ const mr = ar({
1064
1069
  margin: 0;
1065
1070
  `,
1066
1071
  children: [
1067
- v.icon,
1072
+ k.icon,
1068
1073
  " ",
1069
- v.label
1074
+ k.label
1070
1075
  ]
1071
1076
  }
1072
1077
  ),
1073
- /* @__PURE__ */ o.jsx(
1078
+ /* @__PURE__ */ t.jsx(
1074
1079
  A.div,
1075
1080
  {
1076
- className: u`
1081
+ className: d`
1077
1082
  display: grid;
1078
1083
  grid-template-columns: repeat(2, minmax(0, 1fr));
1079
1084
  gap: 0.25rem;
1080
1085
  `,
1081
- children: v.items.map((P) => /* @__PURE__ */ o.jsx(
1086
+ children: k.items.map((P) => /* @__PURE__ */ t.jsx(
1082
1087
  A.div,
1083
1088
  {
1084
- className: U(
1089
+ className: z(
1085
1090
  "py-1 px-2 hover:bg-gray-100 rounded transition-all cursor-pointer text-center text-sm",
1086
- u`
1091
+ d`
1087
1092
  padding-top: 0.25rem;
1088
1093
  padding-bottom: 0.25rem;
1089
1094
  padding-left: 0.5rem;
@@ -1094,21 +1099,21 @@ const mr = ar({
1094
1099
  line-height: 1.25rem;
1095
1100
  cursor: pointer;
1096
1101
  text-align: center;
1097
- color: ${f.contextMenuTextColor};
1102
+ color: ${h.contextMenuTextColor};
1098
1103
  @media (prefers-color-scheme: dark) {
1099
- color: ${h.contextMenuTextColor};
1104
+ color: ${u.contextMenuTextColor};
1100
1105
  }
1101
1106
  &:hover {
1102
- background-color: ${f.contextMenuActiveColor};
1107
+ background-color: ${h.contextMenuActiveColor};
1103
1108
  @media (prefers-color-scheme: dark) {
1104
- background-color: ${h.contextMenuActiveColor};
1109
+ background-color: ${u.contextMenuActiveColor};
1105
1110
  }
1106
1111
  }
1107
1112
  `,
1108
- `${m.row}x${m.col}` === P.key && u`
1109
- background-color: ${f.contextMenuActiveColor};
1113
+ `${p.row}x${p.col}` === P.key && d`
1114
+ background-color: ${h.contextMenuActiveColor};
1110
1115
  @media (prefers-color-scheme: dark) {
1111
- background-color: ${h.contextMenuActiveColor};
1116
+ background-color: ${u.contextMenuActiveColor};
1112
1117
  }
1113
1118
  `
1114
1119
  ),
@@ -1121,22 +1126,22 @@ const mr = ar({
1121
1126
  )
1122
1127
  ]
1123
1128
  },
1124
- v.key
1129
+ k.key
1125
1130
  ))
1126
1131
  }
1127
1132
  )
1128
1133
  }
1129
1134
  ),
1130
- /* @__PURE__ */ o.jsxs(
1135
+ /* @__PURE__ */ t.jsxs(
1131
1136
  A.div,
1132
1137
  {
1133
- className: U(
1134
- u`
1135
- background-color: ${f.contextMenuBackgroundColor};
1136
- box-shadow: 0 0 0.5rem ${f.contextMenuShadowColor};
1138
+ className: z(
1139
+ d`
1140
+ background-color: ${h.contextMenuBackgroundColor};
1141
+ box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1137
1142
  @media (prefers-color-scheme: dark) {
1138
- background-color: ${h.contextMenuBackgroundColor};
1139
- box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1143
+ background-color: ${u.contextMenuBackgroundColor};
1144
+ box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
1140
1145
  }
1141
1146
  display: flex;
1142
1147
  justify-content: space-around;
@@ -1148,48 +1153,48 @@ const mr = ar({
1148
1153
  `
1149
1154
  ),
1150
1155
  children: [
1151
- a && /* @__PURE__ */ o.jsx(
1152
- Ae,
1156
+ a && /* @__PURE__ */ t.jsx(
1157
+ Be,
1153
1158
  {
1154
- icon: /* @__PURE__ */ o.jsx(zr, { size: 20 }),
1159
+ icon: /* @__PURE__ */ t.jsx(Gr, { size: 20 }),
1155
1160
  title: "分享",
1156
1161
  onClick: () => {
1157
- if (y) {
1158
- y(s.data);
1162
+ if (f) {
1163
+ f(i.data);
1159
1164
  return;
1160
1165
  }
1161
1166
  }
1162
1167
  }
1163
1168
  ),
1164
- r && /* @__PURE__ */ o.jsx(
1165
- Ae,
1169
+ r && /* @__PURE__ */ t.jsx(
1170
+ Be,
1166
1171
  {
1167
- icon: /* @__PURE__ */ o.jsx(Gr, { size: 20 }),
1172
+ icon: /* @__PURE__ */ t.jsx(Xr, { size: 20 }),
1168
1173
  title: "信息",
1169
1174
  onClick: () => {
1170
- if (l) {
1171
- l(s.data);
1175
+ if (s) {
1176
+ s(i.data);
1172
1177
  return;
1173
1178
  }
1174
1179
  N({
1175
- ...s.data,
1176
- pageX: s.pageX,
1177
- pageY: s.pageY
1178
- }), p();
1180
+ ...i.data,
1181
+ pageX: i.pageX,
1182
+ pageY: i.pageY
1183
+ }), v();
1179
1184
  }
1180
1185
  }
1181
1186
  ),
1182
- i && /* @__PURE__ */ o.jsx(
1183
- Ae,
1187
+ l && /* @__PURE__ */ t.jsx(
1188
+ Be,
1184
1189
  {
1185
- icon: /* @__PURE__ */ o.jsx(Xr, { size: 20 }),
1190
+ icon: /* @__PURE__ */ t.jsx(qr, { size: 20 }),
1186
1191
  title: "移除",
1187
1192
  onClick: () => {
1188
1193
  if (b) {
1189
- b(s.data, M);
1194
+ b(i.data, _);
1190
1195
  return;
1191
1196
  }
1192
- _(null), M(s.data.id);
1197
+ I(null), _(i.data.id);
1193
1198
  }
1194
1199
  }
1195
1200
  )
@@ -1199,13 +1204,13 @@ const mr = ar({
1199
1204
  ]
1200
1205
  }
1201
1206
  ) });
1202
- }, Dt = (d) => {
1203
- const { data: r, noLetters: i = !1 } = d, { contextMenuFuns: a } = ve(), { itemIconBuilder: g, theme: l, contextMenu: y } = me(), { light: b, dark: s } = ie.getTheme(l), { data: _ = {} } = r, { name: p } = _;
1204
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1205
- /* @__PURE__ */ o.jsx(
1207
+ }, Bo = (g) => {
1208
+ const { data: r, noLetters: l = !1 } = g, { contextMenuFuns: a } = be(), { itemIconBuilder: m, theme: s, contextMenu: f } = me(), { light: b, dark: i } = ie.getTheme(s), { data: I = {} } = r, { name: v } = I;
1209
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1210
+ /* @__PURE__ */ t.jsx(
1206
1211
  A.div,
1207
1212
  {
1208
- className: u`
1213
+ className: d`
1209
1214
  width: 4rem;
1210
1215
  height: 4rem;
1211
1216
  background-color: ${b.itemIconBackgroundColor};
@@ -1215,15 +1220,15 @@ const mr = ar({
1215
1220
  position: relative;
1216
1221
  overflow: hidden;
1217
1222
  @media (prefers-color-scheme: dark) {
1218
- background-color: ${s.itemIconBackgroundColor};
1219
- box-shadow: 0 0 0.5rem ${s.itemIconShadowColor};
1223
+ background-color: ${i.itemIconBackgroundColor};
1224
+ box-shadow: 0 0 0.5rem ${i.itemIconShadowColor};
1220
1225
  }
1221
1226
  `,
1222
1227
  whileTap: { scale: 0.9 },
1223
- children: /* @__PURE__ */ o.jsx(
1228
+ children: /* @__PURE__ */ t.jsx(
1224
1229
  "div",
1225
1230
  {
1226
- className: u`
1231
+ className: d`
1227
1232
  position: absolute;
1228
1233
  left: 0;
1229
1234
  top: 0;
@@ -1231,52 +1236,52 @@ const mr = ar({
1231
1236
  height: 100%;
1232
1237
  color: ${b.itemNameColor};
1233
1238
  @media (prefers-color-scheme: dark) {
1234
- color: ${s.itemNameColor};
1239
+ color: ${i.itemNameColor};
1235
1240
  }
1236
1241
  `,
1237
- ...a(r, y !== !1),
1238
- children: g == null ? void 0 : g(r)
1242
+ ...a(r, f !== !1),
1243
+ children: m == null ? void 0 : m(r)
1239
1244
  }
1240
1245
  )
1241
1246
  }
1242
1247
  ),
1243
- /* @__PURE__ */ o.jsx(
1248
+ /* @__PURE__ */ t.jsx(
1244
1249
  A.p,
1245
1250
  {
1246
- className: U(
1247
- u`
1251
+ className: z(
1252
+ d`
1248
1253
  text-align: center;
1249
1254
  margin-top: 0.25rem;
1250
1255
  margin-bottom: 0;
1251
1256
  color: ${b.itemNameColor};
1252
1257
  @media (prefers-color-scheme: dark) {
1253
- color: ${s.itemNameColor};
1258
+ color: ${i.itemNameColor};
1254
1259
  }
1255
1260
  `,
1256
- i && u`
1261
+ l && d`
1257
1262
  color: transparent;
1258
1263
  `
1259
1264
  ),
1260
- children: p
1265
+ children: v
1261
1266
  }
1262
1267
  )
1263
1268
  ] });
1264
- }, Ye = (d) => {
1269
+ }, ze = (g) => {
1265
1270
  const {
1266
1271
  data: r,
1267
- className: i,
1272
+ className: l,
1268
1273
  itemIndex: a,
1269
- onClick: g,
1270
- disabledDrag: l = !1,
1271
- children: y,
1274
+ onClick: m,
1275
+ disabledDrag: s = !1,
1276
+ children: f,
1272
1277
  parentIds: b,
1273
- childrenLength: s
1274
- } = d, { contextMenu: _, setContextMenu: p } = ve(), { contextMenu: N } = me();
1275
- return /* @__PURE__ */ o.jsx(
1276
- Ur,
1278
+ childrenLength: i
1279
+ } = g, { contextMenu: I, setContextMenu: v } = be(), { contextMenu: N } = me();
1280
+ return /* @__PURE__ */ t.jsx(
1281
+ Vr,
1277
1282
  {
1278
1283
  placement: "bottom",
1279
- overlayClassName: u`
1284
+ overlayClassName: d`
1280
1285
  background-color: transparent;
1281
1286
  .rc-tooltip-inner {
1282
1287
  background-color: transparent;
@@ -1284,68 +1289,68 @@ const mr = ar({
1284
1289
  border: none;
1285
1290
  }
1286
1291
  `,
1287
- overlay: /* @__PURE__ */ o.jsx(Pt, { ...N }),
1288
- visible: (_ == null ? void 0 : _.data.id) === r.id,
1289
- onVisibleChange: (M) => {
1290
- M || p(null);
1292
+ overlay: /* @__PURE__ */ t.jsx(Ao, { ...N }),
1293
+ visible: (I == null ? void 0 : I.data.id) === r.id,
1294
+ onVisibleChange: (_) => {
1295
+ _ || v(null);
1291
1296
  },
1292
1297
  destroyTooltipOnHide: !0,
1293
- children: /* @__PURE__ */ o.jsx(
1298
+ children: /* @__PURE__ */ t.jsx(
1294
1299
  A.div,
1295
1300
  {
1296
1301
  "data-id": r.id,
1297
1302
  "data-index": a,
1298
1303
  "data-parent-ids": b == null ? void 0 : b.join(","),
1299
- "data-children-length": s,
1300
- onClick: () => g == null ? void 0 : g(r),
1301
- className: U(l && "drag-disabled", i),
1302
- children: y ?? /* @__PURE__ */ o.jsx(Dt, { ...d })
1304
+ "data-children-length": i,
1305
+ onClick: () => m == null ? void 0 : m(r),
1306
+ className: z(s && "drag-disabled", l),
1307
+ children: f ?? /* @__PURE__ */ t.jsx(Bo, { ...g })
1303
1308
  }
1304
1309
  )
1305
1310
  }
1306
1311
  );
1307
- }, $t = (d) => {
1312
+ }, Lo = (g) => {
1308
1313
  const {
1309
1314
  data: r,
1310
- className: i,
1315
+ className: l,
1311
1316
  parentIds: a,
1312
- itemIndex: g,
1313
- onClick: l,
1314
- noLetters: y = !1
1315
- } = d, {
1317
+ itemIndex: m,
1318
+ onClick: s,
1319
+ noLetters: f = !1
1320
+ } = g, {
1316
1321
  contextMenuFuns: b,
1317
- setList: s,
1318
- setOpenGroupItemData: _,
1319
- longPressTriggered: p,
1322
+ setList: i,
1323
+ setOpenGroupItemData: I,
1324
+ longPressTriggered: v,
1320
1325
  moveItemId: N,
1321
- moveTargetId: M,
1322
- setMoveTargetId: V,
1323
- listStatus: Y
1324
- } = ve(), { itemIconBuilder: f, theme: h, contextMenu: T } = me(), { light: m, dark: G } = ie.getTheme(h), { children: v, data: P, config: R } = r, { row: x = 1, col: C = 1 } = R ?? {}, X = {
1326
+ moveTargetId: _,
1327
+ setMoveTargetId: W,
1328
+ listStatus: V
1329
+ } = be(), { itemIconBuilder: h, theme: u, contextMenu: R } = me(), { light: p, dark: G } = ie.getTheme(u), { children: k, data: P, config: E } = r, { row: x = 1, col: y = 1 } = E ?? {}, X = {
1325
1330
  visible: { opacity: 1, scale: 1 },
1326
1331
  hidden: { opacity: 0, scale: 0.95 }
1327
- }, ce = ((v == null ? void 0 : v.length) ?? 0) === 0, J = ce ? [r] : [...v ?? []].slice(0, 9), ge = Ee(() => N === r.id.toString(), [r.id, N]), q = Ee(() => M === r.id, [r.id, M]), re = u`
1332
+ }, ce = ((k == null ? void 0 : k.length) ?? 0) === 0, H = ce ? [r] : [...k ?? []].slice(0, 9), pe = Ee(() => N === r.id.toString(), [r.id, N]), q = Ee(() => _ === r.id, [r.id, _]), re = d`
1328
1333
  overflow: hidden;
1329
1334
  cursor: pointer;
1330
- background-color: ${m.itemIconBackgroundColor};
1331
- box-shadow: 0 0 0.5rem ${m.itemIconShadowColor};
1335
+ background-color: ${p.itemIconBackgroundColor};
1336
+ box-shadow: 0 0 0.5rem ${p.itemIconShadowColor};
1332
1337
  @media (prefers-color-scheme: dark) {
1333
1338
  background-color: ${G.itemIconBackgroundColor};
1334
1339
  box-shadow: 0 0 0.5rem ${G.itemIconShadowColor};
1335
1340
  }
1336
- `, se = () => {
1341
+ `, le = () => {
1337
1342
  if (ce)
1338
- return /* @__PURE__ */ o.jsx(
1343
+ return /* @__PURE__ */ t.jsx(
1339
1344
  A.div,
1340
1345
  {
1341
- className: U(
1346
+ className: z(
1342
1347
  "sortable-group-item",
1343
- u`
1348
+ d`
1344
1349
  overflow: hidden;
1345
1350
  cursor: pointer;
1346
1351
  width: 100%;
1347
1352
  height: 100%;
1348
- background-color: ${m.itemIconBackgroundColor};
1353
+ background-color: ${p.itemIconBackgroundColor};
1349
1354
  position: absolute;
1350
1355
  left: 0;
1351
1356
  top: 0;
@@ -1356,50 +1361,50 @@ const mr = ar({
1356
1361
  `
1357
1362
  ),
1358
1363
  onClick: (B) => {
1359
- B.stopPropagation(), l == null || l(r);
1364
+ B.stopPropagation(), s == null || s(r);
1360
1365
  },
1361
- children: f == null ? void 0 : f(r)
1366
+ children: h == null ? void 0 : h(r)
1362
1367
  }
1363
1368
  );
1364
- if (x === 1 && C === 1 || x === 2 && C === 2)
1365
- return /* @__PURE__ */ o.jsx(
1369
+ if (x === 1 && y === 1 || x === 2 && y === 2)
1370
+ return /* @__PURE__ */ t.jsx(
1366
1371
  A.div,
1367
1372
  {
1368
- className: u`
1373
+ className: d`
1369
1374
  display: grid;
1370
1375
  width: 100%;
1371
1376
  height: 100%;
1372
1377
  grid-template-columns: repeat(3, minmax(0, 1fr));
1373
1378
  grid-template-rows: repeat(3, minmax(0, 1fr));
1374
- padding: ${C === 1 ? "0.125rem" : "0.25rem"};
1375
- gap: ${C === 1 ? "0.125rem" : "0.5rem"};
1379
+ padding: ${y === 1 ? "0.125rem" : "0.25rem"};
1380
+ gap: ${y === 1 ? "0.125rem" : "0.5rem"};
1376
1381
  place-items: center;
1377
1382
  `,
1378
- children: J == null ? void 0 : J.slice(0, 9).map((B) => /* @__PURE__ */ o.jsx(
1383
+ children: H == null ? void 0 : H.slice(0, 9).map((B) => /* @__PURE__ */ t.jsx(
1379
1384
  A.div,
1380
1385
  {
1381
- className: U(
1386
+ className: z(
1382
1387
  re,
1383
- u`
1384
- border-radius: ${C === 1 ? "0.25rem" : "0.5rem"};
1388
+ d`
1389
+ border-radius: ${y === 1 ? "0.25rem" : "0.5rem"};
1385
1390
  width: 100%;
1386
1391
  height: 100%;
1387
1392
  `
1388
1393
  ),
1389
1394
  onClick: (ne) => {
1390
- ne.stopPropagation(), l == null || l(B);
1395
+ ne.stopPropagation(), s == null || s(B);
1391
1396
  },
1392
- children: f == null ? void 0 : f(B)
1397
+ children: h == null ? void 0 : h(B)
1393
1398
  },
1394
1399
  B.id
1395
1400
  ))
1396
1401
  }
1397
1402
  );
1398
- if (x === 1 && C === 2)
1399
- return /* @__PURE__ */ o.jsx(
1403
+ if (x === 1 && y === 2)
1404
+ return /* @__PURE__ */ t.jsx(
1400
1405
  A.div,
1401
1406
  {
1402
- className: u`
1407
+ className: d`
1403
1408
  display: grid;
1404
1409
  grid-template-columns: repeat(10, minmax(0, 1fr));
1405
1410
  grid-template-rows: repeat(4, minmax(0, 1fr));
@@ -1409,18 +1414,18 @@ const mr = ar({
1409
1414
  height: 52px;
1410
1415
  place-items: center;
1411
1416
  `,
1412
- children: J == null ? void 0 : J.slice(0, 4).map((B, ne) => /* @__PURE__ */ o.jsx(
1417
+ children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
1413
1418
  A.div,
1414
1419
  {
1415
- className: U(
1420
+ className: z(
1416
1421
  re,
1417
- ne < 2 ? u`
1422
+ ne < 2 ? d`
1418
1423
  width: 52px;
1419
1424
  height: 52px;
1420
1425
  border-radius: 0.5rem;
1421
1426
  grid-column: span 4 / span 4;
1422
1427
  grid-row: span 4 / span 4;
1423
- ` : u`
1428
+ ` : d`
1424
1429
  width: 1.5rem;
1425
1430
  height: 1.5rem;
1426
1431
  border-radius: 0.375rem;
@@ -1428,20 +1433,20 @@ const mr = ar({
1428
1433
  grid-row: span 2 / span 2;
1429
1434
  `
1430
1435
  ),
1431
- onClick: (le) => {
1432
- ne > 2 || (le.stopPropagation(), l == null || l(B));
1436
+ onClick: (se) => {
1437
+ ne > 2 || (se.stopPropagation(), s == null || s(B));
1433
1438
  },
1434
- children: f == null ? void 0 : f(B)
1439
+ children: h == null ? void 0 : h(B)
1435
1440
  },
1436
1441
  B.id
1437
1442
  ))
1438
1443
  }
1439
1444
  );
1440
- if (x === 2 && C === 1)
1441
- return /* @__PURE__ */ o.jsx(
1445
+ if (x === 2 && y === 1)
1446
+ return /* @__PURE__ */ t.jsx(
1442
1447
  A.div,
1443
1448
  {
1444
- className: u`
1449
+ className: d`
1445
1450
  display: grid;
1446
1451
  grid-template-columns: repeat(4, minmax(0, 1fr));
1447
1452
  grid-template-rows: repeat(10, minmax(0, 1fr));
@@ -1451,61 +1456,61 @@ const mr = ar({
1451
1456
  height: 144px;
1452
1457
  place-items: center;
1453
1458
  `,
1454
- children: J == null ? void 0 : J.slice(0, 4).map((B, ne) => /* @__PURE__ */ o.jsx(
1459
+ children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
1455
1460
  A.div,
1456
1461
  {
1457
- className: U(
1462
+ className: z(
1458
1463
  re,
1459
- ne < 2 ? u`
1464
+ ne < 2 ? d`
1460
1465
  width: 52px;
1461
1466
  height: 52px;
1462
1467
  border-radius: 0.5rem;
1463
1468
  grid-column: span 4 / span 4;
1464
1469
  grid-row: span 4 / span 4;
1465
- ` : u`
1470
+ ` : d`
1466
1471
  width: 1.5rem;
1467
1472
  height: 1.5rem;
1468
1473
  grid-column: span 2 / span 2;
1469
1474
  grid-row: span 2 / span 2;
1470
1475
  `
1471
1476
  ),
1472
- onClick: (le) => {
1473
- ne > 2 || (le.stopPropagation(), l == null || l(B));
1477
+ onClick: (se) => {
1478
+ ne > 2 || (se.stopPropagation(), s == null || s(B));
1474
1479
  },
1475
- children: f == null ? void 0 : f(B)
1480
+ children: h == null ? void 0 : h(B)
1476
1481
  },
1477
1482
  B.id
1478
1483
  ))
1479
1484
  }
1480
1485
  );
1481
1486
  };
1482
- return /* @__PURE__ */ o.jsxs(
1483
- Ye,
1487
+ return /* @__PURE__ */ t.jsxs(
1488
+ ze,
1484
1489
  {
1485
1490
  data: r,
1486
- itemIndex: g,
1491
+ itemIndex: m,
1487
1492
  parentIds: a,
1488
- childrenLength: v == null ? void 0 : v.length,
1489
- className: U(
1490
- u`
1493
+ childrenLength: k == null ? void 0 : k.length,
1494
+ className: z(
1495
+ d`
1491
1496
  grid-row: span ${x};
1492
- grid-column: span ${C};
1497
+ grid-column: span ${y};
1493
1498
  `,
1494
- i
1499
+ l
1495
1500
  ),
1496
1501
  children: [
1497
- /* @__PURE__ */ o.jsx(
1502
+ /* @__PURE__ */ t.jsx(
1498
1503
  A.div,
1499
1504
  {
1500
1505
  whileTap: { scale: 0.9 },
1501
- className: U(
1506
+ className: z(
1502
1507
  q ? "!scale-110" : "",
1503
- u`
1508
+ d`
1504
1509
  cursor: pointer;
1505
1510
  position: relative;
1506
1511
  border-radius: 0.75rem;
1507
- background-color: ${m.groupItemIconBackgroundColor};
1508
- box-shadow: 0 0 0.5rem ${m.groupItemIconShadowColor};
1512
+ background-color: ${p.groupItemIconBackgroundColor};
1513
+ box-shadow: 0 0 0.5rem ${p.groupItemIconShadowColor};
1509
1514
  @media (prefers-color-scheme: dark) {
1510
1515
  background-color: ${G.groupItemIconBackgroundColor};
1511
1516
  box-shadow: 0 0 0.5rem ${G.groupItemIconShadowColor};
@@ -1513,18 +1518,18 @@ const mr = ar({
1513
1518
  /* overflow: hidden; */
1514
1519
  transition: all 0.3s;
1515
1520
  margin: 0 auto;
1516
- width: ${C * 64 + 32 * (C - 1)}px;
1521
+ width: ${y * 64 + 32 * (y - 1)}px;
1517
1522
  height: ${x * 64 + 32 * (x - 1)}px;
1518
1523
  `
1519
1524
  ),
1520
1525
  onClick: (B) => {
1521
- !ce && !p && (r.parentIds = a, r.pageX = B.pageX, r.pageY = B.pageY, _(r));
1526
+ !ce && !v && (r.parentIds = a, r.pageX = B.pageX, r.pageY = B.pageY, I(r));
1522
1527
  },
1523
- ...b(r, T !== !1),
1524
- children: /* @__PURE__ */ o.jsxs(
1528
+ ...b(r, R !== !1),
1529
+ children: /* @__PURE__ */ t.jsxs(
1525
1530
  A.div,
1526
1531
  {
1527
- className: u`
1532
+ className: d`
1528
1533
  position: relative;
1529
1534
  width: 100%;
1530
1535
  height: 100%;
@@ -1534,20 +1539,20 @@ const mr = ar({
1534
1539
  padding: 0.375rem;
1535
1540
  `,
1536
1541
  children: [
1537
- se(),
1538
- /* @__PURE__ */ o.jsx(
1542
+ le(),
1543
+ /* @__PURE__ */ t.jsx(
1539
1544
  Fe,
1540
1545
  {
1541
- className: U(
1546
+ className: z(
1542
1547
  "sortable-group-item",
1543
- u`
1548
+ d`
1544
1549
  position: absolute;
1545
1550
  cursor: pointer;
1546
1551
  left: 0.375rem;
1547
1552
  top: 0.375rem;
1548
1553
  width: calc(100% - 0.75rem);
1549
1554
  height: calc(100% - 0.75rem);
1550
- pointer-events: ${Y === null ? "none" : "auto"};
1555
+ pointer-events: ${V === null ? "none" : "auto"};
1551
1556
  > * {
1552
1557
  opacity: 0;
1553
1558
  }
@@ -1556,12 +1561,12 @@ const mr = ar({
1556
1561
  group: { name: "nested", pull: !1, put: !0 },
1557
1562
  animation: 150,
1558
1563
  fallbackOnBody: !0,
1559
- list: v ?? [],
1560
- setList: (B) => s(B, a),
1564
+ list: k ?? [],
1565
+ setList: (B) => i(B, a),
1561
1566
  filter: () => !0,
1562
1567
  "data-id": r.id,
1563
1568
  onChange: () => {
1564
- V(r.id);
1569
+ W(r.id);
1565
1570
  }
1566
1571
  }
1567
1572
  )
@@ -1570,32 +1575,32 @@ const mr = ar({
1570
1575
  )
1571
1576
  }
1572
1577
  ),
1573
- /* @__PURE__ */ o.jsx(
1578
+ /* @__PURE__ */ t.jsx(
1574
1579
  A.p,
1575
1580
  {
1576
- className: U(
1577
- u`
1581
+ className: z(
1582
+ d`
1578
1583
  text-align: center;
1579
1584
  margin-top: 0.25rem;
1580
1585
  margin-bottom: 0;
1581
- color: ${m.itemNameColor};
1586
+ color: ${p.itemNameColor};
1582
1587
  @media (prefers-color-scheme: dark) {
1583
1588
  color: ${G.itemNameColor};
1584
1589
  }
1585
1590
  `,
1586
- y && u`
1591
+ f && d`
1587
1592
  color: transparent;
1588
1593
  `
1589
1594
  ),
1590
1595
  variants: X,
1591
- animate: ge ? "hidden" : "visible",
1596
+ animate: pe ? "hidden" : "visible",
1592
1597
  children: (P == null ? void 0 : P.name) ?? "文件夹"
1593
1598
  }
1594
1599
  )
1595
1600
  ]
1596
1601
  }
1597
1602
  );
1598
- }, gr = u`
1603
+ }, pr = d`
1599
1604
  padding: 8px;
1600
1605
  transition: all 0.2s;
1601
1606
  > div {
@@ -1607,24 +1612,24 @@ const mr = ar({
1607
1612
  transition: all 0.2s;
1608
1613
  }
1609
1614
  }
1610
- `, Nt = (d) => {
1611
- const { data: r, onClose: i, onItemClick: a } = d, {
1612
- list: g,
1613
- setList: l,
1614
- setListStatus: y,
1615
+ `, Fo = (g) => {
1616
+ const { data: r, onClose: l, onItemClick: a } = g, {
1617
+ list: m,
1618
+ setList: s,
1619
+ setListStatus: f,
1615
1620
  setMoveItemId: b,
1616
- setMoveTargetId: s,
1617
- updateItem: _
1618
- } = ve(), { theme: p } = me(), { light: N, dark: M } = ie.getTheme(p), [V, Y] = oe("文件夹"), f = [...(r == null ? void 0 : r.children) ?? []];
1619
- return ye(() => {
1620
- var h;
1621
- r && Y((h = r.data) == null ? void 0 : h.name);
1622
- }, [r]), /* @__PURE__ */ o.jsx(
1623
- sr,
1621
+ setMoveTargetId: i,
1622
+ updateItem: I
1623
+ } = be(), { theme: v } = me(), { light: N, dark: _ } = ie.getTheme(v), [W, V] = te("文件夹"), h = [...(r == null ? void 0 : r.children) ?? []];
1624
+ return we(() => {
1625
+ var u;
1626
+ r && V((u = r.data) == null ? void 0 : u.name);
1627
+ }, [r]), /* @__PURE__ */ t.jsx(
1628
+ lr,
1624
1629
  {
1625
1630
  visible: !!r,
1626
1631
  onClose: () => {
1627
- i();
1632
+ l();
1628
1633
  },
1629
1634
  animation: "zoom",
1630
1635
  maskAnimation: "fade",
@@ -1632,10 +1637,10 @@ const mr = ar({
1632
1637
  x: r == null ? void 0 : r.pageX,
1633
1638
  y: r == null ? void 0 : r.pageY
1634
1639
  } : null,
1635
- title: /* @__PURE__ */ o.jsx(
1640
+ title: /* @__PURE__ */ t.jsx(
1636
1641
  "input",
1637
1642
  {
1638
- className: u`
1643
+ className: d`
1639
1644
  background-color: transparent;
1640
1645
  border-style: none;
1641
1646
  text-align: center;
@@ -1649,23 +1654,23 @@ const mr = ar({
1649
1654
  outline: none;
1650
1655
  }
1651
1656
  `,
1652
- value: V,
1653
- onChange: (h) => {
1654
- Y(h.target.value);
1657
+ value: W,
1658
+ onChange: (u) => {
1659
+ V(u.target.value);
1655
1660
  },
1656
1661
  onBlur: () => {
1657
- r && _(r.id, {
1662
+ r && I(r.id, {
1658
1663
  ...r.data,
1659
- name: V
1664
+ name: W
1660
1665
  });
1661
1666
  }
1662
1667
  }
1663
1668
  ),
1664
1669
  footer: null,
1665
1670
  closable: !1,
1666
- className: U(
1671
+ className: z(
1667
1672
  "group-item-modal",
1668
- u`
1673
+ d`
1669
1674
  .rc-dialog-content {
1670
1675
  background-color: transparent;
1671
1676
  box-shadow: none;
@@ -1682,7 +1687,7 @@ const mr = ar({
1682
1687
  .rc-dialog-body {
1683
1688
  background-color: ${N.groupItemModalBackgroundColor};
1684
1689
  @media (prefers-color-scheme: dark) {
1685
- background-color: ${M.groupItemModalBackgroundColor};
1690
+ background-color: ${_.groupItemModalBackgroundColor};
1686
1691
  }
1687
1692
  border-radius: 0.5rem;
1688
1693
  overflow: hidden;
@@ -1692,24 +1697,24 @@ const mr = ar({
1692
1697
  ),
1693
1698
  width: 600,
1694
1699
  destroyOnClose: !0,
1695
- children: /* @__PURE__ */ o.jsx(
1700
+ children: /* @__PURE__ */ t.jsx(
1696
1701
  "div",
1697
1702
  {
1698
- className: u`
1703
+ className: d`
1699
1704
  overflow-y: auto;
1700
1705
  max-height: 60vh;
1701
1706
  padding: 1.25rem 0;
1702
1707
  `,
1703
- onDragLeave: (h) => {
1704
- const T = h.relatedTarget;
1705
- T && (h.currentTarget.contains(T) || setTimeout(() => {
1706
- i();
1708
+ onDragLeave: (u) => {
1709
+ const R = u.relatedTarget;
1710
+ R && (u.currentTarget.contains(R) || setTimeout(() => {
1711
+ l();
1707
1712
  }, 500));
1708
1713
  },
1709
- children: /* @__PURE__ */ o.jsx(
1714
+ children: /* @__PURE__ */ t.jsx(
1710
1715
  Fe,
1711
1716
  {
1712
- className: u`
1717
+ className: d`
1713
1718
  display: grid;
1714
1719
  gap: 1rem;
1715
1720
  place-items: center;
@@ -1721,28 +1726,28 @@ const mr = ar({
1721
1726
  animation: 150,
1722
1727
  fallbackOnBody: !0,
1723
1728
  list: (r == null ? void 0 : r.children) ?? [],
1724
- setList: (h) => {
1725
- var G, v;
1726
- const T = h.map((P) => P.id), m = (v = (G = g.find((P) => P.id === (r == null ? void 0 : r.id))) == null ? void 0 : G.children) == null ? void 0 : v.map((P) => P.id);
1727
- T.length === (m == null ? void 0 : m.length) && T.every((P, R) => P === m[R]) || T.length < ((m == null ? void 0 : m.length) ?? 0) || l(h, [...(r == null ? void 0 : r.parentIds) ?? [], r == null ? void 0 : r.id]);
1729
+ setList: (u) => {
1730
+ var G, k;
1731
+ const R = u.map((P) => P.id), p = (k = (G = m.find((P) => P.id === (r == null ? void 0 : r.id))) == null ? void 0 : G.children) == null ? void 0 : k.map((P) => P.id);
1732
+ R.length === (p == null ? void 0 : p.length) && R.every((P, E) => P === p[E]) || R.length < ((p == null ? void 0 : p.length) ?? 0) || s(u, [...(r == null ? void 0 : r.parentIds) ?? [], r == null ? void 0 : r.id]);
1728
1733
  },
1729
- onMove: () => (s(null), y("onMove"), !0),
1730
- onStart: (h) => {
1731
- const T = h.item.dataset;
1732
- T != null && T.id && b(T.id), y("onMove");
1734
+ onMove: () => (i(null), f("onMove"), !0),
1735
+ onStart: (u) => {
1736
+ const R = u.item.dataset;
1737
+ R != null && R.id && b(R.id), f("onMove");
1733
1738
  },
1734
1739
  onEnd: () => {
1735
- b(null), s(null), y(null);
1740
+ b(null), i(null), f(null);
1736
1741
  },
1737
- ghostClass: gr,
1738
- children: f.map((h, T) => /* @__PURE__ */ o.jsx(
1739
- Ye,
1742
+ ghostClass: pr,
1743
+ children: h.map((u, R) => /* @__PURE__ */ t.jsx(
1744
+ ze,
1740
1745
  {
1741
- data: h,
1742
- itemIndex: T,
1746
+ data: u,
1747
+ itemIndex: R,
1743
1748
  onClick: a
1744
1749
  },
1745
- h.id
1750
+ u.id
1746
1751
  ))
1747
1752
  }
1748
1753
  )
@@ -1750,15 +1755,15 @@ const mr = ar({
1750
1755
  )
1751
1756
  }
1752
1757
  );
1753
- }, Ot = (d) => {
1758
+ }, zo = (g) => {
1754
1759
  var a;
1755
- const { data: r, onClose: i } = d;
1756
- return /* @__PURE__ */ o.jsx(
1757
- sr,
1760
+ const { data: r, onClose: l } = g;
1761
+ return /* @__PURE__ */ t.jsx(
1762
+ lr,
1758
1763
  {
1759
1764
  visible: !!r,
1760
1765
  onClose: () => {
1761
- i();
1766
+ l();
1762
1767
  },
1763
1768
  animation: "zoom",
1764
1769
  maskAnimation: "fade",
@@ -1768,32 +1773,32 @@ const mr = ar({
1768
1773
  } : null,
1769
1774
  footer: null,
1770
1775
  title: ((a = r == null ? void 0 : r.data) == null ? void 0 : a.name) ?? "信息",
1771
- children: r && /* @__PURE__ */ o.jsxs("div", { children: [
1772
- /* @__PURE__ */ o.jsx("div", { className: "mb-2", children: "开发者信息" }),
1773
- /* @__PURE__ */ o.jsx("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ o.jsx(qr, { src: r, theme: "monokai" }) })
1776
+ children: r && /* @__PURE__ */ t.jsxs("div", { children: [
1777
+ /* @__PURE__ */ t.jsx("div", { className: "mb-2", children: "开发者信息" }),
1778
+ /* @__PURE__ */ t.jsx("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ t.jsx(Hr, { src: r, theme: "monokai" }) })
1774
1779
  ] })
1775
1780
  }
1776
1781
  );
1777
- }, At = (d) => {
1782
+ }, Yo = (g) => {
1778
1783
  const {
1779
1784
  pagination: r = { position: "bottom" },
1780
- className: i,
1785
+ className: l,
1781
1786
  sliderProps: a,
1782
- sliderRef: g,
1783
- onItemClick: l
1784
- } = d, y = Be(null), b = Be(null), {
1785
- list: s,
1786
- setList: _,
1787
- setListStatus: p,
1787
+ sliderRef: m,
1788
+ onItemClick: s
1789
+ } = g, f = Me(null), b = Me(null), {
1790
+ list: i,
1791
+ setList: I,
1792
+ setListStatus: v,
1788
1793
  showInfoItemData: N,
1789
- setShowInfoItemData: M,
1790
- openGroupItemData: V,
1791
- setOpenGroupItemData: Y,
1792
- setMoveItemId: f,
1793
- setMoveTargetId: h,
1794
- addItem: T
1795
- } = ve(), { pagingDotBuilder: m, pagingDotsBuilder: G, itemBuilder: v } = me(), P = Ee(() => r === !1 ? {} : {
1796
- top: u`
1794
+ setShowInfoItemData: _,
1795
+ openGroupItemData: W,
1796
+ setOpenGroupItemData: V,
1797
+ setMoveItemId: h,
1798
+ setMoveTargetId: u,
1799
+ addItem: R
1800
+ } = be(), { pagingDotBuilder: p, pagingDotsBuilder: G, itemBuilder: k } = me(), P = Ee(() => r === !1 ? {} : {
1801
+ top: d`
1797
1802
  display: flex;
1798
1803
  flex-direction: column;
1799
1804
  .slick-list {
@@ -1803,12 +1808,12 @@ const mr = ar({
1803
1808
  position: static;
1804
1809
  }
1805
1810
  `,
1806
- bottom: u`
1811
+ bottom: d`
1807
1812
  .slick-dots {
1808
1813
  position: static;
1809
1814
  }
1810
1815
  `,
1811
- left: u`
1816
+ left: d`
1812
1817
  .slick-dots {
1813
1818
  position: absolute;
1814
1819
  width: auto;
@@ -1824,7 +1829,7 @@ const mr = ar({
1824
1829
  }
1825
1830
  }
1826
1831
  `,
1827
- right: u`
1832
+ right: d`
1828
1833
  .slick-dots {
1829
1834
  position: absolute;
1830
1835
  width: auto;
@@ -1841,21 +1846,21 @@ const mr = ar({
1841
1846
  }
1842
1847
  `
1843
1848
  }[r.position ?? "bottom"], [r]);
1844
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1845
- /* @__PURE__ */ o.jsx(
1846
- Lr,
1849
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1850
+ /* @__PURE__ */ t.jsx(
1851
+ Fr,
1847
1852
  {
1848
1853
  useCSS: !0,
1849
1854
  useTransform: !0,
1850
1855
  arrows: !1,
1851
- ref: g ?? y,
1856
+ ref: m ?? f,
1852
1857
  infinite: !1,
1853
1858
  dots: !0,
1854
1859
  touchMove: !1,
1855
1860
  lazyLoad: "anticipated",
1856
- className: U(
1861
+ className: z(
1857
1862
  P,
1858
- u`
1863
+ d`
1859
1864
  .slick-track {
1860
1865
  display: flex;
1861
1866
  align-items: stretch;
@@ -1871,28 +1876,28 @@ const mr = ar({
1871
1876
  }
1872
1877
  }
1873
1878
  `,
1874
- i
1879
+ l
1875
1880
  ),
1876
- customPaging: (R) => {
1877
- var x, C;
1878
- return m ? m(s[R], R) : /* @__PURE__ */ o.jsx(
1881
+ customPaging: (E) => {
1882
+ var x, y;
1883
+ return p ? p(i[E], E) : /* @__PURE__ */ t.jsx(
1879
1884
  "div",
1880
1885
  {
1881
1886
  onDragEnter: () => {
1882
1887
  var X;
1883
- (X = (g ?? y).current) == null || X.slickGoTo(R);
1888
+ (X = (m ?? f).current) == null || X.slickGoTo(E);
1884
1889
  },
1885
- children: (C = (x = s[R]) == null ? void 0 : x.data) == null ? void 0 : C.name
1890
+ children: (y = (x = i[E]) == null ? void 0 : x.data) == null ? void 0 : y.name
1886
1891
  }
1887
1892
  );
1888
1893
  },
1889
- appendDots: (R) => G ? G(R) : r === !1 ? /* @__PURE__ */ o.jsx("div", {}) : /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
1894
+ appendDots: (E) => G ? G(E) : r === !1 ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1890
1895
  "ul",
1891
1896
  {
1892
1897
  ref: b,
1893
- className: U(
1898
+ className: z(
1894
1899
  "slick-dots-default",
1895
- u`
1900
+ d`
1896
1901
  padding: 0.5rem;
1897
1902
  display: inline-flex;
1898
1903
  justify-content: center;
@@ -1913,19 +1918,19 @@ const mr = ar({
1913
1918
  }
1914
1919
  `
1915
1920
  ),
1916
- children: R
1921
+ children: E
1917
1922
  }
1918
1923
  ) }),
1919
1924
  ...a,
1920
- children: s.map((R) => /* @__PURE__ */ o.jsx(
1925
+ children: i.map((E) => /* @__PURE__ */ t.jsx(
1921
1926
  "div",
1922
1927
  {
1923
1928
  onDrop: (x) => {
1924
1929
  x.preventDefault();
1925
- const C = x.dataTransfer.getData("text/plain");
1926
- if (C !== "")
1930
+ const y = x.dataTransfer.getData("text/plain");
1931
+ if (y !== "")
1927
1932
  try {
1928
- T(JSON.parse(C), [R.id]);
1933
+ R(JSON.parse(y), [E.id]);
1929
1934
  } catch (X) {
1930
1935
  console.log("drag error", X);
1931
1936
  }
@@ -1933,11 +1938,11 @@ const mr = ar({
1933
1938
  onDragOver: (x) => {
1934
1939
  x.preventDefault();
1935
1940
  },
1936
- children: /* @__PURE__ */ o.jsx(
1941
+ children: /* @__PURE__ */ t.jsx(
1937
1942
  Fe,
1938
1943
  {
1939
- className: U(
1940
- u`
1944
+ className: z(
1945
+ d`
1941
1946
  display: grid;
1942
1947
  transition: all 0.3s;
1943
1948
  grid-template-columns: repeat(auto-fill, 96px);
@@ -1952,47 +1957,47 @@ const mr = ar({
1952
1957
  fallbackOnBody: !0,
1953
1958
  swapThreshold: 0.65,
1954
1959
  group: "nested",
1955
- list: R.children ?? [],
1956
- setList: (x) => _(x, [R.id]),
1960
+ list: E.children ?? [],
1961
+ setList: (x) => I(x, [E.id]),
1957
1962
  filter: ".drag-disabled",
1958
1963
  onMove: (x) => {
1959
- p("onMove");
1960
- const { dragged: C, related: X } = x, ce = C.dataset, J = X.dataset;
1961
- return h(null), !((Object.keys(J).length === 0 || J.parentIds) && Number(ce.childrenLength) > 0 && X.classList.contains("sortable-group-item"));
1964
+ v("onMove");
1965
+ const { dragged: y, related: X } = x, ce = y.dataset, H = X.dataset;
1966
+ return u(null), !((Object.keys(H).length === 0 || H.parentIds) && Number(ce.childrenLength) > 0 && X.classList.contains("sortable-group-item"));
1962
1967
  },
1963
1968
  onStart: (x) => {
1964
- const C = x.item.dataset;
1965
- C != null && C.id && f(C.id), p("onMove");
1969
+ const y = x.item.dataset;
1970
+ y != null && y.id && h(y.id), v("onMove");
1966
1971
  },
1967
1972
  onEnd: () => {
1968
- f(null), h(null), p(null);
1973
+ h(null), u(null), v(null);
1969
1974
  },
1970
- ghostClass: gr,
1971
- children: (R.children ?? []).map((x, C) => {
1975
+ ghostClass: pr,
1976
+ children: (E.children ?? []).map((x, y) => {
1972
1977
  let X;
1973
- if (v)
1974
- return v(x);
1978
+ if (k)
1979
+ return k(x);
1975
1980
  switch (x.type) {
1976
1981
  case "group":
1977
1982
  case "app":
1978
- X = /* @__PURE__ */ o.jsx(
1979
- $t,
1983
+ X = /* @__PURE__ */ t.jsx(
1984
+ Lo,
1980
1985
  {
1981
1986
  data: x,
1982
- itemIndex: C,
1983
- parentIds: [R.id, x.id],
1984
- onClick: l
1987
+ itemIndex: y,
1988
+ parentIds: [E.id, x.id],
1989
+ onClick: s
1985
1990
  },
1986
1991
  x.id
1987
1992
  );
1988
1993
  break;
1989
1994
  default:
1990
- X = /* @__PURE__ */ o.jsx(
1991
- Ye,
1995
+ X = /* @__PURE__ */ t.jsx(
1996
+ ze,
1992
1997
  {
1993
1998
  data: x,
1994
- itemIndex: C,
1995
- onClick: l
1999
+ itemIndex: y,
2000
+ onClick: s
1996
2001
  },
1997
2002
  x.id
1998
2003
  );
@@ -2003,62 +2008,62 @@ const mr = ar({
2003
2008
  }
2004
2009
  )
2005
2010
  },
2006
- R.id
2011
+ E.id
2007
2012
  ))
2008
2013
  }
2009
2014
  ),
2010
- /* @__PURE__ */ o.jsx(
2011
- Ot,
2015
+ /* @__PURE__ */ t.jsx(
2016
+ zo,
2012
2017
  {
2013
2018
  data: N,
2014
2019
  onClose: () => {
2015
- M(null);
2020
+ _(null);
2016
2021
  }
2017
2022
  }
2018
2023
  ),
2019
- /* @__PURE__ */ o.jsx(
2020
- Nt,
2024
+ /* @__PURE__ */ t.jsx(
2025
+ Fo,
2021
2026
  {
2022
- data: V,
2027
+ data: W,
2023
2028
  onClose: () => {
2024
- Y(null);
2029
+ V(null);
2025
2030
  },
2026
- onItemClick: l
2031
+ onItemClick: s
2027
2032
  }
2028
2033
  )
2029
2034
  ] });
2030
- }, ro = (d) => {
2035
+ }, ft = (g) => {
2031
2036
  const {
2032
2037
  list: r,
2033
- onChange: i,
2038
+ onChange: l,
2034
2039
  storageKey: a,
2035
- enableCaching: g,
2036
- theme: l,
2037
- noLetters: y,
2040
+ enableCaching: m,
2041
+ theme: s,
2042
+ noLetters: f,
2038
2043
  contextMenu: b,
2039
- contextMenuBuilder: s,
2040
- itemBuilder: _,
2041
- itemIconBuilder: p,
2044
+ contextMenuBuilder: i,
2045
+ itemBuilder: I,
2046
+ itemIconBuilder: v,
2042
2047
  pagingDotBuilder: N,
2043
- pagingDotsBuilder: M,
2044
- ...V
2045
- } = d, Y = {
2048
+ pagingDotsBuilder: _,
2049
+ ...W
2050
+ } = g, V = {
2046
2051
  list: r,
2047
- onChange: i,
2052
+ onChange: l,
2048
2053
  storageKey: a,
2049
- enableCaching: g
2050
- }, f = {
2051
- theme: l,
2052
- noLetters: y,
2054
+ enableCaching: m
2055
+ }, h = {
2056
+ theme: s,
2057
+ noLetters: f,
2053
2058
  contextMenu: b,
2054
- pagingDotsBuilder: M,
2059
+ pagingDotsBuilder: _,
2055
2060
  pagingDotBuilder: N,
2056
- itemBuilder: _,
2057
- itemIconBuilder: p,
2058
- contextMenuBuilder: s
2061
+ itemBuilder: I,
2062
+ itemIconBuilder: v,
2063
+ contextMenuBuilder: i
2059
2064
  };
2060
- return /* @__PURE__ */ o.jsx(_t, { ...Y, children: /* @__PURE__ */ o.jsx(Rt, { ...f, children: /* @__PURE__ */ o.jsx(At, { ...V }) }) });
2061
- }, Bt = {
2065
+ return /* @__PURE__ */ t.jsx(No, { ...V, children: /* @__PURE__ */ t.jsx(Do, { ...h, children: /* @__PURE__ */ t.jsx(Yo, { ...W }) }) });
2066
+ }, Wo = {
2062
2067
  frontmatterEditor: {
2063
2068
  title: "编辑前置元数据",
2064
2069
  key: "键",
@@ -2175,29 +2180,628 @@ const mr = ar({
2175
2180
  image: {
2176
2181
  delete: "删除图片"
2177
2182
  }
2178
- }, Lt = (d, r, i) => {
2179
- const g = d.split(".").reduce(
2180
- (l, y) => typeof l == "string" ? l : l[y],
2181
- Bt
2183
+ }, Vo = (g, r, l) => {
2184
+ const m = g.split(".").reduce(
2185
+ (s, f) => typeof s == "string" ? s : s[f],
2186
+ Wo
2182
2187
  );
2183
- return typeof g != "string" ? r : i ? g.replace(/{{(.*?)}}/g, (l, y) => i[y]) : g;
2184
- };
2185
- function Ft(d) {
2186
- const r = d == null ? void 0 : d.rootNode;
2187
- return !r || r.getType() !== "directive" ? !1 : ["note", "tip", "danger", "info", "caution"].includes(
2188
- r.getMdastNode().name
2188
+ return typeof m != "string" ? r : l ? m.replace(/{{(.*?)}}/g, (s, f) => l[f]) : m;
2189
+ }, Uo = d`
2190
+ [class*="_toolbarRoot"] {
2191
+ flex-wrap: wrap;
2192
+ }
2193
+ [class*="_codeMirrorWrapper"] {
2194
+ padding: 0;
2195
+ [class*="_codeMirrorToolbar"] {
2196
+ position: static;
2197
+ background-color: var(--bgColor-muted);
2198
+ justify-content: flex-end;
2199
+ [class*="_iconButton"] {
2200
+ cursor: pointer;
2201
+ }
2202
+ }
2203
+ }
2204
+ [class*="_tableEditor"] {
2205
+ border-spacing: 0;
2206
+ border-collapse: collapse;
2207
+ width: 100%;
2208
+ display: table;
2209
+ th[data-tool-cell],
2210
+ td[data-tool-cell] {
2211
+ padding: 0;
2212
+ border: none;
2213
+ }
2214
+ tr {
2215
+ border-top: 0;
2216
+ }
2217
+ thead {
2218
+ th {
2219
+ padding: 0;
2220
+ border: none;
2221
+ }
2222
+ }
2223
+ tfoot {
2224
+ th {
2225
+ padding: 0;
2226
+ border: none;
2227
+ }
2228
+ }
2229
+ [class*="_addRowButton"],
2230
+ [class*="_addColumnButton"],
2231
+ [class*="_tableColumnEditorTrigger"],
2232
+ [class*="_iconButton"] {
2233
+ cursor: pointer;
2234
+ transition: all 0.3s;
2235
+ }
2236
+ }
2237
+ ul {
2238
+ [role="checkbox"] {
2239
+ padding: 0 20px;
2240
+ &::before {
2241
+ width: 13px;
2242
+ height: 13px;
2243
+ top: 6px;
2244
+ }
2245
+ &::after {
2246
+ top: 7px;
2247
+ left: 4px;
2248
+ }
2249
+ }
2250
+ }
2251
+ ul,
2252
+ ol {
2253
+ li {
2254
+ margin-top: 4px;
2255
+ margin-bottom: 0;
2256
+ }
2257
+ }
2258
+ `, fr = z(
2259
+ "markdown-body",
2260
+ d`
2261
+ p {
2262
+ margin-bottom: 8px;
2263
+ }
2264
+ ul {
2265
+ list-style: disc;
2266
+ }
2267
+ ol {
2268
+ list-style: decimal;
2269
+ }
2270
+ table {
2271
+ width: 100%;
2272
+ display: table;
2273
+ }
2274
+ pre {
2275
+ padding: 0;
2276
+ > div {
2277
+ margin: 0 !important;
2278
+ }
2279
+ }
2280
+ `
2281
+ ), Go = {
2282
+ 'code[class*="language-"]': {
2283
+ background: "hsl(230, 1%, 98%)",
2284
+ color: "hsl(230, 8%, 24%)",
2285
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
2286
+ direction: "ltr",
2287
+ textAlign: "left",
2288
+ whiteSpace: "pre",
2289
+ wordSpacing: "normal",
2290
+ wordBreak: "normal",
2291
+ lineHeight: "1.5",
2292
+ MozTabSize: "2",
2293
+ OTabSize: "2",
2294
+ tabSize: "2",
2295
+ WebkitHyphens: "none",
2296
+ MozHyphens: "none",
2297
+ msHyphens: "none",
2298
+ hyphens: "none"
2299
+ },
2300
+ 'pre[class*="language-"]': {
2301
+ background: "hsl(230, 1%, 98%)",
2302
+ color: "hsl(230, 8%, 24%)",
2303
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
2304
+ direction: "ltr",
2305
+ textAlign: "left",
2306
+ whiteSpace: "pre",
2307
+ wordSpacing: "normal",
2308
+ wordBreak: "normal",
2309
+ lineHeight: "1.5",
2310
+ MozTabSize: "2",
2311
+ OTabSize: "2",
2312
+ tabSize: "2",
2313
+ WebkitHyphens: "none",
2314
+ MozHyphens: "none",
2315
+ msHyphens: "none",
2316
+ hyphens: "none",
2317
+ padding: "1em",
2318
+ margin: "0.5em 0",
2319
+ overflow: "auto",
2320
+ borderRadius: "0.3em"
2321
+ },
2322
+ 'code[class*="language-"]::-moz-selection': {
2323
+ background: "hsl(230, 1%, 90%)",
2324
+ color: "inherit"
2325
+ },
2326
+ 'code[class*="language-"] *::-moz-selection': {
2327
+ background: "hsl(230, 1%, 90%)",
2328
+ color: "inherit"
2329
+ },
2330
+ 'pre[class*="language-"] *::-moz-selection': {
2331
+ background: "hsl(230, 1%, 90%)",
2332
+ color: "inherit"
2333
+ },
2334
+ 'code[class*="language-"]::selection': {
2335
+ background: "hsl(230, 1%, 90%)",
2336
+ color: "inherit"
2337
+ },
2338
+ 'code[class*="language-"] *::selection': {
2339
+ background: "hsl(230, 1%, 90%)",
2340
+ color: "inherit"
2341
+ },
2342
+ 'pre[class*="language-"] *::selection': {
2343
+ background: "hsl(230, 1%, 90%)",
2344
+ color: "inherit"
2345
+ },
2346
+ ':not(pre) > code[class*="language-"]': {
2347
+ padding: "0.2em 0.3em",
2348
+ borderRadius: "0.3em",
2349
+ whiteSpace: "normal"
2350
+ },
2351
+ comment: {
2352
+ color: "hsl(230, 4%, 64%)",
2353
+ fontStyle: "italic"
2354
+ },
2355
+ prolog: {
2356
+ color: "hsl(230, 4%, 64%)"
2357
+ },
2358
+ cdata: {
2359
+ color: "hsl(230, 4%, 64%)"
2360
+ },
2361
+ doctype: {
2362
+ color: "hsl(230, 8%, 24%)"
2363
+ },
2364
+ punctuation: {
2365
+ color: "hsl(230, 8%, 24%)"
2366
+ },
2367
+ entity: {
2368
+ color: "hsl(230, 8%, 24%)",
2369
+ cursor: "help"
2370
+ },
2371
+ "attr-name": {
2372
+ color: "hsl(35, 99%, 36%)"
2373
+ },
2374
+ "class-name": {
2375
+ color: "hsl(35, 99%, 36%)"
2376
+ },
2377
+ boolean: {
2378
+ color: "hsl(35, 99%, 36%)"
2379
+ },
2380
+ constant: {
2381
+ color: "hsl(35, 99%, 36%)"
2382
+ },
2383
+ number: {
2384
+ color: "hsl(35, 99%, 36%)"
2385
+ },
2386
+ atrule: {
2387
+ color: "hsl(35, 99%, 36%)"
2388
+ },
2389
+ keyword: {
2390
+ color: "hsl(301, 63%, 40%)"
2391
+ },
2392
+ property: {
2393
+ color: "hsl(5, 74%, 59%)"
2394
+ },
2395
+ tag: {
2396
+ color: "hsl(5, 74%, 59%)"
2397
+ },
2398
+ symbol: {
2399
+ color: "hsl(5, 74%, 59%)"
2400
+ },
2401
+ deleted: {
2402
+ color: "hsl(5, 74%, 59%)"
2403
+ },
2404
+ important: {
2405
+ color: "hsl(5, 74%, 59%)"
2406
+ },
2407
+ selector: {
2408
+ color: "hsl(119, 34%, 47%)"
2409
+ },
2410
+ string: {
2411
+ color: "hsl(119, 34%, 47%)"
2412
+ },
2413
+ char: {
2414
+ color: "hsl(119, 34%, 47%)"
2415
+ },
2416
+ builtin: {
2417
+ color: "hsl(119, 34%, 47%)"
2418
+ },
2419
+ inserted: {
2420
+ color: "hsl(119, 34%, 47%)"
2421
+ },
2422
+ regex: {
2423
+ color: "hsl(119, 34%, 47%)"
2424
+ },
2425
+ "attr-value": {
2426
+ color: "hsl(119, 34%, 47%)"
2427
+ },
2428
+ "attr-value > .token.punctuation": {
2429
+ color: "hsl(119, 34%, 47%)"
2430
+ },
2431
+ variable: {
2432
+ color: "hsl(221, 87%, 60%)"
2433
+ },
2434
+ operator: {
2435
+ color: "hsl(221, 87%, 60%)"
2436
+ },
2437
+ function: {
2438
+ color: "hsl(221, 87%, 60%)"
2439
+ },
2440
+ url: {
2441
+ color: "hsl(198, 99%, 37%)"
2442
+ },
2443
+ "attr-value > .token.punctuation.attr-equals": {
2444
+ color: "hsl(230, 8%, 24%)"
2445
+ },
2446
+ "special-attr > .token.attr-value > .token.value.css": {
2447
+ color: "hsl(230, 8%, 24%)"
2448
+ },
2449
+ ".language-css .token.selector": {
2450
+ color: "hsl(5, 74%, 59%)"
2451
+ },
2452
+ ".language-css .token.property": {
2453
+ color: "hsl(230, 8%, 24%)"
2454
+ },
2455
+ ".language-css .token.function": {
2456
+ color: "hsl(198, 99%, 37%)"
2457
+ },
2458
+ ".language-css .token.url > .token.function": {
2459
+ color: "hsl(198, 99%, 37%)"
2460
+ },
2461
+ ".language-css .token.url > .token.string.url": {
2462
+ color: "hsl(119, 34%, 47%)"
2463
+ },
2464
+ ".language-css .token.important": {
2465
+ color: "hsl(301, 63%, 40%)"
2466
+ },
2467
+ ".language-css .token.atrule .token.rule": {
2468
+ color: "hsl(301, 63%, 40%)"
2469
+ },
2470
+ ".language-javascript .token.operator": {
2471
+ color: "hsl(301, 63%, 40%)"
2472
+ },
2473
+ ".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": {
2474
+ color: "hsl(344, 84%, 43%)"
2475
+ },
2476
+ ".language-json .token.operator": {
2477
+ color: "hsl(230, 8%, 24%)"
2478
+ },
2479
+ ".language-json .token.null.keyword": {
2480
+ color: "hsl(35, 99%, 36%)"
2481
+ },
2482
+ ".language-markdown .token.url": {
2483
+ color: "hsl(230, 8%, 24%)"
2484
+ },
2485
+ ".language-markdown .token.url > .token.operator": {
2486
+ color: "hsl(230, 8%, 24%)"
2487
+ },
2488
+ ".language-markdown .token.url-reference.url > .token.string": {
2489
+ color: "hsl(230, 8%, 24%)"
2490
+ },
2491
+ ".language-markdown .token.url > .token.content": {
2492
+ color: "hsl(221, 87%, 60%)"
2493
+ },
2494
+ ".language-markdown .token.url > .token.url": {
2495
+ color: "hsl(198, 99%, 37%)"
2496
+ },
2497
+ ".language-markdown .token.url-reference.url": {
2498
+ color: "hsl(198, 99%, 37%)"
2499
+ },
2500
+ ".language-markdown .token.blockquote.punctuation": {
2501
+ color: "hsl(230, 4%, 64%)",
2502
+ fontStyle: "italic"
2503
+ },
2504
+ ".language-markdown .token.hr.punctuation": {
2505
+ color: "hsl(230, 4%, 64%)",
2506
+ fontStyle: "italic"
2507
+ },
2508
+ ".language-markdown .token.code-snippet": {
2509
+ color: "hsl(119, 34%, 47%)"
2510
+ },
2511
+ ".language-markdown .token.bold .token.content": {
2512
+ color: "hsl(35, 99%, 36%)"
2513
+ },
2514
+ ".language-markdown .token.italic .token.content": {
2515
+ color: "hsl(301, 63%, 40%)"
2516
+ },
2517
+ ".language-markdown .token.strike .token.content": {
2518
+ color: "hsl(5, 74%, 59%)"
2519
+ },
2520
+ ".language-markdown .token.strike .token.punctuation": {
2521
+ color: "hsl(5, 74%, 59%)"
2522
+ },
2523
+ ".language-markdown .token.list.punctuation": {
2524
+ color: "hsl(5, 74%, 59%)"
2525
+ },
2526
+ ".language-markdown .token.title.important > .token.punctuation": {
2527
+ color: "hsl(5, 74%, 59%)"
2528
+ },
2529
+ bold: {
2530
+ fontWeight: "bold"
2531
+ },
2532
+ italic: {
2533
+ fontStyle: "italic"
2534
+ },
2535
+ namespace: {
2536
+ Opacity: "0.8"
2537
+ },
2538
+ "token.tab:not(:empty):before": {
2539
+ color: "hsla(230, 8%, 24%, 0.2)"
2540
+ },
2541
+ "token.cr:before": {
2542
+ color: "hsla(230, 8%, 24%, 0.2)"
2543
+ },
2544
+ "token.lf:before": {
2545
+ color: "hsla(230, 8%, 24%, 0.2)"
2546
+ },
2547
+ "token.space:before": {
2548
+ color: "hsla(230, 8%, 24%, 0.2)"
2549
+ },
2550
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
2551
+ marginRight: "0.4em"
2552
+ },
2553
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
2554
+ background: "hsl(230, 1%, 90%)",
2555
+ color: "hsl(230, 6%, 44%)",
2556
+ padding: "0.1em 0.4em",
2557
+ borderRadius: "0.3em"
2558
+ },
2559
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
2560
+ background: "hsl(230, 1%, 90%)",
2561
+ color: "hsl(230, 6%, 44%)",
2562
+ padding: "0.1em 0.4em",
2563
+ borderRadius: "0.3em"
2564
+ },
2565
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
2566
+ background: "hsl(230, 1%, 90%)",
2567
+ color: "hsl(230, 6%, 44%)",
2568
+ padding: "0.1em 0.4em",
2569
+ borderRadius: "0.3em"
2570
+ },
2571
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
2572
+ background: "hsl(230, 1%, 78%)",
2573
+ color: "hsl(230, 8%, 24%)"
2574
+ },
2575
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
2576
+ background: "hsl(230, 1%, 78%)",
2577
+ color: "hsl(230, 8%, 24%)"
2578
+ },
2579
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
2580
+ background: "hsl(230, 1%, 78%)",
2581
+ color: "hsl(230, 8%, 24%)"
2582
+ },
2583
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
2584
+ background: "hsl(230, 1%, 78%)",
2585
+ color: "hsl(230, 8%, 24%)"
2586
+ },
2587
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
2588
+ background: "hsl(230, 1%, 78%)",
2589
+ color: "hsl(230, 8%, 24%)"
2590
+ },
2591
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
2592
+ background: "hsl(230, 1%, 78%)",
2593
+ color: "hsl(230, 8%, 24%)"
2594
+ },
2595
+ ".line-highlight.line-highlight": {
2596
+ background: "hsla(230, 8%, 24%, 0.05)"
2597
+ },
2598
+ ".line-highlight.line-highlight:before": {
2599
+ background: "hsl(230, 1%, 90%)",
2600
+ color: "hsl(230, 8%, 24%)",
2601
+ padding: "0.1em 0.6em",
2602
+ borderRadius: "0.3em",
2603
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
2604
+ },
2605
+ ".line-highlight.line-highlight[data-end]:after": {
2606
+ background: "hsl(230, 1%, 90%)",
2607
+ color: "hsl(230, 8%, 24%)",
2608
+ padding: "0.1em 0.6em",
2609
+ borderRadius: "0.3em",
2610
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
2611
+ },
2612
+ "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
2613
+ backgroundColor: "hsla(230, 8%, 24%, 0.05)"
2614
+ },
2615
+ ".line-numbers.line-numbers .line-numbers-rows": {
2616
+ borderRightColor: "hsla(230, 8%, 24%, 0.2)"
2617
+ },
2618
+ ".command-line .command-line-prompt": {
2619
+ borderRightColor: "hsla(230, 8%, 24%, 0.2)"
2620
+ },
2621
+ ".line-numbers .line-numbers-rows > span:before": {
2622
+ color: "hsl(230, 1%, 62%)"
2623
+ },
2624
+ ".command-line .command-line-prompt > span:before": {
2625
+ color: "hsl(230, 1%, 62%)"
2626
+ },
2627
+ ".rainbow-braces .token.token.punctuation.brace-level-1": {
2628
+ color: "hsl(5, 74%, 59%)"
2629
+ },
2630
+ ".rainbow-braces .token.token.punctuation.brace-level-5": {
2631
+ color: "hsl(5, 74%, 59%)"
2632
+ },
2633
+ ".rainbow-braces .token.token.punctuation.brace-level-9": {
2634
+ color: "hsl(5, 74%, 59%)"
2635
+ },
2636
+ ".rainbow-braces .token.token.punctuation.brace-level-2": {
2637
+ color: "hsl(119, 34%, 47%)"
2638
+ },
2639
+ ".rainbow-braces .token.token.punctuation.brace-level-6": {
2640
+ color: "hsl(119, 34%, 47%)"
2641
+ },
2642
+ ".rainbow-braces .token.token.punctuation.brace-level-10": {
2643
+ color: "hsl(119, 34%, 47%)"
2644
+ },
2645
+ ".rainbow-braces .token.token.punctuation.brace-level-3": {
2646
+ color: "hsl(221, 87%, 60%)"
2647
+ },
2648
+ ".rainbow-braces .token.token.punctuation.brace-level-7": {
2649
+ color: "hsl(221, 87%, 60%)"
2650
+ },
2651
+ ".rainbow-braces .token.token.punctuation.brace-level-11": {
2652
+ color: "hsl(221, 87%, 60%)"
2653
+ },
2654
+ ".rainbow-braces .token.token.punctuation.brace-level-4": {
2655
+ color: "hsl(301, 63%, 40%)"
2656
+ },
2657
+ ".rainbow-braces .token.token.punctuation.brace-level-8": {
2658
+ color: "hsl(301, 63%, 40%)"
2659
+ },
2660
+ ".rainbow-braces .token.token.punctuation.brace-level-12": {
2661
+ color: "hsl(301, 63%, 40%)"
2662
+ },
2663
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
2664
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
2665
+ },
2666
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
2667
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
2668
+ },
2669
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": {
2670
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2671
+ },
2672
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": {
2673
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2674
+ },
2675
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": {
2676
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2677
+ },
2678
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": {
2679
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2680
+ },
2681
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
2682
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2683
+ },
2684
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
2685
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2686
+ },
2687
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
2688
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2689
+ },
2690
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
2691
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
2692
+ },
2693
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
2694
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
2695
+ },
2696
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
2697
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
2698
+ },
2699
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": {
2700
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2701
+ },
2702
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": {
2703
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2704
+ },
2705
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": {
2706
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2707
+ },
2708
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": {
2709
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2710
+ },
2711
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
2712
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2713
+ },
2714
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
2715
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2716
+ },
2717
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
2718
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2719
+ },
2720
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
2721
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
2722
+ },
2723
+ ".prism-previewer.prism-previewer:before": {
2724
+ borderColor: "hsl(0, 0, 95%)"
2725
+ },
2726
+ ".prism-previewer-gradient.prism-previewer-gradient div": {
2727
+ borderColor: "hsl(0, 0, 95%)",
2728
+ borderRadius: "0.3em"
2729
+ },
2730
+ ".prism-previewer-color.prism-previewer-color:before": {
2731
+ borderRadius: "0.3em"
2732
+ },
2733
+ ".prism-previewer-easing.prism-previewer-easing:before": {
2734
+ borderRadius: "0.3em"
2735
+ },
2736
+ ".prism-previewer.prism-previewer:after": {
2737
+ borderTopColor: "hsl(0, 0, 95%)"
2738
+ },
2739
+ ".prism-previewer-flipped.prism-previewer-flipped.after": {
2740
+ borderBottomColor: "hsl(0, 0, 95%)"
2741
+ },
2742
+ ".prism-previewer-angle.prism-previewer-angle:before": {
2743
+ background: "hsl(0, 0%, 100%)"
2744
+ },
2745
+ ".prism-previewer-time.prism-previewer-time:before": {
2746
+ background: "hsl(0, 0%, 100%)"
2747
+ },
2748
+ ".prism-previewer-easing.prism-previewer-easing": {
2749
+ background: "hsl(0, 0%, 100%)"
2750
+ },
2751
+ ".prism-previewer-angle.prism-previewer-angle circle": {
2752
+ stroke: "hsl(230, 8%, 24%)",
2753
+ strokeOpacity: "1"
2754
+ },
2755
+ ".prism-previewer-time.prism-previewer-time circle": {
2756
+ stroke: "hsl(230, 8%, 24%)",
2757
+ strokeOpacity: "1"
2758
+ },
2759
+ ".prism-previewer-easing.prism-previewer-easing circle": {
2760
+ stroke: "hsl(230, 8%, 24%)",
2761
+ fill: "transparent"
2762
+ },
2763
+ ".prism-previewer-easing.prism-previewer-easing path": {
2764
+ stroke: "hsl(230, 8%, 24%)"
2765
+ },
2766
+ ".prism-previewer-easing.prism-previewer-easing line": {
2767
+ stroke: "hsl(230, 8%, 24%)"
2768
+ }
2769
+ }, Xo = (g) => {
2770
+ const { children: r = "", className: l } = g;
2771
+ return /* @__PURE__ */ t.jsx(
2772
+ Io,
2773
+ {
2774
+ className: z(fr, l),
2775
+ remarkPlugins: [To, Ro],
2776
+ rehypePlugins: [Eo],
2777
+ components: {
2778
+ code(a) {
2779
+ const { children: m, className: s, node: f, ref: b, ...i } = a, I = /language-(\w+)/.exec(s || "");
2780
+ return I ? /* @__PURE__ */ t.jsx(
2781
+ Mo,
2782
+ {
2783
+ ...i,
2784
+ PreTag: "div",
2785
+ children: String(m).replace(/\n$/, ""),
2786
+ language: I[1],
2787
+ style: Go
2788
+ }
2789
+ ) : /* @__PURE__ */ t.jsx("code", { ...i, className: s, children: m });
2790
+ }
2791
+ },
2792
+ children: r
2793
+ }
2189
2794
  );
2190
- }
2191
- const to = (d) => {
2192
- const { value: r, onChange: i, translation: a, pluginConfig: g, ...l } = d, {
2193
- image: y,
2194
- diffSource: b = {
2795
+ }, qo = (g) => {
2796
+ const { value: r, onChange: l, translation: a, pluginConfig: m, ...s } = g, f = Me(null), {
2797
+ image: b,
2798
+ diffSource: i = {
2195
2799
  viewMode: "rich-text"
2196
2800
  },
2197
- headings: s,
2198
- link: _,
2199
- codeBlock: p,
2200
- codeMirror: N = {
2801
+ headings: I,
2802
+ link: v,
2803
+ codeBlock: N,
2804
+ codeMirror: _ = {
2201
2805
  codeBlockLanguages: {
2202
2806
  js: "JavaScript",
2203
2807
  css: "CSS",
@@ -2206,115 +2810,68 @@ const to = (d) => {
2206
2810
  "": "Unspecified"
2207
2811
  }
2208
2812
  },
2209
- directives: M = {
2210
- directiveDescriptors: [It]
2813
+ directives: W = {
2814
+ directiveDescriptors: [jo]
2211
2815
  }
2212
- } = g ?? {}, [V, Y] = oe("");
2213
- return ye(() => {
2214
- r !== void 0 && Y(r);
2215
- }, [r]), /* @__PURE__ */ o.jsx(
2816
+ } = m ?? {}, [V, h] = te("");
2817
+ return we(() => {
2818
+ var u;
2819
+ r !== void 0 && f.current && ((u = f.current) == null || u.setMarkdown(r), h(r));
2820
+ }, [r, f]), /* @__PURE__ */ t.jsx(
2216
2821
  Jr,
2217
2822
  {
2218
- contentEditableClassName: U(
2219
- "markdown-body",
2220
- u`
2221
- table {
2222
- border-spacing: 0;
2223
- border-collapse: collapse;
2224
- width: 100%;
2225
- display: table;
2226
- th[data-tool-cell],
2227
- td[data-tool-cell] {
2228
- padding: 0;
2229
- border: none;
2230
- }
2231
- tr {
2232
- border-top: 0;
2233
- }
2234
- thead {
2235
- th {
2236
- padding: 0;
2237
- border: none;
2238
- }
2239
- }
2240
- tfoot {
2241
- th {
2242
- padding: 0;
2243
- border: none;
2244
- }
2245
- }
2246
- [class*="_addRowButton"],
2247
- [class*="_addColumnButton"],
2248
- [class*="_tableColumnEditorTrigger"],
2249
- [class*="_iconButton"] {
2250
- cursor: pointer;
2251
- transition: all 0.3s;
2252
- }
2253
- }
2254
- `
2255
- ),
2823
+ ref: f,
2824
+ className: Uo,
2825
+ contentEditableClassName: fr,
2256
2826
  markdown: V,
2257
- onChange: (f) => {
2258
- !r && !i && Y(f), i && i(f);
2827
+ onChange: (u) => {
2828
+ !r && !l && h(u), l && l(u);
2259
2829
  },
2260
- translation: a ?? Lt,
2830
+ translation: a ?? Vo,
2261
2831
  plugins: [
2262
2832
  Kr({
2263
- toolbarContents: () => /* @__PURE__ */ o.jsxs(Hr, { options: ["rich-text", "source"], children: [
2264
- /* @__PURE__ */ o.jsx(Zr, {}),
2265
- /* @__PURE__ */ o.jsx(ue, {}),
2266
- /* @__PURE__ */ o.jsx(Qr, {}),
2267
- /* @__PURE__ */ o.jsx(et, {}),
2268
- /* @__PURE__ */ o.jsx(ue, {}),
2269
- /* @__PURE__ */ o.jsx(rt, {}),
2270
- /* @__PURE__ */ o.jsx(ue, {}),
2271
- /* @__PURE__ */ o.jsx(tt, {}),
2272
- /* @__PURE__ */ o.jsx(ue, {}),
2273
- /* @__PURE__ */ o.jsx(ot, {}),
2274
- /* @__PURE__ */ o.jsx(nt, {}),
2275
- /* @__PURE__ */ o.jsx(ue, {}),
2276
- /* @__PURE__ */ o.jsx(at, {}),
2277
- /* @__PURE__ */ o.jsx(it, {}),
2278
- /* @__PURE__ */ o.jsx(ue, {}),
2279
- /* @__PURE__ */ o.jsx(st, {}),
2280
- /* @__PURE__ */ o.jsx(
2281
- lt,
2282
- {
2283
- options: [
2284
- {
2285
- when: (f) => !Ft(f),
2286
- contents: () => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2287
- /* @__PURE__ */ o.jsx(ue, {}),
2288
- /* @__PURE__ */ o.jsx(ct, {})
2289
- ] })
2290
- }
2291
- ]
2292
- }
2293
- ),
2294
- /* @__PURE__ */ o.jsx(ue, {}),
2295
- /* @__PURE__ */ o.jsx(ut, {})
2833
+ toolbarContents: () => /* @__PURE__ */ t.jsxs(Zr, { options: ["rich-text", "source"], children: [
2834
+ /* @__PURE__ */ t.jsx(Qr, {}),
2835
+ /* @__PURE__ */ t.jsx(ge, {}),
2836
+ /* @__PURE__ */ t.jsx(eo, {}),
2837
+ /* @__PURE__ */ t.jsx(ro, {}),
2838
+ /* @__PURE__ */ t.jsx(ge, {}),
2839
+ /* @__PURE__ */ t.jsx(oo, {}),
2840
+ /* @__PURE__ */ t.jsx(ge, {}),
2841
+ /* @__PURE__ */ t.jsx(to, {}),
2842
+ /* @__PURE__ */ t.jsx(ge, {}),
2843
+ /* @__PURE__ */ t.jsx(no, {}),
2844
+ /* @__PURE__ */ t.jsx(ao, {}),
2845
+ /* @__PURE__ */ t.jsx(ge, {}),
2846
+ /* @__PURE__ */ t.jsx(io, {}),
2847
+ /* @__PURE__ */ t.jsx(lo, {}),
2848
+ /* @__PURE__ */ t.jsx(ge, {}),
2849
+ /* @__PURE__ */ t.jsx(so, {}),
2850
+ /* @__PURE__ */ t.jsx(ge, {}),
2851
+ /* @__PURE__ */ t.jsx(co, {})
2296
2852
  ] })
2297
2853
  }),
2298
- dt(b),
2299
- ft(),
2300
- mt(),
2301
- gt(s),
2302
- pt(_),
2303
- ht(),
2304
- vt(y),
2305
- xt(),
2306
- bt(),
2307
- kt(),
2308
- yt(p),
2309
- Ct(N),
2310
- wt(),
2311
- jt(M)
2854
+ uo(i),
2855
+ go(),
2856
+ mo(),
2857
+ po(I),
2858
+ fo(v),
2859
+ ho(),
2860
+ bo(b),
2861
+ vo(),
2862
+ ko(),
2863
+ xo(),
2864
+ wo(N),
2865
+ yo(_),
2866
+ Co(),
2867
+ So(W)
2312
2868
  ],
2313
- ...l
2869
+ ...s
2314
2870
  }
2315
2871
  );
2316
- };
2872
+ }, Ho = qo;
2873
+ Ho.Preview = Xo;
2317
2874
  export {
2318
- ro as Desktop,
2319
- to as MdEditor
2875
+ ft as Desktop,
2876
+ Ho as MdEditor
2320
2877
  };