@mi-avalon/libs 0.0.27 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
- var Zr = Object.defineProperty;
2
- var Gr = (n, e, t) => e in n ? Zr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var m = (n, e, t) => (Gr(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as F from "react";
5
- import Ye, { createContext as Qt, useContext as er, useEffect as ae, Component as Jr, useState as L, useRef as G, useCallback as Z, useMemo as Kr } from "react";
6
- import { theme as Ie, ConfigProvider as tr, Button as ke, Affix as Xr, Card as rr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as Qr, DatePicker as nr, Select as en, Radio as tn, Checkbox as rn, Upload as nn, Mentions as sn, Cascader as an, TreeSelect as on, Form as st, Row as cn, Col as ln, Modal as un, Table as dn } from "antd";
7
- import fn from "react-dom";
8
- function hn(n, e) {
1
+ var Gr = Object.defineProperty;
2
+ var Jr = (n, e, t) => e in n ? Gr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var m = (n, e, t) => (Jr(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as q from "react";
5
+ import Ye, { createContext as Qt, useContext as er, useEffect as ae, Component as Kr, useState as H, useRef as G, useMemo as tr, useCallback as Z } from "react";
6
+ import { theme as Ie, ConfigProvider as rr, Button as ke, Affix as Xr, Card as nr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as Qr, DatePicker as sr, Select as en, Radio as tn, Checkbox as rn, Upload as nn, Mentions as sn, Cascader as an, TreeSelect as on, Form as st, Row as cn, Col as ln, Space as un, Modal as fn, Table as dn } from "antd";
7
+ import hn from "react-dom";
8
+ function gn(n, e) {
9
9
  for (var t = 0; t < e.length; t++) {
10
10
  const r = e[t];
11
11
  if (typeof r != "string" && !Array.isArray(r)) {
@@ -21,10 +21,10 @@ function hn(n, e) {
21
21
  }
22
22
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
23
23
  }
24
- function gn(n) {
24
+ function pn(n) {
25
25
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
26
26
  }
27
- var at = { exports: {} }, Se = {};
27
+ var at = { exports: {} }, Re = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.production.min.js
@@ -35,22 +35,22 @@ var at = { exports: {} }, Se = {};
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */
37
37
  var Yt;
38
- function pn() {
38
+ function mn() {
39
39
  if (Yt)
40
- return Se;
40
+ return Re;
41
41
  Yt = 1;
42
42
  var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
43
- function o(l, d, c) {
44
- var f, g = {}, v = null, j = null;
45
- c !== void 0 && (v = "" + c), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (j = d.ref);
46
- for (f in d)
47
- r.call(d, f) && !a.hasOwnProperty(f) && (g[f] = d[f]);
43
+ function o(l, f, c) {
44
+ var d, g = {}, y = null, j = null;
45
+ c !== void 0 && (y = "" + c), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (j = f.ref);
46
+ for (d in f)
47
+ r.call(f, d) && !a.hasOwnProperty(d) && (g[d] = f[d]);
48
48
  if (l && l.defaultProps)
49
- for (f in d = l.defaultProps, d)
50
- g[f] === void 0 && (g[f] = d[f]);
51
- return { $$typeof: e, type: l, key: v, ref: j, props: g, _owner: i.current };
49
+ for (d in f = l.defaultProps, f)
50
+ g[d] === void 0 && (g[d] = f[d]);
51
+ return { $$typeof: e, type: l, key: y, ref: j, props: g, _owner: i.current };
52
52
  }
53
- return Se.Fragment = t, Se.jsx = o, Se.jsxs = o, Se;
53
+ return Re.Fragment = t, Re.jsx = o, Re.jsxs = o, Re;
54
54
  }
55
55
  var Ce = {};
56
56
  /**
@@ -63,17 +63,17 @@ var Ce = {};
63
63
  * LICENSE file in the root directory of this source tree.
64
64
  */
65
65
  var Lt;
66
- function mn() {
66
+ function bn() {
67
67
  return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
68
- var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), N = Symbol.iterator, T = "@@iterator";
69
- function H(s) {
68
+ var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, N = "@@iterator";
69
+ function I(s) {
70
70
  if (s === null || typeof s != "object")
71
71
  return null;
72
- var u = N && s[N] || s[T];
72
+ var u = $ && s[$] || s[N];
73
73
  return typeof u == "function" ? u : null;
74
74
  }
75
- var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
- function y(s) {
75
+ var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
+ function v(s) {
77
77
  {
78
78
  for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
79
79
  h[b - 1] = arguments[b];
@@ -82,18 +82,18 @@ function mn() {
82
82
  }
83
83
  function k(s, u, h) {
84
84
  {
85
- var b = O.ReactDebugCurrentFrame, S = b.getStackAddendum();
86
- S !== "" && (u += "%s", h = h.concat([S]));
87
- var _ = h.map(function(R) {
88
- return String(R);
85
+ var b = P.ReactDebugCurrentFrame, R = b.getStackAddendum();
86
+ R !== "" && (u += "%s", h = h.concat([R]));
87
+ var _ = h.map(function(S) {
88
+ return String(S);
89
89
  });
90
90
  _.unshift("Warning: " + u), Function.prototype.apply.call(console[s], console, _);
91
91
  }
92
92
  }
93
- var V = !1, I = !1, J = !1, K = !1, ye = !1, te;
93
+ var F = !1, Y = !1, J = !1, K = !1, ye = !1, te;
94
94
  te = Symbol.for("react.module.reference");
95
95
  function ie(s) {
96
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === f || K || s === j || V || I || J || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === d || // This needs to include all possible module reference object
96
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === d || K || s === j || F || Y || J || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === f || // This needs to include all possible module reference object
97
97
  // types supported by any Flight configuration anywhere since
98
98
  // we don't know which Flight build this will end up being used
99
99
  // with.
@@ -103,8 +103,8 @@ function mn() {
103
103
  var b = s.displayName;
104
104
  if (b)
105
105
  return b;
106
- var S = u.displayName || u.name || "";
107
- return S !== "" ? h + "(" + S + ")" : h;
106
+ var R = u.displayName || u.name || "";
107
+ return R !== "" ? h + "(" + R + ")" : h;
108
108
  }
109
109
  function we(s) {
110
110
  return s.displayName || "Context";
@@ -112,7 +112,7 @@ function mn() {
112
112
  function E(s) {
113
113
  if (s == null)
114
114
  return null;
115
- if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
115
+ if (typeof s.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
116
116
  return s.displayName || s.name || null;
117
117
  if (typeof s == "string")
118
118
  return s;
@@ -127,7 +127,7 @@ function mn() {
127
127
  return "StrictMode";
128
128
  case c:
129
129
  return "Suspense";
130
- case f:
130
+ case d:
131
131
  return "SuspenseList";
132
132
  }
133
133
  if (typeof s == "object")
@@ -138,15 +138,15 @@ function mn() {
138
138
  case o:
139
139
  var h = s;
140
140
  return we(h._context) + ".Provider";
141
- case d:
141
+ case f:
142
142
  return le(s, s.render, "ForwardRef");
143
143
  case g:
144
144
  var b = s.displayName || null;
145
145
  return b !== null ? b : E(s.type) || "Memo";
146
- case v: {
147
- var S = s, _ = S._payload, R = S._init;
146
+ case y: {
147
+ var R = s, _ = R._payload, S = R._init;
148
148
  try {
149
- return E(R(_));
149
+ return E(S(_));
150
150
  } catch {
151
151
  return null;
152
152
  }
@@ -154,18 +154,18 @@ function mn() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var Y = Object.assign, w = 0, M, X, U, re, Q, ue, de;
158
- function Rt() {
157
+ var L = Object.assign, w = 0, A, X, U, re, Q, ue, fe;
158
+ function St() {
159
159
  }
160
- Rt.__reactDisabledLog = !0;
161
- function xr() {
160
+ St.__reactDisabledLog = !0;
161
+ function Sr() {
162
162
  {
163
163
  if (w === 0) {
164
- M = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, de = console.groupEnd;
164
+ A = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, fe = console.groupEnd;
165
165
  var s = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
168
- value: Rt,
168
+ value: St,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
@@ -190,40 +190,40 @@ function mn() {
190
190
  writable: !0
191
191
  };
192
192
  Object.defineProperties(console, {
193
- log: Y({}, s, {
194
- value: M
193
+ log: L({}, s, {
194
+ value: A
195
195
  }),
196
- info: Y({}, s, {
196
+ info: L({}, s, {
197
197
  value: X
198
198
  }),
199
- warn: Y({}, s, {
199
+ warn: L({}, s, {
200
200
  value: U
201
201
  }),
202
- error: Y({}, s, {
202
+ error: L({}, s, {
203
203
  value: re
204
204
  }),
205
- group: Y({}, s, {
205
+ group: L({}, s, {
206
206
  value: Q
207
207
  }),
208
- groupCollapsed: Y({}, s, {
208
+ groupCollapsed: L({}, s, {
209
209
  value: ue
210
210
  }),
211
- groupEnd: Y({}, s, {
212
- value: de
211
+ groupEnd: L({}, s, {
212
+ value: fe
213
213
  })
214
214
  });
215
215
  }
216
- w < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
216
+ w < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
217
217
  }
218
218
  }
219
- var Ue = O.ReactCurrentDispatcher, Be;
219
+ var Ue = P.ReactCurrentDispatcher, Be;
220
220
  function Ne(s, u, h) {
221
221
  {
222
222
  if (Be === void 0)
223
223
  try {
224
224
  throw Error();
225
- } catch (S) {
226
- var b = S.stack.trim().match(/\n( *(at )?)/);
225
+ } catch (R) {
226
+ var b = R.stack.trim().match(/\n( *(at )?)/);
227
227
  Be = b && b[1] || "";
228
228
  }
229
229
  return `
@@ -232,10 +232,10 @@ function mn() {
232
232
  }
233
233
  var We = !1, De;
234
234
  {
235
- var Sr = typeof WeakMap == "function" ? WeakMap : Map;
236
- De = new Sr();
235
+ var Cr = typeof WeakMap == "function" ? WeakMap : Map;
236
+ De = new Cr();
237
237
  }
238
- function St(s, u) {
238
+ function Rt(s, u) {
239
239
  if (!s || We)
240
240
  return "";
241
241
  {
@@ -245,33 +245,33 @@ function mn() {
245
245
  }
246
246
  var b;
247
247
  We = !0;
248
- var S = Error.prepareStackTrace;
248
+ var R = Error.prepareStackTrace;
249
249
  Error.prepareStackTrace = void 0;
250
250
  var _;
251
- _ = Ue.current, Ue.current = null, xr();
251
+ _ = Ue.current, Ue.current = null, Sr();
252
252
  try {
253
253
  if (u) {
254
- var R = function() {
254
+ var S = function() {
255
255
  throw Error();
256
256
  };
257
- if (Object.defineProperty(R.prototype, "props", {
257
+ if (Object.defineProperty(S.prototype, "props", {
258
258
  set: function() {
259
259
  throw Error();
260
260
  }
261
261
  }), typeof Reflect == "object" && Reflect.construct) {
262
262
  try {
263
- Reflect.construct(R, []);
263
+ Reflect.construct(S, []);
264
264
  } catch (B) {
265
265
  b = B;
266
266
  }
267
- Reflect.construct(s, [], R);
267
+ Reflect.construct(s, [], S);
268
268
  } else {
269
269
  try {
270
- R.call();
270
+ S.call();
271
271
  } catch (B) {
272
272
  b = B;
273
273
  }
274
- s.call(R.prototype);
274
+ s.call(S.prototype);
275
275
  }
276
276
  } else {
277
277
  try {
@@ -284,32 +284,32 @@ function mn() {
284
284
  } catch (B) {
285
285
  if (B && b && typeof B.stack == "string") {
286
286
  for (var x = B.stack.split(`
287
- `), q = b.stack.split(`
288
- `), D = x.length - 1, P = q.length - 1; D >= 1 && P >= 0 && x[D] !== q[P]; )
289
- P--;
290
- for (; D >= 1 && P >= 0; D--, P--)
291
- if (x[D] !== q[P]) {
292
- if (D !== 1 || P !== 1)
287
+ `), V = b.stack.split(`
288
+ `), D = x.length - 1, T = V.length - 1; D >= 1 && T >= 0 && x[D] !== V[T]; )
289
+ T--;
290
+ for (; D >= 1 && T >= 0; D--, T--)
291
+ if (x[D] !== V[T]) {
292
+ if (D !== 1 || T !== 1)
293
293
  do
294
- if (D--, P--, P < 0 || x[D] !== q[P]) {
294
+ if (D--, T--, T < 0 || x[D] !== V[T]) {
295
295
  var ee = `
296
296
  ` + x[D].replace(" at new ", " at ");
297
297
  return s.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", s.displayName)), typeof s == "function" && De.set(s, ee), ee;
298
298
  }
299
- while (D >= 1 && P >= 0);
299
+ while (D >= 1 && T >= 0);
300
300
  break;
301
301
  }
302
302
  }
303
303
  } finally {
304
- We = !1, Ue.current = _, Rr(), Error.prepareStackTrace = S;
304
+ We = !1, Ue.current = _, Rr(), Error.prepareStackTrace = R;
305
305
  }
306
306
  var he = s ? s.displayName || s.name : "", oe = he ? Ne(he) : "";
307
307
  return typeof s == "function" && De.set(s, oe), oe;
308
308
  }
309
- function Cr(s, u, h) {
310
- return St(s, !1);
309
+ function _r(s, u, h) {
310
+ return Rt(s, !1);
311
311
  }
312
- function _r(s) {
312
+ function Er(s) {
313
313
  var u = s.prototype;
314
314
  return !!(u && u.isReactComponent);
315
315
  }
@@ -317,32 +317,32 @@ function mn() {
317
317
  if (s == null)
318
318
  return "";
319
319
  if (typeof s == "function")
320
- return St(s, _r(s));
320
+ return Rt(s, Er(s));
321
321
  if (typeof s == "string")
322
322
  return Ne(s);
323
323
  switch (s) {
324
324
  case c:
325
325
  return Ne("Suspense");
326
- case f:
326
+ case d:
327
327
  return Ne("SuspenseList");
328
328
  }
329
329
  if (typeof s == "object")
330
330
  switch (s.$$typeof) {
331
- case d:
332
- return Cr(s.render);
331
+ case f:
332
+ return _r(s.render);
333
333
  case g:
334
334
  return Pe(s.type, u, h);
335
- case v: {
336
- var b = s, S = b._payload, _ = b._init;
335
+ case y: {
336
+ var b = s, R = b._payload, _ = b._init;
337
337
  try {
338
- return Pe(_(S), u, h);
338
+ return Pe(_(R), u, h);
339
339
  } catch {
340
340
  }
341
341
  }
342
342
  }
343
343
  return "";
344
344
  }
345
- var xe = Object.prototype.hasOwnProperty, Ct = {}, _t = O.ReactDebugCurrentFrame;
345
+ var xe = Object.prototype.hasOwnProperty, Ct = {}, _t = P.ReactDebugCurrentFrame;
346
346
  function Te(s) {
347
347
  if (s) {
348
348
  var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
@@ -350,36 +350,36 @@ function mn() {
350
350
  } else
351
351
  _t.setExtraStackFrame(null);
352
352
  }
353
- function Er(s, u, h, b, S) {
353
+ function jr(s, u, h, b, R) {
354
354
  {
355
355
  var _ = Function.call.bind(xe);
356
- for (var R in s)
357
- if (_(s, R)) {
356
+ for (var S in s)
357
+ if (_(s, S)) {
358
358
  var x = void 0;
359
359
  try {
360
- if (typeof s[R] != "function") {
361
- var q = Error((b || "React class") + ": " + h + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
- throw q.name = "Invariant Violation", q;
360
+ if (typeof s[S] != "function") {
361
+ var V = Error((b || "React class") + ": " + h + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
+ throw V.name = "Invariant Violation", V;
363
363
  }
364
- x = s[R](u, R, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
+ x = s[S](u, S, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
365
  } catch (D) {
366
366
  x = D;
367
367
  }
368
- x && !(x instanceof Error) && (Te(S), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", h, R, typeof x), Te(null)), x instanceof Error && !(x.message in Ct) && (Ct[x.message] = !0, Te(S), y("Failed %s type: %s", h, x.message), Te(null));
368
+ x && !(x instanceof Error) && (Te(R), v("%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).", b || "React class", h, S, typeof x), Te(null)), x instanceof Error && !(x.message in Ct) && (Ct[x.message] = !0, Te(R), v("Failed %s type: %s", h, x.message), Te(null));
369
369
  }
370
370
  }
371
371
  }
372
- var jr = Array.isArray;
372
+ var kr = Array.isArray;
373
373
  function Ze(s) {
374
- return jr(s);
374
+ return kr(s);
375
375
  }
376
- function kr(s) {
376
+ function Or(s) {
377
377
  {
378
378
  var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
379
379
  return h;
380
380
  }
381
381
  }
382
- function Or(s) {
382
+ function $r(s) {
383
383
  try {
384
384
  return Et(s), !1;
385
385
  } catch {
@@ -390,17 +390,17 @@ function mn() {
390
390
  return "" + s;
391
391
  }
392
392
  function jt(s) {
393
- if (Or(s))
394
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(s)), Et(s);
393
+ if ($r(s))
394
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Or(s)), Et(s);
395
395
  }
396
- var Re = O.ReactCurrentOwner, $r = {
396
+ var Se = P.ReactCurrentOwner, Nr = {
397
397
  key: !0,
398
398
  ref: !0,
399
399
  __self: !0,
400
400
  __source: !0
401
401
  }, kt, Ot, Ge;
402
402
  Ge = {};
403
- function Nr(s) {
403
+ function Dr(s) {
404
404
  if (xe.call(s, "ref")) {
405
405
  var u = Object.getOwnPropertyDescriptor(s, "ref").get;
406
406
  if (u && u.isReactWarning)
@@ -408,7 +408,7 @@ function mn() {
408
408
  }
409
409
  return s.ref !== void 0;
410
410
  }
411
- function Dr(s) {
411
+ function Pr(s) {
412
412
  if (xe.call(s, "key")) {
413
413
  var u = Object.getOwnPropertyDescriptor(s, "key").get;
414
414
  if (u && u.isReactWarning)
@@ -416,16 +416,16 @@ function mn() {
416
416
  }
417
417
  return s.key !== void 0;
418
418
  }
419
- function Pr(s, u) {
420
- if (typeof s.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
421
- var h = E(Re.current.type);
422
- Ge[h] || (y('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', E(Re.current.type), s.ref), Ge[h] = !0);
419
+ function Tr(s, u) {
420
+ if (typeof s.ref == "string" && Se.current && u && Se.current.stateNode !== u) {
421
+ var h = E(Se.current.type);
422
+ Ge[h] || (v('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', E(Se.current.type), s.ref), Ge[h] = !0);
423
423
  }
424
424
  }
425
- function Tr(s, u) {
425
+ function Ar(s, u) {
426
426
  {
427
427
  var h = function() {
428
- kt || (kt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
428
+ kt || (kt = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
429
429
  };
430
430
  h.isReactWarning = !0, Object.defineProperty(s, "key", {
431
431
  get: h,
@@ -436,7 +436,7 @@ function mn() {
436
436
  function Mr(s, u) {
437
437
  {
438
438
  var h = function() {
439
- Ot || (Ot = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
439
+ Ot || (Ot = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
440
440
  };
441
441
  h.isReactWarning = !0, Object.defineProperty(s, "ref", {
442
442
  get: h,
@@ -444,7 +444,7 @@ function mn() {
444
444
  });
445
445
  }
446
446
  }
447
- var Ar = function(s, u, h, b, S, _, R) {
447
+ var zr = function(s, u, h, b, R, _, S) {
448
448
  var x = {
449
449
  // This tag allows us to uniquely identify this as a React Element
450
450
  $$typeof: e,
@@ -452,7 +452,7 @@ function mn() {
452
452
  type: s,
453
453
  key: u,
454
454
  ref: h,
455
- props: R,
455
+ props: S,
456
456
  // Record the component responsible for creating this element.
457
457
  _owner: _
458
458
  };
@@ -470,29 +470,29 @@ function mn() {
470
470
  configurable: !1,
471
471
  enumerable: !1,
472
472
  writable: !1,
473
- value: S
473
+ value: R
474
474
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
475
475
  };
476
- function zr(s, u, h, b, S) {
476
+ function Ir(s, u, h, b, R) {
477
477
  {
478
- var _, R = {}, x = null, q = null;
479
- h !== void 0 && (jt(h), x = "" + h), Dr(u) && (jt(u.key), x = "" + u.key), Nr(u) && (q = u.ref, Pr(u, S));
478
+ var _, S = {}, x = null, V = null;
479
+ h !== void 0 && (jt(h), x = "" + h), Pr(u) && (jt(u.key), x = "" + u.key), Dr(u) && (V = u.ref, Tr(u, R));
480
480
  for (_ in u)
481
- xe.call(u, _) && !$r.hasOwnProperty(_) && (R[_] = u[_]);
481
+ xe.call(u, _) && !Nr.hasOwnProperty(_) && (S[_] = u[_]);
482
482
  if (s && s.defaultProps) {
483
483
  var D = s.defaultProps;
484
484
  for (_ in D)
485
- R[_] === void 0 && (R[_] = D[_]);
485
+ S[_] === void 0 && (S[_] = D[_]);
486
486
  }
487
- if (x || q) {
488
- var P = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
489
- x && Tr(R, P), q && Mr(R, P);
487
+ if (x || V) {
488
+ var T = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
489
+ x && Ar(S, T), V && Mr(S, T);
490
490
  }
491
- return Ar(s, x, q, S, b, Re.current, R);
491
+ return zr(s, x, V, R, b, Se.current, S);
492
492
  }
493
493
  }
494
- var Je = O.ReactCurrentOwner, $t = O.ReactDebugCurrentFrame;
495
- function fe(s) {
494
+ var Je = P.ReactCurrentOwner, $t = P.ReactDebugCurrentFrame;
495
+ function de(s) {
496
496
  if (s) {
497
497
  var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
498
498
  $t.setExtraStackFrame(h);
@@ -516,7 +516,7 @@ Check the render method of \`` + s + "`.";
516
516
  return "";
517
517
  }
518
518
  }
519
- function Ir(s) {
519
+ function Yr(s) {
520
520
  {
521
521
  if (s !== void 0) {
522
522
  var u = s.fileName.replace(/^.*[\\\/]/, ""), h = s.lineNumber;
@@ -528,7 +528,7 @@ Check your code at ` + u + ":" + h + ".";
528
528
  }
529
529
  }
530
530
  var Dt = {};
531
- function Yr(s) {
531
+ function Lr(s) {
532
532
  {
533
533
  var u = Nt();
534
534
  if (!u) {
@@ -545,12 +545,12 @@ Check the top-level render call using <` + h + ">.");
545
545
  if (!s._store || s._store.validated || s.key != null)
546
546
  return;
547
547
  s._store.validated = !0;
548
- var h = Yr(u);
548
+ var h = Lr(u);
549
549
  if (Dt[h])
550
550
  return;
551
551
  Dt[h] = !0;
552
552
  var b = "";
553
- s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), fe(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), fe(null);
553
+ s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), de(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), de(null);
554
554
  }
555
555
  }
556
556
  function Tt(s, u) {
@@ -565,14 +565,14 @@ Check the top-level render call using <` + h + ">.");
565
565
  else if (Xe(s))
566
566
  s._store && (s._store.validated = !0);
567
567
  else if (s) {
568
- var S = H(s);
569
- if (typeof S == "function" && S !== s.entries)
570
- for (var _ = S.call(s), R; !(R = _.next()).done; )
571
- Xe(R.value) && Pt(R.value, u);
568
+ var R = I(s);
569
+ if (typeof R == "function" && R !== s.entries)
570
+ for (var _ = R.call(s), S; !(S = _.next()).done; )
571
+ Xe(S.value) && Pt(S.value, u);
572
572
  }
573
573
  }
574
574
  }
575
- function Lr(s) {
575
+ function Hr(s) {
576
576
  {
577
577
  var u = s.type;
578
578
  if (u == null || typeof u == "string")
@@ -580,7 +580,7 @@ Check the top-level render call using <` + h + ">.");
580
580
  var h;
581
581
  if (typeof u == "function")
582
582
  h = u.propTypes;
583
- else if (typeof u == "object" && (u.$$typeof === d || // Note: Memo only checks outer props here.
583
+ else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
584
584
  // Inner props are checked in the reconciler.
585
585
  u.$$typeof === g))
586
586
  h = u.propTypes;
@@ -588,43 +588,43 @@ Check the top-level render call using <` + h + ">.");
588
588
  return;
589
589
  if (h) {
590
590
  var b = E(u);
591
- Er(h, s.props, "prop", b, s);
591
+ jr(h, s.props, "prop", b, s);
592
592
  } else if (u.PropTypes !== void 0 && !Ke) {
593
593
  Ke = !0;
594
- var S = E(u);
595
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
594
+ var R = E(u);
595
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
596
596
  }
597
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
597
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
598
598
  }
599
599
  }
600
- function Hr(s) {
600
+ function Vr(s) {
601
601
  {
602
602
  for (var u = Object.keys(s.props), h = 0; h < u.length; h++) {
603
603
  var b = u[h];
604
604
  if (b !== "children" && b !== "key") {
605
- fe(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), fe(null);
605
+ de(s), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), de(null);
606
606
  break;
607
607
  }
608
608
  }
609
- s.ref !== null && (fe(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
609
+ s.ref !== null && (de(s), v("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
610
610
  }
611
611
  }
612
- var Mt = {};
613
- function At(s, u, h, b, S, _) {
612
+ var At = {};
613
+ function Mt(s, u, h, b, R, _) {
614
614
  {
615
- var R = ie(s);
616
- if (!R) {
615
+ var S = ie(s);
616
+ if (!S) {
617
617
  var x = "";
618
618
  (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
619
- var q = Ir(S);
620
- q ? x += q : x += Nt();
619
+ var V = Yr(R);
620
+ V ? x += V : x += Nt();
621
621
  var D;
622
- s === null ? D = "null" : Ze(s) ? D = "array" : s !== void 0 && s.$$typeof === e ? (D = "<" + (E(s.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
622
+ s === null ? D = "null" : Ze(s) ? D = "array" : s !== void 0 && s.$$typeof === e ? (D = "<" + (E(s.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof s, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
623
623
  }
624
- var P = zr(s, u, h, S, _);
625
- if (P == null)
626
- return P;
627
- if (R) {
624
+ var T = Ir(s, u, h, R, _);
625
+ if (T == null)
626
+ return T;
627
+ if (S) {
628
628
  var ee = u.children;
629
629
  if (ee !== void 0)
630
630
  if (b)
@@ -633,38 +633,38 @@ Check the top-level render call using <` + h + ">.");
633
633
  Tt(ee[he], s);
634
634
  Object.freeze && Object.freeze(ee);
635
635
  } else
636
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
636
+ v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
637
637
  else
638
638
  Tt(ee, s);
639
639
  }
640
640
  if (xe.call(u, "key")) {
641
- var oe = E(s), B = Object.keys(u).filter(function(Wr) {
642
- return Wr !== "key";
641
+ var oe = E(s), B = Object.keys(u).filter(function(Zr) {
642
+ return Zr !== "key";
643
643
  }), Qe = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
644
- if (!Mt[oe + Qe]) {
645
- var Br = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
646
- y(`A props object containing a "key" prop is being spread into JSX:
644
+ if (!At[oe + Qe]) {
645
+ var Wr = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
646
+ v(`A props object containing a "key" prop is being spread into JSX:
647
647
  let props = %s;
648
648
  <%s {...props} />
649
649
  React keys must be passed directly to JSX without using spread:
650
650
  let props = %s;
651
- <%s key={someKey} {...props} />`, Qe, oe, Br, oe), Mt[oe + Qe] = !0;
651
+ <%s key={someKey} {...props} />`, Qe, oe, Wr, oe), At[oe + Qe] = !0;
652
652
  }
653
653
  }
654
- return s === r ? Hr(P) : Lr(P), P;
654
+ return s === r ? Vr(T) : Hr(T), T;
655
655
  }
656
656
  }
657
- function Vr(s, u, h) {
658
- return At(s, u, h, !0);
659
- }
660
657
  function qr(s, u, h) {
661
- return At(s, u, h, !1);
658
+ return Mt(s, u, h, !0);
662
659
  }
663
- var Fr = qr, Ur = Vr;
664
- Ce.Fragment = r, Ce.jsx = Fr, Ce.jsxs = Ur;
660
+ function Fr(s, u, h) {
661
+ return Mt(s, u, h, !1);
662
+ }
663
+ var Ur = Fr, Br = qr;
664
+ Ce.Fragment = r, Ce.jsx = Ur, Ce.jsxs = Br;
665
665
  }()), Ce;
666
666
  }
667
- process.env.NODE_ENV === "production" ? at.exports = pn() : at.exports = mn();
667
+ process.env.NODE_ENV === "production" ? at.exports = mn() : at.exports = bn();
668
668
  var p = at.exports;
669
669
  const z = class z {
670
670
  /**
@@ -698,8 +698,8 @@ const z = class z {
698
698
  */
699
699
  add(...e) {
700
700
  return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
701
- const i = z.getDecimalLength(t), a = z.getDecimalLength(r), o = Math.max(i, a), l = Math.pow(10, o), d = z.toInteger(t, o - i), c = z.toInteger(r, o - a);
702
- return (d + c) / l;
701
+ const i = z.getDecimalLength(t), a = z.getDecimalLength(r), o = Math.max(i, a), l = Math.pow(10, o), f = z.toInteger(t, o - i), c = z.toInteger(r, o - a);
702
+ return (f + c) / l;
703
703
  });
704
704
  }
705
705
  /**
@@ -810,9 +810,9 @@ const z = class z {
810
810
  const i = Math.pow(10, -t - 1);
811
811
  let a = this.div(this.sub(e, 1), this.add(e, 1));
812
812
  const o = this.mul(a, a);
813
- let l = a, d = 1;
813
+ let l = a, f = 1;
814
814
  do
815
- r = this.add(r, this.div(l, d)), l = this.mul(l, o), d += 2;
815
+ r = this.add(r, this.div(l, f)), l = this.mul(l, o), f += 2;
816
816
  while (Math.abs(l) > i);
817
817
  return this.round(this.mul(2, r), t);
818
818
  }
@@ -982,7 +982,7 @@ const z = class z {
982
982
  };
983
983
  m(z, "factorialCache", /* @__PURE__ */ new Map());
984
984
  let it = z;
985
- const ws = new it(), $e = class $e {
985
+ const xs = new it(), $e = class $e {
986
986
  constructor() {
987
987
  m(this, "callbacks", []);
988
988
  m(this, "pending", !1);
@@ -1035,29 +1035,29 @@ const ws = new it(), $e = class $e {
1035
1035
  };
1036
1036
  m($e, "_instance");
1037
1037
  let Le = $e;
1038
- const xs = Le.instance.nextTick.bind(Le.instance);
1039
- var ge = {}, ot, ct, _e = fn;
1038
+ const Ss = Le.instance.nextTick.bind(Le.instance);
1039
+ var ge = {}, ot, ct, _e = hn;
1040
1040
  if (process.env.NODE_ENV === "production")
1041
1041
  ct = ge.createRoot = _e.createRoot, ot = ge.hydrateRoot = _e.hydrateRoot;
1042
1042
  else {
1043
- var Me = _e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1043
+ var Ae = _e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1044
1044
  ct = ge.createRoot = function(n, e) {
1045
- Me.usingClientEntryPoint = !0;
1045
+ Ae.usingClientEntryPoint = !0;
1046
1046
  try {
1047
1047
  return _e.createRoot(n, e);
1048
1048
  } finally {
1049
- Me.usingClientEntryPoint = !1;
1049
+ Ae.usingClientEntryPoint = !1;
1050
1050
  }
1051
1051
  }, ot = ge.hydrateRoot = function(n, e, t) {
1052
- Me.usingClientEntryPoint = !0;
1052
+ Ae.usingClientEntryPoint = !0;
1053
1053
  try {
1054
1054
  return _e.hydrateRoot(n, e, t);
1055
1055
  } finally {
1056
- Me.usingClientEntryPoint = !1;
1056
+ Ae.usingClientEntryPoint = !1;
1057
1057
  }
1058
1058
  };
1059
1059
  }
1060
- const bn = /* @__PURE__ */ hn({
1060
+ const vn = /* @__PURE__ */ gn({
1061
1061
  __proto__: null,
1062
1062
  get createRoot() {
1063
1063
  return ct;
@@ -1066,24 +1066,24 @@ const bn = /* @__PURE__ */ hn({
1066
1066
  get hydrateRoot() {
1067
1067
  return ot;
1068
1068
  }
1069
- }, [ge]), { createRoot: vn } = bn;
1069
+ }, [ge]), { createRoot: yn } = vn;
1070
1070
  let se = null, ce = null;
1071
- function yn() {
1071
+ function wn() {
1072
1072
  return se || (se = document.createElement("div"), document.body.appendChild(se)), se;
1073
1073
  }
1074
- function wn(n, e) {
1075
- const t = yn();
1074
+ function xn(n, e) {
1075
+ const t = wn();
1076
1076
  let r = {
1077
1077
  open: !0,
1078
1078
  ...e,
1079
1079
  // 默认自动关闭
1080
1080
  onClosed: e.onClosed || ((c) => {
1081
- d(c);
1081
+ f(c);
1082
1082
  })
1083
1083
  };
1084
1084
  if (!ce)
1085
1085
  try {
1086
- ce = vn(t);
1086
+ ce = yn(t);
1087
1087
  } catch (c) {
1088
1088
  return console.error("Failed to create root:", c), {
1089
1089
  destroy: () => {
@@ -1100,17 +1100,17 @@ function wn(n, e) {
1100
1100
  ce && ce.render(/* @__PURE__ */ p.jsx(n, { ...c }));
1101
1101
  }, l = (c) => {
1102
1102
  r = typeof c == "function" ? c(r) : { ...r, ...c }, o(r);
1103
- }, d = (c) => {
1103
+ }, f = (c) => {
1104
1104
  r.open ? (r = {
1105
1105
  ...r,
1106
1106
  open: !1,
1107
- onClosed: (f) => {
1108
- e.onClosed && e.onClosed(f || c), a(f || c);
1107
+ onClosed: (d) => {
1108
+ e.onClosed && e.onClosed(d || c), a(d || c);
1109
1109
  }
1110
1110
  }, o(r)) : console.warn("Modal is already closed.");
1111
1111
  };
1112
1112
  return o(r), {
1113
- destroy: d,
1113
+ destroy: f,
1114
1114
  update: l
1115
1115
  };
1116
1116
  }
@@ -1126,24 +1126,24 @@ const Rs = () => {
1126
1126
  } else
1127
1127
  e && (r = `${n}-${e}`);
1128
1128
  return r;
1129
- }, Ss = (n, e) => {
1129
+ }, Cs = (n, e) => {
1130
1130
  const t = e == null ? void 0 : e.split(".");
1131
1131
  let r = n;
1132
1132
  for (const i of t)
1133
1133
  r = r[i];
1134
1134
  return r;
1135
- }, xn = (n) => {
1135
+ }, Sn = (n) => {
1136
1136
  for (const e in n)
1137
1137
  n[e] === null && delete n[e];
1138
1138
  return n;
1139
- }, sr = (n, e) => {
1139
+ }, ar = (n, e) => {
1140
1140
  let t = null;
1141
1141
  return (...r) => {
1142
1142
  t && clearTimeout(t), t = setTimeout(() => {
1143
1143
  n(...r);
1144
1144
  }, e);
1145
1145
  };
1146
- }, Cs = (n, e) => {
1146
+ }, _s = (n, e) => {
1147
1147
  let t = null, r = 0;
1148
1148
  return (...i) => {
1149
1149
  const a = Date.now();
@@ -1152,7 +1152,7 @@ const Rs = () => {
1152
1152
  }, e));
1153
1153
  };
1154
1154
  };
1155
- class _s {
1155
+ class Es {
1156
1156
  /**
1157
1157
  * 验证版本号格式是否有效
1158
1158
  * @param version 版本号字符串
@@ -1170,12 +1170,12 @@ class _s {
1170
1170
  static compare(e, t) {
1171
1171
  if (!this.isValid(e) || !this.isValid(t))
1172
1172
  throw new Error("Invalid version format");
1173
- const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1174
- for (let d = 0; d < 3; d++) {
1175
- const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
1176
- if (c > f)
1173
+ const r = (f) => f.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1174
+ for (let f = 0; f < 3; f++) {
1175
+ const c = parseInt(i[f] || "0", 10), d = parseInt(a[f] || "0", 10);
1176
+ if (c > d)
1177
1177
  return 1;
1178
- if (c < f)
1178
+ if (c < d)
1179
1179
  return -1;
1180
1180
  }
1181
1181
  const o = e.match(/-(.+)/), l = t.match(/-(.+)/);
@@ -1195,10 +1195,10 @@ class _s {
1195
1195
  const o = a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
1196
1196
  if (!o)
1197
1197
  return !1;
1198
- const l = o[1] || "==", d = o[2];
1199
- if (!this.isValid(d))
1198
+ const l = o[1] || "==", f = o[2];
1199
+ if (!this.isValid(f))
1200
1200
  return !1;
1201
- const c = this.compare(e, d);
1201
+ const c = this.compare(e, f);
1202
1202
  switch (l) {
1203
1203
  case ">":
1204
1204
  return c > 0;
@@ -1209,9 +1209,9 @@ class _s {
1209
1209
  case "<=":
1210
1210
  return c <= 0;
1211
1211
  case "^":
1212
- return this.caretRange(e, d);
1212
+ return this.caretRange(e, f);
1213
1213
  case "~":
1214
- return this.tildeRange(e, d);
1214
+ return this.tildeRange(e, f);
1215
1215
  case "=":
1216
1216
  case "==":
1217
1217
  default:
@@ -1234,8 +1234,8 @@ class _s {
1234
1234
  break;
1235
1235
  }
1236
1236
  for (let l = 0; l <= o; l++) {
1237
- const d = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
1238
- if (d !== c)
1237
+ const f = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
1238
+ if (f !== c)
1239
1239
  return !1;
1240
1240
  }
1241
1241
  return this.compare(e, t) >= 0;
@@ -1247,10 +1247,10 @@ class _s {
1247
1247
  * @returns 是否匹配
1248
1248
  */
1249
1249
  static tildeRange(e, t) {
1250
- const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1251
- for (let d = 0; d < a.length - 1; d++) {
1252
- const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
1253
- if (c !== f)
1250
+ const r = (f) => f.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1251
+ for (let f = 0; f < a.length - 1; f++) {
1252
+ const c = parseInt(i[f] || "0", 10), d = parseInt(a[f] || "0", 10);
1253
+ if (c !== d)
1254
1254
  return !1;
1255
1255
  }
1256
1256
  const o = parseInt(i[a.length - 1] || "0", 10), l = parseInt(a[a.length - 1] || "0", 10);
@@ -1312,20 +1312,20 @@ class _s {
1312
1312
  return t ? t[1] : null;
1313
1313
  }
1314
1314
  }
1315
- const ar = Qt({
1315
+ const ir = Qt({
1316
1316
  theme: {
1317
1317
  cssVar: !0,
1318
1318
  algorithm: [Ie.defaultAlgorithm]
1319
1319
  }
1320
- }), Es = ar.Provider;
1320
+ }), js = ir.Provider;
1321
1321
  function Rn() {
1322
- return er(ar);
1322
+ return er(ir);
1323
1323
  }
1324
1324
  function ve(n) {
1325
1325
  const { theme: e } = Rn();
1326
- return /* @__PURE__ */ p.jsx(tr, { theme: e, children: n.children });
1326
+ return /* @__PURE__ */ p.jsx(rr, { theme: e, children: n.children });
1327
1327
  }
1328
- const Ht = (n = "") => He("items-row", n), Sn = (n) => n.items ? /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ht()} ${n.className || ""}`, style: n.style, children: (n.items || []).map((e, t) => {
1328
+ const Ht = (n = "") => He("items-row", n), Cn = (n) => n.items ? /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ht()} ${n.className || ""}`, style: n.style, children: (n.items || []).map((e, t) => {
1329
1329
  const r = `${Ht("item")} ${e.className}`;
1330
1330
  return e.render ? /* @__PURE__ */ p.jsx("span", { className: r, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
1331
1331
  ke,
@@ -1339,7 +1339,7 @@ const Ht = (n = "") => He("items-row", n), Sn = (n) => n.items ? /* @__PURE__ */
1339
1339
  e.label
1340
1340
  );
1341
1341
  }) }) }) : null;
1342
- const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1342
+ const Ee = (n = "") => He("m-breadcrumb", n), ks = (n) => {
1343
1343
  const {
1344
1344
  routes: e,
1345
1345
  customItems: t,
@@ -1348,37 +1348,37 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1348
1348
  offsetTop: a = 64,
1349
1349
  mainAppBaseUrl: o,
1350
1350
  microAppName: l
1351
- } = n, d = F.useRef(null), c = F.useCallback(() => {
1352
- var g, v;
1353
- (v = (g = d.current) == null ? void 0 : g.updatePosition) == null || v.call(g);
1351
+ } = n, f = q.useRef(null), c = q.useCallback(() => {
1352
+ var g, y;
1353
+ (y = (g = f.current) == null ? void 0 : g.updatePosition) == null || y.call(g);
1354
1354
  }, []);
1355
- F.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
1356
- const f = F.useCallback(
1355
+ q.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
1356
+ const d = q.useCallback(
1357
1357
  (g) => {
1358
1358
  if (!g)
1359
1359
  return "";
1360
- const v = g.replace(/^\/+/, "");
1360
+ const y = g.replace(/^\/+/, "");
1361
1361
  return `/${[
1362
1362
  o == null ? void 0 : o.replace(/\/+$/, ""),
1363
1363
  l == null ? void 0 : l.replace(/\/+$/, ""),
1364
- v
1364
+ y
1365
1365
  ].filter(Boolean).join("/")}`;
1366
1366
  },
1367
1367
  [o, l]
1368
1368
  );
1369
- return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Xr, { ref: d, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
1370
- rr,
1369
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Xr, { ref: f, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
1370
+ nr,
1371
1371
  {
1372
1372
  className: Ee("container"),
1373
1373
  rootClassName: Ee("body"),
1374
1374
  variant: "borderless",
1375
1375
  children: [
1376
- /* @__PURE__ */ p.jsx(zt, { className: Ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((g) => /* @__PURE__ */ p.jsx(zt.Item, { children: g.url ? /* @__PURE__ */ p.jsx("a", { href: `#${f(g.url)}`, children: g.name }) : g.name }, g.url || g.name)) }),
1377
- /* @__PURE__ */ p.jsx("div", { className: Ee("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(Sn, { items: t }) })
1376
+ /* @__PURE__ */ p.jsx(zt, { className: Ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((g) => /* @__PURE__ */ p.jsx(zt.Item, { children: g.url ? /* @__PURE__ */ p.jsx("a", { href: `#${d(g.url)}`, children: g.name }) : g.name }, g.url || g.name)) }),
1377
+ /* @__PURE__ */ p.jsx("div", { className: Ee("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(Cn, { items: t }) })
1378
1378
  ]
1379
1379
  }
1380
1380
  ) }) }) });
1381
- }, Cn = (n) => {
1381
+ }, _n = (n) => {
1382
1382
  const {
1383
1383
  data: e,
1384
1384
  title: t,
@@ -1387,20 +1387,20 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1387
1387
  align: a = "left",
1388
1388
  itemLayout: o,
1389
1389
  colon: l = !0,
1390
- bordered: d = !1,
1390
+ bordered: f = !1,
1391
1391
  style: c,
1392
- className: f,
1392
+ className: d,
1393
1393
  labelStyle: g,
1394
- contentStyle: v
1394
+ contentStyle: y
1395
1395
  } = n, j = {
1396
1396
  ...i ? { lineHeight: `${i}px` } : {},
1397
1397
  textAlign: a,
1398
1398
  ...o != null && o.label ? { width: `${o.label}px` } : {},
1399
1399
  ...g
1400
- }, N = {
1400
+ }, $ = {
1401
1401
  ...i ? { lineHeight: `${i}px` } : {},
1402
1402
  ...o != null && o.value ? { width: `${o.value}px` } : {},
1403
- ...v
1403
+ ...y
1404
1404
  };
1405
1405
  return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
1406
1406
  It,
@@ -1408,29 +1408,29 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1408
1408
  title: t,
1409
1409
  column: r,
1410
1410
  colon: l,
1411
- bordered: d,
1411
+ bordered: f,
1412
1412
  style: c,
1413
- className: f,
1413
+ className: d,
1414
1414
  labelStyle: j,
1415
- contentStyle: N,
1416
- children: e.map((T, H) => {
1417
- var O;
1415
+ contentStyle: $,
1416
+ children: e.map((N, I) => {
1417
+ var P;
1418
1418
  return /* @__PURE__ */ p.jsx(
1419
1419
  It.Item,
1420
1420
  {
1421
- label: T.label,
1422
- span: T.span,
1423
- children: T.value || "-"
1421
+ label: N.label,
1422
+ span: N.span,
1423
+ children: N.value || "-"
1424
1424
  },
1425
- ((O = T.label) == null ? void 0 : O.toString()) || H
1425
+ ((P = N.label) == null ? void 0 : P.toString()) || I
1426
1426
  );
1427
1427
  })
1428
1428
  }
1429
1429
  ) });
1430
1430
  };
1431
- Cn.displayName = "MDescriptions";
1432
- const _n = /* @__PURE__ */ Qt({}), ir = _n;
1433
- var or = { exports: {} };
1431
+ _n.displayName = "MDescriptions";
1432
+ const En = /* @__PURE__ */ Qt({}), or = En;
1433
+ var cr = { exports: {} };
1434
1434
  /*!
1435
1435
  Copyright (c) 2018 Jed Watson.
1436
1436
  Licensed under the MIT License (MIT), see
@@ -1465,9 +1465,9 @@ var or = { exports: {} };
1465
1465
  }
1466
1466
  n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
1467
1467
  })();
1468
- })(or);
1469
- var En = or.exports;
1470
- const jn = /* @__PURE__ */ gn(En), kn = {
1468
+ })(cr);
1469
+ var jn = cr.exports;
1470
+ const kn = /* @__PURE__ */ pn(jn), On = {
1471
1471
  aliceblue: "9ehhb",
1472
1472
  antiquewhite: "9sgk7",
1473
1473
  aqua: "1ekf",
@@ -1616,7 +1616,7 @@ const jn = /* @__PURE__ */ gn(En), kn = {
1616
1616
  whitesmoke: "9lhpx",
1617
1617
  yellow: "9zl6o",
1618
1618
  yellowgreen: "61fzm"
1619
- }, A = Math.round;
1619
+ }, M = Math.round;
1620
1620
  function tt(n, e) {
1621
1621
  const t = n.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], r = t.map((i) => parseFloat(i));
1622
1622
  for (let i = 0; i < 3; i += 1)
@@ -1677,7 +1677,7 @@ class pe {
1677
1677
  else if (i("hsv") || i("hsb"))
1678
1678
  this.fromHsvString(r);
1679
1679
  else {
1680
- const a = kn[r.toLowerCase()];
1680
+ const a = On[r.toLowerCase()];
1681
1681
  a && this.fromHexString(
1682
1682
  // Convert 36 hex to 16 hex
1683
1683
  parseInt(a, 36).toString(16).padStart(6, "0")
@@ -1727,7 +1727,7 @@ class pe {
1727
1727
  getHue() {
1728
1728
  if (typeof this._h > "u") {
1729
1729
  const e = this.getMax() - this.getMin();
1730
- e === 0 ? this._h = 0 : this._h = A(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
1730
+ e === 0 ? this._h = 0 : this._h = M(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
1731
1731
  }
1732
1732
  return this._h;
1733
1733
  }
@@ -1779,10 +1779,10 @@ class pe {
1779
1779
  */
1780
1780
  mix(e, t = 50) {
1781
1781
  const r = this._c(e), i = t / 100, a = (l) => (r[l] - this[l]) * i + this[l], o = {
1782
- r: A(a("r")),
1783
- g: A(a("g")),
1784
- b: A(a("b")),
1785
- a: A(a("a") * 100) / 100
1782
+ r: M(a("r")),
1783
+ g: M(a("g")),
1784
+ b: M(a("b")),
1785
+ a: M(a("a") * 100) / 100
1786
1786
  };
1787
1787
  return this._c(o);
1788
1788
  }
@@ -1811,7 +1811,7 @@ class pe {
1811
1811
  }, e);
1812
1812
  }
1813
1813
  onBackground(e) {
1814
- const t = this._c(e), r = this.a + t.a * (1 - this.a), i = (a) => A((this[a] * this.a + t[a] * t.a * (1 - this.a)) / r);
1814
+ const t = this._c(e), r = this.a + t.a * (1 - this.a), i = (a) => M((this[a] * this.a + t[a] * t.a * (1 - this.a)) / r);
1815
1815
  return this._c({
1816
1816
  r: i("r"),
1817
1817
  g: i("g"),
@@ -1842,7 +1842,7 @@ class pe {
1842
1842
  e += r.length === 2 ? r : "0" + r;
1843
1843
  const i = (this.b || 0).toString(16);
1844
1844
  if (e += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
1845
- const a = A(this.a * 255).toString(16);
1845
+ const a = M(this.a * 255).toString(16);
1846
1846
  e += a.length === 2 ? a : "0" + a;
1847
1847
  }
1848
1848
  return e;
@@ -1858,7 +1858,7 @@ class pe {
1858
1858
  }
1859
1859
  /** CSS support color pattern */
1860
1860
  toHslString() {
1861
- const e = this.getHue(), t = A(this.getSaturation() * 100), r = A(this.getLightness() * 100);
1861
+ const e = this.getHue(), t = M(this.getSaturation() * 100), r = M(this.getLightness() * 100);
1862
1862
  return this.a !== 1 ? `hsla(${e},${t}%,${r}%,${this.a})` : `hsl(${e},${t}%,${r}%)`;
1863
1863
  }
1864
1864
  /** Same as toHsb */
@@ -1913,14 +1913,14 @@ class pe {
1913
1913
  a: i
1914
1914
  }) {
1915
1915
  if (this._h = e % 360, this._s = t, this._l = r, this.a = typeof i == "number" ? i : 1, t <= 0) {
1916
- const v = A(r * 255);
1917
- this.r = v, this.g = v, this.b = v;
1916
+ const y = M(r * 255);
1917
+ this.r = y, this.g = y, this.b = y;
1918
1918
  }
1919
1919
  let a = 0, o = 0, l = 0;
1920
- const d = e / 60, c = (1 - Math.abs(2 * r - 1)) * t, f = c * (1 - Math.abs(d % 2 - 1));
1921
- d >= 0 && d < 1 ? (a = c, o = f) : d >= 1 && d < 2 ? (a = f, o = c) : d >= 2 && d < 3 ? (o = c, l = f) : d >= 3 && d < 4 ? (o = f, l = c) : d >= 4 && d < 5 ? (a = f, l = c) : d >= 5 && d < 6 && (a = c, l = f);
1920
+ const f = e / 60, c = (1 - Math.abs(2 * r - 1)) * t, d = c * (1 - Math.abs(f % 2 - 1));
1921
+ f >= 0 && f < 1 ? (a = c, o = d) : f >= 1 && f < 2 ? (a = d, o = c) : f >= 2 && f < 3 ? (o = c, l = d) : f >= 3 && f < 4 ? (o = d, l = c) : f >= 4 && f < 5 ? (a = d, l = c) : f >= 5 && f < 6 && (a = c, l = d);
1922
1922
  const g = r - c / 2;
1923
- this.r = A((a + g) * 255), this.g = A((o + g) * 255), this.b = A((l + g) * 255);
1923
+ this.r = M((a + g) * 255), this.g = M((o + g) * 255), this.b = M((l + g) * 255);
1924
1924
  }
1925
1925
  fromHsv({
1926
1926
  h: e,
@@ -1929,29 +1929,29 @@ class pe {
1929
1929
  a: i
1930
1930
  }) {
1931
1931
  this._h = e % 360, this._s = t, this._v = r, this.a = typeof i == "number" ? i : 1;
1932
- const a = A(r * 255);
1932
+ const a = M(r * 255);
1933
1933
  if (this.r = a, this.g = a, this.b = a, t <= 0)
1934
1934
  return;
1935
- const o = e / 60, l = Math.floor(o), d = o - l, c = A(r * (1 - t) * 255), f = A(r * (1 - t * d) * 255), g = A(r * (1 - t * (1 - d)) * 255);
1935
+ const o = e / 60, l = Math.floor(o), f = o - l, c = M(r * (1 - t) * 255), d = M(r * (1 - t * f) * 255), g = M(r * (1 - t * (1 - f)) * 255);
1936
1936
  switch (l) {
1937
1937
  case 0:
1938
1938
  this.g = g, this.b = c;
1939
1939
  break;
1940
1940
  case 1:
1941
- this.r = f, this.b = c;
1941
+ this.r = d, this.b = c;
1942
1942
  break;
1943
1943
  case 2:
1944
1944
  this.r = c, this.b = g;
1945
1945
  break;
1946
1946
  case 3:
1947
- this.r = c, this.g = f;
1947
+ this.r = c, this.g = d;
1948
1948
  break;
1949
1949
  case 4:
1950
1950
  this.r = g, this.g = c;
1951
1951
  break;
1952
1952
  case 5:
1953
1953
  default:
1954
- this.g = c, this.b = f;
1954
+ this.g = c, this.b = d;
1955
1955
  break;
1956
1956
  }
1957
1957
  }
@@ -1976,12 +1976,12 @@ class pe {
1976
1976
  fromRgbString(e) {
1977
1977
  const t = tt(e, (r, i) => (
1978
1978
  // Convert percentage to number. e.g. 50% -> 128
1979
- i.includes("%") ? A(r / 100 * 255) : r
1979
+ i.includes("%") ? M(r / 100 * 255) : r
1980
1980
  ));
1981
1981
  this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
1982
1982
  }
1983
1983
  }
1984
- const Ae = 2, qt = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, cr = 5, lr = 4, Dn = [{
1984
+ const Me = 2, qt = 0.16, $n = 0.05, Nn = 0.05, Dn = 0.15, lr = 5, ur = 4, Pn = [{
1985
1985
  index: 7,
1986
1986
  amount: 15
1987
1987
  }, {
@@ -2014,21 +2014,21 @@ const Ae = 2, qt = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, cr = 5, lr = 4, Dn = [
2014
2014
  }];
2015
2015
  function Ft(n, e, t) {
2016
2016
  let r;
2017
- return Math.round(n.h) >= 60 && Math.round(n.h) <= 240 ? r = t ? Math.round(n.h) - Ae * e : Math.round(n.h) + Ae * e : r = t ? Math.round(n.h) + Ae * e : Math.round(n.h) - Ae * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
2017
+ return Math.round(n.h) >= 60 && Math.round(n.h) <= 240 ? r = t ? Math.round(n.h) - Me * e : Math.round(n.h) + Me * e : r = t ? Math.round(n.h) + Me * e : Math.round(n.h) - Me * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
2018
2018
  }
2019
2019
  function Ut(n, e, t) {
2020
2020
  if (n.h === 0 && n.s === 0)
2021
2021
  return n.s;
2022
2022
  let r;
2023
- return t ? r = n.s - qt * e : e === lr ? r = n.s + qt : r = n.s + On * e, r > 1 && (r = 1), t && e === cr && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
2023
+ return t ? r = n.s - qt * e : e === ur ? r = n.s + qt : r = n.s + $n * e, r > 1 && (r = 1), t && e === lr && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
2024
2024
  }
2025
2025
  function Bt(n, e, t) {
2026
2026
  let r;
2027
- return t ? r = n.v + $n * e : r = n.v - Nn * e, r = Math.max(0, Math.min(1, r)), Math.round(r * 100) / 100;
2027
+ return t ? r = n.v + Nn * e : r = n.v - Dn * e, r = Math.max(0, Math.min(1, r)), Math.round(r * 100) / 100;
2028
2028
  }
2029
- function Pn(n, e = {}) {
2029
+ function Tn(n, e = {}) {
2030
2030
  const t = [], r = new pe(n), i = r.toHsv();
2031
- for (let a = cr; a > 0; a -= 1) {
2031
+ for (let a = lr; a > 0; a -= 1) {
2032
2032
  const o = new pe({
2033
2033
  h: Ft(i, a, !0),
2034
2034
  s: Ut(i, a, !0),
@@ -2037,7 +2037,7 @@ function Pn(n, e = {}) {
2037
2037
  t.push(o);
2038
2038
  }
2039
2039
  t.push(r);
2040
- for (let a = 1; a <= lr; a += 1) {
2040
+ for (let a = 1; a <= ur; a += 1) {
2041
2041
  const o = new pe({
2042
2042
  h: Ft(i, a),
2043
2043
  s: Ut(i, a),
@@ -2045,14 +2045,14 @@ function Pn(n, e = {}) {
2045
2045
  });
2046
2046
  t.push(o);
2047
2047
  }
2048
- return e.theme === "dark" ? Dn.map(({
2048
+ return e.theme === "dark" ? Pn.map(({
2049
2049
  index: a,
2050
2050
  amount: o
2051
2051
  }) => new pe(e.backgroundColor || "#141414").mix(t[a], o).toHexString()) : t.map((a) => a.toHexString());
2052
2052
  }
2053
2053
  const lt = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
2054
2054
  lt.primary = lt[5];
2055
- function Tn() {
2055
+ function An() {
2056
2056
  return !!(typeof window < "u" && window.document && window.document.createElement);
2057
2057
  }
2058
2058
  function Mn(n, e) {
@@ -2068,56 +2068,56 @@ function Mn(n, e) {
2068
2068
  }
2069
2069
  return !1;
2070
2070
  }
2071
- const Wt = "data-rc-order", Zt = "data-rc-priority", An = "rc-util-key", ut = /* @__PURE__ */ new Map();
2072
- function ur({
2071
+ const Wt = "data-rc-order", Zt = "data-rc-priority", zn = "rc-util-key", ut = /* @__PURE__ */ new Map();
2072
+ function fr({
2073
2073
  mark: n
2074
2074
  } = {}) {
2075
- return n ? n.startsWith("data-") ? n : `data-${n}` : An;
2075
+ return n ? n.startsWith("data-") ? n : `data-${n}` : zn;
2076
2076
  }
2077
2077
  function bt(n) {
2078
2078
  return n.attachTo ? n.attachTo : document.querySelector("head") || document.body;
2079
2079
  }
2080
- function zn(n) {
2080
+ function In(n) {
2081
2081
  return n === "queue" ? "prependQueue" : n ? "prepend" : "append";
2082
2082
  }
2083
2083
  function vt(n) {
2084
2084
  return Array.from((ut.get(n) || n).children).filter((e) => e.tagName === "STYLE");
2085
2085
  }
2086
2086
  function dr(n, e = {}) {
2087
- if (!Tn())
2087
+ if (!An())
2088
2088
  return null;
2089
2089
  const {
2090
2090
  csp: t,
2091
2091
  prepend: r,
2092
2092
  priority: i = 0
2093
- } = e, a = zn(r), o = a === "prependQueue", l = document.createElement("style");
2093
+ } = e, a = In(r), o = a === "prependQueue", l = document.createElement("style");
2094
2094
  l.setAttribute(Wt, a), o && i && l.setAttribute(Zt, `${i}`), t != null && t.nonce && (l.nonce = t == null ? void 0 : t.nonce), l.innerHTML = n;
2095
- const d = bt(e), {
2095
+ const f = bt(e), {
2096
2096
  firstChild: c
2097
- } = d;
2097
+ } = f;
2098
2098
  if (r) {
2099
2099
  if (o) {
2100
- const f = (e.styles || vt(d)).filter((g) => {
2100
+ const d = (e.styles || vt(f)).filter((g) => {
2101
2101
  if (!["prepend", "prependQueue"].includes(g.getAttribute(Wt)))
2102
2102
  return !1;
2103
- const v = Number(g.getAttribute(Zt) || 0);
2104
- return i >= v;
2103
+ const y = Number(g.getAttribute(Zt) || 0);
2104
+ return i >= y;
2105
2105
  });
2106
- if (f.length)
2107
- return d.insertBefore(l, f[f.length - 1].nextSibling), l;
2106
+ if (d.length)
2107
+ return f.insertBefore(l, d[d.length - 1].nextSibling), l;
2108
2108
  }
2109
- d.insertBefore(l, c);
2109
+ f.insertBefore(l, c);
2110
2110
  } else
2111
- d.appendChild(l);
2111
+ f.appendChild(l);
2112
2112
  return l;
2113
2113
  }
2114
- function In(n, e = {}) {
2114
+ function Yn(n, e = {}) {
2115
2115
  let {
2116
2116
  styles: t
2117
2117
  } = e;
2118
- return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(ur(e)) === n);
2118
+ return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(fr(e)) === n);
2119
2119
  }
2120
- function Yn(n, e) {
2120
+ function Ln(n, e) {
2121
2121
  const t = ut.get(n);
2122
2122
  if (!t || !Mn(document, t)) {
2123
2123
  const r = dr("", e), {
@@ -2126,64 +2126,64 @@ function Yn(n, e) {
2126
2126
  ut.set(n, i), n.removeChild(r);
2127
2127
  }
2128
2128
  }
2129
- function Ln(n, e, t = {}) {
2130
- var d, c, f;
2129
+ function Hn(n, e, t = {}) {
2130
+ var f, c, d;
2131
2131
  const r = bt(t), i = vt(r), a = {
2132
2132
  ...t,
2133
2133
  styles: i
2134
2134
  };
2135
- Yn(r, a);
2136
- const o = In(e, a);
2135
+ Ln(r, a);
2136
+ const o = Yn(e, a);
2137
2137
  if (o)
2138
- return (d = a.csp) != null && d.nonce && o.nonce !== ((c = a.csp) == null ? void 0 : c.nonce) && (o.nonce = (f = a.csp) == null ? void 0 : f.nonce), o.innerHTML !== n && (o.innerHTML = n), o;
2138
+ return (f = a.csp) != null && f.nonce && o.nonce !== ((c = a.csp) == null ? void 0 : c.nonce) && (o.nonce = (d = a.csp) == null ? void 0 : d.nonce), o.innerHTML !== n && (o.innerHTML = n), o;
2139
2139
  const l = dr(n, a);
2140
- return l.setAttribute(ur(a), e), l;
2140
+ return l.setAttribute(fr(a), e), l;
2141
2141
  }
2142
- function fr(n) {
2142
+ function hr(n) {
2143
2143
  var e;
2144
2144
  return (e = n == null ? void 0 : n.getRootNode) == null ? void 0 : e.call(n);
2145
2145
  }
2146
- function Hn(n) {
2147
- return fr(n) instanceof ShadowRoot;
2148
- }
2149
2146
  function Vn(n) {
2150
- return Hn(n) ? fr(n) : null;
2147
+ return hr(n) instanceof ShadowRoot;
2151
2148
  }
2152
- let dt = {};
2153
- const yt = [], qn = (n) => {
2149
+ function qn(n) {
2150
+ return Vn(n) ? hr(n) : null;
2151
+ }
2152
+ let ft = {};
2153
+ const yt = [], Fn = (n) => {
2154
2154
  yt.push(n);
2155
2155
  };
2156
- function Fn(n, e) {
2156
+ function Un(n, e) {
2157
2157
  if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
2158
2158
  const t = yt.reduce((r, i) => i(r ?? "", "warning"), e);
2159
2159
  t && console.error(`Warning: ${t}`);
2160
2160
  }
2161
2161
  }
2162
- function Un(n, e) {
2162
+ function Bn(n, e) {
2163
2163
  if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
2164
2164
  const t = yt.reduce((r, i) => i(r ?? "", "note"), e);
2165
2165
  t && console.warn(`Note: ${t}`);
2166
2166
  }
2167
2167
  }
2168
- function Bn() {
2169
- dt = {};
2168
+ function Wn() {
2169
+ ft = {};
2170
2170
  }
2171
- function hr(n, e, t) {
2172
- !e && !dt[t] && (n(!1, t), dt[t] = !0);
2171
+ function gr(n, e, t) {
2172
+ !e && !ft[t] && (n(!1, t), ft[t] = !0);
2173
2173
  }
2174
2174
  function Ve(n, e) {
2175
- hr(Fn, n, e);
2175
+ gr(Un, n, e);
2176
2176
  }
2177
- function Wn(n, e) {
2178
- hr(Un, n, e);
2177
+ function Zn(n, e) {
2178
+ gr(Bn, n, e);
2179
2179
  }
2180
- Ve.preMessage = qn;
2181
- Ve.resetWarned = Bn;
2182
- Ve.noteOnce = Wn;
2183
- function Zn(n) {
2180
+ Ve.preMessage = Fn;
2181
+ Ve.resetWarned = Wn;
2182
+ Ve.noteOnce = Zn;
2183
+ function Gn(n) {
2184
2184
  return n.replace(/-(.)/g, (e, t) => t.toUpperCase());
2185
2185
  }
2186
- function Gn(n, e) {
2186
+ function Jn(n, e) {
2187
2187
  Ve(n, `[@ant-design/icons] ${e}`);
2188
2188
  }
2189
2189
  function Gt(n) {
@@ -2197,28 +2197,28 @@ function Jt(n = {}) {
2197
2197
  e.className = r, delete e.class;
2198
2198
  break;
2199
2199
  default:
2200
- delete e[t], e[Zn(t)] = r;
2200
+ delete e[t], e[Gn(t)] = r;
2201
2201
  }
2202
2202
  return e;
2203
2203
  }, {});
2204
2204
  }
2205
- function ft(n, e, t) {
2205
+ function dt(n, e, t) {
2206
2206
  return t ? /* @__PURE__ */ Ye.createElement(n.tag, {
2207
2207
  key: e,
2208
2208
  ...Jt(n.attrs),
2209
2209
  ...t
2210
- }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
2210
+ }, (n.children || []).map((r, i) => dt(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
2211
2211
  key: e,
2212
2212
  ...Jt(n.attrs)
2213
- }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`)));
2214
- }
2215
- function gr(n) {
2216
- return Pn(n)[0];
2213
+ }, (n.children || []).map((r, i) => dt(r, `${e}-${n.tag}-${i}`)));
2217
2214
  }
2218
2215
  function pr(n) {
2216
+ return Tn(n)[0];
2217
+ }
2218
+ function mr(n) {
2219
2219
  return n ? Array.isArray(n) ? n : [n] : [];
2220
2220
  }
2221
- const Jn = `
2221
+ const Kn = `
2222
2222
  .anticon {
2223
2223
  display: inline-flex;
2224
2224
  align-items: center;
@@ -2274,18 +2274,18 @@ const Jn = `
2274
2274
  transform: rotate(360deg);
2275
2275
  }
2276
2276
  }
2277
- `, Kn = (n) => {
2277
+ `, Xn = (n) => {
2278
2278
  const {
2279
2279
  csp: e,
2280
2280
  prefixCls: t,
2281
2281
  layer: r
2282
- } = er(ir);
2283
- let i = Jn;
2282
+ } = er(or);
2283
+ let i = Kn;
2284
2284
  t && (i = i.replace(/anticon/g, t)), r && (i = `@layer ${r} {
2285
2285
  ${i}
2286
2286
  }`), ae(() => {
2287
- const a = n.current, o = Vn(a);
2288
- Ln(i, "@ant-design-icons", {
2287
+ const a = n.current, o = qn(a);
2288
+ Hn(i, "@ant-design-icons", {
2289
2289
  prepend: !r,
2290
2290
  csp: e,
2291
2291
  attachTo: o
@@ -2296,13 +2296,13 @@ ${i}
2296
2296
  secondaryColor: "#E6E6E6",
2297
2297
  calculated: !1
2298
2298
  };
2299
- function Xn({
2299
+ function Qn({
2300
2300
  primaryColor: n,
2301
2301
  secondaryColor: e
2302
2302
  }) {
2303
- Oe.primaryColor = n, Oe.secondaryColor = e || gr(n), Oe.calculated = !!e;
2303
+ Oe.primaryColor = n, Oe.secondaryColor = e || pr(n), Oe.calculated = !!e;
2304
2304
  }
2305
- function Qn() {
2305
+ function es() {
2306
2306
  return {
2307
2307
  ...Oe
2308
2308
  };
@@ -2316,42 +2316,42 @@ const qe = (n) => {
2316
2316
  primaryColor: a,
2317
2317
  secondaryColor: o,
2318
2318
  ...l
2319
- } = n, d = F.useRef();
2319
+ } = n, f = q.useRef();
2320
2320
  let c = Oe;
2321
2321
  if (a && (c = {
2322
2322
  primaryColor: a,
2323
- secondaryColor: o || gr(a)
2324
- }), Kn(d), Gn(Gt(e), `icon should be icon definiton, but got ${e}`), !Gt(e))
2323
+ secondaryColor: o || pr(a)
2324
+ }), Xn(f), Jn(Gt(e), `icon should be icon definiton, but got ${e}`), !Gt(e))
2325
2325
  return null;
2326
- let f = e;
2327
- return f && typeof f.icon == "function" && (f = {
2328
- ...f,
2329
- icon: f.icon(c.primaryColor, c.secondaryColor)
2330
- }), ft(f.icon, `svg-${f.name}`, {
2326
+ let d = e;
2327
+ return d && typeof d.icon == "function" && (d = {
2328
+ ...d,
2329
+ icon: d.icon(c.primaryColor, c.secondaryColor)
2330
+ }), dt(d.icon, `svg-${d.name}`, {
2331
2331
  className: t,
2332
2332
  onClick: r,
2333
2333
  style: i,
2334
- "data-icon": f.name,
2334
+ "data-icon": d.name,
2335
2335
  width: "1em",
2336
2336
  height: "1em",
2337
2337
  fill: "currentColor",
2338
2338
  "aria-hidden": "true",
2339
2339
  ...l,
2340
- ref: d
2340
+ ref: f
2341
2341
  });
2342
2342
  };
2343
2343
  qe.displayName = "IconReact";
2344
- qe.getTwoToneColors = Qn;
2345
- qe.setTwoToneColors = Xn;
2344
+ qe.getTwoToneColors = es;
2345
+ qe.setTwoToneColors = Qn;
2346
2346
  const wt = qe;
2347
- function mr(n) {
2348
- const [e, t] = pr(n);
2347
+ function br(n) {
2348
+ const [e, t] = mr(n);
2349
2349
  return wt.setTwoToneColors({
2350
2350
  primaryColor: e,
2351
2351
  secondaryColor: t
2352
2352
  });
2353
2353
  }
2354
- function es() {
2354
+ function ts() {
2355
2355
  const n = wt.getTwoToneColors();
2356
2356
  return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
2357
2357
  }
@@ -2365,8 +2365,8 @@ function ht() {
2365
2365
  return n;
2366
2366
  }, ht.apply(this, arguments);
2367
2367
  }
2368
- mr(lt.primary);
2369
- const Fe = /* @__PURE__ */ F.forwardRef((n, e) => {
2368
+ br(lt.primary);
2369
+ const Fe = /* @__PURE__ */ q.forwardRef((n, e) => {
2370
2370
  const {
2371
2371
  // affect outter <i>...</i>
2372
2372
  className: t,
@@ -2377,42 +2377,42 @@ const Fe = /* @__PURE__ */ F.forwardRef((n, e) => {
2377
2377
  tabIndex: o,
2378
2378
  onClick: l,
2379
2379
  // other
2380
- twoToneColor: d,
2380
+ twoToneColor: f,
2381
2381
  ...c
2382
2382
  } = n, {
2383
- prefixCls: f = "anticon",
2383
+ prefixCls: d = "anticon",
2384
2384
  rootClassName: g
2385
- } = F.useContext(ir), v = jn(g, f, {
2386
- [`${f}-${r.name}`]: !!r.name,
2387
- [`${f}-spin`]: !!i || r.name === "loading"
2385
+ } = q.useContext(or), y = kn(g, d, {
2386
+ [`${d}-${r.name}`]: !!r.name,
2387
+ [`${d}-spin`]: !!i || r.name === "loading"
2388
2388
  }, t);
2389
2389
  let j = o;
2390
2390
  j === void 0 && l && (j = -1);
2391
- const N = a ? {
2391
+ const $ = a ? {
2392
2392
  msTransform: `rotate(${a}deg)`,
2393
2393
  transform: `rotate(${a}deg)`
2394
- } : void 0, [T, H] = pr(d);
2395
- return /* @__PURE__ */ F.createElement("span", ht({
2394
+ } : void 0, [N, I] = mr(f);
2395
+ return /* @__PURE__ */ q.createElement("span", ht({
2396
2396
  role: "img",
2397
2397
  "aria-label": r.name
2398
2398
  }, c, {
2399
2399
  ref: e,
2400
2400
  tabIndex: j,
2401
2401
  onClick: l,
2402
- className: v
2403
- }), /* @__PURE__ */ F.createElement(wt, {
2402
+ className: y
2403
+ }), /* @__PURE__ */ q.createElement(wt, {
2404
2404
  icon: r,
2405
- primaryColor: T,
2406
- secondaryColor: H,
2407
- style: N
2405
+ primaryColor: N,
2406
+ secondaryColor: I,
2407
+ style: $
2408
2408
  }));
2409
2409
  });
2410
2410
  Fe.displayName = "AntdIcon";
2411
- Fe.getTwoToneColor = es;
2412
- Fe.setTwoToneColor = mr;
2411
+ Fe.getTwoToneColor = ts;
2412
+ Fe.setTwoToneColor = br;
2413
2413
  const xt = Fe;
2414
- var ts = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
2415
- const rs = ts;
2414
+ var rs = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
2415
+ const ns = rs;
2416
2416
  function gt() {
2417
2417
  return gt = Object.assign ? Object.assign.bind() : function(n) {
2418
2418
  for (var e = 1; e < arguments.length; e++) {
@@ -2423,14 +2423,14 @@ function gt() {
2423
2423
  return n;
2424
2424
  }, gt.apply(this, arguments);
2425
2425
  }
2426
- const ns = (n, e) => /* @__PURE__ */ F.createElement(xt, gt({}, n, {
2426
+ const ss = (n, e) => /* @__PURE__ */ q.createElement(xt, gt({}, n, {
2427
2427
  ref: e,
2428
- icon: rs
2429
- })), br = /* @__PURE__ */ F.forwardRef(ns);
2430
- process.env.NODE_ENV !== "production" && (br.displayName = "CaretDownOutlined");
2431
- const ss = br;
2432
- var as = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
2433
- const is = as;
2428
+ icon: ns
2429
+ })), vr = /* @__PURE__ */ q.forwardRef(ss);
2430
+ process.env.NODE_ENV !== "production" && (vr.displayName = "CaretDownOutlined");
2431
+ const as = vr;
2432
+ var is = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
2433
+ const os = is;
2434
2434
  function pt() {
2435
2435
  return pt = Object.assign ? Object.assign.bind() : function(n) {
2436
2436
  for (var e = 1; e < arguments.length; e++) {
@@ -2441,14 +2441,14 @@ function pt() {
2441
2441
  return n;
2442
2442
  }, pt.apply(this, arguments);
2443
2443
  }
2444
- const os = (n, e) => /* @__PURE__ */ F.createElement(xt, pt({}, n, {
2444
+ const cs = (n, e) => /* @__PURE__ */ q.createElement(xt, pt({}, n, {
2445
2445
  ref: e,
2446
- icon: is
2447
- })), vr = /* @__PURE__ */ F.forwardRef(os);
2448
- process.env.NODE_ENV !== "production" && (vr.displayName = "CaretUpOutlined");
2449
- const cs = vr;
2450
- var ls = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
2451
- const us = ls;
2446
+ icon: os
2447
+ })), yr = /* @__PURE__ */ q.forwardRef(cs);
2448
+ process.env.NODE_ENV !== "production" && (yr.displayName = "CaretUpOutlined");
2449
+ const ls = yr;
2450
+ var us = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
2451
+ const fs = us;
2452
2452
  function mt() {
2453
2453
  return mt = Object.assign ? Object.assign.bind() : function(n) {
2454
2454
  for (var e = 1; e < arguments.length; e++) {
@@ -2459,14 +2459,14 @@ function mt() {
2459
2459
  return n;
2460
2460
  }, mt.apply(this, arguments);
2461
2461
  }
2462
- const ds = (n, e) => /* @__PURE__ */ F.createElement(xt, mt({}, n, {
2462
+ const ds = (n, e) => /* @__PURE__ */ q.createElement(xt, mt({}, n, {
2463
2463
  ref: e,
2464
- icon: us
2465
- })), yr = /* @__PURE__ */ F.forwardRef(ds);
2466
- process.env.NODE_ENV !== "production" && (yr.displayName = "UploadOutlined");
2467
- const fs = yr;
2464
+ icon: fs
2465
+ })), wr = /* @__PURE__ */ q.forwardRef(ds);
2466
+ process.env.NODE_ENV !== "production" && (wr.displayName = "UploadOutlined");
2467
+ const hs = wr;
2468
2468
  var W = /* @__PURE__ */ ((n) => (n.Input = "input", n.InputNumber = "inputNumber", n.Text = "text", n.Password = "password", n.Radio = "radio", n.Select = "select", n.Checkbox = "checkbox", n.DatePicker = "datePicker", n.RangePicker = "rangePicker", n.Upload = "upload", n.Mentions = "mentions", n.Cascader = "cascader", n.TreeSelect = "treeSelect", n))(W || {});
2469
- const { RangePicker: hs } = nr, C = class C {
2469
+ const { RangePicker: gs } = sr, C = class C {
2470
2470
  static getDefaultArrayPlaceholder(e) {
2471
2471
  let t;
2472
2472
  switch (e.type) {
@@ -2535,14 +2535,14 @@ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRo
2535
2535
  placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2536
2536
  }
2537
2537
  )), m(C, "datePicker", (e) => /* @__PURE__ */ p.jsx(
2538
- nr,
2538
+ sr,
2539
2539
  {
2540
2540
  disabled: e.disabled,
2541
2541
  ...e.props,
2542
2542
  placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2543
2543
  }
2544
2544
  )), m(C, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
2545
- hs,
2545
+ gs,
2546
2546
  {
2547
2547
  disabled: e.disabled,
2548
2548
  ...e.props,
@@ -2556,7 +2556,7 @@ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRo
2556
2556
  placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2557
2557
  }
2558
2558
  )), m(C, "radio", (e) => /* @__PURE__ */ p.jsx(tn.Group, { disabled: e.disabled, ...e.props })), m(C, "checkbox", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(C, "upload", (e) => /* @__PURE__ */ p.jsx(nn, { ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(ke, { children: [
2559
- /* @__PURE__ */ p.jsx(fs, {}),
2559
+ /* @__PURE__ */ p.jsx(hs, {}),
2560
2560
  " 点击上传"
2561
2561
  ] }) })), m(C, "mentions", (e) => /* @__PURE__ */ p.jsx(
2562
2562
  sn,
@@ -2579,36 +2579,40 @@ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRo
2579
2579
  ));
2580
2580
  let me = C;
2581
2581
  const rt = (n = "") => He("m-form", n);
2582
- function wr(n) {
2583
- const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, f) => {
2582
+ function xr(n) {
2583
+ const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, d) => {
2584
2584
  if (c.render)
2585
- return c.render(f);
2585
+ return c.render(d);
2586
2586
  const g = me[c.type];
2587
2587
  return c && c.type && g ? g(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
2588
- }, d = (c) => {
2589
- const { show: f = !0 } = c;
2590
- if (!f)
2588
+ }, f = (c) => {
2589
+ const { show: d = !0 } = c;
2590
+ if (!d)
2591
2591
  return null;
2592
2592
  const g = [...c.rules || []];
2593
2593
  c.required && g.push({ required: !0, message: c.required });
2594
- const v = {
2594
+ const y = {
2595
2595
  labelCol: me.labelCol,
2596
2596
  wrapperCol: me.wrapperCol,
2597
2597
  ...a,
2598
2598
  ...c.itemLayout
2599
2599
  };
2600
- return /* @__PURE__ */ p.jsx(ln, { span: c.span || 24 / r, children: /* @__PURE__ */ p.jsx("div", { className: rt("item-wrapper"), children: /* @__PURE__ */ p.jsx(
2601
- st.Item,
2602
- {
2603
- label: c.label,
2604
- name: c.id,
2605
- rules: g,
2606
- initialValue: c.initialValue,
2607
- ...v,
2608
- ...c.formItemProps,
2609
- children: l(c, i)
2610
- }
2611
- ) }) }, `col-${c.id}`);
2600
+ return /* @__PURE__ */ p.jsx(ln, { span: c.span || 24 / r, children: /* @__PURE__ */ p.jsxs(un, { className: rt("item-wrapper"), children: [
2601
+ c.prefix,
2602
+ /* @__PURE__ */ p.jsx(
2603
+ st.Item,
2604
+ {
2605
+ label: c.label,
2606
+ name: c.id,
2607
+ rules: g,
2608
+ initialValue: c.initialValue,
2609
+ ...y,
2610
+ ...c.formItemProps,
2611
+ children: l(c, i)
2612
+ }
2613
+ ),
2614
+ c.suffix
2615
+ ] }) }, `col-${c.id}`);
2612
2616
  };
2613
2617
  return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(st, { form: i, ...e, className: `${rt()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
2614
2618
  cn,
@@ -2616,11 +2620,11 @@ function wr(n) {
2616
2620
  gutter: me.defaultRowGutter,
2617
2621
  ...o,
2618
2622
  className: `${rt("grid")} ${o == null ? void 0 : o.className}`,
2619
- children: t.map((c) => d(c))
2623
+ children: t.map((c) => f(c))
2620
2624
  }
2621
2625
  ) }) });
2622
2626
  }
2623
- wr.displayName = "MForm";
2627
+ xr.displayName = "MForm";
2624
2628
  let nt = "default";
2625
2629
  const ze = [];
2626
2630
  let Kt = (n) => {
@@ -2639,7 +2643,7 @@ let Kt = (n) => {
2639
2643
  };
2640
2644
  }
2641
2645
  };
2642
- const be = class be extends Jr {
2646
+ const be = class be extends Kr {
2643
2647
  constructor() {
2644
2648
  super(...arguments);
2645
2649
  m(this, "handleCancel", (t) => {
@@ -2657,13 +2661,13 @@ const be = class be extends Jr {
2657
2661
  }
2658
2662
  render() {
2659
2663
  return /* @__PURE__ */ p.jsx(
2660
- tr,
2664
+ rr,
2661
2665
  {
2662
2666
  theme: this.getTheme(),
2663
2667
  componentSize: "middle",
2664
2668
  componentDisabled: !1,
2665
2669
  children: /* @__PURE__ */ p.jsx(
2666
- un,
2670
+ fn,
2667
2671
  {
2668
2672
  maskClosable: !1,
2669
2673
  open: this.props.open,
@@ -2688,7 +2692,7 @@ m(be, "setMode", (t) => {
2688
2692
  m(be, "setThemeConfig", (t) => {
2689
2693
  Kt = t;
2690
2694
  }), m(be, "open", (t) => {
2691
- const r = wn(be, {
2695
+ const r = xn(be, {
2692
2696
  mode: nt,
2693
2697
  // 默认使用全局主题
2694
2698
  ...t
@@ -2701,7 +2705,7 @@ m(be, "setThemeConfig", (t) => {
2701
2705
  }, r;
2702
2706
  });
2703
2707
  let Xt = be;
2704
- const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2708
+ const ps = 13, ne = (n = "") => He("m-search", n), Os = (n) => {
2705
2709
  const {
2706
2710
  className: e,
2707
2711
  searchItems: t = [],
@@ -2709,61 +2713,61 @@ const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2709
2713
  defaultShowAll: i = !1,
2710
2714
  customButtons: a = [],
2711
2715
  form: o
2712
- } = n, [l, d] = L(i), [c] = st.useForm(), f = G(null), g = o ?? c, v = (y) => {
2713
- const { keyCode: k } = y;
2714
- k === gs && N();
2716
+ } = n, [l, f] = H(i), [c] = st.useForm(), d = G(null), g = o ?? c, y = (v) => {
2717
+ const { keyCode: k } = v;
2718
+ k === ps && $();
2715
2719
  };
2716
2720
  ae(() => {
2717
- const y = f.current;
2718
- return y == null || y.addEventListener("keydown", v), () => {
2719
- y == null || y.removeEventListener("keydown", v);
2721
+ const v = d.current;
2722
+ return v == null || v.addEventListener("keydown", y), () => {
2723
+ v == null || v.removeEventListener("keydown", y);
2720
2724
  };
2721
2725
  }, []);
2722
2726
  const j = () => {
2723
- g == null || g.resetFields(), N(!0);
2724
- }, N = (y = !1) => {
2727
+ g == null || g.resetFields(), $(!0);
2728
+ }, $ = (v = !1) => {
2725
2729
  g == null || g.validateFields().then((k) => {
2726
- xn(k), r == null || r(k, y);
2730
+ Sn(k), r == null || r(k, v);
2727
2731
  });
2728
- }, T = () => {
2729
- const y = t.length > 2;
2730
- return /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
2731
- (a == null ? void 0 : a.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: a.map((k, V) => /* @__PURE__ */ p.jsx(ke, { className: ne("btn"), ...k, children: k.children }, `custom-btn-${V}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2732
- /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
2733
- /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-search"), onClick: () => N(), type: "primary", children: "搜索" })
2734
- ] }),
2735
- y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => d(!l), children: [
2736
- /* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
2737
- l ? /* @__PURE__ */ p.jsx(cs, {}) : /* @__PURE__ */ p.jsx(ss, {})
2738
- ] })
2739
- ] });
2740
- }, H = t.map((y, k) => {
2741
- var I;
2742
- const V = { ...y };
2743
- return t.length > 2 && k >= 2 && !l && (V.formItemProps = {
2744
- ...y.formItemProps,
2732
+ }, N = tr(
2733
+ () => (t == null ? void 0 : t.filter((v) => v.show != !1).length) > 2,
2734
+ [t]
2735
+ ), I = () => /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
2736
+ (a == null ? void 0 : a.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: a.map((v, k) => /* @__PURE__ */ p.jsx(ke, { className: ne("btn"), ...v, children: v.children }, `custom-btn-${k}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2737
+ /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
2738
+ /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-search"), onClick: () => $(), type: "primary", children: "搜索" })
2739
+ ] }),
2740
+ N && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => f(!l), children: [
2741
+ /* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
2742
+ l ? /* @__PURE__ */ p.jsx(ls, {}) : /* @__PURE__ */ p.jsx(as, {})
2743
+ ] })
2744
+ ] }), P = t.map((v, k) => {
2745
+ var Y;
2746
+ const F = { ...v };
2747
+ return t.length > 2 && k >= 2 && !l && (F.formItemProps = {
2748
+ ...v.formItemProps,
2745
2749
  style: {
2746
- ...(I = y.formItemProps) == null ? void 0 : I.style,
2750
+ ...(Y = v.formItemProps) == null ? void 0 : Y.style,
2747
2751
  display: "none"
2748
2752
  }
2749
- }), V;
2750
- }), O = t.length > 2;
2753
+ }), F;
2754
+ });
2751
2755
  return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
2752
2756
  "div",
2753
2757
  {
2754
2758
  className: `${ne("")} ${l ? "" : ne("collapsed")} ${e || ""}`,
2755
- ref: f,
2756
- children: /* @__PURE__ */ p.jsxs(rr, { children: [
2759
+ ref: d,
2760
+ children: /* @__PURE__ */ p.jsxs(nr, { children: [
2757
2761
  /* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
2758
- /* @__PURE__ */ p.jsx(wr, { form: g, formItems: H, column: 3 }),
2759
- (!O || O && !l) && T()
2762
+ /* @__PURE__ */ p.jsx(xr, { form: g, formItems: P, column: 3 }),
2763
+ (!N || N && !l) && I()
2760
2764
  ] }),
2761
- O && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: T() })
2765
+ N && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: I() })
2762
2766
  ] })
2763
2767
  }
2764
2768
  ) });
2765
2769
  };
2766
- function Os(n) {
2770
+ function $s(n) {
2767
2771
  var t;
2768
2772
  const e = ((t = n.columns) == null ? void 0 : t.map((r) => ({ ...r, dataIndex: r.key }))) ?? [];
2769
2773
  return /* @__PURE__ */ p.jsxs(ve, { children: [
@@ -2771,7 +2775,7 @@ function Os(n) {
2771
2775
  ";"
2772
2776
  ] });
2773
2777
  }
2774
- const $s = {
2778
+ const Ns = {
2775
2779
  YMD_Hms: "YYYY-MM-DD HH:mm:ss",
2776
2780
  YMD: "YYYY-MM-DD",
2777
2781
  YMD2: "YYYYMMDD",
@@ -2783,103 +2787,103 @@ const $s = {
2783
2787
  YMD_Hm: "YYYYMMDD HHmm",
2784
2788
  YMD_SLASH: "YYYY/MM/DD",
2785
2789
  YMD_SLASH_Hms: "YYYY/MM/DD HH:mm:ss"
2786
- }, ps = 10;
2787
- class $ {
2790
+ }, ms = 10;
2791
+ class O {
2788
2792
  }
2789
2793
  /**
2790
2794
  * 整数
2791
2795
  */
2792
- m($, "integerRegex", /^-?\d+$/), /**
2796
+ m(O, "integerRegex", /^-?\d+$/), /**
2793
2797
  * 正整数
2794
2798
  */
2795
- m($, "positiveIntegerRegex", /^[1-9]\d*$/), /**
2799
+ m(O, "positiveIntegerRegex", /^[1-9]\d*$/), /**
2796
2800
  * 负整数
2797
2801
  */
2798
- m($, "negativeIntegerRegex", /^-[1-9]\d*$/), /**
2802
+ m(O, "negativeIntegerRegex", /^-[1-9]\d*$/), /**
2799
2803
  * 浮点数
2800
2804
  */
2801
- m($, "floatRegex", /^-?\d+(\.\d+)?$/), /**
2805
+ m(O, "floatRegex", /^-?\d+(\.\d+)?$/), /**
2802
2806
  * 字母
2803
2807
  */
2804
- m($, "letter", /^[a-zA-Z]+$/), /**
2808
+ m(O, "letter", /^[a-zA-Z]+$/), /**
2805
2809
  * 汉字
2806
2810
  */
2807
- m($, "chinese", /^[\u4e00-\u9fa5]+$/), /**
2811
+ m(O, "chinese", /^[\u4e00-\u9fa5]+$/), /**
2808
2812
  * 数字
2809
2813
  */
2810
- m($, "number", /^[0-9]*$/), /**
2814
+ m(O, "number", /^[0-9]*$/), /**
2811
2815
  * 用户名 字母开头,允许字母数字下划线,长度4-16
2812
2816
  */
2813
- m($, "username", /^[a-zA-Z]\w{3,15}$/), /**
2817
+ m(O, "username", /^[a-zA-Z]\w{3,15}$/), /**
2814
2818
  * 强用户名 必须包含大小写字母和数字,6-20位
2815
2819
  */
2816
- m($, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), /**
2820
+ m(O, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), /**
2817
2821
  * 密码 至少8位,包含字母和数字
2818
2822
  */
2819
- m($, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), /**
2823
+ m(O, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), /**
2820
2824
  * 强密码 至少8位,包含大小写字母、数字和特殊字符
2821
2825
  */
2822
- m($, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), /**
2826
+ m(O, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), /**
2823
2827
  * 中国大陆的手机号
2824
2828
  */
2825
- m($, "phone", /^1[3-9]\d{9}$/), /**
2829
+ m(O, "phone", /^1[3-9]\d{9}$/), /**
2826
2830
  * 带区号的手机号
2827
2831
  */
2828
- m($, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), /**
2832
+ m(O, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), /**
2829
2833
  * 邮箱
2830
2834
  */
2831
- m($, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), /**
2835
+ m(O, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), /**
2832
2836
  * 身份证
2833
2837
  */
2834
- m($, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), /**
2838
+ m(O, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), /**
2835
2839
  * 银行卡
2836
2840
  */
2837
- m($, "bankCard", /^[1-9]\d{3,30}$/), /**
2841
+ m(O, "bankCard", /^[1-9]\d{3,30}$/), /**
2838
2842
  * 邮政编码
2839
2843
  */
2840
- m($, "zipCode", /^[1-9]\d{5}$/), /**
2844
+ m(O, "zipCode", /^[1-9]\d{5}$/), /**
2841
2845
  * IP
2842
2846
  */
2843
- m($, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), /**
2847
+ m(O, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), /**
2844
2848
  * URL
2845
2849
  */
2846
- m($, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), /**
2850
+ m(O, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), /**
2847
2851
  * 车牌
2848
2852
  */
2849
- m($, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), /**
2853
+ m(O, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), /**
2850
2854
  * 时间 hh:mm:ss
2851
2855
  */
2852
- m($, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), /**
2856
+ m(O, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), /**
2853
2857
  * 日期 YYYY-MM-DD
2854
2858
  */
2855
- m($, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2856
- function Ns(n, e) {
2857
- const [t, r] = L(!1), [i, a] = L(null), [o, l] = L(null), d = G(void 0), c = G(0), f = () => {
2858
- var v;
2859
- (v = d.current) == null || v.abort(), r(!1), a(null);
2860
- }, g = async (...v) => {
2861
- var T, H, O, y;
2859
+ m(O, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2860
+ function Ds(n, e) {
2861
+ const [t, r] = H(!1), [i, a] = H(null), [o, l] = H(null), f = G(void 0), c = G(0), d = () => {
2862
+ var y;
2863
+ (y = f.current) == null || y.abort(), r(!1), a(null);
2864
+ }, g = async (...y) => {
2865
+ var N, I, P, v;
2862
2866
  const j = ++c.current;
2863
- f();
2864
- const N = new AbortController();
2865
- d.current = N;
2867
+ d();
2868
+ const $ = new AbortController();
2869
+ f.current = $;
2866
2870
  try {
2867
- if (r(!0), a(null), e != null && e.onBefore && !await ((T = e == null ? void 0 : e.onBefore) == null ? void 0 : T.call(e, ...v))) {
2868
- f();
2871
+ if (r(!0), a(null), e != null && e.onBefore && !await ((N = e == null ? void 0 : e.onBefore) == null ? void 0 : N.call(e, ...y))) {
2872
+ d();
2869
2873
  return;
2870
2874
  }
2871
- const k = v.length >= n.length ? v : [...v, { signal: N.signal }], V = await n(...k);
2872
- return !N.signal.aborted && j === c.current && (l(V), await ((H = e == null ? void 0 : e.onSuccess) == null ? void 0 : H.call(e, V))), V;
2875
+ const k = y.length >= n.length ? y : [...y, { signal: $.signal }], F = await n(...k);
2876
+ return !$.signal.aborted && j === c.current && (l(F), await ((I = e == null ? void 0 : e.onSuccess) == null ? void 0 : I.call(e, F))), F;
2873
2877
  } catch (k) {
2874
- throw !N.signal.aborted && j === c.current && (a(k), await ((O = e == null ? void 0 : e.onError) == null ? void 0 : O.call(e, k))), k;
2878
+ throw !$.signal.aborted && j === c.current && (a(k), await ((P = e == null ? void 0 : e.onError) == null ? void 0 : P.call(e, k))), k;
2875
2879
  } finally {
2876
- !N.signal.aborted && j === c.current && (r(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
2880
+ !$.signal.aborted && j === c.current && (r(!1), await ((v = e == null ? void 0 : e.onFinally) == null ? void 0 : v.call(e)));
2877
2881
  }
2878
2882
  };
2879
2883
  return ae(() => (e != null && e.autoRunArgs && g(...e.autoRunArgs).catch(() => {
2880
- }), f), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: f, loading: t, error: i, data: o };
2884
+ }), d), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: d, loading: t, error: i, data: o };
2881
2885
  }
2882
- function Ds(n, e, t = !1) {
2886
+ function Ps(n, e, t = !1) {
2883
2887
  const r = G(void 0), i = G(n);
2884
2888
  ae(() => {
2885
2889
  i.current = n;
@@ -2891,27 +2895,27 @@ function Ds(n, e, t = !1) {
2891
2895
  }, [e, a]);
2892
2896
  return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2893
2897
  }
2894
- const Ps = (n, e, t) => {
2898
+ const Ts = (n, e, t) => {
2895
2899
  const {
2896
2900
  isReady: r = !0,
2897
2901
  dataSource: i = [],
2898
2902
  current: a = 1,
2899
2903
  pageSize: o = 10
2900
- } = t || {}, [l, d] = L(a), [c, f] = L(o), [g, v] = L(i), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(!1), k = G(l), V = G(c), I = (w) => {
2901
- d(w), k.current = w;
2904
+ } = t || {}, [l, f] = H(a), [c, d] = H(o), [g, y] = H(i), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(!1), k = G(l), F = G(c), Y = (w) => {
2905
+ f(w), k.current = w;
2902
2906
  }, J = (w) => {
2903
- f(w), V.current = w;
2907
+ d(w), F.current = w;
2904
2908
  }, K = G(0), ye = async () => {
2905
2909
  if (!r)
2906
2910
  return;
2907
- let w = k.current, M = V.current;
2908
- H(!0), K.current++;
2911
+ let w = k.current, A = F.current;
2912
+ I(!0), K.current++;
2909
2913
  const X = K.current;
2910
2914
  try {
2911
- let U = Math.round((w - 1) * M);
2912
- U < 0 && (U = 0), M < 1 && (M = 1);
2915
+ let U = Math.round((w - 1) * A);
2916
+ U < 0 && (U = 0), A < 1 && (A = 1);
2913
2917
  let { dataSource: re, total: Q } = await n({
2914
- limit: M,
2918
+ limit: A,
2915
2919
  offset: U,
2916
2920
  current: w
2917
2921
  });
@@ -2921,31 +2925,31 @@ const Ps = (n, e, t) => {
2921
2925
  w = 1;
2922
2926
  const ue = Math.ceil(Q / c);
2923
2927
  if ({ dataSource: re, total: Q } = await n({
2924
- limit: M,
2928
+ limit: A,
2925
2929
  offset: U,
2926
2930
  current: w
2927
2931
  }), X !== K.current)
2928
2932
  return;
2929
2933
  w = ue;
2930
2934
  }
2931
- v(re), I(w), J(M), N(Q);
2935
+ y(re), Y(w), J(A), $(Q);
2932
2936
  } catch (U) {
2933
2937
  if (console.error("usePagination error", U), X !== K.current)
2934
2938
  return;
2935
2939
  } finally {
2936
- y(!0), H(!1);
2940
+ v(!0), I(!1);
2937
2941
  }
2938
2942
  }, te = async (w) => {
2939
- w && (v([]), I(a), J(o)), await ye();
2940
- }, ie = Z(sr(te, 500), [te]), le = [...e || [], r];
2943
+ w && (y([]), Y(a), J(o)), await ye();
2944
+ }, ie = Z(ar(te, 500), [te]), le = [...e || [], r];
2941
2945
  return ae(() => {
2942
2946
  r && ie(!0);
2943
2947
  }, le), {
2944
2948
  tableProps: {
2945
- loading: T,
2949
+ loading: N,
2946
2950
  dataSource: g
2947
2951
  },
2948
- loading: T,
2952
+ loading: N,
2949
2953
  dataSource: g,
2950
2954
  paginationProps: {
2951
2955
  current: l,
@@ -2954,35 +2958,35 @@ const Ps = (n, e, t) => {
2954
2958
  showTotal(w) {
2955
2959
  return `共 ${w} 条`;
2956
2960
  },
2957
- onChange: async (w, M) => {
2958
- I(w), J(M), await te();
2961
+ onChange: async (w, A) => {
2962
+ Y(w), J(A), await te();
2959
2963
  },
2960
- onShowSizeChange: async (w, M) => {
2961
- J(w), I(M), await te();
2964
+ onShowSizeChange: async (w, A) => {
2965
+ J(w), Y(A), await te();
2962
2966
  }
2963
2967
  },
2964
- isFirstComplete: O,
2968
+ isFirstComplete: P,
2965
2969
  refresh: te,
2966
2970
  debounceRefresh: ie,
2967
- setDataSource: v
2971
+ setDataSource: y
2968
2972
  };
2969
2973
  };
2970
- function Ts() {
2974
+ function As() {
2971
2975
  const n = window.location.href.split("?")[1] || "", e = new URLSearchParams(n);
2972
2976
  return Object.fromEntries(e.entries());
2973
2977
  }
2974
2978
  const Ms = (n) => {
2975
- const [e, t] = L(n), r = G(e), i = Z((l) => {
2976
- t((d) => {
2977
- const c = typeof l == "function" ? l(d) : l, f = { ...d, ...c };
2978
- return r.current = f, f;
2979
+ const [e, t] = H(n), r = G(e), i = Z((l) => {
2980
+ t((f) => {
2981
+ const c = typeof l == "function" ? l(f) : l, d = { ...f, ...c };
2982
+ return r.current = d, d;
2979
2983
  });
2980
2984
  }, []), a = Z(() => r.current, []), o = Z(() => {
2981
2985
  t(n), r.current = n;
2982
2986
  }, [n]);
2983
2987
  return [e, i, a, o];
2984
2988
  };
2985
- function As(n, e, t = !1) {
2989
+ function zs(n, e, t = !1) {
2986
2990
  const r = G(void 0), i = G(n);
2987
2991
  ae(() => {
2988
2992
  i.current = n;
@@ -2994,63 +2998,63 @@ function As(n, e, t = !1) {
2994
2998
  }, [e, a]);
2995
2999
  return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2996
3000
  }
2997
- const zs = (n, e, t) => {
3001
+ const Is = (n, e, t) => {
2998
3002
  const {
2999
3003
  isReady: r = !0,
3000
3004
  dataSource: i = [],
3001
3005
  current: a = 1,
3002
- pageSize: o = ps
3003
- } = t || {}, [l, d] = L(!1), [c, f] = L(a), [g, v] = L(o), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(i), k = G(c), V = G(g), I = G(0), J = Z((E) => {
3004
- f(E), k.current = E;
3006
+ pageSize: o = ms
3007
+ } = t || {}, [l, f] = H(!1), [c, d] = H(a), [g, y] = H(o), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(i), k = G(c), F = G(g), Y = G(0), J = Z((E) => {
3008
+ d(E), k.current = E;
3005
3009
  }, []), K = Z((E) => {
3006
- v(E), V.current = E;
3010
+ y(E), F.current = E;
3007
3011
  }, []), ye = Z((E) => {
3008
- y(E);
3012
+ v(E);
3009
3013
  }, []), te = Z(
3010
3014
  async (E) => {
3011
3015
  if (!r)
3012
3016
  return;
3013
- let Y = k.current, w = V.current;
3014
- H(!0), I.current += 1;
3015
- const M = I.current;
3017
+ let L = k.current, w = F.current;
3018
+ I(!0), Y.current += 1;
3019
+ const A = Y.current;
3016
3020
  try {
3017
- let X = Math.max(0, Math.round((Y - 1) * w));
3021
+ let X = Math.max(0, Math.round((L - 1) * w));
3018
3022
  w = Math.max(1, w);
3019
3023
  let U = await n({
3020
3024
  limit: w,
3021
3025
  offset: X,
3022
- current: Y
3026
+ current: L
3023
3027
  });
3024
- if (M !== I.current)
3028
+ if (A !== Y.current)
3025
3029
  return;
3026
3030
  let { dataSource: re, total: Q } = U;
3027
- if (g * (Y - 1) >= Q && Y !== 1) {
3028
- const de = Math.max(1, Math.ceil(Q / g));
3029
- if (X = Math.max(0, Math.round((de - 1) * w)), U = await n({
3031
+ if (g * (L - 1) >= Q && L !== 1) {
3032
+ const fe = Math.max(1, Math.ceil(Q / g));
3033
+ if (X = Math.max(0, Math.round((fe - 1) * w)), U = await n({
3030
3034
  limit: w,
3031
3035
  offset: X,
3032
- current: de
3033
- }), M !== I.current)
3036
+ current: fe
3037
+ }), A !== Y.current)
3034
3038
  return;
3035
- re = U.dataSource, Q = U.total, Y = de;
3039
+ re = U.dataSource, Q = U.total, L = fe;
3036
3040
  }
3037
- const ue = E ? re : [...O, ...re];
3038
- y(ue), J(Y), K(w), N(Q), d(!0);
3041
+ const ue = E ? re : [...P, ...re];
3042
+ v(ue), J(L), K(w), $(Q), f(!0);
3039
3043
  } catch (X) {
3040
- if (console.error("useVirtualList error", X), M !== I.current)
3044
+ if (console.error("useVirtualList error", X), A !== Y.current)
3041
3045
  return;
3042
3046
  } finally {
3043
- M === I.current && H(!1);
3047
+ A === Y.current && I(!1);
3044
3048
  }
3045
3049
  },
3046
- [r, n, O, J, K]
3050
+ [r, n, P, J, K]
3047
3051
  ), ie = Z(
3048
3052
  async (E) => {
3049
3053
  if (E)
3050
- y([]), J(a), K(o);
3054
+ v([]), J(a), K(o);
3051
3055
  else {
3052
- const Y = g * c;
3053
- if (j && j <= Y)
3056
+ const L = g * c;
3057
+ if (j && j <= L)
3054
3058
  return;
3055
3059
  J(c + 1);
3056
3060
  }
@@ -3067,16 +3071,16 @@ const zs = (n, e, t) => {
3067
3071
  j
3068
3072
  ]
3069
3073
  ), le = Z(
3070
- sr((E) => {
3074
+ ar((E) => {
3071
3075
  ie(E);
3072
3076
  }, 500),
3073
3077
  [ie]
3074
- ), we = Kr(() => [...e || [], r], [e, r]);
3078
+ ), we = tr(() => [...e || [], r], [e, r]);
3075
3079
  return ae(() => {
3076
3080
  r && le(!0);
3077
3081
  }, we), {
3078
- loading: T,
3079
- dataSource: O,
3082
+ loading: N,
3083
+ dataSource: P,
3080
3084
  paginationProps: {
3081
3085
  current: c,
3082
3086
  pageSize: g,
@@ -3086,41 +3090,41 @@ const zs = (n, e, t) => {
3086
3090
  refresh: ie,
3087
3091
  debounceRefresh: le,
3088
3092
  setDataSource: ye,
3089
- setTotal: N
3093
+ setTotal: $
3090
3094
  };
3091
3095
  };
3092
3096
  export {
3093
3097
  ve as CompThemeProvider,
3094
- $s as DATE_FORMAT,
3095
- Sn as ItemsRow,
3096
- js as MBreadcrumb,
3097
- Cn as MDescriptions,
3098
- wr as MForm,
3098
+ Ns as DATE_FORMAT,
3099
+ Cn as ItemsRow,
3100
+ ks as MBreadcrumb,
3101
+ _n as MDescriptions,
3102
+ xr as MForm,
3099
3103
  me as MFormItemConst,
3100
3104
  W as MFormItemTypeEnum,
3101
- ks as MSearch,
3102
- Os as MTable,
3105
+ Os as MSearch,
3106
+ $s as MTable,
3103
3107
  Xt as MiModal,
3104
- Es as MiThemeProvider,
3108
+ js as MiThemeProvider,
3105
3109
  Le as NextTick,
3106
- ps as PAGE_SIZE,
3107
- $ as PatternType,
3108
- _s as VersionUtil,
3109
- ws as cmx,
3110
- sr as debounce,
3110
+ ms as PAGE_SIZE,
3111
+ O as PatternType,
3112
+ Es as VersionUtil,
3113
+ xs as cmx,
3114
+ ar as debounce,
3111
3115
  He as getClassName,
3112
- Ss as getFieldsByPath,
3113
- xs as nextTick,
3116
+ Cs as getFieldsByPath,
3117
+ Ss as nextTick,
3114
3118
  Rs as noop,
3115
- wn as openModal,
3116
- xn as removeNull,
3117
- Cs as throttle,
3118
- Ns as useFuncRequest,
3119
- Ds as useInterval,
3119
+ xn as openModal,
3120
+ Sn as removeNull,
3121
+ _s as throttle,
3122
+ Ds as useFuncRequest,
3123
+ Ps as useInterval,
3120
3124
  Rn as useMiThemeConfig,
3121
- Ps as usePagination,
3122
- Ts as useQuery,
3125
+ Ts as usePagination,
3126
+ As as useQuery,
3123
3127
  Ms as useReactive,
3124
- As as useTimeout,
3125
- zs as useVirtualList
3128
+ zs as useTimeout,
3129
+ Is as useVirtualList
3126
3130
  };