@devtable/settings-form 8.13.1 → 8.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,21 @@
1
- import { Box as me, TextInput as fe, Divider as Pr, Group as se, NumberInput as Vt, PasswordInput as tr, Button as oe, Modal as Be, Stack as Rr, SegmentedControl as Bt, useMantineTheme as Kt, Tooltip as Ht, Text as Ze, LoadingOverlay as _r, Table as xr, Select as Gt, Switch as Jt } from "@mantine/core";
1
+ import { Box as ve, TextInput as fe, Divider as Pr, Group as se, NumberInput as Vt, PasswordInput as tr, Button as oe, Modal as Be, Stack as Rr, SegmentedControl as Bt, useMantineTheme as Kt, Tooltip as Ht, Text as Ze, LoadingOverlay as _r, Table as xr, Select as Gt, Switch as Jt } from "@mantine/core";
2
2
  import { showNotification as _e, updateNotification as le } from "@mantine/notifications";
3
- import * as Fe from "react";
4
- import ze, { useEffect as we, memo as dt, useRef as ue, useState as Ie, useCallback as Tr, forwardRef as Cr, useMemo as pt } from "react";
3
+ import * as $e from "react";
4
+ import ke, { useEffect as we, memo as dt, useRef as ue, useState as Ie, useCallback as Tr, forwardRef as Cr, useMemo as pt } from "react";
5
5
  import { Recycle as Xt, PlaylistAdd as jr, Trash as Ar, Edit as Qt } from "tabler-icons-react";
6
6
  import Zt from "axios";
7
7
  import en from "crypto-js";
8
8
  import rn from "lodash";
9
9
  import { useForm as De, Controller as J } from "react-hook-form";
10
- import { useBoolean as tn, useRequest as ke } from "ahooks";
10
+ import { useBoolean as tn, useRequest as ze } from "ahooks";
11
11
  import * as nn from "monaco-editor";
