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