@mi-avalon/libs 0.0.25 → 0.0.27

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,30 +1,30 @@
1
- var Gr = Object.defineProperty;
2
- var Jr = (r, e, t) => e in r ? Gr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var m = (r, e, t) => (Jr(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as U from "react";
5
- import Le, { createContext as Qt, useContext as er, useEffect as oe, Component as Xr, useState as Y, useRef as K, useCallback as se } from "react";
6
- import { theme as He, ConfigProvider as tr, Button as Pe, Affix as Qr, Card as rr, Breadcrumb as $t, Descriptions as It, Input as rt, InputNumber as en, DatePicker as nr, Select as tn, Radio as rn, Checkbox as nn, Upload as an, Mentions as sn, Cascader as on, TreeSelect as cn, Form as ot, Row as ln, Col as un, Modal as fn, Table as dn } from "antd";
7
- import hn from "react-dom";
8
- function gn(r, e) {
1
+ var Zr = Object.defineProperty;
2
+ var Gr = (n, e, t) => e in n ? Zr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var m = (n, e, t) => (Gr(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import * as F from "react";
5
+ import Ye, { createContext as Qt, useContext as er, useEffect as ae, Component as Jr, useState as L, useRef as G, useCallback as Z, useMemo as Kr } from "react";
6
+ import { theme as Ie, ConfigProvider as tr, Button as ke, Affix as Xr, Card as rr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as Qr, DatePicker as nr, Select as en, Radio as tn, Checkbox as rn, Upload as nn, Mentions as sn, Cascader as an, TreeSelect as on, Form as st, Row as cn, Col as ln, Modal as un, Table as dn } from "antd";
7
+ import fn from "react-dom";
8
+ function hn(n, e) {
9
9
  for (var t = 0; t < e.length; t++) {
10
- const n = e[t];
11
- if (typeof n != "string" && !Array.isArray(n)) {
12
- for (const s in n)
13
- if (s !== "default" && !(s in r)) {
14
- const o = Object.getOwnPropertyDescriptor(n, s);
15
- o && Object.defineProperty(r, s, o.get ? o : {
10
+ const r = e[t];
11
+ if (typeof r != "string" && !Array.isArray(r)) {
12
+ for (const i in r)
13
+ if (i !== "default" && !(i in n)) {
14
+ const a = Object.getOwnPropertyDescriptor(r, i);
15
+ a && Object.defineProperty(n, i, a.get ? a : {
16
16
  enumerable: !0,
17
- get: () => n[s]
17
+ get: () => r[i]
18
18
  });
19
19
  }
20
20
  }
21
21
  }
22
- return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
22
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
23
23
  }
24
- function pn(r) {
25
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
24
+ function gn(n) {
25
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
26
26
  }
27
- var it = { exports: {} }, Re = {};
27
+ var at = { exports: {} }, Se = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.production.min.js
@@ -34,25 +34,25 @@ var it = { exports: {} }, Re = {};
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */
37
- var Mt;
38
- function mn() {
39
- if (Mt)
40
- return Re;
41
- Mt = 1;
42
- var r = Le, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
43
- function i(l, u, c) {
44
- var g, d = {}, b = null, O = null;
45
- c !== void 0 && (b = "" + c), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (O = u.ref);
46
- for (g in u)
47
- n.call(u, g) && !o.hasOwnProperty(g) && (d[g] = u[g]);
37
+ var Yt;
38
+ function pn() {
39
+ if (Yt)
40
+ return Se;
41
+ Yt = 1;
42
+ var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
43
+ function o(l, d, c) {
44
+ var f, g = {}, v = null, j = null;
45
+ c !== void 0 && (v = "" + c), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (j = d.ref);
46
+ for (f in d)
47
+ r.call(d, f) && !a.hasOwnProperty(f) && (g[f] = d[f]);
48
48
  if (l && l.defaultProps)
49
- for (g in u = l.defaultProps, u)
50
- d[g] === void 0 && (d[g] = u[g]);
51
- return { $$typeof: e, type: l, key: b, ref: O, props: d, _owner: s.current };
49
+ for (f in d = l.defaultProps, d)
50
+ g[f] === void 0 && (g[f] = d[f]);
51
+ return { $$typeof: e, type: l, key: v, ref: j, props: g, _owner: i.current };
52
52
  }
53
- return Re.Fragment = t, Re.jsx = i, Re.jsxs = i, Re;
53
+ return Se.Fragment = t, Se.jsx = o, Se.jsxs = o, Se;
54
54
  }
55
- var _e = {};
55
+ var Ce = {};
56
56
  /**
57
57
  * @license React
58
58
  * react-jsx-runtime.development.js
@@ -62,91 +62,91 @@ var _e = {};
62
62
  * This source code is licensed under the MIT license found in the
63
63
  * LICENSE file in the root directory of this source tree.
64
64
  */
65
- var Yt;
66
- function vn() {
67
- return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
68
- var r = Le, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), T = Symbol.iterator, N = "@@iterator";
69
- function z(a) {
70
- if (a === null || typeof a != "object")
65
+ var Lt;
66
+ function mn() {
67
+ return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
68
+ var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), N = Symbol.iterator, T = "@@iterator";
69
+ function H(s) {
70
+ if (s === null || typeof s != "object")
71
71
  return null;
72
- var f = T && a[T] || a[N];
73
- return typeof f == "function" ? f : null;
72
+ var u = N && s[N] || s[T];
73
+ return typeof u == "function" ? u : null;
74
74
  }
75
- var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
- function y(a) {
75
+ var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
+ function y(s) {
77
77
  {
78
- for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
79
- h[v - 1] = arguments[v];
80
- E("error", a, h);
78
+ for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
79
+ h[b - 1] = arguments[b];
80
+ k("error", s, h);
81
81
  }
82
82
  }
83
- function E(a, f, h) {
83
+ function k(s, u, h) {
84
84
  {
85
- var v = j.ReactDebugCurrentFrame, w = v.getStackAddendum();
86
- w !== "" && (f += "%s", h = h.concat([w]));
87
- var _ = h.map(function(C) {
88
- return String(C);
85
+ var b = O.ReactDebugCurrentFrame, S = b.getStackAddendum();
86
+ S !== "" && (u += "%s", h = h.concat([S]));
87
+ var _ = h.map(function(R) {
88
+ return String(R);
89
89
  });
90
- _.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, _);
90
+ _.unshift("Warning: " + u), Function.prototype.apply.call(console[s], console, _);
91
91
  }
92
92
  }
93
- var I = !1, W = !1, re = !1, G = !1, xe = !1, J;
94
- J = Symbol.for("react.module.reference");
95
- function ie(a) {
96
- return !!(typeof a == "string" || typeof a == "function" || a === n || a === o || xe || a === s || a === c || a === g || G || a === O || I || W || re || typeof a == "object" && a !== null && (a.$$typeof === b || a.$$typeof === d || a.$$typeof === i || a.$$typeof === l || a.$$typeof === u || // This needs to include all possible module reference object
93
+ var V = !1, I = !1, J = !1, K = !1, ye = !1, te;
94
+ te = Symbol.for("react.module.reference");
95
+ function ie(s) {
96
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === f || K || s === j || V || I || J || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === d || // This needs to include all possible module reference object
97
97
  // types supported by any Flight configuration anywhere since
98
98
  // we don't know which Flight build this will end up being used
99
99
  // with.
100
- a.$$typeof === J || a.getModuleId !== void 0));
100
+ s.$$typeof === te || s.getModuleId !== void 0));
101
101
  }
102
- function Ce(a, f, h) {
103
- var v = a.displayName;
104
- if (v)
105
- return v;
106
- var w = f.displayName || f.name || "";
107
- return w !== "" ? h + "(" + w + ")" : h;
102
+ function le(s, u, h) {
103
+ var b = s.displayName;
104
+ if (b)
105
+ return b;
106
+ var S = u.displayName || u.name || "";
107
+ return S !== "" ? h + "(" + S + ")" : h;
108
108
  }
109
- function H(a) {
110
- return a.displayName || "Context";
109
+ function we(s) {
110
+ return s.displayName || "Context";
111
111
  }
112
- function k(a) {
113
- if (a == null)
112
+ function E(s) {
113
+ if (s == null)
114
114
  return null;
115
- if (typeof a.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
116
- return a.displayName || a.name || null;
117
- if (typeof a == "string")
118
- return a;
119
- switch (a) {
120
- case n:
115
+ if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
116
+ return s.displayName || s.name || null;
117
+ if (typeof s == "string")
118
+ return s;
119
+ switch (s) {
120
+ case r:
121
121
  return "Fragment";
122
122
  case t:
123
123
  return "Portal";
124
- case o:
124
+ case a:
125
125
  return "Profiler";
126
- case s:
126
+ case i:
127
127
  return "StrictMode";
128
128
  case c:
129
129
  return "Suspense";
130
- case g:
130
+ case f:
131
131
  return "SuspenseList";
132
132
  }
133
- if (typeof a == "object")
134
- switch (a.$$typeof) {
133
+ if (typeof s == "object")
134
+ switch (s.$$typeof) {
135
135
  case l:
136
- var f = a;
137
- return H(f) + ".Consumer";
138
- case i:
139
- var h = a;
140
- return H(h._context) + ".Provider";
141
- case u:
142
- return Ce(a, a.render, "ForwardRef");
136
+ var u = s;
137
+ return we(u) + ".Consumer";
138
+ case o:
139
+ var h = s;
140
+ return we(h._context) + ".Provider";
143
141
  case d:
144
- var v = a.displayName || null;
145
- return v !== null ? v : k(a.type) || "Memo";
146
- case b: {
147
- var w = a, _ = w._payload, C = w._init;
142
+ return le(s, s.render, "ForwardRef");
143
+ case g:
144
+ var b = s.displayName || null;
145
+ return b !== null ? b : E(s.type) || "Memo";
146
+ case v: {
147
+ var S = s, _ = S._payload, R = S._init;
148
148
  try {
149
- return k(C(_));
149
+ return E(R(_));
150
150
  } catch {
151
151
  return null;
152
152
  }
@@ -154,305 +154,305 @@ function vn() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var L = Object.assign, S = 0, $, Q, B, ce, ee, ke, yt;
158
- function xt() {
157
+ var Y = Object.assign, w = 0, M, X, U, re, Q, ue, de;
158
+ function Rt() {
159
159
  }
160
- xt.__reactDisabledLog = !0;
161
- function Sr() {
160
+ Rt.__reactDisabledLog = !0;
161
+ function xr() {
162
162
  {
163
- if (S === 0) {
164
- $ = console.log, Q = console.info, B = console.warn, ce = console.error, ee = console.group, ke = console.groupCollapsed, yt = console.groupEnd;
165
- var a = {
163
+ if (w === 0) {
164
+ M = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, de = console.groupEnd;
165
+ var s = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
168
- value: xt,
168
+ value: Rt,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- info: a,
173
- log: a,
174
- warn: a,
175
- error: a,
176
- group: a,
177
- groupCollapsed: a,
178
- groupEnd: a
172
+ info: s,
173
+ log: s,
174
+ warn: s,
175
+ error: s,
176
+ group: s,
177
+ groupCollapsed: s,
178
+ groupEnd: s
179
179
  });
180
180
  }
181
- S++;
181
+ w++;
182
182
  }
183
183
  }
184
184
  function Rr() {
185
185
  {
186
- if (S--, S === 0) {
187
- var a = {
186
+ if (w--, w === 0) {
187
+ var s = {
188
188
  configurable: !0,
189
189
  enumerable: !0,
190
190
  writable: !0
191
191
  };
192
192
  Object.defineProperties(console, {
193
- log: L({}, a, {
194
- value: $
193
+ log: Y({}, s, {
194
+ value: M
195
195
  }),
196
- info: L({}, a, {
197
- value: Q
196
+ info: Y({}, s, {
197
+ value: X
198
198
  }),
199
- warn: L({}, a, {
200
- value: B
199
+ warn: Y({}, s, {
200
+ value: U
201
201
  }),
202
- error: L({}, a, {
203
- value: ce
202
+ error: Y({}, s, {
203
+ value: re
204
204
  }),
205
- group: L({}, a, {
206
- value: ee
205
+ group: Y({}, s, {
206
+ value: Q
207
207
  }),
208
- groupCollapsed: L({}, a, {
209
- value: ke
208
+ groupCollapsed: Y({}, s, {
209
+ value: ue
210
210
  }),
211
- groupEnd: L({}, a, {
212
- value: yt
211
+ groupEnd: Y({}, s, {
212
+ value: de
213
213
  })
214
214
  });
215
215
  }
216
- S < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
216
+ w < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
217
217
  }
218
218
  }
219
- var Ze = j.ReactCurrentDispatcher, qe;
220
- function De(a, f, h) {
219
+ var Ue = O.ReactCurrentDispatcher, Be;
220
+ function Ne(s, u, h) {
221
221
  {
222
- if (qe === void 0)
222
+ if (Be === void 0)
223
223
  try {
224
224
  throw Error();
225
- } catch (w) {
226
- var v = w.stack.trim().match(/\n( *(at )?)/);
227
- qe = v && v[1] || "";
225
+ } catch (S) {
226
+ var b = S.stack.trim().match(/\n( *(at )?)/);
227
+ Be = b && b[1] || "";
228
228
  }
229
229
  return `
230
- ` + qe + a;
230
+ ` + Be + s;
231
231
  }
232
232
  }
233
- var Ke = !1, Ae;
233
+ var We = !1, De;
234
234
  {
235
- var _r = typeof WeakMap == "function" ? WeakMap : Map;
236
- Ae = new _r();
235
+ var Sr = typeof WeakMap == "function" ? WeakMap : Map;
236
+ De = new Sr();
237
237
  }
238
- function Ct(a, f) {
239
- if (!a || Ke)
238
+ function St(s, u) {
239
+ if (!s || We)
240
240
  return "";
241
241
  {
242
- var h = Ae.get(a);
242
+ var h = De.get(s);
243
243
  if (h !== void 0)
244
244
  return h;
245
245
  }
246
- var v;
247
- Ke = !0;
248
- var w = Error.prepareStackTrace;
246
+ var b;
247
+ We = !0;
248
+ var S = Error.prepareStackTrace;
249
249
  Error.prepareStackTrace = void 0;
250
250
  var _;
251
- _ = Ze.current, Ze.current = null, Sr();
251
+ _ = Ue.current, Ue.current = null, xr();
252
252
  try {
253
- if (f) {
254
- var C = function() {
253
+ if (u) {
254
+ var R = function() {
255
255
  throw Error();
256
256
  };
257
- if (Object.defineProperty(C.prototype, "props", {
257
+ if (Object.defineProperty(R.prototype, "props", {
258
258
  set: function() {
259
259
  throw Error();
260
260
  }
261
261
  }), typeof Reflect == "object" && Reflect.construct) {
262
262
  try {
263
- Reflect.construct(C, []);
264
- } catch (Z) {
265
- v = Z;
263
+ Reflect.construct(R, []);
264
+ } catch (B) {
265
+ b = B;
266
266
  }
267
- Reflect.construct(a, [], C);
267
+ Reflect.construct(s, [], R);
268
268
  } else {
269
269
  try {
270
- C.call();
271
- } catch (Z) {
272
- v = Z;
270
+ R.call();
271
+ } catch (B) {
272
+ b = B;
273
273
  }
274
- a.call(C.prototype);
274
+ s.call(R.prototype);
275
275
  }
276
276
  } else {
277
277
  try {
278
278
  throw Error();
279
- } catch (Z) {
280
- v = Z;
279
+ } catch (B) {
280
+ b = B;
281
281
  }
282
- a();
282
+ s();
283
283
  }
284
- } catch (Z) {
285
- if (Z && v && typeof Z.stack == "string") {
286
- for (var x = Z.stack.split(`
287
- `), V = v.stack.split(`
288
- `), D = x.length - 1, A = V.length - 1; D >= 1 && A >= 0 && x[D] !== V[A]; )
289
- A--;
290
- for (; D >= 1 && A >= 0; D--, A--)
291
- if (x[D] !== V[A]) {
292
- if (D !== 1 || A !== 1)
284
+ } catch (B) {
285
+ if (B && b && typeof B.stack == "string") {
286
+ for (var x = B.stack.split(`
287
+ `), q = b.stack.split(`
288
+ `), D = x.length - 1, P = q.length - 1; D >= 1 && P >= 0 && x[D] !== q[P]; )
289
+ P--;
290
+ for (; D >= 1 && P >= 0; D--, P--)
291
+ if (x[D] !== q[P]) {
292
+ if (D !== 1 || P !== 1)
293
293
  do
294
- if (D--, A--, A < 0 || x[D] !== V[A]) {
295
- var X = `
294
+ if (D--, P--, P < 0 || x[D] !== q[P]) {
295
+ var ee = `
296
296
  ` + x[D].replace(" at new ", " at ");
297
- return a.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", a.displayName)), typeof a == "function" && Ae.set(a, X), X;
297
+ return s.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", s.displayName)), typeof s == "function" && De.set(s, ee), ee;
298
298
  }
299
- while (D >= 1 && A >= 0);
299
+ while (D >= 1 && P >= 0);
300
300
  break;
301
301
  }
302
302
  }
303
303
  } finally {
304
- Ke = !1, Ze.current = _, Rr(), Error.prepareStackTrace = w;
304
+ We = !1, Ue.current = _, Rr(), Error.prepareStackTrace = S;
305
305
  }
306
- var he = a ? a.displayName || a.name : "", le = he ? De(he) : "";
307
- return typeof a == "function" && Ae.set(a, le), le;
306
+ var he = s ? s.displayName || s.name : "", oe = he ? Ne(he) : "";
307
+ return typeof s == "function" && De.set(s, oe), oe;
308
308
  }
309
- function Er(a, f, h) {
310
- return Ct(a, !1);
309
+ function Cr(s, u, h) {
310
+ return St(s, !1);
311
311
  }
312
- function Or(a) {
313
- var f = a.prototype;
314
- return !!(f && f.isReactComponent);
312
+ function _r(s) {
313
+ var u = s.prototype;
314
+ return !!(u && u.isReactComponent);
315
315
  }
316
- function $e(a, f, h) {
317
- if (a == null)
316
+ function Pe(s, u, h) {
317
+ if (s == null)
318
318
  return "";
319
- if (typeof a == "function")
320
- return Ct(a, Or(a));
321
- if (typeof a == "string")
322
- return De(a);
323
- switch (a) {
319
+ if (typeof s == "function")
320
+ return St(s, _r(s));
321
+ if (typeof s == "string")
322
+ return Ne(s);
323
+ switch (s) {
324
324
  case c:
325
- return De("Suspense");
326
- case g:
327
- return De("SuspenseList");
325
+ return Ne("Suspense");
326
+ case f:
327
+ return Ne("SuspenseList");
328
328
  }
329
- if (typeof a == "object")
330
- switch (a.$$typeof) {
331
- case u:
332
- return Er(a.render);
329
+ if (typeof s == "object")
330
+ switch (s.$$typeof) {
333
331
  case d:
334
- return $e(a.type, f, h);
335
- case b: {
336
- var v = a, w = v._payload, _ = v._init;
332
+ return Cr(s.render);
333
+ case g:
334
+ return Pe(s.type, u, h);
335
+ case v: {
336
+ var b = s, S = b._payload, _ = b._init;
337
337
  try {
338
- return $e(_(w), f, h);
338
+ return Pe(_(S), u, h);
339
339
  } catch {
340
340
  }
341
341
  }
342
342
  }
343
343
  return "";
344
344
  }
345
- var we = Object.prototype.hasOwnProperty, wt = {}, St = j.ReactDebugCurrentFrame;
346
- function Ie(a) {
347
- if (a) {
348
- var f = a._owner, h = $e(a.type, a._source, f ? f.type : null);
349
- St.setExtraStackFrame(h);
345
+ var xe = Object.prototype.hasOwnProperty, Ct = {}, _t = O.ReactDebugCurrentFrame;
346
+ function Te(s) {
347
+ if (s) {
348
+ var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
349
+ _t.setExtraStackFrame(h);
350
350
  } else
351
- St.setExtraStackFrame(null);
351
+ _t.setExtraStackFrame(null);
352
352
  }
353
- function jr(a, f, h, v, w) {
353
+ function Er(s, u, h, b, S) {
354
354
  {
355
- var _ = Function.call.bind(we);
356
- for (var C in a)
357
- if (_(a, C)) {
355
+ var _ = Function.call.bind(xe);
356
+ for (var R in s)
357
+ if (_(s, R)) {
358
358
  var x = void 0;
359
359
  try {
360
- if (typeof a[C] != "function") {
361
- var V = Error((v || "React class") + ": " + h + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
- throw V.name = "Invariant Violation", V;
360
+ if (typeof s[R] != "function") {
361
+ var q = Error((b || "React class") + ": " + h + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
+ throw q.name = "Invariant Violation", q;
363
363
  }
364
- x = a[C](f, C, v, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
+ x = s[R](u, R, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
365
  } catch (D) {
366
366
  x = D;
367
367
  }
368
- x && !(x instanceof Error) && (Ie(w), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", h, C, typeof x), Ie(null)), x instanceof Error && !(x.message in wt) && (wt[x.message] = !0, Ie(w), y("Failed %s type: %s", h, x.message), Ie(null));
368
+ x && !(x instanceof Error) && (Te(S), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", h, R, typeof x), Te(null)), x instanceof Error && !(x.message in Ct) && (Ct[x.message] = !0, Te(S), y("Failed %s type: %s", h, x.message), Te(null));
369
369
  }
370
370
  }
371
371
  }
372
- var Pr = Array.isArray;
373
- function Ge(a) {
374
- return Pr(a);
372
+ var jr = Array.isArray;
373
+ function Ze(s) {
374
+ return jr(s);
375
375
  }
376
- function Tr(a) {
376
+ function kr(s) {
377
377
  {
378
- var f = typeof Symbol == "function" && Symbol.toStringTag, h = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
378
+ var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
379
379
  return h;
380
380
  }
381
381
  }
382
- function Nr(a) {
382
+ function Or(s) {
383
383
  try {
384
- return Rt(a), !1;
384
+ return Et(s), !1;
385
385
  } catch {
386
386
  return !0;
387
387
  }
388
388
  }
389
- function Rt(a) {
390
- return "" + a;
389
+ function Et(s) {
390
+ return "" + s;
391
391
  }
392
- function _t(a) {
393
- if (Nr(a))
394
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(a)), Rt(a);
392
+ function jt(s) {
393
+ if (Or(s))
394
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(s)), Et(s);
395
395
  }
396
- var Se = j.ReactCurrentOwner, kr = {
396
+ var Re = O.ReactCurrentOwner, $r = {
397
397
  key: !0,
398
398
  ref: !0,
399
399
  __self: !0,
400
400
  __source: !0
401
- }, Et, Ot, Je;
402
- Je = {};
403
- function Dr(a) {
404
- if (we.call(a, "ref")) {
405
- var f = Object.getOwnPropertyDescriptor(a, "ref").get;
406
- if (f && f.isReactWarning)
401
+ }, kt, Ot, Ge;
402
+ Ge = {};
403
+ function Nr(s) {
404
+ if (xe.call(s, "ref")) {
405
+ var u = Object.getOwnPropertyDescriptor(s, "ref").get;
406
+ if (u && u.isReactWarning)
407
407
  return !1;
408
408
  }
409
- return a.ref !== void 0;
409
+ return s.ref !== void 0;
410
410
  }
411
- function Ar(a) {
412
- if (we.call(a, "key")) {
413
- var f = Object.getOwnPropertyDescriptor(a, "key").get;
414
- if (f && f.isReactWarning)
411
+ function Dr(s) {
412
+ if (xe.call(s, "key")) {
413
+ var u = Object.getOwnPropertyDescriptor(s, "key").get;
414
+ if (u && u.isReactWarning)
415
415
  return !1;
416
416
  }
417
- return a.key !== void 0;
417
+ return s.key !== void 0;
418
418
  }
419
- function $r(a, f) {
420
- if (typeof a.ref == "string" && Se.current && f && Se.current.stateNode !== f) {
421
- var h = k(Se.current.type);
422
- Je[h] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(Se.current.type), a.ref), Je[h] = !0);
419
+ function Pr(s, u) {
420
+ if (typeof s.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
421
+ var h = E(Re.current.type);
422
+ Ge[h] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(Re.current.type), s.ref), Ge[h] = !0);
423
423
  }
424
424
  }
425
- function Ir(a, f) {
425
+ function Tr(s, u) {
426
426
  {
427
427
  var h = function() {
428
- Et || (Et = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
428
+ kt || (kt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
429
429
  };
430
- h.isReactWarning = !0, Object.defineProperty(a, "key", {
430
+ h.isReactWarning = !0, Object.defineProperty(s, "key", {
431
431
  get: h,
432
432
  configurable: !0
433
433
  });
434
434
  }
435
435
  }
436
- function Mr(a, f) {
436
+ function Mr(s, u) {
437
437
  {
438
438
  var h = function() {
439
- Ot || (Ot = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
439
+ Ot || (Ot = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
440
440
  };
441
- h.isReactWarning = !0, Object.defineProperty(a, "ref", {
441
+ h.isReactWarning = !0, Object.defineProperty(s, "ref", {
442
442
  get: h,
443
443
  configurable: !0
444
444
  });
445
445
  }
446
446
  }
447
- var Yr = function(a, f, h, v, w, _, C) {
447
+ var Ar = function(s, u, h, b, S, _, R) {
448
448
  var x = {
449
449
  // This tag allows us to uniquely identify this as a React Element
450
450
  $$typeof: e,
451
451
  // Built-in properties that belong on the element
452
- type: a,
453
- key: f,
452
+ type: s,
453
+ key: u,
454
454
  ref: h,
455
- props: C,
455
+ props: R,
456
456
  // Record the component responsible for creating this element.
457
457
  _owner: _
458
458
  };
@@ -465,281 +465,524 @@ function vn() {
465
465
  configurable: !1,
466
466
  enumerable: !1,
467
467
  writable: !1,
468
- value: v
468
+ value: b
469
469
  }), Object.defineProperty(x, "_source", {
470
470
  configurable: !1,
471
471
  enumerable: !1,
472
472
  writable: !1,
473
- value: w
473
+ value: S
474
474
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
475
475
  };
476
- function zr(a, f, h, v, w) {
476
+ function zr(s, u, h, b, S) {
477
477
  {
478
- var _, C = {}, x = null, V = null;
479
- h !== void 0 && (_t(h), x = "" + h), Ar(f) && (_t(f.key), x = "" + f.key), Dr(f) && (V = f.ref, $r(f, w));
480
- for (_ in f)
481
- we.call(f, _) && !kr.hasOwnProperty(_) && (C[_] = f[_]);
482
- if (a && a.defaultProps) {
483
- var D = a.defaultProps;
478
+ var _, R = {}, x = null, q = null;
479
+ h !== void 0 && (jt(h), x = "" + h), Dr(u) && (jt(u.key), x = "" + u.key), Nr(u) && (q = u.ref, Pr(u, S));
480
+ for (_ in u)
481
+ xe.call(u, _) && !$r.hasOwnProperty(_) && (R[_] = u[_]);
482
+ if (s && s.defaultProps) {
483
+ var D = s.defaultProps;
484
484
  for (_ in D)
485
- C[_] === void 0 && (C[_] = D[_]);
485
+ R[_] === void 0 && (R[_] = D[_]);
486
486
  }
487
- if (x || V) {
488
- var A = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
489
- x && Ir(C, A), V && Mr(C, A);
487
+ if (x || q) {
488
+ var P = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
489
+ x && Tr(R, P), q && Mr(R, P);
490
490
  }
491
- return Yr(a, x, V, w, v, Se.current, C);
491
+ return Ar(s, x, q, S, b, Re.current, R);
492
492
  }
493
493
  }
494
- var Xe = j.ReactCurrentOwner, jt = j.ReactDebugCurrentFrame;
495
- function de(a) {
496
- if (a) {
497
- var f = a._owner, h = $e(a.type, a._source, f ? f.type : null);
498
- jt.setExtraStackFrame(h);
494
+ var Je = O.ReactCurrentOwner, $t = O.ReactDebugCurrentFrame;
495
+ function fe(s) {
496
+ if (s) {
497
+ var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
498
+ $t.setExtraStackFrame(h);
499
499
  } else
500
- jt.setExtraStackFrame(null);
500
+ $t.setExtraStackFrame(null);
501
501
  }
502
- var Qe;
503
- Qe = !1;
504
- function et(a) {
505
- return typeof a == "object" && a !== null && a.$$typeof === e;
502
+ var Ke;
503
+ Ke = !1;
504
+ function Xe(s) {
505
+ return typeof s == "object" && s !== null && s.$$typeof === e;
506
506
  }
507
- function Pt() {
507
+ function Nt() {
508
508
  {
509
- if (Xe.current) {
510
- var a = k(Xe.current.type);
511
- if (a)
509
+ if (Je.current) {
510
+ var s = E(Je.current.type);
511
+ if (s)
512
512
  return `
513
513
 
514
- Check the render method of \`` + a + "`.";
514
+ Check the render method of \`` + s + "`.";
515
515
  }
516
516
  return "";
517
517
  }
518
518
  }
519
- function Hr(a) {
519
+ function Ir(s) {
520
520
  {
521
- if (a !== void 0) {
522
- var f = a.fileName.replace(/^.*[\\\/]/, ""), h = a.lineNumber;
521
+ if (s !== void 0) {
522
+ var u = s.fileName.replace(/^.*[\\\/]/, ""), h = s.lineNumber;
523
523
  return `
524
524
 
525
- Check your code at ` + f + ":" + h + ".";
525
+ Check your code at ` + u + ":" + h + ".";
526
526
  }
527
527
  return "";
528
528
  }
529
529
  }
530
- var Tt = {};
531
- function Lr(a) {
530
+ var Dt = {};
531
+ function Yr(s) {
532
532
  {
533
- var f = Pt();
534
- if (!f) {
535
- var h = typeof a == "string" ? a : a.displayName || a.name;
536
- h && (f = `
533
+ var u = Nt();
534
+ if (!u) {
535
+ var h = typeof s == "string" ? s : s.displayName || s.name;
536
+ h && (u = `
537
537
 
538
538
  Check the top-level render call using <` + h + ">.");
539
539
  }
540
- return f;
540
+ return u;
541
541
  }
542
542
  }
543
- function Nt(a, f) {
543
+ function Pt(s, u) {
544
544
  {
545
- if (!a._store || a._store.validated || a.key != null)
545
+ if (!s._store || s._store.validated || s.key != null)
546
546
  return;
547
- a._store.validated = !0;
548
- var h = Lr(f);
549
- if (Tt[h])
547
+ s._store.validated = !0;
548
+ var h = Yr(u);
549
+ if (Dt[h])
550
550
  return;
551
- Tt[h] = !0;
552
- var v = "";
553
- a && a._owner && a._owner !== Xe.current && (v = " It was passed a child from " + k(a._owner.type) + "."), de(a), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, v), de(null);
551
+ Dt[h] = !0;
552
+ var b = "";
553
+ s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), fe(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), fe(null);
554
554
  }
555
555
  }
556
- function kt(a, f) {
556
+ function Tt(s, u) {
557
557
  {
558
- if (typeof a != "object")
558
+ if (typeof s != "object")
559
559
  return;
560
- if (Ge(a))
561
- for (var h = 0; h < a.length; h++) {
562
- var v = a[h];
563
- et(v) && Nt(v, f);
560
+ if (Ze(s))
561
+ for (var h = 0; h < s.length; h++) {
562
+ var b = s[h];
563
+ Xe(b) && Pt(b, u);
564
564
  }
565
- else if (et(a))
566
- a._store && (a._store.validated = !0);
567
- else if (a) {
568
- var w = z(a);
569
- if (typeof w == "function" && w !== a.entries)
570
- for (var _ = w.call(a), C; !(C = _.next()).done; )
571
- et(C.value) && Nt(C.value, f);
565
+ else if (Xe(s))
566
+ s._store && (s._store.validated = !0);
567
+ else if (s) {
568
+ var S = H(s);
569
+ if (typeof S == "function" && S !== s.entries)
570
+ for (var _ = S.call(s), R; !(R = _.next()).done; )
571
+ Xe(R.value) && Pt(R.value, u);
572
572
  }
573
573
  }
574
574
  }
575
- function Vr(a) {
575
+ function Lr(s) {
576
576
  {
577
- var f = a.type;
578
- if (f == null || typeof f == "string")
577
+ var u = s.type;
578
+ if (u == null || typeof u == "string")
579
579
  return;
580
580
  var h;
581
- if (typeof f == "function")
582
- h = f.propTypes;
583
- else if (typeof f == "object" && (f.$$typeof === u || // Note: Memo only checks outer props here.
581
+ if (typeof u == "function")
582
+ h = u.propTypes;
583
+ else if (typeof u == "object" && (u.$$typeof === d || // Note: Memo only checks outer props here.
584
584
  // Inner props are checked in the reconciler.
585
- f.$$typeof === d))
586
- h = f.propTypes;
585
+ u.$$typeof === g))
586
+ h = u.propTypes;
587
587
  else
588
588
  return;
589
589
  if (h) {
590
- var v = k(f);
591
- jr(h, a.props, "prop", v, a);
592
- } else if (f.PropTypes !== void 0 && !Qe) {
593
- Qe = !0;
594
- var w = k(f);
595
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
590
+ var b = E(u);
591
+ Er(h, s.props, "prop", b, s);
592
+ } else if (u.PropTypes !== void 0 && !Ke) {
593
+ Ke = !0;
594
+ var S = E(u);
595
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
596
596
  }
597
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
597
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
598
598
  }
599
599
  }
600
- function Fr(a) {
600
+ function Hr(s) {
601
601
  {
602
- for (var f = Object.keys(a.props), h = 0; h < f.length; h++) {
603
- var v = f[h];
604
- if (v !== "children" && v !== "key") {
605
- de(a), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
602
+ for (var u = Object.keys(s.props), h = 0; h < u.length; h++) {
603
+ var b = u[h];
604
+ if (b !== "children" && b !== "key") {
605
+ fe(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), fe(null);
606
606
  break;
607
607
  }
608
608
  }
609
- a.ref !== null && (de(a), y("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
609
+ s.ref !== null && (fe(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
610
610
  }
611
611
  }
612
- var Dt = {};
613
- function At(a, f, h, v, w, _) {
612
+ var Mt = {};
613
+ function At(s, u, h, b, S, _) {
614
614
  {
615
- var C = ie(a);
616
- if (!C) {
615
+ var R = ie(s);
616
+ if (!R) {
617
617
  var x = "";
618
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
619
- var V = Hr(w);
620
- V ? x += V : x += Pt();
618
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
619
+ var q = Ir(S);
620
+ q ? x += q : x += Nt();
621
621
  var D;
622
- a === null ? D = "null" : Ge(a) ? D = "array" : a !== void 0 && a.$$typeof === e ? (D = "<" + (k(a.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof a, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
622
+ s === null ? D = "null" : Ze(s) ? D = "array" : s !== void 0 && s.$$typeof === e ? (D = "<" + (E(s.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
623
623
  }
624
- var A = zr(a, f, h, w, _);
625
- if (A == null)
626
- return A;
627
- if (C) {
628
- var X = f.children;
629
- if (X !== void 0)
630
- if (v)
631
- if (Ge(X)) {
632
- for (var he = 0; he < X.length; he++)
633
- kt(X[he], a);
634
- Object.freeze && Object.freeze(X);
624
+ var P = zr(s, u, h, S, _);
625
+ if (P == null)
626
+ return P;
627
+ if (R) {
628
+ var ee = u.children;
629
+ if (ee !== void 0)
630
+ if (b)
631
+ if (Ze(ee)) {
632
+ for (var he = 0; he < ee.length; he++)
633
+ Tt(ee[he], s);
634
+ Object.freeze && Object.freeze(ee);
635
635
  } else
636
636
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
637
637
  else
638
- kt(X, a);
638
+ Tt(ee, s);
639
639
  }
640
- if (we.call(f, "key")) {
641
- var le = k(a), Z = Object.keys(f).filter(function(Kr) {
642
- return Kr !== "key";
643
- }), tt = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
644
- if (!Dt[le + tt]) {
645
- var qr = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
640
+ if (xe.call(u, "key")) {
641
+ var oe = E(s), B = Object.keys(u).filter(function(Wr) {
642
+ return Wr !== "key";
643
+ }), Qe = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
644
+ if (!Mt[oe + Qe]) {
645
+ var Br = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
646
646
  y(`A props object containing a "key" prop is being spread into JSX:
647
647
  let props = %s;
648
648
  <%s {...props} />
649
649
  React keys must be passed directly to JSX without using spread:
650
650
  let props = %s;
651
- <%s key={someKey} {...props} />`, tt, le, qr, le), Dt[le + tt] = !0;
651
+ <%s key={someKey} {...props} />`, Qe, oe, Br, oe), Mt[oe + Qe] = !0;
652
652
  }
653
653
  }
654
- return a === n ? Fr(A) : Vr(A), A;
654
+ return s === r ? Hr(P) : Lr(P), P;
655
655
  }
656
656
  }
657
- function Ur(a, f, h) {
658
- return At(a, f, h, !0);
657
+ function Vr(s, u, h) {
658
+ return At(s, u, h, !0);
659
659
  }
660
- function Wr(a, f, h) {
661
- return At(a, f, h, !1);
660
+ function qr(s, u, h) {
661
+ return At(s, u, h, !1);
662
662
  }
663
- var Br = Wr, Zr = Ur;
664
- _e.Fragment = n, _e.jsx = Br, _e.jsxs = Zr;
665
- }()), _e;
663
+ var Fr = qr, Ur = Vr;
664
+ Ce.Fragment = r, Ce.jsx = Fr, Ce.jsxs = Ur;
665
+ }()), Ce;
666
666
  }
667
- process.env.NODE_ENV === "production" ? it.exports = mn() : it.exports = vn();
668
- var p = it.exports;
669
- class bn {
670
- constructor() {
671
- /**
672
- **
673
- **/
674
- m(this, "add", function(e, t) {
675
- let n, s, o, i;
676
- try {
677
- n = e.toString().split(".")[1].length;
678
- } catch {
679
- n = 0;
680
- }
681
- try {
682
- s = t.toString().split(".")[1].length;
683
- } catch {
684
- s = 0;
685
- }
686
- if (i = Math.abs(n - s), o = Math.pow(10, Math.max(n, s)), i > 0) {
687
- let l = Math.pow(10, i);
688
- n > s ? (e = Number(e.toString().replace(".", "")), t = Number(t.toString().replace(".", "")) * l) : (e = Number(e.toString().replace(".", "")) * l, t = Number(t.toString().replace(".", "")));
689
- } else
690
- e = Number(e == null ? void 0 : e.toString().replace(".", "")), t = Number(t == null ? void 0 : t.toString().replace(".", ""));
691
- return (e + t) / o;
692
- });
693
- /**
694
- **
695
- **/
696
- m(this, "sub", function(e, t) {
697
- let n, s, o, i;
698
- try {
699
- n = e.toString().split(".")[1].length;
700
- } catch {
701
- n = 0;
702
- }
703
- try {
704
- s = t.toString().split(".")[1].length;
705
- } catch {
706
- s = 0;
707
- }
708
- return o = Math.pow(10, Math.max(n, s)), i = n >= s ? n : s, Number(((e * o - t * o) / o).toFixed(i));
667
+ process.env.NODE_ENV === "production" ? at.exports = pn() : at.exports = mn();
668
+ var p = at.exports;
669
+ const z = class z {
670
+ /**
671
+ * 获取数字的小数位数长度
672
+ * @private
673
+ * @param num 要检查的数字
674
+ * @returns 小数位数长度
675
+ */
676
+ static getDecimalLength(e) {
677
+ const t = e.toString(), r = t.indexOf(".");
678
+ return r === -1 ? 0 : t.length - r - 1;
679
+ }
680
+ /**
681
+ * 将数字转换为整数(移除小数点)
682
+ * @private
683
+ * @param num 要转换的数字
684
+ * @param decimalPlaces 需要补零的小数位数
685
+ * @returns 转换后的整数值
686
+ */
687
+ static toInteger(e, t) {
688
+ const r = e.toString().replace(".", "");
689
+ return Number(r) * Math.pow(10, t);
690
+ }
691
+ /**
692
+ * 精确加法运算(支持多个参数)
693
+ * @param args 要相加的数字序列
694
+ * @returns 所有数字的和
695
+ * @example
696
+ * cmx.add(0.1, 0.2) // 返回 0.3
697
+ * cmx.add(1, 2, 3) // 返回 6
698
+ */
699
+ add(...e) {
700
+ return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
701
+ const i = z.getDecimalLength(t), a = z.getDecimalLength(r), o = Math.max(i, a), l = Math.pow(10, o), d = z.toInteger(t, o - i), c = z.toInteger(r, o - a);
702
+ return (d + c) / l;
709
703
  });
710
- /**
711
- ** 乘
712
- **/
713
- m(this, "mul", function(e, t) {
714
- let n = 0, s = e.toString(), o = t.toString();
715
- try {
716
- n += s.split(".")[1].length;
717
- } catch {
718
- }
719
- try {
720
- n += o.split(".")[1].length;
721
- } catch {
722
- }
723
- return Number(s.replace(".", "")) * Number(o.replace(".", "")) / Math.pow(10, n);
704
+ }
705
+ /**
706
+ * 精确减法运算
707
+ * @param arg1 被减数
708
+ * @param arg2 减数
709
+ * @returns 两数之差
710
+ * @example
711
+ * cmx.sub(0.3, 0.1) // 返回 0.2
712
+ */
713
+ sub(e, t) {
714
+ const r = z.getDecimalLength(e), i = z.getDecimalLength(t), a = Math.max(r, i), o = Math.pow(10, a);
715
+ return Number(((e * o - t * o) / o).toFixed(a));
716
+ }
717
+ /**
718
+ * 精确乘法运算(支持多个参数)
719
+ * @param args 要相乘的数字序列
720
+ * @returns 所有数字的乘积
721
+ * @example
722
+ * cmx.mul(0.1, 0.2) // 返回 0.02
723
+ * cmx.mul(2, 3, 4) // 返回 24
724
+ */
725
+ mul(...e) {
726
+ return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
727
+ const i = z.getDecimalLength(t) + z.getDecimalLength(r), a = Number(t.toString().replace(".", "")), o = Number(r.toString().replace(".", ""));
728
+ return a * o / Math.pow(10, i);
724
729
  });
725
- /**
726
- ** 除
727
- **/
728
- m(this, "div", function(e, t) {
729
- let n = 0, s = 0, o, i;
730
- try {
731
- n = e.toString().split(".")[1].length;
732
- } catch {
733
- }
734
- try {
735
- s = t.toString().split(".")[1].length;
736
- } catch {
730
+ }
731
+ /**
732
+ * 精确除法运算
733
+ * @param arg1 被除数
734
+ * @param arg2 除数
735
+ * @returns 两数之商
736
+ * @throws {Error} 除数为零时抛出错误
737
+ * @example
738
+ * cmx.div(0.3, 0.1) // 返回 3
739
+ */
740
+ div(e, t) {
741
+ if (t === 0)
742
+ throw new Error("除数不能为零");
743
+ const r = 1 + Number.EPSILON, i = z.getDecimalLength(e), a = z.getDecimalLength(t), o = Number(e.toString().replace(".", "")) * r, l = Number(t.toString().replace(".", "")) * r;
744
+ return o / l * Math.pow(10, a - i);
745
+ }
746
+ /**
747
+ * 精确四舍五入
748
+ * @param num 要舍入的数字
749
+ * @param decimalPlaces 保留的小数位数(默认为0)
750
+ * @returns 舍入后的数字
751
+ * @example
752
+ * cmx.round(1.2345, 2) // 返回 1.23
753
+ */
754
+ round(e, t = 0) {
755
+ const r = Math.pow(10, t);
756
+ return Math.round(e * r) / r;
757
+ }
758
+ /**
759
+ * 计算百分比值
760
+ * @param value 基础值
761
+ * @param percent 百分比
762
+ * @returns 计算后的百分比值
763
+ * @example
764
+ * cmx.percent(200, 15) // 返回 30(200的15%)
765
+ */
766
+ percent(e, t) {
767
+ return this.div(this.mul(e, t), 100);
768
+ }
769
+ /**
770
+ * 计算平均数
771
+ * @param args 要计算平均数的数字序列
772
+ * @returns 平均数
773
+ * @example
774
+ * cmx.average(1, 2, 3) // 返回 2
775
+ */
776
+ average(...e) {
777
+ return e.length === 0 ? 0 : this.div(
778
+ e.reduce((t, r) => this.add(t, r)),
779
+ e.length
780
+ );
781
+ }
782
+ /**
783
+ * 判断两个数是否近似相等(解决浮点数精度问题)
784
+ * @param a 第一个数
785
+ * @param b 第二个数
786
+ * @param tolerance 允许的误差范围(默认为1e-10)
787
+ * @returns 如果差值小于误差范围则返回true
788
+ * @example
789
+ * cmx.approxEqual(0.1 + 0.2, 0.3) // 返回 true
790
+ */
791
+ approxEqual(e, t, r = 1e-10) {
792
+ return Math.abs(this.sub(e, t)) < r;
793
+ }
794
+ /**
795
+ * 计算自然对数(ln(x))
796
+ * @param num 要计算对数的数字
797
+ * @param decimalPlaces 结果保留的小数位数(默认保留10位)
798
+ * @returns 自然对数值
799
+ * @throws {Error} 当输入小于等于0时抛出错误
800
+ * @example
801
+ * cmx.ln(1) // 返回 0
802
+ * cmx.ln(Math.E) // 返回 1
803
+ */
804
+ ln(e, t = 10) {
805
+ if (e <= 0)
806
+ throw new Error("对数函数的输入必须为正数");
807
+ if (e === 1)
808
+ return 0;
809
+ let r = 0;
810
+ const i = Math.pow(10, -t - 1);
811
+ let a = this.div(this.sub(e, 1), this.add(e, 1));
812
+ const o = this.mul(a, a);
813
+ let l = a, d = 1;
814
+ do
815
+ r = this.add(r, this.div(l, d)), l = this.mul(l, o), d += 2;
816
+ while (Math.abs(l) > i);
817
+ return this.round(this.mul(2, r), t);
818
+ }
819
+ /**
820
+ * 高精度指数函数(解决Math.exp的精度问题)
821
+ * @param x 指数
822
+ * @param decimalPlaces 精度位数(默认10位)
823
+ * @returns e^x 的精确值
824
+ * @example
825
+ * cmx.exp(1) // 2.7182818285(比Math.exp(1)更可控精度)
826
+ * cmx.exp(-3.5) // 0.0301973834
827
+ */
828
+ exp(e, t = 10) {
829
+ if (e === 0)
830
+ return 1;
831
+ if (e === 1)
832
+ return Math.E;
833
+ let r = 1, i = 1;
834
+ const a = Math.pow(10, -t - 1);
835
+ let o = 1, l = 0;
836
+ do
837
+ l = r, i = this.div(this.mul(i, e), o), r = this.add(r, i), o++;
838
+ while (Math.abs(i) > a && !this.approxEqual(r, l, a));
839
+ return this.round(r, t);
840
+ }
841
+ /**
842
+ * 精确计算平方根(解决Math.sqrt的精度问题)
843
+ * @param num 输入数字(必须 ≥0)
844
+ * @param decimalPlaces 结果精度(默认10位)
845
+ * @returns 精确的平方根值
846
+ * @throws {Error} 输入负数时抛出
847
+ * @example
848
+ * cmx.sqrt(2) // 1.4142135624 (Math.sqrt(2)可能产生微小误差)
849
+ */
850
+ sqrt(e, t = 10) {
851
+ if (e < 0)
852
+ throw new Error("负数平方根需使用复数计算");
853
+ if (e === 0)
854
+ return 0;
855
+ let r = e / 2;
856
+ const i = Math.pow(10, -t - 1);
857
+ do
858
+ r = this.div(this.add(r, this.div(e, r)), 2);
859
+ while (Math.abs(this.sub(this.mul(r, r), e)) > i);
860
+ return this.round(r, t);
861
+ }
862
+ /**
863
+ * 安全对数计算(解决Math.log的边界问题)
864
+ * @param num 输入数字(支持 ≤0 的特殊处理)
865
+ * @param options 配置项:
866
+ * - safe: 是否返回安全值(默认true)
867
+ * - replaceNeg: 负数替换值(默认NaN)
868
+ * - replaceZero: 零替换值(默认-Infinity)
869
+ * @returns 处理后的结果
870
+ * @example
871
+ * cmx.safeLog(-1) // NaN(Math.log直接报错)
872
+ * cmx.safeLog(0) // -Infinity(可配置替换值)
873
+ */
874
+ safeLog(e, t = {}) {
875
+ const { safe: r = !0, replaceNeg: i = NaN, replaceZero: a = -1 / 0 } = t;
876
+ if (e > 0)
877
+ return Math.log(e);
878
+ if (!r)
879
+ throw new Error("Invalid input");
880
+ return e === 0 ? a : i;
881
+ }
882
+ /**
883
+ * 精确阶乘(解决Math无阶乘方法的问题)
884
+ * @param n 输入整数(0≤n≤170)
885
+ * @returns 精确结果(超过170返回Infinity)
886
+ * @example
887
+ * cmx.factorial(20) // 2432902008176640000(JS整数精确范围)
888
+ */
889
+ factorial(e) {
890
+ if (!Number.isInteger(e) || e < 0)
891
+ return NaN;
892
+ if (e < 0)
893
+ return NaN;
894
+ if (e > Number.MAX_SAFE_INTEGER) {
895
+ let r = BigInt(1);
896
+ for (let i = 2; i <= e; i++)
897
+ r *= BigInt(i);
898
+ return Number(r.toString());
899
+ }
900
+ if (e > 170)
901
+ return 1 / 0;
902
+ if (z.factorialCache.has(e))
903
+ return z.factorialCache.get(e);
904
+ let t = 1;
905
+ for (let r = 2; r <= e; r++) {
906
+ if (z.factorialCache.has(r)) {
907
+ t = z.factorialCache.get(r);
908
+ continue;
737
909
  }
738
- return o = Number(e.toString().replace(".", "")), i = Number(t.toString().replace(".", "")), o / i * Math.pow(10, s - n);
739
- });
910
+ t = this.mul(t, r), z.factorialCache.set(r, t);
911
+ }
912
+ return t;
740
913
  }
741
- }
742
- const Ta = new bn(), Ne = class Ne {
914
+ /**
915
+ * 双曲函数精确计算(解决大数精度问题)
916
+ * @param x 输入值
917
+ * @param type 函数类型:'sinh' | 'cosh' | 'tanh'
918
+ * @param decimalPlaces 精度(默认10位)
919
+ * @returns 计算结果
920
+ * @example
921
+ * cmx.hypFunc(1, 'tanh') // 0.761594156(比Math.tanh更精确)
922
+ */
923
+ hypFunc(e, t, r = 10) {
924
+ const i = this.exp(e, r + 2), a = this.exp(-e, r + 2);
925
+ switch (t) {
926
+ case "sinh":
927
+ return this.round(this.div(this.sub(i, a), 2), r);
928
+ case "cosh":
929
+ return this.round(this.div(this.add(i, a), 2), r);
930
+ case "tanh":
931
+ return this.round(
932
+ this.div(this.sub(i, a), this.add(i, a)),
933
+ r
934
+ );
935
+ default:
936
+ throw new Error("不支持的函数类型");
937
+ }
938
+ }
939
+ /**
940
+ * 精确排列组合(解决大数计算问题)
941
+ * @param n 总数
942
+ * @param k 选取数
943
+ * @param type 计算类型:'permutation' | 'combination'
944
+ * @returns 精确结果
945
+ * @example
946
+ * cmx.permComb(100, 5, 'combination') // 75287520
947
+ */
948
+ permComb(e, t, r) {
949
+ if (!Number.isInteger(e) || !Number.isInteger(t) || t > e || t < 0)
950
+ return NaN;
951
+ let i = 1;
952
+ for (let a = 0; a < t; a++)
953
+ i = this.mul(i, e - a), r === "combination" && (i = this.div(i, a + 1));
954
+ return i;
955
+ }
956
+ /**
957
+ * 计算最大公约数(GCD)
958
+ * @param a 第一个数字
959
+ * @param b 第二个数字
960
+ * @returns 最大公约数
961
+ * @example
962
+ * cmx.gcd(48, 18) // 返回 6
963
+ */
964
+ gcd(e, t) {
965
+ for (e = Math.abs(e), t = Math.abs(t); t !== 0; ) {
966
+ const r = t;
967
+ t = e % t, e = r;
968
+ }
969
+ return e;
970
+ }
971
+ /**
972
+ * 计算最小公倍数(LCM)
973
+ * @param a 第一个数字
974
+ * @param b 第二个数字
975
+ * @returns 最小公倍数
976
+ * @example
977
+ * cmx.lcm(12, 15) // 返回 60
978
+ */
979
+ lcm(e, t) {
980
+ return this.div(this.mul(e, t), this.gcd(e, t));
981
+ }
982
+ };
983
+ m(z, "factorialCache", /* @__PURE__ */ new Map());
984
+ let it = z;
985
+ const ws = new it(), $e = class $e {
743
986
  constructor() {
744
987
  m(this, "callbacks", []);
745
988
  m(this, "pending", !1);
@@ -753,9 +996,9 @@ const Ta = new bn(), Ne = class Ne {
753
996
  }
754
997
  if (typeof MutationObserver < "u" && typeof window < "u") {
755
998
  let e = 1;
756
- const t = new MutationObserver(this.flushCallbacks.bind(this)), n = document.createTextNode(String(e));
757
- return t.observe(n, { characterData: !0 }), () => {
758
- e = (e + 1) % 2, n.data = String(e);
999
+ const t = new MutationObserver(this.flushCallbacks.bind(this)), r = document.createTextNode(String(e));
1000
+ return t.observe(r, { characterData: !0 }), () => {
1001
+ e = (e + 1) % 2, r.data = String(e);
759
1002
  };
760
1003
  }
761
1004
  return () => setTimeout(this.flushCallbacks.bind(this), 0);
@@ -768,79 +1011,79 @@ const Ta = new bn(), Ne = class Ne {
768
1011
  e[t]();
769
1012
  }
770
1013
  nextTick(e, t) {
771
- let n;
1014
+ let r;
772
1015
  if (this.callbacks.push(() => {
773
1016
  if (e)
774
1017
  try {
775
1018
  e.call(t);
776
- } catch (s) {
777
- console.error("Error in nextTick:", s);
1019
+ } catch (i) {
1020
+ console.error("Error in nextTick:", i);
778
1021
  }
779
1022
  else
780
- n && n();
1023
+ r && r();
781
1024
  }), this.pending || (this.pending = !0, this.timerFunc()), !e && typeof Promise < "u")
782
- return new Promise((s) => {
783
- n = s;
1025
+ return new Promise((i) => {
1026
+ r = i;
784
1027
  });
785
1028
  }
786
1029
  static nextTick(e, t) {
787
- return Ne.instance.nextTick(e, t);
1030
+ return $e.instance.nextTick(e, t);
788
1031
  }
789
1032
  static get instance() {
790
- return this._instance || (this._instance = new Ne()), this._instance;
1033
+ return this._instance || (this._instance = new $e()), this._instance;
791
1034
  }
792
1035
  };
793
- m(Ne, "_instance");
794
- let Ve = Ne;
795
- const Na = Ve.instance.nextTick.bind(Ve.instance);
796
- var ge = {}, ct, lt, Ee = hn;
1036
+ m($e, "_instance");
1037
+ let Le = $e;
1038
+ const xs = Le.instance.nextTick.bind(Le.instance);
1039
+ var ge = {}, ot, ct, _e = fn;
797
1040
  if (process.env.NODE_ENV === "production")
798
- lt = ge.createRoot = Ee.createRoot, ct = ge.hydrateRoot = Ee.hydrateRoot;
1041
+ ct = ge.createRoot = _e.createRoot, ot = ge.hydrateRoot = _e.hydrateRoot;
799
1042
  else {
800
- var Me = Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
801
- lt = ge.createRoot = function(r, e) {
1043
+ var Me = _e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1044
+ ct = ge.createRoot = function(n, e) {
802
1045
  Me.usingClientEntryPoint = !0;
803
1046
  try {
804
- return Ee.createRoot(r, e);
1047
+ return _e.createRoot(n, e);
805
1048
  } finally {
806
1049
  Me.usingClientEntryPoint = !1;
807
1050
  }
808
- }, ct = ge.hydrateRoot = function(r, e, t) {
1051
+ }, ot = ge.hydrateRoot = function(n, e, t) {
809
1052
  Me.usingClientEntryPoint = !0;
810
1053
  try {
811
- return Ee.hydrateRoot(r, e, t);
1054
+ return _e.hydrateRoot(n, e, t);
812
1055
  } finally {
813
1056
  Me.usingClientEntryPoint = !1;
814
1057
  }
815
1058
  };
816
1059
  }
817
- const yn = /* @__PURE__ */ gn({
1060
+ const bn = /* @__PURE__ */ hn({
818
1061
  __proto__: null,
819
1062
  get createRoot() {
820
- return lt;
1063
+ return ct;
821
1064
  },
822
1065
  default: ge,
823
1066
  get hydrateRoot() {
824
- return ct;
1067
+ return ot;
825
1068
  }
826
- }, [ge]), { createRoot: xn } = yn;
827
- let ae = null, ue = null;
828
- function Cn() {
829
- return ae || (ae = document.createElement("div"), document.body.appendChild(ae)), ae;
1069
+ }, [ge]), { createRoot: vn } = bn;
1070
+ let se = null, ce = null;
1071
+ function yn() {
1072
+ return se || (se = document.createElement("div"), document.body.appendChild(se)), se;
830
1073
  }
831
- function wn(r, e) {
832
- const t = Cn();
833
- let n = {
1074
+ function wn(n, e) {
1075
+ const t = yn();
1076
+ let r = {
834
1077
  open: !0,
835
1078
  ...e,
836
1079
  // 默认自动关闭
837
1080
  onClosed: e.onClosed || ((c) => {
838
- u(c);
1081
+ d(c);
839
1082
  })
840
1083
  };
841
- if (!ue)
1084
+ if (!ce)
842
1085
  try {
843
- ue = xn(t);
1086
+ ce = vn(t);
844
1087
  } catch (c) {
845
1088
  return console.error("Failed to create root:", c), {
846
1089
  destroy: () => {
@@ -849,67 +1092,67 @@ function wn(r, e) {
849
1092
  }
850
1093
  };
851
1094
  }
852
- const s = () => {
853
- ue && (ue.unmount(), ue = null), ae && ae.parentNode && (ae.parentNode.removeChild(ae), ae = null);
1095
+ const i = () => {
1096
+ ce && (ce.unmount(), ce = null), se && se.parentNode && (se.parentNode.removeChild(se), se = null);
1097
+ }, a = (c) => {
1098
+ typeof r.onClosed == "function" && r.onClosed(c), i();
854
1099
  }, o = (c) => {
855
- typeof n.onClosed == "function" && n.onClosed(c), s();
856
- }, i = (c) => {
857
- ue && ue.render(/* @__PURE__ */ p.jsx(r, { ...c }));
1100
+ ce && ce.render(/* @__PURE__ */ p.jsx(n, { ...c }));
858
1101
  }, l = (c) => {
859
- n = typeof c == "function" ? c(n) : { ...n, ...c }, i(n);
860
- }, u = (c) => {
861
- n.open ? (n = {
862
- ...n,
1102
+ r = typeof c == "function" ? c(r) : { ...r, ...c }, o(r);
1103
+ }, d = (c) => {
1104
+ r.open ? (r = {
1105
+ ...r,
863
1106
  open: !1,
864
- onClosed: (g) => {
865
- e.onClosed && e.onClosed(g || c), o(g || c);
1107
+ onClosed: (f) => {
1108
+ e.onClosed && e.onClosed(f || c), a(f || c);
866
1109
  }
867
- }, i(n)) : console.warn("Modal is already closed.");
1110
+ }, o(r)) : console.warn("Modal is already closed.");
868
1111
  };
869
- return i(n), {
870
- destroy: u,
1112
+ return o(r), {
1113
+ destroy: d,
871
1114
  update: l
872
1115
  };
873
1116
  }
874
- const ka = () => {
875
- }, Fe = (r, e) => {
876
- const t = r;
877
- let n = r;
1117
+ const Rs = () => {
1118
+ }, He = (n, e) => {
1119
+ const t = n;
1120
+ let r = n;
878
1121
  if (e.includes(" ")) {
879
- n = "";
880
- const s = e == null ? void 0 : e.split(" ");
881
- for (const o of s)
882
- n += ` ${t}-${o}`;
1122
+ r = "";
1123
+ const i = e == null ? void 0 : e.split(" ");
1124
+ for (const a of i)
1125
+ r += ` ${t}-${a}`;
883
1126
  } else
884
- e && (n = `${r}-${e}`);
885
- return n;
886
- }, Da = (r, e) => {
1127
+ e && (r = `${n}-${e}`);
1128
+ return r;
1129
+ }, Ss = (n, e) => {
887
1130
  const t = e == null ? void 0 : e.split(".");
888
- let n = r;
889
- for (const s of t)
890
- n = n[s];
891
- return n;
892
- }, Sn = (r) => {
893
- for (const e in r)
894
- r[e] === null && delete r[e];
1131
+ let r = n;
1132
+ for (const i of t)
1133
+ r = r[i];
895
1134
  return r;
896
- }, ar = (r, e) => {
1135
+ }, xn = (n) => {
1136
+ for (const e in n)
1137
+ n[e] === null && delete n[e];
1138
+ return n;
1139
+ }, sr = (n, e) => {
897
1140
  let t = null;
898
- return (...n) => {
1141
+ return (...r) => {
899
1142
  t && clearTimeout(t), t = setTimeout(() => {
900
- r(...n);
1143
+ n(...r);
901
1144
  }, e);
902
1145
  };
903
- }, Aa = (r, e) => {
904
- let t = null, n = 0;
905
- return (...s) => {
906
- const o = Date.now();
907
- t ? o - n >= e && (r(...s), n = o) : (r(...s), n = o, t = setTimeout(() => {
1146
+ }, Cs = (n, e) => {
1147
+ let t = null, r = 0;
1148
+ return (...i) => {
1149
+ const a = Date.now();
1150
+ t ? a - r >= e && (n(...i), r = a) : (n(...i), r = a, t = setTimeout(() => {
908
1151
  t = null;
909
1152
  }, e));
910
1153
  };
911
1154
  };
912
- class $a {
1155
+ class _s {
913
1156
  /**
914
1157
  * 验证版本号格式是否有效
915
1158
  * @param version 版本号字符串
@@ -927,16 +1170,16 @@ class $a {
927
1170
  static compare(e, t) {
928
1171
  if (!this.isValid(e) || !this.isValid(t))
929
1172
  throw new Error("Invalid version format");
930
- const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
931
- for (let u = 0; u < 3; u++) {
932
- const c = parseInt(s[u] || "0", 10), g = parseInt(o[u] || "0", 10);
933
- if (c > g)
1173
+ const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1174
+ for (let d = 0; d < 3; d++) {
1175
+ const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
1176
+ if (c > f)
934
1177
  return 1;
935
- if (c < g)
1178
+ if (c < f)
936
1179
  return -1;
937
1180
  }
938
- const i = e.match(/-(.+)/), l = t.match(/-(.+)/);
939
- return i && !l ? -1 : !i && l ? 1 : i && l ? i[1].localeCompare(l[1]) : 0;
1181
+ const o = e.match(/-(.+)/), l = t.match(/-(.+)/);
1182
+ return o && !l ? -1 : !o && l ? 1 : o && l ? o[1].localeCompare(l[1]) : 0;
940
1183
  }
941
1184
  /**
942
1185
  * 检查版本号是否满足范围要求
@@ -947,15 +1190,15 @@ class $a {
947
1190
  static satisfies(e, t) {
948
1191
  if (!this.isValid(e))
949
1192
  return !1;
950
- const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, s = t.match(n);
951
- return !s || s.length === 0 ? !1 : s.every((o) => {
952
- const i = o.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
953
- if (!i)
1193
+ const r = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, i = t.match(r);
1194
+ return !i || i.length === 0 ? !1 : i.every((a) => {
1195
+ const o = a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
1196
+ if (!o)
954
1197
  return !1;
955
- const l = i[1] || "==", u = i[2];
956
- if (!this.isValid(u))
1198
+ const l = o[1] || "==", d = o[2];
1199
+ if (!this.isValid(d))
957
1200
  return !1;
958
- const c = this.compare(e, u);
1201
+ const c = this.compare(e, d);
959
1202
  switch (l) {
960
1203
  case ">":
961
1204
  return c > 0;
@@ -966,9 +1209,9 @@ class $a {
966
1209
  case "<=":
967
1210
  return c <= 0;
968
1211
  case "^":
969
- return this.caretRange(e, u);
1212
+ return this.caretRange(e, d);
970
1213
  case "~":
971
- return this.tildeRange(e, u);
1214
+ return this.tildeRange(e, d);
972
1215
  case "=":
973
1216
  case "==":
974
1217
  default:
@@ -983,16 +1226,16 @@ class $a {
983
1226
  * @returns 是否匹配
984
1227
  */
985
1228
  static caretRange(e, t) {
986
- const n = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
987
- let i = 0;
988
- for (let l = 0; l < o.length; l++)
989
- if (parseInt(o[l], 10) !== 0) {
990
- i = l;
1229
+ const r = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1230
+ let o = 0;
1231
+ for (let l = 0; l < a.length; l++)
1232
+ if (parseInt(a[l], 10) !== 0) {
1233
+ o = l;
991
1234
  break;
992
1235
  }
993
- for (let l = 0; l <= i; l++) {
994
- const u = parseInt(s[l] || "0", 10), c = parseInt(o[l] || "0", 10);
995
- if (u !== c)
1236
+ for (let l = 0; l <= o; l++) {
1237
+ const d = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
1238
+ if (d !== c)
996
1239
  return !1;
997
1240
  }
998
1241
  return this.compare(e, t) >= 0;
@@ -1004,14 +1247,14 @@ class $a {
1004
1247
  * @returns 是否匹配
1005
1248
  */
1006
1249
  static tildeRange(e, t) {
1007
- const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
1008
- for (let u = 0; u < o.length - 1; u++) {
1009
- const c = parseInt(s[u] || "0", 10), g = parseInt(o[u] || "0", 10);
1010
- if (c !== g)
1250
+ const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1251
+ for (let d = 0; d < a.length - 1; d++) {
1252
+ const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
1253
+ if (c !== f)
1011
1254
  return !1;
1012
1255
  }
1013
- const i = parseInt(s[o.length - 1] || "0", 10), l = parseInt(o[o.length - 1] || "0", 10);
1014
- return i >= l;
1256
+ const o = parseInt(i[a.length - 1] || "0", 10), l = parseInt(a[a.length - 1] || "0", 10);
1257
+ return o >= l;
1015
1258
  }
1016
1259
  /**
1017
1260
  * 获取主版本号 (major)
@@ -1069,25 +1312,25 @@ class $a {
1069
1312
  return t ? t[1] : null;
1070
1313
  }
1071
1314
  }
1072
- const sr = Qt({
1315
+ const ar = Qt({
1073
1316
  theme: {
1074
1317
  cssVar: !0,
1075
- algorithm: [He.defaultAlgorithm]
1318
+ algorithm: [Ie.defaultAlgorithm]
1076
1319
  }
1077
- }), Ia = sr.Provider;
1320
+ }), Es = ar.Provider;
1078
1321
  function Rn() {
1079
- return er(sr);
1322
+ return er(ar);
1080
1323
  }
1081
- function ye(r) {
1324
+ function ve(n) {
1082
1325
  const { theme: e } = Rn();
1083
- return /* @__PURE__ */ p.jsx(tr, { theme: e, children: r.children });
1326
+ return /* @__PURE__ */ p.jsx(tr, { theme: e, children: n.children });
1084
1327
  }
1085
- const zt = (r = "") => Fe("items-row", r), _n = (r) => r.items ? /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx("div", { className: `${zt()} ${r.className || ""}`, style: r.style, children: (r.items || []).map((e, t) => {
1086
- const n = `${zt("item")} ${e.className}`;
1087
- return e.render ? /* @__PURE__ */ p.jsx("span", { className: n, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
1088
- Pe,
1328
+ const Ht = (n = "") => He("items-row", n), Sn = (n) => n.items ? /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ht()} ${n.className || ""}`, style: n.style, children: (n.items || []).map((e, t) => {
1329
+ const r = `${Ht("item")} ${e.className}`;
1330
+ return e.render ? /* @__PURE__ */ p.jsx("span", { className: r, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
1331
+ ke,
1089
1332
  {
1090
- className: n,
1333
+ className: r,
1091
1334
  ...e.btnProps,
1092
1335
  type: e.type || "primary",
1093
1336
  onClick: e.onClick,
@@ -1096,276 +1339,350 @@ const zt = (r = "") => Fe("items-row", r), _n = (r) => r.items ? /* @__PURE__ */
1096
1339
  e.label
1097
1340
  );
1098
1341
  }) }) }) : null;
1099
- const Oe = (r = "") => Fe("m-breadcrumb", r), Ma = (r) => {
1342
+ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1100
1343
  const {
1101
1344
  routes: e,
1102
1345
  customItems: t,
1103
- style: n,
1104
- className: s,
1105
- offsetTop: o = 64,
1106
- mainAppBaseUrl: i,
1346
+ style: r,
1347
+ className: i,
1348
+ offsetTop: a = 64,
1349
+ mainAppBaseUrl: o,
1107
1350
  microAppName: l
1108
- } = r, u = U.useRef(null), c = U.useCallback(() => {
1109
- var d, b;
1110
- (b = (d = u.current) == null ? void 0 : d.updatePosition) == null || b.call(d);
1351
+ } = n, d = F.useRef(null), c = F.useCallback(() => {
1352
+ var g, v;
1353
+ (v = (g = d.current) == null ? void 0 : g.updatePosition) == null || v.call(g);
1111
1354
  }, []);
1112
- U.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
1113
- const g = U.useCallback(
1114
- (d) => {
1115
- if (!d)
1355
+ F.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
1356
+ const f = F.useCallback(
1357
+ (g) => {
1358
+ if (!g)
1116
1359
  return "";
1117
- const b = d.replace(/^\/+/, "");
1360
+ const v = g.replace(/^\/+/, "");
1118
1361
  return `/${[
1119
- i == null ? void 0 : i.replace(/\/+$/, ""),
1362
+ o == null ? void 0 : o.replace(/\/+$/, ""),
1120
1363
  l == null ? void 0 : l.replace(/\/+$/, ""),
1121
- b
1364
+ v
1122
1365
  ].filter(Boolean).join("/")}`;
1123
1366
  },
1124
- [i, l]
1367
+ [o, l]
1125
1368
  );
1126
- return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx("div", { className: `${Oe()} ${s || ""}`, style: n, children: /* @__PURE__ */ p.jsx(Qr, { ref: u, offsetTop: o, children: /* @__PURE__ */ p.jsxs(
1369
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Xr, { ref: d, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
1127
1370
  rr,
1128
1371
  {
1129
- className: Oe("container"),
1130
- rootClassName: Oe("body"),
1372
+ className: Ee("container"),
1373
+ rootClassName: Ee("body"),
1131
1374
  variant: "borderless",
1132
1375
  children: [
1133
- /* @__PURE__ */ p.jsx($t, { className: Oe("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((d) => /* @__PURE__ */ p.jsx($t.Item, { children: d.url ? /* @__PURE__ */ p.jsx("a", { href: `#${g(d.url)}`, children: d.name }) : d.name }, d.url || d.name)) }),
1134
- /* @__PURE__ */ p.jsx("div", { className: Oe("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(_n, { items: t }) })
1376
+ /* @__PURE__ */ p.jsx(zt, { className: Ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((g) => /* @__PURE__ */ p.jsx(zt.Item, { children: g.url ? /* @__PURE__ */ p.jsx("a", { href: `#${f(g.url)}`, children: g.name }) : g.name }, g.url || g.name)) }),
1377
+ /* @__PURE__ */ p.jsx("div", { className: Ee("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(Sn, { items: t }) })
1135
1378
  ]
1136
1379
  }
1137
1380
  ) }) }) });
1138
- }, En = (r) => {
1381
+ }, Cn = (n) => {
1139
1382
  const {
1140
1383
  data: e,
1141
1384
  title: t,
1142
- column: n = 3,
1143
- lineHeight: s,
1144
- align: o = "left",
1145
- itemLayout: i,
1385
+ column: r = 3,
1386
+ lineHeight: i,
1387
+ align: a = "left",
1388
+ itemLayout: o,
1146
1389
  colon: l = !0,
1147
- bordered: u = !1,
1390
+ bordered: d = !1,
1148
1391
  style: c,
1149
- className: g,
1150
- labelStyle: d,
1151
- contentStyle: b
1152
- } = r, O = {
1153
- ...s ? { lineHeight: `${s}px` } : {},
1154
- textAlign: o,
1155
- ...i != null && i.label ? { width: `${i.label}px` } : {},
1156
- ...d
1157
- }, T = {
1158
- ...s ? { lineHeight: `${s}px` } : {},
1159
- ...i != null && i.value ? { width: `${i.value}px` } : {},
1160
- ...b
1392
+ className: f,
1393
+ labelStyle: g,
1394
+ contentStyle: v
1395
+ } = n, j = {
1396
+ ...i ? { lineHeight: `${i}px` } : {},
1397
+ textAlign: a,
1398
+ ...o != null && o.label ? { width: `${o.label}px` } : {},
1399
+ ...g
1400
+ }, N = {
1401
+ ...i ? { lineHeight: `${i}px` } : {},
1402
+ ...o != null && o.value ? { width: `${o.value}px` } : {},
1403
+ ...v
1161
1404
  };
1162
- return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(
1405
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
1163
1406
  It,
1164
1407
  {
1165
1408
  title: t,
1166
- column: n,
1409
+ column: r,
1167
1410
  colon: l,
1168
- bordered: u,
1411
+ bordered: d,
1169
1412
  style: c,
1170
- className: g,
1171
- labelStyle: O,
1172
- contentStyle: T,
1173
- children: e.map((N, z) => {
1174
- var j;
1413
+ className: f,
1414
+ labelStyle: j,
1415
+ contentStyle: N,
1416
+ children: e.map((T, H) => {
1417
+ var O;
1175
1418
  return /* @__PURE__ */ p.jsx(
1176
1419
  It.Item,
1177
1420
  {
1178
- label: N.label,
1179
- span: N.span,
1180
- children: N.value || "-"
1421
+ label: T.label,
1422
+ span: T.span,
1423
+ children: T.value || "-"
1181
1424
  },
1182
- ((j = N.label) == null ? void 0 : j.toString()) || z
1425
+ ((O = T.label) == null ? void 0 : O.toString()) || H
1183
1426
  );
1184
1427
  })
1185
1428
  }
1186
1429
  ) });
1187
1430
  };
1188
- En.displayName = "MDescriptions";
1189
- var On = /* @__PURE__ */ Qt({});
1190
- const or = On;
1191
- function be() {
1192
- return be = Object.assign ? Object.assign.bind() : function(r) {
1193
- for (var e = 1; e < arguments.length; e++) {
1194
- var t = arguments[e];
1195
- for (var n in t)
1196
- ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
1197
- }
1198
- return r;
1199
- }, be.apply(null, arguments);
1200
- }
1201
- function jn(r) {
1202
- if (Array.isArray(r))
1203
- return r;
1204
- }
1205
- function Pn(r, e) {
1206
- var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
1207
- if (t != null) {
1208
- var n, s, o, i, l = [], u = !0, c = !1;
1209
- try {
1210
- if (o = (t = t.call(r)).next, e === 0) {
1211
- if (Object(t) !== t)
1212
- return;
1213
- u = !1;
1214
- } else
1215
- for (; !(u = (n = o.call(t)).done) && (l.push(n.value), l.length !== e); u = !0)
1216
- ;
1217
- } catch (g) {
1218
- c = !0, s = g;
1219
- } finally {
1220
- try {
1221
- if (!u && t.return != null && (i = t.return(), Object(i) !== i))
1222
- return;
1223
- } finally {
1224
- if (c)
1225
- throw s;
1226
- }
1227
- }
1228
- return l;
1229
- }
1230
- }
1231
- function Ht(r, e) {
1232
- (e == null || e > r.length) && (e = r.length);
1233
- for (var t = 0, n = Array(e); t < e; t++)
1234
- n[t] = r[t];
1235
- return n;
1236
- }
1237
- function Tn(r, e) {
1238
- if (r) {
1239
- if (typeof r == "string")
1240
- return Ht(r, e);
1241
- var t = {}.toString.call(r).slice(8, -1);
1242
- 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) ? Ht(r, e) : void 0;
1243
- }
1244
- }
1245
- function Nn() {
1246
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1247
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1248
- }
1249
- function ir(r, e) {
1250
- return jn(r) || Pn(r, e) || Tn(r, e) || Nn();
1251
- }
1252
- function fe(r) {
1253
- "@babel/helpers - typeof";
1254
- return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1255
- return typeof e;
1256
- } : function(e) {
1257
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1258
- }, fe(r);
1259
- }
1260
- function kn(r, e) {
1261
- if (fe(r) != "object" || !r)
1262
- return r;
1263
- var t = r[Symbol.toPrimitive];
1264
- if (t !== void 0) {
1265
- var n = t.call(r, e || "default");
1266
- if (fe(n) != "object")
1267
- return n;
1268
- throw new TypeError("@@toPrimitive must return a primitive value.");
1269
- }
1270
- return (e === "string" ? String : Number)(r);
1271
- }
1272
- function Dn(r) {
1273
- var e = kn(r, "string");
1274
- return fe(e) == "symbol" ? e : e + "";
1275
- }
1276
- function F(r, e, t) {
1277
- return (e = Dn(e)) in r ? Object.defineProperty(r, e, {
1278
- value: t,
1279
- enumerable: !0,
1280
- configurable: !0,
1281
- writable: !0
1282
- }) : r[e] = t, r;
1283
- }
1284
- function An(r, e) {
1285
- if (r == null)
1286
- return {};
1287
- var t = {};
1288
- for (var n in r)
1289
- if ({}.hasOwnProperty.call(r, n)) {
1290
- if (e.indexOf(n) !== -1)
1291
- continue;
1292
- t[n] = r[n];
1293
- }
1294
- return t;
1295
- }
1296
- function cr(r, e) {
1297
- if (r == null)
1298
- return {};
1299
- var t, n, s = An(r, e);
1300
- if (Object.getOwnPropertySymbols) {
1301
- var o = Object.getOwnPropertySymbols(r);
1302
- for (n = 0; n < o.length; n++)
1303
- t = o[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (s[t] = r[t]);
1304
- }
1305
- return s;
1306
- }
1307
- var lr = { exports: {} };
1431
+ Cn.displayName = "MDescriptions";
1432
+ const _n = /* @__PURE__ */ Qt({}), ir = _n;
1433
+ var or = { exports: {} };
1308
1434
  /*!
1309
1435
  Copyright (c) 2018 Jed Watson.
1310
1436
  Licensed under the MIT License (MIT), see
1311
1437
  http://jedwatson.github.io/classnames
1312
1438
  */
1313
- (function(r) {
1439
+ (function(n) {
1314
1440
  (function() {
1315
1441
  var e = {}.hasOwnProperty;
1316
1442
  function t() {
1317
- for (var o = "", i = 0; i < arguments.length; i++) {
1318
- var l = arguments[i];
1319
- l && (o = s(o, n(l)));
1443
+ for (var a = "", o = 0; o < arguments.length; o++) {
1444
+ var l = arguments[o];
1445
+ l && (a = i(a, r(l)));
1320
1446
  }
1321
- return o;
1447
+ return a;
1322
1448
  }
1323
- function n(o) {
1324
- if (typeof o == "string" || typeof o == "number")
1325
- return o;
1326
- if (typeof o != "object")
1449
+ function r(a) {
1450
+ if (typeof a == "string" || typeof a == "number")
1451
+ return a;
1452
+ if (typeof a != "object")
1327
1453
  return "";
1328
- if (Array.isArray(o))
1329
- return t.apply(null, o);
1330
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
1331
- return o.toString();
1332
- var i = "";
1333
- for (var l in o)
1334
- e.call(o, l) && o[l] && (i = s(i, l));
1335
- return i;
1336
- }
1337
- function s(o, i) {
1338
- return i ? o ? o + " " + i : o + i : o;
1339
- }
1340
- r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
1454
+ if (Array.isArray(a))
1455
+ return t.apply(null, a);
1456
+ if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
1457
+ return a.toString();
1458
+ var o = "";
1459
+ for (var l in a)
1460
+ e.call(a, l) && a[l] && (o = i(o, l));
1461
+ return o;
1462
+ }
1463
+ function i(a, o) {
1464
+ return o ? a ? a + " " + o : a + o : a;
1465
+ }
1466
+ n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
1341
1467
  })();
1342
- })(lr);
1343
- var $n = lr.exports;
1344
- const In = /* @__PURE__ */ pn($n), M = Math.round;
1345
- function nt(r, e) {
1346
- const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((s) => parseFloat(s));
1347
- for (let s = 0; s < 3; s += 1)
1348
- n[s] = e(n[s] || 0, t[s] || "", s);
1349
- return t[3] ? n[3] = t[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
1350
- }
1351
- const Lt = (r, e, t) => t === 0 ? r : r / 100;
1352
- function je(r, e) {
1468
+ })(or);
1469
+ var En = or.exports;
1470
+ const jn = /* @__PURE__ */ gn(En), kn = {
1471
+ aliceblue: "9ehhb",
1472
+ antiquewhite: "9sgk7",
1473
+ aqua: "1ekf",
1474
+ aquamarine: "4zsno",
1475
+ azure: "9eiv3",
1476
+ beige: "9lhp8",
1477
+ bisque: "9zg04",
1478
+ black: "0",
1479
+ blanchedalmond: "9zhe5",
1480
+ blue: "73",
1481
+ blueviolet: "5e31e",
1482
+ brown: "6g016",
1483
+ burlywood: "8ouiv",
1484
+ cadetblue: "3qba8",
1485
+ chartreuse: "4zshs",
1486
+ chocolate: "87k0u",
1487
+ coral: "9yvyo",
1488
+ cornflowerblue: "3xael",
1489
+ cornsilk: "9zjz0",
1490
+ crimson: "8l4xo",
1491
+ cyan: "1ekf",
1492
+ darkblue: "3v",
1493
+ darkcyan: "rkb",
1494
+ darkgoldenrod: "776yz",
1495
+ darkgray: "6mbhl",
1496
+ darkgreen: "jr4",
1497
+ darkgrey: "6mbhl",
1498
+ darkkhaki: "7ehkb",
1499
+ darkmagenta: "5f91n",
1500
+ darkolivegreen: "3bzfz",
1501
+ darkorange: "9yygw",
1502
+ darkorchid: "5z6x8",
1503
+ darkred: "5f8xs",
1504
+ darksalmon: "9441m",
1505
+ darkseagreen: "5lwgf",
1506
+ darkslateblue: "2th1n",
1507
+ darkslategray: "1ugcv",
1508
+ darkslategrey: "1ugcv",
1509
+ darkturquoise: "14up",
1510
+ darkviolet: "5rw7n",
1511
+ deeppink: "9yavn",
1512
+ deepskyblue: "11xb",
1513
+ dimgray: "442g9",
1514
+ dimgrey: "442g9",
1515
+ dodgerblue: "16xof",
1516
+ firebrick: "6y7tu",
1517
+ floralwhite: "9zkds",
1518
+ forestgreen: "1cisi",
1519
+ fuchsia: "9y70f",
1520
+ gainsboro: "8m8kc",
1521
+ ghostwhite: "9pq0v",
1522
+ goldenrod: "8j4f4",
1523
+ gold: "9zda8",
1524
+ gray: "50i2o",
1525
+ green: "pa8",
1526
+ greenyellow: "6senj",
1527
+ grey: "50i2o",
1528
+ honeydew: "9eiuo",
1529
+ hotpink: "9yrp0",
1530
+ indianred: "80gnw",
1531
+ indigo: "2xcoy",
1532
+ ivory: "9zldc",
1533
+ khaki: "9edu4",
1534
+ lavenderblush: "9ziet",
1535
+ lavender: "90c8q",
1536
+ lawngreen: "4vk74",
1537
+ lemonchiffon: "9zkct",
1538
+ lightblue: "6s73a",
1539
+ lightcoral: "9dtog",
1540
+ lightcyan: "8s1rz",
1541
+ lightgoldenrodyellow: "9sjiq",
1542
+ lightgray: "89jo3",
1543
+ lightgreen: "5nkwg",
1544
+ lightgrey: "89jo3",
1545
+ lightpink: "9z6wx",
1546
+ lightsalmon: "9z2ii",
1547
+ lightseagreen: "19xgq",
1548
+ lightskyblue: "5arju",
1549
+ lightslategray: "4nwk9",
1550
+ lightslategrey: "4nwk9",
1551
+ lightsteelblue: "6wau6",
1552
+ lightyellow: "9zlcw",
1553
+ lime: "1edc",
1554
+ limegreen: "1zcxe",
1555
+ linen: "9shk6",
1556
+ magenta: "9y70f",
1557
+ maroon: "4zsow",
1558
+ mediumaquamarine: "40eju",
1559
+ mediumblue: "5p",
1560
+ mediumorchid: "79qkz",
1561
+ mediumpurple: "5r3rv",
1562
+ mediumseagreen: "2d9ip",
1563
+ mediumslateblue: "4tcku",
1564
+ mediumspringgreen: "1di2",
1565
+ mediumturquoise: "2uabw",
1566
+ mediumvioletred: "7rn9h",
1567
+ midnightblue: "z980",
1568
+ mintcream: "9ljp6",
1569
+ mistyrose: "9zg0x",
1570
+ moccasin: "9zfzp",
1571
+ navajowhite: "9zest",
1572
+ navy: "3k",
1573
+ oldlace: "9wq92",
1574
+ olive: "50hz4",
1575
+ olivedrab: "472ub",
1576
+ orange: "9z3eo",
1577
+ orangered: "9ykg0",
1578
+ orchid: "8iu3a",
1579
+ palegoldenrod: "9bl4a",
1580
+ palegreen: "5yw0o",
1581
+ paleturquoise: "6v4ku",
1582
+ palevioletred: "8k8lv",
1583
+ papayawhip: "9zi6t",
1584
+ peachpuff: "9ze0p",
1585
+ peru: "80oqn",
1586
+ pink: "9z8wb",
1587
+ plum: "8nba5",
1588
+ powderblue: "6wgdi",
1589
+ purple: "4zssg",
1590
+ rebeccapurple: "3zk49",
1591
+ red: "9y6tc",
1592
+ rosybrown: "7cv4f",
1593
+ royalblue: "2jvtt",
1594
+ saddlebrown: "5fmkz",
1595
+ salmon: "9rvci",
1596
+ sandybrown: "9jn1c",
1597
+ seagreen: "1tdnb",
1598
+ seashell: "9zje6",
1599
+ sienna: "6973h",
1600
+ silver: "7ir40",
1601
+ skyblue: "5arjf",
1602
+ slateblue: "45e4t",
1603
+ slategray: "4e100",
1604
+ slategrey: "4e100",
1605
+ snow: "9zke2",
1606
+ springgreen: "1egv",
1607
+ steelblue: "2r1kk",
1608
+ tan: "87yx8",
1609
+ teal: "pds",
1610
+ thistle: "8ggk8",
1611
+ tomato: "9yqfb",
1612
+ turquoise: "2j4r4",
1613
+ violet: "9b10u",
1614
+ wheat: "9ld4j",
1615
+ white: "9zldr",
1616
+ whitesmoke: "9lhpx",
1617
+ yellow: "9zl6o",
1618
+ yellowgreen: "61fzm"
1619
+ }, A = Math.round;
1620
+ function tt(n, e) {
1621
+ const t = n.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], r = t.map((i) => parseFloat(i));
1622
+ for (let i = 0; i < 3; i += 1)
1623
+ r[i] = e(r[i] || 0, t[i] || "", i);
1624
+ return t[3] ? r[3] = t[3].includes("%") ? r[3] / 100 : r[3] : r[3] = 1, r;
1625
+ }
1626
+ const Vt = (n, e, t) => t === 0 ? n : n / 100;
1627
+ function je(n, e) {
1353
1628
  const t = e || 255;
1354
- return r > t ? t : r < 0 ? 0 : r;
1629
+ return n > t ? t : n < 0 ? 0 : n;
1355
1630
  }
1356
1631
  class pe {
1357
1632
  constructor(e) {
1358
- F(this, "isValid", !0), F(this, "r", 0), F(this, "g", 0), F(this, "b", 0), F(this, "a", 1), F(this, "_h", void 0), F(this, "_s", void 0), F(this, "_l", void 0), F(this, "_v", void 0), F(this, "_max", void 0), F(this, "_min", void 0), F(this, "_brightness", void 0);
1359
- function t(n) {
1360
- return n[0] in e && n[1] in e && n[2] in e;
1633
+ /**
1634
+ * All FastColor objects are valid. So isValid is always true. This property is kept to be compatible with TinyColor.
1635
+ */
1636
+ m(this, "isValid", !0);
1637
+ /**
1638
+ * Red, R in RGB
1639
+ */
1640
+ m(this, "r", 0);
1641
+ /**
1642
+ * Green, G in RGB
1643
+ */
1644
+ m(this, "g", 0);
1645
+ /**
1646
+ * Blue, B in RGB
1647
+ */
1648
+ m(this, "b", 0);
1649
+ /**
1650
+ * Alpha/Opacity, A in RGBA/HSLA
1651
+ */
1652
+ m(this, "a", 1);
1653
+ // HSV privates
1654
+ m(this, "_h");
1655
+ m(this, "_s");
1656
+ m(this, "_l");
1657
+ m(this, "_v");
1658
+ // intermediate variables to calculate HSL/HSV
1659
+ m(this, "_max");
1660
+ m(this, "_min");
1661
+ m(this, "_brightness");
1662
+ function t(r) {
1663
+ return r[0] in e && r[1] in e && r[2] in e;
1361
1664
  }
1362
1665
  if (e)
1363
1666
  if (typeof e == "string") {
1364
- let s = function(o) {
1365
- return n.startsWith(o);
1667
+ let i = function(a) {
1668
+ return r.startsWith(a);
1366
1669
  };
1367
- const n = e.trim();
1368
- /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : s("rgb") ? this.fromRgbString(n) : s("hsl") ? this.fromHslString(n) : (s("hsv") || s("hsb")) && this.fromHsvString(n);
1670
+ const r = e.trim();
1671
+ if (/^#?[A-F\d]{3,8}$/i.test(r))
1672
+ this.fromHexString(r);
1673
+ else if (i("rgb"))
1674
+ this.fromRgbString(r);
1675
+ else if (i("hsl"))
1676
+ this.fromHslString(r);
1677
+ else if (i("hsv") || i("hsb"))
1678
+ this.fromHsvString(r);
1679
+ else {
1680
+ const a = kn[r.toLowerCase()];
1681
+ a && this.fromHexString(
1682
+ // Convert 36 hex to 16 hex
1683
+ parseInt(a, 36).toString(16).padStart(6, "0")
1684
+ );
1685
+ }
1369
1686
  } else if (e instanceof pe)
1370
1687
  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;
1371
1688
  else if (t("rgb"))
@@ -1400,17 +1717,17 @@ class pe {
1400
1717
  * @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
1401
1718
  */
1402
1719
  getLuminance() {
1403
- function e(o) {
1404
- const i = o / 255;
1405
- return i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
1720
+ function e(a) {
1721
+ const o = a / 255;
1722
+ return o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
1406
1723
  }
1407
- const t = e(this.r), n = e(this.g), s = e(this.b);
1408
- return 0.2126 * t + 0.7152 * n + 0.0722 * s;
1724
+ const t = e(this.r), r = e(this.g), i = e(this.b);
1725
+ return 0.2126 * t + 0.7152 * r + 0.0722 * i;
1409
1726
  }
1410
1727
  getHue() {
1411
1728
  if (typeof this._h > "u") {
1412
1729
  const e = this.getMax() - this.getMin();
1413
- e === 0 ? this._h = 0 : this._h = M(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
1730
+ e === 0 ? this._h = 0 : this._h = A(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
1414
1731
  }
1415
1732
  return this._h;
1416
1733
  }
@@ -1437,22 +1754,22 @@ class pe {
1437
1754
  }
1438
1755
  // ======================== Func ========================
1439
1756
  darken(e = 10) {
1440
- const t = this.getHue(), n = this.getSaturation();
1441
- let s = this.getLightness() - e / 100;
1442
- return s < 0 && (s = 0), this._c({
1757
+ const t = this.getHue(), r = this.getSaturation();
1758
+ let i = this.getLightness() - e / 100;
1759
+ return i < 0 && (i = 0), this._c({
1443
1760
  h: t,
1444
- s: n,
1445
- l: s,
1761
+ s: r,
1762
+ l: i,
1446
1763
  a: this.a
1447
1764
  });
1448
1765
  }
1449
1766
  lighten(e = 10) {
1450
- const t = this.getHue(), n = this.getSaturation();
1451
- let s = this.getLightness() + e / 100;
1452
- return s > 1 && (s = 1), this._c({
1767
+ const t = this.getHue(), r = this.getSaturation();
1768
+ let i = this.getLightness() + e / 100;
1769
+ return i > 1 && (i = 1), this._c({
1453
1770
  h: t,
1454
- s: n,
1455
- l: s,
1771
+ s: r,
1772
+ l: i,
1456
1773
  a: this.a
1457
1774
  });
1458
1775
  }
@@ -1461,13 +1778,13 @@ class pe {
1461
1778
  * 0 means no mixing (return current color).
1462
1779
  */
1463
1780
  mix(e, t = 50) {
1464
- const n = this._c(e), s = t / 100, o = (l) => (n[l] - this[l]) * s + this[l], i = {
1465
- r: M(o("r")),
1466
- g: M(o("g")),
1467
- b: M(o("b")),
1468
- a: M(o("a") * 100) / 100
1781
+ const r = this._c(e), i = t / 100, a = (l) => (r[l] - this[l]) * i + this[l], o = {
1782
+ r: A(a("r")),
1783
+ g: A(a("g")),
1784
+ b: A(a("b")),
1785
+ a: A(a("a") * 100) / 100
1469
1786
  };
1470
- return this._c(i);
1787
+ return this._c(o);
1471
1788
  }
1472
1789
  /**
1473
1790
  * Mix the color with pure white, from 0 to 100.
@@ -1494,12 +1811,12 @@ class pe {
1494
1811
  }, e);
1495
1812
  }
1496
1813
  onBackground(e) {
1497
- const t = this._c(e), n = this.a + t.a * (1 - this.a), s = (o) => M((this[o] * this.a + t[o] * t.a * (1 - this.a)) / n);
1814
+ const t = this._c(e), r = this.a + t.a * (1 - this.a), i = (a) => A((this[a] * this.a + t[a] * t.a * (1 - this.a)) / r);
1498
1815
  return this._c({
1499
- r: s("r"),
1500
- g: s("g"),
1501
- b: s("b"),
1502
- a: n
1816
+ r: i("r"),
1817
+ g: i("g"),
1818
+ b: i("b"),
1819
+ a: r
1503
1820
  });
1504
1821
  }
1505
1822
  // ======================= Status =======================
@@ -1521,12 +1838,12 @@ class pe {
1521
1838
  let e = "#";
1522
1839
  const t = (this.r || 0).toString(16);
1523
1840
  e += t.length === 2 ? t : "0" + t;
1524
- const n = (this.g || 0).toString(16);
1525
- e += n.length === 2 ? n : "0" + n;
1526
- const s = (this.b || 0).toString(16);
1527
- if (e += s.length === 2 ? s : "0" + s, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
1528
- const o = M(this.a * 255).toString(16);
1529
- e += o.length === 2 ? o : "0" + o;
1841
+ const r = (this.g || 0).toString(16);
1842
+ e += r.length === 2 ? r : "0" + r;
1843
+ const i = (this.b || 0).toString(16);
1844
+ if (e += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
1845
+ const a = A(this.a * 255).toString(16);
1846
+ e += a.length === 2 ? a : "0" + a;
1530
1847
  }
1531
1848
  return e;
1532
1849
  }
@@ -1541,8 +1858,8 @@ class pe {
1541
1858
  }
1542
1859
  /** CSS support color pattern */
1543
1860
  toHslString() {
1544
- const e = this.getHue(), t = M(this.getSaturation() * 100), n = M(this.getLightness() * 100);
1545
- return this.a !== 1 ? `hsla(${e},${t}%,${n}%,${this.a})` : `hsl(${e},${t}%,${n}%)`;
1861
+ const e = this.getHue(), t = A(this.getSaturation() * 100), r = A(this.getLightness() * 100);
1862
+ return this.a !== 1 ? `hsla(${e},${t}%,${r}%,${this.a})` : `hsl(${e},${t}%,${r}%)`;
1546
1863
  }
1547
1864
  /** Same as toHsb */
1548
1865
  toHsv() {
@@ -1569,9 +1886,9 @@ class pe {
1569
1886
  }
1570
1887
  // ====================== Privates ======================
1571
1888
  /** Return a new FastColor object with one channel changed */
1572
- _sc(e, t, n) {
1573
- const s = this.clone();
1574
- return s[e] = je(t, n), s;
1889
+ _sc(e, t, r) {
1890
+ const i = this.clone();
1891
+ return i[e] = je(t, r), i;
1575
1892
  }
1576
1893
  _c(e) {
1577
1894
  return new this.constructor(e);
@@ -1584,62 +1901,62 @@ class pe {
1584
1901
  }
1585
1902
  fromHexString(e) {
1586
1903
  const t = e.replace("#", "");
1587
- function n(s, o) {
1588
- return parseInt(t[s] + t[o || s], 16);
1904
+ function r(i, a) {
1905
+ return parseInt(t[i] + t[a || i], 16);
1589
1906
  }
1590
- 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);
1907
+ t.length < 6 ? (this.r = r(0), this.g = r(1), this.b = r(2), this.a = t[3] ? r(3) / 255 : 1) : (this.r = r(0, 1), this.g = r(2, 3), this.b = r(4, 5), this.a = t[6] ? r(6, 7) / 255 : 1);
1591
1908
  }
1592
1909
  fromHsl({
1593
1910
  h: e,
1594
1911
  s: t,
1595
- l: n,
1596
- a: s
1912
+ l: r,
1913
+ a: i
1597
1914
  }) {
1598
- if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof s == "number" ? s : 1, t <= 0) {
1599
- const b = M(n * 255);
1600
- this.r = b, this.g = b, this.b = b;
1915
+ if (this._h = e % 360, this._s = t, this._l = r, this.a = typeof i == "number" ? i : 1, t <= 0) {
1916
+ const v = A(r * 255);
1917
+ this.r = v, this.g = v, this.b = v;
1601
1918
  }
1602
- let o = 0, i = 0, l = 0;
1603
- const u = e / 60, c = (1 - Math.abs(2 * n - 1)) * t, g = c * (1 - Math.abs(u % 2 - 1));
1604
- u >= 0 && u < 1 ? (o = c, i = g) : u >= 1 && u < 2 ? (o = g, i = c) : u >= 2 && u < 3 ? (i = c, l = g) : u >= 3 && u < 4 ? (i = g, l = c) : u >= 4 && u < 5 ? (o = g, l = c) : u >= 5 && u < 6 && (o = c, l = g);
1605
- const d = n - c / 2;
1606
- this.r = M((o + d) * 255), this.g = M((i + d) * 255), this.b = M((l + d) * 255);
1919
+ let a = 0, o = 0, l = 0;
1920
+ const d = e / 60, c = (1 - Math.abs(2 * r - 1)) * t, f = c * (1 - Math.abs(d % 2 - 1));
1921
+ d >= 0 && d < 1 ? (a = c, o = f) : d >= 1 && d < 2 ? (a = f, o = c) : d >= 2 && d < 3 ? (o = c, l = f) : d >= 3 && d < 4 ? (o = f, l = c) : d >= 4 && d < 5 ? (a = f, l = c) : d >= 5 && d < 6 && (a = c, l = f);
1922
+ const g = r - c / 2;
1923
+ this.r = A((a + g) * 255), this.g = A((o + g) * 255), this.b = A((l + g) * 255);
1607
1924
  }
1608
1925
  fromHsv({
1609
1926
  h: e,
1610
1927
  s: t,
1611
- v: n,
1612
- a: s
1928
+ v: r,
1929
+ a: i
1613
1930
  }) {
1614
- this._h = e % 360, this._s = t, this._v = n, this.a = typeof s == "number" ? s : 1;
1615
- const o = M(n * 255);
1616
- if (this.r = o, this.g = o, this.b = o, t <= 0)
1931
+ this._h = e % 360, this._s = t, this._v = r, this.a = typeof i == "number" ? i : 1;
1932
+ const a = A(r * 255);
1933
+ if (this.r = a, this.g = a, this.b = a, t <= 0)
1617
1934
  return;
1618
- const i = e / 60, l = Math.floor(i), u = i - l, c = M(n * (1 - t) * 255), g = M(n * (1 - t * u) * 255), d = M(n * (1 - t * (1 - u)) * 255);
1935
+ const o = e / 60, l = Math.floor(o), d = o - l, c = A(r * (1 - t) * 255), f = A(r * (1 - t * d) * 255), g = A(r * (1 - t * (1 - d)) * 255);
1619
1936
  switch (l) {
1620
1937
  case 0:
1621
- this.g = d, this.b = c;
1938
+ this.g = g, this.b = c;
1622
1939
  break;
1623
1940
  case 1:
1624
- this.r = g, this.b = c;
1941
+ this.r = f, this.b = c;
1625
1942
  break;
1626
1943
  case 2:
1627
- this.r = c, this.b = d;
1944
+ this.r = c, this.b = g;
1628
1945
  break;
1629
1946
  case 3:
1630
- this.r = c, this.g = g;
1947
+ this.r = c, this.g = f;
1631
1948
  break;
1632
1949
  case 4:
1633
- this.r = d, this.g = c;
1950
+ this.r = g, this.g = c;
1634
1951
  break;
1635
1952
  case 5:
1636
1953
  default:
1637
- this.g = c, this.b = g;
1954
+ this.g = c, this.b = f;
1638
1955
  break;
1639
1956
  }
1640
1957
  }
1641
1958
  fromHsvString(e) {
1642
- const t = nt(e, Lt);
1959
+ const t = tt(e, Vt);
1643
1960
  this.fromHsv({
1644
1961
  h: t[0],
1645
1962
  s: t[1],
@@ -1648,7 +1965,7 @@ class pe {
1648
1965
  });
1649
1966
  }
1650
1967
  fromHslString(e) {
1651
- const t = nt(e, Lt);
1968
+ const t = tt(e, Vt);
1652
1969
  this.fromHsl({
1653
1970
  h: t[0],
1654
1971
  s: t[1],
@@ -1657,14 +1974,14 @@ class pe {
1657
1974
  });
1658
1975
  }
1659
1976
  fromRgbString(e) {
1660
- const t = nt(e, (n, s) => (
1977
+ const t = tt(e, (r, i) => (
1661
1978
  // Convert percentage to number. e.g. 50% -> 128
1662
- s.includes("%") ? M(n / 100 * 255) : n
1979
+ i.includes("%") ? A(r / 100 * 255) : r
1663
1980
  ));
1664
1981
  this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
1665
1982
  }
1666
1983
  }
1667
- var Ye = 2, Vt = 0.16, Mn = 0.05, Yn = 0.05, zn = 0.15, ur = 5, fr = 4, Hn = [{
1984
+ const Ae = 2, qt = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, cr = 5, lr = 4, Dn = [{
1668
1985
  index: 7,
1669
1986
  amount: 15
1670
1987
  }, {
@@ -1695,242 +2012,213 @@ var Ye = 2, Vt = 0.16, Mn = 0.05, Yn = 0.05, zn = 0.15, ur = 5, fr = 4, Hn = [{
1695
2012
  index: 1,
1696
2013
  amount: 98
1697
2014
  }];
1698
- function Ft(r, e, t) {
1699
- var n;
1700
- return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) - Ye * e : Math.round(r.h) + Ye * e : n = t ? Math.round(r.h) + Ye * e : Math.round(r.h) - Ye * e, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
1701
- }
1702
- function Ut(r, e, t) {
1703
- if (r.h === 0 && r.s === 0)
1704
- return r.s;
1705
- var n;
1706
- return t ? n = r.s - Vt * e : e === fr ? n = r.s + Vt : n = r.s + Mn * e, n > 1 && (n = 1), t && e === ur && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
1707
- }
1708
- function Wt(r, e, t) {
1709
- var n;
1710
- return t ? n = r.v + Yn * e : n = r.v - zn * e, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
1711
- }
1712
- function Ln(r) {
1713
- for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new pe(r), s = n.toHsv(), o = ur; o > 0; o -= 1) {
1714
- var i = new pe({
1715
- h: Ft(s, o, !0),
1716
- s: Ut(s, o, !0),
1717
- v: Wt(s, o, !0)
2015
+ function Ft(n, e, t) {
2016
+ let r;
2017
+ return Math.round(n.h) >= 60 && Math.round(n.h) <= 240 ? r = t ? Math.round(n.h) - Ae * e : Math.round(n.h) + Ae * e : r = t ? Math.round(n.h) + Ae * e : Math.round(n.h) - Ae * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
2018
+ }
2019
+ function Ut(n, e, t) {
2020
+ if (n.h === 0 && n.s === 0)
2021
+ return n.s;
2022
+ let r;
2023
+ return t ? r = n.s - qt * e : e === lr ? r = n.s + qt : r = n.s + On * e, r > 1 && (r = 1), t && e === cr && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
2024
+ }
2025
+ function Bt(n, e, t) {
2026
+ let r;
2027
+ return t ? r = n.v + $n * e : r = n.v - Nn * e, r = Math.max(0, Math.min(1, r)), Math.round(r * 100) / 100;
2028
+ }
2029
+ function Pn(n, e = {}) {
2030
+ const t = [], r = new pe(n), i = r.toHsv();
2031
+ for (let a = cr; a > 0; a -= 1) {
2032
+ const o = new pe({
2033
+ h: Ft(i, a, !0),
2034
+ s: Ut(i, a, !0),
2035
+ v: Bt(i, a, !0)
1718
2036
  });
1719
- t.push(i);
1720
- }
1721
- t.push(n);
1722
- for (var l = 1; l <= fr; l += 1) {
1723
- var u = new pe({
1724
- h: Ft(s, l),
1725
- s: Ut(s, l),
1726
- v: Wt(s, l)
2037
+ t.push(o);
2038
+ }
2039
+ t.push(r);
2040
+ for (let a = 1; a <= lr; a += 1) {
2041
+ const o = new pe({
2042
+ h: Ft(i, a),
2043
+ s: Ut(i, a),
2044
+ v: Bt(i, a)
1727
2045
  });
1728
- t.push(u);
2046
+ t.push(o);
1729
2047
  }
1730
- return e.theme === "dark" ? Hn.map(function(c) {
1731
- var g = c.index, d = c.amount;
1732
- return new pe(e.backgroundColor || "#141414").mix(t[g], d).toHexString();
1733
- }) : t.map(function(c) {
1734
- return c.toHexString();
1735
- });
2048
+ return e.theme === "dark" ? Dn.map(({
2049
+ index: a,
2050
+ amount: o
2051
+ }) => new pe(e.backgroundColor || "#141414").mix(t[a], o).toHexString()) : t.map((a) => a.toHexString());
1736
2052
  }
1737
- var ut = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
1738
- ut.primary = ut[5];
1739
- function Bt(r, e) {
1740
- var t = Object.keys(r);
1741
- if (Object.getOwnPropertySymbols) {
1742
- var n = Object.getOwnPropertySymbols(r);
1743
- e && (n = n.filter(function(s) {
1744
- return Object.getOwnPropertyDescriptor(r, s).enumerable;
1745
- })), t.push.apply(t, n);
1746
- }
1747
- return t;
1748
- }
1749
- function te(r) {
1750
- for (var e = 1; e < arguments.length; e++) {
1751
- var t = arguments[e] != null ? arguments[e] : {};
1752
- e % 2 ? Bt(Object(t), !0).forEach(function(n) {
1753
- F(r, n, t[n]);
1754
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Bt(Object(t)).forEach(function(n) {
1755
- Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
1756
- });
1757
- }
1758
- return r;
1759
- }
1760
- function Vn() {
2053
+ const lt = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
2054
+ lt.primary = lt[5];
2055
+ function Tn() {
1761
2056
  return !!(typeof window < "u" && window.document && window.document.createElement);
1762
2057
  }
1763
- function Fn(r, e) {
1764
- if (!r)
2058
+ function Mn(n, e) {
2059
+ if (!n)
1765
2060
  return !1;
1766
- if (r.contains)
1767
- return r.contains(e);
1768
- for (var t = e; t; ) {
1769
- if (t === r)
2061
+ if (n.contains)
2062
+ return n.contains(e);
2063
+ let t = e;
2064
+ for (; t; ) {
2065
+ if (t === n)
1770
2066
  return !0;
1771
2067
  t = t.parentNode;
1772
2068
  }
1773
2069
  return !1;
1774
2070
  }
1775
- var Zt = "data-rc-order", qt = "data-rc-priority", Un = "rc-util-key", ft = /* @__PURE__ */ new Map();
1776
- function dr() {
1777
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = r.mark;
1778
- return e ? e.startsWith("data-") ? e : "data-".concat(e) : Un;
2071
+ const Wt = "data-rc-order", Zt = "data-rc-priority", An = "rc-util-key", ut = /* @__PURE__ */ new Map();
2072
+ function ur({
2073
+ mark: n
2074
+ } = {}) {
2075
+ return n ? n.startsWith("data-") ? n : `data-${n}` : An;
1779
2076
  }
1780
- function gt(r) {
1781
- if (r.attachTo)
1782
- return r.attachTo;
1783
- var e = document.querySelector("head");
1784
- return e || document.body;
2077
+ function bt(n) {
2078
+ return n.attachTo ? n.attachTo : document.querySelector("head") || document.body;
1785
2079
  }
1786
- function Wn(r) {
1787
- return r === "queue" ? "prependQueue" : r ? "prepend" : "append";
2080
+ function zn(n) {
2081
+ return n === "queue" ? "prependQueue" : n ? "prepend" : "append";
1788
2082
  }
1789
- function pt(r) {
1790
- return Array.from((ft.get(r) || r).children).filter(function(e) {
1791
- return e.tagName === "STYLE";
1792
- });
2083
+ function vt(n) {
2084
+ return Array.from((ut.get(n) || n).children).filter((e) => e.tagName === "STYLE");
1793
2085
  }
1794
- function hr(r) {
1795
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1796
- if (!Vn())
2086
+ function dr(n, e = {}) {
2087
+ if (!Tn())
1797
2088
  return null;
1798
- var t = e.csp, n = e.prepend, s = e.priority, o = s === void 0 ? 0 : s, i = Wn(n), l = i === "prependQueue", u = document.createElement("style");
1799
- u.setAttribute(Zt, i), l && o && u.setAttribute(qt, "".concat(o)), t != null && t.nonce && (u.nonce = t == null ? void 0 : t.nonce), u.innerHTML = r;
1800
- var c = gt(e), g = c.firstChild;
1801
- if (n) {
1802
- if (l) {
1803
- var d = (e.styles || pt(c)).filter(function(b) {
1804
- if (!["prepend", "prependQueue"].includes(b.getAttribute(Zt)))
2089
+ const {
2090
+ csp: t,
2091
+ prepend: r,
2092
+ priority: i = 0
2093
+ } = e, a = zn(r), o = a === "prependQueue", l = document.createElement("style");
2094
+ l.setAttribute(Wt, a), o && i && l.setAttribute(Zt, `${i}`), t != null && t.nonce && (l.nonce = t == null ? void 0 : t.nonce), l.innerHTML = n;
2095
+ const d = bt(e), {
2096
+ firstChild: c
2097
+ } = d;
2098
+ if (r) {
2099
+ if (o) {
2100
+ const f = (e.styles || vt(d)).filter((g) => {
2101
+ if (!["prepend", "prependQueue"].includes(g.getAttribute(Wt)))
1805
2102
  return !1;
1806
- var O = Number(b.getAttribute(qt) || 0);
1807
- return o >= O;
2103
+ const v = Number(g.getAttribute(Zt) || 0);
2104
+ return i >= v;
1808
2105
  });
1809
- if (d.length)
1810
- return c.insertBefore(u, d[d.length - 1].nextSibling), u;
2106
+ if (f.length)
2107
+ return d.insertBefore(l, f[f.length - 1].nextSibling), l;
1811
2108
  }
1812
- c.insertBefore(u, g);
2109
+ d.insertBefore(l, c);
1813
2110
  } else
1814
- c.appendChild(u);
1815
- return u;
1816
- }
1817
- function Bn(r) {
1818
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = gt(e);
1819
- return (e.styles || pt(t)).find(function(n) {
1820
- return n.getAttribute(dr(e)) === r;
1821
- });
1822
- }
1823
- function Zn(r, e) {
1824
- var t = ft.get(r);
1825
- if (!t || !Fn(document, t)) {
1826
- var n = hr("", e), s = n.parentNode;
1827
- ft.set(r, s), r.removeChild(n);
1828
- }
1829
- }
1830
- function qn(r, e) {
1831
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = gt(t), s = pt(n), o = te(te({}, t), {}, {
1832
- styles: s
1833
- });
1834
- Zn(n, o);
1835
- var i = Bn(e, o);
1836
- if (i) {
1837
- var l, u;
1838
- if ((l = o.csp) !== null && l !== void 0 && l.nonce && i.nonce !== ((u = o.csp) === null || u === void 0 ? void 0 : u.nonce)) {
1839
- var c;
1840
- i.nonce = (c = o.csp) === null || c === void 0 ? void 0 : c.nonce;
1841
- }
1842
- return i.innerHTML !== r && (i.innerHTML = r), i;
1843
- }
1844
- var g = hr(r, o);
1845
- return g.setAttribute(dr(o), e), g;
1846
- }
1847
- function gr(r) {
2111
+ d.appendChild(l);
2112
+ return l;
2113
+ }
2114
+ function In(n, e = {}) {
2115
+ let {
2116
+ styles: t
2117
+ } = e;
2118
+ return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(ur(e)) === n);
2119
+ }
2120
+ function Yn(n, e) {
2121
+ const t = ut.get(n);
2122
+ if (!t || !Mn(document, t)) {
2123
+ const r = dr("", e), {
2124
+ parentNode: i
2125
+ } = r;
2126
+ ut.set(n, i), n.removeChild(r);
2127
+ }
2128
+ }
2129
+ function Ln(n, e, t = {}) {
2130
+ var d, c, f;
2131
+ const r = bt(t), i = vt(r), a = {
2132
+ ...t,
2133
+ styles: i
2134
+ };
2135
+ Yn(r, a);
2136
+ const o = In(e, a);
2137
+ if (o)
2138
+ return (d = a.csp) != null && d.nonce && o.nonce !== ((c = a.csp) == null ? void 0 : c.nonce) && (o.nonce = (f = a.csp) == null ? void 0 : f.nonce), o.innerHTML !== n && (o.innerHTML = n), o;
2139
+ const l = dr(n, a);
2140
+ return l.setAttribute(ur(a), e), l;
2141
+ }
2142
+ function fr(n) {
1848
2143
  var e;
1849
- return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
2144
+ return (e = n == null ? void 0 : n.getRootNode) == null ? void 0 : e.call(n);
1850
2145
  }
1851
- function Kn(r) {
1852
- return gr(r) instanceof ShadowRoot;
2146
+ function Hn(n) {
2147
+ return fr(n) instanceof ShadowRoot;
1853
2148
  }
1854
- function Gn(r) {
1855
- return Kn(r) ? gr(r) : null;
2149
+ function Vn(n) {
2150
+ return Hn(n) ? fr(n) : null;
1856
2151
  }
1857
- var dt = {}, mt = [], Jn = function(e) {
1858
- mt.push(e);
2152
+ let dt = {};
2153
+ const yt = [], qn = (n) => {
2154
+ yt.push(n);
1859
2155
  };
1860
- function Xn(r, e) {
1861
- if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
1862
- var t = mt.reduce(function(n, s) {
1863
- return s(n ?? "", "warning");
1864
- }, e);
1865
- t && console.error("Warning: ".concat(t));
2156
+ function Fn(n, e) {
2157
+ if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
2158
+ const t = yt.reduce((r, i) => i(r ?? "", "warning"), e);
2159
+ t && console.error(`Warning: ${t}`);
1866
2160
  }
1867
2161
  }
1868
- function Qn(r, e) {
1869
- if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
1870
- var t = mt.reduce(function(n, s) {
1871
- return s(n ?? "", "note");
1872
- }, e);
1873
- t && console.warn("Note: ".concat(t));
2162
+ function Un(n, e) {
2163
+ if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
2164
+ const t = yt.reduce((r, i) => i(r ?? "", "note"), e);
2165
+ t && console.warn(`Note: ${t}`);
1874
2166
  }
1875
2167
  }
1876
- function ea() {
2168
+ function Bn() {
1877
2169
  dt = {};
1878
2170
  }
1879
- function pr(r, e, t) {
1880
- !e && !dt[t] && (r(!1, t), dt[t] = !0);
2171
+ function hr(n, e, t) {
2172
+ !e && !dt[t] && (n(!1, t), dt[t] = !0);
1881
2173
  }
1882
- function Ue(r, e) {
1883
- pr(Xn, r, e);
2174
+ function Ve(n, e) {
2175
+ hr(Fn, n, e);
1884
2176
  }
1885
- function ta(r, e) {
1886
- pr(Qn, r, e);
2177
+ function Wn(n, e) {
2178
+ hr(Un, n, e);
1887
2179
  }
1888
- Ue.preMessage = Jn;
1889
- Ue.resetWarned = ea;
1890
- Ue.noteOnce = ta;
1891
- function ra(r) {
1892
- return r.replace(/-(.)/g, function(e, t) {
1893
- return t.toUpperCase();
1894
- });
2180
+ Ve.preMessage = qn;
2181
+ Ve.resetWarned = Bn;
2182
+ Ve.noteOnce = Wn;
2183
+ function Zn(n) {
2184
+ return n.replace(/-(.)/g, (e, t) => t.toUpperCase());
1895
2185
  }
1896
- function na(r, e) {
1897
- Ue(r, "[@ant-design/icons] ".concat(e));
2186
+ function Gn(n, e) {
2187
+ Ve(n, `[@ant-design/icons] ${e}`);
1898
2188
  }
1899
- function Kt(r) {
1900
- return fe(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (fe(r.icon) === "object" || typeof r.icon == "function");
2189
+ function Gt(n) {
2190
+ return typeof n == "object" && typeof n.name == "string" && typeof n.theme == "string" && (typeof n.icon == "object" || typeof n.icon == "function");
1901
2191
  }
1902
- function Gt() {
1903
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1904
- return Object.keys(r).reduce(function(e, t) {
1905
- var n = r[t];
2192
+ function Jt(n = {}) {
2193
+ return Object.keys(n).reduce((e, t) => {
2194
+ const r = n[t];
1906
2195
  switch (t) {
1907
2196
  case "class":
1908
- e.className = n, delete e.class;
2197
+ e.className = r, delete e.class;
1909
2198
  break;
1910
2199
  default:
1911
- delete e[t], e[ra(t)] = n;
2200
+ delete e[t], e[Zn(t)] = r;
1912
2201
  }
1913
2202
  return e;
1914
2203
  }, {});
1915
2204
  }
1916
- function ht(r, e, t) {
1917
- return t ? /* @__PURE__ */ Le.createElement(r.tag, te(te({
1918
- key: e
1919
- }, Gt(r.attrs)), t), (r.children || []).map(function(n, s) {
1920
- return ht(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
1921
- })) : /* @__PURE__ */ Le.createElement(r.tag, te({
1922
- key: e
1923
- }, Gt(r.attrs)), (r.children || []).map(function(n, s) {
1924
- return ht(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
1925
- }));
2205
+ function ft(n, e, t) {
2206
+ return t ? /* @__PURE__ */ Ye.createElement(n.tag, {
2207
+ key: e,
2208
+ ...Jt(n.attrs),
2209
+ ...t
2210
+ }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
2211
+ key: e,
2212
+ ...Jt(n.attrs)
2213
+ }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`)));
1926
2214
  }
1927
- function mr(r) {
1928
- return Ln(r)[0];
2215
+ function gr(n) {
2216
+ return Pn(n)[0];
1929
2217
  }
1930
- function vr(r) {
1931
- return r ? Array.isArray(r) ? r : [r] : [];
2218
+ function pr(n) {
2219
+ return n ? Array.isArray(n) ? n : [n] : [];
1932
2220
  }
1933
- var aa = `
2221
+ const Jn = `
1934
2222
  .anticon {
1935
2223
  display: inline-flex;
1936
2224
  align-items: center;
@@ -1951,6 +2239,7 @@ var aa = `
1951
2239
 
1952
2240
  .anticon svg {
1953
2241
  display: inline-block;
2242
+ vertical-align: inherit;
1954
2243
  }
1955
2244
 
1956
2245
  .anticon::before {
@@ -1985,128 +2274,199 @@ var aa = `
1985
2274
  transform: rotate(360deg);
1986
2275
  }
1987
2276
  }
1988
- `, sa = function(e) {
1989
- var t = er(or), n = t.csp, s = t.prefixCls, o = t.layer, i = aa;
1990
- s && (i = i.replace(/anticon/g, s)), o && (i = "@layer ".concat(o, ` {
1991
- `).concat(i, `
1992
- }`)), oe(function() {
1993
- var l = e.current, u = Gn(l);
1994
- qn(i, "@ant-design-icons", {
1995
- prepend: !o,
1996
- csp: n,
1997
- attachTo: u
2277
+ `, Kn = (n) => {
2278
+ const {
2279
+ csp: e,
2280
+ prefixCls: t,
2281
+ layer: r
2282
+ } = er(ir);
2283
+ let i = Jn;
2284
+ t && (i = i.replace(/anticon/g, t)), r && (i = `@layer ${r} {
2285
+ ${i}
2286
+ }`), ae(() => {
2287
+ const a = n.current, o = Vn(a);
2288
+ Ln(i, "@ant-design-icons", {
2289
+ prepend: !r,
2290
+ csp: e,
2291
+ attachTo: o
1998
2292
  });
1999
2293
  }, []);
2000
- }, oa = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], Te = {
2294
+ }, Oe = {
2001
2295
  primaryColor: "#333",
2002
2296
  secondaryColor: "#E6E6E6",
2003
2297
  calculated: !1
2004
2298
  };
2005
- function ia(r) {
2006
- var e = r.primaryColor, t = r.secondaryColor;
2007
- Te.primaryColor = e, Te.secondaryColor = t || mr(e), Te.calculated = !!t;
2008
- }
2009
- function ca() {
2010
- return te({}, Te);
2011
- }
2012
- var We = function(e) {
2013
- var t = e.icon, n = e.className, s = e.onClick, o = e.style, i = e.primaryColor, l = e.secondaryColor, u = cr(e, oa), c = U.useRef(), g = Te;
2014
- if (i && (g = {
2015
- primaryColor: i,
2016
- secondaryColor: l || mr(i)
2017
- }), sa(c), na(Kt(t), "icon should be icon definiton, but got ".concat(t)), !Kt(t))
2299
+ function Xn({
2300
+ primaryColor: n,
2301
+ secondaryColor: e
2302
+ }) {
2303
+ Oe.primaryColor = n, Oe.secondaryColor = e || gr(n), Oe.calculated = !!e;
2304
+ }
2305
+ function Qn() {
2306
+ return {
2307
+ ...Oe
2308
+ };
2309
+ }
2310
+ const qe = (n) => {
2311
+ const {
2312
+ icon: e,
2313
+ className: t,
2314
+ onClick: r,
2315
+ style: i,
2316
+ primaryColor: a,
2317
+ secondaryColor: o,
2318
+ ...l
2319
+ } = n, d = F.useRef();
2320
+ let c = Oe;
2321
+ if (a && (c = {
2322
+ primaryColor: a,
2323
+ secondaryColor: o || gr(a)
2324
+ }), Kn(d), Gn(Gt(e), `icon should be icon definiton, but got ${e}`), !Gt(e))
2018
2325
  return null;
2019
- var d = t;
2020
- return d && typeof d.icon == "function" && (d = te(te({}, d), {}, {
2021
- icon: d.icon(g.primaryColor, g.secondaryColor)
2022
- })), ht(d.icon, "svg-".concat(d.name), te(te({
2023
- className: n,
2024
- onClick: s,
2025
- style: o,
2026
- "data-icon": d.name,
2326
+ let f = e;
2327
+ return f && typeof f.icon == "function" && (f = {
2328
+ ...f,
2329
+ icon: f.icon(c.primaryColor, c.secondaryColor)
2330
+ }), ft(f.icon, `svg-${f.name}`, {
2331
+ className: t,
2332
+ onClick: r,
2333
+ style: i,
2334
+ "data-icon": f.name,
2027
2335
  width: "1em",
2028
2336
  height: "1em",
2029
2337
  fill: "currentColor",
2030
- "aria-hidden": "true"
2031
- }, u), {}, {
2032
- ref: c
2033
- }));
2338
+ "aria-hidden": "true",
2339
+ ...l,
2340
+ ref: d
2341
+ });
2034
2342
  };
2035
- We.displayName = "IconReact";
2036
- We.getTwoToneColors = ca;
2037
- We.setTwoToneColors = ia;
2038
- const vt = We;
2039
- function br(r) {
2040
- var e = vr(r), t = ir(e, 2), n = t[0], s = t[1];
2041
- return vt.setTwoToneColors({
2042
- primaryColor: n,
2043
- secondaryColor: s
2343
+ qe.displayName = "IconReact";
2344
+ qe.getTwoToneColors = Qn;
2345
+ qe.setTwoToneColors = Xn;
2346
+ const wt = qe;
2347
+ function mr(n) {
2348
+ const [e, t] = pr(n);
2349
+ return wt.setTwoToneColors({
2350
+ primaryColor: e,
2351
+ secondaryColor: t
2044
2352
  });
2045
2353
  }
2046
- function la() {
2047
- var r = vt.getTwoToneColors();
2048
- return r.calculated ? [r.primaryColor, r.secondaryColor] : r.primaryColor;
2049
- }
2050
- var ua = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2051
- br(ut.primary);
2052
- var Be = /* @__PURE__ */ U.forwardRef(function(r, e) {
2053
- var t = r.className, n = r.icon, s = r.spin, o = r.rotate, i = r.tabIndex, l = r.onClick, u = r.twoToneColor, c = cr(r, ua), g = U.useContext(or), d = g.prefixCls, b = d === void 0 ? "anticon" : d, O = g.rootClassName, T = In(O, b, F(F({}, "".concat(b, "-").concat(n.name), !!n.name), "".concat(b, "-spin"), !!s || n.name === "loading"), t), N = i;
2054
- N === void 0 && l && (N = -1);
2055
- var z = o ? {
2056
- msTransform: "rotate(".concat(o, "deg)"),
2057
- transform: "rotate(".concat(o, "deg)")
2058
- } : void 0, j = vr(u), y = ir(j, 2), E = y[0], I = y[1];
2059
- return /* @__PURE__ */ U.createElement("span", be({
2354
+ function es() {
2355
+ const n = wt.getTwoToneColors();
2356
+ return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
2357
+ }
2358
+ function ht() {
2359
+ return ht = Object.assign ? Object.assign.bind() : function(n) {
2360
+ for (var e = 1; e < arguments.length; e++) {
2361
+ var t = arguments[e];
2362
+ for (var r in t)
2363
+ Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
2364
+ }
2365
+ return n;
2366
+ }, ht.apply(this, arguments);
2367
+ }
2368
+ mr(lt.primary);
2369
+ const Fe = /* @__PURE__ */ F.forwardRef((n, e) => {
2370
+ const {
2371
+ // affect outter <i>...</i>
2372
+ className: t,
2373
+ // affect inner <svg>...</svg>
2374
+ icon: r,
2375
+ spin: i,
2376
+ rotate: a,
2377
+ tabIndex: o,
2378
+ onClick: l,
2379
+ // other
2380
+ twoToneColor: d,
2381
+ ...c
2382
+ } = n, {
2383
+ prefixCls: f = "anticon",
2384
+ rootClassName: g
2385
+ } = F.useContext(ir), v = jn(g, f, {
2386
+ [`${f}-${r.name}`]: !!r.name,
2387
+ [`${f}-spin`]: !!i || r.name === "loading"
2388
+ }, t);
2389
+ let j = o;
2390
+ j === void 0 && l && (j = -1);
2391
+ const N = a ? {
2392
+ msTransform: `rotate(${a}deg)`,
2393
+ transform: `rotate(${a}deg)`
2394
+ } : void 0, [T, H] = pr(d);
2395
+ return /* @__PURE__ */ F.createElement("span", ht({
2060
2396
  role: "img",
2061
- "aria-label": n.name
2397
+ "aria-label": r.name
2062
2398
  }, c, {
2063
2399
  ref: e,
2064
- tabIndex: N,
2400
+ tabIndex: j,
2065
2401
  onClick: l,
2066
- className: T
2067
- }), /* @__PURE__ */ U.createElement(vt, {
2068
- icon: n,
2069
- primaryColor: E,
2070
- secondaryColor: I,
2071
- style: z
2402
+ className: v
2403
+ }), /* @__PURE__ */ F.createElement(wt, {
2404
+ icon: r,
2405
+ primaryColor: T,
2406
+ secondaryColor: H,
2407
+ style: N
2072
2408
  }));
2073
2409
  });
2074
- Be.displayName = "AntdIcon";
2075
- Be.getTwoToneColor = la;
2076
- Be.setTwoToneColor = br;
2077
- const bt = Be;
2078
- var fa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
2079
- const da = fa;
2080
- var ha = function(e, t) {
2081
- return /* @__PURE__ */ U.createElement(bt, be({}, e, {
2082
- ref: t,
2083
- icon: da
2084
- }));
2085
- }, yr = /* @__PURE__ */ U.forwardRef(ha);
2086
- process.env.NODE_ENV !== "production" && (yr.displayName = "CaretDownOutlined");
2087
- const ga = yr;
2088
- var pa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
2089
- const ma = pa;
2090
- var va = function(e, t) {
2091
- return /* @__PURE__ */ U.createElement(bt, be({}, e, {
2092
- ref: t,
2093
- icon: ma
2094
- }));
2095
- }, xr = /* @__PURE__ */ U.forwardRef(va);
2096
- process.env.NODE_ENV !== "production" && (xr.displayName = "CaretUpOutlined");
2097
- const ba = xr;
2098
- var ya = { 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" };
2099
- const xa = ya;
2100
- var Ca = function(e, t) {
2101
- return /* @__PURE__ */ U.createElement(bt, be({}, e, {
2102
- ref: t,
2103
- icon: xa
2104
- }));
2105
- }, Cr = /* @__PURE__ */ U.forwardRef(Ca);
2106
- process.env.NODE_ENV !== "production" && (Cr.displayName = "UploadOutlined");
2107
- const wa = Cr;
2108
- var q = /* @__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))(q || {});
2109
- const { RangePicker: Sa } = nr, R = class R {
2410
+ Fe.displayName = "AntdIcon";
2411
+ Fe.getTwoToneColor = es;
2412
+ Fe.setTwoToneColor = mr;
2413
+ const xt = Fe;
2414
+ var ts = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
2415
+ const rs = ts;
2416
+ function gt() {
2417
+ return gt = Object.assign ? Object.assign.bind() : function(n) {
2418
+ for (var e = 1; e < arguments.length; e++) {
2419
+ var t = arguments[e];
2420
+ for (var r in t)
2421
+ Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
2422
+ }
2423
+ return n;
2424
+ }, gt.apply(this, arguments);
2425
+ }
2426
+ const ns = (n, e) => /* @__PURE__ */ F.createElement(xt, gt({}, n, {
2427
+ ref: e,
2428
+ icon: rs
2429
+ })), br = /* @__PURE__ */ F.forwardRef(ns);
2430
+ process.env.NODE_ENV !== "production" && (br.displayName = "CaretDownOutlined");
2431
+ const ss = br;
2432
+ var as = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
2433
+ const is = as;
2434
+ function pt() {
2435
+ return pt = Object.assign ? Object.assign.bind() : function(n) {
2436
+ for (var e = 1; e < arguments.length; e++) {
2437
+ var t = arguments[e];
2438
+ for (var r in t)
2439
+ Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
2440
+ }
2441
+ return n;
2442
+ }, pt.apply(this, arguments);
2443
+ }
2444
+ const os = (n, e) => /* @__PURE__ */ F.createElement(xt, pt({}, n, {
2445
+ ref: e,
2446
+ icon: is
2447
+ })), vr = /* @__PURE__ */ F.forwardRef(os);
2448
+ process.env.NODE_ENV !== "production" && (vr.displayName = "CaretUpOutlined");
2449
+ const cs = vr;
2450
+ var ls = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
2451
+ const us = ls;
2452
+ function mt() {
2453
+ return mt = Object.assign ? Object.assign.bind() : function(n) {
2454
+ for (var e = 1; e < arguments.length; e++) {
2455
+ var t = arguments[e];
2456
+ for (var r in t)
2457
+ Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
2458
+ }
2459
+ return n;
2460
+ }, mt.apply(this, arguments);
2461
+ }
2462
+ const ds = (n, e) => /* @__PURE__ */ F.createElement(xt, mt({}, n, {
2463
+ ref: e,
2464
+ icon: us
2465
+ })), yr = /* @__PURE__ */ F.forwardRef(ds);
2466
+ process.env.NODE_ENV !== "production" && (yr.displayName = "UploadOutlined");
2467
+ const fs = yr;
2468
+ var W = /* @__PURE__ */ ((n) => (n.Input = "input", n.InputNumber = "inputNumber", n.Text = "text", n.Password = "password", n.Radio = "radio", n.Select = "select", n.Checkbox = "checkbox", n.DatePicker = "datePicker", n.RangePicker = "rangePicker", n.Upload = "upload", n.Mentions = "mentions", n.Cascader = "cascader", n.TreeSelect = "treeSelect", n))(W || {});
2469
+ const { RangePicker: hs } = nr, C = class C {
2110
2470
  static getDefaultArrayPlaceholder(e) {
2111
2471
  let t;
2112
2472
  switch (e.type) {
@@ -2119,21 +2479,21 @@ const { RangePicker: Sa } = nr, R = class R {
2119
2479
  static getDefaultPlaceholder(e) {
2120
2480
  let t;
2121
2481
  switch (e.type) {
2122
- case q.Input:
2123
- case q.Password:
2124
- case q.InputNumber:
2125
- case q.Text:
2126
- case q.Mentions:
2482
+ case W.Input:
2483
+ case W.Password:
2484
+ case W.InputNumber:
2485
+ case W.Text:
2486
+ case W.Mentions:
2127
2487
  t = `请输入${e.label}`;
2128
2488
  break;
2129
- case q.Select:
2130
- case q.Checkbox:
2131
- case q.Radio:
2132
- case q.DatePicker:
2133
- case q.RangePicker:
2134
- case q.Cascader:
2135
- case q.Upload:
2136
- case q.TreeSelect:
2489
+ case W.Select:
2490
+ case W.Checkbox:
2491
+ case W.Radio:
2492
+ case W.DatePicker:
2493
+ case W.RangePicker:
2494
+ case W.Cascader:
2495
+ case W.Upload:
2496
+ case W.TreeSelect:
2137
2497
  t = `请选择${e.label}`;
2138
2498
  break;
2139
2499
  }
@@ -2143,157 +2503,157 @@ const { RangePicker: Sa } = nr, R = class R {
2143
2503
  // return <Slider {...item.props} />;
2144
2504
  // };
2145
2505
  };
2146
- m(R, "labelCol", { span: 7 }), m(R, "wrapperCol", { span: 17 }), m(R, "defaultRowGutter", 24), m(R, "input", (e) => /* @__PURE__ */ p.jsx(
2147
- rt,
2506
+ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRowGutter", 24), m(C, "input", (e) => /* @__PURE__ */ p.jsx(
2507
+ et,
2148
2508
  {
2149
2509
  disabled: e.disabled,
2150
2510
  maxLength: e.maxLength,
2151
2511
  ...e.props,
2152
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2512
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2153
2513
  }
2154
- )), m(R, "password", (e) => /* @__PURE__ */ p.jsx(
2155
- rt.Password,
2514
+ )), m(C, "password", (e) => /* @__PURE__ */ p.jsx(
2515
+ et.Password,
2156
2516
  {
2157
2517
  disabled: e.disabled,
2158
2518
  ...e.props,
2159
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2519
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2160
2520
  }
2161
- )), m(R, "text", (e) => /* @__PURE__ */ p.jsx(
2162
- rt.TextArea,
2521
+ )), m(C, "text", (e) => /* @__PURE__ */ p.jsx(
2522
+ et.TextArea,
2163
2523
  {
2164
2524
  disabled: e.disabled,
2165
2525
  maxLength: e.maxLength,
2166
2526
  ...e.props,
2167
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2527
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2168
2528
  }
2169
- )), m(R, "inputNumber", (e) => /* @__PURE__ */ p.jsx(
2170
- en,
2529
+ )), m(C, "inputNumber", (e) => /* @__PURE__ */ p.jsx(
2530
+ Qr,
2171
2531
  {
2172
2532
  disabled: e.disabled,
2173
2533
  maxLength: e.maxLength,
2174
2534
  ...e.props,
2175
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2535
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2176
2536
  }
2177
- )), m(R, "datePicker", (e) => /* @__PURE__ */ p.jsx(
2537
+ )), m(C, "datePicker", (e) => /* @__PURE__ */ p.jsx(
2178
2538
  nr,
2179
2539
  {
2180
2540
  disabled: e.disabled,
2181
2541
  ...e.props,
2182
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2542
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2183
2543
  }
2184
- )), m(R, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
2185
- Sa,
2544
+ )), m(C, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
2545
+ hs,
2186
2546
  {
2187
2547
  disabled: e.disabled,
2188
2548
  ...e.props,
2189
- placeholder: e.placeholder || R.getDefaultArrayPlaceholder(e)
2549
+ placeholder: e.placeholder || C.getDefaultArrayPlaceholder(e)
2190
2550
  }
2191
- )), m(R, "select", (e) => /* @__PURE__ */ p.jsx(
2192
- tn,
2551
+ )), m(C, "select", (e) => /* @__PURE__ */ p.jsx(
2552
+ en,
2193
2553
  {
2194
2554
  ...e.props,
2195
2555
  disabled: e.disabled,
2196
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2556
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2197
2557
  }
2198
- )), m(R, "radio", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(R, "checkbox", (e) => /* @__PURE__ */ p.jsx(nn.Group, { disabled: e.disabled, ...e.props })), m(R, "upload", (e) => /* @__PURE__ */ p.jsx(an, { defaultFileList: e.initialValue, ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(Pe, { children: [
2199
- /* @__PURE__ */ p.jsx(wa, {}),
2558
+ )), m(C, "radio", (e) => /* @__PURE__ */ p.jsx(tn.Group, { disabled: e.disabled, ...e.props })), m(C, "checkbox", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(C, "upload", (e) => /* @__PURE__ */ p.jsx(nn, { ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(ke, { children: [
2559
+ /* @__PURE__ */ p.jsx(fs, {}),
2200
2560
  " 点击上传"
2201
- ] }) })), m(R, "mentions", (e) => /* @__PURE__ */ p.jsx(
2561
+ ] }) })), m(C, "mentions", (e) => /* @__PURE__ */ p.jsx(
2202
2562
  sn,
2203
2563
  {
2204
2564
  ...e.props,
2205
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2565
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2206
2566
  }
2207
- )), m(R, "cascader", (e) => /* @__PURE__ */ p.jsx(
2208
- on,
2567
+ )), m(C, "cascader", (e) => /* @__PURE__ */ p.jsx(
2568
+ an,
2209
2569
  {
2210
2570
  ...e.props,
2211
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2571
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2212
2572
  }
2213
- )), m(R, "treeSelect", (e) => /* @__PURE__ */ p.jsx(
2214
- cn,
2573
+ )), m(C, "treeSelect", (e) => /* @__PURE__ */ p.jsx(
2574
+ on,
2215
2575
  {
2216
2576
  ...e.props,
2217
- placeholder: e.placeholder || R.getDefaultPlaceholder(e)
2577
+ placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2218
2578
  }
2219
2579
  ));
2220
- let me = R;
2221
- const at = (r = "") => Fe("m-form", r);
2222
- function wr(r) {
2223
- const { formProps: e, formItems: t = [], column: n = 1, form: s, itemLayout: o, formRowProps: i } = r, l = (c, g) => {
2580
+ let me = C;
2581
+ const rt = (n = "") => He("m-form", n);
2582
+ function wr(n) {
2583
+ const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, f) => {
2224
2584
  if (c.render)
2225
- return c.render(g);
2226
- const d = me[c.type];
2227
- return c && c.type && d ? d(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
2228
- }, u = (c) => {
2229
- const { show: g = !0 } = c;
2230
- if (!g)
2585
+ return c.render(f);
2586
+ const g = me[c.type];
2587
+ return c && c.type && g ? g(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
2588
+ }, d = (c) => {
2589
+ const { show: f = !0 } = c;
2590
+ if (!f)
2231
2591
  return null;
2232
- const d = [...c.rules || []];
2233
- c.required && d.push({ required: !0, message: c.required });
2234
- const b = {
2592
+ const g = [...c.rules || []];
2593
+ c.required && g.push({ required: !0, message: c.required });
2594
+ const v = {
2235
2595
  labelCol: me.labelCol,
2236
2596
  wrapperCol: me.wrapperCol,
2237
- ...o,
2597
+ ...a,
2238
2598
  ...c.itemLayout
2239
2599
  };
2240
- return /* @__PURE__ */ p.jsx(un, { span: c.span || 24 / n, children: /* @__PURE__ */ p.jsx("div", { className: at("item-wrapper"), children: /* @__PURE__ */ p.jsx(
2241
- ot.Item,
2600
+ return /* @__PURE__ */ p.jsx(ln, { span: c.span || 24 / r, children: /* @__PURE__ */ p.jsx("div", { className: rt("item-wrapper"), children: /* @__PURE__ */ p.jsx(
2601
+ st.Item,
2242
2602
  {
2243
2603
  label: c.label,
2244
2604
  name: c.id,
2245
- rules: d,
2605
+ rules: g,
2246
2606
  initialValue: c.initialValue,
2247
- ...b,
2607
+ ...v,
2248
2608
  ...c.formItemProps,
2249
- children: l(c, s)
2609
+ children: l(c, i)
2250
2610
  }
2251
2611
  ) }) }, `col-${c.id}`);
2252
2612
  };
2253
- return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(ot, { form: s, ...e, className: `${at()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
2254
- ln,
2613
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(st, { form: i, ...e, className: `${rt()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
2614
+ cn,
2255
2615
  {
2256
2616
  gutter: me.defaultRowGutter,
2257
- ...i,
2258
- className: `${at("grid")} ${i == null ? void 0 : i.className}`,
2259
- children: t.map((c) => u(c))
2617
+ ...o,
2618
+ className: `${rt("grid")} ${o == null ? void 0 : o.className}`,
2619
+ children: t.map((c) => d(c))
2260
2620
  }
2261
2621
  ) }) });
2262
2622
  }
2263
2623
  wr.displayName = "MForm";
2264
- let st = "default";
2624
+ let nt = "default";
2265
2625
  const ze = [];
2266
- let Jt = (r) => {
2267
- switch (r) {
2626
+ let Kt = (n) => {
2627
+ switch (n) {
2268
2628
  case "light":
2269
2629
  return {
2270
- algorithm: [He.defaultAlgorithm]
2630
+ algorithm: [Ie.defaultAlgorithm]
2271
2631
  };
2272
2632
  case "dark":
2273
2633
  return {
2274
- algorithm: [He.darkAlgorithm]
2634
+ algorithm: [Ie.darkAlgorithm]
2275
2635
  };
2276
2636
  default:
2277
2637
  return {
2278
- algorithm: [He.defaultAlgorithm]
2638
+ algorithm: [Ie.defaultAlgorithm]
2279
2639
  };
2280
2640
  }
2281
2641
  };
2282
- const ve = class ve extends Xr {
2642
+ const be = class be extends Jr {
2283
2643
  constructor() {
2284
2644
  super(...arguments);
2285
2645
  m(this, "handleCancel", (t) => {
2286
- var n, s, o, i;
2287
- (s = (n = this.props).onCancel) == null || s.call(n, t), (i = (o = this.props).onClosed) == null || i.call(o, { cancel: !0 });
2646
+ var r, i, a, o;
2647
+ (i = (r = this.props).onCancel) == null || i.call(r, t), (o = (a = this.props).onClosed) == null || o.call(a, { cancel: !0 });
2288
2648
  });
2289
2649
  m(this, "handleOk", (t) => {
2290
- var n, s, o, i;
2291
- (s = (n = this.props).onOk) == null || s.call(n, t), (i = (o = this.props).onClosed) == null || i.call(o, { ok: !0 });
2650
+ var r, i, a, o;
2651
+ (i = (r = this.props).onOk) == null || i.call(r, t), (o = (a = this.props).onClosed) == null || o.call(a, { ok: !0 });
2292
2652
  });
2293
2653
  }
2294
2654
  getTheme() {
2295
- const t = this.props.mode || st;
2296
- return Jt(t);
2655
+ const t = this.props.mode || nt;
2656
+ return Kt(t);
2297
2657
  }
2298
2658
  render() {
2299
2659
  return /* @__PURE__ */ p.jsx(
@@ -2303,7 +2663,7 @@ const ve = class ve extends Xr {
2303
2663
  componentSize: "middle",
2304
2664
  componentDisabled: !1,
2305
2665
  children: /* @__PURE__ */ p.jsx(
2306
- fn,
2666
+ un,
2307
2667
  {
2308
2668
  maskClosable: !1,
2309
2669
  open: this.props.open,
@@ -2320,98 +2680,98 @@ const ve = class ve extends Xr {
2320
2680
  }
2321
2681
  };
2322
2682
  // 静态方法设置全局模式并更新所有弹窗
2323
- m(ve, "setMode", (t) => {
2324
- st = t, ze.forEach((n) => {
2325
- n.update({ mode: t });
2683
+ m(be, "setMode", (t) => {
2684
+ nt = t, ze.forEach((r) => {
2685
+ r.update({ mode: t });
2326
2686
  });
2327
2687
  }), // 静态方法设置全局ThemeConfig
2328
- m(ve, "setThemeConfig", (t) => {
2329
- Jt = t;
2330
- }), m(ve, "open", (t) => {
2331
- const n = wn(ve, {
2332
- mode: st,
2688
+ m(be, "setThemeConfig", (t) => {
2689
+ Kt = t;
2690
+ }), m(be, "open", (t) => {
2691
+ const r = wn(be, {
2692
+ mode: nt,
2333
2693
  // 默认使用全局主题
2334
2694
  ...t
2335
2695
  });
2336
- ze.push(n);
2337
- const s = n.destroy;
2338
- return n.destroy = (...o) => {
2339
- const i = ze.indexOf(n);
2340
- return i !== -1 && ze.splice(i, 1), s(...o);
2341
- }, n;
2696
+ ze.push(r);
2697
+ const i = r.destroy;
2698
+ return r.destroy = (...a) => {
2699
+ const o = ze.indexOf(r);
2700
+ return o !== -1 && ze.splice(o, 1), i(...a);
2701
+ }, r;
2342
2702
  });
2343
- let Xt = ve;
2344
- const Ra = 13, ne = (r = "") => Fe("m-search", r), Ya = (r) => {
2703
+ let Xt = be;
2704
+ const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2345
2705
  const {
2346
2706
  className: e,
2347
2707
  searchItems: t = [],
2348
- onSearch: n,
2349
- defaultShowAll: s = !1,
2350
- customButtons: o = [],
2351
- form: i
2352
- } = r, [l, u] = Y(s), [c] = ot.useForm(), g = K(null), d = i ?? c, b = (y) => {
2353
- const { keyCode: E } = y;
2354
- E === Ra && T();
2708
+ onSearch: r,
2709
+ defaultShowAll: i = !1,
2710
+ customButtons: a = [],
2711
+ form: o
2712
+ } = n, [l, d] = L(i), [c] = st.useForm(), f = G(null), g = o ?? c, v = (y) => {
2713
+ const { keyCode: k } = y;
2714
+ k === gs && N();
2355
2715
  };
2356
- oe(() => {
2357
- const y = g.current;
2358
- return y == null || y.addEventListener("keydown", b), () => {
2359
- y == null || y.removeEventListener("keydown", b);
2716
+ ae(() => {
2717
+ const y = f.current;
2718
+ return y == null || y.addEventListener("keydown", v), () => {
2719
+ y == null || y.removeEventListener("keydown", v);
2360
2720
  };
2361
2721
  }, []);
2362
- const O = () => {
2363
- d == null || d.resetFields(), T(!0);
2364
- }, T = (y = !1) => {
2365
- d == null || d.validateFields().then((E) => {
2366
- Sn(E), n == null || n(E, y);
2722
+ const j = () => {
2723
+ g == null || g.resetFields(), N(!0);
2724
+ }, N = (y = !1) => {
2725
+ g == null || g.validateFields().then((k) => {
2726
+ xn(k), r == null || r(k, y);
2367
2727
  });
2368
- }, N = () => {
2728
+ }, T = () => {
2369
2729
  const y = t.length > 2;
2370
2730
  return /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
2371
- (o == null ? void 0 : o.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: o.map((E, I) => /* @__PURE__ */ p.jsx(Pe, { className: ne("btn"), ...E, children: E.children }, `custom-btn-${I}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2372
- /* @__PURE__ */ p.jsx(Pe, { className: ne("btn btn-reset"), onClick: O, children: "重置" }),
2373
- /* @__PURE__ */ p.jsx(Pe, { className: ne("btn btn-search"), onClick: () => T(), type: "primary", children: "搜索" })
2731
+ (a == null ? void 0 : a.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: a.map((k, V) => /* @__PURE__ */ p.jsx(ke, { className: ne("btn"), ...k, children: k.children }, `custom-btn-${V}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2732
+ /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
2733
+ /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-search"), onClick: () => N(), type: "primary", children: "搜索" })
2374
2734
  ] }),
2375
- y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => u(!l), children: [
2735
+ y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => d(!l), children: [
2376
2736
  /* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
2377
- l ? /* @__PURE__ */ p.jsx(ba, {}) : /* @__PURE__ */ p.jsx(ga, {})
2737
+ l ? /* @__PURE__ */ p.jsx(cs, {}) : /* @__PURE__ */ p.jsx(ss, {})
2378
2738
  ] })
2379
2739
  ] });
2380
- }, z = t.map((y, E) => {
2381
- var W;
2382
- const I = { ...y };
2383
- return t.length > 2 && E >= 2 && !l && (I.formItemProps = {
2740
+ }, H = t.map((y, k) => {
2741
+ var I;
2742
+ const V = { ...y };
2743
+ return t.length > 2 && k >= 2 && !l && (V.formItemProps = {
2384
2744
  ...y.formItemProps,
2385
2745
  style: {
2386
- ...(W = y.formItemProps) == null ? void 0 : W.style,
2746
+ ...(I = y.formItemProps) == null ? void 0 : I.style,
2387
2747
  display: "none"
2388
2748
  }
2389
- }), I;
2390
- }), j = t.length > 2;
2391
- return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(
2749
+ }), V;
2750
+ }), O = t.length > 2;
2751
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
2392
2752
  "div",
2393
2753
  {
2394
2754
  className: `${ne("")} ${l ? "" : ne("collapsed")} ${e || ""}`,
2395
- ref: g,
2755
+ ref: f,
2396
2756
  children: /* @__PURE__ */ p.jsxs(rr, { children: [
2397
2757
  /* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
2398
- /* @__PURE__ */ p.jsx(wr, { form: d, formItems: z, column: 3 }),
2399
- (!j || j && !l) && N()
2758
+ /* @__PURE__ */ p.jsx(wr, { form: g, formItems: H, column: 3 }),
2759
+ (!O || O && !l) && T()
2400
2760
  ] }),
2401
- j && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: N() })
2761
+ O && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: T() })
2402
2762
  ] })
2403
2763
  }
2404
2764
  ) });
2405
2765
  };
2406
- function za(r) {
2766
+ function Os(n) {
2407
2767
  var t;
2408
- const e = ((t = r.columns) == null ? void 0 : t.map((n) => ({ ...n, dataIndex: n.key }))) ?? [];
2409
- return /* @__PURE__ */ p.jsxs(ye, { children: [
2410
- /* @__PURE__ */ p.jsx(dn, { rowKey: (n) => n.id, ...r, columns: e }),
2768
+ const e = ((t = n.columns) == null ? void 0 : t.map((r) => ({ ...r, dataIndex: r.key }))) ?? [];
2769
+ return /* @__PURE__ */ p.jsxs(ve, { children: [
2770
+ /* @__PURE__ */ p.jsx(dn, { rowKey: (r) => r.id, ...n, columns: e }),
2411
2771
  ";"
2412
2772
  ] });
2413
2773
  }
2414
- const Ha = {
2774
+ const $s = {
2415
2775
  YMD_Hms: "YYYY-MM-DD HH:mm:ss",
2416
2776
  YMD: "YYYY-MM-DD",
2417
2777
  YMD2: "YYYYMMDD",
@@ -2420,276 +2780,347 @@ const Ha = {
2420
2780
  Hm: "HH:mm",
2421
2781
  YMD_000: "YYYY-MM-DD 00:00:00",
2422
2782
  YMD_end: "YYYY-MM-DD 23:59:59",
2423
- YMD_Hm: "YYYYMMDD HHmm"
2424
- }, _a = 10;
2425
- class P {
2426
- }
2427
- // 整数
2428
- m(P, "integerRegex", /^-?\d+$/), // 正整数
2429
- m(P, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
2430
- m(P, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
2431
- m(P, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
2432
- m(P, "letter", /^[a-zA-Z]+$/), // 汉字
2433
- m(P, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
2434
- m(P, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
2435
- m(P, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
2436
- m(P, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
2437
- m(P, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
2438
- m(P, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
2439
- m(P, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
2440
- m(P, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
2441
- m(P, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
2442
- m(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)$/), // 银行卡
2443
- m(P, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
2444
- m(P, "zipCode", /^[1-9]\d{5}$/), // IP
2445
- m(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
2446
- m(P, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
2447
- m(P, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
2448
- m(P, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
2449
- m(P, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2450
- function La(r, e) {
2451
- const [t, n] = Y(!1), [s, o] = Y(null), [i, l] = Y(null), u = K(void 0), c = K(0), g = () => {
2452
- var b;
2453
- (b = u.current) == null || b.abort(), n(!1), o(null);
2454
- }, d = async (...b) => {
2455
- var N, z, j, y;
2456
- const O = ++c.current;
2457
- g();
2458
- const T = new AbortController();
2459
- u.current = T;
2783
+ YMD_Hm: "YYYYMMDD HHmm",
2784
+ YMD_SLASH: "YYYY/MM/DD",
2785
+ YMD_SLASH_Hms: "YYYY/MM/DD HH:mm:ss"
2786
+ }, ps = 10;
2787
+ class $ {
2788
+ }
2789
+ /**
2790
+ * 整数
2791
+ */
2792
+ m($, "integerRegex", /^-?\d+$/), /**
2793
+ * 正整数
2794
+ */
2795
+ m($, "positiveIntegerRegex", /^[1-9]\d*$/), /**
2796
+ * 负整数
2797
+ */
2798
+ m($, "negativeIntegerRegex", /^-[1-9]\d*$/), /**
2799
+ * 浮点数
2800
+ */
2801
+ m($, "floatRegex", /^-?\d+(\.\d+)?$/), /**
2802
+ * 字母
2803
+ */
2804
+ m($, "letter", /^[a-zA-Z]+$/), /**
2805
+ * 汉字
2806
+ */
2807
+ m($, "chinese", /^[\u4e00-\u9fa5]+$/), /**
2808
+ * 数字
2809
+ */
2810
+ m($, "number", /^[0-9]*$/), /**
2811
+ * 用户名 字母开头,允许字母数字下划线,长度4-16
2812
+ */
2813
+ m($, "username", /^[a-zA-Z]\w{3,15}$/), /**
2814
+ * 强用户名 必须包含大小写字母和数字,6-20位
2815
+ */
2816
+ m($, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), /**
2817
+ * 密码 至少8位,包含字母和数字
2818
+ */
2819
+ m($, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), /**
2820
+ * 强密码 至少8位,包含大小写字母、数字和特殊字符
2821
+ */
2822
+ m($, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), /**
2823
+ * 中国大陆的手机号
2824
+ */
2825
+ m($, "phone", /^1[3-9]\d{9}$/), /**
2826
+ * 带区号的手机号
2827
+ */
2828
+ m($, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), /**
2829
+ * 邮箱
2830
+ */
2831
+ m($, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), /**
2832
+ * 身份证
2833
+ */
2834
+ m($, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), /**
2835
+ * 银行卡
2836
+ */
2837
+ m($, "bankCard", /^[1-9]\d{3,30}$/), /**
2838
+ * 邮政编码
2839
+ */
2840
+ m($, "zipCode", /^[1-9]\d{5}$/), /**
2841
+ * IP
2842
+ */
2843
+ m($, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), /**
2844
+ * URL
2845
+ */
2846
+ m($, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), /**
2847
+ * 车牌
2848
+ */
2849
+ m($, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), /**
2850
+ * 时间 hh:mm:ss
2851
+ */
2852
+ m($, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), /**
2853
+ * 日期 YYYY-MM-DD
2854
+ */
2855
+ m($, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2856
+ function Ns(n, e) {
2857
+ const [t, r] = L(!1), [i, a] = L(null), [o, l] = L(null), d = G(void 0), c = G(0), f = () => {
2858
+ var v;
2859
+ (v = d.current) == null || v.abort(), r(!1), a(null);
2860
+ }, g = async (...v) => {
2861
+ var T, H, O, y;
2862
+ const j = ++c.current;
2863
+ f();
2864
+ const N = new AbortController();
2865
+ d.current = N;
2460
2866
  try {
2461
- if (n(!0), o(null), e != null && e.onBefore && !await ((N = e == null ? void 0 : e.onBefore) == null ? void 0 : N.call(e, ...b))) {
2462
- g();
2867
+ if (r(!0), a(null), e != null && e.onBefore && !await ((T = e == null ? void 0 : e.onBefore) == null ? void 0 : T.call(e, ...v))) {
2868
+ f();
2463
2869
  return;
2464
2870
  }
2465
- const E = b.length >= r.length ? b : [...b, { signal: T.signal }], I = await r(...E);
2466
- return !T.signal.aborted && O === c.current && (l(I), await ((z = e == null ? void 0 : e.onSuccess) == null ? void 0 : z.call(e, I))), I;
2467
- } catch (E) {
2468
- throw !T.signal.aborted && O === c.current && (o(E), await ((j = e == null ? void 0 : e.onError) == null ? void 0 : j.call(e, E))), E;
2871
+ const k = v.length >= n.length ? v : [...v, { signal: N.signal }], V = await n(...k);
2872
+ return !N.signal.aborted && j === c.current && (l(V), await ((H = e == null ? void 0 : e.onSuccess) == null ? void 0 : H.call(e, V))), V;
2873
+ } catch (k) {
2874
+ throw !N.signal.aborted && j === c.current && (a(k), await ((O = e == null ? void 0 : e.onError) == null ? void 0 : O.call(e, k))), k;
2469
2875
  } finally {
2470
- !T.signal.aborted && O === c.current && (n(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
2876
+ !N.signal.aborted && j === c.current && (r(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
2471
2877
  }
2472
2878
  };
2473
- return oe(() => (e != null && e.autoRunArgs && d(...e.autoRunArgs).catch(() => {
2474
- }), g), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: d, cancel: g, loading: t, error: s, data: i };
2475
- }
2476
- function Va(r, e, t = !1) {
2477
- const n = K(void 0), s = K(r);
2478
- oe(() => {
2479
- s.current = r;
2480
- }, [r]);
2481
- const o = se(() => {
2482
- n.current && (clearInterval(n.current), n.current = void 0);
2483
- }, []), i = se(() => {
2484
- o(), e != null && (n.current = setInterval(() => s.current(), e));
2485
- }, [e, o]);
2486
- return oe(() => (t && s.current(), i(), o), [e, i, o, t]), { start: i, clear: o, isRunning: !!n.current };
2487
- }
2488
- const Fa = (r, e, t) => {
2879
+ return ae(() => (e != null && e.autoRunArgs && g(...e.autoRunArgs).catch(() => {
2880
+ }), f), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: f, loading: t, error: i, data: o };
2881
+ }
2882
+ function Ds(n, e, t = !1) {
2883
+ const r = G(void 0), i = G(n);
2884
+ ae(() => {
2885
+ i.current = n;
2886
+ }, [n]);
2887
+ const a = Z(() => {
2888
+ r.current && (clearInterval(r.current), r.current = void 0);
2889
+ }, []), o = Z(() => {
2890
+ a(), e != null && (r.current = setInterval(() => i.current(), e));
2891
+ }, [e, a]);
2892
+ return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2893
+ }
2894
+ const Ps = (n, e, t) => {
2489
2895
  const {
2490
- isReady: n = !0,
2491
- dataSource: s = [],
2492
- current: o = 1,
2493
- pageSize: i = 10
2494
- } = t || {}, [l, u] = Y(o), [c, g] = Y(i), [d, b] = Y(s), [O, T] = Y(0), [N, z] = Y(!1), [j, y] = Y(!1), E = K(l), I = K(c), W = (S) => {
2495
- u(S), E.current = S;
2496
- }, re = (S) => {
2497
- g(S), I.current = S;
2498
- }, G = K(0), xe = async () => {
2499
- if (!n)
2896
+ isReady: r = !0,
2897
+ dataSource: i = [],
2898
+ current: a = 1,
2899
+ pageSize: o = 10
2900
+ } = t || {}, [l, d] = L(a), [c, f] = L(o), [g, v] = L(i), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(!1), k = G(l), V = G(c), I = (w) => {
2901
+ d(w), k.current = w;
2902
+ }, J = (w) => {
2903
+ f(w), V.current = w;
2904
+ }, K = G(0), ye = async () => {
2905
+ if (!r)
2500
2906
  return;
2501
- let S = E.current, $ = I.current;
2502
- z(!0), G.current++;
2503
- const Q = G.current;
2907
+ let w = k.current, M = V.current;
2908
+ H(!0), K.current++;
2909
+ const X = K.current;
2504
2910
  try {
2505
- let B = Math.round((S - 1) * $);
2506
- B < 0 && (B = 0), $ < 1 && ($ = 1);
2507
- let { dataSource: ce, total: ee } = await r({
2508
- limit: $,
2509
- offset: B,
2510
- current: S
2911
+ let U = Math.round((w - 1) * M);
2912
+ U < 0 && (U = 0), M < 1 && (M = 1);
2913
+ let { dataSource: re, total: Q } = await n({
2914
+ limit: M,
2915
+ offset: U,
2916
+ current: w
2511
2917
  });
2512
- if (Q !== G.current)
2918
+ if (X !== K.current)
2513
2919
  return;
2514
- if (c * (S - 1) >= ee && S !== 1) {
2515
- S = 1;
2516
- const ke = Math.ceil(ee / c);
2517
- if ({ dataSource: ce, total: ee } = await r({
2518
- limit: $,
2519
- offset: B,
2520
- current: S
2521
- }), Q !== G.current)
2920
+ if (c * (w - 1) >= Q && w !== 1) {
2921
+ w = 1;
2922
+ const ue = Math.ceil(Q / c);
2923
+ if ({ dataSource: re, total: Q } = await n({
2924
+ limit: M,
2925
+ offset: U,
2926
+ current: w
2927
+ }), X !== K.current)
2522
2928
  return;
2523
- S = ke;
2929
+ w = ue;
2524
2930
  }
2525
- b(ce), W(S), re($), T(ee);
2526
- } catch (B) {
2527
- if (console.error("fetch err", B), Q !== G.current)
2931
+ v(re), I(w), J(M), N(Q);
2932
+ } catch (U) {
2933
+ if (console.error("usePagination error", U), X !== K.current)
2528
2934
  return;
2529
2935
  } finally {
2530
- y(!0), z(!1);
2531
- }
2532
- }, J = async (S) => {
2533
- S && (b([]), W(o), re(i)), await xe();
2534
- }, ie = se(ar(J, 500), [J]), Ce = [...e || [], n];
2535
- return oe(() => {
2536
- n && ie(!0);
2537
- }, Ce), {
2936
+ y(!0), H(!1);
2937
+ }
2938
+ }, te = async (w) => {
2939
+ w && (v([]), I(a), J(o)), await ye();
2940
+ }, ie = Z(sr(te, 500), [te]), le = [...e || [], r];
2941
+ return ae(() => {
2942
+ r && ie(!0);
2943
+ }, le), {
2538
2944
  tableProps: {
2539
- loading: N,
2540
- dataSource: d
2945
+ loading: T,
2946
+ dataSource: g
2541
2947
  },
2542
- loading: N,
2543
- dataSource: d,
2948
+ loading: T,
2949
+ dataSource: g,
2544
2950
  paginationProps: {
2545
2951
  current: l,
2546
2952
  pageSize: c,
2547
- total: O,
2548
- onChange: async (S, $) => {
2549
- W(S), re($), await J();
2953
+ total: j,
2954
+ showTotal(w) {
2955
+ return `共 ${w} 条`;
2550
2956
  },
2551
- onShowSizeChange: async (S, $) => {
2552
- re(S), W($), await J();
2957
+ onChange: async (w, M) => {
2958
+ I(w), J(M), await te();
2959
+ },
2960
+ onShowSizeChange: async (w, M) => {
2961
+ J(w), I(M), await te();
2553
2962
  }
2554
2963
  },
2555
- isFirstComplete: j,
2556
- refresh: J,
2964
+ isFirstComplete: O,
2965
+ refresh: te,
2557
2966
  debounceRefresh: ie,
2558
- setDataSource: b
2967
+ setDataSource: v
2559
2968
  };
2560
2969
  };
2561
- function Ua() {
2562
- const r = window.location.href.split("?")[1] || "", e = new URLSearchParams(r);
2970
+ function Ts() {
2971
+ const n = window.location.href.split("?")[1] || "", e = new URLSearchParams(n);
2563
2972
  return Object.fromEntries(e.entries());
2564
2973
  }
2565
- const Wa = (r) => {
2566
- const [e, t] = Y(r), n = K(e), s = se((l) => {
2567
- t((u) => {
2568
- const c = typeof l == "function" ? l(u) : l, g = { ...u, ...c };
2569
- return n.current = g, g;
2974
+ const Ms = (n) => {
2975
+ const [e, t] = L(n), r = G(e), i = Z((l) => {
2976
+ t((d) => {
2977
+ const c = typeof l == "function" ? l(d) : l, f = { ...d, ...c };
2978
+ return r.current = f, f;
2570
2979
  });
2571
- }, []), o = se(() => n.current, []), i = se(() => {
2572
- t(r), n.current = r;
2573
- }, [r]);
2574
- return [e, s, o, i];
2980
+ }, []), a = Z(() => r.current, []), o = Z(() => {
2981
+ t(n), r.current = n;
2982
+ }, [n]);
2983
+ return [e, i, a, o];
2575
2984
  };
2576
- function Ba(r, e, t = !1) {
2577
- const n = K(void 0), s = K(r);
2578
- oe(() => {
2579
- s.current = r;
2580
- }, [r]);
2581
- const o = se(() => {
2582
- n.current && (clearTimeout(n.current), n.current = void 0);
2583
- }, []), i = se(() => {
2584
- o(), e != null && (n.current = setTimeout(() => s.current(), e));
2585
- }, [e, o]);
2586
- return oe(() => (t && s.current(), i(), o), [e, i, o, t]), { start: i, clear: o, isRunning: !!n.current };
2587
- }
2588
- const Za = (r, e, t) => {
2985
+ function As(n, e, t = !1) {
2986
+ const r = G(void 0), i = G(n);
2987
+ ae(() => {
2988
+ i.current = n;
2989
+ }, [n]);
2990
+ const a = Z(() => {
2991
+ r.current && (clearTimeout(r.current), r.current = void 0);
2992
+ }, []), o = Z(() => {
2993
+ a(), e != null && (r.current = setTimeout(() => i.current(), e));
2994
+ }, [e, a]);
2995
+ return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2996
+ }
2997
+ const zs = (n, e, t) => {
2589
2998
  const {
2590
- isReady: n = !0,
2591
- dataSource: s = [],
2592
- current: o = 1,
2593
- pageSize: i = _a
2594
- } = t || {}, [l, u] = Y(!1), [c, g] = Y(o), [d, b] = Y(i), [O, T] = Y(0), [N, z] = Y(!1), [j, y] = Y(s), E = K(c), I = K(d), W = (H) => {
2595
- g(H), E.current = H;
2596
- }, re = (H) => {
2597
- b(H), I.current = H;
2598
- }, G = K(0), xe = async (H) => {
2599
- if (!n)
2600
- return;
2601
- let k = E.current, L = I.current;
2602
- z(!0), G.current += 1;
2603
- const S = G.current;
2604
- try {
2605
- let $ = Math.round((k - 1) * L);
2606
- $ < 0 && ($ = 0), L < 1 && (L = 1);
2607
- let { dataSource: Q, total: B } = await r({
2608
- limit: L,
2609
- offset: $,
2610
- current: k
2611
- });
2612
- if (S !== G.current)
2999
+ isReady: r = !0,
3000
+ dataSource: i = [],
3001
+ current: a = 1,
3002
+ pageSize: o = ps
3003
+ } = t || {}, [l, d] = L(!1), [c, f] = L(a), [g, v] = L(o), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(i), k = G(c), V = G(g), I = G(0), J = Z((E) => {
3004
+ f(E), k.current = E;
3005
+ }, []), K = Z((E) => {
3006
+ v(E), V.current = E;
3007
+ }, []), ye = Z((E) => {
3008
+ y(E);
3009
+ }, []), te = Z(
3010
+ async (E) => {
3011
+ if (!r)
2613
3012
  return;
2614
- if (d * (k - 1) >= B && k !== 1) {
2615
- const ee = Math.ceil(B / d);
2616
- if ({ dataSource: Q, total: B } = await r({
2617
- limit: L,
2618
- offset: Math.round((ee - 1) * L),
2619
- current: k
2620
- }), S !== G.current)
3013
+ let Y = k.current, w = V.current;
3014
+ H(!0), I.current += 1;
3015
+ const M = I.current;
3016
+ try {
3017
+ let X = Math.max(0, Math.round((Y - 1) * w));
3018
+ w = Math.max(1, w);
3019
+ let U = await n({
3020
+ limit: w,
3021
+ offset: X,
3022
+ current: Y
3023
+ });
3024
+ if (M !== I.current)
3025
+ return;
3026
+ let { dataSource: re, total: Q } = U;
3027
+ if (g * (Y - 1) >= Q && Y !== 1) {
3028
+ const de = Math.max(1, Math.ceil(Q / g));
3029
+ if (X = Math.max(0, Math.round((de - 1) * w)), U = await n({
3030
+ limit: w,
3031
+ offset: X,
3032
+ current: de
3033
+ }), M !== I.current)
3034
+ return;
3035
+ re = U.dataSource, Q = U.total, Y = de;
3036
+ }
3037
+ const ue = E ? re : [...O, ...re];
3038
+ y(ue), J(Y), K(w), N(Q), d(!0);
3039
+ } catch (X) {
3040
+ if (console.error("useVirtualList error", X), M !== I.current)
2621
3041
  return;
2622
- k = ee;
3042
+ } finally {
3043
+ M === I.current && H(!1);
2623
3044
  }
2624
- const ce = H ? Q : j.concat(Q);
2625
- y(ce), W(k), re(L), T(B);
2626
- } catch ($) {
2627
- if (console.error("fetch err", $), S !== G.current)
2628
- return;
2629
- }
2630
- u(!0), z(!1);
2631
- }, J = async (H) => {
2632
- if (H)
2633
- y([]), W(o), re(i);
2634
- else {
2635
- const k = d * c;
2636
- if (O && O <= k)
2637
- return;
2638
- W(c + 1);
2639
- }
2640
- await xe(H);
2641
- }, ie = se(ar(J, 500), [J]), Ce = [...e || [], n];
2642
- return oe(() => {
2643
- n && ie(!0);
2644
- }, Ce), {
2645
- loading: N,
2646
- dataSource: j,
3045
+ },
3046
+ [r, n, O, J, K]
3047
+ ), ie = Z(
3048
+ async (E) => {
3049
+ if (E)
3050
+ y([]), J(a), K(o);
3051
+ else {
3052
+ const Y = g * c;
3053
+ if (j && j <= Y)
3054
+ return;
3055
+ J(c + 1);
3056
+ }
3057
+ await te(E);
3058
+ },
3059
+ [
3060
+ c,
3061
+ te,
3062
+ g,
3063
+ a,
3064
+ o,
3065
+ J,
3066
+ K,
3067
+ j
3068
+ ]
3069
+ ), le = Z(
3070
+ sr((E) => {
3071
+ ie(E);
3072
+ }, 500),
3073
+ [ie]
3074
+ ), we = Kr(() => [...e || [], r], [e, r]);
3075
+ return ae(() => {
3076
+ r && le(!0);
3077
+ }, we), {
3078
+ loading: T,
3079
+ dataSource: O,
2647
3080
  paginationProps: {
2648
3081
  current: c,
2649
- pageSize: d,
2650
- total: O
3082
+ pageSize: g,
3083
+ total: j
2651
3084
  },
2652
3085
  isFirstComplete: l,
2653
- refresh: async (H) => {
2654
- await J(H);
2655
- },
2656
- debounceRefresh: ie,
2657
- setDataSource: y,
2658
- setTotal: T
3086
+ refresh: ie,
3087
+ debounceRefresh: le,
3088
+ setDataSource: ye,
3089
+ setTotal: N
2659
3090
  };
2660
3091
  };
2661
3092
  export {
2662
- ye as CompThemeProvider,
2663
- Ha as DATE_FORMAT,
2664
- _n as ItemsRow,
2665
- Ma as MBreadcrumb,
2666
- En as MDescriptions,
3093
+ ve as CompThemeProvider,
3094
+ $s as DATE_FORMAT,
3095
+ Sn as ItemsRow,
3096
+ js as MBreadcrumb,
3097
+ Cn as MDescriptions,
2667
3098
  wr as MForm,
2668
3099
  me as MFormItemConst,
2669
- q as MFormItemTypeEnum,
2670
- Ya as MSearch,
2671
- za as MTable,
3100
+ W as MFormItemTypeEnum,
3101
+ ks as MSearch,
3102
+ Os as MTable,
2672
3103
  Xt as MiModal,
2673
- Ia as MiThemeProvider,
2674
- Ve as NextTick,
2675
- _a as PAGE_SIZE,
2676
- P as PatternType,
2677
- $a as VersionUtil,
2678
- Ta as cmx,
2679
- ar as debounce,
2680
- Fe as getClassName,
2681
- Da as getFieldsByPath,
2682
- Na as nextTick,
2683
- ka as noop,
3104
+ Es as MiThemeProvider,
3105
+ Le as NextTick,
3106
+ ps as PAGE_SIZE,
3107
+ $ as PatternType,
3108
+ _s as VersionUtil,
3109
+ ws as cmx,
3110
+ sr as debounce,
3111
+ He as getClassName,
3112
+ Ss as getFieldsByPath,
3113
+ xs as nextTick,
3114
+ Rs as noop,
2684
3115
  wn as openModal,
2685
- Sn as removeNull,
2686
- Aa as throttle,
2687
- La as useFuncRequest,
2688
- Va as useInterval,
3116
+ xn as removeNull,
3117
+ Cs as throttle,
3118
+ Ns as useFuncRequest,
3119
+ Ds as useInterval,
2689
3120
  Rn as useMiThemeConfig,
2690
- Fa as usePagination,
2691
- Ua as useQuery,
2692
- Wa as useReactive,
2693
- Ba as useTimeout,
2694
- Za as useVirtualList
3121
+ Ps as usePagination,
3122
+ Ts as useQuery,
3123
+ Ms as useReactive,
3124
+ As as useTimeout,
3125
+ zs as useVirtualList
2695
3126
  };