12
- import { useModals as nr, closeAllModals as on } from "@mantine/modals";
13
- function an(e) {
12
+ import on from "monaco-editor/esm/vs/editor/editor.worker?worker";
13
+ import an from "monaco-editor/esm/vs/language/css/css.worker?worker";
14
+ import sn from "monaco-editor/esm/vs/language/html/html.worker?worker";
15
+ import cn from "monaco-editor/esm/vs/language/json/json.worker?worker";
16
+ import un from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
17
+ import { useModals as nr, closeAllModals as ln } from "@mantine/modals";
18
+ function fn(e) {
14
19
  e = e || {};
15
20
  const r = Object.keys(e).sort(), t = [];
16
21
  for (let o = 0; o < r.length; o++) {
@@ -29,8 +34,8 @@ function an(e) {
29
34
  }
30
35
  return t.sort().join("&");
31
36
  }
32
- function sn(e, r) {
33
- let t = an(e);
37
+ function dn(e, r) {
38
+ let t = fn(e);
34
39
  return t += "&key=" + r, en.MD5(t).toString().toUpperCase();
35
40
  }
36
41
  const ne = {
@@ -44,7 +49,7 @@ const ne = {
44
49
  return {
45
50
  app_id: this.app_id,
46
51
  nonce_str: r,
47
- sign: sn(
52
+ sign: dn(
48
53
  {
49
54
  app_id: this.app_id,
50
55
  nonce_str: r,
@@ -75,7 +80,7 @@ const ne = {
75
80
  function or(e) {
76
81
  ne.baseURL !== e.apiBaseURL && (ne.baseURL = e.apiBaseURL), e.app_id && (ne.app_id = e.app_id), e.app_secret && (ne.app_secret = e.app_secret);
77
82
  }
78
- const cn = {
83
+ const pn = {
79
84
  login: async (e, r) => {
80
85
  const t = {
81
86
  name: e,
@@ -122,7 +127,7 @@ const cn = {
122
127
  if (!!e)
123
128
  return ne.getRequest("POST")("/account/delete", { id: e });
124
129
  }
125
- }, un = {
130
+ }, gn = {
126
131
  list: async () => await ne.getRequest("POST")("/api/key/list", {
127
132
  filter: {
128
133
  search: ""
@@ -146,7 +151,7 @@ const cn = {
146
151
  if (!!e)
147
152
  return ne.getRequest("POST")("/api/key/delete", { id: e });
148
153
  }
149
- }, ln = {
154
+ }, hn = {
150
155
  list: async () => await ne.getRequest("POST")("/datasource/list", {
151
156
  filter: {},
152
157
  sort: [
@@ -168,13 +173,13 @@ const cn = {
168
173
  delete: async (e) => {
169
174
  await ne.getRequest("POST")("/datasource/delete", { id: e });
170
175
  }
171
- }, fn = {
176
+ }, mn = {
172
177
  list: async () => await ne.getRequest("GET")("/role/list", {})
173
178
  }, de = {
174
- datasource: ln,
175
- account: cn,
176
- role: fn,
177
- api_key: un
179
+ datasource: hn,
180
+ account: pn,
181
+ role: mn,
182
+ api_key: gn
178
183
  }, qe = {
179
184
  size: "sm",
180
185
  spacing: "md",
@@ -193,24 +198,24 @@ var ir = { exports: {} }, Le = {};
193
198
  * LICENSE file in the root directory of this source tree.
194
199
  */
195
200
  var Hr;
196
- function dn() {
201
+ function vn() {
197
202
  if (Hr)
198
203
  return Le;
199
204
  Hr = 1;
200
- var e = ze, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
201
- function c(u, d, v) {
202
- var y, h = {}, m = null, x = null;
203
- v !== void 0 && (m = "" + v), d.key !== void 0 && (m = "" + d.key), d.ref !== void 0 && (x = d.ref);
204
- for (y in d)
205
- o.call(d, y) && !i.hasOwnProperty(y) && (h[y] = d[y]);
205
+ var e = ke, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
206
+ function c(u, d, m) {
207
+ var b, h = {}, v = null, x = null;
208
+ m !== void 0 && (v = "" + m), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (x = d.ref);
209
+ for (b in d)
210
+ o.call(d, b) && !i.hasOwnProperty(b) && (h[b] = d[b]);
206
211
  if (u && u.defaultProps)
207
- for (y in d = u.defaultProps, d)
208
- h[y] === void 0 && (h[y] = d[y]);
209
- return { $$typeof: r, type: u, key: m, ref: x, props: h, _owner: s.current };
212
+ for (b in d = u.defaultProps, d)
213
+ h[b] === void 0 && (h[b] = d[b]);
214
+ return { $$typeof: r, type: u, key: v, ref: x, props: h, _owner: s.current };
210
215
  }
211
216
  return Le.Fragment = t, Le.jsx = c, Le.jsxs = c, Le;
212
217
  }
213
- var We = {};
218
+ var Ue = {};
214
219
  /**
215
220
  * @license React
216
221
  * react-jsx-runtime.development.js
@@ -221,28 +226,28 @@ var We = {};
221
226
  * LICENSE file in the root directory of this source tree.
222
227
  */
223
228
  var Gr;
224
- function pn() {
229
+ function yn() {
225
230
  return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
226
- var e = ze, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, z = "@@iterator";
231
+ var e = ke, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), Y = Symbol.iterator, k = "@@iterator";
227
232
  function G(n) {
228
233
  if (n === null || typeof n != "object")
229
234
  return null;
230
- var f = Y && n[Y] || n[z];
235
+ var f = Y && n[Y] || n[k];
231
236
  return typeof f == "function" ? f : null;
232
237
  }
233
238
  var K = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
234
239
  function D(n) {
235
240
  {
236
- for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
237
- b[E - 1] = arguments[E];
238
- H("error", n, b);
241
+ for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
242
+ y[E - 1] = arguments[E];
243
+ H("error", n, y);
239
244
  }
240
245
  }
241
- function H(n, f, b) {
246
+ function H(n, f, y) {
242
247
  {
243
248
  var E = K.ReactDebugCurrentFrame, L = E.getStackAddendum();
244
- L !== "" && (f += "%s", b = b.concat([L]));
245
- var V = b.map(function(q) {
249
+ L !== "" && (f += "%s", y = y.concat([L]));
250
+ var V = y.map(function(q) {
246
251
  return String(q);
247
252
  });
248
253
  V.unshift("Warning: " + f), Function.prototype.apply.call(console[n], console, V);
@@ -250,17 +255,17 @@ function pn() {
250
255
  }
251
256
  var N = !1, p = !1, X = !1, ee = !1, Se = !1, Q;
252
257
  Q = Symbol.for("react.module.reference");
253
- function F(n) {
254
- return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === v || n === y || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === m || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
258
+ function $(n) {
259
+ return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Se || n === s || n === m || n === b || ee || n === x || N || p || X || typeof n == "object" && n !== null && (n.$$typeof === v || n.$$typeof === h || n.$$typeof === c || n.$$typeof === u || n.$$typeof === d || n.$$typeof === Q || n.getModuleId !== void 0));
255
260
  }
256
- function ge(n, f, b) {
261
+ function ge(n, f, y) {
257
262
  var E = n.displayName;
258
263
  if (E)
259
264
  return E;
260
265
  var L = f.displayName || f.name || "";
261
- return L !== "" ? b + "(" + L + ")" : b;
266
+ return L !== "" ? y + "(" + L + ")" : y;
262
267
  }
263
- function be(n) {
268
+ function ye(n) {
264
269
  return n.displayName || "Context";
265
270
  }
266
271
  function ie(n) {
@@ -279,25 +284,25 @@ function pn() {
279
284
  return "Profiler";
280
285
  case s:
281
286
  return "StrictMode";
282
- case v:
287
+ case m:
283
288
  return "Suspense";
284
- case y:
289
+ case b:
285
290
  return "SuspenseList";
286
291
  }
287
292
  if (typeof n == "object")
288
293
  switch (n.$$typeof) {
289
294
  case u:
290
295
  var f = n;
291
- return be(f) + ".Consumer";
296
+ return ye(f) + ".Consumer";
292
297
  case c:
293
- var b = n;
294
- return be(b._context) + ".Provider";
298
+ var y = n;
299
+ return ye(y._context) + ".Provider";
295
300
  case d:
296
301
  return ge(n, n.render, "ForwardRef");
297
302
  case h:
298
303
  var E = n.displayName || null;
299
304
  return E !== null ? E : ie(n.type) || "Memo";
300
- case m: {
305
+ case v: {
301
306
  var L = n, V = L._payload, q = L._init;
302
307
  try {
303
308
  return ie(q(V));
@@ -308,7 +313,7 @@ function pn() {
308
313
  }
309
314
  return null;
310
315
  }
311
- var k = Object.assign, B = 0, te, pe, Ee, Pe, l, g, T;
316
+ var z = Object.assign, B = 0, te, pe, Ee, Pe, l, g, T;
312
317
  function O() {
313
318
  }
314
319
  O.__reactDisabledLog = !0;
@@ -344,25 +349,25 @@ function pn() {
344
349
  writable: !0
345
350
  };
346
351
  Object.defineProperties(console, {
347
- log: k({}, n, {
352
+ log: z({}, n, {
348
353
  value: te
349
354
  }),
350
- info: k({}, n, {
355
+ info: z({}, n, {
351
356
  value: pe
352
357
  }),
353
- warn: k({}, n, {
358
+ warn: z({}, n, {
354
359
  value: Ee
355
360
  }),
356
- error: k({}, n, {
361
+ error: z({}, n, {
357
362
  value: Pe
358
363
  }),
359
- group: k({}, n, {
364
+ group: z({}, n, {
360
365
  value: l
361
366
  }),
362
- groupCollapsed: k({}, n, {
367
+ groupCollapsed: z({}, n, {
363
368
  value: g
364
369
  }),
365
- groupEnd: k({}, n, {
370
+ groupEnd: z({}, n, {
366
371
  value: T
367
372
  })
368
373
  });
@@ -371,7 +376,7 @@ function pn() {
371
376
  }
372
377
  }
373
378
  var R = K.ReactCurrentDispatcher, _;
374
- function j(n, f, b) {
379
+ function j(n, f, y) {
375
380
  {
376
381
  if (_ === void 0)
377
382
  try {
@@ -384,21 +389,21 @@ function pn() {
384
389
  ` + _ + n;
385
390
  }
386
391
  }
387
- var $ = !1, A;
392
+ var F = !1, A;
388
393
  {
389
394
  var ae = typeof WeakMap == "function" ? WeakMap : Map;
390
395
  A = new ae();
391
396
  }
392
397
  function w(n, f) {
393
- if (!n || $)
398
+ if (!n || F)
394
399
  return "";
395
400
  {
396
- var b = A.get(n);
397
- if (b !== void 0)
398
- return b;
401
+ var y = A.get(n);
402
+ if (y !== void 0)
403
+ return y;
399
404
  }
400
405
  var E;
401
- $ = !0;
406
+ F = !0;
402
407
  var L = Error.prepareStackTrace;
403
408
  Error.prepareStackTrace = void 0;
404
409
  var V;
@@ -446,28 +451,28 @@ function pn() {
446
451
  if (Z !== 1 || re !== 1)
447
452
  do
448
453
  if (Z--, re--, re < 0 || M[Z] !== ce[re]) {
449
- var ve = `
454
+ var me = `
450
455
  ` + M[Z].replace(" at new ", " at ");
451
- return n.displayName && ve.includes("<anonymous>") && (ve = ve.replace("<anonymous>", n.displayName)), typeof n == "function" && A.set(n, ve), ve;
456
+ return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" && A.set(n, me), me;
452
457
  }
453
458
  while (Z >= 1 && re >= 0);
454
459
  break;
455
460
  }
456
461
  }
457
462
  } finally {
458
- $ = !1, R.current = V, C(), Error.prepareStackTrace = L;
463
+ F = !1, R.current = V, C(), Error.prepareStackTrace = L;
459
464
  }
460
465
  var Me = n ? n.displayName || n.name : "", Kr = Me ? j(Me) : "";
461
466
  return typeof n == "function" && A.set(n, Kr), Kr;
462
467
  }
463
- function he(n, f, b) {
468
+ function he(n, f, y) {
464
469
  return w(n, !1);
465
470
  }
466
471
  function je(n) {
467
472
  var f = n.prototype;
468
473
  return !!(f && f.isReactComponent);
469
474
  }
470
- function Ce(n, f, b) {
475
+ function Ce(n, f, y) {
471
476
  if (n == null)
472
477
  return "";
473
478
  if (typeof n == "function")
@@ -475,9 +480,9 @@ function pn() {
475
480
  if (typeof n == "string")
476
481
  return j(n);
477
482
  switch (n) {
478
- case v:
483
+ case m:
479
484
  return j("Suspense");
480
- case y:
485
+ case b:
481
486
  return j("SuspenseList");
482
487
  }
483
488
  if (typeof n == "object")
@@ -485,26 +490,26 @@ function pn() {
485
490
  case d:
486
491
  return he(n.render);
487
492
  case h:
488
- return Ce(n.type, f, b);
489
- case m: {
493
+ return Ce(n.type, f, y);
494
+ case v: {
490
495
  var E = n, L = E._payload, V = E._init;
491
496
  try {
492
- return Ce(V(L), f, b);
497
+ return Ce(V(L), f, y);
493
498
  } catch {
494
499
  }
495
500
  }
496
501
  }
497
502
  return "";
498
503
  }
499
- var He = Object.prototype.hasOwnProperty, zr = {}, Dr = K.ReactDebugCurrentFrame;
504
+ var He = Object.prototype.hasOwnProperty, kr = {}, Dr = K.ReactDebugCurrentFrame;
500
505
  function Ge(n) {
501
506
  if (n) {
502
- var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
503
- Dr.setExtraStackFrame(b);
507
+ var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
508
+ Dr.setExtraStackFrame(y);
504
509
  } else
505
510
  Dr.setExtraStackFrame(null);
506
511
  }
507
- function Pt(n, f, b, E, L) {
512
+ function Pt(n, f, y, E, L) {
508
513
  {
509
514
  var V = Function.call.bind(He);
510
515
  for (var q in n)
@@ -512,14 +517,14 @@ function pn() {
512
517
  var M = void 0;
513
518
  try {
514
519
  if (typeof n[q] != "function") {
515
- var ce = Error((E || "React class") + ": " + b + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
520
+ var ce = Error((E || "React class") + ": " + y + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
516
521
  throw ce.name = "Invariant Violation", ce;
517
522
  }
518
- M = n[q](f, q, E, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
523
+ M = n[q](f, q, E, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
519
524
  } catch (Z) {
520
525
  M = Z;
521
526
  }
522
- M && !(M instanceof Error) && (Ge(L), D("%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).", E || "React class", b, q, typeof M), Ge(null)), M instanceof Error && !(M.message in zr) && (zr[M.message] = !0, Ge(L), D("Failed %s type: %s", b, M.message), Ge(null));
527
+ M && !(M instanceof Error) && (Ge(L), D("%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).", E || "React class", y, q, typeof M), Ge(null)), M instanceof Error && !(M.message in kr) && (kr[M.message] = !0, Ge(L), D("Failed %s type: %s", y, M.message), Ge(null));
523
528
  }
524
529
  }
525
530
  }
@@ -529,8 +534,8 @@ function pn() {
529
534
  }
530
535
  function _t(n) {
531
536
  {
532
- var f = typeof Symbol == "function" && Symbol.toStringTag, b = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
533
- return b;
537
+ var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
538
+ return y;
534
539
  }
535
540
  }
536
541
  function xt(n) {
@@ -543,16 +548,16 @@ function pn() {
543
548
  function qr(n) {
544
549
  return "" + n;
545
550
  }
546
- function $r(n) {
551
+ function Fr(n) {
547
552
  if (xt(n))
548
553
  return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(n)), qr(n);
549
554
  }
550
- var $e = K.ReactCurrentOwner, Ct = {
555
+ var Fe = K.ReactCurrentOwner, Ct = {
551
556
  key: !0,
552
557
  ref: !0,
553
558
  __self: !0,
554
559
  __source: !0
555
- }, Fr, Lr, ur;
560
+ }, $r, Lr, ur;
556
561
  ur = {};
557
562
  function jt(n) {
558
563
  if (He.call(n, "ref")) {
@@ -571,39 +576,39 @@ function pn() {
571
576
  return n.key !== void 0;
572
577
  }
573
578
  function Mt(n, f) {
574
- if (typeof n.ref == "string" && $e.current && f && $e.current.stateNode !== f) {
575
- var b = ie($e.current.type);
576
- ur[b] || (D('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', ie($e.current.type), n.ref), ur[b] = !0);
579
+ if (typeof n.ref == "string" && Fe.current && f && Fe.current.stateNode !== f) {
580
+ var y = ie(Fe.current.type);
581
+ ur[y] || (D('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', ie(Fe.current.type), n.ref), ur[y] = !0);
577
582
  }
578
583
  }
579
584
  function It(n, f) {
580
585
  {
581
- var b = function() {
582
- Fr || (Fr = !0, D("%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)", f));
586
+ var y = function() {
587
+ $r || ($r = !0, D("%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)", f));
583
588
  };
584
- b.isReactWarning = !0, Object.defineProperty(n, "key", {
585
- get: b,
589
+ y.isReactWarning = !0, Object.defineProperty(n, "key", {
590
+ get: y,
586
591
  configurable: !0
587
592
  });
588
593
  }
589
594
  }
590
- function kt(n, f) {
595
+ function zt(n, f) {
591
596
  {
592
- var b = function() {
597
+ var y = function() {
593
598
  Lr || (Lr = !0, D("%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)", f));
594
599
  };
595
- b.isReactWarning = !0, Object.defineProperty(n, "ref", {
596
- get: b,
600
+ y.isReactWarning = !0, Object.defineProperty(n, "ref", {
601
+ get: y,
597
602
  configurable: !0
598
603
  });
599
604
  }
600
605
  }
601
- var zt = function(n, f, b, E, L, V, q) {
606
+ var kt = function(n, f, y, E, L, V, q) {
602
607
  var M = {
603
608
  $$typeof: r,
604
609
  type: n,
605
610
  key: f,
606
- ref: b,
611
+ ref: y,
607
612
  props: q,
608
613
  _owner: V
609
614
  };
@@ -624,10 +629,10 @@ function pn() {
624
629
  value: L
625
630
  }), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
626
631
  };
627
- function Dt(n, f, b, E, L) {
632
+ function Dt(n, f, y, E, L) {
628
633
  {
629
634
  var V, q = {}, M = null, ce = null;
630
- b !== void 0 && ($r(b), M = "" + b), At(f) && ($r(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
635
+ y !== void 0 && (Fr(y), M = "" + y), At(f) && (Fr(f.key), M = "" + f.key), jt(f) && (ce = f.ref, Mt(f, L));
631
636
  for (V in f)
632
637
  He.call(f, V) && !Ct.hasOwnProperty(V) && (q[V] = f[V]);
633
638
  if (n && n.defaultProps) {
@@ -637,25 +642,25 @@ function pn() {
637
642
  }
638
643
  if (M || ce) {
639
644
  var re = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
640
- M && It(q, re), ce && kt(q, re);
645
+ M && It(q, re), ce && zt(q, re);
641
646
  }
642
- return zt(n, M, ce, L, E, $e.current, q);
647
+ return kt(n, M, ce, L, E, Fe.current, q);
643
648
  }
644
649
  }
645
- var lr = K.ReactCurrentOwner, Wr = K.ReactDebugCurrentFrame;
650
+ var lr = K.ReactCurrentOwner, Ur = K.ReactDebugCurrentFrame;
646
651
  function Ae(n) {
647
652
  if (n) {
648
- var f = n._owner, b = Ce(n.type, n._source, f ? f.type : null);
649
- Wr.setExtraStackFrame(b);
653
+ var f = n._owner, y = Ce(n.type, n._source, f ? f.type : null);
654
+ Ur.setExtraStackFrame(y);
650
655
  } else
651
- Wr.setExtraStackFrame(null);
656
+ Ur.setExtraStackFrame(null);
652
657
  }
653
658
  var fr;
654
659
  fr = !1;
655
660
  function dr(n) {
656
661
  return typeof n == "object" && n !== null && n.$$typeof === r;
657
662
  }
658
- function Ur() {
663
+ function Wr() {
659
664
  {
660
665
  if (lr.current) {
661
666
  var n = ie(lr.current.type);
@@ -670,23 +675,23 @@ Check the render method of \`` + n + "`.";
670
675
  function qt(n) {
671
676
  {
672
677
  if (n !== void 0) {
673
- var f = n.fileName.replace(/^.*[\\\/]/, ""), b = n.lineNumber;
678
+ var f = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
674
679
  return `
675
680
 
676
- Check your code at ` + f + ":" + b + ".";
681
+ Check your code at ` + f + ":" + y + ".";
677
682
  }
678
683
  return "";
679
684
  }
680
685
  }
681
686
  var Yr = {};
682
- function $t(n) {
687
+ function Ft(n) {
683
688
  {
684
- var f = Ur();
689
+ var f = Wr();
685
690
  if (!f) {
686
- var b = typeof n == "string" ? n : n.displayName || n.name;
687
- b && (f = `
691
+ var y = typeof n == "string" ? n : n.displayName || n.name;
692
+ y && (f = `
688
693
 
689
- Check the top-level render call using <` + b + ">.");
694
+ Check the top-level render call using <` + y + ">.");
690
695
  }
691
696
  return f;
692
697
  }
@@ -696,12 +701,12 @@ Check the top-level render call using <` + b + ">.");
696
701
  if (!n._store || n._store.validated || n.key != null)
697
702
  return;
698
703
  n._store.validated = !0;
699
- var b = $t(f);
700
- if (Yr[b])
704
+ var y = Ft(f);
705
+ if (Yr[y])
701
706
  return;
702
- Yr[b] = !0;
707
+ Yr[y] = !0;
703
708
  var E = "";
704
- n && n._owner && n._owner !== lr.current && (E = " It was passed a child from " + ie(n._owner.type) + "."), Ae(n), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, E), Ae(null);
709
+ n && n._owner && n._owner !== lr.current && (E = " It was passed a child from " + ie(n._owner.type) + "."), Ae(n), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, E), Ae(null);
705
710
  }
706
711
  }
707
712
  function Vr(n, f) {
@@ -709,8 +714,8 @@ Check the top-level render call using <` + b + ">.");
709
714
  if (typeof n != "object")
710
715
  return;
711
716
  if (cr(n))
712
- for (var b = 0; b < n.length; b++) {
713
- var E = n[b];
717
+ for (var y = 0; y < n.length; y++) {
718
+ var E = n[y];
714
719
  dr(E) && Nr(E, f);
715
720
  }
716
721
  else if (dr(n))
@@ -723,21 +728,21 @@ Check the top-level render call using <` + b + ">.");
723
728
  }
724
729
  }
725
730
  }
726
- function Ft(n) {
731
+ function $t(n) {
727
732
  {
728
733
  var f = n.type;
729
734
  if (f == null || typeof f == "string")
730
735
  return;
731
- var b;
736
+ var y;
732
737
  if (typeof f == "function")
733
- b = f.propTypes;
738
+ y = f.propTypes;
734
739
  else if (typeof f == "object" && (f.$$typeof === d || f.$$typeof === h))
735
- b = f.propTypes;
740
+ y = f.propTypes;
736
741
  else
737
742
  return;
738
- if (b) {
743
+ if (y) {
739
744
  var E = ie(f);
740
- Pt(b, n.props, "prop", E, n);
745
+ Pt(y, n.props, "prop", E, n);
741
746
  } else if (f.PropTypes !== void 0 && !fr) {
742
747
  fr = !0;
743
748
  var L = ie(f);
@@ -748,8 +753,8 @@ Check the top-level render call using <` + b + ">.");
748
753
  }
749
754
  function Lt(n) {
750
755
  {
751
- for (var f = Object.keys(n.props), b = 0; b < f.length; b++) {
752
- var E = f[b];
756
+ for (var f = Object.keys(n.props), y = 0; y < f.length; y++) {
757
+ var E = f[y];
753
758
  if (E !== "children" && E !== "key") {
754
759
  Ae(n), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ae(null);
755
760
  break;
@@ -758,51 +763,51 @@ Check the top-level render call using <` + b + ">.");
758
763
  n.ref !== null && (Ae(n), D("Invalid attribute `ref` supplied to `React.Fragment`."), Ae(null));
759
764
  }
760
765
  }
761
- function Br(n, f, b, E, L, V) {
766
+ function Br(n, f, y, E, L, V) {
762
767
  {
763
- var q = F(n);
768
+ var q = $(n);
764
769
  if (!q) {
765
770
  var M = "";
766
771
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
767
772
  var ce = qt(L);
768
- ce ? M += ce : M += Ur();
773
+ ce ? M += ce : M += Wr();
769
774
  var Z;
770
775
  n === null ? Z = "null" : cr(n) ? Z = "array" : n !== void 0 && n.$$typeof === r ? (Z = "<" + (ie(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof n, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, M);
771
776
  }
772
- var re = Dt(n, f, b, L, V);
777
+ var re = Dt(n, f, y, L, V);
773
778
  if (re == null)
774
779
  return re;
775
780
  if (q) {
776
- var ve = f.children;
777
- if (ve !== void 0)
781
+ var me = f.children;
782
+ if (me !== void 0)
778
783
  if (E)
779
- if (cr(ve)) {
780
- for (var Me = 0; Me < ve.length; Me++)
781
- Vr(ve[Me], n);
782
- Object.freeze && Object.freeze(ve);
784
+ if (cr(me)) {
785
+ for (var Me = 0; Me < me.length; Me++)
786
+ Vr(me[Me], n);
787
+ Object.freeze && Object.freeze(me);
783
788
  } else
784
789
  D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
785
790
  else
786
- Vr(ve, n);
791
+ Vr(me, n);
787
792
  }
788
- return n === o ? Lt(re) : Ft(re), re;
793
+ return n === o ? Lt(re) : $t(re), re;
789
794
  }
790
795
  }
791
- function Wt(n, f, b) {
792
- return Br(n, f, b, !0);
796
+ function Ut(n, f, y) {
797
+ return Br(n, f, y, !0);
793
798
  }
794
- function Ut(n, f, b) {
795
- return Br(n, f, b, !1);
799
+ function Wt(n, f, y) {
800
+ return Br(n, f, y, !1);
796
801
  }
797
- var Yt = Ut, Nt = Wt;
798
- We.Fragment = o, We.jsx = Yt, We.jsxs = Nt;
799
- }()), We;
802
+ var Yt = Wt, Nt = Ut;
803
+ Ue.Fragment = o, Ue.jsx = Yt, Ue.jsxs = Nt;
804
+ }()), Ue;
800
805
  }
801
806
  (function(e) {
802
- process.env.NODE_ENV === "production" ? e.exports = dn() : e.exports = pn();
807
+ process.env.NODE_ENV === "production" ? e.exports = vn() : e.exports = yn();
803
808
  })(ir);
804
809
  const Oe = ir.exports.Fragment, a = ir.exports.jsx, I = ir.exports.jsxs;
805
- function gn({
810
+ function bn({
806
811
  submit: e,
807
812
  styles: r = qe,
808
813
  type: t
@@ -826,7 +831,7 @@ function gn({
826
831
  });
827
832
  return we(() => {
828
833
  s("type", t);
829
- }, [s, t]), /* @__PURE__ */ a(me, {
834
+ }, [s, t]), /* @__PURE__ */ a(ve, {
830
835
  mx: "auto",
831
836
  children: /* @__PURE__ */ I("form", {
832
837
  onSubmit: i(e),
@@ -928,7 +933,7 @@ function gn({
928
933
  })
929
934
  });
930
935
  }
931
- function hn(e, r, t) {
936
+ function wn(e, r, t) {
932
937
  return r in e ? Object.defineProperty(e, r, {
933
938
  value: t,
934
939
  enumerable: !0,
@@ -950,14 +955,14 @@ function Xr(e) {
950
955
  for (var r = 1; r < arguments.length; r++) {
951
956
  var t = arguments[r] != null ? arguments[r] : {};
952
957
  r % 2 ? Jr(Object(t), !0).forEach(function(o) {
953
- hn(e, o, t[o]);
958
+ wn(e, o, t[o]);
954
959
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Jr(Object(t)).forEach(function(o) {
955
960
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
956
961
  });
957
962
  }
958
963
  return e;
959
964
  }
960
- function vn(e, r) {
965
+ function Sn(e, r) {
961
966
  if (e == null)
962
967
  return {};
963
968
  var t = {}, o = Object.keys(e), s, i;
@@ -965,10 +970,10 @@ function vn(e, r) {
965
970
  s = o[i], !(r.indexOf(s) >= 0) && (t[s] = e[s]);
966
971
  return t;
967
972
  }
968
- function mn(e, r) {
973
+ function En(e, r) {
969
974
  if (e == null)
970
975
  return {};
971
- var t = vn(e, r), o, s;
976
+ var t = Sn(e, r), o, s;
972
977
  if (Object.getOwnPropertySymbols) {
973
978
  var i = Object.getOwnPropertySymbols(e);
974
979
  for (s = 0; s < i.length; s++)
@@ -976,14 +981,14 @@ function mn(e, r) {
976
981
  }
977
982
  return t;
978
983
  }
979
- function bn(e, r) {
980
- return yn(e) || wn(e, r) || Sn(e, r) || En();
984
+ function Tn(e, r) {
985
+ return On(e) || Pn(e, r) || Rn(e, r) || _n();
981
986
  }
982
- function yn(e) {
987
+ function On(e) {
983
988
  if (Array.isArray(e))
984
989
  return e;
985
990
  }
986
- function wn(e, r) {
991
+ function Pn(e, r) {
987
992
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
988
993
  var t = [], o = !0, s = !1, i = void 0;
989
994
  try {
@@ -1002,7 +1007,7 @@ function wn(e, r) {
1002
1007
  return t;
1003
1008
  }
1004
1009
  }
1005
- function Sn(e, r) {
1010
+ function Rn(e, r) {
1006
1011
  if (!!e) {
1007
1012
  if (typeof e == "string")
1008
1013
  return Qr(e, r);
@@ -1019,11 +1024,11 @@ function Qr(e, r) {
1019
1024
  o[t] = e[t];
1020
1025
  return o;
1021
1026
  }
1022
- function En() {
1027
+ function _n() {
1023
1028
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1024
1029
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1025
1030
  }
1026
- function Tn(e, r, t) {
1031
+ function xn(e, r, t) {
1027
1032
  return r in e ? Object.defineProperty(e, r, {
1028
1033
  value: t,
1029
1034
  enumerable: !0,
@@ -1045,14 +1050,14 @@ function et(e) {
1045
1050
  for (var r = 1; r < arguments.length; r++) {
1046
1051
  var t = arguments[r] != null ? arguments[r] : {};
1047
1052
  r % 2 ? Zr(Object(t), !0).forEach(function(o) {
1048
- Tn(e, o, t[o]);
1053
+ xn(e, o, t[o]);
1049
1054
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Zr(Object(t)).forEach(function(o) {
1050
1055
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
1051
1056
  });
1052
1057
  }
1053
1058
  return e;
1054
1059
  }
1055
- function On() {
1060
+ function Cn() {
1056
1061
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1057
1062
  r[t] = arguments[t];
1058
1063
  return function(o) {
@@ -1061,7 +1066,7 @@ function On() {
1061
1066
  }, o);
1062
1067
  };
1063
1068
  }
1064
- function Ue(e) {
1069
+ function We(e) {
1065
1070
  return function r() {
1066
1071
  for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
1067
1072
  s[i] = arguments[i];
@@ -1075,35 +1080,35 @@ function Ue(e) {
1075
1080
  function er(e) {
1076
1081
  return {}.toString.call(e).includes("Object");
1077
1082
  }
1078
- function Pn(e) {
1083
+ function jn(e) {
1079
1084
  return !Object.keys(e).length;
1080
1085
  }
1081
1086
  function Ve(e) {
1082
1087
  return typeof e == "function";
1083
1088
  }
1084
- function Rn(e, r) {
1089
+ function An(e, r) {
1085
1090
  return Object.prototype.hasOwnProperty.call(e, r);
1086
1091
  }
1087
- function _n(e, r) {
1092
+ function Mn(e, r) {
1088
1093
  return er(r) || Re("changeType"), Object.keys(r).some(function(t) {
1089
- return !Rn(e, t);
1094
+ return !An(e, t);
1090
1095
  }) && Re("changeField"), r;
1091
1096
  }
1092
- function xn(e) {
1097
+ function In(e) {
1093
1098
  Ve(e) || Re("selectorType");
1094
1099
  }
1095
- function Cn(e) {
1100
+ function zn(e) {
1096
1101
  Ve(e) || er(e) || Re("handlerType"), er(e) && Object.values(e).some(function(r) {
1097
1102
  return !Ve(r);
1098
1103
  }) && Re("handlersType");
1099
1104
  }
1100
- function jn(e) {
1101
- e || Re("initialIsRequired"), er(e) || Re("initialType"), Pn(e) && Re("initialContent");
1105
+ function kn(e) {
1106
+ e || Re("initialIsRequired"), er(e) || Re("initialType"), jn(e) && Re("initialContent");
1102
1107
  }
1103
- function An(e, r) {
1108
+ function Dn(e, r) {
1104
1109
  throw new Error(e[r] || e.default);
1105
1110
  }
1106
- var Mn = {
1111
+ var qn = {
1107
1112
  initialIsRequired: "initial state is required",
1108
1113
  initialType: "initial state should be an object",
1109
1114
  initialContent: "initial state shouldn't be an empty object",
@@ -1113,49 +1118,49 @@ var Mn = {
1113
1118
  changeType: "provided value of changes should be an object",
1114
1119
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
1115
1120
  default: "an unknown error accured in `state-local` package"
1116
- }, Re = Ue(An)(Mn), Je = {
1117
- changes: _n,
1118
- selector: xn,
1119
- handler: Cn,
1120
- initial: jn
1121
+ }, Re = We(Dn)(qn), Je = {
1122
+ changes: Mn,
1123
+ selector: In,
1124
+ handler: zn,
1125
+ initial: kn
1121
1126
  };
1122
- function In(e) {
1127
+ function Fn(e) {
1123
1128
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1124
1129
  Je.initial(e), Je.handler(r);
1125
1130
  var t = {
1126
1131
  current: e
1127
- }, o = Ue(Dn)(t, r), s = Ue(zn)(t), i = Ue(Je.changes)(e), c = Ue(kn)(t);
1132
+ }, o = We(Un)(t, r), s = We(Ln)(t), i = We(Je.changes)(e), c = We($n)(t);
1128
1133
  function u() {
1129
- var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(y) {
1130
- return y;
1134
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
1135
+ return b;
1131
1136
  };
1132
- return Je.selector(v), v(t.current);
1137
+ return Je.selector(m), m(t.current);
1133
1138
  }
1134
- function d(v) {
1135
- On(o, s, i, c)(v);
1139
+ function d(m) {
1140
+ Cn(o, s, i, c)(m);
1136
1141
  }
1137
1142
  return [u, d];
1138
1143
  }
1139
- function kn(e, r) {
1144
+ function $n(e, r) {
1140
1145
  return Ve(r) ? r(e.current) : r;
1141
1146
  }
1142
- function zn(e, r) {
1147
+ function Ln(e, r) {
1143
1148
  return e.current = et(et({}, e.current), r), r;
1144
1149
  }
1145
- function Dn(e, r, t) {
1150
+ function Un(e, r, t) {
1146
1151
  return Ve(r) ? r(e.current) : Object.keys(t).forEach(function(o) {
1147
1152
  var s;
1148
1153
  return (s = r[o]) === null || s === void 0 ? void 0 : s.call(r, e.current[o]);
1149
1154
  }), t;
1150
1155
  }
1151
- var qn = {
1152
- create: In
1153
- }, $n = {
1156
+ var Wn = {
1157
+ create: Fn
1158
+ }, Yn = {
1154
1159
  paths: {
1155
1160
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"
1156
1161
  }
1157
1162
  };
1158
- function Fn(e) {
1163
+ function Nn(e) {
1159
1164
  return function r() {
1160
1165
  for (var t = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
1161
1166
  s[i] = arguments[i];
@@ -1166,20 +1171,20 @@ function Fn(e) {
1166
1171
  };
1167
1172
  };
1168
1173
  }
1169
- function Ln(e) {
1174
+ function Vn(e) {
1170
1175
  return {}.toString.call(e).includes("Object");
1171
1176
  }
1172
- function Wn(e) {
1173
- return e || rt("configIsRequired"), Ln(e) || rt("configType"), e.urls ? (Un(), {
1177
+ function Bn(e) {
1178
+ return e || rt("configIsRequired"), Vn(e) || rt("configType"), e.urls ? (Kn(), {
1174
1179
  paths: {
1175
1180
  vs: e.urls.monacoBase
1176
1181
  }
1177
1182
  }) : e;
1178
1183
  }
1179
- function Un() {
1184
+ function Kn() {
1180
1185
  console.warn(gt.deprecation);
1181
1186
  }
1182
- function Yn(e, r) {
1187
+ function Hn(e, r) {
1183
1188
  throw new Error(e[r] || e.default);
1184
1189
  }
1185
1190
  var gt = {
@@ -1196,9 +1201,9 @@ var gt = {
1196
1201
 
1197
1202
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
1198
1203
  `
1199
- }, rt = Fn(Yn)(gt), Nn = {
1200
- config: Wn
1201
- }, Vn = function() {
1204
+ }, rt = Nn(Hn)(gt), Gn = {
1205
+ config: Bn
1206
+ }, Jn = function() {
1202
1207
  for (var r = arguments.length, t = new Array(r), o = 0; o < r; o++)
1203
1208
  t[o] = arguments[o];
1204
1209
  return function(s) {
@@ -1212,29 +1217,29 @@ function ht(e, r) {
1212
1217
  r[t] instanceof Object && e[t] && Object.assign(r[t], ht(e[t], r[t]));
1213
1218
  }), Xr(Xr({}, e), r);
1214
1219
  }
1215
- var Bn = {
1220
+ var Xn = {
1216
1221
  type: "cancelation",
1217
1222
  msg: "operation is manually canceled"
1218
1223
  };
1219
1224
  function pr(e) {
1220
1225
  var r = !1, t = new Promise(function(o, s) {
1221
1226
  e.then(function(i) {
1222
- return r ? s(Bn) : o(i);
1227
+ return r ? s(Xn) : o(i);
1223
1228
  }), e.catch(s);
1224
1229
  });
1225
1230
  return t.cancel = function() {
1226
1231
  return r = !0;
1227
1232
  }, t;
1228
1233
  }
1229
- var Kn = qn.create({
1230
- config: $n,
1234
+ var Qn = Wn.create({
1235
+ config: Yn,
1231
1236
  isInitialized: !1,
1232
1237
  resolve: null,
1233
1238
  reject: null,
1234
1239
  monaco: null
1235
- }), vt = bn(Kn, 2), Ke = vt[0], ar = vt[1];
1236
- function Hn(e) {
1237
- var r = Nn.config(e), t = r.monaco, o = mn(r, ["monaco"]);
1240
+ }), mt = Tn(Qn, 2), Ke = mt[0], ar = mt[1];
1241
+ function Zn(e) {
1242
+ var r = Gn.config(e), t = r.monaco, o = En(r, ["monaco"]);
1238
1243
  ar(function(s) {
1239
1244
  return {
1240
1245
  config: ht(s.config, o),
@@ -1242,7 +1247,7 @@ function Hn(e) {
1242
1247
  };
1243
1248
  });
1244
1249
  }
1245
- function Gn() {
1250
+ function eo() {
1246
1251
  var e = Ke(function(r) {
1247
1252
  var t = r.monaco, o = r.isInitialized, s = r.resolve;
1248
1253
  return {
@@ -1257,31 +1262,31 @@ function Gn() {
1257
1262
  }), e.monaco)
1258
1263
  return e.resolve(e.monaco), pr(gr);
1259
1264
  if (window.monaco && window.monaco.editor)
1260
- return mt(window.monaco), e.resolve(window.monaco), pr(gr);
1261
- Vn(Jn, Qn)(Zn);
1265
+ return vt(window.monaco), e.resolve(window.monaco), pr(gr);
1266
+ Jn(ro, no)(oo);
1262
1267
  }
1263
1268
  return pr(gr);
1264
1269
  }
1265
- function Jn(e) {
1270
+ function ro(e) {
1266
1271
  return document.body.appendChild(e);
1267
1272
  }
1268
- function Xn(e) {
1273
+ function to(e) {
1269
1274
  var r = document.createElement("script");
1270
1275
  return e && (r.src = e), r;
1271
1276
  }
1272
- function Qn(e) {
1277
+ function no(e) {
1273
1278
  var r = Ke(function(o) {
1274
1279
  var s = o.config, i = o.reject;
1275
1280
  return {
1276
1281
  config: s,
1277
1282
  reject: i
1278
1283
  };
1279
- }), t = Xn("".concat(r.config.paths.vs, "/loader.js"));
1284
+ }), t = to("".concat(r.config.paths.vs, "/loader.js"));
1280
1285
  return t.onload = function() {
1281
1286
  return e();
1282
1287
  }, t.onerror = r.reject, t;
1283
1288
  }
1284
- function Zn() {
1289
+ function oo() {
1285
1290
  var e = Ke(function(t) {
1286
1291
  var o = t.config, s = t.resolve, i = t.reject;
1287
1292
  return {
@@ -1291,17 +1296,17 @@ function Zn() {
1291
1296
  };
1292
1297
  }), r = window.require;
1293
1298
  r.config(e.config), r(["vs/editor/editor.main"], function(t) {
1294
- mt(t), e.resolve(t);
1299
+ vt(t), e.resolve(t);
1295
1300
  }, function(t) {
1296
1301
  e.reject(t);
1297
1302
  });
1298
1303
  }
1299
- function mt(e) {
1304
+ function vt(e) {
1300
1305
  Ke().monaco || ar({
1301
1306
  monaco: e
1302
1307
  });
1303
1308
  }
1304
- function eo() {
1309
+ function io() {
1305
1310
  return Ke(function(e) {
1306
1311
  var r = e.monaco;
1307
1312
  return r;
@@ -1313,10 +1318,10 @@ var gr = new Promise(function(e, r) {
1313
1318
  reject: r
1314
1319
  });
1315
1320
  }), Ye = {
1316
- config: Hn,
1317
- init: Gn,
1318
- __getMonacoInstance: eo
1319
- }, S = { exports: {} }, hr = { exports: {} }, W = {};
1321
+ config: Zn,
1322
+ init: eo,
1323
+ __getMonacoInstance: io
1324
+ }, S = { exports: {} }, hr = { exports: {} }, U = {};
1320
1325
  /** @license React v16.13.1
1321
1326
  * react-is.production.min.js
1322
1327
  *
@@ -1326,11 +1331,11 @@ var gr = new Promise(function(e, r) {
1326
1331
  * LICENSE file in the root directory of this source tree.
1327
1332
  */
1328
1333
  var tt;
1329
- function ro() {
1334
+ function ao() {
1330
1335
  if (tt)
1331
- return W;
1336
+ return U;
1332
1337
  tt = 1;
1333
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1338
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1334
1339
  function H(p) {
1335
1340
  if (typeof p == "object" && p !== null) {
1336
1341
  var X = p.$$typeof;
@@ -1338,7 +1343,7 @@ function ro() {
1338
1343
  case r:
1339
1344
  switch (p = p.type, p) {
1340
1345
  case d:
1341
- case v:
1346
+ case m:
1342
1347
  case o:
1343
1348
  case i:
1344
1349
  case s:
@@ -1347,7 +1352,7 @@ function ro() {
1347
1352
  default:
1348
1353
  switch (p = p && p.$$typeof, p) {
1349
1354
  case u:
1350
- case y:
1355
+ case b:
1351
1356
  case Y:
1352
1357
  case x:
1353
1358
  case c:
@@ -1362,37 +1367,37 @@ function ro() {
1362
1367
  }
1363
1368
  }
1364
1369
  function N(p) {
1365
- return H(p) === v;
1370
+ return H(p) === m;
1366
1371
  }
1367
- return W.AsyncMode = d, W.ConcurrentMode = v, W.ContextConsumer = u, W.ContextProvider = c, W.Element = r, W.ForwardRef = y, W.Fragment = o, W.Lazy = Y, W.Memo = x, W.Portal = t, W.Profiler = i, W.StrictMode = s, W.Suspense = h, W.isAsyncMode = function(p) {
1372
+ return U.AsyncMode = d, U.ConcurrentMode = m, U.ContextConsumer = u, U.ContextProvider = c, U.Element = r, U.ForwardRef = b, U.Fragment = o, U.Lazy = Y, U.Memo = x, U.Portal = t, U.Profiler = i, U.StrictMode = s, U.Suspense = h, U.isAsyncMode = function(p) {
1368
1373
  return N(p) || H(p) === d;
1369
- }, W.isConcurrentMode = N, W.isContextConsumer = function(p) {
1374
+ }, U.isConcurrentMode = N, U.isContextConsumer = function(p) {
1370
1375
  return H(p) === u;
1371
- }, W.isContextProvider = function(p) {
1376
+ }, U.isContextProvider = function(p) {
1372
1377
  return H(p) === c;
1373
- }, W.isElement = function(p) {
1378
+ }, U.isElement = function(p) {
1374
1379
  return typeof p == "object" && p !== null && p.$$typeof === r;
1375
- }, W.isForwardRef = function(p) {
1376
- return H(p) === y;
1377
- }, W.isFragment = function(p) {
1380
+ }, U.isForwardRef = function(p) {
1381
+ return H(p) === b;
1382
+ }, U.isFragment = function(p) {
1378
1383
  return H(p) === o;
1379
- }, W.isLazy = function(p) {
1384
+ }, U.isLazy = function(p) {
1380
1385
  return H(p) === Y;
1381
- }, W.isMemo = function(p) {
1386
+ }, U.isMemo = function(p) {
1382
1387
  return H(p) === x;
1383
- }, W.isPortal = function(p) {
1388
+ }, U.isPortal = function(p) {
1384
1389
  return H(p) === t;
1385
- }, W.isProfiler = function(p) {
1390
+ }, U.isProfiler = function(p) {
1386
1391
  return H(p) === i;
1387
- }, W.isStrictMode = function(p) {
1392
+ }, U.isStrictMode = function(p) {
1388
1393
  return H(p) === s;
1389
- }, W.isSuspense = function(p) {
1394
+ }, U.isSuspense = function(p) {
1390
1395
  return H(p) === h;
1391
- }, W.isValidElementType = function(p) {
1392
- return typeof p == "string" || typeof p == "function" || p === o || p === v || p === i || p === s || p === h || p === m || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === y || p.$$typeof === G || p.$$typeof === K || p.$$typeof === D || p.$$typeof === z);
1393
- }, W.typeOf = H, W;
1396
+ }, U.isValidElementType = function(p) {
1397
+ return typeof p == "string" || typeof p == "function" || p === o || p === m || p === i || p === s || p === h || p === v || typeof p == "object" && p !== null && (p.$$typeof === Y || p.$$typeof === x || p.$$typeof === c || p.$$typeof === u || p.$$typeof === b || p.$$typeof === G || p.$$typeof === K || p.$$typeof === D || p.$$typeof === k);
1398
+ }, U.typeOf = H, U;
1394
1399
  }
1395
- var U = {};
1400
+ var W = {};
1396
1401
  /** @license React v16.13.1
1397
1402
  * react-is.development.js
1398
1403
  *
@@ -1402,11 +1407,11 @@ var U = {};
1402
1407
  * LICENSE file in the root directory of this source tree.
1403
1408
  */
1404
1409
  var nt;
1405
- function to() {
1410
+ function so() {
1406
1411
  return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
1407
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, z = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1412
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, Y = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, G = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1408
1413
  function H(w) {
1409
- return typeof w == "string" || typeof w == "function" || w === o || w === v || w === i || w === s || w === h || w === m || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === y || w.$$typeof === G || w.$$typeof === K || w.$$typeof === D || w.$$typeof === z);
1414
+ return typeof w == "string" || typeof w == "function" || w === o || w === m || w === i || w === s || w === h || w === v || typeof w == "object" && w !== null && (w.$$typeof === Y || w.$$typeof === x || w.$$typeof === c || w.$$typeof === u || w.$$typeof === b || w.$$typeof === G || w.$$typeof === K || w.$$typeof === D || w.$$typeof === k);
1410
1415
  }
1411
1416
  function N(w) {
1412
1417
  if (typeof w == "object" && w !== null) {
@@ -1416,7 +1421,7 @@ function to() {
1416
1421
  var je = w.type;
1417
1422
  switch (je) {
1418
1423
  case d:
1419
- case v:
1424
+ case m:
1420
1425
  case o:
1421
1426
  case i:
1422
1427
  case s:
@@ -1426,7 +1431,7 @@ function to() {
1426
1431
  var Ce = je && je.$$typeof;
1427
1432
  switch (Ce) {
1428
1433
  case u:
1429
- case y:
1434
+ case b:
1430
1435
  case Y:
1431
1436
  case x:
1432
1437
  case c:
@@ -1440,12 +1445,12 @@ function to() {
1440
1445
  }
1441
1446
  }
1442
1447
  }
1443
- var p = d, X = v, ee = u, Se = c, Q = r, F = y, ge = o, be = Y, ie = x, k = t, B = i, te = s, pe = h, Ee = !1;
1448
+ var p = d, X = m, ee = u, Se = c, Q = r, $ = b, ge = o, ye = Y, ie = x, z = t, B = i, te = s, pe = h, Ee = !1;
1444
1449
  function Pe(w) {
1445
1450
  return Ee || (Ee = !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.")), l(w) || N(w) === d;
1446
1451
  }
1447
1452
  function l(w) {
1448
- return N(w) === v;
1453
+ return N(w) === m;
1449
1454
  }
1450
1455
  function g(w) {
1451
1456
  return N(w) === u;
@@ -1457,7 +1462,7 @@ function to() {
1457
1462
  return typeof w == "object" && w !== null && w.$$typeof === r;
1458
1463
  }
1459
1464
  function P(w) {
1460
- return N(w) === y;
1465
+ return N(w) === b;
1461
1466
  }
1462
1467
  function C(w) {
1463
1468
  return N(w) === o;
@@ -1471,7 +1476,7 @@ function to() {
1471
1476
  function j(w) {
1472
1477
  return N(w) === t;
1473
1478
  }
1474
- function $(w) {
1479
+ function F(w) {
1475
1480
  return N(w) === i;
1476
1481
  }
1477
1482
  function A(w) {
@@ -1480,13 +1485,13 @@ function to() {
1480
1485
  function ae(w) {
1481
1486
  return N(w) === h;
1482
1487
  }
1483
- U.AsyncMode = p, U.ConcurrentMode = X, U.ContextConsumer = ee, U.ContextProvider = Se, U.Element = Q, U.ForwardRef = F, U.Fragment = ge, U.Lazy = be, U.Memo = ie, U.Portal = k, U.Profiler = B, U.StrictMode = te, U.Suspense = pe, U.isAsyncMode = Pe, U.isConcurrentMode = l, U.isContextConsumer = g, U.isContextProvider = T, U.isElement = O, U.isForwardRef = P, U.isFragment = C, U.isLazy = R, U.isMemo = _, U.isPortal = j, U.isProfiler = $, U.isStrictMode = A, U.isSuspense = ae, U.isValidElementType = H, U.typeOf = N;
1484
- }()), U;
1488
+ W.AsyncMode = p, W.ConcurrentMode = X, W.ContextConsumer = ee, W.ContextProvider = Se, W.Element = Q, W.ForwardRef = $, W.Fragment = ge, W.Lazy = ye, W.Memo = ie, W.Portal = z, W.Profiler = B, W.StrictMode = te, W.Suspense = pe, W.isAsyncMode = Pe, W.isConcurrentMode = l, W.isContextConsumer = g, W.isContextProvider = T, W.isElement = O, W.isForwardRef = P, W.isFragment = C, W.isLazy = R, W.isMemo = _, W.isPortal = j, W.isProfiler = F, W.isStrictMode = A, W.isSuspense = ae, W.isValidElementType = H, W.typeOf = N;
1489
+ }()), W;
1485
1490
  }
1486
1491
  var ot;
1487
- function bt() {
1492
+ function yt() {
1488
1493
  return ot || (ot = 1, function(e) {
1489
- process.env.NODE_ENV === "production" ? e.exports = ro() : e.exports = to();
1494
+ process.env.NODE_ENV === "production" ? e.exports = ao() : e.exports = so();
1490
1495
  }(hr)), hr.exports;
1491
1496
  }
1492
1497
  /*
@@ -1494,10 +1499,10 @@ object-assign
1494
1499
  (c) Sindre Sorhus
1495
1500
  @license MIT
1496
1501
  */
1497
- var vr, it;
1498
- function no() {
1502
+ var mr, it;
1503
+ function co() {
1499
1504
  if (it)
1500
- return vr;
1505
+ return mr;
1501
1506
  it = 1;
1502
1507
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
1503
1508
  function o(i) {
@@ -1514,54 +1519,54 @@ function no() {
1514
1519
  return !1;
1515
1520
  for (var c = {}, u = 0; u < 10; u++)
1516
1521
  c["_" + String.fromCharCode(u)] = u;
1517
- var d = Object.getOwnPropertyNames(c).map(function(y) {
1518
- return c[y];
1522
+ var d = Object.getOwnPropertyNames(c).map(function(b) {
1523
+ return c[b];
1519
1524
  });
1520
1525
  if (d.join("") !== "0123456789")
1521
1526
  return !1;
1522
- var v = {};
1523
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
1524
- v[y] = y;
1525
- }), Object.keys(Object.assign({}, v)).join("") === "abcdefghijklmnopqrst";
1527
+ var m = {};
1528
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
1529
+ m[b] = b;
1530
+ }), Object.keys(Object.assign({}, m)).join("") === "abcdefghijklmnopqrst";
1526
1531
  } catch {
1527
1532
  return !1;
1528
1533
  }
1529
1534
  }
1530
- return vr = s() ? Object.assign : function(i, c) {
1531
- for (var u, d = o(i), v, y = 1; y < arguments.length; y++) {
1532
- u = Object(arguments[y]);
1535
+ return mr = s() ? Object.assign : function(i, c) {
1536
+ for (var u, d = o(i), m, b = 1; b < arguments.length; b++) {
1537
+ u = Object(arguments[b]);
1533
1538
  for (var h in u)
1534
1539
  r.call(u, h) && (d[h] = u[h]);
1535
1540
  if (e) {
1536
- v = e(u);
1537
- for (var m = 0; m < v.length; m++)
1538
- t.call(u, v[m]) && (d[v[m]] = u[v[m]]);
1541
+ m = e(u);
1542
+ for (var v = 0; v < m.length; v++)
1543
+ t.call(u, m[v]) && (d[m[v]] = u[m[v]]);
1539
1544
  }
1540
1545
  }
1541
1546
  return d;
1542
- }, vr;
1547
+ }, mr;
1543
1548
  }
1544
- var mr, at;
1549
+ var vr, at;
1545
1550
  function Mr() {
1546
1551
  if (at)
1547
- return mr;
1552
+ return vr;
1548
1553
  at = 1;
1549
1554
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1550
- return mr = e, mr;
1555
+ return vr = e, vr;
1551
1556
  }
1552
- var br, st;
1553
- function yt() {
1554
- return st || (st = 1, br = Function.call.bind(Object.prototype.hasOwnProperty)), br;
1557
+ var yr, st;
1558
+ function bt() {
1559
+ return st || (st = 1, yr = Function.call.bind(Object.prototype.hasOwnProperty)), yr;
1555
1560
  }
1556
- var yr, ct;
1557
- function oo() {
1561
+ var br, ct;
1562
+ function uo() {
1558
1563
  if (ct)
1559
- return yr;
1564
+ return br;
1560
1565
  ct = 1;
1561
1566
  var e = function() {
1562
1567
  };
1563
1568
  if (process.env.NODE_ENV !== "production") {
1564
- var r = Mr(), t = {}, o = yt();
1569
+ var r = Mr(), t = {}, o = bt();
1565
1570
  e = function(i) {
1566
1571
  var c = "Warning: " + i;
1567
1572
  typeof console < "u" && console.error(c);
@@ -1571,27 +1576,27 @@ function oo() {
1571
1576
  }
1572
1577
  };
1573
1578
  }
1574
- function s(i, c, u, d, v) {
1579
+ function s(i, c, u, d, m) {
1575
1580
  if (process.env.NODE_ENV !== "production") {
1576
- for (var y in i)
1577
- if (o(i, y)) {
1581
+ for (var b in i)
1582
+ if (o(i, b)) {
1578
1583
  var h;
1579
1584
  try {
1580
- if (typeof i[y] != "function") {
1581
- var m = Error(
1582
- (d || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1585
+ if (typeof i[b] != "function") {
1586
+ var v = Error(
1587
+ (d || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1583
1588
  );
1584
- throw m.name = "Invariant Violation", m;
1589
+ throw v.name = "Invariant Violation", v;
1585
1590
  }
1586
- h = i[y](c, y, d, u, null, r);
1591
+ h = i[b](c, b, d, u, null, r);
1587
1592
  } catch (Y) {
1588
1593
  h = Y;
1589
1594
  }
1590
1595
  if (h && !(h instanceof Error) && e(
1591
- (d || "React class") + ": type specification of " + u + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1596
+ (d || "React class") + ": type specification of " + u + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1592
1597
  ), h instanceof Error && !(h.message in t)) {
1593
1598
  t[h.message] = !0;
1594
- var x = v ? v() : "";
1599
+ var x = m ? m() : "";
1595
1600
  e(
1596
1601
  "Failed " + u + " type: " + h.message + (x != null ? x : "")
1597
1602
  );
@@ -1601,14 +1606,14 @@ function oo() {
1601
1606
  }
1602
1607
  return s.resetWarningCache = function() {
1603
1608
  process.env.NODE_ENV !== "production" && (t = {});
1604
- }, yr = s, yr;
1609
+ }, br = s, br;
1605
1610
  }
1606
1611
  var wr, ut;
1607
- function io() {
1612
+ function lo() {
1608
1613
  if (ut)
1609
1614
  return wr;
1610
1615
  ut = 1;
1611
- var e = bt(), r = no(), t = Mr(), o = yt(), s = oo(), i = function() {
1616
+ var e = yt(), r = co(), t = Mr(), o = bt(), s = uo(), i = function() {
1612
1617
  };
1613
1618
  process.env.NODE_ENV !== "production" && (i = function(u) {
1614
1619
  var d = "Warning: " + u;
@@ -1622,13 +1627,13 @@ function io() {
1622
1627
  return null;
1623
1628
  }
1624
1629
  return wr = function(u, d) {
1625
- var v = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
1630
+ var m = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
1626
1631
  function h(l) {
1627
- var g = l && (v && l[v] || l[y]);
1632
+ var g = l && (m && l[m] || l[b]);
1628
1633
  if (typeof g == "function")
1629
1634
  return g;
1630
1635
  }
1631
- var m = "<<anonymous>>", x = {
1636
+ var v = "<<anonymous>>", x = {
1632
1637
  array: K("array"),
1633
1638
  bigint: K("bigint"),
1634
1639
  bool: K("boolean"),
@@ -1642,25 +1647,25 @@ function io() {
1642
1647
  element: N(),
1643
1648
  elementType: p(),
1644
1649
  instanceOf: X,
1645
- node: F(),
1650
+ node: $(),
1646
1651
  objectOf: Se,
1647
1652
  oneOf: ee,
1648
1653
  oneOfType: Q,
1649
- shape: be,
1654
+ shape: ye,
1650
1655
  exact: ie
1651
1656
  };
1652
1657
  function Y(l, g) {
1653
1658
  return l === g ? l !== 0 || 1 / l === 1 / g : l !== l && g !== g;
1654
1659
  }
1655
- function z(l, g) {
1660
+ function k(l, g) {
1656
1661
  this.message = l, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
1657
1662
  }
1658
- z.prototype = Error.prototype;
1663
+ k.prototype = Error.prototype;
1659
1664
  function G(l) {
1660
1665
  if (process.env.NODE_ENV !== "production")
1661
1666
  var g = {}, T = 0;
1662
- function O(C, R, _, j, $, A, ae) {
1663
- if (j = j || m, A = A || _, ae !== t) {
1667
+ function O(C, R, _, j, F, A, ae) {
1668
+ if (j = j || v, A = A || _, ae !== t) {
1664
1669
  if (d) {
1665
1670
  var w = new Error(
1666
1671
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -1673,17 +1678,17 @@ function io() {
1673
1678
  ), g[he] = !0, T++);
1674
1679
  }
1675
1680
  }
1676
- return R[_] == null ? C ? R[_] === null ? new z("The " + $ + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new z("The " + $ + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, $, A);
1681
+ return R[_] == null ? C ? R[_] === null ? new k("The " + F + " `" + A + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new k("The " + F + " `" + A + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : l(R, _, j, F, A);
1677
1682
  }
1678
1683
  var P = O.bind(null, !1);
1679
1684
  return P.isRequired = O.bind(null, !0), P;
1680
1685
  }
1681
1686
  function K(l) {
1682
1687
  function g(T, O, P, C, R, _) {
1683
- var j = T[O], $ = te(j);
1684
- if ($ !== l) {
1688
+ var j = T[O], F = te(j);
1689
+ if (F !== l) {
1685
1690
  var A = pe(j);
1686
- return new z(
1691
+ return new k(
1687
1692
  "Invalid " + C + " `" + R + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + l + "`."),
1688
1693
  { expectedType: l }
1689
1694
  );
@@ -1698,14 +1703,14 @@ function io() {
1698
1703
  function H(l) {
1699
1704
  function g(T, O, P, C, R) {
1700
1705
  if (typeof l != "function")
1701
- return new z("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
1706
+ return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
1702
1707
  var _ = T[O];
1703
1708
  if (!Array.isArray(_)) {
1704
1709
  var j = te(_);
1705
- return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
1710
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an array."));
1706
1711
  }
1707
- for (var $ = 0; $ < _.length; $++) {
1708
- var A = l(_, $, P, C, R + "[" + $ + "]", t);
1712
+ for (var F = 0; F < _.length; F++) {
1713
+ var A = l(_, F, P, C, R + "[" + F + "]", t);
1709
1714
  if (A instanceof Error)
1710
1715
  return A;
1711
1716
  }
@@ -1718,7 +1723,7 @@ function io() {
1718
1723
  var R = g[T];
1719
1724
  if (!u(R)) {
1720
1725
  var _ = te(R);
1721
- return new z("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
1726
+ return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement."));
1722
1727
  }
1723
1728
  return null;
1724
1729
  }
@@ -1729,7 +1734,7 @@ function io() {
1729
1734
  var R = g[T];
1730
1735
  if (!e.isValidElementType(R)) {
1731
1736
  var _ = te(R);
1732
- return new z("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
1737
+ return new k("Invalid " + P + " `" + C + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected a single ReactElement type."));
1733
1738
  }
1734
1739
  return null;
1735
1740
  }
@@ -1738,8 +1743,8 @@ function io() {
1738
1743
  function X(l) {
1739
1744
  function g(T, O, P, C, R) {
1740
1745
  if (!(T[O] instanceof l)) {
1741
- var _ = l.name || m, j = Pe(T[O]);
1742
- return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
1746
+ var _ = l.name || v, j = Pe(T[O]);
1747
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
1743
1748
  }
1744
1749
  return null;
1745
1750
  }
@@ -1754,24 +1759,24 @@ function io() {
1754
1759
  for (var _ = T[O], j = 0; j < l.length; j++)
1755
1760
  if (Y(_, l[j]))
1756
1761
  return null;
1757
- var $ = JSON.stringify(l, function(ae, w) {
1762
+ var F = JSON.stringify(l, function(ae, w) {
1758
1763
  var he = pe(w);
1759
1764
  return he === "symbol" ? String(w) : w;
1760
1765
  });
1761
- return new z("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + $ + "."));
1766
+ return new k("Invalid " + C + " `" + R + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
1762
1767
  }
1763
1768
  return G(g);
1764
1769
  }
1765
1770
  function Se(l) {
1766
1771
  function g(T, O, P, C, R) {
1767
1772
  if (typeof l != "function")
1768
- return new z("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
1773
+ return new k("Property `" + R + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
1769
1774
  var _ = T[O], j = te(_);
1770
1775
  if (j !== "object")
1771
- return new z("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
1772
- for (var $ in _)
1773
- if (o(_, $)) {
1774
- var A = l(_, $, P, C, R + "." + $, t);
1776
+ return new k("Invalid " + C + " `" + R + "` of type " + ("`" + j + "` supplied to `" + P + "`, expected an object."));
1777
+ for (var F in _)
1778
+ if (o(_, F)) {
1779
+ var A = l(_, F, P, C, R + "." + F, t);
1775
1780
  if (A instanceof Error)
1776
1781
  return A;
1777
1782
  }
@@ -1790,38 +1795,38 @@ function io() {
1790
1795
  ), c;
1791
1796
  }
1792
1797
  function O(P, C, R, _, j) {
1793
- for (var $ = [], A = 0; A < l.length; A++) {
1798
+ for (var F = [], A = 0; A < l.length; A++) {
1794
1799
  var ae = l[A], w = ae(P, C, R, _, j, t);
1795
1800
  if (w == null)
1796
1801
  return null;
1797
- w.data && o(w.data, "expectedType") && $.push(w.data.expectedType);
1802
+ w.data && o(w.data, "expectedType") && F.push(w.data.expectedType);
1798
1803
  }
1799
- var he = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
1800
- return new z("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
1804
+ var he = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1805
+ return new k("Invalid " + _ + " `" + j + "` supplied to " + ("`" + R + "`" + he + "."));
1801
1806
  }
1802
1807
  return G(O);
1803
1808
  }
1804
- function F() {
1809
+ function $() {
1805
1810
  function l(g, T, O, P, C) {
1806
- return k(g[T]) ? null : new z("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1811
+ return z(g[T]) ? null : new k("Invalid " + P + " `" + C + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1807
1812
  }
1808
1813
  return G(l);
1809
1814
  }
1810
1815
  function ge(l, g, T, O, P) {
1811
- return new z(
1816
+ return new k(
1812
1817
  (l || "React class") + ": " + g + " type `" + T + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
1813
1818
  );
1814
1819
  }
1815
- function be(l) {
1820
+ function ye(l) {
1816
1821
  function g(T, O, P, C, R) {
1817
1822
  var _ = T[O], j = te(_);
1818
1823
  if (j !== "object")
1819
- return new z("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1820
- for (var $ in l) {
1821
- var A = l[$];
1824
+ return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1825
+ for (var F in l) {
1826
+ var A = l[F];
1822
1827
  if (typeof A != "function")
1823
- return ge(P, C, R, $, pe(A));
1824
- var ae = A(_, $, P, C, R + "." + $, t);
1828
+ return ge(P, C, R, F, pe(A));
1829
+ var ae = A(_, F, P, C, R + "." + F, t);
1825
1830
  if (ae)
1826
1831
  return ae;
1827
1832
  }
@@ -1833,14 +1838,14 @@ function io() {
1833
1838
  function g(T, O, P, C, R) {
1834
1839
  var _ = T[O], j = te(_);
1835
1840
  if (j !== "object")
1836
- return new z("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1837
- var $ = r({}, T[O], l);
1838
- for (var A in $) {
1841
+ return new k("Invalid " + C + " `" + R + "` of type `" + j + "` " + ("supplied to `" + P + "`, expected `object`."));
1842
+ var F = r({}, T[O], l);
1843
+ for (var A in F) {
1839
1844
  var ae = l[A];
1840
1845
  if (o(l, A) && typeof ae != "function")
1841
1846
  return ge(P, C, R, A, pe(ae));
1842
1847
  if (!ae)
1843
- return new z(
1848
+ return new k(
1844
1849
  "Invalid " + C + " `" + R + "` key `" + A + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(T[O], null, " ") + `
1845
1850
  Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1846
1851
  );
@@ -1852,7 +1857,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1852
1857
  }
1853
1858
  return G(g);
1854
1859
  }
1855
- function k(l) {
1860
+ function z(l) {
1856
1861
  switch (typeof l) {
1857
1862
  case "number":
1858
1863
  case "string":
@@ -1862,7 +1867,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1862
1867
  return !l;
1863
1868
  case "object":
1864
1869
  if (Array.isArray(l))
1865
- return l.every(k);
1870
+ return l.every(z);
1866
1871
  if (l === null || u(l))
1867
1872
  return !0;
1868
1873
  var g = h(l);
@@ -1870,12 +1875,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1870
1875
  var T = g.call(l), O;
1871
1876
  if (g !== l.entries) {
1872
1877
  for (; !(O = T.next()).done; )
1873
- if (!k(O.value))
1878
+ if (!z(O.value))
1874
1879
  return !1;
1875
1880
  } else
1876
1881
  for (; !(O = T.next()).done; ) {
1877
1882
  var P = O.value;
1878
- if (P && !k(P[1]))
1883
+ if (P && !z(P[1]))
1879
1884
  return !1;
1880
1885
  }
1881
1886
  } else
@@ -1919,13 +1924,13 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1919
1924
  }
1920
1925
  }
1921
1926
  function Pe(l) {
1922
- return !l.constructor || !l.constructor.name ? m : l.constructor.name;
1927
+ return !l.constructor || !l.constructor.name ? v : l.constructor.name;
1923
1928
  }
1924
1929
  return x.checkPropTypes = s, x.resetWarningCache = s.resetWarningCache, x.PropTypes = x, x;
1925
1930
  }, wr;
1926
1931
  }
1927
1932
  var Sr, lt;
1928
- function ao() {
1933
+ function fo() {
1929
1934
  if (lt)
1930
1935
  return Sr;
1931
1936
  lt = 1;
@@ -1935,12 +1940,12 @@ function ao() {
1935
1940
  function t() {
1936
1941
  }
1937
1942
  return t.resetWarningCache = r, Sr = function() {
1938
- function o(c, u, d, v, y, h) {
1943
+ function o(c, u, d, m, b, h) {
1939
1944
  if (h !== e) {
1940
- var m = new Error(
1945
+ var v = new Error(
1941
1946
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1942
1947
  );
1943
- throw m.name = "Invariant Violation", m;
1948
+ throw v.name = "Invariant Violation", v;
1944
1949
  }
1945
1950
  }
1946
1951
  o.isRequired = o;
@@ -1974,22 +1979,22 @@ function ao() {
1974
1979
  }, Sr;
1975
1980
  }
1976
1981
  if (process.env.NODE_ENV !== "production") {
1977
- var so = bt(), co = !0;
1978
- S.exports = io()(so.isElement, co);
1982
+ var po = yt(), go = !0;
1983
+ S.exports = lo()(po.isElement, go);
1979
1984
  } else
1980
- S.exports = ao()();
1981
- const uo = {
1985
+ S.exports = fo()();
1986
+ const ho = {
1982
1987
  display: "flex",
1983
1988
  height: "100%",
1984
1989
  width: "100%",
1985
1990
  justifyContent: "center",
1986
1991
  alignItems: "center"
1987
1992
  };
1988
- function lo({
1993
+ function mo({
1989
1994
  content: e
1990
1995
  }) {
1991
1996
  return /* @__PURE__ */ a("div", {
1992
- style: uo,
1997
+ style: ho,
1993
1998
  children: e
1994
1999
  });
1995
2000
  }
@@ -2022,7 +2027,7 @@ function wt({
2022
2027
  height: r
2023
2028
  },
2024
2029
  ...c,
2025
- children: [!t && /* @__PURE__ */ a(lo, {
2030
+ children: [!t && /* @__PURE__ */ a(mo, {
2026
2031
  content: o
2027
2032
  }), /* @__PURE__ */ a("div", {
2028
2033
  ref: s,
@@ -2046,7 +2051,7 @@ var St = /* @__PURE__ */ dt(wt);
2046
2051
  function Et(e) {
2047
2052
  we(e, []);
2048
2053
  }
2049
- function ye(e, r, t = !0) {
2054
+ function be(e, r, t = !0) {
2050
2055
  const o = ue(!0);
2051
2056
  we(o.current || !t ? () => {
2052
2057
  o.current = !1;
@@ -2055,18 +2060,18 @@ function ye(e, r, t = !0) {
2055
2060
  function Ne() {
2056
2061
  }
2057
2062
  function rr(e, r, t, o) {
2058
- return fo(e, o) || po(e, r, t, o);
2063
+ return vo(e, o) || yo(e, r, t, o);
2059
2064
  }
2060
- function fo(e, r) {
2065
+ function vo(e, r) {
2061
2066
  return e.editor.getModel(Tt(e, r));
2062
2067
  }
2063
- function po(e, r, t, o) {
2068
+ function yo(e, r, t, o) {
2064
2069
  return e.editor.createModel(r, t, o && Tt(e, o));
2065
2070
  }
2066
2071
  function Tt(e, r) {
2067
2072
  return e.Uri.parse(r);
2068
2073
  }
2069
- function go(e) {
2074
+ function bo(e) {
2070
2075
  return e === void 0;
2071
2076
  }
2072
2077
  function Ot({
@@ -2079,78 +2084,78 @@ function Ot({
2079
2084
  modifiedModelPath: c,
2080
2085
  keepCurrentOriginalModel: u,
2081
2086
  keepCurrentModifiedModel: d,
2082
- theme: v,
2083
- loading: y,
2087
+ theme: m,
2088
+ loading: b,
2084
2089
  options: h,
2085
- height: m,
2090
+ height: v,
2086
2091
  width: x,
2087
2092
  className: Y,
2088
- wrapperProps: z,
2093
+ wrapperProps: k,
2089
2094
  beforeMount: G,
2090
2095
  onMount: K
2091
2096
  }) {
2092
- const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), F = ue(G);
2097
+ const [D, H] = Ie(!1), [N, p] = Ie(!0), X = ue(null), ee = ue(null), Se = ue(null), Q = ue(K), $ = ue(G);
2093
2098
  Et(() => {
2094
- const k = Ye.init();
2095
- return k.then((B) => (ee.current = B) && p(!1)).catch((B) => (B == null ? void 0 : B.type) !== "cancelation" && console.error("Monaco initialization: error:", B)), () => X.current ? ie() : k.cancel();
2096
- }), ye(() => {
2097
- const k = X.current.getModifiedEditor();
2098
- k.getOption(ee.current.editor.EditorOption.readOnly) ? k.setValue(r) : r !== k.getValue() && (k.executeEdits("", [{
2099
- range: k.getModel().getFullModelRange(),
2099
+ const z = Ye.init();
2100
+ return z.then((B) => (ee.current = B) && p(!1)).catch((B) => (B == null ? void 0 : B.type) !== "cancelation" && console.error("Monaco initialization: error:", B)), () => X.current ? ie() : z.cancel();
2101
+ }), be(() => {
2102
+ const z = X.current.getModifiedEditor();
2103
+ z.getOption(ee.current.editor.EditorOption.readOnly) ? z.setValue(r) : r !== z.getValue() && (z.executeEdits("", [{
2104
+ range: z.getModel().getFullModelRange(),
2100
2105
  text: r,
2101
2106
  forceMoveMarkers: !0
2102
- }]), k.pushUndoStop());
2103
- }, [r], D), ye(() => {
2107
+ }]), z.pushUndoStop());
2108
+ }, [r], D), be(() => {
2104
2109
  X.current.getModel().original.setValue(e);
2105
- }, [e], D), ye(() => {
2110
+ }, [e], D), be(() => {
2106
2111
  const {
2107
- original: k,
2112
+ original: z,
2108
2113
  modified: B
2109
2114
  } = X.current.getModel();
2110
- ee.current.editor.setModelLanguage(k, o || t), ee.current.editor.setModelLanguage(B, s || t);
2111
- }, [t, o, s], D), ye(() => {
2112
- ee.current.editor.setTheme(v);
2113
- }, [v], D), ye(() => {
2115
+ ee.current.editor.setModelLanguage(z, o || t), ee.current.editor.setModelLanguage(B, s || t);
2116
+ }, [t, o, s], D), be(() => {
2117
+ ee.current.editor.setTheme(m);
2118
+ }, [m], D), be(() => {
2114
2119
  X.current.updateOptions(h);
2115
2120
  }, [h], D);
2116
2121
  const ge = Tr(() => {
2117
- F.current(ee.current);
2118
- const k = rr(ee.current, e, o || t, i), B = rr(ee.current, r, s || t, c);
2122
+ $.current(ee.current);
2123
+ const z = rr(ee.current, e, o || t, i), B = rr(ee.current, r, s || t, c);
2119
2124
  X.current.setModel({
2120
- original: k,
2125
+ original: z,
2121
2126
  modified: B
2122
2127
  });
2123
- }, [t, r, s, e, o, i, c]), be = Tr(() => {
2128
+ }, [t, r, s, e, o, i, c]), ye = Tr(() => {
2124
2129
  X.current = ee.current.editor.createDiffEditor(Se.current, {
2125
2130
  automaticLayout: !0,
2126
2131
  ...h
2127
- }), ge(), ee.current.editor.setTheme(v), H(!0);
2128
- }, [h, v, ge]);
2132
+ }), ge(), ee.current.editor.setTheme(m), H(!0);
2133
+ }, [h, m, ge]);
2129
2134
  we(() => {
2130
2135
  D && Q.current(X.current, ee.current);
2131
2136
  }, [D]), we(() => {
2132
- !N && !D && be();
2133
- }, [N, D, be]);
2137
+ !N && !D && ye();
2138
+ }, [N, D, ye]);
2134
2139
  function ie() {
2135
- const k = X.current.getModel();
2140
+ const z = X.current.getModel();
2136
2141
  if (!u) {
2137
2142
  var B;
2138
- (B = k.original) === null || B === void 0 || B.dispose();
2143
+ (B = z.original) === null || B === void 0 || B.dispose();
2139
2144
  }
2140
2145
  if (!d) {
2141
2146
  var te;
2142
- (te = k.modified) === null || te === void 0 || te.dispose();
2147
+ (te = z.modified) === null || te === void 0 || te.dispose();
2143
2148
  }
2144
2149
  X.current.dispose();
2145
2150
  }
2146
2151
  return /* @__PURE__ */ a(St, {
2147
2152
  width: x,
2148
- height: m,
2153
+ height: v,
2149
2154
  isEditorReady: D,
2150
- loading: y,
2155
+ loading: b,
2151
2156
  _ref: Se,
2152
2157
  className: Y,
2153
- wrapperProps: z
2158
+ wrapperProps: k
2154
2159
  });
2155
2160
  }
2156
2161
  Ot.propTypes = {
@@ -2185,7 +2190,7 @@ Ot.defaultProps = {
2185
2190
  beforeMount: Ne,
2186
2191
  onMount: Ne
2187
2192
  };
2188
- function ho(e) {
2193
+ function wo(e) {
2189
2194
  const r = ue();
2190
2195
  return we(() => {
2191
2196
  r.current = e;
@@ -2202,68 +2207,68 @@ function Ir({
2202
2207
  theme: c,
2203
2208
  line: u,
2204
2209
  loading: d,
2205
- options: v,
2206
- overrideServices: y,
2210
+ options: m,
2211
+ overrideServices: b,
2207
2212
  saveViewState: h,
2208
- keepCurrentModel: m,
2213
+ keepCurrentModel: v,
2209
2214
  width: x,
2210
2215
  height: Y,
2211
- className: z,
2216
+ className: k,
2212
2217
  wrapperProps: G,
2213
2218
  beforeMount: K,
2214
2219
  onMount: D,
2215
2220
  onChange: H,
2216
2221
  onValidate: N
2217
2222
  }) {
2218
- const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), F = ue(null), ge = ue(null), be = ue(D), ie = ue(K), k = ue(null), B = ue(o), te = ho(i), pe = ue(!1);
2223
+ const [p, X] = Ie(!1), [ee, Se] = Ie(!0), Q = ue(null), $ = ue(null), ge = ue(null), ye = ue(D), ie = ue(K), z = ue(null), B = ue(o), te = wo(i), pe = ue(!1);
2219
2224
  Et(() => {
2220
2225
  const l = Ye.init();
2221
- return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () => F.current ? Pe() : l.cancel();
2222
- }), ye(() => {
2226
+ return l.then((g) => (Q.current = g) && Se(!1)).catch((g) => (g == null ? void 0 : g.type) !== "cancelation" && console.error("Monaco initialization: error:", g)), () => $.current ? Pe() : l.cancel();
2227
+ }), be(() => {
2223
2228
  const l = rr(Q.current, e || o, r || s, i);
2224
- l !== F.current.getModel() && (h && Xe.set(te, F.current.saveViewState()), F.current.setModel(l), h && F.current.restoreViewState(Xe.get(i)));
2225
- }, [i], p), ye(() => {
2226
- F.current.updateOptions(v);
2227
- }, [v], p), ye(() => {
2228
- F.current.getOption(Q.current.editor.EditorOption.readOnly) ? F.current.setValue(o) : o !== F.current.getValue() && (F.current.executeEdits("", [{
2229
- range: F.current.getModel().getFullModelRange(),
2229
+ l !== $.current.getModel() && (h && Xe.set(te, $.current.saveViewState()), $.current.setModel(l), h && $.current.restoreViewState(Xe.get(i)));
2230
+ }, [i], p), be(() => {
2231
+ $.current.updateOptions(m);
2232
+ }, [m], p), be(() => {
2233
+ $.current.getOption(Q.current.editor.EditorOption.readOnly) ? $.current.setValue(o) : o !== $.current.getValue() && ($.current.executeEdits("", [{
2234
+ range: $.current.getModel().getFullModelRange(),
2230
2235
  text: o,
2231
2236
  forceMoveMarkers: !0
2232
- }]), F.current.pushUndoStop());
2233
- }, [o], p), ye(() => {
2234
- Q.current.editor.setModelLanguage(F.current.getModel(), s);
2235
- }, [s], p), ye(() => {
2236
- go(u) || F.current.revealLine(u);
2237
- }, [u], p), ye(() => {
2237
+ }]), $.current.pushUndoStop());
2238
+ }, [o], p), be(() => {
2239
+ Q.current.editor.setModelLanguage($.current.getModel(), s);
2240
+ }, [s], p), be(() => {
2241
+ bo(u) || $.current.revealLine(u);
2242
+ }, [u], p), be(() => {
2238
2243
  Q.current.editor.setTheme(c);
2239
2244
  }, [c], p);
2240
2245
  const Ee = Tr(() => {
2241
2246
  if (!pe.current) {
2242
2247
  ie.current(Q.current);
2243
2248
  const l = i || t, g = rr(Q.current, o || e, r || s, l);
2244
- F.current = Q.current.editor.create(ge.current, {
2249
+ $.current = Q.current.editor.create(ge.current, {
2245
2250
  model: g,
2246
2251
  automaticLayout: !0,
2247
- ...v
2248
- }, y), h && F.current.restoreViewState(Xe.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
2252
+ ...m
2253
+ }, b), h && $.current.restoreViewState(Xe.get(l)), Q.current.editor.setTheme(c), X(!0), pe.current = !0;
2249
2254
  }
2250
- }, [e, r, t, o, s, i, v, y, h, c]);
2255
+ }, [e, r, t, o, s, i, m, b, h, c]);
2251
2256
  we(() => {
2252
- p && be.current(F.current, Q.current);
2257
+ p && ye.current($.current, Q.current);
2253
2258
  }, [p]), we(() => {
2254
2259
  !ee && !p && Ee();
2255
2260
  }, [ee, p, Ee]), B.current = o, we(() => {
2256
2261
  if (p && H) {
2257
2262
  var l, g;
2258
- (l = k.current) === null || l === void 0 || l.dispose(), k.current = (g = F.current) === null || g === void 0 ? void 0 : g.onDidChangeModelContent((T) => {
2259
- H(F.current.getValue(), T);
2263
+ (l = z.current) === null || l === void 0 || l.dispose(), z.current = (g = $.current) === null || g === void 0 ? void 0 : g.onDidChangeModelContent((T) => {
2264
+ H($.current.getValue(), T);
2260
2265
  });
2261
2266
  }
2262
2267
  }, [p, H]), we(() => {
2263
2268
  if (p) {
2264
2269
  const l = Q.current.editor.onDidChangeMarkers((g) => {
2265
2270
  var T;
2266
- const O = (T = F.current.getModel()) === null || T === void 0 ? void 0 : T.uri;
2271
+ const O = (T = $.current.getModel()) === null || T === void 0 ? void 0 : T.uri;
2267
2272
  if (O && g.find((C) => C.path === O.path)) {
2268
2273
  const C = Q.current.editor.getModelMarkers({
2269
2274
  resource: O
@@ -2278,13 +2283,13 @@ function Ir({
2278
2283
  }, [p, N]);
2279
2284
  function Pe() {
2280
2285
  var l;
2281
- if ((l = k.current) === null || l === void 0 || l.dispose(), m)
2282
- h && Xe.set(i, F.current.saveViewState());
2286
+ if ((l = z.current) === null || l === void 0 || l.dispose(), v)
2287
+ h && Xe.set(i, $.current.saveViewState());
2283
2288
  else {
2284
2289
  var g;
2285
- (g = F.current.getModel()) === null || g === void 0 || g.dispose();
2290
+ (g = $.current.getModel()) === null || g === void 0 || g.dispose();
2286
2291
  }
2287
- F.current.dispose();
2292
+ $.current.dispose();
2288
2293
  }
2289
2294
  return /* @__PURE__ */ a(St, {
2290
2295
  width: x,
@@ -2292,7 +2297,7 @@ function Ir({
2292
2297
  isEditorReady: p,
2293
2298
  loading: d,
2294
2299
  _ref: ge,
2295
- className: z,
2300
+ className: k,
2296
2301
  wrapperProps: G
2297
2302
  });
2298
2303
  }
@@ -2333,25 +2338,10 @@ Ir.defaultProps = {
2333
2338
  onMount: Ne,
2334
2339
  onValidate: Ne
2335
2340
  };
2336
- var vo = /* @__PURE__ */ dt(Ir);
2337
- function mo() {
2338
- return new Worker("/assets/editor.worker.64456f42.js");
2339
- }
2340
- function bo() {
2341
- return new Worker("/assets/css.worker.72a68640.js");
2342
- }
2343
- function yo() {
2344
- return new Worker("/assets/html.worker.76e8b0f3.js");
2345
- }
2346
- function wo() {
2347
- return new Worker("/assets/json.worker.e7a84e5c.js");
2348
- }
2349
- function So() {
2350
- return new Worker("/assets/ts.worker.b3dc4cb9.js");
2351
- }
2341
+ var So = /* @__PURE__ */ dt(Ir);
2352
2342
  self.MonacoEnvironment = {
2353
2343
  getWorker(e, r) {
2354
- return r === "json" ? new wo() : r === "css" || r === "scss" || r === "less" ? new bo() : r === "html" || r === "handlebars" || r === "razor" ? new yo() : r === "typescript" || r === "javascript" ? new So() : new mo();
2344
+ return r === "json" ? new cn() : r === "css" || r === "scss" || r === "less" ? new an() : r === "html" || r === "handlebars" || r === "razor" ? new sn() : r === "typescript" || r === "javascript" ? new un() : new on();
2355
2345
  }
2356
2346
  };
2357
2347
  function Eo() {
@@ -2361,11 +2351,11 @@ Eo();
2361
2351
  const To = ({
2362
2352
  value: e,
2363
2353
  onChange: r
2364
- }) => /* @__PURE__ */ a(me, {
2354
+ }) => /* @__PURE__ */ a(ve, {
2365
2355
  sx: {
2366
2356
  position: "relative"
2367
2357
  },
2368
- children: /* @__PURE__ */ a(vo, {
2358
+ children: /* @__PURE__ */ a(So, {
2369
2359
  height: "500px",
2370
2360
  defaultLanguage: "javascript",
2371
2361
  value: e,
@@ -2389,11 +2379,11 @@ const To = ({
2389
2379
  }, c) => {
2390
2380
  const [u, {
2391
2381
  setTrue: d,
2392
- setFalse: v
2393
- }] = tn(), [y, h] = Ie(e), m = () => {
2394
- v(), r(y);
2382
+ setFalse: m
2383
+ }] = tn(), [b, h] = Ie(e), v = () => {
2384
+ m(), r(b);
2395
2385
  }, x = () => {
2396
- v(), h(e);
2386
+ m(), h(e);
2397
2387
  }, Y = () => {
2398
2388
  h(s);
2399
2389
  };
@@ -2412,12 +2402,12 @@ const To = ({
2412
2402
  size: 800,
2413
2403
  title: o,
2414
2404
  opened: u,
2415
- onClose: v,
2405
+ onClose: m,
2416
2406
  closeOnClickOutside: !1,
2417
2407
  withCloseButton: !1,
2418
2408
  children: u && /* @__PURE__ */ I(Rr, {
2419
2409
  children: [/* @__PURE__ */ a(To, {
2420
- value: y,
2410
+ value: b,
2421
2411
  onChange: h
2422
2412
  }), /* @__PURE__ */ I(se, {
2423
2413
  position: "apart",
@@ -2435,7 +2425,7 @@ const To = ({
2435
2425
  variant: "subtle",
2436
2426
  children: "Cancel"
2437
2427
  }), /* @__PURE__ */ a(oe, {
2438
- onClick: m,
2428
+ onClick: v,
2439
2429
  children: "OK"
2440
2430
  })]
2441
2431
  })]
@@ -2470,7 +2460,7 @@ function Oo({
2470
2460
  }
2471
2461
  }
2472
2462
  });
2473
- return /* @__PURE__ */ a(me, {
2463
+ return /* @__PURE__ */ a(ve, {
2474
2464
  mx: "auto",
2475
2465
  children: /* @__PURE__ */ I("form", {
2476
2466
  onSubmit: s(e),
@@ -2551,7 +2541,7 @@ function Po({
2551
2541
  const [t, o] = Ie("postgresql"), s = async ({
2552
2542
  type: u,
2553
2543
  key: d,
2554
- config: v
2544
+ config: m
2555
2545
  }) => {
2556
2546
  _e({
2557
2547
  id: "for-creating",
@@ -2563,23 +2553,23 @@ function Po({
2563
2553
  console.log({
2564
2554
  type: u,
2565
2555
  key: d,
2566
- config: v
2567
- }), await de.datasource.create(u, d, v), le({
2556
+ config: m
2557
+ }), await de.datasource.create(u, d, m), le({
2568
2558
  id: "for-creating",
2569
2559
  title: "Successful",
2570
2560
  message: "Data source is added",
2571
2561
  color: "green"
2572
2562
  }), e();
2573
- } catch (y) {
2563
+ } catch (b) {
2574
2564
  le({
2575
2565
  id: "for-creating",
2576
2566
  title: "Failed",
2577
- message: y.message,
2567
+ message: b.message,
2578
2568
  color: "red"
2579
2569
  });
2580
2570
  }
2581
2571
  }, i = t === "postgresql" || t === "mysql", c = t === "http";
2582
- return /* @__PURE__ */ I(me, {
2572
+ return /* @__PURE__ */ I(ve, {
2583
2573
  mx: "auto",
2584
2574
  children: [/* @__PURE__ */ a(Bt, {
2585
2575
  fullWidth: !0,
@@ -2597,7 +2587,7 @@ function Po({
2597
2587
  }],
2598
2588
  value: t,
2599
2589
  onChange: (u) => o(u)
2600
- }), i && /* @__PURE__ */ a(gn, {
2590
+ }), i && /* @__PURE__ */ a(bn, {
2601
2591
  submit: s,
2602
2592
  styles: r,
2603
2593
  type: t
@@ -2611,7 +2601,7 @@ function Ro({
2611
2601
  onSuccess: e,
2612
2602
  styles: r = qe
2613
2603
  }) {
2614
- const [t, o] = ze.useState(!1), s = () => o(!0), i = () => o(!1);
2604
+ const [t, o] = ke.useState(!1), s = () => o(!0), i = () => o(!1);
2615
2605
  return /* @__PURE__ */ I(Oe, {
2616
2606
  children: [/* @__PURE__ */ a(Be, {
2617
2607
  overflow: "inside",
@@ -2654,10 +2644,10 @@ function _o(e, r) {
2654
2644
  var t, o, s = function(c, u) {
2655
2645
  if (c == null)
2656
2646
  return {};
2657
- var d, v, y = {}, h = Object.keys(c);
2658
- for (v = 0; v < h.length; v++)
2659
- d = h[v], u.indexOf(d) >= 0 || (y[d] = c[d]);
2660
- return y;
2647
+ var d, m, b = {}, h = Object.keys(c);
2648
+ for (m = 0; m < h.length; m++)
2649
+ d = h[m], u.indexOf(d) >= 0 || (b[d] = c[d]);
2650
+ return b;
2661
2651
  }(e, r);
2662
2652
  if (Object.getOwnPropertySymbols) {
2663
2653
  var i = Object.getOwnPropertySymbols(e);
@@ -2669,7 +2659,7 @@ function _o(e, r) {
2669
2659
  var xo = ["size", "color", "stroke"];
2670
2660
  function Co(e) {
2671
2661
  var r = e.size, t = r === void 0 ? 24 : r, o = e.color, s = o === void 0 ? "currentColor" : o, i = e.stroke, c = i === void 0 ? 2 : i, u = _o(e, xo);
2672
- return Fe.createElement("svg", Or({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: t, height: t, viewBox: "0 0 24 24", strokeWidth: c, stroke: s, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, u), Fe.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), Fe.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), Fe.createElement("circle", { cx: 12, cy: 16, r: 1 }), Fe.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
2662
+ return $e.createElement("svg", Or({ xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-lock", width: t, height: t, viewBox: "0 0 24 24", strokeWidth: c, stroke: s, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, u), $e.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), $e.createElement("rect", { x: 5, y: 11, width: 14, height: 10, rx: 2 }), $e.createElement("circle", { cx: 12, cy: 16, r: 1 }), $e.createElement("path", { d: "M8 11v-4a4 4 0 0 1 8 0v4" }));
2673
2663
  }
2674
2664
  function jo({
2675
2665
  id: e,
@@ -2727,7 +2717,7 @@ function jo({
2727
2717
  children: "Delete"
2728
2718
  });
2729
2719
  }
2730
- function Xo({
2720
+ function ti({
2731
2721
  styles: e = qe,
2732
2722
  config: r
2733
2723
  }) {
@@ -2736,7 +2726,7 @@ function Xo({
2736
2726
  data: t = [],
2737
2727
  loading: o,
2738
2728
  refresh: s
2739
- } = ke(async () => {
2729
+ } = ze(async () => {
2740
2730
  const {
2741
2731
  data: i
2742
2732
  } = await de.datasource.list();
@@ -2751,7 +2741,7 @@ function Xo({
2751
2741
  children: /* @__PURE__ */ a(Ro, {
2752
2742
  onSuccess: s
2753
2743
  })
2754
- }), /* @__PURE__ */ I(me, {
2744
+ }), /* @__PURE__ */ I(ve, {
2755
2745
  mt: e.spacing,
2756
2746
  sx: {
2757
2747
  position: "relative"
@@ -2821,7 +2811,7 @@ const Ao = Cr(({
2821
2811
  className: "role-description",
2822
2812
  children: t
2823
2813
  })]
2824
- })), kr = Cr(({
2814
+ })), zr = Cr(({
2825
2815
  styles: e,
2826
2816
  value: r,
2827
2817
  onChange: t
@@ -2829,7 +2819,7 @@ const Ao = Cr(({
2829
2819
  const {
2830
2820
  data: s = [],
2831
2821
  loading: i
2832
- } = ke(async () => (await de.role.list()).map((u) => ({
2822
+ } = ze(async () => (await de.role.list()).map((u) => ({
2833
2823
  label: u.name,
2834
2824
  value: u.id,
2835
2825
  description: u.description,
@@ -2883,14 +2873,14 @@ function Mo({
2883
2873
  password: ""
2884
2874
  }
2885
2875
  });
2886
- return /* @__PURE__ */ a(me, {
2876
+ return /* @__PURE__ */ a(ve, {
2887
2877
  mx: "auto",
2888
2878
  children: /* @__PURE__ */ I("form", {
2889
2879
  onSubmit: s(async ({
2890
2880
  name: c,
2891
2881
  email: u,
2892
2882
  password: d,
2893
- role_id: v
2883
+ role_id: m
2894
2884
  }) => {
2895
2885
  try {
2896
2886
  _e({
@@ -2898,17 +2888,17 @@ function Mo({
2898
2888
  title: "Pending",
2899
2889
  message: "Adding account...",
2900
2890
  loading: !0
2901
- }), await de.account.create(c, u, d, v), le({
2891
+ }), await de.account.create(c, u, d, m), le({
2902
2892
  id: "for-creating",
2903
2893
  title: "Successful",
2904
2894
  message: "Account is added",
2905
2895
  color: "green"
2906
2896
  }), e();
2907
- } catch (y) {
2897
+ } catch (b) {
2908
2898
  le({
2909
2899
  id: "for-creating",
2910
2900
  title: "Failed",
2911
- message: y.message,
2901
+ message: b.message,
2912
2902
  color: "red"
2913
2903
  });
2914
2904
  }
@@ -2955,7 +2945,7 @@ function Mo({
2955
2945
  control: o,
2956
2946
  render: ({
2957
2947
  field: c
2958
- }) => /* @__PURE__ */ a(kr, {
2948
+ }) => /* @__PURE__ */ a(zr, {
2959
2949
  styles: r,
2960
2950
  ...c
2961
2951
  })
@@ -2976,7 +2966,7 @@ function Io({
2976
2966
  styles: r = xe,
2977
2967
  initialRoleID: t
2978
2968
  }) {
2979
- const [o, s] = ze.useState(!1), i = () => s(!0), c = () => s(!1);
2969
+ const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1);
2980
2970
  return /* @__PURE__ */ I(Oe, {
2981
2971
  children: [/* @__PURE__ */ a(Be, {
2982
2972
  overflow: "inside",
@@ -3004,7 +2994,7 @@ function Io({
3004
2994
  })]
3005
2995
  });
3006
2996
  }
3007
- function ko({
2997
+ function zo({
3008
2998
  id: e,
3009
2999
  name: r,
3010
3000
  onSuccess: t,
@@ -3053,7 +3043,7 @@ function ko({
3053
3043
  children: "Delete"
3054
3044
  });
3055
3045
  }
3056
- function zo({
3046
+ function ko({
3057
3047
  id: e,
3058
3048
  name: r,
3059
3049
  email: t,
@@ -3073,11 +3063,11 @@ function zo({
3073
3063
  reset_password: !1,
3074
3064
  new_password: ""
3075
3065
  }
3076
- }), v = async ({
3077
- name: m,
3066
+ }), m = async ({
3067
+ name: v,
3078
3068
  email: x,
3079
3069
  role_id: Y,
3080
- reset_password: z,
3070
+ reset_password: k,
3081
3071
  new_password: G
3082
3072
  }) => {
3083
3073
  try {
@@ -3088,10 +3078,10 @@ function zo({
3088
3078
  loading: !0
3089
3079
  }), await de.account.edit({
3090
3080
  id: e,
3091
- name: m,
3081
+ name: v,
3092
3082
  email: x,
3093
3083
  role_id: Y,
3094
- reset_password: z,
3084
+ reset_password: k,
3095
3085
  new_password: G
3096
3086
  }), le({
3097
3087
  id: "for-updating",
@@ -3107,43 +3097,43 @@ function zo({
3107
3097
  color: "red"
3108
3098
  });
3109
3099
  }
3110
- }, [y, h] = d(["reset_password", "new_password"]);
3111
- return /* @__PURE__ */ a(me, {
3100
+ }, [b, h] = d(["reset_password", "new_password"]);
3101
+ return /* @__PURE__ */ a(ve, {
3112
3102
  mx: "auto",
3113
3103
  children: /* @__PURE__ */ I("form", {
3114
- onSubmit: u(v),
3104
+ onSubmit: u(m),
3115
3105
  children: [/* @__PURE__ */ a(J, {
3116
3106
  name: "name",
3117
3107
  control: c,
3118
3108
  render: ({
3119
- field: m
3109
+ field: v
3120
3110
  }) => /* @__PURE__ */ a(fe, {
3121
3111
  mb: i.spacing,
3122
3112
  size: i.size,
3123
3113
  required: !0,
3124
3114
  label: "Username",
3125
- ...m
3115
+ ...v
3126
3116
  })
3127
3117
  }), /* @__PURE__ */ a(J, {
3128
3118
  name: "email",
3129
3119
  control: c,
3130
3120
  render: ({
3131
- field: m
3121
+ field: v
3132
3122
  }) => /* @__PURE__ */ a(fe, {
3133
3123
  mb: i.spacing,
3134
3124
  size: i.size,
3135
3125
  required: !0,
3136
3126
  label: "Email",
3137
- ...m
3127
+ ...v
3138
3128
  })
3139
3129
  }), /* @__PURE__ */ a(J, {
3140
3130
  name: "role_id",
3141
3131
  control: c,
3142
3132
  render: ({
3143
- field: m
3144
- }) => /* @__PURE__ */ a(kr, {
3133
+ field: v
3134
+ }) => /* @__PURE__ */ a(zr, {
3145
3135
  styles: i,
3146
- ...m
3136
+ ...v
3147
3137
  })
3148
3138
  }), /* @__PURE__ */ a(Pr, {
3149
3139
  my: 20,
@@ -3154,24 +3144,24 @@ function zo({
3154
3144
  name: "reset_password",
3155
3145
  control: c,
3156
3146
  render: ({
3157
- field: m
3147
+ field: v
3158
3148
  }) => /* @__PURE__ */ a(Jt, {
3159
3149
  mb: i.spacing,
3160
3150
  size: i.size,
3161
3151
  label: "Reset password",
3162
- checked: m.value,
3163
- onChange: (x) => m.onChange(x.currentTarget.checked),
3152
+ checked: v.value,
3153
+ onChange: (x) => v.onChange(x.currentTarget.checked),
3164
3154
  styles: {
3165
3155
  label: {
3166
3156
  verticalAlign: "middle"
3167
3157
  }
3168
3158
  }
3169
3159
  })
3170
- }), y && /* @__PURE__ */ a(J, {
3160
+ }), b && /* @__PURE__ */ a(J, {
3171
3161
  name: "new_password",
3172
3162
  control: c,
3173
3163
  render: ({
3174
- field: m
3164
+ field: v
3175
3165
  }) => /* @__PURE__ */ a(tr, {
3176
3166
  autoComplete: "off",
3177
3167
  mb: i.spacing,
@@ -3179,7 +3169,7 @@ function zo({
3179
3169
  required: !0,
3180
3170
  description: "Password must be at least 8 characters long",
3181
3171
  label: "New Password",
3182
- ...m
3172
+ ...v
3183
3173
  })
3184
3174
  }), /* @__PURE__ */ a(se, {
3185
3175
  position: "right",
@@ -3198,7 +3188,7 @@ function Do({
3198
3188
  onSuccess: r,
3199
3189
  styles: t = xe
3200
3190
  }) {
3201
- const [o, s] = ze.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
3191
+ const [o, s] = ke.useState(!1), i = () => s(!0), c = () => s(!1), u = () => {
3202
3192
  r(), c();
3203
3193
  };
3204
3194
  return /* @__PURE__ */ I(Oe, {
@@ -3211,7 +3201,7 @@ function Do({
3211
3201
  onDragStart: (d) => {
3212
3202
  d.stopPropagation();
3213
3203
  },
3214
- children: /* @__PURE__ */ a(zo, {
3204
+ children: /* @__PURE__ */ a(ko, {
3215
3205
  ...e,
3216
3206
  postSubmit: u,
3217
3207
  styles: t
@@ -3226,17 +3216,17 @@ function Do({
3226
3216
  })]
3227
3217
  });
3228
3218
  }
3229
- function Qo({
3219
+ function ni({
3230
3220
  styles: e = xe,
3231
3221
  config: r
3232
3222
  }) {
3233
- var v, y;
3223
+ var m, b;
3234
3224
  or(r);
3235
3225
  const {
3236
3226
  data: t = [],
3237
3227
  loading: o,
3238
3228
  refresh: s
3239
- } = ke(async () => {
3229
+ } = ze(async () => {
3240
3230
  const {
3241
3231
  data: h
3242
3232
  } = await de.account.list();
@@ -3246,16 +3236,16 @@ function Qo({
3246
3236
  }), {
3247
3237
  data: i = [],
3248
3238
  loading: c
3249
- } = ke(async () => (await de.role.list()).map((m) => ({
3250
- label: m.name,
3251
- value: m.id,
3252
- description: m.description,
3253
- disabled: m.id === 50
3239
+ } = ze(async () => (await de.role.list()).map((v) => ({
3240
+ label: v.name,
3241
+ value: v.id,
3242
+ description: v.description,
3243
+ disabled: v.id === 50
3254
3244
  })), {
3255
3245
  refreshDeps: []
3256
- }), u = pt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3257
- var m;
3258
- return (m = u.get(h)) != null ? m : h;
3246
+ }), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3247
+ var v;
3248
+ return (v = u.get(h)) != null ? v : h;
3259
3249
  };
3260
3250
  return /* @__PURE__ */ I(Oe, {
3261
3251
  children: [/* @__PURE__ */ a(se, {
@@ -3263,9 +3253,9 @@ function Qo({
3263
3253
  position: "right",
3264
3254
  children: /* @__PURE__ */ a(Io, {
3265
3255
  onSuccess: s,
3266
- initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
3256
+ initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
3267
3257
  })
3268
- }), /* @__PURE__ */ I(me, {
3258
+ }), /* @__PURE__ */ I(ve, {
3269
3259
  mt: e.spacing,
3270
3260
  sx: {
3271
3261
  position: "relative"
@@ -3292,10 +3282,10 @@ function Qo({
3292
3282
  }), /* @__PURE__ */ a("tbody", {
3293
3283
  children: t.map((h) => {
3294
3284
  const {
3295
- id: m,
3285
+ id: v,
3296
3286
  name: x,
3297
3287
  email: Y,
3298
- role_id: z
3288
+ role_id: k
3299
3289
  } = h;
3300
3290
  return /* @__PURE__ */ I("tr", {
3301
3291
  children: [/* @__PURE__ */ a("td", {
@@ -3306,7 +3296,7 @@ function Qo({
3306
3296
  children: Y
3307
3297
  }), /* @__PURE__ */ a("td", {
3308
3298
  width: 200,
3309
- children: d(z)
3299
+ children: d(k)
3310
3300
  }), /* @__PURE__ */ a("td", {
3311
3301
  width: 200,
3312
3302
  children: /* @__PURE__ */ I(se, {
@@ -3314,14 +3304,14 @@ function Qo({
3314
3304
  children: [/* @__PURE__ */ a(Do, {
3315
3305
  account: h,
3316
3306
  onSuccess: s
3317
- }), /* @__PURE__ */ a(ko, {
3318
- id: m,
3307
+ }), /* @__PURE__ */ a(zo, {
3308
+ id: v,
3319
3309
  name: x,
3320
3310
  onSuccess: s
3321
3311
  })]
3322
3312
  })
3323
3313
  })]
3324
- }, m);
3314
+ }, v);
3325
3315
  })
3326
3316
  })]
3327
3317
  })]
@@ -3341,7 +3331,7 @@ function qo({
3341
3331
  password: ""
3342
3332
  }
3343
3333
  });
3344
- return /* @__PURE__ */ a(me, {
3334
+ return /* @__PURE__ */ a(ve, {
3345
3335
  mx: "auto",
3346
3336
  children: /* @__PURE__ */ I("form", {
3347
3337
  onSubmit: o(async ({
@@ -3407,13 +3397,13 @@ function qo({
3407
3397
  })
3408
3398
  });
3409
3399
  }
3410
- function Zo({
3400
+ function oi({
3411
3401
  styles: e = xe,
3412
3402
  config: r,
3413
3403
  onSuccess: t
3414
3404
  }) {
3415
3405
  return or(r), /* @__PURE__ */ a(Oe, {
3416
- children: /* @__PURE__ */ a(me, {
3406
+ children: /* @__PURE__ */ a(ve, {
3417
3407
  mt: e.spacing,
3418
3408
  sx: {
3419
3409
  position: "relative"
@@ -3432,7 +3422,7 @@ const sr = {
3432
3422
  size: "xs"
3433
3423
  }
3434
3424
  };
3435
- function $o({
3425
+ function Fo({
3436
3426
  postSubmit: e,
3437
3427
  styles: r = sr,
3438
3428
  initialRoleID: t
@@ -3446,7 +3436,7 @@ function $o({
3446
3436
  role_id: t
3447
3437
  }
3448
3438
  });
3449
- return /* @__PURE__ */ a(me, {
3439
+ return /* @__PURE__ */ a(ve, {
3450
3440
  mx: "auto",
3451
3441
  children: /* @__PURE__ */ I("form", {
3452
3442
  onSubmit: s(async ({
@@ -3462,14 +3452,14 @@ function $o({
3462
3452
  });
3463
3453
  const {
3464
3454
  app_id: d,
3465
- app_secret: v
3455
+ app_secret: m
3466
3456
  } = await de.api_key.create(c, u);
3467
3457
  le({
3468
3458
  id: "for-creating",
3469
3459
  title: "Successful",
3470
3460
  message: "API Key is added",
3471
3461
  color: "green"
3472
- }), e(d, v);
3462
+ }), e(d, m);
3473
3463
  } catch (d) {
3474
3464
  le({
3475
3465
  id: "for-creating",
@@ -3496,7 +3486,7 @@ function $o({
3496
3486
  control: o,
3497
3487
  render: ({
3498
3488
  field: c
3499
- }) => /* @__PURE__ */ a(kr, {
3489
+ }) => /* @__PURE__ */ a(zr, {
3500
3490
  styles: r,
3501
3491
  ...c
3502
3492
  })
@@ -3512,12 +3502,12 @@ function $o({
3512
3502
  })
3513
3503
  });
3514
3504
  }
3515
- function Fo({
3505
+ function $o({
3516
3506
  onSuccess: e,
3517
3507
  styles: r = sr,
3518
3508
  initialRoleID: t
3519
3509
  }) {
3520
- const o = nr(), [s, i] = ze.useState(!1), c = () => i(!0), u = () => i(!1);
3510
+ const o = nr(), [s, i] = ke.useState(!1), c = () => i(!0), u = () => i(!1);
3521
3511
  return /* @__PURE__ */ I(Oe, {
3522
3512
  children: [/* @__PURE__ */ a(Be, {
3523
3513
  overflow: "inside",
@@ -3525,11 +3515,11 @@ function Fo({
3525
3515
  onClose: () => i(!1),
3526
3516
  title: "Add an API Key",
3527
3517
  trapFocus: !0,
3528
- onDragStart: (v) => {
3529
- v.stopPropagation();
3518
+ onDragStart: (m) => {
3519
+ m.stopPropagation();
3530
3520
  },
3531
- children: /* @__PURE__ */ a($o, {
3532
- postSubmit: (v, y) => {
3521
+ children: /* @__PURE__ */ a(Fo, {
3522
+ postSubmit: (m, b) => {
3533
3523
  u(), o.openModal({
3534
3524
  title: "API Key is generated",
3535
3525
  children: /* @__PURE__ */ I(Rr, {
@@ -3537,7 +3527,7 @@ function Fo({
3537
3527
  color: "dimmed",
3538
3528
  children: "Make sure you save it - you won't be able to access it again."
3539
3529
  }), /* @__PURE__ */ a(fe, {
3540
- defaultValue: v,
3530
+ defaultValue: m,
3541
3531
  disabled: !0,
3542
3532
  label: "APP ID",
3543
3533
  styles: {
@@ -3546,7 +3536,7 @@ function Fo({
3546
3536
  }
3547
3537
  }
3548
3538
  }), /* @__PURE__ */ a(fe, {
3549
- defaultValue: y,
3539
+ defaultValue: b,
3550
3540
  disabled: !0,
3551
3541
  label: "APP Secret",
3552
3542
  styles: {
@@ -3557,7 +3547,7 @@ function Fo({
3557
3547
  }), /* @__PURE__ */ a(oe, {
3558
3548
  size: "sm",
3559
3549
  onClick: () => {
3560
- on();
3550
+ ln();
3561
3551
  },
3562
3552
  children: "I've saved this API Key"
3563
3553
  })]
@@ -3629,17 +3619,17 @@ function Lo({
3629
3619
  children: "Delete"
3630
3620
  });
3631
3621
  }
3632
- function ei({
3622
+ function ii({
3633
3623
  styles: e = sr,
3634
3624
  config: r
3635
3625
  }) {
3636
- var v, y;
3626
+ var m, b;
3637
3627
  or(r);
3638
3628
  const {
3639
3629
  data: t = [],
3640
3630
  loading: o,
3641
3631
  refresh: s
3642
- } = ke(async () => {
3632
+ } = ze(async () => {
3643
3633
  const {
3644
3634
  data: h
3645
3635
  } = await de.api_key.list();
@@ -3649,26 +3639,26 @@ function ei({
3649
3639
  }), {
3650
3640
  data: i = [],
3651
3641
  loading: c
3652
- } = ke(async () => (await de.role.list()).map((m) => ({
3653
- label: m.name,
3654
- value: m.id,
3655
- description: m.description,
3656
- disabled: m.id === 50
3642
+ } = ze(async () => (await de.role.list()).map((v) => ({
3643
+ label: v.name,
3644
+ value: v.id,
3645
+ description: v.description,
3646
+ disabled: v.id === 50
3657
3647
  })), {
3658
3648
  refreshDeps: []
3659
- }), u = pt(() => i.reduce((h, m) => (h.set(m.value, m.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3660
- var m;
3661
- return (m = u.get(h)) != null ? m : h;
3649
+ }), u = pt(() => i.reduce((h, v) => (h.set(v.value, v.label), h), /* @__PURE__ */ new Map()), [i]), d = (h) => {
3650
+ var v;
3651
+ return (v = u.get(h)) != null ? v : h;
3662
3652
  };
3663
3653
  return /* @__PURE__ */ I(Oe, {
3664
3654
  children: [/* @__PURE__ */ a(se, {
3665
3655
  pt: e.spacing,
3666
3656
  position: "right",
3667
- children: /* @__PURE__ */ a(Fo, {
3657
+ children: /* @__PURE__ */ a($o, {
3668
3658
  onSuccess: s,
3669
- initialRoleID: (y = (v = i == null ? void 0 : i[0]) == null ? void 0 : v.value) != null ? y : 0
3659
+ initialRoleID: (b = (m = i == null ? void 0 : i[0]) == null ? void 0 : m.value) != null ? b : 0
3670
3660
  })
3671
- }), /* @__PURE__ */ I(me, {
3661
+ }), /* @__PURE__ */ I(ve, {
3672
3662
  mt: e.spacing,
3673
3663
  sx: {
3674
3664
  position: "relative"
@@ -3695,10 +3685,10 @@ function ei({
3695
3685
  }), /* @__PURE__ */ a("tbody", {
3696
3686
  children: t.map((h) => {
3697
3687
  const {
3698
- id: m,
3688
+ id: v,
3699
3689
  name: x,
3700
3690
  app_id: Y,
3701
- role_id: z
3691
+ role_id: k
3702
3692
  } = h;
3703
3693
  return /* @__PURE__ */ I("tr", {
3704
3694
  children: [/* @__PURE__ */ a("td", {
@@ -3709,36 +3699,36 @@ function ei({
3709
3699
  children: Y
3710
3700
  }), /* @__PURE__ */ a("td", {
3711
3701
  width: 200,
3712
- children: d(z)
3702
+ children: d(k)
3713
3703
  }), /* @__PURE__ */ a("td", {
3714
3704
  width: 200,
3715
3705
  children: /* @__PURE__ */ a(se, {
3716
3706
  position: "left",
3717
3707
  children: /* @__PURE__ */ a(Lo, {
3718
- id: m,
3708
+ id: v,
3719
3709
  name: x,
3720
3710
  onSuccess: s
3721
3711
  })
3722
3712
  })
3723
3713
  })]
3724
- }, m);
3714
+ }, v);
3725
3715
  })
3726
3716
  })]
3727
3717
  })]
3728
3718
  })]
3729
3719
  });
3730
3720
  }
3731
- const ri = () => import("./package.b74d5f91.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
3721
+ const ai = () => import("./package.b74d5f91.mjs").then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
3732
3722
  export {
3733
- ei as APIKeyList,
3734
- Qo as AccountList,
3735
- Fo as AddAPIKey,
3723
+ ii as APIKeyList,
3724
+ ni as AccountList,
3725
+ $o as AddAPIKey,
3736
3726
  Io as AddAccount,
3737
3727
  Ro as AddDataSource,
3738
- Xo as DataSourceList,
3728
+ ti as DataSourceList,
3739
3729
  Lo as DeleteAPIKey,
3740
- ko as DeleteAccount,
3730
+ zo as DeleteAccount,
3741
3731
  jo as DeleteDataSource,
3742
- Zo as Login,
3743
- ri as getVersion
3732
+ oi as Login,
3733
+ ai as getVersion
3744
3734
  };