@gobolt/genesis 0.0.7 → 0.0.9

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 (254) hide show
  1. package/README.md +18 -2
  2. package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
  5. package/dist/CloseOutlined-ClXDNn82.js +13 -0
  6. package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
  7. package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
  8. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
  9. package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/Overflow-PBZD-PFm.js +360 -0
  12. package/dist/PurePanel-BqPLRtc2.js +203 -0
  13. package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
  14. package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
  18. package/dist/collapse-Dtpt-6W_.js +20 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +103 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +18 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +4 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +34 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +23 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +4 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +27 -0
  54. package/dist/components/Breadcrumb/styles.js +2436 -0
  55. package/dist/components/Button/Button.d.ts +14 -0
  56. package/dist/components/Button/Button.js +22 -0
  57. package/dist/components/Button/__tests__/Button.test.js +16 -0
  58. package/dist/components/Button/styles.d.ts +16 -0
  59. package/dist/components/{atoms/button → Button}/styles.js +12 -12
  60. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  61. package/dist/components/Checkbox/Checkbox.js +40 -0
  62. package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  66. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
  67. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
  69. package/dist/components/Form/Form.d.ts +26 -0
  70. package/dist/components/Form/Form.js +8 -0
  71. package/dist/components/Form/__stories__/FormStory.js +93 -0
  72. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  73. package/dist/components/Form/__tests__/form.test.js +18 -0
  74. package/dist/components/Form/index.js +4 -0
  75. package/dist/components/Form/styles.d.ts +3 -0
  76. package/dist/components/Form/styles.js +5 -0
  77. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  78. package/dist/components/Input/Input.js +19 -0
  79. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  80. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  81. package/dist/components/Input/__tests__/Input.test.js +24 -0
  82. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
  83. package/dist/components/Input/styles.js +529 -0
  84. package/dist/components/Message/Message.d.ts +13 -0
  85. package/dist/components/Message/Message.js +78 -0
  86. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  87. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  88. package/dist/components/Message/__tests__/Message.test.js +42 -0
  89. package/dist/components/Message/index.d.ts +2 -0
  90. package/dist/components/Message/index.js +4 -0
  91. package/dist/components/Message/styles.d.ts +8 -0
  92. package/dist/components/Message/styles.js +41 -0
  93. package/dist/components/Notification/Notification.d.ts +17 -0
  94. package/dist/components/Notification/Notification.js +1370 -0
  95. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  96. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  97. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  98. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  99. package/dist/components/Notification/__tests__/Notification.test.js +15 -0
  100. package/dist/components/Notification/index.d.ts +2 -0
  101. package/dist/components/Notification/index.js +4 -0
  102. package/dist/components/Notification/styles.d.ts +16 -0
  103. package/dist/components/Notification/styles.js +65 -0
  104. package/dist/components/Radio/Radio.d.ts +14 -0
  105. package/dist/components/Radio/Radio.js +28 -0
  106. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  107. package/dist/components/Radio/RadioGroup.js +33 -0
  108. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  109. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  110. package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
  111. package/dist/components/Radio/index.d.ts +2 -0
  112. package/dist/components/Radio/index.js +4 -0
  113. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  114. package/dist/components/Radio/states/RadioChecked.js +18 -0
  115. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  116. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  117. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  118. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  119. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  120. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  121. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  122. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  123. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  124. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  125. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  126. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  127. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  128. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  129. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  130. package/dist/components/Select/DropdownChevron.js +23 -0
  131. package/dist/components/Select/Select.d.ts +16 -0
  132. package/dist/components/Select/Select.js +36 -0
  133. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  134. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  135. package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
  136. package/dist/components/Select/styles.d.ts +32 -0
  137. package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
  138. package/dist/components/Toast/Toast.d.ts +14 -0
  139. package/dist/components/Toast/Toast.js +19 -0
  140. package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
  141. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  142. package/dist/components/Toast/__tests__/Toast.test.js +18 -0
  143. package/dist/components/Toast/index.d.ts +2 -0
  144. package/dist/components/Toast/index.js +4 -0
  145. package/dist/components/Toast/styles.d.ts +10 -0
  146. package/dist/components/Toast/styles.js +54 -0
  147. package/dist/components/Typography/Typography.d.ts +15 -0
  148. package/dist/components/Typography/Typography.js +8 -0
  149. package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
  150. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  151. package/dist/components/Typography/__tests__/Typography.test.js +23 -0
  152. package/dist/components/Typography/index.js +4 -0
  153. package/dist/components/Typography/styles.d.ts +21 -0
  154. package/dist/components/Typography/styles.js +48 -0
  155. package/dist/components/index.d.ts +26 -14
  156. package/dist/components/index.js +23 -13
  157. package/dist/constants/index.d.ts +104 -0
  158. package/dist/constants/index.js +41 -7
  159. package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
  160. package/dist/genesis/GenesisThemeBreakdown.js +54 -24
  161. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  162. package/dist/genesis/GenesisThemeDemo.js +3 -4
  163. package/dist/genesis/styles.js +1095 -2186
  164. package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
  165. package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
  166. package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
  167. package/dist/index-C8haFnXI.js +1112 -0
  168. package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
  169. package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
  170. package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
  171. package/dist/index-oK7z6jnz.js +22795 -0
  172. package/dist/index.d.ts +2 -0
  173. package/dist/index.js +31 -18
  174. package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
  175. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
  176. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
  177. package/dist/providers/GenesisProvider.js +9 -5
  178. package/dist/providers/ThemeProvider.d.ts +2 -2
  179. package/dist/providers/ThemeProvider.js +4 -1
  180. package/dist/providers/ToastProvider.d.ts +13 -0
  181. package/dist/providers/ToastProvider.js +20 -0
  182. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  183. package/dist/providers/index.d.ts +1 -1
  184. package/dist/providers/index.js +4 -4
  185. package/dist/providers/useGenesis.d.ts +7 -0
  186. package/dist/providers/useGenesis.js +6 -0
  187. package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
  188. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
  189. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
  190. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  191. package/dist/styles/design-tokens/variables.d.ts +17 -17
  192. package/dist/styles/design-tokens/variables.js +48 -48
  193. package/dist/styles/global-styles.d.ts +1 -0
  194. package/dist/styles/global-styles.js +13 -29
  195. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  196. package/dist/styles/theme/genesis-theme.js +461 -277
  197. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  198. package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
  199. package/dist/test/setup.js +2 -1
  200. package/dist/useLocale-DT-z_vQ6.js +16 -0
  201. package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
  202. package/dist/warning-C63HNL9U.js +789 -0
  203. package/package.json +10 -4
  204. package/dist/Overflow-CP1M4Z0s.js +0 -369
  205. package/dist/components/atoms/button/Button.d.ts +0 -12
  206. package/dist/components/atoms/button/Button.js +0 -27
  207. package/dist/components/atoms/button/styles.d.ts +0 -12
  208. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  209. package/dist/components/atoms/index.d.ts +0 -1
  210. package/dist/components/atoms/index.js +0 -3
  211. package/dist/components/atoms/input/Input.js +0 -12
  212. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  213. package/dist/components/atoms/input/styles.js +0 -415
  214. package/dist/components/atoms/select/Select.d.ts +0 -11
  215. package/dist/components/atoms/select/Select.js +0 -24
  216. package/dist/components/atoms/select/styles.d.ts +0 -15
  217. package/dist/components/atoms/typography/Typography.d.ts +0 -11
  218. package/dist/components/atoms/typography/Typography.js +0 -44
  219. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  220. package/dist/components/atoms/typography/index.js +0 -4
  221. package/dist/components/atoms/typography/styles.d.ts +0 -11
  222. package/dist/components/atoms/typography/styles.js +0 -28
  223. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
  224. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  225. package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
  226. package/dist/components/molecules/form/Form.d.ts +0 -15
  227. package/dist/components/molecules/form/Form.js +0 -7
  228. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  229. package/dist/components/molecules/form/index.js +0 -4
  230. package/dist/index-BPtFqhcp.js +0 -19110
  231. package/dist/index-BWys7dkb.js +0 -4462
  232. package/dist/styles/theme/global-styles.d.ts +0 -1
  233. package/dist/styles/theme/global-styles.js +0 -35
  234. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  235. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  236. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  237. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  239. /package/dist/components/{atoms/button → Button}/index.js +0 -0
  240. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
  244. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  245. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
  246. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
  247. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  248. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  249. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  250. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  251. /package/dist/components/{atoms/input → Input}/index.js +0 -0
  252. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/select → Select}/index.js +0 -0
  254. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
@@ -1,21 +1,31 @@
1
- import { jsx as Xe } from "react/jsx-runtime";
2
- import { useBreakpoint as mt } from "./providers/ThemeProvider.js";
3
- import { m as we, n as ke, z as Q, N as pt, C as ue, c as J, D as Ue, H as K, M as gt, a4 as ht, a5 as bt, A as be, F as yt, a6 as $t, a7 as xt, S as Ct, B as _e, t as vt, G as wt, W as St, a8 as Re, a9 as Et, O as Ke, _ as Ot, Y as It, j as Mt, s as Ft, J as Nt } from "./index-BWys7dkb.js";
4
- import { a as Se, u as Ee, b as jt, V as _t, c as Ye, d as re, R as Rt, F as ge, e as Qe, C as Vt, L as Pt, W as Dt, f as Lt, g as Tt } from "./context-CZsFJmh6.js";
5
- import * as i from "react";
6
- import Wt, { createContext as Ht } from "react";
7
- import { b as Ve, a as At } from "./index-VDH3iLaC.js";
8
- import { z as Je, T as zt } from "./index-SAAXFt-P.js";
9
- import { a as qt, R as Bt } from "./Compact-CJBo3f0u.js";
10
- import { c as Gt } from "./reactNode-sKPeiqPL.js";
11
- import { t as Xt, i as kt, o as Ut } from "./isVisible-CNQjrJPN.js";
12
- import { I as Kt } from "./AntdIcon-Bsnbyy6g.js";
13
- import { R as Yt, a as Qt } from "./ExclamationCircleFilled-BICVVQIg.js";
14
- import { R as Jt } from "./CloseCircleFilled-ZIY-u-27.js";
15
- const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", fe = (e, t) => {
1
+ import { d as ft } from "./styled-components.browser.esm-CZ1XM4o4.js";
2
+ import { g as we, m as Xe, q as Q, E as mt, C as ue, o as ke, x as K, B as pt, O as gt, P as ht, v as be, D as bt, Q as yt, T as $t, S as xt, w as _e, h as Ct, t as vt, J as wt, U as Re, W as St, n as Ue, l as Et, u as Ot, s as It, y as Ft } from "./index-oK7z6jnz.js";
3
+ import { a as Se, u as Ee, b as Mt, V as Nt, c as Ke, d as ne, R as jt, F as ge, e as Ye, C as _t, L as Rt, W as Pt, f as Vt, g as Lt } from "./context-BMW3aJEf.js";
4
+ import * as l from "react";
5
+ import Dt, { createContext as Tt } from "react";
6
+ import { a as Wt, c as J } from "./warning-C63HNL9U.js";
7
+ import { a as Pe } from "./index-CfDY25LP.js";
8
+ import { g as Ht } from "./collapse-Dtpt-6W_.js";
9
+ import { z as Qe, T as At } from "./index-DPW8XdWj.js";
10
+ import { a as zt } from "./Compact-CGY560JF.js";
11
+ import { c as qt } from "./reactNode-sKPeiqPL.js";
12
+ import { t as Bt, i as Gt, o as Xt } from "./isVisible-A-IfeFoT.js";
13
+ import { I as kt } from "./AntdIcon-BoLh1dP8.js";
14
+ import { u as Ut } from "./useLocale-DT-z_vQ6.js";
15
+ import { R as Kt, a as Yt } from "./ExclamationCircleFilled-C0Kj5KQV.js";
16
+ import { R as Qt } from "./CloseCircleFilled-DXCxlIQL.js";
17
+ import { R as Jt } from "./LoadingOutlined-8EnJdZ7I.js";
18
+ var Zt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, en = function(t, r) {
19
+ return /* @__PURE__ */ l.createElement(kt, Wt({}, t, {
20
+ ref: r,
21
+ icon: Zt
22
+ }));
23
+ }, Je = /* @__PURE__ */ l.forwardRef(en);
24
+ process.env.NODE_ENV !== "production" && (Je.displayName = "QuestionCircleOutlined");
25
+ const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, Le = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", fe = (e, t) => {
16
26
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
17
27
  const r = getComputedStyle(e, null);
