@gobolt/genesis 0.0.7 → 0.0.8

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 (258) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-c395a1c4.js +204 -0
  3. package/dist/CheckOutlined-52d9ac25.js +29 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
  5. package/dist/CloseOutlined-14b8bba1.js +16 -0
  6. package/dist/Compact-c39ed20d.js +179 -0
  7. package/dist/ContextIsolator-b09b2c52.js +20 -0
  8. package/dist/DownOutlined-64a4732a.js +206 -0
  9. package/dist/EllipsisOutlined-60122660.js +1115 -0
  10. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
  11. package/dist/InfoCircleFilled-c5f90c20.js +16 -0
  12. package/dist/Overflow-a570fa69.js +361 -0
  13. package/dist/RightOutlined-83515eb4.js +16 -0
  14. package/dist/SearchOutlined-a9014e08.js +16 -0
  15. package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
  16. package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
  17. package/dist/collapse-345bc884.js +20 -0
  18. package/dist/compact-item-b8f85aa6.js +75 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +102 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +72 -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 +23 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +35 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -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 +70 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +27 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +23 -0
  54. package/dist/components/Breadcrumb/styles.js +2457 -0
  55. package/dist/components/Button/Button.js +42 -0
  56. package/dist/components/Button/__tests__/Button.test.js +61 -0
  57. package/dist/components/Button/index.js +22 -0
  58. package/dist/components/{atoms/button → Button}/styles.js +30 -19
  59. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  60. package/dist/components/Checkbox/Checkbox.js +70 -0
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
  62. package/dist/components/Checkbox/index.js +49 -0
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
  66. package/dist/components/ErrorBoundaryFallback/index.js +51 -0
  67. package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
  69. package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
  70. package/dist/components/Form/Form.js +49 -0
  71. package/dist/components/Form/__stories__/FormStory.js +130 -0
  72. package/dist/components/Form/index.js +48 -0
  73. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  74. package/dist/components/Input/Input.js +42 -0
  75. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  76. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  77. package/dist/components/Input/__tests__/Input.test.js +69 -0
  78. package/dist/components/Input/index.js +31 -0
  79. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
  80. package/dist/components/Input/styles.js +542 -0
  81. package/dist/components/Message/Message.d.ts +13 -0
  82. package/dist/components/Message/Message.js +105 -0
  83. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  84. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  85. package/dist/components/Message/__tests__/Message.test.js +88 -0
  86. package/dist/components/Message/index.d.ts +2 -0
  87. package/dist/components/Message/index.js +50 -0
  88. package/dist/components/Message/styles.d.ts +5 -0
  89. package/dist/components/Message/styles.js +35 -0
  90. package/dist/components/Notification/Notification.d.ts +16 -0
  91. package/dist/components/Notification/Notification.js +1436 -0
  92. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  93. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  94. package/dist/components/Notification/__tests__/Notification.test.js +76 -0
  95. package/dist/components/Notification/index.d.ts +2 -0
  96. package/dist/components/Notification/index.js +61 -0
  97. package/dist/components/Notification/styles.d.ts +6 -0
  98. package/dist/components/Notification/styles.js +49 -0
  99. package/dist/components/Radio/Radio.d.ts +14 -0
  100. package/dist/components/Radio/Radio.js +114 -0
  101. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  102. package/dist/components/Radio/RadioGroup.js +86 -0
  103. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  104. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  105. package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
  106. package/dist/components/Radio/index.d.ts +2 -0
  107. package/dist/components/Radio/index.js +58 -0
  108. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  109. package/dist/components/Radio/states/RadioChecked.js +18 -0
  110. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  111. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  112. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  113. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  114. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  115. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  116. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  117. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  118. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  119. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  120. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  121. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  122. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  123. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  124. package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
  125. package/dist/components/Select/Select.js +48 -0
  126. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  127. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  128. package/dist/components/Select/__tests__/Select.test.js +101 -0
  129. package/dist/components/Select/index.js +30 -0
  130. package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
  131. package/dist/components/Select/styles.js +3723 -0
  132. package/dist/components/Toast/Toast.d.ts +14 -0
  133. package/dist/components/Toast/Toast.js +48 -0
  134. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  135. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  136. package/dist/components/Toast/__tests__/Toast.test.js +63 -0
  137. package/dist/components/Toast/index.d.ts +2 -0
  138. package/dist/components/Toast/index.js +48 -0
  139. package/dist/components/Toast/styles.d.ts +5 -0
  140. package/dist/components/Toast/styles.js +39 -0
  141. package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
  142. package/dist/components/Typography/Typography.js +48 -0
  143. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  144. package/dist/components/Typography/__tests__/Typography.test.js +60 -0
  145. package/dist/components/Typography/index.js +48 -0
  146. package/dist/components/Typography/styles.d.ts +7 -0
  147. package/dist/components/Typography/styles.js +55 -0
  148. package/dist/components/index.d.ts +18 -14
  149. package/dist/components/index.js +70 -14
  150. package/dist/constants/index.d.ts +104 -0
  151. package/dist/constants/index.js +41 -7
  152. package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
  153. package/dist/genesis/GenesisThemeBreakdown.js +69 -22
  154. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  155. package/dist/genesis/GenesisThemeDemo.js +53 -4
  156. package/dist/genesis/styles.d.ts +2 -6
  157. package/dist/genesis/styles.js +1144 -2210
  158. package/dist/index-0a886e53.js +100 -0
  159. package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
  160. package/dist/index-1a33c134.js +1389 -0
  161. package/dist/index-4003d75b.js +3748 -0
  162. package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
  163. package/dist/index-89035ea5.js +3242 -0
  164. package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
  165. package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
  166. package/dist/index.d.ts +1 -0
  167. package/dist/index.js +77 -18
  168. package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
  169. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
  170. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
  171. package/dist/presets-83ccb923.js +787 -0
  172. package/dist/providers/GenesisProvider.d.ts +5 -0
  173. package/dist/providers/GenesisProvider.js +59 -5
  174. package/dist/providers/ThemeProvider.d.ts +2 -1
  175. package/dist/providers/ThemeProvider.js +16 -11
  176. package/dist/providers/ToastProvider.d.ts +6 -0
  177. package/dist/providers/ToastProvider.js +49 -0
  178. package/dist/providers/ToastWrapper.d.ts +7 -0
  179. package/dist/providers/ToastWrapper.js +56 -0
  180. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  181. package/dist/providers/index.d.ts +3 -2
  182. package/dist/providers/index.js +51 -4
  183. package/dist/setup-aaca7b6f.js +21158 -0
  184. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
  185. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
  186. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
  187. package/dist/styles/design-tokens/variables.d.ts +7 -7
  188. package/dist/styles/design-tokens/variables.js +48 -48
  189. package/dist/styles/global-styles.js +4 -3
  190. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  191. package/dist/styles/theme/genesis-theme.js +402 -263
  192. package/dist/styles/theme/global-styles.js +4 -3
  193. package/dist/styles/theme/index.js +5 -4
  194. package/dist/test/setup.js +46 -2
  195. package/dist/useVariants-a0d64298.js +30 -0
  196. package/dist/utils/isAllEnglishString.js +2 -1
  197. package/package.json +34 -28
  198. package/dist/AntdIcon-Bsnbyy6g.js +0 -200
  199. package/dist/CheckOutlined-DAynWe12.js +0 -527
  200. package/dist/Compact-CJBo3f0u.js +0 -185
  201. package/dist/ContextIsolator-CGkdKtc3.js +0 -20
  202. package/dist/Form-Cylpi4M4.js +0 -1815
  203. package/dist/Overflow-CP1M4Z0s.js +0 -369
  204. package/dist/compact-item-DH13cl8A.js +0 -61
  205. package/dist/components/atoms/button/Button.js +0 -27
  206. package/dist/components/atoms/button/index.js +0 -4
  207. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  208. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
  209. package/dist/components/atoms/checkbox/index.js +0 -4
  210. package/dist/components/atoms/index.d.ts +0 -1
  211. package/dist/components/atoms/index.js +0 -3
  212. package/dist/components/atoms/input/Input.js +0 -12
  213. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  214. package/dist/components/atoms/input/index.js +0 -4
  215. package/dist/components/atoms/input/styles.js +0 -415
  216. package/dist/components/atoms/select/Select.js +0 -24
  217. package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
  218. package/dist/components/atoms/select/index.js +0 -4
  219. package/dist/components/atoms/select/styles.js +0 -3868
  220. package/dist/components/atoms/typography/Typography.js +0 -44
  221. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  222. package/dist/components/atoms/typography/index.js +0 -4
  223. package/dist/components/atoms/typography/styles.d.ts +0 -11
  224. package/dist/components/atoms/typography/styles.js +0 -28
  225. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  226. package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
  227. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
  228. package/dist/components/molecules/form/Form.js +0 -7
  229. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  230. package/dist/components/molecules/form/index.js +0 -4
  231. package/dist/index-3MWkSVA1.js +0 -96
  232. package/dist/index-BPtFqhcp.js +0 -19110
  233. package/dist/index-BWys7dkb.js +0 -4462
  234. package/dist/index-VDH3iLaC.js +0 -884
  235. package/dist/setup-CMYVZCPF.js +0 -33883
  236. package/dist/useVariants-CEpw6Ww6.js +0 -29
  237. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  239. /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
  240. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
  244. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  245. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  246. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  247. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
  248. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  249. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
  250. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  251. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  252. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  254. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  255. /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
  256. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
  257. /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
  258. /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
@@ -1,14 +1,15 @@
1
- import { N as lr, w as D, aa as fr, ab as Ye, ac as cr, b as W, a as x, H as O, o as Be, p as Ze, q as oe, h as d, ad as q, r as le, ae as ie, a8 as Q, a9 as B, af as Le, d as Ae, _ as Qe, e as ue } from "./index-BWys7dkb.js";
2
- import * as b from "react";
1
+ import { B as lr, R as fr, T as Ye, U as cr, v as O, _ as Be, e as Ze, f as ue, W as q, h as le, X as ie, Y as Q, Z as B, Q as Le } from "./index-4003d75b.js";
2
+ import * as E from "react";
3
3
  import { useRef as we, useState as dr, useMemo as gr, useContext as vr, useEffect as hr } from "react";
4
- import { _ as fe, a as Y, t as mr, o as pr } from "./isVisible-CNQjrJPN.js";
5
- const vt = (s) => {
4
+ import { w as D, d as W, _ as x, h as d, e as Ae, a as Qe, f as oe } from "./presets-83ccb923.js";
5
+ import { _ as fe, a as Y, t as mr, o as pr } from "./isVisible-729780f5.js";
6
+ const Fr = (s) => {
6
7
  const [, , , , t] = lr();
7
8
  return t ? `${s}-css-var` : "";
8
- };
9
+ }, mt = Fr;
9
10
  var X = "RC_FORM_INTERNAL_HOOKS", S = function() {
10
11
  D(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
11
- }, ne = /* @__PURE__ */ b.createContext({
12
+ }, ne = /* @__PURE__ */ E.createContext({
12
13
  getFieldValue: S,
13
14
  getFieldsValue: S,
14
15
  getFieldError: S,
@@ -40,14 +41,14 @@ var X = "RC_FORM_INTERNAL_HOOKS", S = function() {
40
41
  getInitialValue: S
41
42
  };
42
43
  }
43
- }), he = /* @__PURE__ */ b.createContext(null);
44
+ }), he = /* @__PURE__ */ E.createContext(null);
44
45
  function Ve(s) {
45
46
  return s == null ? [] : Array.isArray(s) ? s : [s];
46
47
  }
