@pnkx-lib/ui 1.1.18 → 1.1.19
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/chunks/Steps-Bfcmz8iH.js +4885 -0
- package/dist/index.js +24 -25
- package/dist/types/index.d.ts +0 -32
- package/dist/types/ui.d.ts +0 -32
- package/dist/ui/index.js +19 -20
- package/package.json +1 -1
- package/dist/chunks/Steps-CNDzmXyL.js +0 -5880
@@ -0,0 +1,4885 @@
|
|
1
|
+
import { j as w, I as yt, _ as bt, u as pi, c as et, a as hi } from "./AntdIcon-BohCHsd5.js";
|
2
|
+
import { Button as mi, Cascader as yi, Modal as bi, Tooltip as Si, Tabs as xi, Space as dt, Card as Cn, Skeleton as go, Popover as Ci, Badge as Ei, Col as Ti, Row as _i, Dropdown as Oi, Breadcrumb as wi, Flex as Pi, Splitter as po, Menu as St, Pagination as ki, Steps as ho } from "antd";
|
3
|
+
import * as g from "react";
|
4
|
+
import Ee, { useEffect as Ie, useContext as He, createContext as mo, version as Mi, isValidElement as Ai, useRef as $e, useLayoutEffect as ji, useState as En } from "react";
|
5
|
+
import Tn from "react-dom";
|
6
|
+
const _n = (e) => /* @__PURE__ */ w.jsx(mi, { ...e }), Ou = (e) => {
|
7
|
+
const {
|
8
|
+
customStyleContainer: t,
|
9
|
+
customStyleCascader: r,
|
10
|
+
options: n = [],
|
11
|
+
...o
|
12
|
+
} = e;
|
13
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(
|
14
|
+
yi,
|
15
|
+
{
|
16
|
+
options: n,
|
17
|
+
className: r,
|
18
|
+
...o
|
19
|
+
}
|
20
|
+
) });
|
21
|
+
}, wu = ({
|
22
|
+
children: e,
|
23
|
+
onOk: t,
|
24
|
+
onSubmit: r,
|
25
|
+
...n
|
26
|
+
}) => /* @__PURE__ */ w.jsx(bi, { onOk: r || t, ...n, children: /* @__PURE__ */ w.jsx("div", { className: "max-h-[20rem] overflow-y-auto", children: r ? /* @__PURE__ */ w.jsx("form", { onSubmit: r, children: e }) : e }) }), Pu = ({ children: e, ...t }) => /* @__PURE__ */ w.jsx(Si, { ...t, children: e }), On = (e) => {
|
27
|
+
let t;
|
28
|
+
const r = /* @__PURE__ */ new Set(), n = (s, u) => {
|
29
|
+
const d = typeof s == "function" ? s(t) : s;
|
30
|
+
if (!Object.is(d, t)) {
|
31
|
+
const f = t;
|
32
|
+
t = u ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), r.forEach((h) => h(t, f));
|
33
|
+
}
|
34
|
+
}, o = () => t, c = { setState: n, getState: o, getInitialState: () => l, subscribe: (s) => (r.add(s), () => r.delete(s)) }, l = t = e(n, o, c);
|
35
|
+
return c;
|
36
|
+
}, Ni = (e) => e ? On(e) : On, $i = (e) => e;
|
37
|
+
function Ri(e, t = $i) {
|
38
|
+
const r = Ee.useSyncExternalStore(
|
39
|
+
e.subscribe,
|
40
|
+
() => t(e.getState()),
|
41
|
+
() => t(e.getInitialState())
|
42
|
+
);
|
43
|
+
return Ee.useDebugValue(r), r;
|
44
|
+
}
|
45
|
+
const wn = (e) => {
|
46
|
+
const t = Ni(e), r = (n) => Ri(t, n);
|
47
|
+
return Object.assign(r, t), r;
|
48
|
+
}, Li = (e) => e ? wn(e) : wn, Ii = Li((e) => ({
|
49
|
+
activeTabKey: void 0,
|
50
|
+
// giá trị mặc định
|
51
|
+
setActiveTabKey: (t) => e({ activeTabKey: t })
|
52
|
+
})), ku = ({
|
53
|
+
items: e,
|
54
|
+
lazyRender: t = !1,
|
55
|
+
defaultActiveKey: r,
|
56
|
+
...n
|
57
|
+
}) => {
|
58
|
+
var c;
|
59
|
+
const { activeTabKey: o, setActiveTabKey: a } = Ii(), i = (r == null ? void 0 : r.toString()) || ((c = e[0]) == null ? void 0 : c.key);
|
60
|
+
return Ie(() => {
|
61
|
+
!o && i && a(i);
|
62
|
+
}, [o, i, a]), /* @__PURE__ */ w.jsx(
|
63
|
+
xi,
|
64
|
+
{
|
65
|
+
items: e,
|
66
|
+
destroyInactiveTabPane: t,
|
67
|
+
activeKey: o,
|
68
|
+
defaultActiveKey: r,
|
69
|
+
onChange: (l) => a(l),
|
70
|
+
...n
|
71
|
+
}
|
72
|
+
);
|
73
|
+
}, Pt = (e) => Array.from({ length: e }).map((t, r) => /* @__PURE__ */ w.jsx(go.Input, { size: "small", block: !0, active: !0 }, r)), Mu = ({ type: e, skeletonButtonCount: t }) => e === "table" ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
74
|
+
/* @__PURE__ */ w.jsxs(
|
75
|
+
"div",
|
76
|
+
{
|
77
|
+
style: {
|
78
|
+
display: "flex",
|
79
|
+
alignItems: "center",
|
80
|
+
width: "100%",
|
81
|
+
marginBottom: 15
|
82
|
+
},
|
83
|
+
children: [
|
84
|
+
/* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(dt, { children: Pt(1) }) }),
|
85
|
+
t && /* @__PURE__ */ w.jsx("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ w.jsx(dt, { children: Pt(t) }) })
|
86
|
+
]
|
87
|
+
}
|
88
|
+
),
|
89
|
+
/* @__PURE__ */ w.jsx(Cn, { children: /* @__PURE__ */ w.jsx(dt, { direction: "vertical", size: "middle", style: { width: "100%" }, children: Pt(10) }) }),
|
90
|
+
/* @__PURE__ */ w.jsx("div", { style: { ...Hi.rightAlign, marginTop: 20 }, children: /* @__PURE__ */ w.jsx(go.Input, { size: "small", active: !0 }) })
|
91
|
+
] }) : /* @__PURE__ */ w.jsx(Cn, { children: /* @__PURE__ */ w.jsx("div", { style: { display: "grid", rowGap: 8 }, children: Pt(3) }) }), Hi = {
|
92
|
+
rightAlign: {
|
93
|
+
display: "flex",
|
94
|
+
justifyContent: "flex-end",
|
95
|
+
width: "100%"
|
96
|
+
}
|
97
|
+
}, Au = (e) => {
|
98
|
+
const { containerClassName: t, popoverClassName: r, ...n } = e;
|
99
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(Ci, { className: r, ...n }) });
|
100
|
+
};
|
101
|
+
var Di = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Vi = function(t, r) {
|
102
|
+
return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
|
103
|
+
ref: r,
|
104
|
+
icon: Di
|
105
|
+
}));
|
106
|
+
}, yo = /* @__PURE__ */ g.forwardRef(Vi);
|
107
|
+
process.env.NODE_ENV !== "production" && (yo.displayName = "BarsOutlined");
|
108
|
+
var zi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" } }] }, name: "filter", theme: "outlined" }, Bi = function(t, r) {
|
109
|
+
return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
|
110
|
+
ref: r,
|
111
|
+
icon: zi
|
112
|
+
}));
|
113
|
+
}, bo = /* @__PURE__ */ g.forwardRef(Bi);
|
114
|
+
process.env.NODE_ENV !== "production" && (bo.displayName = "FilterOutlined");
|
115
|
+
var Fi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, Wi = function(t, r) {
|
116
|
+
return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
|
117
|
+
ref: r,
|
118
|
+
icon: Fi
|
119
|
+
}));
|
120
|
+
}, mr = /* @__PURE__ */ g.forwardRef(Wi);
|
121
|
+
process.env.NODE_ENV !== "production" && (mr.displayName = "LeftOutlined");
|
122
|
+
var Xi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Gi = function(t, r) {
|
123
|
+
return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
|
124
|
+
ref: r,
|
125
|
+
icon: Xi
|
126
|
+
}));
|
127
|
+
}, yr = /* @__PURE__ */ g.forwardRef(Gi);
|
128
|
+
process.env.NODE_ENV !== "production" && (yr.displayName = "RightOutlined");
|
129
|
+
var Ui = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, Ki = function(t, r) {
|
130
|
+
return /* @__PURE__ */ g.createElement(yt, bt({}, t, {
|
131
|
+
ref: r,
|
132
|
+
icon: Ui
|
133
|
+
}));
|
134
|
+
}, So = /* @__PURE__ */ g.forwardRef(Ki);
|
135
|
+
process.env.NODE_ENV !== "production" && (So.displayName = "SearchOutlined");
|
136
|
+
const ju = ({
|
137
|
+
initialValues: e,
|
138
|
+
renderFilterFields: t,
|
139
|
+
onSubmit: r,
|
140
|
+
onReset: n,
|
141
|
+
classNamesContainer: o,
|
142
|
+
classNameWrapperForm: a,
|
143
|
+
hideDefaultSubmit: i,
|
144
|
+
hideResetButton: c
|
145
|
+
}) => {
|
146
|
+
const { control: l, handleSubmit: s, reset: u, setValue: d } = pi({
|
147
|
+
defaultValues: e
|
148
|
+
});
|
149
|
+
return /* @__PURE__ */ w.jsxs("form", { className: a, onSubmit: s(r), children: [
|
150
|
+
/* @__PURE__ */ w.jsx("div", { className: o, children: t && t({
|
151
|
+
control: l,
|
152
|
+
setValue: d,
|
153
|
+
handleSubmit: s
|
154
|
+
}) }),
|
155
|
+
!i && /* @__PURE__ */ w.jsxs("div", { className: "flex justify-end gap-2 mb-3", children: [
|
156
|
+
/* @__PURE__ */ w.jsx(
|
157
|
+
_n,
|
158
|
+
{
|
159
|
+
icon: /* @__PURE__ */ w.jsx(So, {}),
|
160
|
+
className: "px-3 py-1 ",
|
161
|
+
color: "blue",
|
162
|
+
variant: "solid",
|
163
|
+
htmlType: "submit",
|
164
|
+
children: "Tìm kiếm"
|
165
|
+
}
|
166
|
+
),
|
167
|
+
!c && /* @__PURE__ */ w.jsx(
|
168
|
+
_n,
|
169
|
+
{
|
170
|
+
icon: /* @__PURE__ */ w.jsx(bo, {}),
|
171
|
+
className: "px-3 py-1",
|
172
|
+
onClick: () => {
|
173
|
+
u(), n == null || n();
|
174
|
+
},
|
175
|
+
children: "Đặt lại"
|
176
|
+
}
|
177
|
+
)
|
178
|
+
] })
|
179
|
+
] });
|
180
|
+
}, Nu = ({
|
181
|
+
children: e,
|
182
|
+
className: t,
|
183
|
+
size: r
|
184
|
+
}) => /* @__PURE__ */ w.jsx(
|
185
|
+
"div",
|
186
|
+
{
|
187
|
+
className: et(r, "mx-auto px-4 sm:px-6 lg:px-8", t),
|
188
|
+
children: e
|
189
|
+
}
|
190
|
+
), Yi = {
|
191
|
+
error: "red",
|
192
|
+
info: "blue",
|
193
|
+
success: "green",
|
194
|
+
warning: "yellow"
|
195
|
+
}, $u = ({ type: e, children: t, ...r }) => {
|
196
|
+
const n = e ? Yi[e] : void 0;
|
197
|
+
return /* @__PURE__ */ w.jsx(Ei, { color: n, ...r, children: t });
|
198
|
+
}, Ru = (e) => {
|
199
|
+
const { colClassName: t, ...r } = e;
|
200
|
+
return /* @__PURE__ */ w.jsx(Ti, { className: t, ...r });
|
201
|
+
}, Lu = (e) => {
|
202
|
+
const { rowClassName: t, ...r } = e;
|
203
|
+
return /* @__PURE__ */ w.jsx(_i, { className: t, ...r });
|
204
|
+
}, Iu = (e) => {
|
205
|
+
const { containerClassName: t, dropdownClassName: r, ...n } = e;
|
206
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(Oi, { className: r, ...n }) });
|
207
|
+
}, Hu = (e) => {
|
208
|
+
const { containerClassName: t, breadcrumbClassName: r, ...n } = e;
|
209
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(wi, { className: r, ...n }) });
|
210
|
+
}, Du = (e) => {
|
211
|
+
const { containerClassName: t, flexClassName: r, ...n } = e;
|
212
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(Pi, { className: r, ...n }) });
|
213
|
+
};
|
214
|
+
function br(e, t) {
|
215
|
+
(t == null || t > e.length) && (t = e.length);
|
216
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
217
|
+
return n;
|
218
|
+
}
|
219
|
+
function Qi(e) {
|
220
|
+
if (Array.isArray(e)) return br(e);
|
221
|
+
}
|
222
|
+
function xo(e) {
|
223
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
224
|
+
}
|
225
|
+
function nn(e, t) {
|
226
|
+
if (e) {
|
227
|
+
if (typeof e == "string") return br(e, t);
|
228
|
+
var r = {}.toString.call(e).slice(8, -1);
|
229
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? br(e, t) : void 0;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
function qi() {
|
233
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
234
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
235
|
+
}
|
236
|
+
function Te(e) {
|
237
|
+
return Qi(e) || xo(e) || nn(e) || qi();
|
238
|
+
}
|
239
|
+
function Co(e, t) {
|
240
|
+
var r = Object.assign({}, e);
|
241
|
+
return Array.isArray(t) && t.forEach(function(n) {
|
242
|
+
delete r[n];
|
243
|
+
}), r;
|
244
|
+
}
|
245
|
+
function Eo(e) {
|
246
|
+
if (Array.isArray(e)) return e;
|
247
|
+
}
|
248
|
+
function Zi(e, t) {
|
249
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
250
|
+
if (r != null) {
|
251
|
+
var n, o, a, i, c = [], l = !0, s = !1;
|
252
|
+
try {
|
253
|
+
if (a = (r = r.call(e)).next, t === 0) {
|
254
|
+
if (Object(r) !== r) return;
|
255
|
+
l = !1;
|
256
|
+
} else for (; !(l = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); l = !0) ;
|
257
|
+
} catch (u) {
|
258
|
+
s = !0, o = u;
|
259
|
+
} finally {
|
260
|
+
try {
|
261
|
+
if (!l && r.return != null && (i = r.return(), Object(i) !== i)) return;
|
262
|
+
} finally {
|
263
|
+
if (s) throw o;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
return c;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
function To() {
|
270
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
271
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
272
|
+
}
|
273
|
+
function R(e, t) {
|
274
|
+
return Eo(e) || Zi(e, t) || nn(e, t) || To();
|
275
|
+
}
|
276
|
+
function F(e) {
|
277
|
+
"@babel/helpers - typeof";
|
278
|
+
return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
279
|
+
return typeof t;
|
280
|
+
} : function(t) {
|
281
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
282
|
+
}, F(e);
|
283
|
+
}
|
284
|
+
function Ji(e, t) {
|
285
|
+
if (F(e) != "object" || !e) return e;
|
286
|
+
var r = e[Symbol.toPrimitive];
|
287
|
+
if (r !== void 0) {
|
288
|
+
var n = r.call(e, t);
|
289
|
+
if (F(n) != "object") return n;
|
290
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
291
|
+
}
|
292
|
+
return (t === "string" ? String : Number)(e);
|
293
|
+
}
|
294
|
+
function _o(e) {
|
295
|
+
var t = Ji(e, "string");
|
296
|
+
return F(t) == "symbol" ? t : t + "";
|
297
|
+
}
|
298
|
+
function P(e, t, r) {
|
299
|
+
return (t = _o(t)) in e ? Object.defineProperty(e, t, {
|
300
|
+
value: r,
|
301
|
+
enumerable: !0,
|
302
|
+
configurable: !0,
|
303
|
+
writable: !0
|
304
|
+
}) : e[t] = r, e;
|
305
|
+
}
|
306
|
+
function Pn(e, t) {
|
307
|
+
var r = Object.keys(e);
|
308
|
+
if (Object.getOwnPropertySymbols) {
|
309
|
+
var n = Object.getOwnPropertySymbols(e);
|
310
|
+
t && (n = n.filter(function(o) {
|
311
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
312
|
+
})), r.push.apply(r, n);
|
313
|
+
}
|
314
|
+
return r;
|
315
|
+
}
|
316
|
+
function k(e) {
|
317
|
+
for (var t = 1; t < arguments.length; t++) {
|
318
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
319
|
+
t % 2 ? Pn(Object(r), !0).forEach(function(n) {
|
320
|
+
P(e, n, r[n]);
|
321
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pn(Object(r)).forEach(function(n) {
|
322
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
323
|
+
});
|
324
|
+
}
|
325
|
+
return e;
|
326
|
+
}
|
327
|
+
function gt(e) {
|
328
|
+
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
329
|
+
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): */
|
330
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
331
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
332
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
333
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
334
|
+
switch (o) {
|
335
|
+
case 3:
|
336
|
+
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
337
|
+
case 2:
|
338
|
+
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
339
|
+
case 1:
|
340
|
+
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
341
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
342
|
+
}
|
343
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
344
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
345
|
+
}
|
346
|
+
function Pe() {
|
347
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
348
|
+
}
|
349
|
+
function es(e, t) {
|
350
|
+
if (!e)
|
351
|
+
return !1;
|
352
|
+
if (e.contains)
|
353
|
+
return e.contains(t);
|
354
|
+
for (var r = t; r; ) {
|
355
|
+
if (r === e)
|
356
|
+
return !0;
|
357
|
+
r = r.parentNode;
|
358
|
+
}
|
359
|
+
return !1;
|
360
|
+
}
|
361
|
+
var kn = "data-rc-order", Mn = "data-rc-priority", ts = "rc-util-key", Sr = /* @__PURE__ */ new Map();
|
362
|
+
function Oo() {
|
363
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
364
|
+
return t ? t.startsWith("data-") ? t : "data-".concat(t) : ts;
|
365
|
+
}
|
366
|
+
function Yt(e) {
|
367
|
+
if (e.attachTo)
|
368
|
+
return e.attachTo;
|
369
|
+
var t = document.querySelector("head");
|
370
|
+
return t || document.body;
|
371
|
+
}
|
372
|
+
function rs(e) {
|
373
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
374
|
+
}
|
375
|
+
function on(e) {
|
376
|
+
return Array.from((Sr.get(e) || e).children).filter(function(t) {
|
377
|
+
return t.tagName === "STYLE";
|
378
|
+
});
|
379
|
+
}
|
380
|
+
function wo(e) {
|
381
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
382
|
+
if (!Pe())
|
383
|
+
return null;
|
384
|
+
var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = rs(n), c = i === "prependQueue", l = document.createElement("style");
|
385
|
+
l.setAttribute(kn, i), c && a && l.setAttribute(Mn, "".concat(a)), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = e;
|
386
|
+
var s = Yt(t), u = s.firstChild;
|
387
|
+
if (n) {
|
388
|
+
if (c) {
|
389
|
+
var d = (t.styles || on(s)).filter(function(f) {
|
390
|
+
if (!["prepend", "prependQueue"].includes(f.getAttribute(kn)))
|
391
|
+
return !1;
|
392
|
+
var h = Number(f.getAttribute(Mn) || 0);
|
393
|
+
return a >= h;
|
394
|
+
});
|
395
|
+
if (d.length)
|
396
|
+
return s.insertBefore(l, d[d.length - 1].nextSibling), l;
|
397
|
+
}
|
398
|
+
s.insertBefore(l, u);
|
399
|
+
} else
|
400
|
+
s.appendChild(l);
|
401
|
+
return l;
|
402
|
+
}
|
403
|
+
function Po(e) {
|
404
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Yt(t);
|
405
|
+
return (t.styles || on(r)).find(function(n) {
|
406
|
+
return n.getAttribute(Oo(t)) === e;
|
407
|
+
});
|
408
|
+
}
|
409
|
+
function ko(e) {
|
410
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Po(e, t);
|
411
|
+
if (r) {
|
412
|
+
var n = Yt(t);
|
413
|
+
n.removeChild(r);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
function ns(e, t) {
|
417
|
+
var r = Sr.get(e);
|
418
|
+
if (!r || !es(document, r)) {
|
419
|
+
var n = wo("", t), o = n.parentNode;
|
420
|
+
Sr.set(e, o), e.removeChild(n);
|
421
|
+
}
|
422
|
+
}
|
423
|
+
function Ze(e, t) {
|
424
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Yt(r), o = on(n), a = k(k({}, r), {}, {
|
425
|
+
styles: o
|
426
|
+
});
|
427
|
+
ns(n, a);
|
428
|
+
var i = Po(t, a);
|
429
|
+
if (i) {
|
430
|
+
var c, l;
|
431
|
+
if ((c = a.csp) !== null && c !== void 0 && c.nonce && i.nonce !== ((l = a.csp) === null || l === void 0 ? void 0 : l.nonce)) {
|
432
|
+
var s;
|
433
|
+
i.nonce = (s = a.csp) === null || s === void 0 ? void 0 : s.nonce;
|
434
|
+
}
|
435
|
+
return i.innerHTML !== e && (i.innerHTML = e), i;
|
436
|
+
}
|
437
|
+
var u = wo(e, a);
|
438
|
+
return u.setAttribute(Oo(a), t), u;
|
439
|
+
}
|
440
|
+
function os(e, t) {
|
441
|
+
if (e == null) return {};
|
442
|
+
var r = {};
|
443
|
+
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
444
|
+
if (t.indexOf(n) !== -1) continue;
|
445
|
+
r[n] = e[n];
|
446
|
+
}
|
447
|
+
return r;
|
448
|
+
}
|
449
|
+
function xr(e, t) {
|
450
|
+
if (e == null) return {};
|
451
|
+
var r, n, o = os(e, t);
|
452
|
+
if (Object.getOwnPropertySymbols) {
|
453
|
+
var a = Object.getOwnPropertySymbols(e);
|
454
|
+
for (n = 0; n < a.length; n++) r = a[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
455
|
+
}
|
456
|
+
return o;
|
457
|
+
}
|
458
|
+
function Mo(e, t, r) {
|
459
|
+
var n = g.useRef({});
|
460
|
+
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
461
|
+
}
|
462
|
+
var Cr = {}, an = [], as = function(t) {
|
463
|
+
an.push(t);
|
464
|
+
};
|
465
|
+
function sn(e, t) {
|
466
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
467
|
+
var r = an.reduce(function(n, o) {
|
468
|
+
return o(n ?? "", "warning");
|
469
|
+
}, t);
|
470
|
+
r && console.error("Warning: ".concat(r));
|
471
|
+
}
|
472
|
+
}
|
473
|
+
function is(e, t) {
|
474
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
475
|
+
var r = an.reduce(function(n, o) {
|
476
|
+
return o(n ?? "", "note");
|
477
|
+
}, t);
|
478
|
+
r && console.warn("Note: ".concat(r));
|
479
|
+
}
|
480
|
+
}
|
481
|
+
function Ao() {
|
482
|
+
Cr = {};
|
483
|
+
}
|
484
|
+
function jo(e, t, r) {
|
485
|
+
!t && !Cr[r] && (e(!1, r), Cr[r] = !0);
|
486
|
+
}
|
487
|
+
function Fe(e, t) {
|
488
|
+
jo(sn, e, t);
|
489
|
+
}
|
490
|
+
function ss(e, t) {
|
491
|
+
jo(is, e, t);
|
492
|
+
}
|
493
|
+
Fe.preMessage = as;
|
494
|
+
Fe.resetWarned = Ao;
|
495
|
+
Fe.noteOnce = ss;
|
496
|
+
function cs(e, t) {
|
497
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
498
|
+
function o(a, i) {
|
499
|
+
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, l = n.has(a);
|
500
|
+
if (Fe(!l, "Warning: There may be circular references"), l)
|
501
|
+
return !1;
|
502
|
+
if (a === i)
|
503
|
+
return !0;
|
504
|
+
if (r && c > 1)
|
505
|
+
return !1;
|
506
|
+
n.add(a);
|
507
|
+
var s = c + 1;
|
508
|
+
if (Array.isArray(a)) {
|
509
|
+
if (!Array.isArray(i) || a.length !== i.length)
|
510
|
+
return !1;
|
511
|
+
for (var u = 0; u < a.length; u++)
|
512
|
+
if (!o(a[u], i[u], s))
|
513
|
+
return !1;
|
514
|
+
return !0;
|
515
|
+
}
|
516
|
+
if (a && i && F(a) === "object" && F(i) === "object") {
|
517
|
+
var d = Object.keys(a);
|
518
|
+
return d.length !== Object.keys(i).length ? !1 : d.every(function(f) {
|
519
|
+
return o(a[f], i[f], s);
|
520
|
+
});
|
521
|
+
}
|
522
|
+
return !1;
|
523
|
+
}
|
524
|
+
return o(e, t);
|
525
|
+
}
|
526
|
+
function ke(e, t) {
|
527
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
528
|
+
}
|
529
|
+
function An(e, t) {
|
530
|
+
for (var r = 0; r < t.length; r++) {
|
531
|
+
var n = t[r];
|
532
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _o(n.key), n);
|
533
|
+
}
|
534
|
+
}
|
535
|
+
function Me(e, t, r) {
|
536
|
+
return t && An(e.prototype, t), r && An(e, r), Object.defineProperty(e, "prototype", {
|
537
|
+
writable: !1
|
538
|
+
}), e;
|
539
|
+
}
|
540
|
+
var ls = "%";
|
541
|
+
function Er(e) {
|
542
|
+
return e.join(ls);
|
543
|
+
}
|
544
|
+
var us = /* @__PURE__ */ function() {
|
545
|
+
function e(t) {
|
546
|
+
ke(this, e), P(this, "instanceId", void 0), P(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
|
547
|
+
}
|
548
|
+
return Me(e, [{
|
549
|
+
key: "get",
|
550
|
+
value: function(r) {
|
551
|
+
return this.opGet(Er(r));
|
552
|
+
}
|
553
|
+
/** A fast get cache with `get` concat. */
|
554
|
+
}, {
|
555
|
+
key: "opGet",
|
556
|
+
value: function(r) {
|
557
|
+
return this.cache.get(r) || null;
|
558
|
+
}
|
559
|
+
}, {
|
560
|
+
key: "update",
|
561
|
+
value: function(r, n) {
|
562
|
+
return this.opUpdate(Er(r), n);
|
563
|
+
}
|
564
|
+
/** A fast get cache with `get` concat. */
|
565
|
+
}, {
|
566
|
+
key: "opUpdate",
|
567
|
+
value: function(r, n) {
|
568
|
+
var o = this.cache.get(r), a = n(o);
|
569
|
+
a === null ? this.cache.delete(r) : this.cache.set(r, a);
|
570
|
+
}
|
571
|
+
}]), e;
|
572
|
+
}(), tt = "data-token-hash", he = "data-css-hash", fs = "data-cache-path", Re = "__cssinjs_instance__";
|
573
|
+
function ds() {
|
574
|
+
var e = Math.random().toString(12).slice(2);
|
575
|
+
if (typeof document < "u" && document.head && document.body) {
|
576
|
+
var t = document.body.querySelectorAll("style[".concat(he, "]")) || [], r = document.head.firstChild;
|
577
|
+
Array.from(t).forEach(function(o) {
|
578
|
+
o[Re] = o[Re] || e, o[Re] === e && document.head.insertBefore(o, r);
|
579
|
+
});
|
580
|
+
var n = {};
|
581
|
+
Array.from(document.querySelectorAll("style[".concat(he, "]"))).forEach(function(o) {
|
582
|
+
var a = o.getAttribute(he);
|
583
|
+
if (n[a]) {
|
584
|
+
if (o[Re] === e) {
|
585
|
+
var i;
|
586
|
+
(i = o.parentNode) === null || i === void 0 || i.removeChild(o);
|
587
|
+
}
|
588
|
+
} else
|
589
|
+
n[a] = !0;
|
590
|
+
});
|
591
|
+
}
|
592
|
+
return new us(e);
|
593
|
+
}
|
594
|
+
var xt = /* @__PURE__ */ g.createContext({
|
595
|
+
hashPriority: "low",
|
596
|
+
cache: ds(),
|
597
|
+
defaultCache: !0
|
598
|
+
});
|
599
|
+
function ze(e) {
|
600
|
+
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
601
|
+
return e;
|
602
|
+
}
|
603
|
+
function Tr(e, t) {
|
604
|
+
return Tr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
605
|
+
return r.__proto__ = n, r;
|
606
|
+
}, Tr(e, t);
|
607
|
+
}
|
608
|
+
function Qt(e, t) {
|
609
|
+
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
610
|
+
e.prototype = Object.create(t && t.prototype, {
|
611
|
+
constructor: {
|
612
|
+
value: e,
|
613
|
+
writable: !0,
|
614
|
+
configurable: !0
|
615
|
+
}
|
616
|
+
}), Object.defineProperty(e, "prototype", {
|
617
|
+
writable: !1
|
618
|
+
}), t && Tr(e, t);
|
619
|
+
}
|
620
|
+
function Wt(e) {
|
621
|
+
return Wt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
622
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
623
|
+
}, Wt(e);
|
624
|
+
}
|
625
|
+
function No() {
|
626
|
+
try {
|
627
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
628
|
+
}));
|
629
|
+
} catch {
|
630
|
+
}
|
631
|
+
return (No = function() {
|
632
|
+
return !!e;
|
633
|
+
})();
|
634
|
+
}
|
635
|
+
function vs(e, t) {
|
636
|
+
if (t && (F(t) == "object" || typeof t == "function")) return t;
|
637
|
+
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
638
|
+
return ze(e);
|
639
|
+
}
|
640
|
+
function qt(e) {
|
641
|
+
var t = No();
|
642
|
+
return function() {
|
643
|
+
var r, n = Wt(e);
|
644
|
+
if (t) {
|
645
|
+
var o = Wt(this).constructor;
|
646
|
+
r = Reflect.construct(n, arguments, o);
|
647
|
+
} else r = n.apply(this, arguments);
|
648
|
+
return vs(this, r);
|
649
|
+
};
|
650
|
+
}
|
651
|
+
function gs(e, t) {
|
652
|
+
if (e.length !== t.length)
|
653
|
+
return !1;
|
654
|
+
for (var r = 0; r < e.length; r++)
|
655
|
+
if (e[r] !== t[r])
|
656
|
+
return !1;
|
657
|
+
return !0;
|
658
|
+
}
|
659
|
+
var cn = /* @__PURE__ */ function() {
|
660
|
+
function e() {
|
661
|
+
ke(this, e), P(this, "cache", void 0), P(this, "keys", void 0), P(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
662
|
+
}
|
663
|
+
return Me(e, [{
|
664
|
+
key: "size",
|
665
|
+
value: function() {
|
666
|
+
return this.keys.length;
|
667
|
+
}
|
668
|
+
}, {
|
669
|
+
key: "internalGet",
|
670
|
+
value: function(r) {
|
671
|
+
var n, o, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = {
|
672
|
+
map: this.cache
|
673
|
+
};
|
674
|
+
return r.forEach(function(c) {
|
675
|
+
if (!i)
|
676
|
+
i = void 0;
|
677
|
+
else {
|
678
|
+
var l;
|
679
|
+
i = (l = i) === null || l === void 0 || (l = l.map) === null || l === void 0 ? void 0 : l.get(c);
|
680
|
+
}
|
681
|
+
}), (n = i) !== null && n !== void 0 && n.value && a && (i.value[1] = this.cacheCallTimes++), (o = i) === null || o === void 0 ? void 0 : o.value;
|
682
|
+
}
|
683
|
+
}, {
|
684
|
+
key: "get",
|
685
|
+
value: function(r) {
|
686
|
+
var n;
|
687
|
+
return (n = this.internalGet(r, !0)) === null || n === void 0 ? void 0 : n[0];
|
688
|
+
}
|
689
|
+
}, {
|
690
|
+
key: "has",
|
691
|
+
value: function(r) {
|
692
|
+
return !!this.internalGet(r);
|
693
|
+
}
|
694
|
+
}, {
|
695
|
+
key: "set",
|
696
|
+
value: function(r, n) {
|
697
|
+
var o = this;
|
698
|
+
if (!this.has(r)) {
|
699
|
+
if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
|
700
|
+
var a = this.keys.reduce(function(s, u) {
|
701
|
+
var d = R(s, 2), f = d[1];
|
702
|
+
return o.internalGet(u)[1] < f ? [u, o.internalGet(u)[1]] : s;
|
703
|
+
}, [this.keys[0], this.cacheCallTimes]), i = R(a, 1), c = i[0];
|
704
|
+
this.delete(c);
|
705
|
+
}
|
706
|
+
this.keys.push(r);
|
707
|
+
}
|
708
|
+
var l = this.cache;
|
709
|
+
r.forEach(function(s, u) {
|
710
|
+
if (u === r.length - 1)
|
711
|
+
l.set(s, {
|
712
|
+
value: [n, o.cacheCallTimes++]
|
713
|
+
});
|
714
|
+
else {
|
715
|
+
var d = l.get(s);
|
716
|
+
d ? d.map || (d.map = /* @__PURE__ */ new Map()) : l.set(s, {
|
717
|
+
map: /* @__PURE__ */ new Map()
|
718
|
+
}), l = l.get(s).map;
|
719
|
+
}
|
720
|
+
});
|
721
|
+
}
|
722
|
+
}, {
|
723
|
+
key: "deleteByPath",
|
724
|
+
value: function(r, n) {
|
725
|
+
var o = r.get(n[0]);
|
726
|
+
if (n.length === 1) {
|
727
|
+
var a;
|
728
|
+
return o.map ? r.set(n[0], {
|
729
|
+
map: o.map
|
730
|
+
}) : r.delete(n[0]), (a = o.value) === null || a === void 0 ? void 0 : a[0];
|
731
|
+
}
|
732
|
+
var i = this.deleteByPath(o.map, n.slice(1));
|
733
|
+
return (!o.map || o.map.size === 0) && !o.value && r.delete(n[0]), i;
|
734
|
+
}
|
735
|
+
}, {
|
736
|
+
key: "delete",
|
737
|
+
value: function(r) {
|
738
|
+
if (this.has(r))
|
739
|
+
return this.keys = this.keys.filter(function(n) {
|
740
|
+
return !gs(n, r);
|
741
|
+
}), this.deleteByPath(this.cache, r);
|
742
|
+
}
|
743
|
+
}]), e;
|
744
|
+
}();
|
745
|
+
P(cn, "MAX_CACHE_SIZE", 20);
|
746
|
+
P(cn, "MAX_CACHE_OFFSET", 5);
|
747
|
+
var jn = 0, $o = /* @__PURE__ */ function() {
|
748
|
+
function e(t) {
|
749
|
+
ke(this, e), P(this, "derivatives", void 0), P(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = jn, t.length === 0 && sn(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), jn += 1;
|
750
|
+
}
|
751
|
+
return Me(e, [{
|
752
|
+
key: "getDerivativeToken",
|
753
|
+
value: function(r) {
|
754
|
+
return this.derivatives.reduce(function(n, o) {
|
755
|
+
return o(r, n);
|
756
|
+
}, void 0);
|
757
|
+
}
|
758
|
+
}]), e;
|
759
|
+
}(), ir = new cn();
|
760
|
+
function _r(e) {
|
761
|
+
var t = Array.isArray(e) ? e : [e];
|
762
|
+
return ir.has(t) || ir.set(t, new $o(t)), ir.get(t);
|
763
|
+
}
|
764
|
+
var ps = /* @__PURE__ */ new WeakMap(), sr = {};
|
765
|
+
function hs(e, t) {
|
766
|
+
for (var r = ps, n = 0; n < t.length; n += 1) {
|
767
|
+
var o = t[n];
|
768
|
+
r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
|
769
|
+
}
|
770
|
+
return r.has(sr) || r.set(sr, e()), r.get(sr);
|
771
|
+
}
|
772
|
+
var Nn = /* @__PURE__ */ new WeakMap();
|
773
|
+
function vt(e) {
|
774
|
+
var t = Nn.get(e) || "";
|
775
|
+
return t || (Object.keys(e).forEach(function(r) {
|
776
|
+
var n = e[r];
|
777
|
+
t += r, n instanceof $o ? t += n.id : n && F(n) === "object" ? t += vt(n) : t += n;
|
778
|
+
}), t = gt(t), Nn.set(e, t)), t;
|
779
|
+
}
|
780
|
+
function $n(e, t) {
|
781
|
+
return gt("".concat(t, "_").concat(vt(e)));
|
782
|
+
}
|
783
|
+
var Or = Pe();
|
784
|
+
function Ne(e) {
|
785
|
+
return typeof e == "number" ? "".concat(e, "px") : e;
|
786
|
+
}
|
787
|
+
function Xt(e, t, r) {
|
788
|
+
var n, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
789
|
+
if (a)
|
790
|
+
return e;
|
791
|
+
var i = k(k({}, o), {}, (n = {}, P(n, tt, t), P(n, he, r), n)), c = Object.keys(i).map(function(l) {
|
792
|
+
var s = i[l];
|
793
|
+
return s ? "".concat(l, '="').concat(s, '"') : null;
|
794
|
+
}).filter(function(l) {
|
795
|
+
return l;
|
796
|
+
}).join(" ");
|
797
|
+
return "<style ".concat(c, ">").concat(e, "</style>");
|
798
|
+
}
|
799
|
+
var Ht = function(t) {
|
800
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
801
|
+
return "--".concat(r ? "".concat(r, "-") : "").concat(t).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase();
|
802
|
+
}, ms = function(t, r, n) {
|
803
|
+
return Object.keys(t).length ? ".".concat(r).concat(n != null && n.scope ? ".".concat(n.scope) : "", "{").concat(Object.entries(t).map(function(o) {
|
804
|
+
var a = R(o, 2), i = a[0], c = a[1];
|
805
|
+
return "".concat(i, ":").concat(c, ";");
|
806
|
+
}).join(""), "}") : "";
|
807
|
+
}, Ro = function(t, r, n) {
|
808
|
+
var o = {}, a = {};
|
809
|
+
return Object.entries(t).forEach(function(i) {
|
810
|
+
var c, l, s = R(i, 2), u = s[0], d = s[1];
|
811
|
+
if (n != null && (c = n.preserve) !== null && c !== void 0 && c[u])
|
812
|
+
a[u] = d;
|
813
|
+
else if ((typeof d == "string" || typeof d == "number") && !(n != null && (l = n.ignore) !== null && l !== void 0 && l[u])) {
|
814
|
+
var f, h = Ht(u, n == null ? void 0 : n.prefix);
|
815
|
+
o[h] = typeof d == "number" && !(n != null && (f = n.unitless) !== null && f !== void 0 && f[u]) ? "".concat(d, "px") : String(d), a[u] = "var(".concat(h, ")");
|
816
|
+
}
|
817
|
+
}), [a, ms(o, r, {
|
818
|
+
scope: n == null ? void 0 : n.scope
|
819
|
+
})];
|
820
|
+
}, Rn = process.env.NODE_ENV !== "test" && Pe() ? g.useLayoutEffect : g.useEffect, ys = function(t, r) {
|
821
|
+
var n = g.useRef(!0);
|
822
|
+
Rn(function() {
|
823
|
+
return t(n.current);
|
824
|
+
}, r), Rn(function() {
|
825
|
+
return n.current = !1, function() {
|
826
|
+
n.current = !0;
|
827
|
+
};
|
828
|
+
}, []);
|
829
|
+
}, bs = k({}, g), Ln = bs.useInsertionEffect, Ss = function(t, r, n) {
|
830
|
+
g.useMemo(t, n), ys(function() {
|
831
|
+
return r(!0);
|
832
|
+
}, n);
|
833
|
+
}, xs = Ln ? function(e, t, r) {
|
834
|
+
return Ln(function() {
|
835
|
+
return e(), t();
|
836
|
+
}, r);
|
837
|
+
} : Ss, Cs = k({}, g), Es = Cs.useInsertionEffect, Ts = function(t) {
|
838
|
+
var r = [], n = !1;
|
839
|
+
function o(a) {
|
840
|
+
if (n) {
|
841
|
+
process.env.NODE_ENV !== "production" && sn(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
|
842
|
+
return;
|
843
|
+
}
|
844
|
+
r.push(a);
|
845
|
+
}
|
846
|
+
return g.useEffect(function() {
|
847
|
+
return n = !1, function() {
|
848
|
+
n = !0, r.length && r.forEach(function(a) {
|
849
|
+
return a();
|
850
|
+
});
|
851
|
+
};
|
852
|
+
}, t), o;
|
853
|
+
}, _s = function() {
|
854
|
+
return function(t) {
|
855
|
+
t();
|
856
|
+
};
|
857
|
+
}, Os = typeof Es < "u" ? Ts : _s;
|
858
|
+
function ws() {
|
859
|
+
return !1;
|
860
|
+
}
|
861
|
+
var wr = !1;
|
862
|
+
function Ps() {
|
863
|
+
return wr;
|
864
|
+
}
|
865
|
+
const ks = process.env.NODE_ENV === "production" ? ws : Ps;
|
866
|
+
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
867
|
+
var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : null;
|
868
|
+
if (kt && typeof kt.webpackHotUpdate == "function") {
|
869
|
+
var Ms = kt.webpackHotUpdate;
|
870
|
+
kt.webpackHotUpdate = function() {
|
871
|
+
return wr = !0, setTimeout(function() {
|
872
|
+
wr = !1;
|
873
|
+
}, 0), Ms.apply(void 0, arguments);
|
874
|
+
};
|
875
|
+
}
|
876
|
+
}
|
877
|
+
function ln(e, t, r, n, o) {
|
878
|
+
var a = g.useContext(xt), i = a.cache, c = [e].concat(Te(t)), l = Er(c), s = Os([l]), u = ks(), d = function(p) {
|
879
|
+
i.opUpdate(l, function(v) {
|
880
|
+
var x = v || [void 0, void 0], b = R(x, 2), C = b[0], T = C === void 0 ? 0 : C, y = b[1], E = y;
|
881
|
+
process.env.NODE_ENV !== "production" && y && u && (n == null || n(E, u), E = null);
|
882
|
+
var S = E || r(), _ = [T, S];
|
883
|
+
return p ? p(_) : _;
|
884
|
+
});
|
885
|
+
};
|
886
|
+
g.useMemo(
|
887
|
+
function() {
|
888
|
+
d();
|
889
|
+
},
|
890
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
891
|
+
[l]
|
892
|
+
/* eslint-enable */
|
893
|
+
);
|
894
|
+
var f = i.opGet(l);
|
895
|
+
process.env.NODE_ENV !== "production" && !f && (d(), f = i.opGet(l));
|
896
|
+
var h = f[1];
|
897
|
+
return xs(function() {
|
898
|
+
o == null || o(h);
|
899
|
+
}, function(m) {
|
900
|
+
return d(function(p) {
|
901
|
+
var v = R(p, 2), x = v[0], b = v[1];
|
902
|
+
return m && x === 0 && (o == null || o(h)), [x + 1, b];
|
903
|
+
}), function() {
|
904
|
+
i.opUpdate(l, function(p) {
|
905
|
+
var v = p || [], x = R(v, 2), b = x[0], C = b === void 0 ? 0 : b, T = x[1], y = C - 1;
|
906
|
+
return y === 0 ? (s(function() {
|
907
|
+
(m || !i.opGet(l)) && (n == null || n(T, !1));
|
908
|
+
}), null) : [C - 1, T];
|
909
|
+
});
|
910
|
+
};
|
911
|
+
}, [l]), h;
|
912
|
+
}
|
913
|
+
var As = {}, js = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", Ve = /* @__PURE__ */ new Map();
|
914
|
+
function Ns(e) {
|
915
|
+
Ve.set(e, (Ve.get(e) || 0) + 1);
|
916
|
+
}
|
917
|
+
function $s(e, t) {
|
918
|
+
if (typeof document < "u") {
|
919
|
+
var r = document.querySelectorAll("style[".concat(tt, '="').concat(e, '"]'));
|
920
|
+
r.forEach(function(n) {
|
921
|
+
if (n[Re] === t) {
|
922
|
+
var o;
|
923
|
+
(o = n.parentNode) === null || o === void 0 || o.removeChild(n);
|
924
|
+
}
|
925
|
+
});
|
926
|
+
}
|
927
|
+
}
|
928
|
+
var Rs = 0;
|
929
|
+
function Ls(e, t) {
|
930
|
+
Ve.set(e, (Ve.get(e) || 0) - 1);
|
931
|
+
var r = Array.from(Ve.keys()), n = r.filter(function(o) {
|
932
|
+
var a = Ve.get(o) || 0;
|
933
|
+
return a <= 0;
|
934
|
+
});
|
935
|
+
r.length - n.length > Rs && n.forEach(function(o) {
|
936
|
+
$s(o, t), Ve.delete(o);
|
937
|
+
});
|
938
|
+
}
|
939
|
+
var Is = function(t, r, n, o) {
|
940
|
+
var a = n.getDerivativeToken(t), i = k(k({}, a), r);
|
941
|
+
return o && (i = o(i)), i;
|
942
|
+
}, Lo = "token";
|
943
|
+
function Hs(e, t) {
|
944
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = He(xt), o = n.cache.instanceId, a = n.container, i = r.salt, c = i === void 0 ? "" : i, l = r.override, s = l === void 0 ? As : l, u = r.formatToken, d = r.getComputedToken, f = r.cssVar, h = hs(function() {
|
945
|
+
return Object.assign.apply(Object, [{}].concat(Te(t)));
|
946
|
+
}, t), m = vt(h), p = vt(s), v = f ? vt(f) : "", x = ln(Lo, [c, e.id, m, p, v], function() {
|
947
|
+
var b, C = d ? d(h, s, e) : Is(h, s, e, u), T = k({}, C), y = "";
|
948
|
+
if (f) {
|
949
|
+
var E = Ro(C, f.key, {
|
950
|
+
prefix: f.prefix,
|
951
|
+
ignore: f.ignore,
|
952
|
+
unitless: f.unitless,
|
953
|
+
preserve: f.preserve
|
954
|
+
}), S = R(E, 2);
|
955
|
+
C = S[0], y = S[1];
|
956
|
+
}
|
957
|
+
var _ = $n(C, c);
|
958
|
+
C._tokenKey = _, T._tokenKey = $n(T, c);
|
959
|
+
var j = (b = f == null ? void 0 : f.key) !== null && b !== void 0 ? b : _;
|
960
|
+
C._themeKey = j, Ns(j);
|
961
|
+
var M = "".concat(js, "-").concat(gt(_));
|
962
|
+
return C._hashId = M, [C, M, T, y, (f == null ? void 0 : f.key) || ""];
|
963
|
+
}, function(b) {
|
964
|
+
Ls(b[0]._themeKey, o);
|
965
|
+
}, function(b) {
|
966
|
+
var C = R(b, 4), T = C[0], y = C[3];
|
967
|
+
if (f && y) {
|
968
|
+
var E = Ze(y, gt("css-variables-".concat(T._themeKey)), {
|
969
|
+
mark: he,
|
970
|
+
prepend: "queue",
|
971
|
+
attachTo: a,
|
972
|
+
priority: -999
|
973
|
+
});
|
974
|
+
E[Re] = o, E.setAttribute(tt, T._themeKey);
|
975
|
+
}
|
976
|
+
});
|
977
|
+
return x;
|
978
|
+
}
|
979
|
+
var Ds = function(t, r, n) {
|
980
|
+
var o = R(t, 5), a = o[2], i = o[3], c = o[4], l = n || {}, s = l.plain;
|
981
|
+
if (!i)
|
982
|
+
return null;
|
983
|
+
var u = a._tokenKey, d = -999, f = {
|
984
|
+
"data-rc-order": "prependQueue",
|
985
|
+
"data-rc-priority": "".concat(d)
|
986
|
+
}, h = Xt(i, c, u, f, s);
|
987
|
+
return [d, u, h];
|
988
|
+
};
|
989
|
+
function Gt() {
|
990
|
+
return Gt = Object.assign ? Object.assign.bind() : function(e) {
|
991
|
+
for (var t = 1; t < arguments.length; t++) {
|
992
|
+
var r = arguments[t];
|
993
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
994
|
+
}
|
995
|
+
return e;
|
996
|
+
}, Gt.apply(null, arguments);
|
997
|
+
}
|
998
|
+
var Vs = {
|
999
|
+
animationIterationCount: 1,
|
1000
|
+
borderImageOutset: 1,
|
1001
|
+
borderImageSlice: 1,
|
1002
|
+
borderImageWidth: 1,
|
1003
|
+
boxFlex: 1,
|
1004
|
+
boxFlexGroup: 1,
|
1005
|
+
boxOrdinalGroup: 1,
|
1006
|
+
columnCount: 1,
|
1007
|
+
columns: 1,
|
1008
|
+
flex: 1,
|
1009
|
+
flexGrow: 1,
|
1010
|
+
flexPositive: 1,
|
1011
|
+
flexShrink: 1,
|
1012
|
+
flexNegative: 1,
|
1013
|
+
flexOrder: 1,
|
1014
|
+
gridRow: 1,
|
1015
|
+
gridRowEnd: 1,
|
1016
|
+
gridRowSpan: 1,
|
1017
|
+
gridRowStart: 1,
|
1018
|
+
gridColumn: 1,
|
1019
|
+
gridColumnEnd: 1,
|
1020
|
+
gridColumnSpan: 1,
|
1021
|
+
gridColumnStart: 1,
|
1022
|
+
msGridRow: 1,
|
1023
|
+
msGridRowSpan: 1,
|
1024
|
+
msGridColumn: 1,
|
1025
|
+
msGridColumnSpan: 1,
|
1026
|
+
fontWeight: 1,
|
1027
|
+
lineHeight: 1,
|
1028
|
+
opacity: 1,
|
1029
|
+
order: 1,
|
1030
|
+
orphans: 1,
|
1031
|
+
tabSize: 1,
|
1032
|
+
widows: 1,
|
1033
|
+
zIndex: 1,
|
1034
|
+
zoom: 1,
|
1035
|
+
WebkitLineClamp: 1,
|
1036
|
+
// SVG-related properties
|
1037
|
+
fillOpacity: 1,
|
1038
|
+
floodOpacity: 1,
|
1039
|
+
stopOpacity: 1,
|
1040
|
+
strokeDasharray: 1,
|
1041
|
+
strokeDashoffset: 1,
|
1042
|
+
strokeMiterlimit: 1,
|
1043
|
+
strokeOpacity: 1,
|
1044
|
+
strokeWidth: 1
|
1045
|
+
}, Io = "comm", Ho = "rule", Do = "decl", zs = "@import", Bs = "@namespace", Fs = "@keyframes", Ws = "@layer", Vo = Math.abs, un = String.fromCharCode;
|
1046
|
+
function zo(e) {
|
1047
|
+
return e.trim();
|
1048
|
+
}
|
1049
|
+
function Dt(e, t, r) {
|
1050
|
+
return e.replace(t, r);
|
1051
|
+
}
|
1052
|
+
function Xs(e, t, r) {
|
1053
|
+
return e.indexOf(t, r);
|
1054
|
+
}
|
1055
|
+
function Je(e, t) {
|
1056
|
+
return e.charCodeAt(t) | 0;
|
1057
|
+
}
|
1058
|
+
function rt(e, t, r) {
|
1059
|
+
return e.slice(t, r);
|
1060
|
+
}
|
1061
|
+
function Ce(e) {
|
1062
|
+
return e.length;
|
1063
|
+
}
|
1064
|
+
function Gs(e) {
|
1065
|
+
return e.length;
|
1066
|
+
}
|
1067
|
+
function Mt(e, t) {
|
1068
|
+
return t.push(e), e;
|
1069
|
+
}
|
1070
|
+
var Zt = 1, nt = 1, Bo = 0, ve = 0, J = 0, ot = "";
|
1071
|
+
function fn(e, t, r, n, o, a, i, c) {
|
1072
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Zt, column: nt, length: i, return: "", siblings: c };
|
1073
|
+
}
|
1074
|
+
function Us() {
|
1075
|
+
return J;
|
1076
|
+
}
|
1077
|
+
function Ks() {
|
1078
|
+
return J = ve > 0 ? Je(ot, --ve) : 0, nt--, J === 10 && (nt = 1, Zt--), J;
|
1079
|
+
}
|
1080
|
+
function me() {
|
1081
|
+
return J = ve < Bo ? Je(ot, ve++) : 0, nt++, J === 10 && (nt = 1, Zt++), J;
|
1082
|
+
}
|
1083
|
+
function Le() {
|
1084
|
+
return Je(ot, ve);
|
1085
|
+
}
|
1086
|
+
function Vt() {
|
1087
|
+
return ve;
|
1088
|
+
}
|
1089
|
+
function Jt(e, t) {
|
1090
|
+
return rt(ot, e, t);
|
1091
|
+
}
|
1092
|
+
function pt(e) {
|
1093
|
+
switch (e) {
|
1094
|
+
// \0 \t \n \r \s whitespace token
|
1095
|
+
case 0:
|
1096
|
+
case 9:
|
1097
|
+
case 10:
|
1098
|
+
case 13:
|
1099
|
+
case 32:
|
1100
|
+
return 5;
|
1101
|
+
// ! + , / > @ ~ isolate token
|
1102
|
+
case 33:
|
1103
|
+
case 43:
|
1104
|
+
case 44:
|
1105
|
+
case 47:
|
1106
|
+
case 62:
|
1107
|
+
case 64:
|
1108
|
+
case 126:
|
1109
|
+
// ; { } breakpoint token
|
1110
|
+
case 59:
|
1111
|
+
case 123:
|
1112
|
+
case 125:
|
1113
|
+
return 4;
|
1114
|
+
// : accompanied token
|
1115
|
+
case 58:
|
1116
|
+
return 3;
|
1117
|
+
// " ' ( [ opening delimit token
|
1118
|
+
case 34:
|
1119
|
+
case 39:
|
1120
|
+
case 40:
|
1121
|
+
case 91:
|
1122
|
+
return 2;
|
1123
|
+
// ) ] closing delimit token
|
1124
|
+
case 41:
|
1125
|
+
case 93:
|
1126
|
+
return 1;
|
1127
|
+
}
|
1128
|
+
return 0;
|
1129
|
+
}
|
1130
|
+
function Ys(e) {
|
1131
|
+
return Zt = nt = 1, Bo = Ce(ot = e), ve = 0, [];
|
1132
|
+
}
|
1133
|
+
function Qs(e) {
|
1134
|
+
return ot = "", e;
|
1135
|
+
}
|
1136
|
+
function cr(e) {
|
1137
|
+
return zo(Jt(ve - 1, Pr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
1138
|
+
}
|
1139
|
+
function qs(e) {
|
1140
|
+
for (; (J = Le()) && J < 33; )
|
1141
|
+
me();
|
1142
|
+
return pt(e) > 2 || pt(J) > 3 ? "" : " ";
|
1143
|
+
}
|
1144
|
+
function Zs(e, t) {
|
1145
|
+
for (; --t && me() && !(J < 48 || J > 102 || J > 57 && J < 65 || J > 70 && J < 97); )
|
1146
|
+
;
|
1147
|
+
return Jt(e, Vt() + (t < 6 && Le() == 32 && me() == 32));
|
1148
|
+
}
|
1149
|
+
function Pr(e) {
|
1150
|
+
for (; me(); )
|
1151
|
+
switch (J) {
|
1152
|
+
// ] ) " '
|
1153
|
+
case e:
|
1154
|
+
return ve;
|
1155
|
+
// " '
|
1156
|
+
case 34:
|
1157
|
+
case 39:
|
1158
|
+
e !== 34 && e !== 39 && Pr(J);
|
1159
|
+
break;
|
1160
|
+
// (
|
1161
|
+
case 40:
|
1162
|
+
e === 41 && Pr(e);
|
1163
|
+
break;
|
1164
|
+
// \
|
1165
|
+
case 92:
|
1166
|
+
me();
|
1167
|
+
break;
|
1168
|
+
}
|
1169
|
+
return ve;
|
1170
|
+
}
|
1171
|
+
function Js(e, t) {
|
1172
|
+
for (; me() && e + J !== 57; )
|
1173
|
+
if (e + J === 84 && Le() === 47)
|
1174
|
+
break;
|
1175
|
+
return "/*" + Jt(t, ve - 1) + "*" + un(e === 47 ? e : me());
|
1176
|
+
}
|
1177
|
+
function ec(e) {
|
1178
|
+
for (; !pt(Le()); )
|
1179
|
+
me();
|
1180
|
+
return Jt(e, ve);
|
1181
|
+
}
|
1182
|
+
function tc(e) {
|
1183
|
+
return Qs(zt("", null, null, null, [""], e = Ys(e), 0, [0], e));
|
1184
|
+
}
|
1185
|
+
function zt(e, t, r, n, o, a, i, c, l) {
|
1186
|
+
for (var s = 0, u = 0, d = i, f = 0, h = 0, m = 0, p = 1, v = 1, x = 1, b = 0, C = "", T = o, y = a, E = n, S = C; v; )
|
1187
|
+
switch (m = b, b = me()) {
|
1188
|
+
// (
|
1189
|
+
case 40:
|
1190
|
+
if (m != 108 && Je(S, d - 1) == 58) {
|
1191
|
+
Xs(S += Dt(cr(b), "&", "&\f"), "&\f", Vo(s ? c[s - 1] : 0)) != -1 && (x = -1);
|
1192
|
+
break;
|
1193
|
+
}
|
1194
|
+
// " ' [
|
1195
|
+
case 34:
|
1196
|
+
case 39:
|
1197
|
+
case 91:
|
1198
|
+
S += cr(b);
|
1199
|
+
break;
|
1200
|
+
// \t \n \r \s
|
1201
|
+
case 9:
|
1202
|
+
case 10:
|
1203
|
+
case 13:
|
1204
|
+
case 32:
|
1205
|
+
S += qs(m);
|
1206
|
+
break;
|
1207
|
+
// \
|
1208
|
+
case 92:
|
1209
|
+
S += Zs(Vt() - 1, 7);
|
1210
|
+
continue;
|
1211
|
+
// /
|
1212
|
+
case 47:
|
1213
|
+
switch (Le()) {
|
1214
|
+
case 42:
|
1215
|
+
case 47:
|
1216
|
+
Mt(rc(Js(me(), Vt()), t, r, l), l), (pt(m || 1) == 5 || pt(Le() || 1) == 5) && Ce(S) && rt(S, -1, void 0) !== " " && (S += " ");
|
1217
|
+
break;
|
1218
|
+
default:
|
1219
|
+
S += "/";
|
1220
|
+
}
|
1221
|
+
break;
|
1222
|
+
// {
|
1223
|
+
case 123 * p:
|
1224
|
+
c[s++] = Ce(S) * x;
|
1225
|
+
// } ; \0
|
1226
|
+
case 125 * p:
|
1227
|
+
case 59:
|
1228
|
+
case 0:
|
1229
|
+
switch (b) {
|
1230
|
+
// \0 }
|
1231
|
+
case 0:
|
1232
|
+
case 125:
|
1233
|
+
v = 0;
|
1234
|
+
// ;
|
1235
|
+
case 59 + u:
|
1236
|
+
x == -1 && (S = Dt(S, /\f/g, "")), h > 0 && (Ce(S) - d || p === 0 && m === 47) && Mt(h > 32 ? Hn(S + ";", n, r, d - 1, l) : Hn(Dt(S, " ", "") + ";", n, r, d - 2, l), l);
|
1237
|
+
break;
|
1238
|
+
// @ ;
|
1239
|
+
case 59:
|
1240
|
+
S += ";";
|
1241
|
+
// { rule/at-rule
|
1242
|
+
default:
|
1243
|
+
if (Mt(E = In(S, t, r, s, u, o, c, C, T = [], y = [], d, a), a), b === 123)
|
1244
|
+
if (u === 0)
|
1245
|
+
zt(S, t, E, E, T, a, d, c, y);
|
1246
|
+
else {
|
1247
|
+
switch (f) {
|
1248
|
+
// c(ontainer)
|
1249
|
+
case 99:
|
1250
|
+
if (Je(S, 3) === 110) break;
|
1251
|
+
// l(ayer)
|
1252
|
+
case 108:
|
1253
|
+
if (Je(S, 2) === 97) break;
|
1254
|
+
default:
|
1255
|
+
u = 0;
|
1256
|
+
// d(ocument) m(edia) s(upports)
|
1257
|
+
case 100:
|
1258
|
+
case 109:
|
1259
|
+
case 115:
|
1260
|
+
}
|
1261
|
+
u ? zt(e, E, E, n && Mt(In(e, E, E, 0, 0, o, c, C, o, T = [], d, y), y), o, y, d, c, n ? T : y) : zt(S, E, E, E, [""], y, 0, c, y);
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
s = u = h = 0, p = x = 1, C = S = "", d = i;
|
1265
|
+
break;
|
1266
|
+
// :
|
1267
|
+
case 58:
|
1268
|
+
d = 1 + Ce(S), h = m;
|
1269
|
+
default:
|
1270
|
+
if (p < 1) {
|
1271
|
+
if (b == 123)
|
1272
|
+
--p;
|
1273
|
+
else if (b == 125 && p++ == 0 && Ks() == 125)
|
1274
|
+
continue;
|
1275
|
+
}
|
1276
|
+
switch (S += un(b), b * p) {
|
1277
|
+
// &
|
1278
|
+
case 38:
|
1279
|
+
x = u > 0 ? 1 : (S += "\f", -1);
|
1280
|
+
break;
|
1281
|
+
// ,
|
1282
|
+
case 44:
|
1283
|
+
c[s++] = (Ce(S) - 1) * x, x = 1;
|
1284
|
+
break;
|
1285
|
+
// @
|
1286
|
+
case 64:
|
1287
|
+
Le() === 45 && (S += cr(me())), f = Le(), u = d = Ce(C = S += ec(Vt())), b++;
|
1288
|
+
break;
|
1289
|
+
// -
|
1290
|
+
case 45:
|
1291
|
+
m === 45 && Ce(S) == 2 && (p = 0);
|
1292
|
+
}
|
1293
|
+
}
|
1294
|
+
return a;
|
1295
|
+
}
|
1296
|
+
function In(e, t, r, n, o, a, i, c, l, s, u, d) {
|
1297
|
+
for (var f = o - 1, h = o === 0 ? a : [""], m = Gs(h), p = 0, v = 0, x = 0; p < n; ++p)
|
1298
|
+
for (var b = 0, C = rt(e, f + 1, f = Vo(v = i[p])), T = e; b < m; ++b)
|
1299
|
+
(T = zo(v > 0 ? h[b] + " " + C : Dt(C, /&\f/g, h[b]))) && (l[x++] = T);
|
1300
|
+
return fn(e, t, r, o === 0 ? Ho : c, l, s, u, d);
|
1301
|
+
}
|
1302
|
+
function rc(e, t, r, n) {
|
1303
|
+
return fn(e, t, r, Io, un(Us()), rt(e, 2, -2), 0, n);
|
1304
|
+
}
|
1305
|
+
function Hn(e, t, r, n, o) {
|
1306
|
+
return fn(e, t, r, Do, rt(e, 0, n), rt(e, n + 1, -1), n, o);
|
1307
|
+
}
|
1308
|
+
function kr(e, t) {
|
1309
|
+
for (var r = "", n = 0; n < e.length; n++)
|
1310
|
+
r += t(e[n], n, e, t) || "";
|
1311
|
+
return r;
|
1312
|
+
}
|
1313
|
+
function nc(e, t, r, n) {
|
1314
|
+
switch (e.type) {
|
1315
|
+
case Ws:
|
1316
|
+
if (e.children.length) break;
|
1317
|
+
case zs:
|
1318
|
+
case Bs:
|
1319
|
+
case Do:
|
1320
|
+
return e.return = e.return || e.value;
|
1321
|
+
case Io:
|
1322
|
+
return "";
|
1323
|
+
case Fs:
|
1324
|
+
return e.return = e.value + "{" + kr(e.children, n) + "}";
|
1325
|
+
case Ho:
|
1326
|
+
if (!Ce(e.value = e.props.join(","))) return "";
|
1327
|
+
}
|
1328
|
+
return Ce(r = kr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
1329
|
+
}
|
1330
|
+
function Fo(e, t) {
|
1331
|
+
var r = t.path, n = t.parentSelectors;
|
1332
|
+
Fe(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
|
1333
|
+
}
|
1334
|
+
var oc = function(t, r, n) {
|
1335
|
+
if (t === "content") {
|
1336
|
+
var o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, a = ["normal", "none", "initial", "inherit", "unset"];
|
1337
|
+
(typeof r != "string" || a.indexOf(r) === -1 && !o.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && Fo("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n);
|
1338
|
+
}
|
1339
|
+
}, ac = function(t, r, n) {
|
1340
|
+
t === "animation" && n.hashId && r !== "none" && Fo("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
|
1341
|
+
}, Dn = "data-ant-cssinjs-cache-path", Wo = "_FILE_STYLE__", Be, Xo = !0;
|
1342
|
+
function ic() {
|
1343
|
+
if (!Be && (Be = {}, Pe())) {
|
1344
|
+
var e = document.createElement("div");
|
1345
|
+
e.className = Dn, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
1346
|
+
var t = getComputedStyle(e).content || "";
|
1347
|
+
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
|
1348
|
+
var a = o.split(":"), i = R(a, 2), c = i[0], l = i[1];
|
1349
|
+
Be[c] = l;
|
1350
|
+
});
|
1351
|
+
var r = document.querySelector("style[".concat(Dn, "]"));
|
1352
|
+
if (r) {
|
1353
|
+
var n;
|
1354
|
+
Xo = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
|
1355
|
+
}
|
1356
|
+
document.body.removeChild(e);
|
1357
|
+
}
|
1358
|
+
}
|
1359
|
+
function sc(e) {
|
1360
|
+
return ic(), !!Be[e];
|
1361
|
+
}
|
1362
|
+
function cc(e) {
|
1363
|
+
var t = Be[e], r = null;
|
1364
|
+
if (t && Pe())
|
1365
|
+
if (Xo)
|
1366
|
+
r = Wo;
|
1367
|
+
else {
|
1368
|
+
var n = document.querySelector("style[".concat(he, '="').concat(Be[e], '"]'));
|
1369
|
+
n ? r = n.innerHTML : delete Be[e];
|
1370
|
+
}
|
1371
|
+
return [r, t];
|
1372
|
+
}
|
1373
|
+
var Go = "_skip_check_", Uo = "_multi_value_";
|
1374
|
+
function Bt(e) {
|
1375
|
+
var t = kr(tc(e), nc);
|
1376
|
+
return t.replace(/\{%%%\:[^;];}/g, ";");
|
1377
|
+
}
|
1378
|
+
function lc(e) {
|
1379
|
+
return F(e) === "object" && e && (Go in e || Uo in e);
|
1380
|
+
}
|
1381
|
+
function Vn(e, t, r) {
|
1382
|
+
if (!t)
|
1383
|
+
return e;
|
1384
|
+
var n = ".".concat(t), o = r === "low" ? ":where(".concat(n, ")") : n, a = e.split(",").map(function(i) {
|
1385
|
+
var c, l = i.trim().split(/\s+/), s = l[0] || "", u = ((c = s.match(/^\w+/)) === null || c === void 0 ? void 0 : c[0]) || "";
|
1386
|
+
return s = "".concat(u).concat(o).concat(s.slice(u.length)), [s].concat(Te(l.slice(1))).join(" ");
|
1387
|
+
});
|
1388
|
+
return a.join(",");
|
1389
|
+
}
|
1390
|
+
var uc = function e(t) {
|
1391
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
1392
|
+
root: !0,
|
1393
|
+
parentSelectors: []
|
1394
|
+
}, o = n.root, a = n.injectHash, i = n.parentSelectors, c = r.hashId, l = r.layer, s = r.path, u = r.hashPriority, d = r.transformers, f = d === void 0 ? [] : d, h = r.linters, m = h === void 0 ? [] : h, p = "", v = {};
|
1395
|
+
function x(T) {
|
1396
|
+
var y = T.getName(c);
|
1397
|
+
if (!v[y]) {
|
1398
|
+
var E = e(T.style, r, {
|
1399
|
+
root: !1,
|
1400
|
+
parentSelectors: i
|
1401
|
+
}), S = R(E, 1), _ = S[0];
|
1402
|
+
v[y] = "@keyframes ".concat(T.getName(c)).concat(_);
|
1403
|
+
}
|
1404
|
+
}
|
1405
|
+
function b(T) {
|
1406
|
+
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
1407
|
+
return T.forEach(function(E) {
|
1408
|
+
Array.isArray(E) ? b(E, y) : E && y.push(E);
|
1409
|
+
}), y;
|
1410
|
+
}
|
1411
|
+
var C = b(Array.isArray(t) ? t : [t]);
|
1412
|
+
return C.forEach(function(T) {
|
1413
|
+
var y = typeof T == "string" && !o ? {} : T;
|
1414
|
+
if (typeof y == "string")
|
1415
|
+
p += "".concat(y, `
|
1416
|
+
`);
|
1417
|
+
else if (y._keyframe)
|
1418
|
+
x(y);
|
1419
|
+
else {
|
1420
|
+
var E = f.reduce(function(S, _) {
|
1421
|
+
var j;
|
1422
|
+
return (_ == null || (j = _.visit) === null || j === void 0 ? void 0 : j.call(_, S)) || S;
|
1423
|
+
}, y);
|
1424
|
+
Object.keys(E).forEach(function(S) {
|
1425
|
+
var _ = E[S];
|
1426
|
+
if (F(_) === "object" && _ && (S !== "animationName" || !_._keyframe) && !lc(_)) {
|
1427
|
+
var j = !1, M = S.trim(), I = !1;
|
1428
|
+
(o || a) && c ? M.startsWith("@") ? j = !0 : M === "&" ? M = Vn("", c, u) : M = Vn(S, c, u) : o && !c && (M === "&" || M === "") && (M = "", I = !0);
|
1429
|
+
var L = e(_, r, {
|
1430
|
+
root: I,
|
1431
|
+
injectHash: j,
|
1432
|
+
parentSelectors: [].concat(Te(i), [M])
|
1433
|
+
}), $ = R(L, 2), A = $[0], N = $[1];
|
1434
|
+
v = k(k({}, v), N), p += "".concat(M).concat(A);
|
1435
|
+
} else {
|
1436
|
+
let H = function(X, G) {
|
1437
|
+
process.env.NODE_ENV !== "production" && (F(_) !== "object" || !(_ != null && _[Go])) && [oc, ac].concat(Te(m)).forEach(function(B) {
|
1438
|
+
return B(X, G, {
|
1439
|
+
path: s,
|
1440
|
+
hashId: c,
|
1441
|
+
parentSelectors: i
|
1442
|
+
});
|
1443
|
+
});
|
1444
|
+
var K = X.replace(/[A-Z]/g, function(B) {
|
1445
|
+
return "-".concat(B.toLowerCase());
|
1446
|
+
}), U = G;
|
1447
|
+
!Vs[X] && typeof U == "number" && U !== 0 && (U = "".concat(U, "px")), X === "animationName" && G !== null && G !== void 0 && G._keyframe && (x(G), U = G.getName(c)), p += "".concat(K, ":").concat(U, ";");
|
1448
|
+
};
|
1449
|
+
var z, W = (z = _ == null ? void 0 : _.value) !== null && z !== void 0 ? z : _;
|
1450
|
+
F(_) === "object" && _ !== null && _ !== void 0 && _[Uo] && Array.isArray(W) ? W.forEach(function(X) {
|
1451
|
+
H(S, X);
|
1452
|
+
}) : H(S, W);
|
1453
|
+
}
|
1454
|
+
});
|
1455
|
+
}
|
1456
|
+
}), o ? l && (p && (p = "@layer ".concat(l.name, " {").concat(p, "}")), l.dependencies && (v["@layer ".concat(l.name)] = l.dependencies.map(function(T) {
|
1457
|
+
return "@layer ".concat(T, ", ").concat(l.name, ";");
|
1458
|
+
}).join(`
|
1459
|
+
`))) : p = "{".concat(p, "}"), [p, v];
|
1460
|
+
};
|
1461
|
+
function Ko(e, t) {
|
1462
|
+
return gt("".concat(e.join("%")).concat(t));
|
1463
|
+
}
|
1464
|
+
function fc() {
|
1465
|
+
return null;
|
1466
|
+
}
|
1467
|
+
var Yo = "style";
|
1468
|
+
function Mr(e, t) {
|
1469
|
+
var r = e.token, n = e.path, o = e.hashId, a = e.layer, i = e.nonce, c = e.clientOnly, l = e.order, s = l === void 0 ? 0 : l, u = g.useContext(xt), d = u.autoClear, f = u.mock, h = u.defaultCache, m = u.hashPriority, p = u.container, v = u.ssrInline, x = u.transformers, b = u.linters, C = u.cache, T = u.layer, y = r._tokenKey, E = [y];
|
1470
|
+
T && E.push("layer"), E.push.apply(E, Te(n));
|
1471
|
+
var S = Or;
|
1472
|
+
process.env.NODE_ENV !== "production" && f !== void 0 && (S = f === "client");
|
1473
|
+
var _ = ln(
|
1474
|
+
Yo,
|
1475
|
+
E,
|
1476
|
+
// Create cache if needed
|
1477
|
+
function() {
|
1478
|
+
var $ = E.join("|");
|
1479
|
+
if (sc($)) {
|
1480
|
+
var A = cc($), N = R(A, 2), z = N[0], W = N[1];
|
1481
|
+
if (z)
|
1482
|
+
return [z, y, W, {}, c, s];
|
1483
|
+
}
|
1484
|
+
var H = t(), X = uc(H, {
|
1485
|
+
hashId: o,
|
1486
|
+
hashPriority: m,
|
1487
|
+
layer: T ? a : void 0,
|
1488
|
+
path: n.join("-"),
|
1489
|
+
transformers: x,
|
1490
|
+
linters: b
|
1491
|
+
}), G = R(X, 2), K = G[0], U = G[1], B = Bt(K), q = Ko(E, B);
|
1492
|
+
return [B, y, q, U, c, s];
|
1493
|
+
},
|
1494
|
+
// Remove cache if no need
|
1495
|
+
function($, A) {
|
1496
|
+
var N = R($, 3), z = N[2];
|
1497
|
+
(A || d) && Or && ko(z, {
|
1498
|
+
mark: he
|
1499
|
+
});
|
1500
|
+
},
|
1501
|
+
// Effect: Inject style here
|
1502
|
+
function($) {
|
1503
|
+
var A = R($, 4), N = A[0];
|
1504
|
+
A[1];
|
1505
|
+
var z = A[2], W = A[3];
|
1506
|
+
if (S && N !== Wo) {
|
1507
|
+
var H = {
|
1508
|
+
mark: he,
|
1509
|
+
prepend: T ? !1 : "queue",
|
1510
|
+
attachTo: p,
|
1511
|
+
priority: s
|
1512
|
+
}, X = typeof i == "function" ? i() : i;
|
1513
|
+
X && (H.csp = {
|
1514
|
+
nonce: X
|
1515
|
+
});
|
1516
|
+
var G = [], K = [];
|
1517
|
+
Object.keys(W).forEach(function(B) {
|
1518
|
+
B.startsWith("@layer") ? G.push(B) : K.push(B);
|
1519
|
+
}), G.forEach(function(B) {
|
1520
|
+
Ze(Bt(W[B]), "_layer-".concat(B), k(k({}, H), {}, {
|
1521
|
+
prepend: !0
|
1522
|
+
}));
|
1523
|
+
});
|
1524
|
+
var U = Ze(N, z, H);
|
1525
|
+
U[Re] = C.instanceId, U.setAttribute(tt, y), process.env.NODE_ENV !== "production" && U.setAttribute(fs, E.join("|")), K.forEach(function(B) {
|
1526
|
+
Ze(Bt(W[B]), "_effect-".concat(B), H);
|
1527
|
+
});
|
1528
|
+
}
|
1529
|
+
}
|
1530
|
+
), j = R(_, 3), M = j[0], I = j[1], L = j[2];
|
1531
|
+
return function($) {
|
1532
|
+
var A;
|
1533
|
+
if (!v || S || !h)
|
1534
|
+
A = /* @__PURE__ */ g.createElement(fc, null);
|
1535
|
+
else {
|
1536
|
+
var N;
|
1537
|
+
A = /* @__PURE__ */ g.createElement("style", Gt({}, (N = {}, P(N, tt, I), P(N, he, L), N), {
|
1538
|
+
dangerouslySetInnerHTML: {
|
1539
|
+
__html: M
|
1540
|
+
}
|
1541
|
+
}));
|
1542
|
+
}
|
1543
|
+
return /* @__PURE__ */ g.createElement(g.Fragment, null, A, $);
|
1544
|
+
};
|
1545
|
+
}
|
1546
|
+
var dc = function(t, r, n) {
|
1547
|
+
var o = R(t, 6), a = o[0], i = o[1], c = o[2], l = o[3], s = o[4], u = o[5], d = n || {}, f = d.plain;
|
1548
|
+
if (s)
|
1549
|
+
return null;
|
1550
|
+
var h = a, m = {
|
1551
|
+
"data-rc-order": "prependQueue",
|
1552
|
+
"data-rc-priority": "".concat(u)
|
1553
|
+
};
|
1554
|
+
return h = Xt(a, i, c, m, f), l && Object.keys(l).forEach(function(p) {
|
1555
|
+
if (!r[p]) {
|
1556
|
+
r[p] = !0;
|
1557
|
+
var v = Bt(l[p]), x = Xt(v, i, "_effect-".concat(p), m, f);
|
1558
|
+
p.startsWith("@layer") ? h = x + h : h += x;
|
1559
|
+
}
|
1560
|
+
}), [u, c, h];
|
1561
|
+
}, Qo = "cssVar", vc = function(t, r) {
|
1562
|
+
var n = t.key, o = t.prefix, a = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, u = He(xt), d = u.cache.instanceId, f = u.container, h = c._tokenKey, m = [].concat(Te(t.path), [n, s, h]), p = ln(Qo, m, function() {
|
1563
|
+
var v = r(), x = Ro(v, n, {
|
1564
|
+
prefix: o,
|
1565
|
+
unitless: a,
|
1566
|
+
ignore: i,
|
1567
|
+
scope: s
|
1568
|
+
}), b = R(x, 2), C = b[0], T = b[1], y = Ko(m, T);
|
1569
|
+
return [C, T, y, n];
|
1570
|
+
}, function(v) {
|
1571
|
+
var x = R(v, 3), b = x[2];
|
1572
|
+
Or && ko(b, {
|
1573
|
+
mark: he
|
1574
|
+
});
|
1575
|
+
}, function(v) {
|
1576
|
+
var x = R(v, 3), b = x[1], C = x[2];
|
1577
|
+
if (b) {
|
1578
|
+
var T = Ze(b, C, {
|
1579
|
+
mark: he,
|
1580
|
+
prepend: "queue",
|
1581
|
+
attachTo: f,
|
1582
|
+
priority: -999
|
1583
|
+
});
|
1584
|
+
T[Re] = d, T.setAttribute(tt, n);
|
1585
|
+
}
|
1586
|
+
});
|
1587
|
+
return p;
|
1588
|
+
}, gc = function(t, r, n) {
|
1589
|
+
var o = R(t, 4), a = o[1], i = o[2], c = o[3], l = n || {}, s = l.plain;
|
1590
|
+
if (!a)
|
1591
|
+
return null;
|
1592
|
+
var u = -999, d = {
|
1593
|
+
"data-rc-order": "prependQueue",
|
1594
|
+
"data-rc-priority": "".concat(u)
|
1595
|
+
}, f = Xt(a, c, i, d, s);
|
1596
|
+
return [u, i, f];
|
1597
|
+
}, lt;
|
1598
|
+
lt = {}, P(lt, Yo, dc), P(lt, Lo, Ds), P(lt, Qo, gc);
|
1599
|
+
function Ye(e) {
|
1600
|
+
return e.notSplit = !0, e;
|
1601
|
+
}
|
1602
|
+
Ye(["borderTop", "borderBottom"]), Ye(["borderTop"]), Ye(["borderBottom"]), Ye(["borderLeft", "borderRight"]), Ye(["borderLeft"]), Ye(["borderRight"]);
|
1603
|
+
function pc(e) {
|
1604
|
+
return Eo(e) || xo(e) || nn(e) || To();
|
1605
|
+
}
|
1606
|
+
function Ar(e, t) {
|
1607
|
+
for (var r = e, n = 0; n < t.length; n += 1) {
|
1608
|
+
if (r == null)
|
1609
|
+
return;
|
1610
|
+
r = r[t[n]];
|
1611
|
+
}
|
1612
|
+
return r;
|
1613
|
+
}
|
1614
|
+
function qo(e, t, r, n) {
|
1615
|
+
if (!t.length)
|
1616
|
+
return r;
|
1617
|
+
var o = pc(t), a = o[0], i = o.slice(1), c;
|
1618
|
+
return !e && typeof a == "number" ? c = [] : Array.isArray(e) ? c = Te(e) : c = k({}, e), n && r === void 0 && i.length === 1 ? delete c[a][i[0]] : c[a] = qo(c[a], i, r, n), c;
|
1619
|
+
}
|
1620
|
+
function lr(e, t, r) {
|
1621
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
1622
|
+
return t.length && n && r === void 0 && !Ar(e, t.slice(0, -1)) ? e : qo(e, t, r, n);
|
1623
|
+
}
|
1624
|
+
function hc(e) {
|
1625
|
+
return F(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
1626
|
+
}
|
1627
|
+
function zn(e) {
|
1628
|
+
return Array.isArray(e) ? [] : {};
|
1629
|
+
}
|
1630
|
+
var mc = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
1631
|
+
function yc() {
|
1632
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1633
|
+
t[r] = arguments[r];
|
1634
|
+
var n = zn(t[0]);
|
1635
|
+
return t.forEach(function(o) {
|
1636
|
+
function a(i, c) {
|
1637
|
+
var l = new Set(c), s = Ar(o, i), u = Array.isArray(s);
|
1638
|
+
if (u || hc(s)) {
|
1639
|
+
if (!l.has(s)) {
|
1640
|
+
l.add(s);
|
1641
|
+
var d = Ar(n, i);
|
1642
|
+
u ? n = lr(n, i, []) : (!d || F(d) !== "object") && (n = lr(n, i, zn(s))), mc(s).forEach(function(f) {
|
1643
|
+
a([].concat(Te(i), [f]), l);
|
1644
|
+
});
|
1645
|
+
}
|
1646
|
+
} else
|
1647
|
+
n = lr(n, i, s);
|
1648
|
+
}
|
1649
|
+
a([]);
|
1650
|
+
}), n;
|
1651
|
+
}
|
1652
|
+
function Zo() {
|
1653
|
+
}
|
1654
|
+
let we = null;
|
1655
|
+
function bc() {
|
1656
|
+
we = null, Ao();
|
1657
|
+
}
|
1658
|
+
let at = Zo;
|
1659
|
+
process.env.NODE_ENV !== "production" && (at = (e, t, r) => {
|
1660
|
+
Fe(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && bc();
|
1661
|
+
});
|
1662
|
+
const Jo = /* @__PURE__ */ g.createContext({}), er = process.env.NODE_ENV !== "production" ? (e) => {
|
1663
|
+
const {
|
1664
|
+
strict: t
|
1665
|
+
} = g.useContext(Jo), r = (n, o, a) => {
|
1666
|
+
if (!n)
|
1667
|
+
if (t === !1 && o === "deprecated") {
|
1668
|
+
const i = we;
|
1669
|
+
we || (we = {}), we[e] = we[e] || [], we[e].includes(a || "") || we[e].push(a || ""), i || console.warn("[antd] There exists deprecated usage in your code:", we);
|
1670
|
+
} else
|
1671
|
+
process.env.NODE_ENV !== "production" && at(n, e, a);
|
1672
|
+
};
|
1673
|
+
return r.deprecated = (n, o, a, i) => {
|
1674
|
+
r(n, "deprecated", `\`${o}\` is deprecated. Please use \`${a}\` instead.${i ? ` ${i}` : ""}`);
|
1675
|
+
}, r;
|
1676
|
+
} : () => {
|
1677
|
+
const e = () => {
|
1678
|
+
};
|
1679
|
+
return e.deprecated = Zo, e;
|
1680
|
+
}, Sc = /* @__PURE__ */ mo(void 0), le = "${label} is not a valid ${type}", tr = {
|
1681
|
+
Modal: {
|
1682
|
+
okText: "OK",
|
1683
|
+
cancelText: "Cancel",
|
1684
|
+
justOkText: "OK"
|
1685
|
+
},
|
1686
|
+
Form: {
|
1687
|
+
optional: "(optional)",
|
1688
|
+
defaultValidateMessages: {
|
1689
|
+
default: "Field validation error for ${label}",
|
1690
|
+
required: "Please enter ${label}",
|
1691
|
+
enum: "${label} must be one of [${enum}]",
|
1692
|
+
whitespace: "${label} cannot be a blank character",
|
1693
|
+
date: {
|
1694
|
+
format: "${label} date format is invalid",
|
1695
|
+
parse: "${label} cannot be converted to a date",
|
1696
|
+
invalid: "${label} is an invalid date"
|
1697
|
+
},
|
1698
|
+
types: {
|
1699
|
+
string: le,
|
1700
|
+
method: le,
|
1701
|
+
array: le,
|
1702
|
+
object: le,
|
1703
|
+
number: le,
|
1704
|
+
date: le,
|
1705
|
+
boolean: le,
|
1706
|
+
integer: le,
|
1707
|
+
float: le,
|
1708
|
+
regexp: le,
|
1709
|
+
email: le,
|
1710
|
+
url: le,
|
1711
|
+
hex: le
|
1712
|
+
},
|
1713
|
+
string: {
|
1714
|
+
len: "${label} must be ${len} characters",
|
1715
|
+
min: "${label} must be at least ${min} characters",
|
1716
|
+
max: "${label} must be up to ${max} characters",
|
1717
|
+
range: "${label} must be between ${min}-${max} characters"
|
1718
|
+
},
|
1719
|
+
number: {
|
1720
|
+
len: "${label} must be equal to ${len}",
|
1721
|
+
min: "${label} must be minimum ${min}",
|
1722
|
+
max: "${label} must be maximum ${max}",
|
1723
|
+
range: "${label} must be between ${min}-${max}"
|
1724
|
+
},
|
1725
|
+
array: {
|
1726
|
+
len: "Must be ${len} ${label}",
|
1727
|
+
min: "At least ${min} ${label}",
|
1728
|
+
max: "At most ${max} ${label}",
|
1729
|
+
range: "The amount of ${label} must be between ${min}-${max}"
|
1730
|
+
},
|
1731
|
+
pattern: {
|
1732
|
+
mismatch: "${label} does not match the pattern ${pattern}"
|
1733
|
+
}
|
1734
|
+
}
|
1735
|
+
}
|
1736
|
+
};
|
1737
|
+
Object.assign({}, tr.Modal);
|
1738
|
+
let Ft = [];
|
1739
|
+
const Bn = () => Ft.reduce((e, t) => Object.assign(Object.assign({}, e), t), tr.Modal);
|
1740
|
+
function xc(e) {
|
1741
|
+
if (e) {
|
1742
|
+
const t = Object.assign({}, e);
|
1743
|
+
return Ft.push(t), Bn(), () => {
|
1744
|
+
Ft = Ft.filter((r) => r !== t), Bn();
|
1745
|
+
};
|
1746
|
+
}
|
1747
|
+
Object.assign({}, tr.Modal);
|
1748
|
+
}
|
1749
|
+
const ea = /* @__PURE__ */ mo(void 0), ta = "internalMark", ra = (e) => {
|
1750
|
+
const {
|
1751
|
+
locale: t = {},
|
1752
|
+
children: r,
|
1753
|
+
_ANT_MARK__: n
|
1754
|
+
} = e;
|
1755
|
+
if (process.env.NODE_ENV !== "production") {
|
1756
|
+
const a = er("LocaleProvider");
|
1757
|
+
process.env.NODE_ENV !== "production" && a(n === ta, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
|
1758
|
+
}
|
1759
|
+
g.useEffect(() => xc(t == null ? void 0 : t.Modal), [t]);
|
1760
|
+
const o = g.useMemo(() => Object.assign(Object.assign({}, t), {
|
1761
|
+
exist: !0
|
1762
|
+
}), [t]);
|
1763
|
+
return /* @__PURE__ */ g.createElement(ea.Provider, {
|
1764
|
+
value: o
|
1765
|
+
}, r);
|
1766
|
+
};
|
1767
|
+
process.env.NODE_ENV !== "production" && (ra.displayName = "LocaleProvider");
|
1768
|
+
const na = {
|
1769
|
+
blue: "#1677FF",
|
1770
|
+
purple: "#722ED1",
|
1771
|
+
cyan: "#13C2C2",
|
1772
|
+
green: "#52C41A",
|
1773
|
+
magenta: "#EB2F96",
|
1774
|
+
/**
|
1775
|
+
* @deprecated Use magenta instead
|
1776
|
+
*/
|
1777
|
+
pink: "#EB2F96",
|
1778
|
+
red: "#F5222D",
|
1779
|
+
orange: "#FA8C16",
|
1780
|
+
yellow: "#FADB14",
|
1781
|
+
volcano: "#FA541C",
|
1782
|
+
geekblue: "#2F54EB",
|
1783
|
+
gold: "#FAAD14",
|
1784
|
+
lime: "#A0D911"
|
1785
|
+
}, ht = Object.assign(Object.assign({}, na), {
|
1786
|
+
// Color
|
1787
|
+
colorPrimary: "#1677ff",
|
1788
|
+
colorSuccess: "#52c41a",
|
1789
|
+
colorWarning: "#faad14",
|
1790
|
+
colorError: "#ff4d4f",
|
1791
|
+
colorInfo: "#1677ff",
|
1792
|
+
colorLink: "",
|
1793
|
+
colorTextBase: "",
|
1794
|
+
colorBgBase: "",
|
1795
|
+
// Font
|
1796
|
+
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
1797
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
1798
|
+
'Noto Color Emoji'`,
|
1799
|
+
fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
1800
|
+
fontSize: 14,
|
1801
|
+
// Line
|
1802
|
+
lineWidth: 1,
|
1803
|
+
lineType: "solid",
|
1804
|
+
// Motion
|
1805
|
+
motionUnit: 0.1,
|
1806
|
+
motionBase: 0,
|
1807
|
+
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
1808
|
+
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
|
1809
|
+
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
1810
|
+
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
1811
|
+
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
1812
|
+
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
1813
|
+
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
|
1814
|
+
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
1815
|
+
// Radius
|
1816
|
+
borderRadius: 6,
|
1817
|
+
// Size
|
1818
|
+
sizeUnit: 4,
|
1819
|
+
sizeStep: 4,
|
1820
|
+
sizePopupArrow: 16,
|
1821
|
+
// Control Base
|
1822
|
+
controlHeight: 32,
|
1823
|
+
// zIndex
|
1824
|
+
zIndexBase: 0,
|
1825
|
+
zIndexPopupBase: 1e3,
|
1826
|
+
// Image
|
1827
|
+
opacityImage: 1,
|
1828
|
+
// Wireframe
|
1829
|
+
wireframe: !1,
|
1830
|
+
// Motion
|
1831
|
+
motion: !0
|
1832
|
+
}), te = Math.round;
|
1833
|
+
function ur(e, t) {
|
1834
|
+
const r = e.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], n = r.map((o) => parseFloat(o));
|
1835
|
+
for (let o = 0; o < 3; o += 1)
|
1836
|
+
n[o] = t(n[o] || 0, r[o] || "", o);
|
1837
|
+
return r[3] ? n[3] = r[3].includes("%") ? n[3] / 100 : n[3] : n[3] = 1, n;
|
1838
|
+
}
|
1839
|
+
const Fn = (e, t, r) => r === 0 ? e : e / 100;
|
1840
|
+
function ut(e, t) {
|
1841
|
+
const r = t || 255;
|
1842
|
+
return e > r ? r : e < 0 ? 0 : e;
|
1843
|
+
}
|
1844
|
+
class Q {
|
1845
|
+
constructor(t) {
|
1846
|
+
P(this, "isValid", !0), P(this, "r", 0), P(this, "g", 0), P(this, "b", 0), P(this, "a", 1), P(this, "_h", void 0), P(this, "_s", void 0), P(this, "_l", void 0), P(this, "_v", void 0), P(this, "_max", void 0), P(this, "_min", void 0), P(this, "_brightness", void 0);
|
1847
|
+
function r(n) {
|
1848
|
+
return n[0] in t && n[1] in t && n[2] in t;
|
1849
|
+
}
|
1850
|
+
if (t) if (typeof t == "string") {
|
1851
|
+
let o = function(a) {
|
1852
|
+
return n.startsWith(a);
|
1853
|
+
};
|
1854
|
+
const n = t.trim();
|
1855
|
+
/^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : o("rgb") ? this.fromRgbString(n) : o("hsl") ? this.fromHslString(n) : (o("hsv") || o("hsb")) && this.fromHsvString(n);
|
1856
|
+
} else if (t instanceof Q)
|
1857
|
+
this.r = t.r, this.g = t.g, this.b = t.b, this.a = t.a, this._h = t._h, this._s = t._s, this._l = t._l, this._v = t._v;
|
1858
|
+
else if (r("rgb"))
|
1859
|
+
this.r = ut(t.r), this.g = ut(t.g), this.b = ut(t.b), this.a = typeof t.a == "number" ? ut(t.a, 1) : 1;
|
1860
|
+
else if (r("hsl"))
|
1861
|
+
this.fromHsl(t);
|
1862
|
+
else if (r("hsv"))
|
1863
|
+
this.fromHsv(t);
|
1864
|
+
else
|
1865
|
+
throw new Error("@ant-design/fast-color: unsupported input " + JSON.stringify(t));
|
1866
|
+
}
|
1867
|
+
// ======================= Setter =======================
|
1868
|
+
setR(t) {
|
1869
|
+
return this._sc("r", t);
|
1870
|
+
}
|
1871
|
+
setG(t) {
|
1872
|
+
return this._sc("g", t);
|
1873
|
+
}
|
1874
|
+
setB(t) {
|
1875
|
+
return this._sc("b", t);
|
1876
|
+
}
|
1877
|
+
setA(t) {
|
1878
|
+
return this._sc("a", t, 1);
|
1879
|
+
}
|
1880
|
+
setHue(t) {
|
1881
|
+
const r = this.toHsv();
|
1882
|
+
return r.h = t, this._c(r);
|
1883
|
+
}
|
1884
|
+
// ======================= Getter =======================
|
1885
|
+
/**
|
1886
|
+
* Returns the perceived luminance of a color, from 0-1.
|
1887
|
+
* @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
1888
|
+
*/
|
1889
|
+
getLuminance() {
|
1890
|
+
function t(a) {
|
1891
|
+
const i = a / 255;
|
1892
|
+
return i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
1893
|
+
}
|
1894
|
+
const r = t(this.r), n = t(this.g), o = t(this.b);
|
1895
|
+
return 0.2126 * r + 0.7152 * n + 0.0722 * o;
|
1896
|
+
}
|
1897
|
+
getHue() {
|
1898
|
+
if (typeof this._h > "u") {
|
1899
|
+
const t = this.getMax() - this.getMin();
|
1900
|
+
t === 0 ? this._h = 0 : this._h = te(60 * (this.r === this.getMax() ? (this.g - this.b) / t + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / t + 2 : (this.r - this.g) / t + 4));
|
1901
|
+
}
|
1902
|
+
return this._h;
|
1903
|
+
}
|
1904
|
+
getSaturation() {
|
1905
|
+
if (typeof this._s > "u") {
|
1906
|
+
const t = this.getMax() - this.getMin();
|
1907
|
+
t === 0 ? this._s = 0 : this._s = t / this.getMax();
|
1908
|
+
}
|
1909
|
+
return this._s;
|
1910
|
+
}
|
1911
|
+
getLightness() {
|
1912
|
+
return typeof this._l > "u" && (this._l = (this.getMax() + this.getMin()) / 510), this._l;
|
1913
|
+
}
|
1914
|
+
getValue() {
|
1915
|
+
return typeof this._v > "u" && (this._v = this.getMax() / 255), this._v;
|
1916
|
+
}
|
1917
|
+
/**
|
1918
|
+
* Returns the perceived brightness of the color, from 0-255.
|
1919
|
+
* Note: this is not the b of HSB
|
1920
|
+
* @see http://www.w3.org/TR/AERT#color-contrast
|
1921
|
+
*/
|
1922
|
+
getBrightness() {
|
1923
|
+
return typeof this._brightness > "u" && (this._brightness = (this.r * 299 + this.g * 587 + this.b * 114) / 1e3), this._brightness;
|
1924
|
+
}
|
1925
|
+
// ======================== Func ========================
|
1926
|
+
darken(t = 10) {
|
1927
|
+
const r = this.getHue(), n = this.getSaturation();
|
1928
|
+
let o = this.getLightness() - t / 100;
|
1929
|
+
return o < 0 && (o = 0), this._c({
|
1930
|
+
h: r,
|
1931
|
+
s: n,
|
1932
|
+
l: o,
|
1933
|
+
a: this.a
|
1934
|
+
});
|
1935
|
+
}
|
1936
|
+
lighten(t = 10) {
|
1937
|
+
const r = this.getHue(), n = this.getSaturation();
|
1938
|
+
let o = this.getLightness() + t / 100;
|
1939
|
+
return o > 1 && (o = 1), this._c({
|
1940
|
+
h: r,
|
1941
|
+
s: n,
|
1942
|
+
l: o,
|
1943
|
+
a: this.a
|
1944
|
+
});
|
1945
|
+
}
|
1946
|
+
/**
|
1947
|
+
* Mix the current color a given amount with another color, from 0 to 100.
|
1948
|
+
* 0 means no mixing (return current color).
|
1949
|
+
*/
|
1950
|
+
mix(t, r = 50) {
|
1951
|
+
const n = this._c(t), o = r / 100, a = (c) => (n[c] - this[c]) * o + this[c], i = {
|
1952
|
+
r: te(a("r")),
|
1953
|
+
g: te(a("g")),
|
1954
|
+
b: te(a("b")),
|
1955
|
+
a: te(a("a") * 100) / 100
|
1956
|
+
};
|
1957
|
+
return this._c(i);
|
1958
|
+
}
|
1959
|
+
/**
|
1960
|
+
* Mix the color with pure white, from 0 to 100.
|
1961
|
+
* Providing 0 will do nothing, providing 100 will always return white.
|
1962
|
+
*/
|
1963
|
+
tint(t = 10) {
|
1964
|
+
return this.mix({
|
1965
|
+
r: 255,
|
1966
|
+
g: 255,
|
1967
|
+
b: 255,
|
1968
|
+
a: 1
|
1969
|
+
}, t);
|
1970
|
+
}
|
1971
|
+
/**
|
1972
|
+
* Mix the color with pure black, from 0 to 100.
|
1973
|
+
* Providing 0 will do nothing, providing 100 will always return black.
|
1974
|
+
*/
|
1975
|
+
shade(t = 10) {
|
1976
|
+
return this.mix({
|
1977
|
+
r: 0,
|
1978
|
+
g: 0,
|
1979
|
+
b: 0,
|
1980
|
+
a: 1
|
1981
|
+
}, t);
|
1982
|
+
}
|
1983
|
+
onBackground(t) {
|
1984
|
+
const r = this._c(t), n = this.a + r.a * (1 - this.a), o = (a) => te((this[a] * this.a + r[a] * r.a * (1 - this.a)) / n);
|
1985
|
+
return this._c({
|
1986
|
+
r: o("r"),
|
1987
|
+
g: o("g"),
|
1988
|
+
b: o("b"),
|
1989
|
+
a: n
|
1990
|
+
});
|
1991
|
+
}
|
1992
|
+
// ======================= Status =======================
|
1993
|
+
isDark() {
|
1994
|
+
return this.getBrightness() < 128;
|
1995
|
+
}
|
1996
|
+
isLight() {
|
1997
|
+
return this.getBrightness() >= 128;
|
1998
|
+
}
|
1999
|
+
// ======================== MISC ========================
|
2000
|
+
equals(t) {
|
2001
|
+
return this.r === t.r && this.g === t.g && this.b === t.b && this.a === t.a;
|
2002
|
+
}
|
2003
|
+
clone() {
|
2004
|
+
return this._c(this);
|
2005
|
+
}
|
2006
|
+
// ======================= Format =======================
|
2007
|
+
toHexString() {
|
2008
|
+
let t = "#";
|
2009
|
+
const r = (this.r || 0).toString(16);
|
2010
|
+
t += r.length === 2 ? r : "0" + r;
|
2011
|
+
const n = (this.g || 0).toString(16);
|
2012
|
+
t += n.length === 2 ? n : "0" + n;
|
2013
|
+
const o = (this.b || 0).toString(16);
|
2014
|
+
if (t += o.length === 2 ? o : "0" + o, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
|
2015
|
+
const a = te(this.a * 255).toString(16);
|
2016
|
+
t += a.length === 2 ? a : "0" + a;
|
2017
|
+
}
|
2018
|
+
return t;
|
2019
|
+
}
|
2020
|
+
/** CSS support color pattern */
|
2021
|
+
toHsl() {
|
2022
|
+
return {
|
2023
|
+
h: this.getHue(),
|
2024
|
+
s: this.getSaturation(),
|
2025
|
+
l: this.getLightness(),
|
2026
|
+
a: this.a
|
2027
|
+
};
|
2028
|
+
}
|
2029
|
+
/** CSS support color pattern */
|
2030
|
+
toHslString() {
|
2031
|
+
const t = this.getHue(), r = te(this.getSaturation() * 100), n = te(this.getLightness() * 100);
|
2032
|
+
return this.a !== 1 ? `hsla(${t},${r}%,${n}%,${this.a})` : `hsl(${t},${r}%,${n}%)`;
|
2033
|
+
}
|
2034
|
+
/** Same as toHsb */
|
2035
|
+
toHsv() {
|
2036
|
+
return {
|
2037
|
+
h: this.getHue(),
|
2038
|
+
s: this.getSaturation(),
|
2039
|
+
v: this.getValue(),
|
2040
|
+
a: this.a
|
2041
|
+
};
|
2042
|
+
}
|
2043
|
+
toRgb() {
|
2044
|
+
return {
|
2045
|
+
r: this.r,
|
2046
|
+
g: this.g,
|
2047
|
+
b: this.b,
|
2048
|
+
a: this.a
|
2049
|
+
};
|
2050
|
+
}
|
2051
|
+
toRgbString() {
|
2052
|
+
return this.a !== 1 ? `rgba(${this.r},${this.g},${this.b},${this.a})` : `rgb(${this.r},${this.g},${this.b})`;
|
2053
|
+
}
|
2054
|
+
toString() {
|
2055
|
+
return this.toRgbString();
|
2056
|
+
}
|
2057
|
+
// ====================== Privates ======================
|
2058
|
+
/** Return a new FastColor object with one channel changed */
|
2059
|
+
_sc(t, r, n) {
|
2060
|
+
const o = this.clone();
|
2061
|
+
return o[t] = ut(r, n), o;
|
2062
|
+
}
|
2063
|
+
_c(t) {
|
2064
|
+
return new this.constructor(t);
|
2065
|
+
}
|
2066
|
+
getMax() {
|
2067
|
+
return typeof this._max > "u" && (this._max = Math.max(this.r, this.g, this.b)), this._max;
|
2068
|
+
}
|
2069
|
+
getMin() {
|
2070
|
+
return typeof this._min > "u" && (this._min = Math.min(this.r, this.g, this.b)), this._min;
|
2071
|
+
}
|
2072
|
+
fromHexString(t) {
|
2073
|
+
const r = t.replace("#", "");
|
2074
|
+
function n(o, a) {
|
2075
|
+
return parseInt(r[o] + r[a || o], 16);
|
2076
|
+
}
|
2077
|
+
r.length < 6 ? (this.r = n(0), this.g = n(1), this.b = n(2), this.a = r[3] ? n(3) / 255 : 1) : (this.r = n(0, 1), this.g = n(2, 3), this.b = n(4, 5), this.a = r[6] ? n(6, 7) / 255 : 1);
|
2078
|
+
}
|
2079
|
+
fromHsl({
|
2080
|
+
h: t,
|
2081
|
+
s: r,
|
2082
|
+
l: n,
|
2083
|
+
a: o
|
2084
|
+
}) {
|
2085
|
+
if (this._h = t % 360, this._s = r, this._l = n, this.a = typeof o == "number" ? o : 1, r <= 0) {
|
2086
|
+
const f = te(n * 255);
|
2087
|
+
this.r = f, this.g = f, this.b = f;
|
2088
|
+
}
|
2089
|
+
let a = 0, i = 0, c = 0;
|
2090
|
+
const l = t / 60, s = (1 - Math.abs(2 * n - 1)) * r, u = s * (1 - Math.abs(l % 2 - 1));
|
2091
|
+
l >= 0 && l < 1 ? (a = s, i = u) : l >= 1 && l < 2 ? (a = u, i = s) : l >= 2 && l < 3 ? (i = s, c = u) : l >= 3 && l < 4 ? (i = u, c = s) : l >= 4 && l < 5 ? (a = u, c = s) : l >= 5 && l < 6 && (a = s, c = u);
|
2092
|
+
const d = n - s / 2;
|
2093
|
+
this.r = te((a + d) * 255), this.g = te((i + d) * 255), this.b = te((c + d) * 255);
|
2094
|
+
}
|
2095
|
+
fromHsv({
|
2096
|
+
h: t,
|
2097
|
+
s: r,
|
2098
|
+
v: n,
|
2099
|
+
a: o
|
2100
|
+
}) {
|
2101
|
+
this._h = t % 360, this._s = r, this._v = n, this.a = typeof o == "number" ? o : 1;
|
2102
|
+
const a = te(n * 255);
|
2103
|
+
if (this.r = a, this.g = a, this.b = a, r <= 0)
|
2104
|
+
return;
|
2105
|
+
const i = t / 60, c = Math.floor(i), l = i - c, s = te(n * (1 - r) * 255), u = te(n * (1 - r * l) * 255), d = te(n * (1 - r * (1 - l)) * 255);
|
2106
|
+
switch (c) {
|
2107
|
+
case 0:
|
2108
|
+
this.g = d, this.b = s;
|
2109
|
+
break;
|
2110
|
+
case 1:
|
2111
|
+
this.r = u, this.b = s;
|
2112
|
+
break;
|
2113
|
+
case 2:
|
2114
|
+
this.r = s, this.b = d;
|
2115
|
+
break;
|
2116
|
+
case 3:
|
2117
|
+
this.r = s, this.g = u;
|
2118
|
+
break;
|
2119
|
+
case 4:
|
2120
|
+
this.r = d, this.g = s;
|
2121
|
+
break;
|
2122
|
+
case 5:
|
2123
|
+
default:
|
2124
|
+
this.g = s, this.b = u;
|
2125
|
+
break;
|
2126
|
+
}
|
2127
|
+
}
|
2128
|
+
fromHsvString(t) {
|
2129
|
+
const r = ur(t, Fn);
|
2130
|
+
this.fromHsv({
|
2131
|
+
h: r[0],
|
2132
|
+
s: r[1],
|
2133
|
+
v: r[2],
|
2134
|
+
a: r[3]
|
2135
|
+
});
|
2136
|
+
}
|
2137
|
+
fromHslString(t) {
|
2138
|
+
const r = ur(t, Fn);
|
2139
|
+
this.fromHsl({
|
2140
|
+
h: r[0],
|
2141
|
+
s: r[1],
|
2142
|
+
l: r[2],
|
2143
|
+
a: r[3]
|
2144
|
+
});
|
2145
|
+
}
|
2146
|
+
fromRgbString(t) {
|
2147
|
+
const r = ur(t, (n, o) => (
|
2148
|
+
// Convert percentage to number. e.g. 50% -> 128
|
2149
|
+
o.includes("%") ? te(n / 100 * 255) : n
|
2150
|
+
));
|
2151
|
+
this.r = r[0], this.g = r[1], this.b = r[2], this.a = r[3];
|
2152
|
+
}
|
2153
|
+
}
|
2154
|
+
var At = 2, Wn = 0.16, Cc = 0.05, Ec = 0.05, Tc = 0.15, oa = 5, aa = 4, _c = [{
|
2155
|
+
index: 7,
|
2156
|
+
amount: 15
|
2157
|
+
}, {
|
2158
|
+
index: 6,
|
2159
|
+
amount: 25
|
2160
|
+
}, {
|
2161
|
+
index: 5,
|
2162
|
+
amount: 30
|
2163
|
+
}, {
|
2164
|
+
index: 5,
|
2165
|
+
amount: 45
|
2166
|
+
}, {
|
2167
|
+
index: 5,
|
2168
|
+
amount: 65
|
2169
|
+
}, {
|
2170
|
+
index: 5,
|
2171
|
+
amount: 85
|
2172
|
+
}, {
|
2173
|
+
index: 4,
|
2174
|
+
amount: 90
|
2175
|
+
}, {
|
2176
|
+
index: 3,
|
2177
|
+
amount: 95
|
2178
|
+
}, {
|
2179
|
+
index: 2,
|
2180
|
+
amount: 97
|
2181
|
+
}, {
|
2182
|
+
index: 1,
|
2183
|
+
amount: 98
|
2184
|
+
}];
|
2185
|
+
function Xn(e, t, r) {
|
2186
|
+
var n;
|
2187
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - At * t : Math.round(e.h) + At * t : n = r ? Math.round(e.h) + At * t : Math.round(e.h) - At * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
2188
|
+
}
|
2189
|
+
function Gn(e, t, r) {
|
2190
|
+
if (e.h === 0 && e.s === 0)
|
2191
|
+
return e.s;
|
2192
|
+
var n;
|
2193
|
+
return r ? n = e.s - Wn * t : t === aa ? n = e.s + Wn : n = e.s + Cc * t, n > 1 && (n = 1), r && t === oa && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Math.round(n * 100) / 100;
|
2194
|
+
}
|
2195
|
+
function Un(e, t, r) {
|
2196
|
+
var n;
|
2197
|
+
return r ? n = e.v + Ec * t : n = e.v - Tc * t, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
|
2198
|
+
}
|
2199
|
+
function Ut(e) {
|
2200
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = new Q(e), o = n.toHsv(), a = oa; a > 0; a -= 1) {
|
2201
|
+
var i = new Q({
|
2202
|
+
h: Xn(o, a, !0),
|
2203
|
+
s: Gn(o, a, !0),
|
2204
|
+
v: Un(o, a, !0)
|
2205
|
+
});
|
2206
|
+
r.push(i);
|
2207
|
+
}
|
2208
|
+
r.push(n);
|
2209
|
+
for (var c = 1; c <= aa; c += 1) {
|
2210
|
+
var l = new Q({
|
2211
|
+
h: Xn(o, c),
|
2212
|
+
s: Gn(o, c),
|
2213
|
+
v: Un(o, c)
|
2214
|
+
});
|
2215
|
+
r.push(l);
|
2216
|
+
}
|
2217
|
+
return t.theme === "dark" ? _c.map(function(s) {
|
2218
|
+
var u = s.index, d = s.amount;
|
2219
|
+
return new Q(t.backgroundColor || "#141414").mix(r[u], d).toHexString();
|
2220
|
+
}) : r.map(function(s) {
|
2221
|
+
return s.toHexString();
|
2222
|
+
});
|
2223
|
+
}
|
2224
|
+
var fr = {
|
2225
|
+
red: "#F5222D",
|
2226
|
+
volcano: "#FA541C",
|
2227
|
+
orange: "#FA8C16",
|
2228
|
+
gold: "#FAAD14",
|
2229
|
+
yellow: "#FADB14",
|
2230
|
+
lime: "#A0D911",
|
2231
|
+
green: "#52C41A",
|
2232
|
+
cyan: "#13C2C2",
|
2233
|
+
blue: "#1677FF",
|
2234
|
+
geekblue: "#2F54EB",
|
2235
|
+
purple: "#722ED1",
|
2236
|
+
magenta: "#EB2F96",
|
2237
|
+
grey: "#666666"
|
2238
|
+
}, jr = ["#fff1f0", "#ffccc7", "#ffa39e", "#ff7875", "#ff4d4f", "#f5222d", "#cf1322", "#a8071a", "#820014", "#5c0011"];
|
2239
|
+
jr.primary = jr[5];
|
2240
|
+
var Nr = ["#fff2e8", "#ffd8bf", "#ffbb96", "#ff9c6e", "#ff7a45", "#fa541c", "#d4380d", "#ad2102", "#871400", "#610b00"];
|
2241
|
+
Nr.primary = Nr[5];
|
2242
|
+
var $r = ["#fff7e6", "#ffe7ba", "#ffd591", "#ffc069", "#ffa940", "#fa8c16", "#d46b08", "#ad4e00", "#873800", "#612500"];
|
2243
|
+
$r.primary = $r[5];
|
2244
|
+
var Rr = ["#fffbe6", "#fff1b8", "#ffe58f", "#ffd666", "#ffc53d", "#faad14", "#d48806", "#ad6800", "#874d00", "#613400"];
|
2245
|
+
Rr.primary = Rr[5];
|
2246
|
+
var Lr = ["#feffe6", "#ffffb8", "#fffb8f", "#fff566", "#ffec3d", "#fadb14", "#d4b106", "#ad8b00", "#876800", "#614700"];
|
2247
|
+
Lr.primary = Lr[5];
|
2248
|
+
var Ir = ["#fcffe6", "#f4ffb8", "#eaff8f", "#d3f261", "#bae637", "#a0d911", "#7cb305", "#5b8c00", "#3f6600", "#254000"];
|
2249
|
+
Ir.primary = Ir[5];
|
2250
|
+
var Hr = ["#f6ffed", "#d9f7be", "#b7eb8f", "#95de64", "#73d13d", "#52c41a", "#389e0d", "#237804", "#135200", "#092b00"];
|
2251
|
+
Hr.primary = Hr[5];
|
2252
|
+
var Dr = ["#e6fffb", "#b5f5ec", "#87e8de", "#5cdbd3", "#36cfc9", "#13c2c2", "#08979c", "#006d75", "#00474f", "#002329"];
|
2253
|
+
Dr.primary = Dr[5];
|
2254
|
+
var Vr = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
2255
|
+
Vr.primary = Vr[5];
|
2256
|
+
var zr = ["#f0f5ff", "#d6e4ff", "#adc6ff", "#85a5ff", "#597ef7", "#2f54eb", "#1d39c4", "#10239e", "#061178", "#030852"];
|
2257
|
+
zr.primary = zr[5];
|
2258
|
+
var Br = ["#f9f0ff", "#efdbff", "#d3adf7", "#b37feb", "#9254de", "#722ed1", "#531dab", "#391085", "#22075e", "#120338"];
|
2259
|
+
Br.primary = Br[5];
|
2260
|
+
var Fr = ["#fff0f6", "#ffd6e7", "#ffadd2", "#ff85c0", "#f759ab", "#eb2f96", "#c41d7f", "#9e1068", "#780650", "#520339"];
|
2261
|
+
Fr.primary = Fr[5];
|
2262
|
+
var Wr = ["#a6a6a6", "#999999", "#8c8c8c", "#808080", "#737373", "#666666", "#404040", "#1a1a1a", "#000000", "#000000"];
|
2263
|
+
Wr.primary = Wr[5];
|
2264
|
+
var dr = {
|
2265
|
+
red: jr,
|
2266
|
+
volcano: Nr,
|
2267
|
+
orange: $r,
|
2268
|
+
gold: Rr,
|
2269
|
+
yellow: Lr,
|
2270
|
+
lime: Ir,
|
2271
|
+
green: Hr,
|
2272
|
+
cyan: Dr,
|
2273
|
+
blue: Vr,
|
2274
|
+
geekblue: zr,
|
2275
|
+
purple: Br,
|
2276
|
+
magenta: Fr,
|
2277
|
+
grey: Wr
|
2278
|
+
};
|
2279
|
+
function Oc(e, t) {
|
2280
|
+
let {
|
2281
|
+
generateColorPalettes: r,
|
2282
|
+
generateNeutralColorPalettes: n
|
2283
|
+
} = t;
|
2284
|
+
const {
|
2285
|
+
colorSuccess: o,
|
2286
|
+
colorWarning: a,
|
2287
|
+
colorError: i,
|
2288
|
+
colorInfo: c,
|
2289
|
+
colorPrimary: l,
|
2290
|
+
colorBgBase: s,
|
2291
|
+
colorTextBase: u
|
2292
|
+
} = e, d = r(l), f = r(o), h = r(a), m = r(i), p = r(c), v = n(s, u), x = e.colorLink || e.colorInfo, b = r(x), C = new Q(m[1]).mix(new Q(m[3]), 50).toHexString();
|
2293
|
+
return Object.assign(Object.assign({}, v), {
|
2294
|
+
colorPrimaryBg: d[1],
|
2295
|
+
colorPrimaryBgHover: d[2],
|
2296
|
+
colorPrimaryBorder: d[3],
|
2297
|
+
colorPrimaryBorderHover: d[4],
|
2298
|
+
colorPrimaryHover: d[5],
|
2299
|
+
colorPrimary: d[6],
|
2300
|
+
colorPrimaryActive: d[7],
|
2301
|
+
colorPrimaryTextHover: d[8],
|
2302
|
+
colorPrimaryText: d[9],
|
2303
|
+
colorPrimaryTextActive: d[10],
|
2304
|
+
colorSuccessBg: f[1],
|
2305
|
+
colorSuccessBgHover: f[2],
|
2306
|
+
colorSuccessBorder: f[3],
|
2307
|
+
colorSuccessBorderHover: f[4],
|
2308
|
+
colorSuccessHover: f[4],
|
2309
|
+
colorSuccess: f[6],
|
2310
|
+
colorSuccessActive: f[7],
|
2311
|
+
colorSuccessTextHover: f[8],
|
2312
|
+
colorSuccessText: f[9],
|
2313
|
+
colorSuccessTextActive: f[10],
|
2314
|
+
colorErrorBg: m[1],
|
2315
|
+
colorErrorBgHover: m[2],
|
2316
|
+
colorErrorBgFilledHover: C,
|
2317
|
+
colorErrorBgActive: m[3],
|
2318
|
+
colorErrorBorder: m[3],
|
2319
|
+
colorErrorBorderHover: m[4],
|
2320
|
+
colorErrorHover: m[5],
|
2321
|
+
colorError: m[6],
|
2322
|
+
colorErrorActive: m[7],
|
2323
|
+
colorErrorTextHover: m[8],
|
2324
|
+
colorErrorText: m[9],
|
2325
|
+
colorErrorTextActive: m[10],
|
2326
|
+
colorWarningBg: h[1],
|
2327
|
+
colorWarningBgHover: h[2],
|
2328
|
+
colorWarningBorder: h[3],
|
2329
|
+
colorWarningBorderHover: h[4],
|
2330
|
+
colorWarningHover: h[4],
|
2331
|
+
colorWarning: h[6],
|
2332
|
+
colorWarningActive: h[7],
|
2333
|
+
colorWarningTextHover: h[8],
|
2334
|
+
colorWarningText: h[9],
|
2335
|
+
colorWarningTextActive: h[10],
|
2336
|
+
colorInfoBg: p[1],
|
2337
|
+
colorInfoBgHover: p[2],
|
2338
|
+
colorInfoBorder: p[3],
|
2339
|
+
colorInfoBorderHover: p[4],
|
2340
|
+
colorInfoHover: p[4],
|
2341
|
+
colorInfo: p[6],
|
2342
|
+
colorInfoActive: p[7],
|
2343
|
+
colorInfoTextHover: p[8],
|
2344
|
+
colorInfoText: p[9],
|
2345
|
+
colorInfoTextActive: p[10],
|
2346
|
+
colorLinkHover: b[4],
|
2347
|
+
colorLink: b[6],
|
2348
|
+
colorLinkActive: b[7],
|
2349
|
+
colorBgMask: new Q("#000").setA(0.45).toRgbString(),
|
2350
|
+
colorWhite: "#fff"
|
2351
|
+
});
|
2352
|
+
}
|
2353
|
+
const wc = (e) => {
|
2354
|
+
let t = e, r = e, n = e, o = e;
|
2355
|
+
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), {
|
2356
|
+
borderRadius: e,
|
2357
|
+
borderRadiusXS: n,
|
2358
|
+
borderRadiusSM: r,
|
2359
|
+
borderRadiusLG: t,
|
2360
|
+
borderRadiusOuter: o
|
2361
|
+
};
|
2362
|
+
};
|
2363
|
+
function Pc(e) {
|
2364
|
+
const {
|
2365
|
+
motionUnit: t,
|
2366
|
+
motionBase: r,
|
2367
|
+
borderRadius: n,
|
2368
|
+
lineWidth: o
|
2369
|
+
} = e;
|
2370
|
+
return Object.assign({
|
2371
|
+
// motion
|
2372
|
+
motionDurationFast: `${(r + t).toFixed(1)}s`,
|
2373
|
+
motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
|
2374
|
+
motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
|
2375
|
+
// line
|
2376
|
+
lineWidthBold: o + 1
|
2377
|
+
}, wc(n));
|
2378
|
+
}
|
2379
|
+
const kc = (e) => {
|
2380
|
+
const {
|
2381
|
+
controlHeight: t
|
2382
|
+
} = e;
|
2383
|
+
return {
|
2384
|
+
controlHeightSM: t * 0.75,
|
2385
|
+
controlHeightXS: t * 0.5,
|
2386
|
+
controlHeightLG: t * 1.25
|
2387
|
+
};
|
2388
|
+
};
|
2389
|
+
function Mc(e) {
|
2390
|
+
return (e + 8) / e;
|
2391
|
+
}
|
2392
|
+
function Ac(e) {
|
2393
|
+
const t = Array.from({
|
2394
|
+
length: 10
|
2395
|
+
}).map((r, n) => {
|
2396
|
+
const o = n - 1, a = e * Math.pow(Math.E, o / 5), i = n > 1 ? Math.floor(a) : Math.ceil(a);
|
2397
|
+
return Math.floor(i / 2) * 2;
|
2398
|
+
});
|
2399
|
+
return t[1] = e, t.map((r) => ({
|
2400
|
+
size: r,
|
2401
|
+
lineHeight: Mc(r)
|
2402
|
+
}));
|
2403
|
+
}
|
2404
|
+
const jc = (e) => {
|
2405
|
+
const t = Ac(e), r = t.map((u) => u.size), n = t.map((u) => u.lineHeight), o = r[1], a = r[0], i = r[2], c = n[1], l = n[0], s = n[2];
|
2406
|
+
return {
|
2407
|
+
fontSizeSM: a,
|
2408
|
+
fontSize: o,
|
2409
|
+
fontSizeLG: i,
|
2410
|
+
fontSizeXL: r[3],
|
2411
|
+
fontSizeHeading1: r[6],
|
2412
|
+
fontSizeHeading2: r[5],
|
2413
|
+
fontSizeHeading3: r[4],
|
2414
|
+
fontSizeHeading4: r[3],
|
2415
|
+
fontSizeHeading5: r[2],
|
2416
|
+
lineHeight: c,
|
2417
|
+
lineHeightLG: s,
|
2418
|
+
lineHeightSM: l,
|
2419
|
+
fontHeight: Math.round(c * o),
|
2420
|
+
fontHeightLG: Math.round(s * i),
|
2421
|
+
fontHeightSM: Math.round(l * a),
|
2422
|
+
lineHeightHeading1: n[6],
|
2423
|
+
lineHeightHeading2: n[5],
|
2424
|
+
lineHeightHeading3: n[4],
|
2425
|
+
lineHeightHeading4: n[3],
|
2426
|
+
lineHeightHeading5: n[2]
|
2427
|
+
};
|
2428
|
+
};
|
2429
|
+
function Nc(e) {
|
2430
|
+
const {
|
2431
|
+
sizeUnit: t,
|
2432
|
+
sizeStep: r
|
2433
|
+
} = e;
|
2434
|
+
return {
|
2435
|
+
sizeXXL: t * (r + 8),
|
2436
|
+
// 48
|
2437
|
+
sizeXL: t * (r + 4),
|
2438
|
+
// 32
|
2439
|
+
sizeLG: t * (r + 2),
|
2440
|
+
// 24
|
2441
|
+
sizeMD: t * (r + 1),
|
2442
|
+
// 20
|
2443
|
+
sizeMS: t * r,
|
2444
|
+
// 16
|
2445
|
+
size: t * r,
|
2446
|
+
// 16
|
2447
|
+
sizeSM: t * (r - 1),
|
2448
|
+
// 12
|
2449
|
+
sizeXS: t * (r - 2),
|
2450
|
+
// 8
|
2451
|
+
sizeXXS: t * (r - 3)
|
2452
|
+
// 4
|
2453
|
+
};
|
2454
|
+
}
|
2455
|
+
const de = (e, t) => new Q(e).setA(t).toRgbString(), ft = (e, t) => new Q(e).darken(t).toHexString(), $c = (e) => {
|
2456
|
+
const t = Ut(e);
|
2457
|
+
return {
|
2458
|
+
1: t[0],
|
2459
|
+
2: t[1],
|
2460
|
+
3: t[2],
|
2461
|
+
4: t[3],
|
2462
|
+
5: t[4],
|
2463
|
+
6: t[5],
|
2464
|
+
7: t[6],
|
2465
|
+
8: t[4],
|
2466
|
+
9: t[5],
|
2467
|
+
10: t[6]
|
2468
|
+
// 8: colors[7],
|
2469
|
+
// 9: colors[8],
|
2470
|
+
// 10: colors[9],
|
2471
|
+
};
|
2472
|
+
}, Rc = (e, t) => {
|
2473
|
+
const r = e || "#fff", n = t || "#000";
|
2474
|
+
return {
|
2475
|
+
colorBgBase: r,
|
2476
|
+
colorTextBase: n,
|
2477
|
+
colorText: de(n, 0.88),
|
2478
|
+
colorTextSecondary: de(n, 0.65),
|
2479
|
+
colorTextTertiary: de(n, 0.45),
|
2480
|
+
colorTextQuaternary: de(n, 0.25),
|
2481
|
+
colorFill: de(n, 0.15),
|
2482
|
+
colorFillSecondary: de(n, 0.06),
|
2483
|
+
colorFillTertiary: de(n, 0.04),
|
2484
|
+
colorFillQuaternary: de(n, 0.02),
|
2485
|
+
colorBgSolid: de(n, 1),
|
2486
|
+
colorBgSolidHover: de(n, 0.75),
|
2487
|
+
colorBgSolidActive: de(n, 0.95),
|
2488
|
+
colorBgLayout: ft(r, 4),
|
2489
|
+
colorBgContainer: ft(r, 0),
|
2490
|
+
colorBgElevated: ft(r, 0),
|
2491
|
+
colorBgSpotlight: de(n, 0.85),
|
2492
|
+
colorBgBlur: "transparent",
|
2493
|
+
colorBorder: ft(r, 15),
|
2494
|
+
colorBorderSecondary: ft(r, 6)
|
2495
|
+
};
|
2496
|
+
};
|
2497
|
+
function Lc(e) {
|
2498
|
+
fr.pink = fr.magenta, dr.pink = dr.magenta;
|
2499
|
+
const t = Object.keys(na).map((r) => {
|
2500
|
+
const n = e[r] === fr[r] ? dr[r] : Ut(e[r]);
|
2501
|
+
return Array.from({
|
2502
|
+
length: 10
|
2503
|
+
}, () => 1).reduce((o, a, i) => (o[`${r}-${i + 1}`] = n[i], o[`${r}${i + 1}`] = n[i], o), {});
|
2504
|
+
}).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {});
|
2505
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), Oc(e, {
|
2506
|
+
generateColorPalettes: $c,
|
2507
|
+
generateNeutralColorPalettes: Rc
|
2508
|
+
})), jc(e.fontSize)), Nc(e)), kc(e)), Pc(e));
|
2509
|
+
}
|
2510
|
+
const ia = _r(Lc), Xr = {
|
2511
|
+
token: ht,
|
2512
|
+
override: {
|
2513
|
+
override: ht
|
2514
|
+
},
|
2515
|
+
hashed: !0
|
2516
|
+
}, sa = /* @__PURE__ */ Ee.createContext(Xr), Gr = "ant", dn = "anticon", Ic = (e, t) => t || (e ? `${Gr}-${e}` : Gr), _e = /* @__PURE__ */ g.createContext({
|
2517
|
+
// We provide a default function for Context without provider
|
2518
|
+
getPrefixCls: Ic,
|
2519
|
+
iconPrefixCls: dn
|
2520
|
+
}), {
|
2521
|
+
Consumer: Vu
|
2522
|
+
} = _e, Kn = {};
|
2523
|
+
function Hc(e) {
|
2524
|
+
const t = g.useContext(_e), {
|
2525
|
+
getPrefixCls: r,
|
2526
|
+
direction: n,
|
2527
|
+
getPopupContainer: o
|
2528
|
+
} = t, a = t[e];
|
2529
|
+
return Object.assign(Object.assign({
|
2530
|
+
classNames: Kn,
|
2531
|
+
styles: Kn
|
2532
|
+
}, a), {
|
2533
|
+
getPrefixCls: r,
|
2534
|
+
direction: n,
|
2535
|
+
getPopupContainer: o
|
2536
|
+
});
|
2537
|
+
}
|
2538
|
+
const Dc = `-ant-${Date.now()}-${Math.random()}`;
|
2539
|
+
function Vc(e, t) {
|
2540
|
+
const r = {}, n = (i, c) => {
|
2541
|
+
let l = i.clone();
|
2542
|
+
return l = (c == null ? void 0 : c(l)) || l, l.toRgbString();
|
2543
|
+
}, o = (i, c) => {
|
2544
|
+
const l = new Q(i), s = Ut(l.toRgbString());
|
2545
|
+
r[`${c}-color`] = n(l), r[`${c}-color-disabled`] = s[1], r[`${c}-color-hover`] = s[4], r[`${c}-color-active`] = s[6], r[`${c}-color-outline`] = l.clone().setA(0.2).toRgbString(), r[`${c}-color-deprecated-bg`] = s[0], r[`${c}-color-deprecated-border`] = s[2];
|
2546
|
+
};
|
2547
|
+
if (t.primaryColor) {
|
2548
|
+
o(t.primaryColor, "primary");
|
2549
|
+
const i = new Q(t.primaryColor), c = Ut(i.toRgbString());
|
2550
|
+
c.forEach((s, u) => {
|
2551
|
+
r[`primary-${u + 1}`] = s;
|
2552
|
+
}), r["primary-color-deprecated-l-35"] = n(i, (s) => s.lighten(35)), r["primary-color-deprecated-l-20"] = n(i, (s) => s.lighten(20)), r["primary-color-deprecated-t-20"] = n(i, (s) => s.tint(20)), r["primary-color-deprecated-t-50"] = n(i, (s) => s.tint(50)), r["primary-color-deprecated-f-12"] = n(i, (s) => s.setA(s.a * 0.12));
|
2553
|
+
const l = new Q(c[0]);
|
2554
|
+
r["primary-color-active-deprecated-f-30"] = n(l, (s) => s.setA(s.a * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (s) => s.darken(2));
|
2555
|
+
}
|
2556
|
+
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"), `
|
2557
|
+
:root {
|
2558
|
+
${Object.keys(r).map((i) => `--${e}-${i}: ${r[i]};`).join(`
|
2559
|
+
`)}
|
2560
|
+
}
|
2561
|
+
`.trim();
|
2562
|
+
}
|
2563
|
+
function zc(e, t) {
|
2564
|
+
const r = Vc(e, t);
|
2565
|
+
Pe() ? Ze(r, `${Dc}-dynamic-theme`) : process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
2566
|
+
}
|
2567
|
+
const Ur = /* @__PURE__ */ g.createContext(!1), Bc = (e) => {
|
2568
|
+
let {
|
2569
|
+
children: t,
|
2570
|
+
disabled: r
|
2571
|
+
} = e;
|
2572
|
+
const n = g.useContext(Ur);
|
2573
|
+
return /* @__PURE__ */ g.createElement(Ur.Provider, {
|
2574
|
+
value: r ?? n
|
2575
|
+
}, t);
|
2576
|
+
}, mt = /* @__PURE__ */ g.createContext(void 0), Fc = (e) => {
|
2577
|
+
let {
|
2578
|
+
children: t,
|
2579
|
+
size: r
|
2580
|
+
} = e;
|
2581
|
+
const n = g.useContext(mt);
|
2582
|
+
return /* @__PURE__ */ g.createElement(mt.Provider, {
|
2583
|
+
value: r || n
|
2584
|
+
}, t);
|
2585
|
+
};
|
2586
|
+
function Wc() {
|
2587
|
+
const e = He(Ur), t = He(mt);
|
2588
|
+
return {
|
2589
|
+
componentDisabled: e,
|
2590
|
+
componentSize: t
|
2591
|
+
};
|
2592
|
+
}
|
2593
|
+
var ca = /* @__PURE__ */ Me(function e() {
|
2594
|
+
ke(this, e);
|
2595
|
+
}), la = "CALC_UNIT", Xc = new RegExp(la, "g");
|
2596
|
+
function vr(e) {
|
2597
|
+
return typeof e == "number" ? "".concat(e).concat(la) : e;
|
2598
|
+
}
|
2599
|
+
var Gc = /* @__PURE__ */ function(e) {
|
2600
|
+
Qt(r, e);
|
2601
|
+
var t = qt(r);
|
2602
|
+
function r(n, o) {
|
2603
|
+
var a;
|
2604
|
+
ke(this, r), a = t.call(this), P(ze(a), "result", ""), P(ze(a), "unitlessCssVar", void 0), P(ze(a), "lowPriority", void 0);
|
2605
|
+
var i = F(n);
|
2606
|
+
return a.unitlessCssVar = o, n instanceof r ? a.result = "(".concat(n.result, ")") : i === "number" ? a.result = vr(n) : i === "string" && (a.result = n), a;
|
2607
|
+
}
|
2608
|
+
return Me(r, [{
|
2609
|
+
key: "add",
|
2610
|
+
value: function(o) {
|
2611
|
+
return o instanceof r ? this.result = "".concat(this.result, " + ").concat(o.getResult()) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " + ").concat(vr(o))), this.lowPriority = !0, this;
|
2612
|
+
}
|
2613
|
+
}, {
|
2614
|
+
key: "sub",
|
2615
|
+
value: function(o) {
|
2616
|
+
return o instanceof r ? this.result = "".concat(this.result, " - ").concat(o.getResult()) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " - ").concat(vr(o))), this.lowPriority = !0, this;
|
2617
|
+
}
|
2618
|
+
}, {
|
2619
|
+
key: "mul",
|
2620
|
+
value: function(o) {
|
2621
|
+
return this.lowPriority && (this.result = "(".concat(this.result, ")")), o instanceof r ? this.result = "".concat(this.result, " * ").concat(o.getResult(!0)) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " * ").concat(o)), this.lowPriority = !1, this;
|
2622
|
+
}
|
2623
|
+
}, {
|
2624
|
+
key: "div",
|
2625
|
+
value: function(o) {
|
2626
|
+
return this.lowPriority && (this.result = "(".concat(this.result, ")")), o instanceof r ? this.result = "".concat(this.result, " / ").concat(o.getResult(!0)) : (typeof o == "number" || typeof o == "string") && (this.result = "".concat(this.result, " / ").concat(o)), this.lowPriority = !1, this;
|
2627
|
+
}
|
2628
|
+
}, {
|
2629
|
+
key: "getResult",
|
2630
|
+
value: function(o) {
|
2631
|
+
return this.lowPriority || o ? "(".concat(this.result, ")") : this.result;
|
2632
|
+
}
|
2633
|
+
}, {
|
2634
|
+
key: "equal",
|
2635
|
+
value: function(o) {
|
2636
|
+
var a = this, i = o || {}, c = i.unit, l = !0;
|
2637
|
+
return typeof c == "boolean" ? l = c : Array.from(this.unitlessCssVar).some(function(s) {
|
2638
|
+
return a.result.includes(s);
|
2639
|
+
}) && (l = !1), this.result = this.result.replace(Xc, l ? "px" : ""), typeof this.lowPriority < "u" ? "calc(".concat(this.result, ")") : this.result;
|
2640
|
+
}
|
2641
|
+
}]), r;
|
2642
|
+
}(ca), Uc = /* @__PURE__ */ function(e) {
|
2643
|
+
Qt(r, e);
|
2644
|
+
var t = qt(r);
|
2645
|
+
function r(n) {
|
2646
|
+
var o;
|
2647
|
+
return ke(this, r), o = t.call(this), P(ze(o), "result", 0), n instanceof r ? o.result = n.result : typeof n == "number" && (o.result = n), o;
|
2648
|
+
}
|
2649
|
+
return Me(r, [{
|
2650
|
+
key: "add",
|
2651
|
+
value: function(o) {
|
2652
|
+
return o instanceof r ? this.result += o.result : typeof o == "number" && (this.result += o), this;
|
2653
|
+
}
|
2654
|
+
}, {
|
2655
|
+
key: "sub",
|
2656
|
+
value: function(o) {
|
2657
|
+
return o instanceof r ? this.result -= o.result : typeof o == "number" && (this.result -= o), this;
|
2658
|
+
}
|
2659
|
+
}, {
|
2660
|
+
key: "mul",
|
2661
|
+
value: function(o) {
|
2662
|
+
return o instanceof r ? this.result *= o.result : typeof o == "number" && (this.result *= o), this;
|
2663
|
+
}
|
2664
|
+
}, {
|
2665
|
+
key: "div",
|
2666
|
+
value: function(o) {
|
2667
|
+
return o instanceof r ? this.result /= o.result : typeof o == "number" && (this.result /= o), this;
|
2668
|
+
}
|
2669
|
+
}, {
|
2670
|
+
key: "equal",
|
2671
|
+
value: function() {
|
2672
|
+
return this.result;
|
2673
|
+
}
|
2674
|
+
}]), r;
|
2675
|
+
}(ca), Kc = function(t, r) {
|
2676
|
+
var n = t === "css" ? Gc : Uc;
|
2677
|
+
return function(o) {
|
2678
|
+
return new n(o, r);
|
2679
|
+
};
|
2680
|
+
}, Yn = function(t, r) {
|
2681
|
+
return "".concat([r, t.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-"));
|
2682
|
+
};
|
2683
|
+
function Kr(e) {
|
2684
|
+
var t = g.useRef();
|
2685
|
+
t.current = e;
|
2686
|
+
var r = g.useCallback(function() {
|
2687
|
+
for (var n, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
|
2688
|
+
a[i] = arguments[i];
|
2689
|
+
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(a));
|
2690
|
+
}, []);
|
2691
|
+
return r;
|
2692
|
+
}
|
2693
|
+
function Yr(e) {
|
2694
|
+
var t = g.useRef(!1), r = g.useState(e), n = R(r, 2), o = n[0], a = n[1];
|
2695
|
+
g.useEffect(function() {
|
2696
|
+
return t.current = !1, function() {
|
2697
|
+
t.current = !0;
|
2698
|
+
};
|
2699
|
+
}, []);
|
2700
|
+
function i(c, l) {
|
2701
|
+
l && t.current || a(c);
|
2702
|
+
}
|
2703
|
+
return [o, i];
|
2704
|
+
}
|
2705
|
+
var jt = { exports: {} }, D = {};
|
2706
|
+
/**
|
2707
|
+
* @license React
|
2708
|
+
* react-is.production.min.js
|
2709
|
+
*
|
2710
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
2711
|
+
*
|
2712
|
+
* This source code is licensed under the MIT license found in the
|
2713
|
+
* LICENSE file in the root directory of this source tree.
|
2714
|
+
*/
|
2715
|
+
var Qn;
|
2716
|
+
function Yc() {
|
2717
|
+
if (Qn) return D;
|
2718
|
+
Qn = 1;
|
2719
|
+
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"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m;
|
2720
|
+
m = Symbol.for("react.module.reference");
|
2721
|
+
function p(v) {
|
2722
|
+
if (typeof v == "object" && v !== null) {
|
2723
|
+
var x = v.$$typeof;
|
2724
|
+
switch (x) {
|
2725
|
+
case e:
|
2726
|
+
switch (v = v.type, v) {
|
2727
|
+
case r:
|
2728
|
+
case o:
|
2729
|
+
case n:
|
2730
|
+
case s:
|
2731
|
+
case u:
|
2732
|
+
return v;
|
2733
|
+
default:
|
2734
|
+
switch (v = v && v.$$typeof, v) {
|
2735
|
+
case c:
|
2736
|
+
case i:
|
2737
|
+
case l:
|
2738
|
+
case f:
|
2739
|
+
case d:
|
2740
|
+
case a:
|
2741
|
+
return v;
|
2742
|
+
default:
|
2743
|
+
return x;
|
2744
|
+
}
|
2745
|
+
}
|
2746
|
+
case t:
|
2747
|
+
return x;
|
2748
|
+
}
|
2749
|
+
}
|
2750
|
+
}
|
2751
|
+
return D.ContextConsumer = i, D.ContextProvider = a, D.Element = e, D.ForwardRef = l, D.Fragment = r, D.Lazy = f, D.Memo = d, D.Portal = t, D.Profiler = o, D.StrictMode = n, D.Suspense = s, D.SuspenseList = u, D.isAsyncMode = function() {
|
2752
|
+
return !1;
|
2753
|
+
}, D.isConcurrentMode = function() {
|
2754
|
+
return !1;
|
2755
|
+
}, D.isContextConsumer = function(v) {
|
2756
|
+
return p(v) === i;
|
2757
|
+
}, D.isContextProvider = function(v) {
|
2758
|
+
return p(v) === a;
|
2759
|
+
}, D.isElement = function(v) {
|
2760
|
+
return typeof v == "object" && v !== null && v.$$typeof === e;
|
2761
|
+
}, D.isForwardRef = function(v) {
|
2762
|
+
return p(v) === l;
|
2763
|
+
}, D.isFragment = function(v) {
|
2764
|
+
return p(v) === r;
|
2765
|
+
}, D.isLazy = function(v) {
|
2766
|
+
return p(v) === f;
|
2767
|
+
}, D.isMemo = function(v) {
|
2768
|
+
return p(v) === d;
|
2769
|
+
}, D.isPortal = function(v) {
|
2770
|
+
return p(v) === t;
|
2771
|
+
}, D.isProfiler = function(v) {
|
2772
|
+
return p(v) === o;
|
2773
|
+
}, D.isStrictMode = function(v) {
|
2774
|
+
return p(v) === n;
|
2775
|
+
}, D.isSuspense = function(v) {
|
2776
|
+
return p(v) === s;
|
2777
|
+
}, D.isSuspenseList = function(v) {
|
2778
|
+
return p(v) === u;
|
2779
|
+
}, D.isValidElementType = function(v) {
|
2780
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === o || v === n || v === s || v === u || v === h || typeof v == "object" && v !== null && (v.$$typeof === f || v.$$typeof === d || v.$$typeof === a || v.$$typeof === i || v.$$typeof === l || v.$$typeof === m || v.getModuleId !== void 0);
|
2781
|
+
}, D.typeOf = p, D;
|
2782
|
+
}
|
2783
|
+
var V = {};
|
2784
|
+
/**
|
2785
|
+
* @license React
|
2786
|
+
* react-is.development.js
|
2787
|
+
*
|
2788
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
2789
|
+
*
|
2790
|
+
* This source code is licensed under the MIT license found in the
|
2791
|
+
* LICENSE file in the root directory of this source tree.
|
2792
|
+
*/
|
2793
|
+
var qn;
|
2794
|
+
function Qc() {
|
2795
|
+
return qn || (qn = 1, process.env.NODE_ENV !== "production" && function() {
|
2796
|
+
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"), c = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), m = !1, p = !1, v = !1, x = !1, b = !1, C;
|
2797
|
+
C = Symbol.for("react.module.reference");
|
2798
|
+
function T(O) {
|
2799
|
+
return !!(typeof O == "string" || typeof O == "function" || O === r || O === o || b || O === n || O === s || O === u || x || O === h || m || p || v || typeof O == "object" && O !== null && (O.$$typeof === f || O.$$typeof === d || O.$$typeof === a || O.$$typeof === i || O.$$typeof === l || // This needs to include all possible module reference object
|
2800
|
+
// types supported by any Flight configuration anywhere since
|
2801
|
+
// we don't know which Flight build this will end up being used
|
2802
|
+
// with.
|
2803
|
+
O.$$typeof === C || O.getModuleId !== void 0));
|
2804
|
+
}
|
2805
|
+
function y(O) {
|
2806
|
+
if (typeof O == "object" && O !== null) {
|
2807
|
+
var De = O.$$typeof;
|
2808
|
+
switch (De) {
|
2809
|
+
case e:
|
2810
|
+
var se = O.type;
|
2811
|
+
switch (se) {
|
2812
|
+
case r:
|
2813
|
+
case o:
|
2814
|
+
case n:
|
2815
|
+
case s:
|
2816
|
+
case u:
|
2817
|
+
return se;
|
2818
|
+
default:
|
2819
|
+
var We = se && se.$$typeof;
|
2820
|
+
switch (We) {
|
2821
|
+
case c:
|
2822
|
+
case i:
|
2823
|
+
case l:
|
2824
|
+
case f:
|
2825
|
+
case d:
|
2826
|
+
case a:
|
2827
|
+
return We;
|
2828
|
+
default:
|
2829
|
+
return De;
|
2830
|
+
}
|
2831
|
+
}
|
2832
|
+
case t:
|
2833
|
+
return De;
|
2834
|
+
}
|
2835
|
+
}
|
2836
|
+
}
|
2837
|
+
var E = i, S = a, _ = e, j = l, M = r, I = f, L = d, $ = t, A = o, N = n, z = s, W = u, H = !1, X = !1;
|
2838
|
+
function G(O) {
|
2839
|
+
return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
2840
|
+
}
|
2841
|
+
function K(O) {
|
2842
|
+
return X || (X = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
2843
|
+
}
|
2844
|
+
function U(O) {
|
2845
|
+
return y(O) === i;
|
2846
|
+
}
|
2847
|
+
function B(O) {
|
2848
|
+
return y(O) === a;
|
2849
|
+
}
|
2850
|
+
function q(O) {
|
2851
|
+
return typeof O == "object" && O !== null && O.$$typeof === e;
|
2852
|
+
}
|
2853
|
+
function ce(O) {
|
2854
|
+
return y(O) === l;
|
2855
|
+
}
|
2856
|
+
function ye(O) {
|
2857
|
+
return y(O) === r;
|
2858
|
+
}
|
2859
|
+
function ae(O) {
|
2860
|
+
return y(O) === f;
|
2861
|
+
}
|
2862
|
+
function Y(O) {
|
2863
|
+
return y(O) === d;
|
2864
|
+
}
|
2865
|
+
function ie(O) {
|
2866
|
+
return y(O) === t;
|
2867
|
+
}
|
2868
|
+
function be(O) {
|
2869
|
+
return y(O) === o;
|
2870
|
+
}
|
2871
|
+
function ue(O) {
|
2872
|
+
return y(O) === n;
|
2873
|
+
}
|
2874
|
+
function ge(O) {
|
2875
|
+
return y(O) === s;
|
2876
|
+
}
|
2877
|
+
function Ae(O) {
|
2878
|
+
return y(O) === u;
|
2879
|
+
}
|
2880
|
+
V.ContextConsumer = E, V.ContextProvider = S, V.Element = _, V.ForwardRef = j, V.Fragment = M, V.Lazy = I, V.Memo = L, V.Portal = $, V.Profiler = A, V.StrictMode = N, V.Suspense = z, V.SuspenseList = W, V.isAsyncMode = G, V.isConcurrentMode = K, V.isContextConsumer = U, V.isContextProvider = B, V.isElement = q, V.isForwardRef = ce, V.isFragment = ye, V.isLazy = ae, V.isMemo = Y, V.isPortal = ie, V.isProfiler = be, V.isStrictMode = ue, V.isSuspense = ge, V.isSuspenseList = Ae, V.isValidElementType = T, V.typeOf = y;
|
2881
|
+
}()), V;
|
2882
|
+
}
|
2883
|
+
var Zn;
|
2884
|
+
function qc() {
|
2885
|
+
return Zn || (Zn = 1, process.env.NODE_ENV === "production" ? jt.exports = Yc() : jt.exports = Qc()), jt.exports;
|
2886
|
+
}
|
2887
|
+
var gr = qc(), Zc = Symbol.for("react.element"), Jc = Symbol.for("react.transitional.element"), el = Symbol.for("react.fragment");
|
2888
|
+
function ua(e) {
|
2889
|
+
return (
|
2890
|
+
// Base object type
|
2891
|
+
e && F(e) === "object" && // React Element type
|
2892
|
+
(e.$$typeof === Zc || e.$$typeof === Jc) && // React Fragment type
|
2893
|
+
e.type === el
|
2894
|
+
);
|
2895
|
+
}
|
2896
|
+
var tl = Number(Mi.split(".")[0]), rl = function(t, r) {
|
2897
|
+
typeof t == "function" ? t(r) : F(t) === "object" && t && "current" in t && (t.current = r);
|
2898
|
+
}, nl = function(t) {
|
2899
|
+
var r, n;
|
2900
|
+
if (!t)
|
2901
|
+
return !1;
|
2902
|
+
if (fa(t) && tl >= 19)
|
2903
|
+
return !0;
|
2904
|
+
var o = gr.isMemo(t) ? t.type.type : t.type;
|
2905
|
+
return !(typeof o == "function" && !((r = o.prototype) !== null && r !== void 0 && r.render) && o.$$typeof !== gr.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== gr.ForwardRef);
|
2906
|
+
};
|
2907
|
+
function fa(e) {
|
2908
|
+
return /* @__PURE__ */ Ai(e) && !ua(e);
|
2909
|
+
}
|
2910
|
+
var ol = function(t) {
|
2911
|
+
if (t && fa(t)) {
|
2912
|
+
var r = t;
|
2913
|
+
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
2914
|
+
}
|
2915
|
+
return null;
|
2916
|
+
};
|
2917
|
+
function Jn(e, t, r, n) {
|
2918
|
+
var o = k({}, t[e]);
|
2919
|
+
if (n != null && n.deprecatedTokens) {
|
2920
|
+
var a = n.deprecatedTokens;
|
2921
|
+
a.forEach(function(c) {
|
2922
|
+
var l = R(c, 2), s = l[0], u = l[1];
|
2923
|
+
if (process.env.NODE_ENV !== "production" && Fe(!(o != null && o[s]), "Component Token `".concat(String(s), "` of ").concat(String(e), " is deprecated. Please use `").concat(String(u), "` instead.")), o != null && o[s] || o != null && o[u]) {
|
2924
|
+
var d;
|
2925
|
+
(d = o[u]) !== null && d !== void 0 || (o[u] = o == null ? void 0 : o[s]);
|
2926
|
+
}
|
2927
|
+
});
|
2928
|
+
}
|
2929
|
+
var i = k(k({}, r), o);
|
2930
|
+
return Object.keys(i).forEach(function(c) {
|
2931
|
+
i[c] === t[c] && delete i[c];
|
2932
|
+
}), i;
|
2933
|
+
}
|
2934
|
+
var da = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u", Qr = !0;
|
2935
|
+
function va() {
|
2936
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
2937
|
+
t[r] = arguments[r];
|
2938
|
+
if (!da)
|
2939
|
+
return Object.assign.apply(Object, [{}].concat(t));
|
2940
|
+
Qr = !1;
|
2941
|
+
var n = {};
|
2942
|
+
return t.forEach(function(o) {
|
2943
|
+
if (F(o) === "object") {
|
2944
|
+
var a = Object.keys(o);
|
2945
|
+
a.forEach(function(i) {
|
2946
|
+
Object.defineProperty(n, i, {
|
2947
|
+
configurable: !0,
|
2948
|
+
enumerable: !0,
|
2949
|
+
get: function() {
|
2950
|
+
return o[i];
|
2951
|
+
}
|
2952
|
+
});
|
2953
|
+
});
|
2954
|
+
}
|
2955
|
+
}), Qr = !0, n;
|
2956
|
+
}
|
2957
|
+
var eo = {};
|
2958
|
+
function al() {
|
2959
|
+
}
|
2960
|
+
var il = function(t) {
|
2961
|
+
var r, n = t, o = al;
|
2962
|
+
return da && typeof Proxy < "u" && (r = /* @__PURE__ */ new Set(), n = new Proxy(t, {
|
2963
|
+
get: function(i, c) {
|
2964
|
+
if (Qr) {
|
2965
|
+
var l;
|
2966
|
+
(l = r) === null || l === void 0 || l.add(c);
|
2967
|
+
}
|
2968
|
+
return i[c];
|
2969
|
+
}
|
2970
|
+
}), o = function(i, c) {
|
2971
|
+
var l;
|
2972
|
+
eo[i] = {
|
2973
|
+
global: Array.from(r),
|
2974
|
+
component: k(k({}, (l = eo[i]) === null || l === void 0 ? void 0 : l.component), c)
|
2975
|
+
};
|
2976
|
+
}), {
|
2977
|
+
token: n,
|
2978
|
+
keys: r,
|
2979
|
+
flush: o
|
2980
|
+
};
|
2981
|
+
};
|
2982
|
+
function to(e, t, r) {
|
2983
|
+
if (typeof r == "function") {
|
2984
|
+
var n;
|
2985
|
+
return r(va(t, (n = t[e]) !== null && n !== void 0 ? n : {}));
|
2986
|
+
}
|
2987
|
+
return r ?? {};
|
2988
|
+
}
|
2989
|
+
function sl(e) {
|
2990
|
+
return e === "js" ? {
|
2991
|
+
max: Math.max,
|
2992
|
+
min: Math.min
|
2993
|
+
} : {
|
2994
|
+
max: function() {
|
2995
|
+
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
|
2996
|
+
n[o] = arguments[o];
|
2997
|
+
return "max(".concat(n.map(function(a) {
|
2998
|
+
return Ne(a);
|
2999
|
+
}).join(","), ")");
|
3000
|
+
},
|
3001
|
+
min: function() {
|
3002
|
+
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
|
3003
|
+
n[o] = arguments[o];
|
3004
|
+
return "min(".concat(n.map(function(a) {
|
3005
|
+
return Ne(a);
|
3006
|
+
}).join(","), ")");
|
3007
|
+
}
|
3008
|
+
};
|
3009
|
+
}
|
3010
|
+
var cl = 1e3 * 60 * 10, ll = /* @__PURE__ */ function() {
|
3011
|
+
function e() {
|
3012
|
+
ke(this, e), P(this, "map", /* @__PURE__ */ new Map()), P(this, "objectIDMap", /* @__PURE__ */ new WeakMap()), P(this, "nextID", 0), P(this, "lastAccessBeat", /* @__PURE__ */ new Map()), P(this, "accessBeat", 0);
|
3013
|
+
}
|
3014
|
+
return Me(e, [{
|
3015
|
+
key: "set",
|
3016
|
+
value: function(r, n) {
|
3017
|
+
this.clear();
|
3018
|
+
var o = this.getCompositeKey(r);
|
3019
|
+
this.map.set(o, n), this.lastAccessBeat.set(o, Date.now());
|
3020
|
+
}
|
3021
|
+
}, {
|
3022
|
+
key: "get",
|
3023
|
+
value: function(r) {
|
3024
|
+
var n = this.getCompositeKey(r), o = this.map.get(n);
|
3025
|
+
return this.lastAccessBeat.set(n, Date.now()), this.accessBeat += 1, o;
|
3026
|
+
}
|
3027
|
+
}, {
|
3028
|
+
key: "getCompositeKey",
|
3029
|
+
value: function(r) {
|
3030
|
+
var n = this, o = r.map(function(a) {
|
3031
|
+
return a && F(a) === "object" ? "obj_".concat(n.getObjectID(a)) : "".concat(F(a), "_").concat(a);
|
3032
|
+
});
|
3033
|
+
return o.join("|");
|
3034
|
+
}
|
3035
|
+
}, {
|
3036
|
+
key: "getObjectID",
|
3037
|
+
value: function(r) {
|
3038
|
+
if (this.objectIDMap.has(r))
|
3039
|
+
return this.objectIDMap.get(r);
|
3040
|
+
var n = this.nextID;
|
3041
|
+
return this.objectIDMap.set(r, n), this.nextID += 1, n;
|
3042
|
+
}
|
3043
|
+
}, {
|
3044
|
+
key: "clear",
|
3045
|
+
value: function() {
|
3046
|
+
var r = this;
|
3047
|
+
if (this.accessBeat > 1e4) {
|
3048
|
+
var n = Date.now();
|
3049
|
+
this.lastAccessBeat.forEach(function(o, a) {
|
3050
|
+
n - o > cl && (r.map.delete(a), r.lastAccessBeat.delete(a));
|
3051
|
+
}), this.accessBeat = 0;
|
3052
|
+
}
|
3053
|
+
}
|
3054
|
+
}]), e;
|
3055
|
+
}(), ro = new ll();
|
3056
|
+
function ul(e, t) {
|
3057
|
+
return Ee.useMemo(function() {
|
3058
|
+
var r = ro.get(t);
|
3059
|
+
if (r)
|
3060
|
+
return r;
|
3061
|
+
var n = e();
|
3062
|
+
return ro.set(t, n), n;
|
3063
|
+
}, t);
|
3064
|
+
}
|
3065
|
+
var fl = function() {
|
3066
|
+
return {};
|
3067
|
+
};
|
3068
|
+
function dl(e) {
|
3069
|
+
var t = e.useCSP, r = t === void 0 ? fl : t, n = e.useToken, o = e.usePrefix, a = e.getResetStyles, i = e.getCommonStyle, c = e.getCompUnitless;
|
3070
|
+
function l(f, h, m, p) {
|
3071
|
+
var v = Array.isArray(f) ? f[0] : f;
|
3072
|
+
function x(_) {
|
3073
|
+
return "".concat(String(v)).concat(_.slice(0, 1).toUpperCase()).concat(_.slice(1));
|
3074
|
+
}
|
3075
|
+
var b = (p == null ? void 0 : p.unitless) || {}, C = typeof c == "function" ? c(f) : {}, T = k(k({}, C), {}, P({}, x("zIndexPopup"), !0));
|
3076
|
+
Object.keys(b).forEach(function(_) {
|
3077
|
+
T[x(_)] = b[_];
|
3078
|
+
});
|
3079
|
+
var y = k(k({}, p), {}, {
|
3080
|
+
unitless: T,
|
3081
|
+
prefixToken: x
|
3082
|
+
}), E = u(f, h, m, y), S = s(v, m, y);
|
3083
|
+
return function(_) {
|
3084
|
+
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, M = E(_, j), I = R(M, 2), L = I[1], $ = S(j), A = R($, 2), N = A[0], z = A[1];
|
3085
|
+
return [N, L, z];
|
3086
|
+
};
|
3087
|
+
}
|
3088
|
+
function s(f, h, m) {
|
3089
|
+
var p = m.unitless, v = m.injectStyle, x = v === void 0 ? !0 : v, b = m.prefixToken, C = m.ignore, T = function(S) {
|
3090
|
+
var _ = S.rootCls, j = S.cssVar, M = j === void 0 ? {} : j, I = n(), L = I.realToken;
|
3091
|
+
return vc({
|
3092
|
+
path: [f],
|
3093
|
+
prefix: M.prefix,
|
3094
|
+
key: M.key,
|
3095
|
+
unitless: p,
|
3096
|
+
ignore: C,
|
3097
|
+
token: L,
|
3098
|
+
scope: _
|
3099
|
+
}, function() {
|
3100
|
+
var $ = to(f, L, h), A = Jn(f, L, $, {
|
3101
|
+
deprecatedTokens: m == null ? void 0 : m.deprecatedTokens
|
3102
|
+
});
|
3103
|
+
return Object.keys($).forEach(function(N) {
|
3104
|
+
A[b(N)] = A[N], delete A[N];
|
3105
|
+
}), A;
|
3106
|
+
}), null;
|
3107
|
+
}, y = function(S) {
|
3108
|
+
var _ = n(), j = _.cssVar;
|
3109
|
+
return [function(M) {
|
3110
|
+
return x && j ? /* @__PURE__ */ Ee.createElement(Ee.Fragment, null, /* @__PURE__ */ Ee.createElement(T, {
|
3111
|
+
rootCls: S,
|
3112
|
+
cssVar: j,
|
3113
|
+
component: f
|
3114
|
+
}), M) : M;
|
3115
|
+
}, j == null ? void 0 : j.key];
|
3116
|
+
};
|
3117
|
+
return y;
|
3118
|
+
}
|
3119
|
+
function u(f, h, m) {
|
3120
|
+
var p = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, v = Array.isArray(f) ? f : [f, f], x = R(v, 1), b = x[0], C = v.join("-"), T = e.layer || {
|
3121
|
+
name: "antd"
|
3122
|
+
};
|
3123
|
+
return function(y) {
|
3124
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : y, S = n(), _ = S.theme, j = S.realToken, M = S.hashId, I = S.token, L = S.cssVar, $ = o(), A = $.rootPrefixCls, N = $.iconPrefixCls, z = r(), W = L ? "css" : "js", H = ul(function() {
|
3125
|
+
var q = /* @__PURE__ */ new Set();
|
3126
|
+
return L && Object.keys(p.unitless || {}).forEach(function(ce) {
|
3127
|
+
q.add(Ht(ce, L.prefix)), q.add(Ht(ce, Yn(b, L.prefix)));
|
3128
|
+
}), Kc(W, q);
|
3129
|
+
}, [W, b, L == null ? void 0 : L.prefix]), X = sl(W), G = X.max, K = X.min, U = {
|
3130
|
+
theme: _,
|
3131
|
+
token: I,
|
3132
|
+
hashId: M,
|
3133
|
+
nonce: function() {
|
3134
|
+
return z.nonce;
|
3135
|
+
},
|
3136
|
+
clientOnly: p.clientOnly,
|
3137
|
+
layer: T,
|
3138
|
+
// antd is always at top of styles
|
3139
|
+
order: p.order || -999
|
3140
|
+
};
|
3141
|
+
typeof a == "function" && Mr(k(k({}, U), {}, {
|
3142
|
+
clientOnly: !1,
|
3143
|
+
path: ["Shared", A]
|
3144
|
+
}), function() {
|
3145
|
+
return a(I, {
|
3146
|
+
prefix: {
|
3147
|
+
rootPrefixCls: A,
|
3148
|
+
iconPrefixCls: N
|
3149
|
+
},
|
3150
|
+
csp: z
|
3151
|
+
});
|
3152
|
+
});
|
3153
|
+
var B = Mr(k(k({}, U), {}, {
|
3154
|
+
path: [C, y, N]
|
3155
|
+
}), function() {
|
3156
|
+
if (p.injectStyle === !1)
|
3157
|
+
return [];
|
3158
|
+
var q = il(I), ce = q.token, ye = q.flush, ae = to(b, j, m), Y = ".".concat(y), ie = Jn(b, j, ae, {
|
3159
|
+
deprecatedTokens: p.deprecatedTokens
|
3160
|
+
});
|
3161
|
+
L && ae && F(ae) === "object" && Object.keys(ae).forEach(function(Ae) {
|
3162
|
+
ae[Ae] = "var(".concat(Ht(Ae, Yn(b, L.prefix)), ")");
|
3163
|
+
});
|
3164
|
+
var be = va(ce, {
|
3165
|
+
componentCls: Y,
|
3166
|
+
prefixCls: y,
|
3167
|
+
iconCls: ".".concat(N),
|
3168
|
+
antCls: ".".concat(A),
|
3169
|
+
calc: H,
|
3170
|
+
// @ts-ignore
|
3171
|
+
max: G,
|
3172
|
+
// @ts-ignore
|
3173
|
+
min: K
|
3174
|
+
}, L ? ae : ie), ue = h(be, {
|
3175
|
+
hashId: M,
|
3176
|
+
prefixCls: y,
|
3177
|
+
rootPrefixCls: A,
|
3178
|
+
iconPrefixCls: N
|
3179
|
+
});
|
3180
|
+
ye(b, ie);
|
3181
|
+
var ge = typeof i == "function" ? i(be, y, E, p.resetFont) : null;
|
3182
|
+
return [p.resetStyle === !1 ? null : ge, ue];
|
3183
|
+
});
|
3184
|
+
return [B, M];
|
3185
|
+
};
|
3186
|
+
}
|
3187
|
+
function d(f, h, m) {
|
3188
|
+
var p = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, v = u(f, h, m, k({
|
3189
|
+
resetStyle: !1,
|
3190
|
+
// Sub Style should default after root one
|
3191
|
+
order: -998
|
3192
|
+
}, p)), x = function(C) {
|
3193
|
+
var T = C.prefixCls, y = C.rootCls, E = y === void 0 ? T : y;
|
3194
|
+
return v(T, E), null;
|
3195
|
+
};
|
3196
|
+
return process.env.NODE_ENV !== "production" && (x.displayName = "SubStyle_".concat(String(Array.isArray(f) ? f.join(".") : f))), x;
|
3197
|
+
}
|
3198
|
+
return {
|
3199
|
+
genStyleHooks: l,
|
3200
|
+
genSubStyleComponent: d,
|
3201
|
+
genComponentStyleHook: u
|
3202
|
+
};
|
3203
|
+
}
|
3204
|
+
const vl = "5.25.0";
|
3205
|
+
function pr(e) {
|
3206
|
+
return e >= 0 && e <= 255;
|
3207
|
+
}
|
3208
|
+
function Nt(e, t) {
|
3209
|
+
const {
|
3210
|
+
r,
|
3211
|
+
g: n,
|
3212
|
+
b: o,
|
3213
|
+
a
|
3214
|
+
} = new Q(e).toRgb();
|
3215
|
+
if (a < 1)
|
3216
|
+
return e;
|
3217
|
+
const {
|
3218
|
+
r: i,
|
3219
|
+
g: c,
|
3220
|
+
b: l
|
3221
|
+
} = new Q(t).toRgb();
|
3222
|
+
for (let s = 0.01; s <= 1; s += 0.01) {
|
3223
|
+
const u = Math.round((r - i * (1 - s)) / s), d = Math.round((n - c * (1 - s)) / s), f = Math.round((o - l * (1 - s)) / s);
|
3224
|
+
if (pr(u) && pr(d) && pr(f))
|
3225
|
+
return new Q({
|
3226
|
+
r: u,
|
3227
|
+
g: d,
|
3228
|
+
b: f,
|
3229
|
+
a: Math.round(s * 100) / 100
|
3230
|
+
}).toRgbString();
|
3231
|
+
}
|
3232
|
+
return new Q({
|
3233
|
+
r,
|
3234
|
+
g: n,
|
3235
|
+
b: o,
|
3236
|
+
a: 1
|
3237
|
+
}).toRgbString();
|
3238
|
+
}
|
3239
|
+
var gl = function(e, t) {
|
3240
|
+
var r = {};
|
3241
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3242
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
3243
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
3244
|
+
return r;
|
3245
|
+
};
|
3246
|
+
function ga(e) {
|
3247
|
+
const {
|
3248
|
+
override: t
|
3249
|
+
} = e, r = gl(e, ["override"]), n = Object.assign({}, t);
|
3250
|
+
Object.keys(ht).forEach((f) => {
|
3251
|
+
delete n[f];
|
3252
|
+
});
|
3253
|
+
const o = Object.assign(Object.assign({}, r), n), a = 480, i = 576, c = 768, l = 992, s = 1200, u = 1600;
|
3254
|
+
if (o.motion === !1) {
|
3255
|
+
const f = "0s";
|
3256
|
+
o.motionDurationFast = f, o.motionDurationMid = f, o.motionDurationSlow = f;
|
3257
|
+
}
|
3258
|
+
return Object.assign(Object.assign(Object.assign({}, o), {
|
3259
|
+
// ============== Background ============== //
|
3260
|
+
colorFillContent: o.colorFillSecondary,
|
3261
|
+
colorFillContentHover: o.colorFill,
|
3262
|
+
colorFillAlter: o.colorFillQuaternary,
|
3263
|
+
colorBgContainerDisabled: o.colorFillTertiary,
|
3264
|
+
// ============== Split ============== //
|
3265
|
+
colorBorderBg: o.colorBgContainer,
|
3266
|
+
colorSplit: Nt(o.colorBorderSecondary, o.colorBgContainer),
|
3267
|
+
// ============== Text ============== //
|
3268
|
+
colorTextPlaceholder: o.colorTextQuaternary,
|
3269
|
+
colorTextDisabled: o.colorTextQuaternary,
|
3270
|
+
colorTextHeading: o.colorText,
|
3271
|
+
colorTextLabel: o.colorTextSecondary,
|
3272
|
+
colorTextDescription: o.colorTextTertiary,
|
3273
|
+
colorTextLightSolid: o.colorWhite,
|
3274
|
+
colorHighlight: o.colorError,
|
3275
|
+
colorBgTextHover: o.colorFillSecondary,
|
3276
|
+
colorBgTextActive: o.colorFill,
|
3277
|
+
colorIcon: o.colorTextTertiary,
|
3278
|
+
colorIconHover: o.colorText,
|
3279
|
+
colorErrorOutline: Nt(o.colorErrorBg, o.colorBgContainer),
|
3280
|
+
colorWarningOutline: Nt(o.colorWarningBg, o.colorBgContainer),
|
3281
|
+
// Font
|
3282
|
+
fontSizeIcon: o.fontSizeSM,
|
3283
|
+
// Line
|
3284
|
+
lineWidthFocus: o.lineWidth * 3,
|
3285
|
+
// Control
|
3286
|
+
lineWidth: o.lineWidth,
|
3287
|
+
controlOutlineWidth: o.lineWidth * 2,
|
3288
|
+
// Checkbox size and expand icon size
|
3289
|
+
controlInteractiveSize: o.controlHeight / 2,
|
3290
|
+
controlItemBgHover: o.colorFillTertiary,
|
3291
|
+
controlItemBgActive: o.colorPrimaryBg,
|
3292
|
+
controlItemBgActiveHover: o.colorPrimaryBgHover,
|
3293
|
+
controlItemBgActiveDisabled: o.colorFill,
|
3294
|
+
controlTmpOutline: o.colorFillQuaternary,
|
3295
|
+
controlOutline: Nt(o.colorPrimaryBg, o.colorBgContainer),
|
3296
|
+
lineType: o.lineType,
|
3297
|
+
borderRadius: o.borderRadius,
|
3298
|
+
borderRadiusXS: o.borderRadiusXS,
|
3299
|
+
borderRadiusSM: o.borderRadiusSM,
|
3300
|
+
borderRadiusLG: o.borderRadiusLG,
|
3301
|
+
fontWeightStrong: 600,
|
3302
|
+
opacityLoading: 0.65,
|
3303
|
+
linkDecoration: "none",
|
3304
|
+
linkHoverDecoration: "none",
|
3305
|
+
linkFocusDecoration: "none",
|
3306
|
+
controlPaddingHorizontal: 12,
|
3307
|
+
controlPaddingHorizontalSM: 8,
|
3308
|
+
paddingXXS: o.sizeXXS,
|
3309
|
+
paddingXS: o.sizeXS,
|
3310
|
+
paddingSM: o.sizeSM,
|
3311
|
+
padding: o.size,
|
3312
|
+
paddingMD: o.sizeMD,
|
3313
|
+
paddingLG: o.sizeLG,
|
3314
|
+
paddingXL: o.sizeXL,
|
3315
|
+
paddingContentHorizontalLG: o.sizeLG,
|
3316
|
+
paddingContentVerticalLG: o.sizeMS,
|
3317
|
+
paddingContentHorizontal: o.sizeMS,
|
3318
|
+
paddingContentVertical: o.sizeSM,
|
3319
|
+
paddingContentHorizontalSM: o.size,
|
3320
|
+
paddingContentVerticalSM: o.sizeXS,
|
3321
|
+
marginXXS: o.sizeXXS,
|
3322
|
+
marginXS: o.sizeXS,
|
3323
|
+
marginSM: o.sizeSM,
|
3324
|
+
margin: o.size,
|
3325
|
+
marginMD: o.sizeMD,
|
3326
|
+
marginLG: o.sizeLG,
|
3327
|
+
marginXL: o.sizeXL,
|
3328
|
+
marginXXL: o.sizeXXL,
|
3329
|
+
boxShadow: `
|
3330
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
3331
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
3332
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
3333
|
+
`,
|
3334
|
+
boxShadowSecondary: `
|
3335
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
3336
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
3337
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
3338
|
+
`,
|
3339
|
+
boxShadowTertiary: `
|
3340
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
3341
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
3342
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
3343
|
+
`,
|
3344
|
+
screenXS: a,
|
3345
|
+
screenXSMin: a,
|
3346
|
+
screenXSMax: i - 1,
|
3347
|
+
screenSM: i,
|
3348
|
+
screenSMMin: i,
|
3349
|
+
screenSMMax: c - 1,
|
3350
|
+
screenMD: c,
|
3351
|
+
screenMDMin: c,
|
3352
|
+
screenMDMax: l - 1,
|
3353
|
+
screenLG: l,
|
3354
|
+
screenLGMin: l,
|
3355
|
+
screenLGMax: s - 1,
|
3356
|
+
screenXL: s,
|
3357
|
+
screenXLMin: s,
|
3358
|
+
screenXLMax: u - 1,
|
3359
|
+
screenXXL: u,
|
3360
|
+
screenXXLMin: u,
|
3361
|
+
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
3362
|
+
boxShadowCard: `
|
3363
|
+
0 1px 2px -2px ${new Q("rgba(0, 0, 0, 0.16)").toRgbString()},
|
3364
|
+
0 3px 6px 0 ${new Q("rgba(0, 0, 0, 0.12)").toRgbString()},
|
3365
|
+
0 5px 12px 4px ${new Q("rgba(0, 0, 0, 0.09)").toRgbString()}
|
3366
|
+
`,
|
3367
|
+
boxShadowDrawerRight: `
|
3368
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
3369
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
3370
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
3371
|
+
`,
|
3372
|
+
boxShadowDrawerLeft: `
|
3373
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
3374
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
3375
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
3376
|
+
`,
|
3377
|
+
boxShadowDrawerUp: `
|
3378
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
3379
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
3380
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
3381
|
+
`,
|
3382
|
+
boxShadowDrawerDown: `
|
3383
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
3384
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
3385
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
3386
|
+
`,
|
3387
|
+
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
3388
|
+
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
3389
|
+
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
3390
|
+
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
3391
|
+
}), n);
|
3392
|
+
}
|
3393
|
+
var no = function(e, t) {
|
3394
|
+
var r = {};
|
3395
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3396
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
3397
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
3398
|
+
return r;
|
3399
|
+
};
|
3400
|
+
const pa = {
|
3401
|
+
lineHeight: !0,
|
3402
|
+
lineHeightSM: !0,
|
3403
|
+
lineHeightLG: !0,
|
3404
|
+
lineHeightHeading1: !0,
|
3405
|
+
lineHeightHeading2: !0,
|
3406
|
+
lineHeightHeading3: !0,
|
3407
|
+
lineHeightHeading4: !0,
|
3408
|
+
lineHeightHeading5: !0,
|
3409
|
+
opacityLoading: !0,
|
3410
|
+
fontWeightStrong: !0,
|
3411
|
+
zIndexPopupBase: !0,
|
3412
|
+
zIndexBase: !0,
|
3413
|
+
opacityImage: !0
|
3414
|
+
}, pl = {
|
3415
|
+
size: !0,
|
3416
|
+
sizeSM: !0,
|
3417
|
+
sizeLG: !0,
|
3418
|
+
sizeMD: !0,
|
3419
|
+
sizeXS: !0,
|
3420
|
+
sizeXXS: !0,
|
3421
|
+
sizeMS: !0,
|
3422
|
+
sizeXL: !0,
|
3423
|
+
sizeXXL: !0,
|
3424
|
+
sizeUnit: !0,
|
3425
|
+
sizeStep: !0,
|
3426
|
+
motionBase: !0,
|
3427
|
+
motionUnit: !0
|
3428
|
+
}, hl = {
|
3429
|
+
screenXS: !0,
|
3430
|
+
screenXSMin: !0,
|
3431
|
+
screenXSMax: !0,
|
3432
|
+
screenSM: !0,
|
3433
|
+
screenSMMin: !0,
|
3434
|
+
screenSMMax: !0,
|
3435
|
+
screenMD: !0,
|
3436
|
+
screenMDMin: !0,
|
3437
|
+
screenMDMax: !0,
|
3438
|
+
screenLG: !0,
|
3439
|
+
screenLGMin: !0,
|
3440
|
+
screenLGMax: !0,
|
3441
|
+
screenXL: !0,
|
3442
|
+
screenXLMin: !0,
|
3443
|
+
screenXLMax: !0,
|
3444
|
+
screenXXL: !0,
|
3445
|
+
screenXXLMin: !0
|
3446
|
+
}, ha = (e, t, r) => {
|
3447
|
+
const n = r.getDerivativeToken(e), {
|
3448
|
+
override: o
|
3449
|
+
} = t, a = no(t, ["override"]);
|
3450
|
+
let i = Object.assign(Object.assign({}, n), {
|
3451
|
+
override: o
|
3452
|
+
});
|
3453
|
+
return i = ga(i), a && Object.entries(a).forEach((c) => {
|
3454
|
+
let [l, s] = c;
|
3455
|
+
const {
|
3456
|
+
theme: u
|
3457
|
+
} = s, d = no(s, ["theme"]);
|
3458
|
+
let f = d;
|
3459
|
+
u && (f = ha(Object.assign(Object.assign({}, i), d), {
|
3460
|
+
override: d
|
3461
|
+
}, u)), i[l] = f;
|
3462
|
+
}), i;
|
3463
|
+
};
|
3464
|
+
function vn() {
|
3465
|
+
const {
|
3466
|
+
token: e,
|
3467
|
+
hashed: t,
|
3468
|
+
theme: r,
|
3469
|
+
override: n,
|
3470
|
+
cssVar: o
|
3471
|
+
} = Ee.useContext(sa), a = `${vl}-${t || ""}`, i = r || ia, [c, l, s] = Hs(i, [ht, e], {
|
3472
|
+
salt: a,
|
3473
|
+
override: n,
|
3474
|
+
getComputedToken: ha,
|
3475
|
+
// formatToken will not be consumed after 1.15.0 with getComputedToken.
|
3476
|
+
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
|
3477
|
+
formatToken: ga,
|
3478
|
+
cssVar: o && {
|
3479
|
+
prefix: o.prefix,
|
3480
|
+
key: o.key,
|
3481
|
+
unitless: pa,
|
3482
|
+
ignore: pl,
|
3483
|
+
preserve: hl
|
3484
|
+
}
|
3485
|
+
});
|
3486
|
+
return [i, s, t ? l : "", c, o];
|
3487
|
+
}
|
3488
|
+
const ml = () => ({
|
3489
|
+
display: "inline-flex",
|
3490
|
+
alignItems: "center",
|
3491
|
+
color: "inherit",
|
3492
|
+
fontStyle: "normal",
|
3493
|
+
lineHeight: 0,
|
3494
|
+
textAlign: "center",
|
3495
|
+
textTransform: "none",
|
3496
|
+
// for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
3497
|
+
verticalAlign: "-0.125em",
|
3498
|
+
textRendering: "optimizeLegibility",
|
3499
|
+
"-webkit-font-smoothing": "antialiased",
|
3500
|
+
"-moz-osx-font-smoothing": "grayscale",
|
3501
|
+
"> *": {
|
3502
|
+
lineHeight: 1
|
3503
|
+
},
|
3504
|
+
svg: {
|
3505
|
+
display: "inline-block"
|
3506
|
+
}
|
3507
|
+
}), yl = (e) => ({
|
3508
|
+
a: {
|
3509
|
+
color: e.colorLink,
|
3510
|
+
textDecoration: e.linkDecoration,
|
3511
|
+
backgroundColor: "transparent",
|
3512
|
+
// remove the gray background on active links in IE 10.
|
3513
|
+
outline: "none",
|
3514
|
+
cursor: "pointer",
|
3515
|
+
transition: `color ${e.motionDurationSlow}`,
|
3516
|
+
"-webkit-text-decoration-skip": "objects",
|
3517
|
+
// remove gaps in links underline in iOS 8+ and Safari 8+.
|
3518
|
+
"&:hover": {
|
3519
|
+
color: e.colorLinkHover
|
3520
|
+
},
|
3521
|
+
"&:active": {
|
3522
|
+
color: e.colorLinkActive
|
3523
|
+
},
|
3524
|
+
"&:active, &:hover": {
|
3525
|
+
textDecoration: e.linkHoverDecoration,
|
3526
|
+
outline: 0
|
3527
|
+
},
|
3528
|
+
// https://github.com/ant-design/ant-design/issues/22503
|
3529
|
+
"&:focus": {
|
3530
|
+
textDecoration: e.linkFocusDecoration,
|
3531
|
+
outline: 0
|
3532
|
+
},
|
3533
|
+
"&[disabled]": {
|
3534
|
+
color: e.colorTextDisabled,
|
3535
|
+
cursor: "not-allowed"
|
3536
|
+
}
|
3537
|
+
}
|
3538
|
+
}), bl = (e, t, r, n) => {
|
3539
|
+
const o = `[class^="${t}"], [class*=" ${t}"]`, a = r ? `.${r}` : o, i = {
|
3540
|
+
boxSizing: "border-box",
|
3541
|
+
"&::before, &::after": {
|
3542
|
+
boxSizing: "border-box"
|
3543
|
+
}
|
3544
|
+
};
|
3545
|
+
let c = {};
|
3546
|
+
return n !== !1 && (c = {
|
3547
|
+
fontFamily: e.fontFamily,
|
3548
|
+
fontSize: e.fontSize
|
3549
|
+
}), {
|
3550
|
+
[a]: Object.assign(Object.assign(Object.assign({}, c), i), {
|
3551
|
+
[o]: i
|
3552
|
+
})
|
3553
|
+
};
|
3554
|
+
}, ma = (e) => ({
|
3555
|
+
[`.${e}`]: Object.assign(Object.assign({}, ml()), {
|
3556
|
+
[`.${e} .${e}-icon`]: {
|
3557
|
+
display: "block"
|
3558
|
+
}
|
3559
|
+
})
|
3560
|
+
}), {
|
3561
|
+
genStyleHooks: ya
|
3562
|
+
} = dl({
|
3563
|
+
usePrefix: () => {
|
3564
|
+
const {
|
3565
|
+
getPrefixCls: e,
|
3566
|
+
iconPrefixCls: t
|
3567
|
+
} = He(_e);
|
3568
|
+
return {
|
3569
|
+
rootPrefixCls: e(),
|
3570
|
+
iconPrefixCls: t
|
3571
|
+
};
|
3572
|
+
},
|
3573
|
+
useToken: () => {
|
3574
|
+
const [e, t, r, n, o] = vn();
|
3575
|
+
return {
|
3576
|
+
theme: e,
|
3577
|
+
realToken: t,
|
3578
|
+
hashId: r,
|
3579
|
+
token: n,
|
3580
|
+
cssVar: o
|
3581
|
+
};
|
3582
|
+
},
|
3583
|
+
useCSP: () => {
|
3584
|
+
const {
|
3585
|
+
csp: e
|
3586
|
+
} = He(_e);
|
3587
|
+
return e ?? {};
|
3588
|
+
},
|
3589
|
+
getResetStyles: (e, t) => {
|
3590
|
+
var r;
|
3591
|
+
const n = yl(e);
|
3592
|
+
return [n, {
|
3593
|
+
"&": n
|
3594
|
+
}, ma((r = t == null ? void 0 : t.prefix.iconPrefixCls) !== null && r !== void 0 ? r : dn)];
|
3595
|
+
},
|
3596
|
+
getCommonStyle: bl,
|
3597
|
+
getCompUnitless: () => pa
|
3598
|
+
}), Sl = (e, t) => {
|
3599
|
+
const [r, n] = vn();
|
3600
|
+
return Mr({
|
3601
|
+
token: n,
|
3602
|
+
hashId: "",
|
3603
|
+
path: ["ant-design-icons", e],
|
3604
|
+
nonce: () => t == null ? void 0 : t.nonce,
|
3605
|
+
layer: {
|
3606
|
+
name: "antd"
|
3607
|
+
}
|
3608
|
+
}, () => [ma(e)]);
|
3609
|
+
}, xl = Object.assign({}, g), {
|
3610
|
+
useId: oo
|
3611
|
+
} = xl, Cl = () => "", El = typeof oo > "u" ? Cl : oo;
|
3612
|
+
function Tl(e, t, r) {
|
3613
|
+
var n, o;
|
3614
|
+
const a = er("ConfigProvider"), i = e || {}, c = i.inherit === !1 || !t ? Object.assign(Object.assign({}, Xr), {
|
3615
|
+
hashed: (n = t == null ? void 0 : t.hashed) !== null && n !== void 0 ? n : Xr.hashed,
|
3616
|
+
cssVar: t == null ? void 0 : t.cssVar
|
3617
|
+
}) : t, l = El();
|
3618
|
+
if (process.env.NODE_ENV !== "production") {
|
3619
|
+
const s = i.cssVar || c.cssVar, u = !!(typeof i.cssVar == "object" && (!((o = i.cssVar) === null || o === void 0) && o.key) || l);
|
3620
|
+
process.env.NODE_ENV !== "production" && a(!s || u, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.");
|
3621
|
+
}
|
3622
|
+
return Mo(() => {
|
3623
|
+
var s, u;
|
3624
|
+
if (!e)
|
3625
|
+
return t;
|
3626
|
+
const d = Object.assign({}, c.components);
|
3627
|
+
Object.keys(e.components || {}).forEach((m) => {
|
3628
|
+
d[m] = Object.assign(Object.assign({}, d[m]), e.components[m]);
|
3629
|
+
});
|
3630
|
+
const f = `css-var-${l.replace(/:/g, "")}`, h = ((s = i.cssVar) !== null && s !== void 0 ? s : c.cssVar) && Object.assign(Object.assign(Object.assign({
|
3631
|
+
prefix: r == null ? void 0 : r.prefixCls
|
3632
|
+
}, typeof c.cssVar == "object" ? c.cssVar : {}), typeof i.cssVar == "object" ? i.cssVar : {}), {
|
3633
|
+
key: typeof i.cssVar == "object" && ((u = i.cssVar) === null || u === void 0 ? void 0 : u.key) || f
|
3634
|
+
});
|
3635
|
+
return Object.assign(Object.assign(Object.assign({}, c), i), {
|
3636
|
+
token: Object.assign(Object.assign({}, c.token), i.token),
|
3637
|
+
components: d,
|
3638
|
+
cssVar: h
|
3639
|
+
});
|
3640
|
+
}, [i, c], (s, u) => s.some((d, f) => {
|
3641
|
+
const h = u[f];
|
3642
|
+
return !cs(d, h, !0);
|
3643
|
+
}));
|
3644
|
+
}
|
3645
|
+
function ao(e) {
|
3646
|
+
return e instanceof HTMLElement || e instanceof SVGElement;
|
3647
|
+
}
|
3648
|
+
function _l(e) {
|
3649
|
+
return e && F(e) === "object" && ao(e.nativeElement) ? e.nativeElement : ao(e) ? e : null;
|
3650
|
+
}
|
3651
|
+
function Ol(e) {
|
3652
|
+
var t = _l(e);
|
3653
|
+
if (t)
|
3654
|
+
return t;
|
3655
|
+
if (e instanceof Ee.Component) {
|
3656
|
+
var r;
|
3657
|
+
return (r = Tn.findDOMNode) === null || r === void 0 ? void 0 : r.call(Tn, e);
|
3658
|
+
}
|
3659
|
+
return null;
|
3660
|
+
}
|
3661
|
+
var wl = ["children"], ba = /* @__PURE__ */ g.createContext({});
|
3662
|
+
function Pl(e) {
|
3663
|
+
var t = e.children, r = xr(e, wl);
|
3664
|
+
return /* @__PURE__ */ g.createElement(ba.Provider, {
|
3665
|
+
value: r
|
3666
|
+
}, t);
|
3667
|
+
}
|
3668
|
+
var kl = /* @__PURE__ */ function(e) {
|
3669
|
+
Qt(r, e);
|
3670
|
+
var t = qt(r);
|
3671
|
+
function r() {
|
3672
|
+
return ke(this, r), t.apply(this, arguments);
|
3673
|
+
}
|
3674
|
+
return Me(r, [{
|
3675
|
+
key: "render",
|
3676
|
+
value: function() {
|
3677
|
+
return this.props.children;
|
3678
|
+
}
|
3679
|
+
}]), r;
|
3680
|
+
}(g.Component);
|
3681
|
+
function Ml(e) {
|
3682
|
+
var t = g.useReducer(function(c) {
|
3683
|
+
return c + 1;
|
3684
|
+
}, 0), r = R(t, 2), n = r[1], o = g.useRef(e), a = Kr(function() {
|
3685
|
+
return o.current;
|
3686
|
+
}), i = Kr(function(c) {
|
3687
|
+
o.current = typeof c == "function" ? c(o.current) : c, n();
|
3688
|
+
});
|
3689
|
+
return [a, i];
|
3690
|
+
}
|
3691
|
+
var je = "none", $t = "appear", Rt = "enter", Lt = "leave", io = "none", pe = "prepare", Qe = "start", qe = "active", gn = "end", Sa = "prepared";
|
3692
|
+
function so(e, t) {
|
3693
|
+
var r = {};
|
3694
|
+
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;
|
3695
|
+
}
|
3696
|
+
function Al(e, t) {
|
3697
|
+
var r = {
|
3698
|
+
animationend: so("Animation", "AnimationEnd"),
|
3699
|
+
transitionend: so("Transition", "TransitionEnd")
|
3700
|
+
};
|
3701
|
+
return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
|
3702
|
+
}
|
3703
|
+
var jl = Al(Pe(), typeof window < "u" ? window : {}), xa = {};
|
3704
|
+
if (Pe()) {
|
3705
|
+
var Nl = document.createElement("div");
|
3706
|
+
xa = Nl.style;
|
3707
|
+
}
|
3708
|
+
var It = {};
|
3709
|
+
function Ca(e) {
|
3710
|
+
if (It[e])
|
3711
|
+
return It[e];
|
3712
|
+
var t = jl[e];
|
3713
|
+
if (t)
|
3714
|
+
for (var r = Object.keys(t), n = r.length, o = 0; o < n; o += 1) {
|
3715
|
+
var a = r[o];
|
3716
|
+
if (Object.prototype.hasOwnProperty.call(t, a) && a in xa)
|
3717
|
+
return It[e] = t[a], It[e];
|
3718
|
+
}
|
3719
|
+
return "";
|
3720
|
+
}
|
3721
|
+
var Ea = Ca("animationend"), Ta = Ca("transitionend"), _a = !!(Ea && Ta), co = Ea || "animationend", lo = Ta || "transitionend";
|
3722
|
+
function uo(e, t) {
|
3723
|
+
if (!e) return null;
|
3724
|
+
if (F(e) === "object") {
|
3725
|
+
var r = t.replace(/-\w/g, function(n) {
|
3726
|
+
return n[1].toUpperCase();
|
3727
|
+
});
|
3728
|
+
return e[r];
|
3729
|
+
}
|
3730
|
+
return "".concat(e, "-").concat(t);
|
3731
|
+
}
|
3732
|
+
const $l = function(e) {
|
3733
|
+
var t = $e();
|
3734
|
+
function r(o) {
|
3735
|
+
o && (o.removeEventListener(lo, e), o.removeEventListener(co, e));
|
3736
|
+
}
|
3737
|
+
function n(o) {
|
3738
|
+
t.current && t.current !== o && r(t.current), o && o !== t.current && (o.addEventListener(lo, e), o.addEventListener(co, e), t.current = o);
|
3739
|
+
}
|
3740
|
+
return g.useEffect(function() {
|
3741
|
+
return function() {
|
3742
|
+
r(t.current);
|
3743
|
+
};
|
3744
|
+
}, []), [n, r];
|
3745
|
+
};
|
3746
|
+
var Oa = Pe() ? ji : Ie, wa = function(t) {
|
3747
|
+
return +setTimeout(t, 16);
|
3748
|
+
}, Pa = function(t) {
|
3749
|
+
return clearTimeout(t);
|
3750
|
+
};
|
3751
|
+
typeof window < "u" && "requestAnimationFrame" in window && (wa = function(t) {
|
3752
|
+
return window.requestAnimationFrame(t);
|
3753
|
+
}, Pa = function(t) {
|
3754
|
+
return window.cancelAnimationFrame(t);
|
3755
|
+
});
|
3756
|
+
var fo = 0, rr = /* @__PURE__ */ new Map();
|
3757
|
+
function ka(e) {
|
3758
|
+
rr.delete(e);
|
3759
|
+
}
|
3760
|
+
var Kt = function(t) {
|
3761
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
3762
|
+
fo += 1;
|
3763
|
+
var n = fo;
|
3764
|
+
function o(a) {
|
3765
|
+
if (a === 0)
|
3766
|
+
ka(n), t();
|
3767
|
+
else {
|
3768
|
+
var i = wa(function() {
|
3769
|
+
o(a - 1);
|
3770
|
+
});
|
3771
|
+
rr.set(n, i);
|
3772
|
+
}
|
3773
|
+
}
|
3774
|
+
return o(r), n;
|
3775
|
+
};
|
3776
|
+
Kt.cancel = function(e) {
|
3777
|
+
var t = rr.get(e);
|
3778
|
+
return ka(e), Pa(t);
|
3779
|
+
};
|
3780
|
+
process.env.NODE_ENV !== "production" && (Kt.ids = function() {
|
3781
|
+
return rr;
|
3782
|
+
});
|
3783
|
+
const Rl = function() {
|
3784
|
+
var e = g.useRef(null);
|
3785
|
+
function t() {
|
3786
|
+
Kt.cancel(e.current);
|
3787
|
+
}
|
3788
|
+
function r(n) {
|
3789
|
+
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
3790
|
+
t();
|
3791
|
+
var a = Kt(function() {
|
3792
|
+
o <= 1 ? n({
|
3793
|
+
isCanceled: function() {
|
3794
|
+
return a !== e.current;
|
3795
|
+
}
|
3796
|
+
}) : r(n, o - 1);
|
3797
|
+
});
|
3798
|
+
e.current = a;
|
3799
|
+
}
|
3800
|
+
return g.useEffect(function() {
|
3801
|
+
return function() {
|
3802
|
+
t();
|
3803
|
+
};
|
3804
|
+
}, []), [r, t];
|
3805
|
+
};
|
3806
|
+
var Ll = [pe, Qe, qe, gn], Il = [pe, Sa], Ma = !1, Hl = !0;
|
3807
|
+
function Aa(e) {
|
3808
|
+
return e === qe || e === gn;
|
3809
|
+
}
|
3810
|
+
const Dl = function(e, t, r) {
|
3811
|
+
var n = Yr(io), o = R(n, 2), a = o[0], i = o[1], c = Rl(), l = R(c, 2), s = l[0], u = l[1];
|
3812
|
+
function d() {
|
3813
|
+
i(pe, !0);
|
3814
|
+
}
|
3815
|
+
var f = t ? Il : Ll;
|
3816
|
+
return Oa(function() {
|
3817
|
+
if (a !== io && a !== gn) {
|
3818
|
+
var h = f.indexOf(a), m = f[h + 1], p = r(a);
|
3819
|
+
p === Ma ? i(m, !0) : m && s(function(v) {
|
3820
|
+
function x() {
|
3821
|
+
v.isCanceled() || i(m, !0);
|
3822
|
+
}
|
3823
|
+
p === !0 ? x() : Promise.resolve(p).then(x);
|
3824
|
+
});
|
3825
|
+
}
|
3826
|
+
}, [e, a]), g.useEffect(function() {
|
3827
|
+
return function() {
|
3828
|
+
u();
|
3829
|
+
};
|
3830
|
+
}, []), [d, a];
|
3831
|
+
};
|
3832
|
+
function Vl(e, t, r, n) {
|
3833
|
+
var o = n.motionEnter, a = o === void 0 ? !0 : o, i = n.motionAppear, c = i === void 0 ? !0 : i, l = n.motionLeave, s = l === void 0 ? !0 : l, u = n.motionDeadline, d = n.motionLeaveImmediately, f = n.onAppearPrepare, h = n.onEnterPrepare, m = n.onLeavePrepare, p = n.onAppearStart, v = n.onEnterStart, x = n.onLeaveStart, b = n.onAppearActive, C = n.onEnterActive, T = n.onLeaveActive, y = n.onAppearEnd, E = n.onEnterEnd, S = n.onLeaveEnd, _ = n.onVisibleChanged, j = Yr(), M = R(j, 2), I = M[0], L = M[1], $ = Ml(je), A = R($, 2), N = A[0], z = A[1], W = Yr(null), H = R(W, 2), X = H[0], G = H[1], K = N(), U = $e(!1), B = $e(null);
|
3834
|
+
function q() {
|
3835
|
+
return r();
|
3836
|
+
}
|
3837
|
+
var ce = $e(!1);
|
3838
|
+
function ye() {
|
3839
|
+
z(je), G(null, !0);
|
3840
|
+
}
|
3841
|
+
var ae = Kr(function(oe) {
|
3842
|
+
var ee = N();
|
3843
|
+
if (ee !== je) {
|
3844
|
+
var fe = q();
|
3845
|
+
if (!(oe && !oe.deadline && oe.target !== fe)) {
|
3846
|
+
var Xe = ce.current, Ge;
|
3847
|
+
ee === $t && Xe ? Ge = y == null ? void 0 : y(fe, oe) : ee === Rt && Xe ? Ge = E == null ? void 0 : E(fe, oe) : ee === Lt && Xe && (Ge = S == null ? void 0 : S(fe, oe)), Xe && Ge !== !1 && ye();
|
3848
|
+
}
|
3849
|
+
}
|
3850
|
+
}), Y = $l(ae), ie = R(Y, 1), be = ie[0], ue = function(ee) {
|
3851
|
+
switch (ee) {
|
3852
|
+
case $t:
|
3853
|
+
return P(P(P({}, pe, f), Qe, p), qe, b);
|
3854
|
+
case Rt:
|
3855
|
+
return P(P(P({}, pe, h), Qe, v), qe, C);
|
3856
|
+
case Lt:
|
3857
|
+
return P(P(P({}, pe, m), Qe, x), qe, T);
|
3858
|
+
default:
|
3859
|
+
return {};
|
3860
|
+
}
|
3861
|
+
}, ge = g.useMemo(function() {
|
3862
|
+
return ue(K);
|
3863
|
+
}, [K]), Ae = Dl(K, !e, function(oe) {
|
3864
|
+
if (oe === pe) {
|
3865
|
+
var ee = ge[pe];
|
3866
|
+
return ee ? ee(q()) : Ma;
|
3867
|
+
}
|
3868
|
+
if (se in ge) {
|
3869
|
+
var fe;
|
3870
|
+
G(((fe = ge[se]) === null || fe === void 0 ? void 0 : fe.call(ge, q(), null)) || null);
|
3871
|
+
}
|
3872
|
+
return se === qe && K !== je && (be(q()), u > 0 && (clearTimeout(B.current), B.current = setTimeout(function() {
|
3873
|
+
ae({
|
3874
|
+
deadline: !0
|
3875
|
+
});
|
3876
|
+
}, u))), se === Sa && ye(), Hl;
|
3877
|
+
}), O = R(Ae, 2), De = O[0], se = O[1], We = Aa(se);
|
3878
|
+
ce.current = We;
|
3879
|
+
var Et = $e(null);
|
3880
|
+
Oa(function() {
|
3881
|
+
if (!(U.current && Et.current === t)) {
|
3882
|
+
L(t);
|
3883
|
+
var oe = U.current;
|
3884
|
+
U.current = !0;
|
3885
|
+
var ee;
|
3886
|
+
!oe && t && c && (ee = $t), oe && t && a && (ee = Rt), (oe && !t && s || !oe && d && !t && s) && (ee = Lt);
|
3887
|
+
var fe = ue(ee);
|
3888
|
+
ee && (e || fe[pe]) ? (z(ee), De()) : z(je), Et.current = t;
|
3889
|
+
}
|
3890
|
+
}, [t]), Ie(function() {
|
3891
|
+
// Cancel appear
|
3892
|
+
(K === $t && !c || // Cancel enter
|
3893
|
+
K === Rt && !a || // Cancel leave
|
3894
|
+
K === Lt && !s) && z(je);
|
3895
|
+
}, [c, a, s]), Ie(function() {
|
3896
|
+
return function() {
|
3897
|
+
U.current = !1, clearTimeout(B.current);
|
3898
|
+
};
|
3899
|
+
}, []);
|
3900
|
+
var st = g.useRef(!1);
|
3901
|
+
Ie(function() {
|
3902
|
+
I && (st.current = !0), I !== void 0 && K === je && ((st.current || I) && (_ == null || _(I)), st.current = !0);
|
3903
|
+
}, [I, K]);
|
3904
|
+
var ct = X;
|
3905
|
+
return ge[pe] && se === Qe && (ct = k({
|
3906
|
+
transition: "none"
|
3907
|
+
}, ct)), [K, se, ct, I ?? t];
|
3908
|
+
}
|
3909
|
+
function zl(e) {
|
3910
|
+
var t = e;
|
3911
|
+
F(e) === "object" && (t = e.transitionSupport);
|
3912
|
+
function r(o, a) {
|
3913
|
+
return !!(o.motionName && t && a !== !1);
|
3914
|
+
}
|
3915
|
+
var n = /* @__PURE__ */ g.forwardRef(function(o, a) {
|
3916
|
+
var i = o.visible, c = i === void 0 ? !0 : i, l = o.removeOnLeave, s = l === void 0 ? !0 : l, u = o.forceRender, d = o.children, f = o.motionName, h = o.leavedClassName, m = o.eventProps, p = g.useContext(ba), v = p.motion, x = r(o, v), b = $e(), C = $e();
|
3917
|
+
function T() {
|
3918
|
+
try {
|
3919
|
+
return b.current instanceof HTMLElement ? b.current : Ol(C.current);
|
3920
|
+
} catch {
|
3921
|
+
return null;
|
3922
|
+
}
|
3923
|
+
}
|
3924
|
+
var y = Vl(x, c, T, o), E = R(y, 4), S = E[0], _ = E[1], j = E[2], M = E[3], I = g.useRef(M);
|
3925
|
+
M && (I.current = !0);
|
3926
|
+
var L = g.useCallback(function(H) {
|
3927
|
+
b.current = H, rl(a, H);
|
3928
|
+
}, [a]), $, A = k(k({}, m), {}, {
|
3929
|
+
visible: c
|
3930
|
+
});
|
3931
|
+
if (!d)
|
3932
|
+
$ = null;
|
3933
|
+
else if (S === je)
|
3934
|
+
M ? $ = d(k({}, A), L) : !s && I.current && h ? $ = d(k(k({}, A), {}, {
|
3935
|
+
className: h
|
3936
|
+
}), L) : u || !s && !h ? $ = d(k(k({}, A), {}, {
|
3937
|
+
style: {
|
3938
|
+
display: "none"
|
3939
|
+
}
|
3940
|
+
}), L) : $ = null;
|
3941
|
+
else {
|
3942
|
+
var N;
|
3943
|
+
_ === pe ? N = "prepare" : Aa(_) ? N = "active" : _ === Qe && (N = "start");
|
3944
|
+
var z = uo(f, "".concat(S, "-").concat(N));
|
3945
|
+
$ = d(k(k({}, A), {}, {
|
3946
|
+
className: et(uo(f, S), P(P({}, z, z && N), f, typeof f == "string")),
|
3947
|
+
style: j
|
3948
|
+
}), L);
|
3949
|
+
}
|
3950
|
+
if (/* @__PURE__ */ g.isValidElement($) && nl($)) {
|
3951
|
+
var W = ol($);
|
3952
|
+
W || ($ = /* @__PURE__ */ g.cloneElement($, {
|
3953
|
+
ref: L
|
3954
|
+
}));
|
3955
|
+
}
|
3956
|
+
return /* @__PURE__ */ g.createElement(kl, {
|
3957
|
+
ref: C
|
3958
|
+
}, $);
|
3959
|
+
});
|
3960
|
+
return n.displayName = "CSSMotion", n;
|
3961
|
+
}
|
3962
|
+
const Bl = zl(_a);
|
3963
|
+
var qr = "add", Zr = "keep", Jr = "remove", hr = "removed";
|
3964
|
+
function Fl(e) {
|
3965
|
+
var t;
|
3966
|
+
return e && F(e) === "object" && "key" in e ? t = e : t = {
|
3967
|
+
key: e
|
3968
|
+
}, k(k({}, t), {}, {
|
3969
|
+
key: String(t.key)
|
3970
|
+
});
|
3971
|
+
}
|
3972
|
+
function en() {
|
3973
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
3974
|
+
return e.map(Fl);
|
3975
|
+
}
|
3976
|
+
function Wl() {
|
3977
|
+
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 = en(e), i = en(t);
|
3978
|
+
a.forEach(function(s) {
|
3979
|
+
for (var u = !1, d = n; d < o; d += 1) {
|
3980
|
+
var f = i[d];
|
3981
|
+
if (f.key === s.key) {
|
3982
|
+
n < d && (r = r.concat(i.slice(n, d).map(function(h) {
|
3983
|
+
return k(k({}, h), {}, {
|
3984
|
+
status: qr
|
3985
|
+
});
|
3986
|
+
})), n = d), r.push(k(k({}, f), {}, {
|
3987
|
+
status: Zr
|
3988
|
+
})), n += 1, u = !0;
|
3989
|
+
break;
|
3990
|
+
}
|
3991
|
+
}
|
3992
|
+
u || r.push(k(k({}, s), {}, {
|
3993
|
+
status: Jr
|
3994
|
+
}));
|
3995
|
+
}), n < o && (r = r.concat(i.slice(n).map(function(s) {
|
3996
|
+
return k(k({}, s), {}, {
|
3997
|
+
status: qr
|
3998
|
+
});
|
3999
|
+
})));
|
4000
|
+
var c = {};
|
4001
|
+
r.forEach(function(s) {
|
4002
|
+
var u = s.key;
|
4003
|
+
c[u] = (c[u] || 0) + 1;
|
4004
|
+
});
|
4005
|
+
var l = Object.keys(c).filter(function(s) {
|
4006
|
+
return c[s] > 1;
|
4007
|
+
});
|
4008
|
+
return l.forEach(function(s) {
|
4009
|
+
r = r.filter(function(u) {
|
4010
|
+
var d = u.key, f = u.status;
|
4011
|
+
return d !== s || f !== Jr;
|
4012
|
+
}), r.forEach(function(u) {
|
4013
|
+
u.key === s && (u.status = Zr);
|
4014
|
+
});
|
4015
|
+
}), r;
|
4016
|
+
}
|
4017
|
+
var Xl = ["component", "children", "onVisibleChanged", "onAllRemoved"], Gl = ["status"], Ul = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
4018
|
+
function Kl(e) {
|
4019
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Bl, r = /* @__PURE__ */ function(n) {
|
4020
|
+
Qt(a, n);
|
4021
|
+
var o = qt(a);
|
4022
|
+
function a() {
|
4023
|
+
var i;
|
4024
|
+
ke(this, a);
|
4025
|
+
for (var c = arguments.length, l = new Array(c), s = 0; s < c; s++)
|
4026
|
+
l[s] = arguments[s];
|
4027
|
+
return i = o.call.apply(o, [this].concat(l)), P(ze(i), "state", {
|
4028
|
+
keyEntities: []
|
4029
|
+
}), P(ze(i), "removeKey", function(u) {
|
4030
|
+
i.setState(function(d) {
|
4031
|
+
var f = d.keyEntities.map(function(h) {
|
4032
|
+
return h.key !== u ? h : k(k({}, h), {}, {
|
4033
|
+
status: hr
|
4034
|
+
});
|
4035
|
+
});
|
4036
|
+
return {
|
4037
|
+
keyEntities: f
|
4038
|
+
};
|
4039
|
+
}, function() {
|
4040
|
+
var d = i.state.keyEntities, f = d.filter(function(h) {
|
4041
|
+
var m = h.status;
|
4042
|
+
return m !== hr;
|
4043
|
+
}).length;
|
4044
|
+
f === 0 && i.props.onAllRemoved && i.props.onAllRemoved();
|
4045
|
+
});
|
4046
|
+
}), i;
|
4047
|
+
}
|
4048
|
+
return Me(a, [{
|
4049
|
+
key: "render",
|
4050
|
+
value: function() {
|
4051
|
+
var c = this, l = this.state.keyEntities, s = this.props, u = s.component, d = s.children, f = s.onVisibleChanged;
|
4052
|
+
s.onAllRemoved;
|
4053
|
+
var h = xr(s, Xl), m = u || g.Fragment, p = {};
|
4054
|
+
return Ul.forEach(function(v) {
|
4055
|
+
p[v] = h[v], delete h[v];
|
4056
|
+
}), delete h.keys, /* @__PURE__ */ g.createElement(m, h, l.map(function(v, x) {
|
4057
|
+
var b = v.status, C = xr(v, Gl), T = b === qr || b === Zr;
|
4058
|
+
return /* @__PURE__ */ g.createElement(t, Gt({}, p, {
|
4059
|
+
key: C.key,
|
4060
|
+
visible: T,
|
4061
|
+
eventProps: C,
|
4062
|
+
onVisibleChanged: function(E) {
|
4063
|
+
f == null || f(E, {
|
4064
|
+
key: C.key
|
4065
|
+
}), E || c.removeKey(C.key);
|
4066
|
+
}
|
4067
|
+
}), function(y, E) {
|
4068
|
+
return d(k(k({}, y), {}, {
|
4069
|
+
index: x
|
4070
|
+
}), E);
|
4071
|
+
});
|
4072
|
+
}));
|
4073
|
+
}
|
4074
|
+
}], [{
|
4075
|
+
key: "getDerivedStateFromProps",
|
4076
|
+
value: function(c, l) {
|
4077
|
+
var s = c.keys, u = l.keyEntities, d = en(s), f = Wl(u, d);
|
4078
|
+
return {
|
4079
|
+
keyEntities: f.filter(function(h) {
|
4080
|
+
var m = u.find(function(p) {
|
4081
|
+
var v = p.key;
|
4082
|
+
return h.key === v;
|
4083
|
+
});
|
4084
|
+
return !(m && m.status === hr && h.status === Jr);
|
4085
|
+
})
|
4086
|
+
};
|
4087
|
+
}
|
4088
|
+
}]), a;
|
4089
|
+
}(g.Component);
|
4090
|
+
return P(r, "defaultProps", {
|
4091
|
+
component: "div"
|
4092
|
+
}), r;
|
4093
|
+
}
|
4094
|
+
Kl(_a);
|
4095
|
+
function Yl(e) {
|
4096
|
+
const {
|
4097
|
+
children: t
|
4098
|
+
} = e, [, r] = vn(), {
|
4099
|
+
motion: n
|
4100
|
+
} = r, o = g.useRef(!1);
|
4101
|
+
return o.current = o.current || n === !1, o.current ? /* @__PURE__ */ g.createElement(Pl, {
|
4102
|
+
motion: n
|
4103
|
+
}, t) : t;
|
4104
|
+
}
|
4105
|
+
const ja = /* @__PURE__ */ g.memo((e) => {
|
4106
|
+
let {
|
4107
|
+
dropdownMatchSelectWidth: t
|
4108
|
+
} = e;
|
4109
|
+
return er("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
|
4110
|
+
});
|
4111
|
+
process.env.NODE_ENV !== "production" && (ja.displayName = "PropWarning");
|
4112
|
+
const Ql = process.env.NODE_ENV !== "production" ? ja : () => null;
|
4113
|
+
var ql = function(e, t) {
|
4114
|
+
var r = {};
|
4115
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4116
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
4117
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
4118
|
+
return r;
|
4119
|
+
};
|
4120
|
+
let tn = !1;
|
4121
|
+
process.env.NODE_ENV;
|
4122
|
+
const Zl = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
|
4123
|
+
let Na;
|
4124
|
+
function Jl() {
|
4125
|
+
return Na || Gr;
|
4126
|
+
}
|
4127
|
+
function eu(e) {
|
4128
|
+
return Object.keys(e).some((t) => t.endsWith("Color"));
|
4129
|
+
}
|
4130
|
+
const tu = (e) => {
|
4131
|
+
const {
|
4132
|
+
prefixCls: t,
|
4133
|
+
iconPrefixCls: r,
|
4134
|
+
theme: n,
|
4135
|
+
holderRender: o
|
4136
|
+
} = e;
|
4137
|
+
t !== void 0 && (Na = t), n && eu(n) && (process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), zc(Jl(), n));
|
4138
|
+
}, ru = (e) => {
|
4139
|
+
const {
|
4140
|
+
children: t,
|
4141
|
+
csp: r,
|
4142
|
+
autoInsertSpaceInButton: n,
|
4143
|
+
alert: o,
|
4144
|
+
anchor: a,
|
4145
|
+
form: i,
|
4146
|
+
locale: c,
|
4147
|
+
componentSize: l,
|
4148
|
+
direction: s,
|
4149
|
+
space: u,
|
4150
|
+
splitter: d,
|
4151
|
+
virtual: f,
|
4152
|
+
dropdownMatchSelectWidth: h,
|
4153
|
+
popupMatchSelectWidth: m,
|
4154
|
+
popupOverflow: p,
|
4155
|
+
legacyLocale: v,
|
4156
|
+
parentContext: x,
|
4157
|
+
iconPrefixCls: b,
|
4158
|
+
theme: C,
|
4159
|
+
componentDisabled: T,
|
4160
|
+
segmented: y,
|
4161
|
+
statistic: E,
|
4162
|
+
spin: S,
|
4163
|
+
calendar: _,
|
4164
|
+
carousel: j,
|
4165
|
+
cascader: M,
|
4166
|
+
collapse: I,
|
4167
|
+
typography: L,
|
4168
|
+
checkbox: $,
|
4169
|
+
descriptions: A,
|
4170
|
+
divider: N,
|
4171
|
+
drawer: z,
|
4172
|
+
skeleton: W,
|
4173
|
+
steps: H,
|
4174
|
+
image: X,
|
4175
|
+
layout: G,
|
4176
|
+
list: K,
|
4177
|
+
mentions: U,
|
4178
|
+
modal: B,
|
4179
|
+
progress: q,
|
4180
|
+
result: ce,
|
4181
|
+
slider: ye,
|
4182
|
+
breadcrumb: ae,
|
4183
|
+
menu: Y,
|
4184
|
+
pagination: ie,
|
4185
|
+
input: be,
|
4186
|
+
textArea: ue,
|
4187
|
+
empty: ge,
|
4188
|
+
badge: Ae,
|
4189
|
+
radio: O,
|
4190
|
+
rate: De,
|
4191
|
+
switch: se,
|
4192
|
+
transfer: We,
|
4193
|
+
avatar: Et,
|
4194
|
+
message: st,
|
4195
|
+
tag: ct,
|
4196
|
+
table: oe,
|
4197
|
+
card: ee,
|
4198
|
+
tabs: fe,
|
4199
|
+
timeline: Xe,
|
4200
|
+
timePicker: Ge,
|
4201
|
+
upload: Xa,
|
4202
|
+
notification: Ga,
|
4203
|
+
tree: Ua,
|
4204
|
+
colorPicker: Ka,
|
4205
|
+
datePicker: Ya,
|
4206
|
+
rangePicker: Qa,
|
4207
|
+
flex: qa,
|
4208
|
+
wave: Za,
|
4209
|
+
dropdown: Ja,
|
4210
|
+
warning: ei,
|
4211
|
+
tour: ti,
|
4212
|
+
tooltip: ri,
|
4213
|
+
popover: ni,
|
4214
|
+
popconfirm: oi,
|
4215
|
+
floatButtonGroup: ai,
|
4216
|
+
variant: ii,
|
4217
|
+
inputNumber: si,
|
4218
|
+
treeSelect: ci
|
4219
|
+
} = e, mn = g.useCallback((Z, ne) => {
|
4220
|
+
const {
|
4221
|
+
prefixCls: Se
|
4222
|
+
} = e;
|
4223
|
+
if (ne)
|
4224
|
+
return ne;
|
4225
|
+
const xe = Se || x.getPrefixCls("");
|
4226
|
+
return Z ? `${xe}-${Z}` : xe;
|
4227
|
+
}, [x.getPrefixCls, e.prefixCls]), Tt = b || x.iconPrefixCls || dn, _t = r || x.csp;
|
4228
|
+
Sl(Tt, _t);
|
4229
|
+
const Ot = Tl(C, x.theme, {
|
4230
|
+
prefixCls: mn("")
|
4231
|
+
});
|
4232
|
+
process.env.NODE_ENV !== "production" && (tn = tn || !!Ot);
|
4233
|
+
const or = {
|
4234
|
+
csp: _t,
|
4235
|
+
autoInsertSpaceInButton: n,
|
4236
|
+
alert: o,
|
4237
|
+
anchor: a,
|
4238
|
+
locale: c || v,
|
4239
|
+
direction: s,
|
4240
|
+
space: u,
|
4241
|
+
splitter: d,
|
4242
|
+
virtual: f,
|
4243
|
+
popupMatchSelectWidth: m ?? h,
|
4244
|
+
popupOverflow: p,
|
4245
|
+
getPrefixCls: mn,
|
4246
|
+
iconPrefixCls: Tt,
|
4247
|
+
theme: Ot,
|
4248
|
+
segmented: y,
|
4249
|
+
statistic: E,
|
4250
|
+
spin: S,
|
4251
|
+
calendar: _,
|
4252
|
+
carousel: j,
|
4253
|
+
cascader: M,
|
4254
|
+
collapse: I,
|
4255
|
+
typography: L,
|
4256
|
+
checkbox: $,
|
4257
|
+
descriptions: A,
|
4258
|
+
divider: N,
|
4259
|
+
drawer: z,
|
4260
|
+
skeleton: W,
|
4261
|
+
steps: H,
|
4262
|
+
image: X,
|
4263
|
+
input: be,
|
4264
|
+
textArea: ue,
|
4265
|
+
layout: G,
|
4266
|
+
list: K,
|
4267
|
+
mentions: U,
|
4268
|
+
modal: B,
|
4269
|
+
progress: q,
|
4270
|
+
result: ce,
|
4271
|
+
slider: ye,
|
4272
|
+
breadcrumb: ae,
|
4273
|
+
menu: Y,
|
4274
|
+
pagination: ie,
|
4275
|
+
empty: ge,
|
4276
|
+
badge: Ae,
|
4277
|
+
radio: O,
|
4278
|
+
rate: De,
|
4279
|
+
switch: se,
|
4280
|
+
transfer: We,
|
4281
|
+
avatar: Et,
|
4282
|
+
message: st,
|
4283
|
+
tag: ct,
|
4284
|
+
table: oe,
|
4285
|
+
card: ee,
|
4286
|
+
tabs: fe,
|
4287
|
+
timeline: Xe,
|
4288
|
+
timePicker: Ge,
|
4289
|
+
upload: Xa,
|
4290
|
+
notification: Ga,
|
4291
|
+
tree: Ua,
|
4292
|
+
colorPicker: Ka,
|
4293
|
+
datePicker: Ya,
|
4294
|
+
rangePicker: Qa,
|
4295
|
+
flex: qa,
|
4296
|
+
wave: Za,
|
4297
|
+
dropdown: Ja,
|
4298
|
+
warning: ei,
|
4299
|
+
tour: ti,
|
4300
|
+
tooltip: ri,
|
4301
|
+
popover: ni,
|
4302
|
+
popconfirm: oi,
|
4303
|
+
floatButtonGroup: ai,
|
4304
|
+
variant: ii,
|
4305
|
+
inputNumber: si,
|
4306
|
+
treeSelect: ci
|
4307
|
+
};
|
4308
|
+
process.env.NODE_ENV !== "production" && er("ConfigProvider")(!("autoInsertSpaceInButton" in e), "deprecated", "`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");
|
4309
|
+
const Ue = Object.assign({}, x);
|
4310
|
+
Object.keys(or).forEach((Z) => {
|
4311
|
+
or[Z] !== void 0 && (Ue[Z] = or[Z]);
|
4312
|
+
}), Zl.forEach((Z) => {
|
4313
|
+
const ne = e[Z];
|
4314
|
+
ne && (Ue[Z] = ne);
|
4315
|
+
}), typeof n < "u" && (Ue.button = Object.assign({
|
4316
|
+
autoInsertSpace: n
|
4317
|
+
}, Ue.button));
|
4318
|
+
const Ke = Mo(() => Ue, Ue, (Z, ne) => {
|
4319
|
+
const Se = Object.keys(Z), xe = Object.keys(ne);
|
4320
|
+
return Se.length !== xe.length || Se.some((wt) => Z[wt] !== ne[wt]);
|
4321
|
+
}), {
|
4322
|
+
layer: yn
|
4323
|
+
} = g.useContext(xt), li = g.useMemo(() => ({
|
4324
|
+
prefixCls: Tt,
|
4325
|
+
csp: _t,
|
4326
|
+
layer: yn ? "antd" : void 0
|
4327
|
+
}), [Tt, _t, yn]);
|
4328
|
+
let re = /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(Ql, {
|
4329
|
+
dropdownMatchSelectWidth: h
|
4330
|
+
}), t);
|
4331
|
+
const bn = g.useMemo(() => {
|
4332
|
+
var Z, ne, Se, xe;
|
4333
|
+
return yc(((Z = tr.Form) === null || Z === void 0 ? void 0 : Z.defaultValidateMessages) || {}, ((Se = (ne = Ke.locale) === null || ne === void 0 ? void 0 : ne.Form) === null || Se === void 0 ? void 0 : Se.defaultValidateMessages) || {}, ((xe = Ke.form) === null || xe === void 0 ? void 0 : xe.validateMessages) || {}, (i == null ? void 0 : i.validateMessages) || {});
|
4334
|
+
}, [Ke, i == null ? void 0 : i.validateMessages]);
|
4335
|
+
Object.keys(bn).length > 0 && (re = /* @__PURE__ */ g.createElement(Sc.Provider, {
|
4336
|
+
value: bn
|
4337
|
+
}, re)), c && (re = /* @__PURE__ */ g.createElement(ra, {
|
4338
|
+
locale: c,
|
4339
|
+
_ANT_MARK__: ta
|
4340
|
+
}, re)), re = /* @__PURE__ */ g.createElement(hi.Provider, {
|
4341
|
+
value: li
|
4342
|
+
}, re), l && (re = /* @__PURE__ */ g.createElement(Fc, {
|
4343
|
+
size: l
|
4344
|
+
}, re)), re = /* @__PURE__ */ g.createElement(Yl, null, re);
|
4345
|
+
const ui = g.useMemo(() => {
|
4346
|
+
const Z = Ot || {}, {
|
4347
|
+
algorithm: ne,
|
4348
|
+
token: Se,
|
4349
|
+
components: xe,
|
4350
|
+
cssVar: wt
|
4351
|
+
} = Z, fi = ql(Z, ["algorithm", "token", "components", "cssVar"]), Sn = ne && (!Array.isArray(ne) || ne.length > 0) ? _r(ne) : ia, ar = {};
|
4352
|
+
Object.entries(xe || {}).forEach((di) => {
|
4353
|
+
let [vi, gi] = di;
|
4354
|
+
const Oe = Object.assign({}, gi);
|
4355
|
+
"algorithm" in Oe && (Oe.algorithm === !0 ? Oe.theme = Sn : (Array.isArray(Oe.algorithm) || typeof Oe.algorithm == "function") && (Oe.theme = _r(Oe.algorithm)), delete Oe.algorithm), ar[vi] = Oe;
|
4356
|
+
});
|
4357
|
+
const xn = Object.assign(Object.assign({}, ht), Se);
|
4358
|
+
return Object.assign(Object.assign({}, fi), {
|
4359
|
+
theme: Sn,
|
4360
|
+
token: xn,
|
4361
|
+
components: ar,
|
4362
|
+
override: Object.assign({
|
4363
|
+
override: xn
|
4364
|
+
}, ar),
|
4365
|
+
cssVar: wt
|
4366
|
+
});
|
4367
|
+
}, [Ot]);
|
4368
|
+
return C && (re = /* @__PURE__ */ g.createElement(sa.Provider, {
|
4369
|
+
value: ui
|
4370
|
+
}, re)), Ke.warning && (re = /* @__PURE__ */ g.createElement(Jo.Provider, {
|
4371
|
+
value: Ke.warning
|
4372
|
+
}, re)), T !== void 0 && (re = /* @__PURE__ */ g.createElement(Bc, {
|
4373
|
+
disabled: T
|
4374
|
+
}, re)), /* @__PURE__ */ g.createElement(_e.Provider, {
|
4375
|
+
value: Ke
|
4376
|
+
}, re);
|
4377
|
+
}, it = (e) => {
|
4378
|
+
const t = g.useContext(_e), r = g.useContext(ea);
|
4379
|
+
return /* @__PURE__ */ g.createElement(ru, Object.assign({
|
4380
|
+
parentContext: t,
|
4381
|
+
legacyLocale: r
|
4382
|
+
}, e));
|
4383
|
+
};
|
4384
|
+
it.ConfigContext = _e;
|
4385
|
+
it.SizeContext = mt;
|
4386
|
+
it.config = tu;
|
4387
|
+
it.useConfig = Wc;
|
4388
|
+
Object.defineProperty(it, "SizeContext", {
|
4389
|
+
get: () => (process.env.NODE_ENV !== "production" && at(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), mt)
|
4390
|
+
});
|
4391
|
+
process.env.NODE_ENV !== "production" && (it.displayName = "ConfigProvider");
|
4392
|
+
const $a = /* @__PURE__ */ g.createContext({
|
4393
|
+
siderHook: {
|
4394
|
+
addSider: () => null,
|
4395
|
+
removeSider: () => null
|
4396
|
+
}
|
4397
|
+
});
|
4398
|
+
function rn(e) {
|
4399
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
4400
|
+
return Ee.Children.forEach(e, function(n) {
|
4401
|
+
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(rn(n)) : ua(n) && n.props ? r = r.concat(rn(n.props.children, t)) : r.push(n));
|
4402
|
+
}), r;
|
4403
|
+
}
|
4404
|
+
const nu = (e, t) => {
|
4405
|
+
typeof (e == null ? void 0 : e.addEventListener) < "u" ? e.addEventListener("change", t) : typeof (e == null ? void 0 : e.addListener) < "u" && e.addListener(t);
|
4406
|
+
}, ou = (e, t) => {
|
4407
|
+
typeof (e == null ? void 0 : e.removeEventListener) < "u" ? e.removeEventListener("change", t) : typeof (e == null ? void 0 : e.removeListener) < "u" && e.removeListener(t);
|
4408
|
+
}, au = (e) => {
|
4409
|
+
const {
|
4410
|
+
antCls: t,
|
4411
|
+
// .ant
|
4412
|
+
componentCls: r,
|
4413
|
+
// .ant-layout
|
4414
|
+
colorText: n,
|
4415
|
+
footerBg: o,
|
4416
|
+
headerHeight: a,
|
4417
|
+
headerPadding: i,
|
4418
|
+
headerColor: c,
|
4419
|
+
footerPadding: l,
|
4420
|
+
fontSize: s,
|
4421
|
+
bodyBg: u,
|
4422
|
+
headerBg: d
|
4423
|
+
} = e;
|
4424
|
+
return {
|
4425
|
+
[r]: {
|
4426
|
+
display: "flex",
|
4427
|
+
flex: "auto",
|
4428
|
+
flexDirection: "column",
|
4429
|
+
/* fix firefox can't set height smaller than content on flex item */
|
4430
|
+
minHeight: 0,
|
4431
|
+
background: u,
|
4432
|
+
"&, *": {
|
4433
|
+
boxSizing: "border-box"
|
4434
|
+
},
|
4435
|
+
[`&${r}-has-sider`]: {
|
4436
|
+
flexDirection: "row",
|
4437
|
+
[`> ${r}, > ${r}-content`]: {
|
4438
|
+
// https://segmentfault.com/a/1190000019498300
|
4439
|
+
width: 0
|
4440
|
+
}
|
4441
|
+
},
|
4442
|
+
[`${r}-header, &${r}-footer`]: {
|
4443
|
+
flex: "0 0 auto"
|
4444
|
+
},
|
4445
|
+
// RTL
|
4446
|
+
"&-rtl": {
|
4447
|
+
direction: "rtl"
|
4448
|
+
}
|
4449
|
+
},
|
4450
|
+
// ==================== Header ====================
|
4451
|
+
[`${r}-header`]: {
|
4452
|
+
height: a,
|
4453
|
+
padding: i,
|
4454
|
+
color: c,
|
4455
|
+
lineHeight: Ne(a),
|
4456
|
+
background: d,
|
4457
|
+
// Other components/menu/style/index.less line:686
|
4458
|
+
// Integration with header element so menu items have the same height
|
4459
|
+
[`${t}-menu`]: {
|
4460
|
+
lineHeight: "inherit"
|
4461
|
+
}
|
4462
|
+
},
|
4463
|
+
// ==================== Footer ====================
|
4464
|
+
[`${r}-footer`]: {
|
4465
|
+
padding: l,
|
4466
|
+
color: n,
|
4467
|
+
fontSize: s,
|
4468
|
+
background: o
|
4469
|
+
},
|
4470
|
+
// =================== Content ====================
|
4471
|
+
[`${r}-content`]: {
|
4472
|
+
flex: "auto",
|
4473
|
+
color: n,
|
4474
|
+
// fix firefox can't set height smaller than content on flex item
|
4475
|
+
minHeight: 0
|
4476
|
+
}
|
4477
|
+
};
|
4478
|
+
}, Ra = (e) => {
|
4479
|
+
const {
|
4480
|
+
colorBgLayout: t,
|
4481
|
+
controlHeight: r,
|
4482
|
+
controlHeightLG: n,
|
4483
|
+
colorText: o,
|
4484
|
+
controlHeightSM: a,
|
4485
|
+
marginXXS: i,
|
4486
|
+
colorTextLightSolid: c,
|
4487
|
+
colorBgContainer: l
|
4488
|
+
} = e, s = n * 1.25;
|
4489
|
+
return {
|
4490
|
+
// Deprecated
|
4491
|
+
colorBgHeader: "#001529",
|
4492
|
+
colorBgBody: t,
|
4493
|
+
colorBgTrigger: "#002140",
|
4494
|
+
bodyBg: t,
|
4495
|
+
headerBg: "#001529",
|
4496
|
+
headerHeight: r * 2,
|
4497
|
+
headerPadding: `0 ${s}px`,
|
4498
|
+
headerColor: o,
|
4499
|
+
footerPadding: `${a}px ${s}px`,
|
4500
|
+
footerBg: t,
|
4501
|
+
siderBg: "#001529",
|
4502
|
+
triggerHeight: n + i * 2,
|
4503
|
+
triggerBg: "#002140",
|
4504
|
+
triggerColor: c,
|
4505
|
+
zeroTriggerWidth: n,
|
4506
|
+
zeroTriggerHeight: n,
|
4507
|
+
lightSiderBg: l,
|
4508
|
+
lightTriggerBg: l,
|
4509
|
+
lightTriggerColor: o
|
4510
|
+
};
|
4511
|
+
}, La = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]], Ia = ya("Layout", (e) => [au(e)], Ra, {
|
4512
|
+
deprecatedTokens: La
|
4513
|
+
}), iu = (e) => {
|
4514
|
+
const {
|
4515
|
+
componentCls: t,
|
4516
|
+
siderBg: r,
|
4517
|
+
motionDurationMid: n,
|
4518
|
+
motionDurationSlow: o,
|
4519
|
+
antCls: a,
|
4520
|
+
triggerHeight: i,
|
4521
|
+
triggerColor: c,
|
4522
|
+
triggerBg: l,
|
4523
|
+
headerHeight: s,
|
4524
|
+
zeroTriggerWidth: u,
|
4525
|
+
zeroTriggerHeight: d,
|
4526
|
+
borderRadiusLG: f,
|
4527
|
+
lightSiderBg: h,
|
4528
|
+
lightTriggerColor: m,
|
4529
|
+
lightTriggerBg: p,
|
4530
|
+
bodyBg: v
|
4531
|
+
} = e;
|
4532
|
+
return {
|
4533
|
+
[t]: {
|
4534
|
+
position: "relative",
|
4535
|
+
// fix firefox can't set width smaller than content on flex item
|
4536
|
+
minWidth: 0,
|
4537
|
+
background: r,
|
4538
|
+
transition: `all ${n}, background 0s`,
|
4539
|
+
"&-has-trigger": {
|
4540
|
+
paddingBottom: i
|
4541
|
+
},
|
4542
|
+
"&-right": {
|
4543
|
+
order: 1
|
4544
|
+
},
|
4545
|
+
[`${t}-children`]: {
|
4546
|
+
height: "100%",
|
4547
|
+
// Hack for fixing margin collapse bug
|
4548
|
+
// https://github.com/ant-design/ant-design/issues/7967
|
4549
|
+
// solution from https://stackoverflow.com/a/33132624/3040605
|
4550
|
+
marginTop: -0.1,
|
4551
|
+
paddingTop: 0.1,
|
4552
|
+
[`${a}-menu${a}-menu-inline-collapsed`]: {
|
4553
|
+
width: "auto"
|
4554
|
+
}
|
4555
|
+
},
|
4556
|
+
[`&-zero-width ${t}-children`]: {
|
4557
|
+
overflow: "hidden"
|
4558
|
+
},
|
4559
|
+
[`${t}-trigger`]: {
|
4560
|
+
position: "fixed",
|
4561
|
+
bottom: 0,
|
4562
|
+
zIndex: 1,
|
4563
|
+
height: i,
|
4564
|
+
color: c,
|
4565
|
+
lineHeight: Ne(i),
|
4566
|
+
textAlign: "center",
|
4567
|
+
background: l,
|
4568
|
+
cursor: "pointer",
|
4569
|
+
transition: `all ${n}`
|
4570
|
+
},
|
4571
|
+
[`${t}-zero-width-trigger`]: {
|
4572
|
+
position: "absolute",
|
4573
|
+
top: s,
|
4574
|
+
insetInlineEnd: e.calc(u).mul(-1).equal(),
|
4575
|
+
zIndex: 1,
|
4576
|
+
width: u,
|
4577
|
+
height: d,
|
4578
|
+
color: c,
|
4579
|
+
fontSize: e.fontSizeXL,
|
4580
|
+
display: "flex",
|
4581
|
+
alignItems: "center",
|
4582
|
+
justifyContent: "center",
|
4583
|
+
background: r,
|
4584
|
+
borderRadius: `0 ${Ne(f)} ${Ne(f)} 0`,
|
4585
|
+
cursor: "pointer",
|
4586
|
+
transition: `background ${o} ease`,
|
4587
|
+
"&::after": {
|
4588
|
+
position: "absolute",
|
4589
|
+
inset: 0,
|
4590
|
+
background: "transparent",
|
4591
|
+
transition: `all ${o}`,
|
4592
|
+
content: '""'
|
4593
|
+
},
|
4594
|
+
"&:hover::after": {
|
4595
|
+
background: "rgba(255, 255, 255, 0.2)"
|
4596
|
+
},
|
4597
|
+
"&-right": {
|
4598
|
+
insetInlineStart: e.calc(u).mul(-1).equal(),
|
4599
|
+
borderRadius: `${Ne(f)} 0 0 ${Ne(f)}`
|
4600
|
+
}
|
4601
|
+
},
|
4602
|
+
// Light
|
4603
|
+
"&-light": {
|
4604
|
+
background: h,
|
4605
|
+
[`${t}-trigger`]: {
|
4606
|
+
color: m,
|
4607
|
+
background: p
|
4608
|
+
},
|
4609
|
+
[`${t}-zero-width-trigger`]: {
|
4610
|
+
color: m,
|
4611
|
+
background: p,
|
4612
|
+
border: `1px solid ${v}`,
|
4613
|
+
// Safe to modify to any other color
|
4614
|
+
borderInlineStart: 0
|
4615
|
+
}
|
4616
|
+
}
|
4617
|
+
}
|
4618
|
+
};
|
4619
|
+
}, su = ya(["Layout", "Sider"], (e) => [iu(e)], Ra, {
|
4620
|
+
deprecatedTokens: La
|
4621
|
+
});
|
4622
|
+
var cu = function(e, t) {
|
4623
|
+
var r = {};
|
4624
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4625
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
4626
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
4627
|
+
return r;
|
4628
|
+
};
|
4629
|
+
const vo = {
|
4630
|
+
xs: "479.98px",
|
4631
|
+
sm: "575.98px",
|
4632
|
+
md: "767.98px",
|
4633
|
+
lg: "991.98px",
|
4634
|
+
xl: "1199.98px",
|
4635
|
+
xxl: "1599.98px"
|
4636
|
+
}, lu = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Ha = /* @__PURE__ */ g.createContext({}), uu = /* @__PURE__ */ (() => {
|
4637
|
+
let e = 0;
|
4638
|
+
return function() {
|
4639
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
4640
|
+
return e += 1, `${t}${e}`;
|
4641
|
+
};
|
4642
|
+
})(), pn = /* @__PURE__ */ g.forwardRef((e, t) => {
|
4643
|
+
const {
|
4644
|
+
prefixCls: r,
|
4645
|
+
className: n,
|
4646
|
+
trigger: o,
|
4647
|
+
children: a,
|
4648
|
+
defaultCollapsed: i = !1,
|
4649
|
+
theme: c = "dark",
|
4650
|
+
style: l = {},
|
4651
|
+
collapsible: s = !1,
|
4652
|
+
reverseArrow: u = !1,
|
4653
|
+
width: d = 200,
|
4654
|
+
collapsedWidth: f = 80,
|
4655
|
+
zeroWidthTriggerStyle: h,
|
4656
|
+
breakpoint: m,
|
4657
|
+
onCollapse: p,
|
4658
|
+
onBreakpoint: v
|
4659
|
+
} = e, x = cu(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
4660
|
+
siderHook: b
|
4661
|
+
} = He($a), [C, T] = En("collapsed" in e ? e.collapsed : i), [y, E] = En(!1);
|
4662
|
+
Ie(() => {
|
4663
|
+
"collapsed" in e && T(e.collapsed);
|
4664
|
+
}, [e.collapsed]);
|
4665
|
+
const S = (Y, ie) => {
|
4666
|
+
"collapsed" in e || T(Y), p == null || p(Y, ie);
|
4667
|
+
}, {
|
4668
|
+
getPrefixCls: _,
|
4669
|
+
direction: j
|
4670
|
+
} = He(_e), M = _("layout-sider", r), [I, L, $] = su(M), A = $e(null);
|
4671
|
+
A.current = (Y) => {
|
4672
|
+
E(Y.matches), v == null || v(Y.matches), C !== Y.matches && S(Y.matches, "responsive");
|
4673
|
+
}, Ie(() => {
|
4674
|
+
function Y(be) {
|
4675
|
+
var ue;
|
4676
|
+
return (ue = A.current) === null || ue === void 0 ? void 0 : ue.call(A, be);
|
4677
|
+
}
|
4678
|
+
let ie;
|
4679
|
+
return typeof (window == null ? void 0 : window.matchMedia) < "u" && m && m in vo && (ie = window.matchMedia(`screen and (max-width: ${vo[m]})`), nu(ie, Y), Y(ie)), () => {
|
4680
|
+
ou(ie, Y);
|
4681
|
+
};
|
4682
|
+
}, [m]), Ie(() => {
|
4683
|
+
const Y = uu("ant-sider-");
|
4684
|
+
return b.addSider(Y), () => b.removeSider(Y);
|
4685
|
+
}, []);
|
4686
|
+
const N = () => {
|
4687
|
+
S(!C, "clickTrigger");
|
4688
|
+
}, z = Co(x, ["collapsed"]), W = C ? f : d, H = lu(W) ? `${W}px` : String(W), X = parseFloat(String(f || 0)) === 0 ? /* @__PURE__ */ g.createElement("span", {
|
4689
|
+
onClick: N,
|
4690
|
+
className: et(`${M}-zero-width-trigger`, `${M}-zero-width-trigger-${u ? "right" : "left"}`),
|
4691
|
+
style: h
|
4692
|
+
}, o || /* @__PURE__ */ g.createElement(yo, null)) : null, G = j === "rtl" == !u, B = {
|
4693
|
+
expanded: G ? /* @__PURE__ */ g.createElement(yr, null) : /* @__PURE__ */ g.createElement(mr, null),
|
4694
|
+
collapsed: G ? /* @__PURE__ */ g.createElement(mr, null) : /* @__PURE__ */ g.createElement(yr, null)
|
4695
|
+
}[C ? "collapsed" : "expanded"], q = o !== null ? X || /* @__PURE__ */ g.createElement("div", {
|
4696
|
+
className: `${M}-trigger`,
|
4697
|
+
onClick: N,
|
4698
|
+
style: {
|
4699
|
+
width: H
|
4700
|
+
}
|
4701
|
+
}, o || B) : null, ce = Object.assign(Object.assign({}, l), {
|
4702
|
+
flex: `0 0 ${H}`,
|
4703
|
+
maxWidth: H,
|
4704
|
+
minWidth: H,
|
4705
|
+
width: H
|
4706
|
+
}), ye = et(M, `${M}-${c}`, {
|
4707
|
+
[`${M}-collapsed`]: !!C,
|
4708
|
+
[`${M}-has-trigger`]: s && o !== null && !X,
|
4709
|
+
[`${M}-below`]: !!y,
|
4710
|
+
[`${M}-zero-width`]: parseFloat(H) === 0
|
4711
|
+
}, n, L, $), ae = g.useMemo(() => ({
|
4712
|
+
siderCollapsed: C
|
4713
|
+
}), [C]);
|
4714
|
+
return I(/* @__PURE__ */ g.createElement(Ha.Provider, {
|
4715
|
+
value: ae
|
4716
|
+
}, /* @__PURE__ */ g.createElement("aside", Object.assign({
|
4717
|
+
className: ye
|
4718
|
+
}, z, {
|
4719
|
+
style: ce,
|
4720
|
+
ref: t
|
4721
|
+
}), /* @__PURE__ */ g.createElement("div", {
|
4722
|
+
className: `${M}-children`
|
4723
|
+
}, a), s || y && X ? q : null)));
|
4724
|
+
});
|
4725
|
+
process.env.NODE_ENV !== "production" && (pn.displayName = "Sider");
|
4726
|
+
function fu(e, t, r) {
|
4727
|
+
return typeof r == "boolean" ? r : e.length ? !0 : rn(t).some((o) => o.type === pn);
|
4728
|
+
}
|
4729
|
+
var Da = function(e, t) {
|
4730
|
+
var r = {};
|
4731
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4732
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
4733
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
4734
|
+
return r;
|
4735
|
+
};
|
4736
|
+
function nr(e) {
|
4737
|
+
let {
|
4738
|
+
suffixCls: t,
|
4739
|
+
tagName: r,
|
4740
|
+
displayName: n
|
4741
|
+
} = e;
|
4742
|
+
return (o) => {
|
4743
|
+
const a = /* @__PURE__ */ g.forwardRef((i, c) => /* @__PURE__ */ g.createElement(o, Object.assign({
|
4744
|
+
ref: c,
|
4745
|
+
suffixCls: t,
|
4746
|
+
tagName: r
|
4747
|
+
}, i)));
|
4748
|
+
return process.env.NODE_ENV !== "production" && (a.displayName = n), a;
|
4749
|
+
};
|
4750
|
+
}
|
4751
|
+
const hn = /* @__PURE__ */ g.forwardRef((e, t) => {
|
4752
|
+
const {
|
4753
|
+
prefixCls: r,
|
4754
|
+
suffixCls: n,
|
4755
|
+
className: o,
|
4756
|
+
tagName: a
|
4757
|
+
} = e, i = Da(e, ["prefixCls", "suffixCls", "className", "tagName"]), {
|
4758
|
+
getPrefixCls: c
|
4759
|
+
} = g.useContext(_e), l = c("layout", r), [s, u, d] = Ia(l), f = n ? `${l}-${n}` : l;
|
4760
|
+
return s(/* @__PURE__ */ g.createElement(a, Object.assign({
|
4761
|
+
className: et(r || f, o, u, d),
|
4762
|
+
ref: t
|
4763
|
+
}, i)));
|
4764
|
+
}), du = /* @__PURE__ */ g.forwardRef((e, t) => {
|
4765
|
+
const {
|
4766
|
+
direction: r
|
4767
|
+
} = g.useContext(_e), [n, o] = g.useState([]), {
|
4768
|
+
prefixCls: a,
|
4769
|
+
className: i,
|
4770
|
+
rootClassName: c,
|
4771
|
+
children: l,
|
4772
|
+
hasSider: s,
|
4773
|
+
tagName: u,
|
4774
|
+
style: d
|
4775
|
+
} = e, f = Da(e, ["prefixCls", "className", "rootClassName", "children", "hasSider", "tagName", "style"]), h = Co(f, ["suffixCls"]), {
|
4776
|
+
getPrefixCls: m,
|
4777
|
+
className: p,
|
4778
|
+
style: v
|
4779
|
+
} = Hc("layout"), x = m("layout", a), b = fu(n, l, s), [C, T, y] = Ia(x), E = et(x, {
|
4780
|
+
[`${x}-has-sider`]: b,
|
4781
|
+
[`${x}-rtl`]: r === "rtl"
|
4782
|
+
}, p, i, c, T, y), S = g.useMemo(() => ({
|
4783
|
+
siderHook: {
|
4784
|
+
addSider: (_) => {
|
4785
|
+
o((j) => [].concat(Te(j), [_]));
|
4786
|
+
},
|
4787
|
+
removeSider: (_) => {
|
4788
|
+
o((j) => j.filter((M) => M !== _));
|
4789
|
+
}
|
4790
|
+
}
|
4791
|
+
}), []);
|
4792
|
+
return C(/* @__PURE__ */ g.createElement($a.Provider, {
|
4793
|
+
value: S
|
4794
|
+
}, /* @__PURE__ */ g.createElement(u, Object.assign({
|
4795
|
+
ref: t,
|
4796
|
+
className: E,
|
4797
|
+
style: Object.assign(Object.assign({}, v), d)
|
4798
|
+
}, h), l)));
|
4799
|
+
}), vu = nr({
|
4800
|
+
tagName: "div",
|
4801
|
+
displayName: "Layout"
|
4802
|
+
})(du), gu = nr({
|
4803
|
+
suffixCls: "header",
|
4804
|
+
tagName: "header",
|
4805
|
+
displayName: "Header"
|
4806
|
+
})(hn), pu = nr({
|
4807
|
+
suffixCls: "footer",
|
4808
|
+
tagName: "footer",
|
4809
|
+
displayName: "Footer"
|
4810
|
+
})(hn), hu = nr({
|
4811
|
+
suffixCls: "content",
|
4812
|
+
tagName: "main",
|
4813
|
+
displayName: "Content"
|
4814
|
+
})(hn), mu = ({
|
4815
|
+
layoutClassName: e,
|
4816
|
+
className: t,
|
4817
|
+
...r
|
4818
|
+
}) => /* @__PURE__ */ w.jsx(
|
4819
|
+
vu,
|
4820
|
+
{
|
4821
|
+
className: [e, t].filter(Boolean).join(" "),
|
4822
|
+
...r
|
4823
|
+
}
|
4824
|
+
), zu = Object.assign(mu, {
|
4825
|
+
Header: gu,
|
4826
|
+
Footer: pu,
|
4827
|
+
Content: hu,
|
4828
|
+
Sider: pn,
|
4829
|
+
_InternalSiderContext: Ha
|
4830
|
+
}), Va = (e) => {
|
4831
|
+
const { containerClassName: t, spaceClassName: r, ...n } = e;
|
4832
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(dt, { className: r, ...n }) });
|
4833
|
+
};
|
4834
|
+
Va.Compact = dt.Compact;
|
4835
|
+
const Bu = Va, za = (e) => {
|
4836
|
+
const { containerClassName: t, spaceClassName: r, ...n } = e;
|
4837
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(po, { className: r, ...n }) });
|
4838
|
+
};
|
4839
|
+
za.Panel = po.Panel;
|
4840
|
+
const Fu = za, yu = ({
|
4841
|
+
containerClassName: e,
|
4842
|
+
menuClassName: t,
|
4843
|
+
...r
|
4844
|
+
}) => /* @__PURE__ */ w.jsx("div", { className: e, children: /* @__PURE__ */ w.jsx(St, { className: t, ...r }) }), Ba = (e) => /* @__PURE__ */ w.jsx(St.Item, { ...e });
|
4845
|
+
Ba.displayName = "Menu.Item";
|
4846
|
+
const Fa = (e) => /* @__PURE__ */ w.jsx(St.SubMenu, { ...e });
|
4847
|
+
Fa.displayName = "Menu.SubMenu";
|
4848
|
+
const bu = St.Divider, Su = St.ItemGroup, Ct = yu;
|
4849
|
+
Ct.Item = Ba;
|
4850
|
+
Ct.SubMenu = Fa;
|
4851
|
+
Ct.Divider = bu;
|
4852
|
+
Ct.ItemGroup = Su;
|
4853
|
+
const Wu = Ct, xu = (e) => {
|
4854
|
+
const { containerClassName: t, paginationClassName: r, ...n } = e;
|
4855
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(ki, { className: r, ...n }) });
|
4856
|
+
}, Xu = xu, Wa = (e) => {
|
4857
|
+
const { containerClassName: t, stepsClassName: r, ...n } = e;
|
4858
|
+
return /* @__PURE__ */ w.jsx("div", { className: t, children: /* @__PURE__ */ w.jsx(ho, { className: r, ...n }) });
|
4859
|
+
};
|
4860
|
+
Wa.Step = ho.Step;
|
4861
|
+
const Gu = Wa;
|
4862
|
+
export {
|
4863
|
+
_n as B,
|
4864
|
+
Ou as C,
|
4865
|
+
Iu as D,
|
4866
|
+
Du as F,
|
4867
|
+
zu as L,
|
4868
|
+
wu as M,
|
4869
|
+
Au as P,
|
4870
|
+
Lu as R,
|
4871
|
+
Mu as S,
|
4872
|
+
Pu as T,
|
4873
|
+
ku as a,
|
4874
|
+
ju as b,
|
4875
|
+
Nu as c,
|
4876
|
+
$u as d,
|
4877
|
+
Ru as e,
|
4878
|
+
Hu as f,
|
4879
|
+
Bu as g,
|
4880
|
+
Fu as h,
|
4881
|
+
Wu as i,
|
4882
|
+
Xu as j,
|
4883
|
+
Gu as k,
|
4884
|
+
Yi as t
|
4885
|
+
};
|