@mi-avalon/libs 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MSearch/index.d.ts +26 -0
- package/dist/components/MSearch/index.js +68 -0
- package/dist/components/MiModal/index.d.ts +15 -0
- package/dist/components/MiModal/index.js +70 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useFuncRequest.d.ts +16 -0
- package/dist/hooks/useFuncRequest.js +67 -0
- package/dist/hooks/useInterval.d.ts +8 -0
- package/dist/hooks/useInterval.js +30 -0
- package/dist/hooks/usePagination.d.ts +42 -0
- package/dist/hooks/usePagination.js +124 -0
- package/dist/hooks/useQuery.d.ts +3 -0
- package/dist/hooks/useQuery.js +6 -0
- package/dist/hooks/useReactive.d.ts +2 -0
- package/dist/hooks/useReactive.js +20 -0
- package/dist/hooks/useTimeout.d.ts +8 -0
- package/dist/hooks/useTimeout.js +30 -0
- package/dist/hooks/useVirtualList.d.ts +75 -0
- package/dist/hooks/useVirtualList.js +121 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1411 -932
- package/dist/index.js +1 -1
- package/dist/index.umd.js +16 -16
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/openModal.d.ts +15 -0
- package/dist/utils/openModal.js +98 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { theme as
|
|
7
|
-
|
|
1
|
+
var Gr = Object.defineProperty;
|
|
2
|
+
var Jr = (r, e, t) => e in r ? Gr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var m = (r, e, t) => (Jr(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as U from "react";
|
|
5
|
+
import Le, { createContext as Qt, useContext as er, useEffect as oe, Component as Xr, useState as Y, useRef as K, useCallback as se } from "react";
|
|
6
|
+
import { theme as He, ConfigProvider as tr, Button as Pe, Affix as Qr, Card as rr, Breadcrumb as $t, Descriptions as It, Input as rt, InputNumber as en, DatePicker as nr, Select as tn, Radio as rn, Checkbox as nn, Upload as an, Mentions as sn, Cascader as on, TreeSelect as cn, Form as ot, Row as ln, Col as un, Modal as fn, Table as dn } from "antd";
|
|
7
|
+
import hn from "react-dom";
|
|
8
|
+
function gn(r, e) {
|
|
9
|
+
for (var t = 0; t < e.length; t++) {
|
|
10
|
+
const n = e[t];
|
|
11
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
12
|
+
for (const s in n)
|
|
13
|
+
if (s !== "default" && !(s in r)) {
|
|
14
|
+
const o = Object.getOwnPropertyDescriptor(n, s);
|
|
15
|
+
o && Object.defineProperty(r, s, o.get ? o : {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
get: () => n[s]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
23
|
+
}
|
|
24
|
+
function pn(r) {
|
|
8
25
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
9
26
|
}
|
|
10
|
-
var
|
|
27
|
+
var it = { exports: {} }, Re = {};
|
|
11
28
|
/**
|
|
12
29
|
* @license React
|
|
13
30
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,25 +34,25 @@ var Te = { exports: {} }, X = {};
|
|
|
17
34
|
* This source code is licensed under the MIT license found in the
|
|
18
35
|
* LICENSE file in the root directory of this source tree.
|
|
19
36
|
*/
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
var r =
|
|
26
|
-
function
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
for (
|
|
30
|
-
n.call(u,
|
|
37
|
+
var Mt;
|
|
38
|
+
function mn() {
|
|
39
|
+
if (Mt)
|
|
40
|
+
return Re;
|
|
41
|
+
Mt = 1;
|
|
42
|
+
var r = Le, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
|
+
function i(l, u, c) {
|
|
44
|
+
var g, d = {}, b = null, O = null;
|
|
45
|
+
c !== void 0 && (b = "" + c), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (O = u.ref);
|
|
46
|
+
for (g in u)
|
|
47
|
+
n.call(u, g) && !o.hasOwnProperty(g) && (d[g] = u[g]);
|
|
31
48
|
if (l && l.defaultProps)
|
|
32
|
-
for (
|
|
33
|
-
|
|
34
|
-
return { $$typeof: e, type: l, key:
|
|
49
|
+
for (g in u = l.defaultProps, u)
|
|
50
|
+
d[g] === void 0 && (d[g] = u[g]);
|
|
51
|
+
return { $$typeof: e, type: l, key: b, ref: O, props: d, _owner: s.current };
|
|
35
52
|
}
|
|
36
|
-
return
|
|
53
|
+
return Re.Fragment = t, Re.jsx = i, Re.jsxs = i, Re;
|
|
37
54
|
}
|
|
38
|
-
var
|
|
55
|
+
var _e = {};
|
|
39
56
|
/**
|
|
40
57
|
* @license React
|
|
41
58
|
* react-jsx-runtime.development.js
|
|
@@ -45,57 +62,57 @@ var Q = {};
|
|
|
45
62
|
* This source code is licensed under the MIT license found in the
|
|
46
63
|
* LICENSE file in the root directory of this source tree.
|
|
47
64
|
*/
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
return
|
|
51
|
-
var r =
|
|
52
|
-
function
|
|
65
|
+
var Yt;
|
|
66
|
+
function vn() {
|
|
67
|
+
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
+
var r = Le, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), T = Symbol.iterator, N = "@@iterator";
|
|
69
|
+
function z(a) {
|
|
53
70
|
if (a === null || typeof a != "object")
|
|
54
71
|
return null;
|
|
55
|
-
var
|
|
56
|
-
return typeof
|
|
72
|
+
var f = T && a[T] || a[N];
|
|
73
|
+
return typeof f == "function" ? f : null;
|
|
57
74
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
75
|
+
var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
+
function y(a) {
|
|
60
77
|
{
|
|
61
|
-
for (var
|
|
62
|
-
|
|
63
|
-
|
|
78
|
+
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
|
|
79
|
+
h[v - 1] = arguments[v];
|
|
80
|
+
E("error", a, h);
|
|
64
81
|
}
|
|
65
82
|
}
|
|
66
|
-
function
|
|
83
|
+
function E(a, f, h) {
|
|
67
84
|
{
|
|
68
|
-
var v =
|
|
69
|
-
|
|
70
|
-
var
|
|
71
|
-
return String(
|
|
85
|
+
var v = j.ReactDebugCurrentFrame, w = v.getStackAddendum();
|
|
86
|
+
w !== "" && (f += "%s", h = h.concat([w]));
|
|
87
|
+
var _ = h.map(function(C) {
|
|
88
|
+
return String(C);
|
|
72
89
|
});
|
|
73
|
-
|
|
90
|
+
_.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, _);
|
|
74
91
|
}
|
|
75
92
|
}
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a ===
|
|
93
|
+
var I = !1, W = !1, re = !1, G = !1, xe = !1, J;
|
|
94
|
+
J = Symbol.for("react.module.reference");
|
|
95
|
+
function ie(a) {
|
|
96
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === o || xe || a === s || a === c || a === g || G || a === O || I || W || re || typeof a == "object" && a !== null && (a.$$typeof === b || a.$$typeof === d || a.$$typeof === i || a.$$typeof === l || a.$$typeof === u || // This needs to include all possible module reference object
|
|
80
97
|
// types supported by any Flight configuration anywhere since
|
|
81
98
|
// we don't know which Flight build this will end up being used
|
|
82
99
|
// with.
|
|
83
|
-
a.$$typeof ===
|
|
100
|
+
a.$$typeof === J || a.getModuleId !== void 0));
|
|
84
101
|
}
|
|
85
|
-
function
|
|
102
|
+
function Ce(a, f, h) {
|
|
86
103
|
var v = a.displayName;
|
|
87
104
|
if (v)
|
|
88
105
|
return v;
|
|
89
|
-
var
|
|
90
|
-
return
|
|
106
|
+
var w = f.displayName || f.name || "";
|
|
107
|
+
return w !== "" ? h + "(" + w + ")" : h;
|
|
91
108
|
}
|
|
92
|
-
function
|
|
109
|
+
function H(a) {
|
|
93
110
|
return a.displayName || "Context";
|
|
94
111
|
}
|
|
95
|
-
function
|
|
112
|
+
function k(a) {
|
|
96
113
|
if (a == null)
|
|
97
114
|
return null;
|
|
98
|
-
if (typeof a.tag == "number" &&
|
|
115
|
+
if (typeof a.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
99
116
|
return a.displayName || a.name || null;
|
|
100
117
|
if (typeof a == "string")
|
|
101
118
|
return a;
|
|
@@ -104,32 +121,32 @@ function Fr() {
|
|
|
104
121
|
return "Fragment";
|
|
105
122
|
case t:
|
|
106
123
|
return "Portal";
|
|
107
|
-
case
|
|
124
|
+
case o:
|
|
108
125
|
return "Profiler";
|
|
109
|
-
case
|
|
126
|
+
case s:
|
|
110
127
|
return "StrictMode";
|
|
111
|
-
case
|
|
128
|
+
case c:
|
|
112
129
|
return "Suspense";
|
|
113
|
-
case
|
|
130
|
+
case g:
|
|
114
131
|
return "SuspenseList";
|
|
115
132
|
}
|
|
116
133
|
if (typeof a == "object")
|
|
117
134
|
switch (a.$$typeof) {
|
|
118
135
|
case l:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
123
|
-
return
|
|
136
|
+
var f = a;
|
|
137
|
+
return H(f) + ".Consumer";
|
|
138
|
+
case i:
|
|
139
|
+
var h = a;
|
|
140
|
+
return H(h._context) + ".Provider";
|
|
124
141
|
case u:
|
|
125
|
-
return
|
|
126
|
-
case
|
|
142
|
+
return Ce(a, a.render, "ForwardRef");
|
|
143
|
+
case d:
|
|
127
144
|
var v = a.displayName || null;
|
|
128
|
-
return v !== null ? v :
|
|
129
|
-
case
|
|
130
|
-
var
|
|
145
|
+
return v !== null ? v : k(a.type) || "Memo";
|
|
146
|
+
case b: {
|
|
147
|
+
var w = a, _ = w._payload, C = w._init;
|
|
131
148
|
try {
|
|
132
|
-
return
|
|
149
|
+
return k(C(_));
|
|
133
150
|
} catch {
|
|
134
151
|
return null;
|
|
135
152
|
}
|
|
@@ -137,18 +154,18 @@ function Fr() {
|
|
|
137
154
|
}
|
|
138
155
|
return null;
|
|
139
156
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
157
|
+
var L = Object.assign, S = 0, $, Q, B, ce, ee, ke, yt;
|
|
158
|
+
function xt() {
|
|
142
159
|
}
|
|
143
|
-
|
|
144
|
-
function
|
|
160
|
+
xt.__reactDisabledLog = !0;
|
|
161
|
+
function Sr() {
|
|
145
162
|
{
|
|
146
|
-
if (
|
|
147
|
-
|
|
163
|
+
if (S === 0) {
|
|
164
|
+
$ = console.log, Q = console.info, B = console.warn, ce = console.error, ee = console.group, ke = console.groupCollapsed, yt = console.groupEnd;
|
|
148
165
|
var a = {
|
|
149
166
|
configurable: !0,
|
|
150
167
|
enumerable: !0,
|
|
151
|
-
value:
|
|
168
|
+
value: xt,
|
|
152
169
|
writable: !0
|
|
153
170
|
};
|
|
154
171
|
Object.defineProperties(console, {
|
|
@@ -161,336 +178,336 @@ function Fr() {
|
|
|
161
178
|
groupEnd: a
|
|
162
179
|
});
|
|
163
180
|
}
|
|
164
|
-
|
|
181
|
+
S++;
|
|
165
182
|
}
|
|
166
183
|
}
|
|
167
|
-
function
|
|
184
|
+
function Rr() {
|
|
168
185
|
{
|
|
169
|
-
if (
|
|
186
|
+
if (S--, S === 0) {
|
|
170
187
|
var a = {
|
|
171
188
|
configurable: !0,
|
|
172
189
|
enumerable: !0,
|
|
173
190
|
writable: !0
|
|
174
191
|
};
|
|
175
192
|
Object.defineProperties(console, {
|
|
176
|
-
log:
|
|
177
|
-
value:
|
|
193
|
+
log: L({}, a, {
|
|
194
|
+
value: $
|
|
178
195
|
}),
|
|
179
|
-
info:
|
|
180
|
-
value:
|
|
196
|
+
info: L({}, a, {
|
|
197
|
+
value: Q
|
|
181
198
|
}),
|
|
182
|
-
warn:
|
|
183
|
-
value:
|
|
199
|
+
warn: L({}, a, {
|
|
200
|
+
value: B
|
|
184
201
|
}),
|
|
185
|
-
error:
|
|
186
|
-
value:
|
|
202
|
+
error: L({}, a, {
|
|
203
|
+
value: ce
|
|
187
204
|
}),
|
|
188
|
-
group:
|
|
189
|
-
value:
|
|
205
|
+
group: L({}, a, {
|
|
206
|
+
value: ee
|
|
190
207
|
}),
|
|
191
|
-
groupCollapsed:
|
|
192
|
-
value:
|
|
208
|
+
groupCollapsed: L({}, a, {
|
|
209
|
+
value: ke
|
|
193
210
|
}),
|
|
194
|
-
groupEnd:
|
|
195
|
-
value:
|
|
211
|
+
groupEnd: L({}, a, {
|
|
212
|
+
value: yt
|
|
196
213
|
})
|
|
197
214
|
});
|
|
198
215
|
}
|
|
199
|
-
|
|
216
|
+
S < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
200
217
|
}
|
|
201
218
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
219
|
+
var Ze = j.ReactCurrentDispatcher, qe;
|
|
220
|
+
function De(a, f, h) {
|
|
204
221
|
{
|
|
205
|
-
if (
|
|
222
|
+
if (qe === void 0)
|
|
206
223
|
try {
|
|
207
224
|
throw Error();
|
|
208
|
-
} catch (
|
|
209
|
-
var v =
|
|
210
|
-
|
|
225
|
+
} catch (w) {
|
|
226
|
+
var v = w.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
+
qe = v && v[1] || "";
|
|
211
228
|
}
|
|
212
229
|
return `
|
|
213
|
-
` +
|
|
230
|
+
` + qe + a;
|
|
214
231
|
}
|
|
215
232
|
}
|
|
216
|
-
var
|
|
233
|
+
var Ke = !1, Ae;
|
|
217
234
|
{
|
|
218
|
-
var
|
|
219
|
-
|
|
235
|
+
var _r = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
Ae = new _r();
|
|
220
237
|
}
|
|
221
|
-
function
|
|
222
|
-
if (!a ||
|
|
238
|
+
function Ct(a, f) {
|
|
239
|
+
if (!a || Ke)
|
|
223
240
|
return "";
|
|
224
241
|
{
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
242
|
+
var h = Ae.get(a);
|
|
243
|
+
if (h !== void 0)
|
|
244
|
+
return h;
|
|
228
245
|
}
|
|
229
246
|
var v;
|
|
230
|
-
|
|
231
|
-
var
|
|
247
|
+
Ke = !0;
|
|
248
|
+
var w = Error.prepareStackTrace;
|
|
232
249
|
Error.prepareStackTrace = void 0;
|
|
233
|
-
var
|
|
234
|
-
|
|
250
|
+
var _;
|
|
251
|
+
_ = Ze.current, Ze.current = null, Sr();
|
|
235
252
|
try {
|
|
236
|
-
if (
|
|
237
|
-
var
|
|
253
|
+
if (f) {
|
|
254
|
+
var C = function() {
|
|
238
255
|
throw Error();
|
|
239
256
|
};
|
|
240
|
-
if (Object.defineProperty(
|
|
257
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
241
258
|
set: function() {
|
|
242
259
|
throw Error();
|
|
243
260
|
}
|
|
244
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
245
262
|
try {
|
|
246
|
-
Reflect.construct(
|
|
247
|
-
} catch (
|
|
248
|
-
v =
|
|
263
|
+
Reflect.construct(C, []);
|
|
264
|
+
} catch (Z) {
|
|
265
|
+
v = Z;
|
|
249
266
|
}
|
|
250
|
-
Reflect.construct(a, [],
|
|
267
|
+
Reflect.construct(a, [], C);
|
|
251
268
|
} else {
|
|
252
269
|
try {
|
|
253
|
-
|
|
254
|
-
} catch (
|
|
255
|
-
v =
|
|
270
|
+
C.call();
|
|
271
|
+
} catch (Z) {
|
|
272
|
+
v = Z;
|
|
256
273
|
}
|
|
257
|
-
a.call(
|
|
274
|
+
a.call(C.prototype);
|
|
258
275
|
}
|
|
259
276
|
} else {
|
|
260
277
|
try {
|
|
261
278
|
throw Error();
|
|
262
|
-
} catch (
|
|
263
|
-
v =
|
|
279
|
+
} catch (Z) {
|
|
280
|
+
v = Z;
|
|
264
281
|
}
|
|
265
282
|
a();
|
|
266
283
|
}
|
|
267
|
-
} catch (
|
|
268
|
-
if (
|
|
269
|
-
for (var
|
|
270
|
-
`),
|
|
271
|
-
`),
|
|
272
|
-
|
|
273
|
-
for (;
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
284
|
+
} catch (Z) {
|
|
285
|
+
if (Z && v && typeof Z.stack == "string") {
|
|
286
|
+
for (var x = Z.stack.split(`
|
|
287
|
+
`), V = v.stack.split(`
|
|
288
|
+
`), D = x.length - 1, A = V.length - 1; D >= 1 && A >= 0 && x[D] !== V[A]; )
|
|
289
|
+
A--;
|
|
290
|
+
for (; D >= 1 && A >= 0; D--, A--)
|
|
291
|
+
if (x[D] !== V[A]) {
|
|
292
|
+
if (D !== 1 || A !== 1)
|
|
276
293
|
do
|
|
277
|
-
if (
|
|
278
|
-
var
|
|
279
|
-
` +
|
|
280
|
-
return a.displayName &&
|
|
294
|
+
if (D--, A--, A < 0 || x[D] !== V[A]) {
|
|
295
|
+
var X = `
|
|
296
|
+
` + x[D].replace(" at new ", " at ");
|
|
297
|
+
return a.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", a.displayName)), typeof a == "function" && Ae.set(a, X), X;
|
|
281
298
|
}
|
|
282
|
-
while (
|
|
299
|
+
while (D >= 1 && A >= 0);
|
|
283
300
|
break;
|
|
284
301
|
}
|
|
285
302
|
}
|
|
286
303
|
} finally {
|
|
287
|
-
|
|
304
|
+
Ke = !1, Ze.current = _, Rr(), Error.prepareStackTrace = w;
|
|
288
305
|
}
|
|
289
|
-
var
|
|
290
|
-
return typeof a == "function" &&
|
|
306
|
+
var he = a ? a.displayName || a.name : "", le = he ? De(he) : "";
|
|
307
|
+
return typeof a == "function" && Ae.set(a, le), le;
|
|
291
308
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
309
|
+
function Er(a, f, h) {
|
|
310
|
+
return Ct(a, !1);
|
|
294
311
|
}
|
|
295
|
-
function
|
|
296
|
-
var
|
|
297
|
-
return !!(
|
|
312
|
+
function Or(a) {
|
|
313
|
+
var f = a.prototype;
|
|
314
|
+
return !!(f && f.isReactComponent);
|
|
298
315
|
}
|
|
299
|
-
function
|
|
316
|
+
function $e(a, f, h) {
|
|
300
317
|
if (a == null)
|
|
301
318
|
return "";
|
|
302
319
|
if (typeof a == "function")
|
|
303
|
-
return
|
|
320
|
+
return Ct(a, Or(a));
|
|
304
321
|
if (typeof a == "string")
|
|
305
|
-
return
|
|
322
|
+
return De(a);
|
|
306
323
|
switch (a) {
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
324
|
+
case c:
|
|
325
|
+
return De("Suspense");
|
|
326
|
+
case g:
|
|
327
|
+
return De("SuspenseList");
|
|
311
328
|
}
|
|
312
329
|
if (typeof a == "object")
|
|
313
330
|
switch (a.$$typeof) {
|
|
314
331
|
case u:
|
|
315
|
-
return
|
|
316
|
-
case
|
|
317
|
-
return
|
|
318
|
-
case
|
|
319
|
-
var v = a,
|
|
332
|
+
return Er(a.render);
|
|
333
|
+
case d:
|
|
334
|
+
return $e(a.type, f, h);
|
|
335
|
+
case b: {
|
|
336
|
+
var v = a, w = v._payload, _ = v._init;
|
|
320
337
|
try {
|
|
321
|
-
return
|
|
338
|
+
return $e(_(w), f, h);
|
|
322
339
|
} catch {
|
|
323
340
|
}
|
|
324
341
|
}
|
|
325
342
|
}
|
|
326
343
|
return "";
|
|
327
344
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
345
|
+
var we = Object.prototype.hasOwnProperty, wt = {}, St = j.ReactDebugCurrentFrame;
|
|
346
|
+
function Ie(a) {
|
|
330
347
|
if (a) {
|
|
331
|
-
var
|
|
332
|
-
|
|
348
|
+
var f = a._owner, h = $e(a.type, a._source, f ? f.type : null);
|
|
349
|
+
St.setExtraStackFrame(h);
|
|
333
350
|
} else
|
|
334
|
-
|
|
351
|
+
St.setExtraStackFrame(null);
|
|
335
352
|
}
|
|
336
|
-
function
|
|
353
|
+
function jr(a, f, h, v, w) {
|
|
337
354
|
{
|
|
338
|
-
var
|
|
339
|
-
for (var
|
|
340
|
-
if (
|
|
341
|
-
var
|
|
355
|
+
var _ = Function.call.bind(we);
|
|
356
|
+
for (var C in a)
|
|
357
|
+
if (_(a, C)) {
|
|
358
|
+
var x = void 0;
|
|
342
359
|
try {
|
|
343
|
-
if (typeof a[
|
|
344
|
-
var
|
|
345
|
-
throw
|
|
360
|
+
if (typeof a[C] != "function") {
|
|
361
|
+
var V = Error((v || "React class") + ": " + h + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
+
throw V.name = "Invariant Violation", V;
|
|
346
363
|
}
|
|
347
|
-
|
|
348
|
-
} catch (
|
|
349
|
-
|
|
364
|
+
x = a[C](f, C, v, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
+
} catch (D) {
|
|
366
|
+
x = D;
|
|
350
367
|
}
|
|
351
|
-
|
|
368
|
+
x && !(x instanceof Error) && (Ie(w), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", h, C, typeof x), Ie(null)), x instanceof Error && !(x.message in wt) && (wt[x.message] = !0, Ie(w), y("Failed %s type: %s", h, x.message), Ie(null));
|
|
352
369
|
}
|
|
353
370
|
}
|
|
354
371
|
}
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return
|
|
372
|
+
var Pr = Array.isArray;
|
|
373
|
+
function Ge(a) {
|
|
374
|
+
return Pr(a);
|
|
358
375
|
}
|
|
359
|
-
function
|
|
376
|
+
function Tr(a) {
|
|
360
377
|
{
|
|
361
|
-
var
|
|
362
|
-
return
|
|
378
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, h = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
379
|
+
return h;
|
|
363
380
|
}
|
|
364
381
|
}
|
|
365
|
-
function
|
|
382
|
+
function Nr(a) {
|
|
366
383
|
try {
|
|
367
|
-
return
|
|
384
|
+
return Rt(a), !1;
|
|
368
385
|
} catch {
|
|
369
386
|
return !0;
|
|
370
387
|
}
|
|
371
388
|
}
|
|
372
|
-
function
|
|
389
|
+
function Rt(a) {
|
|
373
390
|
return "" + a;
|
|
374
391
|
}
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
392
|
+
function _t(a) {
|
|
393
|
+
if (Nr(a))
|
|
394
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(a)), Rt(a);
|
|
378
395
|
}
|
|
379
|
-
var
|
|
396
|
+
var Se = j.ReactCurrentOwner, kr = {
|
|
380
397
|
key: !0,
|
|
381
398
|
ref: !0,
|
|
382
399
|
__self: !0,
|
|
383
400
|
__source: !0
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
401
|
+
}, Et, Ot, Je;
|
|
402
|
+
Je = {};
|
|
403
|
+
function Dr(a) {
|
|
404
|
+
if (we.call(a, "ref")) {
|
|
405
|
+
var f = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
406
|
+
if (f && f.isReactWarning)
|
|
390
407
|
return !1;
|
|
391
408
|
}
|
|
392
409
|
return a.ref !== void 0;
|
|
393
410
|
}
|
|
394
|
-
function
|
|
395
|
-
if (
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
411
|
+
function Ar(a) {
|
|
412
|
+
if (we.call(a, "key")) {
|
|
413
|
+
var f = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
414
|
+
if (f && f.isReactWarning)
|
|
398
415
|
return !1;
|
|
399
416
|
}
|
|
400
417
|
return a.key !== void 0;
|
|
401
418
|
}
|
|
402
|
-
function
|
|
403
|
-
if (typeof a.ref == "string" &&
|
|
404
|
-
var
|
|
405
|
-
|
|
419
|
+
function $r(a, f) {
|
|
420
|
+
if (typeof a.ref == "string" && Se.current && f && Se.current.stateNode !== f) {
|
|
421
|
+
var h = k(Se.current.type);
|
|
422
|
+
Je[h] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(Se.current.type), a.ref), Je[h] = !0);
|
|
406
423
|
}
|
|
407
424
|
}
|
|
408
|
-
function
|
|
425
|
+
function Ir(a, f) {
|
|
409
426
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
427
|
+
var h = function() {
|
|
428
|
+
Et || (Et = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
412
429
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
430
|
+
h.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
431
|
+
get: h,
|
|
415
432
|
configurable: !0
|
|
416
433
|
});
|
|
417
434
|
}
|
|
418
435
|
}
|
|
419
|
-
function
|
|
436
|
+
function Mr(a, f) {
|
|
420
437
|
{
|
|
421
|
-
var
|
|
422
|
-
|
|
438
|
+
var h = function() {
|
|
439
|
+
Ot || (Ot = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
423
440
|
};
|
|
424
|
-
|
|
425
|
-
get:
|
|
441
|
+
h.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
442
|
+
get: h,
|
|
426
443
|
configurable: !0
|
|
427
444
|
});
|
|
428
445
|
}
|
|
429
446
|
}
|
|
430
|
-
var
|
|
431
|
-
var
|
|
447
|
+
var Yr = function(a, f, h, v, w, _, C) {
|
|
448
|
+
var x = {
|
|
432
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
433
450
|
$$typeof: e,
|
|
434
451
|
// Built-in properties that belong on the element
|
|
435
452
|
type: a,
|
|
436
|
-
key:
|
|
437
|
-
ref:
|
|
438
|
-
props:
|
|
453
|
+
key: f,
|
|
454
|
+
ref: h,
|
|
455
|
+
props: C,
|
|
439
456
|
// Record the component responsible for creating this element.
|
|
440
|
-
_owner:
|
|
457
|
+
_owner: _
|
|
441
458
|
};
|
|
442
|
-
return
|
|
459
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
443
460
|
configurable: !1,
|
|
444
461
|
enumerable: !1,
|
|
445
462
|
writable: !0,
|
|
446
463
|
value: !1
|
|
447
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(x, "_self", {
|
|
448
465
|
configurable: !1,
|
|
449
466
|
enumerable: !1,
|
|
450
467
|
writable: !1,
|
|
451
468
|
value: v
|
|
452
|
-
}), Object.defineProperty(
|
|
469
|
+
}), Object.defineProperty(x, "_source", {
|
|
453
470
|
configurable: !1,
|
|
454
471
|
enumerable: !1,
|
|
455
472
|
writable: !1,
|
|
456
|
-
value:
|
|
457
|
-
}), Object.freeze && (Object.freeze(
|
|
473
|
+
value: w
|
|
474
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
458
475
|
};
|
|
459
|
-
function
|
|
476
|
+
function zr(a, f, h, v, w) {
|
|
460
477
|
{
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
for (
|
|
464
|
-
|
|
478
|
+
var _, C = {}, x = null, V = null;
|
|
479
|
+
h !== void 0 && (_t(h), x = "" + h), Ar(f) && (_t(f.key), x = "" + f.key), Dr(f) && (V = f.ref, $r(f, w));
|
|
480
|
+
for (_ in f)
|
|
481
|
+
we.call(f, _) && !kr.hasOwnProperty(_) && (C[_] = f[_]);
|
|
465
482
|
if (a && a.defaultProps) {
|
|
466
|
-
var
|
|
467
|
-
for (
|
|
468
|
-
|
|
483
|
+
var D = a.defaultProps;
|
|
484
|
+
for (_ in D)
|
|
485
|
+
C[_] === void 0 && (C[_] = D[_]);
|
|
469
486
|
}
|
|
470
|
-
if (
|
|
471
|
-
var
|
|
472
|
-
|
|
487
|
+
if (x || V) {
|
|
488
|
+
var A = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
489
|
+
x && Ir(C, A), V && Mr(C, A);
|
|
473
490
|
}
|
|
474
|
-
return
|
|
491
|
+
return Yr(a, x, V, w, v, Se.current, C);
|
|
475
492
|
}
|
|
476
493
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
494
|
+
var Xe = j.ReactCurrentOwner, jt = j.ReactDebugCurrentFrame;
|
|
495
|
+
function de(a) {
|
|
479
496
|
if (a) {
|
|
480
|
-
var
|
|
481
|
-
|
|
497
|
+
var f = a._owner, h = $e(a.type, a._source, f ? f.type : null);
|
|
498
|
+
jt.setExtraStackFrame(h);
|
|
482
499
|
} else
|
|
483
|
-
|
|
500
|
+
jt.setExtraStackFrame(null);
|
|
484
501
|
}
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
function
|
|
502
|
+
var Qe;
|
|
503
|
+
Qe = !1;
|
|
504
|
+
function et(a) {
|
|
488
505
|
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
489
506
|
}
|
|
490
|
-
function
|
|
507
|
+
function Pt() {
|
|
491
508
|
{
|
|
492
|
-
if (
|
|
493
|
-
var a =
|
|
509
|
+
if (Xe.current) {
|
|
510
|
+
var a = k(Xe.current.type);
|
|
494
511
|
if (a)
|
|
495
512
|
return `
|
|
496
513
|
|
|
@@ -499,234 +516,234 @@ Check the render method of \`` + a + "`.";
|
|
|
499
516
|
return "";
|
|
500
517
|
}
|
|
501
518
|
}
|
|
502
|
-
function
|
|
519
|
+
function Hr(a) {
|
|
503
520
|
{
|
|
504
521
|
if (a !== void 0) {
|
|
505
|
-
var
|
|
522
|
+
var f = a.fileName.replace(/^.*[\\\/]/, ""), h = a.lineNumber;
|
|
506
523
|
return `
|
|
507
524
|
|
|
508
|
-
Check your code at ` +
|
|
525
|
+
Check your code at ` + f + ":" + h + ".";
|
|
509
526
|
}
|
|
510
527
|
return "";
|
|
511
528
|
}
|
|
512
529
|
}
|
|
513
|
-
var
|
|
514
|
-
function
|
|
530
|
+
var Tt = {};
|
|
531
|
+
function Lr(a) {
|
|
515
532
|
{
|
|
516
|
-
var
|
|
517
|
-
if (!
|
|
518
|
-
var
|
|
519
|
-
|
|
533
|
+
var f = Pt();
|
|
534
|
+
if (!f) {
|
|
535
|
+
var h = typeof a == "string" ? a : a.displayName || a.name;
|
|
536
|
+
h && (f = `
|
|
520
537
|
|
|
521
|
-
Check the top-level render call using <` +
|
|
538
|
+
Check the top-level render call using <` + h + ">.");
|
|
522
539
|
}
|
|
523
|
-
return
|
|
540
|
+
return f;
|
|
524
541
|
}
|
|
525
542
|
}
|
|
526
|
-
function
|
|
543
|
+
function Nt(a, f) {
|
|
527
544
|
{
|
|
528
545
|
if (!a._store || a._store.validated || a.key != null)
|
|
529
546
|
return;
|
|
530
547
|
a._store.validated = !0;
|
|
531
|
-
var
|
|
532
|
-
if (
|
|
548
|
+
var h = Lr(f);
|
|
549
|
+
if (Tt[h])
|
|
533
550
|
return;
|
|
534
|
-
|
|
551
|
+
Tt[h] = !0;
|
|
535
552
|
var v = "";
|
|
536
|
-
a && a._owner && a._owner !==
|
|
553
|
+
a && a._owner && a._owner !== Xe.current && (v = " It was passed a child from " + k(a._owner.type) + "."), de(a), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, v), de(null);
|
|
537
554
|
}
|
|
538
555
|
}
|
|
539
|
-
function
|
|
556
|
+
function kt(a, f) {
|
|
540
557
|
{
|
|
541
558
|
if (typeof a != "object")
|
|
542
559
|
return;
|
|
543
|
-
if (
|
|
544
|
-
for (var
|
|
545
|
-
var v = a[
|
|
546
|
-
|
|
560
|
+
if (Ge(a))
|
|
561
|
+
for (var h = 0; h < a.length; h++) {
|
|
562
|
+
var v = a[h];
|
|
563
|
+
et(v) && Nt(v, f);
|
|
547
564
|
}
|
|
548
|
-
else if (
|
|
565
|
+
else if (et(a))
|
|
549
566
|
a._store && (a._store.validated = !0);
|
|
550
567
|
else if (a) {
|
|
551
|
-
var
|
|
552
|
-
if (typeof
|
|
553
|
-
for (var
|
|
554
|
-
|
|
568
|
+
var w = z(a);
|
|
569
|
+
if (typeof w == "function" && w !== a.entries)
|
|
570
|
+
for (var _ = w.call(a), C; !(C = _.next()).done; )
|
|
571
|
+
et(C.value) && Nt(C.value, f);
|
|
555
572
|
}
|
|
556
573
|
}
|
|
557
574
|
}
|
|
558
|
-
function
|
|
575
|
+
function Vr(a) {
|
|
559
576
|
{
|
|
560
|
-
var
|
|
561
|
-
if (
|
|
577
|
+
var f = a.type;
|
|
578
|
+
if (f == null || typeof f == "string")
|
|
562
579
|
return;
|
|
563
|
-
var
|
|
564
|
-
if (typeof
|
|
565
|
-
|
|
566
|
-
else if (typeof
|
|
580
|
+
var h;
|
|
581
|
+
if (typeof f == "function")
|
|
582
|
+
h = f.propTypes;
|
|
583
|
+
else if (typeof f == "object" && (f.$$typeof === u || // Note: Memo only checks outer props here.
|
|
567
584
|
// Inner props are checked in the reconciler.
|
|
568
|
-
|
|
569
|
-
|
|
585
|
+
f.$$typeof === d))
|
|
586
|
+
h = f.propTypes;
|
|
570
587
|
else
|
|
571
588
|
return;
|
|
572
|
-
if (
|
|
573
|
-
var v =
|
|
574
|
-
|
|
575
|
-
} else if (
|
|
576
|
-
|
|
577
|
-
var
|
|
578
|
-
|
|
589
|
+
if (h) {
|
|
590
|
+
var v = k(f);
|
|
591
|
+
jr(h, a.props, "prop", v, a);
|
|
592
|
+
} else if (f.PropTypes !== void 0 && !Qe) {
|
|
593
|
+
Qe = !0;
|
|
594
|
+
var w = k(f);
|
|
595
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
579
596
|
}
|
|
580
|
-
typeof
|
|
597
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
581
598
|
}
|
|
582
599
|
}
|
|
583
|
-
function
|
|
600
|
+
function Fr(a) {
|
|
584
601
|
{
|
|
585
|
-
for (var
|
|
586
|
-
var v =
|
|
602
|
+
for (var f = Object.keys(a.props), h = 0; h < f.length; h++) {
|
|
603
|
+
var v = f[h];
|
|
587
604
|
if (v !== "children" && v !== "key") {
|
|
588
|
-
|
|
605
|
+
de(a), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
|
|
589
606
|
break;
|
|
590
607
|
}
|
|
591
608
|
}
|
|
592
|
-
a.ref !== null && (
|
|
609
|
+
a.ref !== null && (de(a), y("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
593
610
|
}
|
|
594
611
|
}
|
|
595
|
-
var
|
|
596
|
-
function
|
|
612
|
+
var Dt = {};
|
|
613
|
+
function At(a, f, h, v, w, _) {
|
|
597
614
|
{
|
|
598
|
-
var
|
|
599
|
-
if (!
|
|
600
|
-
var
|
|
601
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
var
|
|
605
|
-
a === null ?
|
|
615
|
+
var C = ie(a);
|
|
616
|
+
if (!C) {
|
|
617
|
+
var x = "";
|
|
618
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
619
|
+
var V = Hr(w);
|
|
620
|
+
V ? x += V : x += Pt();
|
|
621
|
+
var D;
|
|
622
|
+
a === null ? D = "null" : Ge(a) ? D = "array" : a !== void 0 && a.$$typeof === e ? (D = "<" + (k(a.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof a, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
606
623
|
}
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
return
|
|
610
|
-
if (
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
624
|
+
var A = zr(a, f, h, w, _);
|
|
625
|
+
if (A == null)
|
|
626
|
+
return A;
|
|
627
|
+
if (C) {
|
|
628
|
+
var X = f.children;
|
|
629
|
+
if (X !== void 0)
|
|
613
630
|
if (v)
|
|
614
|
-
if (
|
|
615
|
-
for (var
|
|
616
|
-
|
|
617
|
-
Object.freeze && Object.freeze(
|
|
631
|
+
if (Ge(X)) {
|
|
632
|
+
for (var he = 0; he < X.length; he++)
|
|
633
|
+
kt(X[he], a);
|
|
634
|
+
Object.freeze && Object.freeze(X);
|
|
618
635
|
} else
|
|
619
|
-
|
|
636
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
620
637
|
else
|
|
621
|
-
|
|
638
|
+
kt(X, a);
|
|
622
639
|
}
|
|
623
|
-
if (
|
|
624
|
-
var
|
|
625
|
-
return
|
|
626
|
-
}),
|
|
627
|
-
if (!
|
|
628
|
-
var
|
|
629
|
-
|
|
640
|
+
if (we.call(f, "key")) {
|
|
641
|
+
var le = k(a), Z = Object.keys(f).filter(function(Kr) {
|
|
642
|
+
return Kr !== "key";
|
|
643
|
+
}), tt = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
644
|
+
if (!Dt[le + tt]) {
|
|
645
|
+
var qr = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
|
|
646
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
630
647
|
let props = %s;
|
|
631
648
|
<%s {...props} />
|
|
632
649
|
React keys must be passed directly to JSX without using spread:
|
|
633
650
|
let props = %s;
|
|
634
|
-
<%s key={someKey} {...props} />`,
|
|
651
|
+
<%s key={someKey} {...props} />`, tt, le, qr, le), Dt[le + tt] = !0;
|
|
635
652
|
}
|
|
636
653
|
}
|
|
637
|
-
return a === n ?
|
|
654
|
+
return a === n ? Fr(A) : Vr(A), A;
|
|
638
655
|
}
|
|
639
656
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
657
|
+
function Ur(a, f, h) {
|
|
658
|
+
return At(a, f, h, !0);
|
|
642
659
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
660
|
+
function Wr(a, f, h) {
|
|
661
|
+
return At(a, f, h, !1);
|
|
645
662
|
}
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
}()),
|
|
663
|
+
var Br = Wr, Zr = Ur;
|
|
664
|
+
_e.Fragment = n, _e.jsx = Br, _e.jsxs = Zr;
|
|
665
|
+
}()), _e;
|
|
649
666
|
}
|
|
650
|
-
process.env.NODE_ENV === "production" ?
|
|
651
|
-
var
|
|
652
|
-
class
|
|
667
|
+
process.env.NODE_ENV === "production" ? it.exports = mn() : it.exports = vn();
|
|
668
|
+
var p = it.exports;
|
|
669
|
+
class bn {
|
|
653
670
|
constructor() {
|
|
654
671
|
/**
|
|
655
672
|
** 加
|
|
656
673
|
**/
|
|
657
|
-
|
|
658
|
-
let n,
|
|
674
|
+
m(this, "add", function(e, t) {
|
|
675
|
+
let n, s, o, i;
|
|
659
676
|
try {
|
|
660
677
|
n = e.toString().split(".")[1].length;
|
|
661
678
|
} catch {
|
|
662
679
|
n = 0;
|
|
663
680
|
}
|
|
664
681
|
try {
|
|
665
|
-
|
|
682
|
+
s = t.toString().split(".")[1].length;
|
|
666
683
|
} catch {
|
|
667
|
-
|
|
684
|
+
s = 0;
|
|
668
685
|
}
|
|
669
|
-
if (
|
|
670
|
-
let l = Math.pow(10,
|
|
671
|
-
n >
|
|
686
|
+
if (i = Math.abs(n - s), o = Math.pow(10, Math.max(n, s)), i > 0) {
|
|
687
|
+
let l = Math.pow(10, i);
|
|
688
|
+
n > s ? (e = Number(e.toString().replace(".", "")), t = Number(t.toString().replace(".", "")) * l) : (e = Number(e.toString().replace(".", "")) * l, t = Number(t.toString().replace(".", "")));
|
|
672
689
|
} else
|
|
673
690
|
e = Number(e == null ? void 0 : e.toString().replace(".", "")), t = Number(t == null ? void 0 : t.toString().replace(".", ""));
|
|
674
|
-
return (e + t) /
|
|
691
|
+
return (e + t) / o;
|
|
675
692
|
});
|
|
676
693
|
/**
|
|
677
694
|
** 减
|
|
678
695
|
**/
|
|
679
|
-
|
|
680
|
-
let n,
|
|
696
|
+
m(this, "sub", function(e, t) {
|
|
697
|
+
let n, s, o, i;
|
|
681
698
|
try {
|
|
682
699
|
n = e.toString().split(".")[1].length;
|
|
683
700
|
} catch {
|
|
684
701
|
n = 0;
|
|
685
702
|
}
|
|
686
703
|
try {
|
|
687
|
-
|
|
704
|
+
s = t.toString().split(".")[1].length;
|
|
688
705
|
} catch {
|
|
689
|
-
|
|
706
|
+
s = 0;
|
|
690
707
|
}
|
|
691
|
-
return
|
|
708
|
+
return o = Math.pow(10, Math.max(n, s)), i = n >= s ? n : s, Number(((e * o - t * o) / o).toFixed(i));
|
|
692
709
|
});
|
|
693
710
|
/**
|
|
694
711
|
** 乘
|
|
695
712
|
**/
|
|
696
|
-
|
|
697
|
-
let n = 0,
|
|
713
|
+
m(this, "mul", function(e, t) {
|
|
714
|
+
let n = 0, s = e.toString(), o = t.toString();
|
|
698
715
|
try {
|
|
699
|
-
n +=
|
|
716
|
+
n += s.split(".")[1].length;
|
|
700
717
|
} catch {
|
|
701
718
|
}
|
|
702
719
|
try {
|
|
703
|
-
n +=
|
|
720
|
+
n += o.split(".")[1].length;
|
|
704
721
|
} catch {
|
|
705
722
|
}
|
|
706
|
-
return Number(
|
|
723
|
+
return Number(s.replace(".", "")) * Number(o.replace(".", "")) / Math.pow(10, n);
|
|
707
724
|
});
|
|
708
725
|
/**
|
|
709
726
|
** 除
|
|
710
727
|
**/
|
|
711
|
-
|
|
712
|
-
let n = 0,
|
|
728
|
+
m(this, "div", function(e, t) {
|
|
729
|
+
let n = 0, s = 0, o, i;
|
|
713
730
|
try {
|
|
714
731
|
n = e.toString().split(".")[1].length;
|
|
715
732
|
} catch {
|
|
716
733
|
}
|
|
717
734
|
try {
|
|
718
|
-
|
|
735
|
+
s = t.toString().split(".")[1].length;
|
|
719
736
|
} catch {
|
|
720
737
|
}
|
|
721
|
-
return
|
|
738
|
+
return o = Number(e.toString().replace(".", "")), i = Number(t.toString().replace(".", "")), o / i * Math.pow(10, s - n);
|
|
722
739
|
});
|
|
723
740
|
}
|
|
724
741
|
}
|
|
725
|
-
const
|
|
742
|
+
const Ta = new bn(), Ne = class Ne {
|
|
726
743
|
constructor() {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
744
|
+
m(this, "callbacks", []);
|
|
745
|
+
m(this, "pending", !1);
|
|
746
|
+
m(this, "timerFunc");
|
|
730
747
|
this.timerFunc = this.determineTimerFunc();
|
|
731
748
|
}
|
|
732
749
|
determineTimerFunc() {
|
|
@@ -756,64 +773,143 @@ const Fn = new Zr(), ne = class ne {
|
|
|
756
773
|
if (e)
|
|
757
774
|
try {
|
|
758
775
|
e.call(t);
|
|
759
|
-
} catch (
|
|
760
|
-
console.error("Error in nextTick:",
|
|
776
|
+
} catch (s) {
|
|
777
|
+
console.error("Error in nextTick:", s);
|
|
761
778
|
}
|
|
762
779
|
else
|
|
763
780
|
n && n();
|
|
764
781
|
}), this.pending || (this.pending = !0, this.timerFunc()), !e && typeof Promise < "u")
|
|
765
|
-
return new Promise((
|
|
766
|
-
n =
|
|
782
|
+
return new Promise((s) => {
|
|
783
|
+
n = s;
|
|
767
784
|
});
|
|
768
785
|
}
|
|
769
786
|
static nextTick(e, t) {
|
|
770
|
-
return
|
|
787
|
+
return Ne.instance.nextTick(e, t);
|
|
771
788
|
}
|
|
772
789
|
static get instance() {
|
|
773
|
-
return this._instance || (this._instance = new
|
|
790
|
+
return this._instance || (this._instance = new Ne()), this._instance;
|
|
774
791
|
}
|
|
775
792
|
};
|
|
776
|
-
|
|
777
|
-
let
|
|
778
|
-
const
|
|
779
|
-
|
|
793
|
+
m(Ne, "_instance");
|
|
794
|
+
let Ve = Ne;
|
|
795
|
+
const Na = Ve.instance.nextTick.bind(Ve.instance);
|
|
796
|
+
var ge = {}, ct, lt, Ee = hn;
|
|
797
|
+
if (process.env.NODE_ENV === "production")
|
|
798
|
+
lt = ge.createRoot = Ee.createRoot, ct = ge.hydrateRoot = Ee.hydrateRoot;
|
|
799
|
+
else {
|
|
800
|
+
var Me = Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
801
|
+
lt = ge.createRoot = function(r, e) {
|
|
802
|
+
Me.usingClientEntryPoint = !0;
|
|
803
|
+
try {
|
|
804
|
+
return Ee.createRoot(r, e);
|
|
805
|
+
} finally {
|
|
806
|
+
Me.usingClientEntryPoint = !1;
|
|
807
|
+
}
|
|
808
|
+
}, ct = ge.hydrateRoot = function(r, e, t) {
|
|
809
|
+
Me.usingClientEntryPoint = !0;
|
|
810
|
+
try {
|
|
811
|
+
return Ee.hydrateRoot(r, e, t);
|
|
812
|
+
} finally {
|
|
813
|
+
Me.usingClientEntryPoint = !1;
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
const yn = /* @__PURE__ */ gn({
|
|
818
|
+
__proto__: null,
|
|
819
|
+
get createRoot() {
|
|
820
|
+
return lt;
|
|
821
|
+
},
|
|
822
|
+
default: ge,
|
|
823
|
+
get hydrateRoot() {
|
|
824
|
+
return ct;
|
|
825
|
+
}
|
|
826
|
+
}, [ge]), { createRoot: xn } = yn;
|
|
827
|
+
let ae = null, ue = null;
|
|
828
|
+
function Cn() {
|
|
829
|
+
return ae || (ae = document.createElement("div"), document.body.appendChild(ae)), ae;
|
|
830
|
+
}
|
|
831
|
+
function wn(r, e) {
|
|
832
|
+
const t = Cn();
|
|
833
|
+
let n = {
|
|
834
|
+
open: !0,
|
|
835
|
+
...e,
|
|
836
|
+
// 默认自动关闭
|
|
837
|
+
onClosed: e.onClosed || ((c) => {
|
|
838
|
+
u(c);
|
|
839
|
+
})
|
|
840
|
+
};
|
|
841
|
+
if (!ue)
|
|
842
|
+
try {
|
|
843
|
+
ue = xn(t);
|
|
844
|
+
} catch (c) {
|
|
845
|
+
return console.error("Failed to create root:", c), {
|
|
846
|
+
destroy: () => {
|
|
847
|
+
},
|
|
848
|
+
update: () => {
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
const s = () => {
|
|
853
|
+
ue && (ue.unmount(), ue = null), ae && ae.parentNode && (ae.parentNode.removeChild(ae), ae = null);
|
|
854
|
+
}, o = (c) => {
|
|
855
|
+
typeof n.onClosed == "function" && n.onClosed(c), s();
|
|
856
|
+
}, i = (c) => {
|
|
857
|
+
ue && ue.render(/* @__PURE__ */ p.jsx(r, { ...c }));
|
|
858
|
+
}, l = (c) => {
|
|
859
|
+
n = typeof c == "function" ? c(n) : { ...n, ...c }, i(n);
|
|
860
|
+
}, u = (c) => {
|
|
861
|
+
n.open ? (n = {
|
|
862
|
+
...n,
|
|
863
|
+
open: !1,
|
|
864
|
+
onClosed: (g) => {
|
|
865
|
+
e.onClosed && e.onClosed(g || c), o(g || c);
|
|
866
|
+
}
|
|
867
|
+
}, i(n)) : console.warn("Modal is already closed.");
|
|
868
|
+
};
|
|
869
|
+
return i(n), {
|
|
870
|
+
destroy: u,
|
|
871
|
+
update: l
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
const ka = () => {
|
|
875
|
+
}, Fe = (r, e) => {
|
|
780
876
|
const t = r;
|
|
781
877
|
let n = r;
|
|
782
878
|
if (e.includes(" ")) {
|
|
783
879
|
n = "";
|
|
784
|
-
const
|
|
785
|
-
for (const
|
|
786
|
-
n += ` ${t}-${
|
|
880
|
+
const s = e == null ? void 0 : e.split(" ");
|
|
881
|
+
for (const o of s)
|
|
882
|
+
n += ` ${t}-${o}`;
|
|
787
883
|
} else
|
|
788
884
|
e && (n = `${r}-${e}`);
|
|
789
885
|
return n;
|
|
790
|
-
},
|
|
886
|
+
}, Da = (r, e) => {
|
|
791
887
|
const t = e == null ? void 0 : e.split(".");
|
|
792
888
|
let n = r;
|
|
793
|
-
for (const
|
|
794
|
-
n = n[
|
|
889
|
+
for (const s of t)
|
|
890
|
+
n = n[s];
|
|
795
891
|
return n;
|
|
796
|
-
},
|
|
892
|
+
}, Sn = (r) => {
|
|
797
893
|
for (const e in r)
|
|
798
894
|
r[e] === null && delete r[e];
|
|
799
895
|
return r;
|
|
800
|
-
},
|
|
896
|
+
}, ar = (r, e) => {
|
|
801
897
|
let t = null;
|
|
802
898
|
return (...n) => {
|
|
803
899
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
804
900
|
r(...n);
|
|
805
901
|
}, e);
|
|
806
902
|
};
|
|
807
|
-
},
|
|
903
|
+
}, Aa = (r, e) => {
|
|
808
904
|
let t = null, n = 0;
|
|
809
|
-
return (...
|
|
810
|
-
const
|
|
811
|
-
t ?
|
|
905
|
+
return (...s) => {
|
|
906
|
+
const o = Date.now();
|
|
907
|
+
t ? o - n >= e && (r(...s), n = o) : (r(...s), n = o, t = setTimeout(() => {
|
|
812
908
|
t = null;
|
|
813
909
|
}, e));
|
|
814
910
|
};
|
|
815
911
|
};
|
|
816
|
-
class
|
|
912
|
+
class $a {
|
|
817
913
|
/**
|
|
818
914
|
* 验证版本号格式是否有效
|
|
819
915
|
* @param version 版本号字符串
|
|
@@ -831,16 +927,16 @@ class Xn {
|
|
|
831
927
|
static compare(e, t) {
|
|
832
928
|
if (!this.isValid(e) || !this.isValid(t))
|
|
833
929
|
throw new Error("Invalid version format");
|
|
834
|
-
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
930
|
+
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
|
|
835
931
|
for (let u = 0; u < 3; u++) {
|
|
836
|
-
const
|
|
837
|
-
if (
|
|
932
|
+
const c = parseInt(s[u] || "0", 10), g = parseInt(o[u] || "0", 10);
|
|
933
|
+
if (c > g)
|
|
838
934
|
return 1;
|
|
839
|
-
if (
|
|
935
|
+
if (c < g)
|
|
840
936
|
return -1;
|
|
841
937
|
}
|
|
842
|
-
const
|
|
843
|
-
return
|
|
938
|
+
const i = e.match(/-(.+)/), l = t.match(/-(.+)/);
|
|
939
|
+
return i && !l ? -1 : !i && l ? 1 : i && l ? i[1].localeCompare(l[1]) : 0;
|
|
844
940
|
}
|
|
845
941
|
/**
|
|
846
942
|
* 检查版本号是否满足范围要求
|
|
@@ -851,24 +947,24 @@ class Xn {
|
|
|
851
947
|
static satisfies(e, t) {
|
|
852
948
|
if (!this.isValid(e))
|
|
853
949
|
return !1;
|
|
854
|
-
const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,
|
|
855
|
-
return !
|
|
856
|
-
const
|
|
857
|
-
if (!
|
|
950
|
+
const n = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, s = t.match(n);
|
|
951
|
+
return !s || s.length === 0 ? !1 : s.every((o) => {
|
|
952
|
+
const i = o.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
|
|
953
|
+
if (!i)
|
|
858
954
|
return !1;
|
|
859
|
-
const l =
|
|
955
|
+
const l = i[1] || "==", u = i[2];
|
|
860
956
|
if (!this.isValid(u))
|
|
861
957
|
return !1;
|
|
862
|
-
const
|
|
958
|
+
const c = this.compare(e, u);
|
|
863
959
|
switch (l) {
|
|
864
960
|
case ">":
|
|
865
|
-
return
|
|
961
|
+
return c > 0;
|
|
866
962
|
case ">=":
|
|
867
|
-
return
|
|
963
|
+
return c >= 0;
|
|
868
964
|
case "<":
|
|
869
|
-
return
|
|
965
|
+
return c < 0;
|
|
870
966
|
case "<=":
|
|
871
|
-
return
|
|
967
|
+
return c <= 0;
|
|
872
968
|
case "^":
|
|
873
969
|
return this.caretRange(e, u);
|
|
874
970
|
case "~":
|
|
@@ -876,7 +972,7 @@ class Xn {
|
|
|
876
972
|
case "=":
|
|
877
973
|
case "==":
|
|
878
974
|
default:
|
|
879
|
-
return
|
|
975
|
+
return c === 0;
|
|
880
976
|
}
|
|
881
977
|
});
|
|
882
978
|
}
|
|
@@ -887,16 +983,16 @@ class Xn {
|
|
|
887
983
|
* @returns 是否匹配
|
|
888
984
|
*/
|
|
889
985
|
static caretRange(e, t) {
|
|
890
|
-
const n = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
891
|
-
let
|
|
892
|
-
for (let l = 0; l <
|
|
893
|
-
if (parseInt(
|
|
894
|
-
|
|
986
|
+
const n = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
|
|
987
|
+
let i = 0;
|
|
988
|
+
for (let l = 0; l < o.length; l++)
|
|
989
|
+
if (parseInt(o[l], 10) !== 0) {
|
|
990
|
+
i = l;
|
|
895
991
|
break;
|
|
896
992
|
}
|
|
897
|
-
for (let l = 0; l <=
|
|
898
|
-
const u = parseInt(
|
|
899
|
-
if (u !==
|
|
993
|
+
for (let l = 0; l <= i; l++) {
|
|
994
|
+
const u = parseInt(s[l] || "0", 10), c = parseInt(o[l] || "0", 10);
|
|
995
|
+
if (u !== c)
|
|
900
996
|
return !1;
|
|
901
997
|
}
|
|
902
998
|
return this.compare(e, t) >= 0;
|
|
@@ -908,14 +1004,14 @@ class Xn {
|
|
|
908
1004
|
* @returns 是否匹配
|
|
909
1005
|
*/
|
|
910
1006
|
static tildeRange(e, t) {
|
|
911
|
-
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
912
|
-
for (let u = 0; u <
|
|
913
|
-
const
|
|
914
|
-
if (
|
|
1007
|
+
const n = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = n(e), o = n(t);
|
|
1008
|
+
for (let u = 0; u < o.length - 1; u++) {
|
|
1009
|
+
const c = parseInt(s[u] || "0", 10), g = parseInt(o[u] || "0", 10);
|
|
1010
|
+
if (c !== g)
|
|
915
1011
|
return !1;
|
|
916
1012
|
}
|
|
917
|
-
const
|
|
918
|
-
return
|
|
1013
|
+
const i = parseInt(s[o.length - 1] || "0", 10), l = parseInt(o[o.length - 1] || "0", 10);
|
|
1014
|
+
return i >= l;
|
|
919
1015
|
}
|
|
920
1016
|
/**
|
|
921
1017
|
* 获取主版本号 (major)
|
|
@@ -973,23 +1069,23 @@ class Xn {
|
|
|
973
1069
|
return t ? t[1] : null;
|
|
974
1070
|
}
|
|
975
1071
|
}
|
|
976
|
-
const
|
|
1072
|
+
const sr = Qt({
|
|
977
1073
|
theme: {
|
|
978
1074
|
cssVar: !0,
|
|
979
|
-
algorithm: [
|
|
1075
|
+
algorithm: [He.defaultAlgorithm]
|
|
980
1076
|
}
|
|
981
|
-
}),
|
|
982
|
-
function
|
|
983
|
-
return
|
|
1077
|
+
}), Ia = sr.Provider;
|
|
1078
|
+
function Rn() {
|
|
1079
|
+
return er(sr);
|
|
984
1080
|
}
|
|
985
|
-
function
|
|
986
|
-
const { theme: e } =
|
|
987
|
-
return /* @__PURE__ */
|
|
1081
|
+
function ye(r) {
|
|
1082
|
+
const { theme: e } = Rn();
|
|
1083
|
+
return /* @__PURE__ */ p.jsx(tr, { theme: e, children: r.children });
|
|
988
1084
|
}
|
|
989
|
-
const
|
|
990
|
-
const n = `${
|
|
991
|
-
return e.render ? /* @__PURE__ */
|
|
992
|
-
|
|
1085
|
+
const zt = (r = "") => Fe("items-row", r), _n = (r) => r.items ? /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx("div", { className: `${zt()} ${r.className || ""}`, style: r.style, children: (r.items || []).map((e, t) => {
|
|
1086
|
+
const n = `${zt("item")} ${e.className}`;
|
|
1087
|
+
return e.render ? /* @__PURE__ */ p.jsx("span", { className: n, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
|
|
1088
|
+
Pe,
|
|
993
1089
|
{
|
|
994
1090
|
className: n,
|
|
995
1091
|
...e.btnProps,
|
|
@@ -1000,192 +1096,192 @@ const gt = (r = "") => De("items-row", r), qr = (r) => r.items ? /* @__PURE__ */
|
|
|
1000
1096
|
e.label
|
|
1001
1097
|
);
|
|
1002
1098
|
}) }) }) : null;
|
|
1003
|
-
const
|
|
1099
|
+
const Oe = (r = "") => Fe("m-breadcrumb", r), Ma = (r) => {
|
|
1004
1100
|
const {
|
|
1005
1101
|
routes: e,
|
|
1006
1102
|
customItems: t,
|
|
1007
1103
|
style: n,
|
|
1008
|
-
className:
|
|
1009
|
-
offsetTop:
|
|
1010
|
-
mainAppBaseUrl:
|
|
1104
|
+
className: s,
|
|
1105
|
+
offsetTop: o = 64,
|
|
1106
|
+
mainAppBaseUrl: i,
|
|
1011
1107
|
microAppName: l
|
|
1012
|
-
} = r, u =
|
|
1013
|
-
var
|
|
1014
|
-
(
|
|
1108
|
+
} = r, u = U.useRef(null), c = U.useCallback(() => {
|
|
1109
|
+
var d, b;
|
|
1110
|
+
(b = (d = u.current) == null ? void 0 : d.updatePosition) == null || b.call(d);
|
|
1015
1111
|
}, []);
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1018
|
-
(
|
|
1019
|
-
if (!
|
|
1112
|
+
U.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
|
|
1113
|
+
const g = U.useCallback(
|
|
1114
|
+
(d) => {
|
|
1115
|
+
if (!d)
|
|
1020
1116
|
return "";
|
|
1021
|
-
const
|
|
1117
|
+
const b = d.replace(/^\/+/, "");
|
|
1022
1118
|
return `/${[
|
|
1023
|
-
|
|
1119
|
+
i == null ? void 0 : i.replace(/\/+$/, ""),
|
|
1024
1120
|
l == null ? void 0 : l.replace(/\/+$/, ""),
|
|
1025
|
-
|
|
1121
|
+
b
|
|
1026
1122
|
].filter(Boolean).join("/")}`;
|
|
1027
1123
|
},
|
|
1028
|
-
[
|
|
1124
|
+
[i, l]
|
|
1029
1125
|
);
|
|
1030
|
-
return /* @__PURE__ */
|
|
1031
|
-
|
|
1126
|
+
return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx("div", { className: `${Oe()} ${s || ""}`, style: n, children: /* @__PURE__ */ p.jsx(Qr, { ref: u, offsetTop: o, children: /* @__PURE__ */ p.jsxs(
|
|
1127
|
+
rr,
|
|
1032
1128
|
{
|
|
1033
|
-
className:
|
|
1034
|
-
rootClassName:
|
|
1129
|
+
className: Oe("container"),
|
|
1130
|
+
rootClassName: Oe("body"),
|
|
1035
1131
|
variant: "borderless",
|
|
1036
1132
|
children: [
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ p.jsx($t, { className: Oe("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((d) => /* @__PURE__ */ p.jsx($t.Item, { children: d.url ? /* @__PURE__ */ p.jsx("a", { href: `#${g(d.url)}`, children: d.name }) : d.name }, d.url || d.name)) }),
|
|
1134
|
+
/* @__PURE__ */ p.jsx("div", { className: Oe("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(_n, { items: t }) })
|
|
1039
1135
|
]
|
|
1040
1136
|
}
|
|
1041
1137
|
) }) }) });
|
|
1042
|
-
},
|
|
1138
|
+
}, En = (r) => {
|
|
1043
1139
|
const {
|
|
1044
1140
|
data: e,
|
|
1045
1141
|
title: t,
|
|
1046
1142
|
column: n = 3,
|
|
1047
|
-
lineHeight:
|
|
1048
|
-
align:
|
|
1049
|
-
itemLayout:
|
|
1143
|
+
lineHeight: s,
|
|
1144
|
+
align: o = "left",
|
|
1145
|
+
itemLayout: i,
|
|
1050
1146
|
colon: l = !0,
|
|
1051
1147
|
bordered: u = !1,
|
|
1052
|
-
style:
|
|
1053
|
-
className:
|
|
1054
|
-
labelStyle:
|
|
1055
|
-
contentStyle:
|
|
1056
|
-
} = r,
|
|
1057
|
-
...
|
|
1058
|
-
textAlign:
|
|
1059
|
-
...
|
|
1060
|
-
...
|
|
1061
|
-
},
|
|
1062
|
-
...
|
|
1063
|
-
...
|
|
1064
|
-
...
|
|
1148
|
+
style: c,
|
|
1149
|
+
className: g,
|
|
1150
|
+
labelStyle: d,
|
|
1151
|
+
contentStyle: b
|
|
1152
|
+
} = r, O = {
|
|
1153
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1154
|
+
textAlign: o,
|
|
1155
|
+
...i != null && i.label ? { width: `${i.label}px` } : {},
|
|
1156
|
+
...d
|
|
1157
|
+
}, T = {
|
|
1158
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1159
|
+
...i != null && i.value ? { width: `${i.value}px` } : {},
|
|
1160
|
+
...b
|
|
1065
1161
|
};
|
|
1066
|
-
return /* @__PURE__ */
|
|
1067
|
-
|
|
1162
|
+
return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(
|
|
1163
|
+
It,
|
|
1068
1164
|
{
|
|
1069
1165
|
title: t,
|
|
1070
1166
|
column: n,
|
|
1071
1167
|
colon: l,
|
|
1072
1168
|
bordered: u,
|
|
1073
|
-
style:
|
|
1074
|
-
className:
|
|
1075
|
-
labelStyle:
|
|
1076
|
-
contentStyle:
|
|
1077
|
-
children: e.map((
|
|
1078
|
-
var
|
|
1079
|
-
return /* @__PURE__ */
|
|
1080
|
-
|
|
1169
|
+
style: c,
|
|
1170
|
+
className: g,
|
|
1171
|
+
labelStyle: O,
|
|
1172
|
+
contentStyle: T,
|
|
1173
|
+
children: e.map((N, z) => {
|
|
1174
|
+
var j;
|
|
1175
|
+
return /* @__PURE__ */ p.jsx(
|
|
1176
|
+
It.Item,
|
|
1081
1177
|
{
|
|
1082
|
-
label:
|
|
1083
|
-
span:
|
|
1084
|
-
children:
|
|
1178
|
+
label: N.label,
|
|
1179
|
+
span: N.span,
|
|
1180
|
+
children: N.value || "-"
|
|
1085
1181
|
},
|
|
1086
|
-
((
|
|
1182
|
+
((j = N.label) == null ? void 0 : j.toString()) || z
|
|
1087
1183
|
);
|
|
1088
1184
|
})
|
|
1089
1185
|
}
|
|
1090
1186
|
) });
|
|
1091
1187
|
};
|
|
1092
|
-
|
|
1093
|
-
var
|
|
1094
|
-
const
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1188
|
+
En.displayName = "MDescriptions";
|
|
1189
|
+
var On = /* @__PURE__ */ Qt({});
|
|
1190
|
+
const or = On;
|
|
1191
|
+
function be() {
|
|
1192
|
+
return be = Object.assign ? Object.assign.bind() : function(r) {
|
|
1097
1193
|
for (var e = 1; e < arguments.length; e++) {
|
|
1098
1194
|
var t = arguments[e];
|
|
1099
1195
|
for (var n in t)
|
|
1100
1196
|
({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
1101
1197
|
}
|
|
1102
1198
|
return r;
|
|
1103
|
-
},
|
|
1199
|
+
}, be.apply(null, arguments);
|
|
1104
1200
|
}
|
|
1105
|
-
function
|
|
1201
|
+
function jn(r) {
|
|
1106
1202
|
if (Array.isArray(r))
|
|
1107
1203
|
return r;
|
|
1108
1204
|
}
|
|
1109
|
-
function
|
|
1205
|
+
function Pn(r, e) {
|
|
1110
1206
|
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
1111
1207
|
if (t != null) {
|
|
1112
|
-
var n,
|
|
1208
|
+
var n, s, o, i, l = [], u = !0, c = !1;
|
|
1113
1209
|
try {
|
|
1114
|
-
if (
|
|
1210
|
+
if (o = (t = t.call(r)).next, e === 0) {
|
|
1115
1211
|
if (Object(t) !== t)
|
|
1116
1212
|
return;
|
|
1117
1213
|
u = !1;
|
|
1118
1214
|
} else
|
|
1119
|
-
for (; !(u = (n =
|
|
1215
|
+
for (; !(u = (n = o.call(t)).done) && (l.push(n.value), l.length !== e); u = !0)
|
|
1120
1216
|
;
|
|
1121
|
-
} catch (
|
|
1122
|
-
|
|
1217
|
+
} catch (g) {
|
|
1218
|
+
c = !0, s = g;
|
|
1123
1219
|
} finally {
|
|
1124
1220
|
try {
|
|
1125
|
-
if (!u && t.return != null && (
|
|
1221
|
+
if (!u && t.return != null && (i = t.return(), Object(i) !== i))
|
|
1126
1222
|
return;
|
|
1127
1223
|
} finally {
|
|
1128
|
-
if (
|
|
1129
|
-
throw
|
|
1224
|
+
if (c)
|
|
1225
|
+
throw s;
|
|
1130
1226
|
}
|
|
1131
1227
|
}
|
|
1132
1228
|
return l;
|
|
1133
1229
|
}
|
|
1134
1230
|
}
|
|
1135
|
-
function
|
|
1231
|
+
function Ht(r, e) {
|
|
1136
1232
|
(e == null || e > r.length) && (e = r.length);
|
|
1137
1233
|
for (var t = 0, n = Array(e); t < e; t++)
|
|
1138
1234
|
n[t] = r[t];
|
|
1139
1235
|
return n;
|
|
1140
1236
|
}
|
|
1141
|
-
function
|
|
1237
|
+
function Tn(r, e) {
|
|
1142
1238
|
if (r) {
|
|
1143
1239
|
if (typeof r == "string")
|
|
1144
|
-
return
|
|
1240
|
+
return Ht(r, e);
|
|
1145
1241
|
var t = {}.toString.call(r).slice(8, -1);
|
|
1146
|
-
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
1242
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ht(r, e) : void 0;
|
|
1147
1243
|
}
|
|
1148
1244
|
}
|
|
1149
|
-
function
|
|
1245
|
+
function Nn() {
|
|
1150
1246
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1151
1247
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1152
1248
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1249
|
+
function ir(r, e) {
|
|
1250
|
+
return jn(r) || Pn(r, e) || Tn(r, e) || Nn();
|
|
1155
1251
|
}
|
|
1156
|
-
function
|
|
1252
|
+
function fe(r) {
|
|
1157
1253
|
"@babel/helpers - typeof";
|
|
1158
|
-
return
|
|
1254
|
+
return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1159
1255
|
return typeof e;
|
|
1160
1256
|
} : function(e) {
|
|
1161
1257
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1162
|
-
},
|
|
1258
|
+
}, fe(r);
|
|
1163
1259
|
}
|
|
1164
|
-
function
|
|
1165
|
-
if (
|
|
1260
|
+
function kn(r, e) {
|
|
1261
|
+
if (fe(r) != "object" || !r)
|
|
1166
1262
|
return r;
|
|
1167
1263
|
var t = r[Symbol.toPrimitive];
|
|
1168
1264
|
if (t !== void 0) {
|
|
1169
1265
|
var n = t.call(r, e || "default");
|
|
1170
|
-
if (
|
|
1266
|
+
if (fe(n) != "object")
|
|
1171
1267
|
return n;
|
|
1172
1268
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1173
1269
|
}
|
|
1174
1270
|
return (e === "string" ? String : Number)(r);
|
|
1175
1271
|
}
|
|
1176
|
-
function
|
|
1177
|
-
var e =
|
|
1178
|
-
return
|
|
1272
|
+
function Dn(r) {
|
|
1273
|
+
var e = kn(r, "string");
|
|
1274
|
+
return fe(e) == "symbol" ? e : e + "";
|
|
1179
1275
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return (e =
|
|
1276
|
+
function F(r, e, t) {
|
|
1277
|
+
return (e = Dn(e)) in r ? Object.defineProperty(r, e, {
|
|
1182
1278
|
value: t,
|
|
1183
1279
|
enumerable: !0,
|
|
1184
1280
|
configurable: !0,
|
|
1185
1281
|
writable: !0
|
|
1186
1282
|
}) : r[e] = t, r;
|
|
1187
1283
|
}
|
|
1188
|
-
function
|
|
1284
|
+
function An(r, e) {
|
|
1189
1285
|
if (r == null)
|
|
1190
1286
|
return {};
|
|
1191
1287
|
var t = {};
|
|
@@ -1197,18 +1293,18 @@ function nn(r, e) {
|
|
|
1197
1293
|
}
|
|
1198
1294
|
return t;
|
|
1199
1295
|
}
|
|
1200
|
-
function
|
|
1296
|
+
function cr(r, e) {
|
|
1201
1297
|
if (r == null)
|
|
1202
1298
|
return {};
|
|
1203
|
-
var t, n,
|
|
1299
|
+
var t, n, s = An(r, e);
|
|
1204
1300
|
if (Object.getOwnPropertySymbols) {
|
|
1205
|
-
var
|
|
1206
|
-
for (n = 0; n <
|
|
1207
|
-
t =
|
|
1301
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
1302
|
+
for (n = 0; n < o.length; n++)
|
|
1303
|
+
t = o[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (s[t] = r[t]);
|
|
1208
1304
|
}
|
|
1209
|
-
return
|
|
1305
|
+
return s;
|
|
1210
1306
|
}
|
|
1211
|
-
var
|
|
1307
|
+
var lr = { exports: {} };
|
|
1212
1308
|
/*!
|
|
1213
1309
|
Copyright (c) 2018 Jed Watson.
|
|
1214
1310
|
Licensed under the MIT License (MIT), see
|
|
@@ -1218,62 +1314,62 @@ var Dt = { exports: {} };
|
|
|
1218
1314
|
(function() {
|
|
1219
1315
|
var e = {}.hasOwnProperty;
|
|
1220
1316
|
function t() {
|
|
1221
|
-
for (var
|
|
1222
|
-
var l = arguments[
|
|
1223
|
-
l && (
|
|
1317
|
+
for (var o = "", i = 0; i < arguments.length; i++) {
|
|
1318
|
+
var l = arguments[i];
|
|
1319
|
+
l && (o = s(o, n(l)));
|
|
1224
1320
|
}
|
|
1225
|
-
return s;
|
|
1226
|
-
}
|
|
1227
|
-
function n(s) {
|
|
1228
|
-
if (typeof s == "string" || typeof s == "number")
|
|
1229
|
-
return s;
|
|
1230
|
-
if (typeof s != "object")
|
|
1231
|
-
return "";
|
|
1232
|
-
if (Array.isArray(s))
|
|
1233
|
-
return t.apply(null, s);
|
|
1234
|
-
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
1235
|
-
return s.toString();
|
|
1236
|
-
var o = "";
|
|
1237
|
-
for (var l in s)
|
|
1238
|
-
e.call(s, l) && s[l] && (o = i(o, l));
|
|
1239
1321
|
return o;
|
|
1240
1322
|
}
|
|
1241
|
-
function
|
|
1242
|
-
|
|
1323
|
+
function n(o) {
|
|
1324
|
+
if (typeof o == "string" || typeof o == "number")
|
|
1325
|
+
return o;
|
|
1326
|
+
if (typeof o != "object")
|
|
1327
|
+
return "";
|
|
1328
|
+
if (Array.isArray(o))
|
|
1329
|
+
return t.apply(null, o);
|
|
1330
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
1331
|
+
return o.toString();
|
|
1332
|
+
var i = "";
|
|
1333
|
+
for (var l in o)
|
|
1334
|
+
e.call(o, l) && o[l] && (i = s(i, l));
|
|
1335
|
+
return i;
|
|
1336
|
+
}
|
|
1337
|
+
function s(o, i) {
|
|
1338
|
+
return i ? o ? o + " " + i : o + i : o;
|
|
1243
1339
|
}
|
|
1244
1340
|
r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
|
|
1245
1341
|
})();
|
|
1246
|
-
})(
|
|
1247
|
-
var
|
|
1248
|
-
const
|
|
1249
|
-
function
|
|
1250
|
-
const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((
|
|
1251
|
-
for (let
|
|
1252
|
-
n[
|
|
1342
|
+
})(lr);
|
|
1343
|
+
var $n = lr.exports;
|
|
1344
|
+
const In = /* @__PURE__ */ pn($n), M = Math.round;
|
|
1345
|
+
function nt(r, e) {
|
|
1346
|
+
const t = r.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = t.map((s) => parseFloat(s));
|
|
1347
|
+
for (let s = 0; s < 3; s += 1)
|
|
1348
|
+
n[s] = e(n[s] || 0, t[s] || "", s);
|
|
1253
1349
|
return t[3] ? n[3] = t[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
|
|
1254
1350
|
}
|
|
1255
|
-
const
|
|
1256
|
-
function
|
|
1351
|
+
const Lt = (r, e, t) => t === 0 ? r : r / 100;
|
|
1352
|
+
function je(r, e) {
|
|
1257
1353
|
const t = e || 255;
|
|
1258
1354
|
return r > t ? t : r < 0 ? 0 : r;
|
|
1259
1355
|
}
|
|
1260
|
-
class
|
|
1356
|
+
class pe {
|
|
1261
1357
|
constructor(e) {
|
|
1262
|
-
|
|
1358
|
+
F(this, "isValid", !0), F(this, "r", 0), F(this, "g", 0), F(this, "b", 0), F(this, "a", 1), F(this, "_h", void 0), F(this, "_s", void 0), F(this, "_l", void 0), F(this, "_v", void 0), F(this, "_max", void 0), F(this, "_min", void 0), F(this, "_brightness", void 0);
|
|
1263
1359
|
function t(n) {
|
|
1264
1360
|
return n[0] in e && n[1] in e && n[2] in e;
|
|
1265
1361
|
}
|
|
1266
1362
|
if (e)
|
|
1267
1363
|
if (typeof e == "string") {
|
|
1268
|
-
let
|
|
1269
|
-
return n.startsWith(
|
|
1364
|
+
let s = function(o) {
|
|
1365
|
+
return n.startsWith(o);
|
|
1270
1366
|
};
|
|
1271
1367
|
const n = e.trim();
|
|
1272
|
-
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) :
|
|
1273
|
-
} else if (e instanceof
|
|
1368
|
+
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : s("rgb") ? this.fromRgbString(n) : s("hsl") ? this.fromHslString(n) : (s("hsv") || s("hsb")) && this.fromHsvString(n);
|
|
1369
|
+
} else if (e instanceof pe)
|
|
1274
1370
|
this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this._h = e._h, this._s = e._s, this._l = e._l, this._v = e._v;
|
|
1275
1371
|
else if (t("rgb"))
|
|
1276
|
-
this.r =
|
|
1372
|
+
this.r = je(e.r), this.g = je(e.g), this.b = je(e.b), this.a = typeof e.a == "number" ? je(e.a, 1) : 1;
|
|
1277
1373
|
else if (t("hsl"))
|
|
1278
1374
|
this.fromHsl(e);
|
|
1279
1375
|
else if (t("hsv"))
|
|
@@ -1304,17 +1400,17 @@ class Z {
|
|
|
1304
1400
|
* @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
1305
1401
|
*/
|
|
1306
1402
|
getLuminance() {
|
|
1307
|
-
function e(
|
|
1308
|
-
const
|
|
1309
|
-
return
|
|
1403
|
+
function e(o) {
|
|
1404
|
+
const i = o / 255;
|
|
1405
|
+
return i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
1310
1406
|
}
|
|
1311
|
-
const t = e(this.r), n = e(this.g),
|
|
1312
|
-
return 0.2126 * t + 0.7152 * n + 0.0722 *
|
|
1407
|
+
const t = e(this.r), n = e(this.g), s = e(this.b);
|
|
1408
|
+
return 0.2126 * t + 0.7152 * n + 0.0722 * s;
|
|
1313
1409
|
}
|
|
1314
1410
|
getHue() {
|
|
1315
1411
|
if (typeof this._h > "u") {
|
|
1316
1412
|
const e = this.getMax() - this.getMin();
|
|
1317
|
-
e === 0 ? this._h = 0 : this._h =
|
|
1413
|
+
e === 0 ? this._h = 0 : this._h = M(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
|
|
1318
1414
|
}
|
|
1319
1415
|
return this._h;
|
|
1320
1416
|
}
|
|
@@ -1342,21 +1438,21 @@ class Z {
|
|
|
1342
1438
|
// ======================== Func ========================
|
|
1343
1439
|
darken(e = 10) {
|
|
1344
1440
|
const t = this.getHue(), n = this.getSaturation();
|
|
1345
|
-
let
|
|
1346
|
-
return
|
|
1441
|
+
let s = this.getLightness() - e / 100;
|
|
1442
|
+
return s < 0 && (s = 0), this._c({
|
|
1347
1443
|
h: t,
|
|
1348
1444
|
s: n,
|
|
1349
|
-
l:
|
|
1445
|
+
l: s,
|
|
1350
1446
|
a: this.a
|
|
1351
1447
|
});
|
|
1352
1448
|
}
|
|
1353
1449
|
lighten(e = 10) {
|
|
1354
1450
|
const t = this.getHue(), n = this.getSaturation();
|
|
1355
|
-
let
|
|
1356
|
-
return
|
|
1451
|
+
let s = this.getLightness() + e / 100;
|
|
1452
|
+
return s > 1 && (s = 1), this._c({
|
|
1357
1453
|
h: t,
|
|
1358
1454
|
s: n,
|
|
1359
|
-
l:
|
|
1455
|
+
l: s,
|
|
1360
1456
|
a: this.a
|
|
1361
1457
|
});
|
|
1362
1458
|
}
|
|
@@ -1365,13 +1461,13 @@ class Z {
|
|
|
1365
1461
|
* 0 means no mixing (return current color).
|
|
1366
1462
|
*/
|
|
1367
1463
|
mix(e, t = 50) {
|
|
1368
|
-
const n = this._c(e),
|
|
1369
|
-
r:
|
|
1370
|
-
g:
|
|
1371
|
-
b:
|
|
1372
|
-
a:
|
|
1464
|
+
const n = this._c(e), s = t / 100, o = (l) => (n[l] - this[l]) * s + this[l], i = {
|
|
1465
|
+
r: M(o("r")),
|
|
1466
|
+
g: M(o("g")),
|
|
1467
|
+
b: M(o("b")),
|
|
1468
|
+
a: M(o("a") * 100) / 100
|
|
1373
1469
|
};
|
|
1374
|
-
return this._c(
|
|
1470
|
+
return this._c(i);
|
|
1375
1471
|
}
|
|
1376
1472
|
/**
|
|
1377
1473
|
* Mix the color with pure white, from 0 to 100.
|
|
@@ -1398,11 +1494,11 @@ class Z {
|
|
|
1398
1494
|
}, e);
|
|
1399
1495
|
}
|
|
1400
1496
|
onBackground(e) {
|
|
1401
|
-
const t = this._c(e), n = this.a + t.a * (1 - this.a),
|
|
1497
|
+
const t = this._c(e), n = this.a + t.a * (1 - this.a), s = (o) => M((this[o] * this.a + t[o] * t.a * (1 - this.a)) / n);
|
|
1402
1498
|
return this._c({
|
|
1403
|
-
r:
|
|
1404
|
-
g:
|
|
1405
|
-
b:
|
|
1499
|
+
r: s("r"),
|
|
1500
|
+
g: s("g"),
|
|
1501
|
+
b: s("b"),
|
|
1406
1502
|
a: n
|
|
1407
1503
|
});
|
|
1408
1504
|
}
|
|
@@ -1427,10 +1523,10 @@ class Z {
|
|
|
1427
1523
|
e += t.length === 2 ? t : "0" + t;
|
|
1428
1524
|
const n = (this.g || 0).toString(16);
|
|
1429
1525
|
e += n.length === 2 ? n : "0" + n;
|
|
1430
|
-
const
|
|
1431
|
-
if (e +=
|
|
1432
|
-
const
|
|
1433
|
-
e +=
|
|
1526
|
+
const s = (this.b || 0).toString(16);
|
|
1527
|
+
if (e += s.length === 2 ? s : "0" + s, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
|
|
1528
|
+
const o = M(this.a * 255).toString(16);
|
|
1529
|
+
e += o.length === 2 ? o : "0" + o;
|
|
1434
1530
|
}
|
|
1435
1531
|
return e;
|
|
1436
1532
|
}
|
|
@@ -1445,7 +1541,7 @@ class Z {
|
|
|
1445
1541
|
}
|
|
1446
1542
|
/** CSS support color pattern */
|
|
1447
1543
|
toHslString() {
|
|
1448
|
-
const e = this.getHue(), t =
|
|
1544
|
+
const e = this.getHue(), t = M(this.getSaturation() * 100), n = M(this.getLightness() * 100);
|
|
1449
1545
|
return this.a !== 1 ? `hsla(${e},${t}%,${n}%,${this.a})` : `hsl(${e},${t}%,${n}%)`;
|
|
1450
1546
|
}
|
|
1451
1547
|
/** Same as toHsb */
|
|
@@ -1474,8 +1570,8 @@ class Z {
|
|
|
1474
1570
|
// ====================== Privates ======================
|
|
1475
1571
|
/** Return a new FastColor object with one channel changed */
|
|
1476
1572
|
_sc(e, t, n) {
|
|
1477
|
-
const
|
|
1478
|
-
return
|
|
1573
|
+
const s = this.clone();
|
|
1574
|
+
return s[e] = je(t, n), s;
|
|
1479
1575
|
}
|
|
1480
1576
|
_c(e) {
|
|
1481
1577
|
return new this.constructor(e);
|
|
@@ -1488,8 +1584,8 @@ class Z {
|
|
|
1488
1584
|
}
|
|
1489
1585
|
fromHexString(e) {
|
|
1490
1586
|
const t = e.replace("#", "");
|
|
1491
|
-
function n(
|
|
1492
|
-
return parseInt(t[
|
|
1587
|
+
function n(s, o) {
|
|
1588
|
+
return parseInt(t[s] + t[o || s], 16);
|
|
1493
1589
|
}
|
|
1494
1590
|
t.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = t[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = t[6] ? n(6, 7) / 255 : 1);
|
|
1495
1591
|
}
|
|
@@ -1497,53 +1593,53 @@ class Z {
|
|
|
1497
1593
|
h: e,
|
|
1498
1594
|
s: t,
|
|
1499
1595
|
l: n,
|
|
1500
|
-
a:
|
|
1596
|
+
a: s
|
|
1501
1597
|
}) {
|
|
1502
|
-
if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof
|
|
1503
|
-
const
|
|
1504
|
-
this.r =
|
|
1598
|
+
if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof s == "number" ? s : 1, t <= 0) {
|
|
1599
|
+
const b = M(n * 255);
|
|
1600
|
+
this.r = b, this.g = b, this.b = b;
|
|
1505
1601
|
}
|
|
1506
|
-
let
|
|
1507
|
-
const u = e / 60,
|
|
1508
|
-
u >= 0 && u < 1 ? (
|
|
1509
|
-
const
|
|
1510
|
-
this.r =
|
|
1602
|
+
let o = 0, i = 0, l = 0;
|
|
1603
|
+
const u = e / 60, c = (1 - Math.abs(2 * n - 1)) * t, g = c * (1 - Math.abs(u % 2 - 1));
|
|
1604
|
+
u >= 0 && u < 1 ? (o = c, i = g) : u >= 1 && u < 2 ? (o = g, i = c) : u >= 2 && u < 3 ? (i = c, l = g) : u >= 3 && u < 4 ? (i = g, l = c) : u >= 4 && u < 5 ? (o = g, l = c) : u >= 5 && u < 6 && (o = c, l = g);
|
|
1605
|
+
const d = n - c / 2;
|
|
1606
|
+
this.r = M((o + d) * 255), this.g = M((i + d) * 255), this.b = M((l + d) * 255);
|
|
1511
1607
|
}
|
|
1512
1608
|
fromHsv({
|
|
1513
1609
|
h: e,
|
|
1514
1610
|
s: t,
|
|
1515
1611
|
v: n,
|
|
1516
|
-
a:
|
|
1612
|
+
a: s
|
|
1517
1613
|
}) {
|
|
1518
|
-
this._h = e % 360, this._s = t, this._v = n, this.a = typeof
|
|
1519
|
-
const
|
|
1520
|
-
if (this.r =
|
|
1614
|
+
this._h = e % 360, this._s = t, this._v = n, this.a = typeof s == "number" ? s : 1;
|
|
1615
|
+
const o = M(n * 255);
|
|
1616
|
+
if (this.r = o, this.g = o, this.b = o, t <= 0)
|
|
1521
1617
|
return;
|
|
1522
|
-
const
|
|
1618
|
+
const i = e / 60, l = Math.floor(i), u = i - l, c = M(n * (1 - t) * 255), g = M(n * (1 - t * u) * 255), d = M(n * (1 - t * (1 - u)) * 255);
|
|
1523
1619
|
switch (l) {
|
|
1524
1620
|
case 0:
|
|
1525
|
-
this.g =
|
|
1621
|
+
this.g = d, this.b = c;
|
|
1526
1622
|
break;
|
|
1527
1623
|
case 1:
|
|
1528
|
-
this.r =
|
|
1624
|
+
this.r = g, this.b = c;
|
|
1529
1625
|
break;
|
|
1530
1626
|
case 2:
|
|
1531
|
-
this.r =
|
|
1627
|
+
this.r = c, this.b = d;
|
|
1532
1628
|
break;
|
|
1533
1629
|
case 3:
|
|
1534
|
-
this.r =
|
|
1630
|
+
this.r = c, this.g = g;
|
|
1535
1631
|
break;
|
|
1536
1632
|
case 4:
|
|
1537
|
-
this.r =
|
|
1633
|
+
this.r = d, this.g = c;
|
|
1538
1634
|
break;
|
|
1539
1635
|
case 5:
|
|
1540
1636
|
default:
|
|
1541
|
-
this.g =
|
|
1637
|
+
this.g = c, this.b = g;
|
|
1542
1638
|
break;
|
|
1543
1639
|
}
|
|
1544
1640
|
}
|
|
1545
1641
|
fromHsvString(e) {
|
|
1546
|
-
const t =
|
|
1642
|
+
const t = nt(e, Lt);
|
|
1547
1643
|
this.fromHsv({
|
|
1548
1644
|
h: t[0],
|
|
1549
1645
|
s: t[1],
|
|
@@ -1552,7 +1648,7 @@ class Z {
|
|
|
1552
1648
|
});
|
|
1553
1649
|
}
|
|
1554
1650
|
fromHslString(e) {
|
|
1555
|
-
const t =
|
|
1651
|
+
const t = nt(e, Lt);
|
|
1556
1652
|
this.fromHsl({
|
|
1557
1653
|
h: t[0],
|
|
1558
1654
|
s: t[1],
|
|
@@ -1561,14 +1657,14 @@ class Z {
|
|
|
1561
1657
|
});
|
|
1562
1658
|
}
|
|
1563
1659
|
fromRgbString(e) {
|
|
1564
|
-
const t =
|
|
1660
|
+
const t = nt(e, (n, s) => (
|
|
1565
1661
|
// Convert percentage to number. e.g. 50% -> 128
|
|
1566
|
-
|
|
1662
|
+
s.includes("%") ? M(n / 100 * 255) : n
|
|
1567
1663
|
));
|
|
1568
1664
|
this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
|
|
1569
1665
|
}
|
|
1570
1666
|
}
|
|
1571
|
-
var
|
|
1667
|
+
var Ye = 2, Vt = 0.16, Mn = 0.05, Yn = 0.05, zn = 0.15, ur = 5, fr = 4, Hn = [{
|
|
1572
1668
|
index: 7,
|
|
1573
1669
|
amount: 15
|
|
1574
1670
|
}, {
|
|
@@ -1599,72 +1695,72 @@ var le = 2, bt = 0.16, on = 0.05, cn = 0.05, ln = 0.15, Mt = 5, It = 4, un = [{
|
|
|
1599
1695
|
index: 1,
|
|
1600
1696
|
amount: 98
|
|
1601
1697
|
}];
|
|
1602
|
-
function
|
|
1698
|
+
function Ft(r, e, t) {
|
|
1603
1699
|
var n;
|
|
1604
|
-
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) -
|
|
1700
|
+
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? n = t ? Math.round(r.h) - Ye * e : Math.round(r.h) + Ye * e : n = t ? Math.round(r.h) + Ye * e : Math.round(r.h) - Ye * e, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
1605
1701
|
}
|
|
1606
|
-
function
|
|
1702
|
+
function Ut(r, e, t) {
|
|
1607
1703
|
if (r.h === 0 && r.s === 0)
|
|
1608
1704
|
return r.s;
|
|
1609
1705
|
var n;
|
|
1610
|
-
return t ? n = r.s -
|
|
1706
|
+
return t ? n = r.s - Vt * e : e === fr ? n = r.s + Vt : n = r.s + Mn * e, n > 1 && (n = 1), t && e === ur && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
|
|
1611
1707
|
}
|
|
1612
|
-
function
|
|
1708
|
+
function Wt(r, e, t) {
|
|
1613
1709
|
var n;
|
|
1614
|
-
return t ? n = r.v +
|
|
1615
|
-
}
|
|
1616
|
-
function
|
|
1617
|
-
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new
|
|
1618
|
-
var
|
|
1619
|
-
h:
|
|
1620
|
-
s:
|
|
1621
|
-
v:
|
|
1710
|
+
return t ? n = r.v + Yn * e : n = r.v - zn * e, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
|
|
1711
|
+
}
|
|
1712
|
+
function Ln(r) {
|
|
1713
|
+
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new pe(r), s = n.toHsv(), o = ur; o > 0; o -= 1) {
|
|
1714
|
+
var i = new pe({
|
|
1715
|
+
h: Ft(s, o, !0),
|
|
1716
|
+
s: Ut(s, o, !0),
|
|
1717
|
+
v: Wt(s, o, !0)
|
|
1622
1718
|
});
|
|
1623
|
-
t.push(
|
|
1719
|
+
t.push(i);
|
|
1624
1720
|
}
|
|
1625
1721
|
t.push(n);
|
|
1626
|
-
for (var l = 1; l <=
|
|
1627
|
-
var u = new
|
|
1628
|
-
h:
|
|
1629
|
-
s:
|
|
1630
|
-
v:
|
|
1722
|
+
for (var l = 1; l <= fr; l += 1) {
|
|
1723
|
+
var u = new pe({
|
|
1724
|
+
h: Ft(s, l),
|
|
1725
|
+
s: Ut(s, l),
|
|
1726
|
+
v: Wt(s, l)
|
|
1631
1727
|
});
|
|
1632
1728
|
t.push(u);
|
|
1633
1729
|
}
|
|
1634
|
-
return e.theme === "dark" ?
|
|
1635
|
-
var
|
|
1636
|
-
return new
|
|
1637
|
-
}) : t.map(function(
|
|
1638
|
-
return
|
|
1730
|
+
return e.theme === "dark" ? Hn.map(function(c) {
|
|
1731
|
+
var g = c.index, d = c.amount;
|
|
1732
|
+
return new pe(e.backgroundColor || "#141414").mix(t[g], d).toHexString();
|
|
1733
|
+
}) : t.map(function(c) {
|
|
1734
|
+
return c.toHexString();
|
|
1639
1735
|
});
|
|
1640
1736
|
}
|
|
1641
|
-
var
|
|
1642
|
-
|
|
1643
|
-
function
|
|
1737
|
+
var ut = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
1738
|
+
ut.primary = ut[5];
|
|
1739
|
+
function Bt(r, e) {
|
|
1644
1740
|
var t = Object.keys(r);
|
|
1645
1741
|
if (Object.getOwnPropertySymbols) {
|
|
1646
1742
|
var n = Object.getOwnPropertySymbols(r);
|
|
1647
|
-
e && (n = n.filter(function(
|
|
1648
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
1743
|
+
e && (n = n.filter(function(s) {
|
|
1744
|
+
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
1649
1745
|
})), t.push.apply(t, n);
|
|
1650
1746
|
}
|
|
1651
1747
|
return t;
|
|
1652
1748
|
}
|
|
1653
|
-
function
|
|
1749
|
+
function te(r) {
|
|
1654
1750
|
for (var e = 1; e < arguments.length; e++) {
|
|
1655
1751
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1656
|
-
e % 2 ?
|
|
1657
|
-
|
|
1658
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) :
|
|
1752
|
+
e % 2 ? Bt(Object(t), !0).forEach(function(n) {
|
|
1753
|
+
F(r, n, t[n]);
|
|
1754
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Bt(Object(t)).forEach(function(n) {
|
|
1659
1755
|
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1660
1756
|
});
|
|
1661
1757
|
}
|
|
1662
1758
|
return r;
|
|
1663
1759
|
}
|
|
1664
|
-
function
|
|
1760
|
+
function Vn() {
|
|
1665
1761
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1666
1762
|
}
|
|
1667
|
-
function
|
|
1763
|
+
function Fn(r, e) {
|
|
1668
1764
|
if (!r)
|
|
1669
1765
|
return !1;
|
|
1670
1766
|
if (r.contains)
|
|
@@ -1676,134 +1772,134 @@ function hn(r, e) {
|
|
|
1676
1772
|
}
|
|
1677
1773
|
return !1;
|
|
1678
1774
|
}
|
|
1679
|
-
var
|
|
1680
|
-
function
|
|
1775
|
+
var Zt = "data-rc-order", qt = "data-rc-priority", Un = "rc-util-key", ft = /* @__PURE__ */ new Map();
|
|
1776
|
+
function dr() {
|
|
1681
1777
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = r.mark;
|
|
1682
|
-
return e ? e.startsWith("data-") ? e : "data-".concat(e) :
|
|
1778
|
+
return e ? e.startsWith("data-") ? e : "data-".concat(e) : Un;
|
|
1683
1779
|
}
|
|
1684
|
-
function
|
|
1780
|
+
function gt(r) {
|
|
1685
1781
|
if (r.attachTo)
|
|
1686
1782
|
return r.attachTo;
|
|
1687
1783
|
var e = document.querySelector("head");
|
|
1688
1784
|
return e || document.body;
|
|
1689
1785
|
}
|
|
1690
|
-
function
|
|
1786
|
+
function Wn(r) {
|
|
1691
1787
|
return r === "queue" ? "prependQueue" : r ? "prepend" : "append";
|
|
1692
1788
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return Array.from((
|
|
1789
|
+
function pt(r) {
|
|
1790
|
+
return Array.from((ft.get(r) || r).children).filter(function(e) {
|
|
1695
1791
|
return e.tagName === "STYLE";
|
|
1696
1792
|
});
|
|
1697
1793
|
}
|
|
1698
|
-
function
|
|
1794
|
+
function hr(r) {
|
|
1699
1795
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1700
|
-
if (!
|
|
1796
|
+
if (!Vn())
|
|
1701
1797
|
return null;
|
|
1702
|
-
var t = e.csp, n = e.prepend,
|
|
1703
|
-
u.setAttribute(
|
|
1704
|
-
var
|
|
1798
|
+
var t = e.csp, n = e.prepend, s = e.priority, o = s === void 0 ? 0 : s, i = Wn(n), l = i === "prependQueue", u = document.createElement("style");
|
|
1799
|
+
u.setAttribute(Zt, i), l && o && u.setAttribute(qt, "".concat(o)), t != null && t.nonce && (u.nonce = t == null ? void 0 : t.nonce), u.innerHTML = r;
|
|
1800
|
+
var c = gt(e), g = c.firstChild;
|
|
1705
1801
|
if (n) {
|
|
1706
1802
|
if (l) {
|
|
1707
|
-
var
|
|
1708
|
-
if (!["prepend", "prependQueue"].includes(
|
|
1803
|
+
var d = (e.styles || pt(c)).filter(function(b) {
|
|
1804
|
+
if (!["prepend", "prependQueue"].includes(b.getAttribute(Zt)))
|
|
1709
1805
|
return !1;
|
|
1710
|
-
var
|
|
1711
|
-
return
|
|
1806
|
+
var O = Number(b.getAttribute(qt) || 0);
|
|
1807
|
+
return o >= O;
|
|
1712
1808
|
});
|
|
1713
|
-
if (
|
|
1714
|
-
return
|
|
1809
|
+
if (d.length)
|
|
1810
|
+
return c.insertBefore(u, d[d.length - 1].nextSibling), u;
|
|
1715
1811
|
}
|
|
1716
|
-
|
|
1812
|
+
c.insertBefore(u, g);
|
|
1717
1813
|
} else
|
|
1718
|
-
|
|
1814
|
+
c.appendChild(u);
|
|
1719
1815
|
return u;
|
|
1720
1816
|
}
|
|
1721
|
-
function
|
|
1722
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t =
|
|
1723
|
-
return (e.styles ||
|
|
1724
|
-
return n.getAttribute(
|
|
1817
|
+
function Bn(r) {
|
|
1818
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = gt(e);
|
|
1819
|
+
return (e.styles || pt(t)).find(function(n) {
|
|
1820
|
+
return n.getAttribute(dr(e)) === r;
|
|
1725
1821
|
});
|
|
1726
1822
|
}
|
|
1727
|
-
function
|
|
1728
|
-
var t =
|
|
1729
|
-
if (!t || !
|
|
1730
|
-
var n =
|
|
1731
|
-
|
|
1823
|
+
function Zn(r, e) {
|
|
1824
|
+
var t = ft.get(r);
|
|
1825
|
+
if (!t || !Fn(document, t)) {
|
|
1826
|
+
var n = hr("", e), s = n.parentNode;
|
|
1827
|
+
ft.set(r, s), r.removeChild(n);
|
|
1732
1828
|
}
|
|
1733
1829
|
}
|
|
1734
|
-
function
|
|
1735
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n =
|
|
1736
|
-
styles:
|
|
1830
|
+
function qn(r, e) {
|
|
1831
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = gt(t), s = pt(n), o = te(te({}, t), {}, {
|
|
1832
|
+
styles: s
|
|
1737
1833
|
});
|
|
1738
|
-
|
|
1739
|
-
var
|
|
1740
|
-
if (
|
|
1834
|
+
Zn(n, o);
|
|
1835
|
+
var i = Bn(e, o);
|
|
1836
|
+
if (i) {
|
|
1741
1837
|
var l, u;
|
|
1742
|
-
if ((l =
|
|
1743
|
-
var
|
|
1744
|
-
|
|
1838
|
+
if ((l = o.csp) !== null && l !== void 0 && l.nonce && i.nonce !== ((u = o.csp) === null || u === void 0 ? void 0 : u.nonce)) {
|
|
1839
|
+
var c;
|
|
1840
|
+
i.nonce = (c = o.csp) === null || c === void 0 ? void 0 : c.nonce;
|
|
1745
1841
|
}
|
|
1746
|
-
return
|
|
1842
|
+
return i.innerHTML !== r && (i.innerHTML = r), i;
|
|
1747
1843
|
}
|
|
1748
|
-
var
|
|
1749
|
-
return
|
|
1844
|
+
var g = hr(r, o);
|
|
1845
|
+
return g.setAttribute(dr(o), e), g;
|
|
1750
1846
|
}
|
|
1751
|
-
function
|
|
1847
|
+
function gr(r) {
|
|
1752
1848
|
var e;
|
|
1753
1849
|
return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
|
|
1754
1850
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1851
|
+
function Kn(r) {
|
|
1852
|
+
return gr(r) instanceof ShadowRoot;
|
|
1757
1853
|
}
|
|
1758
|
-
function
|
|
1759
|
-
return
|
|
1854
|
+
function Gn(r) {
|
|
1855
|
+
return Kn(r) ? gr(r) : null;
|
|
1760
1856
|
}
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1857
|
+
var dt = {}, mt = [], Jn = function(e) {
|
|
1858
|
+
mt.push(e);
|
|
1763
1859
|
};
|
|
1764
|
-
function
|
|
1860
|
+
function Xn(r, e) {
|
|
1765
1861
|
if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
|
|
1766
|
-
var t =
|
|
1767
|
-
return
|
|
1862
|
+
var t = mt.reduce(function(n, s) {
|
|
1863
|
+
return s(n ?? "", "warning");
|
|
1768
1864
|
}, e);
|
|
1769
1865
|
t && console.error("Warning: ".concat(t));
|
|
1770
1866
|
}
|
|
1771
1867
|
}
|
|
1772
|
-
function
|
|
1868
|
+
function Qn(r, e) {
|
|
1773
1869
|
if (process.env.NODE_ENV !== "production" && !r && console !== void 0) {
|
|
1774
|
-
var t =
|
|
1775
|
-
return
|
|
1870
|
+
var t = mt.reduce(function(n, s) {
|
|
1871
|
+
return s(n ?? "", "note");
|
|
1776
1872
|
}, e);
|
|
1777
1873
|
t && console.warn("Note: ".concat(t));
|
|
1778
1874
|
}
|
|
1779
1875
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1876
|
+
function ea() {
|
|
1877
|
+
dt = {};
|
|
1782
1878
|
}
|
|
1783
|
-
function
|
|
1784
|
-
!e &&
|
|
1879
|
+
function pr(r, e, t) {
|
|
1880
|
+
!e && !dt[t] && (r(!1, t), dt[t] = !0);
|
|
1785
1881
|
}
|
|
1786
|
-
function
|
|
1787
|
-
|
|
1882
|
+
function Ue(r, e) {
|
|
1883
|
+
pr(Xn, r, e);
|
|
1788
1884
|
}
|
|
1789
|
-
function
|
|
1790
|
-
|
|
1885
|
+
function ta(r, e) {
|
|
1886
|
+
pr(Qn, r, e);
|
|
1791
1887
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
function
|
|
1888
|
+
Ue.preMessage = Jn;
|
|
1889
|
+
Ue.resetWarned = ea;
|
|
1890
|
+
Ue.noteOnce = ta;
|
|
1891
|
+
function ra(r) {
|
|
1796
1892
|
return r.replace(/-(.)/g, function(e, t) {
|
|
1797
1893
|
return t.toUpperCase();
|
|
1798
1894
|
});
|
|
1799
1895
|
}
|
|
1800
|
-
function
|
|
1801
|
-
|
|
1896
|
+
function na(r, e) {
|
|
1897
|
+
Ue(r, "[@ant-design/icons] ".concat(e));
|
|
1802
1898
|
}
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1899
|
+
function Kt(r) {
|
|
1900
|
+
return fe(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (fe(r.icon) === "object" || typeof r.icon == "function");
|
|
1805
1901
|
}
|
|
1806
|
-
function
|
|
1902
|
+
function Gt() {
|
|
1807
1903
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1808
1904
|
return Object.keys(r).reduce(function(e, t) {
|
|
1809
1905
|
var n = r[t];
|
|
@@ -1812,29 +1908,29 @@ function Et() {
|
|
|
1812
1908
|
e.className = n, delete e.class;
|
|
1813
1909
|
break;
|
|
1814
1910
|
default:
|
|
1815
|
-
delete e[t], e[
|
|
1911
|
+
delete e[t], e[ra(t)] = n;
|
|
1816
1912
|
}
|
|
1817
1913
|
return e;
|
|
1818
1914
|
}, {});
|
|
1819
1915
|
}
|
|
1820
|
-
function
|
|
1821
|
-
return t ? /* @__PURE__ */
|
|
1916
|
+
function ht(r, e, t) {
|
|
1917
|
+
return t ? /* @__PURE__ */ Le.createElement(r.tag, te(te({
|
|
1822
1918
|
key: e
|
|
1823
|
-
},
|
|
1824
|
-
return
|
|
1825
|
-
})) : /* @__PURE__ */
|
|
1919
|
+
}, Gt(r.attrs)), t), (r.children || []).map(function(n, s) {
|
|
1920
|
+
return ht(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
|
|
1921
|
+
})) : /* @__PURE__ */ Le.createElement(r.tag, te({
|
|
1826
1922
|
key: e
|
|
1827
|
-
},
|
|
1828
|
-
return
|
|
1923
|
+
}, Gt(r.attrs)), (r.children || []).map(function(n, s) {
|
|
1924
|
+
return ht(n, "".concat(e, "-").concat(r.tag, "-").concat(s));
|
|
1829
1925
|
}));
|
|
1830
1926
|
}
|
|
1831
|
-
function
|
|
1832
|
-
return
|
|
1927
|
+
function mr(r) {
|
|
1928
|
+
return Ln(r)[0];
|
|
1833
1929
|
}
|
|
1834
|
-
function
|
|
1930
|
+
function vr(r) {
|
|
1835
1931
|
return r ? Array.isArray(r) ? r : [r] : [];
|
|
1836
1932
|
}
|
|
1837
|
-
var
|
|
1933
|
+
var aa = `
|
|
1838
1934
|
.anticon {
|
|
1839
1935
|
display: inline-flex;
|
|
1840
1936
|
align-items: center;
|
|
@@ -1889,108 +1985,128 @@ var On = `
|
|
|
1889
1985
|
transform: rotate(360deg);
|
|
1890
1986
|
}
|
|
1891
1987
|
}
|
|
1892
|
-
`,
|
|
1893
|
-
var t =
|
|
1894
|
-
|
|
1895
|
-
`).concat(
|
|
1896
|
-
}`)),
|
|
1897
|
-
var l = e.current, u =
|
|
1898
|
-
|
|
1899
|
-
prepend: !
|
|
1988
|
+
`, sa = function(e) {
|
|
1989
|
+
var t = er(or), n = t.csp, s = t.prefixCls, o = t.layer, i = aa;
|
|
1990
|
+
s && (i = i.replace(/anticon/g, s)), o && (i = "@layer ".concat(o, ` {
|
|
1991
|
+
`).concat(i, `
|
|
1992
|
+
}`)), oe(function() {
|
|
1993
|
+
var l = e.current, u = Gn(l);
|
|
1994
|
+
qn(i, "@ant-design-icons", {
|
|
1995
|
+
prepend: !o,
|
|
1900
1996
|
csp: n,
|
|
1901
1997
|
attachTo: u
|
|
1902
1998
|
});
|
|
1903
1999
|
}, []);
|
|
1904
|
-
},
|
|
2000
|
+
}, oa = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], Te = {
|
|
1905
2001
|
primaryColor: "#333",
|
|
1906
2002
|
secondaryColor: "#E6E6E6",
|
|
1907
2003
|
calculated: !1
|
|
1908
2004
|
};
|
|
1909
|
-
function
|
|
2005
|
+
function ia(r) {
|
|
1910
2006
|
var e = r.primaryColor, t = r.secondaryColor;
|
|
1911
|
-
|
|
2007
|
+
Te.primaryColor = e, Te.secondaryColor = t || mr(e), Te.calculated = !!t;
|
|
1912
2008
|
}
|
|
1913
|
-
function
|
|
1914
|
-
return
|
|
1915
|
-
}
|
|
1916
|
-
var
|
|
1917
|
-
var t = e.icon, n = e.className,
|
|
1918
|
-
if (
|
|
1919
|
-
primaryColor:
|
|
1920
|
-
secondaryColor: l ||
|
|
1921
|
-
}),
|
|
2009
|
+
function ca() {
|
|
2010
|
+
return te({}, Te);
|
|
2011
|
+
}
|
|
2012
|
+
var We = function(e) {
|
|
2013
|
+
var t = e.icon, n = e.className, s = e.onClick, o = e.style, i = e.primaryColor, l = e.secondaryColor, u = cr(e, oa), c = U.useRef(), g = Te;
|
|
2014
|
+
if (i && (g = {
|
|
2015
|
+
primaryColor: i,
|
|
2016
|
+
secondaryColor: l || mr(i)
|
|
2017
|
+
}), sa(c), na(Kt(t), "icon should be icon definiton, but got ".concat(t)), !Kt(t))
|
|
1922
2018
|
return null;
|
|
1923
|
-
var
|
|
1924
|
-
return
|
|
1925
|
-
icon:
|
|
1926
|
-
})),
|
|
2019
|
+
var d = t;
|
|
2020
|
+
return d && typeof d.icon == "function" && (d = te(te({}, d), {}, {
|
|
2021
|
+
icon: d.icon(g.primaryColor, g.secondaryColor)
|
|
2022
|
+
})), ht(d.icon, "svg-".concat(d.name), te(te({
|
|
1927
2023
|
className: n,
|
|
1928
|
-
onClick:
|
|
1929
|
-
style:
|
|
1930
|
-
"data-icon":
|
|
2024
|
+
onClick: s,
|
|
2025
|
+
style: o,
|
|
2026
|
+
"data-icon": d.name,
|
|
1931
2027
|
width: "1em",
|
|
1932
2028
|
height: "1em",
|
|
1933
2029
|
fill: "currentColor",
|
|
1934
2030
|
"aria-hidden": "true"
|
|
1935
2031
|
}, u), {}, {
|
|
1936
|
-
ref:
|
|
2032
|
+
ref: c
|
|
1937
2033
|
}));
|
|
1938
2034
|
};
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1943
|
-
function
|
|
1944
|
-
var e =
|
|
1945
|
-
return
|
|
2035
|
+
We.displayName = "IconReact";
|
|
2036
|
+
We.getTwoToneColors = ca;
|
|
2037
|
+
We.setTwoToneColors = ia;
|
|
2038
|
+
const vt = We;
|
|
2039
|
+
function br(r) {
|
|
2040
|
+
var e = vr(r), t = ir(e, 2), n = t[0], s = t[1];
|
|
2041
|
+
return vt.setTwoToneColors({
|
|
1946
2042
|
primaryColor: n,
|
|
1947
|
-
secondaryColor:
|
|
2043
|
+
secondaryColor: s
|
|
1948
2044
|
});
|
|
1949
2045
|
}
|
|
1950
|
-
function
|
|
1951
|
-
var r =
|
|
2046
|
+
function la() {
|
|
2047
|
+
var r = vt.getTwoToneColors();
|
|
1952
2048
|
return r.calculated ? [r.primaryColor, r.secondaryColor] : r.primaryColor;
|
|
1953
2049
|
}
|
|
1954
|
-
var
|
|
1955
|
-
|
|
1956
|
-
var
|
|
1957
|
-
var t = r.className, n = r.icon,
|
|
1958
|
-
|
|
1959
|
-
var
|
|
1960
|
-
msTransform: "rotate(".concat(
|
|
1961
|
-
transform: "rotate(".concat(
|
|
1962
|
-
} : void 0,
|
|
1963
|
-
return /* @__PURE__ */
|
|
2050
|
+
var ua = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
2051
|
+
br(ut.primary);
|
|
2052
|
+
var Be = /* @__PURE__ */ U.forwardRef(function(r, e) {
|
|
2053
|
+
var t = r.className, n = r.icon, s = r.spin, o = r.rotate, i = r.tabIndex, l = r.onClick, u = r.twoToneColor, c = cr(r, ua), g = U.useContext(or), d = g.prefixCls, b = d === void 0 ? "anticon" : d, O = g.rootClassName, T = In(O, b, F(F({}, "".concat(b, "-").concat(n.name), !!n.name), "".concat(b, "-spin"), !!s || n.name === "loading"), t), N = i;
|
|
2054
|
+
N === void 0 && l && (N = -1);
|
|
2055
|
+
var z = o ? {
|
|
2056
|
+
msTransform: "rotate(".concat(o, "deg)"),
|
|
2057
|
+
transform: "rotate(".concat(o, "deg)")
|
|
2058
|
+
} : void 0, j = vr(u), y = ir(j, 2), E = y[0], I = y[1];
|
|
2059
|
+
return /* @__PURE__ */ U.createElement("span", be({
|
|
1964
2060
|
role: "img",
|
|
1965
2061
|
"aria-label": n.name
|
|
1966
|
-
},
|
|
2062
|
+
}, c, {
|
|
1967
2063
|
ref: e,
|
|
1968
|
-
tabIndex:
|
|
2064
|
+
tabIndex: N,
|
|
1969
2065
|
onClick: l,
|
|
1970
|
-
className:
|
|
1971
|
-
}), /* @__PURE__ */
|
|
2066
|
+
className: T
|
|
2067
|
+
}), /* @__PURE__ */ U.createElement(vt, {
|
|
1972
2068
|
icon: n,
|
|
1973
|
-
primaryColor:
|
|
1974
|
-
secondaryColor:
|
|
1975
|
-
style:
|
|
2069
|
+
primaryColor: E,
|
|
2070
|
+
secondaryColor: I,
|
|
2071
|
+
style: z
|
|
1976
2072
|
}));
|
|
1977
2073
|
});
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
const
|
|
1982
|
-
var
|
|
1983
|
-
const
|
|
1984
|
-
var
|
|
1985
|
-
return /* @__PURE__ */
|
|
2074
|
+
Be.displayName = "AntdIcon";
|
|
2075
|
+
Be.getTwoToneColor = la;
|
|
2076
|
+
Be.setTwoToneColor = br;
|
|
2077
|
+
const bt = Be;
|
|
2078
|
+
var fa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
|
|
2079
|
+
const da = fa;
|
|
2080
|
+
var ha = function(e, t) {
|
|
2081
|
+
return /* @__PURE__ */ U.createElement(bt, be({}, e, {
|
|
1986
2082
|
ref: t,
|
|
1987
|
-
icon:
|
|
2083
|
+
icon: da
|
|
1988
2084
|
}));
|
|
1989
|
-
},
|
|
1990
|
-
process.env.NODE_ENV !== "production" && (
|
|
1991
|
-
const
|
|
1992
|
-
var
|
|
1993
|
-
const
|
|
2085
|
+
}, yr = /* @__PURE__ */ U.forwardRef(ha);
|
|
2086
|
+
process.env.NODE_ENV !== "production" && (yr.displayName = "CaretDownOutlined");
|
|
2087
|
+
const ga = yr;
|
|
2088
|
+
var pa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
|
|
2089
|
+
const ma = pa;
|
|
2090
|
+
var va = function(e, t) {
|
|
2091
|
+
return /* @__PURE__ */ U.createElement(bt, be({}, e, {
|
|
2092
|
+
ref: t,
|
|
2093
|
+
icon: ma
|
|
2094
|
+
}));
|
|
2095
|
+
}, xr = /* @__PURE__ */ U.forwardRef(va);
|
|
2096
|
+
process.env.NODE_ENV !== "production" && (xr.displayName = "CaretUpOutlined");
|
|
2097
|
+
const ba = xr;
|
|
2098
|
+
var ya = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
|
|
2099
|
+
const xa = ya;
|
|
2100
|
+
var Ca = function(e, t) {
|
|
2101
|
+
return /* @__PURE__ */ U.createElement(bt, be({}, e, {
|
|
2102
|
+
ref: t,
|
|
2103
|
+
icon: xa
|
|
2104
|
+
}));
|
|
2105
|
+
}, Cr = /* @__PURE__ */ U.forwardRef(Ca);
|
|
2106
|
+
process.env.NODE_ENV !== "production" && (Cr.displayName = "UploadOutlined");
|
|
2107
|
+
const wa = Cr;
|
|
2108
|
+
var q = /* @__PURE__ */ ((r) => (r.Input = "input", r.InputNumber = "inputNumber", r.Text = "text", r.Password = "password", r.Radio = "radio", r.Select = "select", r.Checkbox = "checkbox", r.DatePicker = "datePicker", r.RangePicker = "rangePicker", r.Upload = "upload", r.Mentions = "mentions", r.Cascader = "cascader", r.TreeSelect = "treeSelect", r))(q || {});
|
|
2109
|
+
const { RangePicker: Sa } = nr, R = class R {
|
|
1994
2110
|
static getDefaultArrayPlaceholder(e) {
|
|
1995
2111
|
let t;
|
|
1996
2112
|
switch (e.type) {
|
|
@@ -2003,21 +2119,21 @@ const { RangePicker: Vn } = Tt, C = class C {
|
|
|
2003
2119
|
static getDefaultPlaceholder(e) {
|
|
2004
2120
|
let t;
|
|
2005
2121
|
switch (e.type) {
|
|
2006
|
-
case
|
|
2007
|
-
case
|
|
2008
|
-
case
|
|
2009
|
-
case
|
|
2010
|
-
case
|
|
2122
|
+
case q.Input:
|
|
2123
|
+
case q.Password:
|
|
2124
|
+
case q.InputNumber:
|
|
2125
|
+
case q.Text:
|
|
2126
|
+
case q.Mentions:
|
|
2011
2127
|
t = `请输入${e.label}`;
|
|
2012
2128
|
break;
|
|
2013
|
-
case
|
|
2014
|
-
case
|
|
2015
|
-
case
|
|
2016
|
-
case
|
|
2017
|
-
case
|
|
2018
|
-
case
|
|
2019
|
-
case
|
|
2020
|
-
case
|
|
2129
|
+
case q.Select:
|
|
2130
|
+
case q.Checkbox:
|
|
2131
|
+
case q.Radio:
|
|
2132
|
+
case q.DatePicker:
|
|
2133
|
+
case q.RangePicker:
|
|
2134
|
+
case q.Cascader:
|
|
2135
|
+
case q.Upload:
|
|
2136
|
+
case q.TreeSelect:
|
|
2021
2137
|
t = `请选择${e.label}`;
|
|
2022
2138
|
break;
|
|
2023
2139
|
}
|
|
@@ -2027,133 +2143,275 @@ const { RangePicker: Vn } = Tt, C = class C {
|
|
|
2027
2143
|
// return <Slider {...item.props} />;
|
|
2028
2144
|
// };
|
|
2029
2145
|
};
|
|
2030
|
-
|
|
2031
|
-
|
|
2146
|
+
m(R, "labelCol", { span: 7 }), m(R, "wrapperCol", { span: 17 }), m(R, "defaultRowGutter", 24), m(R, "input", (e) => /* @__PURE__ */ p.jsx(
|
|
2147
|
+
rt,
|
|
2032
2148
|
{
|
|
2033
2149
|
disabled: e.disabled,
|
|
2034
2150
|
maxLength: e.maxLength,
|
|
2035
2151
|
...e.props,
|
|
2036
|
-
placeholder: e.placeholder ||
|
|
2152
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2037
2153
|
}
|
|
2038
|
-
)),
|
|
2039
|
-
|
|
2154
|
+
)), m(R, "password", (e) => /* @__PURE__ */ p.jsx(
|
|
2155
|
+
rt.Password,
|
|
2040
2156
|
{
|
|
2041
2157
|
disabled: e.disabled,
|
|
2042
2158
|
...e.props,
|
|
2043
|
-
placeholder: e.placeholder ||
|
|
2159
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2044
2160
|
}
|
|
2045
|
-
)),
|
|
2046
|
-
|
|
2161
|
+
)), m(R, "text", (e) => /* @__PURE__ */ p.jsx(
|
|
2162
|
+
rt.TextArea,
|
|
2047
2163
|
{
|
|
2048
2164
|
disabled: e.disabled,
|
|
2049
2165
|
maxLength: e.maxLength,
|
|
2050
2166
|
...e.props,
|
|
2051
|
-
placeholder: e.placeholder ||
|
|
2167
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2052
2168
|
}
|
|
2053
|
-
)),
|
|
2054
|
-
|
|
2169
|
+
)), m(R, "inputNumber", (e) => /* @__PURE__ */ p.jsx(
|
|
2170
|
+
en,
|
|
2055
2171
|
{
|
|
2056
2172
|
disabled: e.disabled,
|
|
2057
2173
|
maxLength: e.maxLength,
|
|
2058
2174
|
...e.props,
|
|
2059
|
-
placeholder: e.placeholder ||
|
|
2175
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2060
2176
|
}
|
|
2061
|
-
)),
|
|
2062
|
-
|
|
2177
|
+
)), m(R, "datePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2178
|
+
nr,
|
|
2063
2179
|
{
|
|
2064
2180
|
disabled: e.disabled,
|
|
2065
2181
|
...e.props,
|
|
2066
|
-
placeholder: e.placeholder ||
|
|
2182
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2067
2183
|
}
|
|
2068
|
-
)),
|
|
2069
|
-
|
|
2184
|
+
)), m(R, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2185
|
+
Sa,
|
|
2070
2186
|
{
|
|
2071
2187
|
disabled: e.disabled,
|
|
2072
2188
|
...e.props,
|
|
2073
|
-
placeholder: e.placeholder ||
|
|
2189
|
+
placeholder: e.placeholder || R.getDefaultArrayPlaceholder(e)
|
|
2074
2190
|
}
|
|
2075
|
-
)),
|
|
2076
|
-
|
|
2191
|
+
)), m(R, "select", (e) => /* @__PURE__ */ p.jsx(
|
|
2192
|
+
tn,
|
|
2077
2193
|
{
|
|
2078
2194
|
...e.props,
|
|
2079
2195
|
disabled: e.disabled,
|
|
2080
|
-
placeholder: e.placeholder ||
|
|
2196
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2081
2197
|
}
|
|
2082
|
-
)),
|
|
2083
|
-
/* @__PURE__ */
|
|
2198
|
+
)), m(R, "radio", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(R, "checkbox", (e) => /* @__PURE__ */ p.jsx(nn.Group, { disabled: e.disabled, ...e.props })), m(R, "upload", (e) => /* @__PURE__ */ p.jsx(an, { defaultFileList: e.initialValue, ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(Pe, { children: [
|
|
2199
|
+
/* @__PURE__ */ p.jsx(wa, {}),
|
|
2084
2200
|
" 点击上传"
|
|
2085
|
-
] }) })),
|
|
2086
|
-
|
|
2201
|
+
] }) })), m(R, "mentions", (e) => /* @__PURE__ */ p.jsx(
|
|
2202
|
+
sn,
|
|
2087
2203
|
{
|
|
2088
2204
|
...e.props,
|
|
2089
|
-
placeholder: e.placeholder ||
|
|
2205
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2090
2206
|
}
|
|
2091
|
-
)),
|
|
2092
|
-
|
|
2207
|
+
)), m(R, "cascader", (e) => /* @__PURE__ */ p.jsx(
|
|
2208
|
+
on,
|
|
2093
2209
|
{
|
|
2094
2210
|
...e.props,
|
|
2095
|
-
placeholder: e.placeholder ||
|
|
2211
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2096
2212
|
}
|
|
2097
|
-
)),
|
|
2098
|
-
|
|
2213
|
+
)), m(R, "treeSelect", (e) => /* @__PURE__ */ p.jsx(
|
|
2214
|
+
cn,
|
|
2099
2215
|
{
|
|
2100
2216
|
...e.props,
|
|
2101
|
-
placeholder: e.placeholder ||
|
|
2217
|
+
placeholder: e.placeholder || R.getDefaultPlaceholder(e)
|
|
2102
2218
|
}
|
|
2103
2219
|
));
|
|
2104
|
-
let
|
|
2105
|
-
const
|
|
2106
|
-
function
|
|
2107
|
-
const { formProps: e, formItems: t = [], column: n = 1, form:
|
|
2108
|
-
if (
|
|
2109
|
-
return
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2112
|
-
}, u = (
|
|
2113
|
-
const { show:
|
|
2114
|
-
if (!
|
|
2220
|
+
let me = R;
|
|
2221
|
+
const at = (r = "") => Fe("m-form", r);
|
|
2222
|
+
function wr(r) {
|
|
2223
|
+
const { formProps: e, formItems: t = [], column: n = 1, form: s, itemLayout: o, formRowProps: i } = r, l = (c, g) => {
|
|
2224
|
+
if (c.render)
|
|
2225
|
+
return c.render(g);
|
|
2226
|
+
const d = me[c.type];
|
|
2227
|
+
return c && c.type && d ? d(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
|
|
2228
|
+
}, u = (c) => {
|
|
2229
|
+
const { show: g = !0 } = c;
|
|
2230
|
+
if (!g)
|
|
2115
2231
|
return null;
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2118
|
-
const
|
|
2119
|
-
labelCol:
|
|
2120
|
-
wrapperCol:
|
|
2121
|
-
...
|
|
2122
|
-
...
|
|
2232
|
+
const d = [...c.rules || []];
|
|
2233
|
+
c.required && d.push({ required: !0, message: c.required });
|
|
2234
|
+
const b = {
|
|
2235
|
+
labelCol: me.labelCol,
|
|
2236
|
+
wrapperCol: me.wrapperCol,
|
|
2237
|
+
...o,
|
|
2238
|
+
...c.itemLayout
|
|
2123
2239
|
};
|
|
2124
|
-
return /* @__PURE__ */
|
|
2125
|
-
|
|
2240
|
+
return /* @__PURE__ */ p.jsx(un, { span: c.span || 24 / n, children: /* @__PURE__ */ p.jsx("div", { className: at("item-wrapper"), children: /* @__PURE__ */ p.jsx(
|
|
2241
|
+
ot.Item,
|
|
2126
2242
|
{
|
|
2127
|
-
label:
|
|
2128
|
-
name:
|
|
2129
|
-
rules:
|
|
2130
|
-
initialValue:
|
|
2131
|
-
...
|
|
2132
|
-
...
|
|
2133
|
-
children: l(
|
|
2243
|
+
label: c.label,
|
|
2244
|
+
name: c.id,
|
|
2245
|
+
rules: d,
|
|
2246
|
+
initialValue: c.initialValue,
|
|
2247
|
+
...b,
|
|
2248
|
+
...c.formItemProps,
|
|
2249
|
+
children: l(c, s)
|
|
2134
2250
|
}
|
|
2135
|
-
) }) }, `col-${
|
|
2251
|
+
) }) }, `col-${c.id}`);
|
|
2136
2252
|
};
|
|
2137
|
-
return /* @__PURE__ */
|
|
2138
|
-
|
|
2253
|
+
return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(ot, { form: s, ...e, className: `${at()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
|
|
2254
|
+
ln,
|
|
2139
2255
|
{
|
|
2140
|
-
gutter:
|
|
2141
|
-
...
|
|
2142
|
-
className: `${
|
|
2143
|
-
children: t.map((
|
|
2256
|
+
gutter: me.defaultRowGutter,
|
|
2257
|
+
...i,
|
|
2258
|
+
className: `${at("grid")} ${i == null ? void 0 : i.className}`,
|
|
2259
|
+
children: t.map((c) => u(c))
|
|
2144
2260
|
}
|
|
2145
2261
|
) }) });
|
|
2146
2262
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2263
|
+
wr.displayName = "MForm";
|
|
2264
|
+
let st = "default";
|
|
2265
|
+
const ze = [];
|
|
2266
|
+
let Jt = (r) => {
|
|
2267
|
+
switch (r) {
|
|
2268
|
+
case "light":
|
|
2269
|
+
return {
|
|
2270
|
+
algorithm: [He.defaultAlgorithm]
|
|
2271
|
+
};
|
|
2272
|
+
case "dark":
|
|
2273
|
+
return {
|
|
2274
|
+
algorithm: [He.darkAlgorithm]
|
|
2275
|
+
};
|
|
2276
|
+
default:
|
|
2277
|
+
return {
|
|
2278
|
+
algorithm: [He.defaultAlgorithm]
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
const ve = class ve extends Xr {
|
|
2283
|
+
constructor() {
|
|
2284
|
+
super(...arguments);
|
|
2285
|
+
m(this, "handleCancel", (t) => {
|
|
2286
|
+
var n, s, o, i;
|
|
2287
|
+
(s = (n = this.props).onCancel) == null || s.call(n, t), (i = (o = this.props).onClosed) == null || i.call(o, { cancel: !0 });
|
|
2288
|
+
});
|
|
2289
|
+
m(this, "handleOk", (t) => {
|
|
2290
|
+
var n, s, o, i;
|
|
2291
|
+
(s = (n = this.props).onOk) == null || s.call(n, t), (i = (o = this.props).onClosed) == null || i.call(o, { ok: !0 });
|
|
2292
|
+
});
|
|
2293
|
+
}
|
|
2294
|
+
getTheme() {
|
|
2295
|
+
const t = this.props.mode || st;
|
|
2296
|
+
return Jt(t);
|
|
2297
|
+
}
|
|
2298
|
+
render() {
|
|
2299
|
+
return /* @__PURE__ */ p.jsx(
|
|
2300
|
+
tr,
|
|
2301
|
+
{
|
|
2302
|
+
theme: this.getTheme(),
|
|
2303
|
+
componentSize: "middle",
|
|
2304
|
+
componentDisabled: !1,
|
|
2305
|
+
children: /* @__PURE__ */ p.jsx(
|
|
2306
|
+
fn,
|
|
2307
|
+
{
|
|
2308
|
+
maskClosable: !1,
|
|
2309
|
+
open: this.props.open,
|
|
2310
|
+
onCancel: this.handleCancel,
|
|
2311
|
+
onOk: this.handleOk,
|
|
2312
|
+
okText: "确定",
|
|
2313
|
+
cancelText: "取消",
|
|
2314
|
+
...this.props,
|
|
2315
|
+
children: this.props.children
|
|
2316
|
+
}
|
|
2317
|
+
)
|
|
2318
|
+
}
|
|
2319
|
+
);
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2322
|
+
// 静态方法设置全局模式并更新所有弹窗
|
|
2323
|
+
m(ve, "setMode", (t) => {
|
|
2324
|
+
st = t, ze.forEach((n) => {
|
|
2325
|
+
n.update({ mode: t });
|
|
2326
|
+
});
|
|
2327
|
+
}), // 静态方法设置全局ThemeConfig
|
|
2328
|
+
m(ve, "setThemeConfig", (t) => {
|
|
2329
|
+
Jt = t;
|
|
2330
|
+
}), m(ve, "open", (t) => {
|
|
2331
|
+
const n = wn(ve, {
|
|
2332
|
+
mode: st,
|
|
2333
|
+
// 默认使用全局主题
|
|
2334
|
+
...t
|
|
2335
|
+
});
|
|
2336
|
+
ze.push(n);
|
|
2337
|
+
const s = n.destroy;
|
|
2338
|
+
return n.destroy = (...o) => {
|
|
2339
|
+
const i = ze.indexOf(n);
|
|
2340
|
+
return i !== -1 && ze.splice(i, 1), s(...o);
|
|
2341
|
+
}, n;
|
|
2342
|
+
});
|
|
2343
|
+
let Xt = ve;
|
|
2344
|
+
const Ra = 13, ne = (r = "") => Fe("m-search", r), Ya = (r) => {
|
|
2345
|
+
const {
|
|
2346
|
+
className: e,
|
|
2347
|
+
searchItems: t = [],
|
|
2348
|
+
onSearch: n,
|
|
2349
|
+
defaultShowAll: s = !1,
|
|
2350
|
+
customButtons: o = [],
|
|
2351
|
+
form: i
|
|
2352
|
+
} = r, [l, u] = Y(s), [c] = ot.useForm(), g = K(null), d = i ?? c, b = (y) => {
|
|
2353
|
+
const { keyCode: E } = y;
|
|
2354
|
+
E === Ra && T();
|
|
2355
|
+
};
|
|
2356
|
+
oe(() => {
|
|
2357
|
+
const y = g.current;
|
|
2358
|
+
return y == null || y.addEventListener("keydown", b), () => {
|
|
2359
|
+
y == null || y.removeEventListener("keydown", b);
|
|
2360
|
+
};
|
|
2361
|
+
}, []);
|
|
2362
|
+
const O = () => {
|
|
2363
|
+
d == null || d.resetFields(), T(!0);
|
|
2364
|
+
}, T = (y = !1) => {
|
|
2365
|
+
d == null || d.validateFields().then((E) => {
|
|
2366
|
+
Sn(E), n == null || n(E, y);
|
|
2367
|
+
});
|
|
2368
|
+
}, N = () => {
|
|
2369
|
+
const y = t.length > 2;
|
|
2370
|
+
return /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
|
|
2371
|
+
(o == null ? void 0 : o.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: o.map((E, I) => /* @__PURE__ */ p.jsx(Pe, { className: ne("btn"), ...E, children: E.children }, `custom-btn-${I}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
2372
|
+
/* @__PURE__ */ p.jsx(Pe, { className: ne("btn btn-reset"), onClick: O, children: "重置" }),
|
|
2373
|
+
/* @__PURE__ */ p.jsx(Pe, { className: ne("btn btn-search"), onClick: () => T(), type: "primary", children: "搜索" })
|
|
2374
|
+
] }),
|
|
2375
|
+
y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => u(!l), children: [
|
|
2376
|
+
/* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
|
|
2377
|
+
l ? /* @__PURE__ */ p.jsx(ba, {}) : /* @__PURE__ */ p.jsx(ga, {})
|
|
2378
|
+
] })
|
|
2379
|
+
] });
|
|
2380
|
+
}, z = t.map((y, E) => {
|
|
2381
|
+
var W;
|
|
2382
|
+
const I = { ...y };
|
|
2383
|
+
return t.length > 2 && E >= 2 && !l && (I.formItemProps = {
|
|
2384
|
+
...y.formItemProps,
|
|
2385
|
+
style: {
|
|
2386
|
+
...(W = y.formItemProps) == null ? void 0 : W.style,
|
|
2387
|
+
display: "none"
|
|
2388
|
+
}
|
|
2389
|
+
}), I;
|
|
2390
|
+
}), j = t.length > 2;
|
|
2391
|
+
return /* @__PURE__ */ p.jsx(ye, { children: /* @__PURE__ */ p.jsx(
|
|
2392
|
+
"div",
|
|
2393
|
+
{
|
|
2394
|
+
className: `${ne("")} ${l ? "" : ne("collapsed")} ${e || ""}`,
|
|
2395
|
+
ref: g,
|
|
2396
|
+
children: /* @__PURE__ */ p.jsxs(rr, { children: [
|
|
2397
|
+
/* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
|
|
2398
|
+
/* @__PURE__ */ p.jsx(wr, { form: d, formItems: z, column: 3 }),
|
|
2399
|
+
(!j || j && !l) && N()
|
|
2400
|
+
] }),
|
|
2401
|
+
j && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: N() })
|
|
2402
|
+
] })
|
|
2403
|
+
}
|
|
2404
|
+
) });
|
|
2405
|
+
};
|
|
2406
|
+
function za(r) {
|
|
2149
2407
|
var t;
|
|
2150
2408
|
const e = ((t = r.columns) == null ? void 0 : t.map((n) => ({ ...n, dataIndex: n.key }))) ?? [];
|
|
2151
|
-
return /* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2409
|
+
return /* @__PURE__ */ p.jsxs(ye, { children: [
|
|
2410
|
+
/* @__PURE__ */ p.jsx(dn, { rowKey: (n) => n.id, ...r, columns: e }),
|
|
2153
2411
|
";"
|
|
2154
2412
|
] });
|
|
2155
2413
|
}
|
|
2156
|
-
const
|
|
2414
|
+
const Ha = {
|
|
2157
2415
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
2158
2416
|
YMD: "YYYY-MM-DD",
|
|
2159
2417
|
YMD2: "YYYYMMDD",
|
|
@@ -2163,54 +2421,275 @@ const ra = {
|
|
|
2163
2421
|
YMD_000: "YYYY-MM-DD 00:00:00",
|
|
2164
2422
|
YMD_end: "YYYY-MM-DD 23:59:59",
|
|
2165
2423
|
YMD_Hm: "YYYYMMDD HHmm"
|
|
2166
|
-
},
|
|
2167
|
-
class
|
|
2424
|
+
}, _a = 10;
|
|
2425
|
+
class P {
|
|
2168
2426
|
}
|
|
2169
2427
|
// 整数
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2428
|
+
m(P, "integerRegex", /^-?\d+$/), // 正整数
|
|
2429
|
+
m(P, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
|
|
2430
|
+
m(P, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
|
|
2431
|
+
m(P, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
|
|
2432
|
+
m(P, "letter", /^[a-zA-Z]+$/), // 汉字
|
|
2433
|
+
m(P, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
|
|
2434
|
+
m(P, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
2435
|
+
m(P, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
|
|
2436
|
+
m(P, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
|
|
2437
|
+
m(P, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
2438
|
+
m(P, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
|
|
2439
|
+
m(P, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
|
|
2440
|
+
m(P, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
|
|
2441
|
+
m(P, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
|
|
2442
|
+
m(P, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), // 银行卡
|
|
2443
|
+
m(P, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
|
|
2444
|
+
m(P, "zipCode", /^[1-9]\d{5}$/), // IP
|
|
2445
|
+
m(P, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), // URL
|
|
2446
|
+
m(P, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
|
|
2447
|
+
m(P, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
|
|
2448
|
+
m(P, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
|
|
2449
|
+
m(P, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
2450
|
+
function La(r, e) {
|
|
2451
|
+
const [t, n] = Y(!1), [s, o] = Y(null), [i, l] = Y(null), u = K(void 0), c = K(0), g = () => {
|
|
2452
|
+
var b;
|
|
2453
|
+
(b = u.current) == null || b.abort(), n(!1), o(null);
|
|
2454
|
+
}, d = async (...b) => {
|
|
2455
|
+
var N, z, j, y;
|
|
2456
|
+
const O = ++c.current;
|
|
2457
|
+
g();
|
|
2458
|
+
const T = new AbortController();
|
|
2459
|
+
u.current = T;
|
|
2460
|
+
try {
|
|
2461
|
+
if (n(!0), o(null), e != null && e.onBefore && !await ((N = e == null ? void 0 : e.onBefore) == null ? void 0 : N.call(e, ...b))) {
|
|
2462
|
+
g();
|
|
2463
|
+
return;
|
|
2464
|
+
}
|
|
2465
|
+
const E = b.length >= r.length ? b : [...b, { signal: T.signal }], I = await r(...E);
|
|
2466
|
+
return !T.signal.aborted && O === c.current && (l(I), await ((z = e == null ? void 0 : e.onSuccess) == null ? void 0 : z.call(e, I))), I;
|
|
2467
|
+
} catch (E) {
|
|
2468
|
+
throw !T.signal.aborted && O === c.current && (o(E), await ((j = e == null ? void 0 : e.onError) == null ? void 0 : j.call(e, E))), E;
|
|
2469
|
+
} finally {
|
|
2470
|
+
!T.signal.aborted && O === c.current && (n(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
|
|
2471
|
+
}
|
|
2472
|
+
};
|
|
2473
|
+
return oe(() => (e != null && e.autoRunArgs && d(...e.autoRunArgs).catch(() => {
|
|
2474
|
+
}), g), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: d, cancel: g, loading: t, error: s, data: i };
|
|
2475
|
+
}
|
|
2476
|
+
function Va(r, e, t = !1) {
|
|
2477
|
+
const n = K(void 0), s = K(r);
|
|
2478
|
+
oe(() => {
|
|
2479
|
+
s.current = r;
|
|
2480
|
+
}, [r]);
|
|
2481
|
+
const o = se(() => {
|
|
2482
|
+
n.current && (clearInterval(n.current), n.current = void 0);
|
|
2483
|
+
}, []), i = se(() => {
|
|
2484
|
+
o(), e != null && (n.current = setInterval(() => s.current(), e));
|
|
2485
|
+
}, [e, o]);
|
|
2486
|
+
return oe(() => (t && s.current(), i(), o), [e, i, o, t]), { start: i, clear: o, isRunning: !!n.current };
|
|
2487
|
+
}
|
|
2488
|
+
const Fa = (r, e, t) => {
|
|
2489
|
+
const {
|
|
2490
|
+
isReady: n = !0,
|
|
2491
|
+
dataSource: s = [],
|
|
2492
|
+
current: o = 1,
|
|
2493
|
+
pageSize: i = 10
|
|
2494
|
+
} = t || {}, [l, u] = Y(o), [c, g] = Y(i), [d, b] = Y(s), [O, T] = Y(0), [N, z] = Y(!1), [j, y] = Y(!1), E = K(l), I = K(c), W = (S) => {
|
|
2495
|
+
u(S), E.current = S;
|
|
2496
|
+
}, re = (S) => {
|
|
2497
|
+
g(S), I.current = S;
|
|
2498
|
+
}, G = K(0), xe = async () => {
|
|
2499
|
+
if (!n)
|
|
2500
|
+
return;
|
|
2501
|
+
let S = E.current, $ = I.current;
|
|
2502
|
+
z(!0), G.current++;
|
|
2503
|
+
const Q = G.current;
|
|
2504
|
+
try {
|
|
2505
|
+
let B = Math.round((S - 1) * $);
|
|
2506
|
+
B < 0 && (B = 0), $ < 1 && ($ = 1);
|
|
2507
|
+
let { dataSource: ce, total: ee } = await r({
|
|
2508
|
+
limit: $,
|
|
2509
|
+
offset: B,
|
|
2510
|
+
current: S
|
|
2511
|
+
});
|
|
2512
|
+
if (Q !== G.current)
|
|
2513
|
+
return;
|
|
2514
|
+
if (c * (S - 1) >= ee && S !== 1) {
|
|
2515
|
+
S = 1;
|
|
2516
|
+
const ke = Math.ceil(ee / c);
|
|
2517
|
+
if ({ dataSource: ce, total: ee } = await r({
|
|
2518
|
+
limit: $,
|
|
2519
|
+
offset: B,
|
|
2520
|
+
current: S
|
|
2521
|
+
}), Q !== G.current)
|
|
2522
|
+
return;
|
|
2523
|
+
S = ke;
|
|
2524
|
+
}
|
|
2525
|
+
b(ce), W(S), re($), T(ee);
|
|
2526
|
+
} catch (B) {
|
|
2527
|
+
if (console.error("fetch err", B), Q !== G.current)
|
|
2528
|
+
return;
|
|
2529
|
+
} finally {
|
|
2530
|
+
y(!0), z(!1);
|
|
2531
|
+
}
|
|
2532
|
+
}, J = async (S) => {
|
|
2533
|
+
S && (b([]), W(o), re(i)), await xe();
|
|
2534
|
+
}, ie = se(ar(J, 500), [J]), Ce = [...e || [], n];
|
|
2535
|
+
return oe(() => {
|
|
2536
|
+
n && ie(!0);
|
|
2537
|
+
}, Ce), {
|
|
2538
|
+
tableProps: {
|
|
2539
|
+
loading: N,
|
|
2540
|
+
dataSource: d
|
|
2541
|
+
},
|
|
2542
|
+
loading: N,
|
|
2543
|
+
dataSource: d,
|
|
2544
|
+
paginationProps: {
|
|
2545
|
+
current: l,
|
|
2546
|
+
pageSize: c,
|
|
2547
|
+
total: O,
|
|
2548
|
+
onChange: async (S, $) => {
|
|
2549
|
+
W(S), re($), await J();
|
|
2550
|
+
},
|
|
2551
|
+
onShowSizeChange: async (S, $) => {
|
|
2552
|
+
re(S), W($), await J();
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
isFirstComplete: j,
|
|
2556
|
+
refresh: J,
|
|
2557
|
+
debounceRefresh: ie,
|
|
2558
|
+
setDataSource: b
|
|
2559
|
+
};
|
|
2560
|
+
};
|
|
2561
|
+
function Ua() {
|
|
2562
|
+
const r = window.location.href.split("?")[1] || "", e = new URLSearchParams(r);
|
|
2563
|
+
return Object.fromEntries(e.entries());
|
|
2564
|
+
}
|
|
2565
|
+
const Wa = (r) => {
|
|
2566
|
+
const [e, t] = Y(r), n = K(e), s = se((l) => {
|
|
2567
|
+
t((u) => {
|
|
2568
|
+
const c = typeof l == "function" ? l(u) : l, g = { ...u, ...c };
|
|
2569
|
+
return n.current = g, g;
|
|
2570
|
+
});
|
|
2571
|
+
}, []), o = se(() => n.current, []), i = se(() => {
|
|
2572
|
+
t(r), n.current = r;
|
|
2573
|
+
}, [r]);
|
|
2574
|
+
return [e, s, o, i];
|
|
2575
|
+
};
|
|
2576
|
+
function Ba(r, e, t = !1) {
|
|
2577
|
+
const n = K(void 0), s = K(r);
|
|
2578
|
+
oe(() => {
|
|
2579
|
+
s.current = r;
|
|
2580
|
+
}, [r]);
|
|
2581
|
+
const o = se(() => {
|
|
2582
|
+
n.current && (clearTimeout(n.current), n.current = void 0);
|
|
2583
|
+
}, []), i = se(() => {
|
|
2584
|
+
o(), e != null && (n.current = setTimeout(() => s.current(), e));
|
|
2585
|
+
}, [e, o]);
|
|
2586
|
+
return oe(() => (t && s.current(), i(), o), [e, i, o, t]), { start: i, clear: o, isRunning: !!n.current };
|
|
2587
|
+
}
|
|
2588
|
+
const Za = (r, e, t) => {
|
|
2589
|
+
const {
|
|
2590
|
+
isReady: n = !0,
|
|
2591
|
+
dataSource: s = [],
|
|
2592
|
+
current: o = 1,
|
|
2593
|
+
pageSize: i = _a
|
|
2594
|
+
} = t || {}, [l, u] = Y(!1), [c, g] = Y(o), [d, b] = Y(i), [O, T] = Y(0), [N, z] = Y(!1), [j, y] = Y(s), E = K(c), I = K(d), W = (H) => {
|
|
2595
|
+
g(H), E.current = H;
|
|
2596
|
+
}, re = (H) => {
|
|
2597
|
+
b(H), I.current = H;
|
|
2598
|
+
}, G = K(0), xe = async (H) => {
|
|
2599
|
+
if (!n)
|
|
2600
|
+
return;
|
|
2601
|
+
let k = E.current, L = I.current;
|
|
2602
|
+
z(!0), G.current += 1;
|
|
2603
|
+
const S = G.current;
|
|
2604
|
+
try {
|
|
2605
|
+
let $ = Math.round((k - 1) * L);
|
|
2606
|
+
$ < 0 && ($ = 0), L < 1 && (L = 1);
|
|
2607
|
+
let { dataSource: Q, total: B } = await r({
|
|
2608
|
+
limit: L,
|
|
2609
|
+
offset: $,
|
|
2610
|
+
current: k
|
|
2611
|
+
});
|
|
2612
|
+
if (S !== G.current)
|
|
2613
|
+
return;
|
|
2614
|
+
if (d * (k - 1) >= B && k !== 1) {
|
|
2615
|
+
const ee = Math.ceil(B / d);
|
|
2616
|
+
if ({ dataSource: Q, total: B } = await r({
|
|
2617
|
+
limit: L,
|
|
2618
|
+
offset: Math.round((ee - 1) * L),
|
|
2619
|
+
current: k
|
|
2620
|
+
}), S !== G.current)
|
|
2621
|
+
return;
|
|
2622
|
+
k = ee;
|
|
2623
|
+
}
|
|
2624
|
+
const ce = H ? Q : j.concat(Q);
|
|
2625
|
+
y(ce), W(k), re(L), T(B);
|
|
2626
|
+
} catch ($) {
|
|
2627
|
+
if (console.error("fetch err", $), S !== G.current)
|
|
2628
|
+
return;
|
|
2629
|
+
}
|
|
2630
|
+
u(!0), z(!1);
|
|
2631
|
+
}, J = async (H) => {
|
|
2632
|
+
if (H)
|
|
2633
|
+
y([]), W(o), re(i);
|
|
2634
|
+
else {
|
|
2635
|
+
const k = d * c;
|
|
2636
|
+
if (O && O <= k)
|
|
2637
|
+
return;
|
|
2638
|
+
W(c + 1);
|
|
2639
|
+
}
|
|
2640
|
+
await xe(H);
|
|
2641
|
+
}, ie = se(ar(J, 500), [J]), Ce = [...e || [], n];
|
|
2642
|
+
return oe(() => {
|
|
2643
|
+
n && ie(!0);
|
|
2644
|
+
}, Ce), {
|
|
2645
|
+
loading: N,
|
|
2646
|
+
dataSource: j,
|
|
2647
|
+
paginationProps: {
|
|
2648
|
+
current: c,
|
|
2649
|
+
pageSize: d,
|
|
2650
|
+
total: O
|
|
2651
|
+
},
|
|
2652
|
+
isFirstComplete: l,
|
|
2653
|
+
refresh: async (H) => {
|
|
2654
|
+
await J(H);
|
|
2655
|
+
},
|
|
2656
|
+
debounceRefresh: ie,
|
|
2657
|
+
setDataSource: y,
|
|
2658
|
+
setTotal: T
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2192
2661
|
export {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2662
|
+
ye as CompThemeProvider,
|
|
2663
|
+
Ha as DATE_FORMAT,
|
|
2664
|
+
_n as ItemsRow,
|
|
2665
|
+
Ma as MBreadcrumb,
|
|
2666
|
+
En as MDescriptions,
|
|
2667
|
+
wr as MForm,
|
|
2668
|
+
me as MFormItemConst,
|
|
2669
|
+
q as MFormItemTypeEnum,
|
|
2670
|
+
Ya as MSearch,
|
|
2671
|
+
za as MTable,
|
|
2672
|
+
Xt as MiModal,
|
|
2673
|
+
Ia as MiThemeProvider,
|
|
2674
|
+
Ve as NextTick,
|
|
2675
|
+
_a as PAGE_SIZE,
|
|
2676
|
+
P as PatternType,
|
|
2677
|
+
$a as VersionUtil,
|
|
2678
|
+
Ta as cmx,
|
|
2679
|
+
ar as debounce,
|
|
2680
|
+
Fe as getClassName,
|
|
2681
|
+
Da as getFieldsByPath,
|
|
2682
|
+
Na as nextTick,
|
|
2683
|
+
ka as noop,
|
|
2684
|
+
wn as openModal,
|
|
2685
|
+
Sn as removeNull,
|
|
2686
|
+
Aa as throttle,
|
|
2687
|
+
La as useFuncRequest,
|
|
2688
|
+
Va as useInterval,
|
|
2689
|
+
Rn as useMiThemeConfig,
|
|
2690
|
+
Fa as usePagination,
|
|
2691
|
+
Ua as useQuery,
|
|
2692
|
+
Wa as useReactive,
|
|
2693
|
+
Ba as useTimeout,
|
|
2694
|
+
Za as useVirtualList
|
|
2216
2695
|
};
|