@senyao-design-system/editor 0.0.6 → 0.0.7

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.mjs CHANGED
@@ -25,11 +25,11 @@ function fo() {
25
25
  wr = 1;
26
26
  var e = Ur, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
27
27
  function a(c, l, d) {
28
- var f, v = {}, R = null, m = null;
29
- d !== void 0 && (R = "" + d), l.key !== void 0 && (R = "" + l.key), l.ref !== void 0 && (m = l.ref);
30
- for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (v[f] = l[f]);
31
- if (c && c.defaultProps) for (f in l = c.defaultProps, l) v[f] === void 0 && (v[f] = l[f]);
32
- return { $$typeof: t, type: c, key: R, ref: m, props: v, _owner: o.current };
28
+ var f, g = {}, _ = null, x = null;
29
+ d !== void 0 && (_ = "" + d), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (x = l.ref);
30
+ for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (g[f] = l[f]);
31
+ if (c && c.defaultProps) for (f in l = c.defaultProps, l) g[f] === void 0 && (g[f] = l[f]);
32
+ return { $$typeof: t, type: c, key: _, ref: x, props: g, _owner: o.current };
33
33
  }
34
34
  return Ke.Fragment = r, Ke.jsx = a, Ke.jsxs = a, Ke;
35
35
  }
@@ -46,27 +46,27 @@ var He = {};
46
46
  var _r;
47
47
  function ho() {
48
48
  return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
49
- var e = Ur, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), w = Symbol.iterator, g = "@@iterator";
50
- function x(s) {
49
+ var e = Ur, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), C = Symbol.iterator, v = "@@iterator";
50
+ function y(s) {
51
51
  if (s === null || typeof s != "object")
52
52
  return null;
53
- var u = w && s[w] || s[g];
53
+ var u = C && s[C] || s[v];
54
54
  return typeof u == "function" ? u : null;
55
55
  }
56
- var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
- function y(s) {
56
+ var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
+ function p(s) {
58
58
  {
59
- for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), _ = 1; _ < u; _++)
60
- p[_ - 1] = arguments[_];
61
- C("error", s, p);
59
+ for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), w = 1; w < u; w++)
60
+ m[w - 1] = arguments[w];
61
+ S("error", s, m);
62
62
  }
63
63
  }
