react-toolkits 0.8.63 → 0.8.65

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,8 +1,8 @@
1
1
  var dc = Object.defineProperty;
2
2
  var pc = (e, t, r) => t in e ? dc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var cr = (e, t, r) => (pc(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import * as Re from "react";
5
- import Ce, { createContext as Vr, useContext as $r, useEffect as Ne, useState as De, useRef as ye, useLayoutEffect as hc, useMemo as zt, useCallback as ke, useDebugValue as Ac, memo as gc, Suspense as yc, forwardRef as mc, useImperativeHandle as vc, lazy as Ze } from "react";
4
+ import * as De from "react";
5
+ import Ce, { createContext as Vr, useContext as $r, useEffect as Ne, useState as Re, useRef as _e, useLayoutEffect as hc, useMemo as zt, useCallback as ke, useDebugValue as Ac, memo as gc, Suspense as yc, forwardRef as mc, useImperativeHandle as vc, lazy as Ze } from "react";
6
6
  import * as Ut from "antd";
7
7
  import { theme as Ca, Space as Ke, Input as Qe, Tag as On, Button as Ge, Select as Wr, Typography as Hr, Form as Ae, Spin as Yr, Result as $t, Table as Ea, Menu as _c, Card as wa, Empty as Tn, Dropdown as bc, Divider as Oa, Tooltip as Sc, Modal as xc, Row as Cc, Col as Dt, Alert as Ec } from "antd";
8
8
  import wc, { flushSync as Oc } from "react-dom";
@@ -25,7 +25,7 @@ var Rn;
25
25
  function Ic() {
26
26
  return Rn || (Rn = 1, process.env.NODE_ENV !== "production" && function() {
27
27
  var e = Ce, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), S = Symbol.iterator, y = "@@iterator";
28
- function E(o) {
28
+ function C(o) {
29
29
  if (o === null || typeof o != "object")
30
30
  return null;
31
31
  var v = S && o[S] || o[y];
@@ -43,16 +43,16 @@ function Ic() {
43
43
  {
44
44
  var z = g.ReactDebugCurrentFrame, q = z.getStackAddendum();
45
45
  q !== "" && (v += "%s", O = O.concat([q]));
46
- var X = O.map(function(Q) {
47
- return String(Q);
46
+ var J = O.map(function(Y) {
47
+ return String(Y);
48
48
  });
49
- X.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, X);
49
+ J.unshift("Warning: " + v), Function.prototype.apply.call(console[o], console, J);
50
50
  }
51
51
  }
52
- var I = !1, F = !1, T = !1, L = !1, D = !1, U;
52
+ var I = !1, F = !1, T = !1, G = !1, D = !1, U;
53
53
  U = Symbol.for("react.module.reference");
54
54
  function M(o) {
55
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || D || o === a || o === d || o === h || L || o === p || I || F || T || typeof o == "object" && o !== null && (o.$$typeof === A || o.$$typeof === u || o.$$typeof === c || o.$$typeof === i || o.$$typeof === l || // This needs to include all possible module reference object
55
+ return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || D || o === a || o === d || o === h || G || o === p || I || F || T || typeof o == "object" && o !== null && (o.$$typeof === A || o.$$typeof === u || o.$$typeof === c || o.$$typeof === i || o.$$typeof === l || // This needs to include all possible module reference object
56
56
  // types supported by any Flight configuration anywhere since
57
57
  // we don't know which Flight build this will end up being used
58
58
  // with.
@@ -103,9 +103,9 @@ function Ic() {
103
103
  var z = o.displayName || null;
104
104
  return z !== null ? z : k(o.type) || "Memo";
105
105
  case A: {
106
- var q = o, X = q._payload, Q = q._init;
106
+ var q = o, J = q._payload, Y = q._init;
107
107
  try {
108
- return k(Q(X));
108
+ return k(Y(J));
109
109
  } catch {
110
110
  return null;
111
111
  }
@@ -113,18 +113,18 @@ function Ic() {
113
113
  }
114
114
  return null;
115
115
  }
116
- var b = Object.assign, x = 0, m, w, C, P, B, G, W;
117
- function $() {
116
+ var b = Object.assign, E = 0, m, w, x, P, B, L, W;
117
+ function Q() {
118
118
  }
119
- $.__reactDisabledLog = !0;
120
- function Z() {
119
+ Q.__reactDisabledLog = !0;
120
+ function te() {
121
121
  {
122
- if (x === 0) {
123
- m = console.log, w = console.info, C = console.warn, P = console.error, B = console.group, G = console.groupCollapsed, W = console.groupEnd;
122
+ if (E === 0) {
123
+ m = console.log, w = console.info, x = console.warn, P = console.error, B = console.group, L = console.groupCollapsed, W = console.groupEnd;
124
124
  var o = {
125
125
  configurable: !0,
126
126
  enumerable: !0,
127
- value: $,
127
+ value: Q,
128
128
  writable: !0
129
129
  };
130
130
  Object.defineProperties(console, {
@@ -137,12 +137,12 @@ function Ic() {
137
137
  groupEnd: o
138
138
  });
139
139
  }
140
- x++;
140
+ E++;
141
141
  }
142
142
  }
143
- function re() {
143
+ function X() {
144
144
  {
145
- if (x--, x === 0) {
145
+ if (E--, E === 0) {
146
146
  var o = {
147
147
  configurable: !0,
148
148
  enumerable: !0,
@@ -156,7 +156,7 @@ function Ic() {
156
156
  value: w
157
157
  }),
158
158
  warn: b({}, o, {
159
- value: C
159
+ value: x
160
160
  }),
161
161
  error: b({}, o, {
162
162
  value: P
@@ -165,72 +165,72 @@ function Ic() {
165
165
  value: B
166
166
  }),
167
167
  groupCollapsed: b({}, o, {
168
- value: G
168
+ value: L
169
169
  }),
170
170
  groupEnd: b({}, o, {
171
171
  value: W
172
172
  })
173
173
  });
174
174
  }
175
- x < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
175
+ E < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
176
176
  }
177
177
  }
178
- var de = g.ReactCurrentDispatcher, le;
179
- function ue(o, v, O) {
178
+ var le = g.ReactCurrentDispatcher, ue;
179
+ function ge(o, v, O) {
180
180
  {
181
- if (le === void 0)
181
+ if (ue === void 0)
182
182
  try {
183
183
  throw Error();
184
184
  } catch (q) {
185
185
  var z = q.stack.trim().match(/\n( *(at )?)/);
186
- le = z && z[1] || "";
186
+ ue = z && z[1] || "";
187
187
  }
188
188
  return `
189
- ` + le + o;
189
+ ` + ue + o;
190
190
  }
191
191
  }
192
- var me = !1, ee;
192
+ var de = !1, Z;
193
193
  {
194
- var ve = typeof WeakMap == "function" ? WeakMap : Map;
195
- ee = new ve();
194
+ var me = typeof WeakMap == "function" ? WeakMap : Map;
195
+ Z = new me();
196
196
  }
197
- function Y(o, v) {
198
- if (!o || me)
197
+ function H(o, v) {
198
+ if (!o || de)
199
199
  return "";
200
200
  {
201
- var O = ee.get(o);
201
+ var O = Z.get(o);
202
202
  if (O !== void 0)
203
203
  return O;
204
204
  }
205
205
  var z;
206
- me = !0;
206
+ de = !0;
207
207
  var q = Error.prepareStackTrace;
208
208
  Error.prepareStackTrace = void 0;
209
- var X;
210
- X = de.current, de.current = null, Z();
209
+ var J;
210
+ J = le.current, le.current = null, te();
211
211
  try {
212
212
  if (v) {
213
- var Q = function() {
213
+ var Y = function() {
214
214
  throw Error();
215
215
  };
216
- if (Object.defineProperty(Q.prototype, "props", {
216
+ if (Object.defineProperty(Y.prototype, "props", {
217
217
  set: function() {
218
218
  throw Error();
219
219
  }
220
220
  }), typeof Reflect == "object" && Reflect.construct) {
221
221
  try {
222
- Reflect.construct(Q, []);
222
+ Reflect.construct(Y, []);
223
223
  } catch (Fe) {
224
224
  z = Fe;
225
225
  }
226
- Reflect.construct(o, [], Q);
226
+ Reflect.construct(o, [], Y);
227
227
  } else {
228
228
  try {
229
- Q.call();
229
+ Y.call();
230
230
  } catch (Fe) {
231
231
  z = Fe;
232
232
  }
233
- o.call(Q.prototype);
233
+ o.call(Y.prototype);
234
234
  }
235
235
  } else {
236
236
  try {
@@ -242,59 +242,59 @@ function Ic() {
242
242
  }
243
243
  } catch (Fe) {
244
244
  if (Fe && z && typeof Fe.stack == "string") {
245
- for (var H = Fe.stack.split(`
245
+ for (var $ = Fe.stack.split(`
246
246
  `), he = z.stack.split(`
247
- `), ne = H.length - 1, ce = he.length - 1; ne >= 1 && ce >= 0 && H[ne] !== he[ce]; )
247
+ `), ne = $.length - 1, ce = he.length - 1; ne >= 1 && ce >= 0 && $[ne] !== he[ce]; )
248
248
  ce--;
249
249
  for (; ne >= 1 && ce >= 0; ne--, ce--)
250
- if (H[ne] !== he[ce]) {
250
+ if ($[ne] !== he[ce]) {
251
251
  if (ne !== 1 || ce !== 1)
252
252
  do
253
- if (ne--, ce--, ce < 0 || H[ne] !== he[ce]) {
253
+ if (ne--, ce--, ce < 0 || $[ne] !== he[ce]) {
254
254
  var Se = `
255
- ` + H[ne].replace(" at new ", " at ");
256
- return o.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", o.displayName)), typeof o == "function" && ee.set(o, Se), Se;
255
+ ` + $[ne].replace(" at new ", " at ");
256
+ return o.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", o.displayName)), typeof o == "function" && Z.set(o, Se), Se;
257
257
  }
258
258
  while (ne >= 1 && ce >= 0);
259
259
  break;
260
260
  }
261
261
  }
262
262
  } finally {
263
- me = !1, de.current = X, re(), Error.prepareStackTrace = q;
263
+ de = !1, le.current = J, X(), Error.prepareStackTrace = q;
264
264
  }
265
- var nt = o ? o.displayName || o.name : "", wn = nt ? ue(nt) : "";
266
- return typeof o == "function" && ee.set(o, wn), wn;
265
+ var nt = o ? o.displayName || o.name : "", wn = nt ? ge(nt) : "";
266
+ return typeof o == "function" && Z.set(o, wn), wn;
267
267
  }
268
268
  function K(o, v, O) {
269
- return Y(o, !1);
269
+ return H(o, !1);
270
270
  }
271
271
  function ie(o) {
272
272
  var v = o.prototype;
273
273
  return !!(v && v.isReactComponent);
274
274
  }
275
- function J(o, v, O) {
275
+ function ee(o, v, O) {
276
276
  if (o == null)
277
277
  return "";
278
278
  if (typeof o == "function")
279
- return Y(o, ie(o));
279
+ return H(o, ie(o));
280
280
  if (typeof o == "string")
281
- return ue(o);
281
+ return ge(o);
282
282
  switch (o) {
283
283
  case d:
284
- return ue("Suspense");
284
+ return ge("Suspense");
285
285
  case h:
286
- return ue("SuspenseList");
286
+ return ge("SuspenseList");
287
287
  }
288
288
  if (typeof o == "object")
289
289
  switch (o.$$typeof) {
290
290
  case l:
291
291
  return K(o.render);
292
292
  case u:
293
- return J(o.type, v, O);
293
+ return ee(o.type, v, O);
294
294
  case A: {
295
- var z = o, q = z._payload, X = z._init;
295
+ var z = o, q = z._payload, J = z._init;
296
296
  try {
297
- return J(X(q), v, O);
297
+ return ee(J(q), v, O);
298
298
  } catch {
299
299
  }
300
300
  }
@@ -304,27 +304,27 @@ function Ic() {
304
304
  var pe = Object.prototype.hasOwnProperty, je = {}, ae = g.ReactDebugCurrentFrame;
305
305
  function se(o) {
306
306
  if (o) {
307
- var v = o._owner, O = J(o.type, o._source, v ? v.type : null);
307
+ var v = o._owner, O = ee(o.type, o._source, v ? v.type : null);
308
308
  ae.setExtraStackFrame(O);
309
309
  } else
310
310
  ae.setExtraStackFrame(null);
311
311
  }
312
312
  function Oe(o, v, O, z, q) {
313
313
  {
314
- var X = Function.call.bind(pe);
315
- for (var Q in o)
316
- if (X(o, Q)) {
317
- var H = void 0;
314
+ var J = Function.call.bind(pe);
315
+ for (var Y in o)
316
+ if (J(o, Y)) {
317
+ var $ = void 0;
318
318
  try {
319
- if (typeof o[Q] != "function") {
320
- var he = Error((z || "React class") + ": " + O + " type `" + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[Q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
319
+ if (typeof o[Y] != "function") {
320
+ var he = Error((z || "React class") + ": " + O + " type `" + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[Y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
321
321
  throw he.name = "Invariant Violation", he;
322
322
  }
323
- H = o[Q](v, Q, z, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
323
+ $ = o[Y](v, Y, z, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
324
324
  } catch (ne) {
325
- H = ne;
325
+ $ = ne;
326
326
  }
327
- H && !(H instanceof Error) && (se(q), _("%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).", z || "React class", O, Q, typeof H), se(null)), H instanceof Error && !(H.message in je) && (je[H.message] = !0, se(q), _("Failed %s type: %s", O, H.message), se(null));
327
+ $ && !($ instanceof Error) && (se(q), _("%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).", z || "React class", O, Y, typeof $), se(null)), $ instanceof Error && !($.message in je) && (je[$.message] = !0, se(q), _("Failed %s type: %s", O, $.message), se(null));
328
328
  }
329
329
  }
330
330
  }
@@ -338,7 +338,7 @@ function Ic() {
338
338
  return O;
339
339
  }
340
340
  }
341
- function ge(o) {
341
+ function ye(o) {
342
342
  try {
343
343
  return be(o), !1;
344
344
  } catch {
@@ -349,7 +349,7 @@ function Ic() {
349
349
  return "" + o;
350
350
  }
351
351
  function tt(o) {
352
- if (ge(o))
352
+ if (ye(o))
353
353
  return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(o)), be(o);
354
354
  }
355
355
  var Ye = g.ReactCurrentOwner, ft = {
@@ -403,57 +403,57 @@ function Ic() {
403
403
  });
404
404
  }
405
405
  }
406
- var rc = function(o, v, O, z, q, X, Q) {
407
- var H = {
406
+ var rc = function(o, v, O, z, q, J, Y) {
407
+ var $ = {
408
408
  // This tag allows us to uniquely identify this as a React Element
409
409
  $$typeof: t,
410
410
  // Built-in properties that belong on the element
411
411
  type: o,
412
412
  key: v,
413
413
  ref: O,
414
- props: Q,
414
+ props: Y,
415
415
  // Record the component responsible for creating this element.
416
- _owner: X
416
+ _owner: J
417
417
  };
418
- return H._store = {}, Object.defineProperty(H._store, "validated", {
418
+ return $._store = {}, Object.defineProperty($._store, "validated", {
419
419
  configurable: !1,
420
420
  enumerable: !1,
421
421
  writable: !0,
422
422
  value: !1
423
- }), Object.defineProperty(H, "_self", {
423
+ }), Object.defineProperty($, "_self", {
424
424
  configurable: !1,
425
425
  enumerable: !1,
426
426
  writable: !1,
427
427
  value: z
428
- }), Object.defineProperty(H, "_source", {
428
+ }), Object.defineProperty($, "_source", {
429
429
  configurable: !1,
430
430
  enumerable: !1,
431
431
  writable: !1,
432
432
  value: q
433
- }), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
433
+ }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
434
434
  };
435
435
  function nc(o, v, O, z, q) {
436
436
  {
437
- var X, Q = {}, H = null, he = null;
438
- O !== void 0 && (tt(O), H = "" + O), Zs(v) && (tt(v.key), H = "" + v.key), Xs(v) && (he = v.ref, Js(v, q));
439
- for (X in v)
440
- pe.call(v, X) && !ft.hasOwnProperty(X) && (Q[X] = v[X]);
437
+ var J, Y = {}, $ = null, he = null;
438
+ O !== void 0 && (tt(O), $ = "" + O), Zs(v) && (tt(v.key), $ = "" + v.key), Xs(v) && (he = v.ref, Js(v, q));
439
+ for (J in v)
440
+ pe.call(v, J) && !ft.hasOwnProperty(J) && (Y[J] = v[J]);
441
441
  if (o && o.defaultProps) {
442
442
  var ne = o.defaultProps;
443
- for (X in ne)
444
- Q[X] === void 0 && (Q[X] = ne[X]);
443
+ for (J in ne)
444
+ Y[J] === void 0 && (Y[J] = ne[J]);
445
445
  }
446
- if (H || he) {
446
+ if ($ || he) {
447
447
  var ce = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
448
- H && ec(Q, ce), he && tc(Q, ce);
448
+ $ && ec(Y, ce), he && tc(Y, ce);
449
449
  }
450
- return rc(o, H, he, q, z, Ye.current, Q);
450
+ return rc(o, $, he, q, z, Ye.current, Y);
451
451
  }
452
452
  }
453
453
  var nr = g.ReactCurrentOwner, _n = g.ReactDebugCurrentFrame;
454
454
  function rt(o) {
455
455
  if (o) {
456
- var v = o._owner, O = J(o.type, o._source, v ? v.type : null);
456
+ var v = o._owner, O = ee(o.type, o._source, v ? v.type : null);
457
457
  _n.setExtraStackFrame(O);
458
458
  } else
459
459
  _n.setExtraStackFrame(null);
@@ -524,10 +524,10 @@ Check the top-level render call using <` + O + ">.");
524
524
  else if (sr(o))
525
525
  o._store && (o._store.validated = !0);
526
526
  else if (o) {
527
- var q = E(o);
527
+ var q = C(o);
528
528
  if (typeof q == "function" && q !== o.entries)
529
- for (var X = q.call(o), Q; !(Q = X.next()).done; )
530
- sr(Q.value) && xn(Q.value, v);
529
+ for (var J = q.call(o), Y; !(Y = J.next()).done; )
530
+ sr(Y.value) && xn(Y.value, v);
531
531
  }
532
532
  }
533
533
  }
@@ -568,21 +568,21 @@ Check the top-level render call using <` + O + ">.");
568
568
  o.ref !== null && (rt(o), _("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
569
569
  }
570
570
  }
571
- function En(o, v, O, z, q, X) {
571
+ function En(o, v, O, z, q, J) {
572
572
  {
573
- var Q = M(o);
574
- if (!Q) {
575
- var H = "";
576
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (H += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
573
+ var Y = M(o);
574
+ if (!Y) {
575
+ var $ = "";
576
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
577
577
  var he = ac(q);
578
- he ? H += he : H += bn();
578
+ he ? $ += he : $ += bn();
579
579
  var ne;
580
- o === null ? ne = "null" : et(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (k(o.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, H);
580
+ o === null ? ne = "null" : et(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (k(o.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, $);
581
581
  }
582
- var ce = nc(o, v, O, q, X);
582
+ var ce = nc(o, v, O, q, J);
583
583
  if (ce == null)
584
584
  return ce;
585
- if (Q) {
585
+ if (Y) {
586
586
  var Se = v.children;
587
587
  if (Se !== void 0)
588
588
  if (z)
@@ -677,8 +677,8 @@ function Fc() {
677
677
  }
678
678
  function n(R, I, F) {
679
679
  {
680
- var T = t.ReactDebugCurrentFrame, L = T.getStackAddendum();
681
- L !== "" && (I += "%s", F = F.concat([L]));
680
+ var T = t.ReactDebugCurrentFrame, G = T.getStackAddendum();
681
+ G !== "" && (I += "%s", F = F.concat([G]));
682
682
  var D = F.map(function(U) {
683
683
  return String(U);
684
684
  });
@@ -693,8 +693,8 @@ function Fc() {
693
693
  h || e.startTransition !== void 0 && (h = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
694
694
  var T = I();
695
695
  if (!u) {
696
- var L = I();
697
- s(T, L) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
696
+ var G = I();
697
+ s(T, G) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
698
698
  }
699
699
  var D = c({
700
700
  inst: {
@@ -730,7 +730,7 @@ function Fc() {
730
730
  function S(R, I, F) {
731
731
  return I();
732
732
  }
733
- var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", E = !y, g = E ? S : A, _ = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g;
733
+ var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", C = !y, g = C ? S : A, _ = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g;
734
734
  ir.useSyncExternalStore = _, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
735
735
  }()), ir;
736
736
  }
@@ -755,12 +755,12 @@ function Pc() {
755
755
  }
756
756
  var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue;
757
757
  function i(u, A) {
758
- var p = A(), S = n({ inst: { value: p, getSnapshot: A } }), y = S[0].inst, E = S[1];
758
+ var p = A(), S = n({ inst: { value: p, getSnapshot: A } }), y = S[0].inst, C = S[1];
759
759
  return s(function() {
760
- y.value = p, y.getSnapshot = A, l(y) && E({ inst: y });
760
+ y.value = p, y.getSnapshot = A, l(y) && C({ inst: y });
761
761
  }, [u, p, A]), a(function() {
762
- return l(y) && E({ inst: y }), u(function() {
763
- l(y) && E({ inst: y });
762
+ return l(y) && C({ inst: y }), u(function() {
763
+ l(y) && C({ inst: y });
764
764
  });
765
765
  }, [u]), c(p), p;
766
766
  }
@@ -801,28 +801,28 @@ function Bc() {
801
801
  }
802
802
  var n = typeof Object.is == "function" ? Object.is : r, a = t.useSyncExternalStore, s = e.useRef, c = e.useEffect, i = e.useMemo, l = e.useDebugValue;
803
803
  function d(h, u, A, p, S) {
804
- var y = s(null), E;
805
- y.current === null ? (E = {
804
+ var y = s(null), C;
805
+ y.current === null ? (C = {
806
806
  hasValue: !1,
807
807
  value: null
808
- }, y.current = E) : E = y.current;
808
+ }, y.current = C) : C = y.current;
809
809
  var g = i(function() {
810
- var F = !1, T, L, D = function(N) {
810
+ var F = !1, T, G, D = function(N) {
811
811
  if (!F) {
812
812
  F = !0, T = N;
813
813
  var k = p(N);
814
- if (S !== void 0 && E.hasValue) {
815
- var b = E.value;
814
+ if (S !== void 0 && C.hasValue) {
815
+ var b = C.value;
816
816
  if (S(b, k))
817
- return L = b, b;
817
+ return G = b, b;
818
818
  }
819
- return L = k, k;
819
+ return G = k, k;
820
820
  }
821
- var x = T, m = L;
822
- if (n(x, N))
821
+ var E = T, m = G;
822
+ if (n(E, N))
823
823
  return m;
824
824
  var w = p(N);
825
- return S !== void 0 && S(m, w) ? m : (T = N, L = w, w);
825
+ return S !== void 0 && S(m, w) ? m : (T = N, G = w, w);
826
826
  }, U = A === void 0 ? null : A, M = function() {
827
827
  return D(u());
828
828
  }, j = U === null ? void 0 : function() {
@@ -831,7 +831,7 @@ function Bc() {
831
831
  return [M, j];
832
832
  }, [u, A, p, S]), _ = g[0], R = g[1], I = a(h, _, R);
833
833
  return c(function() {
834
- E.hasValue = !0, E.value = I;
834
+ C.hasValue = !0, C.value = I;
835
835
  }, [I]), l(I), I;
836
836
  }
837
837
  or.useSyncExternalStoreWithSelector = d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
@@ -868,16 +868,16 @@ function Nc() {
868
868
  function g(T) {
869
869
  if (!_) {
870
870
  if (_ = !0, R = T, T = A(T), p !== void 0 && y.hasValue) {
871
- var L = y.value;
872
- if (p(L, T))
873
- return I = L;
871
+ var G = y.value;
872
+ if (p(G, T))
873
+ return I = G;
874
874
  }
875
875
  return I = T;
876
876
  }
877
- if (L = I, n(R, T))
878
- return L;
877
+ if (G = I, n(R, T))
878
+ return G;
879
879
  var D = A(T);
880
- return p !== void 0 && p(L, D) ? L : (R = T, I = D);
880
+ return p !== void 0 && p(G, D) ? G : (R = T, I = D);
881
881
  }
882
882
  var _ = !1, R, I, F = u === void 0 ? null : u;
883
883
  return [function() {
@@ -886,10 +886,10 @@ function Nc() {
886
886
  return g(F());
887
887
  }];
888
888
  }, [h, u, A, p]);
889
- var E = a(d, S[0], S[1]);
889
+ var C = a(d, S[0], S[1]);
890
890
  return c(function() {
891
- y.hasValue = !0, y.value = E;
892
- }, [E]), l(E), E;
891
+ y.hasValue = !0, y.value = C;
892
+ }, [C]), l(C), C;
893
893
  }, ur;
894
894
  }
895
895
  process.env.NODE_ENV === "production" ? wr.exports = Nc() : wr.exports = Bc();
@@ -1168,9 +1168,9 @@ function o2(e, t, r, n) {
1168
1168
  return n && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
1169
1169
  }
1170
1170
  function Ln(e) {
1171
- return _e(e) / 255;
1171
+ return ve(e) / 255;
1172
1172
  }
1173
- function _e(e) {
1173
+ function ve(e) {
1174
1174
  return parseInt(e, 16);
1175
1175
  }
1176
1176
  var kn = {
@@ -1357,26 +1357,26 @@ function u2(e) {
1357
1357
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
1358
1358
  var r = Te.rgb.exec(e);
1359
1359
  return r ? { r: r[1], g: r[2], b: r[3] } : (r = Te.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = Te.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = Te.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = Te.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = Te.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = Te.hex8.exec(e), r ? {
1360
- r: _e(r[1]),
1361
- g: _e(r[2]),
1362
- b: _e(r[3]),
1360
+ r: ve(r[1]),
1361
+ g: ve(r[2]),
1362
+ b: ve(r[3]),
1363
1363
  a: Ln(r[4]),
1364
1364
  format: t ? "name" : "hex8"
1365
1365
  } : (r = Te.hex6.exec(e), r ? {
1366
- r: _e(r[1]),
1367
- g: _e(r[2]),
1368
- b: _e(r[3]),
1366
+ r: ve(r[1]),
1367
+ g: ve(r[2]),
1368
+ b: ve(r[3]),
1369
1369
  format: t ? "name" : "hex"
1370
1370
  } : (r = Te.hex4.exec(e), r ? {
1371
- r: _e(r[1] + r[1]),
1372
- g: _e(r[2] + r[2]),
1373
- b: _e(r[3] + r[3]),
1371
+ r: ve(r[1] + r[1]),
1372
+ g: ve(r[2] + r[2]),
1373
+ b: ve(r[3] + r[3]),
1374
1374
  a: Ln(r[4] + r[4]),
1375
1375
  format: t ? "name" : "hex8"
1376
1376
  } : (r = Te.hex3.exec(e), r ? {
1377
- r: _e(r[1] + r[1]),
1378
- g: _e(r[2] + r[2]),
1379
- b: _e(r[3] + r[3]),
1377
+ r: ve(r[1] + r[1]),
1378
+ g: ve(r[2] + r[2]),
1379
+ b: ve(r[3] + r[3]),
1380
1380
  format: t ? "name" : "hex"
1381
1381
  } : !1)))))))));
1382
1382
  }
@@ -1762,7 +1762,7 @@ function N2() {
1762
1762
  return Ve({}, mt);
1763
1763
  }
1764
1764
  var Yt = function(t) {
1765
- var r = t.icon, n = t.className, a = t.onClick, s = t.style, c = t.primaryColor, i = t.secondaryColor, l = La(t, P2), d = Re.useRef(), h = mt;
1765
+ var r = t.icon, n = t.className, a = t.onClick, s = t.style, c = t.primaryColor, i = t.secondaryColor, l = La(t, P2), d = De.useRef(), h = mt;
1766
1766
  if (c && (h = {
1767
1767
  primaryColor: c,
1768
1768
  secondaryColor: i || Qa(c)
@@ -1801,22 +1801,22 @@ function G2() {
1801
1801
  }
1802
1802
  var L2 = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
1803
1803
  qa(g2.primary);
1804
- var Qt = /* @__PURE__ */ Re.forwardRef(function(e, t) {
1805
- var r, n = e.className, a = e.icon, s = e.spin, c = e.rotate, i = e.tabIndex, l = e.onClick, d = e.twoToneColor, h = La(e, L2), u = Re.useContext(Na), A = u.prefixCls, p = A === void 0 ? "anticon" : A, S = u.rootClassName, y = Jc(S, p, (r = {}, Tr(r, "".concat(p, "-").concat(a.name), !!a.name), Tr(r, "".concat(p, "-spin"), !!s || a.name === "loading"), r), n), E = i;
1806
- E === void 0 && l && (E = -1);
1804
+ var Qt = /* @__PURE__ */ De.forwardRef(function(e, t) {
1805
+ var r, n = e.className, a = e.icon, s = e.spin, c = e.rotate, i = e.tabIndex, l = e.onClick, d = e.twoToneColor, h = La(e, L2), u = De.useContext(Na), A = u.prefixCls, p = A === void 0 ? "anticon" : A, S = u.rootClassName, y = Jc(S, p, (r = {}, Tr(r, "".concat(p, "-").concat(a.name), !!a.name), Tr(r, "".concat(p, "-spin"), !!s || a.name === "loading"), r), n), C = i;
1806
+ C === void 0 && l && (C = -1);
1807
1807
  var g = c ? {
1808
1808
  msTransform: "rotate(".concat(c, "deg)"),
1809
1809
  transform: "rotate(".concat(c, "deg)")
1810
1810
  } : void 0, _ = Ka(d), R = Ga(_, 2), I = R[0], F = R[1];
1811
- return /* @__PURE__ */ Re.createElement("span", at({
1811
+ return /* @__PURE__ */ De.createElement("span", at({
1812
1812
  role: "img",
1813
1813
  "aria-label": a.name
1814
1814
  }, h, {
1815
1815
  ref: t,
1816
- tabIndex: E,
1816
+ tabIndex: C,
1817
1817
  onClick: l,
1818
1818
  className: y
1819
- }), /* @__PURE__ */ Re.createElement(Xr, {
1819
+ }), /* @__PURE__ */ De.createElement(Xr, {
1820
1820
  icon: a,
1821
1821
  primaryColor: I,
1822
1822
  secondaryColor: F,
@@ -1830,33 +1830,33 @@ const Zr = Qt;
1830
1830
  var k2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, name: "logout", theme: "outlined" };
1831
1831
  const z2 = k2;
1832
1832
  var Xa = function(t, r) {
1833
- return /* @__PURE__ */ Re.createElement(Zr, at({}, t, {
1833
+ return /* @__PURE__ */ De.createElement(Zr, at({}, t, {
1834
1834
  ref: r,
1835
1835
  icon: z2
1836
1836
  }));
1837
1837
  };
1838
1838
  process.env.NODE_ENV !== "production" && (Xa.displayName = "LogoutOutlined");
1839
- const U2 = /* @__PURE__ */ Re.forwardRef(Xa);
1839
+ const U2 = /* @__PURE__ */ De.forwardRef(Xa);
1840
1840
  var V2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
1841
1841
  const $2 = V2;
1842
1842
  var Za = function(t, r) {
1843
- return /* @__PURE__ */ Re.createElement(Zr, at({}, t, {
1843
+ return /* @__PURE__ */ De.createElement(Zr, at({}, t, {
1844
1844
  ref: r,
1845
1845
  icon: $2
1846
1846
  }));
1847
1847
  };
1848
1848
  process.env.NODE_ENV !== "production" && (Za.displayName = "PlusOutlined");
1849
- const W2 = /* @__PURE__ */ Re.forwardRef(Za);
1849
+ const W2 = /* @__PURE__ */ De.forwardRef(Za);
1850
1850
  var H2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" } }] }, name: "user", theme: "outlined" };
1851
1851
  const Y2 = H2;
1852
1852
  var Ja = function(t, r) {
1853
- return /* @__PURE__ */ Re.createElement(Zr, at({}, t, {
1853
+ return /* @__PURE__ */ De.createElement(Zr, at({}, t, {
1854
1854
  ref: r,
1855
1855
  icon: Y2
1856
1856
  }));
1857
1857
  };
1858
1858
  process.env.NODE_ENV !== "production" && (Ja.displayName = "UserOutlined");
1859
- const Q2 = /* @__PURE__ */ Re.forwardRef(Ja);
1859
+ const Q2 = /* @__PURE__ */ De.forwardRef(Ja);
1860
1860
  var K2 = typeof global == "object" && global && global.Object === Object && global;
1861
1861
  const es = K2;
1862
1862
  var q2 = typeof self == "object" && self && self.Object === Object && self, X2 = es || q2 || Function("return this")();
@@ -2102,11 +2102,11 @@ function Xo() {
2102
2102
  }
2103
2103
  var As = typeof exports == "object" && exports && !exports.nodeType && exports, na = As && typeof module == "object" && module && !module.nodeType && module, Zo = na && na.exports === As, aa = Zo ? Kt.Buffer : void 0, Jo = aa ? aa.isBuffer : void 0, e1 = Jo || Xo;
2104
2104
  const t1 = e1;
2105
- var r1 = "[object Arguments]", n1 = "[object Array]", a1 = "[object Boolean]", s1 = "[object Date]", c1 = "[object Error]", o1 = "[object Function]", i1 = "[object Map]", l1 = "[object Number]", u1 = "[object Object]", f1 = "[object RegExp]", d1 = "[object Set]", p1 = "[object String]", h1 = "[object WeakMap]", A1 = "[object ArrayBuffer]", g1 = "[object DataView]", y1 = "[object Float32Array]", m1 = "[object Float64Array]", v1 = "[object Int8Array]", _1 = "[object Int16Array]", b1 = "[object Int32Array]", S1 = "[object Uint8Array]", x1 = "[object Uint8ClampedArray]", C1 = "[object Uint16Array]", E1 = "[object Uint32Array]", te = {};
2106
- te[y1] = te[m1] = te[v1] = te[_1] = te[b1] = te[S1] = te[x1] = te[C1] = te[E1] = !0;
2107
- te[r1] = te[n1] = te[A1] = te[a1] = te[g1] = te[s1] = te[c1] = te[o1] = te[i1] = te[l1] = te[u1] = te[f1] = te[d1] = te[p1] = te[h1] = !1;
2105
+ var r1 = "[object Arguments]", n1 = "[object Array]", a1 = "[object Boolean]", s1 = "[object Date]", c1 = "[object Error]", o1 = "[object Function]", i1 = "[object Map]", l1 = "[object Number]", u1 = "[object Object]", f1 = "[object RegExp]", d1 = "[object Set]", p1 = "[object String]", h1 = "[object WeakMap]", A1 = "[object ArrayBuffer]", g1 = "[object DataView]", y1 = "[object Float32Array]", m1 = "[object Float64Array]", v1 = "[object Int8Array]", _1 = "[object Int16Array]", b1 = "[object Int32Array]", S1 = "[object Uint8Array]", x1 = "[object Uint8ClampedArray]", C1 = "[object Uint16Array]", E1 = "[object Uint32Array]", re = {};
2106
+ re[y1] = re[m1] = re[v1] = re[_1] = re[b1] = re[S1] = re[x1] = re[C1] = re[E1] = !0;
2107
+ re[r1] = re[n1] = re[A1] = re[a1] = re[g1] = re[s1] = re[c1] = re[o1] = re[i1] = re[l1] = re[u1] = re[f1] = re[d1] = re[p1] = re[h1] = !1;
2108
2108
  function w1(e) {
2109
- return it(e) && tn(e.length) && !!te[ot(e)];
2109
+ return it(e) && tn(e.length) && !!re[ot(e)];
2110
2110
  }
2111
2111
  function O1(e) {
2112
2112
  return function(t) {
@@ -2561,14 +2561,14 @@ function T3(e, t, r) {
2561
2561
  "g"
2562
2562
  ), p = fa.call(t, "sourceURL") ? "//# sourceURL=" + (t.sourceURL + "").replace(/\s/g, " ") + `
2563
2563
  ` : "";
2564
- e.replace(A, function(E, g, _, R, I, F) {
2564
+ e.replace(A, function(C, g, _, R, I, F) {
2565
2565
  return _ || (_ = R), u += e.slice(d, F).replace(w3, p3), g && (i = !0, u += `' +
2566
2566
  __e(` + g + `) +
2567
2567
  '`), I && (l = !0, u += `';
2568
2568
  ` + I + `;
2569
2569
  __p += '`), _ && (u += `' +
2570
2570
  ((__t = (` + _ + `)) == null ? '' : __t) +
2571
- '`), d = F + E.length, E;
2571
+ '`), d = F + C.length, C;
2572
2572
  }), u += `';
2573
2573
  `;
2574
2574
  var S = fa.call(t, "variable") && t.variable;
@@ -2686,7 +2686,7 @@ function we() {
2686
2686
  return (t, r) => a3(e, t) ? T3(Di(e, t))(r) : t;
2687
2687
  }
2688
2688
  const I3 = (e) => {
2689
- const { initialTags: t, addable: r, removable: n, addCallback: a, removeCallback: s } = e, c = we(), { token: i } = Ca.useToken(), [l, d] = De([]), [h, u] = De(!1), [A, p] = De(""), [S, y] = De(-1), [E, g] = De(""), _ = ye(null), R = ye(null);
2689
+ const { initialTags: t, addable: r, removable: n, addCallback: a, removeCallback: s } = e, c = we(), { token: i } = Ca.useToken(), [l, d] = Re([]), [h, u] = Re(!1), [A, p] = Re(""), [S, y] = Re(-1), [C, g] = Re(""), _ = _e(null), R = _e(null);
2690
2690
  Ne(() => {
2691
2691
  d(t ?? []);
2692
2692
  }, [t]), Ne(() => {
@@ -2698,20 +2698,20 @@ const I3 = (e) => {
2698
2698
  }, [A]);
2699
2699
  const I = async (N) => {
2700
2700
  if (await (s == null ? void 0 : s(N))) {
2701
- const b = l.filter((x) => x !== N);
2701
+ const b = l.filter((E) => E !== N);
2702
2702
  d(b);
2703
2703
  }
2704
2704
  }, F = () => {
2705
2705
  u(!0);
2706
2706
  }, T = (N) => {
2707
2707
  p(N.target.value);
2708
- }, L = async () => {
2708
+ }, G = async () => {
2709
2709
  A && l.indexOf(A) === -1 && await (a == null ? void 0 : a(A)) && d([...l, A]), u(!1), p("");
2710
2710
  }, D = (N) => {
2711
2711
  g(N.target.value);
2712
2712
  }, U = () => {
2713
2713
  const N = [...l];
2714
- N[S] = E, d(N), y(-1), p("");
2714
+ N[S] = C, d(N), y(-1), p("");
2715
2715
  }, M = {
2716
2716
  width: 78,
2717
2717
  verticalAlign: "top"
@@ -2726,7 +2726,7 @@ const I3 = (e) => {
2726
2726
  ref: R,
2727
2727
  size: "small",
2728
2728
  style: M,
2729
- value: E,
2729
+ value: C,
2730
2730
  onChange: D,
2731
2731
  onBlur: U,
2732
2732
  onPressEnter: U
@@ -2761,8 +2761,8 @@ const I3 = (e) => {
2761
2761
  style: M,
2762
2762
  value: A,
2763
2763
  onChange: T,
2764
- onBlur: L,
2765
- onPressEnter: L
2764
+ onBlur: G,
2765
+ onPressEnter: G
2766
2766
  }
2767
2767
  ) : /* @__PURE__ */ f.jsxs(On, { style: j, onClick: F, children: [
2768
2768
  /* @__PURE__ */ f.jsx(W2, {}),
@@ -2902,9 +2902,9 @@ async function Is(...e) {
2902
2902
  const d = s.revalidate !== !1, h = (p) => typeof i == "function" ? i(p) : i !== !1, u = s.throwOnError;
2903
2903
  if (Me(r)) {
2904
2904
  const p = r, S = [], y = t.keys();
2905
- for (const E of y)
2905
+ for (const C of y)
2906
2906
  // Skip the special useSWRInfinite and useSWRSubscription keys.
2907
- !/^\$(inf|sub)\$/.test(E) && p(t.get(E)._k) && S.push(E);
2907
+ !/^\$(inf|sub)\$/.test(C) && p(t.get(C)._k) && S.push(C);
2908
2908
  return Promise.all(S.map(A));
2909
2909
  }
2910
2910
  return A(r);
@@ -2912,61 +2912,61 @@ async function Is(...e) {
2912
2912
  const [S] = ct(p);
2913
2913
  if (!S)
2914
2914
  return;
2915
- const [y, E] = Le(t, S), [g, _, R, I] = Ie.get(t), F = () => {
2915
+ const [y, C] = Le(t, S), [g, _, R, I] = Ie.get(t), F = () => {
2916
2916
  const b = g[S];
2917
2917
  return d && (delete R[S], delete I[S], b && b[0]) ? b[0](Ds).then(() => y().data) : y().data;
2918
2918
  };
2919
2919
  if (e.length < 3)
2920
2920
  return F();
2921
- let T = n, L;
2921
+ let T = n, G;
2922
2922
  const D = Nr();
2923
2923
  _[S] = [
2924
2924
  D,
2925
2925
  0
2926
2926
  ];
2927
2927
  const U = !V(l), M = y(), j = M.data, N = M._c, k = V(N) ? j : N;
2928
- if (U && (l = Me(l) ? l(k, j) : l, E({
2928
+ if (U && (l = Me(l) ? l(k, j) : l, C({
2929
2929
  data: l,
2930
2930
  _c: k
2931
2931
  })), Me(T))
2932
2932
  try {
2933
2933
  T = T(k);
2934
2934
  } catch (b) {
2935
- L = b;
2935
+ G = b;
2936
2936
  }
2937
2937
  if (T && j3(T))
2938
2938
  if (T = await T.catch((b) => {
2939
- L = b;
2939
+ G = b;
2940
2940
  }), D !== _[S][0]) {
2941
- if (L)
2942
- throw L;
2941
+ if (G)
2942
+ throw G;
2943
2943
  return T;
2944
2944
  } else
2945
- L && U && h(L) && (c = !0, E({
2945
+ G && U && h(G) && (c = !0, C({
2946
2946
  data: k,
2947
2947
  _c: fe
2948
2948
  }));
2949
- if (c && !L)
2949
+ if (c && !G)
2950
2950
  if (Me(c)) {
2951
2951
  const b = c(T, k);
2952
- E({
2952
+ C({
2953
2953
  data: b,
2954
2954
  error: fe,
2955
2955
  _c: fe
2956
2956
  });
2957
2957
  } else
2958
- E({
2958
+ C({
2959
2959
  data: T,
2960
2960
  error: fe,
2961
2961
  _c: fe
2962
2962
  });
2963
2963
  if (_[S][1] = Nr(), Promise.resolve(F()).then(() => {
2964
- E({
2964
+ C({
2965
2965
  _c: fe
2966
2966
  });
2967
- }), L) {
2967
+ }), G) {
2968
2968
  if (u)
2969
- throw L;
2969
+ throw G;
2970
2970
  return;
2971
2971
  }
2972
2972
  return T;
@@ -3102,25 +3102,25 @@ const Aa = Ce.use || ((e) => {
3102
3102
  }), Sr = {
3103
3103
  dedupe: !0
3104
3104
  }, n0 = (e, t, r) => {
3105
- const { cache: n, compare: a, suspense: s, fallbackData: c, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: A } = r, [p, S, y, E] = Ie.get(n), [g, _] = ct(e), R = ye(!1), I = ye(!1), F = ye(g), T = ye(t), L = ye(r), D = () => L.current, U = () => D().isVisible() && D().isOnline(), [M, j, N, k] = Le(n, g), b = ye({}).current, x = V(c) ? r.fallback[g] : c, m = (Y, K) => {
3105
+ const { cache: n, compare: a, suspense: s, fallbackData: c, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: A } = r, [p, S, y, C] = Ie.get(n), [g, _] = ct(e), R = _e(!1), I = _e(!1), F = _e(g), T = _e(t), G = _e(r), D = () => G.current, U = () => D().isVisible() && D().isOnline(), [M, j, N, k] = Le(n, g), b = _e({}).current, E = V(c) ? r.fallback[g] : c, m = (H, K) => {
3106
3106
  for (const ie in b) {
3107
- const J = ie;
3108
- if (J === "data") {
3109
- if (!a(Y[J], K[J]) && (!V(Y[J]) || !a(re, K[J])))
3107
+ const ee = ie;
3108
+ if (ee === "data") {
3109
+ if (!a(H[ee], K[ee]) && (!V(H[ee]) || !a(X, K[ee])))
3110
3110
  return !1;
3111
- } else if (K[J] !== Y[J])
3111
+ } else if (K[ee] !== H[ee])
3112
3112
  return !1;
3113
3113
  }
3114
3114
  return !0;
3115
3115
  }, w = zt(() => {
3116
- const Y = !g || !t ? !1 : V(i) ? D().isPaused() || s ? !1 : V(l) ? !0 : l : i, K = (se) => {
3116
+ const H = !g || !t ? !1 : V(i) ? D().isPaused() || s ? !1 : V(l) ? !0 : l : i, K = (se) => {
3117
3117
  const Oe = He(se);
3118
- return delete Oe._k, Y ? {
3118
+ return delete Oe._k, H ? {
3119
3119
  isValidating: !0,
3120
3120
  isLoading: !0,
3121
3121
  ...Oe
3122
3122
  } : Oe;
3123
- }, ie = M(), J = k(), pe = K(ie), je = ie === J ? pe : K(J);
3123
+ }, ie = M(), ee = k(), pe = K(ie), je = ie === ee ? pe : K(ee);
3124
3124
  let ae = pe;
3125
3125
  return [
3126
3126
  () => {
@@ -3132,29 +3132,29 @@ const Aa = Ce.use || ((e) => {
3132
3132
  }, [
3133
3133
  n,
3134
3134
  g
3135
- ]), C = Wt.useSyncExternalStore(ke(
3136
- (Y) => N(g, (K, ie) => {
3137
- m(ie, K) || Y();
3135
+ ]), x = Wt.useSyncExternalStore(ke(
3136
+ (H) => N(g, (K, ie) => {
3137
+ m(ie, K) || H();
3138
3138
  }),
3139
3139
  // eslint-disable-next-line react-hooks/exhaustive-deps
3140
3140
  [
3141
3141
  n,
3142
3142
  g
3143
3143
  ]
3144
- ), w[0], w[1]), P = !R.current, B = p[g] && p[g].length > 0, G = C.data, W = V(G) ? x : G, $ = C.error, Z = ye(W), re = A ? V(G) ? Z.current : G : W, de = B && !V($) ? !1 : P && !V(i) ? i : D().isPaused() ? !1 : s ? V(W) ? !1 : l : V(W) || l, le = !!(g && t && P && de), ue = V(C.isValidating) ? le : C.isValidating, me = V(C.isLoading) ? le : C.isLoading, ee = ke(
3145
- async (Y) => {
3144
+ ), w[0], w[1]), P = !R.current, B = p[g] && p[g].length > 0, L = x.data, W = V(L) ? E : L, Q = x.error, te = _e(W), X = A ? V(L) ? te.current : L : W, le = B && !V(Q) ? !1 : P && !V(i) ? i : D().isPaused() ? !1 : s ? V(W) ? !1 : l : V(W) || l, ue = !!(g && t && P && le), ge = V(x.isValidating) ? ue : x.isValidating, de = V(x.isLoading) ? ue : x.isLoading, Z = ke(
3145
+ async (H) => {
3146
3146
  const K = T.current;
3147
3147
  if (!g || !K || I.current || D().isPaused())
3148
3148
  return !1;
3149
- let ie, J, pe = !0;
3150
- const je = Y || {}, ae = !y[g] || !je.dedupe, se = () => da ? !I.current && g === F.current && R.current : g === F.current, Oe = {
3149
+ let ie, ee, pe = !0;
3150
+ const je = H || {}, ae = !y[g] || !je.dedupe, se = () => da ? !I.current && g === F.current && R.current : g === F.current, Oe = {
3151
3151
  isValidating: !1,
3152
3152
  isLoading: !1
3153
3153
  }, Tt = () => {
3154
3154
  j(Oe);
3155
3155
  }, et = () => {
3156
- const ge = y[g];
3157
- ge && ge[1] === J && delete y[g];
3156
+ const ye = y[g];
3157
+ ye && ye[1] === ee && delete y[g];
3158
3158
  }, Rt = {
3159
3159
  isValidating: !0
3160
3160
  };
@@ -3165,21 +3165,21 @@ const Aa = Ce.use || ((e) => {
3165
3165
  }, r.loadingTimeout), y[g] = [
3166
3166
  K(_),
3167
3167
  Nr()
3168
- ]), [ie, J] = y[g], ie = await ie, ae && setTimeout(et, r.dedupingInterval), !y[g] || y[g][1] !== J)
3168
+ ]), [ie, ee] = y[g], ie = await ie, ae && setTimeout(et, r.dedupingInterval), !y[g] || y[g][1] !== ee)
3169
3169
  return ae && se() && D().onDiscarded(g), !1;
3170
3170
  Oe.error = fe;
3171
- const ge = S[g];
3172
- if (!V(ge) && // case 1
3173
- (J <= ge[0] || // case 2
3174
- J <= ge[1] || // case 3
3175
- ge[1] === 0))
3171
+ const ye = S[g];
3172
+ if (!V(ye) && // case 1
3173
+ (ee <= ye[0] || // case 2
3174
+ ee <= ye[1] || // case 3
3175
+ ye[1] === 0))
3176
3176
  return Tt(), ae && se() && D().onDiscarded(g), !1;
3177
3177
  const be = M().data;
3178
3178
  Oe.data = a(be, ie) ? be : ie, ae && se() && D().onSuccess(ie, g, r);
3179
- } catch (ge) {
3179
+ } catch (ye) {
3180
3180
  et();
3181
3181
  const be = D(), { shouldRetryOnError: tt } = be;
3182
- be.isPaused() || (Oe.error = ge, ae && se() && (be.onError(ge, g, be), (tt === !0 || Me(tt) && tt(ge)) && U() && be.onErrorRetry(ge, g, be, (Ye) => {
3182
+ be.isPaused() || (Oe.error = ye, ae && se() && (be.onError(ye, g, be), (tt === !0 || Me(tt) && tt(ye)) && U() && be.onErrorRetry(ye, g, be, (Ye) => {
3183
3183
  const ft = p[g];
3184
3184
  ft && ft[0] && ft[0](gt.ERROR_REVALIDATE_EVENT, Ye);
3185
3185
  }, {
@@ -3204,84 +3204,84 @@ const Aa = Ce.use || ((e) => {
3204
3204
  g,
3205
3205
  n
3206
3206
  ]
3207
- ), ve = ke(
3207
+ ), me = ke(
3208
3208
  // Use callback to make sure `keyRef.current` returns latest result every time
3209
- (...Y) => Is(n, F.current, ...Y),
3209
+ (...H) => Is(n, F.current, ...H),
3210
3210
  // eslint-disable-next-line react-hooks/exhaustive-deps
3211
3211
  []
3212
3212
  );
3213
3213
  if (Lt(() => {
3214
- T.current = t, L.current = r, V(G) || (Z.current = G);
3214
+ T.current = t, G.current = r, V(L) || (te.current = L);
3215
3215
  }), Lt(() => {
3216
3216
  if (!g)
3217
3217
  return;
3218
- const Y = ee.bind(fe, Sr);
3218
+ const H = Z.bind(fe, Sr);
3219
3219
  let K = 0;
3220
- const J = r0(g, p, (pe, je = {}) => {
3220
+ const ee = r0(g, p, (pe, je = {}) => {
3221
3221
  if (pe == gt.FOCUS_EVENT) {
3222
3222
  const ae = Date.now();
3223
- D().revalidateOnFocus && ae > K && U() && (K = ae + D().focusThrottleInterval, Y());
3223
+ D().revalidateOnFocus && ae > K && U() && (K = ae + D().focusThrottleInterval, H());
3224
3224
  } else if (pe == gt.RECONNECT_EVENT)
3225
- D().revalidateOnReconnect && U() && Y();
3225
+ D().revalidateOnReconnect && U() && H();
3226
3226
  else {
3227
3227
  if (pe == gt.MUTATE_EVENT)
3228
- return ee();
3228
+ return Z();
3229
3229
  if (pe == gt.ERROR_REVALIDATE_EVENT)
3230
- return ee(je);
3230
+ return Z(je);
3231
3231
  }
3232
3232
  });
3233
3233
  return I.current = !1, F.current = g, R.current = !0, j({
3234
3234
  _k: _
3235
- }), de && (V(W) || St ? Y() : U3(Y)), () => {
3236
- I.current = !0, J();
3235
+ }), le && (V(W) || St ? H() : U3(H)), () => {
3236
+ I.current = !0, ee();
3237
3237
  };
3238
3238
  }, [
3239
3239
  g
3240
3240
  ]), Lt(() => {
3241
- let Y;
3241
+ let H;
3242
3242
  function K() {
3243
- const J = Me(d) ? d(M().data) : d;
3244
- J && Y !== -1 && (Y = setTimeout(ie, J));
3243
+ const ee = Me(d) ? d(M().data) : d;
3244
+ ee && H !== -1 && (H = setTimeout(ie, ee));
3245
3245
  }
3246
3246
  function ie() {
3247
- !M().error && (h || D().isVisible()) && (u || D().isOnline()) ? ee(Sr).then(K) : K();
3247
+ !M().error && (h || D().isVisible()) && (u || D().isOnline()) ? Z(Sr).then(K) : K();
3248
3248
  }
3249
3249
  return K(), () => {
3250
- Y && (clearTimeout(Y), Y = -1);
3250
+ H && (clearTimeout(H), H = -1);
3251
3251
  };
3252
3252
  }, [
3253
3253
  d,
3254
3254
  h,
3255
3255
  u,
3256
3256
  g
3257
- ]), Ac(re), s && V(W) && g) {
3257
+ ]), Ac(X), s && V(W) && g) {
3258
3258
  if (!da && St)
3259
3259
  throw new Error("Fallback data is required when using suspense in SSR.");
3260
- T.current = t, L.current = r, I.current = !1;
3261
- const Y = E[g];
3262
- if (!V(Y)) {
3263
- const K = ve(Y);
3260
+ T.current = t, G.current = r, I.current = !1;
3261
+ const H = C[g];
3262
+ if (!V(H)) {
3263
+ const K = me(H);
3264
3264
  Aa(K);
3265
3265
  }
3266
- if (V($)) {
3267
- const K = ee(Sr);
3268
- V(re) || (K.status = "fulfilled", K.value = !0), Aa(K);
3266
+ if (V(Q)) {
3267
+ const K = Z(Sr);
3268
+ V(X) || (K.status = "fulfilled", K.value = !0), Aa(K);
3269
3269
  } else
3270
- throw $;
3270
+ throw Q;
3271
3271
  }
3272
3272
  return {
3273
- mutate: ve,
3273
+ mutate: me,
3274
3274
  get data() {
3275
- return b.data = !0, re;
3275
+ return b.data = !0, X;
3276
3276
  },
3277
3277
  get error() {
3278
- return b.error = !0, $;
3278
+ return b.error = !0, Q;
3279
3279
  },
3280
3280
  get isValidating() {
3281
- return b.isValidating = !0, ue;
3281
+ return b.isValidating = !0, ge;
3282
3282
  },
3283
3283
  get isLoading() {
3284
- return b.isLoading = !0, me;
3284
+ return b.isLoading = !0, de;
3285
3285
  }
3286
3286
  };
3287
3287
  }, wt = t0(n0);
@@ -3332,11 +3332,11 @@ const xt = (e) => (t) => {
3332
3332
  getStorage: () => localStorage,
3333
3333
  serialize: JSON.stringify,
3334
3334
  deserialize: JSON.parse,
3335
- partialize: (E) => E,
3335
+ partialize: (C) => C,
3336
3336
  version: 0,
3337
- merge: (E, g) => ({
3337
+ merge: (C, g) => ({
3338
3338
  ...g,
3339
- ...E
3339
+ ...C
3340
3340
  }),
3341
3341
  ...t
3342
3342
  }, c = !1;
@@ -3348,18 +3348,18 @@ const xt = (e) => (t) => {
3348
3348
  }
3349
3349
  if (!d)
3350
3350
  return e(
3351
- (...E) => {
3351
+ (...C) => {
3352
3352
  console.warn(
3353
3353
  `[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`
3354
- ), r(...E);
3354
+ ), r(...C);
3355
3355
  },
3356
3356
  n,
3357
3357
  a
3358
3358
  );
3359
3359
  const h = xt(s.serialize), u = () => {
3360
- const E = s.partialize({ ...n() });
3360
+ const C = s.partialize({ ...n() });
3361
3361
  let g;
3362
- const _ = h({ state: E, version: s.version }).then(
3362
+ const _ = h({ state: C, version: s.version }).then(
3363
3363
  (R) => d.setItem(s.name, R)
3364
3364
  ).catch((R) => {
3365
3365
  g = R;
@@ -3368,23 +3368,23 @@ const xt = (e) => (t) => {
3368
3368
  throw g;
3369
3369
  return _;
3370
3370
  }, A = a.setState;
3371
- a.setState = (E, g) => {
3372
- A(E, g), u();
3371
+ a.setState = (C, g) => {
3372
+ A(C, g), u();
3373
3373
  };
3374
3374
  const p = e(
3375
- (...E) => {
3376
- r(...E), u();
3375
+ (...C) => {
3376
+ r(...C), u();
3377
3377
  },
3378
3378
  n,
3379
3379
  a
3380
3380
  );
3381
3381
  let S;
3382
3382
  const y = () => {
3383
- var E;
3383
+ var C;
3384
3384
  if (!d)
3385
3385
  return;
3386
3386
  c = !1, i.forEach((_) => _(n()));
3387
- const g = ((E = s.onRehydrateStorage) == null ? void 0 : E.call(s, n())) || void 0;
3387
+ const g = ((C = s.onRehydrateStorage) == null ? void 0 : C.call(s, n())) || void 0;
3388
3388
  return xt(d.getItem.bind(d))(s.name).then((_) => {
3389
3389
  if (_)
3390
3390
  return s.deserialize(_);
@@ -3414,11 +3414,11 @@ const xt = (e) => (t) => {
3414
3414
  });
3415
3415
  };
3416
3416
  return a.persist = {
3417
- setOptions: (E) => {
3417
+ setOptions: (C) => {
3418
3418
  s = {
3419
3419
  ...s,
3420
- ...E
3421
- }, E.getStorage && (d = E.getStorage());
3420
+ ...C
3421
+ }, C.getStorage && (d = C.getStorage());
3422
3422
  },
3423
3423
  clearStorage: () => {
3424
3424
  d == null || d.removeItem(s.name);
@@ -3426,11 +3426,11 @@ const xt = (e) => (t) => {
3426
3426
  getOptions: () => s,
3427
3427
  rehydrate: () => y(),
3428
3428
  hasHydrated: () => c,
3429
- onHydrate: (E) => (i.add(E), () => {
3430
- i.delete(E);
3429
+ onHydrate: (C) => (i.add(C), () => {
3430
+ i.delete(C);
3431
3431
  }),
3432
- onFinishHydration: (E) => (l.add(E), () => {
3433
- l.delete(E);
3432
+ onFinishHydration: (C) => (l.add(C), () => {
3433
+ l.delete(C);
3434
3434
  })
3435
3435
  }, y(), S || p;
3436
3436
  }, c0 = (e, t) => (r, n, a) => {
@@ -3438,8 +3438,8 @@ const xt = (e) => (t) => {
3438
3438
  storage: un(() => localStorage),
3439
3439
  partialize: (y) => y,
3440
3440
  version: 0,
3441
- merge: (y, E) => ({
3442
- ...E,
3441
+ merge: (y, C) => ({
3442
+ ...C,
3443
3443
  ...y
3444
3444
  }),
3445
3445
  ...t
@@ -3463,8 +3463,8 @@ const xt = (e) => (t) => {
3463
3463
  version: s.version
3464
3464
  });
3465
3465
  }, u = a.setState;
3466
- a.setState = (y, E) => {
3467
- u(y, E), h();
3466
+ a.setState = (y, C) => {
3467
+ u(y, C), h();
3468
3468
  };
3469
3469
  const A = e(
3470
3470
  (...y) => {
@@ -3475,14 +3475,14 @@ const xt = (e) => (t) => {
3475
3475
  );
3476
3476
  let p;
3477
3477
  const S = () => {
3478
- var y, E;
3478
+ var y, C;
3479
3479
  if (!d)
3480
3480
  return;
3481
3481
  c = !1, i.forEach((_) => {
3482
3482
  var R;
3483
3483
  return _((R = n()) != null ? R : A);
3484
3484
  });
3485
- const g = ((E = s.onRehydrateStorage) == null ? void 0 : E.call(s, (y = n()) != null ? y : A)) || void 0;
3485
+ const g = ((C = s.onRehydrateStorage) == null ? void 0 : C.call(s, (y = n()) != null ? y : A)) || void 0;
3486
3486
  return xt(d.getItem.bind(d))(s.name).then((_) => {
3487
3487
  if (_)
3488
3488
  if (typeof _.version == "number" && _.version !== s.version) {
@@ -3549,16 +3549,20 @@ const xt = (e) => (t) => {
3549
3549
  e({ game: n ?? null });
3550
3550
  },
3551
3551
  fetchGames: () => {
3552
- e({ isLoading: !0 }), fetch("/api/usystem/game/all", {
3552
+ e({ isLoading: !0 });
3553
+ let r = "";
3554
+ const n = localStorage.getItem("token");
3555
+ n && (r = JSON.parse(n).state.token), fetch("/api/usystem/game/all", {
3553
3556
  method: "GET",
3554
3557
  headers: {
3555
- "Content-Type": "application/json"
3558
+ "Content-Type": "application/json",
3559
+ Authorization: `Bearer ${r}`
3556
3560
  }
3557
- }).then((r) => {
3558
- if (r.ok)
3559
- return r.json();
3560
- }).then((r) => {
3561
- e({ games: r.data });
3561
+ }).then((a) => {
3562
+ if (a.ok)
3563
+ return a.json();
3564
+ }).then((a) => {
3565
+ e({ games: a.data });
3562
3566
  }).finally(() => {
3563
3567
  e({ isLoading: !1 });
3564
3568
  });
@@ -3631,7 +3635,7 @@ function p0(e) {
3631
3635
  });
3632
3636
  }
3633
3637
  const h0 = (e) => {
3634
- const { texts: t, children: r } = e, [n, a] = De("");
3638
+ const { texts: t, children: r } = e, [n, a] = Re("");
3635
3639
  return Ne(() => {
3636
3640
  p0(r).then((s) => {
3637
3641
  const c = d0(s);
@@ -3974,19 +3978,19 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3974
3978
  stringify: Us,
3975
3979
  stringifyUrl: $s
3976
3980
  }, Symbol.toStringTag, { value: "Module" })), E0 = (e) => ct(e ? e(0, null) : null)[0], xr = Promise.resolve(), w0 = (e) => (t, r, n) => {
3977
- const a = ye(!1), { cache: s, initialSize: c = 1, revalidateAll: i = !1, persistSize: l = !1, revalidateFirstPage: d = !0, revalidateOnMount: h = !1, parallel: u = !1 } = n, [, , , A] = Ie.get(ln);
3981
+ const a = _e(!1), { cache: s, initialSize: c = 1, revalidateAll: i = !1, persistSize: l = !1, revalidateFirstPage: d = !0, revalidateOnMount: h = !1, parallel: u = !1 } = n, [, , , A] = Ie.get(ln);
3978
3982
  let p;
3979
3983
  try {
3980
3984
  p = E0(t), p && (p = Ms + p);
3981
3985
  } catch {
3982
3986
  }
3983
- const [S, y, E] = Le(s, p), g = ke(() => V(S()._l) ? c : S()._l, [
3987
+ const [S, y, C] = Le(s, p), g = ke(() => V(S()._l) ? c : S()._l, [
3984
3988
  s,
3985
3989
  p,
3986
3990
  c
3987
3991
  ]);
3988
3992
  Wt.useSyncExternalStore(ke(
3989
- (D) => p ? E(p, () => {
3993
+ (D) => p ? C(p, () => {
3990
3994
  D();
3991
3995
  }) : () => {
3992
3996
  },
@@ -4002,7 +4006,7 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4002
4006
  }, [
4003
4007
  p,
4004
4008
  c
4005
- ]), R = ye(_());
4009
+ ]), R = _e(_());
4006
4010
  Lt(() => {
4007
4011
  if (!a.current) {
4008
4012
  a.current = !0;
@@ -4017,31 +4021,31 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4017
4021
  ]);
4018
4022
  const I = h && !a.current, F = e(p, async (D) => {
4019
4023
  const U = S()._i, M = [], j = _(), [N] = Le(s, D), k = N().data, b = [];
4020
- let x = null;
4024
+ let E = null;
4021
4025
  for (let m = 0; m < j; ++m) {
4022
- const [w, C] = ct(t(m, u ? null : x));
4026
+ const [w, x] = ct(t(m, u ? null : E));
4023
4027
  if (!w)
4024
4028
  break;
4025
4029
  const [P, B] = Le(s, w);
4026
- let G = P().data;
4027
- const W = i || U || V(G) || d && !m && !V(k) || I || k && !V(k[m]) && !n.compare(k[m], G);
4030
+ let L = P().data;
4031
+ const W = i || U || V(L) || d && !m && !V(k) || I || k && !V(k[m]) && !n.compare(k[m], L);
4028
4032
  if (r && W) {
4029
- const $ = async () => {
4033
+ const Q = async () => {
4030
4034
  if (!(w in A))
4031
- G = await r(C);
4035
+ L = await r(x);
4032
4036
  else {
4033
- const re = A[w];
4034
- delete A[w], G = await re;
4037
+ const X = A[w];
4038
+ delete A[w], L = await X;
4035
4039
  }
4036
4040
  B({
4037
- data: G,
4038
- _k: C
4039
- }), M[m] = G;
4041
+ data: L,
4042
+ _k: x
4043
+ }), M[m] = L;
4040
4044
  };
4041
- u ? b.push($) : await $();
4045
+ u ? b.push(Q) : await Q();
4042
4046
  } else
4043
- M[m] = G;
4044
- u || (x = G);
4047
+ M[m] = L;
4048
+ u || (E = L);
4045
4049
  }
4046
4050
  return u && await Promise.all(b.map((m) => m())), y({
4047
4051
  _i: fe
@@ -4067,7 +4071,7 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4067
4071
  p,
4068
4072
  s
4069
4073
  ]
4070
- ), L = ke(
4074
+ ), G = ke(
4071
4075
  (D) => {
4072
4076
  if (!p)
4073
4077
  return xr;
@@ -4081,7 +4085,7 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4081
4085
  const j = [], [N] = Le(s, p);
4082
4086
  let k = null;
4083
4087
  for (let b = 0; b < M; ++b) {
4084
- const [x] = ct(t(b, k)), [m] = Le(s, x), w = x ? m().data : fe;
4088
+ const [E] = ct(t(b, k)), [m] = Le(s, E), w = E ? m().data : fe;
4085
4089
  if (V(w))
4086
4090
  return T(N().data);
4087
4091
  j.push(w), k = w;
@@ -4099,7 +4103,7 @@ const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4099
4103
  );
4100
4104
  return {
4101
4105
  size: _(),
4102
- setSize: L,
4106
+ setSize: G,
4103
4107
  mutate: T,
4104
4108
  get data() {
4105
4109
  return F.data;
@@ -4224,10 +4228,10 @@ function Ot() {
4224
4228
  n = S ? `${u.url}?${S}` : n, i = new Headers(i), e && i.set("Authorization", `Bearer ${e}`), t.usePermissionApiV2 && (d || t.isGlobal ? i.set("App-ID", "global") : r && i.set("App-ID", r.id)), l === "blob" ? i.append("Accept", "application/octet-stream") : l === "json" && i.append("Accept", "application/json");
4225
4229
  const y = !!(s && typeof s == "object" && !(s instanceof FormData));
4226
4230
  y && i.set("Content-Type", "application/json");
4227
- const E = Object.assign(h, {
4231
+ const C = Object.assign(h, {
4228
4232
  headers: i,
4229
4233
  body: y ? JSON.stringify(s) : s
4230
- }), g = await fetch(n, E);
4234
+ }), g = await fetch(n, C);
4231
4235
  if (!g.ok)
4232
4236
  throw new _a({ status: g.status });
4233
4237
  const _ = Fa.getState().responseInterceptor;
@@ -4310,14 +4314,14 @@ const I0 = (e) => {
4310
4314
  renderForm: d,
4311
4315
  transformArg: h,
4312
4316
  ...u
4313
- } = e, A = we(), [p] = Ae.useForm(), { accessible: S, isLoading: y } = yn(t), [E, g] = De(!1), [_, R] = De(), I = (w, C) => {
4314
- if (!E)
4317
+ } = e, A = we(), [p] = Ae.useForm(), { accessible: S, isLoading: y } = yn(t), [C, g] = Re(!1), [_, R] = Re(), I = (w, x) => {
4318
+ if (!C)
4315
4319
  return null;
4316
- const P = h(_, w !== 0 ? c(C) : void 0);
4320
+ const P = h(_, w !== 0 ? c(x) : void 0);
4317
4321
  return Ct.stringify(P) ? `${r}?${Ct.stringify(P)}` : r;
4318
4322
  }, F = Ot(), {
4319
4323
  data: T,
4320
- size: L,
4324
+ size: G,
4321
4325
  setSize: D,
4322
4326
  isValidating: U
4323
4327
  } = O0(
@@ -4325,13 +4329,13 @@ const I0 = (e) => {
4325
4329
  (w) => F(w, {
4326
4330
  headers: typeof a == "function" ? a(p) : a,
4327
4331
  isGlobal: s
4328
- }).then((C) => C.data),
4332
+ }).then((x) => x.data),
4329
4333
  {
4330
4334
  shouldRetryOnError: !1,
4331
4335
  revalidateOnFocus: !1,
4332
4336
  revalidateFirstPage: !1
4333
4337
  }
4334
- ), M = i(T), j = U || L > 0 && T && typeof T[L - 1] > "u", N = typeof l < "u" ? !l(T) : !0, k = !M || M.length === 0, b = async () => {
4338
+ ), M = i(T), j = U || G > 0 && T && typeof T[G - 1] > "u", N = typeof l < "u" ? !l(T) : !0, k = !M || M.length === 0, b = async () => {
4335
4339
  const w = await p.getFieldsValue();
4336
4340
  R(w);
4337
4341
  try {
@@ -4339,8 +4343,8 @@ const I0 = (e) => {
4339
4343
  } catch {
4340
4344
  D(0), g(!1);
4341
4345
  }
4342
- }, x = () => {
4343
- D(L + 1);
4346
+ }, E = () => {
4347
+ D(G + 1);
4344
4348
  }, m = async () => {
4345
4349
  try {
4346
4350
  p.resetFields(), await p.validateFields({ validateOnly: !0 }), D(1);
@@ -4375,7 +4379,7 @@ const I0 = (e) => {
4375
4379
  type: "link",
4376
4380
  htmlType: "button",
4377
4381
  disabled: j || N,
4378
- onClick: x,
4382
+ onClick: E,
4379
4383
  children: A(j ? "InfiniteList.loadingText" : N ? "InfiniteList.reachEndText" : "InfiniteList.loadMoreText")
4380
4384
  }
4381
4385
  )
@@ -4678,7 +4682,7 @@ const X0 = Et((e, t) => ({
4678
4682
  };
4679
4683
  var J0 = /* @__PURE__ */ ((e) => (e.Confirm = "confirm", e.Reset = "reset", e.Jump = "jump", e.Init = "init", e))(J0 || {});
4680
4684
  const el = (e, t) => {
4681
- var G, W;
4685
+ var Q, te;
4682
4686
  const r = { ...Z0, ...e }, {
4683
4687
  action: n,
4684
4688
  code: a,
@@ -4693,28 +4697,28 @@ const el = (e, t) => {
4693
4697
  extra: p,
4694
4698
  renderForm: S,
4695
4699
  afterSuccess: y,
4696
- getTotal: E,
4700
+ getTotal: C,
4697
4701
  getDataSource: g,
4698
4702
  onTableChange: _,
4699
4703
  ...R
4700
- } = r, I = we(), [F] = Ae.useForm(), { accessible: T, isLoading: L } = yn(a, c), D = ye(
4704
+ } = r, I = we(), [F] = Ae.useForm(), { accessible: T, isLoading: G } = yn(a, c), D = _e(
4701
4705
  "init"
4702
4706
  /* Init */
4703
4707
  ), { propsMap: U, getPayload: M, setPayload: j, getSwrkKey: N, updateSwrKey: k } = X0();
4704
4708
  U.set(n, r);
4705
- const b = ye(!1), x = ye(), m = Ot(), { data: w, isLoading: C } = wt(
4709
+ const b = _e(!1), [E, m] = Re(), w = Ot(), { data: x, isValidating: P } = wt(
4706
4710
  N(n),
4707
- async ($) => {
4708
- const { url: Z, params: re, body: de } = K0($), le = M(n), ue = await m(Z, {
4711
+ async (X) => {
4712
+ const { url: le, params: ue, body: ge } = K0(X), de = M(n), Z = await w(le, {
4709
4713
  method: l,
4710
- body: de,
4711
- params: re,
4714
+ body: ge,
4715
+ params: ue,
4712
4716
  isGlobal: c,
4713
- headers: typeof s == "function" ? s(le) : s
4717
+ headers: typeof s == "function" ? s(de) : s
4714
4718
  });
4715
- return x.current = ue.data, {
4716
- dataSource: g(ue.data),
4717
- total: E(ue.data) ?? 0
4719
+ return m(Z.data), {
4720
+ dataSource: g(Z.data),
4721
+ total: C(Z.data) ?? 0
4718
4722
  };
4719
4723
  },
4720
4724
  {
@@ -4725,21 +4729,21 @@ const el = (e, t) => {
4725
4729
  shouldRetryOnError: !1,
4726
4730
  revalidateOnFocus: !1,
4727
4731
  refreshInterval: b.current ? A : 0,
4728
- onSuccess($) {
4729
- b.current = !0, y == null || y(D.current, $);
4732
+ onSuccess(X) {
4733
+ b.current = !0, y == null || y(D.current, X);
4730
4734
  },
4731
4735
  onError() {
4732
4736
  b.current = !1;
4733
4737
  }
4734
4738
  }
4735
- ), P = async () => {
4739
+ ), B = async () => {
4736
4740
  D.current = "confirm", j(n, { page: 1, formValues: F.getFieldsValue() });
4737
4741
  try {
4738
4742
  await F.validateFields(), k(n);
4739
4743
  } catch {
4740
4744
  k(n, null);
4741
4745
  }
4742
- }, B = async () => {
4746
+ }, L = async () => {
4743
4747
  D.current = "reset", F.resetFields(), j(n, { page: 1, formValues: F.getFieldsValue() });
4744
4748
  try {
4745
4749
  await F.validateFields({ validateOnly: !0 }), k(n);
@@ -4747,50 +4751,55 @@ const el = (e, t) => {
4747
4751
  k(n, null);
4748
4752
  }
4749
4753
  };
4750
- return Ne(() => {
4754
+ if (Ne(() => {
4751
4755
  (async () => {
4752
4756
  T && (j(n, { page: 1, size: u, formValues: F.getFieldsValue() }), await F.validateFields({ validateOnly: !0 }), k(n));
4753
4757
  })();
4754
4758
  }, [T]), vc(t, () => ({
4755
- data: w,
4756
- originalData: x.current,
4759
+ data: x,
4760
+ originalData: E,
4757
4761
  form: F
4758
- })), L ? /* @__PURE__ */ f.jsx(
4759
- Yr,
4760
- {
4761
- style: {
4762
- display: "flex",
4763
- justifyContent: "center",
4764
- alignItems: "center",
4765
- height: 300
4762
+ })), G)
4763
+ return /* @__PURE__ */ f.jsx(
4764
+ Yr,
4765
+ {
4766
+ style: {
4767
+ display: "flex",
4768
+ justifyContent: "center",
4769
+ alignItems: "center",
4770
+ height: 300
4771
+ }
4766
4772
  }
4767
- }
4768
- ) : T ? /* @__PURE__ */ f.jsxs("div", { children: [
4769
- S ? /* @__PURE__ */ f.jsx(Os, { isConfirming: C, onReset: B, onConfirm: P, children: S(F) }) : (
4770
- // 消除 Antd 的警告
4771
- /* @__PURE__ */ f.jsx(Ae, { form: F })
4772
- ),
4773
+ );
4774
+ if (!T)
4775
+ return /* @__PURE__ */ f.jsx($t, { status: 403, subTitle: I("global.noEntitlement") });
4776
+ const W = S ? /* @__PURE__ */ f.jsx(Os, { isConfirming: P, onReset: L, onConfirm: B, children: S(F) }) : (
4777
+ // 消除 Antd 的警告
4778
+ /* @__PURE__ */ f.jsx(Ae, { form: F })
4779
+ );
4780
+ return /* @__PURE__ */ f.jsxs("div", { children: [
4781
+ W,
4773
4782
  p && /* @__PURE__ */ f.jsx("div", { className: "mt-2 mb-4", children: p(F) }),
4774
4783
  /* @__PURE__ */ f.jsx(
4775
4784
  Ea,
4776
4785
  {
4777
4786
  ...R,
4778
- dataSource: w.dataSource,
4779
- loading: C,
4787
+ dataSource: x.dataSource,
4788
+ loading: P,
4780
4789
  pagination: i ? !1 : {
4781
4790
  showSizeChanger: !0,
4782
4791
  showQuickJumper: !0,
4783
- current: (G = M(n)) == null ? void 0 : G.page,
4784
- pageSize: ((W = M(n)) == null ? void 0 : W.size) ?? u,
4785
- total: w.total,
4786
- onChange: async ($, Z) => {
4787
- D.current = "jump", j(n, { page: $, size: Z }), k(n);
4792
+ current: (Q = M(n)) == null ? void 0 : Q.page,
4793
+ pageSize: ((te = M(n)) == null ? void 0 : te.size) ?? u,
4794
+ total: x.total,
4795
+ onChange: async (X, le) => {
4796
+ D.current = "jump", j(n, { page: X, size: le }), k(n);
4788
4797
  }
4789
4798
  },
4790
4799
  onChange: _
4791
4800
  }
4792
4801
  )
4793
- ] }) : /* @__PURE__ */ f.jsx($t, { status: 403, subTitle: I("global.noEntitlement") });
4802
+ ] });
4794
4803
  }, tl = mc(el), rl = tl, nl = Et((e, t) => ({
4795
4804
  open: /* @__PURE__ */ new Map(),
4796
4805
  getOpen: (r) => t().open.get(r) ?? !1,
@@ -4806,7 +4815,7 @@ const el = (e, t) => {
4806
4815
  }));
4807
4816
  let al = 0;
4808
4817
  function sl(e) {
4809
- const { content: t, onConfirm: r, ...n } = e, a = zt(() => ++al, []), s = nl(), c = s.getOpen(a), [i, l] = De(!1), d = typeof t == "function", h = () => {
4818
+ const { content: t, onConfirm: r, ...n } = e, a = zt(() => ++al, []), s = nl(), c = s.getOpen(a), [i, l] = Re(!1), d = typeof t == "function", h = () => {
4810
4819
  s.show(a);
4811
4820
  }, u = () => {
4812
4821
  s.hide(a);
@@ -4827,7 +4836,7 @@ function sl(e) {
4827
4836
  };
4828
4837
  }
4829
4838
  function Ul(e) {
4830
- const { content: t, form: r, formProps: n, onConfirm: a, ...s } = e, [c, i] = De({});
4839
+ const { content: t, form: r, formProps: n, onConfirm: a, ...s } = e, [c, i] = Re({});
4831
4840
  let [l] = Ae.useForm();
4832
4841
  l = r || l;
4833
4842
  const d = typeof t == "function", h = async () => {
@@ -4882,20 +4891,20 @@ var qs = { exports: {} };
4882
4891
  (function(r, n) {
4883
4892
  e.exports = n();
4884
4893
  })(Dc, function() {
4885
- var r = 1e3, n = 6e4, a = 36e5, s = "millisecond", c = "second", i = "minute", l = "hour", d = "day", h = "week", u = "month", A = "quarter", p = "year", S = "date", y = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
4886
- var x = ["th", "st", "nd", "rd"], m = b % 100;
4887
- return "[" + b + (x[(m - 20) % 10] || x[m] || x[0]) + "]";
4888
- } }, R = function(b, x, m) {
4894
+ var r = 1e3, n = 6e4, a = 36e5, s = "millisecond", c = "second", i = "minute", l = "hour", d = "day", h = "week", u = "month", A = "quarter", p = "year", S = "date", y = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
4895
+ var E = ["th", "st", "nd", "rd"], m = b % 100;
4896
+ return "[" + b + (E[(m - 20) % 10] || E[m] || E[0]) + "]";
4897
+ } }, R = function(b, E, m) {
4889
4898
  var w = String(b);
4890
- return !w || w.length >= x ? b : "" + Array(x + 1 - w.length).join(m) + b;
4899
+ return !w || w.length >= E ? b : "" + Array(E + 1 - w.length).join(m) + b;
4891
4900
  }, I = { s: R, z: function(b) {
4892
- var x = -b.utcOffset(), m = Math.abs(x), w = Math.floor(m / 60), C = m % 60;
4893
- return (x <= 0 ? "+" : "-") + R(w, 2, "0") + ":" + R(C, 2, "0");
4894
- }, m: function b(x, m) {
4895
- if (x.date() < m.date())
4896
- return -b(m, x);
4897
- var w = 12 * (m.year() - x.year()) + (m.month() - x.month()), C = x.clone().add(w, u), P = m - C < 0, B = x.clone().add(w + (P ? -1 : 1), u);
4898
- return +(-(w + (m - C) / (P ? C - B : B - C)) || 0);
4901
+ var E = -b.utcOffset(), m = Math.abs(E), w = Math.floor(m / 60), x = m % 60;
4902
+ return (E <= 0 ? "+" : "-") + R(w, 2, "0") + ":" + R(x, 2, "0");
4903
+ }, m: function b(E, m) {
4904
+ if (E.date() < m.date())
4905
+ return -b(m, E);
4906
+ var w = 12 * (m.year() - E.year()) + (m.month() - E.month()), x = E.clone().add(w, u), P = m - x < 0, B = E.clone().add(w + (P ? -1 : 1), u);
4907
+ return +(-(w + (m - x) / (P ? x - B : B - x)) || 0);
4899
4908
  }, a: function(b) {
4900
4909
  return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
4901
4910
  }, p: function(b) {
@@ -4904,162 +4913,162 @@ var qs = { exports: {} };
4904
4913
  return b === void 0;
4905
4914
  } }, F = "en", T = {};
4906
4915
  T[F] = _;
4907
- var L = "$isDayjsObject", D = function(b) {
4908
- return b instanceof N || !(!b || !b[L]);
4909
- }, U = function b(x, m, w) {
4910
- var C;
4911
- if (!x)
4916
+ var G = "$isDayjsObject", D = function(b) {
4917
+ return b instanceof N || !(!b || !b[G]);
4918
+ }, U = function b(E, m, w) {
4919
+ var x;
4920
+ if (!E)
4912
4921
  return F;
4913
- if (typeof x == "string") {
4914
- var P = x.toLowerCase();
4915
- T[P] && (C = P), m && (T[P] = m, C = P);
4916
- var B = x.split("-");
4917
- if (!C && B.length > 1)
4922
+ if (typeof E == "string") {
4923
+ var P = E.toLowerCase();
4924
+ T[P] && (x = P), m && (T[P] = m, x = P);
4925
+ var B = E.split("-");
4926
+ if (!x && B.length > 1)
4918
4927
  return b(B[0]);
4919
4928
  } else {
4920
- var G = x.name;
4921
- T[G] = x, C = G;
4929
+ var L = E.name;
4930
+ T[L] = E, x = L;
4922
4931
  }
4923
- return !w && C && (F = C), C || !w && F;
4924
- }, M = function(b, x) {
4932
+ return !w && x && (F = x), x || !w && F;
4933
+ }, M = function(b, E) {
4925
4934
  if (D(b))
4926
4935
  return b.clone();
4927
- var m = typeof x == "object" ? x : {};
4936
+ var m = typeof E == "object" ? E : {};
4928
4937
  return m.date = b, m.args = arguments, new N(m);
4929
4938
  }, j = I;
4930
- j.l = U, j.i = D, j.w = function(b, x) {
4931
- return M(b, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
4939
+ j.l = U, j.i = D, j.w = function(b, E) {
4940
+ return M(b, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
4932
4941
  };
4933
4942
  var N = function() {
4934
4943
  function b(m) {
4935
- this.$L = U(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[L] = !0;
4944
+ this.$L = U(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[G] = !0;
4936
4945
  }
4937
- var x = b.prototype;
4938
- return x.parse = function(m) {
4946
+ var E = b.prototype;
4947
+ return E.parse = function(m) {
4939
4948
  this.$d = function(w) {
4940
- var C = w.date, P = w.utc;
4941
- if (C === null)
4949
+ var x = w.date, P = w.utc;
4950
+ if (x === null)
4942
4951
  return /* @__PURE__ */ new Date(NaN);
4943
- if (j.u(C))
4952
+ if (j.u(x))
4944
4953
  return /* @__PURE__ */ new Date();
4945
- if (C instanceof Date)
4946
- return new Date(C);
4947
- if (typeof C == "string" && !/Z$/i.test(C)) {
4948
- var B = C.match(E);
4954
+ if (x instanceof Date)
4955
+ return new Date(x);
4956
+ if (typeof x == "string" && !/Z$/i.test(x)) {
4957
+ var B = x.match(C);
4949
4958
  if (B) {
4950
- var G = B[2] - 1 || 0, W = (B[7] || "0").substring(0, 3);
4951
- return P ? new Date(Date.UTC(B[1], G, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, W)) : new Date(B[1], G, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, W);
4959
+ var L = B[2] - 1 || 0, W = (B[7] || "0").substring(0, 3);
4960
+ return P ? new Date(Date.UTC(B[1], L, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, W)) : new Date(B[1], L, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, W);
4952
4961
  }
4953
4962
  }
4954
- return new Date(C);
4963
+ return new Date(x);
4955
4964
  }(m), this.init();
4956
- }, x.init = function() {
4965
+ }, E.init = function() {
4957
4966
  var m = this.$d;
4958
4967
  this.$y = m.getFullYear(), this.$M = m.getMonth(), this.$D = m.getDate(), this.$W = m.getDay(), this.$H = m.getHours(), this.$m = m.getMinutes(), this.$s = m.getSeconds(), this.$ms = m.getMilliseconds();
4959
- }, x.$utils = function() {
4968
+ }, E.$utils = function() {
4960
4969
  return j;
4961
- }, x.isValid = function() {
4970
+ }, E.isValid = function() {
4962
4971
  return this.$d.toString() !== y;
4963
- }, x.isSame = function(m, w) {
4964
- var C = M(m);
4965
- return this.startOf(w) <= C && C <= this.endOf(w);
4966
- }, x.isAfter = function(m, w) {
4972
+ }, E.isSame = function(m, w) {
4973
+ var x = M(m);
4974
+ return this.startOf(w) <= x && x <= this.endOf(w);
4975
+ }, E.isAfter = function(m, w) {
4967
4976
  return M(m) < this.startOf(w);
4968
- }, x.isBefore = function(m, w) {
4977
+ }, E.isBefore = function(m, w) {
4969
4978
  return this.endOf(w) < M(m);
4970
- }, x.$g = function(m, w, C) {
4971
- return j.u(m) ? this[w] : this.set(C, m);
4972
- }, x.unix = function() {
4979
+ }, E.$g = function(m, w, x) {
4980
+ return j.u(m) ? this[w] : this.set(x, m);
4981
+ }, E.unix = function() {
4973
4982
  return Math.floor(this.valueOf() / 1e3);
4974
- }, x.valueOf = function() {
4983
+ }, E.valueOf = function() {
4975
4984
  return this.$d.getTime();
4976
- }, x.startOf = function(m, w) {
4977
- var C = this, P = !!j.u(w) || w, B = j.p(m), G = function(me, ee) {
4978
- var ve = j.w(C.$u ? Date.UTC(C.$y, ee, me) : new Date(C.$y, ee, me), C);
4979
- return P ? ve : ve.endOf(d);
4980
- }, W = function(me, ee) {
4981
- return j.w(C.toDate()[me].apply(C.toDate("s"), (P ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), C);
4982
- }, $ = this.$W, Z = this.$M, re = this.$D, de = "set" + (this.$u ? "UTC" : "");
4985
+ }, E.startOf = function(m, w) {
4986
+ var x = this, P = !!j.u(w) || w, B = j.p(m), L = function(de, Z) {
4987
+ var me = j.w(x.$u ? Date.UTC(x.$y, Z, de) : new Date(x.$y, Z, de), x);
4988
+ return P ? me : me.endOf(d);
4989
+ }, W = function(de, Z) {
4990
+ return j.w(x.toDate()[de].apply(x.toDate("s"), (P ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), x);
4991
+ }, Q = this.$W, te = this.$M, X = this.$D, le = "set" + (this.$u ? "UTC" : "");
4983
4992
  switch (B) {
4984
4993
  case p:
4985
- return P ? G(1, 0) : G(31, 11);
4994
+ return P ? L(1, 0) : L(31, 11);
4986
4995
  case u:
4987
- return P ? G(1, Z) : G(0, Z + 1);
4996
+ return P ? L(1, te) : L(0, te + 1);
4988
4997
  case h:
4989
- var le = this.$locale().weekStart || 0, ue = ($ < le ? $ + 7 : $) - le;
4990
- return G(P ? re - ue : re + (6 - ue), Z);
4998
+ var ue = this.$locale().weekStart || 0, ge = (Q < ue ? Q + 7 : Q) - ue;
4999
+ return L(P ? X - ge : X + (6 - ge), te);
4991
5000
  case d:
4992
5001
  case S:
4993
- return W(de + "Hours", 0);
5002
+ return W(le + "Hours", 0);
4994
5003
  case l:
4995
- return W(de + "Minutes", 1);
5004
+ return W(le + "Minutes", 1);
4996
5005
  case i:
4997
- return W(de + "Seconds", 2);
5006
+ return W(le + "Seconds", 2);
4998
5007
  case c:
4999
- return W(de + "Milliseconds", 3);
5008
+ return W(le + "Milliseconds", 3);
5000
5009
  default:
5001
5010
  return this.clone();
5002
5011
  }
5003
- }, x.endOf = function(m) {
5012
+ }, E.endOf = function(m) {
5004
5013
  return this.startOf(m, !1);
5005
- }, x.$set = function(m, w) {
5006
- var C, P = j.p(m), B = "set" + (this.$u ? "UTC" : ""), G = (C = {}, C[d] = B + "Date", C[S] = B + "Date", C[u] = B + "Month", C[p] = B + "FullYear", C[l] = B + "Hours", C[i] = B + "Minutes", C[c] = B + "Seconds", C[s] = B + "Milliseconds", C)[P], W = P === d ? this.$D + (w - this.$W) : w;
5014
+ }, E.$set = function(m, w) {
5015
+ var x, P = j.p(m), B = "set" + (this.$u ? "UTC" : ""), L = (x = {}, x[d] = B + "Date", x[S] = B + "Date", x[u] = B + "Month", x[p] = B + "FullYear", x[l] = B + "Hours", x[i] = B + "Minutes", x[c] = B + "Seconds", x[s] = B + "Milliseconds", x)[P], W = P === d ? this.$D + (w - this.$W) : w;
5007
5016
  if (P === u || P === p) {
5008
- var $ = this.clone().set(S, 1);
5009
- $.$d[G](W), $.init(), this.$d = $.set(S, Math.min(this.$D, $.daysInMonth())).$d;
5017
+ var Q = this.clone().set(S, 1);
5018
+ Q.$d[L](W), Q.init(), this.$d = Q.set(S, Math.min(this.$D, Q.daysInMonth())).$d;
5010
5019
  } else
5011
- G && this.$d[G](W);
5020
+ L && this.$d[L](W);
5012
5021
  return this.init(), this;
5013
- }, x.set = function(m, w) {
5022
+ }, E.set = function(m, w) {
5014
5023
  return this.clone().$set(m, w);
5015
- }, x.get = function(m) {
5024
+ }, E.get = function(m) {
5016
5025
  return this[j.p(m)]();
5017
- }, x.add = function(m, w) {
5018
- var C, P = this;
5026
+ }, E.add = function(m, w) {
5027
+ var x, P = this;
5019
5028
  m = Number(m);
5020
- var B = j.p(w), G = function(Z) {
5021
- var re = M(P);
5022
- return j.w(re.date(re.date() + Math.round(Z * m)), P);
5029
+ var B = j.p(w), L = function(te) {
5030
+ var X = M(P);
5031
+ return j.w(X.date(X.date() + Math.round(te * m)), P);
5023
5032
  };
5024
5033
  if (B === u)
5025
5034
  return this.set(u, this.$M + m);
5026
5035
  if (B === p)
5027
5036
  return this.set(p, this.$y + m);
5028
5037
  if (B === d)
5029
- return G(1);
5038
+ return L(1);
5030
5039
  if (B === h)
5031
- return G(7);
5032
- var W = (C = {}, C[i] = n, C[l] = a, C[c] = r, C)[B] || 1, $ = this.$d.getTime() + m * W;
5033
- return j.w($, this);
5034
- }, x.subtract = function(m, w) {
5040
+ return L(7);
5041
+ var W = (x = {}, x[i] = n, x[l] = a, x[c] = r, x)[B] || 1, Q = this.$d.getTime() + m * W;
5042
+ return j.w(Q, this);
5043
+ }, E.subtract = function(m, w) {
5035
5044
  return this.add(-1 * m, w);
5036
- }, x.format = function(m) {
5037
- var w = this, C = this.$locale();
5045
+ }, E.format = function(m) {
5046
+ var w = this, x = this.$locale();
5038
5047
  if (!this.isValid())
5039
- return C.invalidDate || y;
5040
- var P = m || "YYYY-MM-DDTHH:mm:ssZ", B = j.z(this), G = this.$H, W = this.$m, $ = this.$M, Z = C.weekdays, re = C.months, de = C.meridiem, le = function(ee, ve, Y, K) {
5041
- return ee && (ee[ve] || ee(w, P)) || Y[ve].slice(0, K);
5042
- }, ue = function(ee) {
5043
- return j.s(G % 12 || 12, ee, "0");
5044
- }, me = de || function(ee, ve, Y) {
5045
- var K = ee < 12 ? "AM" : "PM";
5046
- return Y ? K.toLowerCase() : K;
5048
+ return x.invalidDate || y;
5049
+ var P = m || "YYYY-MM-DDTHH:mm:ssZ", B = j.z(this), L = this.$H, W = this.$m, Q = this.$M, te = x.weekdays, X = x.months, le = x.meridiem, ue = function(Z, me, H, K) {
5050
+ return Z && (Z[me] || Z(w, P)) || H[me].slice(0, K);
5051
+ }, ge = function(Z) {
5052
+ return j.s(L % 12 || 12, Z, "0");
5053
+ }, de = le || function(Z, me, H) {
5054
+ var K = Z < 12 ? "AM" : "PM";
5055
+ return H ? K.toLowerCase() : K;
5047
5056
  };
5048
- return P.replace(g, function(ee, ve) {
5049
- return ve || function(Y) {
5050
- switch (Y) {
5057
+ return P.replace(g, function(Z, me) {
5058
+ return me || function(H) {
5059
+ switch (H) {
5051
5060
  case "YY":
5052
5061
  return String(w.$y).slice(-2);
5053
5062
  case "YYYY":
5054
5063
  return j.s(w.$y, 4, "0");
5055
5064
  case "M":
5056
- return $ + 1;
5065
+ return Q + 1;
5057
5066
  case "MM":
5058
- return j.s($ + 1, 2, "0");
5067
+ return j.s(Q + 1, 2, "0");
5059
5068
  case "MMM":
5060
- return le(C.monthsShort, $, re, 3);
5069
+ return ue(x.monthsShort, Q, X, 3);
5061
5070
  case "MMMM":
5062
- return le(re, $);
5071
+ return ue(X, Q);
5063
5072
  case "D":
5064
5073
  return w.$D;
5065
5074
  case "DD":
@@ -5067,23 +5076,23 @@ var qs = { exports: {} };
5067
5076
  case "d":
5068
5077
  return String(w.$W);
5069
5078
  case "dd":
5070
- return le(C.weekdaysMin, w.$W, Z, 2);
5079
+ return ue(x.weekdaysMin, w.$W, te, 2);
5071
5080
  case "ddd":
5072
- return le(C.weekdaysShort, w.$W, Z, 3);
5081
+ return ue(x.weekdaysShort, w.$W, te, 3);
5073
5082
  case "dddd":
5074
- return Z[w.$W];
5083
+ return te[w.$W];
5075
5084
  case "H":
5076
- return String(G);
5085
+ return String(L);
5077
5086
  case "HH":
5078
- return j.s(G, 2, "0");
5087
+ return j.s(L, 2, "0");
5079
5088
  case "h":
5080
- return ue(1);
5089
+ return ge(1);
5081
5090
  case "hh":
5082
- return ue(2);
5091
+ return ge(2);
5083
5092
  case "a":
5084
- return me(G, W, !0);
5093
+ return de(L, W, !0);
5085
5094
  case "A":
5086
- return me(G, W, !1);
5095
+ return de(L, W, !1);
5087
5096
  case "m":
5088
5097
  return String(W);
5089
5098
  case "mm":
@@ -5098,70 +5107,70 @@ var qs = { exports: {} };
5098
5107
  return B;
5099
5108
  }
5100
5109
  return null;
5101
- }(ee) || B.replace(":", "");
5110
+ }(Z) || B.replace(":", "");
5102
5111
  });
5103
- }, x.utcOffset = function() {
5112
+ }, E.utcOffset = function() {
5104
5113
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5105
- }, x.diff = function(m, w, C) {
5106
- var P, B = this, G = j.p(w), W = M(m), $ = (W.utcOffset() - this.utcOffset()) * n, Z = this - W, re = function() {
5114
+ }, E.diff = function(m, w, x) {
5115
+ var P, B = this, L = j.p(w), W = M(m), Q = (W.utcOffset() - this.utcOffset()) * n, te = this - W, X = function() {
5107
5116
  return j.m(B, W);
5108
5117
  };
5109
- switch (G) {
5118
+ switch (L) {
5110
5119
  case p:
5111
- P = re() / 12;
5120
+ P = X() / 12;
5112
5121
  break;
5113
5122
  case u:
5114
- P = re();
5123
+ P = X();
5115
5124
  break;
5116
5125
  case A:
5117
- P = re() / 3;
5126
+ P = X() / 3;
5118
5127
  break;
5119
5128
  case h:
5120
- P = (Z - $) / 6048e5;
5129
+ P = (te - Q) / 6048e5;
5121
5130
  break;
5122
5131
  case d:
5123
- P = (Z - $) / 864e5;
5132
+ P = (te - Q) / 864e5;
5124
5133
  break;
5125
5134
  case l:
5126
- P = Z / a;
5135
+ P = te / a;
5127
5136
  break;
5128
5137
  case i:
5129
- P = Z / n;
5138
+ P = te / n;
5130
5139
  break;
5131
5140
  case c:
5132
- P = Z / r;
5141
+ P = te / r;
5133
5142
  break;
5134
5143
  default:
5135
- P = Z;
5144
+ P = te;
5136
5145
  }
5137
- return C ? P : j.a(P);
5138
- }, x.daysInMonth = function() {
5146
+ return x ? P : j.a(P);
5147
+ }, E.daysInMonth = function() {
5139
5148
  return this.endOf(u).$D;
5140
- }, x.$locale = function() {
5149
+ }, E.$locale = function() {
5141
5150
  return T[this.$L];
5142
- }, x.locale = function(m, w) {
5151
+ }, E.locale = function(m, w) {
5143
5152
  if (!m)
5144
5153
  return this.$L;
5145
- var C = this.clone(), P = U(m, w, !0);
5146
- return P && (C.$L = P), C;
5147
- }, x.clone = function() {
5154
+ var x = this.clone(), P = U(m, w, !0);
5155
+ return P && (x.$L = P), x;
5156
+ }, E.clone = function() {
5148
5157
  return j.w(this.$d, this);
5149
- }, x.toDate = function() {
5158
+ }, E.toDate = function() {
5150
5159
  return new Date(this.valueOf());
5151
- }, x.toJSON = function() {
5160
+ }, E.toJSON = function() {
5152
5161
  return this.isValid() ? this.toISOString() : null;
5153
- }, x.toISOString = function() {
5162
+ }, E.toISOString = function() {
5154
5163
  return this.$d.toISOString();
5155
- }, x.toString = function() {
5164
+ }, E.toString = function() {
5156
5165
  return this.$d.toUTCString();
5157
5166
  }, b;
5158
5167
  }(), k = N.prototype;
5159
5168
  return M.prototype = k, [["$ms", s], ["$s", c], ["$m", i], ["$H", l], ["$W", d], ["$M", u], ["$y", p], ["$D", S]].forEach(function(b) {
5160
- k[b[1]] = function(x) {
5161
- return this.$g(x, b[0], b[1]);
5169
+ k[b[1]] = function(E) {
5170
+ return this.$g(E, b[0], b[1]);
5162
5171
  };
5163
- }), M.extend = function(b, x) {
5164
- return b.$i || (b(x, N, M), b.$i = !0), M;
5172
+ }), M.extend = function(b, E) {
5173
+ return b.$i || (b(E, N, M), b.$i = !0), M;
5165
5174
  }, M.locale = U, M.isDayjs = D, M.unix = function(b) {
5166
5175
  return M(1e3 * b);
5167
5176
  }, M.en = T[F], M.Ls = T, M.p = {}, M;
@@ -5286,7 +5295,7 @@ const ul = /* @__PURE__ */ Qr(ll), { Option: ba } = Wr, { Paragraph: Sa } = Hr,
5286
5295
  }, vl = ml, _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5287
5296
  __proto__: null,
5288
5297
  default: vl
5289
- }, Symbol.toStringTag, { value: "Module" })), bl = Ze(() => import("./index-HvDQwXwp.chunk.js")), Sl = Ze(() => import("./index-M_jAlZ2e.chunk.js")), xl = Ze(() => import("./index-yfRnpGpa.chunk.js")), Cl = () => /* @__PURE__ */ f.jsxs(Da, { children: [
5298
+ }, Symbol.toStringTag, { value: "Module" })), bl = Ze(() => import("./index-rasizZvA.chunk.js")), Sl = Ze(() => import("./index-eMW78USE.chunk.js")), xl = Ze(() => import("./index-et_yFy8-.chunk.js")), Cl = () => /* @__PURE__ */ f.jsxs(Da, { children: [
5290
5299
  /* @__PURE__ */ f.jsx(ze, { index: !0, element: /* @__PURE__ */ f.jsx(Cr, { to: "user" }) }),
5291
5300
  /* @__PURE__ */ f.jsx(ze, { path: "user", element: /* @__PURE__ */ f.jsx(bl, {}) }),
5292
5301
  /* @__PURE__ */ f.jsx(ze, { path: "role", element: /* @__PURE__ */ f.jsx(Sl, {}) }),
@@ -5356,4 +5365,4 @@ export {
5356
5365
  nl as y,
5357
5366
  gn as z
5358
5367
  };
5359
- //# sourceMappingURL=index-HgiD-vIE.chunk.js.map
5368
+ //# sourceMappingURL=index-q67uKpkd.chunk.js.map