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