@gobolt/genesis 0.0.10 → 0.1.0

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 (438) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
  6. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  7. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  8. package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
  9. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
  10. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
  11. package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
  12. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  13. package/dist/Keyframes-C9_aCDvn.js +17 -0
  14. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  15. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  16. package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
  17. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  18. package/dist/Skeleton-BVN4pcVe.js +560 -0
  19. package/dist/TextArea-Bkf9hh7l.js +708 -0
  20. package/dist/Typography-CoZ5qD-t.js +705 -0
  21. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  22. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  23. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  24. package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
  25. package/dist/clsx-OuTLNxxd.js +16 -0
  26. package/dist/components/Avatar/Avatar.d.ts +12 -0
  27. package/dist/components/Avatar/Avatar.js +61 -0
  28. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  30. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +4 -0
  33. package/dist/components/Avatar/styles.d.ts +18 -0
  34. package/dist/components/Avatar/styles.js +326 -0
  35. package/dist/components/Badge/Badge.d.ts +5 -3
  36. package/dist/components/Badge/Badge.js +67 -100
  37. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  38. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  39. package/dist/components/Badge/styles.d.ts +12 -3
  40. package/dist/components/Badge/styles.js +30 -27
  41. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  42. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  43. package/dist/components/Breadcrumb/styles.js +239 -2260
  44. package/dist/components/Button/Button.d.ts +4 -3
  45. package/dist/components/Button/Button.js +10 -6
  46. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  47. package/dist/components/Button/__tests__/Button.test.js +1 -1
  48. package/dist/components/Button/styles.d.ts +2 -2
  49. package/dist/components/Button/styles.js +20 -17
  50. package/dist/components/Card/Card.d.ts +9 -0
  51. package/dist/components/Card/Card.js +16 -0
  52. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  53. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  54. package/dist/components/Card/__tests__/Card.test.js +16 -0
  55. package/dist/components/Card/index.d.ts +2 -0
  56. package/dist/components/Card/index.js +4 -0
  57. package/dist/components/Card/styles.d.ts +16 -0
  58. package/dist/components/Card/styles.js +12 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  60. package/dist/components/Checkbox/Checkbox.js +28 -16
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  62. package/dist/components/Checkbox/styles.js +22 -457
  63. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  64. package/dist/components/Dashboard/Dashboard.js +5 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  66. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  67. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  73. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  75. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  77. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  78. package/dist/components/Dashboard/index.d.ts +2 -0
  79. package/dist/components/Dashboard/index.js +4 -0
  80. package/dist/components/Dashboard/styles.d.ts +14 -0
  81. package/dist/components/Dashboard/styles.js +11 -0
  82. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  83. package/dist/components/DatePicker/DatePicker.js +5 -0
  84. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  85. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  86. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  87. package/dist/components/DatePicker/index.d.ts +2 -0
  88. package/dist/components/DatePicker/index.js +4 -0
  89. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  90. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  91. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  92. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  93. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  94. package/dist/components/DateRangePicker/index.d.ts +2 -0
  95. package/dist/components/DateRangePicker/index.js +4 -0
  96. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  97. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  98. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  99. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  100. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  101. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  102. package/dist/components/ErrorBoundary/index.js +4 -0
  103. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  104. package/dist/components/ErrorBoundary/styles.js +11 -0
  105. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  106. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  107. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  108. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  109. package/dist/components/Form/Form.js +3 -3
  110. package/dist/components/Form/__stories__/FormStory.js +127 -50
  111. package/dist/components/Form/__tests__/form.test.js +2 -2
  112. package/dist/components/Form/index.js +1 -1
  113. package/dist/components/Form/styles.js +1 -1
  114. package/dist/components/Glyph/Glyph.d.ts +4 -0
  115. package/dist/components/Glyph/Glyph.js +9 -0
  116. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  117. package/dist/components/Glyph/index.d.ts +2 -0
  118. package/dist/components/Glyph/index.js +4 -0
  119. package/dist/components/Glyph/styles.d.ts +14 -0
  120. package/dist/components/Glyph/styles.js +11 -0
  121. package/dist/components/Input/Input.d.ts +1 -2
  122. package/dist/components/Input/Input.js +14 -10
  123. package/dist/components/Input/__tests__/Input.test.js +1 -1
  124. package/dist/components/Input/styles.js +58 -466
  125. package/dist/components/Layout/Content/Content.d.ts +11 -0
  126. package/dist/components/Layout/Content/Content.js +32 -0
  127. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  128. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  129. package/dist/components/Layout/Content/index.d.ts +2 -0
  130. package/dist/components/Layout/Content/index.js +4 -0
  131. package/dist/components/Layout/Content/styles.d.ts +11 -0
  132. package/dist/components/Layout/Content/styles.js +16 -0
  133. package/dist/components/Layout/Layout.d.ts +8 -0
  134. package/dist/components/Layout/Layout.js +6 -0
  135. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  136. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  137. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  138. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  139. package/dist/components/Layout/MainLayout/index.js +4 -0
  140. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  141. package/dist/components/Layout/MainLayout/styles.js +69 -0
  142. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  143. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  144. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  145. package/dist/components/Layout/index.d.ts +2 -0
  146. package/dist/components/Layout/index.js +4 -0
  147. package/dist/components/Message/Message.d.ts +6 -4
  148. package/dist/components/Message/Message.js +70 -43
  149. package/dist/components/Message/__tests__/Message.test.js +1 -1
  150. package/dist/components/Message/styles.d.ts +1 -0
  151. package/dist/components/Message/styles.js +15 -11
  152. package/dist/components/Notification/Notification.js +145 -120
  153. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  154. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  155. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  156. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  157. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  158. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  159. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  160. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  161. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  162. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  163. package/dist/components/Notification/styles.d.ts +1 -1
  164. package/dist/components/Notification/styles.js +1 -1
  165. package/dist/components/Popover/Popover.d.ts +10 -0
  166. package/dist/components/Popover/Popover.js +21 -0
  167. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  168. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  169. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  170. package/dist/components/Popover/index.d.ts +2 -0
  171. package/dist/components/Popover/index.js +4 -0
  172. package/dist/components/Popover/styles.d.ts +15 -0
  173. package/dist/components/Popover/styles.js +6 -0
  174. package/dist/components/Progress/Progress.d.ts +18 -0
  175. package/dist/components/Progress/Progress.js +91 -0
  176. package/dist/components/Progress/Progress.util.d.ts +4 -0
  177. package/dist/components/Progress/Progress.util.js +62 -0
  178. package/dist/components/Progress/ProgressText.d.ts +11 -0
  179. package/dist/components/Progress/ProgressText.js +67 -0
  180. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  181. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  182. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  183. package/dist/components/Progress/index.d.ts +2 -0
  184. package/dist/components/Progress/index.js +4 -0
  185. package/dist/components/Progress/styles.d.ts +17 -0
  186. package/dist/components/Progress/styles.js +793 -0
  187. package/dist/components/Radio/Radio.js +22 -6
  188. package/dist/components/Radio/RadioGroup.js +1 -1
  189. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  190. package/dist/components/Radio/index.d.ts +1 -0
  191. package/dist/components/Row/Row.d.ts +14 -0
  192. package/dist/components/Row/Row.js +38 -0
  193. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  194. package/dist/components/Row/RowActions/RowActions.js +59 -0
  195. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  196. package/dist/components/Row/RowActions/styles.js +32 -0
  197. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  198. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  199. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  200. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  201. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  202. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  203. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  204. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  205. package/dist/components/Row/__tests__/Row.test.js +16 -0
  206. package/dist/components/Row/index.d.ts +2 -0
  207. package/dist/components/Row/index.js +4 -0
  208. package/dist/components/Row/styles.d.ts +15 -0
  209. package/dist/components/Row/styles.js +15 -0
  210. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  211. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  212. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  213. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  214. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  215. package/dist/components/SegmentedControls/index.d.ts +2 -0
  216. package/dist/components/SegmentedControls/index.js +4 -0
  217. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  218. package/dist/components/SegmentedControls/styles.js +511 -0
  219. package/dist/components/Select/Select.d.ts +2 -4
  220. package/dist/components/Select/Select.js +12 -11
  221. package/dist/components/Select/__tests__/Select.test.js +1 -1
  222. package/dist/components/Select/styles.js +39 -3654
  223. package/dist/components/Shapes/Shapes.d.ts +6 -0
  224. package/dist/components/Shapes/Shapes.js +8 -0
  225. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  226. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  227. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  228. package/dist/components/Shapes/index.d.ts +2 -0
  229. package/dist/components/Shapes/index.js +4 -0
  230. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  231. package/dist/components/Shapes/variants/Circle.js +23 -0
  232. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  233. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  234. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  235. package/dist/components/Shapes/variants/Triangle.js +23 -0
  236. package/dist/components/Switch/Switch.d.ts +9 -0
  237. package/dist/components/Switch/Switch.js +22 -0
  238. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  239. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  240. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  241. package/dist/components/Switch/index.d.ts +2 -0
  242. package/dist/components/Switch/index.js +4 -0
  243. package/dist/components/Switch/styles.d.ts +9 -0
  244. package/dist/components/Switch/styles.js +456 -0
  245. package/dist/components/Table/Table.d.ts +15 -0
  246. package/dist/components/Table/Table.js +23 -0
  247. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  248. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  249. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  250. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  251. package/dist/components/Table/__tests__/Table.test.js +34 -0
  252. package/dist/components/Table/index.d.ts +2 -0
  253. package/dist/components/Table/index.js +4 -0
  254. package/dist/components/Table/styles.d.ts +8 -0
  255. package/dist/components/Table/styles.js +6 -0
  256. package/dist/components/Tabs/Tabs.d.ts +10 -0
  257. package/dist/components/Tabs/Tabs.js +23 -0
  258. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  259. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  260. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  261. package/dist/components/Tabs/index.d.ts +2 -0
  262. package/dist/components/Tabs/index.js +4 -0
  263. package/dist/components/Tabs/styles.d.ts +12 -0
  264. package/dist/components/Tabs/styles.js +102 -0
  265. package/dist/components/Tile/Tile.d.ts +10 -0
  266. package/dist/components/Tile/Tile.js +21 -0
  267. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  268. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  269. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  270. package/dist/components/Tile/index.d.ts +2 -0
  271. package/dist/components/Tile/index.js +4 -0
  272. package/dist/components/Tile/styles.d.ts +11 -0
  273. package/dist/components/Tile/styles.js +12 -0
  274. package/dist/components/Toast/Toast.js +23 -6
  275. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  276. package/dist/components/Toast/index.js +1 -1
  277. package/dist/components/Toast/styles.d.ts +0 -1
  278. package/dist/components/Toast/styles.js +14 -23
  279. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  280. package/dist/components/Tooltip/Tooltip.js +50 -0
  281. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  282. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  283. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  284. package/dist/components/Tooltip/index.d.ts +2 -0
  285. package/dist/components/Tooltip/index.js +4 -0
  286. package/dist/components/Tooltip/styles.d.ts +20 -0
  287. package/dist/components/Tooltip/styles.js +11 -0
  288. package/dist/components/Typography/Typography.d.ts +5 -1
  289. package/dist/components/Typography/Typography.js +2 -2
  290. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  291. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  292. package/dist/components/Typography/index.js +1 -1
  293. package/dist/components/Typography/styles.d.ts +1 -0
  294. package/dist/components/Typography/styles.js +53 -17
  295. package/dist/components/index.d.ts +35 -1
  296. package/dist/components/index.js +58 -24
  297. package/dist/constants/index.d.ts +4 -0
  298. package/dist/constants/index.js +4 -2
  299. package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
  300. package/dist/dropdown-Dp_PTQ2u.js +2045 -0
  301. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  302. package/dist/genesis/GenesisThemeBreakdown.js +101 -43
  303. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  304. package/dist/genesis/styles.js +7 -2923
  305. package/dist/iconBase-LROS5hdG.js +112 -0
  306. package/dist/index-BPVue1Yd.js +445 -0
  307. package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
  308. package/dist/index-BRUI9igj.js +11 -0
  309. package/dist/index-B_1Ge8na.js +1846 -0
  310. package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
  311. package/dist/index-BeGv28kJ.js +5173 -0
  312. package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
  313. package/dist/index-BvOLXELm.js +102 -0
  314. package/dist/index-CLSrpQRW.js +416 -0
  315. package/dist/index-CbVOl2U6.js +288 -0
  316. package/dist/index-D0U6r5O7.js +780 -0
  317. package/dist/index-DEu2PVzQ.js +538 -0
  318. package/dist/index-DLdU7Tpd.js +183 -0
  319. package/dist/index-DNQ-jnBx.js +3321 -0
  320. package/dist/index-DOsPeIWJ.js +1000 -0
  321. package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
  322. package/dist/index-DWjq9XYj.js +899 -0
  323. package/dist/index.js +65 -31
  324. package/dist/interface/address.d.ts +10 -0
  325. package/dist/interface/address.js +1 -0
  326. package/dist/interface/appointment.d.ts +57 -0
  327. package/dist/interface/appointment.js +5 -0
  328. package/dist/interface/appointmentV2.d.ts +65 -0
  329. package/dist/interface/appointmentV2.js +1 -0
  330. package/dist/interface/appointmentsState.d.ts +21 -0
  331. package/dist/interface/appointmentsState.js +1 -0
  332. package/dist/interface/common.d.ts +2 -0
  333. package/dist/interface/common.js +1 -0
  334. package/dist/interface/completionData.d.ts +18 -0
  335. package/dist/interface/completionData.js +1 -0
  336. package/dist/interface/deliveryPartner.d.ts +25 -0
  337. package/dist/interface/deliveryPartner.js +1 -0
  338. package/dist/interface/organization.d.ts +9 -0
  339. package/dist/interface/organization.js +1 -0
  340. package/dist/interface/pagination.d.ts +8 -0
  341. package/dist/interface/pagination.js +1 -0
  342. package/dist/interface/roles.d.ts +9 -0
  343. package/dist/interface/roles.js +1 -0
  344. package/dist/interface/route.d.ts +73 -0
  345. package/dist/interface/route.js +1 -0
  346. package/dist/interface/routeAnalysis.d.ts +108 -0
  347. package/dist/interface/routeAnalysis.js +1 -0
  348. package/dist/interface/routeAutomationJob.d.ts +95 -0
  349. package/dist/interface/routeAutomationJob.js +10 -0
  350. package/dist/interface/routeAutomationLog.d.ts +10 -0
  351. package/dist/interface/routeAutomationLog.js +1 -0
  352. package/dist/interface/routeEvent.d.ts +55 -0
  353. package/dist/interface/routeEvent.js +5 -0
  354. package/dist/interface/serviceArea.d.ts +18 -0
  355. package/dist/interface/serviceArea.js +1 -0
  356. package/dist/interface/util.d.ts +3 -0
  357. package/dist/interface/util.js +1 -0
  358. package/dist/interface/vehicle.d.ts +120 -0
  359. package/dist/interface/vehicle.js +1 -0
  360. package/dist/interface/workOrder.d.ts +22 -0
  361. package/dist/interface/workOrder.js +1 -0
  362. package/dist/isVisible-D3-B85BJ.js +22 -0
  363. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  364. package/dist/motion-CUN72xsH.js +33 -0
  365. package/dist/omit-B_u6A-HL.js +9 -0
  366. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  367. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  368. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  369. package/dist/providers/BreakpointThemeProvider.js +21 -0
  370. package/dist/providers/GenesisProvider.js +3 -3
  371. package/dist/providers/ToastProvider.js +22 -6
  372. package/dist/providers/index.js +1 -1
  373. package/dist/providers/useGenesis.js +2 -2
  374. package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
  375. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  376. package/dist/setup-CUbCc8fQ.js +24706 -0
  377. package/dist/setup.types-dBtAXXGp.js +8824 -0
  378. package/dist/shadow-BoMGMNn3.js +13 -0
  379. package/dist/styleChecker-Cotu61d0.js +21 -0
  380. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
  381. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  382. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  383. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  384. package/dist/styles/theme/genesis-theme.js +398 -331
  385. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  386. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  387. package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
  388. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  389. package/dist/styles-CWdUpZom.js +289 -0
  390. package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
  391. package/dist/styles-qerRs7Rn.js +9196 -0
  392. package/dist/test/setup.d.ts +2 -3
  393. package/dist/test/setup.js +87 -4
  394. package/dist/test/setup.types.d.ts +7 -0
  395. package/dist/test/setup.types.js +1 -0
  396. package/dist/toArray-U3Az44CO.js +11 -0
  397. package/dist/useBreakpoint-TkMv121M.js +22 -0
  398. package/dist/useCSSVarCls-Dau77fzS.js +11 -0
  399. package/dist/useIcons-Ck4JP1m9.js +321 -0
  400. package/dist/useId-D2tzlufo.js +26 -0
  401. package/dist/useLocale-CTfNpakL.js +16 -0
  402. package/dist/useMergedState-D6toxSxh.js +23 -0
  403. package/dist/useSize-DSq4r6zy.js +9 -0
  404. package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
  405. package/dist/useZIndex-DhyHuZTN.js +44 -0
  406. package/dist/utils/icon-util.d.ts +2 -0
  407. package/dist/utils/icon-util.js +89 -0
  408. package/package.json +27 -15
  409. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  410. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  411. package/dist/TextArea-DKwCct3i.js +0 -1690
  412. package/dist/Typography-aGoDUl4R.js +0 -710
  413. package/dist/index-BZAhCB_K.js +0 -97
  414. package/dist/index-CfDY25LP.js +0 -873
  415. package/dist/index-DPW8XdWj.js +0 -952
  416. package/dist/isVisible-A-IfeFoT.js +0 -367
  417. package/dist/providers/ThemeProvider.d.ts +0 -9
  418. package/dist/providers/ThemeProvider.js +0 -21
  419. package/dist/setup-BvfREoHl.js +0 -33891
  420. package/dist/useLocale-DT-z_vQ6.js +0 -16
  421. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  422. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  423. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  424. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  425. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  426. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  427. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  428. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  429. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  430. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  431. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  432. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  433. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  434. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  435. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  436. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  437. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  438. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,3321 @@