64
- function C(s, u, p) {
64
+ function S(s, u, m) {
65
65
  {
66
- var _ = S.ReactDebugCurrentFrame, N = _.getStackAddendum();
67
- N !== "" && (u += "%s", p = p.concat([N]));
68
- var j = p.map(function(P) {
69
- return String(P);
66
+ var w = R.ReactDebugCurrentFrame, N = w.getStackAddendum();
67
+ N !== "" && (u += "%s", m = m.concat([N]));
68
+ var j = m.map(function(O) {
69
+ return String(O);
70
70
  });
71
71
  j.unshift("Warning: " + u), Function.prototype.apply.call(console[s], console, j);
72
72
  }
@@ -74,18 +74,18 @@ function ho() {
74
74
  var T = !1, h = !1, q = !1, $ = !1, Ye = !1, Se;
75
75
  Se = Symbol.for("react.module.reference");
76
76
  function Te(s) {
77
- return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || Ye || s === o || s === d || s === f || $ || s === m || T || h || q || typeof s == "object" && s !== null && (s.$$typeof === R || s.$$typeof === v || s.$$typeof === a || s.$$typeof === c || s.$$typeof === l || // This needs to include all possible module reference object
77
+ return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || Ye || s === o || s === d || s === f || $ || s === x || T || h || q || typeof s == "object" && s !== null && (s.$$typeof === _ || s.$$typeof === g || s.$$typeof === a || s.$$typeof === c || s.$$typeof === l || // This needs to include all possible module reference object
78
78
  // types supported by any Flight configuration anywhere since
79
79
  // we don't know which Flight build this will end up being used
80
80
  // with.
81
81
  s.$$typeof === Se || s.getModuleId !== void 0));
82
82
  }
83
- function ke(s, u, p) {
84
- var _ = s.displayName;
85
- if (_)
86
- return _;
83
+ function ke(s, u, m) {
84
+ var w = s.displayName;
85
+ if (w)
86
+ return w;
87
87
  var N = u.displayName || u.name || "";
88
- return N !== "" ? p + "(" + N + ")" : p;
88
+ return N !== "" ? m + "(" + N + ")" : m;
89
89
  }
90
90
  function Ce(s) {
91
91
  return s.displayName || "Context";
@@ -93,7 +93,7 @@ function ho() {
93
93
  function Z(s) {
94
94
  if (s == null)
95
95
  return null;
96
- if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
96
+ if (typeof s.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
97
97
  return s.displayName || s.name || null;
98
98
  if (typeof s == "string")
99
99
  return s;
@@ -117,17 +117,17 @@ function ho() {
117
117
  var u = s;
118
118
  return Ce(u) + ".Consumer";
119
119
  case a:
120
- var p = s;
121
- return Ce(p._context) + ".Provider";
120
+ var m = s;
121
+ return Ce(m._context) + ".Provider";
122
122
  case l:
123
123
  return ke(s, s.render, "ForwardRef");
124
- case v:
125
- var _ = s.displayName || null;
126
- return _ !== null ? _ : Z(s.type) || "Memo";
127
- case R: {
128
- var N = s, j = N._payload, P = N._init;
124
+ case g:
125
+ var w = s.displayName || null;
126
+ return w !== null ? w : Z(s.type) || "Memo";
127
+ case _: {
128
+ var N = s, j = N._payload, O = N._init;
129
129
  try {
130
- return Z(P(j));
130
+ return Z(O(j));
131
131
  } catch {
132
132
  return null;
133
133
  }
@@ -194,37 +194,37 @@ function ho() {
194
194
  })
195
195
  });
196
196
  }
197
- pe < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ pe < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
198
  }
199
199
  }
200
- var Ve = S.ReactCurrentDispatcher, ze;
201
- function Me(s, u, p) {
200
+ var Ve = R.ReactCurrentDispatcher, ze;
201
+ function Me(s, u, m) {
202
202
  {
203
203
  if (ze === void 0)
204
204
  try {
205
205
  throw Error();
206
206
  } catch (N) {
207
- var _ = N.stack.trim().match(/\n( *(at )?)/);
208
- ze = _ && _[1] || "";
207
+ var w = N.stack.trim().match(/\n( *(at )?)/);
208
+ ze = w && w[1] || "";
209
209
  }
210
210
  return `
211
211
  ` + ze + s;
212
212
  }
213
213
  }
214
- var Ue = !1, Oe;
214
+ var Ue = !1, Pe;
215
215
  {
216
216
  var kt = typeof WeakMap == "function" ? WeakMap : Map;
217
- Oe = new kt();
217
+ Pe = new kt();
218
218
  }
219
219
  function E(s, u) {
220
220
  if (!s || Ue)
221
221
  return "";
222
222
  {
223
- var p = Oe.get(s);
224
- if (p !== void 0)
225
- return p;
223
+ var m = Pe.get(s);
224
+ if (m !== void 0)
225
+ return m;
226
226
  }
227
- var _;
227
+ var w;
228
228
  Ue = !0;
229
229
  var N = Error.prepareStackTrace;
230
230
  Error.prepareStackTrace = void 0;
@@ -232,50 +232,50 @@ function ho() {
232
232
  j = Ve.current, Ve.current = null, _t();
233
233
  try {
234
234
  if (u) {
235
- var P = function() {
235
+ var O = function() {
236
236
  throw Error();
237
237
  };
238
- if (Object.defineProperty(P.prototype, "props", {
238
+ if (Object.defineProperty(O.prototype, "props", {
239
239
  set: function() {
240
240
  throw Error();
241
241
  }
242
242
  }), typeof Reflect == "object" && Reflect.construct) {
243
243
  try {
244
- Reflect.construct(P, []);
244
+ Reflect.construct(O, []);
245
245
  } catch (ee) {
246
- _ = ee;
246
+ w = ee;
247
247
  }
248
- Reflect.construct(s, [], P);
248
+ Reflect.construct(s, [], O);
249
249
  } else {
250
250
  try {
251
- P.call();
251
+ O.call();
252
252
  } catch (ee) {
253
- _ = ee;
253
+ w = ee;
254
254
  }
255
- s.call(P.prototype);
255
+ s.call(O.prototype);
256
256
  }
257
257
  } else {
258
258
  try {
259
259
  throw Error();
260
260
  } catch (ee) {
261
- _ = ee;
261
+ w = ee;
262
262
  }
263
263
  s();
264
264
  }
265
265
  } catch (ee) {
266
- if (ee && _ && typeof ee.stack == "string") {
267
- for (var O = ee.stack.split(`
268
- `), X = _.stack.split(`
269
- `), z = O.length - 1, U = X.length - 1; z >= 1 && U >= 0 && O[z] !== X[U]; )
266
+ if (ee && w && typeof ee.stack == "string") {
267
+ for (var P = ee.stack.split(`
268
+ `), X = w.stack.split(`
269
+ `), z = P.length - 1, U = X.length - 1; z >= 1 && U >= 0 && P[z] !== X[U]; )
270
270
  U--;
271
271
  for (; z >= 1 && U >= 0; z--, U--)
272
- if (O[z] !== X[U]) {
272
+ if (P[z] !== X[U]) {
273
273
  if (z !== 1 || U !== 1)
274
274
  do
275
- if (z--, U--, U < 0 || O[z] !== X[U]) {
275
+ if (z--, U--, U < 0 || P[z] !== X[U]) {
276
276
  var ie = `
277
- ` + O[z].replace(" at new ", " at ");
278
- return s.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", s.displayName)), typeof s == "function" && Oe.set(s, ie), ie;
277
+ ` + P[z].replace(" at new ", " at ");
278
+ return s.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", s.displayName)), typeof s == "function" && Pe.set(s, ie), ie;
279
279
  }
280
280
  while (z >= 1 && U >= 0);
281
281
  break;
@@ -285,20 +285,20 @@ function ho() {
285
285
  Ue = !1, Ve.current = j, Tt(), Error.prepareStackTrace = N;
286
286
  }
287
287
  var $e = s ? s.displayName || s.name : "", we = $e ? Me($e) : "";
288
- return typeof s == "function" && Oe.set(s, we), we;
288
+ return typeof s == "function" && Pe.set(s, we), we;
289
289
  }
290
- function Be(s, u, p) {
290
+ function Be(s, u, m) {
291
291
  return E(s, !1);
292
292
  }
293
- function Pe(s) {
293
+ function Oe(s) {
294
294
  var u = s.prototype;
295
295
  return !!(u && u.isReactComponent);
296
296
  }
297
- function Re(s, u, p) {
297
+ function Re(s, u, m) {
298
298
  if (s == null)
299
299
  return "";
300
300
  if (typeof s == "function")
301
- return E(s, Pe(s));
301
+ return E(s, Oe(s));
302
302
  if (typeof s == "string")
303
303
  return Me(s);
304
304
  switch (s) {
@@ -311,53 +311,53 @@ function ho() {
311
311
  switch (s.$$typeof) {
312
312
  case l:
313
313
  return Be(s.render);
314
- case v:
315
- return Re(s.type, u, p);
316
- case R: {
317
- var _ = s, N = _._payload, j = _._init;
314
+ case g:
315
+ return Re(s.type, u, m);
316
+ case _: {
317
+ var w = s, N = w._payload, j = w._init;
318
318
  try {
319
- return Re(j(N), u, p);
319
+ return Re(j(N), u, m);
320
320
  } catch {
321
321
  }
322
322
  }
323
323
  }
324
324
  return "";
325
325
  }
326
- var Ge = Object.prototype.hasOwnProperty, ir = {}, sr = S.ReactDebugCurrentFrame;
326
+ var Ge = Object.prototype.hasOwnProperty, ir = {}, sr = R.ReactDebugCurrentFrame;
327
327
  function it(s) {
328
328
  if (s) {
329
- var u = s._owner, p = Re(s.type, s._source, u ? u.type : null);
330
- sr.setExtraStackFrame(p);
329
+ var u = s._owner, m = Re(s.type, s._source, u ? u.type : null);
330
+ sr.setExtraStackFrame(m);
331
331
  } else
332
332
  sr.setExtraStackFrame(null);
333
333
  }
334
- function Mn(s, u, p, _, N) {
334
+ function Mn(s, u, m, w, N) {
335
335
  {
336
336
  var j = Function.call.bind(Ge);
337
- for (var P in s)
338
- if (j(s, P)) {
339
- var O = void 0;
337
+ for (var O in s)
338
+ if (j(s, O)) {
339
+ var P = void 0;
340
340
  try {
341
- if (typeof s[P] != "function") {
342
- var X = Error((_ || "React class") + ": " + p + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
+ if (typeof s[O] != "function") {
342
+ var X = Error((w || "React class") + ": " + m + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
343
  throw X.name = "Invariant Violation", X;
344
344
  }
345
- O = s[P](u, P, _, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ P = s[O](u, O, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
346
  } catch (z) {
347
- O = z;
347
+ P = z;
348
348
  }
349
- O && !(O instanceof Error) && (it(N), y("%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).", _ || "React class", p, P, typeof O), it(null)), O instanceof Error && !(O.message in ir) && (ir[O.message] = !0, it(N), y("Failed %s type: %s", p, O.message), it(null));
349
+ P && !(P instanceof Error) && (it(N), 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).", w || "React class", m, O, typeof P), it(null)), P instanceof Error && !(P.message in ir) && (ir[P.message] = !0, it(N), p("Failed %s type: %s", m, P.message), it(null));
350
350
  }
351
351
  }
352
352
  }
353
- var On = Array.isArray;
353
+ var Pn = Array.isArray;
354
354
  function Mt(s) {
355
- return On(s);
355
+ return Pn(s);
356
356
  }
357
- function Pn(s) {
357
+ function On(s) {
358
358
  {
359
- var u = typeof Symbol == "function" && Symbol.toStringTag, p = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
360
- return p;
359
+ var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
360
+ return m;
361
361
  }
362
362
  }
363
363
  function An(s) {
@@ -372,9 +372,9 @@ function ho() {
372
372
  }
373
373
  function cr(s) {
374
374
  if (An(s))
375
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pn(s)), ar(s);
375
+ return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", On(s)), ar(s);
376
376
  }
377
- var lr = S.ReactCurrentOwner, $n = {
377
+ var lr = R.ReactCurrentOwner, $n = {
378
378
  key: !0,
379
379
  ref: !0,
380
380
  __self: !0,
@@ -401,90 +401,90 @@ function ho() {
401
401
  }
402
402
  function In(s, u) {
403
403
  {
404
- var p = function() {
405
- ur || (ur = !0, y("%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)", u));
404
+ var m = function() {
405
+ ur || (ur = !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)", u));
406
406
  };
407
- p.isReactWarning = !0, Object.defineProperty(s, "key", {
408
- get: p,
407
+ m.isReactWarning = !0, Object.defineProperty(s, "key", {
408
+ get: m,
409
409
  configurable: !0
410
410
  });
411
411
  }
412
412
  }
413
413
  function Dn(s, u) {
414
414
  {
415
- var p = function() {
416
- fr || (fr = !0, y("%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)", u));
415
+ var m = function() {
416
+ fr || (fr = !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)", u));
417
417
  };
418
- p.isReactWarning = !0, Object.defineProperty(s, "ref", {
419
- get: p,
418
+ m.isReactWarning = !0, Object.defineProperty(s, "ref", {
419
+ get: m,
420
420
  configurable: !0
421
421
  });
422
422
  }
423
423
  }
424
- var Wn = function(s, u, p, _, N, j, P) {
425
- var O = {
424
+ var Wn = function(s, u, m, w, N, j, O) {
425
+ var P = {
426
426
  // This tag allows us to uniquely identify this as a React Element
427
427
  $$typeof: t,
428
428
  // Built-in properties that belong on the element
429
429
  type: s,
430
430
  key: u,
431
- ref: p,
432
- props: P,
431
+ ref: m,
432
+ props: O,
433
433
  // Record the component responsible for creating this element.
434
434
  _owner: j
435
435
  };
436
- return O._store = {}, Object.defineProperty(O._store, "validated", {
436
+ return P._store = {}, Object.defineProperty(P._store, "validated", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !0,
440
440
  value: !1
441
- }), Object.defineProperty(O, "_self", {
441
+ }), Object.defineProperty(P, "_self", {
442
442
  configurable: !1,
443
443
  enumerable: !1,
444
444
  writable: !1,
445
- value: _
446
- }), Object.defineProperty(O, "_source", {
445
+ value: w
446
+ }), Object.defineProperty(P, "_source", {
447
447
  configurable: !1,
448
448
  enumerable: !1,
449
449
  writable: !1,
450
450
  value: N
451
- }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
451
+ }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
452
452
  };
453
- function jn(s, u, p, _, N) {
453
+ function jn(s, u, m, w, N) {
454
454
  {
455
- var j, P = {}, O = null, X = null;
456
- p !== void 0 && (cr(p), O = "" + p), Ln(u) && (cr(u.key), O = "" + u.key), Fn(u) && (X = u.ref, Nn(u, N));
455
+ var j, O = {}, P = null, X = null;
456
+ m !== void 0 && (cr(m), P = "" + m), Ln(u) && (cr(u.key), P = "" + u.key), Fn(u) && (X = u.ref, Nn(u, N));
457
457
  for (j in u)
458
- Ge.call(u, j) && !$n.hasOwnProperty(j) && (P[j] = u[j]);
458
+ Ge.call(u, j) && !$n.hasOwnProperty(j) && (O[j] = u[j]);
459
459
  if (s && s.defaultProps) {
460
460
  var z = s.defaultProps;
461
461
  for (j in z)
462
- P[j] === void 0 && (P[j] = z[j]);
462
+ O[j] === void 0 && (O[j] = z[j]);
463
463
  }
464
- if (O || X) {
464
+ if (P || X) {
465
465
  var U = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
466
- O && In(P, U), X && Dn(P, U);
466
+ P && In(O, U), X && Dn(O, U);
467
467
  }
468
- return Wn(s, O, X, N, _, lr.current, P);
468
+ return Wn(s, P, X, N, w, lr.current, O);
469
469
  }
470
470
  }
471
- var Ot = S.ReactCurrentOwner, hr = S.ReactDebugCurrentFrame;
471
+ var Pt = R.ReactCurrentOwner, hr = R.ReactDebugCurrentFrame;
472
472
  function Ae(s) {
473
473
  if (s) {
474
- var u = s._owner, p = Re(s.type, s._source, u ? u.type : null);
475
- hr.setExtraStackFrame(p);
474
+ var u = s._owner, m = Re(s.type, s._source, u ? u.type : null);
475
+ hr.setExtraStackFrame(m);
476
476
  } else
477
477
  hr.setExtraStackFrame(null);
478
478
  }
479
- var Pt;
480
- Pt = !1;
479
+ var Ot;
480
+ Ot = !1;
481
481
  function At(s) {
482
482
  return typeof s == "object" && s !== null && s.$$typeof === t;
483
483
  }
484
484
  function dr() {
485
485
  {
486
- if (Ot.current) {
487
- var s = Z(Ot.current.type);
486
+ if (Pt.current) {
487
+ var s = Z(Pt.current.type);
488
488
  if (s)
489
489
  return `
490
490
 
@@ -501,10 +501,10 @@ Check the render method of \`` + s + "`.";
501
501
  {
502
502
  var u = dr();
503
503
  if (!u) {
504
- var p = typeof s == "string" ? s : s.displayName || s.name;
505
- p && (u = `
504
+ var m = typeof s == "string" ? s : s.displayName || s.name;
505
+ m && (u = `
506
506
 
507
- Check the top-level render call using <` + p + ">.");
507
+ Check the top-level render call using <` + m + ">.");
508
508
  }
509
509
  return u;
510
510
  }
@@ -514,12 +514,12 @@ Check the top-level render call using <` + p + ">.");
514
514
  if (!s._store || s._store.validated || s.key != null)
515
515
  return;
516
516
  s._store.validated = !0;
517
- var p = Yn(u);
518
- if (pr[p])
517
+ var m = Yn(u);
518
+ if (pr[m])
519
519
  return;
520
- pr[p] = !0;
521
- var _ = "";
522
- s && s._owner && s._owner !== Ot.current && (_ = " It was passed a child from " + Z(s._owner.type) + "."), Ae(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, _), Ae(null);
520
+ pr[m] = !0;
521
+ var w = "";
522
+ s && s._owner && s._owner !== Pt.current && (w = " It was passed a child from " + Z(s._owner.type) + "."), Ae(s), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), Ae(null);
523
523
  }
524
524
  }
525
525
  function gr(s, u) {
@@ -527,17 +527,17 @@ Check the top-level render call using <` + p + ">.");
527
527
  if (typeof s != "object")
528
528
  return;
529
529
  if (Mt(s))
530
- for (var p = 0; p < s.length; p++) {
531
- var _ = s[p];
532
- At(_) && mr(_, u);
530
+ for (var m = 0; m < s.length; m++) {
531
+ var w = s[m];
532
+ At(w) && mr(w, u);
533
533
  }
534
534
  else if (At(s))
535
535
  s._store && (s._store.validated = !0);
536
536
  else if (s) {
537
- var N = x(s);
537
+ var N = y(s);
538
538
  if (typeof N == "function" && N !== s.entries)
539
- for (var j = N.call(s), P; !(P = j.next()).done; )
540
- At(P.value) && mr(P.value, u);
539
+ for (var j = N.call(s), O; !(O = j.next()).done; )
540
+ At(O.value) && mr(O.value, u);
541
541
  }
542
542
  }
543
543
  }
@@ -546,63 +546,63 @@ Check the top-level render call using <` + p + ">.");
546
546
  var u = s.type;
547
547
  if (u == null || typeof u == "string")
548
548
  return;
549
- var p;
549
+ var m;
550
550
  if (typeof u == "function")
551
- p = u.propTypes;
551
+ m = u.propTypes;
552
552
  else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
553
553
  // Inner props are checked in the reconciler.
554
- u.$$typeof === v))
555
- p = u.propTypes;
554
+ u.$$typeof === g))
555
+ m = u.propTypes;
556
556
  else
557
557
  return;
558
- if (p) {
559
- var _ = Z(u);
560
- Mn(p, s.props, "prop", _, s);
561
- } else if (u.PropTypes !== void 0 && !Pt) {
562
- Pt = !0;
558
+ if (m) {
559
+ var w = Z(u);
560
+ Mn(m, s.props, "prop", w, s);
561
+ } else if (u.PropTypes !== void 0 && !Ot) {
562
+ Ot = !0;
563
563
  var N = Z(u);
564
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
564
+ p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
565
565
  }
566
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
567
567
  }
568
568
  }
569
569
  function zn(s) {
570
570
  {
571
- for (var u = Object.keys(s.props), p = 0; p < u.length; p++) {
572
- var _ = u[p];
573
- if (_ !== "children" && _ !== "key") {
574
- Ae(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ae(null);
571
+ for (var u = Object.keys(s.props), m = 0; m < u.length; m++) {
572
+ var w = u[m];
573
+ if (w !== "children" && w !== "key") {
574
+ Ae(s), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Ae(null);
575
575
  break;
576
576
  }
577
577
  }
578
- s.ref !== null && (Ae(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
578
+ s.ref !== null && (Ae(s), p("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
579
579
  }
580
580
  }
581
581
  var yr = {};
582
- function vr(s, u, p, _, N, j) {
582
+ function vr(s, u, m, w, N, j) {
583
583
  {
584
- var P = Te(s);
585
- if (!P) {
586
- var O = "";
587
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var O = Te(s);
585
+ if (!O) {
586
+ var P = "";
587
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
588
588
  var X = qn();
589
- X ? O += X : O += dr();
589
+ X ? P += X : P += dr();
590
590
  var z;
591
- s === null ? z = "null" : Mt(s) ? z = "array" : s !== void 0 && s.$$typeof === t ? (z = "<" + (Z(s.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : z = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, O);
591
+ s === null ? z = "null" : Mt(s) ? z = "array" : s !== void 0 && s.$$typeof === t ? (z = "<" + (Z(s.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : z = typeof s, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, P);
592
592
  }
593
- var U = jn(s, u, p, N, j);
593
+ var U = jn(s, u, m, N, j);
594
594
  if (U == null)
595
595
  return U;
596
- if (P) {
596
+ if (O) {
597
597
  var ie = u.children;
598
598
  if (ie !== void 0)
599
- if (_)
599
+ if (w)
600
600
  if (Mt(ie)) {
601
601
  for (var $e = 0; $e < ie.length; $e++)
602
602
  gr(ie[$e], s);
603
603
  Object.freeze && Object.freeze(ie);
604
604
  } else
605
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
+ 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.");
606
606
  else
607
607
  gr(ie, s);
608
608
  }
@@ -612,7 +612,7 @@ Check the top-level render call using <` + p + ">.");
612
612
  }), $t = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
613
613
  if (!yr[we + $t]) {
614
614
  var Hn = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
615
- y(`A props object containing a "key" prop is being spread into JSX:
615
+ p(`A props object containing a "key" prop is being spread into JSX:
616
616
  let props = %s;
617
617
  <%s {...props} />
618
618
  React keys must be passed directly to JSX without using spread:
@@ -623,11 +623,11 @@ React keys must be passed directly to JSX without using spread:
623
623
  return s === n ? zn(U) : Vn(U), U;
624
624
  }
625
625
  }
626
- function Un(s, u, p) {
627
- return vr(s, u, p, !0);
626
+ function Un(s, u, m) {
627
+ return vr(s, u, m, !0);
628
628
  }
629
- function Bn(s, u, p) {
630
- return vr(s, u, p, !1);
629
+ function Bn(s, u, m) {
630
+ return vr(s, u, m, !1);
631
631
  }
632
632
  var Gn = Bn, Kn = Un;
633
633
  He.Fragment = n, He.jsx = Gn, He.jsxs = Kn;
@@ -814,27 +814,27 @@ function Mo(e) {
814
814
  ne();
815
815
  return nt(e, te);
816
816
  }
817
- function Oo(e) {
817
+ function Po(e) {
818
818
  return cn(ft("", null, null, null, [""], e = an(e), 0, [0], e));
819
819
  }
820
820
  function ft(e, t, r, n, o, i, a, c, l) {
821
- for (var d = 0, f = 0, v = a, R = 0, m = 0, w = 0, g = 1, x = 1, S = 1, y = 0, C = "", T = o, h = i, q = n, $ = C; x; )
822
- switch (w = y, y = ne()) {
821
+ for (var d = 0, f = 0, g = a, _ = 0, x = 0, C = 0, v = 1, y = 1, R = 1, p = 0, S = "", T = o, h = i, q = n, $ = S; y; )
822
+ switch (C = p, p = ne()) {
823
823
  case 40:
824
- if (w != 108 && H($, v - 1) == 58) {
825
- jt($ += L(ut(y), "&", "&\f"), "&\f") != -1 && (S = -1);
824
+ if (C != 108 && H($, g - 1) == 58) {
825
+ jt($ += L(ut(p), "&", "&\f"), "&\f") != -1 && (R = -1);
826
826
  break;
827
827
  }
828
828
  case 34:
829
829
  case 39:
830
830
  case 91:
831
- $ += ut(y);
831
+ $ += ut(p);
832
832
  break;
833
833
  case 9:
834
834
  case 10:
835
835
  case 13:
836
836
  case 32:
837
- $ += _o(w);
837
+ $ += _o(C);
838
838
  break;
839
839
  case 92:
840
840
  $ += To(lt() - 1, 7);
@@ -843,76 +843,76 @@ function ft(e, t, r, n, o, i, a, c, l) {
843
843
  switch (de()) {
844
844
  case 42:
845
845
  case 47:
846
- st(Po(ko(ne(), lt()), t, r), l);
846
+ st(Oo(ko(ne(), lt()), t, r), l);
847
847
  break;
848
848
  default:
849
849
  $ += "/";
850
850
  }
851
851
  break;
852
- case 123 * g:
853
- c[d++] = fe($) * S;
854
- case 125 * g:
852
+ case 123 * v:
853
+ c[d++] = fe($) * R;
854
+ case 125 * v:
855
855
  case 59:
856
856
  case 0:
857
- switch (y) {
857
+ switch (p) {
858
858
  case 0:
859
859
  case 125:
860
- x = 0;
860
+ y = 0;
861
861
  case 59 + f:
862
- S == -1 && ($ = L($, /\f/g, "")), m > 0 && fe($) - v && st(m > 32 ? Mr($ + ";", n, r, v - 1) : Mr(L($, " ", "") + ";", n, r, v - 2), l);
862
+ R == -1 && ($ = L($, /\f/g, "")), x > 0 && fe($) - g && st(x > 32 ? Mr($ + ";", n, r, g - 1) : Mr(L($, " ", "") + ";", n, r, g - 2), l);
863
863
  break;
864
864
  case 59:
865
865
  $ += ";";
866
866
  default:
867
- if (st(q = kr($, t, r, d, f, o, c, C, T = [], h = [], v), i), y === 123)
867
+ if (st(q = kr($, t, r, d, f, o, c, S, T = [], h = [], g), i), p === 123)
868
868
  if (f === 0)
869
- ft($, t, q, q, T, i, v, c, h);
869
+ ft($, t, q, q, T, i, g, c, h);
870
870
  else
871
- switch (R === 99 && H($, 3) === 110 ? 100 : R) {
871
+ switch (_ === 99 && H($, 3) === 110 ? 100 : _) {
872
872
  case 100:
873
873
  case 108:
874
874
  case 109:
875
875
  case 115:
876
- ft(e, q, q, n && st(kr(e, q, q, 0, 0, o, c, C, o, T = [], v), h), o, h, v, c, n ? T : h);
876
+ ft(e, q, q, n && st(kr(e, q, q, 0, 0, o, c, S, o, T = [], g), h), o, h, g, c, n ? T : h);
877
877
  break;
878
878
  default:
879
879
  ft($, q, q, q, [""], h, 0, c, h);
880
880
  }
881
881
  }
882
- d = f = m = 0, g = S = 1, C = $ = "", v = a;
882
+ d = f = x = 0, v = R = 1, S = $ = "", g = a;
883
883
  break;
884
884
  case 58:
885
- v = 1 + fe($), m = w;
885
+ g = 1 + fe($), x = C;
886
886
  default:
887
- if (g < 1) {
888
- if (y == 123)
889
- --g;
890
- else if (y == 125 && g++ == 0 && wo() == 125)
887
+ if (v < 1) {
888
+ if (p == 123)
889
+ --v;
890
+ else if (p == 125 && v++ == 0 && wo() == 125)
891
891
  continue;
892
892
  }
893
- switch ($ += St(y), y * g) {
893
+ switch ($ += St(p), p * v) {
894
894
  case 38:
895
- S = f > 0 ? 1 : ($ += "\f", -1);
895
+ R = f > 0 ? 1 : ($ += "\f", -1);
896
896
  break;
897
897
  case 44:
898
- c[d++] = (fe($) - 1) * S, S = 1;
898
+ c[d++] = (fe($) - 1) * R, R = 1;
899
899
  break;
900
900
  case 64:
901
- de() === 45 && ($ += ut(ne())), R = de(), f = v = fe(C = $ += Mo(lt())), y++;
901
+ de() === 45 && ($ += ut(ne())), _ = de(), f = g = fe(S = $ += Mo(lt())), p++;
902
902
  break;
903
903
  case 45:
904
- w === 45 && fe($) == 2 && (g = 0);
904
+ C === 45 && fe($) == 2 && (v = 0);
905
905
  }
906
906
  }
907
907
  return i;
908
908
  }
909
909
  function kr(e, t, r, n, o, i, a, c, l, d, f) {
910
- for (var v = o - 1, R = o === 0 ? i : [""], m = Jt(R), w = 0, g = 0, x = 0; w < n; ++w)
911
- for (var S = 0, y = Xe(e, v + 1, v = bo(g = a[w])), C = e; S < m; ++S)
912
- (C = on(g > 0 ? R[S] + " " + y : L(y, /&\f/g, R[S]))) && (l[x++] = C);
910
+ for (var g = o - 1, _ = o === 0 ? i : [""], x = Jt(_), C = 0, v = 0, y = 0; C < n; ++C)
911
+ for (var R = 0, p = Xe(e, g + 1, g = bo(v = a[C])), S = e; R < x; ++R)
912
+ (S = on(v > 0 ? _[R] + " " + p : L(p, /&\f/g, _[R]))) && (l[y++] = S);
913
913
  return Rt(e, t, r, o === 0 ? Kt : c, l, d, f);
914
914
  }
915
- function Po(e, t, r) {
915
+ function Oo(e, t, r) {
916
916
  return Rt(e, t, r, rn, St(Ro()), Xe(e, 2, -2), 0);
917
917
  }
918
918
  function Mr(e, t, r, n) {
@@ -984,14 +984,14 @@ var No = function(t, r, n) {
984
984
  return t;
985
985
  }, Do = function(t, r) {
986
986
  return cn(Io(an(t), r));
987
- }, Or = /* @__PURE__ */ new WeakMap(), Wo = function(t) {
987
+ }, Pr = /* @__PURE__ */ new WeakMap(), Wo = function(t) {
988
988
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
989
989
  // negative .length indicates that this rule has been already prefixed
990
990
  t.length < 1)) {
991
991
  for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; )
992
992
  if (n = n.parent, !n) return;
993
- if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Or.get(n)) && !o) {
994
- Or.set(t, !0);
993
+ if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Pr.get(n)) && !o) {
994
+ Pr.set(t, !0);
995
995
  for (var i = [], a = Do(r, i), c = n.props, l = 0, d = 0; l < a.length; l++)
996
996
  for (var f = 0; f < c.length; f++, d++)
997
997
  t.props[d] = i[l] ? a[l].replace(/&\f/g, c[f]) : c[f] + " " + a[l];
@@ -1149,9 +1149,9 @@ var qo = function(t, r, n, o) {
1149
1149
  var r = t.key;
1150
1150
  if (r === "css") {
1151
1151
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1152
- Array.prototype.forEach.call(n, function(g) {
1153
- var x = g.getAttribute("data-emotion");
1154
- x.indexOf(" ") !== -1 && (document.head.appendChild(g), g.setAttribute("data-s", ""));
1152
+ Array.prototype.forEach.call(n, function(v) {
1153
+ var y = v.getAttribute("data-emotion");
1154
+ y.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
1155
1155
  });
1156
1156
  }
1157
1157
  var o = t.stylisPlugins || Yo, i = {}, a, c = [];
@@ -1159,24 +1159,24 @@ var qo = function(t, r, n, o) {
1159
1159
  // this means we will ignore elements which don't have a space in them which
1160
1160
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1161
1161
  document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
1162
- function(g) {
1163
- for (var x = g.getAttribute("data-emotion").split(" "), S = 1; S < x.length; S++)
1164
- i[x[S]] = !0;
1165
- c.push(g);
1162
+ function(v) {
1163
+ for (var y = v.getAttribute("data-emotion").split(" "), R = 1; R < y.length; R++)
1164
+ i[y[R]] = !0;
1165
+ c.push(v);
1166
1166
  }
1167
1167
  );
1168
1168
  var l, d = [Wo, jo];
1169
1169
  {
1170
- var f, v = [Ao, Fo(function(g) {
1171
- f.insert(g);
1172
- })], R = $o(d.concat(o, v)), m = function(x) {
1173
- return Ne(Oo(x), R);
1170
+ var f, g = [Ao, Fo(function(v) {
1171
+ f.insert(v);
1172
+ })], _ = $o(d.concat(o, g)), x = function(y) {
1173
+ return Ne(Po(y), _);
1174
1174
  };
1175
- l = function(x, S, y, C) {
1176
- f = y, m(x ? x + "{" + S.styles + "}" : S.styles), C && (w.inserted[S.name] = !0);
1175
+ l = function(y, R, p, S) {
1176
+ f = p, x(y ? y + "{" + R.styles + "}" : R.styles), S && (C.inserted[R.name] = !0);
1177
1177
  };
1178
1178
  }
1179
- var w = {
1179
+ var C = {
1180
1180
  key: r,
1181
1181
  sheet: new go({
1182
1182
  key: r,
@@ -1191,7 +1191,7 @@ var qo = function(t, r, n, o) {
1191
1191
  registered: {},
1192
1192
  insert: l
1193
1193
  };
1194
- return w.sheet.hydrate(c), w;
1194
+ return C.sheet.hydrate(c), C;
1195
1195
  }, Yt = { exports: {} }, I = {};
1196
1196
  /** @license React v16.13.1
1197
1197
  * react-is.production.min.js
@@ -1201,12 +1201,12 @@ var qo = function(t, r, n, o) {
1201
1201
  * This source code is licensed under the MIT license found in the
1202
1202
  * LICENSE file in the root directory of this source tree.
1203
1203
  */
1204
- var Pr;
1204
+ var Or;
1205
1205
  function zo() {
1206
- if (Pr) return I;
1207
- Pr = 1;
1208
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, R = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
1209
- function C(h) {
1206
+ if (Or) return I;
1207
+ Or = 1;
1208
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
1209
+ function S(h) {
1210
1210
  if (typeof h == "object" && h !== null) {
1211
1211
  var q = h.$$typeof;
1212
1212
  switch (q) {
@@ -1217,14 +1217,14 @@ function zo() {
1217
1217
  case n:
1218
1218
  case i:
1219
1219
  case o:
1220
- case v:
1220
+ case g:
1221
1221
  return h;
1222
1222
  default:
1223
1223
  switch (h = h && h.$$typeof, h) {
1224
1224
  case c:
1225
1225
  case f:
1226
- case w:
1227
- case m:
1226
+ case C:
1227
+ case x:
1228
1228
  case a:
1229
1229
  return h;
1230
1230
  default:
@@ -1237,35 +1237,35 @@ function zo() {
1237
1237
  }
1238
1238
  }
1239
1239
  function T(h) {
1240
- return C(h) === d;
1240
+ return S(h) === d;
1241
1241
  }
1242
- return I.AsyncMode = l, I.ConcurrentMode = d, I.ContextConsumer = c, I.ContextProvider = a, I.Element = t, I.ForwardRef = f, I.Fragment = n, I.Lazy = w, I.Memo = m, I.Portal = r, I.Profiler = i, I.StrictMode = o, I.Suspense = v, I.isAsyncMode = function(h) {
1243
- return T(h) || C(h) === l;
1242
+ return I.AsyncMode = l, I.ConcurrentMode = d, I.ContextConsumer = c, I.ContextProvider = a, I.Element = t, I.ForwardRef = f, I.Fragment = n, I.Lazy = C, I.Memo = x, I.Portal = r, I.Profiler = i, I.StrictMode = o, I.Suspense = g, I.isAsyncMode = function(h) {
1243
+ return T(h) || S(h) === l;
1244
1244
  }, I.isConcurrentMode = T, I.isContextConsumer = function(h) {
1245
- return C(h) === c;
1245
+ return S(h) === c;
1246
1246
  }, I.isContextProvider = function(h) {
1247
- return C(h) === a;
1247
+ return S(h) === a;
1248
1248
  }, I.isElement = function(h) {
1249
1249
  return typeof h == "object" && h !== null && h.$$typeof === t;
1250
1250
  }, I.isForwardRef = function(h) {
1251
- return C(h) === f;
1251
+ return S(h) === f;
1252
1252
  }, I.isFragment = function(h) {
1253
- return C(h) === n;
1253
+ return S(h) === n;
1254
1254
  }, I.isLazy = function(h) {
1255
- return C(h) === w;
1255
+ return S(h) === C;
1256
1256
  }, I.isMemo = function(h) {
1257
- return C(h) === m;
1257
+ return S(h) === x;
1258
1258
  }, I.isPortal = function(h) {
1259
- return C(h) === r;
1259
+ return S(h) === r;
1260
1260
  }, I.isProfiler = function(h) {
1261
- return C(h) === i;
1261
+ return S(h) === i;
1262
1262
  }, I.isStrictMode = function(h) {
1263
- return C(h) === o;
1263
+ return S(h) === o;
1264
1264
  }, I.isSuspense = function(h) {
1265
- return C(h) === v;
1265
+ return S(h) === g;
1266
1266
  }, I.isValidElementType = function(h) {
1267
- return typeof h == "string" || typeof h == "function" || h === n || h === d || h === i || h === o || h === v || h === R || typeof h == "object" && h !== null && (h.$$typeof === w || h.$$typeof === m || h.$$typeof === a || h.$$typeof === c || h.$$typeof === f || h.$$typeof === x || h.$$typeof === S || h.$$typeof === y || h.$$typeof === g);
1268
- }, I.typeOf = C, I;
1267
+ return typeof h == "string" || typeof h == "function" || h === n || h === d || h === i || h === o || h === g || h === _ || typeof h == "object" && h !== null && (h.$$typeof === C || h.$$typeof === x || h.$$typeof === a || h.$$typeof === c || h.$$typeof === f || h.$$typeof === y || h.$$typeof === R || h.$$typeof === p || h.$$typeof === v);
1268
+ }, I.typeOf = S, I;
1269
1269
  }
1270
1270
  var D = {};
1271
1271
  /** @license React v16.13.1
@@ -1279,32 +1279,32 @@ var D = {};
1279
1279
  var Ar;
1280
1280
  function Uo() {
1281
1281
  return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() {
1282
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, R = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
1283
- function C(E) {
1282
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
1283
+ function S(E) {
1284
1284
  return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1285
- E === n || E === d || E === i || E === o || E === v || E === R || typeof E == "object" && E !== null && (E.$$typeof === w || E.$$typeof === m || E.$$typeof === a || E.$$typeof === c || E.$$typeof === f || E.$$typeof === x || E.$$typeof === S || E.$$typeof === y || E.$$typeof === g);
1285
+ E === n || E === d || E === i || E === o || E === g || E === _ || typeof E == "object" && E !== null && (E.$$typeof === C || E.$$typeof === x || E.$$typeof === a || E.$$typeof === c || E.$$typeof === f || E.$$typeof === y || E.$$typeof === R || E.$$typeof === p || E.$$typeof === v);
1286
1286
  }
1287
1287
  function T(E) {
1288
1288
  if (typeof E == "object" && E !== null) {
1289
1289
  var Be = E.$$typeof;
1290
1290
  switch (Be) {
1291
1291
  case t:
1292
- var Pe = E.type;
1293
- switch (Pe) {
1292
+ var Oe = E.type;
1293
+ switch (Oe) {
1294
1294
  case l:
1295
1295
  case d:
1296
1296
  case n:
1297
1297
  case i:
1298
1298
  case o:
1299
- case v:
1300
- return Pe;
1299
+ case g:
1300
+ return Oe;
1301
1301
  default:
1302
- var Re = Pe && Pe.$$typeof;
1302
+ var Re = Oe && Oe.$$typeof;
1303
1303
  switch (Re) {
1304
1304
  case c:
1305
1305
  case f:
1306
- case w:
1307
- case m:
1306
+ case C:
1307
+ case x:
1308
1308
  case a:
1309
1309
  return Re;
1310
1310
  default:
@@ -1316,7 +1316,7 @@ function Uo() {
1316
1316
  }
1317
1317
  }
1318
1318
  }
1319
- var h = l, q = d, $ = c, Ye = a, Se = t, Te = f, ke = n, Ce = w, Z = m, ce = r, pe = i, b = o, k = v, M = !1;
1319
+ var h = l, q = d, $ = c, Ye = a, Se = t, Te = f, ke = n, Ce = C, Z = x, ce = r, pe = i, b = o, k = g, M = !1;
1320
1320
  function A(E) {
1321
1321
  return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Y(E) || T(E) === l;
1322
1322
  }
@@ -1339,10 +1339,10 @@ function Uo() {
1339
1339
  return T(E) === n;
1340
1340
  }
1341
1341
  function Ve(E) {
1342
- return T(E) === w;
1342
+ return T(E) === C;
1343
1343
  }
1344
1344
  function ze(E) {
1345
- return T(E) === m;
1345
+ return T(E) === x;
1346
1346
  }
1347
1347
  function Me(E) {
1348
1348
  return T(E) === r;
@@ -1350,13 +1350,13 @@ function Uo() {
1350
1350
  function Ue(E) {
1351
1351
  return T(E) === i;
1352
1352
  }
1353
- function Oe(E) {
1353
+ function Pe(E) {
1354
1354
  return T(E) === o;
1355
1355
  }
1356
1356
  function kt(E) {
1357
- return T(E) === v;
1357
+ return T(E) === g;
1358
1358
  }
1359
- D.AsyncMode = h, D.ConcurrentMode = q, D.ContextConsumer = $, D.ContextProvider = Ye, D.Element = Se, D.ForwardRef = Te, D.Fragment = ke, D.Lazy = Ce, D.Memo = Z, D.Portal = ce, D.Profiler = pe, D.StrictMode = b, D.Suspense = k, D.isAsyncMode = A, D.isConcurrentMode = Y, D.isContextConsumer = G, D.isContextProvider = oe, D.isElement = me, D.isForwardRef = _t, D.isFragment = Tt, D.isLazy = Ve, D.isMemo = ze, D.isPortal = Me, D.isProfiler = Ue, D.isStrictMode = Oe, D.isSuspense = kt, D.isValidElementType = C, D.typeOf = T;
1359
+ D.AsyncMode = h, D.ConcurrentMode = q, D.ContextConsumer = $, D.ContextProvider = Ye, D.Element = Se, D.ForwardRef = Te, D.Fragment = ke, D.Lazy = Ce, D.Memo = Z, D.Portal = ce, D.Profiler = pe, D.StrictMode = b, D.Suspense = k, D.isAsyncMode = A, D.isConcurrentMode = Y, D.isContextConsumer = G, D.isContextProvider = oe, D.isElement = me, D.isForwardRef = _t, D.isFragment = Tt, D.isLazy = Ve, D.isMemo = ze, D.isPortal = Me, D.isProfiler = Ue, D.isStrictMode = Pe, D.isSuspense = kt, D.isValidElementType = S, D.typeOf = T;
1360
1360
  }()), D;
1361
1361
  }
1362
1362
  process.env.NODE_ENV === "production" ? Yt.exports = zo() : Yt.exports = Uo();
@@ -1587,9 +1587,9 @@ function ni(e, t, r) {
1587
1587
  Lr.lastIndex = 0;
1588
1588
  for (var d = "", f; (f = Lr.exec(o)) !== null; )
1589
1589
  d += "-" + f[1];
1590
- var v = Xo(o) + d;
1590
+ var g = Xo(o) + d;
1591
1591
  return {
1592
- name: v,
1592
+ name: g,
1593
1593
  styles: o,
1594
1594
  next: he
1595
1595
  };
@@ -1994,19 +1994,19 @@ function Ci(e, t) {
1994
1994
  ...i
1995
1995
  };
1996
1996
  return t.changes.iterChanges((c, l, d, f) => {
1997
- const v = f - d, R = l - c, m = v - R;
1998
- if (c === 0 && (r = !0), c === 0 && v > 0 && i.start === 0) {
1999
- a.start = v, a.end += m;
1997
+ const g = f - d, _ = l - c, x = g - _;
1998
+ if (c === 0 && (r = !0), c === 0 && g > 0 && i.start === 0) {
1999
+ a.start = g, a.end += x;
2000
2000
  return;
2001
2001
  }
2002
2002
  if (l <= i.start)
2003
- a.start += m, a.end += m;
2003
+ a.start += x, a.end += x;
2004
2004
  else if (c >= i.start && c < i.end && l >= i.end)
2005
2005
  a.end = c;
2006
2006
  else if (!(c >= i.start && l <= i.end)) {
2007
2007
  if (c < i.end && l > i.end) {
2008
- const w = i.end - c;
2009
- a.end = c + Math.min(w, v);
2008
+ const C = i.end - c;
2009
+ a.end = c + Math.min(C, g);
2010
2010
  }
2011
2011
  }
2012
2012
  }), a;
@@ -2253,15 +2253,15 @@ function zt(e) {
2253
2253
  let i = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.value);
2254
2254
  if (!i)
2255
2255
  return;
2256
- let { state: a } = e, c = a.doc.lineAt(a.selection.main.head), [, l, d, f, v] = i, R = f ? +f.slice(1) : 0, m = d ? +d : c.number;
2257
- if (d && v) {
2258
- let x = m / 100;
2259
- l && (x = x * (l == "-" ? -1 : 1) + c.number / a.doc.lines), m = Math.round(a.doc.lines * x);
2260
- } else d && l && (m = m * (l == "-" ? -1 : 1) + c.number);
2261
- let w = a.doc.line(Math.max(1, Math.min(a.doc.lines, m))), g = le.cursor(w.from + Math.max(0, Math.min(R, w.length)));
2256
+ let { state: a } = e, c = a.doc.lineAt(a.selection.main.head), [, l, d, f, g] = i, _ = f ? +f.slice(1) : 0, x = d ? +d : c.number;
2257
+ if (d && g) {
2258
+ let y = x / 100;
2259
+ l && (y = y * (l == "-" ? -1 : 1) + c.number / a.doc.lines), x = Math.round(a.doc.lines * y);
2260
+ } else d && l && (x = x * (l == "-" ? -1 : 1) + c.number);
2261
+ let C = a.doc.line(Math.max(1, Math.min(a.doc.lines, x))), v = le.cursor(C.from + Math.max(0, Math.min(_, C.length)));
2262
2262
  e.dispatch({
2263
- effects: [Qe.of(!1), V.scrollIntoView(g.from, { y: "center" })],
2264
- selection: g
2263
+ effects: [Qe.of(!1), V.scrollIntoView(v.from, { y: "center" })],
2264
+ selection: v
2265
2265
  }), e.focus();
2266
2266
  }
2267
2267
  return { dom: n };
@@ -2317,11 +2317,11 @@ function er(e) {
2317
2317
  let t = [$i, Ai];
2318
2318
  return e && t.push(xn.of(e)), t;
2319
2319
  }
2320
- const Mi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch" }), Oi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
2320
+ const Mi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch" }), Pi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
2321
2321
  function qr(e, t, r, n) {
2322
2322
  return (r == 0 || e(t.sliceDoc(r - 1, r)) != ae.Word) && (n == t.doc.length || e(t.sliceDoc(n, n + 1)) != ae.Word);
2323
2323
  }
2324
- function Pi(e, t, r, n) {
2324
+ function Oi(e, t, r, n) {
2325
2325
  return e(t.sliceDoc(r, r + 1)) == ae.Word && e(t.sliceDoc(n - 1, n)) == ae.Word;
2326
2326
  }
2327
2327
  const Ai = /* @__PURE__ */ Kr.fromClass(class {
@@ -2348,7 +2348,7 @@ const Ai = /* @__PURE__ */ Kr.fromClass(class {
2348
2348
  if (l < t.minSelectionLength || l > 200)
2349
2349
  return Q.none;
2350
2350
  if (t.wholeWords) {
2351
- if (i = r.sliceDoc(o.from, o.to), a = r.charCategorizer(o.head), !(qr(a, r, o.from, o.to) && Pi(a, r, o.from, o.to)))
2351
+ if (i = r.sliceDoc(o.from, o.to), a = r.charCategorizer(o.head), !(qr(a, r, o.from, o.to) && Oi(a, r, o.from, o.to)))
2352
2352
  return Q.none;
2353
2353
  } else if (i = r.sliceDoc(o.from, o.to), !i)
2354
2354
  return Q.none;
@@ -2357,8 +2357,8 @@ const Ai = /* @__PURE__ */ Kr.fromClass(class {
2357
2357
  for (let l of e.visibleRanges) {
2358
2358
  let d = new We(r.doc, i, l.from, l.to);
2359
2359
  for (; !d.next().done; ) {
2360
- let { from: f, to: v } = d.value;
2361
- if ((!a || qr(a, r, f, v)) && (o.empty && f <= o.from && v >= o.to ? c.push(Oi.range(f, v)) : (f >= o.to || v <= o.from) && c.push(Mi.range(f, v)), c.length > t.maxMatches))
2360
+ let { from: f, to: g } = d.value;
2361
+ if ((!a || qr(a, r, f, g)) && (o.empty && f <= o.from && g >= o.to ? c.push(Pi.range(f, g)) : (f >= o.to || g <= o.from) && c.push(Mi.range(f, g)), c.length > t.maxMatches))
2362
2362
  return Q.none;
2363
2363
  }
2364
2364
  }
@@ -2617,8 +2617,8 @@ const qi = /* @__PURE__ */ Q.mark({ class: "cm-searchMatch" }), Yi = /* @__PURE_
2617
2617
  for (; o < a - 1 && l > i[o + 1].from - 2 * 250; )
2618
2618
  l = i[++o].to;
2619
2619
  e.highlight(r.state, c, l, (d, f) => {
2620
- let v = r.state.selection.ranges.some((R) => R.from == d && R.to == f);
2621
- n.add(d, f, v ? Yi : qi);
2620
+ let g = r.state.selection.ranges.some((_) => _.from == d && _.to == f);
2621
+ n.add(d, f, g ? Yi : qi);
2622
2622
  });
2623
2623
  }
2624
2624
  return n.finish();
@@ -2681,9 +2681,9 @@ const xt = /* @__PURE__ */ ot((e, { query: t }) => {
2681
2681
  return !1;
2682
2682
  let a = i, c = [], l, d, f = [];
2683
2683
  a.from == n && a.to == o && (d = r.toText(t.getReplacement(a)), c.push({ from: a.from, to: a.to, insert: d }), a = t.nextMatch(r, a.from, a.to), f.push(V.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + ".")));
2684
- let v = e.state.changes(c);
2685
- return a && (l = le.single(a.from, a.to).map(v), f.push(nr(e, a)), f.push(r.facet(_e).scrollToMatch(l.main, e))), e.dispatch({
2686
- changes: v,
2684
+ let g = e.state.changes(c);
2685
+ return a && (l = le.single(a.from, a.to).map(g), f.push(nr(e, a)), f.push(r.facet(_e).scrollToMatch(l.main, e))), e.dispatch({
2686
+ changes: g,
2687
2687
  selection: l,
2688
2688
  effects: f,
2689
2689
  userEvent: "input.replace"
@@ -3058,17 +3058,18 @@ const ms = [
3058
3058
  extensions: r = [],
3059
3059
  height: n = "300px",
3060
3060
  disabled: o = !1,
3061
- className: i = "",
3062
- style: a = {},
3063
- placeholder: c = "",
3064
- showLineNumbers: l = !0,
3065
- onEditorViewCreated: d,
3066
- locale: f = "zh-CN"
3067
- }, v) => {
3068
- const R = ue(null), m = ue();
3061
+ readOnly: i = !1,
3062
+ className: a = "",
3063
+ style: c = {},
3064
+ placeholder: l = "",
3065
+ showLineNumbers: d = !0,
3066
+ onEditorViewCreated: f,
3067
+ locale: g = "zh-CN"
3068
+ }, _) => {
3069
+ const x = ue(null), C = ue();
3069
3070
  return ge(() => {
3070
- if (!R.current) return;
3071
- const w = [
3071
+ if (!x.current) return;
3072
+ const v = [
3072
3073
  Er(),
3073
3074
  Ee.of([...Sr, Dt, {
3074
3075
  key: "Enter",
@@ -3077,46 +3078,46 @@ const ms = [
3077
3078
  V.lineWrapping,
3078
3079
  pt(Rr),
3079
3080
  be.allowMultipleSelections.of(!0),
3080
- f === "zh-CN" ? Vr() : zr(),
3081
- c ? br(c) : [],
3081
+ g === "zh-CN" ? Vr() : zr(),
3082
+ l ? br(l) : [],
3082
3083
  // 行号功能,根据配置决定是否启用
3083
- l ? xr() : [],
3084
- V.updateListener.of((S) => {
3085
- if (S.docChanged && t) {
3086
- const y = {
3087
- value: S.state.doc.toString(),
3084
+ d ? xr() : [],
3085
+ V.updateListener.of((p) => {
3086
+ if (p.docChanged && t) {
3087
+ const S = {
3088
+ value: p.state.doc.toString(),
3088
3089
  readOnlyRanges: []
3089
3090
  // 基础编辑器没有只读区域逻辑,由特定编辑器实现
3090
3091
  };
3091
- t(y);
3092
+ t(S);
3092
3093
  }
3093
3094
  })
3094
3095
  ];
3095
- o && w.push(be.readOnly.of(!0));
3096
- const g = be.create({
3096
+ (o || i) && v.push(be.readOnly.of(!0));
3097
+ const y = be.create({
3097
3098
  doc: e,
3098
- extensions: [...w, ...r]
3099
- }), x = new V({
3100
- state: g,
3101
- parent: R.current
3099
+ extensions: [...v, ...r]
3100
+ }), R = new V({
3101
+ state: y,
3102
+ parent: x.current
3102
3103
  });
3103
- return m.current = x, d && d(x), () => {
3104
- var S;
3105
- (S = m.current) == null || S.destroy();
3104
+ return C.current = R, f && f(R), () => {
3105
+ var p;
3106
+ (p = C.current) == null || p.destroy();
3106
3107
  };
3107
3108
  }, []), ge(() => {
3108
- m.current && e !== m.current.state.doc.toString() && m.current.dispatch({
3109
+ C.current && e !== C.current.state.doc.toString() && C.current.dispatch({
3109
3110
  changes: {
3110
3111
  from: 0,
3111
- to: m.current.state.doc.length,
3112
+ to: C.current.state.doc.length,
3112
3113
  insert: e
3113
3114
  }
3114
3115
  });
3115
3116
  }, [e]), ge(() => {
3116
- if (!m.current || !R.current) return;
3117
- const w = m.current.state.doc.toString();
3118
- m.current.destroy();
3119
- const g = [
3117
+ if (!C.current || !x.current) return;
3118
+ const v = C.current.state.doc.toString();
3119
+ C.current.destroy();
3120
+ const y = [
3120
3121
  Er(),
3121
3122
  Ee.of([...Sr, Dt, {
3122
3123
  key: "Enter",
@@ -3125,65 +3126,65 @@ const ms = [
3125
3126
  V.lineWrapping,
3126
3127
  pt(Rr),
3127
3128
  be.allowMultipleSelections.of(!0),
3128
- f === "zh-CN" ? Vr() : zr(),
3129
- c ? br(c) : [],
3129
+ g === "zh-CN" ? Vr() : zr(),
3130
+ l ? br(l) : [],
3130
3131
  // 行号功能,根据配置决定是否启用
3131
- l ? xr() : [],
3132
- V.updateListener.of((y) => {
3133
- if (y.docChanged && t) {
3134
- const C = {
3135
- value: y.state.doc.toString(),
3132
+ d ? xr() : [],
3133
+ V.updateListener.of((S) => {
3134
+ if (S.docChanged && t) {
3135
+ const T = {
3136
+ value: S.state.doc.toString(),
3136
3137
  readOnlyRanges: []
3137
3138
  // 基础编辑器没有只读区域逻辑,由特定编辑器实现
3138
3139
  };
3139
- t(C);
3140
+ t(T);
3140
3141
  }
3141
3142
  })
3142
3143
  ];
3143
- o && g.push(be.readOnly.of(!0));
3144
- const x = be.create({
3145
- doc: w,
3146
- extensions: [...g, ...r]
3147
- }), S = new V({
3148
- state: x,
3149
- parent: R.current
3144
+ (o || i) && y.push(be.readOnly.of(!0));
3145
+ const R = be.create({
3146
+ doc: v,
3147
+ extensions: [...y, ...r]
3148
+ }), p = new V({
3149
+ state: R,
3150
+ parent: x.current
3150
3151
  });
3151
- m.current = S, d && d(S);
3152
- }, [o, l]), Xn(v, () => ({
3153
- insertTextAtCursor: (w) => {
3154
- const g = m.current;
3155
- g && (g.dispatch(g.state.replaceSelection(w)), g.focus());
3152
+ C.current = p, f && f(p);
3153
+ }, [o, i, d]), Xn(_, () => ({
3154
+ insertTextAtCursor: (v) => {
3155
+ const y = C.current;
3156
+ y && (y.dispatch(y.state.replaceSelection(v)), y.focus());
3156
3157
  },
3157
- goToPosition: (w) => {
3158
- const g = m.current;
3159
- if (g) {
3160
- const x = g.state.doc.length, S = Math.max(0, Math.min(w, x));
3161
- g.dispatch({
3158
+ goToPosition: (v) => {
3159
+ const y = C.current;
3160
+ if (y) {
3161
+ const R = y.state.doc.length, p = Math.max(0, Math.min(v, R));
3162
+ y.dispatch({
3162
3163
  selection: {
3163
- anchor: S,
3164
- head: S
3164
+ anchor: p,
3165
+ head: p
3165
3166
  },
3166
3167
  scrollIntoView: !0
3167
- }), g.focus();
3168
+ }), y.focus();
3168
3169
  }
3169
3170
  },
3170
- goToLine: (w, g = 0) => {
3171
- const x = m.current;
3172
- if (x) {
3173
- const S = x.state.doc, y = Math.max(1, Math.min(w, S.lines)), C = S.line(y), T = Math.max(0, Math.min(g, C.length)) + C.from;
3174
- x.dispatch({
3171
+ goToLine: (v, y = 0) => {
3172
+ const R = C.current;
3173
+ if (R) {
3174
+ const p = R.state.doc, S = Math.max(1, Math.min(v, p.lines)), T = p.line(S), h = Math.max(0, Math.min(y, T.length)) + T.from;
3175
+ R.dispatch({
3175
3176
  selection: {
3176
- anchor: T,
3177
- head: T
3177
+ anchor: h,
3178
+ head: h
3178
3179
  },
3179
3180
  scrollIntoView: !0
3180
- }), x.focus();
3181
+ }), R.focus();
3181
3182
  }
3182
3183
  },
3183
- getEditorView: () => m.current
3184
- })), /* @__PURE__ */ wt("div", { ref: R, className: `senyao-editor ${o ? "disabled" : ""} ${i}`, style: {
3184
+ getEditorView: () => C.current
3185
+ })), /* @__PURE__ */ wt("div", { ref: x, className: `senyao-editor ${o ? "disabled" : ""} ${i ? "readonly" : ""} ${a}`, style: {
3185
3186
  height: n,
3186
- ...a
3187
+ ...c
3187
3188
  } });
3188
3189
  }, or = rt(Qi), Xi = ({
3189
3190
  value: e,
@@ -3208,39 +3209,39 @@ const ms = [
3208
3209
  showLineNumbers: i = !0,
3209
3210
  ...a
3210
3211
  }, c) => {
3211
- const l = ue(null), f = ((b) => b != null && typeof b == "object" && "value" in b)(e), v = f ? e.value : e, R = (f && "readOnlyRanges" in e ? e.readOnlyRanges : n) ?? [], [m, w] = Ft(v ?? ""), g = ue(null), [x, S] = Ft(R), y = ue(m), [C, T] = Ft(null), h = ue(!1), q = ue(/* @__PURE__ */ new Map()), $ = ue(!1);
3212
+ const l = ue(null), f = ((b) => b != null && typeof b == "object" && "value" in b)(e), g = f ? e.value : e, _ = (f && "readOnlyRanges" in e ? e.readOnlyRanges : n) ?? [], [x, C] = Ft(g ?? ""), v = ue(null), [y, R] = Ft(_), p = ue(x), [S, T] = Ft(null), h = ue(!1), q = ue(/* @__PURE__ */ new Map()), $ = ue(!1);
3212
3213
  ge(() => {
3213
- if (o && R.length > 0 && !C) {
3214
+ if (o && _.length > 0 && !S) {
3214
3215
  const b = [];
3215
3216
  let k = 0;
3216
- for (let M = 0; M < R.length; M++) {
3217
- const A = R[M];
3217
+ for (let M = 0; M < _.length; M++) {
3218
+ const A = _[M];
3218
3219
  A.start > k && b.push({
3219
- content: m.substring(k, A.start),
3220
+ content: x.substring(k, A.start),
3220
3221
  editable: !0
3221
3222
  }), b.push({
3222
- content: m.substring(A.start, A.end),
3223
+ content: x.substring(A.start, A.end),
3223
3224
  editable: !1
3224
3225
  }), k = A.end;
3225
3226
  }
3226
- k < m.length && b.push({
3227
- content: m.substring(k),
3227
+ k < x.length && b.push({
3228
+ content: x.substring(k),
3228
3229
  editable: !0
3229
3230
  }), T(b);
3230
3231
  }
3231
- }, [o, R, m, C]), ge(() => {
3232
- if (m) {
3232
+ }, [o, _, x, S]), ge(() => {
3233
+ if (x) {
3233
3234
  const b = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], k = /* @__PURE__ */ new Map();
3234
3235
  b.forEach((M) => {
3235
- const A = m.indexOf(M);
3236
+ const A = x.indexOf(M);
3236
3237
  A >= 0 && k.set(M, A);
3237
3238
  }), q.current = k;
3238
3239
  }
3239
3240
  }, []);
3240
3241
  const Ye = ht(() => {
3241
3242
  const b = [Br(), Jr()];
3242
- return x.length > 0 && b.push(Ei(x)), [...b, ...r];
3243
- }, [r, x]), Se = se((b, k, M = 0) => {
3243
+ return y.length > 0 && b.push(Ei(y)), [...b, ...r];
3244
+ }, [r, y]), Se = se((b, k, M = 0) => {
3244
3245
  const A = b.indexOf(k, M);
3245
3246
  return A >= 0 ? A : null;
3246
3247
  }, []), Te = se((b, k) => {
@@ -3269,8 +3270,8 @@ const ms = [
3269
3270
  Y >= 0 && Math.abs(Y - M) > 0 && (q.current.set(A, Y), Y > M && (M === 0 || M < 15) && (k = !0));
3270
3271
  }), k;
3271
3272
  }, []), Ce = se(() => {
3272
- if (!g.current) return;
3273
- const b = g.current, k = b.state.doc.toString(), M = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], A = b.state.selection;
3273
+ if (!v.current) return;
3274
+ const b = v.current, k = b.state.doc.toString(), M = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], A = b.state.selection;
3274
3275
  let Y = !1;
3275
3276
  for (const G of M) {
3276
3277
  const oe = k.indexOf(G);
@@ -3292,26 +3293,26 @@ const ms = [
3292
3293
  });
3293
3294
  }, 10);
3294
3295
  }, []), Z = se(() => {
3295
- if (!g.current) return;
3296
- const b = g.current;
3297
- x.length > 0 && (ve(b, []), setTimeout(() => {
3298
- b.dom && document.contains(b.dom) && (ve(b, x), setTimeout(() => {
3296
+ if (!v.current) return;
3297
+ const b = v.current;
3298
+ y.length > 0 && (ve(b, []), setTimeout(() => {
3299
+ b.dom && document.contains(b.dom) && (ve(b, y), setTimeout(() => {
3299
3300
  b.dom && document.contains(b.dom) && b.dispatch({});
3300
3301
  }, 10));
3301
3302
  }, 10));
3302
- }, [x]), ce = se((b) => {
3303
- const k = b.value, M = y.current;
3304
- w(k), M !== k && (!M || k.length > (M == null ? void 0 : M.length) && !M.startsWith(k.substring(0, 5)) && k.includes(M.substring(0, 10))) && (h.current = !0, ke(k) && setTimeout(() => {
3303
+ }, [y]), ce = se((b) => {
3304
+ const k = b.value, M = p.current;
3305
+ C(k), M !== k && (!M || k.length > (M == null ? void 0 : M.length) && !M.startsWith(k.substring(0, 5)) && k.includes(M.substring(0, 10))) && (h.current = !0, ke(k) && setTimeout(() => {
3305
3306
  Ce();
3306
- }, 10)), y.current = k;
3307
- const A = g.current ? Ri(g.current) : x;
3308
- if (o && C) {
3309
- const Y = Te(C, k);
3307
+ }, 10)), p.current = k;
3308
+ const A = v.current ? Ri(v.current) : y;
3309
+ if (o && S) {
3310
+ const Y = Te(S, k);
3310
3311
  T(Y);
3311
3312
  const {
3312
3313
  readOnlyRanges: G
3313
3314
  } = Ir(Y);
3314
- S(G), g.current && ve(g.current, G), t && t({
3315
+ R(G), v.current && ve(v.current, G), t && t({
3315
3316
  value: k,
3316
3317
  readOnlyRanges: G
3317
3318
  });
@@ -3320,39 +3321,39 @@ const ms = [
3320
3321
  value: k,
3321
3322
  readOnlyRanges: A
3322
3323
  });
3323
- }, [t, o, C, x, Te, ke, Ce]);
3324
+ }, [t, o, S, y, Te, ke, Ce]);
3324
3325
  ge(() => {
3325
- !o && JSON.stringify(R) !== JSON.stringify(x) && (S(R), g.current && ve(g.current, R));
3326
- }, [R, x, o]), ge(() => {
3327
- if (o && C) {
3326
+ !o && JSON.stringify(_) !== JSON.stringify(y) && (R(_), v.current && ve(v.current, _));
3327
+ }, [_, y, o]), ge(() => {
3328
+ if (o && S) {
3328
3329
  const {
3329
3330
  readOnlyRanges: b
3330
- } = Ir(C);
3331
- JSON.stringify(b) !== JSON.stringify(x) && (S(b), g.current && ve(g.current, b));
3331
+ } = Ir(S);
3332
+ JSON.stringify(b) !== JSON.stringify(y) && (R(b), v.current && ve(v.current, b));
3332
3333
  }
3333
- }, [C, x, o]), ge(() => {
3334
- g.current && h.current && (h.current = !1, g.current.dispatch({}));
3335
- }, [m]), ge(() => {
3336
- g.current && x.length > 0 && !$.current && ($.current = !0, setTimeout(() => {
3334
+ }, [S, y, o]), ge(() => {
3335
+ v.current && h.current && (h.current = !1, v.current.dispatch({}));
3336
+ }, [x]), ge(() => {
3337
+ v.current && y.length > 0 && !$.current && ($.current = !0, setTimeout(() => {
3337
3338
  Z();
3338
3339
  }, 50), setTimeout(() => {
3339
3340
  Z();
3340
3341
  }, 200));
3341
- }, [Z, x]);
3342
+ }, [Z, y]);
3342
3343
  const pe = se((b) => {
3343
- if (g.current = b, x.length > 0 && (ve(b, x), setTimeout(() => {
3344
+ if (v.current = b, y.length > 0 && (ve(b, y), setTimeout(() => {
3344
3345
  ve(b, []), setTimeout(() => {
3345
- ve(b, x);
3346
+ ve(b, y);
3346
3347
  }, 10);
3347
- }, 50)), m) {
3348
+ }, 50)), x) {
3348
3349
  const k = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], M = /* @__PURE__ */ new Map();
3349
3350
  k.forEach((A) => {
3350
- const Y = m.indexOf(A);
3351
+ const Y = x.indexOf(A);
3351
3352
  Y >= 0 && M.set(A, Y);
3352
3353
  }), q.current = M;
3353
3354
  }
3354
- }, [x, m]);
3355
- return /* @__PURE__ */ wt(or, { ref: l, value: m, onChange: ce, extensions: Ye, showLineNumbers: i, onEditorViewCreated: pe, ...a });
3355
+ }, [y, x]);
3356
+ return /* @__PURE__ */ wt(or, { ref: l, value: x, onChange: ce, extensions: Ye, showLineNumbers: i, onEditorViewCreated: pe, ...a });
3356
3357
  }, ys = rt(Zi), es = (e, t) => {
3357
3358
  const {
3358
3359
  value: r,
@@ -3362,45 +3363,45 @@ const ms = [
3362
3363
  enableFormatting: a = !1,
3363
3364
  enableCodeFolding: c = !0,
3364
3365
  ...l
3365
- } = e, d = ue(!0), f = ue(null), v = se((y) => {
3366
+ } = e, d = ue(!0), f = ue(null), g = se((p) => {
3366
3367
  try {
3367
- return y === "" || JSON.parse(y), !0;
3368
+ return p === "" || JSON.parse(p), !0;
3368
3369
  } catch {
3369
3370
  return !1;
3370
3371
  }
3371
- }, []), R = se((y) => {
3372
+ }, []), _ = se((p) => {
3372
3373
  try {
3373
- if (!y.trim()) return "";
3374
- const C = JSON.parse(y);
3375
- return JSON.stringify(C, null, 2);
3374
+ if (!p.trim()) return "";
3375
+ const S = JSON.parse(p);
3376
+ return JSON.stringify(S, null, 2);
3376
3377
  } catch {
3377
- return y;
3378
+ return p;
3378
3379
  }
3379
- }, []), m = se(() => {
3380
+ }, []), x = se(() => {
3380
3381
  if (!f.current) return !1;
3381
- const y = f.current, C = y.state.doc.toString(), T = R(C);
3382
- if (T === C) return !1;
3383
- const h = y.state.update({
3382
+ const p = f.current, S = p.state.doc.toString(), T = _(S);
3383
+ if (T === S) return !1;
3384
+ const h = p.state.update({
3384
3385
  changes: {
3385
3386
  from: 0,
3386
- to: y.state.doc.length,
3387
+ to: p.state.doc.length,
3387
3388
  insert: T
3388
3389
  }
3389
3390
  });
3390
- return y.dispatch(h), !0;
3391
- }, [R]), w = ht(() => Ee.of([{
3391
+ return p.dispatch(h), !0;
3392
+ }, [_]), C = ht(() => Ee.of([{
3392
3393
  key: "Alt-f",
3393
3394
  mac: "Mod-Alt-f",
3394
- run: () => m()
3395
- }]), [m]), g = se((y) => {
3395
+ run: () => x()
3396
+ }]), [x]), v = se((p) => {
3396
3397
  if (n) {
3397
- const C = v(y.value);
3398
- d.current = C, n(y);
3398
+ const S = g(p.value);
3399
+ d.current = S, n(p);
3399
3400
  }
3400
- }, [n, v]), x = ht(() => {
3401
- const y = [Gr(), no(), eo(), Zr.highest(w), ...o];
3402
- return c && y.push(oo(), io({
3403
- markerDOM: (C) => {
3401
+ }, [n, g]), y = ht(() => {
3402
+ const p = [Gr(), no(), eo(), Zr.highest(C), ...o];
3403
+ return c && p.push(oo(), io({
3404
+ markerDOM: (S) => {
3404
3405
  const T = document.createElement("span");
3405
3406
  return T.style.cssText = `
3406
3407
  display: inline-flex;
@@ -3414,19 +3415,19 @@ const ms = [
3414
3415
  transition: all 0.2s ease;
3415
3416
  user-select: none;
3416
3417
  border-radius: 2px;
3417
- `, T.textContent = C ? "▾" : "▸", T.onmouseenter = () => {
3418
+ `, T.textContent = S ? "▾" : "▸", T.onmouseenter = () => {
3418
3419
  T.style.backgroundColor = "rgba(24, 144, 255, 0.08)";
3419
3420
  }, T.onmouseleave = () => {
3420
3421
  T.style.backgroundColor = "transparent";
3421
3422
  }, T;
3422
3423
  }
3423
- }), Ee.of(so)), y;
3424
- }, [w, o, c]), S = se((y) => {
3425
- f.current = y, a && r && setTimeout(() => {
3426
- m();
3424
+ }), Ee.of(so)), p;
3425
+ }, [C, o, c]), R = se((p) => {
3426
+ f.current = p, a && r && setTimeout(() => {
3427
+ x();
3427
3428
  }, 0);
3428
- }, [a, r, m]);
3429
- return /* @__PURE__ */ wt(or, { ref: t, value: r, showLineNumbers: i, onChange: g, extensions: x, onEditorViewCreated: S, ...l });
3429
+ }, [a, r, x]);
3430
+ return /* @__PURE__ */ wt(or, { ref: t, value: r, showLineNumbers: i, onChange: v, extensions: y, onEditorViewCreated: R, ...l });
3430
3431
  }, vs = rt(es);
3431
3432
  export {
3432
3433
  gs as Editor,