47
- function Fr(s) {
48
+ function yr(s) {
48
49
  return s && !!s._init;
49
50
  }
50
- function be() {
51
+ function Ee() {
51
52
  return {
52
53
  default: "Validation error on field %s",
53
54
  required: "%s is required",
@@ -100,16 +101,17 @@ function be() {
100
101
  }
101
102
  };
102
103
  }
103
- var Ee = be();
104
- function yr(s) {
104
+ var be = Ee();
105
+ function wr(s) {
105
106
  try {
106
107
  return Function.toString.call(s).indexOf("[native code]") !== -1;
107
108
  } catch {
108
109
  return typeof s == "function";
109
110
  }
110
111
  }
111
- function wr(s, t, e) {
112
- if (fr()) return Reflect.construct.apply(null, arguments);
112
+ function Vr(s, t, e) {
113
+ if (fr())
114
+ return Reflect.construct.apply(null, arguments);
113
115
  var n = [null];
114
116
  n.push.apply(n, t);
115
117
  var r = new (s.bind.apply(s, n))();
@@ -118,14 +120,17 @@ function wr(s, t, e) {
118
120
  function Pe(s) {
119
121
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
120
122
  return Pe = function(n) {
121
- if (n === null || !yr(n)) return n;
122
- if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
123
+ if (n === null || !wr(n))
124
+ return n;
125
+ if (typeof n != "function")
126
+ throw new TypeError("Super expression must either be null or a function");
123
127
  if (t !== void 0) {
124
- if (t.has(n)) return t.get(n);
128
+ if (t.has(n))
129
+ return t.get(n);
125
130
  t.set(n, r);
126
131
  }
127
132
  function r() {
128
- return wr(n, arguments, cr(this).constructor);
133
+ return Vr(n, arguments, cr(this).constructor);
129
134
  }
130
135
  return r.prototype = Object.create(n.prototype, {
131
136
  constructor: {
@@ -137,7 +142,7 @@ function Pe(s) {
137
142
  }), Ye(r, n);
138
143
  }, Pe(s);
139
144
  }
140
- var Vr = /%[sdj%]/g, Xe = function() {
145
+ var Er = /%[sdj%]/g, Xe = function() {
141
146
  };
142
147
  typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Xe = function(t, e) {
143
148
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && e.every(function(n) {
@@ -145,7 +150,8 @@ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" &&
145
150
  }) && console.warn(t, e);
146
151
  });
147
152
  function Ce(s) {
148
- if (!s || !s.length) return null;
153
+ if (!s || !s.length)
154
+ return null;
149
155
  var t = {};
150
156
  return s.forEach(function(e) {
151
157
  var n = e.field;
@@ -159,12 +165,12 @@ function H(s) {
159
165
  if (typeof s == "function")
160
166
  return s.apply(null, e);
161
167
  if (typeof s == "string") {
162
- var a = s.replace(Vr, function(u) {
163
- if (u === "%%")
168
+ var a = s.replace(Er, function(o) {
169
+ if (o === "%%")
164
170
  return "%";
165
171
  if (r >= i)
166
- return u;
167
- switch (u) {
172
+ return o;
173
+ switch (o) {
168
174
  case "%s":
169
175
  return String(e[r++]);
170
176
  case "%d":
@@ -177,7 +183,7 @@ function H(s) {
177
183
  }
178
184
  break;
179
185
  default:
180
- return u;
186
+ return o;
181
187
  }
182
188
  });
183
189
  return a;
@@ -190,13 +196,13 @@ function br(s) {
190
196
  function j(s, t) {
191
197
  return !!(s == null || t === "array" && Array.isArray(s) && !s.length || br(t) && typeof s == "string" && !s);
192
198
  }
193
- function Er(s, t, e) {
199
+ function Pr(s, t, e) {
194
200
  var n = [], r = 0, i = s.length;
195
- function a(u) {
196
- n.push.apply(n, O(u || [])), r++, r === i && e(n);
201
+ function a(o) {
202
+ n.push.apply(n, O(o || [])), r++, r === i && e(n);
197
203
  }
198
- s.forEach(function(u) {
199
- t(u, a);
204
+ s.forEach(function(o) {
205
+ t(o, a);
200
206
  });
201
207
  }
202
208
  function je(s, t, e) {
@@ -206,12 +212,12 @@ function je(s, t, e) {
206
212
  e(a);
207
213
  return;
208
214
  }
209
- var u = n;
210
- n = n + 1, u < r ? t(s[u], i) : e([]);
215
+ var o = n;
216
+ n = n + 1, o < r ? t(s[o], i) : e([]);
211
217
  }
212
218
  i([]);
213
219
  }
214
- function Pr(s) {
220
+ function Cr(s) {
215
221
  var t = [];
216
222
  return Object.keys(s).forEach(function(e) {
217
223
  t.push.apply(t, O(s[e] || []));
@@ -222,40 +228,40 @@ var De = /* @__PURE__ */ function(s) {
222
228
  var t = Ze(e);
223
229
  function e(n, r) {
224
230
  var i;
225
- return oe(this, e), i = t.call(this, "Async Validation Error"), d(q(i), "errors", void 0), d(q(i), "fields", void 0), i.errors = n, i.fields = r, i;
231
+ return ue(this, e), i = t.call(this, "Async Validation Error"), d(q(i), "errors", void 0), d(q(i), "fields", void 0), i.errors = n, i.fields = r, i;
226
232
  }
227
233
  return le(e);
228
234
  }(/* @__PURE__ */ Pe(Error));
229
- function Cr(s, t, e, n, r) {
235
+ function Nr(s, t, e, n, r) {
230
236
  if (t.first) {
231
- var i = new Promise(function(h, E) {
237
+ var i = new Promise(function(h, b) {
232
238
  var p = function(F) {
233
- return n(F), F.length ? E(new De(F, Ce(F))) : h(r);
234
- }, m = Pr(s);
239
+ return n(F), F.length ? b(new De(F, Ce(F))) : h(r);
240
+ }, m = Cr(s);
235
241
  je(m, e, p);
236
242
  });
237
243
  return i.catch(function(h) {
238
244
  return h;
239
245
  }), i;
240
246
  }
241
- var a = t.firstFields === !0 ? Object.keys(s) : t.firstFields || [], u = Object.keys(s), l = u.length, f = 0, o = [], g = new Promise(function(h, E) {
247
+ var a = t.firstFields === !0 ? Object.keys(s) : t.firstFields || [], o = Object.keys(s), l = o.length, f = 0, u = [], g = new Promise(function(h, b) {
242
248
  var p = function(c) {
243
- if (o.push.apply(o, c), f++, f === l)
244
- return n(o), o.length ? E(new De(o, Ce(o))) : h(r);
249
+ if (u.push.apply(u, c), f++, f === l)
250
+ return n(u), u.length ? b(new De(u, Ce(u))) : h(r);
245
251
  };
246
- u.length || (n(o), h(r)), u.forEach(function(m) {
252
+ o.length || (n(u), h(r)), o.forEach(function(m) {
247
253
  var c = s[m];
248
- a.indexOf(m) !== -1 ? je(c, e, p) : Er(c, e, p);
254
+ a.indexOf(m) !== -1 ? je(c, e, p) : Pr(c, e, p);
249
255
  });
250
256
  });
251
257
  return g.catch(function(h) {
252
258
  return h;
253
259
  }), g;
254
260
  }
255
- function Nr(s) {
261
+ function xr(s) {
256
262
  return !!(s && s.message !== void 0);
257
263
  }
258
- function xr(s, t) {
264
+ function Rr(s, t) {
259
265
  for (var e = s, n = 0; n < t.length; n++) {
260
266
  if (e == null)
261
267
  return e;
@@ -266,7 +272,7 @@ function xr(s, t) {
266
272
  function _e(s, t) {
267
273
  return function(e) {
268
274
  var n;
269
- return s.fullFields ? n = xr(t, s.fullFields) : n = t[e.field || s.fullField], Nr(e) ? (e.field = e.field || s.fullField, e.fieldValue = n, e) : {
275
+ return s.fullFields ? n = Rr(t, s.fullFields) : n = t[e.field || s.fullField], xr(e) ? (e.field = e.field || s.fullField, e.fieldValue = n, e) : {
270
276
  message: typeof e == "function" ? e() : e,
271
277
  fieldValue: n,
272
278
  field: e.field || s.fullField
@@ -283,9 +289,9 @@ function We(s, t) {
283
289
  }
284
290
  return s;
285
291
  }
286
- var ee = "enum", Rr = function(t, e, n, r, i) {
292
+ var ee = "enum", kr = function(t, e, n, r, i) {
287
293
  t[ee] = Array.isArray(t[ee]) ? t[ee] : [], t[ee].indexOf(e) === -1 && r.push(H(i.messages[ee], t.fullField, t[ee].join(", ")));
288
- }, kr = function(t, e, n, r, i) {
294
+ }, Or = function(t, e, n, r, i) {
289
295
  if (t.pattern) {
290
296
  if (t.pattern instanceof RegExp)
291
297
  t.pattern.lastIndex = 0, t.pattern.test(e) || r.push(H(i.messages.pattern.mismatch, t.fullField, e, t.pattern));
@@ -294,15 +300,15 @@ var ee = "enum", Rr = function(t, e, n, r, i) {
294
300
  a.test(e) || r.push(H(i.messages.pattern.mismatch, t.fullField, e, t.pattern));
295
301
  }
296
302
  }
297
- }, Or = function(t, e, n, r, i) {
298
- var a = typeof t.len == "number", u = typeof t.min == "number", l = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, o = e, g = null, h = typeof e == "number", E = typeof e == "string", p = Array.isArray(e);
299
- if (h ? g = "number" : E ? g = "string" : p && (g = "array"), !g)
303
+ }, $r = function(t, e, n, r, i) {
304
+ var a = typeof t.len == "number", o = typeof t.min == "number", l = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, u = e, g = null, h = typeof e == "number", b = typeof e == "string", p = Array.isArray(e);
305
+ if (h ? g = "number" : b ? g = "string" : p && (g = "array"), !g)
300
306
  return !1;
301
- p && (o = e.length), E && (o = e.replace(f, "_").length), a ? o !== t.len && r.push(H(i.messages[g].len, t.fullField, t.len)) : u && !l && o < t.min ? r.push(H(i.messages[g].min, t.fullField, t.min)) : l && !u && o > t.max ? r.push(H(i.messages[g].max, t.fullField, t.max)) : u && l && (o < t.min || o > t.max) && r.push(H(i.messages[g].range, t.fullField, t.min, t.max));
307
+ p && (u = e.length), b && (u = e.replace(f, "_").length), a ? u !== t.len && r.push(H(i.messages[g].len, t.fullField, t.len)) : o && !l && u < t.min ? r.push(H(i.messages[g].min, t.fullField, t.min)) : l && !o && u > t.max ? r.push(H(i.messages[g].max, t.fullField, t.max)) : o && l && (u < t.min || u > t.max) && r.push(H(i.messages[g].range, t.fullField, t.min, t.max));
302
308
  }, er = function(t, e, n, r, i, a) {
303
309
  t.required && (!n.hasOwnProperty(t.field) || j(e, a || t.type)) && r.push(H(i.messages.required, t.fullField));
304
310
  }, ve;
305
- const $r = function() {
311
+ const Ar = function() {
306
312
  if (ve)
307
313
  return ve;
308
314
  var s = "[a-fA-F\\d:]", t = function(A) {
@@ -324,15 +330,15 @@ const $r = function() {
324
330
  // 1:: 1::3:4:5:6:7:8 1::8 1::
325
331
  "(?::(?:(?::".concat(n, "){0,5}:").concat(e, "|(?::").concat(n, "){1,7}|:))")
326
332
  // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::
327
- ], i = "(?:%[0-9a-zA-Z]{1,})?", a = "(?:".concat(r.join("|"), ")").concat(i), u = new RegExp("(?:^".concat(e, "$)|(?:^").concat(a, "$)")), l = new RegExp("^".concat(e, "$")), f = new RegExp("^".concat(a, "$")), o = function(A) {
328
- return A && A.exact ? u : new RegExp("(?:".concat(t(A)).concat(e).concat(t(A), ")|(?:").concat(t(A)).concat(a).concat(t(A), ")"), "g");
333
+ ], i = "(?:%[0-9a-zA-Z]{1,})?", a = "(?:".concat(r.join("|"), ")").concat(i), o = new RegExp("(?:^".concat(e, "$)|(?:^").concat(a, "$)")), l = new RegExp("^".concat(e, "$")), f = new RegExp("^".concat(a, "$")), u = function(A) {
334
+ return A && A.exact ? o : new RegExp("(?:".concat(t(A)).concat(e).concat(t(A), ")|(?:").concat(t(A)).concat(a).concat(t(A), ")"), "g");
329
335
  };
330
- o.v4 = function(V) {
336
+ u.v4 = function(V) {
331
337
  return V && V.exact ? l : new RegExp("".concat(t(V)).concat(e).concat(t(V)), "g");
332
- }, o.v6 = function(V) {
338
+ }, u.v6 = function(V) {
333
339
  return V && V.exact ? f : new RegExp("".concat(t(V)).concat(a).concat(t(V)), "g");
334
340
  };
335
- var g = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", E = o.v4().source, p = o.v6().source, m = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", c = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", F = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', C = "(?:".concat(g, "|www\\.)").concat(h, "(?:localhost|").concat(E, "|").concat(p, "|").concat(m).concat(c).concat(F, ")").concat(v).concat(y);
341
+ var g = "(?:(?:[a-z]+:)?//)", h = "(?:\\S+(?::\\S*)?@)?", b = u.v4().source, p = u.v6().source, m = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", c = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", F = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', C = "(?:".concat(g, "|www\\.)").concat(h, "(?:localhost|").concat(b, "|").concat(p, "|").concat(m).concat(c).concat(F, ")").concat(v).concat(y);
336
342
  return ve = new RegExp("(?:^".concat(C, "$)"), "i"), ve;
337
343
  };
338
344
  var Ue = {
@@ -378,56 +384,56 @@ var Ue = {
378
384
  return typeof t == "string" && t.length <= 320 && !!t.match(Ue.email);
379
385
  },
380
386
  url: function(t) {
381
- return typeof t == "string" && t.length <= 2048 && !!t.match($r());
387
+ return typeof t == "string" && t.length <= 2048 && !!t.match(Ar());
382
388
  },
383
389
  hex: function(t) {
384
390
  return typeof t == "string" && !!t.match(Ue.hex);
385
391
  }
386
- }, Ar = function(t, e, n, r, i) {
392
+ }, qr = function(t, e, n, r, i) {
387
393
  if (t.required && e === void 0) {
388
394
  er(t, e, n, r, i);
389
395
  return;
390
396
  }
391
- var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], u = t.type;
392
- a.indexOf(u) > -1 ? ae[u](e) || r.push(H(i.messages.types[u], t.fullField, t.type)) : u && W(e) !== t.type && r.push(H(i.messages.types[u], t.fullField, t.type));
393
- }, qr = function(t, e, n, r, i) {
397
+ var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], o = t.type;
398
+ a.indexOf(o) > -1 ? ae[o](e) || r.push(H(i.messages.types[o], t.fullField, t.type)) : o && W(e) !== t.type && r.push(H(i.messages.types[o], t.fullField, t.type));
399
+ }, Mr = function(t, e, n, r, i) {
394
400
  (/^\s+$/.test(e) || e === "") && r.push(H(i.messages.whitespace, t.fullField));
395
401
  };
396
402
  const $ = {
397
403
  required: er,
398
- whitespace: qr,
399
- type: Ar,
400
- range: Or,
401
- enum: Rr,
402
- pattern: kr
404
+ whitespace: Mr,
405
+ type: qr,
406
+ range: $r,
407
+ enum: kr,
408
+ pattern: Or
403
409
  };
404
- var Mr = function(t, e, n, r, i) {
405
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
406
- if (u) {
410
+ var Sr = function(t, e, n, r, i) {
411
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
412
+ if (o) {
407
413
  if (j(e) && !t.required)
408
414
  return n();
409
415
  $.required(t, e, r, a, i);
410
416
  }
411
417
  n(a);
412
- }, Sr = function(t, e, n, r, i) {
413
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
414
- if (u) {
418
+ }, Tr = function(t, e, n, r, i) {
419
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
420
+ if (o) {
415
421
  if (e == null && !t.required)
416
422
  return n();
417
423
  $.required(t, e, r, a, i, "array"), e != null && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
418
424
  }
419
425
  n(a);
420
426
  }, Ir = function(t, e, n, r, i) {
421
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
422
- if (u) {
427
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
428
+ if (o) {
423
429
  if (j(e) && !t.required)
424
430
  return n();
425
431
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
426
432
  }
427
433
  n(a);
428
- }, Tr = function(t, e, n, r, i) {
429
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
430
- if (u) {
434
+ }, Lr = function(t, e, n, r, i) {
435
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
436
+ if (o) {
431
437
  if (j(e, "date") && !t.required)
432
438
  return n();
433
439
  if ($.required(t, e, r, a, i), !j(e, "date")) {
@@ -436,112 +442,112 @@ var Mr = function(t, e, n, r, i) {
436
442
  }
437
443
  }
438
444
  n(a);
439
- }, Lr = "enum", jr = function(t, e, n, r, i) {
440
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
441
- if (u) {
445
+ }, jr = "enum", Dr = function(t, e, n, r, i) {
446
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
447
+ if (o) {
442
448
  if (j(e) && !t.required)
443
449
  return n();
444
- $.required(t, e, r, a, i), e !== void 0 && $[Lr](t, e, r, a, i);
450
+ $.required(t, e, r, a, i), e !== void 0 && $[jr](t, e, r, a, i);
445
451
  }
446
452
  n(a);
447
- }, Dr = function(t, e, n, r, i) {
448
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
449
- if (u) {
453
+ }, _r = function(t, e, n, r, i) {
454
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
455
+ if (o) {
450
456
  if (j(e) && !t.required)
451
457
  return n();
452
458
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
453
459
  }
454
460
  n(a);
455
- }, _r = function(t, e, n, r, i) {
456
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
457
- if (u) {
461
+ }, Wr = function(t, e, n, r, i) {
462
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
463
+ if (o) {
458
464
  if (j(e) && !t.required)
459
465
  return n();
460
466
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
461
467
  }
462
468
  n(a);
463
- }, Wr = function(t, e, n, r, i) {
464
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
465
- if (u) {
469
+ }, Ur = function(t, e, n, r, i) {
470
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
471
+ if (o) {
466
472
  if (j(e) && !t.required)
467
473
  return n();
468
474
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
469
475
  }
470
476
  n(a);
471
- }, Ur = function(t, e, n, r, i) {
472
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
473
- if (u) {
477
+ }, Hr = function(t, e, n, r, i) {
478
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
479
+ if (o) {
474
480
  if (e === "" && (e = void 0), j(e) && !t.required)
475
481
  return n();
476
482
  $.required(t, e, r, a, i), e !== void 0 && ($.type(t, e, r, a, i), $.range(t, e, r, a, i));
477
483
  }
478
484
  n(a);
479
- }, Hr = function(t, e, n, r, i) {
480
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
481
- if (u) {
485
+ }, Kr = function(t, e, n, r, i) {
486
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
487
+ if (o) {
482
488
  if (j(e) && !t.required)
483
489
  return n();
484
490
  $.required(t, e, r, a, i), e !== void 0 && $.type(t, e, r, a, i);
485
491
  }
486
492
  n(a);
487
- }, Kr = function(t, e, n, r, i) {
488
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
489
- if (u) {
493
+ }, zr = function(t, e, n, r, i) {
494
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
495
+ if (o) {
490
496
  if (j(e, "string") && !t.required)
491
497
  return n();
492
498
  $.required(t, e, r, a, i), j(e, "string") || $.pattern(t, e, r, a, i);
493
499
  }
494
500
  n(a);
495
- }, zr = function(t, e, n, r, i) {
496
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
497
- if (u) {
501
+ }, Gr = function(t, e, n, r, i) {
502
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
503
+ if (o) {
498
504
  if (j(e) && !t.required)
499
505
  return n();
500
506
  $.required(t, e, r, a, i), j(e) || $.type(t, e, r, a, i);
501
507
  }
502
508
  n(a);
503
- }, Gr = function(t, e, n, r, i) {
504
- var a = [], u = Array.isArray(e) ? "array" : W(e);
505
- $.required(t, e, r, a, i, u), n(a);
506
509
  }, Jr = function(t, e, n, r, i) {
507
- var a = [], u = t.required || !t.required && r.hasOwnProperty(t.field);
508
- if (u) {
510
+ var a = [], o = Array.isArray(e) ? "array" : W(e);
511
+ $.required(t, e, r, a, i, o), n(a);
512
+ }, Yr = function(t, e, n, r, i) {
513
+ var a = [], o = t.required || !t.required && r.hasOwnProperty(t.field);
514
+ if (o) {
509
515
  if (j(e, "string") && !t.required)
510
516
  return n();
511
517
  $.required(t, e, r, a, i, "string"), j(e, "string") || ($.type(t, e, r, a, i), $.range(t, e, r, a, i), $.pattern(t, e, r, a, i), t.whitespace === !0 && $.whitespace(t, e, r, a, i));
512
518
  }
513
519
  n(a);
514
520
  }, pe = function(t, e, n, r, i) {
515
- var a = t.type, u = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
521
+ var a = t.type, o = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
516
522
  if (l) {
517
523
  if (j(e, a) && !t.required)
518
524
  return n();
519
- $.required(t, e, r, u, i, a), j(e, a) || $.type(t, e, r, u, i);
525
+ $.required(t, e, r, o, i, a), j(e, a) || $.type(t, e, r, o, i);
520
526
  }
521
- n(u);
527
+ n(o);
522
528
  };
523
529
  const se = {
524
- string: Jr,
525
- method: Wr,
526
- number: Ur,
530
+ string: Yr,
531
+ method: Ur,
532
+ number: Hr,
527
533
  boolean: Ir,
528
- regexp: zr,
529
- integer: _r,
530
- float: Dr,
531
- array: Sr,
532
- object: Hr,
533
- enum: jr,
534
- pattern: Kr,
535
- date: Tr,
534
+ regexp: Gr,
535
+ integer: Wr,
536
+ float: _r,
537
+ array: Tr,
538
+ object: Kr,
539
+ enum: Dr,
540
+ pattern: zr,
541
+ date: Lr,
536
542
  url: pe,
537
543
  hex: pe,
538
544
  email: pe,
539
- required: Gr,
540
- any: Mr
545
+ required: Jr,
546
+ any: Sr
541
547
  };
542
548
  var ce = /* @__PURE__ */ function() {
543
549
  function s(t) {
544
- oe(this, s), d(this, "rules", null), d(this, "_messages", Ee), this.define(t);
550
+ ue(this, s), d(this, "rules", null), d(this, "_messages", be), this.define(t);
545
551
  }
546
552
  return le(s, [{
547
553
  key: "define",
@@ -559,14 +565,14 @@ var ce = /* @__PURE__ */ function() {
559
565
  }, {
560
566
  key: "messages",
561
567
  value: function(e) {
562
- return e && (this._messages = We(be(), e)), this._messages;
568
+ return e && (this._messages = We(Ee(), e)), this._messages;
563
569
  }
564
570
  }, {
565
571
  key: "validate",
566
572
  value: function(e) {
567
573
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
568
- }, a = e, u = r, l = i;
569
- if (typeof u == "function" && (l = u, u = {}), !this.rules || Object.keys(this.rules).length === 0)
574
+ }, a = e, o = r, l = i;
575
+ if (typeof o == "function" && (l = o, o = {}), !this.rules || Object.keys(this.rules).length === 0)
570
576
  return l && l(null, a), Promise.resolve(a);
571
577
  function f(p) {
572
578
  var m = [], c = {};
@@ -581,12 +587,12 @@ var ce = /* @__PURE__ */ function() {
581
587
  F(p[v]);
582
588
  m.length ? (c = Ce(m), l(m, c)) : l(null, a);
583
589
  }
584
- if (u.messages) {
585
- var o = this.messages();
586
- o === Ee && (o = be()), We(o, u.messages), u.messages = o;
590
+ if (o.messages) {
591
+ var u = this.messages();
592
+ u === be && (u = Ee()), We(u, o.messages), o.messages = u;
587
593
  } else
588
- u.messages = this.messages();
589
- var g = {}, h = u.keys || Object.keys(this.rules);
594
+ o.messages = this.messages();
595
+ var g = {}, h = o.keys || Object.keys(this.rules);
590
596
  h.forEach(function(p) {
591
597
  var m = n.rules[p], c = a[p];
592
598
  m.forEach(function(F) {
@@ -601,8 +607,8 @@ var ce = /* @__PURE__ */ function() {
601
607
  }));
602
608
  });
603
609
  });
604
- var E = {};
605
- return Cr(g, u, function(p, m) {
610
+ var b = {};
611
+ return Nr(g, o, function(p, m) {
606
612
  var c = p.rule, F = (c.type === "object" || c.type === "array") && (W(c.fields) === "object" || W(c.defaultField) === "object");
607
613
  F = F && (c.required || !c.required && p.value), c.field = p.field;
608
614
  function v(N, R) {
@@ -613,40 +619,40 @@ var ce = /* @__PURE__ */ function() {
613
619
  }
614
620
  function y() {
615
621
  var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], R = Array.isArray(N) ? N : [N];
616
- !u.suppressWarning && R.length && s.warning("async-validator:", R), R.length && c.message !== void 0 && (R = [].concat(c.message));
622
+ !o.suppressWarning && R.length && s.warning("async-validator:", R), R.length && c.message !== void 0 && (R = [].concat(c.message));
617
623
  var w = R.map(_e(c, a));
618
- if (u.first && w.length)
619
- return E[c.field] = 1, m(w);
624
+ if (o.first && w.length)
625
+ return b[c.field] = 1, m(w);
620
626
  if (!F)
621
627
  m(w);
622
628
  else {
623
629
  if (c.required && !p.value)
624
- return c.message !== void 0 ? w = [].concat(c.message).map(_e(c, a)) : u.error && (w = [u.error(c, H(u.messages.required, c.field))]), m(w);
630
+ return c.message !== void 0 ? w = [].concat(c.message).map(_e(c, a)) : o.error && (w = [o.error(c, H(o.messages.required, c.field))]), m(w);
625
631
  var P = {};
626
- c.defaultField && Object.keys(p.value).map(function(I) {
627
- P[I] = c.defaultField;
632
+ c.defaultField && Object.keys(p.value).map(function(T) {
633
+ P[T] = c.defaultField;
628
634
  }), P = x(x({}, P), p.rule.fields);
629
635
  var k = {};
630
- Object.keys(P).forEach(function(I) {
631
- var M = P[I], z = Array.isArray(M) ? M : [M];
632
- k[I] = z.map(v.bind(null, I));
636
+ Object.keys(P).forEach(function(T) {
637
+ var M = P[T], z = Array.isArray(M) ? M : [M];
638
+ k[T] = z.map(v.bind(null, T));
633
639
  });
634
- var T = new s(k);
635
- T.messages(u.messages), p.rule.options && (p.rule.options.messages = u.messages, p.rule.options.error = u.error), T.validate(p.value, p.rule.options || u, function(I) {
640
+ var I = new s(k);
641
+ I.messages(o.messages), p.rule.options && (p.rule.options.messages = o.messages, p.rule.options.error = o.error), I.validate(p.value, p.rule.options || o, function(T) {
636
642
  var M = [];
637
- w && w.length && M.push.apply(M, O(w)), I && I.length && M.push.apply(M, O(I)), m(M.length ? M : null);
643
+ w && w.length && M.push.apply(M, O(w)), T && T.length && M.push.apply(M, O(T)), m(M.length ? M : null);
638
644
  });
639
645
  }
640
646
  }
641
647
  var C;
642
648
  if (c.asyncValidator)
643
- C = c.asyncValidator(c, p.value, y, p.source, u);
649
+ C = c.asyncValidator(c, p.value, y, p.source, o);
644
650
  else if (c.validator) {
645
651
  try {
646
- C = c.validator(c, p.value, y, p.source, u);
652
+ C = c.validator(c, p.value, y, p.source, o);
647
653
  } catch (N) {
648
654
  var V, A;
649
- (V = (A = console).error) === null || V === void 0 || V.call(A, N), u.suppressValidatorError || setTimeout(function() {
655
+ (V = (A = console).error) === null || V === void 0 || V.call(A, N), o.suppressValidatorError || setTimeout(function() {
650
656
  throw N;
651
657
  }, 0), y(N.message);
652
658
  }
@@ -684,7 +690,7 @@ d(ce, "register", function(t, e) {
684
690
  se[t] = e;
685
691
  });
686
692
  d(ce, "warning", Xe);
687
- d(ce, "messages", Ee);
693
+ d(ce, "messages", be);
688
694
  d(ce, "validators", se);
689
695
  var U = "'${name}' is not a valid ${type}", rr = {
690
696
  default: "Validation error on field '${name}'",
@@ -733,7 +739,7 @@ var U = "'${name}' is not a valid ${type}", rr = {
733
739
  mismatch: "'${name}' does not match pattern ${pattern}"
734
740
  }
735
741
  }, He = ce;
736
- function Yr(s, t) {
742
+ function Br(s, t) {
737
743
  return s.replace(/\\?\$\{\w+\}/g, function(e) {
738
744
  if (e.startsWith("\\"))
739
745
  return e.slice(1);
@@ -747,63 +753,64 @@ function Ne(s, t, e, n, r) {
747
753
  }
748
754
  function xe() {
749
755
  return xe = fe(/* @__PURE__ */ Y().mark(function s(t, e, n, r, i) {
750
- var a, u, l, f, o, g, h, E, p;
756
+ var a, o, l, f, u, g, h, b, p;
751
757
  return Y().wrap(function(c) {
752
- for (; ; ) switch (c.prev = c.next) {
753
- case 0:
754
- return a = x({}, n), delete a.ruleIndex, He.warning = function() {
755
- }, a.validator && (u = a.validator, a.validator = function() {
756
- try {
757
- return u.apply(void 0, arguments);
758
- } catch (F) {
759
- return console.error(F), Promise.reject(Ke);
760
- }
761
- }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), f = new He(d({}, t, [a])), o = ie(rr, r.validateMessages), f.messages(o), g = [], c.prev = 10, c.next = 13, Promise.resolve(f.validate(d({}, t, e), x({}, r)));
762
- case 13:
763
- c.next = 18;
764
- break;
765
- case 15:
766
- c.prev = 15, c.t0 = c.catch(10), c.t0.errors && (g = c.t0.errors.map(function(F, v) {
767
- var y = F.message, C = y === Ke ? o.default : y;
768
- return /* @__PURE__ */ b.isValidElement(C) ? (
769
- // Wrap ReactNode with `key`
770
- /* @__PURE__ */ b.cloneElement(C, {
771
- key: "error_".concat(v)
772
- })
773
- ) : C;
774
- }));
775
- case 18:
776
- if (!(!g.length && l)) {
777
- c.next = 23;
758
+ for (; ; )
759
+ switch (c.prev = c.next) {
760
+ case 0:
761
+ return a = x({}, n), delete a.ruleIndex, He.warning = function() {
762
+ }, a.validator && (o = a.validator, a.validator = function() {
763
+ try {
764
+ return o.apply(void 0, arguments);
765
+ } catch (F) {
766
+ return console.error(F), Promise.reject(Ke);
767
+ }
768
+ }), l = null, a && a.type === "array" && a.defaultField && (l = a.defaultField, delete a.defaultField), f = new He(d({}, t, [a])), u = ie(rr, r.validateMessages), f.messages(u), g = [], c.prev = 10, c.next = 13, Promise.resolve(f.validate(d({}, t, e), x({}, r)));
769
+ case 13:
770
+ c.next = 18;
778
771
  break;
779
- }
780
- return c.next = 21, Promise.all(e.map(function(F, v) {
781
- return Ne("".concat(t, ".").concat(v), F, l, r, i);
782
- }));
783
- case 21:
784
- return h = c.sent, c.abrupt("return", h.reduce(function(F, v) {
785
- return [].concat(O(F), O(v));
786
- }, []));
787
- case 23:
788
- return E = x(x({}, n), {}, {
789
- name: t,
790
- enum: (n.enum || []).join(", ")
791
- }, i), p = g.map(function(F) {
792
- return typeof F == "string" ? Yr(F, E) : F;
793
- }), c.abrupt("return", p);
794
- case 26:
795
- case "end":
796
- return c.stop();
797
- }
772
+ case 15:
773
+ c.prev = 15, c.t0 = c.catch(10), c.t0.errors && (g = c.t0.errors.map(function(F, v) {
774
+ var y = F.message, C = y === Ke ? u.default : y;
775
+ return /* @__PURE__ */ E.isValidElement(C) ? (
776
+ // Wrap ReactNode with `key`
777
+ /* @__PURE__ */ E.cloneElement(C, {
778
+ key: "error_".concat(v)
779
+ })
780
+ ) : C;
781
+ }));
782
+ case 18:
783
+ if (!(!g.length && l)) {
784
+ c.next = 23;
785
+ break;
786
+ }
787
+ return c.next = 21, Promise.all(e.map(function(F, v) {
788
+ return Ne("".concat(t, ".").concat(v), F, l, r, i);
789
+ }));
790
+ case 21:
791
+ return h = c.sent, c.abrupt("return", h.reduce(function(F, v) {
792
+ return [].concat(O(F), O(v));
793
+ }, []));
794
+ case 23:
795
+ return b = x(x({}, n), {}, {
796
+ name: t,
797
+ enum: (n.enum || []).join(", ")
798
+ }, i), p = g.map(function(F) {
799
+ return typeof F == "string" ? Br(F, b) : F;
800
+ }), c.abrupt("return", p);
801
+ case 26:
802
+ case "end":
803
+ return c.stop();
804
+ }
798
805
  }, s, null, [[10, 15]]);
799
806
  })), xe.apply(this, arguments);
800
807
  }
801
- function Br(s, t, e, n, r, i) {
802
- var a = s.join("."), u = e.map(function(o, g) {
803
- var h = o.validator, E = x(x({}, o), {}, {
808
+ function Zr(s, t, e, n, r, i) {
809
+ var a = s.join("."), o = e.map(function(u, g) {
810
+ var h = u.validator, b = x(x({}, u), {}, {
804
811
  ruleIndex: g
805
812
  });
806
- return h && (E.validator = function(p, m, c) {
813
+ return h && (b.validator = function(p, m, c) {
807
814
  var F = !1, v = function() {
808
815
  for (var V = arguments.length, A = new Array(V), N = 0; N < V; N++)
809
816
  A[N] = arguments[N];
@@ -816,105 +823,108 @@ function Br(s, t, e, n, r, i) {
816
823
  }).catch(function(C) {
817
824
  c(C || " ");
818
825
  });
819
- }), E;
820
- }).sort(function(o, g) {
821
- var h = o.warningOnly, E = o.ruleIndex, p = g.warningOnly, m = g.ruleIndex;
822
- return !!h == !!p ? E - m : h ? 1 : -1;
826
+ }), b;
827
+ }).sort(function(u, g) {
828
+ var h = u.warningOnly, b = u.ruleIndex, p = g.warningOnly, m = g.ruleIndex;
829
+ return !!h == !!p ? b - m : h ? 1 : -1;
823
830
  }), l;
824
831
  if (r === !0)
825
832
  l = new Promise(/* @__PURE__ */ function() {
826
- var o = fe(/* @__PURE__ */ Y().mark(function g(h, E) {
833
+ var u = fe(/* @__PURE__ */ Y().mark(function g(h, b) {
827
834
  var p, m, c;
828
835
  return Y().wrap(function(v) {
829
- for (; ; ) switch (v.prev = v.next) {
830
- case 0:
831
- p = 0;
832
- case 1:
833
- if (!(p < u.length)) {
834
- v.next = 12;
835
- break;
836
- }
837
- return m = u[p], v.next = 5, Ne(a, t, m, n, i);
838
- case 5:
839
- if (c = v.sent, !c.length) {
840
- v.next = 9;
836
+ for (; ; )
837
+ switch (v.prev = v.next) {
838
+ case 0:
839
+ p = 0;
840
+ case 1:
841
+ if (!(p < o.length)) {
842
+ v.next = 12;
843
+ break;
844
+ }
845
+ return m = o[p], v.next = 5, Ne(a, t, m, n, i);
846
+ case 5:
847
+ if (c = v.sent, !c.length) {
848
+ v.next = 9;
849
+ break;
850
+ }
851
+ return b([{
852
+ errors: c,
853
+ rule: m
854
+ }]), v.abrupt("return");
855
+ case 9:
856
+ p += 1, v.next = 1;
841
857
  break;
842
- }
843
- return E([{
844
- errors: c,
845
- rule: m
846
- }]), v.abrupt("return");
847
- case 9:
848
- p += 1, v.next = 1;
849
- break;
850
- case 12:
851
- h([]);
852
- case 13:
853
- case "end":
854
- return v.stop();
855
- }
858
+ case 12:
859
+ h([]);
860
+ case 13:
861
+ case "end":
862
+ return v.stop();
863
+ }
856
864
  }, g);
857
865
  }));
858
866
  return function(g, h) {
859
- return o.apply(this, arguments);
867
+ return u.apply(this, arguments);
860
868
  };
861
869
  }());
862
870
  else {
863
- var f = u.map(function(o) {
864
- return Ne(a, t, o, n, i).then(function(g) {
871
+ var f = o.map(function(u) {
872
+ return Ne(a, t, u, n, i).then(function(g) {
865
873
  return {
866
874
  errors: g,
867
- rule: o
875
+ rule: u
868
876
  };
869
877
  });
870
878
  });
871
- l = (r ? Qr(f) : Zr(f)).then(function(o) {
872
- return Promise.reject(o);
879
+ l = (r ? Xr(f) : Qr(f)).then(function(u) {
880
+ return Promise.reject(u);
873
881
  });
874
882
  }
875
- return l.catch(function(o) {
876
- return o;
883
+ return l.catch(function(u) {
884
+ return u;
877
885
  }), l;
878
886
  }
879
- function Zr(s) {
887
+ function Qr(s) {
880
888
  return Re.apply(this, arguments);
881
889
  }
882
890
  function Re() {
883
891
  return Re = fe(/* @__PURE__ */ Y().mark(function s(t) {
884
892
  return Y().wrap(function(n) {
885
- for (; ; ) switch (n.prev = n.next) {
886
- case 0:
887
- return n.abrupt("return", Promise.all(t).then(function(r) {
888
- var i, a = (i = []).concat.apply(i, O(r));
889
- return a;
890
- }));
891
- case 1:
892
- case "end":
893
- return n.stop();
894
- }
893
+ for (; ; )
894
+ switch (n.prev = n.next) {
895
+ case 0:
896
+ return n.abrupt("return", Promise.all(t).then(function(r) {
897
+ var i, a = (i = []).concat.apply(i, O(r));
898
+ return a;
899
+ }));
900
+ case 1:
901
+ case "end":
902
+ return n.stop();
903
+ }
895
904
  }, s);
896
905
  })), Re.apply(this, arguments);
897
906
  }
898
- function Qr(s) {
907
+ function Xr(s) {
899
908
  return ke.apply(this, arguments);
900
909
  }
901
910
  function ke() {
902
911
  return ke = fe(/* @__PURE__ */ Y().mark(function s(t) {
903
912
  var e;
904
913
  return Y().wrap(function(r) {
905
- for (; ; ) switch (r.prev = r.next) {
906
- case 0:
907
- return e = 0, r.abrupt("return", new Promise(function(i) {
908
- t.forEach(function(a) {
909
- a.then(function(u) {
910
- u.errors.length && i([u]), e += 1, e === t.length && i([]);
914
+ for (; ; )
915
+ switch (r.prev = r.next) {
916
+ case 0:
917
+ return e = 0, r.abrupt("return", new Promise(function(i) {
918
+ t.forEach(function(a) {
919
+ a.then(function(o) {
920
+ o.errors.length && i([o]), e += 1, e === t.length && i([]);
921
+ });
911
922
  });
912
- });
913
- }));
914
- case 2:
915
- case "end":
916
- return r.stop();
917
- }
923
+ }));
924
+ case 2:
925
+ case "end":
926
+ return r.stop();
927
+ }
918
928
  }, s);
919
929
  })), ke.apply(this, arguments);
920
930
  }
@@ -940,18 +950,18 @@ function tr(s, t) {
940
950
  return s[r] === n;
941
951
  });
942
952
  }
943
- function Xr(s, t) {
953
+ function et(s, t) {
944
954
  if (s === t)
945
955
  return !0;
946
- if (!s && t || !t || !s || !t || W(s) !== "object" || W(t) !== "object")
956
+ if (!s && t || s && !t || !s || !t || W(s) !== "object" || W(t) !== "object")
947
957
  return !1;
948
958
  var e = Object.keys(s), n = Object.keys(t), r = new Set([].concat(e, n));
949
959
  return O(r).every(function(i) {
950
- var a = s[i], u = t[i];
951
- return typeof a == "function" && typeof u == "function" ? !0 : a === u;
960
+ var a = s[i], o = t[i];
961
+ return typeof a == "function" && typeof o == "function" ? !0 : a === o;
952
962
  });
953
963
  }
954
- function et(s) {
964
+ function rt(s) {
955
965
  var t = arguments.length <= 1 ? void 0 : arguments[1];
956
966
  return t && t.target && W(t.target) === "object" && s in t.target ? t.target[s] : t;
957
967
  }
@@ -962,7 +972,7 @@ function Ge(s, t, e) {
962
972
  var r = s[t], i = t - e;
963
973
  return i > 0 ? [].concat(O(s.slice(0, e)), [r], O(s.slice(e, t)), O(s.slice(t + 1, n))) : i < 0 ? [].concat(O(s.slice(0, t)), O(s.slice(t + 1, e + 1)), [r], O(s.slice(e + 1, n))) : s;
964
974
  }
965
- var rt = ["name"], K = [];
975
+ var tt = ["name"], K = [];
966
976
  function Fe(s, t, e, n, r, i) {
967
977
  return typeof s == "function" ? s(t, e, "source" in i ? {
968
978
  source: i.source
@@ -973,17 +983,17 @@ var qe = /* @__PURE__ */ function(s) {
973
983
  var t = Ze(e);
974
984
  function e(n) {
975
985
  var r;
976
- if (oe(this, e), r = t.call(this, n), d(q(r), "state", {
986
+ if (ue(this, e), r = t.call(this, n), d(q(r), "state", {
977
987
  resetCount: 0
978
988
  }), d(q(r), "cancelRegisterFunc", null), d(q(r), "mounted", !1), d(q(r), "touched", !1), d(q(r), "dirty", !1), d(q(r), "validatePromise", void 0), d(q(r), "prevValidating", void 0), d(q(r), "errors", K), d(q(r), "warnings", K), d(q(r), "cancelRegister", function() {
979
- var l = r.props, f = l.preserve, o = l.isListField, g = l.name;
980
- r.cancelRegisterFunc && r.cancelRegisterFunc(o, f, L(g)), r.cancelRegisterFunc = null;
989
+ var l = r.props, f = l.preserve, u = l.isListField, g = l.name;
990
+ r.cancelRegisterFunc && r.cancelRegisterFunc(u, f, L(g)), r.cancelRegisterFunc = null;
981
991
  }), d(q(r), "getNamePath", function() {
982
- var l = r.props, f = l.name, o = l.fieldContext, g = o.prefixName, h = g === void 0 ? [] : g;
992
+ var l = r.props, f = l.name, u = l.fieldContext, g = u.prefixName, h = g === void 0 ? [] : g;
983
993
  return f !== void 0 ? [].concat(O(h), O(f)) : [];
984
994
  }), d(q(r), "getRules", function() {
985
- var l = r.props, f = l.rules, o = f === void 0 ? [] : f, g = l.fieldContext;
986
- return o.map(function(h) {
995
+ var l = r.props, f = l.rules, u = f === void 0 ? [] : f, g = l.fieldContext;
996
+ return u.map(function(h) {
987
997
  return typeof h == "function" ? h(g) : h;
988
998
  });
989
999
  }), d(q(r), "refresh", function() {
@@ -996,15 +1006,15 @@ var qe = /* @__PURE__ */ function(s) {
996
1006
  }), d(q(r), "metaCache", null), d(q(r), "triggerMetaEvent", function(l) {
997
1007
  var f = r.props.onMetaChange;
998
1008
  if (f) {
999
- var o = x(x({}, r.getMeta()), {}, {
1009
+ var u = x(x({}, r.getMeta()), {}, {
1000
1010
  destroy: l
1001
1011
  });
1002
- Le(r.metaCache, o) || f(o), r.metaCache = o;
1012
+ Le(r.metaCache, u) || f(u), r.metaCache = u;
1003
1013
  } else
1004
1014
  r.metaCache = null;
1005
- }), d(q(r), "onStoreChange", function(l, f, o) {
1006
- var g = r.props, h = g.shouldUpdate, E = g.dependencies, p = E === void 0 ? [] : E, m = g.onReset, c = o.store, F = r.getNamePath(), v = r.getValue(l), y = r.getValue(c), C = f && te(f, F);
1007
- switch (o.type === "valueUpdate" && o.source === "external" && !Le(v, y) && (r.touched = !0, r.dirty = !0, r.validatePromise = null, r.errors = K, r.warnings = K, r.triggerMetaEvent()), o.type) {
1015
+ }), d(q(r), "onStoreChange", function(l, f, u) {
1016
+ var g = r.props, h = g.shouldUpdate, b = g.dependencies, p = b === void 0 ? [] : b, m = g.onReset, c = u.store, F = r.getNamePath(), v = r.getValue(l), y = r.getValue(c), C = f && te(f, F);
1017
+ switch (u.type === "valueUpdate" && u.source === "external" && !Le(v, y) && (r.touched = !0, r.dirty = !0, r.validatePromise = null, r.errors = K, r.warnings = K, r.triggerMetaEvent()), u.type) {
1008
1018
  case "reset":
1009
1019
  if (!f || C) {
1010
1020
  r.touched = !1, r.dirty = !1, r.validatePromise = void 0, r.errors = K, r.warnings = K, r.triggerMetaEvent(), m == null || m(), r.refresh();
@@ -1012,14 +1022,14 @@ var qe = /* @__PURE__ */ function(s) {
1012
1022
  }
1013
1023
  break;
1014
1024
  case "remove": {
1015
- if (h && Fe(h, l, c, v, y, o)) {
1025
+ if (h && Fe(h, l, c, v, y, u)) {
1016
1026
  r.reRender();
1017
1027
  return;
1018
1028
  }
1019
1029
  break;
1020
1030
  }
1021
1031
  case "setField": {
1022
- var V = o.data;
1032
+ var V = u.data;
1023
1033
  if (C) {
1024
1034
  "touched" in V && (r.touched = V.touched), "validating" in V && !("originRCField" in V) && (r.validatePromise = V.validating ? Promise.resolve([]) : null), "errors" in V && (r.errors = V.errors || K), "warnings" in V && (r.warnings = V.warnings || K), r.dirty = !0, r.triggerMetaEvent(), r.reRender();
1025
1035
  return;
@@ -1027,7 +1037,7 @@ var qe = /* @__PURE__ */ function(s) {
1027
1037
  r.reRender();
1028
1038
  return;
1029
1039
  }
1030
- if (h && !F.length && Fe(h, l, c, v, y, o)) {
1040
+ if (h && !F.length && Fe(h, l, c, v, y, u)) {
1031
1041
  r.reRender();
1032
1042
  return;
1033
1043
  }
@@ -1036,7 +1046,7 @@ var qe = /* @__PURE__ */ function(s) {
1036
1046
  case "dependenciesUpdate": {
1037
1047
  var A = p.map(L);
1038
1048
  if (A.some(function(N) {
1039
- return te(o.relatedFields, N);
1049
+ return te(u.relatedFields, N);
1040
1050
  })) {
1041
1051
  r.reRender();
1042
1052
  return;
@@ -1044,7 +1054,7 @@ var qe = /* @__PURE__ */ function(s) {
1044
1054
  break;
1045
1055
  }
1046
1056
  default:
1047
- if (C || (!p.length || F.length || h) && Fe(h, l, c, v, y, o)) {
1057
+ if (C || (!p.length || F.length || h) && Fe(h, l, c, v, y, u)) {
1048
1058
  r.reRender();
1049
1059
  return;
1050
1060
  }
@@ -1052,57 +1062,58 @@ var qe = /* @__PURE__ */ function(s) {
1052
1062
  }
1053
1063
  h === !0 && r.reRender();
1054
1064
  }), d(q(r), "validateRules", function(l) {
1055
- var f = r.getNamePath(), o = r.getValue(), g = l || {}, h = g.triggerName, E = g.validateOnly, p = E === void 0 ? !1 : E, m = Promise.resolve().then(/* @__PURE__ */ fe(/* @__PURE__ */ Y().mark(function c() {
1065
+ var f = r.getNamePath(), u = r.getValue(), g = l || {}, h = g.triggerName, b = g.validateOnly, p = b === void 0 ? !1 : b, m = Promise.resolve().then(/* @__PURE__ */ fe(/* @__PURE__ */ Y().mark(function c() {
1056
1066
  var F, v, y, C, V, A, N;
1057
1067
  return Y().wrap(function(w) {
1058
- for (; ; ) switch (w.prev = w.next) {
1059
- case 0:
1060
- if (r.mounted) {
1061
- w.next = 2;
1062
- break;
1063
- }
1064
- return w.abrupt("return", []);
1065
- case 2:
1066
- if (F = r.props, v = F.validateFirst, y = v === void 0 ? !1 : v, C = F.messageVariables, V = F.validateDebounce, A = r.getRules(), h && (A = A.filter(function(P) {
1067
- return P;
1068
- }).filter(function(P) {
1069
- var k = P.validateTrigger;
1070
- if (!k)
1071
- return !0;
1072
- var T = Ve(k);
1073
- return T.includes(h);
1074
- })), !(V && h)) {
1075
- w.next = 10;
1076
- break;
1077
- }
1078
- return w.next = 8, new Promise(function(P) {
1079
- setTimeout(P, V);
1080
- });
1081
- case 8:
1082
- if (r.validatePromise === m) {
1083
- w.next = 10;
1084
- break;
1085
- }
1086
- return w.abrupt("return", []);
1087
- case 10:
1088
- return N = Br(f, o, A, l, y, C), N.catch(function(P) {
1089
- return P;
1090
- }).then(function() {
1091
- var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : K;
1068
+ for (; ; )
1069
+ switch (w.prev = w.next) {
1070
+ case 0:
1071
+ if (r.mounted) {
1072
+ w.next = 2;
1073
+ break;
1074
+ }
1075
+ return w.abrupt("return", []);
1076
+ case 2:
1077
+ if (F = r.props, v = F.validateFirst, y = v === void 0 ? !1 : v, C = F.messageVariables, V = F.validateDebounce, A = r.getRules(), h && (A = A.filter(function(P) {
1078
+ return P;
1079
+ }).filter(function(P) {
1080
+ var k = P.validateTrigger;
1081
+ if (!k)
1082
+ return !0;
1083
+ var I = Ve(k);
1084
+ return I.includes(h);
1085
+ })), !(V && h)) {
1086
+ w.next = 10;
1087
+ break;
1088
+ }
1089
+ return w.next = 8, new Promise(function(P) {
1090
+ setTimeout(P, V);
1091
+ });
1092
+ case 8:
1092
1093
  if (r.validatePromise === m) {
1093
- var k;
1094
- r.validatePromise = null;
1095
- var T = [], I = [];
1096
- (k = P.forEach) === null || k === void 0 || k.call(P, function(M) {
1097
- var z = M.rule.warningOnly, _ = M.errors, G = _ === void 0 ? K : _;
1098
- z ? I.push.apply(I, O(G)) : T.push.apply(T, O(G));
1099
- }), r.errors = T, r.warnings = I, r.triggerMetaEvent(), r.reRender();
1094
+ w.next = 10;
1095
+ break;
1100
1096
  }
1101
- }), w.abrupt("return", N);
1102
- case 13:
1103
- case "end":
1104
- return w.stop();
1105
- }
1097
+ return w.abrupt("return", []);
1098
+ case 10:
1099
+ return N = Zr(f, u, A, l, y, C), N.catch(function(P) {
1100
+ return P;
1101
+ }).then(function() {
1102
+ var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : K;
1103
+ if (r.validatePromise === m) {
1104
+ var k;
1105
+ r.validatePromise = null;
1106
+ var I = [], T = [];
1107
+ (k = P.forEach) === null || k === void 0 || k.call(P, function(M) {
1108
+ var z = M.rule.warningOnly, _ = M.errors, G = _ === void 0 ? K : _;
1109
+ z ? T.push.apply(T, O(G)) : I.push.apply(I, O(G));
1110
+ }), r.errors = I, r.warnings = T, r.triggerMetaEvent(), r.reRender();
1111
+ }
1112
+ }), w.abrupt("return", N);
1113
+ case 13:
1114
+ case "end":
1115
+ return w.stop();
1116
+ }
1106
1117
  }, c);
1107
1118
  })));
1108
1119
  return p || (r.validatePromise = m, r.dirty = !0, r.errors = K, r.warnings = K, r.triggerMetaEvent(), r.reRender()), m;
@@ -1113,8 +1124,8 @@ var qe = /* @__PURE__ */ function(s) {
1113
1124
  }), d(q(r), "isFieldDirty", function() {
1114
1125
  if (r.dirty || r.props.initialValue !== void 0)
1115
1126
  return !0;
1116
- var l = r.props.fieldContext, f = l.getInternalHooks(X), o = f.getInitialValue;
1117
- return o(r.getNamePath()) !== void 0;
1127
+ var l = r.props.fieldContext, f = l.getInternalHooks(X), u = f.getInitialValue;
1128
+ return u(r.getNamePath()) !== void 0;
1118
1129
  }), d(q(r), "getErrors", function() {
1119
1130
  return r.errors;
1120
1131
  }), d(q(r), "getWarnings", function() {
@@ -1143,39 +1154,39 @@ var qe = /* @__PURE__ */ function(s) {
1143
1154
  isFunction: !0
1144
1155
  });
1145
1156
  }
1146
- var o = mr(l);
1147
- return o.length !== 1 || !/* @__PURE__ */ b.isValidElement(o[0]) ? {
1148
- child: o,
1157
+ var u = mr(l);
1158
+ return u.length !== 1 || !/* @__PURE__ */ E.isValidElement(u[0]) ? {
1159
+ child: u,
1149
1160
  isFunction: !1
1150
1161
  } : {
1151
- child: o[0],
1162
+ child: u[0],
1152
1163
  isFunction: !1
1153
1164
  };
1154
1165
  }), d(q(r), "getValue", function(l) {
1155
- var f = r.props.fieldContext.getFieldsValue, o = r.getNamePath();
1156
- return Q(l || f(!0), o);
1166
+ var f = r.props.fieldContext.getFieldsValue, u = r.getNamePath();
1167
+ return Q(l || f(!0), u);
1157
1168
  }), d(q(r), "getControlled", function() {
1158
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = r.props, o = f.name, g = f.trigger, h = f.validateTrigger, E = f.getValueFromEvent, p = f.normalize, m = f.valuePropName, c = f.getValueProps, F = f.fieldContext, v = h !== void 0 ? h : F.validateTrigger, y = r.getNamePath(), C = F.getInternalHooks, V = F.getFieldsValue, A = C(X), N = A.dispatch, R = r.getValue(), w = c || function(M) {
1169
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = r.props, u = f.name, g = f.trigger, h = f.validateTrigger, b = f.getValueFromEvent, p = f.normalize, m = f.valuePropName, c = f.getValueProps, F = f.fieldContext, v = h !== void 0 ? h : F.validateTrigger, y = r.getNamePath(), C = F.getInternalHooks, V = F.getFieldsValue, A = C(X), N = A.dispatch, R = r.getValue(), w = c || function(M) {
1159
1170
  return d({}, m, M);
1160
- }, P = l[g], k = o !== void 0 ? w(R) : {};
1171
+ }, P = l[g], k = u !== void 0 ? w(R) : {};
1161
1172
  process.env.NODE_ENV !== "production" && k && Object.keys(k).forEach(function(M) {
1162
1173
  D(typeof k[M] != "function", "It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M, ")"));
1163
1174
  });
1164
- var T = x(x({}, l), k);
1165
- T[g] = function() {
1175
+ var I = x(x({}, l), k);
1176
+ I[g] = function() {
1166
1177
  r.touched = !0, r.dirty = !0, r.triggerMetaEvent();
1167
1178
  for (var M, z = arguments.length, _ = new Array(z), G = 0; G < z; G++)
1168
1179
  _[G] = arguments[G];
1169
- E ? M = E.apply(void 0, _) : M = et.apply(void 0, [m].concat(_)), p && (M = p(M, R, V(!0))), M !== R && N({
1180
+ b ? M = b.apply(void 0, _) : M = rt.apply(void 0, [m].concat(_)), p && (M = p(M, R, V(!0))), M !== R && N({
1170
1181
  type: "updateValue",
1171
1182
  namePath: y,
1172
1183
  value: M
1173
1184
  }), P && P.apply(void 0, _);
1174
1185
  };
1175
- var I = Ve(v || []);
1176
- return I.forEach(function(M) {
1177
- var z = T[M];
1178
- T[M] = function() {
1186
+ var T = Ve(v || []);
1187
+ return T.forEach(function(M) {
1188
+ var z = I[M];
1189
+ I[M] = function() {
1179
1190
  z && z.apply(void 0, arguments);
1180
1191
  var _ = r.props.rules;
1181
1192
  _ && _.length && N({
@@ -1184,10 +1195,10 @@ var qe = /* @__PURE__ */ function(s) {
1184
1195
  triggerName: M
1185
1196
  });
1186
1197
  };
1187
- }), T;
1198
+ }), I;
1188
1199
  }), n.fieldContext) {
1189
- var i = n.fieldContext.getInternalHooks, a = i(X), u = a.initEntityValue;
1190
- u(q(r));
1200
+ var i = n.fieldContext.getInternalHooks, a = i(X), o = a.initEntityValue;
1201
+ o(q(r));
1191
1202
  }
1192
1203
  return r;
1193
1204
  }
@@ -1196,7 +1207,7 @@ var qe = /* @__PURE__ */ function(s) {
1196
1207
  value: function() {
1197
1208
  var r = this.props, i = r.shouldUpdate, a = r.fieldContext;
1198
1209
  if (this.mounted = !0, a) {
1199
- var u = a.getInternalHooks, l = u(X), f = l.registerField;
1210
+ var o = a.getInternalHooks, l = o(X), f = l.registerField;
1200
1211
  this.cancelRegisterFunc = f(this);
1201
1212
  }
1202
1213
  i === !0 && this.reRender();
@@ -1214,44 +1225,44 @@ var qe = /* @__PURE__ */ function(s) {
1214
1225
  }, {
1215
1226
  key: "render",
1216
1227
  value: function() {
1217
- var r = this.state.resetCount, i = this.props.children, a = this.getOnlyChild(i), u = a.child, l = a.isFunction, f;
1218
- return l ? f = u : /* @__PURE__ */ b.isValidElement(u) ? f = /* @__PURE__ */ b.cloneElement(u, this.getControlled(u.props)) : (D(!u, "`children` of Field is not validate ReactElement."), f = u), /* @__PURE__ */ b.createElement(b.Fragment, {
1228
+ var r = this.state.resetCount, i = this.props.children, a = this.getOnlyChild(i), o = a.child, l = a.isFunction, f;
1229
+ return l ? f = o : /* @__PURE__ */ E.isValidElement(o) ? f = /* @__PURE__ */ E.cloneElement(o, this.getControlled(o.props)) : (D(!o, "`children` of Field is not validate ReactElement."), f = o), /* @__PURE__ */ E.createElement(E.Fragment, {
1219
1230
  key: r
1220
1231
  }, f);
1221
1232
  }
1222
1233
  }]), e;
1223
- }(b.Component);
1234
+ }(E.Component);
1224
1235
  d(qe, "contextType", ne);
1225
1236
  d(qe, "defaultProps", {
1226
1237
  trigger: "onChange",
1227
1238
  valuePropName: "value"
1228
1239
  });
1229
1240
  function nr(s) {
1230
- var t, e = s.name, n = Ae(s, rt), r = b.useContext(ne), i = b.useContext(he), a = e !== void 0 ? L(e) : void 0, u = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
1231
- return u || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && u && a.length <= 1 && D(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ b.createElement(qe, Qe({
1241
+ var t, e = s.name, n = Ae(s, tt), r = E.useContext(ne), i = E.useContext(he), a = e !== void 0 ? L(e) : void 0, o = (t = n.isListField) !== null && t !== void 0 ? t : !!i, l = "keep";
1242
+ return o || (l = "_".concat((a || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && o && a.length <= 1 && D(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ E.createElement(qe, Qe({
1232
1243
  key: l,
1233
1244
  name: a,
1234
- isListField: u
1245
+ isListField: o
1235
1246
  }, n, {
1236
1247
  fieldContext: r
1237
1248
  }));
1238
1249
  }
1239
- function tt(s) {
1240
- var t = s.name, e = s.initialValue, n = s.children, r = s.rules, i = s.validateTrigger, a = s.isListField, u = b.useContext(ne), l = b.useContext(he), f = b.useRef({
1250
+ function nt(s) {
1251
+ var t = s.name, e = s.initialValue, n = s.children, r = s.rules, i = s.validateTrigger, a = s.isListField, o = E.useContext(ne), l = E.useContext(he), f = E.useRef({
1241
1252
  keys: [],
1242
1253
  id: 0
1243
- }), o = f.current, g = b.useMemo(function() {
1244
- var m = L(u.prefixName) || [];
1254
+ }), u = f.current, g = E.useMemo(function() {
1255
+ var m = L(o.prefixName) || [];
1245
1256
  return [].concat(O(m), O(L(t)));
1246
- }, [u.prefixName, t]), h = b.useMemo(function() {
1247
- return x(x({}, u), {}, {
1257
+ }, [o.prefixName, t]), h = E.useMemo(function() {
1258
+ return x(x({}, o), {}, {
1248
1259
  prefixName: g
1249
1260
  });
1250
- }, [u, g]), E = b.useMemo(function() {
1261
+ }, [o, g]), b = E.useMemo(function() {
1251
1262
  return {
1252
1263
  getKey: function(c) {
1253
1264
  var F = g.length, v = c[F];
1254
- return [o.keys[v], c.slice(F + 1)];
1265
+ return [u.keys[v], c.slice(F + 1)];
1255
1266
  }
1256
1267
  };
1257
1268
  }, [g]);
@@ -1261,11 +1272,11 @@ function tt(s) {
1261
1272
  var y = v.source;
1262
1273
  return y === "internal" ? !1 : c !== F;
1263
1274
  };
1264
- return /* @__PURE__ */ b.createElement(he.Provider, {
1265
- value: E
1266
- }, /* @__PURE__ */ b.createElement(ne.Provider, {
1275
+ return /* @__PURE__ */ E.createElement(he.Provider, {
1276
+ value: b
1277
+ }, /* @__PURE__ */ E.createElement(ne.Provider, {
1267
1278
  value: h
1268
- }, /* @__PURE__ */ b.createElement(nr, {
1279
+ }, /* @__PURE__ */ E.createElement(nr, {
1269
1280
  name: [],
1270
1281
  shouldUpdate: p,
1271
1282
  rules: r,
@@ -1274,32 +1285,32 @@ function tt(s) {
1274
1285
  isList: !0,
1275
1286
  isListField: a ?? !!l
1276
1287
  }, function(m, c) {
1277
- var F = m.value, v = F === void 0 ? [] : F, y = m.onChange, C = u.getFieldValue, V = function() {
1288
+ var F = m.value, v = F === void 0 ? [] : F, y = m.onChange, C = o.getFieldValue, V = function() {
1278
1289
  var w = C(g || []);
1279
1290
  return w || [];
1280
1291
  }, A = {
1281
1292
  add: function(w, P) {
1282
1293
  var k = V();
1283
- P >= 0 && P <= k.length ? (o.keys = [].concat(O(o.keys.slice(0, P)), [o.id], O(o.keys.slice(P))), y([].concat(O(k.slice(0, P)), [w], O(k.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > k.length) && D(!1, "The second parameter of the add function should be a valid positive number."), o.keys = [].concat(O(o.keys), [o.id]), y([].concat(O(k), [w]))), o.id += 1;
1294
+ P >= 0 && P <= k.length ? (u.keys = [].concat(O(u.keys.slice(0, P)), [u.id], O(u.keys.slice(P))), y([].concat(O(k.slice(0, P)), [w], O(k.slice(P))))) : (process.env.NODE_ENV !== "production" && (P < 0 || P > k.length) && D(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(O(u.keys), [u.id]), y([].concat(O(k), [w]))), u.id += 1;
1284
1295
  },
1285
1296
  remove: function(w) {
1286
1297
  var P = V(), k = new Set(Array.isArray(w) ? w : [w]);
1287
- k.size <= 0 || (o.keys = o.keys.filter(function(T, I) {
1288
- return !k.has(I);
1289
- }), y(P.filter(function(T, I) {
1290
- return !k.has(I);
1298
+ k.size <= 0 || (u.keys = u.keys.filter(function(I, T) {
1299
+ return !k.has(T);
1300
+ }), y(P.filter(function(I, T) {
1301
+ return !k.has(T);
1291
1302
  })));
1292
1303
  },
1293
1304
  move: function(w, P) {
1294
1305
  if (w !== P) {
1295
1306
  var k = V();
1296
- w < 0 || w >= k.length || P < 0 || P >= k.length || (o.keys = Ge(o.keys, w, P), y(Ge(k, w, P)));
1307
+ w < 0 || w >= k.length || P < 0 || P >= k.length || (u.keys = Ge(u.keys, w, P), y(Ge(k, w, P)));
1297
1308
  }
1298
1309
  }
1299
1310
  }, N = v || [];
1300
1311
  return Array.isArray(N) || (N = [], process.env.NODE_ENV !== "production" && D(!1, "Current value of '".concat(g.join(" > "), "' is not an array type."))), n(N.map(function(R, w) {
1301
- var P = o.keys[w];
1302
- return P === void 0 && (o.keys[w] = o.id, P = o.keys[w], o.id += 1), {
1312
+ var P = u.keys[w];
1313
+ return P === void 0 && (u.keys[w] = u.id, P = u.keys[w], u.id += 1), {
1303
1314
  name: w,
1304
1315
  key: P,
1305
1316
  isListField: !0
@@ -1307,14 +1318,14 @@ function tt(s) {
1307
1318
  }), A, c);
1308
1319
  })));
1309
1320
  }
1310
- function nt(s) {
1321
+ function it(s) {
1311
1322
  var t = !1, e = s.length, n = [];
1312
1323
  return s.length ? new Promise(function(r, i) {
1313
- s.forEach(function(a, u) {
1324
+ s.forEach(function(a, o) {
1314
1325
  a.catch(function(l) {
1315
1326
  return t = !0, l;
1316
1327
  }).then(function(l) {
1317
- e -= 1, n[u] = l, !(e > 0) && (t && i(n), r(n));
1328
+ e -= 1, n[o] = l, !(e > 0) && (t && i(n), r(n));
1318
1329
  });
1319
1330
  });
1320
1331
  }) : Promise.resolve([]);
@@ -1327,7 +1338,7 @@ function ye(s) {
1327
1338
  }
1328
1339
  var re = /* @__PURE__ */ function() {
1329
1340
  function s() {
1330
- oe(this, s), d(this, "kvs", /* @__PURE__ */ new Map());
1341
+ ue(this, s), d(this, "kvs", /* @__PURE__ */ new Map());
1331
1342
  }
1332
1343
  return le(s, [{
1333
1344
  key: "set",
@@ -1355,10 +1366,10 @@ var re = /* @__PURE__ */ function() {
1355
1366
  key: "map",
1356
1367
  value: function(e) {
1357
1368
  return O(this.kvs.entries()).map(function(n) {
1358
- var r = ue(n, 2), i = r[0], a = r[1], u = i.split(ir);
1369
+ var r = oe(n, 2), i = r[0], a = r[1], o = i.split(ir);
1359
1370
  return e({
1360
- key: u.map(function(l) {
1361
- var f = l.match(/^([^:]*):(.*)$/), o = ue(f, 3), g = o[1], h = o[2];
1371
+ key: o.map(function(l) {
1372
+ var f = l.match(/^([^:]*):(.*)$/), u = oe(f, 3), g = u[1], h = u[2];
1362
1373
  return g === "number" ? Number(h) : h;
1363
1374
  }),
1364
1375
  value: a
@@ -1375,9 +1386,9 @@ var re = /* @__PURE__ */ function() {
1375
1386
  }), e;
1376
1387
  }
1377
1388
  }]), s;
1378
- }(), it = ["name"], at = /* @__PURE__ */ le(function s(t) {
1389
+ }(), at = ["name"], st = /* @__PURE__ */ le(function s(t) {
1379
1390
  var e = this;
1380
- oe(this, s), d(this, "formHooked", !1), d(this, "forceRootUpdate", void 0), d(this, "subscribable", !0), d(this, "store", {}), d(this, "fieldEntities", []), d(this, "initialValues", {}), d(this, "callbacks", {}), d(this, "validateMessages", null), d(this, "preserve", null), d(this, "lastValidatePromise", null), d(this, "getForm", function() {
1391
+ ue(this, s), d(this, "formHooked", !1), d(this, "forceRootUpdate", void 0), d(this, "subscribable", !0), d(this, "store", {}), d(this, "fieldEntities", []), d(this, "initialValues", {}), d(this, "callbacks", {}), d(this, "validateMessages", null), d(this, "preserve", null), d(this, "lastValidatePromise", null), d(this, "getForm", function() {
1381
1392
  return {
1382
1393
  getFieldValue: e.getFieldValue,
1383
1394
  getFieldsValue: e.getFieldsValue,
@@ -1417,8 +1428,8 @@ var re = /* @__PURE__ */ function() {
1417
1428
  }), d(this, "prevWithoutPreserves", null), d(this, "setInitialValues", function(n, r) {
1418
1429
  if (e.initialValues = n || {}, r) {
1419
1430
  var i, a = ie(n, e.store);
1420
- (i = e.prevWithoutPreserves) === null || i === void 0 || i.map(function(u) {
1421
- var l = u.key;
1431
+ (i = e.prevWithoutPreserves) === null || i === void 0 || i.map(function(o) {
1432
+ var l = o.key;
1422
1433
  a = B(a, l, Q(n, l));
1423
1434
  }), e.prevWithoutPreserves = null, e.updateStore(a);
1424
1435
  }
@@ -1483,23 +1494,23 @@ var re = /* @__PURE__ */ function() {
1483
1494
  });
1484
1495
  }), d(this, "getFieldsValue", function(n, r) {
1485
1496
  e.warningUnhooked();
1486
- var i, a, u;
1487
- if (n === !0 || Array.isArray(n) ? (i = n, a = r) : n && W(n) === "object" && (u = n.strict, a = n.filter), i === !0 && !a)
1497
+ var i, a, o;
1498
+ if (n === !0 || Array.isArray(n) ? (i = n, a = r) : n && W(n) === "object" && (o = n.strict, a = n.filter), i === !0 && !a)
1488
1499
  return e.store;
1489
1500
  var l = e.getFieldEntitiesForNamePathList(Array.isArray(i) ? i : null), f = [];
1490
- return l.forEach(function(o) {
1491
- var g, h, E = "INVALIDATE_NAME_PATH" in o ? o.INVALIDATE_NAME_PATH : o.getNamePath();
1492
- if (u) {
1501
+ return l.forEach(function(u) {
1502
+ var g, h, b = "INVALIDATE_NAME_PATH" in u ? u.INVALIDATE_NAME_PATH : u.getNamePath();
1503
+ if (o) {
1493
1504
  var p, m;
1494
- if ((p = (m = o).isList) !== null && p !== void 0 && p.call(m))
1505
+ if ((p = (m = u).isList) !== null && p !== void 0 && p.call(m))
1495
1506
  return;
1496
- } else if (!i && (g = (h = o).isListField) !== null && g !== void 0 && g.call(h))
1507
+ } else if (!i && (g = (h = u).isListField) !== null && g !== void 0 && g.call(h))
1497
1508
  return;
1498
1509
  if (!a)
1499
- f.push(E);
1510
+ f.push(b);
1500
1511
  else {
1501
- var c = "getMeta" in o ? o.getMeta() : null;
1502
- a(c) && f.push(E);
1512
+ var c = "getMeta" in u ? u.getMeta() : null;
1513
+ a(c) && f.push(b);
1503
1514
  }
1504
1515
  }), ze(e.store, f.map(L));
1505
1516
  }), d(this, "getFieldValue", function(n) {
@@ -1532,19 +1543,19 @@ var re = /* @__PURE__ */ function() {
1532
1543
  e.warningUnhooked();
1533
1544
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
1534
1545
  r[i] = arguments[i];
1535
- var a = r[0], u = r[1], l, f = !1;
1536
- r.length === 0 ? l = null : r.length === 1 ? Array.isArray(a) ? (l = a.map(L), f = !1) : (l = null, f = a) : (l = a.map(L), f = u);
1537
- var o = e.getFieldEntities(!0), g = function(c) {
1546
+ var a = r[0], o = r[1], l, f = !1;
1547
+ r.length === 0 ? l = null : r.length === 1 ? Array.isArray(a) ? (l = a.map(L), f = !1) : (l = null, f = a) : (l = a.map(L), f = o);
1548
+ var u = e.getFieldEntities(!0), g = function(c) {
1538
1549
  return c.isFieldTouched();
1539
1550
  };
1540
1551
  if (!l)
1541
- return f ? o.every(function(m) {
1552
+ return f ? u.every(function(m) {
1542
1553
  return g(m) || m.isList();
1543
- }) : o.some(g);
1554
+ }) : u.some(g);
1544
1555
  var h = new re();
1545
1556
  l.forEach(function(m) {
1546
1557
  h.set(m, []);
1547
- }), o.forEach(function(m) {
1558
+ }), u.forEach(function(m) {
1548
1559
  var c = m.getNamePath();
1549
1560
  l.forEach(function(F) {
1550
1561
  F.every(function(v, y) {
@@ -1554,13 +1565,13 @@ var re = /* @__PURE__ */ function() {
1554
1565
  });
1555
1566
  });
1556
1567
  });
1557
- var E = function(c) {
1568
+ var b = function(c) {
1558
1569
  return c.some(g);
1559
1570
  }, p = h.map(function(m) {
1560
1571
  var c = m.value;
1561
1572
  return c;
1562
1573
  });
1563
- return f ? p.every(E) : p.some(E);
1574
+ return f ? p.every(b) : p.some(b);
1564
1575
  }), d(this, "isFieldTouched", function(n) {
1565
1576
  return e.warningUnhooked(), e.isFieldsTouched([n]);
1566
1577
  }), d(this, "isFieldsValidating", function(n) {
@@ -1572,51 +1583,51 @@ var re = /* @__PURE__ */ function() {
1572
1583
  });
1573
1584
  var i = n.map(L);
1574
1585
  return r.some(function(a) {
1575
- var u = a.getNamePath();
1576
- return te(i, u) && a.isFieldValidating();
1586
+ var o = a.getNamePath();
1587
+ return te(i, o) && a.isFieldValidating();
1577
1588
  });
1578
1589
  }), d(this, "isFieldValidating", function(n) {
1579
1590
  return e.warningUnhooked(), e.isFieldsValidating([n]);
1580
1591
  }), d(this, "resetWithFieldInitialValue", function() {
1581
1592
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = new re(), i = e.getFieldEntities(!0);
1582
1593
  i.forEach(function(l) {
1583
- var f = l.props.initialValue, o = l.getNamePath();
1594
+ var f = l.props.initialValue, u = l.getNamePath();
1584
1595
  if (f !== void 0) {
1585
- var g = r.get(o) || /* @__PURE__ */ new Set();
1596
+ var g = r.get(u) || /* @__PURE__ */ new Set();
1586
1597
  g.add({
1587
1598
  entity: l,
1588
1599
  value: f
1589
- }), r.set(o, g);
1600
+ }), r.set(u, g);
1590
1601
  }
1591
1602
  });
1592
1603
  var a = function(f) {
1593
- f.forEach(function(o) {
1594
- var g = o.props.initialValue;
1604
+ f.forEach(function(u) {
1605
+ var g = u.props.initialValue;
1595
1606
  if (g !== void 0) {
1596
- var h = o.getNamePath(), E = e.getInitialValue(h);
1597
- if (E !== void 0)
1607
+ var h = u.getNamePath(), b = e.getInitialValue(h);
1608
+ if (b !== void 0)
1598
1609
  D(!1, "Form already set 'initialValues' with path '".concat(h.join("."), "'. Field can not overwrite it."));
1599
1610
  else {
1600
1611
  var p = r.get(h);
1601
1612
  if (p && p.size > 1)
1602
1613
  D(!1, "Multiple Field with path '".concat(h.join("."), "' set 'initialValue'. Can not decide which one to pick."));
1603
1614
  else if (p) {
1604
- var m = e.getFieldValue(h), c = o.isListField();
1615
+ var m = e.getFieldValue(h), c = u.isListField();
1605
1616
  !c && (!n.skipExist || m === void 0) && e.updateStore(B(e.store, h, O(p)[0].value));
1606
1617
  }
1607
1618
  }
1608
1619
  }
1609
1620
  });
1610
- }, u;
1611
- n.entities ? u = n.entities : n.namePathList ? (u = [], n.namePathList.forEach(function(l) {
1621
+ }, o;
1622
+ n.entities ? o = n.entities : n.namePathList ? (o = [], n.namePathList.forEach(function(l) {
1612
1623
  var f = r.get(l);
1613
1624
  if (f) {
1614
- var o;
1615
- (o = u).push.apply(o, O(O(f).map(function(g) {
1625
+ var u;
1626
+ (u = o).push.apply(u, O(O(f).map(function(g) {
1616
1627
  return g.entity;
1617
1628
  })));
1618
1629
  }
1619
- })) : u = i, a(u);
1630
+ })) : o = i, a(o);
1620
1631
  }), d(this, "resetFields", function(n) {
1621
1632
  e.warningUnhooked();
1622
1633
  var r = e.store;
@@ -1628,8 +1639,8 @@ var re = /* @__PURE__ */ function() {
1628
1639
  }
1629
1640
  var i = n.map(L);
1630
1641
  i.forEach(function(a) {
1631
- var u = e.getInitialValue(a);
1632
- e.updateStore(B(e.store, a, u));
1642
+ var o = e.getInitialValue(a);
1643
+ e.updateStore(B(e.store, a, o));
1633
1644
  }), e.resetWithFieldInitialValue({
1634
1645
  namePathList: i
1635
1646
  }), e.notifyObservers(r, i, {
@@ -1639,7 +1650,7 @@ var re = /* @__PURE__ */ function() {
1639
1650
  e.warningUnhooked();
1640
1651
  var r = e.store, i = [];
1641
1652
  n.forEach(function(a) {
1642
- var u = a.name, l = Ae(a, it), f = L(u);
1653
+ var o = a.name, l = Ae(a, at), f = L(o);
1643
1654
  i.push(f), "value" in l && e.updateStore(B(e.store, f, l.value)), e.notifyObservers(r, [f], {
1644
1655
  type: "setField",
1645
1656
  data: a
@@ -1647,7 +1658,7 @@ var re = /* @__PURE__ */ function() {
1647
1658
  }), e.notifyWatch(i);
1648
1659
  }), d(this, "getFields", function() {
1649
1660
  var n = e.getFieldEntities(!0), r = n.map(function(i) {
1650
- var a = i.getNamePath(), u = i.getMeta(), l = x(x({}, u), {}, {
1661
+ var a = i.getNamePath(), o = i.getMeta(), l = x(x({}, o), {}, {
1651
1662
  name: a,
1652
1663
  value: e.getFieldValue(a)
1653
1664
  });
@@ -1678,11 +1689,11 @@ var re = /* @__PURE__ */ function() {
1678
1689
  source: "internal"
1679
1690
  });
1680
1691
  }
1681
- return function(a, u) {
1692
+ return function(a, o) {
1682
1693
  var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
1683
1694
  if (e.fieldEntities = e.fieldEntities.filter(function(g) {
1684
1695
  return g !== n;
1685
- }), !e.isMergedPreserve(u) && (!a || l.length > 1)) {
1696
+ }), !e.isMergedPreserve(o) && (!a || l.length > 1)) {
1686
1697
  var f = a ? void 0 : e.getInitialValue(r);
1687
1698
  if (r.length && e.getFieldValue(r) !== f && e.fieldEntities.every(function(g) {
1688
1699
  return (
@@ -1690,10 +1701,10 @@ var re = /* @__PURE__ */ function() {
1690
1701
  !tr(g.getNamePath(), r)
1691
1702
  );
1692
1703
  })) {
1693
- var o = e.store;
1694
- e.updateStore(B(o, r, f, !0)), e.notifyObservers(o, [r], {
1704
+ var u = e.store;
1705
+ e.updateStore(B(u, r, f, !0)), e.notifyObservers(u, [r], {
1695
1706
  type: "remove"
1696
- }), e.triggerDependenciesUpdate(o, r);
1707
+ }), e.triggerDependenciesUpdate(u, r);
1697
1708
  }
1698
1709
  }
1699
1710
  e.notifyWatch([r]);
@@ -1706,9 +1717,9 @@ var re = /* @__PURE__ */ function() {
1706
1717
  break;
1707
1718
  }
1708
1719
  case "validateField": {
1709
- var a = n.namePath, u = n.triggerName;
1720
+ var a = n.namePath, o = n.triggerName;
1710
1721
  e.validateFields([a], {
1711
- triggerName: u
1722
+ triggerName: o
1712
1723
  });
1713
1724
  break;
1714
1725
  }
@@ -1718,8 +1729,8 @@ var re = /* @__PURE__ */ function() {
1718
1729
  var a = x(x({}, i), {}, {
1719
1730
  store: e.getFieldsValue(!0)
1720
1731
  });
1721
- e.getFieldEntities().forEach(function(u) {
1722
- var l = u.onStoreChange;
1732
+ e.getFieldEntities().forEach(function(o) {
1733
+ var l = o.onStoreChange;
1723
1734
  l(n, r, a);
1724
1735
  });
1725
1736
  } else
@@ -1736,12 +1747,12 @@ var re = /* @__PURE__ */ function() {
1736
1747
  type: "valueUpdate",
1737
1748
  source: "internal"
1738
1749
  }), e.notifyWatch([i]);
1739
- var u = e.triggerDependenciesUpdate(a, i), l = e.callbacks.onValuesChange;
1750
+ var o = e.triggerDependenciesUpdate(a, i), l = e.callbacks.onValuesChange;
1740
1751
  if (l) {
1741
1752
  var f = ze(e.store, [i]);
1742
1753
  l(f, e.getFieldsValue());
1743
1754
  }
1744
- e.triggerOnFieldsChange([i].concat(O(u)));
1755
+ e.triggerOnFieldsChange([i].concat(O(o)));
1745
1756
  }), d(this, "setFieldsValue", function(n) {
1746
1757
  e.warningUnhooked();
1747
1758
  var r = e.store;
@@ -1764,17 +1775,17 @@ var re = /* @__PURE__ */ function() {
1764
1775
  var r = /* @__PURE__ */ new Set(), i = [], a = new re();
1765
1776
  e.getFieldEntities().forEach(function(l) {
1766
1777
  var f = l.props.dependencies;
1767
- (f || []).forEach(function(o) {
1768
- var g = L(o);
1778
+ (f || []).forEach(function(u) {
1779
+ var g = L(u);
1769
1780
  a.update(g, function() {
1770
1781
  var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /* @__PURE__ */ new Set();
1771
1782
  return h.add(l), h;
1772
1783
  });
1773
1784
  });
1774
1785
  });
1775
- var u = function l(f) {
1776
- var o = a.get(f) || /* @__PURE__ */ new Set();
1777
- o.forEach(function(g) {
1786
+ var o = function l(f) {
1787
+ var u = a.get(f) || /* @__PURE__ */ new Set();
1788
+ u.forEach(function(g) {
1778
1789
  if (!r.has(g)) {
1779
1790
  r.add(g);
1780
1791
  var h = g.getNamePath();
@@ -1782,23 +1793,23 @@ var re = /* @__PURE__ */ function() {
1782
1793
  }
1783
1794
  });
1784
1795
  };
1785
- return u(n), i;
1796
+ return o(n), i;
1786
1797
  }), d(this, "triggerOnFieldsChange", function(n, r) {
1787
1798
  var i = e.callbacks.onFieldsChange;
1788
1799
  if (i) {
1789
1800
  var a = e.getFields();
1790
1801
  if (r) {
1791
- var u = new re();
1802
+ var o = new re();
1792
1803
  r.forEach(function(f) {
1793
- var o = f.name, g = f.errors;
1794
- u.set(o, g);
1804
+ var u = f.name, g = f.errors;
1805
+ o.set(u, g);
1795
1806
  }), a.forEach(function(f) {
1796
- f.errors = u.get(f.name) || f.errors;
1807
+ f.errors = o.get(f.name) || f.errors;
1797
1808
  });
1798
1809
  }
1799
1810
  var l = a.filter(function(f) {
1800
- var o = f.name;
1801
- return te(n, o);
1811
+ var u = f.name;
1812
+ return te(n, u);
1802
1813
  });
1803
1814
  l.length && i(l, a);
1804
1815
  }
@@ -1806,11 +1817,11 @@ var re = /* @__PURE__ */ function() {
1806
1817
  e.warningUnhooked();
1807
1818
  var i, a;
1808
1819
  Array.isArray(n) || typeof n == "string" || typeof r == "string" ? (i = n, a = r) : a = n;
1809
- var u = !!i, l = u ? i.map(L) : [], f = [], o = String(Date.now()), g = /* @__PURE__ */ new Set(), h = a || {}, E = h.recursive, p = h.dirty;
1820
+ var o = !!i, l = o ? i.map(L) : [], f = [], u = String(Date.now()), g = /* @__PURE__ */ new Set(), h = a || {}, b = h.recursive, p = h.dirty;
1810
1821
  e.getFieldEntities(!0).forEach(function(v) {
1811
- if (u || l.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
1822
+ if (o || l.push(v.getNamePath()), !(!v.props.rules || !v.props.rules.length) && !(p && !v.isFieldDirty())) {
1812
1823
  var y = v.getNamePath();
1813
- if (g.add(y.join(o)), !u || te(l, y, E)) {
1824
+ if (g.add(y.join(u)), !o || te(l, y, b)) {
1814
1825
  var C = v.validateRules(x({
1815
1826
  validateMessages: x(x({}, rr), e.validateMessages)
1816
1827
  }, a));
@@ -1838,7 +1849,7 @@ var re = /* @__PURE__ */ function() {
1838
1849
  }
1839
1850
  }
1840
1851
  });
1841
- var m = nt(f);
1852
+ var m = it(f);
1842
1853
  e.lastValidatePromise = m, m.catch(function(v) {
1843
1854
  return v;
1844
1855
  }).then(function(v) {
@@ -1866,7 +1877,7 @@ var re = /* @__PURE__ */ function() {
1866
1877
  return v;
1867
1878
  });
1868
1879
  var F = l.filter(function(v) {
1869
- return g.has(v.join(o));
1880
+ return g.has(v.join(u));
1870
1881
  });
1871
1882
  return e.triggerOnFieldsChange(F), c;
1872
1883
  }), d(this, "submit", function() {
@@ -1885,19 +1896,19 @@ var re = /* @__PURE__ */ function() {
1885
1896
  }), this.forceRootUpdate = t;
1886
1897
  });
1887
1898
  function ar(s) {
1888
- var t = b.useRef(), e = b.useState({}), n = ue(e, 2), r = n[1];
1899
+ var t = E.useRef(), e = E.useState({}), n = oe(e, 2), r = n[1];
1889
1900
  if (!t.current)
1890
1901
  if (s)
1891
1902
  t.current = s;
1892
1903
  else {
1893
1904
  var i = function() {
1894
1905
  r({});
1895
- }, a = new at(i);
1906
+ }, a = new st(i);
1896
1907
  t.current = a.getForm();
1897
1908
  }
1898
1909
  return [t.current];
1899
1910
  }
1900
- var Oe = /* @__PURE__ */ b.createContext({
1911
+ var Oe = /* @__PURE__ */ E.createContext({
1901
1912
  triggerFormChange: function() {
1902
1913
  },
1903
1914
  triggerFormFinish: function() {
@@ -1907,60 +1918,60 @@ var Oe = /* @__PURE__ */ b.createContext({
1907
1918
  unregisterForm: function() {
1908
1919
  }
1909
1920
  }), sr = function(t) {
1910
- var e = t.validateMessages, n = t.onFormChange, r = t.onFormFinish, i = t.children, a = b.useContext(Oe), u = b.useRef({});
1911
- return /* @__PURE__ */ b.createElement(Oe.Provider, {
1921
+ var e = t.validateMessages, n = t.onFormChange, r = t.onFormFinish, i = t.children, a = E.useContext(Oe), o = E.useRef({});
1922
+ return /* @__PURE__ */ E.createElement(Oe.Provider, {
1912
1923
  value: x(x({}, a), {}, {
1913
1924
  validateMessages: x(x({}, a.validateMessages), e),
1914
1925
  // =========================================================
1915
1926
  // = Global Form Control =
1916
1927
  // =========================================================
1917
- triggerFormChange: function(f, o) {
1928
+ triggerFormChange: function(f, u) {
1918
1929
  n && n(f, {
1919
- changedFields: o,
1920
- forms: u.current
1921
- }), a.triggerFormChange(f, o);
1930
+ changedFields: u,
1931
+ forms: o.current
1932
+ }), a.triggerFormChange(f, u);
1922
1933
  },
1923
- triggerFormFinish: function(f, o) {
1934
+ triggerFormFinish: function(f, u) {
1924
1935
  r && r(f, {
1925
- values: o,
1926
- forms: u.current
1927
- }), a.triggerFormFinish(f, o);
1936
+ values: u,
1937
+ forms: o.current
1938
+ }), a.triggerFormFinish(f, u);
1928
1939
  },
1929
- registerForm: function(f, o) {
1930
- f && (u.current = x(x({}, u.current), {}, d({}, f, o))), a.registerForm(f, o);
1940
+ registerForm: function(f, u) {
1941
+ f && (o.current = x(x({}, o.current), {}, d({}, f, u))), a.registerForm(f, u);
1931
1942
  },
1932
1943
  unregisterForm: function(f) {
1933
- var o = x({}, u.current);
1934
- delete o[f], u.current = o, a.unregisterForm(f);
1944
+ var u = x({}, o.current);
1945
+ delete u[f], o.current = u, a.unregisterForm(f);
1935
1946
  }
1936
1947
  })
1937
1948
  }, i);
1938
- }, st = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], ut = function(t, e) {
1939
- var n = t.name, r = t.initialValues, i = t.fields, a = t.form, u = t.preserve, l = t.children, f = t.component, o = f === void 0 ? "form" : f, g = t.validateMessages, h = t.validateTrigger, E = h === void 0 ? "onChange" : h, p = t.onValuesChange, m = t.onFieldsChange, c = t.onFinish, F = t.onFinishFailed, v = t.clearOnDestroy, y = Ae(t, st), C = b.useRef(null), V = b.useContext(Oe), A = ar(a), N = ue(A, 1), R = N[0], w = R.getInternalHooks(X), P = w.useSubscribe, k = w.setInitialValues, T = w.setCallbacks, I = w.setValidateMessages, M = w.setPreserve, z = w.destroyForm;
1940
- b.useImperativeHandle(e, function() {
1949
+ }, ot = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], ut = function(t, e) {
1950
+ var n = t.name, r = t.initialValues, i = t.fields, a = t.form, o = t.preserve, l = t.children, f = t.component, u = f === void 0 ? "form" : f, g = t.validateMessages, h = t.validateTrigger, b = h === void 0 ? "onChange" : h, p = t.onValuesChange, m = t.onFieldsChange, c = t.onFinish, F = t.onFinishFailed, v = t.clearOnDestroy, y = Ae(t, ot), C = E.useRef(null), V = E.useContext(Oe), A = ar(a), N = oe(A, 1), R = N[0], w = R.getInternalHooks(X), P = w.useSubscribe, k = w.setInitialValues, I = w.setCallbacks, T = w.setValidateMessages, M = w.setPreserve, z = w.destroyForm;
1951
+ E.useImperativeHandle(e, function() {
1941
1952
  return x(x({}, R), {}, {
1942
1953
  nativeElement: C.current
1943
1954
  });
1944
- }), b.useEffect(function() {
1955
+ }), E.useEffect(function() {
1945
1956
  return V.registerForm(n, R), function() {
1946
1957
  V.unregisterForm(n);
1947
1958
  };
1948
- }, [V, R, n]), I(x(x({}, V.validateMessages), g)), T({
1959
+ }, [V, R, n]), T(x(x({}, V.validateMessages), g)), I({
1949
1960
  onValuesChange: p,
1950
1961
  onFieldsChange: function(J) {
1951
1962
  if (V.triggerFormChange(n, J), m) {
1952
- for (var Z = arguments.length, Te = new Array(Z > 1 ? Z - 1 : 0), ge = 1; ge < Z; ge++)
1953
- Te[ge - 1] = arguments[ge];
1954
- m.apply(void 0, [J].concat(Te));
1963
+ for (var Z = arguments.length, Ie = new Array(Z > 1 ? Z - 1 : 0), ge = 1; ge < Z; ge++)
1964
+ Ie[ge - 1] = arguments[ge];
1965
+ m.apply(void 0, [J].concat(Ie));
1955
1966
  }
1956
1967
  },
1957
1968
  onFinish: function(J) {
1958
1969
  V.triggerFormFinish(n, J), c && c(J);
1959
1970
  },
1960
1971
  onFinishFailed: F
1961
- }), M(u);
1962
- var _ = b.useRef(null);
1963
- k(r, !_.current), _.current || (_.current = !0), b.useEffect(
1972
+ }), M(o);
1973
+ var _ = E.useRef(null);
1974
+ k(r, !_.current), _.current || (_.current = !0), E.useEffect(
1964
1975
  function() {
1965
1976
  return function() {
1966
1977
  return z(v);
@@ -1971,25 +1982,25 @@ var Oe = /* @__PURE__ */ b.createContext({
1971
1982
  );
1972
1983
  var G, Me = typeof l == "function";
1973
1984
  if (Me) {
1974
- var ur = R.getFieldsValue(!0);
1975
- G = l(ur, R);
1985
+ var or = R.getFieldsValue(!0);
1986
+ G = l(or, R);
1976
1987
  } else
1977
1988
  G = l;
1978
1989
  P(!Me);
1979
- var Se = b.useRef();
1980
- b.useEffect(function() {
1981
- Xr(Se.current || [], i || []) || R.setFields(i || []), Se.current = i;
1990
+ var Se = E.useRef();
1991
+ E.useEffect(function() {
1992
+ et(Se.current || [], i || []) || R.setFields(i || []), Se.current = i;
1982
1993
  }, [i, R]);
1983
- var or = b.useMemo(function() {
1994
+ var ur = E.useMemo(function() {
1984
1995
  return x(x({}, R), {}, {
1985
- validateTrigger: E
1996
+ validateTrigger: b
1986
1997
  });
1987
- }, [R, E]), Ie = /* @__PURE__ */ b.createElement(he.Provider, {
1998
+ }, [R, b]), Te = /* @__PURE__ */ E.createElement(he.Provider, {
1988
1999
  value: null
1989
- }, /* @__PURE__ */ b.createElement(ne.Provider, {
1990
- value: or
2000
+ }, /* @__PURE__ */ E.createElement(ne.Provider, {
2001
+ value: ur
1991
2002
  }, G));
1992
- return o === !1 ? Ie : /* @__PURE__ */ b.createElement(o, Qe({}, y, {
2003
+ return u === !1 ? Te : /* @__PURE__ */ E.createElement(u, Qe({}, y, {
1993
2004
  ref: C,
1994
2005
  onSubmit: function(J) {
1995
2006
  J.preventDefault(), J.stopPropagation(), R.submit();
@@ -1998,7 +2009,7 @@ var Oe = /* @__PURE__ */ b.createContext({
1998
2009
  var Z;
1999
2010
  J.preventDefault(), R.resetFields(), (Z = y.onReset) === null || Z === void 0 || Z.call(y, J);
2000
2011
  }
2001
- }), Ie);
2012
+ }), Te);
2002
2013
  };
2003
2014
  function Je(s) {
2004
2015
  try {
@@ -2007,87 +2018,87 @@ function Je(s) {
2007
2018
  return Math.random();
2008
2019
  }
2009
2020
  }
2010
- var ot = process.env.NODE_ENV !== "production" ? function(s) {
2021
+ var lt = process.env.NODE_ENV !== "production" ? function(s) {
2011
2022
  var t = s.join("__RC_FIELD_FORM_SPLIT__"), e = we(t);
2012
2023
  D(e.current === t, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
2013
2024
  } : function() {
2014
2025
  };
2015
- function lt() {
2026
+ function ft() {
2016
2027
  for (var s = arguments.length, t = new Array(s), e = 0; e < s; e++)
2017
2028
  t[e] = arguments[e];
2018
- var n = t[0], r = t[1], i = r === void 0 ? {} : r, a = Fr(i) ? {
2029
+ var n = t[0], r = t[1], i = r === void 0 ? {} : r, a = yr(i) ? {
2019
2030
  form: i
2020
- } : i, u = a.form, l = dr(), f = ue(l, 2), o = f[0], g = f[1], h = gr(function() {
2021
- return Je(o);
2022
- }, [o]), E = we(h);
2023
- E.current = h;
2024
- var p = vr(ne), m = u || p, c = m && m._init;
2025
- process.env.NODE_ENV !== "production" && D(t.length === 2 ? u ? c : !0 : c, "useWatch requires a form instance since it can not auto detect from context.");
2031
+ } : i, o = a.form, l = dr(), f = oe(l, 2), u = f[0], g = f[1], h = gr(function() {
2032
+ return Je(u);
2033
+ }, [u]), b = we(h);
2034
+ b.current = h;
2035
+ var p = vr(ne), m = o || p, c = m && m._init;
2036
+ process.env.NODE_ENV !== "production" && D(t.length === 2 ? o ? c : !0 : c, "useWatch requires a form instance since it can not auto detect from context.");
2026
2037
  var F = L(n), v = we(F);
2027
- return v.current = F, ot(F), hr(
2038
+ return v.current = F, lt(F), hr(
2028
2039
  function() {
2029
2040
  if (c) {
2030
- var y = m.getFieldsValue, C = m.getInternalHooks, V = C(X), A = V.registerWatch, N = function(k, T) {
2031
- var I = a.preserve ? T : k;
2032
- return typeof n == "function" ? n(I) : Q(I, v.current);
2041
+ var y = m.getFieldsValue, C = m.getInternalHooks, V = C(X), A = V.registerWatch, N = function(k, I) {
2042
+ var T = a.preserve ? I : k;
2043
+ return typeof n == "function" ? n(T) : Q(T, v.current);
2033
2044
  }, R = A(function(P, k) {
2034
- var T = N(P, k), I = Je(T);
2035
- E.current !== I && (E.current = I, g(T));
2045
+ var I = N(P, k), T = Je(I);
2046
+ b.current !== T && (b.current = T, g(I));
2036
2047
  }), w = N(y(), y(!0));
2037
- return o !== w && g(w), R;
2048
+ return u !== w && g(w), R;
2038
2049
  }
2039
2050
  },
2040
2051
  // We do not need re-register since namePath content is the same
2041
2052
  // eslint-disable-next-line react-hooks/exhaustive-deps
2042
2053
  [c]
2043
- ), o;
2054
+ ), u;
2044
2055
  }
2045
- var ft = /* @__PURE__ */ b.forwardRef(ut), de = ft;
2056
+ var ct = /* @__PURE__ */ E.forwardRef(ut), de = ct;
2046
2057
  de.FormProvider = sr;
2047
2058
  de.Field = nr;
2048
- de.List = tt;
2059
+ de.List = nt;
2049
2060
  de.useForm = ar;
2050
- de.useWatch = lt;
2051
- const ht = /* @__PURE__ */ b.createContext({
2061
+ de.useWatch = ft;
2062
+ const pt = /* @__PURE__ */ E.createContext({
2052
2063
  labelAlign: "right",
2053
2064
  vertical: !1,
2054
2065
  itemRef: () => {
2055
2066
  }
2056
- }), mt = /* @__PURE__ */ b.createContext(null), pt = (s) => {
2067
+ }), Ft = /* @__PURE__ */ E.createContext(null), yt = (s) => {
2057
2068
  const t = pr(s, ["prefixCls"]);
2058
- return /* @__PURE__ */ b.createElement(sr, Object.assign({}, t));
2059
- }, Ft = /* @__PURE__ */ b.createContext({
2069
+ return /* @__PURE__ */ E.createElement(sr, Object.assign({}, t));
2070
+ }, wt = /* @__PURE__ */ E.createContext({
2060
2071
  prefixCls: ""
2061
- }), $e = /* @__PURE__ */ b.createContext({});
2072
+ }), $e = /* @__PURE__ */ E.createContext({});
2062
2073
  process.env.NODE_ENV !== "production" && ($e.displayName = "FormItemInputContext");
2063
- const yt = (s) => {
2074
+ const Vt = (s) => {
2064
2075
  let {
2065
2076
  children: t,
2066
2077
  status: e,
2067
2078
  override: n
2068
2079
  } = s;
2069
- const r = b.useContext($e), i = b.useMemo(() => {
2080
+ const r = E.useContext($e), i = E.useMemo(() => {
2070
2081
  const a = Object.assign({}, r);
2071
2082
  return n && delete a.isFormItemInput, e && (delete a.status, delete a.hasFeedback, delete a.feedbackIcon), a;
2072
2083
  }, [e, n, r]);
2073
- return /* @__PURE__ */ b.createElement($e.Provider, {
2084
+ return /* @__PURE__ */ E.createElement($e.Provider, {
2074
2085
  value: i
2075
2086
  }, t);
2076
- }, wt = /* @__PURE__ */ b.createContext(void 0);
2087
+ }, Et = /* @__PURE__ */ E.createContext(void 0);
2077
2088
  export {
2078
2089
  ne as C,
2079
2090
  $e as F,
2080
2091
  he as L,
2081
- yt as N,
2092
+ Vt as N,
2082
2093
  de as R,
2083
- wt as V,
2094
+ Et as V,
2084
2095
  nr as W,
2085
- Ft as a,
2096
+ wt as a,
2086
2097
  ar as b,
2087
- pt as c,
2088
- ht as d,
2089
- mt as e,
2090
- tt as f,
2091
- lt as g,
2092
- vt as u
2098
+ yt as c,
2099
+ pt as d,
2100
+ Ft as e,
2101
+ nt as f,
2102
+ ft as g,
2103
+ mt as u
2093
2104
  };