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