@mi-avalon/libs 0.0.31 → 0.0.32

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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @mi-avalon/libs 组件库
2
+
3
+ 基于 react 18, antd 5 封装的组件/工具类库
4
+
5
+ [组件使用地址](https://mi-avalon.github.io/mi-avalon-libraries/2.%E7%BB%84%E4%BB%B6%E5%B7%A5%E5%85%B7%E7%B1%BB%E5%BA%93/1.%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8/)
@@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef } from 'react';
2
2
  function useInterval(callback, delay, immediate = false) {
3
3
  const timerRef = useRef(undefined);
4
4
  const savedCallback = useRef(callback);
5
- // Update callback ref if callback changes
6
5
  useEffect(() => {
7
6
  savedCallback.current = callback;
8
7
  }, [callback]);
@@ -15,16 +14,17 @@ function useInterval(callback, delay, immediate = false) {
15
14
  const start = useCallback(() => {
16
15
  clear();
17
16
  if (delay !== null && delay !== undefined) {
17
+ // 立即执行一次(如果设置了 immediate)
18
+ if (immediate) {
19
+ savedCallback.current();
20
+ }
18
21
  timerRef.current = setInterval(() => savedCallback.current(), delay);
19
22
  }
20
- }, [delay, clear]);
23
+ }, [delay, clear, immediate]);
24
+ // 只负责清理
21
25
  useEffect(() => {
22
- if (immediate) {
23
- savedCallback.current();
24
- }
25
- start();
26
26
  return clear;
27
- }, [delay, start, clear, immediate]);
27
+ }, [clear]);
28
28
  return { start, clear, isRunning: !!timerRef.current };
29
29
  }
30
30
  export { useInterval };
@@ -2,29 +2,29 @@ import { useCallback, useEffect, useRef } from 'react';
2
2
  function useTimeout(callback, delay, immediate = false) {
3
3
  const timerRef = useRef(undefined);
4
4
  const savedCallback = useRef(callback);
5
- // Update callback ref if callback changes
6
5
  useEffect(() => {
7
6
  savedCallback.current = callback;
8
7
  }, [callback]);
9
8
  const clear = useCallback(() => {
10
9
  if (timerRef.current) {
11
- clearTimeout(timerRef.current);
10
+ clearInterval(timerRef.current);
12
11
  timerRef.current = undefined;
13
12
  }
14
13
  }, []);
15
14
  const start = useCallback(() => {
16
15
  clear();
17
16
  if (delay !== null && delay !== undefined) {
17
+ // 立即执行一次(如果设置了 immediate)
18
+ if (immediate) {
19
+ savedCallback.current();
20
+ }
18
21
  timerRef.current = setTimeout(() => savedCallback.current(), delay);
19
22
  }
20
- }, [delay, clear]);
23
+ }, [delay, clear, immediate]);
24
+ // 只负责清理
21
25
  useEffect(() => {
22
- if (immediate) {
23
- savedCallback.current();
24
- }
25
- start();
26
26
  return clear;
27
- }, [delay, start, clear, immediate]);
27
+ }, [clear]);
28
28
  return { start, clear, isRunning: !!timerRef.current };
29
29
  }
30
30
  export { useTimeout };