1
+ import * as o from "react";
2
+ import Rn, { useState as Tn, useRef as he, useEffect as Yn, useMemo as fr, useContext as mr } from "react";
3
+ import { e as Be, f as pn, a as te, j as vr, _ as ee, b as ae, d as on, g as wn, w as Ue, c as gr, n as ht, F as zn } from "./presets-Djh_L_6R.js";
4
+ import { t as pr, a8 as hr, o as Ye, B as br, h as Mn, F as un, _ as Sr, e as Cr, E as yr, a as bt, G as St, Z as wr, c as tt, j as Bt, m as Hn, C as rt, g as zt, k as ot, v as qn, f as ke, r as Er, D as Ir } from "./index-BbTV2Cw5.js";
5
+ import { u as Qn } from "./useMergedState-D6toxSxh.js";
6
+ import { T as xr, a as Or } from "./index-D0U6r5O7.js";
7
+ import { K as W } from "./KeyCode-DM2sFh3-.js";
8
+ import { p as Fn } from "./pickAttrs-CleuMJFR.js";
9
+ import { F as Rr, s as Mr, a as Dr, b as $r, c as Nr, i as Ct } from "./Overflow-DWf4XIal.js";
10
+ import { o as Ht } from "./omit-B_u6A-HL.js";
11
+ import { R as Ft } from "./index-BQM5OniU.js";
12
+ import "./index-DLdU7Tpd.js";
13
+ import { t as Zn } from "./toArray-U3Az44CO.js";
14
+ import { u as Pr } from "./useZIndex-DhyHuZTN.js";
15
+ import { g as _r } from "./motion-CUN72xsH.js";
16
+ import { i as yt, g as Tr } from "./DownOutlined-Dcq69ZKM.js";
17
+ import { u as Vr, a as Lr, g as Br } from "./useVariants-DrLzUVLU.js";
18
+ import { u as at } from "./useLocale-CTfNpakL.js";
19
+ import { u as zr } from "./useCSSVarCls-Dau77fzS.js";
20
+ import { u as Hr } from "./useSize-DSq4r6zy.js";
21
+ import { F as Fr } from "./context-DIFtNa4d.js";
22
+ import { u as Ar } from "./Compact-Du9689ax.js";
23
+ import { g as jr } from "./compact-item-DH13cl8A.js";
24
+ import { g as Wr, u as Kr } from "./useIcons-Ck4JP1m9.js";
25
+ var jn = function(n) {
26
+ var t = n.className, r = n.customizeIcon, a = n.customizeIconProps, l = n.children, i = n.onMouseDown, u = n.onClick, d = typeof r == "function" ? r(a) : r;
27
+ return /* @__PURE__ */ o.createElement("span", {
28
+ className: t,
29
+ onMouseDown: function(v) {
30
+ v.preventDefault(), i == null || i(v);
31
+ },
32
+ style: {
33
+ userSelect: "none",
34
+ WebkitUserSelect: "none"
35
+ },
36
+ unselectable: "on",
37
+ onClick: u,
38
+ "aria-hidden": !0
39
+ }, d !== void 0 ? d : /* @__PURE__ */ o.createElement("span", {
40
+ className: Be(t.split(/\s+/).map(function(f) {
41
+ return "".concat(f, "-icon");
42
+ }))
43
+ }, l));
44
+ }, Ur = function(n, t, r, a, l) {
45
+ var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !1, u = arguments.length > 6 ? arguments[6] : void 0, d = arguments.length > 7 ? arguments[7] : void 0, f = Rn.useMemo(function() {
46
+ if (pn(a) === "object")
47
+ return a.clearIcon;
48
+ if (l)
49
+ return l;
50
+ }, [a, l]), v = Rn.useMemo(function() {
51
+ return !!(!i && a && (r.length || u) && !(d === "combobox" && u === ""));
52
+ }, [a, i, r.length, u, d]);
53
+ return {
54
+ allowClear: v,
55
+ clearIcon: /* @__PURE__ */ Rn.createElement(jn, {
56
+ className: "".concat(n, "-clear"),
57
+ onMouseDown: t,
58
+ customizeIcon: f
59
+ }, "×")
60
+ };
61
+ }, At = /* @__PURE__ */ o.createContext(null);
62
+ function Xr() {
63
+ return o.useContext(At);
64
+ }
65
+ function Gr() {
66
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, n = o.useState(!1), t = te(n, 2), r = t[0], a = t[1], l = o.useRef(null), i = function() {
67
+ window.clearTimeout(l.current);
68
+ };
69
+ o.useEffect(function() {
70
+ return i;
71
+ }, []);
72
+ var u = function(f, v) {
73
+ i(), l.current = window.setTimeout(function() {
74
+ a(f), v && v();
75
+ }, e);
76
+ };
77
+ return [r, u, i];
78
+ }
79
+ function jt() {
80
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, n = o.useRef(null), t = o.useRef(null);
81
+ o.useEffect(function() {
82
+ return function() {
83
+ window.clearTimeout(t.current);
84
+ };
85
+ }, []);
86
+ function r(a) {
87
+ (a || n.current === null) && (n.current = a), window.clearTimeout(t.current), t.current = window.setTimeout(function() {
88
+ n.current = null;
89
+ }, e);
90
+ }
91
+ return [function() {
92
+ return n.current;
93
+ }, r];
94
+ }
95
+ function Yr(e, n, t, r) {
96
+ var a = o.useRef(null);
97
+ a.current = {
98
+ open: n,
99
+ triggerOpen: t,
100
+ customizedTrigger: r
101
+ }, o.useEffect(function() {
102
+ function l(i) {
103
+ var u;
104
+ if (!((u = a.current) !== null && u !== void 0 && u.customizedTrigger)) {
105
+ var d = i.target;
106
+ d.shadowRoot && i.composed && (d = i.composedPath()[0] || d), a.current.open && e().filter(function(f) {
107
+ return f;
108
+ }).every(function(f) {
109
+ return !f.contains(d) && f !== d;
110
+ }) && a.current.triggerOpen(!1);
111
+ }
112
+ }
113
+ return window.addEventListener("mousedown", l), function() {
114
+ return window.removeEventListener("mousedown", l);
115
+ };
116
+ }, []);
117
+ }
118
+ function qr(e) {
119
+ return (
120
+ // Undefined for Edge bug:
121
+ // https://github.com/ant-design/ant-design/issues/51292
122
+ e && // Other keys
123
+ ![
124
+ // System function button
125
+ W.ESC,
126
+ W.SHIFT,
127
+ W.BACKSPACE,
128
+ W.TAB,
129
+ W.WIN_KEY,
130
+ W.ALT,
131
+ W.META,
132
+ W.WIN_KEY_RIGHT,
133
+ W.CTRL,
134
+ W.SEMICOLON,
135
+ W.EQUALS,
136
+ W.CAPS_LOCK,
137
+ W.CONTEXT_MENU,
138
+ // F1-F12
139
+ W.F1,
140
+ W.F2,
141
+ W.F3,
142
+ W.F4,
143
+ W.F5,
144
+ W.F6,
145
+ W.F7,
146
+ W.F8,
147
+ W.F9,
148
+ W.F10,
149
+ W.F11,
150
+ W.F12
151
+ ].includes(e)
152
+ );
153
+ }
154
+ var Qr = function(n, t) {
155
+ var r, a = n.prefixCls, l = n.id, i = n.inputElement, u = n.disabled, d = n.tabIndex, f = n.autoFocus, v = n.autoComplete, s = n.editable, h = n.activeDescendantId, c = n.value, g = n.maxLength, m = n.onKeyDown, S = n.onMouseDown, C = n.onChange, b = n.onPaste, x = n.onCompositionStart, w = n.onCompositionEnd, B = n.onBlur, p = n.open, E = n.attrs, L = i || /* @__PURE__ */ o.createElement("input", null), H = L, q = H.ref, _ = H.props, A = _.onKeyDown, X = _.onChange, Q = _.onMouseDown, G = _.onCompositionStart, j = _.onCompositionEnd, ne = _.onBlur, Z = _.style;
156
+ return vr(!("maxLength" in L.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), L = /* @__PURE__ */ o.cloneElement(L, ee(ee(ee({
157
+ type: "search"
158
+ }, _), {}, {
159
+ // Override over origin props
160
+ id: l,
161
+ ref: pr(t, q),
162
+ disabled: u,
163
+ tabIndex: d,
164
+ autoComplete: v || "off",
165
+ autoFocus: f,
166
+ className: Be("".concat(a, "-selection-search-input"), (r = L) === null || r === void 0 || (r = r.props) === null || r === void 0 ? void 0 : r.className),
167
+ role: "combobox",
168
+ "aria-expanded": p || !1,
169
+ "aria-haspopup": "listbox",
170
+ "aria-owns": "".concat(l, "_list"),
171
+ "aria-autocomplete": "list",
172
+ "aria-controls": "".concat(l, "_list"),
173
+ "aria-activedescendant": p ? h : void 0
174
+ }, E), {}, {
175
+ value: s ? c : "",
176
+ maxLength: g,
177
+ readOnly: !s,
178
+ unselectable: s ? null : "on",
179
+ style: ee(ee({}, Z), {}, {
180
+ opacity: s ? null : 0
181
+ }),
182
+ onKeyDown: function(I) {
183
+ m(I), A && A(I);
184
+ },
185
+ onMouseDown: function(I) {
186
+ S(I), Q && Q(I);
187
+ },
188
+ onChange: function(I) {
189
+ C(I), X && X(I);
190
+ },
191
+ onCompositionStart: function(I) {
192
+ x(I), G && G(I);
193
+ },
194
+ onCompositionEnd: function(I) {
195
+ w(I), j && j(I);
196
+ },
197
+ onPaste: b,
198
+ onBlur: function(I) {
199
+ B(I), ne && ne(I);
200
+ }
201
+ })), L;
202
+ }, it = /* @__PURE__ */ o.forwardRef(Qr);
203
+ process.env.NODE_ENV !== "production" && (it.displayName = "Input");
204
+ function lt(e) {
205
+ return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
206
+ }
207
+ var Zr = typeof window < "u" && window.document && window.document.documentElement, Jr = process.env.NODE_ENV !== "test" && Zr;
208
+ function kr(e) {
209
+ return e != null;
210
+ }
211
+ function eo(e) {
212
+ return !e && e !== 0;
213
+ }
214
+ function wt(e) {
215
+ return ["string", "number"].includes(pn(e));
216
+ }
217
+ function Wt(e) {
218
+ var n = void 0;
219
+ return e && (wt(e.title) ? n = e.title.toString() : wt(e.label) && (n = e.label.toString())), n;
220
+ }
221
+ function no(e, n) {
222
+ Jr ? o.useLayoutEffect(e, n) : o.useEffect(e, n);
223
+ }
224
+ function to(e) {
225
+ var n;
226
+ return (n = e.key) !== null && n !== void 0 ? n : e.value;
227
+ }
228
+ var Et = function(n) {
229
+ n.preventDefault(), n.stopPropagation();
230
+ }, ro = function(n) {
231
+ var t = n.id, r = n.prefixCls, a = n.values, l = n.open, i = n.searchValue, u = n.autoClearSearchValue, d = n.inputRef, f = n.placeholder, v = n.disabled, s = n.mode, h = n.showSearch, c = n.autoFocus, g = n.autoComplete, m = n.activeDescendantId, S = n.tabIndex, C = n.removeIcon, b = n.maxTagCount, x = n.maxTagTextLength, w = n.maxTagPlaceholder, B = w === void 0 ? function(K) {
232
+ return "+ ".concat(K.length, " ...");
233
+ } : w, p = n.tagRender, E = n.onToggleOpen, L = n.onRemove, H = n.onInputChange, q = n.onInputPaste, _ = n.onInputKeyDown, A = n.onInputMouseDown, X = n.onInputCompositionStart, Q = n.onInputCompositionEnd, G = n.onInputBlur, j = o.useRef(null), ne = Tn(0), Z = te(ne, 2), Y = Z[0], I = Z[1], D = Tn(!1), fe = te(D, 2), ie = fe[0], J = fe[1], se = "".concat(r, "-selection"), ye = l || s === "multiple" && u === !1 || s === "tags" ? i : "", ge = s === "tags" || s === "multiple" && u === !1 || h && (l || ie);
234
+ no(function() {
235
+ I(j.current.scrollWidth);
236
+ }, [ye]);
237
+ var Re = function(O, F, le, me, re) {
238
+ return /* @__PURE__ */ o.createElement("span", {
239
+ title: Wt(O),
240
+ className: Be("".concat(se, "-item"), ae({}, "".concat(se, "-item-disabled"), le))
241
+ }, /* @__PURE__ */ o.createElement("span", {
242
+ className: "".concat(se, "-item-content")
243
+ }, F), me && /* @__PURE__ */ o.createElement(jn, {
244
+ className: "".concat(se, "-item-remove"),
245
+ onMouseDown: Et,
246
+ onClick: re,
247
+ customizeIcon: C
248
+ }, "×"));
249
+ }, ce = function(O, F, le, me, re, Ce) {
250
+ var Le = function(Ne) {
251
+ Et(Ne), E(!l);
252
+ };
253
+ return /* @__PURE__ */ o.createElement("span", {
254
+ onMouseDown: Le
255
+ }, p({
256
+ label: F,
257
+ value: O,
258
+ disabled: le,
259
+ closable: me,
260
+ onClose: re,
261
+ isMaxTag: !!Ce
262
+ }));
263
+ }, pe = function(O) {
264
+ var F = O.disabled, le = O.label, me = O.value, re = !v && !F, Ce = le;
265
+ if (typeof x == "number" && (typeof le == "string" || typeof le == "number")) {
266
+ var Le = String(Ce);
267
+ Le.length > x && (Ce = "".concat(Le.slice(0, x), "..."));
268
+ }
269
+ var xe = function(de) {
270
+ de && de.stopPropagation(), L(O);
271
+ };
272
+ return typeof p == "function" ? ce(me, Ce, F, re, xe) : Re(O, Ce, F, re, xe);
273
+ }, R = function(O) {
274
+ if (!a.length)
275
+ return null;
276
+ var F = typeof B == "function" ? B(O) : B;
277
+ return typeof p == "function" ? ce(void 0, F, !1, !1, void 0, !0) : Re({
278
+ title: F
279
+ }, F, !1);
280
+ }, y = /* @__PURE__ */ o.createElement("div", {
281
+ className: "".concat(se, "-search"),
282
+ style: {
283
+ width: Y
284
+ },
285
+ onFocus: function() {
286
+ J(!0);
287
+ },
288
+ onBlur: function() {
289
+ J(!1);
290
+ }
291
+ }, /* @__PURE__ */ o.createElement(it, {
292
+ ref: d,
293
+ open: l,
294
+ prefixCls: r,
295
+ id: t,
296
+ inputElement: null,
297
+ disabled: v,
298
+ autoFocus: c,
299
+ autoComplete: g,
300
+ editable: ge,
301
+ activeDescendantId: m,
302
+ value: ye,
303
+ onKeyDown: _,
304
+ onMouseDown: A,
305
+ onChange: H,
306
+ onPaste: q,
307
+ onCompositionStart: X,
308
+ onCompositionEnd: Q,
309
+ onBlur: G,
310
+ tabIndex: S,
311
+ attrs: Fn(n, !0)
312
+ }), /* @__PURE__ */ o.createElement("span", {
313
+ ref: j,
314
+ className: "".concat(se, "-search-mirror"),
315
+ "aria-hidden": !0
316
+ }, ye, " ")), $ = /* @__PURE__ */ o.createElement(Rr, {
317
+ prefixCls: "".concat(se, "-overflow"),
318
+ data: a,
319
+ renderItem: pe,
320
+ renderRest: R,
321
+ suffix: y,
322
+ itemKey: to,
323
+ maxCount: b
324
+ });
325
+ return /* @__PURE__ */ o.createElement("span", {
326
+ className: "".concat(se, "-wrap")
327
+ }, $, !a.length && !ye && /* @__PURE__ */ o.createElement("span", {
328
+ className: "".concat(se, "-placeholder")
329
+ }, f));
330
+ }, oo = function(n) {
331
+ var t = n.inputElement, r = n.prefixCls, a = n.id, l = n.inputRef, i = n.disabled, u = n.autoFocus, d = n.autoComplete, f = n.activeDescendantId, v = n.mode, s = n.open, h = n.values, c = n.placeholder, g = n.tabIndex, m = n.showSearch, S = n.searchValue, C = n.activeValue, b = n.maxLength, x = n.onInputKeyDown, w = n.onInputMouseDown, B = n.onInputChange, p = n.onInputPaste, E = n.onInputCompositionStart, L = n.onInputCompositionEnd, H = n.onInputBlur, q = n.title, _ = o.useState(!1), A = te(_, 2), X = A[0], Q = A[1], G = v === "combobox", j = G || m, ne = h[0], Z = S || "";
332
+ G && C && !X && (Z = C), o.useEffect(function() {
333
+ G && Q(!1);
334
+ }, [G, C]);
335
+ var Y = v !== "combobox" && !s && !m ? !1 : !!Z, I = q === void 0 ? Wt(ne) : q, D = o.useMemo(function() {
336
+ return ne ? null : /* @__PURE__ */ o.createElement("span", {
337
+ className: "".concat(r, "-selection-placeholder"),
338
+ style: Y ? {
339
+ visibility: "hidden"
340
+ } : void 0
341
+ }, c);
342
+ }, [ne, Y, c, r]);
343
+ return /* @__PURE__ */ o.createElement("span", {
344
+ className: "".concat(r, "-selection-wrap")
345
+ }, /* @__PURE__ */ o.createElement("span", {
346
+ className: "".concat(r, "-selection-search")
347
+ }, /* @__PURE__ */ o.createElement(it, {
348
+ ref: l,
349
+ prefixCls: r,
350
+ id: a,
351
+ open: s,
352
+ inputElement: t,
353
+ disabled: i,
354
+ autoFocus: u,
355
+ autoComplete: d,
356
+ editable: j,
357
+ activeDescendantId: f,
358
+ value: Z,
359
+ onKeyDown: x,
360
+ onMouseDown: w,
361
+ onChange: function(ie) {
362
+ Q(!0), B(ie);
363
+ },
364
+ onPaste: p,
365
+ onCompositionStart: E,
366
+ onCompositionEnd: L,
367
+ onBlur: H,
368
+ tabIndex: g,
369
+ attrs: Fn(n, !0),
370
+ maxLength: G ? b : void 0
371
+ })), !G && ne ? /* @__PURE__ */ o.createElement("span", {
372
+ className: "".concat(r, "-selection-item"),
373
+ title: I,
374
+ style: Y ? {
375
+ visibility: "hidden"
376
+ } : void 0
377
+ }, ne.label) : null, D);
378
+ }, ao = function(n, t) {
379
+ var r = he(null), a = he(!1), l = n.prefixCls, i = n.open, u = n.mode, d = n.showSearch, f = n.tokenWithEnter, v = n.disabled, s = n.prefix, h = n.autoClearSearchValue, c = n.onSearch, g = n.onSearchSubmit, m = n.onToggleOpen, S = n.onInputKeyDown, C = n.onInputBlur, b = n.domRef;
380
+ o.useImperativeHandle(t, function() {
381
+ return {
382
+ focus: function(I) {
383
+ r.current.focus(I);
384
+ },
385
+ blur: function() {
386
+ r.current.blur();
387
+ }
388
+ };
389
+ });
390
+ var x = jt(0), w = te(x, 2), B = w[0], p = w[1], E = function(I) {
391
+ var D = I.which, fe = r.current instanceof HTMLTextAreaElement;
392
+ !fe && i && (D === W.UP || D === W.DOWN) && I.preventDefault(), S && S(I), D === W.ENTER && u === "tags" && !a.current && !i && (g == null || g(I.target.value)), !(fe && !i && ~[W.UP, W.DOWN, W.LEFT, W.RIGHT].indexOf(D)) && qr(D) && m(!0);
393
+ }, L = function() {
394
+ p(!0);
395
+ }, H = he(null), q = function(I) {
396
+ c(I, !0, a.current) !== !1 && m(!0);
397
+ }, _ = function() {
398
+ a.current = !0;
399
+ }, A = function(I) {
400
+ a.current = !1, u !== "combobox" && q(I.target.value);
401
+ }, X = function(I) {
402
+ var D = I.target.value;
403
+ if (f && H.current && /[\r\n]/.test(H.current)) {
404
+ var fe = H.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
405
+ D = D.replace(fe, H.current);
406
+ }
407
+ H.current = null, q(D);
408
+ }, Q = function(I) {
409
+ var D = I.clipboardData, fe = D == null ? void 0 : D.getData("text");
410
+ H.current = fe || "";
411
+ }, G = function(I) {
412
+ var D = I.target;
413
+ if (D !== r.current) {
414
+ var fe = document.body.style.msTouchAction !== void 0;
415
+ fe ? setTimeout(function() {
416
+ r.current.focus();
417
+ }) : r.current.focus();
418
+ }
419
+ }, j = function(I) {
420
+ var D = B();
421
+ I.target !== r.current && !D && !(u === "combobox" && v) && I.preventDefault(), (u !== "combobox" && (!d || !D) || !i) && (i && h !== !1 && c("", !0, !1), m());
422
+ }, ne = {
423
+ inputRef: r,
424
+ onInputKeyDown: E,
425
+ onInputMouseDown: L,
426
+ onInputChange: X,
427
+ onInputPaste: Q,
428
+ onInputCompositionStart: _,
429
+ onInputCompositionEnd: A,
430
+ onInputBlur: C
431
+ }, Z = u === "multiple" || u === "tags" ? /* @__PURE__ */ o.createElement(ro, on({}, n, ne)) : /* @__PURE__ */ o.createElement(oo, on({}, n, ne));
432
+ return /* @__PURE__ */ o.createElement("div", {
433
+ ref: b,
434
+ className: "".concat(l, "-selector"),
435
+ onClick: G,
436
+ onMouseDown: j
437
+ }, s && /* @__PURE__ */ o.createElement("div", {
438
+ className: "".concat(l, "-prefix")
439
+ }, s), Z);
440
+ }, Kt = /* @__PURE__ */ o.forwardRef(ao);
441
+ process.env.NODE_ENV !== "production" && (Kt.displayName = "Selector");
442
+ var io = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"], lo = function(n) {
443
+ var t = n === !0 ? 0 : 1;
444
+ return {
445
+ bottomLeft: {
446
+ points: ["tl", "bl"],
447
+ offset: [0, 4],
448
+ overflow: {
449
+ adjustX: t,
450
+ adjustY: 1
451
+ },
452
+ htmlRegion: "scroll"
453
+ },
454
+ bottomRight: {
455
+ points: ["tr", "br"],
456
+ offset: [0, 4],
457
+ overflow: {
458
+ adjustX: t,
459
+ adjustY: 1
460
+ },
461
+ htmlRegion: "scroll"
462
+ },
463
+ topLeft: {
464
+ points: ["bl", "tl"],
465
+ offset: [0, -4],
466
+ overflow: {
467
+ adjustX: t,
468
+ adjustY: 1
469
+ },
470
+ htmlRegion: "scroll"
471
+ },
472
+ topRight: {
473
+ points: ["br", "tr"],
474
+ offset: [0, -4],
475
+ overflow: {
476
+ adjustX: t,
477
+ adjustY: 1
478
+ },
479
+ htmlRegion: "scroll"
480
+ }
481
+ };
482
+ }, uo = function(n, t) {
483
+ var r = n.prefixCls;
484
+ n.disabled;
485
+ var a = n.visible, l = n.children, i = n.popupElement, u = n.animation, d = n.transitionName, f = n.dropdownStyle, v = n.dropdownClassName, s = n.direction, h = s === void 0 ? "ltr" : s, c = n.placement, g = n.builtinPlacements, m = n.dropdownMatchSelectWidth, S = n.dropdownRender, C = n.dropdownAlign, b = n.getPopupContainer, x = n.empty, w = n.getTriggerDOMNode, B = n.onPopupVisibleChange, p = n.onPopupMouseEnter, E = wn(n, io), L = "".concat(r, "-dropdown"), H = i;
486
+ S && (H = S(i));
487
+ var q = o.useMemo(function() {
488
+ return g || lo(m);
489
+ }, [g, m]), _ = u ? "".concat(L, "-").concat(u) : d, A = typeof m == "number", X = o.useMemo(function() {
490
+ return A ? null : m === !1 ? "minWidth" : "width";
491
+ }, [m, A]), Q = f;
492
+ A && (Q = ee(ee({}, Q), {}, {
493
+ width: m
494
+ }));
495
+ var G = o.useRef(null);
496
+ return o.useImperativeHandle(t, function() {
497
+ return {
498
+ getPopupElement: function() {
499
+ var ne;
500
+ return (ne = G.current) === null || ne === void 0 ? void 0 : ne.popupElement;
501
+ }
502
+ };
503
+ }), /* @__PURE__ */ o.createElement(xr, on({}, E, {
504
+ showAction: B ? ["click"] : [],
505
+ hideAction: B ? ["click"] : [],
506
+ popupPlacement: c || (h === "rtl" ? "bottomRight" : "bottomLeft"),
507
+ builtinPlacements: q,
508
+ prefixCls: L,
509
+ popupTransitionName: _,
510
+ popup: /* @__PURE__ */ o.createElement("div", {
511
+ onMouseEnter: p
512
+ }, H),
513
+ ref: G,
514
+ stretch: X,
515
+ popupAlign: C,
516
+ popupVisible: a,
517
+ getPopupContainer: b,
518
+ popupClassName: Be(v, ae({}, "".concat(L, "-empty"), x)),
519
+ popupStyle: Q,
520
+ getTriggerDOMNode: w,
521
+ onPopupVisibleChange: B
522
+ }), l);
523
+ }, Ut = /* @__PURE__ */ o.forwardRef(uo);
524
+ process.env.NODE_ENV !== "production" && (Ut.displayName = "SelectTrigger");
525
+ function It(e, n) {
526
+ var t = e.key, r;
527
+ return "value" in e && (r = e.value), t ?? (r !== void 0 ? r : "rc-index-key-".concat(n));
528
+ }
529
+ function Jn(e) {
530
+ return typeof e < "u" && !Number.isNaN(e);
531
+ }
532
+ function Xt(e, n) {
533
+ var t = e || {}, r = t.label, a = t.value, l = t.options, i = t.groupLabel, u = r || (n ? "children" : "label");
534
+ return {
535
+ label: u,
536
+ value: a || "value",
537
+ options: l || "options",
538
+ groupLabel: i || u
539
+ };
540
+ }
541
+ function co(e) {
542
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = n.fieldNames, r = n.childrenAsData, a = [], l = Xt(t, !1), i = l.label, u = l.value, d = l.options, f = l.groupLabel;
543
+ function v(s, h) {
544
+ Array.isArray(s) && s.forEach(function(c) {
545
+ if (h || !(d in c)) {
546
+ var g = c[u];
547
+ a.push({
548
+ key: It(c, a.length),
549
+ groupOption: h,
550
+ data: c,
551
+ label: c[i],
552
+ value: g
553
+ });
554
+ } else {
555
+ var m = c[f];
556
+ m === void 0 && r && (m = c.label), a.push({
557
+ key: It(c, a.length),
558
+ group: !0,
559
+ data: c,
560
+ label: m
561
+ }), v(c[d], !0);
562
+ }
563
+ });
564
+ }
565
+ return v(e, !1), a;
566
+ }
567
+ function kn(e) {
568
+ var n = ee({}, e);
569
+ return "props" in n || Object.defineProperty(n, "props", {
570
+ get: function() {
571
+ return Ue(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), n;
572
+ }
573
+ }), n;
574
+ }
575
+ var so = function(n, t, r) {
576
+ if (!t || !t.length)
577
+ return null;
578
+ var a = !1, l = function u(d, f) {
579
+ var v = hr(f), s = v[0], h = v.slice(1);
580
+ if (!s)
581
+ return [d];
582
+ var c = d.split(s);
583
+ return a = a || c.length > 1, c.reduce(function(g, m) {
584
+ return [].concat(Ye(g), Ye(u(m, h)));
585
+ }, []).filter(Boolean);
586
+ }, i = l(n, t);
587
+ return a ? typeof r < "u" ? i.slice(0, r) : i : null;
588
+ }, ut = /* @__PURE__ */ o.createContext(null);
589
+ function fo(e) {
590
+ var n = e.visible, t = e.values;
591
+ if (!n)
592
+ return null;
593
+ var r = 50;
594
+ return /* @__PURE__ */ o.createElement("span", {
595
+ "aria-live": "polite",
596
+ style: {
597
+ width: 0,
598
+ height: 0,
599
+ position: "absolute",
600
+ overflow: "hidden",
601
+ opacity: 0
602
+ }
603
+ }, "".concat(t.slice(0, r).map(function(a) {
604
+ var l = a.label, i = a.value;
605
+ return ["number", "string"].includes(pn(l)) ? l : i;
606
+ }).join(", ")), t.length > r ? ", ..." : null);
607
+ }
608
+ var mo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], vo = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], An = function(n) {
609
+ return n === "tags" || n === "multiple";
610
+ }, Gt = /* @__PURE__ */ o.forwardRef(function(e, n) {
611
+ var t, r = e.id, a = e.prefixCls, l = e.className, i = e.showSearch, u = e.tagRender, d = e.direction, f = e.omitDomProps, v = e.displayValues, s = e.onDisplayValuesChange, h = e.emptyOptions, c = e.notFoundContent, g = c === void 0 ? "Not Found" : c, m = e.onClear, S = e.mode, C = e.disabled, b = e.loading, x = e.getInputElement, w = e.getRawInputElement, B = e.open, p = e.defaultOpen, E = e.onDropdownVisibleChange, L = e.activeValue, H = e.onActiveValueChange, q = e.activeDescendantId, _ = e.searchValue, A = e.autoClearSearchValue, X = e.onSearch, Q = e.onSearchSplit, G = e.tokenSeparators, j = e.allowClear, ne = e.prefix, Z = e.suffixIcon, Y = e.clearIcon, I = e.OptionList, D = e.animation, fe = e.transitionName, ie = e.dropdownStyle, J = e.dropdownClassName, se = e.dropdownMatchSelectWidth, ye = e.dropdownRender, ge = e.dropdownAlign, Re = e.placement, ce = e.builtinPlacements, pe = e.getPopupContainer, R = e.showAction, y = R === void 0 ? [] : R, $ = e.onFocus, K = e.onBlur, O = e.onKeyUp, F = e.onKeyDown, le = e.onMouseDown, me = wn(e, mo), re = An(S), Ce = (i !== void 0 ? i : re) || S === "combobox", Le = ee({}, me);
612
+ vo.forEach(function(ue) {
613
+ delete Le[ue];
614
+ }), f == null || f.forEach(function(ue) {
615
+ delete Le[ue];
616
+ });
617
+ var xe = o.useState(!1), Ne = te(xe, 2), de = Ne[0], Xe = Ne[1];
618
+ o.useEffect(function() {
619
+ Xe(Or());
620
+ }, []);
621
+ var Ge = o.useRef(null), Se = o.useRef(null), Me = o.useRef(null), we = o.useRef(null), Oe = o.useRef(null), Pe = o.useRef(!1), en = Gr(), Ae = te(en, 3), He = Ae[0], Ee = Ae[1], hn = Ae[2];
622
+ o.useImperativeHandle(n, function() {
623
+ var ue, U;
624
+ return {
625
+ focus: (ue = we.current) === null || ue === void 0 ? void 0 : ue.focus,
626
+ blur: (U = we.current) === null || U === void 0 ? void 0 : U.blur,
627
+ scrollTo: function(Ke) {
628
+ var Ve;
629
+ return (Ve = Oe.current) === null || Ve === void 0 ? void 0 : Ve.scrollTo(Ke);
630
+ },
631
+ nativeElement: Ge.current || Se.current
632
+ };
633
+ });
634
+ var Fe = o.useMemo(function() {
635
+ var ue;
636
+ if (S !== "combobox")
637
+ return _;
638
+ var U = (ue = v[0]) === null || ue === void 0 ? void 0 : ue.value;
639
+ return typeof U == "string" || typeof U == "number" ? String(U) : "";
640
+ }, [_, S, v]), _e = S === "combobox" && typeof x == "function" && x() || null, $e = typeof w == "function" && w(), $n = br(Se, $e == null || (t = $e.props) === null || t === void 0 ? void 0 : t.ref), En = o.useState(!1), dn = te(En, 2), bn = dn[0], In = dn[1];
641
+ Mn(function() {
642
+ In(!0);
643
+ }, []);
644
+ var cn = Qn(!1, {
645
+ defaultValue: p,
646
+ value: B
647
+ }), qe = te(cn, 2), fn = qe[0], mn = qe[1], De = bn ? fn : !1, vn = !g && h;
648
+ (C || vn && De && S === "combobox") && (De = !1);
649
+ var an = vn ? !1 : De, N = o.useCallback(function(ue) {
650
+ var U = ue !== void 0 ? ue : !De;
651
+ C || (mn(U), De !== U && (E == null || E(U)));
652
+ }, [C, De, mn, E]), z = o.useMemo(function() {
653
+ return (G || []).some(function(ue) {
654
+ return [`
655
+ `, `\r
656
+ `].includes(ue);
657
+ });
658
+ }, [G]), T = o.useContext(ut) || {}, V = T.maxCount, oe = T.rawValues, be = function(U, We, Ke) {
659
+ if (!(re && Jn(V) && (oe == null ? void 0 : oe.size) >= V)) {
660
+ var Ve = !0, ze = U;
661
+ H == null || H(null);
662
+ var sn = so(U, G, Jn(V) ? V - oe.size : void 0), ln = Ke ? null : sn;
663
+ return S !== "combobox" && ln && (ze = "", Q == null || Q(ln), N(!1), Ve = !1), X && Fe !== ze && X(ze, {
664
+ source: We ? "typing" : "effect"
665
+ }), Ve;
666
+ }
667
+ }, Qe = function(U) {
668
+ !U || !U.trim() || X(U, {
669
+ source: "submit"
670
+ });
671
+ };
672
+ o.useEffect(function() {
673
+ !De && !re && S !== "combobox" && be("", !1, !1);
674
+ }, [De]), o.useEffect(function() {
675
+ fn && C && mn(!1), C && !Pe.current && Ee(!1);
676
+ }, [C]);
677
+ var je = jt(), nn = te(je, 2), Ie = nn[0], tn = nn[1], Ze = o.useRef(!1), Nn = function(U) {
678
+ var We = Ie(), Ke = U.key, Ve = Ke === "Enter";
679
+ if (Ve && (S !== "combobox" && U.preventDefault(), De || N(!0)), tn(!!Fe), Ke === "Backspace" && !We && re && !Fe && v.length) {
680
+ for (var ze = Ye(v), sn = null, ln = ze.length - 1; ln >= 0; ln -= 1) {
681
+ var Cn = ze[ln];
682
+ if (!Cn.disabled) {
683
+ ze.splice(ln, 1), sn = Cn;
684
+ break;
685
+ }
686
+ }
687
+ sn && s(ze, {
688
+ type: "remove",
689
+ values: [sn]
690
+ });
691
+ }
692
+ for (var On = arguments.length, yn = new Array(On > 1 ? On - 1 : 0), Ln = 1; Ln < On; Ln++)
693
+ yn[Ln - 1] = arguments[Ln];
694
+ if (De && (!Ve || !Ze.current)) {
695
+ var Bn;
696
+ Ve && (Ze.current = !0), (Bn = Oe.current) === null || Bn === void 0 || Bn.onKeyDown.apply(Bn, [U].concat(yn));
697
+ }
698
+ F == null || F.apply(void 0, [U].concat(yn));
699
+ }, Vn = function(U) {
700
+ for (var We = arguments.length, Ke = new Array(We > 1 ? We - 1 : 0), Ve = 1; Ve < We; Ve++)
701
+ Ke[Ve - 1] = arguments[Ve];
702
+ if (De) {
703
+ var ze;
704
+ (ze = Oe.current) === null || ze === void 0 || ze.onKeyUp.apply(ze, [U].concat(Ke));
705
+ }
706
+ U.key === "Enter" && (Ze.current = !1), O == null || O.apply(void 0, [U].concat(Ke));
707
+ }, rn = function(U) {
708
+ var We = v.filter(function(Ke) {
709
+ return Ke !== U;
710
+ });
711
+ s(We, {
712
+ type: "remove",
713
+ values: [U]
714
+ });
715
+ }, Je = function() {
716
+ Ze.current = !1;
717
+ }, P = o.useRef(!1), M = function() {
718
+ Ee(!0), C || ($ && !P.current && $.apply(void 0, arguments), y.includes("focus") && N(!0)), P.current = !0;
719
+ }, k = function() {
720
+ Pe.current = !0, Ee(!1, function() {
721
+ P.current = !1, Pe.current = !1, N(!1);
722
+ }), !C && (Fe && (S === "tags" ? X(Fe, {
723
+ source: "submit"
724
+ }) : S === "multiple" && X("", {
725
+ source: "blur"
726
+ })), K && K.apply(void 0, arguments));
727
+ }, ve = [];
728
+ o.useEffect(function() {
729
+ return function() {
730
+ ve.forEach(function(ue) {
731
+ return clearTimeout(ue);
732
+ }), ve.splice(0, ve.length);
733
+ };
734
+ }, []);
735
+ var Te = function(U) {
736
+ var We, Ke = U.target, Ve = (We = Me.current) === null || We === void 0 ? void 0 : We.getPopupElement();
737
+ if (Ve && Ve.contains(Ke)) {
738
+ var ze = setTimeout(function() {
739
+ var On = ve.indexOf(ze);
740
+ if (On !== -1 && ve.splice(On, 1), hn(), !de && !Ve.contains(document.activeElement)) {
741
+ var yn;
742
+ (yn = we.current) === null || yn === void 0 || yn.focus();
743
+ }
744
+ });
745
+ ve.push(ze);
746
+ }
747
+ for (var sn = arguments.length, ln = new Array(sn > 1 ? sn - 1 : 0), Cn = 1; Cn < sn; Cn++)
748
+ ln[Cn - 1] = arguments[Cn];
749
+ le == null || le.apply(void 0, [U].concat(ln));
750
+ }, xn = o.useState({}), Sn = te(xn, 2), Wn = Sn[1];
751
+ function Kn() {
752
+ Wn({});
753
+ }
754
+ var Pn;
755
+ $e && (Pn = function(U) {
756
+ N(U);
757
+ }), Yr(function() {
758
+ var ue;
759
+ return [Ge.current, (ue = Me.current) === null || ue === void 0 ? void 0 : ue.getPopupElement()];
760
+ }, an, N, !!$e);
761
+ var _n = o.useMemo(function() {
762
+ return ee(ee({}, e), {}, {
763
+ notFoundContent: g,
764
+ open: De,
765
+ triggerOpen: an,
766
+ id: r,
767
+ showSearch: Ce,
768
+ multiple: re,
769
+ toggleOpen: N
770
+ });
771
+ }, [e, g, an, De, r, Ce, re, N]), mt = !!Z || b, vt;
772
+ mt && (vt = /* @__PURE__ */ o.createElement(jn, {
773
+ className: Be("".concat(a, "-arrow"), ae({}, "".concat(a, "-arrow-loading"), b)),
774
+ customizeIcon: Z,
775
+ customizeIconProps: {
776
+ loading: b,
777
+ searchValue: Fe,
778
+ open: De,
779
+ focused: He,
780
+ showSearch: Ce
781
+ }
782
+ }));
783
+ var lr = function() {
784
+ var U;
785
+ m == null || m(), (U = we.current) === null || U === void 0 || U.focus(), s([], {
786
+ type: "clear",
787
+ values: v
788
+ }), be("", !1, !1);
789
+ }, gt = Ur(a, lr, v, j, Y, C, Fe, S), ur = gt.allowClear, cr = gt.clearIcon, sr = /* @__PURE__ */ o.createElement(I, {
790
+ ref: Oe
791
+ }), dr = Be(a, l, ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({}, "".concat(a, "-focused"), He), "".concat(a, "-multiple"), re), "".concat(a, "-single"), !re), "".concat(a, "-allow-clear"), j), "".concat(a, "-show-arrow"), mt), "".concat(a, "-disabled"), C), "".concat(a, "-loading"), b), "".concat(a, "-open"), De), "".concat(a, "-customize-input"), _e), "".concat(a, "-show-search"), Ce)), pt = /* @__PURE__ */ o.createElement(Ut, {
792
+ ref: Me,
793
+ disabled: C,
794
+ prefixCls: a,
795
+ visible: an,
796
+ popupElement: sr,
797
+ animation: D,
798
+ transitionName: fe,
799
+ dropdownStyle: ie,
800
+ dropdownClassName: J,
801
+ direction: d,
802
+ dropdownMatchSelectWidth: se,
803
+ dropdownRender: ye,
804
+ dropdownAlign: ge,
805
+ placement: Re,
806
+ builtinPlacements: ce,
807
+ getPopupContainer: pe,
808
+ empty: h,
809
+ getTriggerDOMNode: function(U) {
810
+ return (
811
+ // TODO: This is workaround and should be removed in `rc-select`
812
+ // And use new standard `nativeElement` for ref.
813
+ // But we should update `rc-resize-observer` first.
814
+ Se.current || U
815
+ );
816
+ },
817
+ onPopupVisibleChange: Pn,
818
+ onPopupMouseEnter: Kn
819
+ }, $e ? /* @__PURE__ */ o.cloneElement($e, {
820
+ ref: $n
821
+ }) : /* @__PURE__ */ o.createElement(Kt, on({}, e, {
822
+ domRef: Se,
823
+ prefixCls: a,
824
+ inputElement: _e,
825
+ ref: we,
826
+ id: r,
827
+ prefix: ne,
828
+ showSearch: Ce,
829
+ autoClearSearchValue: A,
830
+ mode: S,
831
+ activeDescendantId: q,
832
+ tagRender: u,
833
+ values: v,
834
+ open: De,
835
+ onToggleOpen: N,
836
+ activeValue: L,
837
+ searchValue: Fe,
838
+ onSearch: be,
839
+ onSearchSubmit: Qe,
840
+ onRemove: rn,
841
+ tokenWithEnter: z,
842
+ onInputBlur: Je
843
+ }))), Un;
844
+ return $e ? Un = pt : Un = /* @__PURE__ */ o.createElement("div", on({
845
+ className: dr
846
+ }, Le, {
847
+ ref: Ge,
848
+ onMouseDown: Te,
849
+ onKeyDown: Nn,
850
+ onKeyUp: Vn,
851
+ onFocus: M,
852
+ onBlur: k
853
+ }), /* @__PURE__ */ o.createElement(fo, {
854
+ visible: He && !De,
855
+ values: v
856
+ }), pt, vt, ur && cr), /* @__PURE__ */ o.createElement(At.Provider, {
857
+ value: _n
858
+ }, Un);
859
+ });
860
+ process.env.NODE_ENV !== "production" && (Gt.displayName = "BaseSelect");
861
+ var ct = function() {
862
+ return null;
863
+ };
864
+ ct.isSelectOptGroup = !0;
865
+ var st = function() {
866
+ return null;
867
+ };
868
+ st.isSelectOption = !0;
869
+ var Yt = /* @__PURE__ */ o.forwardRef(function(e, n) {
870
+ var t = e.height, r = e.offsetY, a = e.offsetX, l = e.children, i = e.prefixCls, u = e.onInnerResize, d = e.innerProps, f = e.rtl, v = e.extra, s = {}, h = {
871
+ display: "flex",
872
+ flexDirection: "column"
873
+ };
874
+ return r !== void 0 && (s = {
875
+ height: t,
876
+ position: "relative",
877
+ overflow: "hidden"
878
+ }, h = ee(ee({}, h), {}, ae(ae(ae(ae(ae({
879
+ transform: "translateY(".concat(r, "px)")
880
+ }, f ? "marginRight" : "marginLeft", -a), "position", "absolute"), "left", 0), "right", 0), "top", 0))), /* @__PURE__ */ o.createElement("div", {
881
+ style: s
882
+ }, /* @__PURE__ */ o.createElement(Ft, {
883
+ onResize: function(g) {
884
+ var m = g.offsetHeight;
885
+ m && u && u();
886
+ }
887
+ }, /* @__PURE__ */ o.createElement("div", on({
888
+ style: h,
889
+ className: Be(ae({}, "".concat(i, "-holder-inner"), i)),
890
+ ref: n
891
+ }, d), l, v)));
892
+ });
893
+ Yt.displayName = "Filler";
894
+ function go(e) {
895
+ var n = e.children, t = e.setRef, r = o.useCallback(function(a) {
896
+ t(a);
897
+ }, []);
898
+ return /* @__PURE__ */ o.cloneElement(n, {
899
+ ref: r
900
+ });
901
+ }
902
+ function po(e, n, t, r, a, l, i, u) {
903
+ var d = u.getKey;
904
+ return e.slice(n, t + 1).map(function(f, v) {
905
+ var s = n + v, h = i(f, s, {
906
+ style: {
907
+ width: r
908
+ },
909
+ offsetX: a
910
+ }), c = d(f);
911
+ return /* @__PURE__ */ o.createElement(go, {
912
+ key: c,
913
+ setRef: function(m) {
914
+ return l(f, m);
915
+ }
916
+ }, h);
917
+ });
918
+ }
919
+ function ho(e, n, t) {
920
+ var r = e.length, a = n.length, l, i;
921
+ if (r === 0 && a === 0)
922
+ return null;
923
+ r < a ? (l = e, i = n) : (l = n, i = e);
924
+ var u = {
925
+ __EMPTY_ITEM__: !0
926
+ };
927
+ function d(g) {
928
+ return g !== void 0 ? t(g) : u;
929
+ }
930
+ for (var f = null, v = Math.abs(r - a) !== 1, s = 0; s < i.length; s += 1) {
931
+ var h = d(l[s]), c = d(i[s]);
932
+ if (h !== c) {
933
+ f = s, v = v || h !== d(i[s + 1]);
934
+ break;
935
+ }
936
+ }
937
+ return f === null ? null : {
938
+ index: f,
939
+ multiple: v
940
+ };
941
+ }
942
+ function bo(e, n, t) {
943
+ var r = o.useState(e), a = te(r, 2), l = a[0], i = a[1], u = o.useState(null), d = te(u, 2), f = d[0], v = d[1];
944
+ return o.useEffect(function() {
945
+ var s = ho(l || [], e, n);
946
+ (s == null ? void 0 : s.index) !== void 0 && v(e[s.index]), i(e);
947
+ }, [e]), [f];
948
+ }
949
+ var xt = (typeof navigator > "u" ? "undefined" : pn(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
950
+ const qt = function(e, n, t, r) {
951
+ var a = he(!1), l = he(null);
952
+ function i() {
953
+ clearTimeout(l.current), a.current = !0, l.current = setTimeout(function() {
954
+ a.current = !1;
955
+ }, 50);
956
+ }
957
+ var u = he({
958
+ top: e,
959
+ bottom: n,
960
+ left: t,
961
+ right: r
962
+ });
963
+ return u.current.top = e, u.current.bottom = n, u.current.left = t, u.current.right = r, function(d, f) {
964
+ var v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = d ? (
965
+ // Pass origin wheel when on the left
966
+ f < 0 && u.current.left || // Pass origin wheel when on the right
967
+ f > 0 && u.current.right
968
+ ) : f < 0 && u.current.top || // Pass origin wheel when on the bottom
969
+ f > 0 && u.current.bottom;
970
+ return v && s ? (clearTimeout(l.current), a.current = !1) : (!s || a.current) && i(), !a.current && s;
971
+ };
972
+ };
973
+ function So(e, n, t, r, a, l, i) {
974
+ var u = he(0), d = he(null), f = he(null), v = he(!1), s = qt(n, t, r, a);
975
+ function h(b, x) {
976
+ if (un.cancel(d.current), !s(!1, x)) {
977
+ var w = b;
978
+ if (!w._virtualHandled)
979
+ w._virtualHandled = !0;
980
+ else
981
+ return;
982
+ u.current += x, f.current = x, xt || w.preventDefault(), d.current = un(function() {
983
+ var B = v.current ? 10 : 1;
984
+ i(u.current * B, !1), u.current = 0;
985
+ });
986
+ }
987
+ }
988
+ function c(b, x) {
989
+ i(x, !0), xt || b.preventDefault();
990
+ }
991
+ var g = he(null), m = he(null);
992
+ function S(b) {
993
+ if (e) {
994
+ un.cancel(m.current), m.current = un(function() {
995
+ g.current = null;
996
+ }, 2);
997
+ var x = b.deltaX, w = b.deltaY, B = b.shiftKey, p = x, E = w;
998
+ (g.current === "sx" || !g.current && B && w && !x) && (p = w, E = 0, g.current = "sx");
999
+ var L = Math.abs(p), H = Math.abs(E);
1000
+ g.current === null && (g.current = l && L > H ? "x" : "y"), g.current === "y" ? h(b, E) : c(b, p);
1001
+ }
1002
+ }
1003
+ function C(b) {
1004
+ e && (v.current = b.detail === f.current);
1005
+ }
1006
+ return [S, C];
1007
+ }
1008
+ function Co(e, n, t, r) {
1009
+ var a = o.useMemo(function() {
1010
+ return [/* @__PURE__ */ new Map(), []];
1011
+ }, [e, t.id, r]), l = te(a, 2), i = l[0], u = l[1], d = function(v) {
1012
+ var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v, h = i.get(v), c = i.get(s);
1013
+ if (h === void 0 || c === void 0)
1014
+ for (var g = e.length, m = u.length; m < g; m += 1) {
1015
+ var S, C = e[m], b = n(C);
1016
+ i.set(b, m);
1017
+ var x = (S = t.get(b)) !== null && S !== void 0 ? S : r;
1018
+ if (u[m] = (u[m - 1] || 0) + x, b === v && (h = m), b === s && (c = m), h !== void 0 && c !== void 0)
1019
+ break;
1020
+ }
1021
+ return {
1022
+ top: u[h - 1] || 0,
1023
+ bottom: u[c]
1024
+ };
1025
+ };
1026
+ return d;
1027
+ }
1028
+ var yo = /* @__PURE__ */ function() {
1029
+ function e() {
1030
+ Cr(this, e), ae(this, "maps", void 0), ae(this, "id", 0), ae(this, "diffKeys", /* @__PURE__ */ new Set()), this.maps = /* @__PURE__ */ Object.create(null);
1031
+ }
1032
+ return Sr(e, [{
1033
+ key: "set",
1034
+ value: function(t, r) {
1035
+ this.maps[t] = r, this.id += 1, this.diffKeys.add(t);
1036
+ }
1037
+ }, {
1038
+ key: "get",
1039
+ value: function(t) {
1040
+ return this.maps[t];
1041
+ }
1042
+ /**
1043
+ * CacheMap will record the key changed.
1044
+ * To help to know what's update in the next render.
1045
+ */
1046
+ }, {
1047
+ key: "resetRecord",
1048
+ value: function() {
1049
+ this.diffKeys.clear();
1050
+ }
1051
+ }, {
1052
+ key: "getRecord",
1053
+ value: function() {
1054
+ return this.diffKeys;
1055
+ }
1056
+ }]), e;
1057
+ }();
1058
+ function Ot(e) {
1059
+ var n = parseFloat(e);
1060
+ return isNaN(n) ? 0 : n;
1061
+ }
1062
+ function wo(e, n, t) {
1063
+ var r = o.useState(0), a = te(r, 2), l = a[0], i = a[1], u = he(/* @__PURE__ */ new Map()), d = he(new yo()), f = he(0);
1064
+ function v() {
1065
+ f.current += 1;
1066
+ }
1067
+ function s() {
1068
+ var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1069
+ v();
1070
+ var g = function() {
1071
+ var C = !1;
1072
+ u.current.forEach(function(b, x) {
1073
+ if (b && b.offsetParent) {
1074
+ var w = yr(b), B = w.offsetHeight, p = getComputedStyle(w), E = p.marginTop, L = p.marginBottom, H = Ot(E), q = Ot(L), _ = B + H + q;
1075
+ d.current.get(x) !== _ && (d.current.set(x, _), C = !0);
1076
+ }
1077
+ }), C && i(function(b) {
1078
+ return b + 1;
1079
+ });
1080
+ };
1081
+ if (c)
1082
+ g();
1083
+ else {
1084
+ f.current += 1;
1085
+ var m = f.current;
1086
+ Promise.resolve().then(function() {
1087
+ m === f.current && g();
1088
+ });
1089
+ }
1090
+ }
1091
+ function h(c, g) {
1092
+ var m = e(c);
1093
+ u.current.get(m), g ? (u.current.set(m, g), s()) : u.current.delete(m);
1094
+ }
1095
+ return Yn(function() {
1096
+ return v;
1097
+ }, []), [h, s, d.current, l];
1098
+ }
1099
+ var Rt = 14 / 15;
1100
+ function Eo(e, n, t) {
1101
+ var r = he(!1), a = he(0), l = he(0), i = he(null), u = he(null), d, f = function(c) {
1102
+ if (r.current) {
1103
+ var g = Math.ceil(c.touches[0].pageX), m = Math.ceil(c.touches[0].pageY), S = a.current - g, C = l.current - m, b = Math.abs(S) > Math.abs(C);
1104
+ b ? a.current = g : l.current = m;
1105
+ var x = t(b, b ? S : C, !1, c);
1106
+ x && c.preventDefault(), clearInterval(u.current), x && (u.current = setInterval(function() {
1107
+ b ? S *= Rt : C *= Rt;
1108
+ var w = Math.floor(b ? S : C);
1109
+ (!t(b, w, !0) || Math.abs(w) <= 0.1) && clearInterval(u.current);
1110
+ }, 16));
1111
+ }
1112
+ }, v = function() {
1113
+ r.current = !1, d();
1114
+ }, s = function(c) {
1115
+ d(), c.touches.length === 1 && !r.current && (r.current = !0, a.current = Math.ceil(c.touches[0].pageX), l.current = Math.ceil(c.touches[0].pageY), i.current = c.target, i.current.addEventListener("touchmove", f, {
1116
+ passive: !1
1117
+ }), i.current.addEventListener("touchend", v, {
1118
+ passive: !0
1119
+ }));
1120
+ };
1121
+ d = function() {
1122
+ i.current && (i.current.removeEventListener("touchmove", f), i.current.removeEventListener("touchend", v));
1123
+ }, Mn(function() {
1124
+ return e && n.current.addEventListener("touchstart", s, {
1125
+ passive: !0
1126
+ }), function() {
1127
+ var h;
1128
+ (h = n.current) === null || h === void 0 || h.removeEventListener("touchstart", s), d(), clearInterval(u.current);
1129
+ };
1130
+ }, [e]);
1131
+ }
1132
+ function Mt(e) {
1133
+ return Math.floor(Math.pow(e, 0.5));
1134
+ }
1135
+ function et(e, n) {
1136
+ var t = "touches" in e ? e.touches[0] : e;
1137
+ return t[n ? "pageX" : "pageY"] - window[n ? "scrollX" : "scrollY"];
1138
+ }
1139
+ function Io(e, n, t) {
1140
+ o.useEffect(function() {
1141
+ var r = n.current;
1142
+ if (e && r) {
1143
+ var a = !1, l, i, u = function() {
1144
+ un.cancel(l);
1145
+ }, d = function h() {
1146
+ u(), l = un(function() {
1147
+ t(i), h();
1148
+ });
1149
+ }, f = function(c) {
1150
+ var g = c;
1151
+ g._virtualHandled || (g._virtualHandled = !0, a = !0);
1152
+ }, v = function() {
1153
+ a = !1, u();
1154
+ }, s = function(c) {
1155
+ if (a) {
1156
+ var g = et(c, !1), m = r.getBoundingClientRect(), S = m.top, C = m.bottom;
1157
+ if (g <= S) {
1158
+ var b = S - g;
1159
+ i = -Mt(b), d();
1160
+ } else if (g >= C) {
1161
+ var x = g - C;
1162
+ i = Mt(x), d();
1163
+ } else
1164
+ u();
1165
+ }
1166
+ };
1167
+ return r.addEventListener("mousedown", f), r.ownerDocument.addEventListener("mouseup", v), r.ownerDocument.addEventListener("mousemove", s), function() {
1168
+ r.removeEventListener("mousedown", f), r.ownerDocument.removeEventListener("mouseup", v), r.ownerDocument.removeEventListener("mousemove", s), u();
1169
+ };
1170
+ }
1171
+ }, [e]);
1172
+ }
1173
+ var Dt = 10;
1174
+ function xo(e, n, t, r, a, l, i, u) {
1175
+ var d = o.useRef(), f = o.useState(null), v = te(f, 2), s = v[0], h = v[1];
1176
+ return Mn(function() {
1177
+ if (s && s.times < Dt) {
1178
+ if (!e.current) {
1179
+ h(function(Y) {
1180
+ return ee({}, Y);
1181
+ });
1182
+ return;
1183
+ }
1184
+ l();
1185
+ var c = s.targetAlign, g = s.originAlign, m = s.index, S = s.offset, C = e.current.clientHeight, b = !1, x = c, w = null;
1186
+ if (C) {
1187
+ for (var B = c || g, p = 0, E = 0, L = 0, H = Math.min(n.length - 1, m), q = 0; q <= H; q += 1) {
1188
+ var _ = a(n[q]);
1189
+ E = p;
1190
+ var A = t.get(_);
1191
+ L = E + (A === void 0 ? r : A), p = L;
1192
+ }
1193
+ for (var X = B === "top" ? S : C - S, Q = H; Q >= 0; Q -= 1) {
1194
+ var G = a(n[Q]), j = t.get(G);
1195
+ if (j === void 0) {
1196
+ b = !0;
1197
+ break;
1198
+ }
1199
+ if (X -= j, X <= 0)
1200
+ break;
1201
+ }
1202
+ switch (B) {
1203
+ case "top":
1204
+ w = E - S;
1205
+ break;
1206
+ case "bottom":
1207
+ w = L - C + S;
1208
+ break;
1209
+ default: {
1210
+ var ne = e.current.scrollTop, Z = ne + C;
1211
+ E < ne ? x = "top" : L > Z && (x = "bottom");
1212
+ }
1213
+ }
1214
+ w !== null && i(w), w !== s.lastTop && (b = !0);
1215
+ }
1216
+ b && h(ee(ee({}, s), {}, {
1217
+ times: s.times + 1,
1218
+ targetAlign: x,
1219
+ lastTop: w
1220
+ }));
1221
+ } else process.env.NODE_ENV !== "production" && (s == null ? void 0 : s.times) === Dt && Ue(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
1222
+ }, [s, e.current]), function(c) {
1223
+ if (c == null) {
1224
+ u();
1225
+ return;
1226
+ }
1227
+ if (un.cancel(d.current), typeof c == "number")
1228
+ i(c);
1229
+ else if (c && pn(c) === "object") {
1230
+ var g, m = c.align;
1231
+ "index" in c ? g = c.index : g = n.findIndex(function(b) {
1232
+ return a(b) === c.key;
1233
+ });
1234
+ var S = c.offset, C = S === void 0 ? 0 : S;
1235
+ h({
1236
+ times: 0,
1237
+ index: g,
1238
+ offset: C,
1239
+ originAlign: m
1240
+ });
1241
+ }
1242
+ };
1243
+ }
1244
+ var nt = /* @__PURE__ */ o.forwardRef(function(e, n) {
1245
+ var t = e.prefixCls, r = e.rtl, a = e.scrollOffset, l = e.scrollRange, i = e.onStartMove, u = e.onStopMove, d = e.onScroll, f = e.horizontal, v = e.spinSize, s = e.containerSize, h = e.style, c = e.thumbStyle, g = e.showScrollBar, m = o.useState(!1), S = te(m, 2), C = S[0], b = S[1], x = o.useState(null), w = te(x, 2), B = w[0], p = w[1], E = o.useState(null), L = te(E, 2), H = L[0], q = L[1], _ = !r, A = o.useRef(), X = o.useRef(), Q = o.useState(g), G = te(Q, 2), j = G[0], ne = G[1], Z = o.useRef(), Y = function() {
1246
+ g === !0 || g === !1 || (clearTimeout(Z.current), ne(!0), Z.current = setTimeout(function() {
1247
+ ne(!1);
1248
+ }, 3e3));
1249
+ }, I = l - s || 0, D = s - v || 0, fe = o.useMemo(function() {
1250
+ if (a === 0 || I === 0)
1251
+ return 0;
1252
+ var R = a / I;
1253
+ return R * D;
1254
+ }, [a, I, D]), ie = function(y) {
1255
+ y.stopPropagation(), y.preventDefault();
1256
+ }, J = o.useRef({
1257
+ top: fe,
1258
+ dragging: C,
1259
+ pageY: B,
1260
+ startTop: H
1261
+ });
1262
+ J.current = {
1263
+ top: fe,
1264
+ dragging: C,
1265
+ pageY: B,
1266
+ startTop: H
1267
+ };
1268
+ var se = function(y) {
1269
+ b(!0), p(et(y, f)), q(J.current.top), i(), y.stopPropagation(), y.preventDefault();
1270
+ };
1271
+ o.useEffect(function() {
1272
+ var R = function(O) {
1273
+ O.preventDefault();
1274
+ }, y = A.current, $ = X.current;
1275
+ return y.addEventListener("touchstart", R, {
1276
+ passive: !1
1277
+ }), $.addEventListener("touchstart", se, {
1278
+ passive: !1
1279
+ }), function() {
1280
+ y.removeEventListener("touchstart", R), $.removeEventListener("touchstart", se);
1281
+ };
1282
+ }, []);
1283
+ var ye = o.useRef();
1284
+ ye.current = I;
1285
+ var ge = o.useRef();
1286
+ ge.current = D, o.useEffect(function() {
1287
+ if (C) {
1288
+ var R, y = function(O) {
1289
+ var F = J.current, le = F.dragging, me = F.pageY, re = F.startTop;
1290
+ un.cancel(R);
1291
+ var Ce = A.current.getBoundingClientRect(), Le = s / (f ? Ce.width : Ce.height);
1292
+ if (le) {
1293
+ var xe = (et(O, f) - me) * Le, Ne = re;
1294
+ !_ && f ? Ne -= xe : Ne += xe;
1295
+ var de = ye.current, Xe = ge.current, Ge = Xe ? Ne / Xe : 0, Se = Math.ceil(Ge * de);
1296
+ Se = Math.max(Se, 0), Se = Math.min(Se, de), R = un(function() {
1297
+ d(Se, f);
1298
+ });
1299
+ }
1300
+ }, $ = function() {
1301
+ b(!1), u();
1302
+ };
1303
+ return window.addEventListener("mousemove", y, {
1304
+ passive: !0
1305
+ }), window.addEventListener("touchmove", y, {
1306
+ passive: !0
1307
+ }), window.addEventListener("mouseup", $, {
1308
+ passive: !0
1309
+ }), window.addEventListener("touchend", $, {
1310
+ passive: !0
1311
+ }), function() {
1312
+ window.removeEventListener("mousemove", y), window.removeEventListener("touchmove", y), window.removeEventListener("mouseup", $), window.removeEventListener("touchend", $), un.cancel(R);
1313
+ };
1314
+ }
1315
+ }, [C]), o.useEffect(function() {
1316
+ return Y(), function() {
1317
+ clearTimeout(Z.current);
1318
+ };
1319
+ }, [a]), o.useImperativeHandle(n, function() {
1320
+ return {
1321
+ delayHidden: Y
1322
+ };
1323
+ });
1324
+ var Re = "".concat(t, "-scrollbar"), ce = {
1325
+ position: "absolute",
1326
+ visibility: j ? null : "hidden"
1327
+ }, pe = {
1328
+ position: "absolute",
1329
+ background: "rgba(0, 0, 0, 0.5)",
1330
+ borderRadius: 99,
1331
+ cursor: "pointer",
1332
+ userSelect: "none"
1333
+ };
1334
+ return f ? (ce.height = 8, ce.left = 0, ce.right = 0, ce.bottom = 0, pe.height = "100%", pe.width = v, _ ? pe.left = fe : pe.right = fe) : (ce.width = 8, ce.top = 0, ce.bottom = 0, _ ? ce.right = 0 : ce.left = 0, pe.width = "100%", pe.height = v, pe.top = fe), /* @__PURE__ */ o.createElement("div", {
1335
+ ref: A,
1336
+ className: Be(Re, ae(ae(ae({}, "".concat(Re, "-horizontal"), f), "".concat(Re, "-vertical"), !f), "".concat(Re, "-visible"), j)),
1337
+ style: ee(ee({}, ce), h),
1338
+ onMouseDown: ie,
1339
+ onMouseMove: Y
1340
+ }, /* @__PURE__ */ o.createElement("div", {
1341
+ ref: X,
1342
+ className: Be("".concat(Re, "-thumb"), ae({}, "".concat(Re, "-thumb-moving"), C)),
1343
+ style: ee(ee({}, pe), c),
1344
+ onMouseDown: se
1345
+ }));
1346
+ });
1347
+ process.env.NODE_ENV !== "production" && (nt.displayName = "ScrollBar");
1348
+ var Oo = 20;
1349
+ function $t() {
1350
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = e / n * e;
1351
+ return isNaN(t) && (t = 0), t = Math.max(t, Oo), Math.floor(t);
1352
+ }
1353
+ var Ro = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"], Mo = [], Do = {
1354
+ overflowY: "auto",
1355
+ overflowAnchor: "none"
1356
+ };
1357
+ function $o(e, n) {
1358
+ var t = e.prefixCls, r = t === void 0 ? "rc-virtual-list" : t, a = e.className, l = e.height, i = e.itemHeight, u = e.fullHeight, d = u === void 0 ? !0 : u, f = e.style, v = e.data, s = e.children, h = e.itemKey, c = e.virtual, g = e.direction, m = e.scrollWidth, S = e.component, C = S === void 0 ? "div" : S, b = e.onScroll, x = e.onVirtualScroll, w = e.onVisibleChange, B = e.innerProps, p = e.extraRender, E = e.styles, L = e.showScrollBar, H = L === void 0 ? "optional" : L, q = wn(e, Ro), _ = o.useCallback(function(P) {
1359
+ return typeof h == "function" ? h(P) : P == null ? void 0 : P[h];
1360
+ }, [h]), A = wo(_), X = te(A, 4), Q = X[0], G = X[1], j = X[2], ne = X[3], Z = !!(c !== !1 && l && i), Y = o.useMemo(function() {
1361
+ return Object.values(j.maps).reduce(function(P, M) {
1362
+ return P + M;
1363
+ }, 0);
1364
+ }, [j.id, j.maps]), I = Z && v && (Math.max(i * v.length, Y) > l || !!m), D = g === "rtl", fe = Be(r, ae({}, "".concat(r, "-rtl"), D), a), ie = v || Mo, J = he(), se = he(), ye = he(), ge = Tn(0), Re = te(ge, 2), ce = Re[0], pe = Re[1], R = Tn(0), y = te(R, 2), $ = y[0], K = y[1], O = Tn(!1), F = te(O, 2), le = F[0], me = F[1], re = function() {
1365
+ me(!0);
1366
+ }, Ce = function() {
1367
+ me(!1);
1368
+ }, Le = {
1369
+ getKey: _
1370
+ };
1371
+ function xe(P) {
1372
+ pe(function(M) {
1373
+ var k;
1374
+ typeof P == "function" ? k = P(M) : k = P;
1375
+ var ve = In(k);
1376
+ return J.current.scrollTop = ve, ve;
1377
+ });
1378
+ }
1379
+ var Ne = he({
1380
+ start: 0,
1381
+ end: ie.length
1382
+ }), de = he(), Xe = bo(ie, _), Ge = te(Xe, 1), Se = Ge[0];
1383
+ de.current = Se;
1384
+ var Me = o.useMemo(function() {
1385
+ if (!Z)
1386
+ return {
1387
+ scrollHeight: void 0,
1388
+ start: 0,
1389
+ end: ie.length - 1,
1390
+ offset: void 0
1391
+ };
1392
+ if (!I) {
1393
+ var P;
1394
+ return {
1395
+ scrollHeight: ((P = se.current) === null || P === void 0 ? void 0 : P.offsetHeight) || 0,
1396
+ start: 0,
1397
+ end: ie.length - 1,
1398
+ offset: void 0
1399
+ };
1400
+ }
1401
+ for (var M = 0, k, ve, Te, xn = ie.length, Sn = 0; Sn < xn; Sn += 1) {
1402
+ var Wn = ie[Sn], Kn = _(Wn), Pn = j.get(Kn), _n = M + (Pn === void 0 ? i : Pn);
1403
+ _n >= ce && k === void 0 && (k = Sn, ve = M), _n > ce + l && Te === void 0 && (Te = Sn), M = _n;
1404
+ }
1405
+ return k === void 0 && (k = 0, ve = 0, Te = Math.ceil(l / i)), Te === void 0 && (Te = ie.length - 1), Te = Math.min(Te + 1, ie.length - 1), {
1406
+ scrollHeight: M,
1407
+ start: k,
1408
+ end: Te,
1409
+ offset: ve
1410
+ };
1411
+ }, [I, Z, ce, ie, ne, l]), we = Me.scrollHeight, Oe = Me.start, Pe = Me.end, en = Me.offset;
1412
+ Ne.current.start = Oe, Ne.current.end = Pe, o.useLayoutEffect(function() {
1413
+ var P = j.getRecord();
1414
+ if (P.size === 1) {
1415
+ var M = Array.from(P)[0], k = _(ie[Oe]);
1416
+ if (k === M) {
1417
+ var ve = j.get(M), Te = ve - i;
1418
+ xe(function(xn) {
1419
+ return xn + Te;
1420
+ });
1421
+ }
1422
+ }
1423
+ j.resetRecord();
1424
+ }, [we]);
1425
+ var Ae = o.useState({
1426
+ width: 0,
1427
+ height: l
1428
+ }), He = te(Ae, 2), Ee = He[0], hn = He[1], Fe = function(M) {
1429
+ hn({
1430
+ width: M.offsetWidth,
1431
+ height: M.offsetHeight
1432
+ });
1433
+ }, _e = he(), $e = he(), $n = o.useMemo(function() {
1434
+ return $t(Ee.width, m);
1435
+ }, [Ee.width, m]), En = o.useMemo(function() {
1436
+ return $t(Ee.height, we);
1437
+ }, [Ee.height, we]), dn = we - l, bn = he(dn);
1438
+ bn.current = dn;
1439
+ function In(P) {
1440
+ var M = P;
1441
+ return Number.isNaN(bn.current) || (M = Math.min(M, bn.current)), M = Math.max(M, 0), M;
1442
+ }
1443
+ var cn = ce <= 0, qe = ce >= dn, fn = $ <= 0, mn = $ >= m, De = qt(cn, qe, fn, mn), vn = function() {
1444
+ return {
1445
+ x: D ? -$ : $,
1446
+ y: ce
1447
+ };
1448
+ }, an = he(vn()), N = bt(function(P) {
1449
+ if (x) {
1450
+ var M = ee(ee({}, vn()), P);
1451
+ (an.current.x !== M.x || an.current.y !== M.y) && (x(M), an.current = M);
1452
+ }
1453
+ });
1454
+ function z(P, M) {
1455
+ var k = P;
1456
+ M ? (St.flushSync(function() {
1457
+ K(k);
1458
+ }), N()) : xe(k);
1459
+ }
1460
+ function T(P) {
1461
+ var M = P.currentTarget.scrollTop;
1462
+ M !== ce && xe(M), b == null || b(P), N();
1463
+ }
1464
+ var V = function(M) {
1465
+ var k = M, ve = m ? m - Ee.width : 0;
1466
+ return k = Math.max(k, 0), k = Math.min(k, ve), k;
1467
+ }, oe = bt(function(P, M) {
1468
+ M ? (St.flushSync(function() {
1469
+ K(function(k) {
1470
+ var ve = k + (D ? -P : P);
1471
+ return V(ve);
1472
+ });
1473
+ }), N()) : xe(function(k) {
1474
+ var ve = k + P;
1475
+ return ve;
1476
+ });
1477
+ }), be = So(Z, cn, qe, fn, mn, !!m, oe), Qe = te(be, 2), je = Qe[0], nn = Qe[1];
1478
+ Eo(Z, J, function(P, M, k, ve) {
1479
+ var Te = ve;
1480
+ return De(P, M, k) ? !1 : !Te || !Te._virtualHandled ? (Te && (Te._virtualHandled = !0), je({
1481
+ preventDefault: function() {
1482
+ },
1483
+ deltaX: P ? M : 0,
1484
+ deltaY: P ? 0 : M
1485
+ }), !0) : !1;
1486
+ }), Io(I, J, function(P) {
1487
+ xe(function(M) {
1488
+ return M + P;
1489
+ });
1490
+ }), Mn(function() {
1491
+ function P(k) {
1492
+ var ve = cn && k.detail < 0, Te = qe && k.detail > 0;
1493
+ Z && !ve && !Te && k.preventDefault();
1494
+ }
1495
+ var M = J.current;
1496
+ return M.addEventListener("wheel", je, {
1497
+ passive: !1
1498
+ }), M.addEventListener("DOMMouseScroll", nn, {
1499
+ passive: !0
1500
+ }), M.addEventListener("MozMousePixelScroll", P, {
1501
+ passive: !1
1502
+ }), function() {
1503
+ M.removeEventListener("wheel", je), M.removeEventListener("DOMMouseScroll", nn), M.removeEventListener("MozMousePixelScroll", P);
1504
+ };
1505
+ }, [Z, cn, qe]), Mn(function() {
1506
+ if (m) {
1507
+ var P = V($);
1508
+ K(P), N({
1509
+ x: P
1510
+ });
1511
+ }
1512
+ }, [Ee.width, m]);
1513
+ var Ie = function() {
1514
+ var M, k;
1515
+ (M = _e.current) === null || M === void 0 || M.delayHidden(), (k = $e.current) === null || k === void 0 || k.delayHidden();
1516
+ }, tn = xo(J, ie, j, i, _, function() {
1517
+ return G(!0);
1518
+ }, xe, Ie);
1519
+ o.useImperativeHandle(n, function() {
1520
+ return {
1521
+ nativeElement: ye.current,
1522
+ getScrollInfo: vn,
1523
+ scrollTo: function(M) {
1524
+ function k(ve) {
1525
+ return ve && pn(ve) === "object" && ("left" in ve || "top" in ve);
1526
+ }
1527
+ k(M) ? (M.left !== void 0 && K(V(M.left)), tn(M.top)) : tn(M);
1528
+ }
1529
+ };
1530
+ }), Mn(function() {
1531
+ if (w) {
1532
+ var P = ie.slice(Oe, Pe + 1);
1533
+ w(P, ie);
1534
+ }
1535
+ }, [Oe, Pe, ie]);
1536
+ var Ze = Co(ie, _, j, i), Nn = p == null ? void 0 : p({
1537
+ start: Oe,
1538
+ end: Pe,
1539
+ virtual: I,
1540
+ offsetX: $,
1541
+ offsetY: en,
1542
+ rtl: D,
1543
+ getSize: Ze
1544
+ }), Vn = po(ie, Oe, Pe, m, $, Q, s, Le), rn = null;
1545
+ l && (rn = ee(ae({}, d ? "height" : "maxHeight", l), Do), Z && (rn.overflowY = "hidden", m && (rn.overflowX = "hidden"), le && (rn.pointerEvents = "none")));
1546
+ var Je = {};
1547
+ return D && (Je.dir = "rtl"), /* @__PURE__ */ o.createElement("div", on({
1548
+ ref: ye,
1549
+ style: ee(ee({}, f), {}, {
1550
+ position: "relative"
1551
+ }),
1552
+ className: fe
1553
+ }, Je, q), /* @__PURE__ */ o.createElement(Ft, {
1554
+ onResize: Fe
1555
+ }, /* @__PURE__ */ o.createElement(C, {
1556
+ className: "".concat(r, "-holder"),
1557
+ style: rn,
1558
+ ref: J,
1559
+ onScroll: T,
1560
+ onMouseEnter: Ie
1561
+ }, /* @__PURE__ */ o.createElement(Yt, {
1562
+ prefixCls: r,
1563
+ height: we,
1564
+ offsetX: $,
1565
+ offsetY: en,
1566
+ scrollWidth: m,
1567
+ onInnerResize: G,
1568
+ ref: se,
1569
+ innerProps: B,
1570
+ rtl: D,
1571
+ extra: Nn
1572
+ }, Vn))), I && we > l && /* @__PURE__ */ o.createElement(nt, {
1573
+ ref: _e,
1574
+ prefixCls: r,
1575
+ scrollOffset: ce,
1576
+ scrollRange: we,
1577
+ rtl: D,
1578
+ onScroll: z,
1579
+ onStartMove: re,
1580
+ onStopMove: Ce,
1581
+ spinSize: En,
1582
+ containerSize: Ee.height,
1583
+ style: E == null ? void 0 : E.verticalScrollBar,
1584
+ thumbStyle: E == null ? void 0 : E.verticalScrollBarThumb,
1585
+ showScrollBar: H
1586
+ }), I && m > Ee.width && /* @__PURE__ */ o.createElement(nt, {
1587
+ ref: $e,
1588
+ prefixCls: r,
1589
+ scrollOffset: $,
1590
+ scrollRange: m,
1591
+ rtl: D,
1592
+ onScroll: z,
1593
+ onStartMove: re,
1594
+ onStopMove: Ce,
1595
+ spinSize: $n,
1596
+ containerSize: Ee.width,
1597
+ horizontal: !0,
1598
+ style: E == null ? void 0 : E.horizontalScrollBar,
1599
+ thumbStyle: E == null ? void 0 : E.horizontalScrollBarThumb,
1600
+ showScrollBar: H
1601
+ }));
1602
+ }
1603
+ var Qt = /* @__PURE__ */ o.forwardRef($o);
1604
+ Qt.displayName = "List";
1605
+ function No() {
1606
+ return /(mac\sos|macintosh)/i.test(navigator.appVersion);
1607
+ }
1608
+ var Po = ["disabled", "title", "children", "style", "className"];
1609
+ function Nt(e) {
1610
+ return typeof e == "string" || typeof e == "number";
1611
+ }
1612
+ var _o = function(n, t) {
1613
+ var r = Xr(), a = r.prefixCls, l = r.id, i = r.open, u = r.multiple, d = r.mode, f = r.searchValue, v = r.toggleOpen, s = r.notFoundContent, h = r.onPopupScroll, c = o.useContext(ut), g = c.maxCount, m = c.flattenOptions, S = c.onActiveValue, C = c.defaultActiveFirstOption, b = c.onSelect, x = c.menuItemSelectedIcon, w = c.rawValues, B = c.fieldNames, p = c.virtual, E = c.direction, L = c.listHeight, H = c.listItemHeight, q = c.optionRender, _ = "".concat(a, "-item"), A = wr(function() {
1614
+ return m;
1615
+ }, [i, m], function(R, y) {
1616
+ return y[0] && R[1] !== y[1];
1617
+ }), X = o.useRef(null), Q = o.useMemo(function() {
1618
+ return u && Jn(g) && (w == null ? void 0 : w.size) >= g;
1619
+ }, [u, g, w == null ? void 0 : w.size]), G = function(y) {
1620
+ y.preventDefault();
1621
+ }, j = function(y) {
1622
+ var $;
1623
+ ($ = X.current) === null || $ === void 0 || $.scrollTo(typeof y == "number" ? {
1624
+ index: y
1625
+ } : y);
1626
+ }, ne = o.useCallback(function(R) {
1627
+ return d === "combobox" ? !1 : w.has(R);
1628
+ }, [d, Ye(w).toString(), w.size]), Z = function(y) {
1629
+ for (var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, K = A.length, O = 0; O < K; O += 1) {
1630
+ var F = (y + O * $ + K) % K, le = A[F] || {}, me = le.group, re = le.data;
1631
+ if (!me && !(re != null && re.disabled) && (ne(re.value) || !Q))
1632
+ return F;
1633
+ }
1634
+ return -1;
1635
+ }, Y = o.useState(function() {
1636
+ return Z(0);
1637
+ }), I = te(Y, 2), D = I[0], fe = I[1], ie = function(y) {
1638
+ var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1639
+ fe(y);
1640
+ var K = {
1641
+ source: $ ? "keyboard" : "mouse"
1642
+ }, O = A[y];
1643
+ if (!O) {
1644
+ S(null, -1, K);
1645
+ return;
1646
+ }
1647
+ S(O.value, y, K);
1648
+ };
1649
+ Yn(function() {
1650
+ ie(C !== !1 ? Z(0) : -1);
1651
+ }, [A.length, f]);
1652
+ var J = o.useCallback(function(R) {
1653
+ return d === "combobox" ? String(R).toLowerCase() === f.toLowerCase() : w.has(R);
1654
+ }, [d, f, Ye(w).toString(), w.size]);
1655
+ Yn(function() {
1656
+ var R = setTimeout(function() {
1657
+ if (!u && i && w.size === 1) {
1658
+ var $ = Array.from(w)[0], K = A.findIndex(function(O) {
1659
+ var F = O.data;
1660
+ return F.value === $;
1661
+ });
1662
+ K !== -1 && (ie(K), j(K));
1663
+ }
1664
+ });
1665
+ if (i) {
1666
+ var y;
1667
+ (y = X.current) === null || y === void 0 || y.scrollTo(void 0);
1668
+ }
1669
+ return function() {
1670
+ return clearTimeout(R);
1671
+ };
1672
+ }, [i, f]);
1673
+ var se = function(y) {
1674
+ y !== void 0 && b(y, {
1675
+ selected: !w.has(y)
1676
+ }), u || v(!1);
1677
+ };
1678
+ if (o.useImperativeHandle(t, function() {
1679
+ return {
1680
+ onKeyDown: function(y) {
1681
+ var $ = y.which, K = y.ctrlKey;
1682
+ switch ($) {
1683
+ case W.N:
1684
+ case W.P:
1685
+ case W.UP:
1686
+ case W.DOWN: {
1687
+ var O = 0;
1688
+ if ($ === W.UP ? O = -1 : $ === W.DOWN ? O = 1 : No() && K && ($ === W.N ? O = 1 : $ === W.P && (O = -1)), O !== 0) {
1689
+ var F = Z(D + O, O);
1690
+ j(F), ie(F, !0);
1691
+ }
1692
+ break;
1693
+ }
1694
+ case W.TAB:
1695
+ case W.ENTER: {
1696
+ var le, me = A[D];
1697
+ me && !(me != null && (le = me.data) !== null && le !== void 0 && le.disabled) && !Q ? se(me.value) : se(void 0), i && y.preventDefault();
1698
+ break;
1699
+ }
1700
+ case W.ESC:
1701
+ v(!1), i && y.stopPropagation();
1702
+ }
1703
+ },
1704
+ onKeyUp: function() {
1705
+ },
1706
+ scrollTo: function(y) {
1707
+ j(y);
1708
+ }
1709
+ };
1710
+ }), A.length === 0)
1711
+ return /* @__PURE__ */ o.createElement("div", {
1712
+ role: "listbox",
1713
+ id: "".concat(l, "_list"),
1714
+ className: "".concat(_, "-empty"),
1715
+ onMouseDown: G
1716
+ }, s);
1717
+ var ye = Object.keys(B).map(function(R) {
1718
+ return B[R];
1719
+ }), ge = function(y) {
1720
+ return y.label;
1721
+ };
1722
+ function Re(R, y) {
1723
+ var $ = R.group;
1724
+ return {
1725
+ role: $ ? "presentation" : "option",
1726
+ id: "".concat(l, "_list_").concat(y)
1727
+ };
1728
+ }
1729
+ var ce = function(y) {
1730
+ var $ = A[y];
1731
+ if (!$)
1732
+ return null;
1733
+ var K = $.data || {}, O = K.value, F = $.group, le = Fn(K, !0), me = ge($);
1734
+ return $ ? /* @__PURE__ */ o.createElement("div", on({
1735
+ "aria-label": typeof me == "string" && !F ? me : null
1736
+ }, le, {
1737
+ key: y
1738
+ }, Re($, y), {
1739
+ "aria-selected": J(O)
1740
+ }), O) : null;
1741
+ }, pe = {
1742
+ role: "listbox",
1743
+ id: "".concat(l, "_list")
1744
+ };
1745
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, p && /* @__PURE__ */ o.createElement("div", on({}, pe, {
1746
+ style: {
1747
+ height: 0,
1748
+ width: 0,
1749
+ overflow: "hidden"
1750
+ }
1751
+ }), ce(D - 1), ce(D), ce(D + 1)), /* @__PURE__ */ o.createElement(Qt, {
1752
+ itemKey: "key",
1753
+ ref: X,
1754
+ data: A,
1755
+ height: L,
1756
+ itemHeight: H,
1757
+ fullHeight: !1,
1758
+ onMouseDown: G,
1759
+ onScroll: h,
1760
+ virtual: p,
1761
+ direction: E,
1762
+ innerProps: p ? null : pe
1763
+ }, function(R, y) {
1764
+ var $ = R.group, K = R.groupOption, O = R.data, F = R.label, le = R.value, me = O.key;
1765
+ if ($) {
1766
+ var re, Ce = (re = O.title) !== null && re !== void 0 ? re : Nt(F) ? F.toString() : void 0;
1767
+ return /* @__PURE__ */ o.createElement("div", {
1768
+ className: Be(_, "".concat(_, "-group"), O.className),
1769
+ title: Ce
1770
+ }, F !== void 0 ? F : me);
1771
+ }
1772
+ var Le = O.disabled, xe = O.title;
1773
+ O.children;
1774
+ var Ne = O.style, de = O.className, Xe = wn(O, Po), Ge = Ht(Xe, ye), Se = ne(le), Me = Le || !Se && Q, we = "".concat(_, "-option"), Oe = Be(_, we, de, ae(ae(ae(ae({}, "".concat(we, "-grouped"), K), "".concat(we, "-active"), D === y && !Me), "".concat(we, "-disabled"), Me), "".concat(we, "-selected"), Se)), Pe = ge(R), en = !x || typeof x == "function" || Se, Ae = typeof Pe == "number" ? Pe : Pe || le, He = Nt(Ae) ? Ae.toString() : void 0;
1775
+ return xe !== void 0 && (He = xe), /* @__PURE__ */ o.createElement("div", on({}, Fn(Ge), p ? {} : Re(R, y), {
1776
+ "aria-selected": J(le),
1777
+ className: Oe,
1778
+ title: He,
1779
+ onMouseMove: function() {
1780
+ D === y || Me || ie(y);
1781
+ },
1782
+ onClick: function() {
1783
+ Me || se(le);
1784
+ },
1785
+ style: Ne
1786
+ }), /* @__PURE__ */ o.createElement("div", {
1787
+ className: "".concat(we, "-content")
1788
+ }, typeof q == "function" ? q(R, {
1789
+ index: y
1790
+ }) : Ae), /* @__PURE__ */ o.isValidElement(x) || Se, en && /* @__PURE__ */ o.createElement(jn, {
1791
+ className: "".concat(_, "-option-state"),
1792
+ customizeIcon: x,
1793
+ customizeIconProps: {
1794
+ value: le,
1795
+ disabled: Me,
1796
+ isSelected: Se
1797
+ }
1798
+ }, Se ? "✓" : null));
1799
+ }));
1800
+ }, Zt = /* @__PURE__ */ o.forwardRef(_o);
1801
+ process.env.NODE_ENV !== "production" && (Zt.displayName = "OptionList");
1802
+ const To = function(e, n) {
1803
+ var t = o.useRef({
1804
+ values: /* @__PURE__ */ new Map(),
1805
+ options: /* @__PURE__ */ new Map()
1806
+ }), r = o.useMemo(function() {
1807
+ var l = t.current, i = l.values, u = l.options, d = e.map(function(s) {
1808
+ if (s.label === void 0) {
1809
+ var h;
1810
+ return ee(ee({}, s), {}, {
1811
+ label: (h = i.get(s.value)) === null || h === void 0 ? void 0 : h.label
1812
+ });
1813
+ }
1814
+ return s;
1815
+ }), f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
1816
+ return d.forEach(function(s) {
1817
+ f.set(s.value, s), v.set(s.value, n.get(s.value) || u.get(s.value));
1818
+ }), t.current.values = f, t.current.options = v, d;
1819
+ }, [e, n]), a = o.useCallback(function(l) {
1820
+ return n.get(l) || t.current.options.get(l);
1821
+ }, [n]);
1822
+ return [r, a];
1823
+ };
1824
+ function Xn(e, n) {
1825
+ return lt(e).join("").toUpperCase().includes(n);
1826
+ }
1827
+ const Vo = function(e, n, t, r, a) {
1828
+ return o.useMemo(function() {
1829
+ if (!t || r === !1)
1830
+ return e;
1831
+ var l = n.options, i = n.label, u = n.value, d = [], f = typeof r == "function", v = t.toUpperCase(), s = f ? r : function(c, g) {
1832
+ return a ? Xn(g[a], v) : g[l] ? Xn(g[i !== "children" ? i : "label"], v) : Xn(g[u], v);
1833
+ }, h = f ? function(c) {
1834
+ return kn(c);
1835
+ } : function(c) {
1836
+ return c;
1837
+ };
1838
+ return e.forEach(function(c) {
1839
+ if (c[l]) {
1840
+ var g = s(t, h(c));
1841
+ if (g)
1842
+ d.push(c);
1843
+ else {
1844
+ var m = c[l].filter(function(S) {
1845
+ return s(t, h(S));
1846
+ });
1847
+ m.length && d.push(ee(ee({}, c), {}, ae({}, l, m)));
1848
+ }
1849
+ return;
1850
+ }
1851
+ s(t, h(c)) && d.push(c);
1852
+ }), d;
1853
+ }, [e, r, a, t, n]);
1854
+ };
1855
+ var Pt = 0, Lo = process.env.NODE_ENV !== "test" && gr();
1856
+ function Bo() {
1857
+ var e;
1858
+ return Lo ? (e = Pt, Pt += 1) : e = "TEST_OR_SSR", e;
1859
+ }
1860
+ function zo(e) {
1861
+ var n = o.useState(), t = te(n, 2), r = t[0], a = t[1];
1862
+ return o.useEffect(function() {
1863
+ a("rc_select_".concat(Bo()));
1864
+ }, []), e || r;
1865
+ }
1866
+ var Ho = ["children", "value"], Fo = ["children"];
1867
+ function Ao(e) {
1868
+ var n = e, t = n.key, r = n.props, a = r.children, l = r.value, i = wn(r, Ho);
1869
+ return ee({
1870
+ key: t,
1871
+ value: l !== void 0 ? l : t,
1872
+ children: a
1873
+ }, i);
1874
+ }
1875
+ function dt(e) {
1876
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1877
+ return Zn(e).map(function(t, r) {
1878
+ if (!/* @__PURE__ */ o.isValidElement(t) || !t.type)
1879
+ return null;
1880
+ var a = t, l = a.type.isSelectOptGroup, i = a.key, u = a.props, d = u.children, f = wn(u, Fo);
1881
+ return n || !l ? Ao(t) : ee(ee({
1882
+ key: "__RC_SELECT_GRP__".concat(i === null ? r : i, "__"),
1883
+ label: i
1884
+ }, f), {}, {
1885
+ options: dt(d)
1886
+ });
1887
+ }).filter(function(t) {
1888
+ return t;
1889
+ });
1890
+ }
1891
+ var jo = function(n, t, r, a, l) {
1892
+ return o.useMemo(function() {
1893
+ var i = n, u = !n;
1894
+ u && (i = dt(t));
1895
+ var d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), v = function(c, g, m) {
1896
+ m && typeof m == "string" && c.set(g[m], g);
1897
+ }, s = function h(c) {
1898
+ for (var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, m = 0; m < c.length; m += 1) {
1899
+ var S = c[m];
1900
+ !S[r.options] || g ? (d.set(S[r.value], S), v(f, S, r.label), v(f, S, a), v(f, S, l)) : h(S[r.options], !0);
1901
+ }
1902
+ };
1903
+ return s(i), {
1904
+ options: i,
1905
+ valueOptions: d,
1906
+ labelOptions: f
1907
+ };
1908
+ }, [n, t, r, a, l]);
1909
+ };
1910
+ function _t(e) {
1911
+ var n = o.useRef();
1912
+ n.current = e;
1913
+ var t = o.useCallback(function() {
1914
+ return n.current.apply(n, arguments);
1915
+ }, []);
1916
+ return t;
1917
+ }
1918
+ function Wo(e) {
1919
+ var n = e.mode, t = e.options, r = e.children, a = e.backfill, l = e.allowClear, i = e.placeholder, u = e.getInputElement, d = e.showSearch, f = e.onSearch, v = e.defaultOpen, s = e.autoFocus, h = e.labelInValue, c = e.value, g = e.inputValue, m = e.optionLabelProp, S = An(n), C = d !== void 0 ? d : S || n === "combobox", b = t || dt(r);
1920
+ if (Ue(n !== "tags" || b.every(function(p) {
1921
+ return !p.disabled;
1922
+ }), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), n === "tags" || n === "combobox") {
1923
+ var x = b.some(function(p) {
1924
+ return p.options ? p.options.some(function(E) {
1925
+ return typeof ("value" in E ? E.value : E.key) == "number";
1926
+ }) : typeof ("value" in p ? p.value : p.key) == "number";
1927
+ });
1928
+ Ue(!x, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
1929
+ }
1930
+ if (Ue(n !== "combobox" || !m, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Ue(n === "combobox" || !a, "`backfill` only works with `combobox` mode."), Ue(n === "combobox" || !u, "`getInputElement` only work with `combobox` mode."), ht(n !== "combobox" || !u || !l || !i, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), f && !C && n !== "combobox" && n !== "tags" && Ue(!1, "`onSearch` should work with `showSearch` instead of use alone."), ht(!v || s, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), c != null) {
1931
+ var w = lt(c);
1932
+ Ue(!h || w.every(function(p) {
1933
+ return pn(p) === "object" && ("key" in p || "value" in p);
1934
+ }), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), Ue(!S || Array.isArray(c), "`value` should be array when `mode` is `multiple` or `tags`");
1935
+ }
1936
+ if (r) {
1937
+ var B = null;
1938
+ Zn(r).some(function(p) {
1939
+ if (!/* @__PURE__ */ o.isValidElement(p) || !p.type)
1940
+ return !1;
1941
+ var E = p, L = E.type;
1942
+ if (L.isSelectOption)
1943
+ return !1;
1944
+ if (L.isSelectOptGroup) {
1945
+ var H = Zn(p.props.children).every(function(q) {
1946
+ return !/* @__PURE__ */ o.isValidElement(q) || !p.type || q.type.isSelectOption ? !0 : (B = q.type, !1);
1947
+ });
1948
+ return !H;
1949
+ }
1950
+ return B = L, !0;
1951
+ }), B && Ue(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(B.displayName || B.name || B, "`.")), Ue(g === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
1952
+ }
1953
+ }
1954
+ function Ko(e, n) {
1955
+ if (e) {
1956
+ var t = function r(a) {
1957
+ for (var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = 0; i < a.length; i++) {
1958
+ var u = a[i];
1959
+ if (u[n == null ? void 0 : n.value] === null)
1960
+ return Ue(!1, "`value` in Select options should not be `null`."), !0;
1961
+ if (!l && Array.isArray(u[n == null ? void 0 : n.options]) && r(u[n == null ? void 0 : n.options], !0))
1962
+ break;
1963
+ }
1964
+ };
1965
+ t(e);
1966
+ }
1967
+ }
1968
+ var Uo = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], Xo = ["inputValue"];
1969
+ function Go(e) {
1970
+ return !e || pn(e) !== "object";
1971
+ }
1972
+ var Jt = /* @__PURE__ */ o.forwardRef(function(e, n) {
1973
+ var t = e.id, r = e.mode, a = e.prefixCls, l = a === void 0 ? "rc-select" : a, i = e.backfill, u = e.fieldNames, d = e.inputValue, f = e.searchValue, v = e.onSearch, s = e.autoClearSearchValue, h = s === void 0 ? !0 : s, c = e.onSelect, g = e.onDeselect, m = e.dropdownMatchSelectWidth, S = m === void 0 ? !0 : m, C = e.filterOption, b = e.filterSort, x = e.optionFilterProp, w = e.optionLabelProp, B = e.options, p = e.optionRender, E = e.children, L = e.defaultActiveFirstOption, H = e.menuItemSelectedIcon, q = e.virtual, _ = e.direction, A = e.listHeight, X = A === void 0 ? 200 : A, Q = e.listItemHeight, G = Q === void 0 ? 20 : Q, j = e.labelRender, ne = e.value, Z = e.defaultValue, Y = e.labelInValue, I = e.onChange, D = e.maxCount, fe = wn(e, Uo), ie = zo(t), J = An(r), se = !!(!B && E), ye = o.useMemo(function() {
1974
+ return C === void 0 && r === "combobox" ? !1 : C;
1975
+ }, [C, r]), ge = o.useMemo(
1976
+ function() {
1977
+ return Xt(u, se);
1978
+ },
1979
+ /* eslint-disable react-hooks/exhaustive-deps */
1980
+ [
1981
+ // We stringify fieldNames to avoid unnecessary re-renders.
1982
+ JSON.stringify(u),
1983
+ se
1984
+ ]
1985
+ /* eslint-enable react-hooks/exhaustive-deps */
1986
+ ), Re = Qn("", {
1987
+ value: f !== void 0 ? f : d,
1988
+ postState: function(z) {
1989
+ return z || "";
1990
+ }
1991
+ }), ce = te(Re, 2), pe = ce[0], R = ce[1], y = jo(B, E, ge, x, w), $ = y.valueOptions, K = y.labelOptions, O = y.options, F = o.useCallback(function(N) {
1992
+ var z = lt(N);
1993
+ return z.map(function(T) {
1994
+ var V, oe, be, Qe, je;
1995
+ if (Go(T))
1996
+ V = T;
1997
+ else {
1998
+ var nn;
1999
+ be = T.key, oe = T.label, V = (nn = T.value) !== null && nn !== void 0 ? nn : be;
2000
+ }
2001
+ var Ie = $.get(V);
2002
+ if (Ie) {
2003
+ var tn;
2004
+ if (oe === void 0 && (oe = Ie == null ? void 0 : Ie[w || ge.label]), be === void 0 && (be = (tn = Ie == null ? void 0 : Ie.key) !== null && tn !== void 0 ? tn : V), Qe = Ie == null ? void 0 : Ie.disabled, je = Ie == null ? void 0 : Ie.title, process.env.NODE_ENV !== "production" && !w) {
2005
+ var Ze = Ie == null ? void 0 : Ie[ge.label];
2006
+ Ze !== void 0 && !/* @__PURE__ */ o.isValidElement(Ze) && !/* @__PURE__ */ o.isValidElement(oe) && Ze !== oe && Ue(!1, "`label` of `value` is not same as `label` in Select options.");
2007
+ }
2008
+ }
2009
+ return {
2010
+ label: oe,
2011
+ value: V,
2012
+ key: be,
2013
+ disabled: Qe,
2014
+ title: je
2015
+ };
2016
+ });
2017
+ }, [ge, w, $]), le = Qn(Z, {
2018
+ value: ne
2019
+ }), me = te(le, 2), re = me[0], Ce = me[1], Le = o.useMemo(function() {
2020
+ var N, z = J && re === null ? [] : re, T = F(z);
2021
+ return r === "combobox" && eo((N = T[0]) === null || N === void 0 ? void 0 : N.value) ? [] : T;
2022
+ }, [re, F, r, J]), xe = To(Le, $), Ne = te(xe, 2), de = Ne[0], Xe = Ne[1], Ge = o.useMemo(function() {
2023
+ if (!r && de.length === 1) {
2024
+ var N = de[0];
2025
+ if (N.value === null && (N.label === null || N.label === void 0))
2026
+ return [];
2027
+ }
2028
+ return de.map(function(z) {
2029
+ var T;
2030
+ return ee(ee({}, z), {}, {
2031
+ label: (T = typeof j == "function" ? j(z) : z.label) !== null && T !== void 0 ? T : z.value
2032
+ });
2033
+ });
2034
+ }, [r, de, j]), Se = o.useMemo(function() {
2035
+ return new Set(de.map(function(N) {
2036
+ return N.value;
2037
+ }));
2038
+ }, [de]);
2039
+ o.useEffect(function() {
2040
+ if (r === "combobox") {
2041
+ var N, z = (N = de[0]) === null || N === void 0 ? void 0 : N.value;
2042
+ R(kr(z) ? String(z) : "");
2043
+ }
2044
+ }, [de]);
2045
+ var Me = _t(function(N, z) {
2046
+ var T = z ?? N;
2047
+ return ae(ae({}, ge.value, N), ge.label, T);
2048
+ }), we = o.useMemo(function() {
2049
+ if (r !== "tags")
2050
+ return O;
2051
+ var N = Ye(O), z = function(V) {
2052
+ return $.has(V);
2053
+ };
2054
+ return Ye(de).sort(function(T, V) {
2055
+ return T.value < V.value ? -1 : 1;
2056
+ }).forEach(function(T) {
2057
+ var V = T.value;
2058
+ z(V) || N.push(Me(V, T.label));
2059
+ }), N;
2060
+ }, [Me, O, $, de, r]), Oe = Vo(we, ge, pe, ye, x), Pe = o.useMemo(function() {
2061
+ return r !== "tags" || !pe || Oe.some(function(N) {
2062
+ return N[x || "value"] === pe;
2063
+ }) || Oe.some(function(N) {
2064
+ return N[ge.value] === pe;
2065
+ }) ? Oe : [Me(pe)].concat(Ye(Oe));
2066
+ }, [Me, x, r, Oe, pe, ge]), en = function N(z) {
2067
+ var T = Ye(z).sort(function(V, oe) {
2068
+ return b(V, oe, {
2069
+ searchValue: pe
2070
+ });
2071
+ });
2072
+ return T.map(function(V) {
2073
+ return Array.isArray(V.options) ? ee(ee({}, V), {}, {
2074
+ options: V.options.length > 0 ? N(V.options) : V.options
2075
+ }) : V;
2076
+ });
2077
+ }, Ae = o.useMemo(function() {
2078
+ return b ? en(Pe) : Pe;
2079
+ }, [Pe, b, pe]), He = o.useMemo(function() {
2080
+ return co(Ae, {
2081
+ fieldNames: ge,
2082
+ childrenAsData: se
2083
+ });
2084
+ }, [Ae, ge, se]), Ee = function(z) {
2085
+ var T = F(z);
2086
+ if (Ce(T), I && // Trigger event only when value changed
2087
+ (T.length !== de.length || T.some(function(be, Qe) {
2088
+ var je;
2089
+ return ((je = de[Qe]) === null || je === void 0 ? void 0 : je.value) !== (be == null ? void 0 : be.value);
2090
+ }))) {
2091
+ var V = Y ? T : T.map(function(be) {
2092
+ return be.value;
2093
+ }), oe = T.map(function(be) {
2094
+ return kn(Xe(be.value));
2095
+ });
2096
+ I(
2097
+ // Value
2098
+ J ? V : V[0],
2099
+ // Option
2100
+ J ? oe : oe[0]
2101
+ );
2102
+ }
2103
+ }, hn = o.useState(null), Fe = te(hn, 2), _e = Fe[0], $e = Fe[1], $n = o.useState(0), En = te($n, 2), dn = En[0], bn = En[1], In = L !== void 0 ? L : r !== "combobox", cn = o.useCallback(function(N, z) {
2104
+ var T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, V = T.source, oe = V === void 0 ? "keyboard" : V;
2105
+ bn(z), i && r === "combobox" && N !== null && oe === "keyboard" && $e(String(N));
2106
+ }, [i, r]), qe = function(z, T, V) {
2107
+ var oe = function() {
2108
+ var rn, Je = Xe(z);
2109
+ return [Y ? {
2110
+ label: Je == null ? void 0 : Je[ge.label],
2111
+ value: z,
2112
+ key: (rn = Je == null ? void 0 : Je.key) !== null && rn !== void 0 ? rn : z
2113
+ } : z, kn(Je)];
2114
+ };
2115
+ if (T && c) {
2116
+ var be = oe(), Qe = te(be, 2), je = Qe[0], nn = Qe[1];
2117
+ c(je, nn);
2118
+ } else if (!T && g && V !== "clear") {
2119
+ var Ie = oe(), tn = te(Ie, 2), Ze = tn[0], Nn = tn[1];
2120
+ g(Ze, Nn);
2121
+ }
2122
+ }, fn = _t(function(N, z) {
2123
+ var T, V = J ? z.selected : !0;
2124
+ V ? T = J ? [].concat(Ye(de), [N]) : [N] : T = de.filter(function(oe) {
2125
+ return oe.value !== N;
2126
+ }), Ee(T), qe(N, V), r === "combobox" ? $e("") : (!An || h) && (R(""), $e(""));
2127
+ }), mn = function(z, T) {
2128
+ Ee(z);
2129
+ var V = T.type, oe = T.values;
2130
+ (V === "remove" || V === "clear") && oe.forEach(function(be) {
2131
+ qe(be.value, !1, V);
2132
+ });
2133
+ }, De = function(z, T) {
2134
+ if (R(z), $e(null), T.source === "submit") {
2135
+ var V = (z || "").trim();
2136
+ if (V) {
2137
+ var oe = Array.from(new Set([].concat(Ye(Se), [V])));
2138
+ Ee(oe), qe(V, !0), R("");
2139
+ }
2140
+ return;
2141
+ }
2142
+ T.source !== "blur" && (r === "combobox" && Ee(z), v == null || v(z));
2143
+ }, vn = function(z) {
2144
+ var T = z;
2145
+ r !== "tags" && (T = z.map(function(oe) {
2146
+ var be = K.get(oe);
2147
+ return be == null ? void 0 : be.value;
2148
+ }).filter(function(oe) {
2149
+ return oe !== void 0;
2150
+ }));
2151
+ var V = Array.from(new Set([].concat(Ye(Se), Ye(T))));
2152
+ Ee(V), V.forEach(function(oe) {
2153
+ qe(oe, !0);
2154
+ });
2155
+ }, an = o.useMemo(function() {
2156
+ var N = q !== !1 && S !== !1;
2157
+ return ee(ee({}, y), {}, {
2158
+ flattenOptions: He,
2159
+ onActiveValue: cn,
2160
+ defaultActiveFirstOption: In,
2161
+ onSelect: fn,
2162
+ menuItemSelectedIcon: H,
2163
+ rawValues: Se,
2164
+ fieldNames: ge,
2165
+ virtual: N,
2166
+ direction: _,
2167
+ listHeight: X,
2168
+ listItemHeight: G,
2169
+ childrenAsData: se,
2170
+ maxCount: D,
2171
+ optionRender: p
2172
+ });
2173
+ }, [D, y, He, cn, In, fn, H, Se, ge, q, S, _, X, G, se, p]);
2174
+ return process.env.NODE_ENV !== "production" && (Wo(e), Ko(O, ge)), /* @__PURE__ */ o.createElement(ut.Provider, {
2175
+ value: an
2176
+ }, /* @__PURE__ */ o.createElement(Gt, on({}, fe, {
2177
+ // >>> MISC
2178
+ id: ie,
2179
+ prefixCls: l,
2180
+ ref: n,
2181
+ omitDomProps: Xo,
2182
+ mode: r,
2183
+ displayValues: Ge,
2184
+ onDisplayValuesChange: mn,
2185
+ direction: _,
2186
+ searchValue: pe,
2187
+ onSearch: De,
2188
+ autoClearSearchValue: h,
2189
+ onSearchSplit: vn,
2190
+ dropdownMatchSelectWidth: S,
2191
+ OptionList: Zt,
2192
+ emptyOptions: !He.length,
2193
+ activeValue: _e,
2194
+ activeDescendantId: "".concat(ie, "_list_").concat(dn)
2195
+ })));
2196
+ });
2197
+ process.env.NODE_ENV !== "production" && (Jt.displayName = "Select");
2198
+ var ft = Jt;
2199
+ ft.Option = st;
2200
+ ft.OptGroup = ct;
2201
+ const kt = () => {
2202
+ const [, e] = tt(), [n] = at("Empty"), r = new zn(e.colorBgBase).toHsl().l < 0.5 ? {
2203
+ opacity: 0.65
2204
+ } : {};
2205
+ return /* @__PURE__ */ o.createElement("svg", {
2206
+ style: r,
2207
+ width: "184",
2208
+ height: "152",
2209
+ viewBox: "0 0 184 152",
2210
+ xmlns: "http://www.w3.org/2000/svg"
2211
+ }, /* @__PURE__ */ o.createElement("title", null, (n == null ? void 0 : n.description) || "Empty"), /* @__PURE__ */ o.createElement("g", {
2212
+ fill: "none",
2213
+ fillRule: "evenodd"
2214
+ }, /* @__PURE__ */ o.createElement("g", {
2215
+ transform: "translate(24 31.67)"
2216
+ }, /* @__PURE__ */ o.createElement("ellipse", {
2217
+ fillOpacity: ".8",
2218
+ fill: "#F5F5F7",
2219
+ cx: "67.797",
2220
+ cy: "106.89",
2221
+ rx: "67.797",
2222
+ ry: "12.668"
2223
+ }), /* @__PURE__ */ o.createElement("path", {
2224
+ d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
2225
+ fill: "#AEB8C2"
2226
+ }), /* @__PURE__ */ o.createElement("path", {
2227
+ d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
2228
+ fill: "url(#linearGradient-1)",
2229
+ transform: "translate(13.56)"
2230
+ }), /* @__PURE__ */ o.createElement("path", {
2231
+ d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
2232
+ fill: "#F5F5F7"
2233
+ }), /* @__PURE__ */ o.createElement("path", {
2234
+ d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
2235
+ fill: "#DCE0E6"
2236
+ })), /* @__PURE__ */ o.createElement("path", {
2237
+ d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
2238
+ fill: "#DCE0E6"
2239
+ }), /* @__PURE__ */ o.createElement("g", {
2240
+ transform: "translate(149.65 15.383)",
2241
+ fill: "#FFF"
2242
+ }, /* @__PURE__ */ o.createElement("ellipse", {
2243
+ cx: "20.654",
2244
+ cy: "3.167",
2245
+ rx: "2.849",
2246
+ ry: "2.815"
2247
+ }), /* @__PURE__ */ o.createElement("path", {
2248
+ d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
2249
+ }))));
2250
+ };
2251
+ process.env.NODE_ENV !== "production" && (kt.displayName = "EmptyImage");
2252
+ const er = () => {
2253
+ const [, e] = tt(), [n] = at("Empty"), {
2254
+ colorFill: t,
2255
+ colorFillTertiary: r,
2256
+ colorFillQuaternary: a,
2257
+ colorBgContainer: l
2258
+ } = e, {
2259
+ borderColor: i,
2260
+ shadowColor: u,
2261
+ contentColor: d
2262
+ } = fr(() => ({
2263
+ borderColor: new zn(t).onBackground(l).toHexString(),
2264
+ shadowColor: new zn(r).onBackground(l).toHexString(),
2265
+ contentColor: new zn(a).onBackground(l).toHexString()
2266
+ }), [t, r, a, l]);
2267
+ return /* @__PURE__ */ o.createElement("svg", {
2268
+ width: "64",
2269
+ height: "41",
2270
+ viewBox: "0 0 64 41",
2271
+ xmlns: "http://www.w3.org/2000/svg"
2272
+ }, /* @__PURE__ */ o.createElement("title", null, (n == null ? void 0 : n.description) || "Empty"), /* @__PURE__ */ o.createElement("g", {
2273
+ transform: "translate(0 1)",
2274
+ fill: "none",
2275
+ fillRule: "evenodd"
2276
+ }, /* @__PURE__ */ o.createElement("ellipse", {
2277
+ fill: u,
2278
+ cx: "32",
2279
+ cy: "33",
2280
+ rx: "32",
2281
+ ry: "7"
2282
+ }), /* @__PURE__ */ o.createElement("g", {
2283
+ fillRule: "nonzero",
2284
+ stroke: i
2285
+ }, /* @__PURE__ */ o.createElement("path", {
2286
+ d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
2287
+ }), /* @__PURE__ */ o.createElement("path", {
2288
+ d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
2289
+ fill: d
2290
+ }))));
2291
+ };
2292
+ process.env.NODE_ENV !== "production" && (er.displayName = "SimpleImage");
2293
+ const Yo = (e) => {
2294
+ const {
2295
+ componentCls: n,
2296
+ margin: t,
2297
+ marginXS: r,
2298
+ marginXL: a,
2299
+ fontSize: l,
2300
+ lineHeight: i
2301
+ } = e;
2302
+ return {
2303
+ [n]: {
2304
+ marginInline: r,
2305
+ fontSize: l,
2306
+ lineHeight: i,
2307
+ textAlign: "center",
2308
+ // 原来 &-image 没有父子结构,现在为了外层承担我们的 hashId,改成父子结构
2309
+ [`${n}-image`]: {
2310
+ height: e.emptyImgHeight,
2311
+ marginBottom: r,
2312
+ opacity: e.opacityImage,
2313
+ img: {
2314
+ height: "100%"
2315
+ },
2316
+ svg: {
2317
+ maxWidth: "100%",
2318
+ height: "100%",
2319
+ margin: "auto"
2320
+ }
2321
+ },
2322
+ [`${n}-description`]: {
2323
+ color: e.colorTextDescription
2324
+ },
2325
+ // 原来 &-footer 没有父子结构,现在为了外层承担我们的 hashId,改成父子结构
2326
+ [`${n}-footer`]: {
2327
+ marginTop: t
2328
+ },
2329
+ "&-normal": {
2330
+ marginBlock: a,
2331
+ color: e.colorTextDescription,
2332
+ [`${n}-description`]: {
2333
+ color: e.colorTextDescription
2334
+ },
2335
+ [`${n}-image`]: {
2336
+ height: e.emptyImgHeightMD
2337
+ }
2338
+ },
2339
+ "&-small": {
2340
+ marginBlock: r,
2341
+ color: e.colorTextDescription,
2342
+ [`${n}-image`]: {
2343
+ height: e.emptyImgHeightSM
2344
+ }
2345
+ }
2346
+ }
2347
+ };
2348
+ }, qo = Bt("Empty", (e) => {
2349
+ const {
2350
+ componentCls: n,
2351
+ controlHeightLG: t,
2352
+ calc: r
2353
+ } = e, a = Hn(e, {
2354
+ emptyImgCls: `${n}-img`,
2355
+ emptyImgHeight: r(t).mul(2.5).equal(),
2356
+ emptyImgHeightMD: t,
2357
+ emptyImgHeightSM: r(t).mul(0.875).equal()
2358
+ });
2359
+ return [Yo(a)];
2360
+ });
2361
+ var Qo = function(e, n) {
2362
+ var t = {};
2363
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
2364
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
2365
+ n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
2366
+ return t;
2367
+ };
2368
+ const nr = /* @__PURE__ */ o.createElement(kt, null), tr = /* @__PURE__ */ o.createElement(er, null), gn = (e) => {
2369
+ var n, t, r, a, l, i, u, d;
2370
+ const {
2371
+ className: f,
2372
+ rootClassName: v,
2373
+ prefixCls: s,
2374
+ image: h = nr,
2375
+ description: c,
2376
+ children: g,
2377
+ imageStyle: m,
2378
+ style: S,
2379
+ classNames: C,
2380
+ styles: b
2381
+ } = e, x = Qo(e, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]), {
2382
+ getPrefixCls: w,
2383
+ direction: B,
2384
+ empty: p
2385
+ } = o.useContext(rt), E = w("empty", s), [L, H, q] = qo(E), [_] = at("Empty"), A = typeof c < "u" ? c : _ == null ? void 0 : _.description, X = typeof A == "string" ? A : "empty";
2386
+ let Q = null;
2387
+ if (typeof h == "string" ? Q = /* @__PURE__ */ o.createElement("img", {
2388
+ alt: X,
2389
+ src: h
2390
+ }) : Q = h, process.env.NODE_ENV !== "production") {
2391
+ const G = zt("Empty");
2392
+ [["imageStyle", "styles: { image: {} }"]].forEach((j) => {
2393
+ let [ne, Z] = j;
2394
+ G.deprecated(!(ne in e), ne, Z);
2395
+ });
2396
+ }
2397
+ return L(/* @__PURE__ */ o.createElement("div", Object.assign({
2398
+ className: Be(H, q, E, p == null ? void 0 : p.className, {
2399
+ [`${E}-normal`]: h === tr,
2400
+ [`${E}-rtl`]: B === "rtl"
2401
+ }, f, v, (n = p == null ? void 0 : p.classNames) === null || n === void 0 ? void 0 : n.root, C == null ? void 0 : C.root),
2402
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, (t = p == null ? void 0 : p.styles) === null || t === void 0 ? void 0 : t.root), p == null ? void 0 : p.style), b == null ? void 0 : b.root), S)
2403
+ }, x), /* @__PURE__ */ o.createElement("div", {
2404
+ className: Be(`${E}-image`, (r = p == null ? void 0 : p.classNames) === null || r === void 0 ? void 0 : r.image, C == null ? void 0 : C.image),
2405
+ style: Object.assign(Object.assign(Object.assign({}, m), (a = p == null ? void 0 : p.styles) === null || a === void 0 ? void 0 : a.image), b == null ? void 0 : b.image)
2406
+ }, Q), A && /* @__PURE__ */ o.createElement("div", {
2407
+ className: Be(`${E}-description`, (l = p == null ? void 0 : p.classNames) === null || l === void 0 ? void 0 : l.description, C == null ? void 0 : C.description),
2408
+ style: Object.assign(Object.assign({}, (i = p == null ? void 0 : p.styles) === null || i === void 0 ? void 0 : i.description), b == null ? void 0 : b.description)
2409
+ }, A), g && /* @__PURE__ */ o.createElement("div", {
2410
+ className: Be(`${E}-footer`, (u = p == null ? void 0 : p.classNames) === null || u === void 0 ? void 0 : u.footer, C == null ? void 0 : C.footer),
2411
+ style: Object.assign(Object.assign({}, (d = p == null ? void 0 : p.styles) === null || d === void 0 ? void 0 : d.footer), b == null ? void 0 : b.footer)
2412
+ }, g)));
2413
+ };
2414
+ gn.PRESENTED_IMAGE_DEFAULT = nr;
2415
+ gn.PRESENTED_IMAGE_SIMPLE = tr;
2416
+ process.env.NODE_ENV !== "production" && (gn.displayName = "Empty");
2417
+ const Zo = (e) => {
2418
+ const {
2419
+ componentName: n
2420
+ } = e, {
2421
+ getPrefixCls: t
2422
+ } = mr(rt), r = t("empty");
2423
+ switch (n) {
2424
+ case "Table":
2425
+ case "List":
2426
+ return /* @__PURE__ */ Rn.createElement(gn, {
2427
+ image: gn.PRESENTED_IMAGE_SIMPLE
2428
+ });
2429
+ case "Select":
2430
+ case "TreeSelect":
2431
+ case "Cascader":
2432
+ case "Transfer":
2433
+ case "Mentions":
2434
+ return /* @__PURE__ */ Rn.createElement(gn, {
2435
+ image: gn.PRESENTED_IMAGE_SIMPLE,
2436
+ className: `${r}-small`
2437
+ });
2438
+ case "Table.filter":
2439
+ return null;
2440
+ default:
2441
+ return /* @__PURE__ */ Rn.createElement(gn, null);
2442
+ }
2443
+ }, Jo = (e) => {
2444
+ const t = {
2445
+ overflow: {
2446
+ adjustX: !0,
2447
+ adjustY: !0,
2448
+ shiftY: !0
2449
+ },
2450
+ htmlRegion: e === "scroll" ? "scroll" : "visible",
2451
+ dynamicInset: !0
2452
+ };
2453
+ return {
2454
+ bottomLeft: Object.assign(Object.assign({}, t), {
2455
+ points: ["tl", "bl"],
2456
+ offset: [0, 4]
2457
+ }),
2458
+ bottomRight: Object.assign(Object.assign({}, t), {
2459
+ points: ["tr", "br"],
2460
+ offset: [0, 4]
2461
+ }),
2462
+ topLeft: Object.assign(Object.assign({}, t), {
2463
+ points: ["bl", "tl"],
2464
+ offset: [0, -4]
2465
+ }),
2466
+ topRight: Object.assign(Object.assign({}, t), {
2467
+ points: ["br", "tr"],
2468
+ offset: [0, -4]
2469
+ })
2470
+ };
2471
+ };
2472
+ function ko(e, n) {
2473
+ return e || Jo(n);
2474
+ }
2475
+ const Tt = (e) => {
2476
+ const {
2477
+ optionHeight: n,
2478
+ optionFontSize: t,
2479
+ optionLineHeight: r,
2480
+ optionPadding: a
2481
+ } = e;
2482
+ return {
2483
+ position: "relative",
2484
+ display: "block",
2485
+ minHeight: n,
2486
+ padding: a,
2487
+ color: e.colorText,
2488
+ fontWeight: "normal",
2489
+ fontSize: t,
2490
+ lineHeight: r,
2491
+ boxSizing: "border-box"
2492
+ };
2493
+ }, ea = (e) => {
2494
+ const {
2495
+ antCls: n,
2496
+ componentCls: t
2497
+ } = e, r = `${t}-item`, a = `&${n}-slide-up-enter${n}-slide-up-enter-active`, l = `&${n}-slide-up-appear${n}-slide-up-appear-active`, i = `&${n}-slide-up-leave${n}-slide-up-leave-active`, u = `${t}-dropdown-placement-`, d = `${r}-option-selected`;
2498
+ return [
2499
+ {
2500
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, ot(e)), {
2501
+ position: "absolute",
2502
+ top: -9999,
2503
+ zIndex: e.zIndexPopup,
2504
+ boxSizing: "border-box",
2505
+ padding: e.paddingXXS,
2506
+ overflow: "hidden",
2507
+ fontSize: e.fontSize,
2508
+ // Fix select render lag of long text in chrome
2509
+ // https://github.com/ant-design/ant-design/issues/11456
2510
+ // https://github.com/ant-design/ant-design/issues/11843
2511
+ fontVariant: "initial",
2512
+ backgroundColor: e.colorBgElevated,
2513
+ borderRadius: e.borderRadiusLG,
2514
+ outline: "none",
2515
+ boxShadow: e.boxShadowSecondary,
2516
+ [`
2517
+ ${a}${u}bottomLeft,
2518
+ ${l}${u}bottomLeft
2519
+ `]: {
2520
+ animationName: Mr
2521
+ },
2522
+ [`
2523
+ ${a}${u}topLeft,
2524
+ ${l}${u}topLeft,
2525
+ ${a}${u}topRight,
2526
+ ${l}${u}topRight
2527
+ `]: {
2528
+ animationName: Dr
2529
+ },
2530
+ [`${i}${u}bottomLeft`]: {
2531
+ animationName: $r
2532
+ },
2533
+ [`
2534
+ ${i}${u}topLeft,
2535
+ ${i}${u}topRight
2536
+ `]: {
2537
+ animationName: Nr
2538
+ },
2539
+ "&-hidden": {
2540
+ display: "none"
2541
+ },
2542
+ [r]: Object.assign(Object.assign({}, Tt(e)), {
2543
+ cursor: "pointer",
2544
+ transition: `background ${e.motionDurationSlow} ease`,
2545
+ borderRadius: e.borderRadiusSM,
2546
+ // =========== Group ============
2547
+ "&-group": {
2548
+ color: e.colorTextDescription,
2549
+ fontSize: e.fontSizeSM,
2550
+ cursor: "default"
2551
+ },
2552
+ // =========== Option ===========
2553
+ "&-option": {
2554
+ display: "flex",
2555
+ "&-content": Object.assign({
2556
+ flex: "auto"
2557
+ }, qn),
2558
+ "&-state": {
2559
+ flex: "none",
2560
+ display: "flex",
2561
+ alignItems: "center"
2562
+ },
2563
+ [`&-active:not(${r}-option-disabled)`]: {
2564
+ backgroundColor: e.optionActiveBg
2565
+ },
2566
+ [`&-selected:not(${r}-option-disabled)`]: {
2567
+ color: e.optionSelectedColor,
2568
+ fontWeight: e.optionSelectedFontWeight,
2569
+ backgroundColor: e.optionSelectedBg,
2570
+ [`${r}-option-state`]: {
2571
+ color: e.colorPrimary
2572
+ }
2573
+ },
2574
+ "&-disabled": {
2575
+ [`&${r}-option-selected`]: {
2576
+ backgroundColor: e.colorBgContainerDisabled
2577
+ },
2578
+ color: e.colorTextDisabled,
2579
+ cursor: "not-allowed"
2580
+ },
2581
+ "&-grouped": {
2582
+ paddingInlineStart: e.calc(e.controlPaddingHorizontal).mul(2).equal()
2583
+ }
2584
+ },
2585
+ "&-empty": Object.assign(Object.assign({}, Tt(e)), {
2586
+ color: e.colorTextDisabled
2587
+ })
2588
+ }),
2589
+ // https://github.com/ant-design/ant-design/pull/46646
2590
+ [`${d}:has(+ ${d})`]: {
2591
+ borderEndStartRadius: 0,
2592
+ borderEndEndRadius: 0,
2593
+ [`& + ${d}`]: {
2594
+ borderStartStartRadius: 0,
2595
+ borderStartEndRadius: 0
2596
+ }
2597
+ },
2598
+ // =========================== RTL ===========================
2599
+ "&-rtl": {
2600
+ direction: "rtl"
2601
+ }
2602
+ })
2603
+ },
2604
+ // Follow code may reuse in other components
2605
+ Ct(e, "slide-up"),
2606
+ Ct(e, "slide-down"),
2607
+ yt(e, "move-up"),
2608
+ yt(e, "move-down")
2609
+ ];
2610
+ };
2611
+ function Gn(e, n) {
2612
+ const {
2613
+ componentCls: t,
2614
+ inputPaddingHorizontalBase: r,
2615
+ borderRadius: a
2616
+ } = e, l = e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(), i = n ? `${t}-${n}` : "";
2617
+ return {
2618
+ [`${t}-single${i}`]: {
2619
+ fontSize: e.fontSize,
2620
+ height: e.controlHeight,
2621
+ // ========================= Selector =========================
2622
+ [`${t}-selector`]: Object.assign(Object.assign({}, ot(e, !0)), {
2623
+ display: "flex",
2624
+ borderRadius: a,
2625
+ flex: "1 1 auto",
2626
+ [`${t}-selection-search`]: {
2627
+ position: "absolute",
2628
+ inset: 0,
2629
+ width: "100%",
2630
+ "&-input": {
2631
+ width: "100%",
2632
+ WebkitAppearance: "textfield"
2633
+ }
2634
+ },
2635
+ [`
2636
+ ${t}-selection-item,
2637
+ ${t}-selection-placeholder
2638
+ `]: {
2639
+ display: "block",
2640
+ padding: 0,
2641
+ lineHeight: ke(l),
2642
+ transition: `all ${e.motionDurationSlow}, visibility 0s`,
2643
+ alignSelf: "center"
2644
+ },
2645
+ [`${t}-selection-placeholder`]: {
2646
+ transition: "none",
2647
+ pointerEvents: "none"
2648
+ },
2649
+ // For common baseline align
2650
+ [[
2651
+ "&:after",
2652
+ /* For '' value baseline align */
2653
+ `${t}-selection-item:empty:after`,
2654
+ /* For undefined value baseline align */
2655
+ `${t}-selection-placeholder:empty:after`
2656
+ ].join(",")]: {
2657
+ display: "inline-block",
2658
+ width: 0,
2659
+ visibility: "hidden",
2660
+ content: '"\\a0"'
2661
+ }
2662
+ }),
2663
+ [`
2664
+ &${t}-show-arrow ${t}-selection-item,
2665
+ &${t}-show-arrow ${t}-selection-search,
2666
+ &${t}-show-arrow ${t}-selection-placeholder
2667
+ `]: {
2668
+ paddingInlineEnd: e.showArrowPaddingInlineEnd
2669
+ },
2670
+ // Opacity selection if open
2671
+ [`&${t}-open ${t}-selection-item`]: {
2672
+ color: e.colorTextPlaceholder
2673
+ },
2674
+ // ========================== Input ==========================
2675
+ // We only change the style of non-customize input which is only support by `combobox` mode.
2676
+ // Not customize
2677
+ [`&:not(${t}-customize-input)`]: {
2678
+ [`${t}-selector`]: {
2679
+ width: "100%",
2680
+ height: "100%",
2681
+ alignItems: "center",
2682
+ padding: `0 ${ke(r)}`,
2683
+ [`${t}-selection-search-input`]: {
2684
+ height: l
2685
+ },
2686
+ "&:after": {
2687
+ lineHeight: ke(l)
2688
+ }
2689
+ }
2690
+ },
2691
+ [`&${t}-customize-input`]: {
2692
+ [`${t}-selector`]: {
2693
+ "&:after": {
2694
+ display: "none"
2695
+ },
2696
+ [`${t}-selection-search`]: {
2697
+ position: "static",
2698
+ width: "100%"
2699
+ },
2700
+ [`${t}-selection-placeholder`]: {
2701
+ position: "absolute",
2702
+ insetInlineStart: 0,
2703
+ insetInlineEnd: 0,
2704
+ padding: `0 ${ke(r)}`,
2705
+ "&:after": {
2706
+ display: "none"
2707
+ }
2708
+ }
2709
+ }
2710
+ }
2711
+ }
2712
+ };
2713
+ }
2714
+ function na(e) {
2715
+ const {
2716
+ componentCls: n
2717
+ } = e, t = e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();
2718
+ return [
2719
+ Gn(e),
2720
+ // ======================== Small ========================
2721
+ // Shared
2722
+ Gn(Hn(e, {
2723
+ controlHeight: e.controlHeightSM,
2724
+ borderRadius: e.borderRadiusSM
2725
+ }), "sm"),
2726
+ // padding
2727
+ {
2728
+ [`${n}-single${n}-sm`]: {
2729
+ [`&:not(${n}-customize-input)`]: {
2730
+ [`${n}-selector`]: {
2731
+ padding: `0 ${ke(t)}`
2732
+ },
2733
+ // With arrow should provides `padding-right` to show the arrow
2734
+ [`&${n}-show-arrow ${n}-selection-search`]: {
2735
+ insetInlineEnd: e.calc(t).add(e.calc(e.fontSize).mul(1.5)).equal()
2736
+ },
2737
+ [`
2738
+ &${n}-show-arrow ${n}-selection-item,
2739
+ &${n}-show-arrow ${n}-selection-placeholder
2740
+ `]: {
2741
+ paddingInlineEnd: e.calc(e.fontSize).mul(1.5).equal()
2742
+ }
2743
+ }
2744
+ }
2745
+ },
2746
+ // ======================== Large ========================
2747
+ // Shared
2748
+ Gn(Hn(e, {
2749
+ controlHeight: e.singleItemHeightLG,
2750
+ fontSize: e.fontSizeLG,
2751
+ borderRadius: e.borderRadiusLG
2752
+ }), "lg")
2753
+ ];
2754
+ }
2755
+ const ta = (e) => {
2756
+ const {
2757
+ fontSize: n,
2758
+ lineHeight: t,
2759
+ lineWidth: r,
2760
+ controlHeight: a,
2761
+ controlHeightSM: l,
2762
+ controlHeightLG: i,
2763
+ paddingXXS: u,
2764
+ controlPaddingHorizontal: d,
2765
+ zIndexPopupBase: f,
2766
+ colorText: v,
2767
+ fontWeightStrong: s,
2768
+ controlItemBgActive: h,
2769
+ controlItemBgHover: c,
2770
+ colorBgContainer: g,
2771
+ colorFillSecondary: m,
2772
+ colorBgContainerDisabled: S,
2773
+ colorTextDisabled: C,
2774
+ colorPrimaryHover: b,
2775
+ colorPrimary: x,
2776
+ controlOutline: w
2777
+ } = e, B = u * 2, p = r * 2, E = Math.min(a - B, a - p), L = Math.min(l - B, l - p), H = Math.min(i - B, i - p);
2778
+ return {
2779
+ INTERNAL_FIXED_ITEM_MARGIN: Math.floor(u / 2),
2780
+ zIndexPopup: f + 50,
2781
+ optionSelectedColor: v,
2782
+ optionSelectedFontWeight: s,
2783
+ optionSelectedBg: h,
2784
+ optionActiveBg: c,
2785
+ optionPadding: `${(a - n * t) / 2}px ${d}px`,
2786
+ optionFontSize: n,
2787
+ optionLineHeight: t,
2788
+ optionHeight: a,
2789
+ selectorBg: g,
2790
+ clearBg: g,
2791
+ singleItemHeightLG: i,
2792
+ multipleItemBg: m,
2793
+ multipleItemBorderColor: "transparent",
2794
+ multipleItemHeight: E,
2795
+ multipleItemHeightSM: L,
2796
+ multipleItemHeightLG: H,
2797
+ multipleSelectorBgDisabled: S,
2798
+ multipleItemColorDisabled: C,
2799
+ multipleItemBorderColorDisabled: "transparent",
2800
+ showArrowPaddingInlineEnd: Math.ceil(e.fontSize * 1.25),
2801
+ hoverBorderColor: b,
2802
+ activeBorderColor: x,
2803
+ activeOutlineColor: w,
2804
+ selectAffixPadding: u
2805
+ };
2806
+ }, rr = (e, n) => {
2807
+ const {
2808
+ componentCls: t,
2809
+ antCls: r,
2810
+ controlOutlineWidth: a
2811
+ } = e;
2812
+ return {
2813
+ [`&:not(${t}-customize-input) ${t}-selector`]: {
2814
+ border: `${ke(e.lineWidth)} ${e.lineType} ${n.borderColor}`,
2815
+ background: e.selectorBg
2816
+ },
2817
+ [`&:not(${t}-disabled):not(${t}-customize-input):not(${r}-pagination-size-changer)`]: {
2818
+ [`&:hover ${t}-selector`]: {
2819
+ borderColor: n.hoverBorderHover
2820
+ },
2821
+ [`${t}-focused& ${t}-selector`]: {
2822
+ borderColor: n.activeBorderColor,
2823
+ boxShadow: `0 0 0 ${ke(a)} ${n.activeOutlineColor}`,
2824
+ outline: 0
2825
+ },
2826
+ [`${t}-prefix`]: {
2827
+ color: n.color
2828
+ }
2829
+ }
2830
+ };
2831
+ }, Vt = (e, n) => ({
2832
+ [`&${e.componentCls}-status-${n.status}`]: Object.assign({}, rr(e, n))
2833
+ }), ra = (e) => ({
2834
+ "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign({}, rr(e, {
2835
+ borderColor: e.colorBorder,
2836
+ hoverBorderHover: e.hoverBorderColor,
2837
+ activeBorderColor: e.activeBorderColor,
2838
+ activeOutlineColor: e.activeOutlineColor,
2839
+ color: e.colorText
2840
+ })), Vt(e, {
2841
+ status: "error",
2842
+ borderColor: e.colorError,
2843
+ hoverBorderHover: e.colorErrorHover,
2844
+ activeBorderColor: e.colorError,
2845
+ activeOutlineColor: e.colorErrorOutline,
2846
+ color: e.colorError
2847
+ })), Vt(e, {
2848
+ status: "warning",
2849
+ borderColor: e.colorWarning,
2850
+ hoverBorderHover: e.colorWarningHover,
2851
+ activeBorderColor: e.colorWarning,
2852
+ activeOutlineColor: e.colorWarningOutline,
2853
+ color: e.colorWarning
2854
+ })), {
2855
+ [`&${e.componentCls}-disabled`]: {
2856
+ [`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]: {
2857
+ background: e.colorBgContainerDisabled,
2858
+ color: e.colorTextDisabled
2859
+ }
2860
+ },
2861
+ [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: {
2862
+ background: e.multipleItemBg,
2863
+ border: `${ke(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`
2864
+ }
2865
+ })
2866
+ }), or = (e, n) => {
2867
+ const {
2868
+ componentCls: t,
2869
+ antCls: r
2870
+ } = e;
2871
+ return {
2872
+ [`&:not(${t}-customize-input) ${t}-selector`]: {
2873
+ background: n.bg,
2874
+ border: `${ke(e.lineWidth)} ${e.lineType} transparent`,
2875
+ color: n.color
2876
+ },
2877
+ [`&:not(${t}-disabled):not(${t}-customize-input):not(${r}-pagination-size-changer)`]: {
2878
+ [`&:hover ${t}-selector`]: {
2879
+ background: n.hoverBg
2880
+ },
2881
+ [`${t}-focused& ${t}-selector`]: {
2882
+ background: e.selectorBg,
2883
+ borderColor: n.activeBorderColor,
2884
+ outline: 0
2885
+ }
2886
+ }
2887
+ };
2888
+ }, Lt = (e, n) => ({
2889
+ [`&${e.componentCls}-status-${n.status}`]: Object.assign({}, or(e, n))
2890
+ }), oa = (e) => ({
2891
+ "&-filled": Object.assign(Object.assign(Object.assign(Object.assign({}, or(e, {
2892
+ bg: e.colorFillTertiary,
2893
+ hoverBg: e.colorFillSecondary,
2894
+ activeBorderColor: e.activeBorderColor,
2895
+ color: e.colorText
2896
+ })), Lt(e, {
2897
+ status: "error",
2898
+ bg: e.colorErrorBg,
2899
+ hoverBg: e.colorErrorBgHover,
2900
+ activeBorderColor: e.colorError,
2901
+ color: e.colorError
2902
+ })), Lt(e, {
2903
+ status: "warning",
2904
+ bg: e.colorWarningBg,
2905
+ hoverBg: e.colorWarningBgHover,
2906
+ activeBorderColor: e.colorWarning,
2907
+ color: e.colorWarning
2908
+ })), {
2909
+ [`&${e.componentCls}-disabled`]: {
2910
+ [`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]: {
2911
+ borderColor: e.colorBorder,
2912
+ background: e.colorBgContainerDisabled,
2913
+ color: e.colorTextDisabled
2914
+ }
2915
+ },
2916
+ [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: {
2917
+ background: e.colorBgContainer,
2918
+ border: `${ke(e.lineWidth)} ${e.lineType} ${e.colorSplit}`
2919
+ }
2920
+ })
2921
+ }), aa = (e) => ({
2922
+ "&-borderless": {
2923
+ [`${e.componentCls}-selector`]: {
2924
+ background: "transparent",
2925
+ border: `${ke(e.lineWidth)} ${e.lineType} transparent`
2926
+ },
2927
+ [`&${e.componentCls}-disabled`]: {
2928
+ [`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]: {
2929
+ color: e.colorTextDisabled
2930
+ }
2931
+ },
2932
+ [`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]: {
2933
+ background: e.multipleItemBg,
2934
+ border: `${ke(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`
2935
+ },
2936
+ // Status
2937
+ [`&${e.componentCls}-status-error`]: {
2938
+ [`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]: {
2939
+ color: e.colorError
2940
+ }
2941
+ },
2942
+ [`&${e.componentCls}-status-warning`]: {
2943
+ [`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]: {
2944
+ color: e.colorWarning
2945
+ }
2946
+ }
2947
+ }
2948
+ }), ia = (e) => ({
2949
+ [e.componentCls]: Object.assign(Object.assign(Object.assign({}, ra(e)), oa(e)), aa(e))
2950
+ }), la = (e) => {
2951
+ const {
2952
+ componentCls: n
2953
+ } = e;
2954
+ return {
2955
+ position: "relative",
2956
+ transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
2957
+ input: {
2958
+ cursor: "pointer"
2959
+ },
2960
+ [`${n}-show-search&`]: {
2961
+ cursor: "text",
2962
+ input: {
2963
+ cursor: "auto",
2964
+ color: "inherit",
2965
+ height: "100%"
2966
+ }
2967
+ },
2968
+ [`${n}-disabled&`]: {
2969
+ cursor: "not-allowed",
2970
+ input: {
2971
+ cursor: "not-allowed"
2972
+ }
2973
+ }
2974
+ };
2975
+ }, ua = (e) => {
2976
+ const {
2977
+ componentCls: n
2978
+ } = e;
2979
+ return {
2980
+ [`${n}-selection-search-input`]: {
2981
+ margin: 0,
2982
+ padding: 0,
2983
+ background: "transparent",
2984
+ border: "none",
2985
+ outline: "none",
2986
+ appearance: "none",
2987
+ fontFamily: "inherit",
2988
+ "&::-webkit-search-cancel-button": {
2989
+ display: "none",
2990
+ "-webkit-appearance": "none"
2991
+ }
2992
+ }
2993
+ };
2994
+ }, ca = (e) => {
2995
+ const {
2996
+ antCls: n,
2997
+ componentCls: t,
2998
+ inputPaddingHorizontalBase: r,
2999
+ iconCls: a
3000
+ } = e;
3001
+ return {
3002
+ [t]: Object.assign(Object.assign({}, ot(e)), {
3003
+ position: "relative",
3004
+ display: "inline-flex",
3005
+ cursor: "pointer",
3006
+ [`&:not(${t}-customize-input) ${t}-selector`]: Object.assign(Object.assign({}, la(e)), ua(e)),
3007
+ // ======================== Selection ========================
3008
+ [`${t}-selection-item`]: Object.assign(Object.assign({
3009
+ flex: 1,
3010
+ fontWeight: "normal",
3011
+ position: "relative",
3012
+ userSelect: "none"
3013
+ }, qn), {
3014
+ // https://github.com/ant-design/ant-design/issues/40421
3015
+ [`> ${n}-typography`]: {
3016
+ display: "inline"
3017
+ }
3018
+ }),
3019
+ // ======================= Placeholder =======================
3020
+ [`${t}-selection-placeholder`]: Object.assign(Object.assign({}, qn), {
3021
+ flex: 1,
3022
+ color: e.colorTextPlaceholder,
3023
+ pointerEvents: "none"
3024
+ }),
3025
+ // ========================== Arrow ==========================
3026
+ [`${t}-arrow`]: Object.assign(Object.assign({}, Er()), {
3027
+ position: "absolute",
3028
+ top: "50%",
3029
+ insetInlineStart: "auto",
3030
+ insetInlineEnd: r,
3031
+ height: e.fontSizeIcon,
3032
+ marginTop: e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),
3033
+ color: e.colorTextQuaternary,
3034
+ fontSize: e.fontSizeIcon,
3035
+ lineHeight: 1,
3036
+ textAlign: "center",
3037
+ pointerEvents: "none",
3038
+ display: "flex",
3039
+ alignItems: "center",
3040
+ transition: `opacity ${e.motionDurationSlow} ease`,
3041
+ [a]: {
3042
+ verticalAlign: "top",
3043
+ transition: `transform ${e.motionDurationSlow}`,
3044
+ "> svg": {
3045
+ verticalAlign: "top"
3046
+ },
3047
+ [`&:not(${t}-suffix)`]: {
3048
+ pointerEvents: "auto"
3049
+ }
3050
+ },
3051
+ [`${t}-disabled &`]: {
3052
+ cursor: "not-allowed"
3053
+ },
3054
+ "> *:not(:last-child)": {
3055
+ marginInlineEnd: 8
3056
+ // FIXME: magic
3057
+ }
3058
+ }),
3059
+ // ========================== Wrap ===========================
3060
+ [`${t}-selection-wrap`]: {
3061
+ display: "flex",
3062
+ width: "100%",
3063
+ position: "relative",
3064
+ minWidth: 0,
3065
+ // https://github.com/ant-design/ant-design/issues/51669
3066
+ "&:after": {
3067
+ content: '"\\a0"',
3068
+ width: 0,
3069
+ overflow: "hidden"
3070
+ }
3071
+ },
3072
+ // ========================= Prefix ==========================
3073
+ [`${t}-prefix`]: {
3074
+ flex: "none",
3075
+ marginInlineEnd: e.selectAffixPadding
3076
+ },
3077
+ // ========================== Clear ==========================
3078
+ [`${t}-clear`]: {
3079
+ position: "absolute",
3080
+ top: "50%",
3081
+ insetInlineStart: "auto",
3082
+ insetInlineEnd: r,
3083
+ zIndex: 1,
3084
+ display: "inline-block",
3085
+ width: e.fontSizeIcon,
3086
+ height: e.fontSizeIcon,
3087
+ marginTop: e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),
3088
+ color: e.colorTextQuaternary,
3089
+ fontSize: e.fontSizeIcon,
3090
+ fontStyle: "normal",
3091
+ lineHeight: 1,
3092
+ textAlign: "center",
3093
+ textTransform: "none",
3094
+ cursor: "pointer",
3095
+ opacity: 0,
3096
+ transition: `color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,
3097
+ textRendering: "auto",
3098
+ "&:before": {
3099
+ display: "block"
3100
+ },
3101
+ "&:hover": {
3102
+ color: e.colorTextTertiary
3103
+ }
3104
+ },
3105
+ [`&:hover ${t}-clear`]: {
3106
+ opacity: 1,
3107
+ background: e.colorBgBase,
3108
+ borderRadius: "50%"
3109
+ }
3110
+ }),
3111
+ // ========================= Feedback ==========================
3112
+ [`${t}-status`]: {
3113
+ "&-error, &-warning, &-success, &-validating": {
3114
+ [`&${t}-has-feedback`]: {
3115
+ [`${t}-clear`]: {
3116
+ insetInlineEnd: e.calc(r).add(e.fontSize).add(e.paddingXS).equal()
3117
+ }
3118
+ }
3119
+ }
3120
+ }
3121
+ };
3122
+ }, sa = (e) => {
3123
+ const {
3124
+ componentCls: n
3125
+ } = e;
3126
+ return [
3127
+ {
3128
+ [n]: {
3129
+ // ==================== In Form ====================
3130
+ [`&${n}-in-form-item`]: {
3131
+ width: "100%"
3132
+ }
3133
+ }
3134
+ },
3135
+ // =====================================================
3136
+ // == LTR ==
3137
+ // =====================================================
3138
+ // Base
3139
+ ca(e),
3140
+ // Single
3141
+ na(e),
3142
+ // Multiple
3143
+ Wr(e),
3144
+ // Dropdown
3145
+ ea(e),
3146
+ // =====================================================
3147
+ // == RTL ==
3148
+ // =====================================================
3149
+ {
3150
+ [`${n}-rtl`]: {
3151
+ direction: "rtl"
3152
+ }
3153
+ },
3154
+ // =====================================================
3155
+ // == Space Compact ==
3156
+ // =====================================================
3157
+ jr(e, {
3158
+ borderElCls: `${n}-selector`,
3159
+ focusElCls: `${n}-focused`
3160
+ })
3161
+ ];
3162
+ }, da = Bt("Select", (e, n) => {
3163
+ let {
3164
+ rootPrefixCls: t
3165
+ } = n;
3166
+ const r = Hn(e, {
3167
+ rootPrefixCls: t,
3168
+ inputPaddingHorizontalBase: e.calc(e.paddingSM).sub(1).equal(),
3169
+ multipleSelectItemHeight: e.multipleItemHeight,
3170
+ selectHeight: e.controlHeight
3171
+ });
3172
+ return [sa(r), ia(r)];
3173
+ }, ta, {
3174
+ unitless: {
3175
+ optionLineHeight: !0,
3176
+ optionSelectedFontWeight: !0
3177
+ }
3178
+ });
3179
+ function fa(e, n) {
3180
+ return n !== void 0 ? n : e !== null;
3181
+ }
3182
+ var ma = function(e, n) {
3183
+ var t = {};
3184
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
3185
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
3186
+ n.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (t[r[a]] = e[r[a]]);
3187
+ return t;
3188
+ };
3189
+ const ar = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ir = (e, n) => {
3190
+ var t;
3191
+ const {
3192
+ prefixCls: r,
3193
+ bordered: a,
3194
+ className: l,
3195
+ rootClassName: i,
3196
+ getPopupContainer: u,
3197
+ popupClassName: d,
3198
+ dropdownClassName: f,
3199
+ listHeight: v = 256,
3200
+ placement: s,
3201
+ listItemHeight: h,
3202
+ size: c,
3203
+ disabled: g,
3204
+ notFoundContent: m,
3205
+ status: S,
3206
+ builtinPlacements: C,
3207
+ dropdownMatchSelectWidth: b,
3208
+ popupMatchSelectWidth: x,
3209
+ direction: w,
3210
+ style: B,
3211
+ allowClear: p,
3212
+ variant: E,
3213
+ dropdownStyle: L,
3214
+ transitionName: H,
3215
+ tagRender: q,
3216
+ maxCount: _,
3217
+ prefix: A
3218
+ } = e, X = ma(e, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix"]), {
3219
+ getPopupContainer: Q,
3220
+ getPrefixCls: G,
3221
+ renderEmpty: j,
3222
+ direction: ne,
3223
+ virtual: Z,
3224
+ popupMatchSelectWidth: Y,
3225
+ popupOverflow: I,
3226
+ select: D
3227
+ } = o.useContext(rt), [, fe] = tt(), ie = h ?? (fe == null ? void 0 : fe.controlHeight), J = G("select", r), se = G(), ye = w ?? ne, {
3228
+ compactSize: ge,
3229
+ compactItemClassnames: Re
3230
+ } = Ar(J, ye), [ce, pe] = Vr("select", E, a), R = zr(J), [y, $, K] = da(J, R), O = o.useMemo(() => {
3231
+ const {
3232
+ mode: _e
3233
+ } = e;
3234
+ if (_e !== "combobox")
3235
+ return _e === ar ? "combobox" : _e;
3236
+ }, [e.mode]), F = O === "multiple" || O === "tags", le = fa(e.suffixIcon, e.showArrow), me = (t = x ?? b) !== null && t !== void 0 ? t : Y, {
3237
+ status: re,
3238
+ hasFeedback: Ce,
3239
+ isFormItemInput: Le,
3240
+ feedbackIcon: xe
3241
+ } = o.useContext(Fr), Ne = Br(re, S);
3242
+ let de;
3243
+ m !== void 0 ? de = m : O === "combobox" ? de = null : de = (j == null ? void 0 : j("Select")) || /* @__PURE__ */ o.createElement(Zo, {
3244
+ componentName: "Select"
3245
+ });
3246
+ const {
3247
+ suffixIcon: Xe,
3248
+ itemIcon: Ge,
3249
+ removeIcon: Se,
3250
+ clearIcon: Me
3251
+ } = Kr(Object.assign(Object.assign({}, X), {
3252
+ multiple: F,
3253
+ hasFeedback: Ce,
3254
+ feedbackIcon: xe,
3255
+ showSuffixIcon: le,
3256
+ prefixCls: J,
3257
+ componentName: "Select"
3258
+ })), we = p === !0 ? {
3259
+ clearIcon: Me
3260
+ } : p, Oe = Ht(X, ["suffixIcon", "itemIcon"]), Pe = Be(d || f, {
3261
+ [`${J}-dropdown-${ye}`]: ye === "rtl"
3262
+ }, i, K, R, $), en = Hr((_e) => {
3263
+ var $e;
3264
+ return ($e = c ?? ge) !== null && $e !== void 0 ? $e : _e;
3265
+ }), Ae = o.useContext(Ir), He = g ?? Ae, Ee = Be({
3266
+ [`${J}-lg`]: en === "large",
3267
+ [`${J}-sm`]: en === "small",
3268
+ [`${J}-rtl`]: ye === "rtl",
3269
+ [`${J}-${ce}`]: pe,
3270
+ [`${J}-in-form-item`]: Le
3271
+ }, Lr(J, Ne, Ce), Re, D == null ? void 0 : D.className, l, i, K, R, $), hn = o.useMemo(() => s !== void 0 ? s : ye === "rtl" ? "bottomRight" : "bottomLeft", [s, ye]);
3272
+ if (process.env.NODE_ENV !== "production") {
3273
+ const _e = zt("Select");
3274
+ _e.deprecated(!f, "dropdownClassName", "popupClassName"), _e.deprecated(b === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && _e(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), _e.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && _e(!(typeof _ < "u" && !F), "usage", "`maxCount` only works with mode `multiple` or `tags`");
3275
+ }
3276
+ const [Fe] = Pr("SelectLike", L == null ? void 0 : L.zIndex);
3277
+ return y(/* @__PURE__ */ o.createElement(ft, Object.assign({
3278
+ ref: n,
3279
+ virtual: Z,
3280
+ showSearch: D == null ? void 0 : D.showSearch
3281
+ }, Oe, {
3282
+ style: Object.assign(Object.assign({}, D == null ? void 0 : D.style), B),
3283
+ dropdownMatchSelectWidth: me,
3284
+ transitionName: _r(se, "slide-up", H),
3285
+ builtinPlacements: ko(C, I),
3286
+ listHeight: v,
3287
+ listItemHeight: ie,
3288
+ mode: O,
3289
+ prefixCls: J,
3290
+ placement: hn,
3291
+ direction: ye,
3292
+ prefix: A,
3293
+ suffixIcon: Xe,
3294
+ menuItemSelectedIcon: Ge,
3295
+ removeIcon: Se,
3296
+ allowClear: we,
3297
+ notFoundContent: de,
3298
+ className: Ee,
3299
+ getPopupContainer: u || Q,
3300
+ dropdownClassName: Pe,
3301
+ disabled: He,
3302
+ dropdownStyle: Object.assign(Object.assign({}, L), {
3303
+ zIndex: Fe
3304
+ }),
3305
+ maxCount: F ? _ : void 0,
3306
+ tagRender: F ? q : void 0
3307
+ })));
3308
+ };
3309
+ process.env.NODE_ENV !== "production" && (ir.displayName = "Select");
3310
+ const Dn = /* @__PURE__ */ o.forwardRef(ir), va = Tr(Dn, "dropdownAlign");
3311
+ Dn.SECRET_COMBOBOX_MODE_DO_NOT_USE = ar;
3312
+ Dn.Option = st;
3313
+ Dn.OptGroup = ct;
3314
+ Dn._InternalPanelDoNotUseOrYouWillBeFired = va;
3315
+ process.env.NODE_ENV !== "production" && (Dn.displayName = "Select");
3316
+ export {
3317
+ Zo as D,
3318
+ gn as E,
3319
+ Qt as L,
3320
+ Dn as S
3321
+ };