@gobolt/genesis 0.0.8 → 0.0.10

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.
Files changed (170) hide show
  1. package/README.md +10 -0
  2. package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
  5. package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
  6. package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
  7. package/dist/ContextIsolator-D5x2Ih51.js +20 -0
  8. package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
  9. package/dist/KeyCode-DM2sFh3-.js +517 -0
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
  12. package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
  13. package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
  14. package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
  18. package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
  19. package/dist/compact-item-DH13cl8A.js +61 -0
  20. package/dist/components/Badge/Badge.d.ts +2 -2
  21. package/dist/components/Badge/Badge.js +63 -62
  22. package/dist/components/Badge/__tests__/Badge.test.js +11 -65
  23. package/dist/components/Badge/index.js +2 -21
  24. package/dist/components/Badge/styles.js +7 -8
  25. package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
  27. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
  28. package/dist/components/Breadcrumb/index.js +2 -25
  29. package/dist/components/Breadcrumb/styles.d.ts +10 -6
  30. package/dist/components/Breadcrumb/styles.js +787 -808
  31. package/dist/components/Button/Button.d.ts +6 -4
  32. package/dist/components/Button/Button.js +20 -40
  33. package/dist/components/Button/__tests__/Button.test.js +9 -54
  34. package/dist/components/Button/index.js +2 -20
  35. package/dist/components/Button/styles.d.ts +9 -5
  36. package/dist/components/Button/styles.js +19 -30
  37. package/dist/components/Checkbox/Checkbox.js +8 -38
  38. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
  39. package/dist/components/Checkbox/index.js +2 -47
  40. package/dist/components/Checkbox/styles.d.ts +8 -1
  41. package/dist/components/Checkbox/styles.js +181 -188
  42. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
  43. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
  44. package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
  45. package/dist/components/ErrorBoundaryFallback/index.js +2 -49
  46. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
  47. package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
  48. package/dist/components/Form/Form.d.ts +18 -5
  49. package/dist/components/Form/Form.js +4 -45
  50. package/dist/components/Form/__stories__/FormStory.js +44 -81
  51. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  52. package/dist/components/Form/__tests__/form.test.js +18 -0
  53. package/dist/components/Form/index.js +2 -46
  54. package/dist/components/Form/styles.d.ts +3 -0
  55. package/dist/components/Form/styles.js +5 -0
  56. package/dist/components/Input/Input.js +6 -29
  57. package/dist/components/Input/__tests__/Input.test.js +21 -66
  58. package/dist/components/Input/index.js +2 -29
  59. package/dist/components/Input/styles.d.ts +5 -2
  60. package/dist/components/Input/styles.js +319 -332
  61. package/dist/components/Message/Message.d.ts +4 -4
  62. package/dist/components/Message/Message.js +53 -80
  63. package/dist/components/Message/__tests__/Message.test.js +24 -70
  64. package/dist/components/Message/index.js +2 -48
  65. package/dist/components/Message/styles.d.ts +4 -1
  66. package/dist/components/Message/styles.js +24 -18
  67. package/dist/components/Notification/Notification.d.ts +11 -10
  68. package/dist/components/Notification/Notification.js +306 -372
  69. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  70. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  71. package/dist/components/Notification/__tests__/Notification.test.js +8 -69
  72. package/dist/components/Notification/index.js +2 -59
  73. package/dist/components/Notification/styles.d.ts +13 -3
  74. package/dist/components/Notification/styles.js +36 -20
  75. package/dist/components/Radio/Radio.js +20 -106
  76. package/dist/components/Radio/RadioGroup.js +18 -71
  77. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
  78. package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
  79. package/dist/components/Radio/index.d.ts +1 -1
  80. package/dist/components/Radio/index.js +2 -56
  81. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  82. package/dist/components/Select/DropdownChevron.js +23 -0
  83. package/dist/components/Select/Select.d.ts +9 -4
  84. package/dist/components/Select/Select.js +29 -41
  85. package/dist/components/Select/__tests__/Select.test.js +10752 -93
  86. package/dist/components/Select/index.js +2 -28
  87. package/dist/components/Select/styles.d.ts +20 -6
  88. package/dist/components/Select/styles.js +1381 -1370
  89. package/dist/components/Toast/Toast.d.ts +4 -4
  90. package/dist/components/Toast/Toast.js +8 -37
  91. package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
  92. package/dist/components/Toast/__tests__/Toast.test.js +10 -55
  93. package/dist/components/Toast/index.js +2 -46
  94. package/dist/components/Toast/styles.d.ts +6 -1
  95. package/dist/components/Toast/styles.js +36 -21
  96. package/dist/components/Typography/Typography.d.ts +7 -4
  97. package/dist/components/Typography/Typography.js +2 -42
  98. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  99. package/dist/components/Typography/__tests__/Typography.test.js +19 -56
  100. package/dist/components/Typography/index.js +2 -46
  101. package/dist/components/Typography/styles.d.ts +18 -4
  102. package/dist/components/Typography/styles.js +36 -43
  103. package/dist/components/index.d.ts +13 -5
  104. package/dist/components/index.js +24 -70
  105. package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
  106. package/dist/genesis/GenesisThemeBreakdown.js +38 -55
  107. package/dist/genesis/GenesisThemeDemo.js +3 -53
  108. package/dist/genesis/styles.d.ts +6 -2
  109. package/dist/genesis/styles.js +496 -521
  110. package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
  111. package/dist/index-BZAhCB_K.js +97 -0
  112. package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
  113. package/dist/index-C8haFnXI.js +1112 -0
  114. package/dist/index-CfDY25LP.js +873 -0
  115. package/dist/index-DPW8XdWj.js +952 -0
  116. package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
  117. package/dist/index-oK7z6jnz.js +22795 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +31 -77
  120. package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
  121. package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
  122. package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
  123. package/dist/providers/GenesisProvider.d.ts +0 -5
  124. package/dist/providers/GenesisProvider.js +9 -59
  125. package/dist/providers/ThemeProvider.d.ts +1 -2
  126. package/dist/providers/ThemeProvider.js +11 -13
  127. package/dist/providers/ToastProvider.d.ts +11 -4
  128. package/dist/providers/ToastProvider.js +10 -39
  129. package/dist/providers/index.d.ts +2 -3
  130. package/dist/providers/index.js +4 -51
  131. package/dist/providers/useGenesis.d.ts +7 -0
  132. package/dist/providers/useGenesis.js +6 -0
  133. package/dist/setup-BvfREoHl.js +33891 -0
  134. package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
  135. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
  136. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
  137. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  138. package/dist/styles/design-tokens/variables.d.ts +10 -10
  139. package/dist/styles/design-tokens/variables.js +1 -1
  140. package/dist/styles/global-styles.d.ts +1 -0
  141. package/dist/styles/global-styles.js +14 -31
  142. package/dist/styles/theme/genesis-theme.js +257 -212
  143. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  144. package/dist/styles/theme/index.js +4 -5
  145. package/dist/styles-CT_fyXBd.js +1808 -0
  146. package/dist/test/setup.js +3 -46
  147. package/dist/useLocale-DT-z_vQ6.js +16 -0
  148. package/dist/useVariants-DvhXfgJY.js +30 -0
  149. package/dist/utils/isAllEnglishString.js +1 -2
  150. package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
  151. package/package.json +51 -43
  152. package/dist/CheckOutlined-52d9ac25.js +0 -29
  153. package/dist/ContextIsolator-b09b2c52.js +0 -20
  154. package/dist/EllipsisOutlined-60122660.js +0 -1115
  155. package/dist/InfoCircleFilled-c5f90c20.js +0 -16
  156. package/dist/RightOutlined-83515eb4.js +0 -16
  157. package/dist/compact-item-b8f85aa6.js +0 -75
  158. package/dist/index-0a886e53.js +0 -100
  159. package/dist/index-0b9ee239.js +0 -955
  160. package/dist/index-1a33c134.js +0 -1389
  161. package/dist/index-4003d75b.js +0 -3748
  162. package/dist/index-89035ea5.js +0 -3242
  163. package/dist/providers/ToastWrapper.d.ts +0 -7
  164. package/dist/providers/ToastWrapper.js +0 -56
  165. package/dist/setup-aaca7b6f.js +0 -21158
  166. package/dist/styles/theme/global-styles.d.ts +0 -1
  167. package/dist/styles/theme/global-styles.js +0 -36
  168. package/dist/useVariants-a0d64298.js +0 -30
  169. /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
  170. /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
@@ -1,29 +1,27 @@
1
- import { d as Yt } from "../styled-components.browser.esm-02f500bc.js";
2
- import { A as wa } from "../index-501fc13d.js";
1
+ import { d as Yt } from "../styled-components.browser.esm-CZ1XM4o4.js";
2
+ import { T as wa } from "../index-C0SmxWLS.js";
3
3
  import * as l from "react";
4
- import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as me, useMemo as Qt } from "react";
5
- import { c as E, a as he, f as B, _ as le, d as vt, h as te, e as We, w as Oa } from "../presets-83ccb923.js";
6
- import { o as Ve, u as Bt, t as Ta } from "../isVisible-729780f5.js";
7
- import { g as ft, m as gt, p as u, C as be, v as ct, w as Dt, c as Na, b as Ia, k as Ra, A as za, t as mt, o as Zt, r as bt, O as pt, H as dt, E as Ke } from "../index-4003d75b.js";
8
- import { a as Jt } from "../Compact-c39ed20d.js";
9
- import { K as Ma, a as Ce, c as La, g as ja } from "../index-1a33c134.js";
10
- import { C as Ba } from "../CloseOutlined-14b8bba1.js";
11
- import { E as Da, M as Aa, c as Ha, a as ka } from "../EllipsisOutlined-60122660.js";
12
- import { A as Ga } from "../AntdIcon-c395a1c4.js";
13
- import { R as rt } from "../index-8c8d2d0c.js";
14
- import { u as Wa } from "../context-3b8a39af.js";
15
- import { i as At } from "../Overflow-a570fa69.js";
16
- import "../CheckOutlined-52d9ac25.js";
17
- import "../index-0b9ee239.js";
18
- import "../ContextIsolator-b09b2c52.js";
19
- import "../reactNode-f4391605.js";
20
- import "../presetColors-ccf8cb4c.js";
21
- import "../TextArea-20825221.js";
22
- import "../CloseCircleFilled-ddc51e7e.js";
23
- import "../useVariants-a0d64298.js";
24
- import "../compact-item-b8f85aa6.js";
25
- import "react-dom";
26
- const Va = (e) => {
4
+ import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as be, useMemo as Qt } from "react";
5
+ import { a as he, c as E, f as B, _ as le, d as ft, h as te, e as ke, w as Oa } from "../warning-C63HNL9U.js";
6
+ import { o as Ve, u as Bt, t as Na } from "../isVisible-A-IfeFoT.js";
7
+ import { g as gt, m as mt, q as u, C as ve, x as ct, w as Dt, c as Ta, b as Ra, j as Ia, B as za, v as bt, p as Zt, o as vt, Y as pt, I as dt, F as Ke } from "../index-oK7z6jnz.js";
8
+ import { a as Jt } from "../Compact-CGY560JF.js";
9
+ import { K as Ma, b as La, g as ja } from "../index-CfDY25LP.js";
10
+ import { R as Ba } from "../CloseOutlined-ClXDNn82.js";
11
+ import { E as Da, M as Aa, b as Ha, R as Ga } from "../index-C8haFnXI.js";
12
+ import { I as Wa } from "../AntdIcon-BoLh1dP8.js";
13
+ import { R as rt } from "../index-bKlRxQp4.js";
14
+ import { K as Ce } from "../KeyCode-DM2sFh3-.js";
15
+ import { u as ka } from "../context-BMW3aJEf.js";
16
+ import { i as At } from "../Overflow-PBZD-PFm.js";
17
+ var Va = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ka = function(t, a) {
18
+ return /* @__PURE__ */ l.createElement(Wa, he({}, t, {
19
+ ref: a,
20
+ icon: Va
21
+ }));
22
+ }, ea = /* @__PURE__ */ l.forwardRef(Ka);
23
+ process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
24
+ const qe = (e) => {
27
25
  const {
28
26
  prefixCls: t,
29
27
  className: a,
@@ -46,7 +44,7 @@ const Va = (e) => {
46
44
  className: E(t, s, i, a),
47
45
  style: Object.assign(Object.assign({}, c), n)
48
46
  });
49
- }, qe = Va, Ka = new Ma("ant-skeleton-loading", {
47
+ }, qa = new Ma("ant-skeleton-loading", {
50
48
  "0%": {
51
49
  backgroundPosition: "100% 50%"
52
50
  },
@@ -56,19 +54,19 @@ const Va = (e) => {
56
54
  }), Fe = (e) => ({
57
55
  height: e,
58
56
  lineHeight: u(e)
59
- }), Re = (e) => Object.assign({
57
+ }), Ie = (e) => Object.assign({
60
58
  width: e
61
- }, Fe(e)), qa = (e) => ({
59
+ }, Fe(e)), Fa = (e) => ({
62
60
  background: e.skeletonLoadingBackground,
63
61
  backgroundSize: "400% 100%",
64
- animationName: Ka,
62
+ animationName: qa,
65
63
  animationDuration: e.skeletonLoadingMotionDuration,
66
64
  animationTimingFunction: "ease",
67
65
  animationIterationCount: "infinite"
68
66
  }), it = (e, t) => Object.assign({
69
67
  width: t(e).mul(5).equal(),
70
68
  minWidth: t(e).mul(5).equal()
71
- }, Fe(e)), Fa = (e) => {
69
+ }, Fe(e)), Xa = (e) => {
72
70
  const {
73
71
  skeletonAvatarCls: t,
74
72
  gradientFromColor: a,
@@ -81,14 +79,14 @@ const Va = (e) => {
81
79
  display: "inline-block",
82
80
  verticalAlign: "top",
83
81
  background: a
84
- }, Re(n)),
82
+ }, Ie(n)),
85
83
  [`${t}${t}-circle`]: {
86
84
  borderRadius: "50%"
87
85
  },