package/dist/index.es.js CHANGED
@@ -3,8 +3,8 @@ var Kr = (n, e, t) => e in n ? Jr(n, e, { enumerable: !0, configurable: !0, writ
3
3
  var m = (n, e, t) => (Kr(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as q from "react";
5
5
  import Ye, { createContext as er, useContext as tr, useEffect as ae, Component as Xr, useState as H, useRef as G, useMemo as rr, useCallback as Z } from "react";
6
- import { theme as Ie, ConfigProvider as nr, Button as ke, Affix as Qr, Card as sr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as en, DatePicker as ar, Select as tn, Radio as rn, Checkbox as nn, Upload as sn, Mentions as an, Cascader as on, TreeSelect as cn, Form as st, Row as Yt, Col as ln, Modal as un, Table as fn } from "antd";
7
- import dn from "react-dom";
6
+ import { theme as Ie, ConfigProvider as nr, Button as ke, Affix as Qr, Card as sr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as en, DatePicker as ar, Select as tn, Radio as rn, Checkbox as nn, Upload as sn, Mentions as an, Cascader as on, TreeSelect as cn, Form as st, Row as Yt, Col as ln, Modal as un, Table as dn } from "antd";
7
+ import fn from "react-dom";
8
8
  function hn(n, e) {
9
9
  for (var t = 0; t < e.length; t++) {
10
10
  const r = e[t];
@@ -40,14 +40,14 @@ function pn() {
40
40
  return Se;
41
41
  Lt = 1;
42
42
  var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
43
- function o(l, f, c) {
44
- var d, g = {}, y = null, j = null;
45
- c !== void 0 && (y = "" + c), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (j = f.ref);
46
- for (d in f)
47
- r.call(f, d) && !a.hasOwnProperty(d) && (g[d] = f[d]);
43
+ function o(l, d, c) {
44
+ var f, g = {}, y = null, j = null;
45
+ c !== void 0 && (y = "" + c), d.key !== void 0 && (y = "" + 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 (d in f = l.defaultProps, f)
50
- g[d] === void 0 && (g[d] = f[d]);
49
+ for (f in d = l.defaultProps, d)
50
+ g[f] === void 0 && (g[f] = d[f]);
51
51
  return { $$typeof: e, type: l, key: y, ref: j, props: g, _owner: i.current };
52
52
  }
53
53
  return Se.Fragment = t, Se.jsx = o, Se.jsxs = o, Se;
@@ -65,7 +65,7 @@ var Ce = {};
65
65
  var Ht;
66
66
  function mn() {
67
67
  return Ht || (Ht = 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"), f = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, N = "@@iterator";
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"), y = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, N = "@@iterator";
69
69
  function I(s) {
70
70
  if (s === null || typeof s != "object")
71
71
  return null;
@@ -93,7 +93,7 @@ function mn() {
93
93
  var F = !1, Y = !1, J = !1, K = !1, ye = !1, te;
94
94
  te = Symbol.for("react.module.reference");
95
95
  function ie(s) {
96
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === d || K || s === j || F || Y || J || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === f || // This needs to include all possible module reference object
96
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === f || K || s === j || F || Y || J || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === 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.
@@ -127,7 +127,7 @@ function mn() {
127
127
  return "StrictMode";
128
128
  case c:
129
129
  return "Suspense";
130
- case d:
130
+ case f:
131
131
  return "SuspenseList";
132
132
  }
133
133
  if (typeof s == "object")
@@ -138,7 +138,7 @@ function mn() {
138
138
  case o:
139
139
  var h = s;
140
140
  return we(h._context) + ".Provider";
141
- case f:
141
+ case d:
142
142
  return le(s, s.render, "ForwardRef");
143
143
  case g:
144
144
  var b = s.displayName || null;
@@ -154,14 +154,14 @@ function mn() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var L = Object.assign, w = 0, A, X, U, re, Q, ue, fe;
157
+ var L = Object.assign, w = 0, A, X, U, re, Q, ue, de;
158
158
  function Rt() {
159
159
  }
160
160
  Rt.__reactDisabledLog = !0;
161
161
  function Sr() {
162
162
  {
163
163
  if (w === 0) {
164
- A = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, fe = console.groupEnd;
164
+ A = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, de = console.groupEnd;
165
165
  var s = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
@@ -209,7 +209,7 @@ function mn() {
209
209
  value: ue
210
210
  }),
211
211
  groupEnd: L({}, s, {
212
- value: fe
212
+ value: de
213
213
  })
214
214
  });
215
215
  }
@@ -323,12 +323,12 @@ function mn() {
323
323
  switch (s) {
324
324
  case c:
325
325
  return Ne("Suspense");
326
- case d:
326
+ case f:
327
327
  return Ne("SuspenseList");
328
328
  }
329
329
  if (typeof s == "object")
330
330
  switch (s.$$typeof) {
331
- case f:
331
+ case d:
332
332
  return Er(s.render);
333
333
  case g:
334
334
  return Pe(s.type, u, h);
@@ -492,7 +492,7 @@ function mn() {
492
492
  }
493
493
  }
494
494
  var Je = P.ReactCurrentOwner, $t = P.ReactDebugCurrentFrame;
495
- function de(s) {
495
+ function fe(s) {
496
496
  if (s) {
497
497
  var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
498
498
  $t.setExtraStackFrame(h);
@@ -550,7 +550,7 @@ Check the top-level render call using <` + h + ">.");
550
550
  return;
551
551
  Dt[h] = !0;
552
552
  var b = "";
553
- s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), de(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), de(null);
553
+ s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), fe(s), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), fe(null);
554
554
  }
555
555
  }
556
556
  function Tt(s, u) {
@@ -580,7 +580,7 @@ Check the top-level render call using <` + h + ">.");
580
580
  var h;
581
581
  if (typeof u == "function")
582
582
  h = u.propTypes;
583
- else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
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
585
  u.$$typeof === g))
586
586
  h = u.propTypes;
@@ -602,11 +602,11 @@ Check the top-level render call using <` + h + ">.");
602
602
  for (var u = Object.keys(s.props), h = 0; h < u.length; h++) {
603
603
  var b = u[h];
604
604
  if (b !== "children" && b !== "key") {
605
- de(s), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), de(null);
605
+ fe(s), v("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
- s.ref !== null && (de(s), v("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
609
+ s.ref !== null && (fe(s), v("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
610
610
  }
611
611
  }
612
612
  var At = {};
@@ -698,8 +698,8 @@ const z = class z {
698
698
  */
699
699
  add(...e) {
700
700
  return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
701
- const i = z.getDecimalLength(t), a = z.getDecimalLength(r), o = Math.max(i, a), l = Math.pow(10, o), f = z.toInteger(t, o - i), c = z.toInteger(r, o - a);
702
- return (f + c) / l;
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;
703
703
  });
704
704
  }
705
705
  /**
@@ -810,9 +810,9 @@ const z = class z {
810
810
  const i = Math.pow(10, -t - 1);
811
811
  let a = this.div(this.sub(e, 1), this.add(e, 1));
812
812
  const o = this.mul(a, a);
813
- let l = a, f = 1;
813
+ let l = a, d = 1;
814
814
  do
815
- r = this.add(r, this.div(l, f)), l = this.mul(l, o), f += 2;
815
+ r = this.add(r, this.div(l, d)), l = this.mul(l, o), d += 2;
816
816
  while (Math.abs(l) > i);
817
817
  return this.round(this.mul(2, r), t);
818
818
  }
@@ -1036,7 +1036,7 @@ const ws = new it(), $e = class $e {
1036
1036
  m($e, "_instance");
1037
1037
  let Le = $e;
1038
1038
  const xs = Le.instance.nextTick.bind(Le.instance);
1039
- var ge = {}, ot, ct, _e = dn;
1039
+ var ge = {}, ot, ct, _e = fn;
1040
1040
  if (process.env.NODE_ENV === "production")
1041
1041
  ct = ge.createRoot = _e.createRoot, ot = ge.hydrateRoot = _e.hydrateRoot;
1042
1042
  else {
@@ -1078,7 +1078,7 @@ function wn(n, e) {
1078
1078
  ...e,
1079
1079
  // 默认自动关闭
1080
1080
  onClosed: e.onClosed || ((c) => {
1081
- f(c);
1081
+ d(c);
1082
1082
  })
1083
1083
  };
1084
1084
  if (!ce)
@@ -1100,17 +1100,17 @@ function wn(n, e) {
1100
1100
  ce && ce.render(/* @__PURE__ */ p.jsx(n, { ...c }));
1101
1101
  }, l = (c) => {
1102
1102
  r = typeof c == "function" ? c(r) : { ...r, ...c }, o(r);
1103
- }, f = (c) => {
1103
+ }, d = (c) => {
1104
1104
  r.open ? (r = {
1105
1105
  ...r,
1106
1106
  open: !1,
1107
- onClosed: (d) => {
1108
- e.onClosed && e.onClosed(d || c), a(d || c);
1107
+ onClosed: (f) => {
1108
+ e.onClosed && e.onClosed(f || c), a(f || c);
1109
1109
  }
1110
1110
  }, o(r)) : console.warn("Modal is already closed.");
1111
1111
  };
1112
1112
  return o(r), {
1113
- destroy: f,
1113
+ destroy: d,
1114
1114
  update: l
1115
1115
  };
1116
1116
  }
@@ -1170,12 +1170,12 @@ class _s {
1170
1170
  static compare(e, t) {
1171
1171
  if (!this.isValid(e) || !this.isValid(t))
1172
1172
  throw new Error("Invalid version format");
1173
- const r = (f) => f.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1174
- for (let f = 0; f < 3; f++) {
1175
- const c = parseInt(i[f] || "0", 10), d = parseInt(a[f] || "0", 10);
1176
- if (c > d)
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)
1177
1177
  return 1;
1178
- if (c < d)
1178
+ if (c < f)
1179
1179
  return -1;
1180
1180
  }
1181
1181
  const o = e.match(/-(.+)/), l = t.match(/-(.+)/);
@@ -1195,10 +1195,10 @@ class _s {
1195
1195
  const o = a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
1196
1196
  if (!o)
1197
1197
  return !1;
1198
- const l = o[1] || "==", f = o[2];
1199
- if (!this.isValid(f))
1198
+ const l = o[1] || "==", d = o[2];
1199
+ if (!this.isValid(d))
1200
1200
  return !1;
1201
- const c = this.compare(e, f);
1201
+ const c = this.compare(e, d);
1202
1202
  switch (l) {
1203
1203
  case ">":
1204
1204
  return c > 0;
@@ -1209,9 +1209,9 @@ class _s {
1209
1209
  case "<=":
1210
1210
  return c <= 0;
1211
1211
  case "^":
1212
- return this.caretRange(e, f);
1212
+ return this.caretRange(e, d);
1213
1213
  case "~":
1214
- return this.tildeRange(e, f);
1214
+ return this.tildeRange(e, d);
1215
1215
  case "=":
1216
1216
  case "==":
1217
1217
  default:
@@ -1234,8 +1234,8 @@ class _s {
1234
1234
  break;
1235
1235
  }
1236
1236
  for (let l = 0; l <= o; l++) {
1237
- const f = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
1238
- if (f !== c)
1237
+ const d = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
1238
+ if (d !== c)
1239
1239
  return !1;
1240
1240
  }
1241
1241
  return this.compare(e, t) >= 0;
@@ -1247,10 +1247,10 @@ class _s {
1247
1247
  * @returns 是否匹配
1248
1248
  */
1249
1249
  static tildeRange(e, t) {
1250
- const r = (f) => f.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
1251
- for (let f = 0; f < a.length - 1; f++) {
1252
- const c = parseInt(i[f] || "0", 10), d = parseInt(a[f] || "0", 10);
1253
- if (c !== d)
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)
1254
1254
  return !1;
1255
1255
  }
1256
1256
  const o = parseInt(i[a.length - 1] || "0", 10), l = parseInt(a[a.length - 1] || "0", 10);
@@ -1348,12 +1348,12 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1348
1348
  offsetTop: a = 64,
1349
1349
  mainAppBaseUrl: o,
1350
1350
  microAppName: l
1351
- } = n, f = q.useRef(null), c = q.useCallback(() => {
1351
+ } = n, d = q.useRef(null), c = q.useCallback(() => {
1352
1352
  var g, y;
1353
- (y = (g = f.current) == null ? void 0 : g.updatePosition) == null || y.call(g);
1353
+ (y = (g = d.current) == null ? void 0 : g.updatePosition) == null || y.call(g);
1354
1354
  }, []);
1355
1355
  q.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
1356
- const d = q.useCallback(
1356
+ const f = q.useCallback(
1357
1357
  (g) => {
1358
1358
  if (!g)
1359
1359
  return "";
@@ -1366,14 +1366,14 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1366
1366
  },
1367
1367
  [o, l]
1368
1368
  );
1369
- return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Qr, { ref: f, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
1369
+ return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Qr, { ref: d, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
1370
1370
  sr,
1371
1371
  {
1372
1372
  className: Ee("container"),
1373
1373
  rootClassName: Ee("body"),
1374
1374
  variant: "borderless",
1375
1375
  children: [
1376
- /* @__PURE__ */ p.jsx(zt, { className: Ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((g) => /* @__PURE__ */ p.jsx(zt.Item, { children: g.url ? /* @__PURE__ */ p.jsx("a", { href: `#${d(g.url)}`, children: g.name }) : g.name }, g.url || g.name)) }),
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
1377
  /* @__PURE__ */ p.jsx("div", { className: Ee("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(Sn, { items: t }) })
1378
1378
  ]
1379
1379
  }
@@ -1387,9 +1387,9 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1387
1387
  align: a = "left",
1388
1388
  itemLayout: o,
1389
1389
  colon: l = !0,
1390
- bordered: f = !1,
1390
+ bordered: d = !1,
1391
1391
  style: c,
1392
- className: d,
1392
+ className: f,
1393
1393
  labelStyle: g,
1394
1394
  contentStyle: y
1395
1395
  } = n, j = {
@@ -1408,9 +1408,9 @@ const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
1408
1408
  title: t,
1409
1409
  column: r,
1410
1410
  colon: l,
1411
- bordered: f,
1411
+ bordered: d,
1412
1412
  style: c,
1413
- className: d,
1413
+ className: f,
1414
1414
  labelStyle: j,
1415
1415
  contentStyle: $,
1416
1416
  children: e.map((N, I) => {
@@ -1917,8 +1917,8 @@ class pe {
1917
1917
  this.r = y, this.g = y, this.b = y;
1918
1918
  }
1919
1919
  let a = 0, o = 0, l = 0;
1920
- const f = e / 60, c = (1 - Math.abs(2 * r - 1)) * t, d = c * (1 - Math.abs(f % 2 - 1));
1921
- f >= 0 && f < 1 ? (a = c, o = d) : f >= 1 && f < 2 ? (a = d, o = c) : f >= 2 && f < 3 ? (o = c, l = d) : f >= 3 && f < 4 ? (o = d, l = c) : f >= 4 && f < 5 ? (a = d, l = c) : f >= 5 && f < 6 && (a = c, l = d);
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
1922
  const g = r - c / 2;
1923
1923
  this.r = M((a + g) * 255), this.g = M((o + g) * 255), this.b = M((l + g) * 255);
1924
1924
  }
@@ -1932,26 +1932,26 @@ class pe {
1932
1932
  const a = M(r * 255);
1933
1933
  if (this.r = a, this.g = a, this.b = a, t <= 0)
1934
1934
  return;
1935
- const o = e / 60, l = Math.floor(o), f = o - l, c = M(r * (1 - t) * 255), d = M(r * (1 - t * f) * 255), g = M(r * (1 - t * (1 - f)) * 255);
1935
+ const o = e / 60, l = Math.floor(o), d = o - l, c = M(r * (1 - t) * 255), f = M(r * (1 - t * d) * 255), g = M(r * (1 - t * (1 - d)) * 255);
1936
1936
  switch (l) {
1937
1937
  case 0:
1938
1938
  this.g = g, this.b = c;
1939
1939
  break;
1940
1940
  case 1:
1941
- this.r = d, this.b = c;
1941
+ this.r = f, this.b = c;
1942
1942
  break;
1943
1943
  case 2:
1944
1944
  this.r = c, this.b = g;
1945
1945
  break;
1946
1946
  case 3:
1947
- this.r = c, this.g = d;
1947
+ this.r = c, this.g = f;
1948
1948
  break;
1949
1949
  case 4:
1950
1950
  this.r = g, this.g = c;
1951
1951
  break;
1952
1952
  case 5:
1953
1953
  default:
1954
- this.g = c, this.b = d;
1954
+ this.g = c, this.b = f;
1955
1955
  break;
1956
1956
  }
1957
1957
  }
@@ -1981,7 +1981,7 @@ class pe {
1981
1981
  this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
1982
1982
  }
1983
1983
  }
1984
- const Me = 2, Ft = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, ur = 5, fr = 4, Dn = [{
1984
+ const Me = 2, Ft = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, ur = 5, dr = 4, Dn = [{
1985
1985
  index: 7,
1986
1986
  amount: 15
1987
1987
  }, {
@@ -2020,7 +2020,7 @@ function Bt(n, e, t) {
2020
2020
  if (n.h === 0 && n.s === 0)
2021
2021
  return n.s;
2022
2022
  let r;
2023
- return t ? r = n.s - Ft * e : e === fr ? r = n.s + Ft : r = n.s + On * e, r > 1 && (r = 1), t && e === ur && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
2023
+ return t ? r = n.s - Ft * e : e === dr ? r = n.s + Ft : r = n.s + On * e, r > 1 && (r = 1), t && e === ur && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
2024
2024
  }
2025
2025
  function Wt(n, e, t) {
2026
2026
  let r;
@@ -2037,7 +2037,7 @@ function Pn(n, e = {}) {
2037
2037
  t.push(o);
2038
2038
  }
2039
2039
  t.push(r);
2040
- for (let a = 1; a <= fr; a += 1) {
2040
+ for (let a = 1; a <= dr; a += 1) {
2041
2041
  const o = new pe({
2042
2042
  h: Ut(i, a),
2043
2043
  s: Bt(i, a),
@@ -2069,7 +2069,7 @@ function An(n, e) {
2069
2069
  return !1;
2070
2070
  }
2071
2071
  const Zt = "data-rc-order", Gt = "data-rc-priority", Mn = "rc-util-key", ut = /* @__PURE__ */ new Map();
2072
- function dr({
2072
+ function fr({
2073
2073
  mark: n
2074
2074
  } = {}) {
2075
2075
  return n ? n.startsWith("data-") ? n : `data-${n}` : Mn;
@@ -2092,30 +2092,30 @@ function hr(n, e = {}) {
2092
2092
  priority: i = 0
2093
2093
  } = e, a = zn(r), o = a === "prependQueue", l = document.createElement("style");
2094
2094
  l.setAttribute(Zt, a), o && i && l.setAttribute(Gt, `${i}`), t != null && t.nonce && (l.nonce = t == null ? void 0 : t.nonce), l.innerHTML = n;
2095
- const f = bt(e), {
2095
+ const d = bt(e), {
2096
2096
  firstChild: c
2097
- } = f;
2097
+ } = d;
2098
2098
  if (r) {
2099
2099
  if (o) {
2100
- const d = (e.styles || vt(f)).filter((g) => {
2100
+ const f = (e.styles || vt(d)).filter((g) => {
2101
2101
  if (!["prepend", "prependQueue"].includes(g.getAttribute(Zt)))
2102
2102
  return !1;
2103
2103
  const y = Number(g.getAttribute(Gt) || 0);
2104
2104
  return i >= y;
2105
2105
  });
2106
- if (d.length)
2107
- return f.insertBefore(l, d[d.length - 1].nextSibling), l;
2106
+ if (f.length)
2107
+ return d.insertBefore(l, f[f.length - 1].nextSibling), l;
2108
2108
  }
2109
- f.insertBefore(l, c);
2109
+ d.insertBefore(l, c);
2110
2110
  } else
2111
- f.appendChild(l);
2111
+ d.appendChild(l);
2112
2112
  return l;
2113
2113
  }
2114
2114
  function In(n, e = {}) {
2115
2115
  let {
2116
2116
  styles: t
2117
2117
  } = e;
2118
- return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(dr(e)) === n);
2118
+ return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(fr(e)) === n);
2119
2119
  }
2120
2120
  function Yn(n, e) {
2121
2121
  const t = ut.get(n);
@@ -2127,7 +2127,7 @@ function Yn(n, e) {
2127
2127
  }
2128
2128
  }
2129
2129
  function Ln(n, e, t = {}) {
2130
- var f, c, d;
2130
+ var d, c, f;
2131
2131
  const r = bt(t), i = vt(r), a = {
2132
2132
  ...t,
2133
2133
  styles: i
@@ -2135,9 +2135,9 @@ function Ln(n, e, t = {}) {
2135
2135
  Yn(r, a);
2136
2136
  const o = In(e, a);
2137
2137
  if (o)
2138
- return (f = a.csp) != null && f.nonce && o.nonce !== ((c = a.csp) == null ? void 0 : c.nonce) && (o.nonce = (d = a.csp) == null ? void 0 : d.nonce), o.innerHTML !== n && (o.innerHTML = n), o;
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
2139
  const l = hr(n, a);
2140
- return l.setAttribute(dr(a), e), l;
2140
+ return l.setAttribute(fr(a), e), l;
2141
2141
  }
2142
2142
  function gr(n) {
2143
2143
  var e;
@@ -2149,7 +2149,7 @@ function Hn(n) {
2149
2149
  function Vn(n) {
2150
2150
  return Hn(n) ? gr(n) : null;
2151
2151
  }
2152
- let ft = {};
2152
+ let dt = {};
2153
2153
  const yt = [], qn = (n) => {
2154
2154
  yt.push(n);
2155
2155
  };
@@ -2166,10 +2166,10 @@ function Un(n, e) {
2166
2166
  }
2167
2167
  }
2168
2168
  function Bn() {
2169
- ft = {};
2169
+ dt = {};
2170
2170
  }
2171
2171
  function pr(n, e, t) {
2172
- !e && !ft[t] && (n(!1, t), ft[t] = !0);
2172
+ !e && !dt[t] && (n(!1, t), dt[t] = !0);
2173
2173
  }
2174
2174
  function Ve(n, e) {
2175
2175
  pr(Fn, n, e);
@@ -2202,15 +2202,15 @@ function Kt(n = {}) {
2202
2202
  return e;
2203
2203
  }, {});
2204
2204
  }
2205
- function dt(n, e, t) {
2205
+ function ft(n, e, t) {
2206
2206
  return t ? /* @__PURE__ */ Ye.createElement(n.tag, {
2207
2207
  key: e,
2208
2208
  ...Kt(n.attrs),
2209
2209
  ...t
2210
- }, (n.children || []).map((r, i) => dt(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
2210
+ }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
2211
2211
  key: e,
2212
2212
  ...Kt(n.attrs)
2213
- }, (n.children || []).map((r, i) => dt(r, `${e}-${n.tag}-${i}`)));
2213
+ }, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`)));
2214
2214
  }
2215
2215
  function mr(n) {
2216
2216
  return Pn(n)[0];
@@ -2316,28 +2316,28 @@ const qe = (n) => {
2316
2316
  primaryColor: a,
2317
2317
  secondaryColor: o,
2318
2318
  ...l
2319
- } = n, f = q.useRef();
2319
+ } = n, d = q.useRef();
2320
2320
  let c = Oe;
2321
2321
  if (a && (c = {
2322
2322
  primaryColor: a,
2323
2323
  secondaryColor: o || mr(a)
2324
- }), Kn(f), Gn(Jt(e), `icon should be icon definiton, but got ${e}`), !Jt(e))
2324
+ }), Kn(d), Gn(Jt(e), `icon should be icon definiton, but got ${e}`), !Jt(e))
2325
2325
  return null;
2326
- let d = e;
2327
- return d && typeof d.icon == "function" && (d = {
2328
- ...d,
2329
- icon: d.icon(c.primaryColor, c.secondaryColor)
2330
- }), dt(d.icon, `svg-${d.name}`, {
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
2331
  className: t,
2332
2332
  onClick: r,
2333
2333
  style: i,
2334
- "data-icon": d.name,
2334
+ "data-icon": f.name,
2335
2335
  width: "1em",
2336
2336
  height: "1em",
2337
2337
  fill: "currentColor",
2338
2338
  "aria-hidden": "true",
2339
2339
  ...l,
2340
- ref: f
2340
+ ref: d
2341
2341
  });
2342
2342
  };
2343
2343
  qe.displayName = "IconReact";
@@ -2377,21 +2377,21 @@ const Fe = /* @__PURE__ */ q.forwardRef((n, e) => {
2377
2377
  tabIndex: o,
2378
2378
  onClick: l,
2379
2379
  // other
2380
- twoToneColor: f,
2380
+ twoToneColor: d,
2381
2381
  ...c
2382
2382
  } = n, {
2383
- prefixCls: d = "anticon",
2383
+ prefixCls: f = "anticon",
2384
2384
  rootClassName: g
2385
- } = q.useContext(cr), y = jn(g, d, {
2386
- [`${d}-${r.name}`]: !!r.name,
2387
- [`${d}-spin`]: !!i || r.name === "loading"
2385
+ } = q.useContext(cr), y = jn(g, f, {
2386
+ [`${f}-${r.name}`]: !!r.name,
2387
+ [`${f}-spin`]: !!i || r.name === "loading"
2388
2388
  }, t);
2389
2389
  let j = o;
2390
2390
  j === void 0 && l && (j = -1);
2391
2391
  const $ = a ? {
2392
2392
  msTransform: `rotate(${a}deg)`,
2393
2393
  transform: `rotate(${a}deg)`
2394
- } : void 0, [N, I] = br(f);
2394
+ } : void 0, [N, I] = br(d);
2395
2395
  return /* @__PURE__ */ q.createElement("span", ht({
2396
2396
  role: "img",
2397
2397
  "aria-label": r.name
@@ -2459,12 +2459,12 @@ function mt() {
2459
2459
  return n;
2460
2460
  }, mt.apply(this, arguments);
2461
2461
  }
2462
- const fs = (n, e) => /* @__PURE__ */ q.createElement(xt, mt({}, n, {
2462
+ const ds = (n, e) => /* @__PURE__ */ q.createElement(xt, mt({}, n, {
2463
2463
  ref: e,
2464
2464
  icon: us
2465
- })), xr = /* @__PURE__ */ q.forwardRef(fs);
2465
+ })), xr = /* @__PURE__ */ q.forwardRef(ds);
2466
2466
  process.env.NODE_ENV !== "production" && (xr.displayName = "UploadOutlined");
2467
- const ds = xr;
2467
+ const fs = xr;
2468
2468
  var W = /* @__PURE__ */ ((n) => (n.Input = "input", n.InputNumber = "inputNumber", n.Text = "text", n.Password = "password", n.Radio = "radio", n.Select = "select", n.Checkbox = "checkbox", n.DatePicker = "datePicker", n.RangePicker = "rangePicker", n.Upload = "upload", n.Mentions = "mentions", n.Cascader = "cascader", n.TreeSelect = "treeSelect", n))(W || {});
2469
2469
  const { RangePicker: hs } = ar, C = class C {
2470
2470
  static getDefaultArrayPlaceholder(e) {
@@ -2556,7 +2556,7 @@ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRo
2556
2556
  placeholder: e.placeholder || C.getDefaultPlaceholder(e)
2557
2557
  }
2558
2558
  )), m(C, "radio", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(C, "checkbox", (e) => /* @__PURE__ */ p.jsx(nn.Group, { disabled: e.disabled, ...e.props })), m(C, "upload", (e) => /* @__PURE__ */ p.jsx(sn, { ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(ke, { children: [
2559
- /* @__PURE__ */ p.jsx(ds, {}),
2559
+ /* @__PURE__ */ p.jsx(fs, {}),
2560
2560
  " 点击上传"
2561
2561
  ] }) })), m(C, "mentions", (e) => /* @__PURE__ */ p.jsx(
2562
2562
  an,
@@ -2580,14 +2580,14 @@ m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRo
2580
2580
  let me = C;
2581
2581
  const rt = (n = "") => He("m-form", n);
2582
2582
  function Rr(n) {
2583
- const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, d) => {
2583
+ const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, f) => {
2584
2584
  if (c.render)
2585
- return c.render(d);
2585
+ return c.render(f);
2586
2586
  const g = me[c.type];
2587
2587
  return c && c.type && g ? g(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
2588
- }, f = (c) => {
2589
- const { show: d = !0 } = c;
2590
- if (!d)
2588
+ }, d = (c) => {
2589
+ const { show: f = !0 } = c;
2590
+ if (!f)
2591
2591
  return null;
2592
2592
  const g = [...c.rules || []];
2593
2593
  c.required && g.push({ required: !0, message: c.required });
@@ -2619,7 +2619,7 @@ function Rr(n) {
2619
2619
  gutter: me.defaultRowGutter,
2620
2620
  ...o,
2621
2621
  className: `${rt("grid")} ${o == null ? void 0 : o.className}`,
2622
- children: t.map((c) => f(c))
2622
+ children: t.map((c) => d(c))
2623
2623
  }
2624
2624
  ) }) });
2625
2625
  }
@@ -2712,12 +2712,12 @@ const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2712
2712
  defaultShowAll: i = !1,
2713
2713
  customButtons: a = [],
2714
2714
  form: o
2715
- } = n, [l, f] = H(i), [c] = st.useForm(), d = G(null), g = o ?? c, y = (v) => {
2715
+ } = n, [l, d] = H(i), [c] = st.useForm(), f = G(null), g = o ?? c, y = (v) => {
2716
2716
  const { keyCode: k } = v;
2717
2717
  k === gs && $();
2718
2718
  };
2719
2719
  ae(() => {
2720
- const v = d.current;
2720
+ const v = f.current;
2721
2721
  return v == null || v.addEventListener("keydown", y), () => {
2722
2722
  v == null || v.removeEventListener("keydown", y);
2723
2723
  };
@@ -2736,7 +2736,7 @@ const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2736
2736
  /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
2737
2737
  /* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-search"), onClick: () => $(), type: "primary", children: "搜索" })
2738
2738
  ] }),
2739
- N && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => f(!l), children: [
2739
+ N && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => d(!l), children: [
2740
2740
  /* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
2741
2741
  l ? /* @__PURE__ */ p.jsx(cs, {}) : /* @__PURE__ */ p.jsx(ss, {})
2742
2742
  ] })
@@ -2755,7 +2755,7 @@ const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
2755
2755
  "div",
2756
2756
  {
2757
2757
  className: `${ne("")} ${l ? "" : ne("collapsed")} ${e || ""}`,
2758
- ref: d,
2758
+ ref: f,
2759
2759
  children: /* @__PURE__ */ p.jsxs(sr, { children: [
2760
2760
  /* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
2761
2761
  /* @__PURE__ */ p.jsx(Rr, { form: g, formItems: P, column: 3 }),
@@ -2770,7 +2770,7 @@ function Os(n) {
2770
2770
  var t;
2771
2771
  const e = ((t = n.columns) == null ? void 0 : t.map((r) => ({ ...r, dataIndex: r.key }))) ?? [];
2772
2772
  return /* @__PURE__ */ p.jsxs(ve, { children: [
2773
- /* @__PURE__ */ p.jsx(fn, { rowKey: (r) => r.id, ...n, columns: e }),
2773
+ /* @__PURE__ */ p.jsx(dn, { rowKey: (r) => r.id, ...n, columns: e }),
2774
2774
  ";"
2775
2775
  ] });
2776
2776
  }
@@ -2857,18 +2857,18 @@ m(O, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), /**
2857
2857
  */
2858
2858
  m(O, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
2859
2859
  function Ns(n, e) {
2860
- const [t, r] = H(!1), [i, a] = H(null), [o, l] = H(null), f = G(void 0), c = G(0), d = () => {
2860
+ const [t, r] = H(!1), [i, a] = H(null), [o, l] = H(null), d = G(void 0), c = G(0), f = () => {
2861
2861
  var y;
2862
- (y = f.current) == null || y.abort(), r(!1), a(null);
2862
+ (y = d.current) == null || y.abort(), r(!1), a(null);
2863
2863
  }, g = async (...y) => {
2864
2864
  var N, I, P, v;
2865
2865
  const j = ++c.current;
2866
- d();
2866
+ f();
2867
2867
  const $ = new AbortController();
2868
- f.current = $;
2868
+ d.current = $;
2869
2869
  try {
2870
2870
  if (r(!0), a(null), e != null && e.onBefore && !await ((N = e == null ? void 0 : e.onBefore) == null ? void 0 : N.call(e, ...y))) {
2871
- d();
2871
+ f();
2872
2872
  return;
2873
2873
  }
2874
2874
  const k = y.length >= n.length ? y : [...y, { signal: $.signal }], F = await n(...k);
@@ -2880,7 +2880,7 @@ function Ns(n, e) {
2880
2880
  }
2881
2881
  };
2882
2882
  return ae(() => (e != null && e.autoRunArgs && g(...e.autoRunArgs).catch(() => {
2883
- }), d), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: d, loading: t, error: i, data: o };
2883
+ }), f), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: f, loading: t, error: i, data: o };
2884
2884
  }
2885
2885
  function Ds(n, e, t = !1) {
2886
2886
  const r = G(void 0), i = G(n);
@@ -2890,9 +2890,9 @@ function Ds(n, e, t = !1) {
2890
2890
  const a = Z(() => {
2891
2891
  r.current && (clearInterval(r.current), r.current = void 0);
2892
2892
  }, []), o = Z(() => {
2893
- a(), e != null && (r.current = setInterval(() => i.current(), e));
2894
- }, [e, a]);
2895
- return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2893
+ a(), e != null && (t && i.current(), r.current = setInterval(() => i.current(), e));
2894
+ }, [e, a, t]);
2895
+ return ae(() => a, [a]), { start: o, clear: a, isRunning: !!r.current };
2896
2896
  }
2897
2897
  const Ps = (n, e, t) => {
2898
2898
  const {
@@ -2900,10 +2900,10 @@ const Ps = (n, e, t) => {
2900
2900
  dataSource: i = [],
2901
2901
  current: a = 1,
2902
2902
  pageSize: o = 10
2903
- } = t || {}, [l, f] = H(a), [c, d] = H(o), [g, y] = H(i), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(!1), k = G(l), F = G(c), Y = (w) => {
2904
- f(w), k.current = w;
2903
+ } = t || {}, [l, d] = H(a), [c, f] = H(o), [g, y] = H(i), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(!1), k = G(l), F = G(c), Y = (w) => {
2904
+ d(w), k.current = w;
2905
2905
  }, J = (w) => {
2906
- d(w), F.current = w;
2906
+ f(w), F.current = w;
2907
2907
  }, K = G(0), ye = async () => {
2908
2908
  if (!r)
2909
2909
  return;
@@ -2976,9 +2976,9 @@ function Ts() {
2976
2976
  }
2977
2977
  const As = (n) => {
2978
2978
  const [e, t] = H(n), r = G(e), i = Z((l) => {
2979
- t((f) => {
2980
- const c = typeof l == "function" ? l(f) : l, d = { ...f, ...c };
2981
- return r.current = d, d;
2979
+ t((d) => {
2980
+ const c = typeof l == "function" ? l(d) : l, f = { ...d, ...c };
2981
+ return r.current = f, f;
2982
2982
  });
2983
2983
  }, []), a = Z(() => r.current, []), o = Z(() => {
2984
2984
  t(n), r.current = n;
@@ -2991,11 +2991,11 @@ function Ms(n, e, t = !1) {
2991
2991
  i.current = n;
2992
2992
  }, [n]);
2993
2993
  const a = Z(() => {
2994
- r.current && (clearTimeout(r.current), r.current = void 0);
2994
+ r.current && (clearInterval(r.current), r.current = void 0);
2995
2995
  }, []), o = Z(() => {
2996
- a(), e != null && (r.current = setTimeout(() => i.current(), e));
2997
- }, [e, a]);
2998
- return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
2996
+ a(), e != null && (t && i.current(), r.current = setTimeout(() => i.current(), e));
2997
+ }, [e, a, t]);
2998
+ return ae(() => a, [a]), { start: o, clear: a, isRunning: !!r.current };
2999
2999
  }
3000
3000
  const zs = (n, e, t) => {
3001
3001
  const {
@@ -3003,8 +3003,8 @@ const zs = (n, e, t) => {
3003
3003
  dataSource: i = [],
3004
3004
  current: a = 1,
3005
3005
  pageSize: o = ps
3006
- } = t || {}, [l, f] = H(!1), [c, d] = H(a), [g, y] = H(o), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(i), k = G(c), F = G(g), Y = G(0), J = Z((E) => {
3007
- d(E), k.current = E;
3006
+ } = t || {}, [l, d] = H(!1), [c, f] = H(a), [g, y] = H(o), [j, $] = H(0), [N, I] = H(!1), [P, v] = H(i), k = G(c), F = G(g), Y = G(0), J = Z((E) => {
3007
+ f(E), k.current = E;
3008
3008
  }, []), K = Z((E) => {
3009
3009
  y(E), F.current = E;
3010
3010
  }, []), ye = Z((E) => {
@@ -3028,17 +3028,17 @@ const zs = (n, e, t) => {
3028
3028
  return;
3029
3029
  let { dataSource: re, total: Q } = U;
3030
3030
  if (g * (L - 1) >= Q && L !== 1) {
3031
- const fe = Math.max(1, Math.ceil(Q / g));
3032
- if (X = Math.max(0, Math.round((fe - 1) * w)), U = await n({
3031
+ const de = Math.max(1, Math.ceil(Q / g));
3032
+ if (X = Math.max(0, Math.round((de - 1) * w)), U = await n({
3033
3033
  limit: w,
3034
3034
  offset: X,
3035
- current: fe
3035
+ current: de
3036
3036
  }), A !== Y.current)
3037
3037
  return;
3038
- re = U.dataSource, Q = U.total, L = fe;
3038
+ re = U.dataSource, Q = U.total, L = de;
3039
3039
  }
3040
3040
  const ue = E ? re : [...P, ...re];
3041
- v(ue), J(L), K(w), $(Q), f(!0);
3041
+ v(ue), J(L), K(w), $(Q), d(!0);
3042
3042
  } catch (X) {
3043
3043
  if (console.error("useVirtualList error", X), A !== Y.current)
3044
3044
  return;
package/dist/index.umd.js CHANGED
@@ -14,8 +14,8 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wt;function Sr(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){var n=I.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),P=Symbol.iterator,$="@@iterator";function V(s){if(s===null||typeof s!="object")return null;var u=P&&s[P]||s[$];return typeof u=="function"?u:null}var A=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(s){{for(var u=arguments.length,g=new Array(u>1?u-1:0),y=1;y<u;y++)g[y-1]=arguments[y];T("error",s,g)}}function T(s,u,g){{var y=A.ReactDebugCurrentFrame,k=y.getStackAddendum();k!==""&&(u+="%s",g=g.concat([k]));var j=g.map(function(_){return String(_)});j.unshift("Warning: "+u),Function.prototype.apply.call(console[s],console,j)}}var W=!1,F=!1,J=!1,K=!1,Re=!1,te;te=Symbol.for("react.module.reference");function ae(s){return!!(typeof s=="string"||typeof s=="function"||s===r||s===a||Re||s===i||s===c||s===d||K||s===D||W||F||J||typeof s=="object"&&s!==null&&(s.$$typeof===x||s.$$typeof===p||s.$$typeof===o||s.$$typeof===l||s.$$typeof===f||s.$$typeof===te||s.getModuleId!==void 0))}function he(s,u,g){var y=s.displayName;if(y)return y;var k=u.displayName||u.name||"";return k!==""?g+"("+k+")":g}function je(s){return s.displayName||"Context"}function O(s){if(s==null)return null;if(typeof s.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case l:var u=s;return je(u)+".Consumer";case o:var g=s;return je(g._context)+".Provider";case f:return he(s,s.render,"ForwardRef");case p:var y=s.displayName||null;return y!==null?y:O(s.type)||"Memo";case x:{var k=s,j=k._payload,_=k._init;try{return O(_(j))}catch{return null}}}return null}var q=Object.assign,C=0,H,X,Z,se,Q,ge,pe;function Qt(){}Qt.__reactDisabledLog=!0;function Pn(){{if(C===0){H=console.log,X=console.info,Z=console.warn,se=console.error,Q=console.group,ge=console.groupCollapsed,pe=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}C++}}function $n(){{if(C--,C===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},s,{value:H}),info:q({},s,{value:X}),warn:q({},s,{value:Z}),error:q({},s,{value:se}),group:q({},s,{value:Q}),groupCollapsed:q({},s,{value:ge}),groupEnd:q({},s,{value:pe})})}C<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ut=A.ReactCurrentDispatcher,ft;function ze(s,u,g){{if(ft===void 0)try{throw Error()}catch(k){var y=k.stack.trim().match(/\n( *(at )?)/);ft=y&&y[1]||""}return`
18
- `+ft+s}}var dt=!1,Ie;{var Mn=typeof WeakMap=="function"?WeakMap:Map;Ie=new Mn}function er(s,u){if(!s||dt)return"";{var g=Ie.get(s);if(g!==void 0)return g}var y;dt=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=ut.current,ut.current=null,Pn();try{if(u){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(G){y=G}Reflect.construct(s,[],_)}else{try{_.call()}catch(G){y=G}s.call(_.prototype)}}else{try{throw Error()}catch(G){y=G}s()}}catch(G){if(G&&y&&typeof G.stack=="string"){for(var E=G.stack.split(`
17
+ */var wt;function Sr(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){var n=I.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),T=Symbol.iterator,$="@@iterator";function V(s){if(s===null||typeof s!="object")return null;var u=T&&s[T]||s[$];return typeof u=="function"?u:null}var A=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(s){{for(var u=arguments.length,g=new Array(u>1?u-1:0),y=1;y<u;y++)g[y-1]=arguments[y];P("error",s,g)}}function P(s,u,g){{var y=A.ReactDebugCurrentFrame,k=y.getStackAddendum();k!==""&&(u+="%s",g=g.concat([k]));var j=g.map(function(_){return String(_)});j.unshift("Warning: "+u),Function.prototype.apply.call(console[s],console,j)}}var W=!1,F=!1,J=!1,K=!1,Re=!1,te;te=Symbol.for("react.module.reference");function ae(s){return!!(typeof s=="string"||typeof s=="function"||s===r||s===a||Re||s===i||s===c||s===d||K||s===D||W||F||J||typeof s=="object"&&s!==null&&(s.$$typeof===x||s.$$typeof===p||s.$$typeof===o||s.$$typeof===l||s.$$typeof===f||s.$$typeof===te||s.getModuleId!==void 0))}function he(s,u,g){var y=s.displayName;if(y)return y;var k=u.displayName||u.name||"";return k!==""?g+"("+k+")":g}function je(s){return s.displayName||"Context"}function O(s){if(s==null)return null;if(typeof s.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case l:var u=s;return je(u)+".Consumer";case o:var g=s;return je(g._context)+".Provider";case f:return he(s,s.render,"ForwardRef");case p:var y=s.displayName||null;return y!==null?y:O(s.type)||"Memo";case x:{var k=s,j=k._payload,_=k._init;try{return O(_(j))}catch{return null}}}return null}var q=Object.assign,C=0,H,X,Z,se,Q,ge,pe;function Qt(){}Qt.__reactDisabledLog=!0;function Tn(){{if(C===0){H=console.log,X=console.info,Z=console.warn,se=console.error,Q=console.group,ge=console.groupCollapsed,pe=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}C++}}function $n(){{if(C--,C===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},s,{value:H}),info:q({},s,{value:X}),warn:q({},s,{value:Z}),error:q({},s,{value:se}),group:q({},s,{value:Q}),groupCollapsed:q({},s,{value:ge}),groupEnd:q({},s,{value:pe})})}C<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ut=A.ReactCurrentDispatcher,ft;function ze(s,u,g){{if(ft===void 0)try{throw Error()}catch(k){var y=k.stack.trim().match(/\n( *(at )?)/);ft=y&&y[1]||""}return`
18
+ `+ft+s}}var dt=!1,Ie;{var Mn=typeof WeakMap=="function"?WeakMap:Map;Ie=new Mn}function er(s,u){if(!s||dt)return"";{var g=Ie.get(s);if(g!==void 0)return g}var y;dt=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=ut.current,ut.current=null,Tn();try{if(u){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(G){y=G}Reflect.construct(s,[],_)}else{try{_.call()}catch(G){y=G}s.call(_.prototype)}}else{try{throw Error()}catch(G){y=G}s()}}catch(G){if(G&&y&&typeof G.stack=="string"){for(var E=G.stack.split(`
19
19
  `),U=y.stack.split(`
20
20
  `),M=E.length-1,z=U.length-1;M>=1&&z>=0&&E[M]!==U[z];)z--;for(;M>=1&&z>=0;M--,z--)if(E[M]!==U[z]){if(M!==1||z!==1)do if(M--,z--,z<0||E[M]!==U[z]){var ee=`
21
21
  `+E[M].replace(" at new "," at ");return s.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",s.displayName)),typeof s=="function"&&Ie.set(s,ee),ee}while(M>=1&&z>=0);break}}}finally{dt=!1,ut.current=j,$n(),Error.prepareStackTrace=k}var be=s?s.displayName||s.name:"",le=be?ze(be):"";return typeof s=="function"&&Ie.set(s,le),le}function An(s,u,g){return er(s,!1)}function zn(s){var u=s.prototype;return!!(u&&u.isReactComponent)}function Le(s,u,g){if(s==null)return"";if(typeof s=="function")return er(s,zn(s));if(typeof s=="string")return ze(s);switch(s){case c:return ze("Suspense");case d:return ze("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case f:return An(s.render);case p:return Le(s.type,u,g);case x:{var y=s,k=y._payload,j=y._init;try{return Le(j(k),u,g)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,tr={},rr=A.ReactDebugCurrentFrame;function Ye(s){if(s){var u=s._owner,g=Le(s.type,s._source,u?u.type:null);rr.setExtraStackFrame(g)}else rr.setExtraStackFrame(null)}function In(s,u,g,y,k){{var j=Function.call.bind(Oe);for(var _ in s)if(j(s,_)){var E=void 0;try{if(typeof s[_]!="function"){var U=Error((y||"React class")+": "+g+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw U.name="Invariant Violation",U}E=s[_](u,_,y,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){E=M}E&&!(E instanceof Error)&&(Ye(k),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",g,_,typeof E),Ye(null)),E instanceof Error&&!(E.message in tr)&&(tr[E.message]=!0,Ye(k),S("Failed %s type: %s",g,E.message),Ye(null))}}}var Ln=Array.isArray;function ht(s){return Ln(s)}function Yn(s){{var u=typeof Symbol=="function"&&Symbol.toStringTag,g=u&&s[Symbol.toStringTag]||s.constructor.name||"Object";return g}}function Hn(s){try{return nr(s),!1}catch{return!0}}function nr(s){return""+s}function sr(s){if(Hn(s))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yn(s)),nr(s)}var De=A.ReactCurrentOwner,Vn={key:!0,ref:!0,__self:!0,__source:!0},ar,ir,gt;gt={};function Fn(s){if(Oe.call(s,"ref")){var u=Object.getOwnPropertyDescriptor(s,"ref").get;if(u&&u.isReactWarning)return!1}return s.ref!==void 0}function qn(s){if(Oe.call(s,"key")){var u=Object.getOwnPropertyDescriptor(s,"key").get;if(u&&u.isReactWarning)return!1}return s.key!==void 0}function Bn(s,u){if(typeof s.ref=="string"&&De.current&&u&&De.current.stateNode!==u){var g=O(De.current.type);gt[g]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(De.current.type),s.ref),gt[g]=!0)}}function Un(s,u){{var g=function(){ar||(ar=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};g.isReactWarning=!0,Object.defineProperty(s,"key",{get:g,configurable:!0})}}function Wn(s,u){{var g=function(){ir||(ir=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};g.isReactWarning=!0,Object.defineProperty(s,"ref",{get:g,configurable:!0})}}var Zn=function(s,u,g,y,k,j,_){var E={$$typeof:e,type:s,key:u,ref:g,props:_,_owner:j};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function Gn(s,u,g,y,k){{var j,_={},E=null,U=null;g!==void 0&&(sr(g),E=""+g),qn(u)&&(sr(u.key),E=""+u.key),Fn(u)&&(U=u.ref,Bn(u,k));for(j in u)Oe.call(u,j)&&!Vn.hasOwnProperty(j)&&(_[j]=u[j]);if(s&&s.defaultProps){var M=s.defaultProps;for(j in M)_[j]===void 0&&(_[j]=M[j])}if(E||U){var z=typeof s=="function"?s.displayName||s.name||"Unknown":s;E&&Un(_,z),U&&Wn(_,z)}return Zn(s,E,U,k,y,De.current,_)}}var pt=A.ReactCurrentOwner,or=A.ReactDebugCurrentFrame;function me(s){if(s){var u=s._owner,g=Le(s.type,s._source,u?u.type:null);or.setExtraStackFrame(g)}else or.setExtraStackFrame(null)}var mt;mt=!1;function bt(s){return typeof s=="object"&&s!==null&&s.$$typeof===e}function cr(){{if(pt.current){var s=O(pt.current.type);if(s)return`
@@ -29,11 +29,11 @@ Check the top-level render call using <`+g+">.")}return u}}function ur(s,u){{if(
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,vt,le,ss,le),dr[le+vt]=!0}}return s===r?Qn(z):Xn(z),z}}function es(s,u,g){return hr(s,u,g,!0)}function ts(s,u,g){return hr(s,u,g,!1)}var rs=ts,ns=es;ye.Fragment=r,ye.jsx=rs,ye.jsxs=ns}()),ye}process.env.NODE_ENV==="production"?He.exports=wr():He.exports=Sr();var m=He.exports;const Y=class Y{static getDecimalLength(e){const t=e.toString(),r=t.indexOf(".");return r===-1?0:t.length-r-1}static toInteger(e,t){const r=e.toString().replace(".","");return Number(r)*Math.pow(10,t)}add(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const i=Y.getDecimalLength(t),a=Y.getDecimalLength(r),o=Math.max(i,a),l=Math.pow(10,o),f=Y.toInteger(t,o-i),c=Y.toInteger(r,o-a);return(f+c)/l})}sub(e,t){const r=Y.getDecimalLength(e),i=Y.getDecimalLength(t),a=Math.max(r,i),o=Math.pow(10,a);return Number(((e*o-t*o)/o).toFixed(a))}mul(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const i=Y.getDecimalLength(t)+Y.getDecimalLength(r),a=Number(t.toString().replace(".","")),o=Number(r.toString().replace(".",""));return a*o/Math.pow(10,i)})}div(e,t){if(t===0)throw new Error("除数不能为零");const r=1+Number.EPSILON,i=Y.getDecimalLength(e),a=Y.getDecimalLength(t),o=Number(e.toString().replace(".",""))*r,l=Number(t.toString().replace(".",""))*r;return o/l*Math.pow(10,a-i)}round(e,t=0){const r=Math.pow(10,t);return Math.round(e*r)/r}percent(e,t){return this.div(this.mul(e,t),100)}average(...e){return e.length===0?0:this.div(e.reduce((t,r)=>this.add(t,r)),e.length)}approxEqual(e,t,r=1e-10){return Math.abs(this.sub(e,t))<r}ln(e,t=10){if(e<=0)throw new Error("对数函数的输入必须为正数");if(e===1)return 0;let r=0;const i=Math.pow(10,-t-1);let a=this.div(this.sub(e,1),this.add(e,1));const o=this.mul(a,a);let l=a,f=1;do r=this.add(r,this.div(l,f)),l=this.mul(l,o),f+=2;while(Math.abs(l)>i);return this.round(this.mul(2,r),t)}exp(e,t=10){if(e===0)return 1;if(e===1)return Math.E;let r=1,i=1;const a=Math.pow(10,-t-1);let o=1,l=0;do l=r,i=this.div(this.mul(i,e),o),r=this.add(r,i),o++;while(Math.abs(i)>a&&!this.approxEqual(r,l,a));return this.round(r,t)}sqrt(e,t=10){if(e<0)throw new Error("负数平方根需使用复数计算");if(e===0)return 0;let r=e/2;const i=Math.pow(10,-t-1);do r=this.div(this.add(r,this.div(e,r)),2);while(Math.abs(this.sub(this.mul(r,r),e))>i);return this.round(r,t)}safeLog(e,t={}){const{safe:r=!0,replaceNeg:i=NaN,replaceZero:a=-1/0}=t;if(e>0)return Math.log(e);if(!r)throw new Error("Invalid input");return e===0?a:i}factorial(e){if(!Number.isInteger(e)||e<0)return NaN;if(e<0)return NaN;if(e>Number.MAX_SAFE_INTEGER){let r=BigInt(1);for(let i=2;i<=e;i++)r*=BigInt(i);return Number(r.toString())}if(e>170)return 1/0;if(Y.factorialCache.has(e))return Y.factorialCache.get(e);let t=1;for(let r=2;r<=e;r++){if(Y.factorialCache.has(r)){t=Y.factorialCache.get(r);continue}t=this.mul(t,r),Y.factorialCache.set(r,t)}return t}hypFunc(e,t,r=10){const i=this.exp(e,r+2),a=this.exp(-e,r+2);switch(t){case"sinh":return this.round(this.div(this.sub(i,a),2),r);case"cosh":return this.round(this.div(this.add(i,a),2),r);case"tanh":return this.round(this.div(this.sub(i,a),this.add(i,a)),r);default:throw new Error("不支持的函数类型")}}permComb(e,t,r){if(!Number.isInteger(e)||!Number.isInteger(t)||t>e||t<0)return NaN;let i=1;for(let a=0;a<t;a++)i=this.mul(i,e-a),r==="combination"&&(i=this.div(i,a+1));return i}gcd(e,t){for(e=Math.abs(e),t=Math.abs(t);t!==0;){const r=t;t=e%t,e=r}return e}lcm(e,t){return this.div(this.mul(e,t),this.gcd(e,t))}};b(Y,"factorialCache",new Map);let Ve=Y;const xr=new Ve,ke=class ke{constructor(){b(this,"callbacks",[]);b(this,"pending",!1);b(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),r=document.createTextNode(String(e));return t.observe(r,{characterData:!0}),()=>{e=(e+1)%2,r.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let r;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(i){console.error("Error in nextTick:",i)}else r&&r()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(i=>{r=i})}static nextTick(e,t){return ke.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new ke),this._instance}};b(ke,"_instance");let we=ke;const Cr=we.instance.nextTick.bind(we.instance);var ue={},Fe,qe,Se=vr.default;if(process.env.NODE_ENV==="production")qe=ue.createRoot=Se.createRoot,Fe=ue.hydrateRoot=Se.hydrateRoot;else{var Ne=Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe=ue.createRoot=function(n,e){Ne.usingClientEntryPoint=!0;try{return Se.createRoot(n,e)}finally{Ne.usingClientEntryPoint=!1}},Fe=ue.hydrateRoot=function(n,e,t){Ne.usingClientEntryPoint=!0;try{return Se.hydrateRoot(n,e,t)}finally{Ne.usingClientEntryPoint=!1}}}const Er=br({__proto__:null,get createRoot(){return qe},default:ue,get hydrateRoot(){return Fe}},[ue]),{createRoot:_r}=Er;let re=null,ie=null;function kr(){return re||(re=document.createElement("div"),document.body.appendChild(re)),re}function St(n,e){const t=kr();let r={open:!0,...e,onClosed:e.onClosed||(c=>{f(c)})};if(!ie)try{ie=_r(t)}catch(c){return console.error("Failed to create root:",c),{destroy:()=>{},update:()=>{}}}const i=()=>{ie&&(ie.unmount(),ie=null),re&&re.parentNode&&(re.parentNode.removeChild(re),re=null)},a=c=>{typeof r.onClosed=="function"&&r.onClosed(c),i()},o=c=>{ie&&ie.render(m.jsx(n,{...c}))},l=c=>{r=typeof c=="function"?c(r):{...r,...c},o(r)},f=c=>{r.open?(r={...r,open:!1,onClosed:d=>{e.onClosed&&e.onClosed(d||c),a(d||c)}},o(r)):console.warn("Modal is already closed.")};return o(r),{destroy:f,update:l}}const Rr=()=>{},xe=(n,e)=>{const t=n;let r=n;if(e.includes(" ")){r="";const i=e==null?void 0:e.split(" ");for(const a of i)r+=` ${t}-${a}`}else e&&(r=`${n}-${e}`);return r},jr=(n,e)=>{const t=e==null?void 0:e.split(".");let r=n;for(const i of t)r=r[i];return r},xt=n=>{for(const e in n)n[e]===null&&delete n[e];return n},Be=(n,e)=>{let t=null;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}},Or=(n,e)=>{let t=null,r=0;return(...i)=>{const a=Date.now();t?a-r>=e&&(n(...i),r=a):(n(...i),r=a,t=setTimeout(()=>{t=null},e))}};class Dr{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const r=f=>f.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);for(let f=0;f<3;f++){const c=parseInt(i[f]||"0",10),d=parseInt(a[f]||"0",10);if(c>d)return 1;if(c<d)return-1}const o=e.match(/-(.+)/),l=t.match(/-(.+)/);return o&&!l?-1:!o&&l?1:o&&l?o[1].localeCompare(l[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;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);return!i||i.length===0?!1:i.every(a=>{const o=a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!o)return!1;const l=o[1]||"==",f=o[2];if(!this.isValid(f))return!1;const c=this.compare(e,f);switch(l){case">":return c>0;case">=":return c>=0;case"<":return c<0;case"<=":return c<=0;case"^":return this.caretRange(e,f);case"~":return this.tildeRange(e,f);case"=":case"==":default:return c===0}})}static caretRange(e,t){const r=l=>l.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);let o=0;for(let l=0;l<a.length;l++)if(parseInt(a[l],10)!==0){o=l;break}for(let l=0;l<=o;l++){const f=parseInt(i[l]||"0",10),c=parseInt(a[l]||"0",10);if(f!==c)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const r=f=>f.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);for(let f=0;f<a.length-1;f++){const c=parseInt(i[f]||"0",10),d=parseInt(a[f]||"0",10);if(c!==d)return!1}const o=parseInt(i[a.length-1]||"0",10),l=parseInt(a[a.length-1]||"0",10);return o>=l}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const Ct=h.createContext({theme:{cssVar:!0,algorithm:[w.theme.defaultAlgorithm]}}),Nr=Ct.Provider;function Et(){return h.useContext(Ct)}function oe(n){const{theme:e}=Et();return m.jsx(w.ConfigProvider,{theme:e,children:n.children})}const _t=(n="")=>xe("items-row",n),kt=n=>n.items?m.jsx(oe,{children:m.jsx("div",{className:`${_t()} ${n.className||""}`,style:n.style,children:(n.items||[]).map((e,t)=>{const r=`${_t("item")} ${e.className}`;return e.render?m.jsx("span",{className:r,children:e.render()},t):m.jsx(w.Button,{className:r,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,cs="",Ce=(n="")=>xe("m-breadcrumb",n),Tr=n=>{const{routes:e,customItems:t,style:r,className:i,offsetTop:a=64,mainAppBaseUrl:o,microAppName:l}=n,f=I.useRef(null),c=I.useCallback(()=>{var p,x;(x=(p=f.current)==null?void 0:p.updatePosition)==null||x.call(p)},[]);I.useEffect(()=>(window.addEventListener("scroll",c,!0),()=>window.removeEventListener("scroll",c)),[c]);const d=I.useCallback(p=>{if(!p)return"";const x=p.replace(/^\/+/,"");return`/${[o==null?void 0:o.replace(/\/+$/,""),l==null?void 0:l.replace(/\/+$/,""),x].filter(Boolean).join("/")}`},[o,l]);return m.jsx(oe,{children:m.jsx("div",{className:`${Ce()} ${i||""}`,style:r,children:m.jsx(w.Affix,{ref:f,offsetTop:a,children:m.jsxs(w.Card,{className:Ce("container"),rootClassName:Ce("body"),variant:"borderless",children:[m.jsx(w.Breadcrumb,{className:Ce("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(p=>m.jsx(w.Breadcrumb.Item,{children:p.url?m.jsx("a",{href:`#${d(p.url)}`,children:p.name}):p.name},p.url||p.name))}),m.jsx("div",{className:Ce("custom-item-wrapper"),children:m.jsx(kt,{items:t})})]})})})})},Rt=n=>{const{data:e,title:t,column:r=3,lineHeight:i,align:a="left",itemLayout:o,colon:l=!0,bordered:f=!1,style:c,className:d,labelStyle:p,contentStyle:x}=n,D={...i?{lineHeight:`${i}px`}:{},textAlign:a,...o!=null&&o.label?{width:`${o.label}px`}:{},...p},P={...i?{lineHeight:`${i}px`}:{},...o!=null&&o.value?{width:`${o.value}px`}:{},...x};return m.jsx(oe,{children:m.jsx(w.Descriptions,{title:t,column:r,colon:l,bordered:f,style:c,className:d,labelStyle:D,contentStyle:P,children:e.map(($,V)=>{var A;return m.jsx(w.Descriptions.Item,{label:$.label,span:$.span,children:$.value||"-"},((A=$.label)==null?void 0:A.toString())||V)})})})};Rt.displayName="MDescriptions";const ls="",jt=h.createContext({});var Ot={exports:{}};/*!
32
+ <%s key={someKey} {...props} />`,vt,le,ss,le),dr[le+vt]=!0}}return s===r?Qn(z):Xn(z),z}}function es(s,u,g){return hr(s,u,g,!0)}function ts(s,u,g){return hr(s,u,g,!1)}var rs=ts,ns=es;ye.Fragment=r,ye.jsx=rs,ye.jsxs=ns}()),ye}process.env.NODE_ENV==="production"?He.exports=wr():He.exports=Sr();var m=He.exports;const Y=class Y{static getDecimalLength(e){const t=e.toString(),r=t.indexOf(".");return r===-1?0:t.length-r-1}static toInteger(e,t){const r=e.toString().replace(".","");return Number(r)*Math.pow(10,t)}add(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const i=Y.getDecimalLength(t),a=Y.getDecimalLength(r),o=Math.max(i,a),l=Math.pow(10,o),f=Y.toInteger(t,o-i),c=Y.toInteger(r,o-a);return(f+c)/l})}sub(e,t){const r=Y.getDecimalLength(e),i=Y.getDecimalLength(t),a=Math.max(r,i),o=Math.pow(10,a);return Number(((e*o-t*o)/o).toFixed(a))}mul(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const i=Y.getDecimalLength(t)+Y.getDecimalLength(r),a=Number(t.toString().replace(".","")),o=Number(r.toString().replace(".",""));return a*o/Math.pow(10,i)})}div(e,t){if(t===0)throw new Error("除数不能为零");const r=1+Number.EPSILON,i=Y.getDecimalLength(e),a=Y.getDecimalLength(t),o=Number(e.toString().replace(".",""))*r,l=Number(t.toString().replace(".",""))*r;return o/l*Math.pow(10,a-i)}round(e,t=0){const r=Math.pow(10,t);return Math.round(e*r)/r}percent(e,t){return this.div(this.mul(e,t),100)}average(...e){return e.length===0?0:this.div(e.reduce((t,r)=>this.add(t,r)),e.length)}approxEqual(e,t,r=1e-10){return Math.abs(this.sub(e,t))<r}ln(e,t=10){if(e<=0)throw new Error("对数函数的输入必须为正数");if(e===1)return 0;let r=0;const i=Math.pow(10,-t-1);let a=this.div(this.sub(e,1),this.add(e,1));const o=this.mul(a,a);let l=a,f=1;do r=this.add(r,this.div(l,f)),l=this.mul(l,o),f+=2;while(Math.abs(l)>i);return this.round(this.mul(2,r),t)}exp(e,t=10){if(e===0)return 1;if(e===1)return Math.E;let r=1,i=1;const a=Math.pow(10,-t-1);let o=1,l=0;do l=r,i=this.div(this.mul(i,e),o),r=this.add(r,i),o++;while(Math.abs(i)>a&&!this.approxEqual(r,l,a));return this.round(r,t)}sqrt(e,t=10){if(e<0)throw new Error("负数平方根需使用复数计算");if(e===0)return 0;let r=e/2;const i=Math.pow(10,-t-1);do r=this.div(this.add(r,this.div(e,r)),2);while(Math.abs(this.sub(this.mul(r,r),e))>i);return this.round(r,t)}safeLog(e,t={}){const{safe:r=!0,replaceNeg:i=NaN,replaceZero:a=-1/0}=t;if(e>0)return Math.log(e);if(!r)throw new Error("Invalid input");return e===0?a:i}factorial(e){if(!Number.isInteger(e)||e<0)return NaN;if(e<0)return NaN;if(e>Number.MAX_SAFE_INTEGER){let r=BigInt(1);for(let i=2;i<=e;i++)r*=BigInt(i);return Number(r.toString())}if(e>170)return 1/0;if(Y.factorialCache.has(e))return Y.factorialCache.get(e);let t=1;for(let r=2;r<=e;r++){if(Y.factorialCache.has(r)){t=Y.factorialCache.get(r);continue}t=this.mul(t,r),Y.factorialCache.set(r,t)}return t}hypFunc(e,t,r=10){const i=this.exp(e,r+2),a=this.exp(-e,r+2);switch(t){case"sinh":return this.round(this.div(this.sub(i,a),2),r);case"cosh":return this.round(this.div(this.add(i,a),2),r);case"tanh":return this.round(this.div(this.sub(i,a),this.add(i,a)),r);default:throw new Error("不支持的函数类型")}}permComb(e,t,r){if(!Number.isInteger(e)||!Number.isInteger(t)||t>e||t<0)return NaN;let i=1;for(let a=0;a<t;a++)i=this.mul(i,e-a),r==="combination"&&(i=this.div(i,a+1));return i}gcd(e,t){for(e=Math.abs(e),t=Math.abs(t);t!==0;){const r=t;t=e%t,e=r}return e}lcm(e,t){return this.div(this.mul(e,t),this.gcd(e,t))}};b(Y,"factorialCache",new Map);let Ve=Y;const xr=new Ve,ke=class ke{constructor(){b(this,"callbacks",[]);b(this,"pending",!1);b(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),r=document.createTextNode(String(e));return t.observe(r,{characterData:!0}),()=>{e=(e+1)%2,r.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let r;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(i){console.error("Error in nextTick:",i)}else r&&r()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(i=>{r=i})}static nextTick(e,t){return ke.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new ke),this._instance}};b(ke,"_instance");let we=ke;const Cr=we.instance.nextTick.bind(we.instance);var ue={},Fe,qe,Se=vr.default;if(process.env.NODE_ENV==="production")qe=ue.createRoot=Se.createRoot,Fe=ue.hydrateRoot=Se.hydrateRoot;else{var Ne=Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe=ue.createRoot=function(n,e){Ne.usingClientEntryPoint=!0;try{return Se.createRoot(n,e)}finally{Ne.usingClientEntryPoint=!1}},Fe=ue.hydrateRoot=function(n,e,t){Ne.usingClientEntryPoint=!0;try{return Se.hydrateRoot(n,e,t)}finally{Ne.usingClientEntryPoint=!1}}}const Er=br({__proto__:null,get createRoot(){return qe},default:ue,get hydrateRoot(){return Fe}},[ue]),{createRoot:_r}=Er;let re=null,ie=null;function kr(){return re||(re=document.createElement("div"),document.body.appendChild(re)),re}function St(n,e){const t=kr();let r={open:!0,...e,onClosed:e.onClosed||(c=>{f(c)})};if(!ie)try{ie=_r(t)}catch(c){return console.error("Failed to create root:",c),{destroy:()=>{},update:()=>{}}}const i=()=>{ie&&(ie.unmount(),ie=null),re&&re.parentNode&&(re.parentNode.removeChild(re),re=null)},a=c=>{typeof r.onClosed=="function"&&r.onClosed(c),i()},o=c=>{ie&&ie.render(m.jsx(n,{...c}))},l=c=>{r=typeof c=="function"?c(r):{...r,...c},o(r)},f=c=>{r.open?(r={...r,open:!1,onClosed:d=>{e.onClosed&&e.onClosed(d||c),a(d||c)}},o(r)):console.warn("Modal is already closed.")};return o(r),{destroy:f,update:l}}const Rr=()=>{},xe=(n,e)=>{const t=n;let r=n;if(e.includes(" ")){r="";const i=e==null?void 0:e.split(" ");for(const a of i)r+=` ${t}-${a}`}else e&&(r=`${n}-${e}`);return r},jr=(n,e)=>{const t=e==null?void 0:e.split(".");let r=n;for(const i of t)r=r[i];return r},xt=n=>{for(const e in n)n[e]===null&&delete n[e];return n},Be=(n,e)=>{let t=null;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}},Or=(n,e)=>{let t=null,r=0;return(...i)=>{const a=Date.now();t?a-r>=e&&(n(...i),r=a):(n(...i),r=a,t=setTimeout(()=>{t=null},e))}};class Dr{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const r=f=>f.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);for(let f=0;f<3;f++){const c=parseInt(i[f]||"0",10),d=parseInt(a[f]||"0",10);if(c>d)return 1;if(c<d)return-1}const o=e.match(/-(.+)/),l=t.match(/-(.+)/);return o&&!l?-1:!o&&l?1:o&&l?o[1].localeCompare(l[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;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);return!i||i.length===0?!1:i.every(a=>{const o=a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!o)return!1;const l=o[1]||"==",f=o[2];if(!this.isValid(f))return!1;const c=this.compare(e,f);switch(l){case">":return c>0;case">=":return c>=0;case"<":return c<0;case"<=":return c<=0;case"^":return this.caretRange(e,f);case"~":return this.tildeRange(e,f);case"=":case"==":default:return c===0}})}static caretRange(e,t){const r=l=>l.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);let o=0;for(let l=0;l<a.length;l++)if(parseInt(a[l],10)!==0){o=l;break}for(let l=0;l<=o;l++){const f=parseInt(i[l]||"0",10),c=parseInt(a[l]||"0",10);if(f!==c)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const r=f=>f.replace(/^v/,"").split(/[-+]/)[0].split("."),i=r(e),a=r(t);for(let f=0;f<a.length-1;f++){const c=parseInt(i[f]||"0",10),d=parseInt(a[f]||"0",10);if(c!==d)return!1}const o=parseInt(i[a.length-1]||"0",10),l=parseInt(a[a.length-1]||"0",10);return o>=l}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const Ct=h.createContext({theme:{cssVar:!0,algorithm:[w.theme.defaultAlgorithm]}}),Nr=Ct.Provider;function Et(){return h.useContext(Ct)}function oe(n){const{theme:e}=Et();return m.jsx(w.ConfigProvider,{theme:e,children:n.children})}const _t=(n="")=>xe("items-row",n),kt=n=>n.items?m.jsx(oe,{children:m.jsx("div",{className:`${_t()} ${n.className||""}`,style:n.style,children:(n.items||[]).map((e,t)=>{const r=`${_t("item")} ${e.className}`;return e.render?m.jsx("span",{className:r,children:e.render()},t):m.jsx(w.Button,{className:r,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,cs="",Ce=(n="")=>xe("m-breadcrumb",n),Pr=n=>{const{routes:e,customItems:t,style:r,className:i,offsetTop:a=64,mainAppBaseUrl:o,microAppName:l}=n,f=I.useRef(null),c=I.useCallback(()=>{var p,x;(x=(p=f.current)==null?void 0:p.updatePosition)==null||x.call(p)},[]);I.useEffect(()=>(window.addEventListener("scroll",c,!0),()=>window.removeEventListener("scroll",c)),[c]);const d=I.useCallback(p=>{if(!p)return"";const x=p.replace(/^\/+/,"");return`/${[o==null?void 0:o.replace(/\/+$/,""),l==null?void 0:l.replace(/\/+$/,""),x].filter(Boolean).join("/")}`},[o,l]);return m.jsx(oe,{children:m.jsx("div",{className:`${Ce()} ${i||""}`,style:r,children:m.jsx(w.Affix,{ref:f,offsetTop:a,children:m.jsxs(w.Card,{className:Ce("container"),rootClassName:Ce("body"),variant:"borderless",children:[m.jsx(w.Breadcrumb,{className:Ce("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(p=>m.jsx(w.Breadcrumb.Item,{children:p.url?m.jsx("a",{href:`#${d(p.url)}`,children:p.name}):p.name},p.url||p.name))}),m.jsx("div",{className:Ce("custom-item-wrapper"),children:m.jsx(kt,{items:t})})]})})})})},Rt=n=>{const{data:e,title:t,column:r=3,lineHeight:i,align:a="left",itemLayout:o,colon:l=!0,bordered:f=!1,style:c,className:d,labelStyle:p,contentStyle:x}=n,D={...i?{lineHeight:`${i}px`}:{},textAlign:a,...o!=null&&o.label?{width:`${o.label}px`}:{},...p},T={...i?{lineHeight:`${i}px`}:{},...o!=null&&o.value?{width:`${o.value}px`}:{},...x};return m.jsx(oe,{children:m.jsx(w.Descriptions,{title:t,column:r,colon:l,bordered:f,style:c,className:d,labelStyle:D,contentStyle:T,children:e.map(($,V)=>{var A;return m.jsx(w.Descriptions.Item,{label:$.label,span:$.span,children:$.value||"-"},((A=$.label)==null?void 0:A.toString())||V)})})})};Rt.displayName="MDescriptions";const ls="",jt=h.createContext({});var Ot={exports:{}};/*!
33
33
  Copyright (c) 2018 Jed Watson.
34
34
  Licensed under the MIT License (MIT), see
35
35
  http://jedwatson.github.io/classnames
36
- */(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=i(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var l in a)e.call(a,l)&&a[l]&&(o=i(o,l));return o}function i(a,o){return o?a?a+" "+o:a+o:a}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Ot);var Pr=Ot.exports;const $r=yr(Pr),Mr={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},L=Math.round;function Ue(n,e){const t=n.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,t[i]||"",i);return t[3]?r[3]=t[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Dt=(n,e,t)=>t===0?n:n/100;function Ee(n,e){const t=e||255;return n>t?t:n<0?0:n}class fe{constructor(e){b(this,"isValid",!0);b(this,"r",0);b(this,"g",0);b(this,"b",0);b(this,"a",1);b(this,"_h");b(this,"_s");b(this,"_l");b(this,"_v");b(this,"_max");b(this,"_min");b(this,"_brightness");function t(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let i=function(a){return r.startsWith(a)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const a=Mr[r.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(e instanceof fe)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;else if(t("rgb"))this.r=Ee(e.r),this.g=Ee(e.g),this.b=Ee(e.b),this.a=typeof e.a=="number"?Ee(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=e(this.r),r=e(this.g),i=e(this.b);return .2126*t+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=L(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))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:t,s:r,l:i,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:t,s:r,l:i,a:this.a})}mix(e,t=50){const r=this._c(e),i=t/100,a=l=>(r[l]-this[l])*i+this[l],o={r:L(a("r")),g:L(a("g")),b:L(a("b")),a:L(a("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),i=a=>L((this[a]*this.a+t[a]*t.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=L(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=L(this.getSaturation()*100),r=L(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const i=this.clone();return i[e]=Ee(t,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(i,a){return parseInt(t[i]+t[a||i],16)}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)}fromHsl({h:e,s:t,l:r,a:i}){if(this._h=e%360,this._s=t,this._l=r,this.a=typeof i=="number"?i:1,t<=0){const x=L(r*255);this.r=x,this.g=x,this.b=x}let a=0,o=0,l=0;const f=e/60,c=(1-Math.abs(2*r-1))*t,d=c*(1-Math.abs(f%2-1));f>=0&&f<1?(a=c,o=d):f>=1&&f<2?(a=d,o=c):f>=2&&f<3?(o=c,l=d):f>=3&&f<4?(o=d,l=c):f>=4&&f<5?(a=d,l=c):f>=5&&f<6&&(a=c,l=d);const p=r-c/2;this.r=L((a+p)*255),this.g=L((o+p)*255),this.b=L((l+p)*255)}fromHsv({h:e,s:t,v:r,a:i}){this._h=e%360,this._s=t,this._v=r,this.a=typeof i=="number"?i:1;const a=L(r*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;const o=e/60,l=Math.floor(o),f=o-l,c=L(r*(1-t)*255),d=L(r*(1-t*f)*255),p=L(r*(1-t*(1-f))*255);switch(l){case 0:this.g=p,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=p;break;case 3:this.r=c,this.g=d;break;case 4:this.r=p,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(e){const t=Ue(e,Dt);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Ue(e,Dt);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Ue(e,(r,i)=>i.includes("%")?L(r/100*255):r);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const Te=2,Nt=.16,Ar=.05,zr=.05,Ir=.15,Tt=5,Pt=4,Lr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function $t(n,e,t){let r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-Te*e:Math.round(n.h)+Te*e:r=t?Math.round(n.h)+Te*e:Math.round(n.h)-Te*e,r<0?r+=360:r>=360&&(r-=360),r}function Mt(n,e,t){if(n.h===0&&n.s===0)return n.s;let r;return t?r=n.s-Nt*e:e===Pt?r=n.s+Nt:r=n.s+Ar*e,r>1&&(r=1),t&&e===Tt&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function At(n,e,t){let r;return t?r=n.v+zr*e:r=n.v-Ir*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Yr(n,e={}){const t=[],r=new fe(n),i=r.toHsv();for(let a=Tt;a>0;a-=1){const o=new fe({h:$t(i,a,!0),s:Mt(i,a,!0),v:At(i,a,!0)});t.push(o)}t.push(r);for(let a=1;a<=Pt;a+=1){const o=new fe({h:$t(i,a),s:Mt(i,a),v:At(i,a)});t.push(o)}return e.theme==="dark"?Lr.map(({index:a,amount:o})=>new fe(e.backgroundColor||"#141414").mix(t[a],o).toHexString()):t.map(a=>a.toHexString())}const We=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];We.primary=We[5];function Hr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vr(n,e){if(!n)return!1;if(n.contains)return n.contains(e);let t=e;for(;t;){if(t===n)return!0;t=t.parentNode}return!1}const zt="data-rc-order",It="data-rc-priority",Fr="rc-util-key",Ze=new Map;function Lt({mark:n}={}){return n?n.startsWith("data-")?n:`data-${n}`:Fr}function Ge(n){return n.attachTo?n.attachTo:document.querySelector("head")||document.body}function qr(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function Je(n){return Array.from((Ze.get(n)||n).children).filter(e=>e.tagName==="STYLE")}function Yt(n,e={}){if(!Hr())return null;const{csp:t,prepend:r,priority:i=0}=e,a=qr(r),o=a==="prependQueue",l=document.createElement("style");l.setAttribute(zt,a),o&&i&&l.setAttribute(It,`${i}`),t!=null&&t.nonce&&(l.nonce=t==null?void 0:t.nonce),l.innerHTML=n;const f=Ge(e),{firstChild:c}=f;if(r){if(o){const d=(e.styles||Je(f)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(zt)))return!1;const x=Number(p.getAttribute(It)||0);return i>=x});if(d.length)return f.insertBefore(l,d[d.length-1].nextSibling),l}f.insertBefore(l,c)}else f.appendChild(l);return l}function Br(n,e={}){let{styles:t}=e;return t||(t=Je(Ge(e))),t.find(r=>r.getAttribute(Lt(e))===n)}function Ur(n,e){const t=Ze.get(n);if(!t||!Vr(document,t)){const r=Yt("",e),{parentNode:i}=r;Ze.set(n,i),n.removeChild(r)}}function Wr(n,e,t={}){var f,c,d;const r=Ge(t),i=Je(r),a={...t,styles:i};Ur(r,a);const o=Br(e,a);if(o)return(f=a.csp)!=null&&f.nonce&&o.nonce!==((c=a.csp)==null?void 0:c.nonce)&&(o.nonce=(d=a.csp)==null?void 0:d.nonce),o.innerHTML!==n&&(o.innerHTML=n),o;const l=Yt(n,a);return l.setAttribute(Lt(a),e),l}function Ht(n){var e;return(e=n==null?void 0:n.getRootNode)==null?void 0:e.call(n)}function Zr(n){return Ht(n)instanceof ShadowRoot}function Gr(n){return Zr(n)?Ht(n):null}let Ke={};const Xe=[],Jr=n=>{Xe.push(n)};function Kr(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const t=Xe.reduce((r,i)=>i(r??"","warning"),e);t&&console.error(`Warning: ${t}`)}}function Xr(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const t=Xe.reduce((r,i)=>i(r??"","note"),e);t&&console.warn(`Note: ${t}`)}}function Qr(){Ke={}}function Vt(n,e,t){!e&&!Ke[t]&&(n(!1,t),Ke[t]=!0)}function Pe(n,e){Vt(Kr,n,e)}function en(n,e){Vt(Xr,n,e)}Pe.preMessage=Jr,Pe.resetWarned=Qr,Pe.noteOnce=en;function tn(n){return n.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function rn(n,e){Pe(n,`[@ant-design/icons] ${e}`)}function Ft(n){return typeof n=="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(typeof n.icon=="object"||typeof n.icon=="function")}function qt(n={}){return Object.keys(n).reduce((e,t)=>{const r=n[t];switch(t){case"class":e.className=r,delete e.class;break;default:delete e[t],e[tn(t)]=r}return e},{})}function Qe(n,e,t){return t?I.default.createElement(n.tag,{key:e,...qt(n.attrs),...t},(n.children||[]).map((r,i)=>Qe(r,`${e}-${n.tag}-${i}`))):I.default.createElement(n.tag,{key:e,...qt(n.attrs)},(n.children||[]).map((r,i)=>Qe(r,`${e}-${n.tag}-${i}`)))}function Bt(n){return Yr(n)[0]}function Ut(n){return n?Array.isArray(n)?n:[n]:[]}const nn=`
36
+ */(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=i(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var l in a)e.call(a,l)&&a[l]&&(o=i(o,l));return o}function i(a,o){return o?a?a+" "+o:a+o:a}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Ot);var Tr=Ot.exports;const $r=yr(Tr),Mr={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},L=Math.round;function Ue(n,e){const t=n.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,t[i]||"",i);return t[3]?r[3]=t[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Dt=(n,e,t)=>t===0?n:n/100;function Ee(n,e){const t=e||255;return n>t?t:n<0?0:n}class fe{constructor(e){b(this,"isValid",!0);b(this,"r",0);b(this,"g",0);b(this,"b",0);b(this,"a",1);b(this,"_h");b(this,"_s");b(this,"_l");b(this,"_v");b(this,"_max");b(this,"_min");b(this,"_brightness");function t(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let i=function(a){return r.startsWith(a)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const a=Mr[r.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(e instanceof fe)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;else if(t("rgb"))this.r=Ee(e.r),this.g=Ee(e.g),this.b=Ee(e.b),this.a=typeof e.a=="number"?Ee(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=e(this.r),r=e(this.g),i=e(this.b);return .2126*t+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=L(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))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:t,s:r,l:i,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:t,s:r,l:i,a:this.a})}mix(e,t=50){const r=this._c(e),i=t/100,a=l=>(r[l]-this[l])*i+this[l],o={r:L(a("r")),g:L(a("g")),b:L(a("b")),a:L(a("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),i=a=>L((this[a]*this.a+t[a]*t.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=L(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=L(this.getSaturation()*100),r=L(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const i=this.clone();return i[e]=Ee(t,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(i,a){return parseInt(t[i]+t[a||i],16)}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)}fromHsl({h:e,s:t,l:r,a:i}){if(this._h=e%360,this._s=t,this._l=r,this.a=typeof i=="number"?i:1,t<=0){const x=L(r*255);this.r=x,this.g=x,this.b=x}let a=0,o=0,l=0;const f=e/60,c=(1-Math.abs(2*r-1))*t,d=c*(1-Math.abs(f%2-1));f>=0&&f<1?(a=c,o=d):f>=1&&f<2?(a=d,o=c):f>=2&&f<3?(o=c,l=d):f>=3&&f<4?(o=d,l=c):f>=4&&f<5?(a=d,l=c):f>=5&&f<6&&(a=c,l=d);const p=r-c/2;this.r=L((a+p)*255),this.g=L((o+p)*255),this.b=L((l+p)*255)}fromHsv({h:e,s:t,v:r,a:i}){this._h=e%360,this._s=t,this._v=r,this.a=typeof i=="number"?i:1;const a=L(r*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;const o=e/60,l=Math.floor(o),f=o-l,c=L(r*(1-t)*255),d=L(r*(1-t*f)*255),p=L(r*(1-t*(1-f))*255);switch(l){case 0:this.g=p,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=p;break;case 3:this.r=c,this.g=d;break;case 4:this.r=p,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(e){const t=Ue(e,Dt);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Ue(e,Dt);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Ue(e,(r,i)=>i.includes("%")?L(r/100*255):r);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const Pe=2,Nt=.16,Ar=.05,zr=.05,Ir=.15,Pt=5,Tt=4,Lr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function $t(n,e,t){let r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-Pe*e:Math.round(n.h)+Pe*e:r=t?Math.round(n.h)+Pe*e:Math.round(n.h)-Pe*e,r<0?r+=360:r>=360&&(r-=360),r}function Mt(n,e,t){if(n.h===0&&n.s===0)return n.s;let r;return t?r=n.s-Nt*e:e===Tt?r=n.s+Nt:r=n.s+Ar*e,r>1&&(r=1),t&&e===Pt&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function At(n,e,t){let r;return t?r=n.v+zr*e:r=n.v-Ir*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Yr(n,e={}){const t=[],r=new fe(n),i=r.toHsv();for(let a=Pt;a>0;a-=1){const o=new fe({h:$t(i,a,!0),s:Mt(i,a,!0),v:At(i,a,!0)});t.push(o)}t.push(r);for(let a=1;a<=Tt;a+=1){const o=new fe({h:$t(i,a),s:Mt(i,a),v:At(i,a)});t.push(o)}return e.theme==="dark"?Lr.map(({index:a,amount:o})=>new fe(e.backgroundColor||"#141414").mix(t[a],o).toHexString()):t.map(a=>a.toHexString())}const We=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];We.primary=We[5];function Hr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vr(n,e){if(!n)return!1;if(n.contains)return n.contains(e);let t=e;for(;t;){if(t===n)return!0;t=t.parentNode}return!1}const zt="data-rc-order",It="data-rc-priority",Fr="rc-util-key",Ze=new Map;function Lt({mark:n}={}){return n?n.startsWith("data-")?n:`data-${n}`:Fr}function Ge(n){return n.attachTo?n.attachTo:document.querySelector("head")||document.body}function qr(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function Je(n){return Array.from((Ze.get(n)||n).children).filter(e=>e.tagName==="STYLE")}function Yt(n,e={}){if(!Hr())return null;const{csp:t,prepend:r,priority:i=0}=e,a=qr(r),o=a==="prependQueue",l=document.createElement("style");l.setAttribute(zt,a),o&&i&&l.setAttribute(It,`${i}`),t!=null&&t.nonce&&(l.nonce=t==null?void 0:t.nonce),l.innerHTML=n;const f=Ge(e),{firstChild:c}=f;if(r){if(o){const d=(e.styles||Je(f)).filter(p=>{if(!["prepend","prependQueue"].includes(p.getAttribute(zt)))return!1;const x=Number(p.getAttribute(It)||0);return i>=x});if(d.length)return f.insertBefore(l,d[d.length-1].nextSibling),l}f.insertBefore(l,c)}else f.appendChild(l);return l}function Br(n,e={}){let{styles:t}=e;return t||(t=Je(Ge(e))),t.find(r=>r.getAttribute(Lt(e))===n)}function Ur(n,e){const t=Ze.get(n);if(!t||!Vr(document,t)){const r=Yt("",e),{parentNode:i}=r;Ze.set(n,i),n.removeChild(r)}}function Wr(n,e,t={}){var f,c,d;const r=Ge(t),i=Je(r),a={...t,styles:i};Ur(r,a);const o=Br(e,a);if(o)return(f=a.csp)!=null&&f.nonce&&o.nonce!==((c=a.csp)==null?void 0:c.nonce)&&(o.nonce=(d=a.csp)==null?void 0:d.nonce),o.innerHTML!==n&&(o.innerHTML=n),o;const l=Yt(n,a);return l.setAttribute(Lt(a),e),l}function Ht(n){var e;return(e=n==null?void 0:n.getRootNode)==null?void 0:e.call(n)}function Zr(n){return Ht(n)instanceof ShadowRoot}function Gr(n){return Zr(n)?Ht(n):null}let Ke={};const Xe=[],Jr=n=>{Xe.push(n)};function Kr(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const t=Xe.reduce((r,i)=>i(r??"","warning"),e);t&&console.error(`Warning: ${t}`)}}function Xr(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const t=Xe.reduce((r,i)=>i(r??"","note"),e);t&&console.warn(`Note: ${t}`)}}function Qr(){Ke={}}function Vt(n,e,t){!e&&!Ke[t]&&(n(!1,t),Ke[t]=!0)}function Te(n,e){Vt(Kr,n,e)}function en(n,e){Vt(Xr,n,e)}Te.preMessage=Jr,Te.resetWarned=Qr,Te.noteOnce=en;function tn(n){return n.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function rn(n,e){Te(n,`[@ant-design/icons] ${e}`)}function Ft(n){return typeof n=="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(typeof n.icon=="object"||typeof n.icon=="function")}function qt(n={}){return Object.keys(n).reduce((e,t)=>{const r=n[t];switch(t){case"class":e.className=r,delete e.class;break;default:delete e[t],e[tn(t)]=r}return e},{})}function Qe(n,e,t){return t?I.default.createElement(n.tag,{key:e,...qt(n.attrs),...t},(n.children||[]).map((r,i)=>Qe(r,`${e}-${n.tag}-${i}`))):I.default.createElement(n.tag,{key:e,...qt(n.attrs)},(n.children||[]).map((r,i)=>Qe(r,`${e}-${n.tag}-${i}`)))}function Bt(n){return Yr(n)[0]}function Ut(n){return n?Array.isArray(n)?n:[n]:[]}const nn=`
37
37
  .anticon {
38
38
  display: inline-flex;
39
39
  align-items: center;
@@ -91,4 +91,4 @@ React keys must be passed directly to JSX without using spread:
91
91
  }
92
92
  `,sn=n=>{const{csp:e,prefixCls:t,layer:r}=h.useContext(jt);let i=nn;t&&(i=i.replace(/anticon/g,t)),r&&(i=`@layer ${r} {
93
93
  ${i}
94
- }`),h.useEffect(()=>{const a=n.current,o=Gr(a);Wr(i,"@ant-design-icons",{prepend:!r,csp:e,attachTo:o})},[])},_e={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function an({primaryColor:n,secondaryColor:e}){_e.primaryColor=n,_e.secondaryColor=e||Bt(n),_e.calculated=!!e}function on(){return{..._e}}const $e=n=>{const{icon:e,className:t,onClick:r,style:i,primaryColor:a,secondaryColor:o,...l}=n,f=I.useRef();let c=_e;if(a&&(c={primaryColor:a,secondaryColor:o||Bt(a)}),sn(f),rn(Ft(e),`icon should be icon definiton, but got ${e}`),!Ft(e))return null;let d=e;return d&&typeof d.icon=="function"&&(d={...d,icon:d.icon(c.primaryColor,c.secondaryColor)}),Qe(d.icon,`svg-${d.name}`,{className:t,onClick:r,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:f})};$e.displayName="IconReact",$e.getTwoToneColors=on,$e.setTwoToneColors=an;const et=$e;function Wt(n){const[e,t]=Ut(n);return et.setTwoToneColors({primaryColor:e,secondaryColor:t})}function cn(){const n=et.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}function tt(){return tt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},tt.apply(this,arguments)}Wt(We.primary);const Me=I.forwardRef((n,e)=>{const{className:t,icon:r,spin:i,rotate:a,tabIndex:o,onClick:l,twoToneColor:f,...c}=n,{prefixCls:d="anticon",rootClassName:p}=I.useContext(jt),x=$r(p,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!i||r.name==="loading"},t);let D=o;D===void 0&&l&&(D=-1);const P=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[$,V]=Ut(f);return I.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:e,tabIndex:D,onClick:l,className:x}),I.createElement(et,{icon:r,primaryColor:$,secondaryColor:V,style:P}))});Me.displayName="AntdIcon",Me.getTwoToneColor=cn,Me.setTwoToneColor=Wt;const rt=Me;var ln={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"};const un=ln;function nt(){return nt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},nt.apply(this,arguments)}const fn=(n,e)=>I.createElement(rt,nt({},n,{ref:e,icon:un})),Zt=I.forwardRef(fn);process.env.NODE_ENV!=="production"&&(Zt.displayName="CaretDownOutlined");const dn=Zt;var hn={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"};const gn=hn;function st(){return st=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},st.apply(this,arguments)}const pn=(n,e)=>I.createElement(rt,st({},n,{ref:e,icon:gn})),Gt=I.forwardRef(pn);process.env.NODE_ENV!=="production"&&(Gt.displayName="CaretUpOutlined");const mn=Gt;var bn={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"};const vn=bn;function at(){return at=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},at.apply(this,arguments)}const yn=(n,e)=>I.createElement(rt,at({},n,{ref:e,icon:vn})),Jt=I.forwardRef(yn);process.env.NODE_ENV!=="production"&&(Jt.displayName="UploadOutlined");const wn=Jt;var B=(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))(B||{});const{RangePicker:Sn}=w.DatePicker,R=class R{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case B.Input:case B.Password:case B.InputNumber:case B.Text:case B.Mentions:t=`请输入${e.label}`;break;case B.Select:case B.Checkbox:case B.Radio:case B.DatePicker:case B.RangePicker:case B.Cascader:case B.Upload:case B.TreeSelect:t=`请选择${e.label}`;break}return t}};b(R,"labelCol",{span:7}),b(R,"wrapperCol",{span:17}),b(R,"defaultRowGutter",24),b(R,"input",e=>m.jsx(w.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"password",e=>m.jsx(w.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"text",e=>m.jsx(w.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"inputNumber",e=>m.jsx(w.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"datePicker",e=>m.jsx(w.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"rangePicker",e=>m.jsx(Sn,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultArrayPlaceholder(e)})),b(R,"select",e=>m.jsx(w.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"radio",e=>m.jsx(w.Radio.Group,{disabled:e.disabled,...e.props})),b(R,"checkbox",e=>m.jsx(w.Checkbox.Group,{disabled:e.disabled,...e.props})),b(R,"upload",e=>m.jsx(w.Upload,{...e.props,children:e.children||m.jsxs(w.Button,{children:[m.jsx(wn,{})," 点击上传"]})})),b(R,"mentions",e=>m.jsx(w.Mentions,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"cascader",e=>m.jsx(w.Cascader,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"treeSelect",e=>m.jsx(w.TreeSelect,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)}));let ce=R;const it=(n="")=>xe("m-form",n);function ot(n){const{formProps:e,formItems:t=[],column:r=1,form:i,itemLayout:a,formRowProps:o}=n,l=(c,d)=>{if(c.render)return c.render(d);const p=ce[c.type];return c&&c.type&&p?p(c):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},f=c=>{const{show:d=!0}=c;if(!d)return null;const p=[...c.rules||[]];c.required&&p.push({required:!0,message:c.required});const x={labelCol:ce.labelCol,wrapperCol:ce.wrapperCol,...a,...c.itemLayout};return m.jsx(w.Col,{span:c.span||24/r,children:m.jsxs(w.Row,{className:"item-row",children:[m.jsx("div",{className:it("item-wrapper"),children:m.jsx(w.Form.Item,{label:c.label,name:c.id,rules:p,initialValue:c.initialValue,...x,...c.formItemProps,children:l(c,i)})}),c.suffix]})},`col-${c.id}`)};return m.jsx(oe,{children:m.jsx(w.Form,{form:i,...e,className:`${it()} ${e==null?void 0:e.className}`,children:m.jsx(w.Row,{gutter:ce.defaultRowGutter,...o,className:`${it("grid")} ${o==null?void 0:o.className}`,children:t.map(c=>f(c))})})})}ot.displayName="MForm";let ct="default";const Ae=[];let Kt=n=>{switch(n){case"light":return{algorithm:[w.theme.defaultAlgorithm]};case"dark":return{algorithm:[w.theme.darkAlgorithm]};default:return{algorithm:[w.theme.defaultAlgorithm]}}};const de=class de extends h.Component{constructor(){super(...arguments);b(this,"handleCancel",t=>{var r,i,a,o;(i=(r=this.props).onCancel)==null||i.call(r,t),(o=(a=this.props).onClosed)==null||o.call(a,{cancel:!0})});b(this,"handleOk",t=>{var r,i,a,o;(i=(r=this.props).onOk)==null||i.call(r,t),(o=(a=this.props).onClosed)==null||o.call(a,{ok:!0})})}getTheme(){const t=this.props.mode||ct;return Kt(t)}render(){return m.jsx(w.ConfigProvider,{theme:this.getTheme(),componentSize:"middle",componentDisabled:!1,children:m.jsx(w.Modal,{maskClosable:!1,open:this.props.open,onCancel:this.handleCancel,onOk:this.handleOk,okText:"确定",cancelText:"取消",...this.props,children:this.props.children})})}};b(de,"setMode",t=>{ct=t,Ae.forEach(r=>{r.update({mode:t})})}),b(de,"setThemeConfig",t=>{Kt=t}),b(de,"open",t=>{const r=St(de,{mode:ct,...t});Ae.push(r);const i=r.destroy;return r.destroy=(...a)=>{const o=Ae.indexOf(r);return o!==-1&&Ae.splice(o,1),i(...a)},r});let lt=de;const fs="",xn=13,ne=(n="")=>xe("m-search",n),Cn=n=>{const{className:e,searchItems:t=[],onSearch:r,defaultShowAll:i=!1,customButtons:a=[],form:o}=n,[l,f]=h.useState(i),[c]=w.Form.useForm(),d=h.useRef(null),p=o??c,x=S=>{const{keyCode:T}=S;T===xn&&P()};h.useEffect(()=>{const S=d.current;return S==null||S.addEventListener("keydown",x),()=>{S==null||S.removeEventListener("keydown",x)}},[]);const D=()=>{p==null||p.resetFields(),P(!0)},P=(S=!1)=>{p==null||p.validateFields().then(T=>{xt(T),r==null||r(T,S)})},$=h.useMemo(()=>(t==null?void 0:t.filter(S=>S.show!=!1).length)>2,[t]),V=()=>m.jsxs("div",{className:ne("btn-wrapper"),children:[(a==null?void 0:a.length)>0?m.jsx(m.Fragment,{children:a.map((S,T)=>m.jsx(w.Button,{className:ne("btn"),...S,children:S.children},`custom-btn-${T}`))}):m.jsxs(m.Fragment,{children:[m.jsx(w.Button,{className:ne("btn btn-reset"),onClick:D,children:"重置"}),m.jsx(w.Button,{className:ne("btn btn-search"),onClick:()=>P(),type:"primary",children:"搜索"})]}),$&&m.jsxs("div",{className:ne("btn btn-collapse"),onClick:()=>f(!l),children:[m.jsx("span",{children:l?"收起":"展开"}),l?m.jsx(mn,{}):m.jsx(dn,{})]})]}),A=t.map((S,T)=>{var F;const W={...S};return t.length>2&&T>=2&&!l&&(W.formItemProps={...S.formItemProps,style:{...(F=S.formItemProps)==null?void 0:F.style,display:"none"}}),W});return m.jsx(oe,{children:m.jsx("div",{className:`${ne("")} ${l?"":ne("collapsed")} ${e||""}`,ref:d,children:m.jsxs(w.Card,{children:[m.jsxs("div",{className:ne("form"),children:[m.jsx(ot,{form:p,formItems:A,column:3}),(!$||$&&!l)&&V()]}),$&&l&&m.jsx("div",{className:ne("footer"),children:V()})]})})})};function En(n){var t;const e=((t=n.columns)==null?void 0:t.map(r=>({...r,dataIndex:r.key})))??[];return m.jsxs(oe,{children:[m.jsx(w.Table,{rowKey:r=>r.id,...n,columns:e}),";"]})}const _n={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm",YMD_SLASH:"YYYY/MM/DD",YMD_SLASH_Hms:"YYYY/MM/DD HH:mm:ss"},Xt=10;class N{}b(N,"integerRegex",/^-?\d+$/),b(N,"positiveIntegerRegex",/^[1-9]\d*$/),b(N,"negativeIntegerRegex",/^-[1-9]\d*$/),b(N,"floatRegex",/^-?\d+(\.\d+)?$/),b(N,"letter",/^[a-zA-Z]+$/),b(N,"chinese",/^[\u4e00-\u9fa5]+$/),b(N,"number",/^[0-9]*$/),b(N,"username",/^[a-zA-Z]\w{3,15}$/),b(N,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),b(N,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),b(N,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),b(N,"phone",/^1[3-9]\d{9}$/),b(N,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),b(N,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),b(N,"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)$/),b(N,"bankCard",/^[1-9]\d{3,30}$/),b(N,"zipCode",/^[1-9]\d{5}$/),b(N,"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])$/),b(N,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),b(N,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),b(N,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),b(N,"date",/^(\d{4})-(\d{2})-(\d{2})$/);function kn(n,e){const[t,r]=h.useState(!1),[i,a]=h.useState(null),[o,l]=h.useState(null),f=h.useRef(void 0),c=h.useRef(0),d=()=>{var x;(x=f.current)==null||x.abort(),r(!1),a(null)},p=async(...x)=>{var $,V,A,S;const D=++c.current;d();const P=new AbortController;f.current=P;try{if(r(!0),a(null),e!=null&&e.onBefore&&!await(($=e==null?void 0:e.onBefore)==null?void 0:$.call(e,...x))){d();return}const T=x.length>=n.length?x:[...x,{signal:P.signal}],W=await n(...T);return!P.signal.aborted&&D===c.current&&(l(W),await((V=e==null?void 0:e.onSuccess)==null?void 0:V.call(e,W))),W}catch(T){throw!P.signal.aborted&&D===c.current&&(a(T),await((A=e==null?void 0:e.onError)==null?void 0:A.call(e,T))),T}finally{!P.signal.aborted&&D===c.current&&(r(!1),await((S=e==null?void 0:e.onFinally)==null?void 0:S.call(e)))}};return h.useEffect(()=>(e!=null&&e.autoRunArgs&&p(...e.autoRunArgs).catch(()=>{}),d),[JSON.stringify(e==null?void 0:e.autoRunArgs)]),{run:p,cancel:d,loading:t,error:i,data:o}}function Rn(n,e,t=!1){const r=h.useRef(void 0),i=h.useRef(n);h.useEffect(()=>{i.current=n},[n]);const a=h.useCallback(()=>{r.current&&(clearInterval(r.current),r.current=void 0)},[]),o=h.useCallback(()=>{a(),e!=null&&(r.current=setInterval(()=>i.current(),e))},[e,a]);return h.useEffect(()=>(t&&i.current(),o(),a),[e,o,a,t]),{start:o,clear:a,isRunning:!!r.current}}const jn=(n,e,t)=>{const{isReady:r=!0,dataSource:i=[],current:a=1,pageSize:o=10}=t||{},[l,f]=h.useState(a),[c,d]=h.useState(o),[p,x]=h.useState(i),[D,P]=h.useState(0),[$,V]=h.useState(!1),[A,S]=h.useState(!1),T=h.useRef(l),W=h.useRef(c),F=C=>{f(C),T.current=C},J=C=>{d(C),W.current=C},K=h.useRef(0),Re=async()=>{if(!r)return;let C=T.current,H=W.current;V(!0),K.current++;const X=K.current;try{let Z=Math.round((C-1)*H);Z<0&&(Z=0),H<1&&(H=1);let{dataSource:se,total:Q}=await n({limit:H,offset:Z,current:C});if(X!==K.current)return;if(c*(C-1)>=Q&&C!==1){C=1;const ge=Math.ceil(Q/c);if({dataSource:se,total:Q}=await n({limit:H,offset:Z,current:C}),X!==K.current)return;C=ge}x(se),F(C),J(H),P(Q)}catch(Z){if(console.error("usePagination error",Z),X!==K.current)return}finally{S(!0),V(!1)}},te=async C=>{C&&(x([]),F(a),J(o)),await Re()},ae=h.useCallback(Be(te,500),[te]),he=[...e||[],r];return h.useEffect(()=>{r&&ae(!0)},he),{tableProps:{loading:$,dataSource:p},loading:$,dataSource:p,paginationProps:{current:l,pageSize:c,total:D,showTotal(C){return`共 ${C} 条`},onChange:async(C,H)=>{F(C),J(H),await te()},onShowSizeChange:async(C,H)=>{J(C),F(H),await te()}},isFirstComplete:A,refresh:te,debounceRefresh:ae,setDataSource:x}};function On(){const n=window.location.href.split("?")[1]||"",e=new URLSearchParams(n);return Object.fromEntries(e.entries())}const Dn=n=>{const[e,t]=h.useState(n),r=h.useRef(e),i=h.useCallback(l=>{t(f=>{const c=typeof l=="function"?l(f):l,d={...f,...c};return r.current=d,d})},[]),a=h.useCallback(()=>r.current,[]),o=h.useCallback(()=>{t(n),r.current=n},[n]);return[e,i,a,o]};function Nn(n,e,t=!1){const r=h.useRef(void 0),i=h.useRef(n);h.useEffect(()=>{i.current=n},[n]);const a=h.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=void 0)},[]),o=h.useCallback(()=>{a(),e!=null&&(r.current=setTimeout(()=>i.current(),e))},[e,a]);return h.useEffect(()=>(t&&i.current(),o(),a),[e,o,a,t]),{start:o,clear:a,isRunning:!!r.current}}const Tn=(n,e,t)=>{const{isReady:r=!0,dataSource:i=[],current:a=1,pageSize:o=Xt}=t||{},[l,f]=h.useState(!1),[c,d]=h.useState(a),[p,x]=h.useState(o),[D,P]=h.useState(0),[$,V]=h.useState(!1),[A,S]=h.useState(i),T=h.useRef(c),W=h.useRef(p),F=h.useRef(0),J=h.useCallback(O=>{d(O),T.current=O},[]),K=h.useCallback(O=>{x(O),W.current=O},[]),Re=h.useCallback(O=>{S(O)},[]),te=h.useCallback(async O=>{if(!r)return;let q=T.current,C=W.current;V(!0),F.current+=1;const H=F.current;try{let X=Math.max(0,Math.round((q-1)*C));C=Math.max(1,C);let Z=await n({limit:C,offset:X,current:q});if(H!==F.current)return;let{dataSource:se,total:Q}=Z;if(p*(q-1)>=Q&&q!==1){const pe=Math.max(1,Math.ceil(Q/p));if(X=Math.max(0,Math.round((pe-1)*C)),Z=await n({limit:C,offset:X,current:pe}),H!==F.current)return;se=Z.dataSource,Q=Z.total,q=pe}const ge=O?se:[...A,...se];S(ge),J(q),K(C),P(Q),f(!0)}catch(X){if(console.error("useVirtualList error",X),H!==F.current)return}finally{H===F.current&&V(!1)}},[r,n,A,J,K]),ae=h.useCallback(async O=>{if(O)S([]),J(a),K(o);else{const q=p*c;if(D&&D<=q)return;J(c+1)}await te(O)},[c,te,p,a,o,J,K,D]),he=h.useCallback(Be(O=>{ae(O)},500),[ae]),je=h.useMemo(()=>[...e||[],r],[e,r]);return h.useEffect(()=>{r&&he(!0)},je),{loading:$,dataSource:A,paginationProps:{current:c,pageSize:p,total:D},isFirstComplete:l,refresh:ae,debounceRefresh:he,setDataSource:Re,setTotal:P}};v.CompThemeProvider=oe,v.DATE_FORMAT=_n,v.ItemsRow=kt,v.MBreadcrumb=Tr,v.MDescriptions=Rt,v.MForm=ot,v.MFormItemConst=ce,v.MFormItemTypeEnum=B,v.MSearch=Cn,v.MTable=En,v.MiModal=lt,v.MiThemeProvider=Nr,v.NextTick=we,v.PAGE_SIZE=Xt,v.PatternType=N,v.VersionUtil=Dr,v.cmx=xr,v.debounce=Be,v.getClassName=xe,v.getFieldsByPath=jr,v.nextTick=Cr,v.noop=Rr,v.openModal=St,v.removeNull=xt,v.throttle=Or,v.useFuncRequest=kn,v.useInterval=Rn,v.useMiThemeConfig=Et,v.usePagination=jn,v.useQuery=On,v.useReactive=Dn,v.useTimeout=Nn,v.useVirtualList=Tn,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
94
+ }`),h.useEffect(()=>{const a=n.current,o=Gr(a);Wr(i,"@ant-design-icons",{prepend:!r,csp:e,attachTo:o})},[])},_e={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function an({primaryColor:n,secondaryColor:e}){_e.primaryColor=n,_e.secondaryColor=e||Bt(n),_e.calculated=!!e}function on(){return{..._e}}const $e=n=>{const{icon:e,className:t,onClick:r,style:i,primaryColor:a,secondaryColor:o,...l}=n,f=I.useRef();let c=_e;if(a&&(c={primaryColor:a,secondaryColor:o||Bt(a)}),sn(f),rn(Ft(e),`icon should be icon definiton, but got ${e}`),!Ft(e))return null;let d=e;return d&&typeof d.icon=="function"&&(d={...d,icon:d.icon(c.primaryColor,c.secondaryColor)}),Qe(d.icon,`svg-${d.name}`,{className:t,onClick:r,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:f})};$e.displayName="IconReact",$e.getTwoToneColors=on,$e.setTwoToneColors=an;const et=$e;function Wt(n){const[e,t]=Ut(n);return et.setTwoToneColors({primaryColor:e,secondaryColor:t})}function cn(){const n=et.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}function tt(){return tt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},tt.apply(this,arguments)}Wt(We.primary);const Me=I.forwardRef((n,e)=>{const{className:t,icon:r,spin:i,rotate:a,tabIndex:o,onClick:l,twoToneColor:f,...c}=n,{prefixCls:d="anticon",rootClassName:p}=I.useContext(jt),x=$r(p,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!i||r.name==="loading"},t);let D=o;D===void 0&&l&&(D=-1);const T=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[$,V]=Ut(f);return I.createElement("span",tt({role:"img","aria-label":r.name},c,{ref:e,tabIndex:D,onClick:l,className:x}),I.createElement(et,{icon:r,primaryColor:$,secondaryColor:V,style:T}))});Me.displayName="AntdIcon",Me.getTwoToneColor=cn,Me.setTwoToneColor=Wt;const rt=Me;var ln={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"};const un=ln;function nt(){return nt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},nt.apply(this,arguments)}const fn=(n,e)=>I.createElement(rt,nt({},n,{ref:e,icon:un})),Zt=I.forwardRef(fn);process.env.NODE_ENV!=="production"&&(Zt.displayName="CaretDownOutlined");const dn=Zt;var hn={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"};const gn=hn;function st(){return st=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},st.apply(this,arguments)}const pn=(n,e)=>I.createElement(rt,st({},n,{ref:e,icon:gn})),Gt=I.forwardRef(pn);process.env.NODE_ENV!=="production"&&(Gt.displayName="CaretUpOutlined");const mn=Gt;var bn={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"};const vn=bn;function at(){return at=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},at.apply(this,arguments)}const yn=(n,e)=>I.createElement(rt,at({},n,{ref:e,icon:vn})),Jt=I.forwardRef(yn);process.env.NODE_ENV!=="production"&&(Jt.displayName="UploadOutlined");const wn=Jt;var B=(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))(B||{});const{RangePicker:Sn}=w.DatePicker,R=class R{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case B.Input:case B.Password:case B.InputNumber:case B.Text:case B.Mentions:t=`请输入${e.label}`;break;case B.Select:case B.Checkbox:case B.Radio:case B.DatePicker:case B.RangePicker:case B.Cascader:case B.Upload:case B.TreeSelect:t=`请选择${e.label}`;break}return t}};b(R,"labelCol",{span:7}),b(R,"wrapperCol",{span:17}),b(R,"defaultRowGutter",24),b(R,"input",e=>m.jsx(w.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"password",e=>m.jsx(w.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"text",e=>m.jsx(w.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"inputNumber",e=>m.jsx(w.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"datePicker",e=>m.jsx(w.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"rangePicker",e=>m.jsx(Sn,{disabled:e.disabled,...e.props,placeholder:e.placeholder||R.getDefaultArrayPlaceholder(e)})),b(R,"select",e=>m.jsx(w.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"radio",e=>m.jsx(w.Radio.Group,{disabled:e.disabled,...e.props})),b(R,"checkbox",e=>m.jsx(w.Checkbox.Group,{disabled:e.disabled,...e.props})),b(R,"upload",e=>m.jsx(w.Upload,{...e.props,children:e.children||m.jsxs(w.Button,{children:[m.jsx(wn,{})," 点击上传"]})})),b(R,"mentions",e=>m.jsx(w.Mentions,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"cascader",e=>m.jsx(w.Cascader,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)})),b(R,"treeSelect",e=>m.jsx(w.TreeSelect,{...e.props,placeholder:e.placeholder||R.getDefaultPlaceholder(e)}));let ce=R;const it=(n="")=>xe("m-form",n);function ot(n){const{formProps:e,formItems:t=[],column:r=1,form:i,itemLayout:a,formRowProps:o}=n,l=(c,d)=>{if(c.render)return c.render(d);const p=ce[c.type];return c&&c.type&&p?p(c):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},f=c=>{const{show:d=!0}=c;if(!d)return null;const p=[...c.rules||[]];c.required&&p.push({required:!0,message:c.required});const x={labelCol:ce.labelCol,wrapperCol:ce.wrapperCol,...a,...c.itemLayout};return m.jsx(w.Col,{span:c.span||24/r,children:m.jsxs(w.Row,{className:"item-row",children:[m.jsx("div",{className:it("item-wrapper"),children:m.jsx(w.Form.Item,{label:c.label,name:c.id,rules:p,initialValue:c.initialValue,...x,...c.formItemProps,children:l(c,i)})}),c.suffix]})},`col-${c.id}`)};return m.jsx(oe,{children:m.jsx(w.Form,{form:i,...e,className:`${it()} ${e==null?void 0:e.className}`,children:m.jsx(w.Row,{gutter:ce.defaultRowGutter,...o,className:`${it("grid")} ${o==null?void 0:o.className}`,children:t.map(c=>f(c))})})})}ot.displayName="MForm";let ct="default";const Ae=[];let Kt=n=>{switch(n){case"light":return{algorithm:[w.theme.defaultAlgorithm]};case"dark":return{algorithm:[w.theme.darkAlgorithm]};default:return{algorithm:[w.theme.defaultAlgorithm]}}};const de=class de extends h.Component{constructor(){super(...arguments);b(this,"handleCancel",t=>{var r,i,a,o;(i=(r=this.props).onCancel)==null||i.call(r,t),(o=(a=this.props).onClosed)==null||o.call(a,{cancel:!0})});b(this,"handleOk",t=>{var r,i,a,o;(i=(r=this.props).onOk)==null||i.call(r,t),(o=(a=this.props).onClosed)==null||o.call(a,{ok:!0})})}getTheme(){const t=this.props.mode||ct;return Kt(t)}render(){return m.jsx(w.ConfigProvider,{theme:this.getTheme(),componentSize:"middle",componentDisabled:!1,children:m.jsx(w.Modal,{maskClosable:!1,open:this.props.open,onCancel:this.handleCancel,onOk:this.handleOk,okText:"确定",cancelText:"取消",...this.props,children:this.props.children})})}};b(de,"setMode",t=>{ct=t,Ae.forEach(r=>{r.update({mode:t})})}),b(de,"setThemeConfig",t=>{Kt=t}),b(de,"open",t=>{const r=St(de,{mode:ct,...t});Ae.push(r);const i=r.destroy;return r.destroy=(...a)=>{const o=Ae.indexOf(r);return o!==-1&&Ae.splice(o,1),i(...a)},r});let lt=de;const fs="",xn=13,ne=(n="")=>xe("m-search",n),Cn=n=>{const{className:e,searchItems:t=[],onSearch:r,defaultShowAll:i=!1,customButtons:a=[],form:o}=n,[l,f]=h.useState(i),[c]=w.Form.useForm(),d=h.useRef(null),p=o??c,x=S=>{const{keyCode:P}=S;P===xn&&T()};h.useEffect(()=>{const S=d.current;return S==null||S.addEventListener("keydown",x),()=>{S==null||S.removeEventListener("keydown",x)}},[]);const D=()=>{p==null||p.resetFields(),T(!0)},T=(S=!1)=>{p==null||p.validateFields().then(P=>{xt(P),r==null||r(P,S)})},$=h.useMemo(()=>(t==null?void 0:t.filter(S=>S.show!=!1).length)>2,[t]),V=()=>m.jsxs("div",{className:ne("btn-wrapper"),children:[(a==null?void 0:a.length)>0?m.jsx(m.Fragment,{children:a.map((S,P)=>m.jsx(w.Button,{className:ne("btn"),...S,children:S.children},`custom-btn-${P}`))}):m.jsxs(m.Fragment,{children:[m.jsx(w.Button,{className:ne("btn btn-reset"),onClick:D,children:"重置"}),m.jsx(w.Button,{className:ne("btn btn-search"),onClick:()=>T(),type:"primary",children:"搜索"})]}),$&&m.jsxs("div",{className:ne("btn btn-collapse"),onClick:()=>f(!l),children:[m.jsx("span",{children:l?"收起":"展开"}),l?m.jsx(mn,{}):m.jsx(dn,{})]})]}),A=t.map((S,P)=>{var F;const W={...S};return t.length>2&&P>=2&&!l&&(W.formItemProps={...S.formItemProps,style:{...(F=S.formItemProps)==null?void 0:F.style,display:"none"}}),W});return m.jsx(oe,{children:m.jsx("div",{className:`${ne("")} ${l?"":ne("collapsed")} ${e||""}`,ref:d,children:m.jsxs(w.Card,{children:[m.jsxs("div",{className:ne("form"),children:[m.jsx(ot,{form:p,formItems:A,column:3}),(!$||$&&!l)&&V()]}),$&&l&&m.jsx("div",{className:ne("footer"),children:V()})]})})})};function En(n){var t;const e=((t=n.columns)==null?void 0:t.map(r=>({...r,dataIndex:r.key})))??[];return m.jsxs(oe,{children:[m.jsx(w.Table,{rowKey:r=>r.id,...n,columns:e}),";"]})}const _n={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm",YMD_SLASH:"YYYY/MM/DD",YMD_SLASH_Hms:"YYYY/MM/DD HH:mm:ss"},Xt=10;class N{}b(N,"integerRegex",/^-?\d+$/),b(N,"positiveIntegerRegex",/^[1-9]\d*$/),b(N,"negativeIntegerRegex",/^-[1-9]\d*$/),b(N,"floatRegex",/^-?\d+(\.\d+)?$/),b(N,"letter",/^[a-zA-Z]+$/),b(N,"chinese",/^[\u4e00-\u9fa5]+$/),b(N,"number",/^[0-9]*$/),b(N,"username",/^[a-zA-Z]\w{3,15}$/),b(N,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),b(N,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),b(N,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),b(N,"phone",/^1[3-9]\d{9}$/),b(N,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),b(N,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),b(N,"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)$/),b(N,"bankCard",/^[1-9]\d{3,30}$/),b(N,"zipCode",/^[1-9]\d{5}$/),b(N,"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])$/),b(N,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),b(N,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),b(N,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),b(N,"date",/^(\d{4})-(\d{2})-(\d{2})$/);function kn(n,e){const[t,r]=h.useState(!1),[i,a]=h.useState(null),[o,l]=h.useState(null),f=h.useRef(void 0),c=h.useRef(0),d=()=>{var x;(x=f.current)==null||x.abort(),r(!1),a(null)},p=async(...x)=>{var $,V,A,S;const D=++c.current;d();const T=new AbortController;f.current=T;try{if(r(!0),a(null),e!=null&&e.onBefore&&!await(($=e==null?void 0:e.onBefore)==null?void 0:$.call(e,...x))){d();return}const P=x.length>=n.length?x:[...x,{signal:T.signal}],W=await n(...P);return!T.signal.aborted&&D===c.current&&(l(W),await((V=e==null?void 0:e.onSuccess)==null?void 0:V.call(e,W))),W}catch(P){throw!T.signal.aborted&&D===c.current&&(a(P),await((A=e==null?void 0:e.onError)==null?void 0:A.call(e,P))),P}finally{!T.signal.aborted&&D===c.current&&(r(!1),await((S=e==null?void 0:e.onFinally)==null?void 0:S.call(e)))}};return h.useEffect(()=>(e!=null&&e.autoRunArgs&&p(...e.autoRunArgs).catch(()=>{}),d),[JSON.stringify(e==null?void 0:e.autoRunArgs)]),{run:p,cancel:d,loading:t,error:i,data:o}}function Rn(n,e,t=!1){const r=h.useRef(void 0),i=h.useRef(n);h.useEffect(()=>{i.current=n},[n]);const a=h.useCallback(()=>{r.current&&(clearInterval(r.current),r.current=void 0)},[]),o=h.useCallback(()=>{a(),e!=null&&(t&&i.current(),r.current=setInterval(()=>i.current(),e))},[e,a,t]);return h.useEffect(()=>a,[a]),{start:o,clear:a,isRunning:!!r.current}}const jn=(n,e,t)=>{const{isReady:r=!0,dataSource:i=[],current:a=1,pageSize:o=10}=t||{},[l,f]=h.useState(a),[c,d]=h.useState(o),[p,x]=h.useState(i),[D,T]=h.useState(0),[$,V]=h.useState(!1),[A,S]=h.useState(!1),P=h.useRef(l),W=h.useRef(c),F=C=>{f(C),P.current=C},J=C=>{d(C),W.current=C},K=h.useRef(0),Re=async()=>{if(!r)return;let C=P.current,H=W.current;V(!0),K.current++;const X=K.current;try{let Z=Math.round((C-1)*H);Z<0&&(Z=0),H<1&&(H=1);let{dataSource:se,total:Q}=await n({limit:H,offset:Z,current:C});if(X!==K.current)return;if(c*(C-1)>=Q&&C!==1){C=1;const ge=Math.ceil(Q/c);if({dataSource:se,total:Q}=await n({limit:H,offset:Z,current:C}),X!==K.current)return;C=ge}x(se),F(C),J(H),T(Q)}catch(Z){if(console.error("usePagination error",Z),X!==K.current)return}finally{S(!0),V(!1)}},te=async C=>{C&&(x([]),F(a),J(o)),await Re()},ae=h.useCallback(Be(te,500),[te]),he=[...e||[],r];return h.useEffect(()=>{r&&ae(!0)},he),{tableProps:{loading:$,dataSource:p},loading:$,dataSource:p,paginationProps:{current:l,pageSize:c,total:D,showTotal(C){return`共 ${C} 条`},onChange:async(C,H)=>{F(C),J(H),await te()},onShowSizeChange:async(C,H)=>{J(C),F(H),await te()}},isFirstComplete:A,refresh:te,debounceRefresh:ae,setDataSource:x}};function On(){const n=window.location.href.split("?")[1]||"",e=new URLSearchParams(n);return Object.fromEntries(e.entries())}const Dn=n=>{const[e,t]=h.useState(n),r=h.useRef(e),i=h.useCallback(l=>{t(f=>{const c=typeof l=="function"?l(f):l,d={...f,...c};return r.current=d,d})},[]),a=h.useCallback(()=>r.current,[]),o=h.useCallback(()=>{t(n),r.current=n},[n]);return[e,i,a,o]};function Nn(n,e,t=!1){const r=h.useRef(void 0),i=h.useRef(n);h.useEffect(()=>{i.current=n},[n]);const a=h.useCallback(()=>{r.current&&(clearInterval(r.current),r.current=void 0)},[]),o=h.useCallback(()=>{a(),e!=null&&(t&&i.current(),r.current=setTimeout(()=>i.current(),e))},[e,a,t]);return h.useEffect(()=>a,[a]),{start:o,clear:a,isRunning:!!r.current}}const Pn=(n,e,t)=>{const{isReady:r=!0,dataSource:i=[],current:a=1,pageSize:o=Xt}=t||{},[l,f]=h.useState(!1),[c,d]=h.useState(a),[p,x]=h.useState(o),[D,T]=h.useState(0),[$,V]=h.useState(!1),[A,S]=h.useState(i),P=h.useRef(c),W=h.useRef(p),F=h.useRef(0),J=h.useCallback(O=>{d(O),P.current=O},[]),K=h.useCallback(O=>{x(O),W.current=O},[]),Re=h.useCallback(O=>{S(O)},[]),te=h.useCallback(async O=>{if(!r)return;let q=P.current,C=W.current;V(!0),F.current+=1;const H=F.current;try{let X=Math.max(0,Math.round((q-1)*C));C=Math.max(1,C);let Z=await n({limit:C,offset:X,current:q});if(H!==F.current)return;let{dataSource:se,total:Q}=Z;if(p*(q-1)>=Q&&q!==1){const pe=Math.max(1,Math.ceil(Q/p));if(X=Math.max(0,Math.round((pe-1)*C)),Z=await n({limit:C,offset:X,current:pe}),H!==F.current)return;se=Z.dataSource,Q=Z.total,q=pe}const ge=O?se:[...A,...se];S(ge),J(q),K(C),T(Q),f(!0)}catch(X){if(console.error("useVirtualList error",X),H!==F.current)return}finally{H===F.current&&V(!1)}},[r,n,A,J,K]),ae=h.useCallback(async O=>{if(O)S([]),J(a),K(o);else{const q=p*c;if(D&&D<=q)return;J(c+1)}await te(O)},[c,te,p,a,o,J,K,D]),he=h.useCallback(Be(O=>{ae(O)},500),[ae]),je=h.useMemo(()=>[...e||[],r],[e,r]);return h.useEffect(()=>{r&&he(!0)},je),{loading:$,dataSource:A,paginationProps:{current:c,pageSize:p,total:D},isFirstComplete:l,refresh:ae,debounceRefresh:he,setDataSource:Re,setTotal:T}};v.CompThemeProvider=oe,v.DATE_FORMAT=_n,v.ItemsRow=kt,v.MBreadcrumb=Pr,v.MDescriptions=Rt,v.MForm=ot,v.MFormItemConst=ce,v.MFormItemTypeEnum=B,v.MSearch=Cn,v.MTable=En,v.MiModal=lt,v.MiThemeProvider=Nr,v.NextTick=we,v.PAGE_SIZE=Xt,v.PatternType=N,v.VersionUtil=Dr,v.cmx=xr,v.debounce=Be,v.getClassName=xe,v.getFieldsByPath=jr,v.nextTick=Cr,v.noop=Rr,v.openModal=St,v.removeNull=xt,v.throttle=Or,v.useFuncRequest=kn,v.useInterval=Rn,v.useMiThemeConfig=Et,v.usePagination=jn,v.useQuery=On,v.useReactive=Dn,v.useTimeout=Nn,v.useVirtualList=Pn,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mi-avalon/libs",
3
3
  "private": false,
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",