@akinon/ui-badge 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +63 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4578 -0
- package/package.json +42 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,4578 @@
|
|
|
1
|
+
import { jsx as va } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import $r, { useContext as Rt, createContext as _r, useRef as xe, useLayoutEffect as pa, useEffect as Tt, useMemo as Qr } from "react";
|
|
4
|
+
import ha from "react-dom";
|
|
5
|
+
function ma(e) {
|
|
6
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
|
+
}
|
|
8
|
+
var Nn = { exports: {} };
|
|
9
|
+
/*!
|
|
10
|
+
Copyright (c) 2018 Jed Watson.
|
|
11
|
+
Licensed under the MIT License (MIT), see
|
|
12
|
+
http://jedwatson.github.io/classnames
|
|
13
|
+
*/
|
|
14
|
+
(function(e) {
|
|
15
|
+
(function() {
|
|
16
|
+
var t = {}.hasOwnProperty;
|
|
17
|
+
function r() {
|
|
18
|
+
for (var n = [], o = 0; o < arguments.length; o++) {
|
|
19
|
+
var a = arguments[o];
|
|
20
|
+
if (a) {
|
|
21
|
+
var i = typeof a;
|
|
22
|
+
if (i === "string" || i === "number")
|
|
23
|
+
n.push(a);
|
|
24
|
+
else if (Array.isArray(a)) {
|
|
25
|
+
if (a.length) {
|
|
26
|
+
var s = r.apply(null, a);
|
|
27
|
+
s && n.push(s);
|
|
28
|
+
}
|
|
29
|
+
} else if (i === "object") {
|
|
30
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
|
|
31
|
+
n.push(a.toString());
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
for (var l in a)
|
|
35
|
+
t.call(a, l) && a[l] && n.push(l);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return n.join(" ");
|
|
40
|
+
}
|
|
41
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
42
|
+
})();
|
|
43
|
+
})(Nn);
|
|
44
|
+
var ba = Nn.exports;
|
|
45
|
+
const Ee = /* @__PURE__ */ ma(ba);
|
|
46
|
+
function $t() {
|
|
47
|
+
return $t = Object.assign ? Object.assign.bind() : function(e) {
|
|
48
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
49
|
+
var r = arguments[t];
|
|
50
|
+
for (var n in r)
|
|
51
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
52
|
+
}
|
|
53
|
+
return e;
|
|
54
|
+
}, $t.apply(this, arguments);
|
|
55
|
+
}
|
|
56
|
+
var or = { exports: {} }, _ = {};
|
|
57
|
+
/**
|
|
58
|
+
* @license React
|
|
59
|
+
* react-is.production.min.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/
|
|
66
|
+
var Zr;
|
|
67
|
+
function ya() {
|
|
68
|
+
if (Zr)
|
|
69
|
+
return _;
|
|
70
|
+
Zr = 1;
|
|
71
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b;
|
|
72
|
+
b = Symbol.for("react.module.reference");
|
|
73
|
+
function p(d) {
|
|
74
|
+
if (typeof d == "object" && d !== null) {
|
|
75
|
+
var S = d.$$typeof;
|
|
76
|
+
switch (S) {
|
|
77
|
+
case e:
|
|
78
|
+
switch (d = d.type, d) {
|
|
79
|
+
case r:
|
|
80
|
+
case o:
|
|
81
|
+
case n:
|
|
82
|
+
case c:
|
|
83
|
+
case f:
|
|
84
|
+
return d;
|
|
85
|
+
default:
|
|
86
|
+
switch (d = d && d.$$typeof, d) {
|
|
87
|
+
case s:
|
|
88
|
+
case i:
|
|
89
|
+
case l:
|
|
90
|
+
case g:
|
|
91
|
+
case u:
|
|
92
|
+
case a:
|
|
93
|
+
return d;
|
|
94
|
+
default:
|
|
95
|
+
return S;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
case t:
|
|
99
|
+
return S;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return _.ContextConsumer = i, _.ContextProvider = a, _.Element = e, _.ForwardRef = l, _.Fragment = r, _.Lazy = g, _.Memo = u, _.Portal = t, _.Profiler = o, _.StrictMode = n, _.Suspense = c, _.SuspenseList = f, _.isAsyncMode = function() {
|
|
104
|
+
return !1;
|
|
105
|
+
}, _.isConcurrentMode = function() {
|
|
106
|
+
return !1;
|
|
107
|
+
}, _.isContextConsumer = function(d) {
|
|
108
|
+
return p(d) === i;
|
|
109
|
+
}, _.isContextProvider = function(d) {
|
|
110
|
+
return p(d) === a;
|
|
111
|
+
}, _.isElement = function(d) {
|
|
112
|
+
return typeof d == "object" && d !== null && d.$$typeof === e;
|
|
113
|
+
}, _.isForwardRef = function(d) {
|
|
114
|
+
return p(d) === l;
|
|
115
|
+
}, _.isFragment = function(d) {
|
|
116
|
+
return p(d) === r;
|
|
117
|
+
}, _.isLazy = function(d) {
|
|
118
|
+
return p(d) === g;
|
|
119
|
+
}, _.isMemo = function(d) {
|
|
120
|
+
return p(d) === u;
|
|
121
|
+
}, _.isPortal = function(d) {
|
|
122
|
+
return p(d) === t;
|
|
123
|
+
}, _.isProfiler = function(d) {
|
|
124
|
+
return p(d) === o;
|
|
125
|
+
}, _.isStrictMode = function(d) {
|
|
126
|
+
return p(d) === n;
|
|
127
|
+
}, _.isSuspense = function(d) {
|
|
128
|
+
return p(d) === c;
|
|
129
|
+
}, _.isSuspenseList = function(d) {
|
|
130
|
+
return p(d) === f;
|
|
131
|
+
}, _.isValidElementType = function(d) {
|
|
132
|
+
return typeof d == "string" || typeof d == "function" || d === r || d === o || d === n || d === c || d === f || d === h || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === u || d.$$typeof === a || d.$$typeof === i || d.$$typeof === l || d.$$typeof === b || d.getModuleId !== void 0);
|
|
133
|
+
}, _.typeOf = p, _;
|
|
134
|
+
}
|
|
135
|
+
var N = {};
|
|
136
|
+
/**
|
|
137
|
+
* @license React
|
|
138
|
+
* react-is.development.js
|
|
139
|
+
*
|
|
140
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the MIT license found in the
|
|
143
|
+
* LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/
|
|
145
|
+
var Jr;
|
|
146
|
+
function Sa() {
|
|
147
|
+
return Jr || (Jr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
148
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = !1, p = !1, d = !1, S = !1, m = !1, P;
|
|
149
|
+
P = Symbol.for("react.module.reference");
|
|
150
|
+
function A(E) {
|
|
151
|
+
return !!(typeof E == "string" || typeof E == "function" || E === r || E === o || m || E === n || E === c || E === f || S || E === h || b || p || d || typeof E == "object" && E !== null && (E.$$typeof === g || E.$$typeof === u || E.$$typeof === a || E.$$typeof === i || E.$$typeof === l || // This needs to include all possible module reference object
|
|
152
|
+
// types supported by any Flight configuration anywhere since
|
|
153
|
+
// we don't know which Flight build this will end up being used
|
|
154
|
+
// with.
|
|
155
|
+
E.$$typeof === P || E.getModuleId !== void 0));
|
|
156
|
+
}
|
|
157
|
+
function T(E) {
|
|
158
|
+
if (typeof E == "object" && E !== null) {
|
|
159
|
+
var ne = E.$$typeof;
|
|
160
|
+
switch (ne) {
|
|
161
|
+
case e:
|
|
162
|
+
var Q = E.type;
|
|
163
|
+
switch (Q) {
|
|
164
|
+
case r:
|
|
165
|
+
case o:
|
|
166
|
+
case n:
|
|
167
|
+
case c:
|
|
168
|
+
case f:
|
|
169
|
+
return Q;
|
|
170
|
+
default:
|
|
171
|
+
var be = Q && Q.$$typeof;
|
|
172
|
+
switch (be) {
|
|
173
|
+
case s:
|
|
174
|
+
case i:
|
|
175
|
+
case l:
|
|
176
|
+
case g:
|
|
177
|
+
case u:
|
|
178
|
+
case a:
|
|
179
|
+
return be;
|
|
180
|
+
default:
|
|
181
|
+
return ne;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
case t:
|
|
185
|
+
return ne;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
var C = i, y = a, k = e, L = l, w = r, R = g, x = u, O = t, j = o, M = n, D = c, U = f, X = !1, z = !1;
|
|
190
|
+
function F(E) {
|
|
191
|
+
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
192
|
+
}
|
|
193
|
+
function B(E) {
|
|
194
|
+
return z || (z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
195
|
+
}
|
|
196
|
+
function H(E) {
|
|
197
|
+
return T(E) === i;
|
|
198
|
+
}
|
|
199
|
+
function ae(E) {
|
|
200
|
+
return T(E) === a;
|
|
201
|
+
}
|
|
202
|
+
function G(E) {
|
|
203
|
+
return typeof E == "object" && E !== null && E.$$typeof === e;
|
|
204
|
+
}
|
|
205
|
+
function ie(E) {
|
|
206
|
+
return T(E) === l;
|
|
207
|
+
}
|
|
208
|
+
function pe(E) {
|
|
209
|
+
return T(E) === r;
|
|
210
|
+
}
|
|
211
|
+
function Re(E) {
|
|
212
|
+
return T(E) === g;
|
|
213
|
+
}
|
|
214
|
+
function he(E) {
|
|
215
|
+
return T(E) === u;
|
|
216
|
+
}
|
|
217
|
+
function je(E) {
|
|
218
|
+
return T(E) === t;
|
|
219
|
+
}
|
|
220
|
+
function $e(E) {
|
|
221
|
+
return T(E) === o;
|
|
222
|
+
}
|
|
223
|
+
function fe(E) {
|
|
224
|
+
return T(E) === n;
|
|
225
|
+
}
|
|
226
|
+
function me(E) {
|
|
227
|
+
return T(E) === c;
|
|
228
|
+
}
|
|
229
|
+
function _e(E) {
|
|
230
|
+
return T(E) === f;
|
|
231
|
+
}
|
|
232
|
+
N.ContextConsumer = C, N.ContextProvider = y, N.Element = k, N.ForwardRef = L, N.Fragment = w, N.Lazy = R, N.Memo = x, N.Portal = O, N.Profiler = j, N.StrictMode = M, N.Suspense = D, N.SuspenseList = U, N.isAsyncMode = F, N.isConcurrentMode = B, N.isContextConsumer = H, N.isContextProvider = ae, N.isElement = G, N.isForwardRef = ie, N.isFragment = pe, N.isLazy = Re, N.isMemo = he, N.isPortal = je, N.isProfiler = $e, N.isStrictMode = fe, N.isSuspense = me, N.isSuspenseList = _e, N.isValidElementType = A, N.typeOf = T;
|
|
233
|
+
}()), N;
|
|
234
|
+
}
|
|
235
|
+
process.env.NODE_ENV === "production" ? or.exports = ya() : or.exports = Sa();
|
|
236
|
+
var xa = or.exports, ar = {}, Nr = [], Ea = function(t) {
|
|
237
|
+
Nr.push(t);
|
|
238
|
+
};
|
|
239
|
+
function jr(e, t) {
|
|
240
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
241
|
+
var r = Nr.reduce(function(n, o) {
|
|
242
|
+
return o(n ?? "", "warning");
|
|
243
|
+
}, t);
|
|
244
|
+
r && console.error("Warning: ".concat(r));
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function Ca(e, t) {
|
|
248
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
249
|
+
var r = Nr.reduce(function(n, o) {
|
|
250
|
+
return o(n ?? "", "note");
|
|
251
|
+
}, t);
|
|
252
|
+
r && console.warn("Note: ".concat(r));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function jn() {
|
|
256
|
+
ar = {};
|
|
257
|
+
}
|
|
258
|
+
function In(e, t, r) {
|
|
259
|
+
!t && !ar[r] && (e(!1, r), ar[r] = !0);
|
|
260
|
+
}
|
|
261
|
+
function We(e, t) {
|
|
262
|
+
In(jr, e, t);
|
|
263
|
+
}
|
|
264
|
+
function Oa(e, t) {
|
|
265
|
+
In(Ca, e, t);
|
|
266
|
+
}
|
|
267
|
+
We.preMessage = Ea;
|
|
268
|
+
We.resetWarned = jn;
|
|
269
|
+
We.noteOnce = Oa;
|
|
270
|
+
function J(e) {
|
|
271
|
+
"@babel/helpers - typeof";
|
|
272
|
+
return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
273
|
+
return typeof t;
|
|
274
|
+
} : function(t) {
|
|
275
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
276
|
+
}, J(e);
|
|
277
|
+
}
|
|
278
|
+
function Ta(e, t) {
|
|
279
|
+
if (J(e) !== "object" || e === null)
|
|
280
|
+
return e;
|
|
281
|
+
var r = e[Symbol.toPrimitive];
|
|
282
|
+
if (r !== void 0) {
|
|
283
|
+
var n = r.call(e, t || "default");
|
|
284
|
+
if (J(n) !== "object")
|
|
285
|
+
return n;
|
|
286
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
287
|
+
}
|
|
288
|
+
return (t === "string" ? String : Number)(e);
|
|
289
|
+
}
|
|
290
|
+
function Ln(e) {
|
|
291
|
+
var t = Ta(e, "string");
|
|
292
|
+
return J(t) === "symbol" ? t : String(t);
|
|
293
|
+
}
|
|
294
|
+
function I(e, t, r) {
|
|
295
|
+
return t = Ln(t), t in e ? Object.defineProperty(e, t, {
|
|
296
|
+
value: r,
|
|
297
|
+
enumerable: !0,
|
|
298
|
+
configurable: !0,
|
|
299
|
+
writable: !0
|
|
300
|
+
}) : e[t] = r, e;
|
|
301
|
+
}
|
|
302
|
+
function en(e, t) {
|
|
303
|
+
var r = Object.keys(e);
|
|
304
|
+
if (Object.getOwnPropertySymbols) {
|
|
305
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
306
|
+
t && (n = n.filter(function(o) {
|
|
307
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
308
|
+
})), r.push.apply(r, n);
|
|
309
|
+
}
|
|
310
|
+
return r;
|
|
311
|
+
}
|
|
312
|
+
function $(e) {
|
|
313
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
314
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
315
|
+
t % 2 ? en(Object(r), !0).forEach(function(n) {
|
|
316
|
+
I(e, n, r[n]);
|
|
317
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : en(Object(r)).forEach(function(n) {
|
|
318
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
return e;
|
|
322
|
+
}
|
|
323
|
+
function wa(e) {
|
|
324
|
+
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
325
|
+
}
|
|
326
|
+
function Pa(e) {
|
|
327
|
+
return wa(e) ? e : e instanceof $r.Component ? ha.findDOMNode(e) : null;
|
|
328
|
+
}
|
|
329
|
+
function Dn(e, t, r) {
|
|
330
|
+
var n = v.useRef({});
|
|
331
|
+
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
332
|
+
}
|
|
333
|
+
function Aa(e, t) {
|
|
334
|
+
typeof e == "function" ? e(t) : J(e) === "object" && e && "current" in e && (e.current = t);
|
|
335
|
+
}
|
|
336
|
+
function ka(e) {
|
|
337
|
+
var t, r, n = xa.isMemo(e) ? e.type.type : e.type;
|
|
338
|
+
return !(typeof n == "function" && !((t = n.prototype) !== null && t !== void 0 && t.render) || typeof e == "function" && !((r = e.prototype) !== null && r !== void 0 && r.render));
|
|
339
|
+
}
|
|
340
|
+
function et(e, t) {
|
|
341
|
+
if (!(e instanceof t))
|
|
342
|
+
throw new TypeError("Cannot call a class as a function");
|
|
343
|
+
}
|
|
344
|
+
function tn(e, t) {
|
|
345
|
+
for (var r = 0; r < t.length; r++) {
|
|
346
|
+
var n = t[r];
|
|
347
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ln(n.key), n);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
function tt(e, t, r) {
|
|
351
|
+
return t && tn(e.prototype, t), r && tn(e, r), Object.defineProperty(e, "prototype", {
|
|
352
|
+
writable: !1
|
|
353
|
+
}), e;
|
|
354
|
+
}
|
|
355
|
+
function ir(e, t) {
|
|
356
|
+
return ir = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
357
|
+
return n.__proto__ = o, n;
|
|
358
|
+
}, ir(e, t);
|
|
359
|
+
}
|
|
360
|
+
function Hn(e, t) {
|
|
361
|
+
if (typeof t != "function" && t !== null)
|
|
362
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
363
|
+
e.prototype = Object.create(t && t.prototype, {
|
|
364
|
+
constructor: {
|
|
365
|
+
value: e,
|
|
366
|
+
writable: !0,
|
|
367
|
+
configurable: !0
|
|
368
|
+
}
|
|
369
|
+
}), Object.defineProperty(e, "prototype", {
|
|
370
|
+
writable: !1
|
|
371
|
+
}), t && ir(e, t);
|
|
372
|
+
}
|
|
373
|
+
function _t(e) {
|
|
374
|
+
return _t = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
375
|
+
return r.__proto__ || Object.getPrototypeOf(r);
|
|
376
|
+
}, _t(e);
|
|
377
|
+
}
|
|
378
|
+
function Ma() {
|
|
379
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
380
|
+
return !1;
|
|
381
|
+
if (typeof Proxy == "function")
|
|
382
|
+
return !0;
|
|
383
|
+
try {
|
|
384
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
385
|
+
})), !0;
|
|
386
|
+
} catch {
|
|
387
|
+
return !1;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
function sr(e) {
|
|
391
|
+
if (e === void 0)
|
|
392
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
393
|
+
return e;
|
|
394
|
+
}
|
|
395
|
+
function Ra(e, t) {
|
|
396
|
+
if (t && (J(t) === "object" || typeof t == "function"))
|
|
397
|
+
return t;
|
|
398
|
+
if (t !== void 0)
|
|
399
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
400
|
+
return sr(e);
|
|
401
|
+
}
|
|
402
|
+
function Fn(e) {
|
|
403
|
+
var t = Ma();
|
|
404
|
+
return function() {
|
|
405
|
+
var n = _t(e), o;
|
|
406
|
+
if (t) {
|
|
407
|
+
var a = _t(this).constructor;
|
|
408
|
+
o = Reflect.construct(n, arguments, a);
|
|
409
|
+
} else
|
|
410
|
+
o = n.apply(this, arguments);
|
|
411
|
+
return Ra(this, o);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function cr(e, t) {
|
|
415
|
+
(t == null || t > e.length) && (t = e.length);
|
|
416
|
+
for (var r = 0, n = new Array(t); r < t; r++)
|
|
417
|
+
n[r] = e[r];
|
|
418
|
+
return n;
|
|
419
|
+
}
|
|
420
|
+
function $a(e) {
|
|
421
|
+
if (Array.isArray(e))
|
|
422
|
+
return cr(e);
|
|
423
|
+
}
|
|
424
|
+
function zn(e) {
|
|
425
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
426
|
+
return Array.from(e);
|
|
427
|
+
}
|
|
428
|
+
function Ir(e, t) {
|
|
429
|
+
if (e) {
|
|
430
|
+
if (typeof e == "string")
|
|
431
|
+
return cr(e, t);
|
|
432
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
433
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
434
|
+
return Array.from(e);
|
|
435
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
436
|
+
return cr(e, t);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
function _a() {
|
|
440
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
441
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
442
|
+
}
|
|
443
|
+
function Ce(e) {
|
|
444
|
+
return $a(e) || zn(e) || Ir(e) || _a();
|
|
445
|
+
}
|
|
446
|
+
var Bn = function(t) {
|
|
447
|
+
return +setTimeout(t, 16);
|
|
448
|
+
}, Wn = function(t) {
|
|
449
|
+
return clearTimeout(t);
|
|
450
|
+
};
|
|
451
|
+
typeof window < "u" && "requestAnimationFrame" in window && (Bn = function(t) {
|
|
452
|
+
return window.requestAnimationFrame(t);
|
|
453
|
+
}, Wn = function(t) {
|
|
454
|
+
return window.cancelAnimationFrame(t);
|
|
455
|
+
});
|
|
456
|
+
var rn = 0, Lr = /* @__PURE__ */ new Map();
|
|
457
|
+
function Vn(e) {
|
|
458
|
+
Lr.delete(e);
|
|
459
|
+
}
|
|
460
|
+
var lr = function(t) {
|
|
461
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
462
|
+
rn += 1;
|
|
463
|
+
var n = rn;
|
|
464
|
+
function o(a) {
|
|
465
|
+
if (a === 0)
|
|
466
|
+
Vn(n), t();
|
|
467
|
+
else {
|
|
468
|
+
var i = Bn(function() {
|
|
469
|
+
o(a - 1);
|
|
470
|
+
});
|
|
471
|
+
Lr.set(n, i);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return o(r), n;
|
|
475
|
+
};
|
|
476
|
+
lr.cancel = function(e) {
|
|
477
|
+
var t = Lr.get(e);
|
|
478
|
+
return Vn(t), Wn(t);
|
|
479
|
+
};
|
|
480
|
+
function Dr(e) {
|
|
481
|
+
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
482
|
+
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
483
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
484
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
485
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
486
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
487
|
+
switch (o) {
|
|
488
|
+
case 3:
|
|
489
|
+
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
490
|
+
case 2:
|
|
491
|
+
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
492
|
+
case 1:
|
|
493
|
+
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
494
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
495
|
+
}
|
|
496
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
497
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
498
|
+
}
|
|
499
|
+
function Na(e, t) {
|
|
500
|
+
if (e == null)
|
|
501
|
+
return {};
|
|
502
|
+
var r = {}, n = Object.keys(e), o, a;
|
|
503
|
+
for (a = 0; a < n.length; a++)
|
|
504
|
+
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
505
|
+
return r;
|
|
506
|
+
}
|
|
507
|
+
function ur(e, t) {
|
|
508
|
+
if (e == null)
|
|
509
|
+
return {};
|
|
510
|
+
var r = Na(e, t), n, o;
|
|
511
|
+
if (Object.getOwnPropertySymbols) {
|
|
512
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
513
|
+
for (o = 0; o < a.length; o++)
|
|
514
|
+
n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
515
|
+
}
|
|
516
|
+
return r;
|
|
517
|
+
}
|
|
518
|
+
function ja(e, t) {
|
|
519
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
520
|
+
function o(a, i) {
|
|
521
|
+
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(a);
|
|
522
|
+
if (We(!l, "Warning: There may be circular references"), l)
|
|
523
|
+
return !1;
|
|
524
|
+
if (a === i)
|
|
525
|
+
return !0;
|
|
526
|
+
if (r && s > 1)
|
|
527
|
+
return !1;
|
|
528
|
+
n.add(a);
|
|
529
|
+
var c = s + 1;
|
|
530
|
+
if (Array.isArray(a)) {
|
|
531
|
+
if (!Array.isArray(i) || a.length !== i.length)
|
|
532
|
+
return !1;
|
|
533
|
+
for (var f = 0; f < a.length; f++)
|
|
534
|
+
if (!o(a[f], i[f], c))
|
|
535
|
+
return !1;
|
|
536
|
+
return !0;
|
|
537
|
+
}
|
|
538
|
+
if (a && i && J(a) === "object" && J(i) === "object") {
|
|
539
|
+
var u = Object.keys(a);
|
|
540
|
+
return u.length !== Object.keys(i).length ? !1 : u.every(function(g) {
|
|
541
|
+
return o(a[g], i[g], c);
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
return !1;
|
|
545
|
+
}
|
|
546
|
+
return o(e, t);
|
|
547
|
+
}
|
|
548
|
+
var nn = "%", Ia = /* @__PURE__ */ function() {
|
|
549
|
+
function e(t) {
|
|
550
|
+
et(this, e), I(this, "instanceId", void 0), I(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
|
|
551
|
+
}
|
|
552
|
+
return tt(e, [{
|
|
553
|
+
key: "get",
|
|
554
|
+
value: function(r) {
|
|
555
|
+
return this.cache.get(r.join(nn)) || null;
|
|
556
|
+
}
|
|
557
|
+
}, {
|
|
558
|
+
key: "update",
|
|
559
|
+
value: function(r, n) {
|
|
560
|
+
var o = r.join(nn), a = this.cache.get(o), i = n(a);
|
|
561
|
+
i === null ? this.cache.delete(o) : this.cache.set(o, i);
|
|
562
|
+
}
|
|
563
|
+
}]), e;
|
|
564
|
+
}(), fr = "data-token-hash", Fe = "data-css-hash", La = "data-cache-path", Ke = "__cssinjs_instance__";
|
|
565
|
+
function Da() {
|
|
566
|
+
var e = Math.random().toString(12).slice(2);
|
|
567
|
+
if (typeof document < "u" && document.head && document.body) {
|
|
568
|
+
var t = document.body.querySelectorAll("style[".concat(Fe, "]")) || [], r = document.head.firstChild;
|
|
569
|
+
Array.from(t).forEach(function(o) {
|
|
570
|
+
o[Ke] = o[Ke] || e, o[Ke] === e && document.head.insertBefore(o, r);
|
|
571
|
+
});
|
|
572
|
+
var n = {};
|
|
573
|
+
Array.from(document.querySelectorAll("style[".concat(Fe, "]"))).forEach(function(o) {
|
|
574
|
+
var a = o.getAttribute(Fe);
|
|
575
|
+
if (n[a]) {
|
|
576
|
+
if (o[Ke] === e) {
|
|
577
|
+
var i;
|
|
578
|
+
(i = o.parentNode) === null || i === void 0 || i.removeChild(o);
|
|
579
|
+
}
|
|
580
|
+
} else
|
|
581
|
+
n[a] = !0;
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
return new Ia(e);
|
|
585
|
+
}
|
|
586
|
+
var Ha = /* @__PURE__ */ v.createContext({
|
|
587
|
+
hashPriority: "low",
|
|
588
|
+
cache: Da(),
|
|
589
|
+
defaultCache: !0
|
|
590
|
+
});
|
|
591
|
+
const Hr = Ha;
|
|
592
|
+
function Oe() {
|
|
593
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
594
|
+
}
|
|
595
|
+
function Fa(e, t) {
|
|
596
|
+
if (!e)
|
|
597
|
+
return !1;
|
|
598
|
+
if (e.contains)
|
|
599
|
+
return e.contains(t);
|
|
600
|
+
for (var r = t; r; ) {
|
|
601
|
+
if (r === e)
|
|
602
|
+
return !0;
|
|
603
|
+
r = r.parentNode;
|
|
604
|
+
}
|
|
605
|
+
return !1;
|
|
606
|
+
}
|
|
607
|
+
var on = "data-rc-order", an = "data-rc-priority", za = "rc-util-key", dr = /* @__PURE__ */ new Map();
|
|
608
|
+
function Un() {
|
|
609
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
610
|
+
return t ? t.startsWith("data-") ? t : "data-".concat(t) : za;
|
|
611
|
+
}
|
|
612
|
+
function Lt(e) {
|
|
613
|
+
if (e.attachTo)
|
|
614
|
+
return e.attachTo;
|
|
615
|
+
var t = document.querySelector("head");
|
|
616
|
+
return t || document.body;
|
|
617
|
+
}
|
|
618
|
+
function Ba(e) {
|
|
619
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
620
|
+
}
|
|
621
|
+
function Xn(e) {
|
|
622
|
+
return Array.from((dr.get(e) || e).children).filter(function(t) {
|
|
623
|
+
return t.tagName === "STYLE";
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function Gn(e) {
|
|
627
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
628
|
+
if (!Oe())
|
|
629
|
+
return null;
|
|
630
|
+
var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = Ba(n), s = i === "prependQueue", l = document.createElement("style");
|
|
631
|
+
l.setAttribute(on, i), s && a && l.setAttribute(an, "".concat(a)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e;
|
|
632
|
+
var c = Lt(t), f = c.firstChild;
|
|
633
|
+
if (n) {
|
|
634
|
+
if (s) {
|
|
635
|
+
var u = Xn(c).filter(function(g) {
|
|
636
|
+
if (!["prepend", "prependQueue"].includes(g.getAttribute(on)))
|
|
637
|
+
return !1;
|
|
638
|
+
var h = Number(g.getAttribute(an) || 0);
|
|
639
|
+
return a >= h;
|
|
640
|
+
});
|
|
641
|
+
if (u.length)
|
|
642
|
+
return c.insertBefore(l, u[u.length - 1].nextSibling), l;
|
|
643
|
+
}
|
|
644
|
+
c.insertBefore(l, f);
|
|
645
|
+
} else
|
|
646
|
+
c.appendChild(l);
|
|
647
|
+
return l;
|
|
648
|
+
}
|
|
649
|
+
function Yn(e) {
|
|
650
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Lt(t);
|
|
651
|
+
return Xn(r).find(function(n) {
|
|
652
|
+
return n.getAttribute(Un(t)) === e;
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
function Kn(e) {
|
|
656
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Yn(e, t);
|
|
657
|
+
if (r) {
|
|
658
|
+
var n = Lt(t);
|
|
659
|
+
n.removeChild(r);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
function Wa(e, t) {
|
|
663
|
+
var r = dr.get(e);
|
|
664
|
+
if (!r || !Fa(document, r)) {
|
|
665
|
+
var n = Gn("", t), o = n.parentNode;
|
|
666
|
+
dr.set(e, o), e.removeChild(n);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function Nt(e, t) {
|
|
670
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Lt(r);
|
|
671
|
+
Wa(n, r);
|
|
672
|
+
var o = Yn(t, r);
|
|
673
|
+
if (o) {
|
|
674
|
+
var a, i;
|
|
675
|
+
if ((a = r.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = r.csp) === null || i === void 0 ? void 0 : i.nonce)) {
|
|
676
|
+
var s;
|
|
677
|
+
o.nonce = (s = r.csp) === null || s === void 0 ? void 0 : s.nonce;
|
|
678
|
+
}
|
|
679
|
+
return o.innerHTML !== e && (o.innerHTML = e), o;
|
|
680
|
+
}
|
|
681
|
+
var l = Gn(e, r);
|
|
682
|
+
return l.setAttribute(Un(r), t), l;
|
|
683
|
+
}
|
|
684
|
+
function qn(e) {
|
|
685
|
+
if (Array.isArray(e))
|
|
686
|
+
return e;
|
|
687
|
+
}
|
|
688
|
+
function Va(e, t) {
|
|
689
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
690
|
+
if (r != null) {
|
|
691
|
+
var n, o, a, i, s = [], l = !0, c = !1;
|
|
692
|
+
try {
|
|
693
|
+
if (a = (r = r.call(e)).next, t === 0) {
|
|
694
|
+
if (Object(r) !== r)
|
|
695
|
+
return;
|
|
696
|
+
l = !1;
|
|
697
|
+
} else
|
|
698
|
+
for (; !(l = (n = a.call(r)).done) && (s.push(n.value), s.length !== t); l = !0)
|
|
699
|
+
;
|
|
700
|
+
} catch (f) {
|
|
701
|
+
c = !0, o = f;
|
|
702
|
+
} finally {
|
|
703
|
+
try {
|
|
704
|
+
if (!l && r.return != null && (i = r.return(), Object(i) !== i))
|
|
705
|
+
return;
|
|
706
|
+
} finally {
|
|
707
|
+
if (c)
|
|
708
|
+
throw o;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return s;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function Qn() {
|
|
715
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
716
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
717
|
+
}
|
|
718
|
+
function V(e, t) {
|
|
719
|
+
return qn(e) || Va(e, t) || Ir(e, t) || Qn();
|
|
720
|
+
}
|
|
721
|
+
function Ua(e, t) {
|
|
722
|
+
if (e.length !== t.length)
|
|
723
|
+
return !1;
|
|
724
|
+
for (var r = 0; r < e.length; r++)
|
|
725
|
+
if (e[r] !== t[r])
|
|
726
|
+
return !1;
|
|
727
|
+
return !0;
|
|
728
|
+
}
|
|
729
|
+
var Fr = /* @__PURE__ */ function() {
|
|
730
|
+
function e() {
|
|
731
|
+
et(this, e), I(this, "cache", void 0), I(this, "keys", void 0), I(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
732
|
+
}
|
|
733
|
+
return tt(e, [{
|
|
734
|
+
key: "size",
|
|
735
|
+
value: function() {
|
|
736
|
+
return this.keys.length;
|
|
737
|
+
}
|
|
738
|
+
}, {
|
|
739
|
+
key: "internalGet",
|
|
740
|
+
value: function(r) {
|
|
741
|
+
var n, o, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = {
|
|
742
|
+
map: this.cache
|
|
743
|
+
};
|
|
744
|
+
return r.forEach(function(s) {
|
|
745
|
+
if (!i)
|
|
746
|
+
i = void 0;
|
|
747
|
+
else {
|
|
748
|
+
var l, c;
|
|
749
|
+
i = (l = i) === null || l === void 0 || (c = l.map) === null || c === void 0 ? void 0 : c.get(s);
|
|
750
|
+
}
|
|
751
|
+
}), (n = i) !== null && n !== void 0 && n.value && a && (i.value[1] = this.cacheCallTimes++), (o = i) === null || o === void 0 ? void 0 : o.value;
|
|
752
|
+
}
|
|
753
|
+
}, {
|
|
754
|
+
key: "get",
|
|
755
|
+
value: function(r) {
|
|
756
|
+
var n;
|
|
757
|
+
return (n = this.internalGet(r, !0)) === null || n === void 0 ? void 0 : n[0];
|
|
758
|
+
}
|
|
759
|
+
}, {
|
|
760
|
+
key: "has",
|
|
761
|
+
value: function(r) {
|
|
762
|
+
return !!this.internalGet(r);
|
|
763
|
+
}
|
|
764
|
+
}, {
|
|
765
|
+
key: "set",
|
|
766
|
+
value: function(r, n) {
|
|
767
|
+
var o = this;
|
|
768
|
+
if (!this.has(r)) {
|
|
769
|
+
if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
|
|
770
|
+
var a = this.keys.reduce(function(c, f) {
|
|
771
|
+
var u = V(c, 2), g = u[1];
|
|
772
|
+
return o.internalGet(f)[1] < g ? [f, o.internalGet(f)[1]] : c;
|
|
773
|
+
}, [this.keys[0], this.cacheCallTimes]), i = V(a, 1), s = i[0];
|
|
774
|
+
this.delete(s);
|
|
775
|
+
}
|
|
776
|
+
this.keys.push(r);
|
|
777
|
+
}
|
|
778
|
+
var l = this.cache;
|
|
779
|
+
r.forEach(function(c, f) {
|
|
780
|
+
if (f === r.length - 1)
|
|
781
|
+
l.set(c, {
|
|
782
|
+
value: [n, o.cacheCallTimes++]
|
|
783
|
+
});
|
|
784
|
+
else {
|
|
785
|
+
var u = l.get(c);
|
|
786
|
+
u ? u.map || (u.map = /* @__PURE__ */ new Map()) : l.set(c, {
|
|
787
|
+
map: /* @__PURE__ */ new Map()
|
|
788
|
+
}), l = l.get(c).map;
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
}, {
|
|
793
|
+
key: "deleteByPath",
|
|
794
|
+
value: function(r, n) {
|
|
795
|
+
var o = r.get(n[0]);
|
|
796
|
+
if (n.length === 1) {
|
|
797
|
+
var a;
|
|
798
|
+
return o.map ? r.set(n[0], {
|
|
799
|
+
map: o.map
|
|
800
|
+
}) : r.delete(n[0]), (a = o.value) === null || a === void 0 ? void 0 : a[0];
|
|
801
|
+
}
|
|
802
|
+
var i = this.deleteByPath(o.map, n.slice(1));
|
|
803
|
+
return (!o.map || o.map.size === 0) && !o.value && r.delete(n[0]), i;
|
|
804
|
+
}
|
|
805
|
+
}, {
|
|
806
|
+
key: "delete",
|
|
807
|
+
value: function(r) {
|
|
808
|
+
if (this.has(r))
|
|
809
|
+
return this.keys = this.keys.filter(function(n) {
|
|
810
|
+
return !Ua(n, r);
|
|
811
|
+
}), this.deleteByPath(this.cache, r);
|
|
812
|
+
}
|
|
813
|
+
}]), e;
|
|
814
|
+
}();
|
|
815
|
+
I(Fr, "MAX_CACHE_SIZE", 20);
|
|
816
|
+
I(Fr, "MAX_CACHE_OFFSET", 5);
|
|
817
|
+
var sn = 0, Zn = /* @__PURE__ */ function() {
|
|
818
|
+
function e(t) {
|
|
819
|
+
et(this, e), I(this, "derivatives", void 0), I(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = sn, t.length === 0 && jr(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), sn += 1;
|
|
820
|
+
}
|
|
821
|
+
return tt(e, [{
|
|
822
|
+
key: "getDerivativeToken",
|
|
823
|
+
value: function(r) {
|
|
824
|
+
return this.derivatives.reduce(function(n, o) {
|
|
825
|
+
return o(r, n);
|
|
826
|
+
}, void 0);
|
|
827
|
+
}
|
|
828
|
+
}]), e;
|
|
829
|
+
}(), Vt = new Fr();
|
|
830
|
+
function gr(e) {
|
|
831
|
+
var t = Array.isArray(e) ? e : [e];
|
|
832
|
+
return Vt.has(t) || Vt.set(t, new Zn(t)), Vt.get(t);
|
|
833
|
+
}
|
|
834
|
+
var Xa = /* @__PURE__ */ new WeakMap(), Ut = {};
|
|
835
|
+
function Ga(e, t) {
|
|
836
|
+
for (var r = Xa, n = 0; n < t.length; n += 1) {
|
|
837
|
+
var o = t[n];
|
|
838
|
+
r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
|
|
839
|
+
}
|
|
840
|
+
return r.has(Ut) || r.set(Ut, e()), r.get(Ut);
|
|
841
|
+
}
|
|
842
|
+
var cn = /* @__PURE__ */ new WeakMap();
|
|
843
|
+
function jt(e) {
|
|
844
|
+
var t = cn.get(e) || "";
|
|
845
|
+
return t || (Object.keys(e).forEach(function(r) {
|
|
846
|
+
var n = e[r];
|
|
847
|
+
t += r, n instanceof Zn ? t += n.id : n && J(n) === "object" ? t += jt(n) : t += n;
|
|
848
|
+
}), cn.set(e, t)), t;
|
|
849
|
+
}
|
|
850
|
+
function Ya(e, t) {
|
|
851
|
+
return Dr("".concat(t, "_").concat(jt(e)));
|
|
852
|
+
}
|
|
853
|
+
var ct = "random-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, ""), Jn = "_bAmBoO_";
|
|
854
|
+
function Ka(e, t, r) {
|
|
855
|
+
if (Oe()) {
|
|
856
|
+
var n, o;
|
|
857
|
+
Nt(e, ct);
|
|
858
|
+
var a = document.createElement("div");
|
|
859
|
+
a.style.position = "fixed", a.style.left = "0", a.style.top = "0", t == null || t(a), document.body.appendChild(a), process.env.NODE_ENV !== "production" && (a.innerHTML = "Test", a.style.zIndex = "9999999");
|
|
860
|
+
var i = r ? r(a) : (n = getComputedStyle(a).content) === null || n === void 0 ? void 0 : n.includes(Jn);
|
|
861
|
+
return (o = a.parentNode) === null || o === void 0 || o.removeChild(a), Kn(ct), i;
|
|
862
|
+
}
|
|
863
|
+
return !1;
|
|
864
|
+
}
|
|
865
|
+
var Xt = void 0;
|
|
866
|
+
function qa() {
|
|
867
|
+
return Xt === void 0 && (Xt = Ka("@layer ".concat(ct, " { .").concat(ct, ' { content: "').concat(Jn, '"!important; } }'), function(e) {
|
|
868
|
+
e.className = ct;
|
|
869
|
+
})), Xt;
|
|
870
|
+
}
|
|
871
|
+
var ln = process.env.NODE_ENV !== "test" && Oe() ? v.useLayoutEffect : v.useEffect, Qa = function(t, r) {
|
|
872
|
+
var n = v.useRef(!0);
|
|
873
|
+
ln(function() {
|
|
874
|
+
return t(n.current);
|
|
875
|
+
}, r), ln(function() {
|
|
876
|
+
return n.current = !1, function() {
|
|
877
|
+
n.current = !0;
|
|
878
|
+
};
|
|
879
|
+
}, []);
|
|
880
|
+
}, Za = $({}, v), un = Za.useInsertionEffect, Ja = function(t, r, n) {
|
|
881
|
+
v.useMemo(t, n), Qa(function() {
|
|
882
|
+
return r(!0);
|
|
883
|
+
}, n);
|
|
884
|
+
}, ei = un ? function(e, t, r) {
|
|
885
|
+
return un(function() {
|
|
886
|
+
return e(), t();
|
|
887
|
+
}, r);
|
|
888
|
+
} : Ja;
|
|
889
|
+
const ti = ei;
|
|
890
|
+
var ri = $({}, v), ni = ri.useInsertionEffect, oi = function(t) {
|
|
891
|
+
var r = [], n = !1;
|
|
892
|
+
function o(a) {
|
|
893
|
+
if (n) {
|
|
894
|
+
process.env.NODE_ENV !== "production" && jr(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
r.push(a);
|
|
898
|
+
}
|
|
899
|
+
return v.useEffect(function() {
|
|
900
|
+
return n = !1, function() {
|
|
901
|
+
n = !0, r.length && r.forEach(function(a) {
|
|
902
|
+
return a();
|
|
903
|
+
});
|
|
904
|
+
};
|
|
905
|
+
}, t), o;
|
|
906
|
+
}, ai = function() {
|
|
907
|
+
return function(t) {
|
|
908
|
+
t();
|
|
909
|
+
};
|
|
910
|
+
}, ii = typeof ni < "u" ? oi : ai;
|
|
911
|
+
const si = ii;
|
|
912
|
+
function ci() {
|
|
913
|
+
return !1;
|
|
914
|
+
}
|
|
915
|
+
var vr = !1;
|
|
916
|
+
function li() {
|
|
917
|
+
return vr;
|
|
918
|
+
}
|
|
919
|
+
const ui = process.env.NODE_ENV === "production" ? ci : li;
|
|
920
|
+
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
921
|
+
var Gt = window;
|
|
922
|
+
if (typeof Gt.webpackHotUpdate == "function") {
|
|
923
|
+
var fi = Gt.webpackHotUpdate;
|
|
924
|
+
Gt.webpackHotUpdate = function() {
|
|
925
|
+
return vr = !0, setTimeout(function() {
|
|
926
|
+
vr = !1;
|
|
927
|
+
}, 0), fi.apply(void 0, arguments);
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
function eo(e, t, r, n, o) {
|
|
932
|
+
var a = v.useContext(Hr), i = a.cache, s = [e].concat(Ce(t)), l = s.join("_"), c = si([l]), f = ui(), u = function(p) {
|
|
933
|
+
i.update(s, function(d) {
|
|
934
|
+
var S = d || [], m = V(S, 2), P = m[0], A = P === void 0 ? 0 : P, T = m[1], C = T;
|
|
935
|
+
process.env.NODE_ENV !== "production" && T && f && (n == null || n(C, f), C = null);
|
|
936
|
+
var y = C || r(), k = [A, y];
|
|
937
|
+
return p ? p(k) : k;
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
v.useMemo(
|
|
941
|
+
function() {
|
|
942
|
+
u();
|
|
943
|
+
},
|
|
944
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
945
|
+
[l]
|
|
946
|
+
/* eslint-enable */
|
|
947
|
+
);
|
|
948
|
+
var g = i.get(s);
|
|
949
|
+
process.env.NODE_ENV !== "production" && !g && (u(), g = i.get(s));
|
|
950
|
+
var h = g[1];
|
|
951
|
+
return ti(function() {
|
|
952
|
+
o == null || o(h);
|
|
953
|
+
}, function(b) {
|
|
954
|
+
return u(function(p) {
|
|
955
|
+
var d = V(p, 2), S = d[0], m = d[1];
|
|
956
|
+
return b && S === 0 && (o == null || o(h)), [S + 1, m];
|
|
957
|
+
}), function() {
|
|
958
|
+
i.update(s, function(p) {
|
|
959
|
+
var d = p || [], S = V(d, 2), m = S[0], P = m === void 0 ? 0 : m, A = S[1], T = P - 1;
|
|
960
|
+
return T === 0 ? (c(function() {
|
|
961
|
+
return n == null ? void 0 : n(A, !1);
|
|
962
|
+
}), null) : [P - 1, A];
|
|
963
|
+
});
|
|
964
|
+
};
|
|
965
|
+
}, [l]), h;
|
|
966
|
+
}
|
|
967
|
+
var di = {}, gi = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", De = /* @__PURE__ */ new Map();
|
|
968
|
+
function vi(e) {
|
|
969
|
+
De.set(e, (De.get(e) || 0) + 1);
|
|
970
|
+
}
|
|
971
|
+
function pi(e, t) {
|
|
972
|
+
if (typeof document < "u") {
|
|
973
|
+
var r = document.querySelectorAll("style[".concat(fr, '="').concat(e, '"]'));
|
|
974
|
+
r.forEach(function(n) {
|
|
975
|
+
if (n[Ke] === t) {
|
|
976
|
+
var o;
|
|
977
|
+
(o = n.parentNode) === null || o === void 0 || o.removeChild(n);
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
var hi = 0;
|
|
983
|
+
function mi(e, t) {
|
|
984
|
+
De.set(e, (De.get(e) || 0) - 1);
|
|
985
|
+
var r = Array.from(De.keys()), n = r.filter(function(o) {
|
|
986
|
+
var a = De.get(o) || 0;
|
|
987
|
+
return a <= 0;
|
|
988
|
+
});
|
|
989
|
+
r.length - n.length > hi && n.forEach(function(o) {
|
|
990
|
+
pi(o, t), De.delete(o);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
var bi = function(t, r, n, o) {
|
|
994
|
+
var a = n.getDerivativeToken(t), i = $($({}, a), r);
|
|
995
|
+
return o && (i = o(i)), i;
|
|
996
|
+
};
|
|
997
|
+
function yi(e, t) {
|
|
998
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Rt(Hr), o = n.cache.instanceId, a = r.salt, i = a === void 0 ? "" : a, s = r.override, l = s === void 0 ? di : s, c = r.formatToken, f = r.getComputedToken, u = Ga(function() {
|
|
999
|
+
return Object.assign.apply(Object, [{}].concat(Ce(t)));
|
|
1000
|
+
}, t), g = jt(u), h = jt(l), b = eo("token", [i, e.id, g, h], function() {
|
|
1001
|
+
var p = f ? f(u, l, e) : bi(u, l, e, c), d = Ya(p, i);
|
|
1002
|
+
p._tokenKey = d, vi(d);
|
|
1003
|
+
var S = "".concat(gi, "-").concat(Dr(d));
|
|
1004
|
+
return p._hashId = S, [p, S];
|
|
1005
|
+
}, function(p) {
|
|
1006
|
+
mi(p[0]._tokenKey, o);
|
|
1007
|
+
});
|
|
1008
|
+
return b;
|
|
1009
|
+
}
|
|
1010
|
+
var Si = {
|
|
1011
|
+
animationIterationCount: 1,
|
|
1012
|
+
borderImageOutset: 1,
|
|
1013
|
+
borderImageSlice: 1,
|
|
1014
|
+
borderImageWidth: 1,
|
|
1015
|
+
boxFlex: 1,
|
|
1016
|
+
boxFlexGroup: 1,
|
|
1017
|
+
boxOrdinalGroup: 1,
|
|
1018
|
+
columnCount: 1,
|
|
1019
|
+
columns: 1,
|
|
1020
|
+
flex: 1,
|
|
1021
|
+
flexGrow: 1,
|
|
1022
|
+
flexPositive: 1,
|
|
1023
|
+
flexShrink: 1,
|
|
1024
|
+
flexNegative: 1,
|
|
1025
|
+
flexOrder: 1,
|
|
1026
|
+
gridRow: 1,
|
|
1027
|
+
gridRowEnd: 1,
|
|
1028
|
+
gridRowSpan: 1,
|
|
1029
|
+
gridRowStart: 1,
|
|
1030
|
+
gridColumn: 1,
|
|
1031
|
+
gridColumnEnd: 1,
|
|
1032
|
+
gridColumnSpan: 1,
|
|
1033
|
+
gridColumnStart: 1,
|
|
1034
|
+
msGridRow: 1,
|
|
1035
|
+
msGridRowSpan: 1,
|
|
1036
|
+
msGridColumn: 1,
|
|
1037
|
+
msGridColumnSpan: 1,
|
|
1038
|
+
fontWeight: 1,
|
|
1039
|
+
lineHeight: 1,
|
|
1040
|
+
opacity: 1,
|
|
1041
|
+
order: 1,
|
|
1042
|
+
orphans: 1,
|
|
1043
|
+
tabSize: 1,
|
|
1044
|
+
widows: 1,
|
|
1045
|
+
zIndex: 1,
|
|
1046
|
+
zoom: 1,
|
|
1047
|
+
WebkitLineClamp: 1,
|
|
1048
|
+
// SVG-related properties
|
|
1049
|
+
fillOpacity: 1,
|
|
1050
|
+
floodOpacity: 1,
|
|
1051
|
+
stopOpacity: 1,
|
|
1052
|
+
strokeDasharray: 1,
|
|
1053
|
+
strokeDashoffset: 1,
|
|
1054
|
+
strokeMiterlimit: 1,
|
|
1055
|
+
strokeOpacity: 1,
|
|
1056
|
+
strokeWidth: 1
|
|
1057
|
+
}, to = "comm", ro = "rule", no = "decl", xi = "@import", Ei = "@keyframes", Ci = "@layer", Oi = Math.abs, zr = String.fromCharCode;
|
|
1058
|
+
function oo(e) {
|
|
1059
|
+
return e.trim();
|
|
1060
|
+
}
|
|
1061
|
+
function wt(e, t, r) {
|
|
1062
|
+
return e.replace(t, r);
|
|
1063
|
+
}
|
|
1064
|
+
function Ti(e, t) {
|
|
1065
|
+
return e.indexOf(t);
|
|
1066
|
+
}
|
|
1067
|
+
function lt(e, t) {
|
|
1068
|
+
return e.charCodeAt(t) | 0;
|
|
1069
|
+
}
|
|
1070
|
+
function ut(e, t, r) {
|
|
1071
|
+
return e.slice(t, r);
|
|
1072
|
+
}
|
|
1073
|
+
function Me(e) {
|
|
1074
|
+
return e.length;
|
|
1075
|
+
}
|
|
1076
|
+
function wi(e) {
|
|
1077
|
+
return e.length;
|
|
1078
|
+
}
|
|
1079
|
+
function pt(e, t) {
|
|
1080
|
+
return t.push(e), e;
|
|
1081
|
+
}
|
|
1082
|
+
var Dt = 1, Ze = 1, ao = 0, ue = 0, q = 0, rt = "";
|
|
1083
|
+
function Br(e, t, r, n, o, a, i, s) {
|
|
1084
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Dt, column: Ze, length: i, return: "", siblings: s };
|
|
1085
|
+
}
|
|
1086
|
+
function Pi() {
|
|
1087
|
+
return q;
|
|
1088
|
+
}
|
|
1089
|
+
function Ai() {
|
|
1090
|
+
return q = ue > 0 ? lt(rt, --ue) : 0, Ze--, q === 10 && (Ze = 1, Dt--), q;
|
|
1091
|
+
}
|
|
1092
|
+
function ve() {
|
|
1093
|
+
return q = ue < ao ? lt(rt, ue++) : 0, Ze++, q === 10 && (Ze = 1, Dt++), q;
|
|
1094
|
+
}
|
|
1095
|
+
function ze() {
|
|
1096
|
+
return lt(rt, ue);
|
|
1097
|
+
}
|
|
1098
|
+
function Pt() {
|
|
1099
|
+
return ue;
|
|
1100
|
+
}
|
|
1101
|
+
function Ht(e, t) {
|
|
1102
|
+
return ut(rt, e, t);
|
|
1103
|
+
}
|
|
1104
|
+
function pr(e) {
|
|
1105
|
+
switch (e) {
|
|
1106
|
+
case 0:
|
|
1107
|
+
case 9:
|
|
1108
|
+
case 10:
|
|
1109
|
+
case 13:
|
|
1110
|
+
case 32:
|
|
1111
|
+
return 5;
|
|
1112
|
+
case 33:
|
|
1113
|
+
case 43:
|
|
1114
|
+
case 44:
|
|
1115
|
+
case 47:
|
|
1116
|
+
case 62:
|
|
1117
|
+
case 64:
|
|
1118
|
+
case 126:
|
|
1119
|
+
case 59:
|
|
1120
|
+
case 123:
|
|
1121
|
+
case 125:
|
|
1122
|
+
return 4;
|
|
1123
|
+
case 58:
|
|
1124
|
+
return 3;
|
|
1125
|
+
case 34:
|
|
1126
|
+
case 39:
|
|
1127
|
+
case 40:
|
|
1128
|
+
case 91:
|
|
1129
|
+
return 2;
|
|
1130
|
+
case 41:
|
|
1131
|
+
case 93:
|
|
1132
|
+
return 1;
|
|
1133
|
+
}
|
|
1134
|
+
return 0;
|
|
1135
|
+
}
|
|
1136
|
+
function ki(e) {
|
|
1137
|
+
return Dt = Ze = 1, ao = Me(rt = e), ue = 0, [];
|
|
1138
|
+
}
|
|
1139
|
+
function Mi(e) {
|
|
1140
|
+
return rt = "", e;
|
|
1141
|
+
}
|
|
1142
|
+
function Yt(e) {
|
|
1143
|
+
return oo(Ht(ue - 1, hr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1144
|
+
}
|
|
1145
|
+
function Ri(e) {
|
|
1146
|
+
for (; (q = ze()) && q < 33; )
|
|
1147
|
+
ve();
|
|
1148
|
+
return pr(e) > 2 || pr(q) > 3 ? "" : " ";
|
|
1149
|
+
}
|
|
1150
|
+
function $i(e, t) {
|
|
1151
|
+
for (; --t && ve() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
|
1152
|
+
;
|
|
1153
|
+
return Ht(e, Pt() + (t < 6 && ze() == 32 && ve() == 32));
|
|
1154
|
+
}
|
|
1155
|
+
function hr(e) {
|
|
1156
|
+
for (; ve(); )
|
|
1157
|
+
switch (q) {
|
|
1158
|
+
case e:
|
|
1159
|
+
return ue;
|
|
1160
|
+
case 34:
|
|
1161
|
+
case 39:
|
|
1162
|
+
e !== 34 && e !== 39 && hr(q);
|
|
1163
|
+
break;
|
|
1164
|
+
case 40:
|
|
1165
|
+
e === 41 && hr(e);
|
|
1166
|
+
break;
|
|
1167
|
+
case 92:
|
|
1168
|
+
ve();
|
|
1169
|
+
break;
|
|
1170
|
+
}
|
|
1171
|
+
return ue;
|
|
1172
|
+
}
|
|
1173
|
+
function _i(e, t) {
|
|
1174
|
+
for (; ve() && e + q !== 47 + 10; )
|
|
1175
|
+
if (e + q === 42 + 42 && ze() === 47)
|
|
1176
|
+
break;
|
|
1177
|
+
return "/*" + Ht(t, ue - 1) + "*" + zr(e === 47 ? e : ve());
|
|
1178
|
+
}
|
|
1179
|
+
function Ni(e) {
|
|
1180
|
+
for (; !pr(ze()); )
|
|
1181
|
+
ve();
|
|
1182
|
+
return Ht(e, ue);
|
|
1183
|
+
}
|
|
1184
|
+
function ji(e) {
|
|
1185
|
+
return Mi(At("", null, null, null, [""], e = ki(e), 0, [0], e));
|
|
1186
|
+
}
|
|
1187
|
+
function At(e, t, r, n, o, a, i, s, l) {
|
|
1188
|
+
for (var c = 0, f = 0, u = i, g = 0, h = 0, b = 0, p = 1, d = 1, S = 1, m = 0, P = "", A = o, T = a, C = n, y = P; d; )
|
|
1189
|
+
switch (b = m, m = ve()) {
|
|
1190
|
+
case 40:
|
|
1191
|
+
if (b != 108 && lt(y, u - 1) == 58) {
|
|
1192
|
+
Ti(y += wt(Yt(m), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
case 34:
|
|
1196
|
+
case 39:
|
|
1197
|
+
case 91:
|
|
1198
|
+
y += Yt(m);
|
|
1199
|
+
break;
|
|
1200
|
+
case 9:
|
|
1201
|
+
case 10:
|
|
1202
|
+
case 13:
|
|
1203
|
+
case 32:
|
|
1204
|
+
y += Ri(b);
|
|
1205
|
+
break;
|
|
1206
|
+
case 92:
|
|
1207
|
+
y += $i(Pt() - 1, 7);
|
|
1208
|
+
continue;
|
|
1209
|
+
case 47:
|
|
1210
|
+
switch (ze()) {
|
|
1211
|
+
case 42:
|
|
1212
|
+
case 47:
|
|
1213
|
+
pt(Ii(_i(ve(), Pt()), t, r, l), l);
|
|
1214
|
+
break;
|
|
1215
|
+
default:
|
|
1216
|
+
y += "/";
|
|
1217
|
+
}
|
|
1218
|
+
break;
|
|
1219
|
+
case 123 * p:
|
|
1220
|
+
s[c++] = Me(y) * S;
|
|
1221
|
+
case 125 * p:
|
|
1222
|
+
case 59:
|
|
1223
|
+
case 0:
|
|
1224
|
+
switch (m) {
|
|
1225
|
+
case 0:
|
|
1226
|
+
case 125:
|
|
1227
|
+
d = 0;
|
|
1228
|
+
case 59 + f:
|
|
1229
|
+
S == -1 && (y = wt(y, /\f/g, "")), h > 0 && Me(y) - u && pt(h > 32 ? dn(y + ";", n, r, u - 1, l) : dn(wt(y, " ", "") + ";", n, r, u - 2, l), l);
|
|
1230
|
+
break;
|
|
1231
|
+
case 59:
|
|
1232
|
+
y += ";";
|
|
1233
|
+
default:
|
|
1234
|
+
if (pt(C = fn(y, t, r, c, f, o, s, P, A = [], T = [], u, a), a), m === 123)
|
|
1235
|
+
if (f === 0)
|
|
1236
|
+
At(y, t, C, C, A, a, u, s, T);
|
|
1237
|
+
else
|
|
1238
|
+
switch (g === 99 && lt(y, 3) === 110 ? 100 : g) {
|
|
1239
|
+
case 100:
|
|
1240
|
+
case 108:
|
|
1241
|
+
case 109:
|
|
1242
|
+
case 115:
|
|
1243
|
+
At(e, C, C, n && pt(fn(e, C, C, 0, 0, o, s, P, o, A = [], u, T), T), o, T, u, s, n ? A : T);
|
|
1244
|
+
break;
|
|
1245
|
+
default:
|
|
1246
|
+
At(y, C, C, C, [""], T, 0, s, T);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
c = f = h = 0, p = S = 1, P = y = "", u = i;
|
|
1250
|
+
break;
|
|
1251
|
+
case 58:
|
|
1252
|
+
u = 1 + Me(y), h = b;
|
|
1253
|
+
default:
|
|
1254
|
+
if (p < 1) {
|
|
1255
|
+
if (m == 123)
|
|
1256
|
+
--p;
|
|
1257
|
+
else if (m == 125 && p++ == 0 && Ai() == 125)
|
|
1258
|
+
continue;
|
|
1259
|
+
}
|
|
1260
|
+
switch (y += zr(m), m * p) {
|
|
1261
|
+
case 38:
|
|
1262
|
+
S = f > 0 ? 1 : (y += "\f", -1);
|
|
1263
|
+
break;
|
|
1264
|
+
case 44:
|
|
1265
|
+
s[c++] = (Me(y) - 1) * S, S = 1;
|
|
1266
|
+
break;
|
|
1267
|
+
case 64:
|
|
1268
|
+
ze() === 45 && (y += Yt(ve())), g = ze(), f = u = Me(P = y += Ni(Pt())), m++;
|
|
1269
|
+
break;
|
|
1270
|
+
case 45:
|
|
1271
|
+
b === 45 && Me(y) == 2 && (p = 0);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
return a;
|
|
1275
|
+
}
|
|
1276
|
+
function fn(e, t, r, n, o, a, i, s, l, c, f, u) {
|
|
1277
|
+
for (var g = o - 1, h = o === 0 ? a : [""], b = wi(h), p = 0, d = 0, S = 0; p < n; ++p)
|
|
1278
|
+
for (var m = 0, P = ut(e, g + 1, g = Oi(d = i[p])), A = e; m < b; ++m)
|
|
1279
|
+
(A = oo(d > 0 ? h[m] + " " + P : wt(P, /&\f/g, h[m]))) && (l[S++] = A);
|
|
1280
|
+
return Br(e, t, r, o === 0 ? ro : s, l, c, f, u);
|
|
1281
|
+
}
|
|
1282
|
+
function Ii(e, t, r, n) {
|
|
1283
|
+
return Br(e, t, r, to, zr(Pi()), ut(e, 2, -2), 0, n);
|
|
1284
|
+
}
|
|
1285
|
+
function dn(e, t, r, n, o) {
|
|
1286
|
+
return Br(e, t, r, no, ut(e, 0, n), ut(e, n + 1, -1), n, o);
|
|
1287
|
+
}
|
|
1288
|
+
function mr(e, t) {
|
|
1289
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
1290
|
+
r += t(e[n], n, e, t) || "";
|
|
1291
|
+
return r;
|
|
1292
|
+
}
|
|
1293
|
+
function Li(e, t, r, n) {
|
|
1294
|
+
switch (e.type) {
|
|
1295
|
+
case Ci:
|
|
1296
|
+
if (e.children.length)
|
|
1297
|
+
break;
|
|
1298
|
+
case xi:
|
|
1299
|
+
case no:
|
|
1300
|
+
return e.return = e.return || e.value;
|
|
1301
|
+
case to:
|
|
1302
|
+
return "";
|
|
1303
|
+
case Ei:
|
|
1304
|
+
return e.return = e.value + "{" + mr(e.children, n) + "}";
|
|
1305
|
+
case ro:
|
|
1306
|
+
if (!Me(e.value = e.props.join(",")))
|
|
1307
|
+
return "";
|
|
1308
|
+
}
|
|
1309
|
+
return Me(r = mr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1310
|
+
}
|
|
1311
|
+
function io(e, t) {
|
|
1312
|
+
var r = t.path, n = t.parentSelectors;
|
|
1313
|
+
We(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
|
|
1314
|
+
}
|
|
1315
|
+
var Di = function(t, r, n) {
|
|
1316
|
+
if (t === "content") {
|
|
1317
|
+
var o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, a = ["normal", "none", "initial", "inherit", "unset"];
|
|
1318
|
+
(typeof r != "string" || a.indexOf(r) === -1 && !o.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && io("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n);
|
|
1319
|
+
}
|
|
1320
|
+
}, Hi = function(t, r, n) {
|
|
1321
|
+
t === "animation" && n.hashId && r !== "none" && io("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
|
|
1322
|
+
}, gn = "data-ant-cssinjs-cache-path", so = "_FILE_STYLE__", Be, co = !0;
|
|
1323
|
+
function Fi() {
|
|
1324
|
+
if (!Be && (Be = {}, Oe())) {
|
|
1325
|
+
var e = document.createElement("div");
|
|
1326
|
+
e.className = gn, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
1327
|
+
var t = getComputedStyle(e).content || "";
|
|
1328
|
+
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
|
|
1329
|
+
var a = o.split(":"), i = V(a, 2), s = i[0], l = i[1];
|
|
1330
|
+
Be[s] = l;
|
|
1331
|
+
});
|
|
1332
|
+
var r = document.querySelector("style[".concat(gn, "]"));
|
|
1333
|
+
if (r) {
|
|
1334
|
+
var n;
|
|
1335
|
+
co = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
|
|
1336
|
+
}
|
|
1337
|
+
document.body.removeChild(e);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function zi(e) {
|
|
1341
|
+
return Fi(), !!Be[e];
|
|
1342
|
+
}
|
|
1343
|
+
function Bi(e) {
|
|
1344
|
+
var t = Be[e], r = null;
|
|
1345
|
+
if (t && Oe())
|
|
1346
|
+
if (co)
|
|
1347
|
+
r = so;
|
|
1348
|
+
else {
|
|
1349
|
+
var n = document.querySelector("style[".concat(Fe, '="').concat(Be[e], '"]'));
|
|
1350
|
+
n ? r = n.innerHTML : delete Be[e];
|
|
1351
|
+
}
|
|
1352
|
+
return [r, t];
|
|
1353
|
+
}
|
|
1354
|
+
var vn = Oe(), lo = "_skip_check_", uo = "_multi_value_";
|
|
1355
|
+
function pn(e) {
|
|
1356
|
+
var t = mr(ji(e), Li);
|
|
1357
|
+
return t.replace(/\{%%%\:[^;];}/g, ";");
|
|
1358
|
+
}
|
|
1359
|
+
function Wi(e) {
|
|
1360
|
+
return J(e) === "object" && e && (lo in e || uo in e);
|
|
1361
|
+
}
|
|
1362
|
+
function Vi(e, t, r) {
|
|
1363
|
+
if (!t)
|
|
1364
|
+
return e;
|
|
1365
|
+
var n = ".".concat(t), o = r === "low" ? ":where(".concat(n, ")") : n, a = e.split(",").map(function(i) {
|
|
1366
|
+
var s, l = i.trim().split(/\s+/), c = l[0] || "", f = ((s = c.match(/^\w+/)) === null || s === void 0 ? void 0 : s[0]) || "";
|
|
1367
|
+
return c = "".concat(f).concat(o).concat(c.slice(f.length)), [c].concat(Ce(l.slice(1))).join(" ");
|
|
1368
|
+
});
|
|
1369
|
+
return a.join(",");
|
|
1370
|
+
}
|
|
1371
|
+
var Ui = function e(t) {
|
|
1372
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1373
|
+
root: !0,
|
|
1374
|
+
parentSelectors: []
|
|
1375
|
+
}, o = n.root, a = n.injectHash, i = n.parentSelectors, s = r.hashId, l = r.layer, c = r.path, f = r.hashPriority, u = r.transformers, g = u === void 0 ? [] : u, h = r.linters, b = h === void 0 ? [] : h, p = "", d = {};
|
|
1376
|
+
function S(C) {
|
|
1377
|
+
var y = C.getName(s);
|
|
1378
|
+
if (!d[y]) {
|
|
1379
|
+
var k = e(C.style, r, {
|
|
1380
|
+
root: !1,
|
|
1381
|
+
parentSelectors: i
|
|
1382
|
+
}), L = V(k, 1), w = L[0];
|
|
1383
|
+
d[y] = "@keyframes ".concat(C.getName(s)).concat(w);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
function m(C) {
|
|
1387
|
+
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1388
|
+
return C.forEach(function(k) {
|
|
1389
|
+
Array.isArray(k) ? m(k, y) : k && y.push(k);
|
|
1390
|
+
}), y;
|
|
1391
|
+
}
|
|
1392
|
+
var P = m(Array.isArray(t) ? t : [t]);
|
|
1393
|
+
if (P.forEach(function(C) {
|
|
1394
|
+
var y = typeof C == "string" && !o ? {} : C;
|
|
1395
|
+
if (typeof y == "string")
|
|
1396
|
+
p += "".concat(y, `
|
|
1397
|
+
`);
|
|
1398
|
+
else if (y._keyframe)
|
|
1399
|
+
S(y);
|
|
1400
|
+
else {
|
|
1401
|
+
var k = g.reduce(function(L, w) {
|
|
1402
|
+
var R;
|
|
1403
|
+
return (w == null || (R = w.visit) === null || R === void 0 ? void 0 : R.call(w, L)) || L;
|
|
1404
|
+
}, y);
|
|
1405
|
+
Object.keys(k).forEach(function(L) {
|
|
1406
|
+
var w = k[L];
|
|
1407
|
+
if (J(w) === "object" && w && (L !== "animationName" || !w._keyframe) && !Wi(w)) {
|
|
1408
|
+
var R = !1, x = L.trim(), O = !1;
|
|
1409
|
+
(o || a) && s ? x.startsWith("@") ? R = !0 : x = Vi(L, s, f) : o && !s && (x === "&" || x === "") && (x = "", O = !0);
|
|
1410
|
+
var j = e(w, r, {
|
|
1411
|
+
root: O,
|
|
1412
|
+
injectHash: R,
|
|
1413
|
+
parentSelectors: [].concat(Ce(i), [x])
|
|
1414
|
+
}), M = V(j, 2), D = M[0], U = M[1];
|
|
1415
|
+
d = $($({}, d), U), p += "".concat(x).concat(D);
|
|
1416
|
+
} else {
|
|
1417
|
+
let F = function(B, H) {
|
|
1418
|
+
process.env.NODE_ENV !== "production" && (J(w) !== "object" || !(w != null && w[lo])) && [Di, Hi].concat(Ce(b)).forEach(function(ie) {
|
|
1419
|
+
return ie(B, H, {
|
|
1420
|
+
path: c,
|
|
1421
|
+
hashId: s,
|
|
1422
|
+
parentSelectors: i
|
|
1423
|
+
});
|
|
1424
|
+
});
|
|
1425
|
+
var ae = B.replace(/[A-Z]/g, function(ie) {
|
|
1426
|
+
return "-".concat(ie.toLowerCase());
|
|
1427
|
+
}), G = H;
|
|
1428
|
+
!Si[B] && typeof G == "number" && G !== 0 && (G = "".concat(G, "px")), B === "animationName" && H !== null && H !== void 0 && H._keyframe && (S(H), G = H.getName(s)), p += "".concat(ae, ":").concat(G, ";");
|
|
1429
|
+
};
|
|
1430
|
+
var X, z = (X = w == null ? void 0 : w.value) !== null && X !== void 0 ? X : w;
|
|
1431
|
+
J(w) === "object" && w !== null && w !== void 0 && w[uo] && Array.isArray(z) ? z.forEach(function(B) {
|
|
1432
|
+
F(L, B);
|
|
1433
|
+
}) : F(L, z);
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
}), !o)
|
|
1438
|
+
p = "{".concat(p, "}");
|
|
1439
|
+
else if (l && qa()) {
|
|
1440
|
+
var A = l.split(","), T = A[A.length - 1].trim();
|
|
1441
|
+
p = "@layer ".concat(T, " {").concat(p, "}"), A.length > 1 && (p = "@layer ".concat(l, "{%%%:%}").concat(p));
|
|
1442
|
+
}
|
|
1443
|
+
return [p, d];
|
|
1444
|
+
};
|
|
1445
|
+
function Xi(e, t) {
|
|
1446
|
+
return Dr("".concat(e.join("%")).concat(t));
|
|
1447
|
+
}
|
|
1448
|
+
function Gi() {
|
|
1449
|
+
return null;
|
|
1450
|
+
}
|
|
1451
|
+
function br(e, t) {
|
|
1452
|
+
var r = e.token, n = e.path, o = e.hashId, a = e.layer, i = e.nonce, s = e.clientOnly, l = e.order, c = l === void 0 ? 0 : l, f = v.useContext(Hr), u = f.autoClear, g = f.mock, h = f.defaultCache, b = f.hashPriority, p = f.container, d = f.ssrInline, S = f.transformers, m = f.linters, P = f.cache, A = r._tokenKey, T = [A].concat(Ce(n)), C = vn;
|
|
1453
|
+
process.env.NODE_ENV !== "production" && g !== void 0 && (C = g === "client");
|
|
1454
|
+
var y = eo(
|
|
1455
|
+
"style",
|
|
1456
|
+
T,
|
|
1457
|
+
// Create cache if needed
|
|
1458
|
+
function() {
|
|
1459
|
+
var x = T.join("|");
|
|
1460
|
+
if (zi(x)) {
|
|
1461
|
+
var O = Bi(x), j = V(O, 2), M = j[0], D = j[1];
|
|
1462
|
+
if (M)
|
|
1463
|
+
return [M, A, D, {}, s, c];
|
|
1464
|
+
}
|
|
1465
|
+
var U = t(), X = Ui(U, {
|
|
1466
|
+
hashId: o,
|
|
1467
|
+
hashPriority: b,
|
|
1468
|
+
layer: a,
|
|
1469
|
+
path: n.join("-"),
|
|
1470
|
+
transformers: S,
|
|
1471
|
+
linters: m
|
|
1472
|
+
}), z = V(X, 2), F = z[0], B = z[1], H = pn(F), ae = Xi(T, H);
|
|
1473
|
+
return [H, A, ae, B, s, c];
|
|
1474
|
+
},
|
|
1475
|
+
// Remove cache if no need
|
|
1476
|
+
function(x, O) {
|
|
1477
|
+
var j = V(x, 3), M = j[2];
|
|
1478
|
+
(O || u) && vn && Kn(M, {
|
|
1479
|
+
mark: Fe
|
|
1480
|
+
});
|
|
1481
|
+
},
|
|
1482
|
+
// Effect: Inject style here
|
|
1483
|
+
function(x) {
|
|
1484
|
+
var O = V(x, 4), j = O[0];
|
|
1485
|
+
O[1];
|
|
1486
|
+
var M = O[2], D = O[3];
|
|
1487
|
+
if (C && j !== so) {
|
|
1488
|
+
var U = {
|
|
1489
|
+
mark: Fe,
|
|
1490
|
+
prepend: "queue",
|
|
1491
|
+
attachTo: p,
|
|
1492
|
+
priority: c
|
|
1493
|
+
}, X = typeof i == "function" ? i() : i;
|
|
1494
|
+
X && (U.csp = {
|
|
1495
|
+
nonce: X
|
|
1496
|
+
});
|
|
1497
|
+
var z = Nt(j, M, U);
|
|
1498
|
+
z[Ke] = P.instanceId, z.setAttribute(fr, A), process.env.NODE_ENV !== "production" && z.setAttribute(La, T.join("|")), Object.keys(D).forEach(function(F) {
|
|
1499
|
+
Nt(pn(D[F]), "_effect-".concat(F), U);
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
), k = V(y, 3), L = k[0], w = k[1], R = k[2];
|
|
1504
|
+
return function(x) {
|
|
1505
|
+
var O;
|
|
1506
|
+
if (!d || C || !h)
|
|
1507
|
+
O = /* @__PURE__ */ v.createElement(Gi, null);
|
|
1508
|
+
else {
|
|
1509
|
+
var j;
|
|
1510
|
+
O = /* @__PURE__ */ v.createElement("style", $t({}, (j = {}, I(j, fr, w), I(j, Fe, R), j), {
|
|
1511
|
+
dangerouslySetInnerHTML: {
|
|
1512
|
+
__html: L
|
|
1513
|
+
}
|
|
1514
|
+
}));
|
|
1515
|
+
}
|
|
1516
|
+
return /* @__PURE__ */ v.createElement(v.Fragment, null, O, x);
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
var nt = /* @__PURE__ */ function() {
|
|
1520
|
+
function e(t, r) {
|
|
1521
|
+
et(this, e), I(this, "name", void 0), I(this, "style", void 0), I(this, "_keyframe", !0), this.name = t, this.style = r;
|
|
1522
|
+
}
|
|
1523
|
+
return tt(e, [{
|
|
1524
|
+
key: "getName",
|
|
1525
|
+
value: function() {
|
|
1526
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1527
|
+
return r ? "".concat(r, "-").concat(this.name) : this.name;
|
|
1528
|
+
}
|
|
1529
|
+
}]), e;
|
|
1530
|
+
}();
|
|
1531
|
+
function Ge(e) {
|
|
1532
|
+
return e.notSplit = !0, e;
|
|
1533
|
+
}
|
|
1534
|
+
Ge(["borderTop", "borderBottom"]), Ge(["borderTop"]), Ge(["borderBottom"]), Ge(["borderLeft", "borderRight"]), Ge(["borderLeft"]), Ge(["borderRight"]);
|
|
1535
|
+
var Yi = /* @__PURE__ */ _r({});
|
|
1536
|
+
const Ki = Yi;
|
|
1537
|
+
function qi(e) {
|
|
1538
|
+
return qn(e) || zn(e) || Ir(e) || Qn();
|
|
1539
|
+
}
|
|
1540
|
+
function yr(e, t) {
|
|
1541
|
+
for (var r = e, n = 0; n < t.length; n += 1) {
|
|
1542
|
+
if (r == null)
|
|
1543
|
+
return;
|
|
1544
|
+
r = r[t[n]];
|
|
1545
|
+
}
|
|
1546
|
+
return r;
|
|
1547
|
+
}
|
|
1548
|
+
function fo(e, t, r, n) {
|
|
1549
|
+
if (!t.length)
|
|
1550
|
+
return r;
|
|
1551
|
+
var o = qi(t), a = o[0], i = o.slice(1), s;
|
|
1552
|
+
return !e && typeof a == "number" ? s = [] : Array.isArray(e) ? s = Ce(e) : s = $({}, e), n && r === void 0 && i.length === 1 ? delete s[a][i[0]] : s[a] = fo(s[a], i, r, n), s;
|
|
1553
|
+
}
|
|
1554
|
+
function Kt(e, t, r) {
|
|
1555
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
1556
|
+
return t.length && n && r === void 0 && !yr(e, t.slice(0, -1)) ? e : fo(e, t, r, n);
|
|
1557
|
+
}
|
|
1558
|
+
function Qi(e) {
|
|
1559
|
+
return J(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
1560
|
+
}
|
|
1561
|
+
function hn(e) {
|
|
1562
|
+
return Array.isArray(e) ? [] : {};
|
|
1563
|
+
}
|
|
1564
|
+
var Zi = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
|
1565
|
+
function Ji() {
|
|
1566
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1567
|
+
t[r] = arguments[r];
|
|
1568
|
+
var n = hn(t[0]);
|
|
1569
|
+
return t.forEach(function(o) {
|
|
1570
|
+
function a(i, s) {
|
|
1571
|
+
var l = new Set(s), c = yr(o, i), f = Array.isArray(c);
|
|
1572
|
+
if (f || Qi(c)) {
|
|
1573
|
+
if (!l.has(c)) {
|
|
1574
|
+
l.add(c);
|
|
1575
|
+
var u = yr(n, i);
|
|
1576
|
+
f ? n = Kt(n, i, []) : (!u || J(u) !== "object") && (n = Kt(n, i, hn(c))), Zi(c).forEach(function(g) {
|
|
1577
|
+
a([].concat(Ce(i), [g]), l);
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
} else
|
|
1581
|
+
n = Kt(n, i, c);
|
|
1582
|
+
}
|
|
1583
|
+
a([]);
|
|
1584
|
+
}), n;
|
|
1585
|
+
}
|
|
1586
|
+
function go() {
|
|
1587
|
+
}
|
|
1588
|
+
let ke = null;
|
|
1589
|
+
function es() {
|
|
1590
|
+
ke = null, jn();
|
|
1591
|
+
}
|
|
1592
|
+
let Wr = go;
|
|
1593
|
+
process.env.NODE_ENV !== "production" && (Wr = (e, t, r) => {
|
|
1594
|
+
We(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && es();
|
|
1595
|
+
});
|
|
1596
|
+
const vo = /* @__PURE__ */ v.createContext({}), po = process.env.NODE_ENV !== "production" ? (e) => {
|
|
1597
|
+
const {
|
|
1598
|
+
strict: t
|
|
1599
|
+
} = v.useContext(vo), r = (n, o, a) => {
|
|
1600
|
+
if (!n)
|
|
1601
|
+
if (t === !1 && o === "deprecated") {
|
|
1602
|
+
const i = ke;
|
|
1603
|
+
ke || (ke = {}), ke[e] = ke[e] || [], ke[e].includes(a || "") || ke[e].push(a || ""), i || console.warn("[antd] There exists deprecated usage in your code:", ke);
|
|
1604
|
+
} else
|
|
1605
|
+
process.env.NODE_ENV !== "production" && Wr(n, e, a);
|
|
1606
|
+
};
|
|
1607
|
+
return r.deprecated = (n, o, a, i) => {
|
|
1608
|
+
r(n, "deprecated", `\`${o}\` is deprecated. Please use \`${a}\` instead.${i ? ` ${i}` : ""}`);
|
|
1609
|
+
}, r;
|
|
1610
|
+
} : () => {
|
|
1611
|
+
const e = () => {
|
|
1612
|
+
};
|
|
1613
|
+
return e.deprecated = go, e;
|
|
1614
|
+
}, Ft = Wr, ts = /* @__PURE__ */ _r(void 0), rs = {
|
|
1615
|
+
// Options.jsx
|
|
1616
|
+
items_per_page: "/ page",
|
|
1617
|
+
jump_to: "Go to",
|
|
1618
|
+
jump_to_confirm: "confirm",
|
|
1619
|
+
page: "Page",
|
|
1620
|
+
// Pagination.jsx
|
|
1621
|
+
prev_page: "Previous Page",
|
|
1622
|
+
next_page: "Next Page",
|
|
1623
|
+
prev_5: "Previous 5 Pages",
|
|
1624
|
+
next_5: "Next 5 Pages",
|
|
1625
|
+
prev_3: "Previous 3 Pages",
|
|
1626
|
+
next_3: "Next 3 Pages",
|
|
1627
|
+
page_size: "Page Size"
|
|
1628
|
+
};
|
|
1629
|
+
var ns = {
|
|
1630
|
+
locale: "en_US",
|
|
1631
|
+
today: "Today",
|
|
1632
|
+
now: "Now",
|
|
1633
|
+
backToToday: "Back to today",
|
|
1634
|
+
ok: "OK",
|
|
1635
|
+
clear: "Clear",
|
|
1636
|
+
month: "Month",
|
|
1637
|
+
year: "Year",
|
|
1638
|
+
timeSelect: "select time",
|
|
1639
|
+
dateSelect: "select date",
|
|
1640
|
+
weekSelect: "Choose a week",
|
|
1641
|
+
monthSelect: "Choose a month",
|
|
1642
|
+
yearSelect: "Choose a year",
|
|
1643
|
+
decadeSelect: "Choose a decade",
|
|
1644
|
+
yearFormat: "YYYY",
|
|
1645
|
+
dateFormat: "M/D/YYYY",
|
|
1646
|
+
dayFormat: "D",
|
|
1647
|
+
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
1648
|
+
monthBeforeYear: !0,
|
|
1649
|
+
previousMonth: "Previous month (PageUp)",
|
|
1650
|
+
nextMonth: "Next month (PageDown)",
|
|
1651
|
+
previousYear: "Last year (Control + left)",
|
|
1652
|
+
nextYear: "Next year (Control + right)",
|
|
1653
|
+
previousDecade: "Last decade",
|
|
1654
|
+
nextDecade: "Next decade",
|
|
1655
|
+
previousCentury: "Last century",
|
|
1656
|
+
nextCentury: "Next century"
|
|
1657
|
+
};
|
|
1658
|
+
const os = {
|
|
1659
|
+
placeholder: "Select time",
|
|
1660
|
+
rangePlaceholder: ["Start time", "End time"]
|
|
1661
|
+
}, ho = os, as = {
|
|
1662
|
+
lang: Object.assign({
|
|
1663
|
+
placeholder: "Select date",
|
|
1664
|
+
yearPlaceholder: "Select year",
|
|
1665
|
+
quarterPlaceholder: "Select quarter",
|
|
1666
|
+
monthPlaceholder: "Select month",
|
|
1667
|
+
weekPlaceholder: "Select week",
|
|
1668
|
+
rangePlaceholder: ["Start date", "End date"],
|
|
1669
|
+
rangeYearPlaceholder: ["Start year", "End year"],
|
|
1670
|
+
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
|
|
1671
|
+
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
1672
|
+
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
1673
|
+
}, ns),
|
|
1674
|
+
timePickerLocale: Object.assign({}, ho)
|
|
1675
|
+
}, mn = as, se = "${label} is not a valid ${type}", is = {
|
|
1676
|
+
locale: "en",
|
|
1677
|
+
Pagination: rs,
|
|
1678
|
+
DatePicker: mn,
|
|
1679
|
+
TimePicker: ho,
|
|
1680
|
+
Calendar: mn,
|
|
1681
|
+
global: {
|
|
1682
|
+
placeholder: "Please select"
|
|
1683
|
+
},
|
|
1684
|
+
Table: {
|
|
1685
|
+
filterTitle: "Filter menu",
|
|
1686
|
+
filterConfirm: "OK",
|
|
1687
|
+
filterReset: "Reset",
|
|
1688
|
+
filterEmptyText: "No filters",
|
|
1689
|
+
filterCheckall: "Select all items",
|
|
1690
|
+
filterSearchPlaceholder: "Search in filters",
|
|
1691
|
+
emptyText: "No data",
|
|
1692
|
+
selectAll: "Select current page",
|
|
1693
|
+
selectInvert: "Invert current page",
|
|
1694
|
+
selectNone: "Clear all data",
|
|
1695
|
+
selectionAll: "Select all data",
|
|
1696
|
+
sortTitle: "Sort",
|
|
1697
|
+
expand: "Expand row",
|
|
1698
|
+
collapse: "Collapse row",
|
|
1699
|
+
triggerDesc: "Click to sort descending",
|
|
1700
|
+
triggerAsc: "Click to sort ascending",
|
|
1701
|
+
cancelSort: "Click to cancel sorting"
|
|
1702
|
+
},
|
|
1703
|
+
Tour: {
|
|
1704
|
+
Next: "Next",
|
|
1705
|
+
Previous: "Previous",
|
|
1706
|
+
Finish: "Finish"
|
|
1707
|
+
},
|
|
1708
|
+
Modal: {
|
|
1709
|
+
okText: "OK",
|
|
1710
|
+
cancelText: "Cancel",
|
|
1711
|
+
justOkText: "OK"
|
|
1712
|
+
},
|
|
1713
|
+
Popconfirm: {
|
|
1714
|
+
okText: "OK",
|
|
1715
|
+
cancelText: "Cancel"
|
|
1716
|
+
},
|
|
1717
|
+
Transfer: {
|
|
1718
|
+
titles: ["", ""],
|
|
1719
|
+
searchPlaceholder: "Search here",
|
|
1720
|
+
itemUnit: "item",
|
|
1721
|
+
itemsUnit: "items",
|
|
1722
|
+
remove: "Remove",
|
|
1723
|
+
selectCurrent: "Select current page",
|
|
1724
|
+
removeCurrent: "Remove current page",
|
|
1725
|
+
selectAll: "Select all data",
|
|
1726
|
+
removeAll: "Remove all data",
|
|
1727
|
+
selectInvert: "Invert current page"
|
|
1728
|
+
},
|
|
1729
|
+
Upload: {
|
|
1730
|
+
uploading: "Uploading...",
|
|
1731
|
+
removeFile: "Remove file",
|
|
1732
|
+
uploadError: "Upload error",
|
|
1733
|
+
previewFile: "Preview file",
|
|
1734
|
+
downloadFile: "Download file"
|
|
1735
|
+
},
|
|
1736
|
+
Empty: {
|
|
1737
|
+
description: "No data"
|
|
1738
|
+
},
|
|
1739
|
+
Icon: {
|
|
1740
|
+
icon: "icon"
|
|
1741
|
+
},
|
|
1742
|
+
Text: {
|
|
1743
|
+
edit: "Edit",
|
|
1744
|
+
copy: "Copy",
|
|
1745
|
+
copied: "Copied",
|
|
1746
|
+
expand: "Expand"
|
|
1747
|
+
},
|
|
1748
|
+
PageHeader: {
|
|
1749
|
+
back: "Back"
|
|
1750
|
+
},
|
|
1751
|
+
Form: {
|
|
1752
|
+
optional: "(optional)",
|
|
1753
|
+
defaultValidateMessages: {
|
|
1754
|
+
default: "Field validation error for ${label}",
|
|
1755
|
+
required: "Please enter ${label}",
|
|
1756
|
+
enum: "${label} must be one of [${enum}]",
|
|
1757
|
+
whitespace: "${label} cannot be a blank character",
|
|
1758
|
+
date: {
|
|
1759
|
+
format: "${label} date format is invalid",
|
|
1760
|
+
parse: "${label} cannot be converted to a date",
|
|
1761
|
+
invalid: "${label} is an invalid date"
|
|
1762
|
+
},
|
|
1763
|
+
types: {
|
|
1764
|
+
string: se,
|
|
1765
|
+
method: se,
|
|
1766
|
+
array: se,
|
|
1767
|
+
object: se,
|
|
1768
|
+
number: se,
|
|
1769
|
+
date: se,
|
|
1770
|
+
boolean: se,
|
|
1771
|
+
integer: se,
|
|
1772
|
+
float: se,
|
|
1773
|
+
regexp: se,
|
|
1774
|
+
email: se,
|
|
1775
|
+
url: se,
|
|
1776
|
+
hex: se
|
|
1777
|
+
},
|
|
1778
|
+
string: {
|
|
1779
|
+
len: "${label} must be ${len} characters",
|
|
1780
|
+
min: "${label} must be at least ${min} characters",
|
|
1781
|
+
max: "${label} must be up to ${max} characters",
|
|
1782
|
+
range: "${label} must be between ${min}-${max} characters"
|
|
1783
|
+
},
|
|
1784
|
+
number: {
|
|
1785
|
+
len: "${label} must be equal to ${len}",
|
|
1786
|
+
min: "${label} must be minimum ${min}",
|
|
1787
|
+
max: "${label} must be maximum ${max}",
|
|
1788
|
+
range: "${label} must be between ${min}-${max}"
|
|
1789
|
+
},
|
|
1790
|
+
array: {
|
|
1791
|
+
len: "Must be ${len} ${label}",
|
|
1792
|
+
min: "At least ${min} ${label}",
|
|
1793
|
+
max: "At most ${max} ${label}",
|
|
1794
|
+
range: "The amount of ${label} must be between ${min}-${max}"
|
|
1795
|
+
},
|
|
1796
|
+
pattern: {
|
|
1797
|
+
mismatch: "${label} does not match the pattern ${pattern}"
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
Image: {
|
|
1802
|
+
preview: "Preview"
|
|
1803
|
+
},
|
|
1804
|
+
QRCode: {
|
|
1805
|
+
expired: "QR code expired",
|
|
1806
|
+
refresh: "Refresh"
|
|
1807
|
+
},
|
|
1808
|
+
ColorPicker: {
|
|
1809
|
+
presetEmpty: "Empty"
|
|
1810
|
+
}
|
|
1811
|
+
}, zt = is;
|
|
1812
|
+
Object.assign({}, zt.Modal);
|
|
1813
|
+
let kt = [];
|
|
1814
|
+
const bn = () => kt.reduce((e, t) => Object.assign(Object.assign({}, e), t), zt.Modal);
|
|
1815
|
+
function ss(e) {
|
|
1816
|
+
if (e) {
|
|
1817
|
+
const t = Object.assign({}, e);
|
|
1818
|
+
return kt.push(t), bn(), () => {
|
|
1819
|
+
kt = kt.filter((r) => r !== t), bn();
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
Object.assign({}, zt.Modal);
|
|
1823
|
+
}
|
|
1824
|
+
const cs = /* @__PURE__ */ _r(void 0), mo = cs, bo = "internalMark", yo = (e) => {
|
|
1825
|
+
const {
|
|
1826
|
+
locale: t = {},
|
|
1827
|
+
children: r,
|
|
1828
|
+
_ANT_MARK__: n
|
|
1829
|
+
} = e;
|
|
1830
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1831
|
+
const a = po("LocaleProvider");
|
|
1832
|
+
process.env.NODE_ENV !== "production" && a(n === bo, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
|
|
1833
|
+
}
|
|
1834
|
+
v.useEffect(() => ss(t && t.Modal), [t]);
|
|
1835
|
+
const o = v.useMemo(() => Object.assign(Object.assign({}, t), {
|
|
1836
|
+
exist: !0
|
|
1837
|
+
}), [t]);
|
|
1838
|
+
return /* @__PURE__ */ v.createElement(mo.Provider, {
|
|
1839
|
+
value: o
|
|
1840
|
+
}, r);
|
|
1841
|
+
};
|
|
1842
|
+
process.env.NODE_ENV !== "production" && (yo.displayName = "LocaleProvider");
|
|
1843
|
+
const ls = yo;
|
|
1844
|
+
function re(e, t) {
|
|
1845
|
+
us(e) && (e = "100%");
|
|
1846
|
+
var r = fs(e);
|
|
1847
|
+
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
1848
|
+
}
|
|
1849
|
+
function ht(e) {
|
|
1850
|
+
return Math.min(1, Math.max(0, e));
|
|
1851
|
+
}
|
|
1852
|
+
function us(e) {
|
|
1853
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
1854
|
+
}
|
|
1855
|
+
function fs(e) {
|
|
1856
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
1857
|
+
}
|
|
1858
|
+
function So(e) {
|
|
1859
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1860
|
+
}
|
|
1861
|
+
function mt(e) {
|
|
1862
|
+
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
1863
|
+
}
|
|
1864
|
+
function He(e) {
|
|
1865
|
+
return e.length === 1 ? "0" + e : String(e);
|
|
1866
|
+
}
|
|
1867
|
+
function ds(e, t, r) {
|
|
1868
|
+
return {
|
|
1869
|
+
r: re(e, 255) * 255,
|
|
1870
|
+
g: re(t, 255) * 255,
|
|
1871
|
+
b: re(r, 255) * 255
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
function yn(e, t, r) {
|
|
1875
|
+
e = re(e, 255), t = re(t, 255), r = re(r, 255);
|
|
1876
|
+
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = 0, s = (n + o) / 2;
|
|
1877
|
+
if (n === o)
|
|
1878
|
+
i = 0, a = 0;
|
|
1879
|
+
else {
|
|
1880
|
+
var l = n - o;
|
|
1881
|
+
switch (i = s > 0.5 ? l / (2 - n - o) : l / (n + o), n) {
|
|
1882
|
+
case e:
|
|
1883
|
+
a = (t - r) / l + (t < r ? 6 : 0);
|
|
1884
|
+
break;
|
|
1885
|
+
case t:
|
|
1886
|
+
a = (r - e) / l + 2;
|
|
1887
|
+
break;
|
|
1888
|
+
case r:
|
|
1889
|
+
a = (e - t) / l + 4;
|
|
1890
|
+
break;
|
|
1891
|
+
}
|
|
1892
|
+
a /= 6;
|
|
1893
|
+
}
|
|
1894
|
+
return { h: a, s: i, l: s };
|
|
1895
|
+
}
|
|
1896
|
+
function qt(e, t, r) {
|
|
1897
|
+
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1898
|
+
}
|
|
1899
|
+
function gs(e, t, r) {
|
|
1900
|
+
var n, o, a;
|
|
1901
|
+
if (e = re(e, 360), t = re(t, 100), r = re(r, 100), t === 0)
|
|
1902
|
+
o = r, a = r, n = r;
|
|
1903
|
+
else {
|
|
1904
|
+
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, s = 2 * r - i;
|
|
1905
|
+
n = qt(s, i, e + 1 / 3), o = qt(s, i, e), a = qt(s, i, e - 1 / 3);
|
|
1906
|
+
}
|
|
1907
|
+
return { r: n * 255, g: o * 255, b: a * 255 };
|
|
1908
|
+
}
|
|
1909
|
+
function Sr(e, t, r) {
|
|
1910
|
+
e = re(e, 255), t = re(t, 255), r = re(r, 255);
|
|
1911
|
+
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = n, s = n - o, l = n === 0 ? 0 : s / n;
|
|
1912
|
+
if (n === o)
|
|
1913
|
+
a = 0;
|
|
1914
|
+
else {
|
|
1915
|
+
switch (n) {
|
|
1916
|
+
case e:
|
|
1917
|
+
a = (t - r) / s + (t < r ? 6 : 0);
|
|
1918
|
+
break;
|
|
1919
|
+
case t:
|
|
1920
|
+
a = (r - e) / s + 2;
|
|
1921
|
+
break;
|
|
1922
|
+
case r:
|
|
1923
|
+
a = (e - t) / s + 4;
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
a /= 6;
|
|
1927
|
+
}
|
|
1928
|
+
return { h: a, s: l, v: i };
|
|
1929
|
+
}
|
|
1930
|
+
function vs(e, t, r) {
|
|
1931
|
+
e = re(e, 360) * 6, t = re(t, 100), r = re(r, 100);
|
|
1932
|
+
var n = Math.floor(e), o = e - n, a = r * (1 - t), i = r * (1 - o * t), s = r * (1 - (1 - o) * t), l = n % 6, c = [r, i, a, a, s, r][l], f = [s, r, r, i, a, a][l], u = [a, a, s, r, r, i][l];
|
|
1933
|
+
return { r: c * 255, g: f * 255, b: u * 255 };
|
|
1934
|
+
}
|
|
1935
|
+
function xr(e, t, r, n) {
|
|
1936
|
+
var o = [
|
|
1937
|
+
He(Math.round(e).toString(16)),
|
|
1938
|
+
He(Math.round(t).toString(16)),
|
|
1939
|
+
He(Math.round(r).toString(16))
|
|
1940
|
+
];
|
|
1941
|
+
return n && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
1942
|
+
}
|
|
1943
|
+
function ps(e, t, r, n, o) {
|
|
1944
|
+
var a = [
|
|
1945
|
+
He(Math.round(e).toString(16)),
|
|
1946
|
+
He(Math.round(t).toString(16)),
|
|
1947
|
+
He(Math.round(r).toString(16)),
|
|
1948
|
+
He(hs(n))
|
|
1949
|
+
];
|
|
1950
|
+
return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
|
|
1951
|
+
}
|
|
1952
|
+
function hs(e) {
|
|
1953
|
+
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1954
|
+
}
|
|
1955
|
+
function Sn(e) {
|
|
1956
|
+
return ce(e) / 255;
|
|
1957
|
+
}
|
|
1958
|
+
function ce(e) {
|
|
1959
|
+
return parseInt(e, 16);
|
|
1960
|
+
}
|
|
1961
|
+
function ms(e) {
|
|
1962
|
+
return {
|
|
1963
|
+
r: e >> 16,
|
|
1964
|
+
g: (e & 65280) >> 8,
|
|
1965
|
+
b: e & 255
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
var Er = {
|
|
1969
|
+
aliceblue: "#f0f8ff",
|
|
1970
|
+
antiquewhite: "#faebd7",
|
|
1971
|
+
aqua: "#00ffff",
|
|
1972
|
+
aquamarine: "#7fffd4",
|
|
1973
|
+
azure: "#f0ffff",
|
|
1974
|
+
beige: "#f5f5dc",
|
|
1975
|
+
bisque: "#ffe4c4",
|
|
1976
|
+
black: "#000000",
|
|
1977
|
+
blanchedalmond: "#ffebcd",
|
|
1978
|
+
blue: "#0000ff",
|
|
1979
|
+
blueviolet: "#8a2be2",
|
|
1980
|
+
brown: "#a52a2a",
|
|
1981
|
+
burlywood: "#deb887",
|
|
1982
|
+
cadetblue: "#5f9ea0",
|
|
1983
|
+
chartreuse: "#7fff00",
|
|
1984
|
+
chocolate: "#d2691e",
|
|
1985
|
+
coral: "#ff7f50",
|
|
1986
|
+
cornflowerblue: "#6495ed",
|
|
1987
|
+
cornsilk: "#fff8dc",
|
|
1988
|
+
crimson: "#dc143c",
|
|
1989
|
+
cyan: "#00ffff",
|
|
1990
|
+
darkblue: "#00008b",
|
|
1991
|
+
darkcyan: "#008b8b",
|
|
1992
|
+
darkgoldenrod: "#b8860b",
|
|
1993
|
+
darkgray: "#a9a9a9",
|
|
1994
|
+
darkgreen: "#006400",
|
|
1995
|
+
darkgrey: "#a9a9a9",
|
|
1996
|
+
darkkhaki: "#bdb76b",
|
|
1997
|
+
darkmagenta: "#8b008b",
|
|
1998
|
+
darkolivegreen: "#556b2f",
|
|
1999
|
+
darkorange: "#ff8c00",
|
|
2000
|
+
darkorchid: "#9932cc",
|
|
2001
|
+
darkred: "#8b0000",
|
|
2002
|
+
darksalmon: "#e9967a",
|
|
2003
|
+
darkseagreen: "#8fbc8f",
|
|
2004
|
+
darkslateblue: "#483d8b",
|
|
2005
|
+
darkslategray: "#2f4f4f",
|
|
2006
|
+
darkslategrey: "#2f4f4f",
|
|
2007
|
+
darkturquoise: "#00ced1",
|
|
2008
|
+
darkviolet: "#9400d3",
|
|
2009
|
+
deeppink: "#ff1493",
|
|
2010
|
+
deepskyblue: "#00bfff",
|
|
2011
|
+
dimgray: "#696969",
|
|
2012
|
+
dimgrey: "#696969",
|
|
2013
|
+
dodgerblue: "#1e90ff",
|
|
2014
|
+
firebrick: "#b22222",
|
|
2015
|
+
floralwhite: "#fffaf0",
|
|
2016
|
+
forestgreen: "#228b22",
|
|
2017
|
+
fuchsia: "#ff00ff",
|
|
2018
|
+
gainsboro: "#dcdcdc",
|
|
2019
|
+
ghostwhite: "#f8f8ff",
|
|
2020
|
+
goldenrod: "#daa520",
|
|
2021
|
+
gold: "#ffd700",
|
|
2022
|
+
gray: "#808080",
|
|
2023
|
+
green: "#008000",
|
|
2024
|
+
greenyellow: "#adff2f",
|
|
2025
|
+
grey: "#808080",
|
|
2026
|
+
honeydew: "#f0fff0",
|
|
2027
|
+
hotpink: "#ff69b4",
|
|
2028
|
+
indianred: "#cd5c5c",
|
|
2029
|
+
indigo: "#4b0082",
|
|
2030
|
+
ivory: "#fffff0",
|
|
2031
|
+
khaki: "#f0e68c",
|
|
2032
|
+
lavenderblush: "#fff0f5",
|
|
2033
|
+
lavender: "#e6e6fa",
|
|
2034
|
+
lawngreen: "#7cfc00",
|
|
2035
|
+
lemonchiffon: "#fffacd",
|
|
2036
|
+
lightblue: "#add8e6",
|
|
2037
|
+
lightcoral: "#f08080",
|
|
2038
|
+
lightcyan: "#e0ffff",
|
|
2039
|
+
lightgoldenrodyellow: "#fafad2",
|
|
2040
|
+
lightgray: "#d3d3d3",
|
|
2041
|
+
lightgreen: "#90ee90",
|
|
2042
|
+
lightgrey: "#d3d3d3",
|
|
2043
|
+
lightpink: "#ffb6c1",
|
|
2044
|
+
lightsalmon: "#ffa07a",
|
|
2045
|
+
lightseagreen: "#20b2aa",
|
|
2046
|
+
lightskyblue: "#87cefa",
|
|
2047
|
+
lightslategray: "#778899",
|
|
2048
|
+
lightslategrey: "#778899",
|
|
2049
|
+
lightsteelblue: "#b0c4de",
|
|
2050
|
+
lightyellow: "#ffffe0",
|
|
2051
|
+
lime: "#00ff00",
|
|
2052
|
+
limegreen: "#32cd32",
|
|
2053
|
+
linen: "#faf0e6",
|
|
2054
|
+
magenta: "#ff00ff",
|
|
2055
|
+
maroon: "#800000",
|
|
2056
|
+
mediumaquamarine: "#66cdaa",
|
|
2057
|
+
mediumblue: "#0000cd",
|
|
2058
|
+
mediumorchid: "#ba55d3",
|
|
2059
|
+
mediumpurple: "#9370db",
|
|
2060
|
+
mediumseagreen: "#3cb371",
|
|
2061
|
+
mediumslateblue: "#7b68ee",
|
|
2062
|
+
mediumspringgreen: "#00fa9a",
|
|
2063
|
+
mediumturquoise: "#48d1cc",
|
|
2064
|
+
mediumvioletred: "#c71585",
|
|
2065
|
+
midnightblue: "#191970",
|
|
2066
|
+
mintcream: "#f5fffa",
|
|
2067
|
+
mistyrose: "#ffe4e1",
|
|
2068
|
+
moccasin: "#ffe4b5",
|
|
2069
|
+
navajowhite: "#ffdead",
|
|
2070
|
+
navy: "#000080",
|
|
2071
|
+
oldlace: "#fdf5e6",
|
|
2072
|
+
olive: "#808000",
|
|
2073
|
+
olivedrab: "#6b8e23",
|
|
2074
|
+
orange: "#ffa500",
|
|
2075
|
+
orangered: "#ff4500",
|
|
2076
|
+
orchid: "#da70d6",
|
|
2077
|
+
palegoldenrod: "#eee8aa",
|
|
2078
|
+
palegreen: "#98fb98",
|
|
2079
|
+
paleturquoise: "#afeeee",
|
|
2080
|
+
palevioletred: "#db7093",
|
|
2081
|
+
papayawhip: "#ffefd5",
|
|
2082
|
+
peachpuff: "#ffdab9",
|
|
2083
|
+
peru: "#cd853f",
|
|
2084
|
+
pink: "#ffc0cb",
|
|
2085
|
+
plum: "#dda0dd",
|
|
2086
|
+
powderblue: "#b0e0e6",
|
|
2087
|
+
purple: "#800080",
|
|
2088
|
+
rebeccapurple: "#663399",
|
|
2089
|
+
red: "#ff0000",
|
|
2090
|
+
rosybrown: "#bc8f8f",
|
|
2091
|
+
royalblue: "#4169e1",
|
|
2092
|
+
saddlebrown: "#8b4513",
|
|
2093
|
+
salmon: "#fa8072",
|
|
2094
|
+
sandybrown: "#f4a460",
|
|
2095
|
+
seagreen: "#2e8b57",
|
|
2096
|
+
seashell: "#fff5ee",
|
|
2097
|
+
sienna: "#a0522d",
|
|
2098
|
+
silver: "#c0c0c0",
|
|
2099
|
+
skyblue: "#87ceeb",
|
|
2100
|
+
slateblue: "#6a5acd",
|
|
2101
|
+
slategray: "#708090",
|
|
2102
|
+
slategrey: "#708090",
|
|
2103
|
+
snow: "#fffafa",
|
|
2104
|
+
springgreen: "#00ff7f",
|
|
2105
|
+
steelblue: "#4682b4",
|
|
2106
|
+
tan: "#d2b48c",
|
|
2107
|
+
teal: "#008080",
|
|
2108
|
+
thistle: "#d8bfd8",
|
|
2109
|
+
tomato: "#ff6347",
|
|
2110
|
+
turquoise: "#40e0d0",
|
|
2111
|
+
violet: "#ee82ee",
|
|
2112
|
+
wheat: "#f5deb3",
|
|
2113
|
+
white: "#ffffff",
|
|
2114
|
+
whitesmoke: "#f5f5f5",
|
|
2115
|
+
yellow: "#ffff00",
|
|
2116
|
+
yellowgreen: "#9acd32"
|
|
2117
|
+
};
|
|
2118
|
+
function Ye(e) {
|
|
2119
|
+
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, o = null, a = null, i = !1, s = !1;
|
|
2120
|
+
return typeof e == "string" && (e = Ss(e)), typeof e == "object" && (Pe(e.r) && Pe(e.g) && Pe(e.b) ? (t = ds(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Pe(e.h) && Pe(e.s) && Pe(e.v) ? (n = mt(e.s), o = mt(e.v), t = vs(e.h, n, o), i = !0, s = "hsv") : Pe(e.h) && Pe(e.s) && Pe(e.l) && (n = mt(e.s), a = mt(e.l), t = gs(e.h, n, a), i = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = So(r), {
|
|
2121
|
+
ok: i,
|
|
2122
|
+
format: e.format || s,
|
|
2123
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
2124
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
2125
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
2126
|
+
a: r
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
var bs = "[-\\+]?\\d+%?", ys = "[-\\+]?\\d*\\.\\d+%?", Ne = "(?:".concat(ys, ")|(?:").concat(bs, ")"), Qt = "[\\s|\\(]+(".concat(Ne, ")[,|\\s]+(").concat(Ne, ")[,|\\s]+(").concat(Ne, ")\\s*\\)?"), Zt = "[\\s|\\(]+(".concat(Ne, ")[,|\\s]+(").concat(Ne, ")[,|\\s]+(").concat(Ne, ")[,|\\s]+(").concat(Ne, ")\\s*\\)?"), de = {
|
|
2130
|
+
CSS_UNIT: new RegExp(Ne),
|
|
2131
|
+
rgb: new RegExp("rgb" + Qt),
|
|
2132
|
+
rgba: new RegExp("rgba" + Zt),
|
|
2133
|
+
hsl: new RegExp("hsl" + Qt),
|
|
2134
|
+
hsla: new RegExp("hsla" + Zt),
|
|
2135
|
+
hsv: new RegExp("hsv" + Qt),
|
|
2136
|
+
hsva: new RegExp("hsva" + Zt),
|
|
2137
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2138
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
2139
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2140
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
2141
|
+
};
|
|
2142
|
+
function Ss(e) {
|
|
2143
|
+
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
2144
|
+
return !1;
|
|
2145
|
+
var t = !1;
|
|
2146
|
+
if (Er[e])
|
|
2147
|
+
e = Er[e], t = !0;
|
|
2148
|
+
else if (e === "transparent")
|
|
2149
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
2150
|
+
var r = de.rgb.exec(e);
|
|
2151
|
+
return r ? { r: r[1], g: r[2], b: r[3] } : (r = de.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = de.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = de.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = de.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = de.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = de.hex8.exec(e), r ? {
|
|
2152
|
+
r: ce(r[1]),
|
|
2153
|
+
g: ce(r[2]),
|
|
2154
|
+
b: ce(r[3]),
|
|
2155
|
+
a: Sn(r[4]),
|
|
2156
|
+
format: t ? "name" : "hex8"
|
|
2157
|
+
} : (r = de.hex6.exec(e), r ? {
|
|
2158
|
+
r: ce(r[1]),
|
|
2159
|
+
g: ce(r[2]),
|
|
2160
|
+
b: ce(r[3]),
|
|
2161
|
+
format: t ? "name" : "hex"
|
|
2162
|
+
} : (r = de.hex4.exec(e), r ? {
|
|
2163
|
+
r: ce(r[1] + r[1]),
|
|
2164
|
+
g: ce(r[2] + r[2]),
|
|
2165
|
+
b: ce(r[3] + r[3]),
|
|
2166
|
+
a: Sn(r[4] + r[4]),
|
|
2167
|
+
format: t ? "name" : "hex8"
|
|
2168
|
+
} : (r = de.hex3.exec(e), r ? {
|
|
2169
|
+
r: ce(r[1] + r[1]),
|
|
2170
|
+
g: ce(r[2] + r[2]),
|
|
2171
|
+
b: ce(r[3] + r[3]),
|
|
2172
|
+
format: t ? "name" : "hex"
|
|
2173
|
+
} : !1)))))))));
|
|
2174
|
+
}
|
|
2175
|
+
function Pe(e) {
|
|
2176
|
+
return !!de.CSS_UNIT.exec(String(e));
|
|
2177
|
+
}
|
|
2178
|
+
var le = (
|
|
2179
|
+
/** @class */
|
|
2180
|
+
function() {
|
|
2181
|
+
function e(t, r) {
|
|
2182
|
+
t === void 0 && (t = ""), r === void 0 && (r = {});
|
|
2183
|
+
var n;
|
|
2184
|
+
if (t instanceof e)
|
|
2185
|
+
return t;
|
|
2186
|
+
typeof t == "number" && (t = ms(t)), this.originalInput = t;
|
|
2187
|
+
var o = Ye(t);
|
|
2188
|
+
this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = r.format) !== null && n !== void 0 ? n : o.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
|
|
2189
|
+
}
|
|
2190
|
+
return e.prototype.isDark = function() {
|
|
2191
|
+
return this.getBrightness() < 128;
|
|
2192
|
+
}, e.prototype.isLight = function() {
|
|
2193
|
+
return !this.isDark();
|
|
2194
|
+
}, e.prototype.getBrightness = function() {
|
|
2195
|
+
var t = this.toRgb();
|
|
2196
|
+
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
2197
|
+
}, e.prototype.getLuminance = function() {
|
|
2198
|
+
var t = this.toRgb(), r, n, o, a = t.r / 255, i = t.g / 255, s = t.b / 255;
|
|
2199
|
+
return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), s <= 0.03928 ? o = s / 12.92 : o = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * n + 0.0722 * o;
|
|
2200
|
+
}, e.prototype.getAlpha = function() {
|
|
2201
|
+
return this.a;
|
|
2202
|
+
}, e.prototype.setAlpha = function(t) {
|
|
2203
|
+
return this.a = So(t), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
2204
|
+
}, e.prototype.isMonochrome = function() {
|
|
2205
|
+
var t = this.toHsl().s;
|
|
2206
|
+
return t === 0;
|
|
2207
|
+
}, e.prototype.toHsv = function() {
|
|
2208
|
+
var t = Sr(this.r, this.g, this.b);
|
|
2209
|
+
return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
|
|
2210
|
+
}, e.prototype.toHsvString = function() {
|
|
2211
|
+
var t = Sr(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
|
|
2212
|
+
return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2213
|
+
}, e.prototype.toHsl = function() {
|
|
2214
|
+
var t = yn(this.r, this.g, this.b);
|
|
2215
|
+
return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
|
|
2216
|
+
}, e.prototype.toHslString = function() {
|
|
2217
|
+
var t = yn(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
|
|
2218
|
+
return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2219
|
+
}, e.prototype.toHex = function(t) {
|
|
2220
|
+
return t === void 0 && (t = !1), xr(this.r, this.g, this.b, t);
|
|
2221
|
+
}, e.prototype.toHexString = function(t) {
|
|
2222
|
+
return t === void 0 && (t = !1), "#" + this.toHex(t);
|
|
2223
|
+
}, e.prototype.toHex8 = function(t) {
|
|
2224
|
+
return t === void 0 && (t = !1), ps(this.r, this.g, this.b, this.a, t);
|
|
2225
|
+
}, e.prototype.toHex8String = function(t) {
|
|
2226
|
+
return t === void 0 && (t = !1), "#" + this.toHex8(t);
|
|
2227
|
+
}, e.prototype.toHexShortString = function(t) {
|
|
2228
|
+
return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
|
|
2229
|
+
}, e.prototype.toRgb = function() {
|
|
2230
|
+
return {
|
|
2231
|
+
r: Math.round(this.r),
|
|
2232
|
+
g: Math.round(this.g),
|
|
2233
|
+
b: Math.round(this.b),
|
|
2234
|
+
a: this.a
|
|
2235
|
+
};
|
|
2236
|
+
}, e.prototype.toRgbString = function() {
|
|
2237
|
+
var t = Math.round(this.r), r = Math.round(this.g), n = Math.round(this.b);
|
|
2238
|
+
return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")");
|
|
2239
|
+
}, e.prototype.toPercentageRgb = function() {
|
|
2240
|
+
var t = function(r) {
|
|
2241
|
+
return "".concat(Math.round(re(r, 255) * 100), "%");
|
|
2242
|
+
};
|
|
2243
|
+
return {
|
|
2244
|
+
r: t(this.r),
|
|
2245
|
+
g: t(this.g),
|
|
2246
|
+
b: t(this.b),
|
|
2247
|
+
a: this.a
|
|
2248
|
+
};
|
|
2249
|
+
}, e.prototype.toPercentageRgbString = function() {
|
|
2250
|
+
var t = function(r) {
|
|
2251
|
+
return Math.round(re(r, 255) * 100);
|
|
2252
|
+
};
|
|
2253
|
+
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
2254
|
+
}, e.prototype.toName = function() {
|
|
2255
|
+
if (this.a === 0)
|
|
2256
|
+
return "transparent";
|
|
2257
|
+
if (this.a < 1)
|
|
2258
|
+
return !1;
|
|
2259
|
+
for (var t = "#" + xr(this.r, this.g, this.b, !1), r = 0, n = Object.entries(Er); r < n.length; r++) {
|
|
2260
|
+
var o = n[r], a = o[0], i = o[1];
|
|
2261
|
+
if (t === i)
|
|
2262
|
+
return a;
|
|
2263
|
+
}
|
|
2264
|
+
return !1;
|
|
2265
|
+
}, e.prototype.toString = function(t) {
|
|
2266
|
+
var r = !!t;
|
|
2267
|
+
t = t ?? this.format;
|
|
2268
|
+
var n = !1, o = this.a < 1 && this.a >= 0, a = !r && o && (t.startsWith("hex") || t === "name");
|
|
2269
|
+
return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
|
|
2270
|
+
}, e.prototype.toNumber = function() {
|
|
2271
|
+
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
2272
|
+
}, e.prototype.clone = function() {
|
|
2273
|
+
return new e(this.toString());
|
|
2274
|
+
}, e.prototype.lighten = function(t) {
|
|
2275
|
+
t === void 0 && (t = 10);
|
|
2276
|
+
var r = this.toHsl();
|
|
2277
|
+
return r.l += t / 100, r.l = ht(r.l), new e(r);
|
|
2278
|
+
}, e.prototype.brighten = function(t) {
|
|
2279
|
+
t === void 0 && (t = 10);
|
|
2280
|
+
var r = this.toRgb();
|
|
2281
|
+
return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new e(r);
|
|
2282
|
+
}, e.prototype.darken = function(t) {
|
|
2283
|
+
t === void 0 && (t = 10);
|
|
2284
|
+
var r = this.toHsl();
|
|
2285
|
+
return r.l -= t / 100, r.l = ht(r.l), new e(r);
|
|
2286
|
+
}, e.prototype.tint = function(t) {
|
|
2287
|
+
return t === void 0 && (t = 10), this.mix("white", t);
|
|
2288
|
+
}, e.prototype.shade = function(t) {
|
|
2289
|
+
return t === void 0 && (t = 10), this.mix("black", t);
|
|
2290
|
+
}, e.prototype.desaturate = function(t) {
|
|
2291
|
+
t === void 0 && (t = 10);
|
|
2292
|
+
var r = this.toHsl();
|
|
2293
|
+
return r.s -= t / 100, r.s = ht(r.s), new e(r);
|
|
2294
|
+
}, e.prototype.saturate = function(t) {
|
|
2295
|
+
t === void 0 && (t = 10);
|
|
2296
|
+
var r = this.toHsl();
|
|
2297
|
+
return r.s += t / 100, r.s = ht(r.s), new e(r);
|
|
2298
|
+
}, e.prototype.greyscale = function() {
|
|
2299
|
+
return this.desaturate(100);
|
|
2300
|
+
}, e.prototype.spin = function(t) {
|
|
2301
|
+
var r = this.toHsl(), n = (r.h + t) % 360;
|
|
2302
|
+
return r.h = n < 0 ? 360 + n : n, new e(r);
|
|
2303
|
+
}, e.prototype.mix = function(t, r) {
|
|
2304
|
+
r === void 0 && (r = 50);
|
|
2305
|
+
var n = this.toRgb(), o = new e(t).toRgb(), a = r / 100, i = {
|
|
2306
|
+
r: (o.r - n.r) * a + n.r,
|
|
2307
|
+
g: (o.g - n.g) * a + n.g,
|
|
2308
|
+
b: (o.b - n.b) * a + n.b,
|
|
2309
|
+
a: (o.a - n.a) * a + n.a
|
|
2310
|
+
};
|
|
2311
|
+
return new e(i);
|
|
2312
|
+
}, e.prototype.analogous = function(t, r) {
|
|
2313
|
+
t === void 0 && (t = 6), r === void 0 && (r = 30);
|
|
2314
|
+
var n = this.toHsl(), o = 360 / r, a = [this];
|
|
2315
|
+
for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
|
|
2316
|
+
n.h = (n.h + o) % 360, a.push(new e(n));
|
|
2317
|
+
return a;
|
|
2318
|
+
}, e.prototype.complement = function() {
|
|
2319
|
+
var t = this.toHsl();
|
|
2320
|
+
return t.h = (t.h + 180) % 360, new e(t);
|
|
2321
|
+
}, e.prototype.monochromatic = function(t) {
|
|
2322
|
+
t === void 0 && (t = 6);
|
|
2323
|
+
for (var r = this.toHsv(), n = r.h, o = r.s, a = r.v, i = [], s = 1 / t; t--; )
|
|
2324
|
+
i.push(new e({ h: n, s: o, v: a })), a = (a + s) % 1;
|
|
2325
|
+
return i;
|
|
2326
|
+
}, e.prototype.splitcomplement = function() {
|
|
2327
|
+
var t = this.toHsl(), r = t.h;
|
|
2328
|
+
return [
|
|
2329
|
+
this,
|
|
2330
|
+
new e({ h: (r + 72) % 360, s: t.s, l: t.l }),
|
|
2331
|
+
new e({ h: (r + 216) % 360, s: t.s, l: t.l })
|
|
2332
|
+
];
|
|
2333
|
+
}, e.prototype.onBackground = function(t) {
|
|
2334
|
+
var r = this.toRgb(), n = new e(t).toRgb(), o = r.a + n.a * (1 - r.a);
|
|
2335
|
+
return new e({
|
|
2336
|
+
r: (r.r * r.a + n.r * n.a * (1 - r.a)) / o,
|
|
2337
|
+
g: (r.g * r.a + n.g * n.a * (1 - r.a)) / o,
|
|
2338
|
+
b: (r.b * r.a + n.b * n.a * (1 - r.a)) / o,
|
|
2339
|
+
a: o
|
|
2340
|
+
});
|
|
2341
|
+
}, e.prototype.triad = function() {
|
|
2342
|
+
return this.polyad(3);
|
|
2343
|
+
}, e.prototype.tetrad = function() {
|
|
2344
|
+
return this.polyad(4);
|
|
2345
|
+
}, e.prototype.polyad = function(t) {
|
|
2346
|
+
for (var r = this.toHsl(), n = r.h, o = [this], a = 360 / t, i = 1; i < t; i++)
|
|
2347
|
+
o.push(new e({ h: (n + i * a) % 360, s: r.s, l: r.l }));
|
|
2348
|
+
return o;
|
|
2349
|
+
}, e.prototype.equals = function(t) {
|
|
2350
|
+
return this.toRgbString() === new e(t).toRgbString();
|
|
2351
|
+
}, e;
|
|
2352
|
+
}()
|
|
2353
|
+
), bt = 2, xn = 0.16, xs = 0.05, Es = 0.05, Cs = 0.15, xo = 5, Eo = 4, Os = [{
|
|
2354
|
+
index: 7,
|
|
2355
|
+
opacity: 0.15
|
|
2356
|
+
}, {
|
|
2357
|
+
index: 6,
|
|
2358
|
+
opacity: 0.25
|
|
2359
|
+
}, {
|
|
2360
|
+
index: 5,
|
|
2361
|
+
opacity: 0.3
|
|
2362
|
+
}, {
|
|
2363
|
+
index: 5,
|
|
2364
|
+
opacity: 0.45
|
|
2365
|
+
}, {
|
|
2366
|
+
index: 5,
|
|
2367
|
+
opacity: 0.65
|
|
2368
|
+
}, {
|
|
2369
|
+
index: 5,
|
|
2370
|
+
opacity: 0.85
|
|
2371
|
+
}, {
|
|
2372
|
+
index: 4,
|
|
2373
|
+
opacity: 0.9
|
|
2374
|
+
}, {
|
|
2375
|
+
index: 3,
|
|
2376
|
+
opacity: 0.95
|
|
2377
|
+
}, {
|
|
2378
|
+
index: 2,
|
|
2379
|
+
opacity: 0.97
|
|
2380
|
+
}, {
|
|
2381
|
+
index: 1,
|
|
2382
|
+
opacity: 0.98
|
|
2383
|
+
}];
|
|
2384
|
+
function En(e) {
|
|
2385
|
+
var t = e.r, r = e.g, n = e.b, o = Sr(t, r, n);
|
|
2386
|
+
return {
|
|
2387
|
+
h: o.h * 360,
|
|
2388
|
+
s: o.s,
|
|
2389
|
+
v: o.v
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
2392
|
+
function yt(e) {
|
|
2393
|
+
var t = e.r, r = e.g, n = e.b;
|
|
2394
|
+
return "#".concat(xr(t, r, n, !1));
|
|
2395
|
+
}
|
|
2396
|
+
function Ts(e, t, r) {
|
|
2397
|
+
var n = r / 100, o = {
|
|
2398
|
+
r: (t.r - e.r) * n + e.r,
|
|
2399
|
+
g: (t.g - e.g) * n + e.g,
|
|
2400
|
+
b: (t.b - e.b) * n + e.b
|
|
2401
|
+
};
|
|
2402
|
+
return o;
|
|
2403
|
+
}
|
|
2404
|
+
function Cn(e, t, r) {
|
|
2405
|
+
var n;
|
|
2406
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - bt * t : Math.round(e.h) + bt * t : n = r ? Math.round(e.h) + bt * t : Math.round(e.h) - bt * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
2407
|
+
}
|
|
2408
|
+
function On(e, t, r) {
|
|
2409
|
+
if (e.h === 0 && e.s === 0)
|
|
2410
|
+
return e.s;
|
|
2411
|
+
var n;
|
|
2412
|
+
return r ? n = e.s - xn * t : t === Eo ? n = e.s + xn : n = e.s + xs * t, n > 1 && (n = 1), r && t === xo && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
2413
|
+
}
|
|
2414
|
+
function Tn(e, t, r) {
|
|
2415
|
+
var n;
|
|
2416
|
+
return r ? n = e.v + Es * t : n = e.v - Cs * t, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
2417
|
+
}
|
|
2418
|
+
function Je(e) {
|
|
2419
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = Ye(e), o = xo; o > 0; o -= 1) {
|
|
2420
|
+
var a = En(n), i = yt(Ye({
|
|
2421
|
+
h: Cn(a, o, !0),
|
|
2422
|
+
s: On(a, o, !0),
|
|
2423
|
+
v: Tn(a, o, !0)
|
|
2424
|
+
}));
|
|
2425
|
+
r.push(i);
|
|
2426
|
+
}
|
|
2427
|
+
r.push(yt(n));
|
|
2428
|
+
for (var s = 1; s <= Eo; s += 1) {
|
|
2429
|
+
var l = En(n), c = yt(Ye({
|
|
2430
|
+
h: Cn(l, s),
|
|
2431
|
+
s: On(l, s),
|
|
2432
|
+
v: Tn(l, s)
|
|
2433
|
+
}));
|
|
2434
|
+
r.push(c);
|
|
2435
|
+
}
|
|
2436
|
+
return t.theme === "dark" ? Os.map(function(f) {
|
|
2437
|
+
var u = f.index, g = f.opacity, h = yt(Ts(Ye(t.backgroundColor || "#141414"), Ye(r[u]), g * 100));
|
|
2438
|
+
return h;
|
|
2439
|
+
}) : r;
|
|
2440
|
+
}
|
|
2441
|
+
var Jt = {
|
|
2442
|
+
red: "#F5222D",
|
|
2443
|
+
volcano: "#FA541C",
|
|
2444
|
+
orange: "#FA8C16",
|
|
2445
|
+
gold: "#FAAD14",
|
|
2446
|
+
yellow: "#FADB14",
|
|
2447
|
+
lime: "#A0D911",
|
|
2448
|
+
green: "#52C41A",
|
|
2449
|
+
cyan: "#13C2C2",
|
|
2450
|
+
blue: "#1677FF",
|
|
2451
|
+
geekblue: "#2F54EB",
|
|
2452
|
+
purple: "#722ED1",
|
|
2453
|
+
magenta: "#EB2F96",
|
|
2454
|
+
grey: "#666666"
|
|
2455
|
+
}, er = {}, tr = {};
|
|
2456
|
+
Object.keys(Jt).forEach(function(e) {
|
|
2457
|
+
er[e] = Je(Jt[e]), er[e].primary = er[e][5], tr[e] = Je(Jt[e], {
|
|
2458
|
+
theme: "dark",
|
|
2459
|
+
backgroundColor: "#141414"
|
|
2460
|
+
}), tr[e].primary = tr[e][5];
|
|
2461
|
+
});
|
|
2462
|
+
const ws = (e) => {
|
|
2463
|
+
const {
|
|
2464
|
+
controlHeight: t
|
|
2465
|
+
} = e;
|
|
2466
|
+
return {
|
|
2467
|
+
controlHeightSM: t * 0.75,
|
|
2468
|
+
controlHeightXS: t * 0.5,
|
|
2469
|
+
controlHeightLG: t * 1.25
|
|
2470
|
+
};
|
|
2471
|
+
}, Ps = ws;
|
|
2472
|
+
function As(e) {
|
|
2473
|
+
const {
|
|
2474
|
+
sizeUnit: t,
|
|
2475
|
+
sizeStep: r
|
|
2476
|
+
} = e;
|
|
2477
|
+
return {
|
|
2478
|
+
sizeXXL: t * (r + 8),
|
|
2479
|
+
sizeXL: t * (r + 4),
|
|
2480
|
+
sizeLG: t * (r + 2),
|
|
2481
|
+
sizeMD: t * (r + 1),
|
|
2482
|
+
sizeMS: t * r,
|
|
2483
|
+
size: t * r,
|
|
2484
|
+
sizeSM: t * (r - 1),
|
|
2485
|
+
sizeXS: t * (r - 2),
|
|
2486
|
+
sizeXXS: t * (r - 3)
|
|
2487
|
+
// 4
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
const Co = {
|
|
2491
|
+
blue: "#1677ff",
|
|
2492
|
+
purple: "#722ED1",
|
|
2493
|
+
cyan: "#13C2C2",
|
|
2494
|
+
green: "#52C41A",
|
|
2495
|
+
magenta: "#EB2F96",
|
|
2496
|
+
pink: "#eb2f96",
|
|
2497
|
+
red: "#F5222D",
|
|
2498
|
+
orange: "#FA8C16",
|
|
2499
|
+
yellow: "#FADB14",
|
|
2500
|
+
volcano: "#FA541C",
|
|
2501
|
+
geekblue: "#2F54EB",
|
|
2502
|
+
gold: "#FAAD14",
|
|
2503
|
+
lime: "#A0D911"
|
|
2504
|
+
}, ks = Object.assign(Object.assign({}, Co), {
|
|
2505
|
+
// Color
|
|
2506
|
+
colorPrimary: "#1677ff",
|
|
2507
|
+
colorSuccess: "#52c41a",
|
|
2508
|
+
colorWarning: "#faad14",
|
|
2509
|
+
colorError: "#ff4d4f",
|
|
2510
|
+
colorInfo: "#1677ff",
|
|
2511
|
+
colorLink: "",
|
|
2512
|
+
colorTextBase: "",
|
|
2513
|
+
colorBgBase: "",
|
|
2514
|
+
// Font
|
|
2515
|
+
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2516
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
2517
|
+
'Noto Color Emoji'`,
|
|
2518
|
+
fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
|
2519
|
+
fontSize: 14,
|
|
2520
|
+
// Line
|
|
2521
|
+
lineWidth: 1,
|
|
2522
|
+
lineType: "solid",
|
|
2523
|
+
// Motion
|
|
2524
|
+
motionUnit: 0.1,
|
|
2525
|
+
motionBase: 0,
|
|
2526
|
+
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
|
2527
|
+
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
|
|
2528
|
+
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
2529
|
+
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
2530
|
+
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
2531
|
+
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
|
2532
|
+
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
|
|
2533
|
+
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
2534
|
+
// Radius
|
|
2535
|
+
borderRadius: 6,
|
|
2536
|
+
// Size
|
|
2537
|
+
sizeUnit: 4,
|
|
2538
|
+
sizeStep: 4,
|
|
2539
|
+
sizePopupArrow: 16,
|
|
2540
|
+
// Control Base
|
|
2541
|
+
controlHeight: 32,
|
|
2542
|
+
// zIndex
|
|
2543
|
+
zIndexBase: 0,
|
|
2544
|
+
zIndexPopupBase: 1e3,
|
|
2545
|
+
// Image
|
|
2546
|
+
opacityImage: 1,
|
|
2547
|
+
// Wireframe
|
|
2548
|
+
wireframe: !1,
|
|
2549
|
+
// Motion
|
|
2550
|
+
motion: !0
|
|
2551
|
+
}), ft = ks;
|
|
2552
|
+
function Ms(e, t) {
|
|
2553
|
+
let {
|
|
2554
|
+
generateColorPalettes: r,
|
|
2555
|
+
generateNeutralColorPalettes: n
|
|
2556
|
+
} = t;
|
|
2557
|
+
const {
|
|
2558
|
+
colorSuccess: o,
|
|
2559
|
+
colorWarning: a,
|
|
2560
|
+
colorError: i,
|
|
2561
|
+
colorInfo: s,
|
|
2562
|
+
colorPrimary: l,
|
|
2563
|
+
colorBgBase: c,
|
|
2564
|
+
colorTextBase: f
|
|
2565
|
+
} = e, u = r(l), g = r(o), h = r(a), b = r(i), p = r(s), d = n(c, f), S = e.colorLink || e.colorInfo, m = r(S);
|
|
2566
|
+
return Object.assign(Object.assign({}, d), {
|
|
2567
|
+
colorPrimaryBg: u[1],
|
|
2568
|
+
colorPrimaryBgHover: u[2],
|
|
2569
|
+
colorPrimaryBorder: u[3],
|
|
2570
|
+
colorPrimaryBorderHover: u[4],
|
|
2571
|
+
colorPrimaryHover: u[5],
|
|
2572
|
+
colorPrimary: u[6],
|
|
2573
|
+
colorPrimaryActive: u[7],
|
|
2574
|
+
colorPrimaryTextHover: u[8],
|
|
2575
|
+
colorPrimaryText: u[9],
|
|
2576
|
+
colorPrimaryTextActive: u[10],
|
|
2577
|
+
colorSuccessBg: g[1],
|
|
2578
|
+
colorSuccessBgHover: g[2],
|
|
2579
|
+
colorSuccessBorder: g[3],
|
|
2580
|
+
colorSuccessBorderHover: g[4],
|
|
2581
|
+
colorSuccessHover: g[4],
|
|
2582
|
+
colorSuccess: g[6],
|
|
2583
|
+
colorSuccessActive: g[7],
|
|
2584
|
+
colorSuccessTextHover: g[8],
|
|
2585
|
+
colorSuccessText: g[9],
|
|
2586
|
+
colorSuccessTextActive: g[10],
|
|
2587
|
+
colorErrorBg: b[1],
|
|
2588
|
+
colorErrorBgHover: b[2],
|
|
2589
|
+
colorErrorBorder: b[3],
|
|
2590
|
+
colorErrorBorderHover: b[4],
|
|
2591
|
+
colorErrorHover: b[5],
|
|
2592
|
+
colorError: b[6],
|
|
2593
|
+
colorErrorActive: b[7],
|
|
2594
|
+
colorErrorTextHover: b[8],
|
|
2595
|
+
colorErrorText: b[9],
|
|
2596
|
+
colorErrorTextActive: b[10],
|
|
2597
|
+
colorWarningBg: h[1],
|
|
2598
|
+
colorWarningBgHover: h[2],
|
|
2599
|
+
colorWarningBorder: h[3],
|
|
2600
|
+
colorWarningBorderHover: h[4],
|
|
2601
|
+
colorWarningHover: h[4],
|
|
2602
|
+
colorWarning: h[6],
|
|
2603
|
+
colorWarningActive: h[7],
|
|
2604
|
+
colorWarningTextHover: h[8],
|
|
2605
|
+
colorWarningText: h[9],
|
|
2606
|
+
colorWarningTextActive: h[10],
|
|
2607
|
+
colorInfoBg: p[1],
|
|
2608
|
+
colorInfoBgHover: p[2],
|
|
2609
|
+
colorInfoBorder: p[3],
|
|
2610
|
+
colorInfoBorderHover: p[4],
|
|
2611
|
+
colorInfoHover: p[4],
|
|
2612
|
+
colorInfo: p[6],
|
|
2613
|
+
colorInfoActive: p[7],
|
|
2614
|
+
colorInfoTextHover: p[8],
|
|
2615
|
+
colorInfoText: p[9],
|
|
2616
|
+
colorInfoTextActive: p[10],
|
|
2617
|
+
colorLinkHover: m[4],
|
|
2618
|
+
colorLink: m[6],
|
|
2619
|
+
colorLinkActive: m[7],
|
|
2620
|
+
colorBgMask: new le("#000").setAlpha(0.45).toRgbString(),
|
|
2621
|
+
colorWhite: "#fff"
|
|
2622
|
+
});
|
|
2623
|
+
}
|
|
2624
|
+
const Rs = (e) => {
|
|
2625
|
+
let t = e, r = e, n = e, o = e;
|
|
2626
|
+
return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? r = 4 : e < 8 && e >= 7 ? r = 5 : e < 14 && e >= 8 ? r = 6 : e < 16 && e >= 14 ? r = 7 : e >= 16 && (r = 8), e < 6 && e >= 2 ? n = 1 : e >= 6 && (n = 2), e > 4 && e < 8 ? o = 4 : e >= 8 && (o = 6), {
|
|
2627
|
+
borderRadius: e,
|
|
2628
|
+
borderRadiusXS: n,
|
|
2629
|
+
borderRadiusSM: r,
|
|
2630
|
+
borderRadiusLG: t,
|
|
2631
|
+
borderRadiusOuter: o
|
|
2632
|
+
};
|
|
2633
|
+
}, $s = Rs;
|
|
2634
|
+
function _s(e) {
|
|
2635
|
+
const {
|
|
2636
|
+
motionUnit: t,
|
|
2637
|
+
motionBase: r,
|
|
2638
|
+
borderRadius: n,
|
|
2639
|
+
lineWidth: o
|
|
2640
|
+
} = e;
|
|
2641
|
+
return Object.assign({
|
|
2642
|
+
// motion
|
|
2643
|
+
motionDurationFast: `${(r + t).toFixed(1)}s`,
|
|
2644
|
+
motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
|
|
2645
|
+
motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
|
|
2646
|
+
// line
|
|
2647
|
+
lineWidthBold: o + 1
|
|
2648
|
+
}, $s(n));
|
|
2649
|
+
}
|
|
2650
|
+
const Ae = (e, t) => new le(e).setAlpha(t).toRgbString(), st = (e, t) => new le(e).darken(t).toHexString(), Ns = (e) => {
|
|
2651
|
+
const t = Je(e);
|
|
2652
|
+
return {
|
|
2653
|
+
1: t[0],
|
|
2654
|
+
2: t[1],
|
|
2655
|
+
3: t[2],
|
|
2656
|
+
4: t[3],
|
|
2657
|
+
5: t[4],
|
|
2658
|
+
6: t[5],
|
|
2659
|
+
7: t[6],
|
|
2660
|
+
8: t[4],
|
|
2661
|
+
9: t[5],
|
|
2662
|
+
10: t[6]
|
|
2663
|
+
// 8: colors[7],
|
|
2664
|
+
// 9: colors[8],
|
|
2665
|
+
// 10: colors[9],
|
|
2666
|
+
};
|
|
2667
|
+
}, js = (e, t) => {
|
|
2668
|
+
const r = e || "#fff", n = t || "#000";
|
|
2669
|
+
return {
|
|
2670
|
+
colorBgBase: r,
|
|
2671
|
+
colorTextBase: n,
|
|
2672
|
+
colorText: Ae(n, 0.88),
|
|
2673
|
+
colorTextSecondary: Ae(n, 0.65),
|
|
2674
|
+
colorTextTertiary: Ae(n, 0.45),
|
|
2675
|
+
colorTextQuaternary: Ae(n, 0.25),
|
|
2676
|
+
colorFill: Ae(n, 0.15),
|
|
2677
|
+
colorFillSecondary: Ae(n, 0.06),
|
|
2678
|
+
colorFillTertiary: Ae(n, 0.04),
|
|
2679
|
+
colorFillQuaternary: Ae(n, 0.02),
|
|
2680
|
+
colorBgLayout: st(r, 4),
|
|
2681
|
+
colorBgContainer: st(r, 0),
|
|
2682
|
+
colorBgElevated: st(r, 0),
|
|
2683
|
+
colorBgSpotlight: Ae(n, 0.85),
|
|
2684
|
+
colorBgBlur: "transparent",
|
|
2685
|
+
colorBorder: st(r, 15),
|
|
2686
|
+
colorBorderSecondary: st(r, 6)
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
function Is(e) {
|
|
2690
|
+
const t = new Array(10).fill(null).map((r, n) => {
|
|
2691
|
+
const o = n - 1, a = e * Math.pow(2.71828, o / 5), i = n > 1 ? Math.floor(a) : Math.ceil(a);
|
|
2692
|
+
return Math.floor(i / 2) * 2;
|
|
2693
|
+
});
|
|
2694
|
+
return t[1] = e, t.map((r) => {
|
|
2695
|
+
const n = r + 8;
|
|
2696
|
+
return {
|
|
2697
|
+
size: r,
|
|
2698
|
+
lineHeight: n / r
|
|
2699
|
+
};
|
|
2700
|
+
});
|
|
2701
|
+
}
|
|
2702
|
+
const Ls = (e) => {
|
|
2703
|
+
const t = Is(e), r = t.map((o) => o.size), n = t.map((o) => o.lineHeight);
|
|
2704
|
+
return {
|
|
2705
|
+
fontSizeSM: r[0],
|
|
2706
|
+
fontSize: r[1],
|
|
2707
|
+
fontSizeLG: r[2],
|
|
2708
|
+
fontSizeXL: r[3],
|
|
2709
|
+
fontSizeHeading1: r[6],
|
|
2710
|
+
fontSizeHeading2: r[5],
|
|
2711
|
+
fontSizeHeading3: r[4],
|
|
2712
|
+
fontSizeHeading4: r[3],
|
|
2713
|
+
fontSizeHeading5: r[2],
|
|
2714
|
+
lineHeight: n[1],
|
|
2715
|
+
lineHeightLG: n[2],
|
|
2716
|
+
lineHeightSM: n[0],
|
|
2717
|
+
lineHeightHeading1: n[6],
|
|
2718
|
+
lineHeightHeading2: n[5],
|
|
2719
|
+
lineHeightHeading3: n[4],
|
|
2720
|
+
lineHeightHeading4: n[3],
|
|
2721
|
+
lineHeightHeading5: n[2]
|
|
2722
|
+
};
|
|
2723
|
+
}, Ds = Ls;
|
|
2724
|
+
function Hs(e) {
|
|
2725
|
+
const t = Object.keys(Co).map((r) => {
|
|
2726
|
+
const n = Je(e[r]);
|
|
2727
|
+
return new Array(10).fill(1).reduce((o, a, i) => (o[`${r}-${i + 1}`] = n[i], o[`${r}${i + 1}`] = n[i], o), {});
|
|
2728
|
+
}).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {});
|
|
2729
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), Ms(e, {
|
|
2730
|
+
generateColorPalettes: Ns,
|
|
2731
|
+
generateNeutralColorPalettes: js
|
|
2732
|
+
})), Ds(e.fontSize)), As(e)), Ps(e)), _s(e));
|
|
2733
|
+
}
|
|
2734
|
+
const Oo = gr(Hs), To = {
|
|
2735
|
+
token: ft,
|
|
2736
|
+
override: {
|
|
2737
|
+
override: ft
|
|
2738
|
+
},
|
|
2739
|
+
hashed: !0
|
|
2740
|
+
}, wo = /* @__PURE__ */ $r.createContext(To), Po = "anticon", Fs = (e, t) => t || (e ? `ant-${e}` : "ant"), Ve = /* @__PURE__ */ v.createContext({
|
|
2741
|
+
// We provide a default function for Context without provider
|
|
2742
|
+
getPrefixCls: Fs,
|
|
2743
|
+
iconPrefixCls: Po
|
|
2744
|
+
}), zs = `-ant-${Date.now()}-${Math.random()}`;
|
|
2745
|
+
function Bs(e, t) {
|
|
2746
|
+
const r = {}, n = (i, s) => {
|
|
2747
|
+
let l = i.clone();
|
|
2748
|
+
return l = (s == null ? void 0 : s(l)) || l, l.toRgbString();
|
|
2749
|
+
}, o = (i, s) => {
|
|
2750
|
+
const l = new le(i), c = Je(l.toRgbString());
|
|
2751
|
+
r[`${s}-color`] = n(l), r[`${s}-color-disabled`] = c[1], r[`${s}-color-hover`] = c[4], r[`${s}-color-active`] = c[6], r[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), r[`${s}-color-deprecated-bg`] = c[0], r[`${s}-color-deprecated-border`] = c[2];
|
|
2752
|
+
};
|
|
2753
|
+
if (t.primaryColor) {
|
|
2754
|
+
o(t.primaryColor, "primary");
|
|
2755
|
+
const i = new le(t.primaryColor), s = Je(i.toRgbString());
|
|
2756
|
+
s.forEach((c, f) => {
|
|
2757
|
+
r[`primary-${f + 1}`] = c;
|
|
2758
|
+
}), r["primary-color-deprecated-l-35"] = n(i, (c) => c.lighten(35)), r["primary-color-deprecated-l-20"] = n(i, (c) => c.lighten(20)), r["primary-color-deprecated-t-20"] = n(i, (c) => c.tint(20)), r["primary-color-deprecated-t-50"] = n(i, (c) => c.tint(50)), r["primary-color-deprecated-f-12"] = n(i, (c) => c.setAlpha(c.getAlpha() * 0.12));
|
|
2759
|
+
const l = new le(s[0]);
|
|
2760
|
+
r["primary-color-active-deprecated-f-30"] = n(l, (c) => c.setAlpha(c.getAlpha() * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (c) => c.darken(2));
|
|
2761
|
+
}
|
|
2762
|
+
return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
|
|
2763
|
+
:root {
|
|
2764
|
+
${Object.keys(r).map((i) => `--${e}-${i}: ${r[i]};`).join(`
|
|
2765
|
+
`)}
|
|
2766
|
+
}
|
|
2767
|
+
`.trim();
|
|
2768
|
+
}
|
|
2769
|
+
function Ws(e, t) {
|
|
2770
|
+
const r = Bs(e, t);
|
|
2771
|
+
Oe() ? Nt(r, `${zs}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Ft(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
2772
|
+
}
|
|
2773
|
+
const Cr = /* @__PURE__ */ v.createContext(!1), Vs = (e) => {
|
|
2774
|
+
let {
|
|
2775
|
+
children: t,
|
|
2776
|
+
disabled: r
|
|
2777
|
+
} = e;
|
|
2778
|
+
const n = v.useContext(Cr);
|
|
2779
|
+
return /* @__PURE__ */ v.createElement(Cr.Provider, {
|
|
2780
|
+
value: r ?? n
|
|
2781
|
+
}, t);
|
|
2782
|
+
}, Us = Cr, Or = /* @__PURE__ */ v.createContext(void 0), Xs = (e) => {
|
|
2783
|
+
let {
|
|
2784
|
+
children: t,
|
|
2785
|
+
size: r
|
|
2786
|
+
} = e;
|
|
2787
|
+
const n = v.useContext(Or);
|
|
2788
|
+
return /* @__PURE__ */ v.createElement(Or.Provider, {
|
|
2789
|
+
value: r || n
|
|
2790
|
+
}, t);
|
|
2791
|
+
}, Vr = Or;
|
|
2792
|
+
function Gs() {
|
|
2793
|
+
const e = Rt(Us), t = Rt(Vr);
|
|
2794
|
+
return {
|
|
2795
|
+
componentDisabled: e,
|
|
2796
|
+
componentSize: t
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
const It = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"], Ys = "5.11.0";
|
|
2800
|
+
function rr(e) {
|
|
2801
|
+
return e >= 0 && e <= 255;
|
|
2802
|
+
}
|
|
2803
|
+
function St(e, t) {
|
|
2804
|
+
const {
|
|
2805
|
+
r,
|
|
2806
|
+
g: n,
|
|
2807
|
+
b: o,
|
|
2808
|
+
a
|
|
2809
|
+
} = new le(e).toRgb();
|
|
2810
|
+
if (a < 1)
|
|
2811
|
+
return e;
|
|
2812
|
+
const {
|
|
2813
|
+
r: i,
|
|
2814
|
+
g: s,
|
|
2815
|
+
b: l
|
|
2816
|
+
} = new le(t).toRgb();
|
|
2817
|
+
for (let c = 0.01; c <= 1; c += 0.01) {
|
|
2818
|
+
const f = Math.round((r - i * (1 - c)) / c), u = Math.round((n - s * (1 - c)) / c), g = Math.round((o - l * (1 - c)) / c);
|
|
2819
|
+
if (rr(f) && rr(u) && rr(g))
|
|
2820
|
+
return new le({
|
|
2821
|
+
r: f,
|
|
2822
|
+
g: u,
|
|
2823
|
+
b: g,
|
|
2824
|
+
a: Math.round(c * 100) / 100
|
|
2825
|
+
}).toRgbString();
|
|
2826
|
+
}
|
|
2827
|
+
return new le({
|
|
2828
|
+
r,
|
|
2829
|
+
g: n,
|
|
2830
|
+
b: o,
|
|
2831
|
+
a: 1
|
|
2832
|
+
}).toRgbString();
|
|
2833
|
+
}
|
|
2834
|
+
var Ks = globalThis && globalThis.__rest || function(e, t) {
|
|
2835
|
+
var r = {};
|
|
2836
|
+
for (var n in e)
|
|
2837
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2838
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2839
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2840
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2841
|
+
return r;
|
|
2842
|
+
};
|
|
2843
|
+
function Ao(e) {
|
|
2844
|
+
const {
|
|
2845
|
+
override: t
|
|
2846
|
+
} = e, r = Ks(e, ["override"]), n = Object.assign({}, t);
|
|
2847
|
+
Object.keys(ft).forEach((g) => {
|
|
2848
|
+
delete n[g];
|
|
2849
|
+
});
|
|
2850
|
+
const o = Object.assign(Object.assign({}, r), n), a = 480, i = 576, s = 768, l = 992, c = 1200, f = 1600;
|
|
2851
|
+
if (o.motion === !1) {
|
|
2852
|
+
const g = "0s";
|
|
2853
|
+
o.motionDurationFast = g, o.motionDurationMid = g, o.motionDurationSlow = g;
|
|
2854
|
+
}
|
|
2855
|
+
return Object.assign(Object.assign(Object.assign({}, o), {
|
|
2856
|
+
// ============== Background ============== //
|
|
2857
|
+
colorFillContent: o.colorFillSecondary,
|
|
2858
|
+
colorFillContentHover: o.colorFill,
|
|
2859
|
+
colorFillAlter: o.colorFillQuaternary,
|
|
2860
|
+
colorBgContainerDisabled: o.colorFillTertiary,
|
|
2861
|
+
// ============== Split ============== //
|
|
2862
|
+
colorBorderBg: o.colorBgContainer,
|
|
2863
|
+
colorSplit: St(o.colorBorderSecondary, o.colorBgContainer),
|
|
2864
|
+
// ============== Text ============== //
|
|
2865
|
+
colorTextPlaceholder: o.colorTextQuaternary,
|
|
2866
|
+
colorTextDisabled: o.colorTextQuaternary,
|
|
2867
|
+
colorTextHeading: o.colorText,
|
|
2868
|
+
colorTextLabel: o.colorTextSecondary,
|
|
2869
|
+
colorTextDescription: o.colorTextTertiary,
|
|
2870
|
+
colorTextLightSolid: o.colorWhite,
|
|
2871
|
+
colorHighlight: o.colorError,
|
|
2872
|
+
colorBgTextHover: o.colorFillSecondary,
|
|
2873
|
+
colorBgTextActive: o.colorFill,
|
|
2874
|
+
colorIcon: o.colorTextTertiary,
|
|
2875
|
+
colorIconHover: o.colorText,
|
|
2876
|
+
colorErrorOutline: St(o.colorErrorBg, o.colorBgContainer),
|
|
2877
|
+
colorWarningOutline: St(o.colorWarningBg, o.colorBgContainer),
|
|
2878
|
+
// Font
|
|
2879
|
+
fontSizeIcon: o.fontSizeSM,
|
|
2880
|
+
// Line
|
|
2881
|
+
lineWidthFocus: o.lineWidth * 4,
|
|
2882
|
+
// Control
|
|
2883
|
+
lineWidth: o.lineWidth,
|
|
2884
|
+
controlOutlineWidth: o.lineWidth * 2,
|
|
2885
|
+
// Checkbox size and expand icon size
|
|
2886
|
+
controlInteractiveSize: o.controlHeight / 2,
|
|
2887
|
+
controlItemBgHover: o.colorFillTertiary,
|
|
2888
|
+
controlItemBgActive: o.colorPrimaryBg,
|
|
2889
|
+
controlItemBgActiveHover: o.colorPrimaryBgHover,
|
|
2890
|
+
controlItemBgActiveDisabled: o.colorFill,
|
|
2891
|
+
controlTmpOutline: o.colorFillQuaternary,
|
|
2892
|
+
controlOutline: St(o.colorPrimaryBg, o.colorBgContainer),
|
|
2893
|
+
lineType: o.lineType,
|
|
2894
|
+
borderRadius: o.borderRadius,
|
|
2895
|
+
borderRadiusXS: o.borderRadiusXS,
|
|
2896
|
+
borderRadiusSM: o.borderRadiusSM,
|
|
2897
|
+
borderRadiusLG: o.borderRadiusLG,
|
|
2898
|
+
fontWeightStrong: 600,
|
|
2899
|
+
opacityLoading: 0.65,
|
|
2900
|
+
linkDecoration: "none",
|
|
2901
|
+
linkHoverDecoration: "none",
|
|
2902
|
+
linkFocusDecoration: "none",
|
|
2903
|
+
controlPaddingHorizontal: 12,
|
|
2904
|
+
controlPaddingHorizontalSM: 8,
|
|
2905
|
+
paddingXXS: o.sizeXXS,
|
|
2906
|
+
paddingXS: o.sizeXS,
|
|
2907
|
+
paddingSM: o.sizeSM,
|
|
2908
|
+
padding: o.size,
|
|
2909
|
+
paddingMD: o.sizeMD,
|
|
2910
|
+
paddingLG: o.sizeLG,
|
|
2911
|
+
paddingXL: o.sizeXL,
|
|
2912
|
+
paddingContentHorizontalLG: o.sizeLG,
|
|
2913
|
+
paddingContentVerticalLG: o.sizeMS,
|
|
2914
|
+
paddingContentHorizontal: o.sizeMS,
|
|
2915
|
+
paddingContentVertical: o.sizeSM,
|
|
2916
|
+
paddingContentHorizontalSM: o.size,
|
|
2917
|
+
paddingContentVerticalSM: o.sizeXS,
|
|
2918
|
+
marginXXS: o.sizeXXS,
|
|
2919
|
+
marginXS: o.sizeXS,
|
|
2920
|
+
marginSM: o.sizeSM,
|
|
2921
|
+
margin: o.size,
|
|
2922
|
+
marginMD: o.sizeMD,
|
|
2923
|
+
marginLG: o.sizeLG,
|
|
2924
|
+
marginXL: o.sizeXL,
|
|
2925
|
+
marginXXL: o.sizeXXL,
|
|
2926
|
+
boxShadow: `
|
|
2927
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2928
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2929
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2930
|
+
`,
|
|
2931
|
+
boxShadowSecondary: `
|
|
2932
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2933
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2934
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2935
|
+
`,
|
|
2936
|
+
boxShadowTertiary: `
|
|
2937
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2938
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
2939
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
2940
|
+
`,
|
|
2941
|
+
screenXS: a,
|
|
2942
|
+
screenXSMin: a,
|
|
2943
|
+
screenXSMax: i - 1,
|
|
2944
|
+
screenSM: i,
|
|
2945
|
+
screenSMMin: i,
|
|
2946
|
+
screenSMMax: s - 1,
|
|
2947
|
+
screenMD: s,
|
|
2948
|
+
screenMDMin: s,
|
|
2949
|
+
screenMDMax: l - 1,
|
|
2950
|
+
screenLG: l,
|
|
2951
|
+
screenLGMin: l,
|
|
2952
|
+
screenLGMax: c - 1,
|
|
2953
|
+
screenXL: c,
|
|
2954
|
+
screenXLMin: c,
|
|
2955
|
+
screenXLMax: f - 1,
|
|
2956
|
+
screenXXL: f,
|
|
2957
|
+
screenXXLMin: f,
|
|
2958
|
+
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
2959
|
+
boxShadowCard: `
|
|
2960
|
+
0 1px 2px -2px ${new le("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
2961
|
+
0 3px 6px 0 ${new le("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
2962
|
+
0 5px 12px 4px ${new le("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
2963
|
+
`,
|
|
2964
|
+
boxShadowDrawerRight: `
|
|
2965
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2966
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2967
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2968
|
+
`,
|
|
2969
|
+
boxShadowDrawerLeft: `
|
|
2970
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2971
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2972
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2973
|
+
`,
|
|
2974
|
+
boxShadowDrawerUp: `
|
|
2975
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2976
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2977
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2978
|
+
`,
|
|
2979
|
+
boxShadowDrawerDown: `
|
|
2980
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2981
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2982
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2983
|
+
`,
|
|
2984
|
+
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2985
|
+
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2986
|
+
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2987
|
+
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
2988
|
+
}), n);
|
|
2989
|
+
}
|
|
2990
|
+
var wn = globalThis && globalThis.__rest || function(e, t) {
|
|
2991
|
+
var r = {};
|
|
2992
|
+
for (var n in e)
|
|
2993
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2994
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2995
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2996
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2997
|
+
return r;
|
|
2998
|
+
};
|
|
2999
|
+
const ko = (e, t, r) => {
|
|
3000
|
+
const n = r.getDerivativeToken(e), {
|
|
3001
|
+
override: o
|
|
3002
|
+
} = t, a = wn(t, ["override"]);
|
|
3003
|
+
let i = Object.assign(Object.assign({}, n), {
|
|
3004
|
+
override: o
|
|
3005
|
+
});
|
|
3006
|
+
return i = Ao(i), a && Object.entries(a).forEach((s) => {
|
|
3007
|
+
let [l, c] = s;
|
|
3008
|
+
const {
|
|
3009
|
+
theme: f
|
|
3010
|
+
} = c, u = wn(c, ["theme"]);
|
|
3011
|
+
let g = u;
|
|
3012
|
+
f && (g = ko(Object.assign(Object.assign({}, i), u), {
|
|
3013
|
+
override: u
|
|
3014
|
+
}, f)), i[l] = g;
|
|
3015
|
+
}), i;
|
|
3016
|
+
};
|
|
3017
|
+
function Ur() {
|
|
3018
|
+
const {
|
|
3019
|
+
token: e,
|
|
3020
|
+
hashed: t,
|
|
3021
|
+
theme: r,
|
|
3022
|
+
override: n
|
|
3023
|
+
} = $r.useContext(wo), o = `${Ys}-${t || ""}`, a = r || Oo, [i, s] = yi(a, [ft, e], {
|
|
3024
|
+
salt: o,
|
|
3025
|
+
override: n,
|
|
3026
|
+
getComputedToken: ko,
|
|
3027
|
+
// formatToken will not be consumed after 1.15.0 with getComputedToken.
|
|
3028
|
+
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
|
|
3029
|
+
formatToken: Ao
|
|
3030
|
+
});
|
|
3031
|
+
return [a, i, t ? s : ""];
|
|
3032
|
+
}
|
|
3033
|
+
function Mt(e) {
|
|
3034
|
+
var t = v.useRef(!1), r = v.useState(e), n = V(r, 2), o = n[0], a = n[1];
|
|
3035
|
+
v.useEffect(function() {
|
|
3036
|
+
return t.current = !1, function() {
|
|
3037
|
+
t.current = !0;
|
|
3038
|
+
};
|
|
3039
|
+
}, []);
|
|
3040
|
+
function i(s, l) {
|
|
3041
|
+
l && t.current || a(s);
|
|
3042
|
+
}
|
|
3043
|
+
return [o, i];
|
|
3044
|
+
}
|
|
3045
|
+
const Mo = function(e) {
|
|
3046
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
3047
|
+
return {
|
|
3048
|
+
boxSizing: "border-box",
|
|
3049
|
+
margin: 0,
|
|
3050
|
+
padding: 0,
|
|
3051
|
+
color: e.colorText,
|
|
3052
|
+
fontSize: e.fontSize,
|
|
3053
|
+
// font-variant: @font-variant-base;
|
|
3054
|
+
lineHeight: e.lineHeight,
|
|
3055
|
+
listStyle: "none",
|
|
3056
|
+
// font-feature-settings: @font-feature-settings-base;
|
|
3057
|
+
fontFamily: t ? "inherit" : e.fontFamily
|
|
3058
|
+
};
|
|
3059
|
+
}, qs = () => ({
|
|
3060
|
+
display: "inline-flex",
|
|
3061
|
+
alignItems: "center",
|
|
3062
|
+
color: "inherit",
|
|
3063
|
+
fontStyle: "normal",
|
|
3064
|
+
lineHeight: 0,
|
|
3065
|
+
textAlign: "center",
|
|
3066
|
+
textTransform: "none",
|
|
3067
|
+
// for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
3068
|
+
verticalAlign: "-0.125em",
|
|
3069
|
+
textRendering: "optimizeLegibility",
|
|
3070
|
+
"-webkit-font-smoothing": "antialiased",
|
|
3071
|
+
"-moz-osx-font-smoothing": "grayscale",
|
|
3072
|
+
"> *": {
|
|
3073
|
+
lineHeight: 1
|
|
3074
|
+
},
|
|
3075
|
+
svg: {
|
|
3076
|
+
display: "inline-block"
|
|
3077
|
+
}
|
|
3078
|
+
}), Qs = (e) => ({
|
|
3079
|
+
a: {
|
|
3080
|
+
color: e.colorLink,
|
|
3081
|
+
textDecoration: e.linkDecoration,
|
|
3082
|
+
backgroundColor: "transparent",
|
|
3083
|
+
outline: "none",
|
|
3084
|
+
cursor: "pointer",
|
|
3085
|
+
transition: `color ${e.motionDurationSlow}`,
|
|
3086
|
+
"-webkit-text-decoration-skip": "objects",
|
|
3087
|
+
"&:hover": {
|
|
3088
|
+
color: e.colorLinkHover
|
|
3089
|
+
},
|
|
3090
|
+
"&:active": {
|
|
3091
|
+
color: e.colorLinkActive
|
|
3092
|
+
},
|
|
3093
|
+
"&:active,\n &:hover": {
|
|
3094
|
+
textDecoration: e.linkHoverDecoration,
|
|
3095
|
+
outline: 0
|
|
3096
|
+
},
|
|
3097
|
+
// https://github.com/ant-design/ant-design/issues/22503
|
|
3098
|
+
"&:focus": {
|
|
3099
|
+
textDecoration: e.linkFocusDecoration,
|
|
3100
|
+
outline: 0
|
|
3101
|
+
},
|
|
3102
|
+
"&[disabled]": {
|
|
3103
|
+
color: e.colorTextDisabled,
|
|
3104
|
+
cursor: "not-allowed"
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
}), Zs = (e, t) => {
|
|
3108
|
+
const {
|
|
3109
|
+
fontFamily: r,
|
|
3110
|
+
fontSize: n
|
|
3111
|
+
} = e, o = `[class^="${t}"], [class*=" ${t}"]`;
|
|
3112
|
+
return {
|
|
3113
|
+
[o]: {
|
|
3114
|
+
fontFamily: r,
|
|
3115
|
+
fontSize: n,
|
|
3116
|
+
boxSizing: "border-box",
|
|
3117
|
+
"&::before, &::after": {
|
|
3118
|
+
boxSizing: "border-box"
|
|
3119
|
+
},
|
|
3120
|
+
[o]: {
|
|
3121
|
+
boxSizing: "border-box",
|
|
3122
|
+
"&::before, &::after": {
|
|
3123
|
+
boxSizing: "border-box"
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
};
|
|
3128
|
+
}, Ro = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
|
|
3129
|
+
let Tr = !0;
|
|
3130
|
+
function wr() {
|
|
3131
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
3132
|
+
t[r] = arguments[r];
|
|
3133
|
+
if (!Ro)
|
|
3134
|
+
return Object.assign.apply(Object, [{}].concat(t));
|
|
3135
|
+
Tr = !1;
|
|
3136
|
+
const n = {};
|
|
3137
|
+
return t.forEach((o) => {
|
|
3138
|
+
Object.keys(o).forEach((i) => {
|
|
3139
|
+
Object.defineProperty(n, i, {
|
|
3140
|
+
configurable: !0,
|
|
3141
|
+
enumerable: !0,
|
|
3142
|
+
get: () => o[i]
|
|
3143
|
+
});
|
|
3144
|
+
});
|
|
3145
|
+
}), Tr = !0, n;
|
|
3146
|
+
}
|
|
3147
|
+
const Pn = {};
|
|
3148
|
+
function Js() {
|
|
3149
|
+
}
|
|
3150
|
+
function ec(e) {
|
|
3151
|
+
let t, r = e, n = Js;
|
|
3152
|
+
return Ro && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), r = new Proxy(e, {
|
|
3153
|
+
get(o, a) {
|
|
3154
|
+
return Tr && t.add(a), o[a];
|
|
3155
|
+
}
|
|
3156
|
+
}), n = (o, a) => {
|
|
3157
|
+
var i;
|
|
3158
|
+
Pn[o] = {
|
|
3159
|
+
global: Array.from(t),
|
|
3160
|
+
component: Object.assign(Object.assign({}, (i = Pn[o]) === null || i === void 0 ? void 0 : i.component), a)
|
|
3161
|
+
};
|
|
3162
|
+
}), {
|
|
3163
|
+
token: r,
|
|
3164
|
+
keys: t,
|
|
3165
|
+
flush: n
|
|
3166
|
+
};
|
|
3167
|
+
}
|
|
3168
|
+
const tc = (e, t) => {
|
|
3169
|
+
const [r, n] = Ur();
|
|
3170
|
+
return br({
|
|
3171
|
+
theme: r,
|
|
3172
|
+
token: n,
|
|
3173
|
+
hashId: "",
|
|
3174
|
+
path: ["ant-design-icons", e],
|
|
3175
|
+
nonce: () => t == null ? void 0 : t.nonce
|
|
3176
|
+
}, () => [{
|
|
3177
|
+
[`.${e}`]: Object.assign(Object.assign({}, qs()), {
|
|
3178
|
+
[`.${e} .${e}-icon`]: {
|
|
3179
|
+
display: "block"
|
|
3180
|
+
}
|
|
3181
|
+
})
|
|
3182
|
+
}]);
|
|
3183
|
+
}, $o = tc;
|
|
3184
|
+
function _o(e, t, r) {
|
|
3185
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3186
|
+
const o = Array.isArray(e) ? e : [e, e], [a] = o, i = o.join("-");
|
|
3187
|
+
return (s) => {
|
|
3188
|
+
const [l, c, f] = Ur(), {
|
|
3189
|
+
getPrefixCls: u,
|
|
3190
|
+
iconPrefixCls: g,
|
|
3191
|
+
csp: h
|
|
3192
|
+
} = Rt(Ve), b = u(), p = {
|
|
3193
|
+
theme: l,
|
|
3194
|
+
token: c,
|
|
3195
|
+
hashId: f,
|
|
3196
|
+
nonce: () => h == null ? void 0 : h.nonce,
|
|
3197
|
+
clientOnly: n.clientOnly,
|
|
3198
|
+
// antd is always at top of styles
|
|
3199
|
+
order: n.order || -999
|
|
3200
|
+
};
|
|
3201
|
+
return br(Object.assign(Object.assign({}, p), {
|
|
3202
|
+
clientOnly: !1,
|
|
3203
|
+
path: ["Shared", b]
|
|
3204
|
+
}), () => [{
|
|
3205
|
+
// Link
|
|
3206
|
+
"&": Qs(c)
|
|
3207
|
+
}]), $o(g, h), [br(Object.assign(Object.assign({}, p), {
|
|
3208
|
+
path: [i, s, g]
|
|
3209
|
+
}), () => {
|
|
3210
|
+
const {
|
|
3211
|
+
token: d,
|
|
3212
|
+
flush: S
|
|
3213
|
+
} = ec(c), m = Object.assign({}, c[a]);
|
|
3214
|
+
if (n.deprecatedTokens) {
|
|
3215
|
+
const {
|
|
3216
|
+
deprecatedTokens: k
|
|
3217
|
+
} = n;
|
|
3218
|
+
k.forEach((L) => {
|
|
3219
|
+
let [w, R] = L;
|
|
3220
|
+
var x;
|
|
3221
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && We(!(m != null && m[w]), `The token '${String(w)}' of ${a} had deprecated, use '${String(R)}' instead.`), (m != null && m[w] || m != null && m[R]) && ((x = m[R]) !== null && x !== void 0 || (m[R] = m == null ? void 0 : m[w]));
|
|
3222
|
+
});
|
|
3223
|
+
}
|
|
3224
|
+
const P = typeof r == "function" ? r(wr(d, m ?? {})) : r, A = Object.assign(Object.assign({}, P), m), T = `.${s}`, C = wr(d, {
|
|
3225
|
+
componentCls: T,
|
|
3226
|
+
prefixCls: s,
|
|
3227
|
+
iconCls: `.${g}`,
|
|
3228
|
+
antCls: `.${b}`
|
|
3229
|
+
}, A), y = t(C, {
|
|
3230
|
+
hashId: f,
|
|
3231
|
+
prefixCls: s,
|
|
3232
|
+
rootPrefixCls: b,
|
|
3233
|
+
iconPrefixCls: g,
|
|
3234
|
+
overrideComponentToken: m
|
|
3235
|
+
});
|
|
3236
|
+
return S(a, A), [n.resetStyle === !1 ? null : Zs(c, s), y];
|
|
3237
|
+
}), f];
|
|
3238
|
+
};
|
|
3239
|
+
}
|
|
3240
|
+
function No(e, t) {
|
|
3241
|
+
return It.reduce((r, n) => {
|
|
3242
|
+
const o = e[`${n}1`], a = e[`${n}3`], i = e[`${n}6`], s = e[`${n}7`];
|
|
3243
|
+
return Object.assign(Object.assign({}, r), t(n, {
|
|
3244
|
+
lightColor: o,
|
|
3245
|
+
lightBorderColor: a,
|
|
3246
|
+
darkColor: i,
|
|
3247
|
+
textColor: s
|
|
3248
|
+
}));
|
|
3249
|
+
}, {});
|
|
3250
|
+
}
|
|
3251
|
+
function rc(e, t) {
|
|
3252
|
+
const r = e || {}, n = r.inherit === !1 || !t ? To : t;
|
|
3253
|
+
return Dn(() => {
|
|
3254
|
+
if (!e)
|
|
3255
|
+
return t;
|
|
3256
|
+
const o = Object.assign({}, n.components);
|
|
3257
|
+
return Object.keys(e.components || {}).forEach((a) => {
|
|
3258
|
+
o[a] = Object.assign(Object.assign({}, o[a]), e.components[a]);
|
|
3259
|
+
}), Object.assign(Object.assign(Object.assign({}, n), r), {
|
|
3260
|
+
token: Object.assign(Object.assign({}, n.token), r.token),
|
|
3261
|
+
components: o
|
|
3262
|
+
});
|
|
3263
|
+
}, [r, n], (o, a) => o.some((i, s) => {
|
|
3264
|
+
const l = a[s];
|
|
3265
|
+
return !ja(i, l, !0);
|
|
3266
|
+
}));
|
|
3267
|
+
}
|
|
3268
|
+
var nc = ["children"], jo = /* @__PURE__ */ v.createContext({});
|
|
3269
|
+
function oc(e) {
|
|
3270
|
+
var t = e.children, r = ur(e, nc);
|
|
3271
|
+
return /* @__PURE__ */ v.createElement(jo.Provider, {
|
|
3272
|
+
value: r
|
|
3273
|
+
}, t);
|
|
3274
|
+
}
|
|
3275
|
+
var ac = /* @__PURE__ */ function(e) {
|
|
3276
|
+
Hn(r, e);
|
|
3277
|
+
var t = Fn(r);
|
|
3278
|
+
function r() {
|
|
3279
|
+
return et(this, r), t.apply(this, arguments);
|
|
3280
|
+
}
|
|
3281
|
+
return tt(r, [{
|
|
3282
|
+
key: "render",
|
|
3283
|
+
value: function() {
|
|
3284
|
+
return this.props.children;
|
|
3285
|
+
}
|
|
3286
|
+
}]), r;
|
|
3287
|
+
}(v.Component), Le = "none", xt = "appear", Et = "enter", Ct = "leave", An = "none", ge = "prepare", qe = "start", Qe = "active", Xr = "end", Io = "prepared";
|
|
3288
|
+
function kn(e, t) {
|
|
3289
|
+
var r = {};
|
|
3290
|
+
return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit".concat(e)] = "webkit".concat(t), r["Moz".concat(e)] = "moz".concat(t), r["ms".concat(e)] = "MS".concat(t), r["O".concat(e)] = "o".concat(t.toLowerCase()), r;
|
|
3291
|
+
}
|
|
3292
|
+
function ic(e, t) {
|
|
3293
|
+
var r = {
|
|
3294
|
+
animationend: kn("Animation", "AnimationEnd"),
|
|
3295
|
+
transitionend: kn("Transition", "TransitionEnd")
|
|
3296
|
+
};
|
|
3297
|
+
return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
|
|
3298
|
+
}
|
|
3299
|
+
var sc = ic(Oe(), typeof window < "u" ? window : {}), Lo = {};
|
|
3300
|
+
if (Oe()) {
|
|
3301
|
+
var cc = document.createElement("div");
|
|
3302
|
+
Lo = cc.style;
|
|
3303
|
+
}
|
|
3304
|
+
var Ot = {};
|
|
3305
|
+
function Do(e) {
|
|
3306
|
+
if (Ot[e])
|
|
3307
|
+
return Ot[e];
|
|
3308
|
+
var t = sc[e];
|
|
3309
|
+
if (t)
|
|
3310
|
+
for (var r = Object.keys(t), n = r.length, o = 0; o < n; o += 1) {
|
|
3311
|
+
var a = r[o];
|
|
3312
|
+
if (Object.prototype.hasOwnProperty.call(t, a) && a in Lo)
|
|
3313
|
+
return Ot[e] = t[a], Ot[e];
|
|
3314
|
+
}
|
|
3315
|
+
return "";
|
|
3316
|
+
}
|
|
3317
|
+
var Ho = Do("animationend"), Fo = Do("transitionend"), zo = !!(Ho && Fo), Mn = Ho || "animationend", Rn = Fo || "transitionend";
|
|
3318
|
+
function $n(e, t) {
|
|
3319
|
+
if (!e)
|
|
3320
|
+
return null;
|
|
3321
|
+
if (J(e) === "object") {
|
|
3322
|
+
var r = t.replace(/-\w/g, function(n) {
|
|
3323
|
+
return n[1].toUpperCase();
|
|
3324
|
+
});
|
|
3325
|
+
return e[r];
|
|
3326
|
+
}
|
|
3327
|
+
return "".concat(e, "-").concat(t);
|
|
3328
|
+
}
|
|
3329
|
+
const lc = function(e) {
|
|
3330
|
+
var t = xe(), r = xe(e);
|
|
3331
|
+
r.current = e;
|
|
3332
|
+
var n = v.useCallback(function(i) {
|
|
3333
|
+
r.current(i);
|
|
3334
|
+
}, []);
|
|
3335
|
+
function o(i) {
|
|
3336
|
+
i && (i.removeEventListener(Rn, n), i.removeEventListener(Mn, n));
|
|
3337
|
+
}
|
|
3338
|
+
function a(i) {
|
|
3339
|
+
t.current && t.current !== i && o(t.current), i && i !== t.current && (i.addEventListener(Rn, n), i.addEventListener(Mn, n), t.current = i);
|
|
3340
|
+
}
|
|
3341
|
+
return v.useEffect(function() {
|
|
3342
|
+
return function() {
|
|
3343
|
+
o(t.current);
|
|
3344
|
+
};
|
|
3345
|
+
}, []), [a, o];
|
|
3346
|
+
};
|
|
3347
|
+
var Bo = Oe() ? pa : Tt;
|
|
3348
|
+
const uc = function() {
|
|
3349
|
+
var e = v.useRef(null);
|
|
3350
|
+
function t() {
|
|
3351
|
+
lr.cancel(e.current);
|
|
3352
|
+
}
|
|
3353
|
+
function r(n) {
|
|
3354
|
+
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
3355
|
+
t();
|
|
3356
|
+
var a = lr(function() {
|
|
3357
|
+
o <= 1 ? n({
|
|
3358
|
+
isCanceled: function() {
|
|
3359
|
+
return a !== e.current;
|
|
3360
|
+
}
|
|
3361
|
+
}) : r(n, o - 1);
|
|
3362
|
+
});
|
|
3363
|
+
e.current = a;
|
|
3364
|
+
}
|
|
3365
|
+
return v.useEffect(function() {
|
|
3366
|
+
return function() {
|
|
3367
|
+
t();
|
|
3368
|
+
};
|
|
3369
|
+
}, []), [r, t];
|
|
3370
|
+
};
|
|
3371
|
+
var fc = [ge, qe, Qe, Xr], dc = [ge, Io], Wo = !1, gc = !0;
|
|
3372
|
+
function Vo(e) {
|
|
3373
|
+
return e === Qe || e === Xr;
|
|
3374
|
+
}
|
|
3375
|
+
const vc = function(e, t, r) {
|
|
3376
|
+
var n = Mt(An), o = V(n, 2), a = o[0], i = o[1], s = uc(), l = V(s, 2), c = l[0], f = l[1];
|
|
3377
|
+
function u() {
|
|
3378
|
+
i(ge, !0);
|
|
3379
|
+
}
|
|
3380
|
+
var g = t ? dc : fc;
|
|
3381
|
+
return Bo(function() {
|
|
3382
|
+
if (a !== An && a !== Xr) {
|
|
3383
|
+
var h = g.indexOf(a), b = g[h + 1], p = r(a);
|
|
3384
|
+
p === Wo ? i(b, !0) : b && c(function(d) {
|
|
3385
|
+
function S() {
|
|
3386
|
+
d.isCanceled() || i(b, !0);
|
|
3387
|
+
}
|
|
3388
|
+
p === !0 ? S() : Promise.resolve(p).then(S);
|
|
3389
|
+
});
|
|
3390
|
+
}
|
|
3391
|
+
}, [e, a]), v.useEffect(function() {
|
|
3392
|
+
return function() {
|
|
3393
|
+
f();
|
|
3394
|
+
};
|
|
3395
|
+
}, []), [u, a];
|
|
3396
|
+
};
|
|
3397
|
+
function pc(e, t, r, n) {
|
|
3398
|
+
var o = n.motionEnter, a = o === void 0 ? !0 : o, i = n.motionAppear, s = i === void 0 ? !0 : i, l = n.motionLeave, c = l === void 0 ? !0 : l, f = n.motionDeadline, u = n.motionLeaveImmediately, g = n.onAppearPrepare, h = n.onEnterPrepare, b = n.onLeavePrepare, p = n.onAppearStart, d = n.onEnterStart, S = n.onLeaveStart, m = n.onAppearActive, P = n.onEnterActive, A = n.onLeaveActive, T = n.onAppearEnd, C = n.onEnterEnd, y = n.onLeaveEnd, k = n.onVisibleChanged, L = Mt(), w = V(L, 2), R = w[0], x = w[1], O = Mt(Le), j = V(O, 2), M = j[0], D = j[1], U = Mt(null), X = V(U, 2), z = X[0], F = X[1], B = xe(!1), H = xe(null);
|
|
3399
|
+
function ae() {
|
|
3400
|
+
return r();
|
|
3401
|
+
}
|
|
3402
|
+
var G = xe(!1);
|
|
3403
|
+
function ie() {
|
|
3404
|
+
D(Le, !0), F(null, !0);
|
|
3405
|
+
}
|
|
3406
|
+
function pe(Y) {
|
|
3407
|
+
var W = ae();
|
|
3408
|
+
if (!(Y && !Y.deadline && Y.target !== W)) {
|
|
3409
|
+
var K = G.current, oe;
|
|
3410
|
+
M === xt && K ? oe = T == null ? void 0 : T(W, Y) : M === Et && K ? oe = C == null ? void 0 : C(W, Y) : M === Ct && K && (oe = y == null ? void 0 : y(W, Y)), M !== Le && K && oe !== !1 && ie();
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
var Re = lc(pe), he = V(Re, 1), je = he[0], $e = function(W) {
|
|
3414
|
+
var K, oe, Te;
|
|
3415
|
+
switch (W) {
|
|
3416
|
+
case xt:
|
|
3417
|
+
return K = {}, I(K, ge, g), I(K, qe, p), I(K, Qe, m), K;
|
|
3418
|
+
case Et:
|
|
3419
|
+
return oe = {}, I(oe, ge, h), I(oe, qe, d), I(oe, Qe, P), oe;
|
|
3420
|
+
case Ct:
|
|
3421
|
+
return Te = {}, I(Te, ge, b), I(Te, qe, S), I(Te, Qe, A), Te;
|
|
3422
|
+
default:
|
|
3423
|
+
return {};
|
|
3424
|
+
}
|
|
3425
|
+
}, fe = v.useMemo(function() {
|
|
3426
|
+
return $e(M);
|
|
3427
|
+
}, [M]), me = vc(M, !e, function(Y) {
|
|
3428
|
+
if (Y === ge) {
|
|
3429
|
+
var W = fe[ge];
|
|
3430
|
+
return W ? W(ae()) : Wo;
|
|
3431
|
+
}
|
|
3432
|
+
if (ne in fe) {
|
|
3433
|
+
var K;
|
|
3434
|
+
F(((K = fe[ne]) === null || K === void 0 ? void 0 : K.call(fe, ae(), null)) || null);
|
|
3435
|
+
}
|
|
3436
|
+
return ne === Qe && (je(ae()), f > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
|
|
3437
|
+
pe({
|
|
3438
|
+
deadline: !0
|
|
3439
|
+
});
|
|
3440
|
+
}, f))), ne === Io && ie(), gc;
|
|
3441
|
+
}), _e = V(me, 2), E = _e[0], ne = _e[1], Q = Vo(ne);
|
|
3442
|
+
G.current = Q, Bo(function() {
|
|
3443
|
+
x(t);
|
|
3444
|
+
var Y = B.current;
|
|
3445
|
+
B.current = !0;
|
|
3446
|
+
var W;
|
|
3447
|
+
!Y && t && s && (W = xt), Y && t && a && (W = Et), (Y && !t && c || !Y && u && !t && c) && (W = Ct);
|
|
3448
|
+
var K = $e(W);
|
|
3449
|
+
W && (e || K[ge]) ? (D(W), E()) : D(Le);
|
|
3450
|
+
}, [t]), Tt(function() {
|
|
3451
|
+
// Cancel appear
|
|
3452
|
+
(M === xt && !s || // Cancel enter
|
|
3453
|
+
M === Et && !a || // Cancel leave
|
|
3454
|
+
M === Ct && !c) && D(Le);
|
|
3455
|
+
}, [s, a, c]), Tt(function() {
|
|
3456
|
+
return function() {
|
|
3457
|
+
B.current = !1, clearTimeout(H.current);
|
|
3458
|
+
};
|
|
3459
|
+
}, []);
|
|
3460
|
+
var be = v.useRef(!1);
|
|
3461
|
+
Tt(function() {
|
|
3462
|
+
R && (be.current = !0), R !== void 0 && M === Le && ((be.current || R) && (k == null || k(R)), be.current = !0);
|
|
3463
|
+
}, [R, M]);
|
|
3464
|
+
var Ie = z;
|
|
3465
|
+
return fe[ge] && ne === qe && (Ie = $({
|
|
3466
|
+
transition: "none"
|
|
3467
|
+
}, Ie)), [M, ne, Ie, R ?? t];
|
|
3468
|
+
}
|
|
3469
|
+
function hc(e) {
|
|
3470
|
+
var t = e;
|
|
3471
|
+
J(e) === "object" && (t = e.transitionSupport);
|
|
3472
|
+
function r(o, a) {
|
|
3473
|
+
return !!(o.motionName && t && a !== !1);
|
|
3474
|
+
}
|
|
3475
|
+
var n = /* @__PURE__ */ v.forwardRef(function(o, a) {
|
|
3476
|
+
var i = o.visible, s = i === void 0 ? !0 : i, l = o.removeOnLeave, c = l === void 0 ? !0 : l, f = o.forceRender, u = o.children, g = o.motionName, h = o.leavedClassName, b = o.eventProps, p = v.useContext(jo), d = p.motion, S = r(o, d), m = xe(), P = xe();
|
|
3477
|
+
function A() {
|
|
3478
|
+
try {
|
|
3479
|
+
return m.current instanceof HTMLElement ? m.current : Pa(P.current);
|
|
3480
|
+
} catch {
|
|
3481
|
+
return null;
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
var T = pc(S, s, A, o), C = V(T, 4), y = C[0], k = C[1], L = C[2], w = C[3], R = v.useRef(w);
|
|
3485
|
+
w && (R.current = !0);
|
|
3486
|
+
var x = v.useCallback(function(F) {
|
|
3487
|
+
m.current = F, Aa(a, F);
|
|
3488
|
+
}, [a]), O, j = $($({}, b), {}, {
|
|
3489
|
+
visible: s
|
|
3490
|
+
});
|
|
3491
|
+
if (!u)
|
|
3492
|
+
O = null;
|
|
3493
|
+
else if (y === Le)
|
|
3494
|
+
w ? O = u($({}, j), x) : !c && R.current && h ? O = u($($({}, j), {}, {
|
|
3495
|
+
className: h
|
|
3496
|
+
}), x) : f || !c && !h ? O = u($($({}, j), {}, {
|
|
3497
|
+
style: {
|
|
3498
|
+
display: "none"
|
|
3499
|
+
}
|
|
3500
|
+
}), x) : O = null;
|
|
3501
|
+
else {
|
|
3502
|
+
var M, D;
|
|
3503
|
+
k === ge ? D = "prepare" : Vo(k) ? D = "active" : k === qe && (D = "start");
|
|
3504
|
+
var U = $n(g, "".concat(y, "-").concat(D));
|
|
3505
|
+
O = u($($({}, j), {}, {
|
|
3506
|
+
className: Ee($n(g, y), (M = {}, I(M, U, U && D), I(M, g, typeof g == "string"), M)),
|
|
3507
|
+
style: L
|
|
3508
|
+
}), x);
|
|
3509
|
+
}
|
|
3510
|
+
if (/* @__PURE__ */ v.isValidElement(O) && ka(O)) {
|
|
3511
|
+
var X = O, z = X.ref;
|
|
3512
|
+
z || (O = /* @__PURE__ */ v.cloneElement(O, {
|
|
3513
|
+
ref: x
|
|
3514
|
+
}));
|
|
3515
|
+
}
|
|
3516
|
+
return /* @__PURE__ */ v.createElement(ac, {
|
|
3517
|
+
ref: P
|
|
3518
|
+
}, O);
|
|
3519
|
+
});
|
|
3520
|
+
return n.displayName = "CSSMotion", n;
|
|
3521
|
+
}
|
|
3522
|
+
const Uo = hc(zo);
|
|
3523
|
+
var Pr = "add", Ar = "keep", kr = "remove", nr = "removed";
|
|
3524
|
+
function mc(e) {
|
|
3525
|
+
var t;
|
|
3526
|
+
return e && J(e) === "object" && "key" in e ? t = e : t = {
|
|
3527
|
+
key: e
|
|
3528
|
+
}, $($({}, t), {}, {
|
|
3529
|
+
key: String(t.key)
|
|
3530
|
+
});
|
|
3531
|
+
}
|
|
3532
|
+
function Mr() {
|
|
3533
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3534
|
+
return e.map(mc);
|
|
3535
|
+
}
|
|
3536
|
+
function bc() {
|
|
3537
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, o = t.length, a = Mr(e), i = Mr(t);
|
|
3538
|
+
a.forEach(function(c) {
|
|
3539
|
+
for (var f = !1, u = n; u < o; u += 1) {
|
|
3540
|
+
var g = i[u];
|
|
3541
|
+
if (g.key === c.key) {
|
|
3542
|
+
n < u && (r = r.concat(i.slice(n, u).map(function(h) {
|
|
3543
|
+
return $($({}, h), {}, {
|
|
3544
|
+
status: Pr
|
|
3545
|
+
});
|
|
3546
|
+
})), n = u), r.push($($({}, g), {}, {
|
|
3547
|
+
status: Ar
|
|
3548
|
+
})), n += 1, f = !0;
|
|
3549
|
+
break;
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
f || r.push($($({}, c), {}, {
|
|
3553
|
+
status: kr
|
|
3554
|
+
}));
|
|
3555
|
+
}), n < o && (r = r.concat(i.slice(n).map(function(c) {
|
|
3556
|
+
return $($({}, c), {}, {
|
|
3557
|
+
status: Pr
|
|
3558
|
+
});
|
|
3559
|
+
})));
|
|
3560
|
+
var s = {};
|
|
3561
|
+
r.forEach(function(c) {
|
|
3562
|
+
var f = c.key;
|
|
3563
|
+
s[f] = (s[f] || 0) + 1;
|
|
3564
|
+
});
|
|
3565
|
+
var l = Object.keys(s).filter(function(c) {
|
|
3566
|
+
return s[c] > 1;
|
|
3567
|
+
});
|
|
3568
|
+
return l.forEach(function(c) {
|
|
3569
|
+
r = r.filter(function(f) {
|
|
3570
|
+
var u = f.key, g = f.status;
|
|
3571
|
+
return u !== c || g !== kr;
|
|
3572
|
+
}), r.forEach(function(f) {
|
|
3573
|
+
f.key === c && (f.status = Ar);
|
|
3574
|
+
});
|
|
3575
|
+
}), r;
|
|
3576
|
+
}
|
|
3577
|
+
var yc = ["component", "children", "onVisibleChanged", "onAllRemoved"], Sc = ["status"], xc = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
3578
|
+
function Ec(e) {
|
|
3579
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Uo, r = /* @__PURE__ */ function(n) {
|
|
3580
|
+
Hn(a, n);
|
|
3581
|
+
var o = Fn(a);
|
|
3582
|
+
function a() {
|
|
3583
|
+
var i;
|
|
3584
|
+
et(this, a);
|
|
3585
|
+
for (var s = arguments.length, l = new Array(s), c = 0; c < s; c++)
|
|
3586
|
+
l[c] = arguments[c];
|
|
3587
|
+
return i = o.call.apply(o, [this].concat(l)), I(sr(i), "state", {
|
|
3588
|
+
keyEntities: []
|
|
3589
|
+
}), I(sr(i), "removeKey", function(f) {
|
|
3590
|
+
var u = i.state.keyEntities, g = u.map(function(h) {
|
|
3591
|
+
return h.key !== f ? h : $($({}, h), {}, {
|
|
3592
|
+
status: nr
|
|
3593
|
+
});
|
|
3594
|
+
});
|
|
3595
|
+
return i.setState({
|
|
3596
|
+
keyEntities: g
|
|
3597
|
+
}), g.filter(function(h) {
|
|
3598
|
+
var b = h.status;
|
|
3599
|
+
return b !== nr;
|
|
3600
|
+
}).length;
|
|
3601
|
+
}), i;
|
|
3602
|
+
}
|
|
3603
|
+
return tt(a, [{
|
|
3604
|
+
key: "render",
|
|
3605
|
+
value: function() {
|
|
3606
|
+
var s = this, l = this.state.keyEntities, c = this.props, f = c.component, u = c.children, g = c.onVisibleChanged, h = c.onAllRemoved, b = ur(c, yc), p = f || v.Fragment, d = {};
|
|
3607
|
+
return xc.forEach(function(S) {
|
|
3608
|
+
d[S] = b[S], delete b[S];
|
|
3609
|
+
}), delete b.keys, /* @__PURE__ */ v.createElement(p, b, l.map(function(S, m) {
|
|
3610
|
+
var P = S.status, A = ur(S, Sc), T = P === Pr || P === Ar;
|
|
3611
|
+
return /* @__PURE__ */ v.createElement(t, $t({}, d, {
|
|
3612
|
+
key: A.key,
|
|
3613
|
+
visible: T,
|
|
3614
|
+
eventProps: A,
|
|
3615
|
+
onVisibleChanged: function(y) {
|
|
3616
|
+
if (g == null || g(y, {
|
|
3617
|
+
key: A.key
|
|
3618
|
+
}), !y) {
|
|
3619
|
+
var k = s.removeKey(A.key);
|
|
3620
|
+
k === 0 && h && h();
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
}), function(C, y) {
|
|
3624
|
+
return u($($({}, C), {}, {
|
|
3625
|
+
index: m
|
|
3626
|
+
}), y);
|
|
3627
|
+
});
|
|
3628
|
+
}));
|
|
3629
|
+
}
|
|
3630
|
+
}], [{
|
|
3631
|
+
key: "getDerivedStateFromProps",
|
|
3632
|
+
value: function(s, l) {
|
|
3633
|
+
var c = s.keys, f = l.keyEntities, u = Mr(c), g = bc(f, u);
|
|
3634
|
+
return {
|
|
3635
|
+
keyEntities: g.filter(function(h) {
|
|
3636
|
+
var b = f.find(function(p) {
|
|
3637
|
+
var d = p.key;
|
|
3638
|
+
return h.key === d;
|
|
3639
|
+
});
|
|
3640
|
+
return !(b && b.status === nr && h.status === kr);
|
|
3641
|
+
})
|
|
3642
|
+
};
|
|
3643
|
+
}
|
|
3644
|
+
}]), a;
|
|
3645
|
+
}(v.Component);
|
|
3646
|
+
return I(r, "defaultProps", {
|
|
3647
|
+
component: "div"
|
|
3648
|
+
}), r;
|
|
3649
|
+
}
|
|
3650
|
+
Ec(zo);
|
|
3651
|
+
function Cc(e) {
|
|
3652
|
+
const {
|
|
3653
|
+
children: t
|
|
3654
|
+
} = e, [, r] = Ur(), {
|
|
3655
|
+
motion: n
|
|
3656
|
+
} = r, o = v.useRef(!1);
|
|
3657
|
+
return o.current = o.current || n === !1, o.current ? /* @__PURE__ */ v.createElement(oc, {
|
|
3658
|
+
motion: n
|
|
3659
|
+
}, t) : t;
|
|
3660
|
+
}
|
|
3661
|
+
const Xo = /* @__PURE__ */ v.memo((e) => {
|
|
3662
|
+
let {
|
|
3663
|
+
dropdownMatchSelectWidth: t
|
|
3664
|
+
} = e;
|
|
3665
|
+
return po("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
|
|
3666
|
+
});
|
|
3667
|
+
process.env.NODE_ENV !== "production" && (Xo.displayName = "PropWarning");
|
|
3668
|
+
const Oc = process.env.NODE_ENV !== "production" ? Xo : () => null;
|
|
3669
|
+
var Tc = globalThis && globalThis.__rest || function(e, t) {
|
|
3670
|
+
var r = {};
|
|
3671
|
+
for (var n in e)
|
|
3672
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3673
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3674
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
3675
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
3676
|
+
return r;
|
|
3677
|
+
};
|
|
3678
|
+
let Rr = !1;
|
|
3679
|
+
process.env.NODE_ENV;
|
|
3680
|
+
const wc = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "pagination", "form", "select", "button"], Pc = "ant";
|
|
3681
|
+
let Go;
|
|
3682
|
+
function Ac() {
|
|
3683
|
+
return Go || Pc;
|
|
3684
|
+
}
|
|
3685
|
+
function kc(e) {
|
|
3686
|
+
return Object.keys(e).some((t) => t.endsWith("Color"));
|
|
3687
|
+
}
|
|
3688
|
+
const Mc = (e) => {
|
|
3689
|
+
let {
|
|
3690
|
+
prefixCls: t,
|
|
3691
|
+
iconPrefixCls: r,
|
|
3692
|
+
theme: n
|
|
3693
|
+
} = e;
|
|
3694
|
+
t !== void 0 && (Go = t), n && kc(n) && (process.env.NODE_ENV !== "production" && Ft(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Ws(Ac(), n));
|
|
3695
|
+
}, Rc = (e) => {
|
|
3696
|
+
const {
|
|
3697
|
+
children: t,
|
|
3698
|
+
csp: r,
|
|
3699
|
+
autoInsertSpaceInButton: n,
|
|
3700
|
+
alert: o,
|
|
3701
|
+
anchor: a,
|
|
3702
|
+
form: i,
|
|
3703
|
+
locale: s,
|
|
3704
|
+
componentSize: l,
|
|
3705
|
+
direction: c,
|
|
3706
|
+
space: f,
|
|
3707
|
+
virtual: u,
|
|
3708
|
+
dropdownMatchSelectWidth: g,
|
|
3709
|
+
popupMatchSelectWidth: h,
|
|
3710
|
+
popupOverflow: b,
|
|
3711
|
+
legacyLocale: p,
|
|
3712
|
+
parentContext: d,
|
|
3713
|
+
iconPrefixCls: S,
|
|
3714
|
+
theme: m,
|
|
3715
|
+
componentDisabled: P,
|
|
3716
|
+
segmented: A,
|
|
3717
|
+
statistic: T,
|
|
3718
|
+
spin: C,
|
|
3719
|
+
calendar: y,
|
|
3720
|
+
carousel: k,
|
|
3721
|
+
cascader: L,
|
|
3722
|
+
collapse: w,
|
|
3723
|
+
typography: R,
|
|
3724
|
+
checkbox: x,
|
|
3725
|
+
descriptions: O,
|
|
3726
|
+
divider: j,
|
|
3727
|
+
drawer: M,
|
|
3728
|
+
skeleton: D,
|
|
3729
|
+
steps: U,
|
|
3730
|
+
image: X,
|
|
3731
|
+
layout: z,
|
|
3732
|
+
list: F,
|
|
3733
|
+
mentions: B,
|
|
3734
|
+
modal: H,
|
|
3735
|
+
progress: ae,
|
|
3736
|
+
result: G,
|
|
3737
|
+
slider: ie,
|
|
3738
|
+
breadcrumb: pe,
|
|
3739
|
+
menu: Re,
|
|
3740
|
+
pagination: he,
|
|
3741
|
+
input: je,
|
|
3742
|
+
empty: $e,
|
|
3743
|
+
badge: fe,
|
|
3744
|
+
radio: me,
|
|
3745
|
+
rate: _e,
|
|
3746
|
+
switch: E,
|
|
3747
|
+
transfer: ne,
|
|
3748
|
+
avatar: Q,
|
|
3749
|
+
message: be,
|
|
3750
|
+
tag: Ie,
|
|
3751
|
+
table: Y,
|
|
3752
|
+
card: W,
|
|
3753
|
+
tabs: K,
|
|
3754
|
+
timeline: oe,
|
|
3755
|
+
timePicker: Te,
|
|
3756
|
+
upload: Ue,
|
|
3757
|
+
notification: Jo,
|
|
3758
|
+
tree: ea,
|
|
3759
|
+
colorPicker: ta,
|
|
3760
|
+
datePicker: ra,
|
|
3761
|
+
rangePicker: na,
|
|
3762
|
+
flex: oa,
|
|
3763
|
+
wave: aa,
|
|
3764
|
+
dropdown: ia,
|
|
3765
|
+
warning: sa
|
|
3766
|
+
} = e, ca = v.useCallback((Z, te) => {
|
|
3767
|
+
const {
|
|
3768
|
+
prefixCls: ye
|
|
3769
|
+
} = e;
|
|
3770
|
+
if (te)
|
|
3771
|
+
return te;
|
|
3772
|
+
const Se = ye || d.getPrefixCls("");
|
|
3773
|
+
return Z ? `${Se}-${Z}` : Se;
|
|
3774
|
+
}, [d.getPrefixCls, e.prefixCls]), at = S || d.iconPrefixCls || Po, it = r || d.csp;
|
|
3775
|
+
$o(at, it);
|
|
3776
|
+
const dt = rc(m, d.theme);
|
|
3777
|
+
process.env.NODE_ENV !== "production" && (Rr = Rr || !!dt);
|
|
3778
|
+
const Bt = {
|
|
3779
|
+
csp: it,
|
|
3780
|
+
autoInsertSpaceInButton: n,
|
|
3781
|
+
alert: o,
|
|
3782
|
+
anchor: a,
|
|
3783
|
+
locale: s || p,
|
|
3784
|
+
direction: c,
|
|
3785
|
+
space: f,
|
|
3786
|
+
virtual: u,
|
|
3787
|
+
popupMatchSelectWidth: h ?? g,
|
|
3788
|
+
popupOverflow: b,
|
|
3789
|
+
getPrefixCls: ca,
|
|
3790
|
+
iconPrefixCls: at,
|
|
3791
|
+
theme: dt,
|
|
3792
|
+
segmented: A,
|
|
3793
|
+
statistic: T,
|
|
3794
|
+
spin: C,
|
|
3795
|
+
calendar: y,
|
|
3796
|
+
carousel: k,
|
|
3797
|
+
cascader: L,
|
|
3798
|
+
collapse: w,
|
|
3799
|
+
typography: R,
|
|
3800
|
+
checkbox: x,
|
|
3801
|
+
descriptions: O,
|
|
3802
|
+
divider: j,
|
|
3803
|
+
drawer: M,
|
|
3804
|
+
skeleton: D,
|
|
3805
|
+
steps: U,
|
|
3806
|
+
image: X,
|
|
3807
|
+
input: je,
|
|
3808
|
+
layout: z,
|
|
3809
|
+
list: F,
|
|
3810
|
+
mentions: B,
|
|
3811
|
+
modal: H,
|
|
3812
|
+
progress: ae,
|
|
3813
|
+
result: G,
|
|
3814
|
+
slider: ie,
|
|
3815
|
+
breadcrumb: pe,
|
|
3816
|
+
menu: Re,
|
|
3817
|
+
pagination: he,
|
|
3818
|
+
empty: $e,
|
|
3819
|
+
badge: fe,
|
|
3820
|
+
radio: me,
|
|
3821
|
+
rate: _e,
|
|
3822
|
+
switch: E,
|
|
3823
|
+
transfer: ne,
|
|
3824
|
+
avatar: Q,
|
|
3825
|
+
message: be,
|
|
3826
|
+
tag: Ie,
|
|
3827
|
+
table: Y,
|
|
3828
|
+
card: W,
|
|
3829
|
+
tabs: K,
|
|
3830
|
+
timeline: oe,
|
|
3831
|
+
timePicker: Te,
|
|
3832
|
+
upload: Ue,
|
|
3833
|
+
notification: Jo,
|
|
3834
|
+
tree: ea,
|
|
3835
|
+
colorPicker: ta,
|
|
3836
|
+
datePicker: ra,
|
|
3837
|
+
rangePicker: na,
|
|
3838
|
+
flex: oa,
|
|
3839
|
+
wave: aa,
|
|
3840
|
+
dropdown: ia,
|
|
3841
|
+
warning: sa
|
|
3842
|
+
}, gt = Object.assign({}, d);
|
|
3843
|
+
Object.keys(Bt).forEach((Z) => {
|
|
3844
|
+
Bt[Z] !== void 0 && (gt[Z] = Bt[Z]);
|
|
3845
|
+
}), wc.forEach((Z) => {
|
|
3846
|
+
const te = e[Z];
|
|
3847
|
+
te && (gt[Z] = te);
|
|
3848
|
+
});
|
|
3849
|
+
const Xe = Dn(() => gt, gt, (Z, te) => {
|
|
3850
|
+
const ye = Object.keys(Z), Se = Object.keys(te);
|
|
3851
|
+
return ye.length !== Se.length || ye.some((vt) => Z[vt] !== te[vt]);
|
|
3852
|
+
}), la = v.useMemo(() => ({
|
|
3853
|
+
prefixCls: at,
|
|
3854
|
+
csp: it
|
|
3855
|
+
}), [at, it]);
|
|
3856
|
+
let ee = /* @__PURE__ */ v.createElement(v.Fragment, null, /* @__PURE__ */ v.createElement(Oc, {
|
|
3857
|
+
dropdownMatchSelectWidth: g
|
|
3858
|
+
}), t);
|
|
3859
|
+
const Yr = v.useMemo(() => {
|
|
3860
|
+
var Z, te, ye, Se;
|
|
3861
|
+
return Ji(((Z = zt.Form) === null || Z === void 0 ? void 0 : Z.defaultValidateMessages) || {}, ((ye = (te = Xe.locale) === null || te === void 0 ? void 0 : te.Form) === null || ye === void 0 ? void 0 : ye.defaultValidateMessages) || {}, ((Se = Xe.form) === null || Se === void 0 ? void 0 : Se.validateMessages) || {}, (i == null ? void 0 : i.validateMessages) || {});
|
|
3862
|
+
}, [Xe, i == null ? void 0 : i.validateMessages]);
|
|
3863
|
+
Object.keys(Yr).length > 0 && (ee = /* @__PURE__ */ v.createElement(ts.Provider, {
|
|
3864
|
+
value: Yr
|
|
3865
|
+
}, ee)), s && (ee = /* @__PURE__ */ v.createElement(ls, {
|
|
3866
|
+
locale: s,
|
|
3867
|
+
_ANT_MARK__: bo
|
|
3868
|
+
}, ee)), (at || it) && (ee = /* @__PURE__ */ v.createElement(Ki.Provider, {
|
|
3869
|
+
value: la
|
|
3870
|
+
}, ee)), l && (ee = /* @__PURE__ */ v.createElement(Xs, {
|
|
3871
|
+
size: l
|
|
3872
|
+
}, ee)), ee = /* @__PURE__ */ v.createElement(Cc, null, ee);
|
|
3873
|
+
const ua = v.useMemo(() => {
|
|
3874
|
+
const Z = dt || {}, {
|
|
3875
|
+
algorithm: te,
|
|
3876
|
+
token: ye,
|
|
3877
|
+
components: Se
|
|
3878
|
+
} = Z, vt = Tc(Z, ["algorithm", "token", "components"]), Kr = te && (!Array.isArray(te) || te.length > 0) ? gr(te) : Oo, Wt = {};
|
|
3879
|
+
Object.entries(Se || {}).forEach((fa) => {
|
|
3880
|
+
let [da, ga] = fa;
|
|
3881
|
+
const we = Object.assign({}, ga);
|
|
3882
|
+
"algorithm" in we && (we.algorithm === !0 ? we.theme = Kr : (Array.isArray(we.algorithm) || typeof we.algorithm == "function") && (we.theme = gr(we.algorithm)), delete we.algorithm), Wt[da] = we;
|
|
3883
|
+
});
|
|
3884
|
+
const qr = Object.assign(Object.assign({}, ft), ye);
|
|
3885
|
+
return Object.assign(Object.assign({}, vt), {
|
|
3886
|
+
theme: Kr,
|
|
3887
|
+
token: qr,
|
|
3888
|
+
components: Wt,
|
|
3889
|
+
override: Object.assign({
|
|
3890
|
+
override: qr
|
|
3891
|
+
}, Wt)
|
|
3892
|
+
});
|
|
3893
|
+
}, [dt]);
|
|
3894
|
+
return m && (ee = /* @__PURE__ */ v.createElement(wo.Provider, {
|
|
3895
|
+
value: ua
|
|
3896
|
+
}, ee)), Xe.warning && (ee = /* @__PURE__ */ v.createElement(vo.Provider, {
|
|
3897
|
+
value: Xe.warning
|
|
3898
|
+
}, ee)), P !== void 0 && (ee = /* @__PURE__ */ v.createElement(Vs, {
|
|
3899
|
+
disabled: P
|
|
3900
|
+
}, ee)), /* @__PURE__ */ v.createElement(Ve.Provider, {
|
|
3901
|
+
value: Xe
|
|
3902
|
+
}, ee);
|
|
3903
|
+
}, ot = (e) => {
|
|
3904
|
+
const t = v.useContext(Ve), r = v.useContext(mo);
|
|
3905
|
+
return /* @__PURE__ */ v.createElement(Rc, Object.assign({
|
|
3906
|
+
parentContext: t,
|
|
3907
|
+
legacyLocale: r
|
|
3908
|
+
}, e));
|
|
3909
|
+
};
|
|
3910
|
+
ot.ConfigContext = Ve;
|
|
3911
|
+
ot.SizeContext = Vr;
|
|
3912
|
+
ot.config = Mc;
|
|
3913
|
+
ot.useConfig = Gs;
|
|
3914
|
+
Object.defineProperty(ot, "SizeContext", {
|
|
3915
|
+
get: () => (process.env.NODE_ENV !== "production" && Ft(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), Vr)
|
|
3916
|
+
});
|
|
3917
|
+
process.env.NODE_ENV !== "production" && (ot.displayName = "ConfigProvider");
|
|
3918
|
+
const {
|
|
3919
|
+
isValidElement: $c
|
|
3920
|
+
} = v;
|
|
3921
|
+
function _c(e, t, r) {
|
|
3922
|
+
return $c(e) ? /* @__PURE__ */ v.cloneElement(e, typeof r == "function" ? r(e.props || {}) : r) : t;
|
|
3923
|
+
}
|
|
3924
|
+
function Yo(e, t) {
|
|
3925
|
+
return _c(e, e, t);
|
|
3926
|
+
}
|
|
3927
|
+
const Nc = It.map((e) => `${e}-inverse`);
|
|
3928
|
+
function Ko(e) {
|
|
3929
|
+
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(Ce(Nc), Ce(It)).includes(e) : It.includes(e);
|
|
3930
|
+
}
|
|
3931
|
+
const jc = new nt("antStatusProcessing", {
|
|
3932
|
+
"0%": {
|
|
3933
|
+
transform: "scale(0.8)",
|
|
3934
|
+
opacity: 0.5
|
|
3935
|
+
},
|
|
3936
|
+
"100%": {
|
|
3937
|
+
transform: "scale(2.4)",
|
|
3938
|
+
opacity: 0
|
|
3939
|
+
}
|
|
3940
|
+
}), Ic = new nt("antZoomBadgeIn", {
|
|
3941
|
+
"0%": {
|
|
3942
|
+
transform: "scale(0) translate(50%, -50%)",
|
|
3943
|
+
opacity: 0
|
|
3944
|
+
},
|
|
3945
|
+
"100%": {
|
|
3946
|
+
transform: "scale(1) translate(50%, -50%)"
|
|
3947
|
+
}
|
|
3948
|
+
}), Lc = new nt("antZoomBadgeOut", {
|
|
3949
|
+
"0%": {
|
|
3950
|
+
transform: "scale(1) translate(50%, -50%)"
|
|
3951
|
+
},
|
|
3952
|
+
"100%": {
|
|
3953
|
+
transform: "scale(0) translate(50%, -50%)",
|
|
3954
|
+
opacity: 0
|
|
3955
|
+
}
|
|
3956
|
+
}), Dc = new nt("antNoWrapperZoomBadgeIn", {
|
|
3957
|
+
"0%": {
|
|
3958
|
+
transform: "scale(0)",
|
|
3959
|
+
opacity: 0
|
|
3960
|
+
},
|
|
3961
|
+
"100%": {
|
|
3962
|
+
transform: "scale(1)"
|
|
3963
|
+
}
|
|
3964
|
+
}), Hc = new nt("antNoWrapperZoomBadgeOut", {
|
|
3965
|
+
"0%": {
|
|
3966
|
+
transform: "scale(1)"
|
|
3967
|
+
},
|
|
3968
|
+
"100%": {
|
|
3969
|
+
transform: "scale(0)",
|
|
3970
|
+
opacity: 0
|
|
3971
|
+
}
|
|
3972
|
+
}), Fc = new nt("antBadgeLoadingCircle", {
|
|
3973
|
+
"0%": {
|
|
3974
|
+
transformOrigin: "50%"
|
|
3975
|
+
},
|
|
3976
|
+
"100%": {
|
|
3977
|
+
transform: "translate(50%, -50%) rotate(360deg)",
|
|
3978
|
+
transformOrigin: "50%"
|
|
3979
|
+
}
|
|
3980
|
+
}), zc = (e) => {
|
|
3981
|
+
const {
|
|
3982
|
+
componentCls: t,
|
|
3983
|
+
iconCls: r,
|
|
3984
|
+
antCls: n,
|
|
3985
|
+
badgeShadowSize: o,
|
|
3986
|
+
motionDurationSlow: a,
|
|
3987
|
+
textFontSize: i,
|
|
3988
|
+
textFontSizeSM: s,
|
|
3989
|
+
statusSize: l,
|
|
3990
|
+
dotSize: c,
|
|
3991
|
+
textFontWeight: f,
|
|
3992
|
+
indicatorHeight: u,
|
|
3993
|
+
indicatorHeightSM: g,
|
|
3994
|
+
marginXS: h
|
|
3995
|
+
} = e, b = `${n}-scroll-number`, p = No(e, (d, S) => {
|
|
3996
|
+
let {
|
|
3997
|
+
darkColor: m
|
|
3998
|
+
} = S;
|
|
3999
|
+
return {
|
|
4000
|
+
[`&${t} ${t}-color-${d}`]: {
|
|
4001
|
+
background: m,
|
|
4002
|
+
[`&:not(${t}-count)`]: {
|
|
4003
|
+
color: m
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
};
|
|
4007
|
+
});
|
|
4008
|
+
return {
|
|
4009
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Mo(e)), {
|
|
4010
|
+
position: "relative",
|
|
4011
|
+
display: "inline-block",
|
|
4012
|
+
width: "fit-content",
|
|
4013
|
+
lineHeight: 1,
|
|
4014
|
+
[`${t}-count`]: {
|
|
4015
|
+
zIndex: e.indicatorZIndex,
|
|
4016
|
+
minWidth: u,
|
|
4017
|
+
height: u,
|
|
4018
|
+
color: e.badgeTextColor,
|
|
4019
|
+
fontWeight: f,
|
|
4020
|
+
fontSize: i,
|
|
4021
|
+
lineHeight: `${u}px`,
|
|
4022
|
+
whiteSpace: "nowrap",
|
|
4023
|
+
textAlign: "center",
|
|
4024
|
+
background: e.badgeColor,
|
|
4025
|
+
borderRadius: u / 2,
|
|
4026
|
+
boxShadow: `0 0 0 ${o}px ${e.badgeShadowColor}`,
|
|
4027
|
+
transition: `background ${e.motionDurationMid}`,
|
|
4028
|
+
a: {
|
|
4029
|
+
color: e.badgeTextColor
|
|
4030
|
+
},
|
|
4031
|
+
"a:hover": {
|
|
4032
|
+
color: e.badgeTextColor
|
|
4033
|
+
},
|
|
4034
|
+
"a:hover &": {
|
|
4035
|
+
background: e.badgeColorHover
|
|
4036
|
+
}
|
|
4037
|
+
},
|
|
4038
|
+
[`${t}-count-sm`]: {
|
|
4039
|
+
minWidth: g,
|
|
4040
|
+
height: g,
|
|
4041
|
+
fontSize: s,
|
|
4042
|
+
lineHeight: `${g}px`,
|
|
4043
|
+
borderRadius: g / 2
|
|
4044
|
+
},
|
|
4045
|
+
[`${t}-multiple-words`]: {
|
|
4046
|
+
padding: `0 ${e.paddingXS}px`,
|
|
4047
|
+
bdi: {
|
|
4048
|
+
unicodeBidi: "plaintext"
|
|
4049
|
+
}
|
|
4050
|
+
},
|
|
4051
|
+
[`${t}-dot`]: {
|
|
4052
|
+
zIndex: e.indicatorZIndex,
|
|
4053
|
+
width: c,
|
|
4054
|
+
minWidth: c,
|
|
4055
|
+
height: c,
|
|
4056
|
+
background: e.badgeColor,
|
|
4057
|
+
borderRadius: "100%",
|
|
4058
|
+
boxShadow: `0 0 0 ${o}px ${e.badgeShadowColor}`
|
|
4059
|
+
},
|
|
4060
|
+
[`${t}-dot${b}`]: {
|
|
4061
|
+
transition: `background ${a}`
|
|
4062
|
+
},
|
|
4063
|
+
[`${t}-count, ${t}-dot, ${b}-custom-component`]: {
|
|
4064
|
+
position: "absolute",
|
|
4065
|
+
top: 0,
|
|
4066
|
+
insetInlineEnd: 0,
|
|
4067
|
+
transform: "translate(50%, -50%)",
|
|
4068
|
+
transformOrigin: "100% 0%",
|
|
4069
|
+
[`&${r}-spin`]: {
|
|
4070
|
+
animationName: Fc,
|
|
4071
|
+
animationDuration: "1s",
|
|
4072
|
+
animationIterationCount: "infinite",
|
|
4073
|
+
animationTimingFunction: "linear"
|
|
4074
|
+
}
|
|
4075
|
+
},
|
|
4076
|
+
[`&${t}-status`]: {
|
|
4077
|
+
lineHeight: "inherit",
|
|
4078
|
+
verticalAlign: "baseline",
|
|
4079
|
+
[`${t}-status-dot`]: {
|
|
4080
|
+
position: "relative",
|
|
4081
|
+
top: -1,
|
|
4082
|
+
display: "inline-block",
|
|
4083
|
+
width: l,
|
|
4084
|
+
height: l,
|
|
4085
|
+
verticalAlign: "middle",
|
|
4086
|
+
borderRadius: "50%"
|
|
4087
|
+
},
|
|
4088
|
+
[`${t}-status-success`]: {
|
|
4089
|
+
backgroundColor: e.colorSuccess
|
|
4090
|
+
},
|
|
4091
|
+
[`${t}-status-processing`]: {
|
|
4092
|
+
overflow: "visible",
|
|
4093
|
+
color: e.colorPrimary,
|
|
4094
|
+
backgroundColor: e.colorPrimary,
|
|
4095
|
+
"&::after": {
|
|
4096
|
+
position: "absolute",
|
|
4097
|
+
top: 0,
|
|
4098
|
+
insetInlineStart: 0,
|
|
4099
|
+
width: "100%",
|
|
4100
|
+
height: "100%",
|
|
4101
|
+
borderWidth: o,
|
|
4102
|
+
borderStyle: "solid",
|
|
4103
|
+
borderColor: "inherit",
|
|
4104
|
+
borderRadius: "50%",
|
|
4105
|
+
animationName: jc,
|
|
4106
|
+
animationDuration: e.badgeProcessingDuration,
|
|
4107
|
+
animationIterationCount: "infinite",
|
|
4108
|
+
animationTimingFunction: "ease-in-out",
|
|
4109
|
+
content: '""'
|
|
4110
|
+
}
|
|
4111
|
+
},
|
|
4112
|
+
[`${t}-status-default`]: {
|
|
4113
|
+
backgroundColor: e.colorTextPlaceholder
|
|
4114
|
+
},
|
|
4115
|
+
[`${t}-status-error`]: {
|
|
4116
|
+
backgroundColor: e.colorError
|
|
4117
|
+
},
|
|
4118
|
+
[`${t}-status-warning`]: {
|
|
4119
|
+
backgroundColor: e.colorWarning
|
|
4120
|
+
},
|
|
4121
|
+
[`${t}-status-text`]: {
|
|
4122
|
+
marginInlineStart: h,
|
|
4123
|
+
color: e.colorText,
|
|
4124
|
+
fontSize: e.fontSize
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
}), p), {
|
|
4128
|
+
[`${t}-zoom-appear, ${t}-zoom-enter`]: {
|
|
4129
|
+
animationName: Ic,
|
|
4130
|
+
animationDuration: e.motionDurationSlow,
|
|
4131
|
+
animationTimingFunction: e.motionEaseOutBack,
|
|
4132
|
+
animationFillMode: "both"
|
|
4133
|
+
},
|
|
4134
|
+
[`${t}-zoom-leave`]: {
|
|
4135
|
+
animationName: Lc,
|
|
4136
|
+
animationDuration: e.motionDurationSlow,
|
|
4137
|
+
animationTimingFunction: e.motionEaseOutBack,
|
|
4138
|
+
animationFillMode: "both"
|
|
4139
|
+
},
|
|
4140
|
+
[`&${t}-not-a-wrapper`]: {
|
|
4141
|
+
[`${t}-zoom-appear, ${t}-zoom-enter`]: {
|
|
4142
|
+
animationName: Dc,
|
|
4143
|
+
animationDuration: e.motionDurationSlow,
|
|
4144
|
+
animationTimingFunction: e.motionEaseOutBack
|
|
4145
|
+
},
|
|
4146
|
+
[`${t}-zoom-leave`]: {
|
|
4147
|
+
animationName: Hc,
|
|
4148
|
+
animationDuration: e.motionDurationSlow,
|
|
4149
|
+
animationTimingFunction: e.motionEaseOutBack
|
|
4150
|
+
},
|
|
4151
|
+
[`&:not(${t}-status)`]: {
|
|
4152
|
+
verticalAlign: "middle"
|
|
4153
|
+
},
|
|
4154
|
+
[`${b}-custom-component, ${t}-count`]: {
|
|
4155
|
+
transform: "none"
|
|
4156
|
+
},
|
|
4157
|
+
[`${b}-custom-component, ${b}`]: {
|
|
4158
|
+
position: "relative",
|
|
4159
|
+
top: "auto",
|
|
4160
|
+
display: "block",
|
|
4161
|
+
transformOrigin: "50% 50%"
|
|
4162
|
+
}
|
|
4163
|
+
},
|
|
4164
|
+
[`${b}`]: {
|
|
4165
|
+
overflow: "hidden",
|
|
4166
|
+
[`${b}-only`]: {
|
|
4167
|
+
position: "relative",
|
|
4168
|
+
display: "inline-block",
|
|
4169
|
+
height: u,
|
|
4170
|
+
transition: `all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,
|
|
4171
|
+
WebkitTransformStyle: "preserve-3d",
|
|
4172
|
+
WebkitBackfaceVisibility: "hidden",
|
|
4173
|
+
[`> p${b}-only-unit`]: {
|
|
4174
|
+
height: u,
|
|
4175
|
+
margin: 0,
|
|
4176
|
+
WebkitTransformStyle: "preserve-3d",
|
|
4177
|
+
WebkitBackfaceVisibility: "hidden"
|
|
4178
|
+
}
|
|
4179
|
+
},
|
|
4180
|
+
[`${b}-symbol`]: {
|
|
4181
|
+
verticalAlign: "top"
|
|
4182
|
+
}
|
|
4183
|
+
},
|
|
4184
|
+
// ====================== RTL =======================
|
|
4185
|
+
"&-rtl": {
|
|
4186
|
+
direction: "rtl",
|
|
4187
|
+
[`${t}-count, ${t}-dot, ${b}-custom-component`]: {
|
|
4188
|
+
transform: "translate(-50%, -50%)"
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
})
|
|
4192
|
+
};
|
|
4193
|
+
}, qo = (e) => {
|
|
4194
|
+
const {
|
|
4195
|
+
fontSize: t,
|
|
4196
|
+
lineHeight: r,
|
|
4197
|
+
lineWidth: n,
|
|
4198
|
+
marginXS: o,
|
|
4199
|
+
colorBorderBg: a
|
|
4200
|
+
} = e, i = Math.round(t * r), s = n, l = e.colorBgContainer, c = e.colorError, f = e.colorErrorHover;
|
|
4201
|
+
return wr(e, {
|
|
4202
|
+
badgeFontHeight: i,
|
|
4203
|
+
badgeShadowSize: s,
|
|
4204
|
+
badgeTextColor: l,
|
|
4205
|
+
badgeColor: c,
|
|
4206
|
+
badgeColorHover: f,
|
|
4207
|
+
badgeShadowColor: a,
|
|
4208
|
+
badgeProcessingDuration: "1.2s",
|
|
4209
|
+
badgeRibbonOffset: o,
|
|
4210
|
+
// Follow token just by Design. Not related with token
|
|
4211
|
+
badgeRibbonCornerTransform: "scaleY(0.75)",
|
|
4212
|
+
badgeRibbonCornerFilter: "brightness(75%)"
|
|
4213
|
+
});
|
|
4214
|
+
}, Qo = (e) => {
|
|
4215
|
+
const {
|
|
4216
|
+
fontSize: t,
|
|
4217
|
+
lineHeight: r,
|
|
4218
|
+
fontSizeSM: n,
|
|
4219
|
+
lineWidth: o
|
|
4220
|
+
} = e;
|
|
4221
|
+
return {
|
|
4222
|
+
indicatorZIndex: "auto",
|
|
4223
|
+
indicatorHeight: Math.round(t * r) - 2 * o,
|
|
4224
|
+
indicatorHeightSM: t,
|
|
4225
|
+
dotSize: n / 2,
|
|
4226
|
+
textFontSize: n,
|
|
4227
|
+
textFontSizeSM: n,
|
|
4228
|
+
textFontWeight: "normal",
|
|
4229
|
+
statusSize: n / 2
|
|
4230
|
+
};
|
|
4231
|
+
}, Bc = _o("Badge", (e) => {
|
|
4232
|
+
const t = qo(e);
|
|
4233
|
+
return [zc(t)];
|
|
4234
|
+
}, Qo), Wc = (e) => {
|
|
4235
|
+
const {
|
|
4236
|
+
antCls: t,
|
|
4237
|
+
badgeFontHeight: r,
|
|
4238
|
+
marginXS: n,
|
|
4239
|
+
badgeRibbonOffset: o
|
|
4240
|
+
} = e, a = `${t}-ribbon`, i = `${t}-ribbon-wrapper`, s = No(e, (l, c) => {
|
|
4241
|
+
let {
|
|
4242
|
+
darkColor: f
|
|
4243
|
+
} = c;
|
|
4244
|
+
return {
|
|
4245
|
+
[`&${a}-color-${l}`]: {
|
|
4246
|
+
background: f,
|
|
4247
|
+
color: f
|
|
4248
|
+
}
|
|
4249
|
+
};
|
|
4250
|
+
});
|
|
4251
|
+
return {
|
|
4252
|
+
[`${i}`]: {
|
|
4253
|
+
position: "relative"
|
|
4254
|
+
},
|
|
4255
|
+
[`${a}`]: Object.assign(Object.assign(Object.assign(Object.assign({}, Mo(e)), {
|
|
4256
|
+
position: "absolute",
|
|
4257
|
+
top: n,
|
|
4258
|
+
padding: `0 ${e.paddingXS}px`,
|
|
4259
|
+
color: e.colorPrimary,
|
|
4260
|
+
lineHeight: `${r}px`,
|
|
4261
|
+
whiteSpace: "nowrap",
|
|
4262
|
+
backgroundColor: e.colorPrimary,
|
|
4263
|
+
borderRadius: e.borderRadiusSM,
|
|
4264
|
+
[`${a}-text`]: {
|
|
4265
|
+
color: e.colorTextLightSolid
|
|
4266
|
+
},
|
|
4267
|
+
[`${a}-corner`]: {
|
|
4268
|
+
position: "absolute",
|
|
4269
|
+
top: "100%",
|
|
4270
|
+
width: o,
|
|
4271
|
+
height: o,
|
|
4272
|
+
color: "currentcolor",
|
|
4273
|
+
border: `${o / 2}px solid`,
|
|
4274
|
+
transform: e.badgeRibbonCornerTransform,
|
|
4275
|
+
transformOrigin: "top",
|
|
4276
|
+
filter: e.badgeRibbonCornerFilter
|
|
4277
|
+
}
|
|
4278
|
+
}), s), {
|
|
4279
|
+
[`&${a}-placement-end`]: {
|
|
4280
|
+
insetInlineEnd: -o,
|
|
4281
|
+
borderEndEndRadius: 0,
|
|
4282
|
+
[`${a}-corner`]: {
|
|
4283
|
+
insetInlineEnd: 0,
|
|
4284
|
+
borderInlineEndColor: "transparent",
|
|
4285
|
+
borderBlockEndColor: "transparent"
|
|
4286
|
+
}
|
|
4287
|
+
},
|
|
4288
|
+
[`&${a}-placement-start`]: {
|
|
4289
|
+
insetInlineStart: -o,
|
|
4290
|
+
borderEndStartRadius: 0,
|
|
4291
|
+
[`${a}-corner`]: {
|
|
4292
|
+
insetInlineStart: 0,
|
|
4293
|
+
borderBlockEndColor: "transparent",
|
|
4294
|
+
borderInlineStartColor: "transparent"
|
|
4295
|
+
}
|
|
4296
|
+
},
|
|
4297
|
+
// ====================== RTL =======================
|
|
4298
|
+
"&-rtl": {
|
|
4299
|
+
direction: "rtl"
|
|
4300
|
+
}
|
|
4301
|
+
})
|
|
4302
|
+
};
|
|
4303
|
+
}, Vc = _o(["Badge", "Ribbon"], (e) => {
|
|
4304
|
+
const t = qo(e);
|
|
4305
|
+
return [Wc(t)];
|
|
4306
|
+
}, Qo), Zo = (e) => {
|
|
4307
|
+
const {
|
|
4308
|
+
className: t,
|
|
4309
|
+
prefixCls: r,
|
|
4310
|
+
style: n,
|
|
4311
|
+
color: o,
|
|
4312
|
+
children: a,
|
|
4313
|
+
text: i,
|
|
4314
|
+
placement: s = "end",
|
|
4315
|
+
rootClassName: l
|
|
4316
|
+
} = e, {
|
|
4317
|
+
getPrefixCls: c,
|
|
4318
|
+
direction: f
|
|
4319
|
+
} = v.useContext(Ve), u = c("ribbon", r), g = Ko(o, !1), h = Ee(u, `${u}-placement-${s}`, {
|
|
4320
|
+
[`${u}-rtl`]: f === "rtl",
|
|
4321
|
+
[`${u}-color-${o}`]: g
|
|
4322
|
+
}, t), [b, p] = Vc(u), d = {}, S = {};
|
|
4323
|
+
return o && !g && (d.background = o, S.color = o), b(/* @__PURE__ */ v.createElement("div", {
|
|
4324
|
+
className: Ee(`${u}-wrapper`, l, p)
|
|
4325
|
+
}, a, /* @__PURE__ */ v.createElement("div", {
|
|
4326
|
+
className: Ee(h, p),
|
|
4327
|
+
style: Object.assign(Object.assign({}, d), n)
|
|
4328
|
+
}, /* @__PURE__ */ v.createElement("span", {
|
|
4329
|
+
className: `${u}-text`
|
|
4330
|
+
}, i), /* @__PURE__ */ v.createElement("div", {
|
|
4331
|
+
className: `${u}-corner`,
|
|
4332
|
+
style: S
|
|
4333
|
+
}))));
|
|
4334
|
+
};
|
|
4335
|
+
process.env.NODE_ENV !== "production" && (Zo.displayName = "Ribbon");
|
|
4336
|
+
const Uc = Zo;
|
|
4337
|
+
function _n(e) {
|
|
4338
|
+
let {
|
|
4339
|
+
prefixCls: t,
|
|
4340
|
+
value: r,
|
|
4341
|
+
current: n,
|
|
4342
|
+
offset: o = 0
|
|
4343
|
+
} = e, a;
|
|
4344
|
+
return o && (a = {
|
|
4345
|
+
position: "absolute",
|
|
4346
|
+
top: `${o}00%`,
|
|
4347
|
+
left: 0
|
|
4348
|
+
}), /* @__PURE__ */ v.createElement("span", {
|
|
4349
|
+
style: a,
|
|
4350
|
+
className: Ee(`${t}-only-unit`, {
|
|
4351
|
+
current: n
|
|
4352
|
+
})
|
|
4353
|
+
}, r);
|
|
4354
|
+
}
|
|
4355
|
+
function Xc(e, t, r) {
|
|
4356
|
+
let n = e, o = 0;
|
|
4357
|
+
for (; (n + 10) % 10 !== t; )
|
|
4358
|
+
n += r, o += r;
|
|
4359
|
+
return o;
|
|
4360
|
+
}
|
|
4361
|
+
function Gc(e) {
|
|
4362
|
+
const {
|
|
4363
|
+
prefixCls: t,
|
|
4364
|
+
count: r,
|
|
4365
|
+
value: n
|
|
4366
|
+
} = e, o = Number(n), a = Math.abs(r), [i, s] = v.useState(o), [l, c] = v.useState(a), f = () => {
|
|
4367
|
+
s(o), c(a);
|
|
4368
|
+
};
|
|
4369
|
+
v.useEffect(() => {
|
|
4370
|
+
const h = setTimeout(() => {
|
|
4371
|
+
f();
|
|
4372
|
+
}, 1e3);
|
|
4373
|
+
return () => {
|
|
4374
|
+
clearTimeout(h);
|
|
4375
|
+
};
|
|
4376
|
+
}, [o]);
|
|
4377
|
+
let u, g;
|
|
4378
|
+
if (i === o || Number.isNaN(o) || Number.isNaN(i))
|
|
4379
|
+
u = [/* @__PURE__ */ v.createElement(_n, Object.assign({}, e, {
|
|
4380
|
+
key: o,
|
|
4381
|
+
current: !0
|
|
4382
|
+
}))], g = {
|
|
4383
|
+
transition: "none"
|
|
4384
|
+
};
|
|
4385
|
+
else {
|
|
4386
|
+
u = [];
|
|
4387
|
+
const h = o + 10, b = [];
|
|
4388
|
+
for (let S = o; S <= h; S += 1)
|
|
4389
|
+
b.push(S);
|
|
4390
|
+
const p = b.findIndex((S) => S % 10 === i);
|
|
4391
|
+
u = b.map((S, m) => {
|
|
4392
|
+
const P = S % 10;
|
|
4393
|
+
return /* @__PURE__ */ v.createElement(_n, Object.assign({}, e, {
|
|
4394
|
+
key: S,
|
|
4395
|
+
value: P,
|
|
4396
|
+
offset: m - p,
|
|
4397
|
+
current: m === p
|
|
4398
|
+
}));
|
|
4399
|
+
});
|
|
4400
|
+
const d = l < a ? 1 : -1;
|
|
4401
|
+
g = {
|
|
4402
|
+
transform: `translateY(${-Xc(i, o, d)}00%)`
|
|
4403
|
+
};
|
|
4404
|
+
}
|
|
4405
|
+
return /* @__PURE__ */ v.createElement("span", {
|
|
4406
|
+
className: `${t}-only`,
|
|
4407
|
+
style: g,
|
|
4408
|
+
onTransitionEnd: f
|
|
4409
|
+
}, u);
|
|
4410
|
+
}
|
|
4411
|
+
var Yc = globalThis && globalThis.__rest || function(e, t) {
|
|
4412
|
+
var r = {};
|
|
4413
|
+
for (var n in e)
|
|
4414
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4415
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
4416
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
4417
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4418
|
+
return r;
|
|
4419
|
+
};
|
|
4420
|
+
const Kc = /* @__PURE__ */ v.forwardRef((e, t) => {
|
|
4421
|
+
const {
|
|
4422
|
+
prefixCls: r,
|
|
4423
|
+
count: n,
|
|
4424
|
+
className: o,
|
|
4425
|
+
motionClassName: a,
|
|
4426
|
+
style: i,
|
|
4427
|
+
title: s,
|
|
4428
|
+
show: l,
|
|
4429
|
+
component: c = "sup",
|
|
4430
|
+
children: f
|
|
4431
|
+
} = e, u = Yc(e, ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"]), {
|
|
4432
|
+
getPrefixCls: g
|
|
4433
|
+
} = v.useContext(Ve), h = g("scroll-number", r), b = Object.assign(Object.assign({}, u), {
|
|
4434
|
+
"data-show": l,
|
|
4435
|
+
style: i,
|
|
4436
|
+
className: Ee(h, o, a),
|
|
4437
|
+
title: s
|
|
4438
|
+
});
|
|
4439
|
+
let p = n;
|
|
4440
|
+
if (n && Number(n) % 1 === 0) {
|
|
4441
|
+
const d = String(n).split("");
|
|
4442
|
+
p = /* @__PURE__ */ v.createElement("bdi", null, d.map((S, m) => /* @__PURE__ */ v.createElement(Gc, {
|
|
4443
|
+
prefixCls: h,
|
|
4444
|
+
count: Number(n),
|
|
4445
|
+
value: S,
|
|
4446
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
4447
|
+
key: d.length - m
|
|
4448
|
+
})));
|
|
4449
|
+
}
|
|
4450
|
+
return i && i.borderColor && (b.style = Object.assign(Object.assign({}, i), {
|
|
4451
|
+
boxShadow: `0 0 0 1px ${i.borderColor} inset`
|
|
4452
|
+
})), f ? Yo(f, (d) => ({
|
|
4453
|
+
className: Ee(`${h}-custom-component`, d == null ? void 0 : d.className, a)
|
|
4454
|
+
})) : /* @__PURE__ */ v.createElement(c, Object.assign({}, b, {
|
|
4455
|
+
ref: t
|
|
4456
|
+
}), p);
|
|
4457
|
+
}), qc = Kc;
|
|
4458
|
+
var Qc = globalThis && globalThis.__rest || function(e, t) {
|
|
4459
|
+
var r = {};
|
|
4460
|
+
for (var n in e)
|
|
4461
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4462
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
4463
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
4464
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4465
|
+
return r;
|
|
4466
|
+
};
|
|
4467
|
+
const Zc = (e, t) => {
|
|
4468
|
+
var r, n, o, a, i;
|
|
4469
|
+
const {
|
|
4470
|
+
prefixCls: s,
|
|
4471
|
+
scrollNumberPrefixCls: l,
|
|
4472
|
+
children: c,
|
|
4473
|
+
status: f,
|
|
4474
|
+
text: u,
|
|
4475
|
+
color: g,
|
|
4476
|
+
count: h = null,
|
|
4477
|
+
overflowCount: b = 99,
|
|
4478
|
+
dot: p = !1,
|
|
4479
|
+
size: d = "default",
|
|
4480
|
+
title: S,
|
|
4481
|
+
offset: m,
|
|
4482
|
+
style: P,
|
|
4483
|
+
className: A,
|
|
4484
|
+
rootClassName: T,
|
|
4485
|
+
classNames: C,
|
|
4486
|
+
styles: y,
|
|
4487
|
+
showZero: k = !1
|
|
4488
|
+
} = e, L = Qc(e, ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "rootClassName", "classNames", "styles", "showZero"]), {
|
|
4489
|
+
getPrefixCls: w,
|
|
4490
|
+
direction: R,
|
|
4491
|
+
badge: x
|
|
4492
|
+
} = v.useContext(Ve), O = w("badge", s), [j, M] = Bc(O), D = h > b ? `${b}+` : h, U = D === "0" || D === 0, X = h === null || U && !k, z = (f != null || g != null) && X, F = p && !U, B = F ? "" : D, H = Qr(() => (B == null || B === "" || U && !k) && !F, [B, U, k, F]), ae = xe(h);
|
|
4493
|
+
H || (ae.current = h);
|
|
4494
|
+
const G = ae.current, ie = xe(B);
|
|
4495
|
+
H || (ie.current = B);
|
|
4496
|
+
const pe = ie.current, Re = xe(F);
|
|
4497
|
+
H || (Re.current = F);
|
|
4498
|
+
const he = Qr(() => {
|
|
4499
|
+
if (!m)
|
|
4500
|
+
return Object.assign(Object.assign({}, x == null ? void 0 : x.style), P);
|
|
4501
|
+
const Q = {
|
|
4502
|
+
marginTop: m[1]
|
|
4503
|
+
};
|
|
4504
|
+
return R === "rtl" ? Q.left = parseInt(m[0], 10) : Q.right = -parseInt(m[0], 10), Object.assign(Object.assign(Object.assign({}, Q), x == null ? void 0 : x.style), P);
|
|
4505
|
+
}, [R, m, P, x == null ? void 0 : x.style]), je = S ?? (typeof G == "string" || typeof G == "number" ? G : void 0), $e = H || !u ? null : /* @__PURE__ */ v.createElement("span", {
|
|
4506
|
+
className: `${O}-status-text`
|
|
4507
|
+
}, u), fe = !G || typeof G != "object" ? void 0 : Yo(G, (Q) => ({
|
|
4508
|
+
style: Object.assign(Object.assign({}, he), Q.style)
|
|
4509
|
+
})), me = Ko(g, !1), _e = Ee(C == null ? void 0 : C.indicator, (r = x == null ? void 0 : x.classNames) === null || r === void 0 ? void 0 : r.indicator, {
|
|
4510
|
+
[`${O}-status-dot`]: z,
|
|
4511
|
+
[`${O}-status-${f}`]: !!f,
|
|
4512
|
+
[`${O}-color-${g}`]: me
|
|
4513
|
+
}), E = {};
|
|
4514
|
+
g && !me && (E.color = g, E.background = g);
|
|
4515
|
+
const ne = Ee(O, {
|
|
4516
|
+
[`${O}-status`]: z,
|
|
4517
|
+
[`${O}-not-a-wrapper`]: !c,
|
|
4518
|
+
[`${O}-rtl`]: R === "rtl"
|
|
4519
|
+
}, A, T, x == null ? void 0 : x.className, (n = x == null ? void 0 : x.classNames) === null || n === void 0 ? void 0 : n.root, C == null ? void 0 : C.root, M);
|
|
4520
|
+
if (!c && z) {
|
|
4521
|
+
const Q = he.color;
|
|
4522
|
+
return j(/* @__PURE__ */ v.createElement("span", Object.assign({}, L, {
|
|
4523
|
+
className: ne,
|
|
4524
|
+
style: Object.assign(Object.assign(Object.assign({}, y == null ? void 0 : y.root), (o = x == null ? void 0 : x.styles) === null || o === void 0 ? void 0 : o.root), he)
|
|
4525
|
+
}), /* @__PURE__ */ v.createElement("span", {
|
|
4526
|
+
className: _e,
|
|
4527
|
+
style: Object.assign(Object.assign(Object.assign({}, y == null ? void 0 : y.indicator), (a = x == null ? void 0 : x.styles) === null || a === void 0 ? void 0 : a.indicator), E)
|
|
4528
|
+
}), u && /* @__PURE__ */ v.createElement("span", {
|
|
4529
|
+
style: {
|
|
4530
|
+
color: Q
|
|
4531
|
+
},
|
|
4532
|
+
className: `${O}-status-text`
|
|
4533
|
+
}, u)));
|
|
4534
|
+
}
|
|
4535
|
+
return j(/* @__PURE__ */ v.createElement("span", Object.assign({
|
|
4536
|
+
ref: t
|
|
4537
|
+
}, L, {
|
|
4538
|
+
className: ne,
|
|
4539
|
+
style: Object.assign(Object.assign({}, (i = x == null ? void 0 : x.styles) === null || i === void 0 ? void 0 : i.root), y == null ? void 0 : y.root)
|
|
4540
|
+
}), c, /* @__PURE__ */ v.createElement(Uo, {
|
|
4541
|
+
visible: !H,
|
|
4542
|
+
motionName: `${O}-zoom`,
|
|
4543
|
+
motionAppear: !1,
|
|
4544
|
+
motionDeadline: 1e3
|
|
4545
|
+
}, (Q) => {
|
|
4546
|
+
let {
|
|
4547
|
+
className: be,
|
|
4548
|
+
ref: Ie
|
|
4549
|
+
} = Q;
|
|
4550
|
+
var Y, W;
|
|
4551
|
+
const K = w("scroll-number", l), oe = Re.current, Te = Ee(C == null ? void 0 : C.indicator, (Y = x == null ? void 0 : x.classNames) === null || Y === void 0 ? void 0 : Y.indicator, {
|
|
4552
|
+
[`${O}-dot`]: oe,
|
|
4553
|
+
[`${O}-count`]: !oe,
|
|
4554
|
+
[`${O}-count-sm`]: d === "small",
|
|
4555
|
+
[`${O}-multiple-words`]: !oe && pe && pe.toString().length > 1,
|
|
4556
|
+
[`${O}-status-${f}`]: !!f,
|
|
4557
|
+
[`${O}-color-${g}`]: me
|
|
4558
|
+
});
|
|
4559
|
+
let Ue = Object.assign(Object.assign(Object.assign({}, y == null ? void 0 : y.indicator), (W = x == null ? void 0 : x.styles) === null || W === void 0 ? void 0 : W.indicator), he);
|
|
4560
|
+
return g && !me && (Ue = Ue || {}, Ue.background = g), /* @__PURE__ */ v.createElement(qc, {
|
|
4561
|
+
prefixCls: K,
|
|
4562
|
+
show: !H,
|
|
4563
|
+
motionClassName: be,
|
|
4564
|
+
className: Te,
|
|
4565
|
+
count: pe,
|
|
4566
|
+
title: je,
|
|
4567
|
+
style: Ue,
|
|
4568
|
+
key: "scrollNumber",
|
|
4569
|
+
ref: Ie
|
|
4570
|
+
}, fe);
|
|
4571
|
+
}), $e));
|
|
4572
|
+
}, Gr = /* @__PURE__ */ v.forwardRef(Zc);
|
|
4573
|
+
Gr.Ribbon = Uc;
|
|
4574
|
+
process.env.NODE_ENV !== "production" && (Gr.displayName = "Badge");
|
|
4575
|
+
const Jc = Gr, nl = ({ ...e }) => /* @__PURE__ */ va(Jc, { ...e });
|
|
4576
|
+
export {
|
|
4577
|
+
nl as Badge
|
|
4578
|
+
};
|