88
- [`${t}${t}-lg`]: Object.assign({}, Re(r)),
89
- [`${t}${t}-sm`]: Object.assign({}, Re(o))
86
+ [`${t}${t}-lg`]: Object.assign({}, Ie(r)),
87
+ [`${t}${t}-sm`]: Object.assign({}, Ie(o))
90
88
  };
91
- }, Xa = (e) => {
89
+ }, Ua = (e) => {
92
90
  const {
93
91
  controlHeight: t,
94
92
  borderRadiusSM: a,
@@ -110,7 +108,7 @@ const Va = (e) => {
110
108
  };
111
109
  }, Ht = (e) => Object.assign({
112
110
  width: e
113
- }, Fe(e)), Ua = (e) => {
111
+ }, Fe(e)), Ya = (e) => {
114
112
  const {
115
113
  skeletonImageCls: t,
116
114
  imageSizeBase: a,
@@ -159,7 +157,7 @@ const Va = (e) => {
159
157
  }, lt = (e, t) => Object.assign({
160
158
  width: t(e).mul(2).equal(),
161
159
  minWidth: t(e).mul(2).equal()
162
- }, Fe(e)), Ya = (e) => {
160
+ }, Fe(e)), Qa = (e) => {
163
161
  const {
164
162
  borderRadiusSM: t,
165
163
  skeletonButtonCls: a,
@@ -183,7 +181,7 @@ const Va = (e) => {
183
181
  }), ot(e, r, `${a}-lg`)), {
184
182
  [`${a}-sm`]: Object.assign({}, lt(o, i))
185
183
  }), ot(e, o, `${a}-sm`));
