@mi-avalon/libs 0.0.22 → 0.0.23

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,10 +1,13 @@
1
- var wr = Object.defineProperty;
2
- var xr = (o, r, n) => r in o ? wr(o, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[r] = n;
3
- var p = (o, r, n) => (xr(o, typeof r != "symbol" ? r + "" : r, n), n);
4
- import * as q from "react";
5
- import Fe, { createContext as Sr, useContext as Cr } from "react";
6
- import { theme as Tr, ConfigProvider as jr, Button as Or, Affix as $r, Card as Ar, Breadcrumb as ke, Descriptions as Ye, Table as Dr } from "antd";
7
- var ce = { exports: {} }, V = {};
1
+ var Rr = Object.defineProperty;
2
+ var Er = (r, e, t) => e in r ? Rr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var g = (r, e, t) => (Er(r, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as M from "react";
5
+ import ue, { createContext as jt, useContext as Ot, useEffect as jr } from "react";
6
+ import { theme as Or, ConfigProvider as Pr, Button as Pt, Affix as Tr, Card as kr, Breadcrumb as ut, Descriptions as ft, Input as je, InputNumber as Nr, DatePicker as Tt, Select as $r, Radio as Ar, Checkbox as Dr, Upload as Mr, Mentions as Ir, Cascader as Hr, TreeSelect as Yr, Form as dt, Row as Vr, Col as Lr, Table as zr } from "antd";
7
+ function Wr(r) {
8
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
9
+ }
10
+ var Te = { exports: {} }, X = {};
8
11
  /**
9
12
  * @license React
10
13
  * react-jsx-runtime.production.min.js
@@ -14,25 +17,25 @@ var ce = { exports: {} }, V = {};
14
17
  * This source code is licensed under the MIT license found in the
15
18
  * LICENSE file in the root directory of this source tree.
16
19
  */
17
- var Me;
18
- function Pr() {
19
- if (Me)
20
- return V;
21
- Me = 1;
22
- var o = Fe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function l(u, d, R) {
24
- var E, b = {}, T = null, D = null;
25
- R !== void 0 && (T = "" + R), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (D = d.ref);
26
- for (E in d)
27
- i.call(d, E) && !f.hasOwnProperty(E) && (b[E] = d[E]);
28
- if (u && u.defaultProps)
29
- for (E in d = u.defaultProps, d)
30
- b[E] === void 0 && (b[E] = d[E]);
31
- return { $$typeof: r, type: u, key: T, ref: D, props: b, _owner: s.current };
32
- }
33
- return V.Fragment = n, V.jsx = l, V.jsxs = l, V;
34
- }
35
- var W = {};
20
+ var ht;
21
+ function Ur() {
22
+ if (ht)
23
+ return X;
24
+ ht = 1;
25
+ var r = ue, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function o(l, u, f) {
27
+ var p, h = {}, w = null, A = null;
28
+ f !== void 0 && (w = "" + f), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (A = u.ref);
29
+ for (p in u)
30
+ n.call(u, p) && !s.hasOwnProperty(p) && (h[p] = u[p]);
31
+ if (l && l.defaultProps)
32
+ for (p in u = l.defaultProps, u)
33
+ h[p] === void 0 && (h[p] = u[p]);
34
+ return { $$typeof: e, type: l, key: w, ref: A, props: h, _owner: i.current };
35
+ }
36
+ return X.Fragment = t, X.jsx = o, X.jsxs = o, X;
37
+ }
38
+ var Q = {};
36
39
  /**
37
40
  * @license React
38
41
  * react-jsx-runtime.development.js
@@ -42,91 +45,91 @@ var W = {};
42
45
  * This source code is licensed under the MIT license found in the
43
46
  * LICENSE file in the root directory of this source tree.
44
47
  */
45
- var Ie;
46
- function kr() {
47
- return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
48
- var o = Fe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), U = Symbol.iterator, Y = "@@iterator";
49
- function Q(e) {
50
- if (e === null || typeof e != "object")
48
+ var pt;
49
+ function Fr() {
50
+ return pt || (pt = 1, process.env.NODE_ENV !== "production" && function() {
51
+ var r = ue, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), W = Symbol.iterator, I = "@@iterator";
52
+ function q(a) {
53
+ if (a === null || typeof a != "object")
51
54
  return null;
52
- var t = U && e[U] || e[Y];
53
- return typeof t == "function" ? t : null;
55
+ var c = W && a[W] || a[I];
56
+ return typeof c == "function" ? c : null;
54
57
  }
55
- var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function S(e) {
58
+ var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
+ function j(a) {
57
60
  {
58
- for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
59
- a[c - 1] = arguments[c];
60
- We("error", e, a);
61
+ for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
62
+ d[v - 1] = arguments[v];
63
+ ve("error", a, d);
61
64
  }
62
65
  }
63
- function We(e, t, a) {
66
+ function ve(a, c, d) {
64
67
  {
65
- var c = A.ReactDebugCurrentFrame, h = c.getStackAddendum();
66
- h !== "" && (t += "%s", a = a.concat([h]));
67
- var g = a.map(function(m) {
68
- return String(m);
68
+ var v = D.ReactDebugCurrentFrame, x = v.getStackAddendum();
69
+ x !== "" && (c += "%s", d = d.concat([x]));
70
+ var S = d.map(function(y) {
71
+ return String(y);
69
72
  });
70
- g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
73
+ S.unshift("Warning: " + c), Function.prototype.apply.call(console[a], console, S);
71
74
  }
72
75
  }
73
- var Ze = !1, He = !1, Ue = !1, Le = !1, Be = !1, ue;
74
- ue = Symbol.for("react.module.reference");
75
- function Je(e) {
76
- return !!(typeof e == "string" || typeof e == "function" || e === i || e === f || Be || e === s || e === R || e === E || Le || e === D || Ze || He || Ue || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === l || e.$$typeof === u || e.$$typeof === d || // This needs to include all possible module reference object
76
+ var me = !1, Zt = !1, Bt = !1, qt = !1, Gt = !1, Ve;
77
+ Ve = Symbol.for("react.module.reference");
78
+ function Jt(a) {
79
+ return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || Gt || a === i || a === f || a === p || qt || a === A || me || Zt || Bt || typeof a == "object" && a !== null && (a.$$typeof === w || a.$$typeof === h || a.$$typeof === o || a.$$typeof === l || a.$$typeof === u || // This needs to include all possible module reference object
77
80
  // types supported by any Flight configuration anywhere since
78
81
  // we don't know which Flight build this will end up being used
79
82
  // with.
80
- e.$$typeof === ue || e.getModuleId !== void 0));
83
+ a.$$typeof === Ve || a.getModuleId !== void 0));
81
84
  }
82
- function Ke(e, t, a) {
83
- var c = e.displayName;
84
- if (c)
85
- return c;
86
- var h = t.displayName || t.name || "";
87
- return h !== "" ? a + "(" + h + ")" : a;
85
+ function Kt(a, c, d) {
86
+ var v = a.displayName;
87
+ if (v)
88
+ return v;
89
+ var x = c.displayName || c.name || "";
90
+ return x !== "" ? d + "(" + x + ")" : d;
88
91
  }
89
- function fe(e) {
90
- return e.displayName || "Context";
92
+ function Le(a) {
93
+ return a.displayName || "Context";
91
94
  }
92
- function $(e) {
93
- if (e == null)
95
+ function H(a) {
96
+ if (a == null)
94
97
  return null;
95
- if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
96
- return e.displayName || e.name || null;
97
- if (typeof e == "string")
98
- return e;
99
- switch (e) {
100
- case i:
101
- return "Fragment";
98
+ if (typeof a.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
99
+ return a.displayName || a.name || null;
100
+ if (typeof a == "string")
101
+ return a;
102
+ switch (a) {
102
103
  case n:
104
+ return "Fragment";
105
+ case t:
103
106
  return "Portal";
104
- case f:
105
- return "Profiler";
106
107
  case s:
108
+ return "Profiler";
109
+ case i:
107
110
  return "StrictMode";
108
- case R:
111
+ case f:
109
112
  return "Suspense";
110
- case E:
113
+ case p:
111
114
  return "SuspenseList";
112
115
  }
113
- if (typeof e == "object")
114
- switch (e.$$typeof) {
115
- case u:
116
- var t = e;
117
- return fe(t) + ".Consumer";
116
+ if (typeof a == "object")
117
+ switch (a.$$typeof) {
118
118
  case l:
119
- var a = e;
120
- return fe(a._context) + ".Provider";
121
- case d:
122
- return Ke(e, e.render, "ForwardRef");
123
- case b:
124
- var c = e.displayName || null;
125
- return c !== null ? c : $(e.type) || "Memo";
126
- case T: {
127
- var h = e, g = h._payload, m = h._init;
119
+ var c = a;
120
+ return Le(c) + ".Consumer";
121
+ case o:
122
+ var d = a;
123
+ return Le(d._context) + ".Provider";
124
+ case u:
125
+ return Kt(a, a.render, "ForwardRef");
126
+ case h:
127
+ var v = a.displayName || null;
128
+ return v !== null ? v : H(a.type) || "Memo";
129
+ case w: {
130
+ var x = a, S = x._payload, y = x._init;
128
131
  try {
129
- return $(m(g));
132
+ return H(y(S));
130
133
  } catch {
131
134
  return null;
132
135
  }
@@ -134,690 +137,690 @@ function kr() {
134
137
  }
135
138
  return null;
136
139
  }
137
- var P = Object.assign, N = 0, de, ve, me, he, pe, ge, be;
138
- function Re() {
140
+ var V = Object.assign, G = 0, ze, We, Ue, Fe, Ze, Be, qe;
141
+ function Ge() {
139
142
  }
140
- Re.__reactDisabledLog = !0;
141
- function qe() {
143
+ Ge.__reactDisabledLog = !0;
144
+ function Xt() {
142
145
  {
143
- if (N === 0) {
144
- de = console.log, ve = console.info, me = console.warn, he = console.error, pe = console.group, ge = console.groupCollapsed, be = console.groupEnd;
145
- var e = {
146
+ if (G === 0) {
147
+ ze = console.log, We = console.info, Ue = console.warn, Fe = console.error, Ze = console.group, Be = console.groupCollapsed, qe = console.groupEnd;
148
+ var a = {
146
149
  configurable: !0,
147
150
  enumerable: !0,
148
- value: Re,
151
+ value: Ge,
149
152
  writable: !0
150
153
  };
151
154
  Object.defineProperties(console, {
152
- info: e,
153
- log: e,
154
- warn: e,
155
- error: e,
156
- group: e,
157
- groupCollapsed: e,
158
- groupEnd: e
155
+ info: a,
156
+ log: a,
157
+ warn: a,
158
+ error: a,
159
+ group: a,
160
+ groupCollapsed: a,
161
+ groupEnd: a
159
162
  });
160
163
  }
161
- N++;
164
+ G++;
162
165
  }
163
166
  }
164
- function Ge() {
167
+ function Qt() {
165
168
  {
166
- if (N--, N === 0) {
167
- var e = {
169
+ if (G--, G === 0) {
170
+ var a = {
168
171
  configurable: !0,
169
172
  enumerable: !0,
170
173
  writable: !0
171
174
  };
172
175
  Object.defineProperties(console, {
173
- log: P({}, e, {
174
- value: de
176
+ log: V({}, a, {
177
+ value: ze
175
178
  }),
176
- info: P({}, e, {
177
- value: ve
179
+ info: V({}, a, {
180
+ value: We
178
181
  }),
179
- warn: P({}, e, {
180
- value: me
182
+ warn: V({}, a, {
183
+ value: Ue
181
184
  }),
182
- error: P({}, e, {
183
- value: he
185
+ error: V({}, a, {
186
+ value: Fe
184
187
  }),
185
- group: P({}, e, {
186
- value: pe
188
+ group: V({}, a, {
189
+ value: Ze
187
190
  }),
188
- groupCollapsed: P({}, e, {
189
- value: ge
191
+ groupCollapsed: V({}, a, {
192
+ value: Be
190
193
  }),
191
- groupEnd: P({}, e, {
192
- value: be
194
+ groupEnd: V({}, a, {
195
+ value: qe
193
196
  })
194
197
  });
195
198
  }
196
- N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ G < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
200
  }
198
201
  }
199
- var ee = A.ReactCurrentDispatcher, re;
200
- function L(e, t, a) {
202
+ var be = D.ReactCurrentDispatcher, ye;
203
+ function ie(a, c, d) {
201
204
  {
202
- if (re === void 0)
205
+ if (ye === void 0)
203
206
  try {
204
207
  throw Error();
205
- } catch (h) {
206
- var c = h.stack.trim().match(/\n( *(at )?)/);
207
- re = c && c[1] || "";
208
+ } catch (x) {
209
+ var v = x.stack.trim().match(/\n( *(at )?)/);
210
+ ye = v && v[1] || "";
208
211
  }
209
212
  return `
210
- ` + re + e;
213
+ ` + ye + a;
211
214
  }
212
215
  }
213
- var te = !1, B;
216
+ var xe = !1, se;
214
217
  {
215
- var Xe = typeof WeakMap == "function" ? WeakMap : Map;
216
- B = new Xe();
218
+ var er = typeof WeakMap == "function" ? WeakMap : Map;
219
+ se = new er();
217
220
  }
218
- function Ee(e, t) {
219
- if (!e || te)
221
+ function Je(a, c) {
222
+ if (!a || xe)
220
223
  return "";
221
224
  {
222
- var a = B.get(e);
223
- if (a !== void 0)
224
- return a;
225
+ var d = se.get(a);
226
+ if (d !== void 0)
227
+ return d;
225
228
  }
226
- var c;
227
- te = !0;
228
- var h = Error.prepareStackTrace;
229
+ var v;
230
+ xe = !0;
231
+ var x = Error.prepareStackTrace;
229
232
  Error.prepareStackTrace = void 0;
230
- var g;
231
- g = ee.current, ee.current = null, qe();
233
+ var S;
234
+ S = be.current, be.current = null, Xt();
232
235
  try {
233
- if (t) {
234
- var m = function() {
236
+ if (c) {
237
+ var y = function() {
235
238
  throw Error();
236
239
  };
237
- if (Object.defineProperty(m.prototype, "props", {
240
+ if (Object.defineProperty(y.prototype, "props", {
238
241
  set: function() {
239
242
  throw Error();
240
243
  }
241
244
  }), typeof Reflect == "object" && Reflect.construct) {
242
245
  try {
243
- Reflect.construct(m, []);
244
- } catch (j) {
245
- c = j;
246
+ Reflect.construct(y, []);
247
+ } catch (k) {
248
+ v = k;
246
249
  }
247
- Reflect.construct(e, [], m);
250
+ Reflect.construct(a, [], y);
248
251
  } else {
249
252
  try {
250
- m.call();
251
- } catch (j) {
252
- c = j;
253
+ y.call();
254
+ } catch (k) {
255
+ v = k;
253
256
  }
254
- e.call(m.prototype);
257
+ a.call(y.prototype);
255
258
  }
256
259
  } else {
257
260
  try {
258
261
  throw Error();
259
- } catch (j) {
260
- c = j;
262
+ } catch (k) {
263
+ v = k;
261
264
  }
262
- e();
265
+ a();
263
266
  }
264
- } catch (j) {
265
- if (j && c && typeof j.stack == "string") {
266
- for (var v = j.stack.split(`
267
- `), C = c.stack.split(`
268
- `), y = v.length - 1, w = C.length - 1; y >= 1 && w >= 0 && v[y] !== C[w]; )
269
- w--;
270
- for (; y >= 1 && w >= 0; y--, w--)
271
- if (v[y] !== C[w]) {
272
- if (y !== 1 || w !== 1)
267
+ } catch (k) {
268
+ if (k && v && typeof k.stack == "string") {
269
+ for (var b = k.stack.split(`
270
+ `), P = v.stack.split(`
271
+ `), R = b.length - 1, E = P.length - 1; R >= 1 && E >= 0 && b[R] !== P[E]; )
272
+ E--;
273
+ for (; R >= 1 && E >= 0; R--, E--)
274
+ if (b[R] !== P[E]) {
275
+ if (R !== 1 || E !== 1)
273
276
  do
274
- if (y--, w--, w < 0 || v[y] !== C[w]) {
275
- var O = `
276
- ` + v[y].replace(" at new ", " at ");
277
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, O), O;
277
+ if (R--, E--, E < 0 || b[R] !== P[E]) {
278
+ var $ = `
279
+ ` + b[R].replace(" at new ", " at ");
280
+ return a.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", a.displayName)), typeof a == "function" && se.set(a, $), $;
278
281
  }
279
- while (y >= 1 && w >= 0);
282
+ while (R >= 1 && E >= 0);
280
283
  break;
281
284
  }
282
285
  }
283
286
  } finally {
284
- te = !1, ee.current = g, Ge(), Error.prepareStackTrace = h;
287
+ xe = !1, be.current = S, Qt(), Error.prepareStackTrace = x;
285
288
  }
286
- var I = e ? e.displayName || e.name : "", k = I ? L(I) : "";
287
- return typeof e == "function" && B.set(e, k), k;
289
+ var F = a ? a.displayName || a.name : "", L = F ? ie(F) : "";
290
+ return typeof a == "function" && se.set(a, L), L;
288
291
  }
289
- function Qe(e, t, a) {
290
- return Ee(e, !1);
292
+ function tr(a, c, d) {
293
+ return Je(a, !1);
291
294
  }
292
- function er(e) {
293
- var t = e.prototype;
294
- return !!(t && t.isReactComponent);
295
+ function rr(a) {
296
+ var c = a.prototype;
297
+ return !!(c && c.isReactComponent);
295
298
  }
296
- function J(e, t, a) {
297
- if (e == null)
299
+ function oe(a, c, d) {
300
+ if (a == null)
298
301
  return "";
299
- if (typeof e == "function")
300
- return Ee(e, er(e));
301
- if (typeof e == "string")
302
- return L(e);
303
- switch (e) {
304
- case R:
305
- return L("Suspense");
306
- case E:
307
- return L("SuspenseList");
302
+ if (typeof a == "function")
303
+ return Je(a, rr(a));
304
+ if (typeof a == "string")
305
+ return ie(a);
306
+ switch (a) {
307
+ case f:
308
+ return ie("Suspense");
309
+ case p:
310
+ return ie("SuspenseList");
308
311
  }
309
- if (typeof e == "object")
310
- switch (e.$$typeof) {
311
- case d:
312
- return Qe(e.render);
313
- case b:
314
- return J(e.type, t, a);
315
- case T: {
316
- var c = e, h = c._payload, g = c._init;
312
+ if (typeof a == "object")
313
+ switch (a.$$typeof) {
314
+ case u:
315
+ return tr(a.render);
316
+ case h:
317
+ return oe(a.type, c, d);
318
+ case w: {
319
+ var v = a, x = v._payload, S = v._init;
317
320
  try {
318
- return J(g(h), t, a);
321
+ return oe(S(x), c, d);
319
322
  } catch {
320
323
  }
321
324
  }
322
325
  }
323
326
  return "";
324
327
  }
325
- var F = Object.prototype.hasOwnProperty, _e = {}, ye = A.ReactDebugCurrentFrame;
326
- function K(e) {
327
- if (e) {
328
- var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
329
- ye.setExtraStackFrame(a);
328
+ var J = Object.prototype.hasOwnProperty, Ke = {}, Xe = D.ReactDebugCurrentFrame;
329
+ function ce(a) {
330
+ if (a) {
331
+ var c = a._owner, d = oe(a.type, a._source, c ? c.type : null);
332
+ Xe.setExtraStackFrame(d);
330
333
  } else
331
- ye.setExtraStackFrame(null);
334
+ Xe.setExtraStackFrame(null);
332
335
  }
333
- function rr(e, t, a, c, h) {
336
+ function nr(a, c, d, v, x) {
334
337
  {
335
- var g = Function.call.bind(F);
336
- for (var m in e)
337
- if (g(e, m)) {
338
- var v = void 0;
338
+ var S = Function.call.bind(J);
339
+ for (var y in a)
340
+ if (S(a, y)) {
341
+ var b = void 0;
339
342
  try {
340
- if (typeof e[m] != "function") {
341
- var C = Error((c || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw C.name = "Invariant Violation", C;
343
+ if (typeof a[y] != "function") {
344
+ var P = Error((v || "React class") + ": " + d + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
+ throw P.name = "Invariant Violation", P;
343
346
  }
344
- v = e[m](t, m, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (y) {
346
- v = y;
347
+ b = a[y](c, y, v, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
348
+ } catch (R) {
349
+ b = R;
347
350
  }
348
- v && !(v instanceof Error) && (K(h), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", a, m, typeof v), K(null)), v instanceof Error && !(v.message in _e) && (_e[v.message] = !0, K(h), S("Failed %s type: %s", a, v.message), K(null));
351
+ b && !(b instanceof Error) && (ce(x), j("%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).", v || "React class", d, y, typeof b), ce(null)), b instanceof Error && !(b.message in Ke) && (Ke[b.message] = !0, ce(x), j("Failed %s type: %s", d, b.message), ce(null));
349
352
  }
350
353
  }
351
354
  }
352
- var tr = Array.isArray;
353
- function ne(e) {
354
- return tr(e);
355
+ var ar = Array.isArray;
356
+ function we(a) {
357
+ return ar(a);
355
358
  }
356
- function nr(e) {
359
+ function ir(a) {
357
360
  {
358
- var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
359
- return a;
361
+ var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && a[Symbol.toStringTag] || a.constructor.name || "Object";
362
+ return d;
360
363
  }
361
364
  }
362
- function ar(e) {
365
+ function sr(a) {
363
366
  try {
364
- return we(e), !1;
367
+ return Qe(a), !1;
365
368
  } catch {
366
369
  return !0;
367
370
  }
368
371
  }
369
- function we(e) {
370
- return "" + e;
372
+ function Qe(a) {
373
+ return "" + a;
371
374
  }
372
- function xe(e) {
373
- if (ar(e))
374
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), we(e);
375
+ function et(a) {
376
+ if (sr(a))
377
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(a)), Qe(a);
375
378
  }
376
- var z = A.ReactCurrentOwner, ir = {
379
+ var K = D.ReactCurrentOwner, or = {
377
380
  key: !0,
378
381
  ref: !0,
379
382
  __self: !0,
380
383
  __source: !0
381
- }, Se, Ce, ae;
382
- ae = {};
383
- function sr(e) {
384
- if (F.call(e, "ref")) {
385
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
386
- if (t && t.isReactWarning)
384
+ }, tt, rt, Ce;
385
+ Ce = {};
386
+ function cr(a) {
387
+ if (J.call(a, "ref")) {
388
+ var c = Object.getOwnPropertyDescriptor(a, "ref").get;
389
+ if (c && c.isReactWarning)
387
390
  return !1;
388
391
  }
389
- return e.ref !== void 0;
392
+ return a.ref !== void 0;
390
393
  }
391
- function or(e) {
392
- if (F.call(e, "key")) {
393
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
394
- if (t && t.isReactWarning)
394
+ function lr(a) {
395
+ if (J.call(a, "key")) {
396
+ var c = Object.getOwnPropertyDescriptor(a, "key").get;
397
+ if (c && c.isReactWarning)
395
398
  return !1;
396
399
  }
397
- return e.key !== void 0;
400
+ return a.key !== void 0;
398
401
  }
399
- function lr(e, t) {
400
- if (typeof e.ref == "string" && z.current && t && z.current.stateNode !== t) {
401
- var a = $(z.current.type);
402
- ae[a] || (S('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', $(z.current.type), e.ref), ae[a] = !0);
402
+ function ur(a, c) {
403
+ if (typeof a.ref == "string" && K.current && c && K.current.stateNode !== c) {
404
+ var d = H(K.current.type);
405
+ Ce[d] || (j('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', H(K.current.type), a.ref), Ce[d] = !0);
403
406
  }
404
407
  }
405
- function cr(e, t) {
408
+ function fr(a, c) {
406
409
  {
407
- var a = function() {
408
- Se || (Se = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
410
+ var d = function() {
411
+ tt || (tt = !0, j("%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)", c));
409
412
  };
410
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
411
- get: a,
413
+ d.isReactWarning = !0, Object.defineProperty(a, "key", {
414
+ get: d,
412
415
  configurable: !0
413
416
  });
414
417
  }
415
418
  }
416
- function ur(e, t) {
419
+ function dr(a, c) {
417
420
  {
418
- var a = function() {
419
- Ce || (Ce = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
421
+ var d = function() {
422
+ rt || (rt = !0, j("%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)", c));
420
423
  };
421
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
422
- get: a,
424
+ d.isReactWarning = !0, Object.defineProperty(a, "ref", {
425
+ get: d,
423
426
  configurable: !0
424
427
  });
425
428
  }
426
429
  }
427
- var fr = function(e, t, a, c, h, g, m) {
428
- var v = {
430
+ var hr = function(a, c, d, v, x, S, y) {
431
+ var b = {
429
432
  // This tag allows us to uniquely identify this as a React Element
430
- $$typeof: r,
433
+ $$typeof: e,
431
434
  // Built-in properties that belong on the element
432
- type: e,
433
- key: t,
434
- ref: a,
435
- props: m,
435
+ type: a,
436
+ key: c,
437
+ ref: d,
438
+ props: y,
436
439
  // Record the component responsible for creating this element.
437
- _owner: g
440
+ _owner: S
438
441
  };
439
- return v._store = {}, Object.defineProperty(v._store, "validated", {
442
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
440
443
  configurable: !1,
441
444
  enumerable: !1,
442
445
  writable: !0,
443
446
  value: !1
444
- }), Object.defineProperty(v, "_self", {
447
+ }), Object.defineProperty(b, "_self", {
445
448
  configurable: !1,
446
449
  enumerable: !1,
447
450
  writable: !1,
448
- value: c
449
- }), Object.defineProperty(v, "_source", {
451
+ value: v
452
+ }), Object.defineProperty(b, "_source", {
450
453
  configurable: !1,
451
454
  enumerable: !1,
452
455
  writable: !1,
453
- value: h
454
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
456
+ value: x
457
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
455
458
  };
456
- function dr(e, t, a, c, h) {
459
+ function pr(a, c, d, v, x) {
457
460
  {
458
- var g, m = {}, v = null, C = null;
459
- a !== void 0 && (xe(a), v = "" + a), or(t) && (xe(t.key), v = "" + t.key), sr(t) && (C = t.ref, lr(t, h));
460
- for (g in t)
461
- F.call(t, g) && !ir.hasOwnProperty(g) && (m[g] = t[g]);
462
- if (e && e.defaultProps) {
463
- var y = e.defaultProps;
464
- for (g in y)
465
- m[g] === void 0 && (m[g] = y[g]);
461
+ var S, y = {}, b = null, P = null;
462
+ d !== void 0 && (et(d), b = "" + d), lr(c) && (et(c.key), b = "" + c.key), cr(c) && (P = c.ref, ur(c, x));
463
+ for (S in c)
464
+ J.call(c, S) && !or.hasOwnProperty(S) && (y[S] = c[S]);
465
+ if (a && a.defaultProps) {
466
+ var R = a.defaultProps;
467
+ for (S in R)
468
+ y[S] === void 0 && (y[S] = R[S]);
466
469
  }
467
- if (v || C) {
468
- var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
469
- v && cr(m, w), C && ur(m, w);
470
+ if (b || P) {
471
+ var E = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
472
+ b && fr(y, E), P && dr(y, E);
470
473
  }
471
- return fr(e, v, C, h, c, z.current, m);
474
+ return hr(a, b, P, x, v, K.current, y);
472
475
  }
473
476
  }
474
- var ie = A.ReactCurrentOwner, Te = A.ReactDebugCurrentFrame;
475
- function M(e) {
476
- if (e) {
477
- var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
478
- Te.setExtraStackFrame(a);
477
+ var Se = D.ReactCurrentOwner, nt = D.ReactDebugCurrentFrame;
478
+ function U(a) {
479
+ if (a) {
480
+ var c = a._owner, d = oe(a.type, a._source, c ? c.type : null);
481
+ nt.setExtraStackFrame(d);
479
482
  } else
480
- Te.setExtraStackFrame(null);
483
+ nt.setExtraStackFrame(null);
481
484
  }
482
- var se;
483
- se = !1;
484
- function oe(e) {
485
- return typeof e == "object" && e !== null && e.$$typeof === r;
485
+ var _e;
486
+ _e = !1;
487
+ function Re(a) {
488
+ return typeof a == "object" && a !== null && a.$$typeof === e;
486
489
  }
487
- function je() {
490
+ function at() {
488
491
  {
489
- if (ie.current) {
490
- var e = $(ie.current.type);
491
- if (e)
492
+ if (Se.current) {
493
+ var a = H(Se.current.type);
494
+ if (a)
492
495
  return `
493
496
 
494
- Check the render method of \`` + e + "`.";
497
+ Check the render method of \`` + a + "`.";
495
498
  }
496
499
  return "";
497
500
  }
498
501
  }
499
- function vr(e) {
502
+ function gr(a) {
500
503
  {
501
- if (e !== void 0) {
502
- var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
504
+ if (a !== void 0) {
505
+ var c = a.fileName.replace(/^.*[\\\/]/, ""), d = a.lineNumber;
503
506
  return `
504
507
 
505
- Check your code at ` + t + ":" + a + ".";
508
+ Check your code at ` + c + ":" + d + ".";
506
509
  }
507
510
  return "";
508
511
  }
509
512
  }
510
- var Oe = {};
511
- function mr(e) {
513
+ var it = {};
514
+ function vr(a) {
512
515
  {
513
- var t = je();
514
- if (!t) {
515
- var a = typeof e == "string" ? e : e.displayName || e.name;
516
- a && (t = `
516
+ var c = at();
517
+ if (!c) {
518
+ var d = typeof a == "string" ? a : a.displayName || a.name;
519
+ d && (c = `
517
520
 
518
- Check the top-level render call using <` + a + ">.");
521
+ Check the top-level render call using <` + d + ">.");
519
522
  }
520
- return t;
523
+ return c;
521
524
  }
522
525
  }
523
- function $e(e, t) {
526
+ function st(a, c) {
524
527
  {
525
- if (!e._store || e._store.validated || e.key != null)
528
+ if (!a._store || a._store.validated || a.key != null)
526
529
  return;
527
- e._store.validated = !0;
528
- var a = mr(t);
529
- if (Oe[a])
530
+ a._store.validated = !0;
531
+ var d = vr(c);
532
+ if (it[d])
530
533
  return;
531
- Oe[a] = !0;
532
- var c = "";
533
- e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + $(e._owner.type) + "."), M(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), M(null);
534
+ it[d] = !0;
535
+ var v = "";
536
+ a && a._owner && a._owner !== Se.current && (v = " It was passed a child from " + H(a._owner.type) + "."), U(a), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, v), U(null);
534
537
  }
535
538
  }
536
- function Ae(e, t) {
539
+ function ot(a, c) {
537
540
  {
538
- if (typeof e != "object")
541
+ if (typeof a != "object")
539
542
  return;
540
- if (ne(e))
541
- for (var a = 0; a < e.length; a++) {
542
- var c = e[a];
543
- oe(c) && $e(c, t);
543
+ if (we(a))
544
+ for (var d = 0; d < a.length; d++) {
545
+ var v = a[d];
546
+ Re(v) && st(v, c);
544
547
  }
545
- else if (oe(e))
546
- e._store && (e._store.validated = !0);
547
- else if (e) {
548
- var h = Q(e);
549
- if (typeof h == "function" && h !== e.entries)
550
- for (var g = h.call(e), m; !(m = g.next()).done; )
551
- oe(m.value) && $e(m.value, t);
548
+ else if (Re(a))
549
+ a._store && (a._store.validated = !0);
550
+ else if (a) {
551
+ var x = q(a);
552
+ if (typeof x == "function" && x !== a.entries)
553
+ for (var S = x.call(a), y; !(y = S.next()).done; )
554
+ Re(y.value) && st(y.value, c);
552
555
  }
553
556
  }
554
557
  }
555
- function hr(e) {
558
+ function mr(a) {
556
559
  {
557
- var t = e.type;
558
- if (t == null || typeof t == "string")
560
+ var c = a.type;
561
+ if (c == null || typeof c == "string")
559
562
  return;
560
- var a;
561
- if (typeof t == "function")
562
- a = t.propTypes;
563
- else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
563
+ var d;
564
+ if (typeof c == "function")
565
+ d = c.propTypes;
566
+ else if (typeof c == "object" && (c.$$typeof === u || // Note: Memo only checks outer props here.
564
567
  // Inner props are checked in the reconciler.
565
- t.$$typeof === b))
566
- a = t.propTypes;
568
+ c.$$typeof === h))
569
+ d = c.propTypes;
567
570
  else
568
571
  return;
569
- if (a) {
570
- var c = $(t);
571
- rr(a, e.props, "prop", c, e);
572
- } else if (t.PropTypes !== void 0 && !se) {
573
- se = !0;
574
- var h = $(t);
575
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
572
+ if (d) {
573
+ var v = H(c);
574
+ nr(d, a.props, "prop", v, a);
575
+ } else if (c.PropTypes !== void 0 && !_e) {
576
+ _e = !0;
577
+ var x = H(c);
578
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
576
579
  }
577
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
581
  }
579
582
  }
580
- function pr(e) {
583
+ function br(a) {
581
584
  {
582
- for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
583
- var c = t[a];
584
- if (c !== "children" && c !== "key") {
585
- M(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), M(null);
585
+ for (var c = Object.keys(a.props), d = 0; d < c.length; d++) {
586
+ var v = c[d];
587
+ if (v !== "children" && v !== "key") {
588
+ U(a), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), U(null);
586
589
  break;
587
590
  }
588
591
  }
589
- e.ref !== null && (M(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
592
+ a.ref !== null && (U(a), j("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
590
593
  }
591
594
  }
592
- var De = {};
593
- function Pe(e, t, a, c, h, g) {
595
+ var ct = {};
596
+ function lt(a, c, d, v, x, S) {
594
597
  {
595
- var m = Je(e);
596
- if (!m) {
597
- var v = "";
598
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var C = vr(h);
600
- C ? v += C : v += je();
601
- var y;
602
- e === null ? y = "null" : ne(e) ? y = "array" : e !== void 0 && e.$$typeof === r ? (y = "<" + ($(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, v);
598
+ var y = Jt(a);
599
+ if (!y) {
600
+ var b = "";
601
+ (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
602
+ var P = gr(x);
603
+ P ? b += P : b += at();
604
+ var R;
605
+ a === null ? R = "null" : we(a) ? R = "array" : a !== void 0 && a.$$typeof === e ? (R = "<" + (H(a.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : R = typeof a, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, b);
603
606
  }
604
- var w = dr(e, t, a, h, g);
605
- if (w == null)
606
- return w;
607
- if (m) {
608
- var O = t.children;
609
- if (O !== void 0)
610
- if (c)
611
- if (ne(O)) {
612
- for (var I = 0; I < O.length; I++)
613
- Ae(O[I], e);
614
- Object.freeze && Object.freeze(O);
607
+ var E = pr(a, c, d, x, S);
608
+ if (E == null)
609
+ return E;
610
+ if (y) {
611
+ var $ = c.children;
612
+ if ($ !== void 0)
613
+ if (v)
614
+ if (we($)) {
615
+ for (var F = 0; F < $.length; F++)
616
+ ot($[F], a);
617
+ Object.freeze && Object.freeze($);
615
618
  } else
616
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
620
  else
618
- Ae(O, e);
621
+ ot($, a);
619
622
  }
620
- if (F.call(t, "key")) {
621
- var k = $(e), j = Object.keys(t).filter(function(yr) {
622
- return yr !== "key";
623
- }), le = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!De[k + le]) {
625
- var _r = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
626
- S(`A props object containing a "key" prop is being spread into JSX:
623
+ if (J.call(c, "key")) {
624
+ var L = H(a), k = Object.keys(c).filter(function(_r) {
625
+ return _r !== "key";
626
+ }), Ee = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
627
+ if (!ct[L + Ee]) {
628
+ var Sr = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
629
+ j(`A props object containing a "key" prop is being spread into JSX:
627
630
  let props = %s;
628
631
  <%s {...props} />
629
632
  React keys must be passed directly to JSX without using spread:
630
633
  let props = %s;
631
- <%s key={someKey} {...props} />`, le, k, _r, k), De[k + le] = !0;
634
+ <%s key={someKey} {...props} />`, Ee, L, Sr, L), ct[L + Ee] = !0;
632
635
  }
633
636
  }
634
- return e === i ? pr(w) : hr(w), w;
637
+ return a === n ? br(E) : mr(E), E;
635
638
  }
636
639
  }
637
- function gr(e, t, a) {
638
- return Pe(e, t, a, !0);
640
+ function yr(a, c, d) {
641
+ return lt(a, c, d, !0);
639
642
  }
640
- function br(e, t, a) {
641
- return Pe(e, t, a, !1);
643
+ function xr(a, c, d) {
644
+ return lt(a, c, d, !1);
642
645
  }
643
- var Rr = br, Er = gr;
644
- W.Fragment = i, W.jsx = Rr, W.jsxs = Er;
645
- }()), W;
646
+ var wr = xr, Cr = yr;
647
+ Q.Fragment = n, Q.jsx = wr, Q.jsxs = Cr;
648
+ }()), Q;
646
649
  }
647
- process.env.NODE_ENV === "production" ? ce.exports = Pr() : ce.exports = kr();
648
- var x = ce.exports;
649
- class Yr {
650
+ process.env.NODE_ENV === "production" ? Te.exports = Ur() : Te.exports = Fr();
651
+ var m = Te.exports;
652
+ class Zr {
650
653
  constructor() {
651
654
  /**
652
655
  ** 加
653
656
  **/
654
- p(this, "add", function(r, n) {
655
- let i, s, f, l;
657
+ g(this, "add", function(e, t) {
658
+ let n, i, s, o;
656
659
  try {
657
- i = r.toString().split(".")[1].length;
660
+ n = e.toString().split(".")[1].length;
658
661
  } catch {
659
- i = 0;
662
+ n = 0;
660
663
  }
661
664
  try {
662
- s = n.toString().split(".")[1].length;
665
+ i = t.toString().split(".")[1].length;
663
666
  } catch {
664
- s = 0;
667
+ i = 0;
665
668
  }
666
- if (l = Math.abs(i - s), f = Math.pow(10, Math.max(i, s)), l > 0) {
667
- let u = Math.pow(10, l);
668
- i > s ? (r = Number(r.toString().replace(".", "")), n = Number(n.toString().replace(".", "")) * u) : (r = Number(r.toString().replace(".", "")) * u, n = Number(n.toString().replace(".", "")));
669
+ if (o = Math.abs(n - i), s = Math.pow(10, Math.max(n, i)), o > 0) {
670
+ let l = Math.pow(10, o);
671
+ n > i ? (e = Number(e.toString().replace(".", "")), t = Number(t.toString().replace(".", "")) * l) : (e = Number(e.toString().replace(".", "")) * l, t = Number(t.toString().replace(".", "")));
669
672
  } else
670
- r = Number(r == null ? void 0 : r.toString().replace(".", "")), n = Number(n == null ? void 0 : n.toString().replace(".", ""));
671
- return (r + n) / f;
673
+ e = Number(e == null ? void 0 : e.toString().replace(".", "")), t = Number(t == null ? void 0 : t.toString().replace(".", ""));
674
+ return (e + t) / s;
672
675
  });
673
676
  /**
674
677
  ** 减
675
678
  **/
676
- p(this, "sub", function(r, n) {
677
- let i, s, f, l;
679
+ g(this, "sub", function(e, t) {
680
+ let n, i, s, o;
678
681
  try {
679
- i = r.toString().split(".")[1].length;
682
+ n = e.toString().split(".")[1].length;
680
683
  } catch {
681
- i = 0;
684
+ n = 0;
682
685
  }
683
686
  try {
684
- s = n.toString().split(".")[1].length;
687
+ i = t.toString().split(".")[1].length;
685
688
  } catch {
686
- s = 0;
689
+ i = 0;
687
690
  }
688
- return f = Math.pow(10, Math.max(i, s)), l = i >= s ? i : s, Number(((r * f - n * f) / f).toFixed(l));
691
+ return s = Math.pow(10, Math.max(n, i)), o = n >= i ? n : i, Number(((e * s - t * s) / s).toFixed(o));
689
692
  });
690
693
  /**
691
694
  ** 乘
692
695
  **/
693
- p(this, "mul", function(r, n) {
694
- let i = 0, s = r.toString(), f = n.toString();
696
+ g(this, "mul", function(e, t) {
697
+ let n = 0, i = e.toString(), s = t.toString();
695
698
  try {
696
- i += s.split(".")[1].length;
699
+ n += i.split(".")[1].length;
697
700
  } catch {
698
701
  }
699
702
  try {
700
- i += f.split(".")[1].length;
703
+ n += s.split(".")[1].length;
701
704
  } catch {
702
705
  }
703
- return Number(s.replace(".", "")) * Number(f.replace(".", "")) / Math.pow(10, i);
706
+ return Number(i.replace(".", "")) * Number(s.replace(".", "")) / Math.pow(10, n);
704
707
  });
705
708
  /**
706
709
  ** 除
707
710
  **/
708
- p(this, "div", function(r, n) {
709
- let i = 0, s = 0, f, l;
711
+ g(this, "div", function(e, t) {
712
+ let n = 0, i = 0, s, o;
710
713
  try {
711
- i = r.toString().split(".")[1].length;
714
+ n = e.toString().split(".")[1].length;
712
715
  } catch {
713
716
  }
714
717
  try {
715
- s = n.toString().split(".")[1].length;
718
+ i = t.toString().split(".")[1].length;
716
719
  } catch {
717
720
  }
718
- return f = Number(r.toString().replace(".", "")), l = Number(n.toString().replace(".", "")), f / l * Math.pow(10, s - i);
721
+ return s = Number(e.toString().replace(".", "")), o = Number(t.toString().replace(".", "")), s / o * Math.pow(10, i - n);
719
722
  });
720
723
  }
721
724
  }
722
- const Wr = new Yr(), H = class H {
725
+ const Fn = new Zr(), ne = class ne {
723
726
  constructor() {
724
- p(this, "callbacks", []);
725
- p(this, "pending", !1);
726
- p(this, "timerFunc");
727
+ g(this, "callbacks", []);
728
+ g(this, "pending", !1);
729
+ g(this, "timerFunc");
727
730
  this.timerFunc = this.determineTimerFunc();
728
731
  }
729
732
  determineTimerFunc() {
730
733
  if (typeof Promise < "u") {
731
- const r = Promise.resolve();
732
- return () => r.then(this.flushCallbacks.bind(this));
734
+ const e = Promise.resolve();
735
+ return () => e.then(this.flushCallbacks.bind(this));
733
736
  }
734
737
  if (typeof MutationObserver < "u" && typeof window < "u") {
735
- let r = 1;
736
- const n = new MutationObserver(this.flushCallbacks.bind(this)), i = document.createTextNode(String(r));
737
- return n.observe(i, { characterData: !0 }), () => {
738
- r = (r + 1) % 2, i.data = String(r);
738
+ let e = 1;
739
+ const t = new MutationObserver(this.flushCallbacks.bind(this)), n = document.createTextNode(String(e));
740
+ return t.observe(n, { characterData: !0 }), () => {
741
+ e = (e + 1) % 2, n.data = String(e);
739
742
  };
740
743
  }
741
744
  return () => setTimeout(this.flushCallbacks.bind(this), 0);
742
745
  }
743
746
  flushCallbacks() {
744
747
  this.pending = !1;
745
- const r = this.callbacks.slice(0);
748
+ const e = this.callbacks.slice(0);
746
749
  this.callbacks.length = 0;
747
- for (let n = 0; n < r.length; n++)
748
- r[n]();
750
+ for (let t = 0; t < e.length; t++)
751
+ e[t]();
749
752
  }
750
- nextTick(r, n) {
751
- let i;
753
+ nextTick(e, t) {
754
+ let n;
752
755
  if (this.callbacks.push(() => {
753
- if (r)
756
+ if (e)
754
757
  try {
755
- r.call(n);
756
- } catch (s) {
757
- console.error("Error in nextTick:", s);
758
+ e.call(t);
759
+ } catch (i) {
760
+ console.error("Error in nextTick:", i);
758
761
  }
759
762
  else
760
- i && i();
761
- }), this.pending || (this.pending = !0, this.timerFunc()), !r && typeof Promise < "u")
762
- return new Promise((s) => {
763
- i = s;
763
+ n && n();
764
+ }), this.pending || (this.pending = !0, this.timerFunc()), !e && typeof Promise < "u")
765
+ return new Promise((i) => {
766
+ n = i;
764
767
  });
765
768
  }
766
- static nextTick(r, n) {
767
- return H.instance.nextTick(r, n);
769
+ static nextTick(e, t) {
770
+ return ne.instance.nextTick(e, t);
768
771
  }
769
772
  static get instance() {
770
- return this._instance || (this._instance = new H()), this._instance;
773
+ return this._instance || (this._instance = new ne()), this._instance;
771
774
  }
772
775
  };
773
- p(H, "_instance");
774
- let G = H;
775
- const Zr = G.instance.nextTick.bind(G.instance), Hr = () => {
776
- }, ze = (o, r) => {
777
- const n = o;
778
- let i = o;
779
- if (r.includes(" ")) {
780
- i = "";
781
- const s = r == null ? void 0 : r.split(" ");
782
- for (const f of s)
783
- i += ` ${n}-${f}`;
776
+ g(ne, "_instance");
777
+ let fe = ne;
778
+ const Zn = fe.instance.nextTick.bind(fe.instance), Bn = () => {
779
+ }, De = (r, e) => {
780
+ const t = r;
781
+ let n = r;
782
+ if (e.includes(" ")) {
783
+ n = "";
784
+ const i = e == null ? void 0 : e.split(" ");
785
+ for (const s of i)
786
+ n += ` ${t}-${s}`;
784
787
  } else
785
- r && (i = `${o}-${r}`);
786
- return i;
787
- }, Ur = (o, r) => {
788
- const n = r == null ? void 0 : r.split(".");
789
- let i = o;
790
- for (const s of n)
791
- i = i[s];
792
- return i;
793
- }, Lr = (o) => {
794
- for (const r in o)
795
- o[r] === null && delete o[r];
796
- return o;
797
- }, Br = (o, r) => {
798
- let n = null;
799
- return (...i) => {
800
- n && clearTimeout(n), n = setTimeout(() => {
801
- o(...i);
802
- }, r);
788
+ e && (n = `${r}-${e}`);
789
+ return n;
790
+ }, qn = (r, e) => {
791
+ const t = e == null ? void 0 : e.split(".");
792
+ let n = r;
793
+ for (const i of t)
794
+ n = n[i];
795
+ return n;
796
+ }, Gn = (r) => {
797
+ for (const e in r)
798
+ r[e] === null && delete r[e];
799
+ return r;
800
+ }, Jn = (r, e) => {
801
+ let t = null;
802
+ return (...n) => {
803
+ t && clearTimeout(t), t = setTimeout(() => {
804
+ r(...n);
805
+ }, e);
803
806
  };
804
- }, Jr = (o, r) => {
805
- let n = null, i = 0;
806
- return (...s) => {
807
- const f = Date.now();
808
- n ? f - i >= r && (o(...s), i = f) : (o(...s), i = f, n = setTimeout(() => {
809
- n = null;
810
- }, r));
807
+ }, Kn = (r, e) => {
808
+ let t = null, n = 0;
809
+ return (...i) => {
810
+ const s = Date.now();
811
+ t ? s - n >= e && (r(...i), n = s) : (r(...i), n = s, t = setTimeout(() => {
812
+ t = null;
813
+ }, e));
811
814
  };
812
815
  };
813
- class Kr {
816
+ class Xn {
814
817
  /**
815
818
  * 验证版本号格式是否有效
816
819
  * @param version 版本号字符串
817
820
  * @returns 是否有效
818
821
  */
819
- static isValid(r) {
820
- return /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(r);
822
+ static isValid(e) {
823
+ return /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e);
821
824
  }
822
825
  /**
823
826
  * 比较两个版本号
@@ -825,19 +828,19 @@ class Kr {
825
828
  * @param v2 版本号2
826
829
  * @returns 比较结果: 1(v1>v2), 0(v1=v2), -1(v1<v2)
827
830
  */
828
- static compare(r, n) {
829
- if (!this.isValid(r) || !this.isValid(n))
831
+ static compare(e, t) {
832
+ if (!this.isValid(e) || !this.isValid(t))
830
833
  throw new Error("Invalid version format");
831
- const i = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
832
- for (let d = 0; d < 3; d++) {
833
- const R = parseInt(s[d] || "0", 10), E = parseInt(f[d] || "0", 10);
834
- if (R > E)
834
+ const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), i = n(e), s = n(t);
835
+ for (let u = 0; u < 3; u++) {
836
+ const f = parseInt(i[u] || "0", 10), p = parseInt(s[u] || "0", 10);
837
+ if (f > p)
835
838
  return 1;
836
- if (R < E)
839
+ if (f < p)
837
840
  return -1;
838
841
  }
839
- const l = r.match(/-(.+)/), u = n.match(/-(.+)/);
840
- return l && !u ? -1 : !l && u ? 1 : l && u ? l[1].localeCompare(u[1]) : 0;
842
+ const o = e.match(/-(.+)/), l = t.match(/-(.+)/);
843
+ return o && !l ? -1 : !o && l ? 1 : o && l ? o[1].localeCompare(l[1]) : 0;
841
844
  }
842
845
  /**
843
846
  * 检查版本号是否满足范围要求
@@ -845,35 +848,35 @@ class Kr {
845
848
  * @param range 版本范围 (如 ">=1.0.0 <2.0.0") 支持: >, >=, <, <=, ^, ~, ==, =
846
849
  * @returns 是否满足
847
850
  */
848
- static satisfies(r, n) {
849
- if (!this.isValid(r))
851
+ static satisfies(e, t) {
852
+ if (!this.isValid(e))
850
853
  return !1;
851
- const i = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, s = n.match(i);
852
- return !s || s.length === 0 ? !1 : s.every((f) => {
853
- const l = f.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
854
- if (!l)
854
+ const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, i = t.match(n);
855
+ return !i || i.length === 0 ? !1 : i.every((s) => {
856
+ const o = s.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
857
+ if (!o)
855
858
  return !1;
856
- const u = l[1] || "==", d = l[2];
857
- if (!this.isValid(d))
859
+ const l = o[1] || "==", u = o[2];
860
+ if (!this.isValid(u))
858
861
  return !1;
859
- const R = this.compare(r, d);
860
- switch (u) {
862
+ const f = this.compare(e, u);
863
+ switch (l) {
861
864
  case ">":
862
- return R > 0;
865
+ return f > 0;
863
866
  case ">=":
864
- return R >= 0;
867
+ return f >= 0;
865
868
  case "<":
866
- return R < 0;
869
+ return f < 0;
867
870
  case "<=":
868
- return R <= 0;
871
+ return f <= 0;
869
872
  case "^":
870
- return this.caretRange(r, d);
873
+ return this.caretRange(e, u);
871
874
  case "~":
872
- return this.tildeRange(r, d);
875
+ return this.tildeRange(e, u);
873
876
  case "=":
874
877
  case "==":
875
878
  default:
876
- return R === 0;
879
+ return f === 0;
877
880
  }
878
881
  });
879
882
  }
@@ -883,20 +886,20 @@ class Kr {
883
886
  * @param range 范围版本
884
887
  * @returns 是否匹配
885
888
  */
886
- static caretRange(r, n) {
887
- const i = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
888
- let l = 0;
889
- for (let u = 0; u < f.length; u++)
890
- if (parseInt(f[u], 10) !== 0) {
891
- l = u;
889
+ static caretRange(e, t) {
890
+ const n = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."), i = n(e), s = n(t);
891
+ let o = 0;
892
+ for (let l = 0; l < s.length; l++)
893
+ if (parseInt(s[l], 10) !== 0) {
894
+ o = l;
892
895
  break;
893
896
  }
894
- for (let u = 0; u <= l; u++) {
895
- const d = parseInt(s[u] || "0", 10), R = parseInt(f[u] || "0", 10);
896
- if (d !== R)
897
+ for (let l = 0; l <= o; l++) {
898
+ const u = parseInt(i[l] || "0", 10), f = parseInt(s[l] || "0", 10);
899
+ if (u !== f)
897
900
  return !1;
898
901
  }
899
- return this.compare(r, n) >= 0;
902
+ return this.compare(e, t) >= 0;
900
903
  }
901
904
  /**
902
905
  * 处理 ~ 范围 (允许修改最后一位数字)
@@ -904,198 +907,1253 @@ class Kr {
904
907
  * @param range 范围版本
905
908
  * @returns 是否匹配
906
909
  */
907
- static tildeRange(r, n) {
908
- const i = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
909
- for (let d = 0; d < f.length - 1; d++) {
910
- const R = parseInt(s[d] || "0", 10), E = parseInt(f[d] || "0", 10);
911
- if (R !== E)
910
+ static tildeRange(e, t) {
911
+ const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), i = n(e), s = n(t);
912
+ for (let u = 0; u < s.length - 1; u++) {
913
+ const f = parseInt(i[u] || "0", 10), p = parseInt(s[u] || "0", 10);
914
+ if (f !== p)
912
915
  return !1;
913
916
  }
914
- const l = parseInt(s[f.length - 1] || "0", 10), u = parseInt(f[f.length - 1] || "0", 10);
915
- return l >= u;
917
+ const o = parseInt(i[s.length - 1] || "0", 10), l = parseInt(s[s.length - 1] || "0", 10);
918
+ return o >= l;
916
919
  }
917
920
  /**
918
921
  * 获取主版本号 (major)
919
922
  * @param version 版本号
920
923
  * @returns 主版本号
921
924
  */
922
- static getMajor(r) {
923
- if (!this.isValid(r))
925
+ static getMajor(e) {
926
+ if (!this.isValid(e))
924
927
  throw new Error("Invalid version format");
925
- const n = r.replace(/^v/, "").split(".");
926
- return parseInt(n[0], 10);
928
+ const t = e.replace(/^v/, "").split(".");
929
+ return parseInt(t[0], 10);
927
930
  }
928
931
  /**
929
932
  * 获取次版本号 (minor)
930
933
  * @param version 版本号
931
934
  * @returns 次版本号
932
935
  */
933
- static getMinor(r) {
934
- if (!this.isValid(r))
936
+ static getMinor(e) {
937
+ if (!this.isValid(e))
935
938
  throw new Error("Invalid version format");
936
- const n = r.replace(/^v/, "").split(".");
937
- return parseInt(n[1] || "0", 10);
939
+ const t = e.replace(/^v/, "").split(".");
940
+ return parseInt(t[1] || "0", 10);
938
941
  }
939
942
  /**
940
943
  * 获取修订号 (patch)
941
944
  * @param version 版本号
942
945
  * @returns 修订号
943
946
  */
944
- static getPatch(r) {
945
- if (!this.isValid(r))
947
+ static getPatch(e) {
948
+ if (!this.isValid(e))
946
949
  throw new Error("Invalid version format");
947
- const n = r.replace(/^v/, "").split(".");
948
- return parseInt(n[2] || "0", 10);
950
+ const t = e.replace(/^v/, "").split(".");
951
+ return parseInt(t[2] || "0", 10);
949
952
  }
950
953
  /**
951
954
  * 获取预发布版本标识
952
955
  * @param version 版本号
953
956
  * @returns 预发布标识 (无则返回null)
954
957
  */
955
- static getPrerelease(r) {
956
- if (!this.isValid(r))
958
+ static getPrerelease(e) {
959
+ if (!this.isValid(e))
957
960
  throw new Error("Invalid version format");
958
- const n = r.match(/-([^+]+)/);
959
- return n ? n[1] : null;
961
+ const t = e.match(/-([^+]+)/);
962
+ return t ? t[1] : null;
960
963
  }
961
964
  /**
962
965
  * 获取构建元数据
963
966
  * @param version 版本号
964
967
  * @returns 构建元数据 (无则返回null)
965
968
  */
966
- static getBuildMetadata(r) {
967
- if (!this.isValid(r))
969
+ static getBuildMetadata(e) {
970
+ if (!this.isValid(e))
968
971
  throw new Error("Invalid version format");
969
- const n = r.match(/\+([^]+)/);
970
- return n ? n[1] : null;
972
+ const t = e.match(/\+([^]+)/);
973
+ return t ? t[1] : null;
971
974
  }
972
975
  }
973
- const Ve = Sr({
976
+ const kt = jt({
974
977
  theme: {
975
978
  cssVar: !0,
976
- algorithm: [Tr.defaultAlgorithm]
979
+ algorithm: [Or.defaultAlgorithm]
977
980
  }
978
- }), qr = Ve.Provider;
979
- function Mr() {
980
- return Cr(Ve);
981
+ }), Qn = kt.Provider;
982
+ function Br() {
983
+ return Ot(kt);
981
984
  }
982
- function X(o) {
983
- const { theme: r } = Mr();
984
- return /* @__PURE__ */ x.jsx(jr, { theme: r, children: o.children });
985
+ function ae(r) {
986
+ const { theme: e } = Br();
987
+ return /* @__PURE__ */ m.jsx(Pr, { theme: e, children: r.children });
985
988
  }
986
- const Ne = (o = "") => ze("items-row", o), Ir = (o) => o.items ? /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx("div", { className: `${Ne()} ${o.className || ""}`, style: o.style, children: (o.items || []).map((r, n) => {
987
- const i = `${Ne("item")} ${r.className}`;
988
- return r.render ? /* @__PURE__ */ x.jsx("span", { className: i, children: r.render() }, n) : /* @__PURE__ */ x.jsx(
989
- Or,
989
+ const gt = (r = "") => De("items-row", r), qr = (r) => r.items ? /* @__PURE__ */ m.jsx(ae, { children: /* @__PURE__ */ m.jsx("div", { className: `${gt()} ${r.className || ""}`, style: r.style, children: (r.items || []).map((e, t) => {
990
+ const n = `${gt("item")} ${e.className}`;
991
+ return e.render ? /* @__PURE__ */ m.jsx("span", { className: n, children: e.render() }, t) : /* @__PURE__ */ m.jsx(
992
+ Pt,
990
993
  {
991
- className: i,
992
- ...r.btnProps,
993
- type: r.type || "primary",
994
- onClick: r.onClick,
995
- children: r.label
994
+ className: n,
995
+ ...e.btnProps,
996
+ type: e.type || "primary",
997
+ onClick: e.onClick,
998
+ children: e.label
996
999
  },
997
- r.label
1000
+ e.label
998
1001
  );
999
1002
  }) }) }) : null;
1000
- const Z = (o = "") => ze("m-breadcrumb", o), Gr = (o) => {
1003
+ const ee = (r = "") => De("m-breadcrumb", r), ea = (r) => {
1001
1004
  const {
1002
- routes: r,
1003
- customItems: n,
1004
- style: i,
1005
- className: s,
1006
- offsetTop: f = 64,
1007
- mainAppBaseUrl: l,
1008
- microAppName: u
1009
- } = o, d = q.useRef(null), R = q.useCallback(() => {
1010
- var b, T;
1011
- (T = (b = d.current) == null ? void 0 : b.updatePosition) == null || T.call(b);
1005
+ routes: e,
1006
+ customItems: t,
1007
+ style: n,
1008
+ className: i,
1009
+ offsetTop: s = 64,
1010
+ mainAppBaseUrl: o,
1011
+ microAppName: l
1012
+ } = r, u = M.useRef(null), f = M.useCallback(() => {
1013
+ var h, w;
1014
+ (w = (h = u.current) == null ? void 0 : h.updatePosition) == null || w.call(h);
1012
1015
  }, []);
1013
- q.useEffect(() => (window.addEventListener("scroll", R, !0), () => window.removeEventListener("scroll", R)), [R]);
1014
- const E = q.useCallback(
1015
- (b) => {
1016
- if (!b)
1016
+ M.useEffect(() => (window.addEventListener("scroll", f, !0), () => window.removeEventListener("scroll", f)), [f]);
1017
+ const p = M.useCallback(
1018
+ (h) => {
1019
+ if (!h)
1017
1020
  return "";
1018
- const T = b.replace(/^\/+/, "");
1021
+ const w = h.replace(/^\/+/, "");
1019
1022
  return `/${[
1023
+ o == null ? void 0 : o.replace(/\/+$/, ""),
1020
1024
  l == null ? void 0 : l.replace(/\/+$/, ""),
1021
- u == null ? void 0 : u.replace(/\/+$/, ""),
1022
- T
1025
+ w
1023
1026
  ].filter(Boolean).join("/")}`;
1024
1027
  },
1025
- [l, u]
1028
+ [o, l]
1026
1029
  );
1027
- return /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx("div", { className: `${Z()} ${s || ""}`, style: i, children: /* @__PURE__ */ x.jsx($r, { ref: d, offsetTop: f, children: /* @__PURE__ */ x.jsxs(
1028
- Ar,
1030
+ return /* @__PURE__ */ m.jsx(ae, { children: /* @__PURE__ */ m.jsx("div", { className: `${ee()} ${i || ""}`, style: n, children: /* @__PURE__ */ m.jsx(Tr, { ref: u, offsetTop: s, children: /* @__PURE__ */ m.jsxs(
1031
+ kr,
1029
1032
  {
1030
- className: Z("container"),
1031
- rootClassName: Z("body"),
1033
+ className: ee("container"),
1034
+ rootClassName: ee("body"),
1032
1035
  variant: "borderless",
1033
1036
  children: [
1034
- /* @__PURE__ */ x.jsx(ke, { className: Z("inner-breadcrumb"), style: { fontSize: "18px" }, children: r == null ? void 0 : r.map((b) => /* @__PURE__ */ x.jsx(ke.Item, { children: b.url ? /* @__PURE__ */ x.jsx("a", { href: `#${E(b.url)}`, children: b.name }) : b.name }, b.url || b.name)) }),
1035
- /* @__PURE__ */ x.jsx("div", { className: Z("custom-item-wrapper"), children: /* @__PURE__ */ x.jsx(Ir, { items: n }) })
1037
+ /* @__PURE__ */ m.jsx(ut, { className: ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((h) => /* @__PURE__ */ m.jsx(ut.Item, { children: h.url ? /* @__PURE__ */ m.jsx("a", { href: `#${p(h.url)}`, children: h.name }) : h.name }, h.url || h.name)) }),
1038
+ /* @__PURE__ */ m.jsx("div", { className: ee("custom-item-wrapper"), children: /* @__PURE__ */ m.jsx(qr, { items: t }) })
1036
1039
  ]
1037
1040
  }
1038
1041
  ) }) }) });
1039
- }, Nr = (o) => {
1042
+ }, Gr = (r) => {
1040
1043
  const {
1041
- data: r,
1042
- title: n,
1043
- column: i = 3,
1044
- lineHeight: s,
1045
- align: f = "left",
1046
- itemLayout: l,
1047
- colon: u = !0,
1048
- bordered: d = !1,
1049
- style: R,
1050
- className: E,
1051
- labelStyle: b,
1052
- contentStyle: T
1053
- } = o, D = {
1054
- ...s ? { lineHeight: `${s}px` } : {},
1055
- textAlign: f,
1056
- ...l != null && l.label ? { width: `${l.label}px` } : {},
1057
- ...b
1058
- }, U = {
1059
- ...s ? { lineHeight: `${s}px` } : {},
1060
- ...l != null && l.value ? { width: `${l.value}px` } : {},
1061
- ...T
1044
+ data: e,
1045
+ title: t,
1046
+ column: n = 3,
1047
+ lineHeight: i,
1048
+ align: s = "left",
1049
+ itemLayout: o,
1050
+ colon: l = !0,
1051
+ bordered: u = !1,
1052
+ style: f,
1053
+ className: p,
1054
+ labelStyle: h,
1055
+ contentStyle: w
1056
+ } = r, A = {
1057
+ ...i ? { lineHeight: `${i}px` } : {},
1058
+ textAlign: s,
1059
+ ...o != null && o.label ? { width: `${o.label}px` } : {},
1060
+ ...h
1061
+ }, W = {
1062
+ ...i ? { lineHeight: `${i}px` } : {},
1063
+ ...o != null && o.value ? { width: `${o.value}px` } : {},
1064
+ ...w
1062
1065
  };
1063
- return /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx(
1064
- Ye,
1066
+ return /* @__PURE__ */ m.jsx(ae, { children: /* @__PURE__ */ m.jsx(
1067
+ ft,
1065
1068
  {
1066
- title: n,
1067
- column: i,
1068
- colon: u,
1069
- bordered: d,
1070
- style: R,
1071
- className: E,
1072
- labelStyle: D,
1073
- contentStyle: U,
1074
- children: r.map((Y, Q) => {
1075
- var A;
1076
- return /* @__PURE__ */ x.jsx(
1077
- Ye.Item,
1069
+ title: t,
1070
+ column: n,
1071
+ colon: l,
1072
+ bordered: u,
1073
+ style: f,
1074
+ className: p,
1075
+ labelStyle: A,
1076
+ contentStyle: W,
1077
+ children: e.map((I, q) => {
1078
+ var D;
1079
+ return /* @__PURE__ */ m.jsx(
1080
+ ft.Item,
1078
1081
  {
1079
- label: Y.label,
1080
- span: Y.span,
1081
- children: Y.value || "-"
1082
+ label: I.label,
1083
+ span: I.span,
1084
+ children: I.value || "-"
1082
1085
  },
1083
- ((A = Y.label) == null ? void 0 : A.toString()) || Q
1086
+ ((D = I.label) == null ? void 0 : D.toString()) || q
1084
1087
  );
1085
1088
  })
1086
1089
  }
1087
1090
  ) });
1088
1091
  };
1089
- Nr.displayName = "MDescriptions";
1090
- function Xr(o) {
1092
+ Gr.displayName = "MDescriptions";
1093
+ var Jr = /* @__PURE__ */ jt({});
1094
+ const Nt = Jr;
1095
+ function de() {
1096
+ return de = Object.assign ? Object.assign.bind() : function(r) {
1097
+ for (var e = 1; e < arguments.length; e++) {
1098
+ var t = arguments[e];
1099
+ for (var n in t)
1100
+ ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
1101
+ }
1102
+ return r;
1103
+ }, de.apply(null, arguments);
1104
+ }
1105
+ function Kr(r) {
1106
+ if (Array.isArray(r))
1107
+ return r;
1108
+ }
1109
+ function Xr(r, e) {
1110
+ var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
1111
+ if (t != null) {
1112
+ var n, i, s, o, l = [], u = !0, f = !1;
1113
+ try {
1114
+ if (s = (t = t.call(r)).next, e === 0) {
1115
+ if (Object(t) !== t)
1116
+ return;
1117
+ u = !1;
1118
+ } else
1119
+ for (; !(u = (n = s.call(t)).done) && (l.push(n.value), l.length !== e); u = !0)
1120
+ ;
1121
+ } catch (p) {
1122
+ f = !0, i = p;
1123
+ } finally {
1124
+ try {
1125
+ if (!u && t.return != null && (o = t.return(), Object(o) !== o))
1126
+ return;
1127
+ } finally {
1128
+ if (f)
1129
+ throw i;
1130
+ }
1131
+ }
1132
+ return l;
1133
+ }
1134
+ }
1135
+ function vt(r, e) {
1136
+ (e == null || e > r.length) && (e = r.length);
1137
+ for (var t = 0, n = Array(e); t < e; t++)
1138
+ n[t] = r[t];
1139
+ return n;
1140
+ }
1141
+ function Qr(r, e) {
1142
+ if (r) {
1143
+ if (typeof r == "string")
1144
+ return vt(r, e);
1145
+ var t = {}.toString.call(r).slice(8, -1);
1146
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? vt(r, e) : void 0;
1147
+ }
1148
+ }
1149
+ function en() {
1150
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1151
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1152
+ }
1153
+ function $t(r, e) {
1154
+ return Kr(r) || Xr(r, e) || Qr(r, e) || en();
1155
+ }
1156
+ function z(r) {
1157
+ "@babel/helpers - typeof";
1158
+ return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1159
+ return typeof e;
1160
+ } : function(e) {
1161
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1162
+ }, z(r);
1163
+ }
1164
+ function tn(r, e) {
1165
+ if (z(r) != "object" || !r)
1166
+ return r;
1167
+ var t = r[Symbol.toPrimitive];
1168
+ if (t !== void 0) {
1169
+ var n = t.call(r, e || "default");
1170
+ if (z(n) != "object")
1171
+ return n;
1172
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1173
+ }
1174
+ return (e === "string" ? String : Number)(r);
1175
+ }
1176
+ function rn(r) {
1177
+ var e = tn(r, "string");
1178
+ return z(e) == "symbol" ? e : e + "";
1179
+ }
1180
+ function T(r, e, t) {
1181
+ return (e = rn(e)) in r ? Object.defineProperty(r, e, {
1182
+ value: t,
1183
+ enumerable: !0,
1184
+ configurable: !0,
1185
+ writable: !0
1186
+ }) : r[e] = t, r;
1187
+ }
1188
+ function nn(r, e) {
1189
+ if (r == null)
1190
+ return {};
1191
+ var t = {};
1192
+ for (var n in r)
1193
+ if ({}.hasOwnProperty.call(r, n)) {
1194
+ if (e.indexOf(n) !== -1)
1195
+ continue;
1196
+ t[n] = r[n];
1197
+ }
1198
+ return t;
1199
+ }
1200
+ function At(r, e) {
1201
+ if (r == null)
1202
+ return {};
1203
+ var t, n, i = nn(r, e);
1204
+ if (Object.getOwnPropertySymbols) {
1205
+ var s = Object.getOwnPropertySymbols(r);
1206
+ for (n = 0; n < s.length; n++)
1207
+ t = s[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (i[t] = r[t]);
1208
+ }
1209
+ return i;
1210
+ }
1211
+ var Dt = { exports: {} };
1212
+ /*!
1213
+ Copyright (c) 2018 Jed Watson.
1214
+ Licensed under the MIT License (MIT), see
1215
+ http://jedwatson.github.io/classnames
1216
+ */
1217
+ (function(r) {
1218
+ (function() {
1219
+ var e = {}.hasOwnProperty;
1220
+ function t() {
1221
+ for (var s = "", o = 0; o < arguments.length; o++) {
1222
+ var l = arguments[o];
1223
+ l && (s = i(s, n(l)));
1224
+ }
1225
+ return s;
1226
+ }
1227
+ function n(s) {
1228
+ if (typeof s == "string" || typeof s == "number")
1229
+ return s;
1230
+ if (typeof s != "object")
1231
+ return "";
1232
+ if (Array.isArray(s))
1233
+ return t.apply(null, s);
1234
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
1235
+ return s.toString();
1236
+ var o = "";
1237
+ for (var l in s)
1238
+ e.call(s, l) && s[l] && (o = i(o, l));
1239
+ return o;
1240
+ }
1241
+ function i(s, o) {
1242
+ return o ? s ? s + " " + o : s + o : s;
1243
+ }
1244
+ r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
1245
+ })();
1246
+ })(Dt);
1247
+ var an = Dt.exports;
1248
+ const sn = /* @__PURE__ */ Wr(an), O = Math.round;
1249
+ function Oe(r, e) {
1250
+ const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((i) => parseFloat(i));
1251
+ for (let i = 0; i < 3; i += 1)
1252
+ n[i] = e(n[i] || 0, t[i] || "", i);
1253
+ return t[3] ? n[3] = t[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
1254
+ }
1255
+ const mt = (r, e, t) => t === 0 ? r : r / 100;
1256
+ function te(r, e) {
1257
+ const t = e || 255;
1258
+ return r > t ? t : r < 0 ? 0 : r;
1259
+ }
1260
+ class Z {
1261
+ constructor(e) {
1262
+ T(this, "isValid", !0), T(this, "r", 0), T(this, "g", 0), T(this, "b", 0), T(this, "a", 1), T(this, "_h", void 0), T(this, "_s", void 0), T(this, "_l", void 0), T(this, "_v", void 0), T(this, "_max", void 0), T(this, "_min", void 0), T(this, "_brightness", void 0);
1263
+ function t(n) {
1264
+ return n[0] in e && n[1] in e && n[2] in e;
1265
+ }
1266
+ if (e)
1267
+ if (typeof e == "string") {
1268
+ let i = function(s) {
1269
+ return n.startsWith(s);
1270
+ };
1271
+ const n = e.trim();
1272
+ /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : i("rgb") ? this.fromRgbString(n) : i("hsl") ? this.fromHslString(n) : (i("hsv") || i("hsb")) && this.fromHsvString(n);
1273
+ } else if (e instanceof Z)
1274
+ this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this._h = e._h, this._s = e._s, this._l = e._l, this._v = e._v;
1275
+ else if (t("rgb"))
1276
+ this.r = te(e.r), this.g = te(e.g), this.b = te(e.b), this.a = typeof e.a == "number" ? te(e.a, 1) : 1;
1277
+ else if (t("hsl"))
1278
+ this.fromHsl(e);
1279
+ else if (t("hsv"))
1280
+ this.fromHsv(e);
1281
+ else
1282
+ throw new Error("@ant-design/fast-color: unsupported input " + JSON.stringify(e));
1283
+ }
1284
+ // ======================= Setter =======================
1285
+ setR(e) {
1286
+ return this._sc("r", e);
1287
+ }
1288
+ setG(e) {
1289
+ return this._sc("g", e);
1290
+ }
1291
+ setB(e) {
1292
+ return this._sc("b", e);
1293
+ }
1294
+ setA(e) {
1295
+ return this._sc("a", e, 1);
1296
+ }
1297
+ setHue(e) {
1298
+ const t = this.toHsv();
1299
+ return t.h = e, this._c(t);
1300
+ }
1301
+ // ======================= Getter =======================
1302
+ /**
1303
+ * Returns the perceived luminance of a color, from 0-1.
1304
+ * @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
1305
+ */
1306
+ getLuminance() {
1307
+ function e(s) {
1308
+ const o = s / 255;
1309
+ return o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
1310
+ }
1311
+ const t = e(this.r), n = e(this.g), i = e(this.b);
1312
+ return 0.2126 * t + 0.7152 * n + 0.0722 * i;
1313
+ }
1314
+ getHue() {
1315
+ if (typeof this._h > "u") {
1316
+ const e = this.getMax() - this.getMin();
1317
+ e === 0 ? this._h = 0 : this._h = O(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));
1318
+ }
1319
+ return this._h;
1320
+ }
1321
+ getSaturation() {
1322
+ if (typeof this._s > "u") {
1323
+ const e = this.getMax() - this.getMin();
1324
+ e === 0 ? this._s = 0 : this._s = e / this.getMax();
1325
+ }
1326
+ return this._s;
1327
+ }
1328
+ getLightness() {
1329
+ return typeof this._l > "u" && (this._l = (this.getMax() + this.getMin()) / 510), this._l;
1330
+ }
1331
+ getValue() {
1332
+ return typeof this._v > "u" && (this._v = this.getMax() / 255), this._v;
1333
+ }
1334
+ /**
1335
+ * Returns the perceived brightness of the color, from 0-255.
1336
+ * Note: this is not the b of HSB
1337
+ * @see http://www.w3.org/TR/AERT#color-contrast
1338
+ */
1339
+ getBrightness() {
1340
+ return typeof this._brightness > "u" && (this._brightness = (this.r * 299 + this.g * 587 + this.b * 114) / 1e3), this._brightness;
1341
+ }
1342
+ // ======================== Func ========================
1343
+ darken(e = 10) {
1344
+ const t = this.getHue(), n = this.getSaturation();
1345
+ let i = this.getLightness() - e / 100;
1346
+ return i < 0 && (i = 0), this._c({
1347
+ h: t,
1348
+ s: n,
1349
+ l: i,
1350
+ a: this.a
1351
+ });
1352
+ }
1353
+ lighten(e = 10) {
1354
+ const t = this.getHue(), n = this.getSaturation();
1355
+ let i = this.getLightness() + e / 100;
1356
+ return i > 1 && (i = 1), this._c({
1357
+ h: t,
1358
+ s: n,
1359
+ l: i,
1360
+ a: this.a
1361
+ });
1362
+ }
1363
+ /**
1364
+ * Mix the current color a given amount with another color, from 0 to 100.
1365
+ * 0 means no mixing (return current color).
1366
+ */
1367
+ mix(e, t = 50) {
1368
+ const n = this._c(e), i = t / 100, s = (l) => (n[l] - this[l]) * i + this[l], o = {
1369
+ r: O(s("r")),
1370
+ g: O(s("g")),
1371
+ b: O(s("b")),
1372
+ a: O(s("a") * 100) / 100
1373
+ };
1374
+ return this._c(o);
1375
+ }
1376
+ /**
1377
+ * Mix the color with pure white, from 0 to 100.
1378
+ * Providing 0 will do nothing, providing 100 will always return white.
1379
+ */
1380
+ tint(e = 10) {
1381
+ return this.mix({
1382
+ r: 255,
1383
+ g: 255,
1384
+ b: 255,
1385
+ a: 1
1386
+ }, e);
1387
+ }
1388
+ /**
1389
+ * Mix the color with pure black, from 0 to 100.
1390
+ * Providing 0 will do nothing, providing 100 will always return black.
1391
+ */
1392
+ shade(e = 10) {
1393
+ return this.mix({
1394
+ r: 0,
1395
+ g: 0,
1396
+ b: 0,
1397
+ a: 1
1398
+ }, e);
1399
+ }
1400
+ onBackground(e) {
1401
+ const t = this._c(e), n = this.a + t.a * (1 - this.a), i = (s) => O((this[s] * this.a + t[s] * t.a * (1 - this.a)) / n);
1402
+ return this._c({
1403
+ r: i("r"),
1404
+ g: i("g"),
1405
+ b: i("b"),
1406
+ a: n
1407
+ });
1408
+ }
1409
+ // ======================= Status =======================
1410
+ isDark() {
1411
+ return this.getBrightness() < 128;
1412
+ }
1413
+ isLight() {
1414
+ return this.getBrightness() >= 128;
1415
+ }
1416
+ // ======================== MISC ========================
1417
+ equals(e) {
1418
+ return this.r === e.r && this.g === e.g && this.b === e.b && this.a === e.a;
1419
+ }
1420
+ clone() {
1421
+ return this._c(this);
1422
+ }
1423
+ // ======================= Format =======================
1424
+ toHexString() {
1425
+ let e = "#";
1426
+ const t = (this.r || 0).toString(16);
1427
+ e += t.length === 2 ? t : "0" + t;
1428
+ const n = (this.g || 0).toString(16);
1429
+ e += n.length === 2 ? n : "0" + n;
1430
+ const i = (this.b || 0).toString(16);
1431
+ if (e += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
1432
+ const s = O(this.a * 255).toString(16);
1433
+ e += s.length === 2 ? s : "0" + s;
1434
+ }
1435
+ return e;
1436
+ }
1437
+ /** CSS support color pattern */
1438
+ toHsl() {
1439
+ return {
1440
+ h: this.getHue(),
1441
+ s: this.getSaturation(),
1442
+ l: this.getLightness(),
1443
+ a: this.a
1444
+ };
1445
+ }
1446
+ /** CSS support color pattern */
1447
+ toHslString() {
1448
+ const e = this.getHue(), t = O(this.getSaturation() * 100), n = O(this.getLightness() * 100);
1449
+ return this.a !== 1 ? `hsla(${e},${t}%,${n}%,${this.a})` : `hsl(${e},${t}%,${n}%)`;
1450
+ }
1451
+ /** Same as toHsb */
1452
+ toHsv() {
1453
+ return {
1454
+ h: this.getHue(),
1455
+ s: this.getSaturation(),
1456
+ v: this.getValue(),
1457
+ a: this.a
1458
+ };
1459
+ }
1460
+ toRgb() {
1461
+ return {
1462
+ r: this.r,
1463
+ g: this.g,
1464
+ b: this.b,
1465
+ a: this.a
1466
+ };
1467
+ }
1468
+ toRgbString() {
1469
+ return this.a !== 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : `rgb(${this.r},${this.g},${this.b})`;
1470
+ }
1471
+ toString() {
1472
+ return this.toRgbString();
1473
+ }
1474
+ // ====================== Privates ======================
1475
+ /** Return a new FastColor object with one channel changed */
1476
+ _sc(e, t, n) {
1477
+ const i = this.clone();
1478
+ return i[e] = te(t, n), i;
1479
+ }
1480
+ _c(e) {
1481
+ return new this.constructor(e);
1482
+ }
1483
+ getMax() {
1484
+ return typeof this._max > "u" && (this._max = Math.max(this.r, this.g, this.b)), this._max;
1485
+ }
1486
+ getMin() {
1487
+ return typeof this._min > "u" && (this._min = Math.min(this.r, this.g, this.b)), this._min;
1488
+ }
1489
+ fromHexString(e) {
1490
+ const t = e.replace("#", "");
1491
+ function n(i, s) {
1492
+ return parseInt(t[i] + t[s || i], 16);
1493
+ }
1494
+ t.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = t[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = t[6] ? n(6, 7) / 255 : 1);
1495
+ }
1496
+ fromHsl({
1497
+ h: e,
1498
+ s: t,
1499
+ l: n,
1500
+ a: i
1501
+ }) {
1502
+ if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof i == "number" ? i : 1, t <= 0) {
1503
+ const w = O(n * 255);
1504
+ this.r = w, this.g = w, this.b = w;
1505
+ }
1506
+ let s = 0, o = 0, l = 0;
1507
+ const u = e / 60, f = (1 - Math.abs(2 * n - 1)) * t, p = f * (1 - Math.abs(u % 2 - 1));
1508
+ u >= 0 && u < 1 ? (s = f, o = p) : u >= 1 && u < 2 ? (s = p, o = f) : u >= 2 && u < 3 ? (o = f, l = p) : u >= 3 && u < 4 ? (o = p, l = f) : u >= 4 && u < 5 ? (s = p, l = f) : u >= 5 && u < 6 && (s = f, l = p);
1509
+ const h = n - f / 2;
1510
+ this.r = O((s + h) * 255), this.g = O((o + h) * 255), this.b = O((l + h) * 255);
1511
+ }
1512
+ fromHsv({
1513
+ h: e,
1514
+ s: t,
1515
+ v: n,
1516
+ a: i
1517
+ }) {
1518
+ this._h = e % 360, this._s = t, this._v = n, this.a = typeof i == "number" ? i : 1;
1519
+ const s = O(n * 255);
1520
+ if (this.r = s, this.g = s, this.b = s, t <= 0)
1521
+ return;
1522
+ const o = e / 60, l = Math.floor(o), u = o - l, f = O(n * (1 - t) * 255), p = O(n * (1 - t * u) * 255), h = O(n * (1 - t * (1 - u)) * 255);
1523
+ switch (l) {
1524
+ case 0:
1525
+ this.g = h, this.b = f;
1526
+ break;
1527
+ case 1:
1528
+ this.r = p, this.b = f;
1529
+ break;
1530
+ case 2:
1531
+ this.r = f, this.b = h;
1532
+ break;
1533
+ case 3:
1534
+ this.r = f, this.g = p;
1535
+ break;
1536
+ case 4:
1537
+ this.r = h, this.g = f;
1538
+ break;
1539
+ case 5:
1540
+ default:
1541
+ this.g = f, this.b = p;
1542
+ break;
1543
+ }
1544
+ }
1545
+ fromHsvString(e) {
1546
+ const t = Oe(e, mt);
1547
+ this.fromHsv({
1548
+ h: t[0],
1549
+ s: t[1],
1550
+ v: t[2],
1551
+ a: t[3]
1552
+ });
1553
+ }
1554
+ fromHslString(e) {
1555
+ const t = Oe(e, mt);
1556
+ this.fromHsl({
1557
+ h: t[0],
1558
+ s: t[1],
1559
+ l: t[2],
1560
+ a: t[3]
1561
+ });
1562
+ }
1563
+ fromRgbString(e) {
1564
+ const t = Oe(e, (n, i) => (
1565
+ // Convert percentage to number. e.g. 50% -> 128
1566
+ i.includes("%") ? O(n / 100 * 255) : n
1567
+ ));
1568
+ this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
1569
+ }
1570
+ }
1571
+ var le = 2, bt = 0.16, on = 0.05, cn = 0.05, ln = 0.15, Mt = 5, It = 4, un = [{
1572
+ index: 7,
1573
+ amount: 15
1574
+ }, {
1575
+ index: 6,
1576
+ amount: 25
1577
+ }, {
1578
+ index: 5,
1579
+ amount: 30
1580
+ }, {
1581
+ index: 5,
1582
+ amount: 45
1583
+ }, {
1584
+ index: 5,
1585
+ amount: 65
1586
+ }, {
1587
+ index: 5,
1588
+ amount: 85
1589
+ }, {
1590
+ index: 4,
1591
+ amount: 90
1592
+ }, {
1593
+ index: 3,
1594
+ amount: 95
1595
+ }, {
1596
+ index: 2,
1597
+ amount: 97
1598
+ }, {
1599
+ index: 1,
1600
+ amount: 98
1601
+ }];
1602
+ function yt(r, e, t) {
1091
1603
  var n;
1092
- const r = ((n = o.columns) == null ? void 0 : n.map((i) => ({ ...i, dataIndex: i.key }))) ?? [];
1093
- return /* @__PURE__ */ x.jsxs(X, { children: [
1094
- /* @__PURE__ */ x.jsx(Dr, { rowKey: (i) => i.id, ...o, columns: r }),
1604
+ return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) - le * e : Math.round(r.h) + le * e : n = t ? Math.round(r.h) + le * e : Math.round(r.h) - le * e, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
1605
+ }
1606
+ function xt(r, e, t) {
1607
+ if (r.h === 0 && r.s === 0)
1608
+ return r.s;
1609
+ var n;
1610
+ return t ? n = r.s - bt * e : e === It ? n = r.s + bt : n = r.s + on * e, n > 1 && (n = 1), t && e === Mt && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
1611
+ }
1612
+ function wt(r, e, t) {
1613
+ var n;
1614
+ return t ? n = r.v + cn * e : n = r.v - ln * e, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
1615
+ }
1616
+ function fn(r) {
1617
+ for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new Z(r), i = n.toHsv(), s = Mt; s > 0; s -= 1) {
1618
+ var o = new Z({
1619
+ h: yt(i, s, !0),
1620
+ s: xt(i, s, !0),
1621
+ v: wt(i, s, !0)
1622
+ });
1623
+ t.push(o);
1624
+ }
1625
+ t.push(n);
1626
+ for (var l = 1; l <= It; l += 1) {
1627
+ var u = new Z({
1628
+ h: yt(i, l),
1629
+ s: xt(i, l),
1630
+ v: wt(i, l)
1631
+ });
1632
+ t.push(u);
1633
+ }
1634
+ return e.theme === "dark" ? un.map(function(f) {
1635
+ var p = f.index, h = f.amount;
1636
+ return new Z(e.backgroundColor || "#141414").mix(t[p], h).toHexString();
1637
+ }) : t.map(function(f) {
1638
+ return f.toHexString();
1639
+ });
1640
+ }
1641
+ var ke = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
1642
+ ke.primary = ke[5];
1643
+ function Ct(r, e) {
1644
+ var t = Object.keys(r);
1645
+ if (Object.getOwnPropertySymbols) {
1646
+ var n = Object.getOwnPropertySymbols(r);
1647
+ e && (n = n.filter(function(i) {
1648
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
1649
+ })), t.push.apply(t, n);
1650
+ }
1651
+ return t;
1652
+ }
1653
+ function Y(r) {
1654
+ for (var e = 1; e < arguments.length; e++) {
1655
+ var t = arguments[e] != null ? arguments[e] : {};
1656
+ e % 2 ? Ct(Object(t), !0).forEach(function(n) {
1657
+ T(r, n, t[n]);
1658
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ct(Object(t)).forEach(function(n) {
1659
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
1660
+ });
1661
+ }
1662
+ return r;
1663
+ }
1664
+ function dn() {
1665
+ return !!(typeof window < "u" && window.document && window.document.createElement);
1666
+ }
1667
+ function hn(r, e) {
1668
+ if (!r)
1669
+ return !1;
1670
+ if (r.contains)
1671
+ return r.contains(e);
1672
+ for (var t = e; t; ) {
1673
+ if (t === r)
1674
+ return !0;
1675
+ t = t.parentNode;
1676
+ }
1677
+ return !1;
1678
+ }
1679
+ var St = "data-rc-order", _t = "data-rc-priority", pn = "rc-util-key", Ne = /* @__PURE__ */ new Map();
1680
+ function Ht() {
1681
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = r.mark;
1682
+ return e ? e.startsWith("data-") ? e : "data-".concat(e) : pn;
1683
+ }
1684
+ function Me(r) {
1685
+ if (r.attachTo)
1686
+ return r.attachTo;
1687
+ var e = document.querySelector("head");
1688
+ return e || document.body;
1689
+ }
1690
+ function gn(r) {
1691
+ return r === "queue" ? "prependQueue" : r ? "prepend" : "append";
1692
+ }
1693
+ function Ie(r) {
1694
+ return Array.from((Ne.get(r) || r).children).filter(function(e) {
1695
+ return e.tagName === "STYLE";
1696
+ });
1697
+ }
1698
+ function Yt(r) {
1699
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1700
+ if (!dn())
1701
+ return null;
1702
+ var t = e.csp, n = e.prepend, i = e.priority, s = i === void 0 ? 0 : i, o = gn(n), l = o === "prependQueue", u = document.createElement("style");
1703
+ u.setAttribute(St, o), l && s && u.setAttribute(_t, "".concat(s)), t != null && t.nonce && (u.nonce = t == null ? void 0 : t.nonce), u.innerHTML = r;
1704
+ var f = Me(e), p = f.firstChild;
1705
+ if (n) {
1706
+ if (l) {
1707
+ var h = (e.styles || Ie(f)).filter(function(w) {
1708
+ if (!["prepend", "prependQueue"].includes(w.getAttribute(St)))
1709
+ return !1;
1710
+ var A = Number(w.getAttribute(_t) || 0);
1711
+ return s >= A;
1712
+ });
1713
+ if (h.length)
1714
+ return f.insertBefore(u, h[h.length - 1].nextSibling), u;
1715
+ }
1716
+ f.insertBefore(u, p);
1717
+ } else
1718
+ f.appendChild(u);
1719
+ return u;
1720
+ }
1721
+ function vn(r) {
1722
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = Me(e);
1723
+ return (e.styles || Ie(t)).find(function(n) {
1724
+ return n.getAttribute(Ht(e)) === r;
1725
+ });
1726
+ }
1727
+ function mn(r, e) {
1728
+ var t = Ne.get(r);
1729
+ if (!t || !hn(document, t)) {
1730
+ var n = Yt("", e), i = n.parentNode;
1731
+ Ne.set(r, i), r.removeChild(n);
1732
+ }
1733
+ }
1734
+ function bn(r, e) {
1735
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Me(t), i = Ie(n), s = Y(Y({}, t), {}, {
1736
+ styles: i
1737
+ });
1738
+ mn(n, s);
1739
+ var o = vn(e, s);
1740
+ if (o) {
1741
+ var l, u;
1742
+ if ((l = s.csp) !== null && l !== void 0 && l.nonce && o.nonce !== ((u = s.csp) === null || u === void 0 ? void 0 : u.nonce)) {
1743
+ var f;
1744
+ o.nonce = (f = s.csp) === null || f === void 0 ? void 0 : f.nonce;
1745
+ }
1746
+ return o.innerHTML !== r && (o.innerHTML = r), o;
1747
+ }
1748
+ var p = Yt(r, s);
1749
+ return p.setAttribute(Ht(s), e), p;
1750
+ }
1751
+ function Vt(r) {
1752
+ var e;
1753
+ return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
1754
+ }
1755
+ function yn(r) {
1756
+ return Vt(r) instanceof ShadowRoot;
1757
+ }
1758
+ function xn(r) {
1759
+ return yn(r) ? Vt(r) : null;
1760
+ }
1761
+ var $e = {}, He = [], wn = function(e) {
1762
+ He.push(e);
1763
+ };
1764
+ function Cn(r, e) {
1765
+ if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
1766
+ var t = He.reduce(function(n, i) {
1767
+ return i(n ?? "", "warning");
1768
+ }, e);
1769
+ t && console.error("Warning: ".concat(t));
1770
+ }
1771
+ }
1772
+ function Sn(r, e) {
1773
+ if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
1774
+ var t = He.reduce(function(n, i) {
1775
+ return i(n ?? "", "note");
1776
+ }, e);
1777
+ t && console.warn("Note: ".concat(t));
1778
+ }
1779
+ }
1780
+ function _n() {
1781
+ $e = {};
1782
+ }
1783
+ function Lt(r, e, t) {
1784
+ !e && !$e[t] && (r(!1, t), $e[t] = !0);
1785
+ }
1786
+ function he(r, e) {
1787
+ Lt(Cn, r, e);
1788
+ }
1789
+ function Rn(r, e) {
1790
+ Lt(Sn, r, e);
1791
+ }
1792
+ he.preMessage = wn;
1793
+ he.resetWarned = _n;
1794
+ he.noteOnce = Rn;
1795
+ function En(r) {
1796
+ return r.replace(/-(.)/g, function(e, t) {
1797
+ return t.toUpperCase();
1798
+ });
1799
+ }
1800
+ function jn(r, e) {
1801
+ he(r, "[@ant-design/icons] ".concat(e));
1802
+ }
1803
+ function Rt(r) {
1804
+ return z(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (z(r.icon) === "object" || typeof r.icon == "function");
1805
+ }
1806
+ function Et() {
1807
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1808
+ return Object.keys(r).reduce(function(e, t) {
1809
+ var n = r[t];
1810
+ switch (t) {
1811
+ case "class":
1812
+ e.className = n, delete e.class;
1813
+ break;
1814
+ default:
1815
+ delete e[t], e[En(t)] = n;
1816
+ }
1817
+ return e;
1818
+ }, {});
1819
+ }
1820
+ function Ae(r, e, t) {
1821
+ return t ? /* @__PURE__ */ ue.createElement(r.tag, Y(Y({
1822
+ key: e
1823
+ }, Et(r.attrs)), t), (r.children || []).map(function(n, i) {
1824
+ return Ae(n, "".concat(e, "-").concat(r.tag, "-").concat(i));
1825
+ })) : /* @__PURE__ */ ue.createElement(r.tag, Y({
1826
+ key: e
1827
+ }, Et(r.attrs)), (r.children || []).map(function(n, i) {
1828
+ return Ae(n, "".concat(e, "-").concat(r.tag, "-").concat(i));
1829
+ }));
1830
+ }
1831
+ function zt(r) {
1832
+ return fn(r)[0];
1833
+ }
1834
+ function Wt(r) {
1835
+ return r ? Array.isArray(r) ? r : [r] : [];
1836
+ }
1837
+ var On = `
1838
+ .anticon {
1839
+ display: inline-flex;
1840
+ align-items: center;
1841
+ color: inherit;
1842
+ font-style: normal;
1843
+ line-height: 0;
1844
+ text-align: center;
1845
+ text-transform: none;
1846
+ vertical-align: -0.125em;
1847
+ text-rendering: optimizeLegibility;
1848
+ -webkit-font-smoothing: antialiased;
1849
+ -moz-osx-font-smoothing: grayscale;
1850
+ }
1851
+
1852
+ .anticon > * {
1853
+ line-height: 1;
1854
+ }
1855
+
1856
+ .anticon svg {
1857
+ display: inline-block;
1858
+ }
1859
+
1860
+ .anticon::before {
1861
+ display: none;
1862
+ }
1863
+
1864
+ .anticon .anticon-icon {
1865
+ display: block;
1866
+ }
1867
+
1868
+ .anticon[tabindex] {
1869
+ cursor: pointer;
1870
+ }
1871
+
1872
+ .anticon-spin::before,
1873
+ .anticon-spin {
1874
+ display: inline-block;
1875
+ -webkit-animation: loadingCircle 1s infinite linear;
1876
+ animation: loadingCircle 1s infinite linear;
1877
+ }
1878
+
1879
+ @-webkit-keyframes loadingCircle {
1880
+ 100% {
1881
+ -webkit-transform: rotate(360deg);
1882
+ transform: rotate(360deg);
1883
+ }
1884
+ }
1885
+
1886
+ @keyframes loadingCircle {
1887
+ 100% {
1888
+ -webkit-transform: rotate(360deg);
1889
+ transform: rotate(360deg);
1890
+ }
1891
+ }
1892
+ `, Pn = function(e) {
1893
+ var t = Ot(Nt), n = t.csp, i = t.prefixCls, s = t.layer, o = On;
1894
+ i && (o = o.replace(/anticon/g, i)), s && (o = "@layer ".concat(s, ` {
1895
+ `).concat(o, `
1896
+ }`)), jr(function() {
1897
+ var l = e.current, u = xn(l);
1898
+ bn(o, "@ant-design-icons", {
1899
+ prepend: !s,
1900
+ csp: n,
1901
+ attachTo: u
1902
+ });
1903
+ }, []);
1904
+ }, Tn = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], re = {
1905
+ primaryColor: "#333",
1906
+ secondaryColor: "#E6E6E6",
1907
+ calculated: !1
1908
+ };
1909
+ function kn(r) {
1910
+ var e = r.primaryColor, t = r.secondaryColor;
1911
+ re.primaryColor = e, re.secondaryColor = t || zt(e), re.calculated = !!t;
1912
+ }
1913
+ function Nn() {
1914
+ return Y({}, re);
1915
+ }
1916
+ var pe = function(e) {
1917
+ var t = e.icon, n = e.className, i = e.onClick, s = e.style, o = e.primaryColor, l = e.secondaryColor, u = At(e, Tn), f = M.useRef(), p = re;
1918
+ if (o && (p = {
1919
+ primaryColor: o,
1920
+ secondaryColor: l || zt(o)
1921
+ }), Pn(f), jn(Rt(t), "icon should be icon definiton, but got ".concat(t)), !Rt(t))
1922
+ return null;
1923
+ var h = t;
1924
+ return h && typeof h.icon == "function" && (h = Y(Y({}, h), {}, {
1925
+ icon: h.icon(p.primaryColor, p.secondaryColor)
1926
+ })), Ae(h.icon, "svg-".concat(h.name), Y(Y({
1927
+ className: n,
1928
+ onClick: i,
1929
+ style: s,
1930
+ "data-icon": h.name,
1931
+ width: "1em",
1932
+ height: "1em",
1933
+ fill: "currentColor",
1934
+ "aria-hidden": "true"
1935
+ }, u), {}, {
1936
+ ref: f
1937
+ }));
1938
+ };
1939
+ pe.displayName = "IconReact";
1940
+ pe.getTwoToneColors = Nn;
1941
+ pe.setTwoToneColors = kn;
1942
+ const Ye = pe;
1943
+ function Ut(r) {
1944
+ var e = Wt(r), t = $t(e, 2), n = t[0], i = t[1];
1945
+ return Ye.setTwoToneColors({
1946
+ primaryColor: n,
1947
+ secondaryColor: i
1948
+ });
1949
+ }
1950
+ function $n() {
1951
+ var r = Ye.getTwoToneColors();
1952
+ return r.calculated ? [r.primaryColor, r.secondaryColor] : r.primaryColor;
1953
+ }
1954
+ var An = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
1955
+ Ut(ke.primary);
1956
+ var ge = /* @__PURE__ */ M.forwardRef(function(r, e) {
1957
+ var t = r.className, n = r.icon, i = r.spin, s = r.rotate, o = r.tabIndex, l = r.onClick, u = r.twoToneColor, f = At(r, An), p = M.useContext(Nt), h = p.prefixCls, w = h === void 0 ? "anticon" : h, A = p.rootClassName, W = sn(A, w, T(T({}, "".concat(w, "-").concat(n.name), !!n.name), "".concat(w, "-spin"), !!i || n.name === "loading"), t), I = o;
1958
+ I === void 0 && l && (I = -1);
1959
+ var q = s ? {
1960
+ msTransform: "rotate(".concat(s, "deg)"),
1961
+ transform: "rotate(".concat(s, "deg)")
1962
+ } : void 0, D = Wt(u), j = $t(D, 2), ve = j[0], me = j[1];
1963
+ return /* @__PURE__ */ M.createElement("span", de({
1964
+ role: "img",
1965
+ "aria-label": n.name
1966
+ }, f, {
1967
+ ref: e,
1968
+ tabIndex: I,
1969
+ onClick: l,
1970
+ className: W
1971
+ }), /* @__PURE__ */ M.createElement(Ye, {
1972
+ icon: n,
1973
+ primaryColor: ve,
1974
+ secondaryColor: me,
1975
+ style: q
1976
+ }));
1977
+ });
1978
+ ge.displayName = "AntdIcon";
1979
+ ge.getTwoToneColor = $n;
1980
+ ge.setTwoToneColor = Ut;
1981
+ const Dn = ge;
1982
+ var Mn = { 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" };
1983
+ const In = Mn;
1984
+ var Hn = function(e, t) {
1985
+ return /* @__PURE__ */ M.createElement(Dn, de({}, e, {
1986
+ ref: t,
1987
+ icon: In
1988
+ }));
1989
+ }, Ft = /* @__PURE__ */ M.forwardRef(Hn);
1990
+ process.env.NODE_ENV !== "production" && (Ft.displayName = "UploadOutlined");
1991
+ const Yn = Ft;
1992
+ var N = /* @__PURE__ */ ((r) => (r.Input = "input", r.InputNumber = "inputNumber", r.Text = "text", r.Password = "password", r.Radio = "radio", r.Select = "select", r.Checkbox = "checkbox", r.DatePicker = "datePicker", r.RangePicker = "rangePicker", r.Upload = "upload", r.Mentions = "mentions", r.Cascader = "cascader", r.TreeSelect = "treeSelect", r))(N || {});
1993
+ const { RangePicker: Vn } = Tt, C = class C {
1994
+ static getDefaultArrayPlaceholder(e) {
1995
+ let t;
1996
+ switch (e.type) {
1997
+ case "rangePicker":
1998
+ t = ["开始时间", "结束时间"];
1999
+ break;
2000
+ }
2001
+ return t;
2002
+ }
2003
+ static getDefaultPlaceholder(e) {
2004
+ let t;
2005
+ switch (e.type) {
2006
+ case N.Input:
2007
+ case N.Password:
2008
+ case N.InputNumber:
2009
+ case N.Text:
2010
+ case N.Mentions:
2011
+ t = `请输入${e.label}`;
2012
+ break;
2013
+ case N.Select:
2014
+ case N.Checkbox:
2015
+ case N.Radio:
2016
+ case N.DatePicker:
2017
+ case N.RangePicker:
2018
+ case N.Cascader:
2019
+ case N.Upload:
2020
+ case N.TreeSelect:
2021
+ t = `请选择${e.label}`;
2022
+ break;
2023
+ }
2024
+ return t;
2025
+ }
2026
+ // static slider = (item: IMFormSliderItem) => {
2027
+ // return <Slider {...item.props} />;
2028
+ // };
2029
+ };
2030
+ g(C, "labelCol", { span: 7 }), g(C, "wrapperCol", { span: 17 }), g(C, "defaultRowGutter", 24), g(C, "input", (e) => /* @__PURE__ */ m.jsx(
2031
+ je,
2032
+ {
2033
+ disabled: e.disabled,
2034
+ maxLength: e.maxLength,
2035
+ ...e.props,
2036
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2037
+ }
2038
+ )), g(C, "password", (e) => /* @__PURE__ */ m.jsx(
2039
+ je.Password,
2040
+ {
2041
+ disabled: e.disabled,
2042
+ ...e.props,
2043
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2044
+ }
2045
+ )), g(C, "text", (e) => /* @__PURE__ */ m.jsx(
2046
+ je.TextArea,
2047
+ {
2048
+ disabled: e.disabled,
2049
+ maxLength: e.maxLength,
2050
+ ...e.props,
2051
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2052
+ }
2053
+ )), g(C, "inputNumber", (e) => /* @__PURE__ */ m.jsx(
2054
+ Nr,
2055
+ {
2056
+ disabled: e.disabled,
2057
+ maxLength: e.maxLength,
2058
+ ...e.props,
2059
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2060
+ }
2061
+ )), g(C, "datePicker", (e) => /* @__PURE__ */ m.jsx(
2062
+ Tt,
2063
+ {
2064
+ disabled: e.disabled,
2065
+ ...e.props,
2066
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2067
+ }
2068
+ )), g(C, "rangePicker", (e) => /* @__PURE__ */ m.jsx(
2069
+ Vn,
2070
+ {
2071
+ disabled: e.disabled,
2072
+ ...e.props,
2073
+ placeholder: e.placeholder || C.getDefaultArrayPlaceholder(e)
2074
+ }
2075
+ )), g(C, "select", (e) => /* @__PURE__ */ m.jsx(
2076
+ $r,
2077
+ {
2078
+ ...e.props,
2079
+ disabled: e.disabled,
2080
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2081
+ }
2082
+ )), g(C, "radio", (e) => /* @__PURE__ */ m.jsx(Ar.Group, { disabled: e.disabled, ...e.props })), g(C, "checkbox", (e) => /* @__PURE__ */ m.jsx(Dr.Group, { disabled: e.disabled, ...e.props })), g(C, "upload", (e) => /* @__PURE__ */ m.jsx(Mr, { defaultFileList: e.initialValue, ...e.props, children: e.children || /* @__PURE__ */ m.jsxs(Pt, { children: [
2083
+ /* @__PURE__ */ m.jsx(Yn, {}),
2084
+ " 点击上传"
2085
+ ] }) })), g(C, "mentions", (e) => /* @__PURE__ */ m.jsx(
2086
+ Ir,
2087
+ {
2088
+ ...e.props,
2089
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2090
+ }
2091
+ )), g(C, "cascader", (e) => /* @__PURE__ */ m.jsx(
2092
+ Hr,
2093
+ {
2094
+ ...e.props,
2095
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2096
+ }
2097
+ )), g(C, "treeSelect", (e) => /* @__PURE__ */ m.jsx(
2098
+ Yr,
2099
+ {
2100
+ ...e.props,
2101
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2102
+ }
2103
+ ));
2104
+ let B = C;
2105
+ const Pe = (r = "") => De("m-form", r);
2106
+ function Ln(r) {
2107
+ const { formProps: e, formItems: t = [], column: n = 1, form: i, itemLayout: s, formRowProps: o } = r, l = (f, p) => {
2108
+ if (f.render)
2109
+ return f.render(p);
2110
+ const h = B[f.type];
2111
+ return f && f.type && h ? h(f) : /* @__PURE__ */ m.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
2112
+ }, u = (f) => {
2113
+ const { show: p = !0 } = f;
2114
+ if (!p)
2115
+ return null;
2116
+ const h = [...f.rules || []];
2117
+ f.required && h.push({ required: !0, message: f.required });
2118
+ const w = {
2119
+ labelCol: B.labelCol,
2120
+ wrapperCol: B.wrapperCol,
2121
+ ...s,
2122
+ ...f.itemLayout
2123
+ };
2124
+ return /* @__PURE__ */ m.jsx(Lr, { span: f.span || 24 / n, children: /* @__PURE__ */ m.jsx("div", { className: Pe("item-wrapper"), children: /* @__PURE__ */ m.jsx(
2125
+ dt.Item,
2126
+ {
2127
+ label: f.label,
2128
+ name: f.id,
2129
+ rules: h,
2130
+ initialValue: f.initialValue,
2131
+ ...w,
2132
+ ...f.formItemProps,
2133
+ children: l(f, i)
2134
+ }
2135
+ ) }) }, `col-${f.id}`);
2136
+ };
2137
+ return /* @__PURE__ */ m.jsx(ae, { children: /* @__PURE__ */ m.jsx(dt, { form: i, ...e, className: `${Pe()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ m.jsx(
2138
+ Vr,
2139
+ {
2140
+ gutter: B.defaultRowGutter,
2141
+ ...o,
2142
+ className: `${Pe("grid")} ${o == null ? void 0 : o.className}`,
2143
+ children: t.map((f) => u(f))
2144
+ }
2145
+ ) }) });
2146
+ }
2147
+ Ln.displayName = "MForm";
2148
+ function ta(r) {
2149
+ var t;
2150
+ const e = ((t = r.columns) == null ? void 0 : t.map((n) => ({ ...n, dataIndex: n.key }))) ?? [];
2151
+ return /* @__PURE__ */ m.jsxs(ae, { children: [
2152
+ /* @__PURE__ */ m.jsx(zr, { rowKey: (n) => n.id, ...r, columns: e }),
1095
2153
  ";"
1096
2154
  ] });
1097
2155
  }
1098
- const Qr = {
2156
+ const ra = {
1099
2157
  YMD_Hms: "YYYY-MM-DD HH:mm:ss",
1100
2158
  YMD: "YYYY-MM-DD",
1101
2159
  YMD2: "YYYYMMDD",
@@ -1105,51 +2163,54 @@ const Qr = {
1105
2163
  YMD_000: "YYYY-MM-DD 00:00:00",
1106
2164
  YMD_end: "YYYY-MM-DD 23:59:59",
1107
2165
  YMD_Hm: "YYYYMMDD HHmm"
1108
- }, et = 10;
2166
+ }, na = 10;
1109
2167
  class _ {
1110
2168
  }
1111
2169
  // 整数
1112
- p(_, "integerRegex", /^-?\d+$/), // 正整数
1113
- p(_, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
1114
- p(_, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
1115
- p(_, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
1116
- p(_, "letter", /^[a-zA-Z]+$/), // 汉字
1117
- p(_, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
1118
- p(_, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
1119
- p(_, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
1120
- p(_, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
1121
- p(_, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
1122
- p(_, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
1123
- p(_, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
1124
- p(_, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
1125
- p(_, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
1126
- p(_, "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)$/), // 银行卡
1127
- p(_, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
1128
- p(_, "zipCode", /^[1-9]\d{5}$/), // IP
1129
- p(_, "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])$/), // URL
1130
- p(_, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
1131
- p(_, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
1132
- p(_, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
1133
- p(_, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2170
+ g(_, "integerRegex", /^-?\d+$/), // 正整数
2171
+ g(_, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
2172
+ g(_, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
2173
+ g(_, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
2174
+ g(_, "letter", /^[a-zA-Z]+$/), // 汉字
2175
+ g(_, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
2176
+ g(_, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
2177
+ g(_, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
2178
+ g(_, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
2179
+ g(_, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
2180
+ g(_, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
2181
+ g(_, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
2182
+ g(_, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
2183
+ g(_, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
2184
+ g(_, "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)$/), // 银行卡
2185
+ g(_, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
2186
+ g(_, "zipCode", /^[1-9]\d{5}$/), // IP
2187
+ g(_, "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])$/), // URL
2188
+ g(_, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
2189
+ g(_, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
2190
+ g(_, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
2191
+ g(_, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
1134
2192
  export {
1135
- X as CompThemeProvider,
1136
- Qr as DATE_FORMAT,
1137
- Ir as ItemsRow,
1138
- Gr as MBreadcrumb,
1139
- Nr as MDescriptions,
1140
- Xr as MTable,
1141
- qr as MiThemeProvider,
1142
- G as NextTick,
1143
- et as PAGE_SIZE,
2193
+ ae as CompThemeProvider,
2194
+ ra as DATE_FORMAT,
2195
+ qr as ItemsRow,
2196
+ ea as MBreadcrumb,
2197
+ Gr as MDescriptions,
2198
+ Ln as MForm,
2199
+ B as MFormItemConst,
2200
+ N as MFormItemTypeEnum,
2201
+ ta as MTable,
2202
+ Qn as MiThemeProvider,
2203
+ fe as NextTick,
2204
+ na as PAGE_SIZE,
1144
2205
  _ as PatternType,
1145
- Kr as VersionUtil,
1146
- Wr as cmx,
1147
- Br as debounce,
1148
- ze as getClassName,
1149
- Ur as getFieldsByPath,
1150
- Zr as nextTick,
1151
- Hr as noop,
1152
- Lr as removeNull,
1153
- Jr as throttle,
1154
- Mr as useMiThemeConfig
2206
+ Xn as VersionUtil,
2207
+ Fn as cmx,
2208
+ Jn as debounce,
2209
+ De as getClassName,
2210
+ qn as getFieldsByPath,
2211
+ Zn as nextTick,
2212
+ Bn as noop,
2213
+ Gn as removeNull,
2214
+ Kn as throttle,
2215
+ Br as useMiThemeConfig
1155
2216
  };