18
- return De(r.overflowY, t) || De(r.overflowX, t) || ((n) => {
28
+ return Le(r.overflowY, t) || Le(r.overflowX, t) || ((n) => {
19
29
  const o = ((s) => {
20
30
  if (!s.ownerDocument || !s.ownerDocument.defaultView) return null;
21
31
  try {
@@ -28,46 +38,46 @@ const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e
28
38
  })(e);
29
39
  }
30
40
  return !1;
31
- }, me = (e, t, r, n, o, s, a, l) => s < e && a > t || s > e && a < t ? 0 : s <= e && l <= r || a >= t && l >= r ? s - e - n : a > t && l < r || s < e && l > r ? a - t + o : 0, Zt = (e) => {
41
+ }, me = (e, t, r, n, o, s, i, a) => s < e && i > t || s > e && i < t ? 0 : s <= e && a <= r || i >= t && a >= r ? s - e - n : i > t && a < r || s < e && a > r ? i - t + o : 0, tn = (e) => {
32
42
  const t = e.parentElement;
33
43
  return t ?? (e.getRootNode().host || null);
34
- }, Le = (e, t) => {
44
+ }, De = (e, t) => {
35
45
  var r, n, o, s;
36
46
  if (typeof document > "u") return [];
37
- const { scrollMode: a, block: l, inline: c, boundary: f, skipOverflowHiddenElements: y } = t, $ = typeof f == "function" ? f : (A) => A !== f;
38
- if (!Pe(e)) throw new TypeError("Invalid target");
47
+ const { scrollMode: i, block: a, inline: c, boundary: f, skipOverflowHiddenElements: y } = t, $ = typeof f == "function" ? f : (A) => A !== f;
48
+ if (!Ve(e)) throw new TypeError("Invalid target");
39
49
  const O = document.scrollingElement || document.documentElement, R = [];
40
50
  let S = e;
41
- for (; Pe(S) && $(S); ) {
42
- if (S = Zt(S), S === O) {
51
+ for (; Ve(S) && $(S); ) {
52
+ if (S = tn(S), S === O) {
43
53
  R.push(S);
44
54
  break;
45
55
  }
46
56
  S != null && S === document.body && fe(S) && !fe(document.documentElement) || S != null && fe(S, y) && R.push(S);
47
57
  }
48
- const E = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, I = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: m, scrollY: N } = window, { height: u, width: h, top: p, right: b, bottom: V, left: v } = e.getBoundingClientRect(), { top: x, right: g, bottom: j, left: H } = ((A) => {
58
+ const E = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, I = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: m, scrollY: N } = window, { height: u, width: h, top: p, right: b, bottom: P, left: v } = e.getBoundingClientRect(), { top: x, right: g, bottom: j, left: H } = ((A) => {
49
59
  const d = window.getComputedStyle(A);
50
60
  return { top: parseFloat(d.scrollMarginTop) || 0, right: parseFloat(d.scrollMarginRight) || 0, bottom: parseFloat(d.scrollMarginBottom) || 0, left: parseFloat(d.scrollMarginLeft) || 0 };
51
61
  })(e);
52
- let F = l === "start" || l === "nearest" ? p - x : l === "end" ? V + j : p + u / 2 - x + j, C = c === "center" ? v + h / 2 - H + g : c === "end" ? b + g : v - H;
53
- const P = [];
62
+ let M = a === "start" || a === "nearest" ? p - x : a === "end" ? P + j : p + u / 2 - x + j, C = c === "center" ? v + h / 2 - H + g : c === "end" ? b + g : v - H;
63
+ const V = [];
54
64
  for (let A = 0; A < R.length; A++) {
55
65
  const d = R[A], { height: z, width: w, top: q, right: T, bottom: G, left: X } = d.getBoundingClientRect();
56
- if (a === "if-needed" && p >= 0 && v >= 0 && V <= I && b <= E && (d === O && !fe(d) || p >= q && V <= G && v >= X && b <= T)) return P;
57
- const U = getComputedStyle(d), ee = parseInt(U.borderLeftWidth, 10), te = parseInt(U.borderTopWidth, 10), L = parseInt(U.borderRightWidth, 10), M = parseInt(U.borderBottomWidth, 10);
58
- let _ = 0, D = 0;
59
- const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - ee - L : 0, k = "offsetHeight" in d ? d.offsetHeight - d.clientHeight - te - M : 0, ne = "offsetWidth" in d ? d.offsetWidth === 0 ? 0 : w / d.offsetWidth : 0, oe = "offsetHeight" in d ? d.offsetHeight === 0 ? 0 : z / d.offsetHeight : 0;
60
- if (O === d) _ = l === "start" ? F : l === "end" ? F - I : l === "nearest" ? me(N, N + I, I, te, M, N + F, N + F + u, u) : F - I / 2, D = c === "start" ? C : c === "center" ? C - E / 2 : c === "end" ? C - E : me(m, m + E, E, ee, L, m + C, m + C + h, h), _ = Math.max(0, _ + N), D = Math.max(0, D + m);
66
+ if (i === "if-needed" && p >= 0 && v >= 0 && P <= I && b <= E && (d === O && !fe(d) || p >= q && P <= G && v >= X && b <= T)) return V;
67
+ const U = getComputedStyle(d), Z = parseInt(U.borderLeftWidth, 10), ee = parseInt(U.borderTopWidth, 10), D = parseInt(U.borderRightWidth, 10), F = parseInt(U.borderBottomWidth, 10);
68
+ let _ = 0, L = 0;
69
+ const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - Z - D : 0, k = "offsetHeight" in d ? d.offsetHeight - d.clientHeight - ee - F : 0, te = "offsetWidth" in d ? d.offsetWidth === 0 ? 0 : w / d.offsetWidth : 0, oe = "offsetHeight" in d ? d.offsetHeight === 0 ? 0 : z / d.offsetHeight : 0;
70
+ if (O === d) _ = a === "start" ? M : a === "end" ? M - I : a === "nearest" ? me(N, N + I, I, ee, F, N + M, N + M + u, u) : M - I / 2, L = c === "start" ? C : c === "center" ? C - E / 2 : c === "end" ? C - E : me(m, m + E, E, Z, D, m + C, m + C + h, h), _ = Math.max(0, _ + N), L = Math.max(0, L + m);
61
71
  else {
62
- _ = l === "start" ? F - q - te : l === "end" ? F - G + M + k : l === "nearest" ? me(q, G, z, te, M + k, F, F + u, u) : F - (q + z / 2) + k / 2, D = c === "start" ? C - X - ee : c === "center" ? C - (X + w / 2) + B / 2 : c === "end" ? C - T + L + B : me(X, T, w, ee, L + B, C, C + h, h);
72
+ _ = a === "start" ? M - q - ee : a === "end" ? M - G + F + k : a === "nearest" ? me(q, G, z, ee, F + k, M, M + u, u) : M - (q + z / 2) + k / 2, L = c === "start" ? C - X - Z : c === "center" ? C - (X + w / 2) + B / 2 : c === "end" ? C - T + D + B : me(X, T, w, Z, D + B, C, C + h, h);
63
73
  const { scrollLeft: se, scrollTop: W } = d;
64
- _ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)), D = ne === 0 ? 0 : Math.max(0, Math.min(se + D / ne, d.scrollWidth - w / ne + B)), F += W - _, C += se - D;
74
+ _ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)), L = te === 0 ? 0 : Math.max(0, Math.min(se + L / te, d.scrollWidth - w / te + B)), M += W - _, C += se - L;
65
75
  }
66
- P.push({ el: d, top: _, left: D });
76
+ V.push({ el: d, top: _, left: L });
67
77
  }
68
- return P;
69
- }, en = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
70
- function tn(e, t) {
78
+ return V;
79
+ }, nn = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
80
+ function rn(e, t) {
71
81
  if (!e.isConnected || !((o) => {
72
82
  let s = o;
73
83
  for (; s && s.parentNode; ) {
@@ -80,30 +90,14 @@ function tn(e, t) {
80
90
  const s = window.getComputedStyle(o);
81
91
  return { top: parseFloat(s.scrollMarginTop) || 0, right: parseFloat(s.scrollMarginRight) || 0, bottom: parseFloat(s.scrollMarginBottom) || 0, left: parseFloat(s.scrollMarginLeft) || 0 };
82
92
  })(e);
83
- if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(Le(e, t));
93
+ if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(De(e, t));
84
94
  const n = typeof t == "boolean" || t == null ? void 0 : t.behavior;
85
- for (const { el: o, top: s, left: a } of Le(e, en(t))) {
86
- const l = s - r.top + r.bottom, c = a - r.left + r.right;
87
- o.scroll({ top: l, left: c, behavior: n });
95
+ for (const { el: o, top: s, left: i } of De(e, nn(t))) {
96
+ const a = s - r.top + r.bottom, c = i - r.left + r.right;
97
+ o.scroll({ top: a, left: c, behavior: n });
88
98
  }
89
99
  }
90
- const nn = (e) => ({
91
- [e.componentCls]: {
92
- // For common/openAnimation
93
- [`${e.antCls}-motion-collapse-legacy`]: {
94
- overflow: "hidden",
95
- "&-active": {
96
- transition: `height ${e.motionDurationMid} ${e.motionEaseInOut},
97
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
98
- }
99
- },
100
- [`${e.antCls}-motion-collapse`]: {
101
- overflow: "hidden",
102
- transition: `height ${e.motionDurationMid} ${e.motionEaseInOut},
103
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
104
- }
105
- }
106
- }), rn = (e) => {
100
+ const on = (e) => {
107
101
  const {
108
102
  componentCls: t
109
103
  } = e;
@@ -153,7 +147,7 @@ const nn = (e) => ({
153
147
  }
154
148
  }
155
149
  };
156
- }, on = (e) => {
150
+ }, sn = (e) => {
157
151
  const {
158
152
  componentCls: t
159
153
  } = e;
@@ -166,28 +160,28 @@ const nn = (e) => ({
166
160
  minHeight: 1
167
161
  }
168
162
  };
169
- }, sn = (e, t) => {
163
+ }, ln = (e, t) => {
170
164
  const {
171
165
  prefixCls: r,
172
166
  componentCls: n,
173
167
  gridColumns: o
174
168
  } = e, s = {};
175
- for (let a = o; a >= 0; a--)
176
- a === 0 ? (s[`${n}${t}-${a}`] = {
169
+ for (let i = o; i >= 0; i--)
170
+ i === 0 ? (s[`${n}${t}-${i}`] = {
177
171
  display: "none"
178
- }, s[`${n}-push-${a}`] = {
172
+ }, s[`${n}-push-${i}`] = {
179
173
  insetInlineStart: "auto"
180
- }, s[`${n}-pull-${a}`] = {
174
+ }, s[`${n}-pull-${i}`] = {
181
175
  insetInlineEnd: "auto"
182
- }, s[`${n}${t}-push-${a}`] = {
176
+ }, s[`${n}${t}-push-${i}`] = {
183
177
  insetInlineStart: "auto"
184
- }, s[`${n}${t}-pull-${a}`] = {
178
+ }, s[`${n}${t}-pull-${i}`] = {
185
179
  insetInlineEnd: "auto"
186
- }, s[`${n}${t}-offset-${a}`] = {
180
+ }, s[`${n}${t}-offset-${i}`] = {
187
181
  marginInlineStart: 0
188
- }, s[`${n}${t}-order-${a}`] = {
182
+ }, s[`${n}${t}-order-${i}`] = {
189
183
  order: 0
190
- }) : (s[`${n}${t}-${a}`] = [
184
+ }) : (s[`${n}${t}-${i}`] = [
191
185
  // https://github.com/ant-design/ant-design/issues/44456
192
186
  // Form set `display: flex` on Col which will override `display: block`.
193
187
  // Let's get it from css variable to support override.
@@ -198,68 +192,68 @@ const nn = (e) => ({
198
192
  },
199
193
  {
200
194
  display: "var(--ant-display)",
201
- flex: `0 0 ${a / o * 100}%`,
202
- maxWidth: `${a / o * 100}%`
195
+ flex: `0 0 ${i / o * 100}%`,
196
+ maxWidth: `${i / o * 100}%`
203
197
  }
204
- ], s[`${n}${t}-push-${a}`] = {
205
- insetInlineStart: `${a / o * 100}%`
206
- }, s[`${n}${t}-pull-${a}`] = {
207
- insetInlineEnd: `${a / o * 100}%`
208
- }, s[`${n}${t}-offset-${a}`] = {
209
- marginInlineStart: `${a / o * 100}%`
210
- }, s[`${n}${t}-order-${a}`] = {
211
- order: a
198
+ ], s[`${n}${t}-push-${i}`] = {
199
+ insetInlineStart: `${i / o * 100}%`
200
+ }, s[`${n}${t}-pull-${i}`] = {
201
+ insetInlineEnd: `${i / o * 100}%`
202
+ }, s[`${n}${t}-offset-${i}`] = {
203
+ marginInlineStart: `${i / o * 100}%`
204
+ }, s[`${n}${t}-order-${i}`] = {
205
+ order: i
212
206
  });
213
207
  return s[`${n}${t}-flex`] = {
214
208
  flex: `var(--${r}${t}-flex)`
215
209
  }, s;
216
- }, ve = (e, t) => sn(e, t), an = (e, t, r) => ({
210
+ }, ve = (e, t) => ln(e, t), an = (e, t, r) => ({
217
211
  [`@media (min-width: ${Q(t)})`]: Object.assign({}, ve(e, r))
218
- }), ln = () => ({}), cn = () => ({}), un = we("Grid", rn, ln), dn = (e) => ({
212
+ }), cn = () => ({}), un = () => ({}), dn = we("Grid", on, cn), fn = (e) => ({
219
213
  xs: e.screenXSMin,
220
214
  sm: e.screenSMMin,
221
215
  md: e.screenMDMin,
222
216
  lg: e.screenLGMin,
223
217
  xl: e.screenXLMin,
224
218
  xxl: e.screenXXLMin
225
- }), fn = we("Grid", (e) => {
226
- const t = ke(e, {
219
+ }), mn = we("Grid", (e) => {
220
+ const t = Xe(e, {
227
221
  gridColumns: 24
228
222
  // Row is divided into 24 parts in Grid
229
- }), r = dn(t);
230
- return delete r.xs, [on(t), ve(t, ""), ve(t, "-xs"), Object.keys(r).map((n) => an(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
231
- }, cn), ce = ["xxl", "xl", "lg", "md", "sm", "xs"], mn = (e) => ({
223
+ }), r = fn(t);
224
+ return delete r.xs, [sn(t), ve(t, ""), ve(t, "-xs"), Object.keys(r).map((n) => an(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
225
+ }, un), ce = ["xxl", "xl", "lg", "md", "sm", "xs"], pn = (e) => ({
232
226
  xs: `(max-width: ${e.screenXSMax}px)`,
233
227
  sm: `(min-width: ${e.screenSM}px)`,
234
228
  md: `(min-width: ${e.screenMD}px)`,
235
229
  lg: `(min-width: ${e.screenLG}px)`,
236
230
  xl: `(min-width: ${e.screenXL}px)`,
237
231
  xxl: `(min-width: ${e.screenXXL}px)`
238
- }), pn = (e) => {
232
+ }), gn = (e) => {
239
233
  const t = e, r = [].concat(ce).reverse();
240
234
  return r.forEach((n, o) => {
241
- const s = n.toUpperCase(), a = `screen${s}Min`, l = `screen${s}`;
242
- if (!(t[a] <= t[l]))
243
- throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);
235
+ const s = n.toUpperCase(), i = `screen${s}Min`, a = `screen${s}`;
236
+ if (!(t[i] <= t[a]))
237
+ throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);
244
238
  if (o < r.length - 1) {
245
239
  const c = `screen${s}Max`;
246
- if (!(t[l] <= t[c]))
247
- throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);
240
+ if (!(t[a] <= t[c]))
241
+ throw new Error(`${a}<=${c} fails : !(${t[a]}<=${t[c]})`);
248
242
  const y = `screen${r[o + 1].toUpperCase()}Min`;
249
243
  if (!(t[c] <= t[y]))
250
244
  throw new Error(`${c}<=${y} fails : !(${t[c]}<=${t[y]})`);
251
245
  }
252
246
  }), e;
253
247
  };
254
- function gn() {
255
- const [, e] = pt(), t = mn(pn(e));
256
- return Wt.useMemo(() => {
248
+ function hn() {
249
+ const [, e] = mt(), t = pn(gn(e));
250
+ return Dt.useMemo(() => {
257
251
  const r = /* @__PURE__ */ new Map();
258
252
  let n = -1, o = {};
259
253
  return {
260
254
  matchHandlers: {},
261
255
  dispatch(s) {
262
- return o = s, r.forEach((a) => a(o)), r.size >= 1;
256
+ return o = s, r.forEach((i) => i(o)), r.size >= 1;
263
257
  },
264
258
  subscribe(s) {
265
259
  return r.size || this.register(), n += 1, r.set(n, s), s(o), n;
@@ -269,32 +263,32 @@ function gn() {
269
263
  },
270
264
  unregister() {
271
265
  Object.keys(t).forEach((s) => {
272
- const a = t[s], l = this.matchHandlers[a];
273
- l == null || l.mql.removeListener(l == null ? void 0 : l.listener);
266
+ const i = t[s], a = this.matchHandlers[i];
267
+ a == null || a.mql.removeListener(a == null ? void 0 : a.listener);
274
268
  }), r.clear();
275
269
  },
276
270
  register() {
277
271
  Object.keys(t).forEach((s) => {
278
- const a = t[s], l = (f) => {
272
+ const i = t[s], a = (f) => {
279
273
  let {
280
274
  matches: y
281
275
  } = f;
282
276
  this.dispatch(Object.assign(Object.assign({}, o), {
283
277
  [s]: y
284
278
  }));
285
- }, c = window.matchMedia(a);
286
- c.addListener(l), this.matchHandlers[a] = {
279
+ }, c = window.matchMedia(i);
280
+ c.addListener(a), this.matchHandlers[i] = {
287
281
  mql: c,
288
- listener: l
289
- }, l(c);
282
+ listener: a
283
+ }, a(c);
290
284
  });
291
285
  },
292
286
  responsiveMap: t
293
287
  };
294
288
  }, [e]);
295
289
  }
296
- const Ze = /* @__PURE__ */ Ht({});
297
- var hn = function(e, t) {
290
+ const Ze = /* @__PURE__ */ Tt({});
291
+ var bn = function(e, t) {
298
292
  var r = {};
299
293
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
300
294
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
@@ -304,16 +298,16 @@ var hn = function(e, t) {
304
298
  function Te(e) {
305
299
  return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
306
300
  }
307
- const bn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ i.forwardRef((e, t) => {
301
+ const yn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ l.forwardRef((e, t) => {
308
302
  const {
309
303
  getPrefixCls: r,
310
304
  direction: n
311
- } = i.useContext(ue), {
305
+ } = l.useContext(ue), {
312
306
  gutter: o,
313
307
  wrap: s
314
- } = i.useContext(Ze), {
315
- prefixCls: a,
316
- span: l,
308
+ } = l.useContext(Ze), {
309
+ prefixCls: i,
310
+ span: a,
317
311
  order: c,
318
312
  offset: f,
319
313
  push: y,
@@ -322,9 +316,9 @@ const bn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ i.forward
322
316
  children: R,
323
317
  flex: S,
324
318
  style: E
325
- } = e, I = hn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), m = r("col", a), [N, u, h] = fn(m), p = {};
319
+ } = e, I = bn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), m = r("col", i), [N, u, h] = mn(m), p = {};
326
320
  let b = {};
327
- bn.forEach((x) => {
321
+ yn.forEach((x) => {
328
322
  let g = {};
329
323
  const j = e[x];
330
324
  typeof j == "number" ? g.span = j : typeof j == "object" && (g = j || {}), delete I[x], b = Object.assign(Object.assign({}, b), {
@@ -336,8 +330,8 @@ const bn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ i.forward
336
330
  [`${m}-rtl`]: n === "rtl"
337
331
  }), g.flex && (b[`${m}-${x}-flex`] = !0, p[`--${m}-${x}-flex`] = Te(g.flex));
338
332
  });
339
- const V = J(m, {
340
- [`${m}-${l}`]: l !== void 0,
333
+ const P = J(m, {
334
+ [`${m}-${a}`]: a !== void 0,
341
335
  [`${m}-order-${c}`]: c,
342
336
  [`${m}-offset-${f}`]: f,
343
337
  [`${m}-push-${y}`]: y,
@@ -347,14 +341,14 @@ const bn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ i.forward
347
341
  const x = o[0] / 2;
348
342
  v.paddingLeft = x, v.paddingRight = x;
349
343
  }
350
- return S && (v.flex = Te(S), s === !1 && !v.minWidth && (v.minWidth = 0)), N(/* @__PURE__ */ i.createElement("div", Object.assign({}, I, {
344
+ return S && (v.flex = Te(S), s === !1 && !v.minWidth && (v.minWidth = 0)), N(/* @__PURE__ */ l.createElement("div", Object.assign({}, I, {
351
345
  style: Object.assign(Object.assign(Object.assign({}, v), E), p),
352
- className: V,
346
+ className: P,
353
347
  ref: t
354
348
  }), R));
355
349
  });
356
350
  process.env.NODE_ENV !== "production" && (Oe.displayName = "Col");
357
- var yn = function(e, t) {
351
+ var $n = function(e, t) {
358
352
  var r = {};
359
353
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
360
354
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
@@ -362,52 +356,52 @@ var yn = function(e, t) {
362
356
  return r;
363
357
  };
364
358
  function We(e, t) {
365
- const [r, n] = i.useState(typeof e == "string" ? e : ""), o = () => {
359
+ const [r, n] = l.useState(typeof e == "string" ? e : ""), o = () => {
366
360
  if (typeof e == "string" && n(e), typeof e == "object")
367
361
  for (let s = 0; s < ce.length; s++) {
368
- const a = ce[s];
369
- if (!t[a])
362
+ const i = ce[s];
363
+ if (!t[i])
370
364
  continue;
371
- const l = e[a];
372
- if (l !== void 0) {
373
- n(l);
365
+ const a = e[i];
366
+ if (a !== void 0) {
367
+ n(a);
374
368
  return;
375
369
  }
376
370
  }
377
371
  };
378
- return i.useEffect(() => {
372
+ return l.useEffect(() => {
379
373
  o();
380
374
  }, [JSON.stringify(e), t]), r;
381
375
  }
382
- const et = /* @__PURE__ */ i.forwardRef((e, t) => {
376
+ const et = /* @__PURE__ */ l.forwardRef((e, t) => {
383
377
  const {
384
378
  prefixCls: r,
385
379
  justify: n,
386
380
  align: o,
387
381
  className: s,
388
- style: a,
389
- children: l,
382
+ style: i,
383
+ children: a,
390
384
  gutter: c = 0,
391
385
  wrap: f
392
- } = e, y = yn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
386
+ } = e, y = $n(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
393
387
  getPrefixCls: $,
394
388
  direction: O
395
- } = i.useContext(ue), [R, S] = i.useState({
389
+ } = l.useContext(ue), [R, S] = l.useState({
396
390
  xs: !0,
397
391
  sm: !0,
398
392
  md: !0,
399
393
  lg: !0,
400
394
  xl: !0,
401
395
  xxl: !0
402
- }), [E, I] = i.useState({
396
+ }), [E, I] = l.useState({
403
397
  xs: !1,
404
398
  sm: !1,
405
399
  md: !1,
406
400
  lg: !1,
407
401
  xl: !1,
408
402
  xxl: !1
409
- }), m = We(o, E), N = We(n, E), u = i.useRef(c), h = gn();
410
- i.useEffect(() => {
403
+ }), m = We(o, E), N = We(n, E), u = l.useRef(c), h = hn();
404
+ l.useEffect(() => {
411
405
  const d = h.subscribe((z) => {
412
406
  I(z);
413
407
  const w = u.current || 0;
@@ -429,31 +423,31 @@ const et = /* @__PURE__ */ i.forwardRef((e, t) => {
429
423
  else
430
424
  d[q] = w;
431
425
  }), d;
432
- }, b = $("row", r), [V, v, x] = un(b), g = p(), j = J(b, {
426
+ }, b = $("row", r), [P, v, x] = dn(b), g = p(), j = J(b, {
433
427
  [`${b}-no-wrap`]: f === !1,
434
428
  [`${b}-${N}`]: N,
435
429
  [`${b}-${m}`]: m,
436
430
  [`${b}-rtl`]: O === "rtl"
437
- }, s, v, x), H = {}, F = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
438
- F && (H.marginLeft = F, H.marginRight = F);
439
- const [C, P] = g;
440
- H.rowGap = P;
441
- const A = i.useMemo(() => ({
442
- gutter: [C, P],
431
+ }, s, v, x), H = {}, M = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
432
+ M && (H.marginLeft = M, H.marginRight = M);
433
+ const [C, V] = g;
434
+ H.rowGap = V;
435
+ const A = l.useMemo(() => ({
436
+ gutter: [C, V],
443
437
  wrap: f
444
- }), [C, P, f]);
445
- return V(/* @__PURE__ */ i.createElement(Ze.Provider, {
438
+ }), [C, V, f]);
439
+ return P(/* @__PURE__ */ l.createElement(Ze.Provider, {
446
440
  value: A
447
- }, /* @__PURE__ */ i.createElement("div", Object.assign({}, y, {
441
+ }, /* @__PURE__ */ l.createElement("div", Object.assign({}, y, {
448
442
  className: j,
449
- style: Object.assign(Object.assign({}, H), a),
443
+ style: Object.assign(Object.assign({}, H), i),
450
444
  ref: t
451
- }), l)));
445
+ }), a)));
452
446
  });
453
447
  process.env.NODE_ENV !== "production" && (et.displayName = "Row");
454
448
  function he(e) {
455
- const [t, r] = i.useState(e);
456
- return i.useEffect(() => {
449
+ const [t, r] = l.useState(e);
450
+ return l.useEffect(() => {
457
451
  const n = setTimeout(() => {
458
452
  r(e);
459
453
  }, e.length ? 0 : 10);
@@ -462,7 +456,7 @@ function he(e) {
462
456
  };
463
457
  }, [e]), t;
464
458
  }
465
- const $n = (e) => {
459
+ const xn = (e) => {
466
460
  const {
467
461
  componentCls: t
468
462
  } = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
@@ -502,7 +496,7 @@ const $n = (e) => {
502
496
  }
503
497
  }
504
498
  };
505
- }, xn = (e) => ({
499
+ }, Cn = (e) => ({
506
500
  legend: {
507
501
  display: "block",
508
502
  width: "100%",
@@ -560,12 +554,12 @@ const $n = (e) => {
560
554
  }
561
555
  }
562
556
  };
563
- }, Cn = (e) => {
557
+ }, vn = (e) => {
564
558
  const {
565
559
  componentCls: t
566
560
  } = e;
567
561
  return {
568
- [e.componentCls]: Object.assign(Object.assign(Object.assign({}, Ue(e)), xn(e)), {
562
+ [e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)), Cn(e)), {
569
563
  [`${t}-text`]: {
570
564
  display: "inline-block",
571
565
  paddingInlineEnd: e.paddingSM
@@ -577,15 +571,15 @@ const $n = (e) => {
577
571
  "&-large": Object.assign({}, He(e, e.controlHeightLG))
578
572
  })
579
573
  };
580
- }, vn = (e) => {
574
+ }, wn = (e) => {
581
575
  const {
582
576
  formItemCls: t,
583
577
  iconCls: r,
584
578
  componentCls: n,
585
579
  rootPrefixCls: o,
586
580
  antCls: s,
587
- labelRequiredMarkColor: a,
588
- labelColor: l,
581
+ labelRequiredMarkColor: i,
582
+ labelColor: a,
589
583
  labelFontSize: c,
590
584
  labelHeight: f,
591
585
  labelColonMarginInlineStart: y,
@@ -593,7 +587,7 @@ const $n = (e) => {
593
587
  itemMarginBottom: O
594
588
  } = e;
595
589
  return {
596
- [t]: Object.assign(Object.assign({}, Ue(e)), {
590
+ [t]: Object.assign(Object.assign({}, ke(e)), {
597
591
  marginBottom: O,
598
592
  verticalAlign: "top",
599
593
  "&-with-help": {
@@ -637,7 +631,7 @@ const $n = (e) => {
637
631
  alignItems: "center",
638
632
  maxWidth: "100%",
639
633
  height: f,
640
- color: l,
634
+ color: a,
641
635
  fontSize: c,
642
636
  [`> ${r}`]: {
643
637
  fontSize: e.fontSize,
@@ -647,7 +641,7 @@ const $n = (e) => {
647
641
  [`&${t}-required:not(${t}-required-mark-optional)::before`]: {
648
642
  display: "inline-block",
649
643
  marginInlineEnd: e.marginXXS,
650
- color: a,
644
+ color: i,
651
645
  fontSize: e.fontSize,
652
646
  fontFamily: "SimSun, sans-serif",
653
647
  lineHeight: 1,
@@ -747,7 +741,7 @@ const $n = (e) => {
747
741
  fontSize: e.fontSize,
748
742
  textAlign: "center",
749
743
  visibility: "visible",
750
- animationName: Je,
744
+ animationName: Qe,
751
745
  animationDuration: e.motionDurationMid,
752
746
  animationTimingFunction: e.motionEaseOutBack,
753
747
  pointerEvents: "none",
@@ -792,7 +786,7 @@ const $n = (e) => {
792
786
  }
793
787
  }
794
788
  };
795
- }, wn = (e) => {
789
+ }, Sn = (e) => {
796
790
  const {
797
791
  componentCls: t,
798
792
  formItemCls: r,
@@ -862,7 +856,7 @@ const $n = (e) => {
862
856
  }
863
857
  }
864
858
  };
865
- }, Sn = (e) => {
859
+ }, En = (e) => {
866
860
  const {
867
861
  componentCls: t,
868
862
  formItemCls: r,
@@ -914,7 +908,7 @@ const $n = (e) => {
914
908
  }
915
909
  }
916
910
  };
917
- }, En = (e) => {
911
+ }, On = (e) => {
918
912
  const {
919
913
  formItemCls: t,
920
914
  antCls: r
@@ -955,7 +949,7 @@ const $n = (e) => {
955
949
  }
956
950
  }
957
951
  };
958
- }, On = (e) => ({
952
+ }, In = (e) => ({
959
953
  labelRequiredMarkColor: e.colorError,
960
954
  labelColor: e.colorTextHeading,
961
955
  labelFontSize: e.fontSize,
@@ -966,7 +960,7 @@ const $n = (e) => {
966
960
  verticalLabelPadding: `0 0 ${e.paddingXS}px`,
967
961
  verticalLabelMargin: 0,
968
962
  inlineItemMarginBottom: 0
969
- }), nt = (e, t) => ke(e, {
963
+ }), nt = (e, t) => Xe(e, {
970
964
  formItemCls: `${e.componentCls}-item`,
971
965
  rootPrefixCls: t
972
966
  }), Ie = we("Form", (e, t) => {
@@ -974,8 +968,8 @@ const $n = (e) => {
974
968
  rootPrefixCls: r
975
969
  } = t;
976
970
  const n = nt(e, r);
977
- return [Cn(n), vn(n), $n(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), wn(n), Sn(n), En(n), nn(n), Je];
978
- }, On, {
971
+ return [vn(n), wn(n), xn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), Sn(n), En(n), On(n), Ht(n), Qe];
972
+ }, In, {
979
973
  // Let From style before the Grid
980
974
  // ref https://github.com/ant-design/ant-design/issues/44386
981
975
  order: -1e3
@@ -995,12 +989,12 @@ const rt = (e) => {
995
989
  errors: n = ze,
996
990
  warnings: o = ze,
997
991
  className: s,
998
- fieldId: a,
999
- onVisibleChanged: l
992
+ fieldId: i,
993
+ onVisibleChanged: a
1000
994
  } = e;
1001
995
  const {
1002
996
  prefixCls: c
1003
- } = i.useContext(Se), f = `${c}-item-explain`, y = Ee(c), [$, O, R] = Ie(c, y), S = i.useMemo(() => Ve(c), [c]), E = he(n), I = he(o), m = i.useMemo(() => t != null ? [Ce(t, "help", r)] : [].concat(K(E.map((h, p) => Ce(h, "error", "error", p))), K(I.map((h, p) => Ce(h, "warning", "warning", p)))), [t, r, E, I]), N = i.useMemo(() => {
997
+ } = l.useContext(Se), f = `${c}-item-explain`, y = Ee(c), [$, O, R] = Ie(c, y), S = l.useMemo(() => Pe(c), [c]), E = he(n), I = he(o), m = l.useMemo(() => t != null ? [Ce(t, "help", r)] : [].concat(K(E.map((h, p) => Ce(h, "error", "error", p))), K(I.map((h, p) => Ce(h, "warning", "warning", p)))), [t, r, E, I]), N = l.useMemo(() => {
1004
998
  const h = {};
1005
999
  return m.forEach((p) => {
1006
1000
  let {
@@ -1011,34 +1005,34 @@ const rt = (e) => {
1011
1005
  key: h[p.key] > 1 ? `${p.key}-fallback-${b}` : p.key
1012
1006
  }));
1013
1007
  }, [m]), u = {};
1014
- return a && (u.id = `${a}_help`), $(/* @__PURE__ */ i.createElement(gt, {
1008
+ return i && (u.id = `${i}_help`), $(/* @__PURE__ */ l.createElement(pt, {
1015
1009
  motionDeadline: S.motionDeadline,
1016
1010
  motionName: `${c}-show-help`,
1017
1011
  visible: !!N.length,
1018
- onVisibleChanged: l
1012
+ onVisibleChanged: a
1019
1013
  }, (h) => {
1020
1014
  const {
1021
1015
  className: p,
1022
1016
  style: b
1023
1017
  } = h;
1024
- return /* @__PURE__ */ i.createElement("div", Object.assign({}, u, {
1018
+ return /* @__PURE__ */ l.createElement("div", Object.assign({}, u, {
1025
1019
  className: J(f, p, R, y, s, O),
1026
1020
  style: b,
1027
1021
  role: "alert"
1028
- }), /* @__PURE__ */ i.createElement(ht, Object.assign({
1022
+ }), /* @__PURE__ */ l.createElement(gt, Object.assign({
1029
1023
  keys: N
1030
- }, Ve(c), {
1024
+ }, Pe(c), {
1031
1025
  motionName: `${c}-show-help-item`,
1032
1026
  component: !1
1033
- }), (V) => {
1027
+ }), (P) => {
1034
1028
  const {
1035
1029
  key: v,
1036
1030
  error: x,
1037
1031
  errorStatus: g,
1038
1032
  className: j,
1039
1033
  style: H
1040
- } = V;
1041
- return /* @__PURE__ */ i.createElement("div", {
1034
+ } = P;
1035
+ return /* @__PURE__ */ l.createElement("div", {
1042
1036
  key: v,
1043
1037
  className: J(j, {
1044
1038
  [`${f}-${g}`]: g
@@ -1047,51 +1041,51 @@ const rt = (e) => {
1047
1041
  }, x);
1048
1042
  }));
1049
1043
  }));
1050
- }, In = ["parentNode"], Mn = "form_item";
1051
- function le(e) {
1044
+ }, Fn = ["parentNode"], Mn = "form_item";
1045
+ function ae(e) {
1052
1046
  return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
1053
1047
  }
1054
1048
  function ot(e, t) {
1055
1049
  if (!e.length)
1056
1050
  return;
1057
1051
  const r = e.join("_");
1058
- return t ? `${t}_${r}` : In.includes(r) ? `${Mn}_${r}` : r;
1052
+ return t ? `${t}_${r}` : Fn.includes(r) ? `${Mn}_${r}` : r;
1059
1053
  }
1060
1054
  function st(e, t, r, n, o, s) {
1061
- let a = n;
1062
- return s !== void 0 ? a = s : r.validating ? a = "validating" : e.length ? a = "error" : t.length ? a = "warning" : (r.touched || o && r.validated) && (a = "success"), a;
1055
+ let i = n;
1056
+ return s !== void 0 ? i = s : r.validating ? i = "validating" : e.length ? i = "error" : t.length ? i = "warning" : (r.touched || o && r.validated) && (i = "success"), i;
1063
1057
  }
1064
1058
  function qe(e) {
1065
- return le(e).join("_");
1059
+ return ae(e).join("_");
1066
1060
  }
1067
1061
  function Be(e, t) {
1068
- const r = t.getFieldInstance(e), n = bt(r);
1062
+ const r = t.getFieldInstance(e), n = ht(r);
1069
1063
  if (n)
1070
1064
  return n;
1071
- const o = ot(le(e), t.__INTERNAL__.name);
1065
+ const o = ot(ae(e), t.__INTERNAL__.name);
1072
1066
  if (o)
1073
1067
  return document.getElementById(o);
1074
1068
  }
1075
- function it(e) {
1076
- const [t] = jt(), r = i.useRef({}), n = i.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
1069
+ function lt(e) {
1070
+ const [t] = Mt(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
1077
1071
  __INTERNAL__: {
1078
1072
  itemRef: (o) => (s) => {
1079
- const a = qe(o);
1080
- s ? r.current[a] = s : delete r.current[a];
1073
+ const i = qe(o);
1074
+ s ? r.current[i] = s : delete r.current[i];
1081
1075
  }
1082
1076
  },
1083
1077
  scrollToField: function(o) {
1084
1078
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1085
- const a = Be(o, n);
1086
- a && tn(a, Object.assign({
1079
+ const i = Be(o, n);
1080
+ i && rn(i, Object.assign({
1087
1081
  scrollMode: "if-needed",
1088
1082
  block: "nearest"
1089
1083
  }, s));
1090
1084
  },
1091
1085
  focusField: (o) => {
1092
1086
  var s;
1093
- const a = Be(o, n);
1094
- a && ((s = a.focus) === null || s === void 0 || s.call(a));
1087
+ const i = Be(o, n);
1088
+ i && ((s = i.focus) === null || s === void 0 || s.call(i));
1095
1089
  },
1096
1090
  getFieldInstance: (o) => {
1097
1091
  const s = qe(o);
@@ -1101,33 +1095,33 @@ function it(e) {
1101
1095
  return [n];
1102
1096
  }
1103
1097
  const pe = {};
1104
- function Fn(e) {
1098
+ function Nn(e) {
1105
1099
  let {
1106
1100
  name: t
1107
1101
  } = e;
1108
1102
  const r = be("Form");
1109
- i.useEffect(() => {
1103
+ l.useEffect(() => {
1110
1104
  if (t)
1111
1105
  return pe[t] = (pe[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(pe[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
1112
1106
  pe[t] -= 1;
1113
1107
  };
1114
1108
  }, [t]);
1115
1109
  }
1116
- var Nn = function(e, t) {
1110
+ var jn = function(e, t) {
1117
1111
  var r = {};
1118
1112
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1119
1113
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1120
1114
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1121
1115
  return r;
1122
1116
  };
1123
- const jn = (e, t) => {
1124
- const r = i.useContext(yt), {
1117
+ const _n = (e, t) => {
1118
+ const r = l.useContext(bt), {
1125
1119
  getPrefixCls: n,
1126
1120
  direction: o,
1127
1121
  form: s
1128
- } = i.useContext(ue), {
1129
- prefixCls: a,
1130
- className: l,
1122
+ } = l.useContext(ue), {
1123
+ prefixCls: i,
1124
+ className: a,
1131
1125
  rootClassName: c,
1132
1126
  size: f,
1133
1127
  disabled: y = r,
@@ -1143,20 +1137,20 @@ const jn = (e, t) => {
1143
1137
  requiredMark: h,
1144
1138
  onFinishFailed: p,
1145
1139
  name: b,
1146
- style: V,
1140
+ style: P,
1147
1141
  feedbackIcons: v,
1148
1142
  variant: x
1149
- } = e, g = Nn(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), j = qt(f), H = i.useContext($t);
1150
- process.env.NODE_ENV !== "production" && Fn(e);
1151
- const F = i.useMemo(() => h !== void 0 ? h : m ? !1 : s && s.requiredMark !== void 0 ? s.requiredMark : !0, [m, h, s]), C = O ?? (s == null ? void 0 : s.colon), P = n("form", a), A = Ee(P), [d, z, w] = Ie(P, A), q = J(P, `${P}-${N}`, {
1152
- [`${P}-hide-required-mark`]: F === !1,
1153
- [`${P}-rtl`]: o === "rtl",
1154
- [`${P}-${j}`]: j
1155
- }, w, A, z, s == null ? void 0 : s.className, l, c), [T] = it($), {
1143
+ } = e, g = jn(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), j = zt(f), H = l.useContext(yt);
1144
+ process.env.NODE_ENV !== "production" && Nn(e);
1145
+ const M = l.useMemo(() => h !== void 0 ? h : m ? !1 : s && s.requiredMark !== void 0 ? s.requiredMark : !0, [m, h, s]), C = O ?? (s == null ? void 0 : s.colon), V = n("form", i), A = Ee(V), [d, z, w] = Ie(V, A), q = J(V, `${V}-${N}`, {
1146
+ [`${V}-hide-required-mark`]: M === !1,
1147
+ [`${V}-rtl`]: o === "rtl",
1148
+ [`${V}-${j}`]: j
1149
+ }, w, A, z, s == null ? void 0 : s.className, a, c), [T] = lt($), {
1156
1150
  __INTERNAL__: G
1157
1151
  } = T;
1158
1152
  G.name = b;
1159
- const X = i.useMemo(() => ({
1153
+ const X = l.useMemo(() => ({
1160
1154
  name: b,
1161
1155
  labelAlign: R,
1162
1156
  labelCol: E,
@@ -1164,69 +1158,69 @@ const jn = (e, t) => {
1164
1158
  wrapperCol: I,
1165
1159
  vertical: N === "vertical",
1166
1160
  colon: C,
1167
- requiredMark: F,
1161
+ requiredMark: M,
1168
1162
  itemRef: G.itemRef,
1169
1163
  form: T,
1170
1164
  feedbackIcons: v
1171
- }), [b, R, E, I, N, C, F, T, v]), U = i.useRef(null);
1172
- i.useImperativeHandle(t, () => {
1173
- var L;
1165
+ }), [b, R, E, I, N, C, M, T, v]), U = l.useRef(null);
1166
+ l.useImperativeHandle(t, () => {
1167
+ var D;
1174
1168
  return Object.assign(Object.assign({}, T), {
1175
- nativeElement: (L = U.current) === null || L === void 0 ? void 0 : L.nativeElement
1169
+ nativeElement: (D = U.current) === null || D === void 0 ? void 0 : D.nativeElement
1176
1170
  });
1177
1171
  });
1178
- const ee = (L, M) => {
1179
- if (L) {
1172
+ const Z = (D, F) => {
1173
+ if (D) {
1180
1174
  let _ = {
1181
1175
  block: "nearest"
1182
1176
  };
1183
- typeof L == "object" && (_ = Object.assign(Object.assign({}, _), L)), T.scrollToField(M, _), _.focus && T.focusField(M);
1177
+ typeof D == "object" && (_ = Object.assign(Object.assign({}, _), D)), T.scrollToField(F, _), _.focus && T.focusField(F);
1184
1178
  }
1185
- }, te = (L) => {
1186
- if (p == null || p(L), L.errorFields.length) {
1187
- const M = L.errorFields[0].name;
1179
+ }, ee = (D) => {
1180
+ if (p == null || p(D), D.errorFields.length) {
1181
+ const F = D.errorFields[0].name;
1188
1182
  if (u !== void 0) {
1189
- ee(u, M);
1183
+ Z(u, F);
1190
1184
  return;
1191
1185
  }
1192
- s && s.scrollToFirstError !== void 0 && ee(s.scrollToFirstError, M);
1186
+ s && s.scrollToFirstError !== void 0 && Z(s.scrollToFirstError, F);
1193
1187
  }
1194
1188
  };
1195
- return d(/* @__PURE__ */ i.createElement(_t.Provider, {
1189
+ return d(/* @__PURE__ */ l.createElement(Nt.Provider, {
1196
1190
  value: x
1197
- }, /* @__PURE__ */ i.createElement(xt, {
1191
+ }, /* @__PURE__ */ l.createElement($t, {
1198
1192
  disabled: y
1199
- }, /* @__PURE__ */ i.createElement(Ct.Provider, {
1193
+ }, /* @__PURE__ */ l.createElement(xt.Provider, {
1200
1194
  value: j
1201
- }, /* @__PURE__ */ i.createElement(Ye, {
1195
+ }, /* @__PURE__ */ l.createElement(Ke, {
1202
1196
  // This is not list in API, we pass with spread
1203
1197
  validateMessages: H
1204
- }, /* @__PURE__ */ i.createElement(re.Provider, {
1198
+ }, /* @__PURE__ */ l.createElement(ne.Provider, {
1205
1199
  value: X
1206
- }, /* @__PURE__ */ i.createElement(Rt, Object.assign({
1200
+ }, /* @__PURE__ */ l.createElement(jt, Object.assign({
1207
1201
  id: b
1208
1202
  }, g, {
1209
1203
  name: b,
1210
- onFinishFailed: te,
1204
+ onFinishFailed: ee,
1211
1205
  form: T,
1212
1206
  ref: U,
1213
- style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), V),
1207
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), P),
1214
1208
  className: q
1215
1209
  }))))))));
1216
- }, at = /* @__PURE__ */ i.forwardRef(jn);
1217
- process.env.NODE_ENV !== "production" && (at.displayName = "Form");
1218
- function _n(e) {
1210
+ }, it = /* @__PURE__ */ l.forwardRef(_n);
1211
+ process.env.NODE_ENV !== "production" && (it.displayName = "Form");
1212
+ function Rn(e) {
1219
1213
  if (typeof e == "function")
1220
1214
  return e;
1221
- const t = Xt(e);
1215
+ const t = Bt(e);
1222
1216
  return t.length <= 1 ? t[0] : t;
1223
1217
  }
1224
- const lt = () => {
1218
+ const at = () => {
1225
1219
  const {
1226
1220
  status: e,
1227
1221
  errors: t = [],
1228
1222
  warnings: r = []
1229
- } = i.useContext(ge);
1223
+ } = l.useContext(ge);
1230
1224
  if (process.env.NODE_ENV !== "production") {
1231
1225
  const n = be("Form.Item");
1232
1226
  process.env.NODE_ENV !== "production" && n(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
@@ -1237,13 +1231,13 @@ const lt = () => {
1237
1231
  warnings: r
1238
1232
  };
1239
1233
  };
1240
- lt.Context = ge;
1241
- function Rn(e) {
1242
- const [t, r] = i.useState(e), n = i.useRef(null), o = i.useRef([]), s = i.useRef(!1);
1243
- i.useEffect(() => (s.current = !1, () => {
1234
+ at.Context = ge;
1235
+ function Pn(e) {
1236
+ const [t, r] = l.useState(e), n = l.useRef(null), o = l.useRef([]), s = l.useRef(!1);
1237
+ l.useEffect(() => (s.current = !1, () => {
1244
1238
  s.current = !0, _e.cancel(n.current), n.current = null;
1245
1239
  }), []);
1246
- function a(l) {
1240
+ function i(a) {
1247
1241
  s.current || (n.current === null && (o.current = [], n.current = _e(() => {
1248
1242
  n.current = null, r((c) => {
1249
1243
  let f = c;
@@ -1251,21 +1245,21 @@ function Rn(e) {
1251
1245
  f = y(f);
1252
1246
  }), f;
1253
1247
  });
1254
- })), o.current.push(l));
1248
+ })), o.current.push(a));
1255
1249
  }
1256
- return [t, a];
1250
+ return [t, i];
1257
1251
  }
1258
1252
  function Vn() {
1259
1253
  const {
1260
1254
  itemRef: e
1261
- } = i.useContext(re), t = i.useRef({});
1255
+ } = l.useContext(ne), t = l.useRef({});
1262
1256
  function r(n, o) {
1263
- const s = o && typeof o == "object" && vt(o), a = n.join("_");
1264
- return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref = wt(e(n), s)), t.current.ref;
1257
+ const s = o && typeof o == "object" && Ct(o), i = n.join("_");
1258
+ return (t.current.name !== i || t.current.originRef !== s) && (t.current.name = i, t.current.originRef = s, t.current.ref = vt(e(n), s)), t.current.ref;
1265
1259
  }
1266
1260
  return r;
1267
1261
  }
1268
- const Pn = (e) => {
1262
+ const Ln = (e) => {
1269
1263
  const {
1270
1264
  formItemCls: t
1271
1265
  } = e;
@@ -1277,29 +1271,29 @@ const Pn = (e) => {
1277
1271
  }
1278
1272
  }
1279
1273
  };
1280
- }, Dn = St(["Form", "item-item"], (e, t) => {
1274
+ }, Dn = wt(["Form", "item-item"], (e, t) => {
1281
1275
  let {
1282
1276
  rootPrefixCls: r
1283
1277
  } = t;
1284
1278
  const n = nt(e, r);
1285
- return [Pn(n)];
1279
+ return [Ln(n)];
1286
1280
  });
1287
- var Ln = function(e, t) {
1281
+ var Tn = function(e, t) {
1288
1282
  var r = {};
1289
1283
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1290
1284
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1291
1285
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1292
1286
  return r;
1293
1287
  };
1294
- const Tn = 24, Wn = (e) => {
1288
+ const Wn = 24, Hn = (e) => {
1295
1289
  const {
1296
1290
  prefixCls: t,
1297
1291
  status: r,
1298
1292
  labelCol: n,
1299
1293
  wrapperCol: o,
1300
1294
  children: s,
1301
- errors: a,
1302
- warnings: l,
1295
+ errors: i,
1296
+ warnings: a,
1303
1297
  _internalItemRender: c,
1304
1298
  extra: f,
1305
1299
  help: y,
@@ -1307,161 +1301,154 @@ const Tn = 24, Wn = (e) => {
1307
1301
  marginBottom: O,
1308
1302
  onErrorVisibleChanged: R,
1309
1303
  label: S
1310
- } = e, E = `${t}-item`, I = i.useContext(re), m = i.useMemo(() => {
1304
+ } = e, E = `${t}-item`, I = l.useContext(ne), m = l.useMemo(() => {
1311
1305
  let C = Object.assign({}, o || I.wrapperCol || {});
1312
1306
  return S === null && !n && !o && I.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((A) => {
1313
1307
  const d = A ? [A] : [], z = Re(I.labelCol, d), w = typeof z == "object" ? z : {}, q = Re(C, d), T = typeof q == "object" ? q : {};
1314
- "span" in w && !("offset" in T) && w.span < Tn && (C = Et(C, [].concat(d, ["offset"]), w.span));
1308
+ "span" in w && !("offset" in T) && w.span < Wn && (C = St(C, [].concat(d, ["offset"]), w.span));
1315
1309
  }), C;
1316
- }, [o, I]), N = J(`${E}-control`, m.className), u = i.useMemo(() => Ln(I, ["labelCol", "wrapperCol"]), [I]), h = i.useRef(null), [p, b] = i.useState(0);
1317
- Ke(() => {
1310
+ }, [o, I]), N = J(`${E}-control`, m.className), u = l.useMemo(() => Tn(I, ["labelCol", "wrapperCol"]), [I]), h = l.useRef(null), [p, b] = l.useState(0);
1311
+ Ue(() => {
1318
1312
  f && h.current ? b(h.current.clientHeight) : b(0);
1319
1313
  }, [f]);
1320
- const V = /* @__PURE__ */ i.createElement("div", {
1314
+ const P = /* @__PURE__ */ l.createElement("div", {
1321
1315
  className: `${E}-control-input`
1322
- }, /* @__PURE__ */ i.createElement("div", {
1316
+ }, /* @__PURE__ */ l.createElement("div", {
1323
1317
  className: `${E}-control-input-content`
1324
- }, s)), v = i.useMemo(() => ({
1318
+ }, s)), v = l.useMemo(() => ({
1325
1319
  prefixCls: t,
1326
1320
  status: r
1327
- }), [t, r]), x = O !== null || a.length || l.length ? /* @__PURE__ */ i.createElement(Se.Provider, {
1321
+ }), [t, r]), x = O !== null || i.length || a.length ? /* @__PURE__ */ l.createElement(Se.Provider, {
1328
1322
  value: v
1329
- }, /* @__PURE__ */ i.createElement(rt, {
1323
+ }, /* @__PURE__ */ l.createElement(rt, {
1330
1324
  fieldId: $,
1331
- errors: a,
1332
- warnings: l,
1325
+ errors: i,
1326
+ warnings: a,
1333
1327
  help: y,
1334
1328
  helpStatus: r,
1335
1329
  className: `${E}-explain-connected`,
1336
1330
  onVisibleChanged: R
1337
1331
  })) : null, g = {};
1338
1332
  $ && (g.id = `${$}_extra`);
1339
- const j = f ? /* @__PURE__ */ i.createElement("div", Object.assign({}, g, {
1333
+ const j = f ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
1340
1334
  className: `${E}-extra`,
1341
1335
  ref: h
1342
- }), f) : null, H = x || j ? /* @__PURE__ */ i.createElement("div", {
1336
+ }), f) : null, H = x || j ? /* @__PURE__ */ l.createElement("div", {
1343
1337
  className: `${E}-additional`,
1344
1338
  style: O ? {
1345
1339
  minHeight: O + p
1346
1340
  } : {}
1347
- }, x, j) : null, F = c && c.mark === "pro_table_render" && c.render ? c.render(e, {
1348
- input: V,
1341
+ }, x, j) : null, M = c && c.mark === "pro_table_render" && c.render ? c.render(e, {
1342
+ input: P,
1349
1343
  errorList: x,
1350
1344
  extra: j
1351
- }) : /* @__PURE__ */ i.createElement(i.Fragment, null, V, H);
1352
- return /* @__PURE__ */ i.createElement(re.Provider, {
1345
+ }) : /* @__PURE__ */ l.createElement(l.Fragment, null, P, H);
1346
+ return /* @__PURE__ */ l.createElement(ne.Provider, {
1353
1347
  value: u
1354
- }, /* @__PURE__ */ i.createElement(Oe, Object.assign({}, m, {
1348
+ }, /* @__PURE__ */ l.createElement(Oe, Object.assign({}, m, {
1355
1349
  className: N
1356
- }), F), /* @__PURE__ */ i.createElement(Dn, {
1350
+ }), M), /* @__PURE__ */ l.createElement(Dn, {
1357
1351
  prefixCls: t
1358
1352
  }));
1359
1353
  };
1360
- var Hn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, An = function(t, r) {
1361
- return /* @__PURE__ */ i.createElement(Kt, Ot({}, t, {
1362
- ref: r,
1363
- icon: Hn
1364
- }));
1365
- }, ct = /* @__PURE__ */ i.forwardRef(An);
1366
- process.env.NODE_ENV !== "production" && (ct.displayName = "QuestionCircleOutlined");
1367
- var zn = function(e, t) {
1354
+ var An = function(e, t) {
1368
1355
  var r = {};
1369
1356
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1370
1357
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1371
1358
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1372
1359
  return r;
1373
1360
  };
1374
- function qn(e) {
1375
- return e ? typeof e == "object" && !/* @__PURE__ */ i.isValidElement(e) ? e : {
1361
+ function zn(e) {
1362
+ return e ? typeof e == "object" && !/* @__PURE__ */ l.isValidElement(e) ? e : {
1376
1363
  title: e
1377
1364
  } : null;
1378
1365
  }
1379
- const Bn = (e) => {
1366
+ const qn = (e) => {
1380
1367
  let {
1381
1368
  prefixCls: t,
1382
1369
  label: r,
1383
1370
  htmlFor: n,
1384
1371
  labelCol: o,
1385
1372
  labelAlign: s,
1386
- colon: a,
1387
- required: l,
1373
+ colon: i,
1374
+ required: a,
1388
1375
  requiredMark: c,
1389
1376
  tooltip: f,
1390
1377
  vertical: y
1391
1378
  } = e;
1392
1379
  var $;
1393
- const [O] = At("Form"), {
1380
+ const [O] = Ut("Form"), {
1394
1381
  labelAlign: R,
1395
1382
  labelCol: S,
1396
1383
  labelWrap: E,
1397
1384
  colon: I
1398
- } = i.useContext(re);
1385
+ } = l.useContext(ne);
1399
1386
  if (!r)
1400
1387
  return null;
1401
1388
  const m = o || S || {}, N = s || R, u = `${t}-item-label`, h = J(u, N === "left" && `${u}-left`, m.className, {
1402
1389
  [`${u}-wrap`]: !!E
1403
1390
  });
1404
1391
  let p = r;
1405
- const b = a === !0 || I !== !1 && a !== !1;
1392
+ const b = i === !0 || I !== !1 && i !== !1;
1406
1393
  b && !y && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
1407
- const v = qn(f);
1394
+ const v = zn(f);
1408
1395
  if (v) {
1409
1396
  const {
1410
- icon: H = /* @__PURE__ */ i.createElement(ct, null)
1411
- } = v, F = zn(v, ["icon"]), C = /* @__PURE__ */ i.createElement(zt, Object.assign({}, F), /* @__PURE__ */ i.cloneElement(H, {
1397
+ icon: H = /* @__PURE__ */ l.createElement(Je, null)
1398
+ } = v, M = An(v, ["icon"]), C = /* @__PURE__ */ l.createElement(At, Object.assign({}, M), /* @__PURE__ */ l.cloneElement(H, {
1412
1399
  className: `${t}-item-tooltip`,
1413
1400
  title: "",
1414
- onClick: (P) => {
1415
- P.preventDefault();
1401
+ onClick: (V) => {
1402
+ V.preventDefault();
1416
1403
  },
1417
1404
  tabIndex: null
1418
1405
  }));
1419
- p = /* @__PURE__ */ i.createElement(i.Fragment, null, p, C);
1406
+ p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, C);
1420
1407
  }
1421
1408
  const x = c === "optional", g = typeof c == "function";
1422
1409
  g ? p = c(p, {
1423
- required: !!l
1424
- }) : x && !l && (p = /* @__PURE__ */ i.createElement(i.Fragment, null, p, /* @__PURE__ */ i.createElement("span", {
1410
+ required: !!a
1411
+ }) : x && !a && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
1425
1412
  className: `${t}-item-optional`,
1426
1413
  title: ""
1427
- }, (O == null ? void 0 : O.optional) || (($ = It.Form) === null || $ === void 0 ? void 0 : $.optional))));
1414
+ }, (O == null ? void 0 : O.optional) || (($ = Et.Form) === null || $ === void 0 ? void 0 : $.optional))));
1428
1415
  const j = J({
1429
- [`${t}-item-required`]: l,
1416
+ [`${t}-item-required`]: a,
1430
1417
  [`${t}-item-required-mark-optional`]: x || g,
1431
1418
  [`${t}-item-no-colon`]: !b
1432
1419
  });
1433
- return /* @__PURE__ */ i.createElement(Oe, Object.assign({}, m, {
1420
+ return /* @__PURE__ */ l.createElement(Oe, Object.assign({}, m, {
1434
1421
  className: h
1435
- }), /* @__PURE__ */ i.createElement("label", {
1422
+ }), /* @__PURE__ */ l.createElement("label", {
1436
1423
  htmlFor: n,
1437
1424
  className: j,
1438
1425
  title: typeof r == "string" ? r : ""
1439
1426
  }, p));
1440
- }, Gn = {
1441
- success: Yt,
1442
- warning: Qt,
1443
- error: Jt,
1444
- validating: Bt
1427
+ }, Bn = {
1428
+ success: Kt,
1429
+ warning: Yt,
1430
+ error: Qt,
1431
+ validating: Jt
1445
1432
  };
1446
- function ut(e) {
1433
+ function ct(e) {
1447
1434
  let {
1448
1435
  children: t,
1449
1436
  errors: r,
1450
1437
  warnings: n,
1451
1438
  hasFeedback: o,
1452
1439
  validateStatus: s,
1453
- prefixCls: a,
1454
- meta: l,
1440
+ prefixCls: i,
1441
+ meta: a,
1455
1442
  noStyle: c
1456
1443
  } = e;
1457
- const f = `${a}-item`, {
1444
+ const f = `${i}-item`, {
1458
1445
  feedbackIcons: y
1459
- } = i.useContext(re), $ = st(r, n, l, null, !!o, s), {
1446
+ } = l.useContext(ne), $ = st(r, n, a, null, !!o, s), {
1460
1447
  isFormItemInput: O,
1461
1448
  status: R,
1462
1449
  hasFeedback: S,
1463
1450
  feedbackIcon: E
1464
- } = i.useContext(ge), I = i.useMemo(() => {
1451
+ } = l.useContext(ge), I = l.useMemo(() => {
1465
1452
  var m;
1466
1453
  let N;
1467
1454
  if (o) {
@@ -1469,10 +1456,10 @@ function ut(e) {
1469
1456
  status: $,
1470
1457
  errors: r,
1471
1458
  warnings: n
1472
- })) === null || m === void 0 ? void 0 : m[$]), b = $ && Gn[$];
1473
- N = p !== !1 && b ? /* @__PURE__ */ i.createElement("span", {
1459
+ })) === null || m === void 0 ? void 0 : m[$]), b = $ && Bn[$];
1460
+ N = p !== !1 && b ? /* @__PURE__ */ l.createElement("span", {
1474
1461
  className: J(`${f}-feedback-icon`, `${f}-feedback-icon-${$}`)
1475
- }, p || /* @__PURE__ */ i.createElement(b, null)) : null;
1462
+ }, p || /* @__PURE__ */ l.createElement(b, null)) : null;
1476
1463
  }
1477
1464
  const u = {
1478
1465
  status: $ || "",
@@ -1484,26 +1471,26 @@ function ut(e) {
1484
1471
  };
1485
1472
  return c && (u.status = ($ ?? R) || "", u.isFormItemInput = O, u.hasFeedback = !!(o ?? S), u.feedbackIcon = o !== void 0 ? u.feedbackIcon : E), u;
1486
1473
  }, [$, o, c, O, R]);
1487
- return /* @__PURE__ */ i.createElement(ge.Provider, {
1474
+ return /* @__PURE__ */ l.createElement(ge.Provider, {
1488
1475
  value: I
1489
1476
  }, t);
1490
1477
  }
1491
- var Xn = function(e, t) {
1478
+ var Gn = function(e, t) {
1492
1479
  var r = {};
1493
1480
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1494
1481
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1495
1482
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1496
1483
  return r;
1497
1484
  };
1498
- function kn(e) {
1485
+ function Xn(e) {
1499
1486
  const {
1500
1487
  prefixCls: t,
1501
1488
  className: r,
1502
1489
  rootClassName: n,
1503
1490
  style: o,
1504
1491
  help: s,
1505
- errors: a,
1506
- warnings: l,
1492
+ errors: i,
1493
+ warnings: a,
1507
1494
  validateStatus: c,
1508
1495
  meta: f,
1509
1496
  hasFeedback: y,
@@ -1514,17 +1501,17 @@ function kn(e) {
1514
1501
  isRequired: E,
1515
1502
  onSubItemMetaChange: I,
1516
1503
  layout: m
1517
- } = e, N = Xn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), u = `${t}-item`, {
1504
+ } = e, N = Gn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), u = `${t}-item`, {
1518
1505
  requiredMark: h,
1519
1506
  vertical: p
1520
- } = i.useContext(re), b = p || m === "vertical", V = i.useRef(null), v = he(a), x = he(l), g = s != null, j = !!(g || a.length || l.length), H = !!V.current && kt(V.current), [F, C] = i.useState(null);
1521
- Ke(() => {
1522
- if (j && V.current) {
1523
- const w = getComputedStyle(V.current);
1507
+ } = l.useContext(ne), b = p || m === "vertical", P = l.useRef(null), v = he(i), x = he(a), g = s != null, j = !!(g || i.length || a.length), H = !!P.current && Gt(P.current), [M, C] = l.useState(null);
1508
+ Ue(() => {
1509
+ if (j && P.current) {
1510
+ const w = getComputedStyle(P.current);
1524
1511
  C(parseInt(w.marginBottom, 10));
1525
1512
  }
1526
1513
  }, [j, H]);
1527
- const P = (w) => {
1514
+ const V = (w) => {
1528
1515
  w || C(null);
1529
1516
  }, d = function() {
1530
1517
  let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
@@ -1542,13 +1529,13 @@ function kn(e) {
1542
1529
  // Layout
1543
1530
  [`${u}-${m}`]: m
1544
1531
  });
1545
- return /* @__PURE__ */ i.createElement("div", {
1532
+ return /* @__PURE__ */ l.createElement("div", {
1546
1533
  className: z,
1547
1534
  style: o,
1548
- ref: V
1549
- }, /* @__PURE__ */ i.createElement(et, Object.assign({
1535
+ ref: P
1536
+ }, /* @__PURE__ */ l.createElement(et, Object.assign({
1550
1537
  className: `${u}-row`
1551
- }, Ut(N, [
1538
+ }, Xt(N, [
1552
1539
  "_internalItemRender",
1553
1540
  "colon",
1554
1541
  "dependencies",
@@ -1580,24 +1567,24 @@ function kn(e) {
1580
1567
  "valuePropName",
1581
1568
  "wrapperCol",
1582
1569
  "validateDebounce"
1583
- ])), /* @__PURE__ */ i.createElement(Bn, Object.assign({
1570
+ ])), /* @__PURE__ */ l.createElement(qn, Object.assign({
1584
1571
  htmlFor: R
1585
1572
  }, e, {
1586
1573
  requiredMark: h,
1587
1574
  required: S ?? E,
1588
1575
  prefixCls: t,
1589
1576
  vertical: b
1590
- })), /* @__PURE__ */ i.createElement(Wn, Object.assign({}, e, f, {
1577
+ })), /* @__PURE__ */ l.createElement(Hn, Object.assign({}, e, f, {
1591
1578
  errors: v,
1592
1579
  warnings: x,
1593
1580
  prefixCls: t,
1594
1581
  status: d,
1595
1582
  help: s,
1596
- marginBottom: F,
1597
- onErrorVisibleChanged: P
1598
- }), /* @__PURE__ */ i.createElement(Qe.Provider, {
1583
+ marginBottom: M,
1584
+ onErrorVisibleChanged: V
1585
+ }), /* @__PURE__ */ l.createElement(Ye.Provider, {
1599
1586
  value: I
1600
- }, /* @__PURE__ */ i.createElement(ut, {
1587
+ }, /* @__PURE__ */ l.createElement(ct, {
1601
1588
  prefixCls: t,
1602
1589
  meta: f,
1603
1590
  errors: f.errors,
@@ -1605,27 +1592,27 @@ function kn(e) {
1605
1592
  hasFeedback: y,
1606
1593
  // Already calculated
1607
1594
  validateStatus: d
1608
- }, O)))), !!F && /* @__PURE__ */ i.createElement("div", {
1595
+ }, O)))), !!M && /* @__PURE__ */ l.createElement("div", {
1609
1596
  className: `${u}-margin-offset`,
1610
1597
  style: {
1611
- marginBottom: -F
1598
+ marginBottom: -M
1612
1599
  }
1613
1600
  }));
1614
1601
  }
1615
- const Un = "__SPLIT__";
1616
- function Kn(e, t) {
1602
+ const kn = "__SPLIT__";
1603
+ function Un(e, t) {
1617
1604
  const r = Object.keys(e), n = Object.keys(t);
1618
1605
  return r.length === n.length && r.every((o) => {
1619
- const s = e[o], a = t[o];
1620
- return s === a || typeof s == "function" || typeof a == "function";
1606
+ const s = e[o], i = t[o];
1607
+ return s === i || typeof s == "function" || typeof i == "function";
1621
1608
  });
1622
1609
  }
1623
- const Yn = /* @__PURE__ */ i.memo((e) => {
1610
+ const Kn = /* @__PURE__ */ l.memo((e) => {
1624
1611
  let {
1625
1612
  children: t
1626
1613
  } = e;
1627
1614
  return t;
1628
- }, (e, t) => Kn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
1615
+ }, (e, t) => Un(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
1629
1616
  function Ge() {
1630
1617
  return {
1631
1618
  errors: [],
@@ -1636,15 +1623,15 @@ function Ge() {
1636
1623
  validated: !1
1637
1624
  };
1638
1625
  }
1639
- function Qn(e) {
1626
+ function Yn(e) {
1640
1627
  const {
1641
1628
  name: t,
1642
1629
  noStyle: r,
1643
1630
  className: n,
1644
1631
  dependencies: o,
1645
1632
  prefixCls: s,
1646
- shouldUpdate: a,
1647
- rules: l,
1633
+ shouldUpdate: i,
1634
+ rules: a,
1648
1635
  children: c,
1649
1636
  required: f,
1650
1637
  label: y,
@@ -1656,37 +1643,37 @@ function Qn(e) {
1656
1643
  layout: I
1657
1644
  } = e, {
1658
1645
  getPrefixCls: m
1659
- } = i.useContext(ue), {
1646
+ } = l.useContext(ue), {
1660
1647
  name: N
1661
- } = i.useContext(re), u = _n(c), h = typeof u == "function", p = i.useContext(Qe), {
1648
+ } = l.useContext(ne), u = Rn(c), h = typeof u == "function", p = l.useContext(Ye), {
1662
1649
  validateTrigger: b
1663
- } = i.useContext(Vt), V = R !== void 0 ? R : b, v = t != null, x = m("form", s), g = Ee(x), [j, H, F] = Ie(x, g), C = be("Form.Item");
1650
+ } = l.useContext(_t), P = R !== void 0 ? R : b, v = t != null, x = m("form", s), g = Ee(x), [j, H, M] = Ie(x, g), C = be("Form.Item");
1664
1651
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && C(t !== null, "usage", "`null` is passed as `name` property");
1665
- const P = i.useContext(Pt), A = i.useRef(null), [d, z] = Rn({}), [w, q] = Mt(() => Ge()), T = (M) => {
1666
- const _ = P == null ? void 0 : P.getKey(M.name);
1667
- if (q(M.destroy ? Ge() : M, !0), r && E !== !1 && p) {
1668
- let D = M.name;
1669
- if (M.destroy)
1670
- D = A.current || D;
1652
+ const V = l.useContext(Rt), A = l.useRef(null), [d, z] = Pn({}), [w, q] = Ot(() => Ge()), T = (F) => {
1653
+ const _ = V == null ? void 0 : V.getKey(F.name);
1654
+ if (q(F.destroy ? Ge() : F, !0), r && E !== !1 && p) {
1655
+ let L = F.name;
1656
+ if (F.destroy)
1657
+ L = A.current || L;
1671
1658
  else if (_ !== void 0) {
1672
1659
  const [B, k] = _;
1673
- D = [B].concat(K(k)), A.current = D;
1660
+ L = [B].concat(K(k)), A.current = L;
1674
1661
  }
1675
- p(M, D);
1662
+ p(F, L);
1676
1663
  }
1677
- }, G = (M, _) => {
1678
- z((D) => {
1679
- const B = Object.assign({}, D), ne = [].concat(K(M.name.slice(0, -1)), K(_)).join(Un);
1680
- return M.destroy ? delete B[ne] : B[ne] = M, B;
1664
+ }, G = (F, _) => {
1665
+ z((L) => {
1666
+ const B = Object.assign({}, L), te = [].concat(K(F.name.slice(0, -1)), K(_)).join(kn);
1667
+ return F.destroy ? delete B[te] : B[te] = F, B;
1681
1668
  });
1682
- }, [X, U] = i.useMemo(() => {
1683
- const M = K(w.errors), _ = K(w.warnings);
1684
- return Object.values(d).forEach((D) => {
1685
- M.push.apply(M, K(D.errors || [])), _.push.apply(_, K(D.warnings || []));
1686
- }), [M, _];
1687
- }, [d, w.errors, w.warnings]), ee = Vn();
1688
- function te(M, _, D) {
1689
- return r && !S ? /* @__PURE__ */ i.createElement(ut, {
1669
+ }, [X, U] = l.useMemo(() => {
1670
+ const F = K(w.errors), _ = K(w.warnings);
1671
+ return Object.values(d).forEach((L) => {
1672
+ F.push.apply(F, K(L.errors || [])), _.push.apply(_, K(L.warnings || []));
1673
+ }), [F, _];
1674
+ }, [d, w.errors, w.warnings]), Z = Vn();
1675
+ function ee(F, _, L) {
1676
+ return r && !S ? /* @__PURE__ */ l.createElement(ct, {
1690
1677
  prefixCls: x,
1691
1678
  hasFeedback: e.hasFeedback,
1692
1679
  validateStatus: e.validateStatus,
@@ -1694,122 +1681,128 @@ function Qn(e) {
1694
1681
  errors: X,
1695
1682
  warnings: U,
1696
1683
  noStyle: !0
1697
- }, M) : /* @__PURE__ */ i.createElement(kn, Object.assign({
1684
+ }, F) : /* @__PURE__ */ l.createElement(Xn, Object.assign({
1698
1685
  key: "row"
1699
1686
  }, e, {
1700
- className: J(n, F, g, H),
1687
+ className: J(n, M, g, H),
1701
1688
  prefixCls: x,
1702
1689
  fieldId: _,
1703
- isRequired: D,
1690
+ isRequired: L,
1704
1691
  errors: X,
1705
1692
  warnings: U,
1706
1693
  meta: w,
1707
1694
  onSubItemMetaChange: G,
1708
1695
  layout: I
1709
- }), M);
1696
+ }), F);
1710
1697
  }
1711
1698
  if (!v && !h && !o)
1712
- return j(te(u));
1713
- let L = {};
1714
- return typeof y == "string" ? L.label = y : t && (L.label = String(t)), $ && (L = Object.assign(Object.assign({}, L), $)), j(/* @__PURE__ */ i.createElement(Dt, Object.assign({}, e, {
1715
- messageVariables: L,
1699
+ return j(ee(u));
1700
+ let D = {};
1701
+ return typeof y == "string" ? D.label = y : t && (D.label = String(t)), $ && (D = Object.assign(Object.assign({}, D), $)), j(/* @__PURE__ */ l.createElement(Pt, Object.assign({}, e, {
1702
+ messageVariables: D,
1716
1703
  trigger: O,
1717
- validateTrigger: V,
1704
+ validateTrigger: P,
1718
1705
  onMetaChange: T
1719
- }), (M, _, D) => {
1720
- const B = le(t).length && _ ? _.name : [], k = ot(B, N), ne = f !== void 0 ? f : !!(l != null && l.some((W) => {
1706
+ }), (F, _, L) => {
1707
+ const B = ae(t).length && _ ? _.name : [], k = ot(B, N), te = f !== void 0 ? f : !!(a != null && a.some((W) => {
1721
1708
  if (W && typeof W == "object" && W.required && !W.warningOnly)
1722
1709
  return !0;
1723
1710
  if (typeof W == "function") {
1724
- const ie = W(D);
1725
- return (ie == null ? void 0 : ie.required) && !(ie != null && ie.warningOnly);
1711
+ const le = W(L);
1712
+ return (le == null ? void 0 : le.required) && !(le != null && le.warningOnly);
1726
1713
  }
1727
1714
  return !1;
1728
- })), oe = Object.assign({}, M);
1715
+ })), oe = Object.assign({}, F);
1729
1716
  let se = null;
1730
- if (process.env.NODE_ENV !== "production" && C(!(a && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(u) && v)
1717
+ if (process.env.NODE_ENV !== "production" && C(!(i && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(u) && v)
1731
1718
  process.env.NODE_ENV !== "production" && C(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), se = u;
1732
- else if (h && (!(a || o) || v))
1733
- process.env.NODE_ENV !== "production" && C(!!(a || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && C(!v, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
1719
+ else if (h && (!(i || o) || v))
1720
+ process.env.NODE_ENV !== "production" && C(!!(i || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && C(!v, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
1734
1721
  else if (o && !h && !v)
1735
1722
  process.env.NODE_ENV !== "production" && C(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
1736
- else if (/* @__PURE__ */ i.isValidElement(u)) {
1723
+ else if (/* @__PURE__ */ l.isValidElement(u)) {
1737
1724
  process.env.NODE_ENV !== "production" && C(u.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
1738
1725
  const W = Object.assign(Object.assign({}, u.props), oe);
1739
1726
  if (W.id || (W.id = k), E || X.length > 0 || U.length > 0 || e.extra) {
1740
- const ae = [];
1741
- (E || X.length > 0) && ae.push(`${k}_help`), e.extra && ae.push(`${k}_extra`), W["aria-describedby"] = ae.join(" ");
1727
+ const ie = [];
1728
+ (E || X.length > 0) && ie.push(`${k}_help`), e.extra && ie.push(`${k}_extra`), W["aria-describedby"] = ie.join(" ");
1742
1729
  }
1743
- X.length > 0 && (W["aria-invalid"] = "true"), ne && (W["aria-required"] = "true"), Ft(u) && (W.ref = ee(B, u)), new Set([].concat(K(le(O)), K(le(V)))).forEach((ae) => {
1744
- W[ae] = function() {
1745
- for (var Me, Fe, ye, Ne, $e, je = arguments.length, xe = new Array(je), de = 0; de < je; de++)
1730
+ X.length > 0 && (W["aria-invalid"] = "true"), te && (W["aria-required"] = "true"), It(u) && (W.ref = Z(B, u)), new Set([].concat(K(ae(O)), K(ae(P)))).forEach((ie) => {
1731
+ W[ie] = function() {
1732
+ for (var Fe, Me, ye, Ne, $e, je = arguments.length, xe = new Array(je), de = 0; de < je; de++)
1746
1733
  xe[de] = arguments[de];
1747
- (ye = oe[ae]) === null || ye === void 0 || (Me = ye).call.apply(Me, [oe].concat(xe)), ($e = (Ne = u.props)[ae]) === null || $e === void 0 || (Fe = $e).call.apply(Fe, [Ne].concat(xe));
1734
+ (ye = oe[ie]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [oe].concat(xe)), ($e = (Ne = u.props)[ie]) === null || $e === void 0 || (Me = $e).call.apply(Me, [Ne].concat(xe));
1748
1735
  };
1749
1736
  });
1750
- const ft = [W["aria-required"], W["aria-invalid"], W["aria-describedby"]];
1751
- se = /* @__PURE__ */ i.createElement(Yn, {
1737
+ const dt = [W["aria-required"], W["aria-invalid"], W["aria-describedby"]];
1738
+ se = /* @__PURE__ */ l.createElement(Kn, {
1752
1739
  control: oe,
1753
1740
  update: u,
1754
- childProps: ft
1755
- }, Gt(u, W));
1756
- } else h && (a || o) && !v ? se = u(D) : (process.env.NODE_ENV !== "production" && C(!B.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), se = u);
1757
- return te(se, k, ne);
1741
+ childProps: dt
1742
+ }, qt(u, W));
1743
+ } else h && (i || o) && !v ? se = u(L) : (process.env.NODE_ENV !== "production" && C(!B.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), se = u);
1744
+ return ee(se, k, te);
1758
1745
  }));
1759
1746
  }
1760
- const dt = Qn;
1761
- dt.useStatus = lt;
1762
- var Jn = function(e, t) {
1747
+ const ut = Yn;
1748
+ ut.useStatus = at;
1749
+ var Qn = function(e, t) {
1763
1750
  var r = {};
1764
1751
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1765
1752
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1766
1753
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1767
1754
  return r;
1768
1755
  };
1769
- const Zn = (e) => {
1756
+ const Jn = (e) => {
1770
1757
  var {
1771
1758
  prefixCls: t,
1772
1759
  children: r
1773
- } = e, n = Jn(e, ["prefixCls", "children"]);
1760
+ } = e, n = Qn(e, ["prefixCls", "children"]);
1774
1761
  if (process.env.NODE_ENV !== "production") {
1775
- const l = be("Form.List");
1776
- process.env.NODE_ENV !== "production" && l(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
1762
+ const a = be("Form.List");
1763
+ process.env.NODE_ENV !== "production" && a(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
1777
1764
  }
1778
1765
  const {
1779
1766
  getPrefixCls: o
1780
- } = i.useContext(ue), s = o("form", t), a = i.useMemo(() => ({
1767
+ } = l.useContext(ue), s = o("form", t), i = l.useMemo(() => ({
1781
1768
  prefixCls: s,
1782
1769
  status: "error"
1783
1770
  }), [s]);
1784
- return /* @__PURE__ */ i.createElement(Lt, Object.assign({}, n), (l, c, f) => /* @__PURE__ */ i.createElement(Se.Provider, {
1785
- value: a
1786
- }, r(l.map((y) => Object.assign(Object.assign({}, y), {
1771
+ return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (a, c, f) => /* @__PURE__ */ l.createElement(Se.Provider, {
1772
+ value: i
1773
+ }, r(a.map((y) => Object.assign(Object.assign({}, y), {
1787
1774
  fieldKey: y.key
1788
1775
  })), c, {
1789
1776
  errors: f.errors,
1790
1777
  warnings: f.warnings
1791
1778
  })));
1792
1779
  };
1793
- function er() {
1780
+ function Zn() {
1794
1781
  const {
1795
1782
  form: e
1796
- } = i.useContext(re);
1783
+ } = l.useContext(ne);
1797
1784
  return e;
1798
1785
  }
1799
- const Z = at;
1800
- Z.Item = dt;
1801
- Z.List = Zn;
1802
- Z.ErrorList = rt;
1803
- Z.useForm = it;
1804
- Z.useFormInstance = er;
1805
- Z.useWatch = Tt;
1806
- Z.Provider = Ye;
1807
- Z.create = () => {
1808
- process.env.NODE_ENV !== "production" && Nt(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1786
+ const re = it;
1787
+ re.Item = ut;
1788
+ re.List = Jn;
1789
+ re.ErrorList = rt;
1790
+ re.useForm = lt;
1791
+ re.useFormInstance = Zn;
1792
+ re.useWatch = Lt;
1793
+ re.Provider = Ke;
1794
+ re.create = () => {
1795
+ process.env.NODE_ENV !== "production" && Ft(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1809
1796
  };
1810
- const pr = ({ ...e }) => /* @__PURE__ */ Xe(Z.Item, { ...e }), gr = ({ children: e, ...t }) => (mt(), /* @__PURE__ */ Xe(Z, { children: e }));
1797
+ const hr = ft(re)`
1798
+ label,
1799
+ .ant-form-item-label > label,
1800
+ .ant-form-item-required,
1801
+ .ant-form-item-row > label {
1802
+ height: auto !important;
1803
+ }
1804
+ `;
1811
1805
  export {
1812
- gr as F,
1813
- Z as a,
1814
- pr as b
1806
+ re as F,
1807
+ hr as a
1815
1808
  };