186
- }, Qa = (e) => {
184
+ }, Za = (e) => {
187
185
  const {
188
186
  componentCls: t,
189
187
  skeletonAvatarCls: a,
@@ -194,11 +192,11 @@ const Va = (e) => {
194
192
  skeletonImageCls: i,
195
193
  controlHeight: c,
196
194
  controlHeightLG: d,
197
- controlHeightSM: g,
198
- gradientFromColor: f,
199
- padding: b,
195
+ controlHeightSM: m,
196
+ gradientFromColor: g,
197
+ padding: v,
200
198
  marginSM: C,
201
- borderRadius: T,
199
+ borderRadius: N,
202
200
  titleHeight: p,
203
201
  blockRadius: O,
204
202
  paragraphLiHeight: y,
@@ -211,19 +209,19 @@ const Va = (e) => {
211
209
  width: "100%",
212
210
  [`${t}-header`]: {
213
211
  display: "table-cell",
214
- paddingInlineEnd: b,
212
+ paddingInlineEnd: v,
215
213
  verticalAlign: "top",
216
214
  // Avatar
217
215
  [a]: Object.assign({
218
216
  display: "inline-block",
219
217
  verticalAlign: "top",
220
- background: f
221
- }, Re(c)),
218
+ background: g
219
+ }, Ie(c)),
222
220
  [`${a}-circle`]: {
223
221
  borderRadius: "50%"
224
222
  },
225
- [`${a}-lg`]: Object.assign({}, Re(d)),
226
- [`${a}-sm`]: Object.assign({}, Re(g))
223
+ [`${a}-lg`]: Object.assign({}, Ie(d)),
224
+ [`${a}-sm`]: Object.assign({}, Ie(m))
227
225
  },
228
226
  [`${t}-content`]: {
229
227
  display: "table-cell",
@@ -233,10 +231,10 @@ const Va = (e) => {
233
231
  [n]: {
234
232
  width: "100%",
235
233
  height: p,
236
- background: f,
234
+ background: g,
237
235
  borderRadius: O,
238
236
  [`+ ${r}`]: {
239
- marginBlockStart: g
237
+ marginBlockStart: m
240
238
  }
241
239
  },
242
240
  // paragraph
@@ -246,7 +244,7 @@ const Va = (e) => {
246
244
  width: "100%",
247
245
  height: y,
248
246
  listStyle: "none",
249
- background: f,
247
+ background: g,
250
248
  borderRadius: O,
251
249
  "+ li": {
252
250
  marginBlockStart: S
@@ -259,7 +257,7 @@ const Va = (e) => {
259
257
  },
260
258
  [`&-round ${t}-content`]: {
261
259
  [`${n}, ${r} > li`]: {
262
- borderRadius: T
260
+ borderRadius: N
263
261
  }
264
262
  }
265
263
  },
@@ -276,7 +274,7 @@ const Va = (e) => {
276
274
  [`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
277
275
  display: "inline-block",
278
276
  width: "auto"
279
- }, Ya(e)), Fa(e)), Xa(e)), Ua(e)),
277
+ }, Qa(e)), Xa(e)), Ua(e)), Ya(e)),
280
278
  // Skeleton Block Button, Input
281
279
  [`${t}${t}-block`]: {
282
280
  width: "100%",
@@ -296,10 +294,10 @@ const Va = (e) => {
296
294
  ${o},
297
295
  ${s},
298
296
  ${i}
299
- `]: Object.assign({}, qa(e))
297
+ `]: Object.assign({}, Fa(e))
300
298
  }
301
299
  };
302
- }, Za = (e) => {
300
+ }, Ja = (e) => {
303
301
  const {
304
302
  colorFillContent: t,
305
303
  colorFill: a
@@ -314,11 +312,11 @@ const Va = (e) => {
314
312
  paragraphMarginTop: e.marginLG + e.marginXXS,
315
313
  paragraphLiHeight: e.controlHeight / 2
316
314
  };
317
- }, ze = ft("Skeleton", (e) => {
315
+ }, ze = gt("Skeleton", (e) => {
318
316
  const {
319
317
  componentCls: t,
320
318
  calc: a
321
- } = e, n = gt(e, {
319
+ } = e, n = mt(e, {
322
320
  skeletonAvatarCls: `${t}-avatar`,
323
321
  skeletonTitleCls: `${t}-title`,
324
322
  skeletonParagraphCls: `${t}-paragraph`,
@@ -331,10 +329,10 @@ const Va = (e) => {
331
329
  skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
332
330
  skeletonLoadingMotionDuration: "1.4s"
333
331
  });
334
- return [Qa(n)];
335
- }, Za, {
332
+ return [Za(n)];
333
+ }, Ja, {
336
334
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
337
- }), Ja = (e) => {
335
+ }), en = (e) => {
338
336
  const {
339
337
  prefixCls: t,
340
338
  className: a,
@@ -344,17 +342,17 @@ const Va = (e) => {
344
342
  size: s = "default"
345
343
  } = e, {
346
344
  getPrefixCls: i
347
- } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
345
+ } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
348
346
  [`${c}-active`]: r
349
- }, a, n, g, f);
347
+ }, a, n, m, g);
350
348
  return d(/* @__PURE__ */ l.createElement("div", {
351
349
  className: C
352
350
  }, /* @__PURE__ */ l.createElement(qe, Object.assign({
353
351
  prefixCls: `${c}-avatar`,
354
352
  shape: o,
355
353
  size: s
356
- }, b))));
357
- }, en = Ja, tn = (e) => {
354
+ }, v))));
355
+ }, tn = (e) => {
358
356
  const {
359
357
  prefixCls: t,
360
358
  className: a,
@@ -364,17 +362,17 @@ const Va = (e) => {
364
362
  size: s = "default"
365
363
  } = e, {
366
364
  getPrefixCls: i
367
- } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
365
+ } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
368
366
  [`${c}-active`]: r,
369
367
  [`${c}-block`]: o
370
- }, a, n, g, f);
368
+ }, a, n, m, g);
371
369
  return d(/* @__PURE__ */ l.createElement("div", {
372
370
  className: C
373
371
  }, /* @__PURE__ */ l.createElement(qe, Object.assign({
374
372
  prefixCls: `${c}-button`,
375
373
  size: s
376
- }, b))));
377
- }, an = tn, nn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", rn = (e) => {
374
+ }, v))));
375
+ }, an = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", nn = (e) => {
378
376
  const {
379
377
  prefixCls: t,
380
378
  className: a,
@@ -383,11 +381,11 @@ const Va = (e) => {
383
381
  active: o
384
382
  } = e, {
385
383
  getPrefixCls: s
386
- } = l.useContext(be), i = s("skeleton", t), [c, d, g] = ze(i), f = E(i, `${i}-element`, {
384
+ } = l.useContext(ve), i = s("skeleton", t), [c, d, m] = ze(i), g = E(i, `${i}-element`, {
387
385
  [`${i}-active`]: o
388
- }, a, n, d, g);
386
+ }, a, n, d, m);
389
387
  return c(/* @__PURE__ */ l.createElement("div", {
390
- className: f
388
+ className: g
391
389
  }, /* @__PURE__ */ l.createElement("div", {
392
390
  className: E(`${i}-image`, a),
393
391
  style: r
@@ -396,10 +394,10 @@ const Va = (e) => {
396
394
  xmlns: "http://www.w3.org/2000/svg",
397
395
  className: `${i}-image-svg`
398
396
  }, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
399
- d: nn,
397
+ d: an,
400
398
  className: `${i}-image-path`
401
399
  })))));
402
- }, on = rn, ln = (e) => {
400
+ }, rn = (e) => {
403
401
  const {
404
402
  prefixCls: t,
405
403
  className: a,
@@ -409,17 +407,17 @@ const Va = (e) => {
409
407
  size: s = "default"
410
408
  } = e, {
411
409
  getPrefixCls: i
412
- } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
410
+ } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
413
411
  [`${c}-active`]: r,
414
412
  [`${c}-block`]: o
415
- }, a, n, g, f);
413
+ }, a, n, m, g);
416
414
  return d(/* @__PURE__ */ l.createElement("div", {
417
415
  className: C
418
416
  }, /* @__PURE__ */ l.createElement(qe, Object.assign({
419
417
  prefixCls: `${c}-input`,
420
418
  size: s
421
- }, b))));
422
- }, sn = ln, cn = (e) => {
419
+ }, v))));
420
+ }, on = (e) => {
423
421
  const {
424
422
  prefixCls: t,
425
423
  className: a,
@@ -429,16 +427,16 @@ const Va = (e) => {
429
427
  children: s
430
428
  } = e, {
431
429
  getPrefixCls: i
432
- } = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = E(c, `${c}-element`, {
430
+ } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = E(c, `${c}-element`, {
433
431
  [`${c}-active`]: o
434
- }, g, a, n, f);
432
+ }, m, a, n, g);
435
433
  return d(/* @__PURE__ */ l.createElement("div", {
436
- className: b
434
+ className: v
437
435
  }, /* @__PURE__ */ l.createElement("div", {
438
436
  className: E(`${c}-image`, a),
439
437
  style: r
440
438
  }, s)));
441
- }, dn = cn, un = (e, t) => {
439
+ }, ln = (e, t) => {
442
440
  const {
443
441
  width: a,
444
442
  rows: n = 2
@@ -447,7 +445,7 @@ const Va = (e) => {
447
445
  return a[e];
448
446
  if (n - 1 === e)
449
447
  return a;
450
- }, vn = (e) => {
448
+ }, sn = (e) => {
451
449
  const {
452
450
  prefixCls: t,
453
451
  className: a,
@@ -458,7 +456,7 @@ const Va = (e) => {
458
456
  /* @__PURE__ */ l.createElement("li", {
459
457
  key: i,
460
458
  style: {
461
- width: un(i, e)
459
+ width: ln(i, e)
462
460
  }
463
461
  })
464
462
  ));
@@ -466,7 +464,7 @@ const Va = (e) => {
466
464
  className: E(t, a),
467
465
  style: n
468
466
  }, o);
469
- }, fn = vn, gn = (e) => {
467
+ }, cn = (e) => {
470
468
  let {
471
469
  prefixCls: t,
472
470
  className: a,
@@ -482,11 +480,11 @@ const Va = (e) => {
482
480
  }, r)
483
481
  })
484
482
  );
485
- }, mn = gn;
483
+ };
486
484
  function st(e) {
487
485
  return e && typeof e == "object" ? e : {};
488
486
  }
489
- function bn(e, t) {
487
+ function dn(e, t) {
490
488
  return e && !t ? {
491
489
  size: "large",
492
490
  shape: "square"
@@ -495,14 +493,14 @@ function bn(e, t) {
495
493
  shape: "circle"
496
494
  };
497
495
  }
498
- function pn(e, t) {
496
+ function un(e, t) {
499
497
  return !e && t ? {
500
498
  width: "38%"
501
499
  } : e && t ? {
502
500
  width: "50%"
503
501
  } : {};
504
502
  }
505
- function hn(e, t) {
503
+ function fn(e, t) {
506
504
  const a = {};
507
505
  return (!e || !t) && (a.width = "61%"), !e && t ? a.rows = 3 : a.rows = 2, a;
508
506
  }
@@ -517,21 +515,21 @@ const Ee = (e) => {
517
515
  avatar: i = !1,
518
516
  title: c = !0,
519
517
  paragraph: d = !0,
520
- active: g,
521
- round: f
518
+ active: m,
519
+ round: g
522
520
  } = e, {
523
- getPrefixCls: b,
521
+ getPrefixCls: v,
524
522
  direction: C,
525
- skeleton: T
526
- } = l.useContext(be), p = b("skeleton", t), [O, y, S] = ze(p);
523
+ skeleton: N
524
+ } = l.useContext(ve), p = v("skeleton", t), [O, y, S] = ze(p);
527
525
  if (a || !("loading" in e)) {
528
526
  const P = !!i, z = !!c, j = !!d;
529
- let k;
527
+ let G;
530
528
  if (P) {
531
529
  const w = Object.assign(Object.assign({
532
530
  prefixCls: `${p}-avatar`
533
- }, bn(z, j)), st(i));
534
- k = /* @__PURE__ */ l.createElement("div", {
531
+ }, dn(z, j)), st(i));
532
+ G = /* @__PURE__ */ l.createElement("div", {
535
533
  className: `${p}-header`
536
534
  }, /* @__PURE__ */ l.createElement(qe, Object.assign({}, w)));
537
535
  }
@@ -539,60 +537,50 @@ const Ee = (e) => {
539
537
  if (z || j) {
540
538
  let w;
541
539
  if (z) {
542
- const m = Object.assign(Object.assign({
540
+ const b = Object.assign(Object.assign({
543
541
  prefixCls: `${p}-title`
544
- }, pn(P, j)), st(c));
545
- w = /* @__PURE__ */ l.createElement(mn, Object.assign({}, m));
542
+ }, un(P, j)), st(c));
543
+ w = /* @__PURE__ */ l.createElement(cn, Object.assign({}, b));
546
544
  }
547
- let N;
545
+ let T;
548
546
  if (j) {
549
- const m = Object.assign(Object.assign({
547
+ const b = Object.assign(Object.assign({
550
548
  prefixCls: `${p}-paragraph`
551
- }, hn(P, z)), st(d));
552
- N = /* @__PURE__ */ l.createElement(fn, Object.assign({}, m));
549
+ }, fn(P, z)), st(d));
550
+ T = /* @__PURE__ */ l.createElement(sn, Object.assign({}, b));
553
551
  }
554
552
  D = /* @__PURE__ */ l.createElement("div", {
555
553
  className: `${p}-content`
556
- }, w, N);
554
+ }, w, T);
557
555
  }
558
- const R = E(p, {
556
+ const I = E(p, {
559
557
  [`${p}-with-avatar`]: P,
560
- [`${p}-active`]: g,
558
+ [`${p}-active`]: m,
561
559
  [`${p}-rtl`]: C === "rtl",
562
- [`${p}-round`]: f
563
- }, T == null ? void 0 : T.className, n, r, y, S);
560
+ [`${p}-round`]: g
561
+ }, N == null ? void 0 : N.className, n, r, y, S);
564
562
  return O(/* @__PURE__ */ l.createElement("div", {
565
- className: R,
566
- style: Object.assign(Object.assign({}, T == null ? void 0 : T.style), o)
567
- }, k, D));
563
+ className: I,
564
+ style: Object.assign(Object.assign({}, N == null ? void 0 : N.style), o)
565
+ }, G, D));
568
566
  }
569
567
  return s ?? null;
570
568
  };
571
- Ee.Button = an;
569
+ Ee.Button = tn;
572
570
  Ee.Avatar = en;
573
- Ee.Input = sn;
574
- Ee.Image = on;
575
- Ee.Node = dn;
571
+ Ee.Input = rn;
572
+ Ee.Image = nn;
573
+ Ee.Node = on;
576
574
  process.env.NODE_ENV !== "production" && (Ee.displayName = "Skeleton");
577
- const $n = Ee;
578
- var yn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
579
- const Sn = yn;
580
- var Cn = function(t, a) {
581
- return /* @__PURE__ */ l.createElement(Ga, he({}, t, {
582
- ref: a,
583
- icon: Sn
584
- }));
585
- }, ea = /* @__PURE__ */ l.forwardRef(Cn);
586
- process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
587
- const xn = ea, Xe = /* @__PURE__ */ Pa(null);
588
- var _n = function(t) {
589
- var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, g = U(), f = B(g, 2), b = f[0], C = f[1], T = ee(), p = Ea.useCallback(function(y) {
575
+ const Xe = /* @__PURE__ */ Pa(null);
576
+ var gn = function(t) {
577
+ var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, m = U(), g = B(m, 2), v = g[0], C = g[1], N = ee(), p = Ea.useCallback(function(y) {
590
578
  return typeof i == "function" ? i(y) : typeof i == "number" ? i : y;
591
579
  }, [i]);
592
580
  function O() {
593
- Dt.cancel(T.current);
581
+ Dt.cancel(N.current);
594
582
  }
595
- return me(function() {
583
+ return be(function() {
596
584
  var y = {};
597
585
  if (a)
598
586
  if (n) {
@@ -601,35 +589,35 @@ var _n = function(t) {
601
589
  d === "start" && (y[S] = a[S]), d === "center" && (y[S] = a[S] + a.width / 2, y.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (y[S] = a[S] + a.width, y.transform = "translateX(-100%)");
602
590
  } else
603
591
  y.height = p(a.height), d === "start" && (y.top = a.top), d === "center" && (y.top = a.top + a.height / 2, y.transform = "translateY(-50%)"), d === "end" && (y.top = a.top + a.height, y.transform = "translateY(-100%)");
604
- return O(), T.current = Dt(function() {
592
+ return O(), N.current = Dt(function() {
605
593
  C(y);
606
594
  }), O;
607
595
  }, [a, n, r, d, p]), {
608
- style: b
596
+ style: v
609
597
  };
610
- }, kt = {
598
+ }, Gt = {
611
599
  width: 0,
612
600
  height: 0,
613
601
  left: 0,
614
602
  top: 0
615
603
  };
616
- function wn(e, t, a) {
604
+ function mn(e, t, a) {
617
605
  return Qt(function() {
618
- for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || kt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
606
+ for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || Gt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
619
607
  var c = e[i].key, d = t.get(c);
620
608
  if (!d) {
621
- var g;
622
- d = t.get((g = e[i - 1]) === null || g === void 0 ? void 0 : g.key) || kt;
609
+ var m;
610
+ d = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || Gt;
623
611
  }
624
- var f = r.get(c) || le({}, d);
625
- f.right = s - f.left - f.width, r.set(c, f);
612
+ var g = r.get(c) || le({}, d);
613
+ g.right = s - g.left - g.width, r.set(c, g);
626
614
  }
627
615
  return r;
628
616
  }, [e.map(function(n) {
629
617
  return n.key;
630
618
  }).join("_"), t, a]);
631
619
  }
632
- function Gt(e, t) {
620
+ function Wt(e, t) {
633
621
  var a = l.useRef(e), n = l.useState({}), r = B(n, 2), o = r[1];
634
622
  function s(i) {
635
623
  var c = typeof i == "function" ? i(a.current) : i;
@@ -637,27 +625,27 @@ function Gt(e, t) {
637
625
  }
638
626
  return [a.current, s];
639
627
  }
640
- var En = 0.1, Wt = 0.01, Ge = 20, Vt = Math.pow(0.995, Ge);
641
- function Pn(e, t) {
642
- var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], g = U(0), f = B(g, 2), b = f[0], C = f[1], T = U(), p = B(T, 2), O = p[0], y = p[1], S = ee();
628
+ var bn = 0.1, kt = 0.01, We = 20, Vt = Math.pow(0.995, We);
629
+ function vn(e, t) {
630
+ var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], m = U(0), g = B(m, 2), v = g[0], C = g[1], N = U(), p = B(N, 2), O = p[0], y = p[1], S = ee();
643
631
  function P(w) {
644
- var N = w.touches[0], m = N.screenX, h = N.screenY;
632
+ var T = w.touches[0], b = T.screenX, h = T.screenY;
645
633
  o({
646
- x: m,
634
+ x: b,
647
635
  y: h
648
636
  }), window.clearInterval(S.current);
649
637
  }
650
638
  function z(w) {
651
639
  if (r) {
652
- var N = w.touches[0], m = N.screenX, h = N.screenY;
640
+ var T = w.touches[0], b = T.screenX, h = T.screenY;
653
641
  o({
654
- x: m,
642
+ x: b,
655
643
  y: h
656
644
  });
657
- var _ = m - r.x, x = h - r.y;
645
+ var _ = b - r.x, x = h - r.y;
658
646
  t(_, x);
659
- var G = Date.now();
660
- d(G), C(G - c), y({
647
+ var W = Date.now();
648
+ d(W), C(W - c), y({
661
649
  x: _,
662
650
  y: x
663
651
  });
@@ -665,66 +653,65 @@ function Pn(e, t) {
665
653
  }
666
654
  function j() {
667
655
  if (r && (o(null), y(null), O)) {
668
- var w = O.x / b, N = O.y / b, m = Math.abs(w), h = Math.abs(N);
669
- if (Math.max(m, h) < En)
670
- return;
671
- var _ = w, x = N;
656
+ var w = O.x / v, T = O.y / v, b = Math.abs(w), h = Math.abs(T);
657
+ if (Math.max(b, h) < bn) return;
658
+ var _ = w, x = T;
672
659
  S.current = window.setInterval(function() {
673
- if (Math.abs(_) < Wt && Math.abs(x) < Wt) {
660
+ if (Math.abs(_) < kt && Math.abs(x) < kt) {
674
661
  window.clearInterval(S.current);
675
662
  return;
676
663
  }
677
- _ *= Vt, x *= Vt, t(_ * Ge, x * Ge);
678
- }, Ge);
664
+ _ *= Vt, x *= Vt, t(_ * We, x * We);
665
+ }, We);
679
666
  }
680
667
  }
681
- var k = ee();
668
+ var G = ee();
682
669
  function D(w) {
683
- var N = w.deltaX, m = w.deltaY, h = 0, _ = Math.abs(N), x = Math.abs(m);
684
- _ === x ? h = k.current === "x" ? N : m : _ > x ? (h = N, k.current = "x") : (h = m, k.current = "y"), t(-h, -h) && w.preventDefault();
670
+ var T = w.deltaX, b = w.deltaY, h = 0, _ = Math.abs(T), x = Math.abs(b);
671
+ _ === x ? h = G.current === "x" ? T : b : _ > x ? (h = T, G.current = "x") : (h = b, G.current = "y"), t(-h, -h) && w.preventDefault();
685
672
  }
686
- var R = ee(null);
687
- R.current = {
673
+ var I = ee(null);
674
+ I.current = {
688
675
  onTouchStart: P,
689
676
  onTouchMove: z,
690
677
  onTouchEnd: j,
691
678
  onWheel: D
692
679
  }, l.useEffect(function() {
693
680
  function w(_) {
694
- R.current.onTouchStart(_);
681
+ I.current.onTouchStart(_);
695
682
  }
696
- function N(_) {
697
- R.current.onTouchMove(_);
683
+ function T(_) {
684
+ I.current.onTouchMove(_);
698
685
  }
699
- function m(_) {
700
- R.current.onTouchEnd(_);
686
+ function b(_) {
687
+ I.current.onTouchEnd(_);
701
688
  }
702
689
  function h(_) {
703
- R.current.onWheel(_);
690
+ I.current.onWheel(_);
704
691
  }
705
- return document.addEventListener("touchmove", N, {
692
+ return document.addEventListener("touchmove", T, {
706
693
  passive: !1
707
- }), document.addEventListener("touchend", m, {
694
+ }), document.addEventListener("touchend", b, {
708
695
  passive: !0
709
696
  }), e.current.addEventListener("touchstart", w, {
710
697
  passive: !0
711
698
  }), e.current.addEventListener("wheel", h, {
712
699
  passive: !1
713
700
  }), function() {
714
- document.removeEventListener("touchmove", N), document.removeEventListener("touchend", m);
701
+ document.removeEventListener("touchmove", T), document.removeEventListener("touchend", b);
715
702
  };
716
703
  }, []);
717
704
  }
718
705
  function ta(e) {
719
706
  var t = U(0), a = B(t, 2), n = a[0], r = a[1], o = ee(0), s = ee();
720
- return s.current = e, Na(function() {
707
+ return s.current = e, Ta(function() {
721
708
  var i;
722
709
  (i = s.current) === null || i === void 0 || i.call(s);
723
710
  }, [n]), function() {
724
711
  o.current === n && (o.current += 1, r(o.current));
725
712
  };
726
713
  }
727
- function On(e) {
714
+ function pn(e) {
728
715
  var t = ee([]), a = U({}), n = B(a, 2), r = n[1], o = ee(typeof e == "function" ? e() : e), s = ta(function() {
729
716
  var c = o.current;
730
717
  t.current.forEach(function(d) {
@@ -743,27 +730,27 @@ var Kt = {
743
730
  top: 0,
744
731
  right: 0
745
732
  };
746
- function Tn(e, t, a, n, r, o, s) {
747
- var i = s.tabs, c = s.tabPosition, d = s.rtl, g, f, b;
748
- return ["top", "bottom"].includes(c) ? (g = "width", f = d ? "right" : "left", b = Math.abs(a)) : (g = "height", f = "top", b = -a), Qt(function() {
733
+ function hn(e, t, a, n, r, o, s) {
734
+ var i = s.tabs, c = s.tabPosition, d = s.rtl, m, g, v;
735
+ return ["top", "bottom"].includes(c) ? (m = "width", g = d ? "right" : "left", v = Math.abs(a)) : (m = "height", g = "top", v = -a), Qt(function() {
749
736
  if (!i.length)
750
737
  return [0, 0];
751
- for (var C = i.length, T = C, p = 0; p < C; p += 1) {
738
+ for (var C = i.length, N = C, p = 0; p < C; p += 1) {
752
739
  var O = e.get(i[p].key) || Kt;
753
- if (Math.floor(O[f] + O[g]) > Math.floor(b + t)) {
754
- T = p - 1;
740
+ if (Math.floor(O[g] + O[m]) > Math.floor(v + t)) {
741
+ N = p - 1;
755
742
  break;
756
743
  }
757
744
  }
758
745
  for (var y = 0, S = C - 1; S >= 0; S -= 1) {
759
746
  var P = e.get(i[S].key) || Kt;
760
- if (P[f] < b) {
747
+ if (P[g] < v) {
761
748
  y = S + 1;
762
749
  break;
763
750
  }
764
751
  }
765
- return y >= T ? [0, 0] : [y, T];
766
- }, [e, t, n, r, o, b, c, i.map(function(C) {
752
+ return y >= N ? [0, 0] : [y, N];
753
+ }, [e, t, n, r, o, v, c, i.map(function(C) {
767
754
  return C.key;
768
755
  }).join("_"), d]);
769
756
  }
@@ -773,9 +760,9 @@ function qt(e) {
773
760
  t[n] = a;
774
761
  })) : t = e, JSON.stringify(t);
775
762
  }
776
- var Nn = "TABS_DQ";
763
+ var $n = "TABS_DQ";
777
764
  function aa(e) {
778
- return String(e).replace(/"/g, Nn);
765
+ return String(e).replace(/"/g, $n);
779
766
  }
780
767
  function ht(e, t, a, n) {
781
768
  return (
@@ -805,97 +792,97 @@ var na = /* @__PURE__ */ l.forwardRef(function(e, t) {
805
792
  if (!r)
806
793
  return null;
807
794
  var o, s = {};
808
- return vt(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
795
+ return ft(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
809
796
  className: "".concat(n, "-extra-content"),
810
797
  ref: t
811
798
  }, o) : null;
812
799
  });
813
800
  process.env.NODE_ENV !== "production" && (ut.displayName = "ExtraContent");
814
- var In = /* @__PURE__ */ l.forwardRef(function(e, t) {
815
- var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, g = e.className, f = e.editable, b = e.tabBarGutter, C = e.rtl, T = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], k = U(null), D = B(k, 2), R = D[0], w = D[1], N = c.icon, m = N === void 0 ? "More" : N, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = R !== null ? "".concat(h, "-").concat(R) : null, G = o == null ? void 0 : o.dropdownAriaLabel;
816
- function X(I, H) {
817
- I.preventDefault(), I.stopPropagation(), f.onEdit("remove", {
801
+ var yn = /* @__PURE__ */ l.forwardRef(function(e, t) {
802
+ var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, m = e.className, g = e.editable, v = e.tabBarGutter, C = e.rtl, N = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], G = U(null), D = B(G, 2), I = D[0], w = D[1], T = c.icon, b = T === void 0 ? "More" : T, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = I !== null ? "".concat(h, "-").concat(I) : null, W = o == null ? void 0 : o.dropdownAriaLabel;
803
+ function X(R, H) {
804
+ R.preventDefault(), R.stopPropagation(), g.onEdit("remove", {
818
805
  key: H,
819
- event: I
806
+ event: R
820
807
  });
821
808
  }
822
- var v = /* @__PURE__ */ l.createElement(Da, {
809
+ var f = /* @__PURE__ */ l.createElement(Da, {
823
810
  onClick: function(H) {
824
- var W = H.key, Q = H.domEvent;
825
- p(W, Q), j(!1);
811
+ var k = H.key, Q = H.domEvent;
812
+ p(k, Q), j(!1);
826
813
  },
827
814
  prefixCls: "".concat(_, "-menu"),
828
815
  id: h,
829
816
  tabIndex: -1,
830
817
  role: "listbox",
831
818
  "aria-activedescendant": x,
832
- selectedKeys: [R],
833
- "aria-label": G !== void 0 ? G : "expanded dropdown"
834
- }, r.map(function(I) {
835
- var H = I.closable, W = I.disabled, Q = I.closeIcon, Z = I.key, ne = I.label, ae = ht(H, Q, f, W);
819
+ selectedKeys: [I],
820
+ "aria-label": W !== void 0 ? W : "expanded dropdown"
821
+ }, r.map(function(R) {
822
+ var H = R.closable, k = R.disabled, Q = R.closeIcon, Z = R.key, ne = R.label, ae = ht(H, Q, g, k);
836
823
  return /* @__PURE__ */ l.createElement(Aa, {
837
824
  key: Z,
838
825
  id: "".concat(h, "-").concat(Z),
839
826
  role: "option",
840
827
  "aria-controls": n && "".concat(n, "-panel-").concat(Z),
841
- disabled: W
828
+ disabled: k
842
829
  }, /* @__PURE__ */ l.createElement("span", null, ne), ae && /* @__PURE__ */ l.createElement("button", {
843
830
  type: "button",
844
- "aria-label": T || "remove",
831
+ "aria-label": N || "remove",
845
832
  tabIndex: 0,
846
833
  className: "".concat(_, "-menu-item-remove"),
847
- onClick: function(fe) {
848
- fe.stopPropagation(), X(fe, Z);
834
+ onClick: function(ge) {
835
+ ge.stopPropagation(), X(ge, Z);
849
836
  }
850
- }, Q || f.removeIcon || "×"));
837
+ }, Q || g.removeIcon || "×"));
851
838
  }));
852
- function Y(I) {
839
+ function Y(R) {
853
840
  for (var H = r.filter(function(ae) {
854
841
  return !ae.disabled;
855
- }), W = H.findIndex(function(ae) {
856
- return ae.key === R;
842
+ }), k = H.findIndex(function(ae) {
843
+ return ae.key === I;
857
844
  }) || 0, Q = H.length, Z = 0; Z < Q; Z += 1) {
858
- W = (W + I + Q) % Q;
859
- var ne = H[W];
845
+ k = (k + R + Q) % Q;
846
+ var ne = H[k];
860
847
  if (!ne.disabled) {
861
848
  w(ne.key);
862
849
  return;
863
850
  }
864
851
  }
865
852
  }
866
- function se(I) {
867
- var H = I.which;
853
+ function se(R) {
854
+ var H = R.which;
868
855
  if (!z) {
869
- [Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), I.preventDefault());
856
+ [Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), R.preventDefault());
870
857
  return;
871
858
  }
872
859
  switch (H) {
873
860
  case Ce.UP:
874
- Y(-1), I.preventDefault();
861
+ Y(-1), R.preventDefault();
875
862
  break;
876
863
  case Ce.DOWN:
877
- Y(1), I.preventDefault();
864
+ Y(1), R.preventDefault();
878
865
  break;
879
866
  case Ce.ESC:
880
867
  j(!1);
881
868
  break;
882
869
  case Ce.SPACE:
883
870
  case Ce.ENTER:
884
- R !== null && p(R, I);
871
+ I !== null && p(I, R);
885
872
  break;
886
873
  }
887
874
  }
888
- me(function() {
889
- var I = document.getElementById(x);
890
- I && I.scrollIntoView && I.scrollIntoView(!1);
891
- }, [R]), me(function() {
875
+ be(function() {
876
+ var R = document.getElementById(x);
877
+ R && R.scrollIntoView && R.scrollIntoView(!1);
878
+ }, [I]), be(function() {
892
879
  z || w(null);
893
880
  }, [z]);
894
- var q = te({}, C ? "marginRight" : "marginLeft", b);
881
+ var q = te({}, C ? "marginRight" : "marginLeft", v);
895
882
  r.length || (q.visibility = "hidden", q.order = 1);
896
883
  var J = E(te({}, "".concat(_, "-rtl"), C)), ce = s ? null : /* @__PURE__ */ l.createElement(Ha, he({
897
884
  prefixCls: _,
898
- overlay: v,
885
+ overlay: f,
899
886
  visible: r.length ? z : !1,
900
887
  onVisibleChange: j,
901
888
  overlayClassName: E(J, y),
@@ -913,27 +900,27 @@ var In = /* @__PURE__ */ l.forwardRef(function(e, t) {
913
900
  id: "".concat(n, "-more"),
914
901
  "aria-expanded": z,
915
902
  onKeyDown: se
916
- }, m));
903
+ }, b));
917
904
  return /* @__PURE__ */ l.createElement("div", {
918
- className: E("".concat(a, "-nav-operations"), g),
905
+ className: E("".concat(a, "-nav-operations"), m),
919
906
  style: d,
920
907
  ref: t
921
908
  }, ce, /* @__PURE__ */ l.createElement(na, {
922
909
  prefixCls: a,
923
910
  locale: o,
924
- editable: f
911
+ editable: g
925
912
  }));
926
913
  });
927
- const Rn = /* @__PURE__ */ l.memo(In, function(e, t) {
914
+ const Sn = /* @__PURE__ */ l.memo(yn, function(e, t) {
928
915
  return (
929
916
  // https://github.com/ant-design/ant-design/issues/32544
930
917
  // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
931
918
  t.tabMoving
932
919
  );
933
920
  });
934
- var zn = function(t) {
935
- var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, g = s.closeIcon, f = s.icon, b = t.closable, C = t.renderWrapper, T = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, k = t.style, D = t.tabCount, R = t.currentPosition, w = "".concat(a, "-tab"), N = ht(b, g, p, d);
936
- function m(X) {
921
+ var Cn = function(t) {
922
+ var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, m = s.closeIcon, g = s.icon, v = t.closable, C = t.renderWrapper, N = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, G = t.style, D = t.tabCount, I = t.currentPosition, w = "".concat(a, "-tab"), T = ht(v, m, p, d);
923
+ function b(X) {
937
924
  d || O(X);
938
925
  }
939
926
  function h(X) {
@@ -943,17 +930,17 @@ var zn = function(t) {
943
930
  });
944
931
  }
945
932
  var _ = l.useMemo(function() {
946
- return f && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
947
- }, [c, f]), x = l.useRef(null);
933
+ return g && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
934
+ }, [c, g]), x = l.useRef(null);
948
935
  l.useEffect(function() {
949
936
  o && x.current && x.current.focus();
950
937
  }, [o]);
951
- var G = /* @__PURE__ */ l.createElement("div", {
938
+ var W = /* @__PURE__ */ l.createElement("div", {
952
939
  key: i,
953
940
  "data-node-key": aa(i),
954
- className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), N), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
955
- style: k,
956
- onClick: m
941
+ className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), T), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
942
+ style: G,
943
+ onClick: b
957
944
  }, /* @__PURE__ */ l.createElement("div", {
958
945
  ref: x,
959
946
  role: "tab",
@@ -963,8 +950,8 @@ var zn = function(t) {
963
950
  "aria-controls": n && "".concat(n, "-panel-").concat(i),
964
951
  "aria-disabled": d,
965
952
  tabIndex: d ? null : r ? 0 : -1,
966
- onClick: function(v) {
967
- v.stopPropagation(), m(v);
953
+ onClick: function(f) {
954
+ f.stopPropagation(), b(f);
968
955
  },
969
956
  onKeyDown: P,
970
957
  onMouseDown: z,
@@ -980,22 +967,22 @@ var zn = function(t) {
980
967
  overflow: "hidden",
981
968
  opacity: 0
982
969
  }
983
- }, "Tab ".concat(R, " of ").concat(D)), f && /* @__PURE__ */ l.createElement("span", {
970
+ }, "Tab ".concat(I, " of ").concat(D)), g && /* @__PURE__ */ l.createElement("span", {
984
971
  className: "".concat(w, "-icon")
985
- }, f), c && _), N && /* @__PURE__ */ l.createElement("button", {
972
+ }, g), c && _), T && /* @__PURE__ */ l.createElement("button", {
986
973
  type: "button",
987
- "aria-label": T || "remove",
974
+ "aria-label": N || "remove",
988
975
  tabIndex: r ? 0 : -1,
989
976
  className: "".concat(w, "-remove"),
990
- onClick: function(v) {
991
- v.stopPropagation(), h(v);
977
+ onClick: function(f) {
978
+ f.stopPropagation(), h(f);
992
979
  }
993
- }, g || p.removeIcon || "×"));
994
- return C ? C(G) : G;
995
- }, Mn = function(t, a) {
996
- var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, g = i.left, f = i.top;
997
- return Math.abs(c - n) < 1 ? [c, d, g - a.left, f - a.top] : [n, r, s, o];
998
- }, Ie = function(t) {
980
+ }, m || p.removeIcon || "×"));
981
+ return C ? C(W) : W;
982
+ }, xn = function(t, a) {
983
+ var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, m = i.left, g = i.top;
984
+ return Math.abs(c - n) < 1 ? [c, d, m - a.left, g - a.top] : [n, r, s, o];
985
+ }, Re = function(t) {
999
986
  var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, s = o === void 0 ? 0 : o;
1000
987
  if (t.current) {
1001
988
  var i = t.current.getBoundingClientRect(), c = i.width, d = i.height;
@@ -1003,19 +990,19 @@ var zn = function(t) {
1003
990
  return [c, d];
1004
991
  }
1005
992
  return [r, s];
1006
- }, ke = function(t, a) {
993
+ }, Ge = function(t, a) {
1007
994
  return t[a ? 0 : 1];
1008
995
  }, Ft = /* @__PURE__ */ l.forwardRef(function(e, t) {
1009
- var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, g = e.locale, f = e.tabPosition, b = e.tabBarGutter, C = e.children, T = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), k = ee(null), D = ee(null), R = ee(null), w = ee(null), N = ee(null), m = f === "top" || f === "bottom", h = Gt(0, function(M, $) {
1010
- m && p && p({
996
+ var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, m = e.locale, g = e.tabPosition, v = e.tabBarGutter, C = e.children, N = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), G = ee(null), D = ee(null), I = ee(null), w = ee(null), T = ee(null), b = g === "top" || g === "bottom", h = Wt(0, function(M, $) {
997
+ b && p && p({
1011
998
  direction: M > $ ? "left" : "right"
1012
999
  });
1013
- }), _ = B(h, 2), x = _[0], G = _[1], X = Gt(0, function(M, $) {
1014
- !m && p && p({
1000
+ }), _ = B(h, 2), x = _[0], W = _[1], X = Wt(0, function(M, $) {
1001
+ !b && p && p({
1015
1002
  direction: M > $ ? "top" : "bottom"
1016
1003
  });
1017
- }), v = B(X, 2), Y = v[0], se = v[1], q = U([0, 0]), J = B(q, 2), ce = J[0], I = J[1], H = U([0, 0]), W = B(H, 2), Q = W[0], Z = W[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], fe = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = On(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = wn(P, F, Q[0]), _e = ke(ce, m), Me = ke(Q, m), Ye = ke($e, m), St = ke(L, m), Ct = Math.floor(_e) < Math.floor(Me + Ye), ge = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
1018
- m && i ? (Se = 0, we = Math.max(0, Me - ge)) : (Se = Math.min(0, ge - Me), we = 0);
1004
+ }), f = B(X, 2), Y = f[0], se = f[1], q = U([0, 0]), J = B(q, 2), ce = J[0], R = J[1], H = U([0, 0]), k = B(H, 2), Q = k[0], Z = k[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], ge = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = pn(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = mn(P, F, Q[0]), _e = Ge(ce, b), Me = Ge(Q, b), Ye = Ge($e, b), St = Ge(L, b), Ct = Math.floor(_e) < Math.floor(Me + Ye), me = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
1005
+ b && i ? (Se = 0, we = Math.max(0, Me - me)) : (Se = Math.min(0, me - Me), we = 0);
1019
1006
  function Qe(M) {
1020
1007
  return M < Se ? Se : M > we ? we : M;
1021
1008
  }
@@ -1026,25 +1013,25 @@ var zn = function(t) {
1026
1013
  function et() {
1027
1014
  Ze.current && clearTimeout(Ze.current);
1028
1015
  }
1029
- Pn(D, function(M, $) {
1030
- function A(K, ve) {
1016
+ vn(D, function(M, $) {
1017
+ function A(K, fe) {
1031
1018
  K(function(ie) {
1032
- var Te = Qe(ie + ve);
1033
- return Te;
1019
+ var Ne = Qe(ie + fe);
1020
+ return Ne;
1034
1021
  });
1035
1022
  }
1036
- return Ct ? (m ? A(G, M) : A(se, $), et(), Je(), !0) : !1;
1037
- }), me(function() {
1023
+ return Ct ? (b ? A(W, M) : A(se, $), et(), Je(), !0) : !1;
1024
+ }), be(function() {
1038
1025
  return et(), De && (Ze.current = setTimeout(function() {
1039
1026
  _t(0);
1040
1027
  }, 100)), et;
1041
1028
  }, [De]);
1042
- var da = Tn(
1029
+ var da = hn(
1043
1030
  ue,
1044
1031
  // Container
1045
- ge,
1032
+ me,
1046
1033
  // Transform
1047
- m ? x : Y,
1034
+ b ? x : Y,
1048
1035
  // Tabs
1049
1036
  Me,
1050
1037
  // Add
@@ -1054,7 +1041,7 @@ var zn = function(t) {
1054
1041
  le(le({}, e), {}, {
1055
1042
  tabs: P
1056
1043
  })
1057
- ), wt = B(da, 2), ua = wt[0], va = wt[1], Et = Ia(function() {
1044
+ ), wt = B(da, 2), ua = wt[0], fa = wt[1], Et = Ra(function() {
1058
1045
  var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s, $ = ue.get(M) || {
1059
1046
  width: 0,
1060
1047
  height: 0,
@@ -1062,41 +1049,41 @@ var zn = function(t) {
1062
1049
  right: 0,
1063
1050
  top: 0
1064
1051
  };
1065
- if (m) {
1052
+ if (b) {
1066
1053
  var A = x;
1067
- i ? $.right < x ? A = $.right : $.right + $.width > x + ge && (A = $.right + $.width - ge) : $.left < -x ? A = -$.left : $.left + $.width > -x + ge && (A = -($.left + $.width - ge)), se(0), G(Qe(A));
1054
+ i ? $.right < x ? A = $.right : $.right + $.width > x + me && (A = $.right + $.width - me) : $.left < -x ? A = -$.left : $.left + $.width > -x + me && (A = -($.left + $.width - me)), se(0), W(Qe(A));
1068
1055
  } else {
1069
1056
  var K = Y;
1070
- $.top < -Y ? K = -$.top : $.top + $.height > -Y + ge && (K = -($.top + $.height - ge)), G(0), se(Qe(K));
1057
+ $.top < -Y ? K = -$.top : $.top + $.height > -Y + me && (K = -($.top + $.height - me)), W(0), se(Qe(K));
1071
1058
  }
1072
- }), fa = U(), Pt = B(fa, 2), Pe = Pt[0], Le = Pt[1], ga = U(!1), Ot = B(ga, 2), ma = Ot[0], Tt = Ot[1], pe = P.filter(function(M) {
1059
+ }), ga = U(), Pt = B(ga, 2), Pe = Pt[0], Le = Pt[1], ma = U(!1), Ot = B(ma, 2), ba = Ot[0], Nt = Ot[1], pe = P.filter(function(M) {
1073
1060
  return !M.disabled;
1074
1061
  }).map(function(M) {
1075
1062
  return M.key;
1076
1063
  }), Oe = function($) {
1077
- var A = pe.indexOf(Pe || s), K = pe.length, ve = (A + $ + K) % K, ie = pe[ve];
1064
+ var A = pe.indexOf(Pe || s), K = pe.length, fe = (A + $ + K) % K, ie = pe[fe];
1078
1065
  Le(ie);
1079
- }, ba = function($) {
1080
- var A = $.code, K = i && m, ve = pe[0], ie = pe[pe.length - 1];
1066
+ }, va = function($) {
1067
+ var A = $.code, K = i && b, fe = pe[0], ie = pe[pe.length - 1];
1081
1068
  switch (A) {
1082
1069
  case "ArrowLeft": {
1083
- m && Oe(K ? 1 : -1);
1070
+ b && Oe(K ? 1 : -1);
1084
1071
  break;
1085
1072
  }
1086
1073
  case "ArrowRight": {
1087
- m && Oe(K ? -1 : 1);
1074
+ b && Oe(K ? -1 : 1);
1088
1075
  break;
1089
1076
  }
1090
1077
  case "ArrowUp": {
1091
- $.preventDefault(), m || Oe(-1);
1078
+ $.preventDefault(), b || Oe(-1);
1092
1079
  break;
1093
1080
  }
1094
1081
  case "ArrowDown": {
1095
- $.preventDefault(), m || Oe(1);
1082
+ $.preventDefault(), b || Oe(1);
1096
1083
  break;
1097
1084
  }
1098
1085
  case "Home": {
1099
- $.preventDefault(), Le(ve);
1086
+ $.preventDefault(), Le(fe);
1100
1087
  break;
1101
1088
  }
1102
1089
  case "End": {
@@ -1105,26 +1092,26 @@ var zn = function(t) {
1105
1092
  }
1106
1093
  case "Enter":
1107
1094
  case "Space": {
1108
- $.preventDefault(), T(Pe, $);
1095
+ $.preventDefault(), N(Pe, $);
1109
1096
  break;
1110
1097
  }
1111
1098
  case "Backspace":
1112
1099
  case "Delete": {
1113
- var Te = pe.indexOf(Pe), oe = P.find(function(Ne) {
1114
- return Ne.key === Pe;
1100
+ var Ne = pe.indexOf(Pe), oe = P.find(function(Te) {
1101
+ return Te.key === Pe;
1115
1102
  }), nt = ht(oe == null ? void 0 : oe.closable, oe == null ? void 0 : oe.closeIcon, d, oe == null ? void 0 : oe.disabled);
1116
1103
  nt && ($.preventDefault(), $.stopPropagation(), d.onEdit("remove", {
1117
1104
  key: Pe,
1118
1105
  event: $
1119
- }), Te === pe.length - 1 ? Oe(-1) : Oe(1));
1106
+ }), Ne === pe.length - 1 ? Oe(-1) : Oe(1));
1120
1107
  break;
1121
1108
  }
1122
1109
  }
1123
1110
  }, Ae = {};
1124
- m ? Ae[i ? "marginRight" : "marginLeft"] = b : Ae.marginTop = b;
1125
- var Nt = P.map(function(M, $) {
1111
+ b ? Ae[i ? "marginRight" : "marginLeft"] = v : Ae.marginTop = v;
1112
+ var Tt = P.map(function(M, $) {
1126
1113
  var A = M.key;
1127
- return /* @__PURE__ */ l.createElement(zn, {
1114
+ return /* @__PURE__ */ l.createElement(Cn, {
1128
1115
  id: r,
1129
1116
  prefixCls: S,
1130
1117
  key: A,
@@ -1135,34 +1122,34 @@ var zn = function(t) {
1135
1122
  active: A === s,
1136
1123
  focus: A === Pe,
1137
1124
  renderWrapper: C,
1138
- removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
1125
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
1139
1126
  tabCount: pe.length,
1140
1127
  currentPosition: $ + 1,
1141
- onClick: function(ve) {
1142
- T(A, ve);
1128
+ onClick: function(fe) {
1129
+ N(A, fe);
1143
1130
  },
1144
- onKeyDown: ba,
1131
+ onKeyDown: va,
1145
1132
  onFocus: function() {
1146
- ma || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
1133
+ ba || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
1147
1134
  },
1148
1135
  onBlur: function() {
1149
1136
  Le(void 0);
1150
1137
  },
1151
1138
  onMouseDown: function() {
1152
- Tt(!0);
1139
+ Nt(!0);
1153
1140
  },
1154
1141
  onMouseUp: function() {
1155
- Tt(!1);
1142
+ Nt(!1);
1156
1143
  }
1157
1144
  });
1158
- }), It = function() {
1145
+ }), Rt = function() {
1159
1146
  return V(function() {
1160
- var $, A = /* @__PURE__ */ new Map(), K = ($ = R.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
1161
- return P.forEach(function(ve) {
1162
- var ie, Te = ve.key, oe = (ie = R.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Te), '"]'));
1147
+ var $, A = /* @__PURE__ */ new Map(), K = ($ = I.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
1148
+ return P.forEach(function(fe) {
1149
+ var ie, Ne = fe.key, oe = (ie = I.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Ne), '"]'));
1163
1150
  if (oe) {
1164
- var nt = Mn(oe, K), Ne = B(nt, 4), Sa = Ne[0], Ca = Ne[1], xa = Ne[2], _a = Ne[3];
1165
- A.set(Te, {
1151
+ var nt = xn(oe, K), Te = B(nt, 4), Sa = Te[0], Ca = Te[1], xa = Te[2], _a = Te[3];
1152
+ A.set(Ne, {
1166
1153
  width: Sa,
1167
1154
  height: Ca,
1168
1155
  left: xa,
@@ -1172,38 +1159,38 @@ var zn = function(t) {
1172
1159
  }), A;
1173
1160
  });
1174
1161
  };
1175
- me(function() {
1176
- It();
1162
+ be(function() {
1163
+ Rt();
1177
1164
  }, [P.map(function(M) {
1178
1165
  return M.key;
1179
1166
  }).join("_")]);
1180
1167
  var He = ta(function() {
1181
- var M = Ie(z), $ = Ie(j), A = Ie(k);
1182
- I([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
1183
- var K = Ie(N);
1184
- fe(K);
1185
- var ve = Ie(w);
1186
- de(ve);
1187
- var ie = Ie(R);
1188
- Z([ie[0] - K[0], ie[1] - K[1]]), It();
1189
- }), pa = P.slice(0, ua), ha = P.slice(va + 1), Rt = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = _n({
1168
+ var M = Re(z), $ = Re(j), A = Re(G);
1169
+ R([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
1170
+ var K = Re(T);
1171
+ ge(K);
1172
+ var fe = Re(w);
1173
+ de(fe);
1174
+ var ie = Re(I);
1175
+ Z([ie[0] - K[0], ie[1] - K[1]]), Rt();
1176
+ }), pa = P.slice(0, ua), ha = P.slice(fa + 1), It = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = gn({
1190
1177
  activeTabOffset: zt,
1191
- horizontal: m,
1178
+ horizontal: b,
1192
1179
  indicator: O,
1193
1180
  rtl: i
1194
1181
  }), ya = $a.style;
1195
- me(function() {
1182
+ be(function() {
1196
1183
  Et();
1197
- }, [s, Se, we, qt(zt), qt(ue), m]), me(function() {
1184
+ }, [s, Se, we, qt(zt), qt(ue), b]), be(function() {
1198
1185
  He();
1199
1186
  }, [i]);
1200
- var Mt = !!Rt.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
1201
- return m ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
1187
+ var Mt = !!It.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
1188
+ return b ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
1202
1189
  onResize: He
1203
1190
  }, /* @__PURE__ */ l.createElement("div", {
1204
- ref: Ra(t, z),
1191
+ ref: Ia(t, z),
1205
1192
  role: "tablist",
1206
- "aria-orientation": m ? "horizontal" : "vertical",
1193
+ "aria-orientation": b ? "horizontal" : "vertical",
1207
1194
  className: E("".concat(S, "-nav"), a),
1208
1195
  style: n,
1209
1196
  onKeyDown: function() {
@@ -1222,32 +1209,32 @@ var zn = function(t) {
1222
1209
  }, /* @__PURE__ */ l.createElement(rt, {
1223
1210
  onResize: He
1224
1211
  }, /* @__PURE__ */ l.createElement("div", {
1225
- ref: R,
1212
+ ref: I,
1226
1213
  className: "".concat(S, "-nav-list"),
1227
1214
  style: {
1228
1215
  transform: "translate(".concat(x, "px, ").concat(Y, "px)"),
1229
1216
  transition: De ? "none" : void 0
1230
1217
  }
1231
- }, Nt, /* @__PURE__ */ l.createElement(na, {
1232
- ref: N,
1218
+ }, Tt, /* @__PURE__ */ l.createElement(na, {
1219
+ ref: T,
1233
1220
  prefixCls: S,
1234
- locale: g,
1221
+ locale: m,
1235
1222
  editable: d,
1236
- style: le(le({}, Nt.length === 0 ? void 0 : Ae), {}, {
1223
+ style: le(le({}, Tt.length === 0 ? void 0 : Ae), {}, {
1237
1224
  visibility: Mt ? "hidden" : null
1238
1225
  })
1239
1226
  }), /* @__PURE__ */ l.createElement("div", {
1240
1227
  className: E("".concat(S, "-ink-bar"), te({}, "".concat(S, "-ink-bar-animated"), o.inkBar)),
1241
1228
  style: ya
1242
- }))))), /* @__PURE__ */ l.createElement(Rn, he({}, e, {
1243
- removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
1229
+ }))))), /* @__PURE__ */ l.createElement(Sn, he({}, e, {
1230
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
1244
1231
  ref: w,
1245
1232
  prefixCls: S,
1246
- tabs: Rt,
1233
+ tabs: It,
1247
1234
  className: !Mt && sa,
1248
1235
  tabMoving: !!De
1249
1236
  })), /* @__PURE__ */ l.createElement(ut, {
1250
- ref: k,
1237
+ ref: G,
1251
1238
  position: "right",
1252
1239
  extra: c,
1253
1240
  prefixCls: S
@@ -1266,18 +1253,18 @@ var zn = function(t) {
1266
1253
  }, c);
1267
1254
  });
1268
1255
  process.env.NODE_ENV !== "production" && ($t.displayName = "TabPane");
1269
- var Ln = ["renderTabBar"], jn = ["label", "key"], ra = function(t) {
1270
- var a = t.renderTabBar, n = We(t, Ln), r = l.useContext(Xe), o = r.tabs;
1256
+ var _n = ["renderTabBar"], wn = ["label", "key"], ra = function(t) {
1257
+ var a = t.renderTabBar, n = ke(t, _n), r = l.useContext(Xe), o = r.tabs;
1271
1258
  if (a) {
1272
1259
  var s = le(le({}, n), {}, {
1273
1260
  // Legacy support. We do not use this actually
1274
1261
  panes: o.map(function(i) {
1275
- var c = i.label, d = i.key, g = We(i, jn);
1262
+ var c = i.label, d = i.key, m = ke(i, wn);
1276
1263
  return /* @__PURE__ */ l.createElement($t, he({
1277
1264
  tab: c,
1278
1265
  key: d,
1279
1266
  tabKey: d
1280
- }, g));
1267
+ }, m));
1281
1268
  })
1282
1269
  });
1283
1270
  return a(s, Ft);
@@ -1285,36 +1272,36 @@ var Ln = ["renderTabBar"], jn = ["label", "key"], ra = function(t) {
1285
1272
  return /* @__PURE__ */ l.createElement(Ft, n);
1286
1273
  };
1287
1274
  process.env.NODE_ENV !== "production" && (ra.displayName = "TabNavListWrapper");
1288
- var Bn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Dn = function(t) {
1289
- var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, g = r.tabPane, f = "".concat(c, "-tabpane");
1275
+ var En = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Pn = function(t) {
1276
+ var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, m = r.tabPane, g = "".concat(c, "-tabpane");
1290
1277
  return /* @__PURE__ */ l.createElement("div", {
1291
1278
  className: E("".concat(c, "-content-holder"))
1292
1279
  }, /* @__PURE__ */ l.createElement("div", {
1293
- className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), g))
1294
- }, d.map(function(b) {
1295
- var C = b.key, T = b.forceRender, p = b.style, O = b.className, y = b.destroyInactiveTabPane, S = We(b, Bn), P = C === n;
1280
+ className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), m))
1281
+ }, d.map(function(v) {
1282
+ var C = v.key, N = v.forceRender, p = v.style, O = v.className, y = v.destroyInactiveTabPane, S = ke(v, En), P = C === n;
1296
1283
  return /* @__PURE__ */ l.createElement(za, he({
1297
1284
  key: C,
1298
1285
  visible: P,
1299
- forceRender: T,
1286
+ forceRender: N,
1300
1287
  removeOnLeave: !!(s || y),
1301
- leavedClassName: "".concat(f, "-hidden")
1288
+ leavedClassName: "".concat(g, "-hidden")
1302
1289
  }, r.tabPaneMotion), function(z, j) {
1303
- var k = z.style, D = z.className;
1290
+ var G = z.style, D = z.className;
1304
1291
  return /* @__PURE__ */ l.createElement($t, he({}, S, {
1305
- prefixCls: f,
1292
+ prefixCls: g,
1306
1293
  id: a,
1307
1294
  tabKey: C,
1308
- animated: g,
1295
+ animated: m,
1309
1296
  active: P,
1310
- style: le(le({}, p), k),
1297
+ style: le(le({}, p), G),
1311
1298
  className: E(O, D),
1312
1299
  ref: j
1313
1300
  }));
1314
1301
  });
1315
1302
  })));
1316
1303
  };
1317
- function An() {
1304
+ function On() {
1318
1305
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1319
1306
  inkBar: !0,
1320
1307
  tabPane: !1
@@ -1327,15 +1314,15 @@ function An() {
1327
1314
  tabPane: !1
1328
1315
  } : t = le({
1329
1316
  inkBar: !0
1330
- }, vt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
1317
+ }, ft(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
1331
1318
  }
1332
- var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
1333
- var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, g = e.editable, f = e.animated, b = e.tabPosition, C = b === void 0 ? "top" : b, T = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, k = e.onTabClick, D = e.onTabScroll, R = e.getPopupContainer, w = e.popupClassName, N = e.indicator, m = We(e, Hn), h = l.useMemo(function() {
1319
+ var Nn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
1320
+ var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, m = e.editable, g = e.animated, v = e.tabPosition, C = v === void 0 ? "top" : v, N = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, G = e.onTabClick, D = e.onTabScroll, I = e.getPopupContainer, w = e.popupClassName, T = e.indicator, b = ke(e, Nn), h = l.useMemo(function() {
1334
1321
  return (s || []).filter(function(L) {
1335
- return L && vt(L) === "object" && "key" in L;
1322
+ return L && ft(L) === "object" && "key" in L;
1336
1323
  });
1337
- }, [s]), _ = i === "rtl", x = An(f), G = U(!1), X = B(G, 2), v = X[0], Y = X[1];
1338
- me(function() {
1324
+ }, [s]), _ = i === "rtl", x = On(g), W = U(!1), X = B(W, 2), f = X[0], Y = X[1];
1325
+ be(function() {
1339
1326
  Y(La());
1340
1327
  }, []);
1341
1328
  var se = Bt(function() {
@@ -1344,31 +1331,31 @@ var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
1344
1331
  }, {
1345
1332
  value: c,
1346
1333
  defaultValue: d
1347
- }), q = B(se, 2), J = q[0], ce = q[1], I = U(function() {
1334
+ }), q = B(se, 2), J = q[0], ce = q[1], R = U(function() {
1348
1335
  return h.findIndex(function(L) {
1349
1336
  return L.key === J;
1350
1337
  });
1351
- }), H = B(I, 2), W = H[0], Q = H[1];
1352
- me(function() {
1338
+ }), H = B(R, 2), k = H[0], Q = H[1];
1339
+ be(function() {
1353
1340
  var L = h.findIndex(function(xe) {
1354
1341
  return xe.key === J;
1355
1342
  });
1356
1343
  if (L === -1) {
1357
1344
  var de;
1358
- L = Math.max(0, Math.min(W, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
1345
+ L = Math.max(0, Math.min(k, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
1359
1346
  }
1360
1347
  Q(L);
1361
1348
  }, [h.map(function(L) {
1362
1349
  return L.key;
1363
- }).join("_"), J, W]);
1350
+ }).join("_"), J, k]);
1364
1351
  var Z = Bt(null, {
1365
1352
  value: a
1366
1353
  }), ne = B(Z, 2), ae = ne[0], $e = ne[1];
1367
- me(function() {
1354
+ be(function() {
1368
1355
  a || ($e("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Xt)), Xt += 1);
1369
1356
  }, []);
1370
- function fe(L, de) {
1371
- k == null || k(L, de);
1357
+ function ge(L, de) {
1358
+ G == null || G(L, de);
1372
1359
  var xe = L !== J;
1373
1360
  ce(L), xe && (j == null || j(L));
1374
1361
  }
@@ -1378,20 +1365,20 @@ var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
1378
1365
  animated: x,
1379
1366
  tabPosition: C,
1380
1367
  rtl: _,
1381
- mobile: v
1368
+ mobile: f
1382
1369
  }, ye = le(le({}, re), {}, {
1383
- editable: g,
1370
+ editable: m,
1384
1371
  locale: y,
1385
1372
  more: S,
1386
- tabBarGutter: T,
1387
- onTabClick: fe,
1373
+ tabBarGutter: N,
1374
+ onTabClick: ge,
1388
1375
  onTabScroll: D,
1389
1376
  extra: O,
1390
1377
  style: p,
1391
1378
  panes: null,
1392
- getPopupContainer: R,
1379
+ getPopupContainer: I,
1393
1380
  popupClassName: w,
1394
- indicator: N
1381
+ indicator: T
1395
1382
  });
1396
1383
  return /* @__PURE__ */ l.createElement(Xe.Provider, {
1397
1384
  value: {
@@ -1401,22 +1388,22 @@ var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
1401
1388
  }, /* @__PURE__ */ l.createElement("div", he({
1402
1389
  ref: t,
1403
1390
  id: a,
1404
- className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), g), "".concat(r, "-rtl"), _), o)
1405
- }, m), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
1391
+ className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), f), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), _), o)
1392
+ }, b), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
1406
1393
  renderTabBar: z
1407
- })), /* @__PURE__ */ l.createElement(Dn, he({
1394
+ })), /* @__PURE__ */ l.createElement(Pn, he({
1408
1395
  destroyInactiveTabPane: P
1409
1396
  }, re, {
1410
1397
  animated: x
1411
1398
  }))));
1412
1399
  });
1413
1400
  process.env.NODE_ENV !== "production" && (ia.displayName = "Tabs");
1414
- const kn = {
1401
+ const Tn = {
1415
1402
  motionAppear: !1,
1416
1403
  motionEnter: !0,
1417
1404
  motionLeave: !0
1418
1405
  };
1419
- function Gn(e) {
1406
+ function Rn(e) {
1420
1407
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1421
1408
  inkBar: !0,
1422
1409
  tabPane: !1
@@ -1429,33 +1416,31 @@ function Gn(e) {
1429
1416
  tabPane: !0
1430
1417
  } : a = Object.assign({
1431
1418
  inkBar: !0
1432
- }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, kn), {
1419
+ }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Tn), {
1433
1420
  motionName: ja(e, "switch")
1434
1421
  })), a;
1435
1422
  }
1436
- var Wn = globalThis && globalThis.__rest || function(e, t) {
1423
+ var In = function(e, t) {
1437
1424
  var a = {};
1438
- for (var n in e)
1439
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
1440
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1441
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1442
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
1425
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
1426
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1427
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
1443
1428
  return a;
1444
1429
  };
1445
- function Vn(e) {
1430
+ function zn(e) {
1446
1431
  return e.filter((t) => t);
1447
1432
  }
1448
- function Kn(e, t) {
1449
- if (process.env.NODE_ENV !== "production" && mt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
1433
+ function Mn(e, t) {
1434
+ if (process.env.NODE_ENV !== "production" && bt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
1450
1435
  return e;
1451
- const a = Ta(t).map((n) => {
1436
+ const a = Na(t).map((n) => {
1452
1437
  if (/* @__PURE__ */ l.isValidElement(n)) {
1453
1438
  const {
1454
1439
  key: r,
1455
1440
  props: o
1456
1441
  } = n, s = o || {}, {
1457
1442
  tab: i
1458
- } = s, c = Wn(s, ["tab"]);
1443
+ } = s, c = In(s, ["tab"]);
1459
1444
  return Object.assign(Object.assign({
1460
1445
  key: String(r)
1461
1446
  }, c), {
@@ -1464,9 +1449,9 @@ function Kn(e, t) {
1464
1449
  }
1465
1450
  return null;
1466
1451
  });
1467
- return Vn(a);
1452
+ return zn(a);
1468
1453
  }
1469
- const qn = (e) => {
1454
+ const Ln = (e) => {
1470
1455
  const {
1471
1456
  componentCls: t,
1472
1457
  motionDurationSlow: a
@@ -1503,7 +1488,7 @@ const qn = (e) => {
1503
1488
  // Follow code may reuse in other components
1504
1489
  [At(e, "slide-up"), At(e, "slide-down")]
1505
1490
  ];
1506
- }, Fn = qn, Xn = (e) => {
1491
+ }, jn = (e) => {
1507
1492
  const {
1508
1493
  componentCls: t,
1509
1494
  tabsCardPadding: a,
@@ -1607,14 +1592,14 @@ const qn = (e) => {
1607
1592
  }
1608
1593
  }
1609
1594
  };
1610
- }, Un = (e) => {
1595
+ }, Bn = (e) => {
1611
1596
  const {
1612
1597
  componentCls: t,
1613
1598
  itemHoverColor: a,
1614
1599
  dropdownEdgeChildVerticalPadding: n
1615
1600
  } = e;
1616
1601
  return {
1617
- [`${t}-dropdown`]: Object.assign(Object.assign({}, bt(e)), {
1602
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, vt(e)), {
1618
1603
  position: "absolute",
1619
1604
  top: -9999,
1620
1605
  left: {
@@ -1687,7 +1672,7 @@ const qn = (e) => {
1687
1672
  }
1688
1673
  })
1689
1674
  };
1690
- }, Yn = (e) => {
1675
+ }, Dn = (e) => {
1691
1676
  const {
1692
1677
  componentCls: t,
1693
1678
  margin: a,
@@ -1890,7 +1875,7 @@ const qn = (e) => {
1890
1875
  }
1891
1876
  }
1892
1877
  };
1893
- }, Qn = (e) => {
1878
+ }, An = (e) => {
1894
1879
  const {
1895
1880
  componentCls: t,
1896
1881
  cardPaddingSM: a,
@@ -1960,7 +1945,7 @@ const qn = (e) => {
1960
1945
  }
1961
1946
  }
1962
1947
  };
1963
- }, Zn = (e) => {
1948
+ }, Hn = (e) => {
1964
1949
  const {
1965
1950
  componentCls: t,
1966
1951
  itemActiveColor: a,
@@ -2052,7 +2037,7 @@ const qn = (e) => {
2052
2037
  }
2053
2038
  }
2054
2039
  };
2055
- }, Jn = (e) => {
2040
+ }, Gn = (e) => {
2056
2041
  const {
2057
2042
  componentCls: t,
2058
2043
  tabsHorizontalItemMarginRTL: a,
@@ -2144,7 +2129,7 @@ const qn = (e) => {
2144
2129
  }
2145
2130
  }
2146
2131
  };
2147
- }, er = (e) => {
2132
+ }, Wn = (e) => {
2148
2133
  const {
2149
2134
  componentCls: t,
2150
2135
  tabsCardPadding: a,
@@ -2155,7 +2140,7 @@ const qn = (e) => {
2155
2140
  colorBorderSecondary: i
2156
2141
  } = e;
2157
2142
  return {
2158
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, bt(e)), {
2143
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, vt(e)), {
2159
2144
  display: "flex",
2160
2145
  // ========================== Navigation ==========================
2161
2146
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -2250,7 +2235,7 @@ const qn = (e) => {
2250
2235
  background: e.inkBarColor,
2251
2236
  pointerEvents: "none"
2252
2237
  }
2253
- }), Zn(e)), {
2238
+ }), Hn(e)), {
2254
2239
  // =========================== TabPanes ===========================
2255
2240
  [`${t}-content`]: {
2256
2241
  position: "relative",
@@ -2277,7 +2262,7 @@ const qn = (e) => {
2277
2262
  }
2278
2263
  }
2279
2264
  };
2280
- }, tr = (e) => {
2265
+ }, kn = (e) => {
2281
2266
  const t = e.controlHeightLG;
2282
2267
  return {
2283
2268
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -2308,8 +2293,8 @@ const qn = (e) => {
2308
2293
  itemActiveColor: e.colorPrimaryActive,
2309
2294
  cardGutter: e.marginXXS / 2
2310
2295
  };
2311
- }, ar = ft("Tabs", (e) => {
2312
- const t = gt(e, {
2296
+ }, Vn = gt("Tabs", (e) => {
2297
+ const t = mt(e, {
2313
2298
  // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
2314
2299
  tabsCardPadding: e.cardPadding,
2315
2300
  dropdownEdgeChildVerticalPadding: e.paddingXXS,
@@ -2319,25 +2304,22 @@ const qn = (e) => {
2319
2304
  tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
2320
2305
  tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
2321
2306
  });
2322
- return [Qn(t), Jn(t), Yn(t), Un(t), Xn(t), er(t), Fn(t)];
2323
- }, tr), oa = () => null;
2307
+ return [An(t), Gn(t), Dn(t), Bn(t), jn(t), Wn(t), Ln(t)];
2308
+ }, kn), oa = () => null;
2324
2309
  process.env.NODE_ENV !== "production" && (oa.displayName = "DeprecatedTabPane");
2325
- const nr = oa;
2326
- var rr = globalThis && globalThis.__rest || function(e, t) {
2310
+ var Kn = function(e, t) {
2327
2311
  var a = {};
2328
- for (var n in e)
2329
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2330
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2331
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2332
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2312
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2313
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2314
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2333
2315
  return a;
2334
2316
  };
2335
2317
  const yt = (e) => {
2336
- var t, a, n, r, o, s, i, c, d, g, f;
2318
+ var t, a, n, r, o, s, i, c, d, m, g;
2337
2319
  const {
2338
- type: b,
2320
+ type: v,
2339
2321
  className: C,
2340
- rootClassName: T,
2322
+ rootClassName: N,
2341
2323
  size: p,
2342
2324
  onEdit: O,
2343
2325
  hideAdd: y,
@@ -2345,24 +2327,24 @@ const yt = (e) => {
2345
2327
  addIcon: P,
2346
2328
  removeIcon: z,
2347
2329
  moreIcon: j,
2348
- more: k,
2330
+ more: G,
2349
2331
  popupClassName: D,
2350
- children: R,
2332
+ children: I,
2351
2333
  items: w,
2352
- animated: N,
2353
- style: m,
2334
+ animated: T,
2335
+ style: b,
2354
2336
  indicatorSize: h,
2355
2337
  indicator: _
2356
- } = e, x = rr(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
2357
- prefixCls: G
2338
+ } = e, x = Kn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
2339
+ prefixCls: W
2358
2340
  } = x, {
2359
2341
  direction: X,
2360
- tabs: v,
2342
+ tabs: f,
2361
2343
  getPrefixCls: Y,
2362
2344
  getPopupContainer: se
2363
- } = l.useContext(be), q = Y("tabs", G), J = Wa(q), [ce, I, H] = ar(q, J);
2364
- let W;
2365
- b === "editable-card" && (W = {
2345
+ } = l.useContext(ve), q = Y("tabs", W), J = ka(q), [ce, R, H] = Vn(q, J);
2346
+ let k;
2347
+ v === "editable-card" && (k = {
2366
2348
  onEdit: (re, ye) => {
2367
2349
  let {
2368
2350
  key: L,
@@ -2370,18 +2352,18 @@ const yt = (e) => {
2370
2352
  } = ye;
2371
2353
  O == null || O(re === "add" ? de : L, re);
2372
2354
  },
2373
- removeIcon: (t = z ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
2374
- addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(xn, null),
2355
+ removeIcon: (t = z ?? (f == null ? void 0 : f.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
2356
+ addIcon: (P ?? (f == null ? void 0 : f.addIcon)) || /* @__PURE__ */ l.createElement(ea, null),
2375
2357
  showAdd: y !== !0
2376
2358
  });
2377
2359
  const Q = Y();
2378
2360
  if (process.env.NODE_ENV !== "production") {
2379
- const re = mt("Tabs");
2380
- process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(h || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
2361
+ const re = bt("Tabs");
2362
+ process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(h || f != null && f.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
2381
2363
  }
2382
- const Z = Jt(p), ne = Kn(w, R), ae = Gn(q, N), $e = Object.assign(Object.assign({}, v == null ? void 0 : v.style), m), fe = {
2383
- align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = v == null ? void 0 : v.indicator) === null || n === void 0 ? void 0 : n.align,
2384
- size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = v == null ? void 0 : v.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
2364
+ const Z = Jt(p), ne = Mn(w, I), ae = Rn(q, T), $e = Object.assign(Object.assign({}, f == null ? void 0 : f.style), b), ge = {
2365
+ align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = f == null ? void 0 : f.indicator) === null || n === void 0 ? void 0 : n.align,
2366
+ size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = f == null ? void 0 : f.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : f == null ? void 0 : f.indicatorSize
2385
2367
  };
2386
2368
  return ce(/* @__PURE__ */ l.createElement(ia, Object.assign({
2387
2369
  direction: X,
@@ -2390,49 +2372,46 @@ const yt = (e) => {
2390
2372
  items: ne,
2391
2373
  className: E({
2392
2374
  [`${q}-${Z}`]: Z,
2393
- [`${q}-card`]: ["card", "editable-card"].includes(b),
2394
- [`${q}-editable-card`]: b === "editable-card",
2375
+ [`${q}-card`]: ["card", "editable-card"].includes(v),
2376
+ [`${q}-editable-card`]: v === "editable-card",
2395
2377
  [`${q}-centered`]: S
2396
- }, v == null ? void 0 : v.className, C, T, I, H, J),
2397
- popupClassName: E(D, I, H, J),
2378
+ }, f == null ? void 0 : f.className, C, N, R, H, J),
2379
+ popupClassName: E(D, R, H, J),
2398
2380
  style: $e,
2399
- editable: W,
2381
+ editable: k,
2400
2382
  more: Object.assign({
2401
- icon: (f = (g = (d = (c = v == null ? void 0 : v.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : v == null ? void 0 : v.moreIcon) !== null && g !== void 0 ? g : j) !== null && f !== void 0 ? f : /* @__PURE__ */ l.createElement(ka, null),
2383
+ icon: (g = (m = (d = (c = f == null ? void 0 : f.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : f == null ? void 0 : f.moreIcon) !== null && m !== void 0 ? m : j) !== null && g !== void 0 ? g : /* @__PURE__ */ l.createElement(Ga, null),
2402
2384
  transitionName: `${Q}-slide-up`
2403
- }, k),
2385
+ }, G),
2404
2386
  prefixCls: q,
2405
2387
  animated: ae,
2406
- indicator: fe
2388
+ indicator: ge
2407
2389
  })));
2408
2390
  };
2409
- yt.TabPane = nr;
2391
+ yt.TabPane = oa;
2410
2392
  process.env.NODE_ENV !== "production" && (yt.displayName = "Tabs");
2411
- const ir = yt;
2412
- var or = globalThis && globalThis.__rest || function(e, t) {
2393
+ var qn = function(e, t) {
2413
2394
  var a = {};
2414
- for (var n in e)
2415
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2416
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2417
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2418
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2395
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2396
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2397
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2419
2398
  return a;
2420
2399
  };
2421
- const lr = (e) => {
2400
+ const la = (e) => {
2422
2401
  var {
2423
2402
  prefixCls: t,
2424
2403
  className: a,
2425
2404
  hoverable: n = !0
2426
- } = e, r = or(e, ["prefixCls", "className", "hoverable"]);
2405
+ } = e, r = qn(e, ["prefixCls", "className", "hoverable"]);
2427
2406
  const {
2428
2407
  getPrefixCls: o
2429
- } = l.useContext(be), s = o("card", t), i = E(`${s}-grid`, a, {
2408
+ } = l.useContext(ve), s = o("card", t), i = E(`${s}-grid`, a, {
2430
2409
  [`${s}-grid-hoverable`]: n
2431
2410
  });
2432
2411
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
2433
2412
  className: i
2434
2413
  }));
2435
- }, la = lr, sr = (e) => {
2414
+ }, Fn = (e) => {
2436
2415
  const {
2437
2416
  antCls: t,
2438
2417
  componentCls: a,
@@ -2483,7 +2462,7 @@ const lr = (e) => {
2483
2462
  }
2484
2463
  }
2485
2464
  });
2486
- }, cr = (e) => {
2465
+ }, Xn = (e) => {
2487
2466
  const {
2488
2467
  cardPaddingBase: t,
2489
2468
  colorBorderSecondary: a,
@@ -2509,7 +2488,7 @@ const lr = (e) => {
2509
2488
  boxShadow: n
2510
2489
  }
2511
2490
  };
2512
- }, dr = (e) => {
2491
+ }, Un = (e) => {
2513
2492
  const {
2514
2493
  componentCls: t,
2515
2494
  iconCls: a,
@@ -2562,7 +2541,7 @@ const lr = (e) => {
2562
2541
  }
2563
2542
  }
2564
2543
  });
2565
- }, ur = (e) => Object.assign(Object.assign({
2544
+ }, Yn = (e) => Object.assign(Object.assign({
2566
2545
  margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
2567
2546
  display: "flex"
2568
2547
  }, Ke()), {
@@ -2584,7 +2563,7 @@ const lr = (e) => {
2584
2563
  "&-description": {
2585
2564
  color: e.colorTextDescription
2586
2565
  }
2587
- }), vr = (e) => {
2566
+ }), Qn = (e) => {
2588
2567
  const {
2589
2568
  componentCls: t,
2590
2569
  colorFillAlter: a,
@@ -2603,7 +2582,7 @@ const lr = (e) => {
2603
2582
  padding: `${u(e.padding)} ${u(r)}`
2604
2583
  }
2605
2584
  };
2606
- }, fr = (e) => {
2585
+ }, Zn = (e) => {
2607
2586
  const {
2608
2587
  componentCls: t
2609
2588
  } = e;
@@ -2613,7 +2592,7 @@ const lr = (e) => {
2613
2592
  userSelect: "none"
2614
2593
  }
2615
2594
  };
2616
- }, gr = (e) => {
2595
+ }, Jn = (e) => {
2617
2596
  const {
2618
2597
  componentCls: t,
2619
2598
  cardShadow: a,
@@ -2624,14 +2603,14 @@ const lr = (e) => {
2624
2603
  extraColor: i
2625
2604
  } = e;
2626
2605
  return {
2627
- [t]: Object.assign(Object.assign({}, bt(e)), {
2606
+ [t]: Object.assign(Object.assign({}, vt(e)), {
2628
2607
  position: "relative",
2629
2608
  background: e.colorBgContainer,
2630
2609
  borderRadius: e.borderRadiusLG,
2631
2610
  [`&:not(${t}-bordered)`]: {
2632
2611
  boxShadow: o
2633
2612
  },
2634
- [`${t}-head`]: sr(e),
2613
+ [`${t}-head`]: Fn(e),
2635
2614
  [`${t}-extra`]: {
2636
2615
  // https://stackoverflow.com/a/22429853/3040605
2637
2616
  marginInlineStart: "auto",
@@ -2643,7 +2622,7 @@ const lr = (e) => {
2643
2622
  padding: s,
2644
2623
  borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2645
2624
  }, Ke()),
2646
- [`${t}-grid`]: cr(e),
2625
+ [`${t}-grid`]: Xn(e),
2647
2626
  [`${t}-cover`]: {
2648
2627
  "> *": {
2649
2628
  display: "block",
@@ -2651,8 +2630,8 @@ const lr = (e) => {
2651
2630
  borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
2652
2631
  }
2653
2632
  },
2654
- [`${t}-actions`]: dr(e),
2655
- [`${t}-meta`]: ur(e)
2633
+ [`${t}-actions`]: Un(e),
2634
+ [`${t}-meta`]: Yn(e)
2656
2635
  }),
2657
2636
  [`${t}-bordered`]: {
2658
2637
  border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
@@ -2690,13 +2669,13 @@ const lr = (e) => {
2690
2669
  }
2691
2670
  }
2692
2671
  },
2693
- [`${t}-type-inner`]: vr(e),
2694
- [`${t}-loading`]: fr(e),
2672
+ [`${t}-type-inner`]: Qn(e),
2673
+ [`${t}-loading`]: Zn(e),
2695
2674
  [`${t}-rtl`]: {
2696
2675
  direction: "rtl"
2697
2676
  }
2698
2677
  };
2699
- }, mr = (e) => {
2678
+ }, er = (e) => {
2700
2679
  const {
2701
2680
  componentCls: t,
2702
2681
  bodyPaddingSM: a,
@@ -2730,7 +2709,7 @@ const lr = (e) => {
2730
2709
  }
2731
2710
  }
2732
2711
  };
2733
- }, br = (e) => {
2712
+ }, tr = (e) => {
2734
2713
  var t, a;
2735
2714
  return {
2736
2715
  headerBg: "transparent",
@@ -2748,8 +2727,8 @@ const lr = (e) => {
2748
2727
  bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
2749
2728
  headerPadding: (a = e.headerPadding) !== null && a !== void 0 ? a : e.paddingLG
2750
2729
  };
2751
- }, pr = ft("Card", (e) => {
2752
- const t = gt(e, {
2730
+ }, ar = gt("Card", (e) => {
2731
+ const t = mt(e, {
2753
2732
  cardShadow: e.boxShadowCard,
2754
2733
  cardHeadPadding: e.padding,
2755
2734
  cardPaddingBase: e.paddingLG,
@@ -2757,21 +2736,19 @@ const lr = (e) => {
2757
2736
  });
2758
2737
  return [
2759
2738
  // Style
2760
- gr(t),
2739
+ Jn(t),
2761
2740
  // Size
2762
- mr(t)
2741
+ er(t)
2763
2742
  ];
2764
- }, br);
2765
- var Ut = globalThis && globalThis.__rest || function(e, t) {
2743
+ }, tr);
2744
+ var Ut = function(e, t) {
2766
2745
  var a = {};
2767
- for (var n in e)
2768
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2769
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2770
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2771
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2746
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2747
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2748
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2772
2749
  return a;
2773
2750
  };
2774
- const hr = (e) => {
2751
+ const nr = (e) => {
2775
2752
  const {
2776
2753
  actionClasses: t,
2777
2754
  actions: a = [],
@@ -2789,7 +2766,7 @@ const hr = (e) => {
2789
2766
  key: s
2790
2767
  }, /* @__PURE__ */ l.createElement("span", null, r));
2791
2768
  }));
2792
- }, $r = /* @__PURE__ */ l.forwardRef((e, t) => {
2769
+ }, rr = /* @__PURE__ */ l.forwardRef((e, t) => {
2793
2770
  const {
2794
2771
  prefixCls: a,
2795
2772
  className: n,
@@ -2799,11 +2776,11 @@ const hr = (e) => {
2799
2776
  headStyle: i = {},
2800
2777
  bodyStyle: c = {},
2801
2778
  title: d,
2802
- loading: g,
2803
- bordered: f = !0,
2804
- size: b,
2779
+ loading: m,
2780
+ bordered: g = !0,
2781
+ size: v,
2805
2782
  type: C,
2806
- cover: T,
2783
+ cover: N,
2807
2784
  actions: p,
2808
2785
  tabList: O,
2809
2786
  children: y,
@@ -2811,16 +2788,16 @@ const hr = (e) => {
2811
2788
  defaultActiveTabKey: P,
2812
2789
  tabBarExtraContent: z,
2813
2790
  hoverable: j,
2814
- tabProps: k = {},
2791
+ tabProps: G = {},
2815
2792
  classNames: D,
2816
- styles: R
2793
+ styles: I
2817
2794
  } = e, w = Ut(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2818
- getPrefixCls: N,
2819
- direction: m,
2795
+ getPrefixCls: T,
2796
+ direction: b,
2820
2797
  card: h
2821
- } = l.useContext(be);
2798
+ } = l.useContext(ve);
2822
2799
  if (process.env.NODE_ENV !== "production") {
2823
- const F = mt("Card");
2800
+ const F = bt("Card");
2824
2801
  [["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((V) => {
2825
2802
  let [ue, _e] = V;
2826
2803
  F.deprecated(!(ue in e), ue, _e);
@@ -2832,30 +2809,30 @@ const hr = (e) => {
2832
2809
  }, x = (F) => {
2833
2810
  var V;
2834
2811
  return E((V = h == null ? void 0 : h.classNames) === null || V === void 0 ? void 0 : V[F], D == null ? void 0 : D[F]);
2835
- }, G = (F) => {
2812
+ }, W = (F) => {
2836
2813
  var V;
2837
- return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), R == null ? void 0 : R[F]);
2814
+ return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), I == null ? void 0 : I[F]);
2838
2815
  }, X = l.useMemo(() => {
2839
2816
  let F = !1;
2840
2817
  return l.Children.forEach(y, (V) => {
2841
2818
  (V == null ? void 0 : V.type) === la && (F = !0);
2842
2819
  }), F;
2843
- }, [y]), v = N("card", a), [Y, se, q] = pr(v), J = /* @__PURE__ */ l.createElement($n, {
2820
+ }, [y]), f = T("card", a), [Y, se, q] = ar(f), J = /* @__PURE__ */ l.createElement(Ee, {
2844
2821
  loading: !0,
2845
2822
  active: !0,
2846
2823
  paragraph: {
2847
2824
  rows: 4
2848
2825
  },
2849
2826
  title: !1
2850
- }, y), ce = S !== void 0, I = Object.assign(Object.assign({}, k), {
2827
+ }, y), ce = S !== void 0, R = Object.assign(Object.assign({}, G), {
2851
2828
  [ce ? "activeKey" : "defaultActiveKey"]: ce ? S : P,
2852
2829
  tabBarExtraContent: z
2853
2830
  });
2854
2831
  let H;
2855
- const W = Jt(b), Q = !W || W === "default" ? "large" : W, Z = O ? /* @__PURE__ */ l.createElement(ir, Object.assign({
2832
+ const k = Jt(v), Q = !k || k === "default" ? "large" : k, Z = O ? /* @__PURE__ */ l.createElement(yt, Object.assign({
2856
2833
  size: Q
2857
- }, I, {
2858
- className: `${v}-head-tabs`,
2834
+ }, R, {
2835
+ className: `${f}-head-tabs`,
2859
2836
  onChange: _,
2860
2837
  items: O.map((F) => {
2861
2838
  var {
@@ -2867,39 +2844,39 @@ const hr = (e) => {
2867
2844
  })
2868
2845
  })) : null;
2869
2846
  if (d || s || Z) {
2870
- const F = E(`${v}-head`, x("header")), V = E(`${v}-head-title`, x("title")), ue = E(`${v}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), G("header"));
2847
+ const F = E(`${f}-head`, x("header")), V = E(`${f}-head-title`, x("title")), ue = E(`${f}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), W("header"));
2871
2848
  H = /* @__PURE__ */ l.createElement("div", {
2872
2849
  className: F,
2873
2850
  style: _e
2874
2851
  }, /* @__PURE__ */ l.createElement("div", {
2875
- className: `${v}-head-wrapper`
2852
+ className: `${f}-head-wrapper`
2876
2853
  }, d && /* @__PURE__ */ l.createElement("div", {
2877
2854
  className: V,
2878
- style: G("title")
2855
+ style: W("title")
2879
2856
  }, d), s && /* @__PURE__ */ l.createElement("div", {
2880
2857
  className: ue,
2881
- style: G("extra")
2858
+ style: W("extra")
2882
2859
  }, s)), Z);
2883
2860
  }
2884
- const ne = E(`${v}-cover`, x("cover")), ae = T ? /* @__PURE__ */ l.createElement("div", {
2861
+ const ne = E(`${f}-cover`, x("cover")), ae = N ? /* @__PURE__ */ l.createElement("div", {
2885
2862
  className: ne,
2886
- style: G("cover")
2887
- }, T) : null, $e = E(`${v}-body`, x("body")), fe = Object.assign(Object.assign({}, c), G("body")), re = /* @__PURE__ */ l.createElement("div", {
2863
+ style: W("cover")
2864
+ }, N) : null, $e = E(`${f}-body`, x("body")), ge = Object.assign(Object.assign({}, c), W("body")), re = /* @__PURE__ */ l.createElement("div", {
2888
2865
  className: $e,
2889
- style: fe
2890
- }, g ? J : y), ye = E(`${v}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(hr, {
2866
+ style: ge
2867
+ }, m ? J : y), ye = E(`${f}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(nr, {
2891
2868
  actionClasses: ye,
2892
- actionStyle: G("actions"),
2869
+ actionStyle: W("actions"),
2893
2870
  actions: p
2894
- }) : null, de = Ve(w, ["onTabChange"]), xe = E(v, h == null ? void 0 : h.className, {
2895
- [`${v}-loading`]: g,
2896
- [`${v}-bordered`]: f,
2897
- [`${v}-hoverable`]: j,
2898
- [`${v}-contain-grid`]: X,
2899
- [`${v}-contain-tabs`]: O == null ? void 0 : O.length,
2900
- [`${v}-${W}`]: W,
2901
- [`${v}-type-${C}`]: !!C,
2902
- [`${v}-rtl`]: m === "rtl"
2871
+ }) : null, de = Ve(w, ["onTabChange"]), xe = E(f, h == null ? void 0 : h.className, {
2872
+ [`${f}-loading`]: m,
2873
+ [`${f}-bordered`]: g,
2874
+ [`${f}-hoverable`]: j,
2875
+ [`${f}-contain-grid`]: X,
2876
+ [`${f}-contain-tabs`]: O == null ? void 0 : O.length,
2877
+ [`${f}-${k}`]: k,
2878
+ [`${f}-type-${C}`]: !!C,
2879
+ [`${f}-rtl`]: b === "rtl"
2903
2880
  }, n, r, se, q), Be = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o);
2904
2881
  return Y(/* @__PURE__ */ l.createElement("div", Object.assign({
2905
2882
  ref: t
@@ -2907,42 +2884,40 @@ const hr = (e) => {
2907
2884
  className: xe,
2908
2885
  style: Be
2909
2886
  }), H, ae, re, L));
2910
- }), yr = $r;
2911
- var Sr = globalThis && globalThis.__rest || function(e, t) {
2887
+ });
2888
+ var ir = function(e, t) {
2912
2889
  var a = {};
2913
- for (var n in e)
2914
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2915
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2916
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2917
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2890
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2891
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2892
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2918
2893
  return a;
2919
2894
  };
2920
- const Cr = (e) => {
2895
+ const or = (e) => {
2921
2896
  const {
2922
2897
  prefixCls: t,
2923
2898
  className: a,
2924
2899
  avatar: n,
2925
2900
  title: r,
2926
2901
  description: o
2927
- } = e, s = Sr(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2902
+ } = e, s = ir(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2928
2903
  getPrefixCls: i
2929
- } = l.useContext(be), c = i("card", t), d = E(`${c}-meta`, a), g = n ? /* @__PURE__ */ l.createElement("div", {
2904
+ } = l.useContext(ve), c = i("card", t), d = E(`${c}-meta`, a), m = n ? /* @__PURE__ */ l.createElement("div", {
2930
2905
  className: `${c}-meta-avatar`
2931
- }, n) : null, f = r ? /* @__PURE__ */ l.createElement("div", {
2906
+ }, n) : null, g = r ? /* @__PURE__ */ l.createElement("div", {
2932
2907
  className: `${c}-meta-title`
2933
- }, r) : null, b = o ? /* @__PURE__ */ l.createElement("div", {
2908
+ }, r) : null, v = o ? /* @__PURE__ */ l.createElement("div", {
2934
2909
  className: `${c}-meta-description`
2935
- }, o) : null, C = f || b ? /* @__PURE__ */ l.createElement("div", {
2910
+ }, o) : null, C = g || v ? /* @__PURE__ */ l.createElement("div", {
2936
2911
  className: `${c}-meta-detail`
2937
- }, f, b) : null;
2912
+ }, g, v) : null;
2938
2913
  return /* @__PURE__ */ l.createElement("div", Object.assign({}, s, {
2939
2914
  className: d
2940
- }), g, C);
2941
- }, xr = Cr, Ue = yr;
2915
+ }), m, C);
2916
+ }, Ue = rr;
2942
2917
  Ue.Grid = la;
2943
- Ue.Meta = xr;
2918
+ Ue.Meta = or;
2944
2919
  process.env.NODE_ENV !== "production" && (Ue.displayName = "Card");
2945
- const _r = Ue, Ur = Yt(_r)`
2920
+ const Cr = Yt(Ue)`
2946
2921
  .ant-card-body {
2947
2922
  display: flex;
2948
2923
  flex-direction: column;
@@ -2958,7 +2933,7 @@ const _r = Ue, Ur = Yt(_r)`
2958
2933
  color: red;
2959
2934
  }
2960
2935
  }
2961
- `, Yr = Yt(wa.Title)`
2936
+ `, xr = Yt(wa.Title)`
2962
2937
  &.ant-typography {
2963
2938
  color: green !important;
2964
2939
  margin-bottom: 14px;
@@ -2967,6 +2942,6 @@ const _r = Ue, Ur = Yt(_r)`
2967
2942
  }
2968
2943
  `;
2969
2944
  export {
2970
- Ur as Card,
2971
- Yr as Headline
2945
+ Cr as Card,
2946
+ xr as Headline
2972
2947
  };